html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
63
141k
body
stringlengths
18
58.6k
comment_length
int64
16
10.8k
text
stringlengths
6
280
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I have the same problem with "wider_face" dataset. It seems that "load_dataset" function can not download the dataset from google drive.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
21
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
still getting this issue with datasets==2.2.2 for dataset_fever_original_dev = load_dataset('fever', "v1.0", split="labelled_dev") (this one seems to be hosted by aws though) update: also tried to install from source to get the latest 2.2.3.dev0, but still get the error below (and also force-redownloaded) update2: Seems like this issues is linked to a change in the links in the specific fever datasets: https://fever.ai/ "28/04/2022 Dataset download URLs have changed Download URLs for shared task data for FEVER, FEVER2.0 and FEVEROUS have been updated. New URLS begin with https://fever.ai/download/[task name]/[filename]. All resource pages have been updated with the new URLs. Previous dataset URLs may not work and should be updated if you require these in your scripts. " => I don't know how to update the links for HF datasets - would be great if someone could update them :) ``` Downloading and preparing dataset fever/v1.0 (download: 42.78 MiB, generated: 38.39 MiB, post-processed: Unknown size, total: 81.17 MiB) to /root/.cache/huggingface/datasets/fever/v1.0/1.0.0/956b0a9c4b05e126fd956be73e09da5710992b5c85c30f0e5e1c500bc6051d0a... Downloading data files: 100% 6/6 [00:07<00:00, 1.21s/it] Downloading data: 278/? [00:00<00:00, 2.34kB/s] Downloading data: 278/? [00:00<00:00, 1.53kB/s] Downloading data: 278/? [00:00<00:00, 7.43kB/s] Downloading data: 278/? [00:00<00:00, 5.54kB/s] Downloading data: 278/? [00:00<00:00, 6.19kB/s] Downloading data: 278/? [00:00<00:00, 7.51kB/s] Extracting data files: 100% 6/6 [00:00<00:00, 108.05it/s] --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-20-92ec5c728ecf>](https://localhost:8080/#) in <module>() 27 # get labels for fever-nli-dev from original fever - only works for dev 28 # "(The labels for both dev and test are hidden but you can retrieve the label for dev using the cid and the original FEVER data.)"" https://github.com/easonnie/combine-FEVER-NSMN/blob/master/other_resources/nli_fever.md ---> 29 dataset_fever_original_dev = load_dataset('fever', "v1.0", split="labelled_dev") 30 df_fever_original_dev = pd.DataFrame(data={"id": dataset_fever_original_dev["id"], "label": dataset_fever_original_dev["label"], "claim": dataset_fever_original_dev["claim"], "evidence_id": dataset_fever_original_dev["evidence_id"]}) 31 df_fever_dev = pd.merge(df_fever_dev, df_fever_original_dev, how="left", left_on="cid", right_on="id") 4 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) 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://s3-eu-west-1.amazonaws.com/fever.public/train.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_dev.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_dev_public.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_test.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/paper_dev.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/paper_test.jsonl'] ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
331
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I think this has to be fixed on the google drive side, but you also have to delete the bad stuff from your local cache. This is not a great design, but it is what it is.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
37
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
We have fixed the issues with the datasets: - wider_face: by hosting their data files on the HuggingFace Hub (CC: @HosseynGT) - fever: by updating to their new data URLs (CC: @MoritzLaurer)
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
32
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
This is a super-common failure mode. We really need to find a better workaround. My solution was to wait until the owner of the dataset in question did the right thing, and then I had to delete my cached versions of the datasets with the bad checksums. I don't understand why this happens. Would it be possible to maintain a copy of the most recent version that was known to work, and roll back to that automatically if the checksums fail? And if the checksums fail, couldn't the system automatically flush the cached versions with the bad checksums? It feels like we are blaming the provider of the dataset, when in fact, there are things that the system could do to ease the pain. Let's take these error messages seriously. There are too many of them involving too many different datasets.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
141
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Same for [DART dataset](https://huggingface.co/datasets/dart): ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-train.json', 'https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-dev.json', 'https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-test.json'] ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
17
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
- @thesofakillers the issue with `exams` was fixed on 16 Aug by this PR: - #4853 - @Aktsvigun the issue with `dart` has been transferred to the Hub: https://huggingface.co/datasets/dart/discussions/1 - and fixed by PR: https://huggingface.co/datasets/dart/discussions/2 - @Carol-gutianle the issue with `multi_news` have been transferred to the Hub as well: https://huggingface.co/datasets/multi_news/discussions/1 - not reproducible: maybe you should try to update `datasets` For information to everybody, we are removing the checksum verifications (that were creating a bad user experience). This will be in place in the following weeks.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
86
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
auto_gptq is required for real quantization ['/home/sam/Doctorproject/OmniQuant-main/main.py', '--model', '/home/sam/Doctorproject/OmniQuant-main/PATH/TO/LLaMA/llama-7b/', '--epochs', '20', '--output_dir', '/home/sam/Doctorproject/OmniQuant-main/outdir/llama-7b-w3a16/', '--eval_ppl', '--wbits', '3', '--abits', '16', '--lwc', '--net', 'llama-7b', '--aug_loss'] [2024-03-13 17:58:48 root](main.py 262): INFO Namespace(model='/home/sam/Doctorproject/OmniQuant-main/PATH/TO/LLaMA/llama-7b/', cache_dir='./cache', output_dir='/home/sam/Doctorproject/OmniQuant-main/outdir/llama-7b-w3a16/', save_dir=None, resume=None, real_quant=False, calib_dataset='wikitext2', nsamples=128, batch_size=1, seed=2, tasks='', eval_ppl=True, num_fewshot=0, wbits=3, abits=16, group_size=None, alpha=0.5, let_lr=0.005, lwc_lr=0.01, wd=0, epochs=20, let=False, lwc=True, aug_loss=True, symmetric=False, disable_zero_point=False, a_dynamic_method='per_token', w_dynamic_method='per_channel', limit=-1, multigpu=False, deactive_amp=False, attn_implementation='eager', net='llama-7b', act_scales=None, act_shifts=None) Loading checkpoint shards: 0%| | 0/33 [00:00<?, ?it/s]/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/torch/_utils.py:776: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage() return self.fget.__get__(instance, owner)() Loading checkpoint shards: 100%|██████████| 33/33 [00:11<00:00, 2.98it/s] vocab size: 32000 [2024-03-13 17:58:59 root](main.py 331): INFO === start quantization === get_wikitext2 [2024-03-13 18:02:20 datasets.load](load.py 1586): WARNING Using the latest cached version of the module from /home/sam/.cache/huggingface/modules/datasets_modules/datasets/wikitext/a241db52902eaf2c6aa732210bead40c090019a499ceb13bcbfa3f8ab646a126 (last modified on Wed Mar 13 16:54:26 2024) since it couldn't be found locally at wikitext, or remotely on the Hugging Face Hub. Using the latest cached version of the module from /home/sam/.cache/huggingface/modules/datasets_modules/datasets/wikitext/a241db52902eaf2c6aa732210bead40c090019a499ceb13bcbfa3f8ab646a126 (last modified on Wed Mar 13 16:54:26 2024) since it couldn't be found locally at wikitext, or remotely on the Hugging Face Hub. Downloading data: 243B [00:00, 877kB/s] Generating test split: 0%| | 0/4358 [00:00<?, ? examples/s] Traceback (most recent call last): File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/builder.py", line 1742, in _prepare_split_single for key, record in generator: File "/home/sam/.cache/huggingface/modules/datasets_modules/datasets/wikitext/a241db52902eaf2c6aa732210bead40c090019a499ceb13bcbfa3f8ab646a126/wikitext.py", line 187, in _generate_examples with open(data_file, encoding="utf-8") as f: File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/streaming.py", line 75, in wrapper return function(*args, download_config=download_config, **kwargs) File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/download/streaming_download_manager.py", line 507, in xopen return open(main_hop, mode, *args, **kwargs) NotADirectoryError: [Errno 20] Not a directory: '/home/sam/.cache/huggingface/datasets/downloads/94be2a7b3fff32ae7379658c8d3821035b666baddad3a06d29b55ab3a4ab3115/wikitext-2-raw/wiki.test.raw' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/sam/Doctorproject/OmniQuant-main/main.py", line 382, in <module> main() File "/home/sam/Doctorproject/OmniQuant-main/main.py", line 339, in main dataloader, _ = get_loaders( File "/home/sam/Doctorproject/OmniQuant-main/datautils.py", line 178, in get_loaders return get_wikitext2(nsamples, seed, seqlen, model) File "/home/sam/Doctorproject/OmniQuant-main/datautils.py", line 37, in get_wikitext2 traindata = load_dataset(path='wikitext', name='wikitext-2-raw-v1', split='train', download_mode="force_redownload") File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/load.py", line 2598, in load_dataset builder_instance.download_and_prepare( File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/builder.py", line 1021, in download_and_prepare self._download_and_prepare( File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/builder.py", line 1783, in _download_and_prepare super()._download_and_prepare( File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/builder.py", line 1116, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/builder.py", line 1621, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/home/sam/anaconda3/envs/omniquant/lib/python3.10/site-packages/datasets/builder.py", line 1778, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset @albertvillanova @Y0mingZhang @kwchurch @HosseynGT @rafikg I tried the solutions you provided above, but none of them worked. Could you please give me some guidance
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
418
Checksums didn't match for dataset source
[ -0.3868803083896637, 0.12919679284095764, -0.2198142558336258, 0.2260628342628479, 0.33479782938957214, -0.2098405957221985, 0.07247655093669891, 0.4164888560771942, -0.09970007091760635, 0.12979206442832947, -0.026720941066741943, 0.2313733547925949, 0.17198355495929718, 0.3783680200576782, -0.26749908924102783, 0.41029396653175354, 0.19876313209533691, 0.11240024864673615, -0.34423357248306274, -0.24265813827514648, -0.14120398461818695, 0.12529157102108002, -0.09518040716648102, -0.19063472747802734, -0.1456959992647171, 0.2080661505460739, 0.29180848598480225, 0.11495793610811234, -0.3999790549278259, 0.035055648535490036, 0.21619734168052673, 0.053361114114522934, -0.16955065727233887, 0.27324989438056946, -0.00010669473704183474, 0.11220117658376694, 0.16998906433582306, -0.14446109533309937, -0.10849335789680481, 0.33494114875793457, -0.4175393283367157, 0.04085969924926758, -0.3181160092353821, -0.1723998337984085, -0.05803123116493225, 0.0022729369811713696, -0.05845952779054642, -0.22357380390167236, -0.046093616634607315, 0.26053041219711304, 0.3162870407104492, 0.34027233719825745, 0.17793431878089905, 0.01992448978126049, 0.1360234022140503, 0.06307165324687958, 0.14680449664592743, 0.219875767827034, 0.07363279163837433, 0.10421563684940338, -0.05083630606532097, 0.14669249951839447, -0.08930238336324692, -0.06033923104405403, 0.07751663774251938, -0.25900667905807495, -0.12178152799606323, 0.16920071840286255, 0.2572961449623108, 0.26521772146224976, 0.2828558683395386, -0.10925143212080002, -0.2296920120716095, 0.2247799038887024, -0.16381289064884186, -0.07342740148305893, 0.27279311418533325, 0.1410534679889679, 0.04120618477463722, 0.04241253808140755, -0.2790510654449463, 0.28524187207221985, 0.046737831085920334, 0.06193307414650917, -0.04360280558466911, 0.2630470097064972, -0.010756667703390121, -0.06634309142827988, -0.24703586101531982, -0.026221798732876778, 0.12467438727617264, -0.24182625114917755, -0.2622811198234558, -0.1272682398557663, -0.1752910315990448, -0.09125048667192459, 0.001913663698360324, 0.3374674916267395, 0.3708861172199249, 0.27615460753440857, -0.051953285932540894, 0.28448447585105896, -0.24049419164657593, -0.04756707325577736, -0.05966795235872269, -0.004026588052511215, 0.03273480758070946, 0.28635531663894653, 0.19731752574443817, 0.15077605843544006, -0.1863083392381668, 0.16030634939670563, 0.16008330881595612, -0.2284347414970398, 0.2714431881904602, 0.18842948973178864, -0.008319412358105183, -0.37484416365623474, -0.26043134927749634, 0.3086594045162201, 0.16138269007205963, -0.26479920744895935, 0.20800207555294037, 0.18964587152004242, -0.055983178317546844, -0.04801495745778084, -0.25440478324890137, 0.276289701461792, -0.14192016422748566, -0.1763511747121811, -0.4189159870147705, -0.032030146569013596, -0.2055458277463913, -0.4006091356277466, 0.17134098708629608, -0.11949046701192856, 0.37331295013427734, -0.012807203456759453, 0.021079204976558685, -0.08071994036436081, -0.03322630748152733, -0.1094200387597084, 0.2245142161846161, 0.3194938004016876, -0.16989639401435852, 0.07840541005134583, 0.25379905104637146, 0.11305823922157288, -0.10544861853122711, 0.07730579376220703, -0.22162218391895294, -0.010649380274116993, -0.0050729503855109215, 0.33106228709220886, -0.23709525167942047, -0.0695752203464508, -0.06467127799987793, -0.41890624165534973, 0.2701452672481537, -0.312380313873291, 0.14290131628513336, -0.29639679193496704, -0.12048181891441345, -0.2113010436296463, 0.17556263506412506, 0.12820515036582947, -0.3404906094074249, 0.20177407562732697, -0.017437312752008438, -0.3308817744255066, 0.3329324424266815, 0.22115692496299744, -0.07474282383918762, 0.05545404180884361, -0.27406978607177734, 0.12428560107946396, 0.220923513174057, -0.4305344820022583, -0.5514803528785706, -0.11018110811710358, 0.09912967681884766, -0.0952342078089714, 0.15420661866664886, -0.022421374917030334, 0.032682865858078, -0.13368046283721924, -0.14459708333015442, 0.0016607624711468816, 0.12820276618003845, 0.22954818606376648, -0.12850908935070038, -0.14445893466472626, 0.04737015813589096, 0.052365854382514954, 0.1633753925561905, -0.006151634734123945, 0.4002140462398529, -0.10311329364776611, 0.2448968142271042, -0.19440841674804688, -0.08028048276901245, 0.02603018842637539, 0.4183432459831238, -0.24429774284362793, -0.06465765088796616, -0.28746190667152405, 0.06873291730880737, 0.08689212054014206, -0.0574730820953846, 0.09922327846288681, -0.13929085433483124, 0.013639014214277267, -0.39557743072509766, -0.1436520516872406, -0.04461805522441864, 0.0464320182800293, 0.3069983422756195, 0.2976279854774475, -0.018296074122190475, -0.06634396314620972, -0.007603320758789778, 0.0018545037601143122, -0.4193224310874939, -0.07990816235542297, -0.025703025981783867, 0.28309184312820435, -0.05377912521362305, -0.18933577835559845, 0.18459288775920868, 0.12324241548776627, 0.08379113674163818, 0.06778400391340256, -0.18247519433498383, 0.31971365213394165, 0.23205694556236267, 0.05543867498636246, 0.04792531952261925, 0.4423464834690094, -0.0888383537530899, -0.4374578297138214, 0.06296827644109726, 0.1404798924922943, 0.13286557793617249, -0.11375508457422256, 0.09180525690317154, 0.29745033383369446, -0.2532725930213928, -0.10917603969573975, 0.00924668088555336, -0.060210250318050385, 0.3745284676551819, -0.09372518211603165, -0.032096151262521744, -0.44409438967704773, 0.04674196243286133, 0.18215031921863556, 0.18441368639469147, 0.3667744994163513, -0.003595852991566062, 0.020042473450303078, 0.4909689426422119, -0.04247857630252838, -0.006736271549016237, -0.12045257538557053, 0.15355336666107178, 0.01867707259953022, 0.18645738065242767, 0.4734862446784973, 0.3717027008533478, 0.22875943779945374, 0.0798981636762619, -0.0018318865913897753, -0.16883015632629395, -0.2157226949930191, 0.05286815017461777, -0.1430199146270752, 0.22709977626800537, 0.2650758624076843, -0.12198356539011002, -0.15259818732738495, -0.3876835107803345, 0.18517643213272095, 0.03952231630682945, 0.09977758675813675, -0.49059444665908813, -0.040161099284887314, -0.5085559487342834, -0.14740507304668427, -0.3458232581615448, 0.05076711252331734, -0.12196561694145203, -0.34212279319763184, -0.0632883757352829, 0.0342482328414917, -0.04648885503411293, 0.20457546412944794, -0.24784812331199646, -0.0830964595079422, 0.06406781822443008, -0.07351838052272797, 0.12252353876829147, 0.0393776036798954, -0.026453286409378052, 0.16522221267223358, 0.4375210106372833, 0.2020167112350464, 0.34822508692741394, -0.35802778601646423, 0.028601549565792084, -0.36701831221580505, -0.2802470922470093, 0.07581955939531326, -0.15757210552692413, 0.21102745831012726, 0.2909705638885498, 0.14772623777389526, -0.06458687037229538, -0.2538827657699585, 0.10121095180511475, -0.03629729896783829, -0.4287959337234497, 0.24068833887577057, -0.15269021689891815, -0.31806376576423645, 0.04040462523698807, 0.046914972364902496, -0.012475825846195221, -0.07434163242578506, -0.26570695638656616, 0.0017967602470889688, 0.16313421726226807, -0.06521165370941162, 0.1040879637002945, 0.023207951337099075, -0.06667458266019821, 0.33187130093574524, -0.4018060863018036, -0.5725272297859192, 0.4061709940433502, -0.01988963596522808, -0.3666585683822632, -0.07890227437019348, 0.08356330543756485, 0.2639065980911255, 0.15262746810913086, -0.18492458760738373, -0.11966390907764435, -0.26352035999298096, 0.13062165677547455, 0.373716801404953, 0.23592013120651245, 0.1544339656829834, -0.017833271995186806, -0.1400017887353897, -0.4894602298736572, -0.06595085561275482, 0.24741150438785553, -0.40908753871917725, 0.37232908606529236, -0.17005972564220428, 0.10349216312170029, -0.10526802390813828, 0.34976452589035034, 0.3818894028663635, -0.28398653864860535, 0.09465876966714859, 0.04110448434948921, 0.47498267889022827, -0.048401281237602234, -0.1869846135377884, 0.10716812312602997, 0.1174791157245636, 0.037311337888240814, 0.06944039463996887, -0.19431905448436737, 0.06048709899187088, 0.07607900351285934, -0.08171369880437851, -0.41009843349456787, -0.16985955834388733, -0.10324560105800629, -0.31185173988342285, 0.13286246359348297, 0.039801228791475296, 0.008431263267993927, -0.16064700484275818, -0.2543303966522217, 0.05863389000296593, 0.1711353212594986, -0.18953388929367065, -0.08821026980876923, -0.5797470211982727, -0.08490762114524841, 0.09368283301591873, 0.2497129738330841, 0.023234548047184944, 0.4140177369117737, 0.04037262499332428, -0.13382628560066223, -0.07279849052429199, -0.08830409497022629, 0.26038798689842224, -0.4107670187950134, 0.3822822570800781, -0.08058439940214157, 0.1228250116109848, 0.07995495200157166, -0.11055487394332886, -0.12804895639419556, 0.007269538473337889, 0.2158443182706833, -0.007654242683202028, -0.37865471839904785, 0.11900479346513748, 0.2788253426551819, 0.18577788770198822, -0.0894780382514, -0.0651865154504776, -0.19769831001758575, -0.2142636626958847, -0.2080797255039215, -0.13943323493003845, -0.0008302774513140321, 0.017998553812503815, -0.0036386812571436167, -0.06598047912120819, -0.19326063990592957, -0.024563414976000786, 0.3575660288333893, -0.04586589336395264, 0.23016424477100372, 0.052459247410297394, 0.07323934137821198, -0.2996174693107605, 0.16474956274032593, 0.47503724694252014, 0.6829414963722229, -0.25561627745628357, -0.267093300819397, 0.06096040457487106, -0.4839690625667572, 0.09451580792665482, 0.07684168964624405, -0.047843340784311295, 0.01609945110976696, 0.2908327281475067, -0.23111985623836517, 0.032224059104919434, -0.11465967446565628, -0.05565735325217247, 0.2877736985683441, -0.19483189284801483, -0.09178178012371063, -0.21344269812107086, -0.11044246703386307, -0.1625342220067978, 0.20668679475784302, 0.2127637267112732, -0.11384546011686325, 0.11486150324344635, 0.375381201505661, 0.8620749711990356, -0.10945571959018707, -0.09841982275247574, 0.10032083839178085, -0.3481428921222687, 0.009941477328538895, 0.07509735971689224, -0.2367110550403595, -0.36719995737075806, -0.6021738648414612, -0.05335608497262001, -0.24845649302005768, 0.09263771772384644, 0.14406432211399078, 0.03743714466691017, 0.03567086160182953, -0.01523116510361433, 0.21015895903110504, 0.039438631385564804, 0.22667565941810608, 0.1053488701581955, 0.16709120571613312, -0.1284734010696411, 0.24488775432109833, 0.06142162159085274, -0.03833579644560814, -0.09815351665019989, -0.08954239636659622, -0.2176075279712677, -0.17280209064483643, -0.36692333221435547, 0.05510101839900017, 0.0540904626250267, 0.12777939438819885, 0.3518829345703125, 0.10066527128219604, -0.2335330843925476, 0.38048601150512695, 0.48807844519615173, 0.4078391194343567, -0.10638841986656189, 0.11736386269330978, 0.6119118928909302, 0.1986965388059616, 0.16473181545734406, -0.13044625520706177, 0.40953773260116577, -0.13173559308052063, -0.22886595129966736, 0.10488098114728928, 0.1083352118730545, -0.5022827386856079, 0.1199759840965271, -0.19725768268108368, -0.3609926402568817, -0.39498552680015564, -0.1389731913805008, -0.1042775958776474, 0.012360796332359314, -0.10121960937976837, 0.22690363228321075, 0.13820084929466248, -0.025783009827136993, 0.3878658413887024, 0.20984812080860138, -0.3237752318382263, -0.16122831404209137, 0.4546377658843994, -0.016255201771855354, 0.03083779662847519, 0.5111070275306702, -0.1437203735113144, -0.21059098839759827, -0.3237797021865845, -0.055026162415742874, 0.06299224495887756, -0.2637699842453003, -0.14157676696777344, -0.42287272214889526, -0.2131223976612091, 0.0838073119521141, 0.40694460272789, 0.4735355079174042, 0.37159043550491333, 0.17982417345046997, -0.4672200381755829, -0.3089427649974823, 0.029013285413384438, 0.1818578541278839, 0.1560318022966385, -0.22066451609134674, -0.04434572905302048, -0.10794584453105927, 0.07030081748962402, -0.42548325657844543, -0.08667595684528351, -0.25959256291389465, -0.05709059536457062, -0.11455020308494568, 0.10874717682600021, -0.021665753796696663, -0.28684142231941223, 0.265688955783844, -0.20020920038223267, -0.20286040008068085, -0.2958119213581085, -0.027761591598391533, 0.08441728353500366, 0.029360748827457428, -0.22378982603549957, 0.0930248498916626, -0.2323770523071289, -0.16164866089820862, 0.020208608359098434, -0.037260062992572784, 0.11315029859542847, -0.07426084578037262, 0.10966374725103378, 0.34212416410446167, -0.09969566762447357, -0.12977030873298645, -0.15874016284942627, -0.26663684844970703, -0.06477058678865433, -0.09157923609018326, -0.03571953624486923, 0.049901850521564484, -0.07711596041917801, 0.27374908328056335, 0.1623271107673645, -0.1499583125114441, 0.2064979523420334, 0.41264134645462036, -0.11146368831396103, -0.0583198256790638, 0.47442829608917236, 0.49903181195259094, 0.15149126946926117, -0.28135642409324646, -0.17227336764335632, 0.12505993247032166, 0.2484394907951355, -0.39691057801246643, -0.20117118954658508, 0.1011524572968483, 0.15042999386787415, 0.13797906041145325, 0.1708521842956543, 0.26699191331863403, -0.2995116710662842, 0.4264534115791321, 0.05949622020125389, 0.02985200099647045, -0.039746254682540894, 0.28509771823883057, 0.5257996916770935, -0.04532118886709213, -0.015007329173386097, 0.28565502166748047, -0.14686833322048187, -0.2678140103816986, 0.12286834418773651, 0.17270305752754211, 0.3678889870643616, -0.3406257629394531, 0.15548141300678253, -0.15188364684581757, -0.27292880415916443, 0.6624280214309692, 0.08002720028162003, -0.1149635761976242, -0.01655721664428711, 0.26253315806388855, 0.2922130227088928, 0.10211515426635742, 0.1300598680973053, -0.4131337106227875, 0.21692149341106415, -0.07778230309486389, -0.046348389238119125, -0.4474647045135498, -0.25247567892074585, 0.05683966353535652, -0.048355504870414734, -0.06858190894126892, 0.40474361181259155, 0.2190830111503601, 0.08378681540489197, -0.2116585522890091, -0.1277237981557846, 0.11743470281362534, -0.1712910234928131, 0.006063054781407118, -0.16618293523788452, 0.25591903924942017, 0.04466678202152252, 0.05134972929954529, 0.45484936237335205, 0.47789788246154785, 0.21221621334552765, 0.3128005266189575, 0.49104043841362, -0.19028034806251526, 0.13785143196582794, -0.14355818927288055, -0.17116963863372803, 0.5486268997192383, 0.10806349664926529, 0.1514454036951065, 0.3815205693244934, 0.27806732058525085, -0.2154117226600647, 0.0034725675359368324, 0.041080933064222336, -0.14017346501350403, 0.24381911754608154, 0.3062409460544586, 0.2392146736383438, 0.10919013619422913, -0.11063060909509659, 0.08352755010128021, -0.22325430810451508, -0.06474464386701584, 0.23959892988204956, 0.0011701224138960242, 0.2676374018192291, -0.08831606805324554, 0.16217762231826782, 0.16529719531536102, 0.4157606065273285, 0.2092505544424057, 0.030972519889473915, -0.15557365119457245, -0.34626761078834534, -0.6857522130012512, 0.199544757604599, -0.006222749128937721, -0.14811742305755615, -0.1151018738746643, 0.05222059413790703, 0.2860228419303894, -0.09028290212154388, 0.4388028681278229, -0.29181885719299316, -0.27430540323257446, -0.002171608619391918, -0.25235018134117126, -0.11845093220472336, -0.27228355407714844, -0.17270159721374512, -0.10670087486505508, -0.26535239815711975, 0.37147459387779236, 0.27896496653556824, 0.3157712519168854, 0.09731020033359528, -0.13148684799671173, -0.06357838958501816, 0.08320523053407669, -0.10536481440067291, 0.01761280559003353, 0.7239972949028015, -0.2998131513595581, 0.038318242877721786, -0.051519956439733505, 0.040430229157209396, -0.2429748922586441, 0.5209253430366516, -0.12191460281610489, 0.3724910318851471, -0.021826544776558876, 0.0034161070361733437, -0.16080449521541595, 0.22675755620002747, 0.0404091514647007, -0.37973853945732117, -0.35969406366348267, 0.2717837691307068, -0.1308414191007614, -0.27488023042678833, 0.15472589433193207, 0.07588241249322891, -0.04996250942349434, 0.32914069294929504, -0.06553317606449127, -0.27134788036346436, 0.1760368049144745, 0.07031365483999252, 0.038046207278966904, -0.30183616280555725, 0.17924641072750092, -0.20683543384075165, -0.013218955136835575, -0.5556881427764893, 0.08315452188253403, 0.3746570944786072, -0.09904490411281586, -0.010260927490890026, 0.2889428734779358, -0.032786913216114044, 0.2426542192697525, -0.04235716909170151, 0.24821648001670837, 0.0073371208272874355, -0.19486305117607117, -0.16015905141830444, -0.0722704604268074 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
I see two options: 1. drop the "dev" keyword since it can be considered too generic 2. improve the pattern to something more reasonable, e.g. asking for a separator before and after "dev" ```python ["*[ ._-]dev[ ._-]*", "dev[ ._-]*"] ``` I think 2. is nice. If we agree on this one we can even decide to require the separation for the other split keywords "train", "test" etc.
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
67
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
Yes, I had something like that on mind: "dev" not being part of a word. ``` "[^a-zA-Z]dev[^a-zA-Z]"
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
17
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
Is there a reason why we want that regex? It feels like something that'll still be an issue for some weird case. "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified?
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
37
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
The regex is needed as part of our effort to make datasets configurable without code. In particular we define some generic dataset repository structures that users can follow > ``` > "[^a-zA-Z]*dev[^a-zA-Z]*" > ``` unfortunately our glob doesn't support "^": https://github.com/fsspec/filesystem_spec/blob/3e739db7e53f5b408319dcc9d11e92bc1f938902/fsspec/spec.py#L465-L479
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
41
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
> "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified? And `my_dataset_dev.foo` would match the pattern, and we also have the same pattern but for the "validation" keyword so `my_dataset_validation.foo` would work too
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
39
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
> The regex is needed as part of our effort to make datasets configurable without code This feels like coding with the filename ^^'
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
24
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
This is still much easier than having to write a full dataset script right ? :p
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
16
Only-data dataset loaded unexpectedly as validation split
[ -0.16899044811725616, 0.04136655852198601, -0.13087494671344757, 0.22183607518672943, 0.3157888650894165, -0.024300070479512215, 0.28872013092041016, 0.3565211892127991, -0.10037555545568466, 0.03262189403176308, -0.07291620969772339, 0.043599821627140045, -0.1114736944437027, 0.27952146530151367, -0.2720292806625366, 0.24763700366020203, -0.06197154521942139, 0.4425297677516937, 0.1769581139087677, -0.1607428938150406, 0.025130026042461395, 0.08625578880310059, -0.09117196500301361, 0.12207844853401184, -0.3796681761741638, -0.1220506951212883, 0.16671766340732574, 0.34787681698799133, -0.2286524921655655, -0.24989891052246094, 0.35266461968421936, -0.12916529178619385, -0.35087108612060547, 0.14705966413021088, -0.00010643749556038529, 0.08981069177389145, 0.13157856464385986, -0.12766191363334656, -0.28127992153167725, 0.07288286834955215, -0.3692118227481842, 0.09167460352182388, 0.06340561807155609, 0.06719624251127243, -0.16418567299842834, -0.061290401965379715, -0.1425437182188034, -0.05893348529934883, 0.5729073882102966, 0.3657682538032532, 0.24964623153209686, 0.05345889925956726, -0.4036341607570648, -0.10385777801275253, -0.09696480631828308, 0.21767498552799225, 0.04079648479819298, -0.06474379450082779, 0.2566700875759125, -0.21929743885993958, -0.1427689641714096, 0.3380168080329895, 0.06151037663221359, 0.07536230981349945, -0.07271229475736618, -0.13038982450962067, -0.3397503197193146, -0.21544846892356873, 0.12593857944011688, 0.3848196268081665, 0.11880773305892944, -0.012904703617095947, 0.06649570912122726, -0.11400493234395981, -0.014272908680140972, -0.1791093796491623, 0.1544172763824463, 0.28106454014778137, 0.08694177120923996, 0.24599285423755646, -0.23857468366622925, 0.051609478890895844, -0.12943725287914276, 0.10450082272291183, -0.39830678701400757, 0.3251161575317383, -0.2053990513086319, 0.12564246356487274, 0.12417919933795929, 0.3066787123680115, -0.04405718296766281, -0.31430718302726746, -0.2987973093986511, 0.03513035178184509, -0.12240307033061981, -0.20119211077690125, -0.1853969395160675, -0.04035812243819237, 0.2750234007835388, 0.02511424385011196, 0.0063940370455384254, 0.12283039838075638, -0.20752108097076416, -0.1534203439950943, 0.33830419182777405, 0.035831473767757416, 0.4231394827365875, 0.24142728745937347, 0.2039378136396408, -0.20490874350070953, 0.10384584218263626, 0.1281563937664032, 0.1325959861278534, 0.0547625832259655, 0.09442829340696335, 0.17595833539962769, 0.02718243934214115, -0.24496115744113922, -0.510869026184082, 0.26045435667037964, -0.07722765952348709, 0.146537184715271, 0.07006490975618362, 0.1495802402496338, 0.16054502129554749, 0.11756062507629395, -0.24305468797683716, 0.2815963625907898, -0.09449728578329086, -0.46070408821105957, -0.27497968077659607, 0.13751645386219025, -0.29116907715797424, -0.1450573056936264, 0.2896936535835266, -0.09808118641376495, 0.016486918553709984, 0.11344072967767715, -0.2635519504547119, -0.2477235049009323, -0.16215914487838745, -0.30379873514175415, 0.38229233026504517, 0.37130025029182434, 0.023102253675460815, 0.27892640233039856, 0.22075307369232178, -0.24076803028583527, 0.054753758013248444, 0.17446070909500122, -0.06983502954244614, -0.278172105550766, 0.015156487002968788, 0.33805757761001587, -0.17255721986293793, 0.3375704288482666, 0.2069106549024582, 0.3465110957622528, 0.1299976259469986, -0.243411123752594, -0.03263527899980545, -0.14221921563148499, 0.027216671034693718, -0.07079732418060303, 0.02913377247750759, 0.430652379989624, -0.6453256011009216, 0.2665044665336609, -0.2315356582403183, -0.4899207353591919, 0.07176939398050308, 0.1754307746887207, -0.3109447956085205, 0.31164035201072693, -0.380967378616333, 0.2875613868236542, 0.3640155792236328, 0.15013928711414337, -0.38453641533851624, 0.5316444039344788, -0.2902887165546417, 0.1789458990097046, -0.18424007296562195, -0.02912990376353264, 0.21009986102581024, 0.275360107421875, -0.048684850335121155, 0.14021505415439606, -0.0579327717423439, -0.0061988309025764465, -0.16378113627433777, 0.039818182587623596, 0.13144241273403168, -0.018641356378793716, 0.34161120653152466, 0.10254331678152084, 0.1296558976173401, 0.16979756951332092, 0.4704202115535736, -0.13850891590118408, 0.011282828636467457, 0.13429845869541168, 0.03745844215154648, -0.25826162099838257, 0.05387701466679573, -0.5410549640655518, -0.28468257188796997, -0.01115410029888153, 0.23117747902870178, -0.13414151966571808, 0.04714817553758621, -0.10527414828538895, -0.6237252354621887, -0.14362291991710663, -0.19346190989017487, -0.003284748876467347, 0.23296430706977844, 0.055251412093639374, -0.04013841971755028, -0.262057900428772, -0.02418273687362671, 0.4392211139202118, -0.10868386179208755, 0.07118061929941177, -0.24432282149791718, 0.2188413292169571, 0.08914944529533386, -0.11740034073591232, -0.2408246099948883, 0.1453743278980255, 0.0187553521245718, -0.24932405352592468, 0.05948314815759659, 0.32941725850105286, 0.2869727611541748, -0.11192446947097778, -0.2225382775068283, -0.14594006538391113, 0.09411992132663727, -0.06918425858020782, -0.18077880144119263, -0.11503706872463226, 0.1745859980583191, -0.29057514667510986, -0.08978689461946487, 0.4243954122066498, -0.14524900913238525, -0.0251455120742321, -0.038916945457458496, 0.04643053561449051, 0.13729272782802582, -0.3027398884296417, 0.15699546039104462, -0.4505358338356018, 0.12463263422250748, 0.07245277613401413, 0.07231851667165756, 0.17331190407276154, -0.2307901531457901, 0.0682196170091629, 0.28821203112602234, -0.14747877418994904, 0.06875833868980408, -0.10902584344148636, -0.19204933941364288, 0.004254063591361046, 0.10568402707576752, 0.27199462056159973, 0.5801346898078918, 0.21069972217082977, -0.10600528866052628, 0.13038861751556396, -0.08776228874921799, -0.23287548124790192, 0.19858218729496002, -0.01966891437768936, 0.14940375089645386, 0.3952159285545349, 0.038922931998968124, -0.06635698676109314, -0.6769937872886658, 0.28746506571769714, 0.3412056565284729, 0.04243563860654831, -0.5268762111663818, 0.21804095804691315, -0.42341944575309753, 0.1648922711610794, -0.11573135107755661, -0.03955854848027229, -0.08063744008541107, -0.37095823884010315, 0.25157392024993896, 0.07119543850421906, -0.09218034148216248, 0.08024199306964874, -0.10941682755947113, 0.06531356275081635, -0.08724932372570038, -0.0674721822142601, -0.024057911708950996, -0.12591999769210815, -0.24033328890800476, 0.1923007071018219, 0.04018731787800789, 0.45777177810668945, 0.2459770143032074, 0.03118067793548107, -0.19832150638103485, 0.10135550796985626, -0.3547557592391968, 0.15508003532886505, -0.14083632826805115, 0.07848431169986725, 0.2504573464393616, 0.19945333898067474, 0.26349973678588867, -0.08442429453134537, 0.009442673996090889, -0.0698796734213829, -0.1658649891614914, 0.2579074203968048, -0.13901616632938385, -0.025572394952178, -0.37110480666160583, -0.5271114706993103, -0.041123177856206894, -0.09965488314628601, -0.16100464761257172, -0.13408663868904114, 0.050256308168172836, -0.028104782104492188, 0.049366164952516556, -0.2682148814201355, -0.21155692636966705, -0.0687960609793663, -0.5330632328987122, 0.2553146779537201, 0.21387584507465363, 0.00803834293037653, -0.2941477596759796, -0.051420655101537704, -0.07874143123626709, 0.09031388908624649, 0.20261584222316742, -0.3439958691596985, -0.0527791790664196, -0.1588420569896698, -0.13847680389881134, -0.2874584197998047, -0.34403055906295776, 0.3030869960784912, -0.1201731488108635, -0.05343618988990784, -0.21245518326759338, 0.13531272113323212, 0.2747829258441925, -0.2958228290081024, -0.024416105821728706, -0.4907870292663574, 0.1972733438014984, 0.20022974908351898, 0.677756667137146, -0.27029716968536377, -0.1980813890695572, -0.04791358485817909, -0.08545783907175064, 0.45101606845855713, -0.07152542471885681, -0.386783242225647, -0.05985049530863762, 0.04503687098622322, 0.21893373131752014, 0.19893254339694977, -0.1887868344783783, 0.05321149900555611, 0.03220667317509651, 0.17604562640190125, -0.11582732200622559, -0.1591932624578476, 0.21210315823554993, -0.07205115258693695, -0.043808240443468094, 0.4674893021583557, 0.3581405282020569, -0.0750616043806076, -0.02930154837667942, -0.15916195511817932, 0.11872140318155289, -0.012498157098889351, -0.08473296463489532, -0.25594931840896606, 0.15020979940891266, 0.1673087477684021, 0.24403154850006104, -0.07019224762916565, 0.032962825149297714, -0.031194083392620087, -0.23852354288101196, 0.3003561496734619, 0.08178519457578659, 0.7916355729103088, 0.05856907740235329, 0.10417979210615158, -0.0998983159661293, 0.08601661771535873, -0.09179947525262833, -0.22569435834884644, -0.34063592553138733, 0.15672127902507782, 0.5220656394958496, 0.6235799789428711, -0.38753169775009155, -0.21625562012195587, 0.08974334597587585, 0.1543804258108139, -0.16486944258213043, -0.09314040094614029, -0.10856274515390396, -0.2082594782114029, -0.041234973818063736, 0.3269171714782715, 0.12848956882953644, 0.039384275674819946, -0.23675939440727234, -0.10962750762701035, -0.21609385311603546, -0.011910056695342064, 0.1621125489473343, 0.2940792143344879, 0.019216446205973625, -0.2308672070503235, 0.06225574389100075, -0.021367652341723442, 0.4343673586845398, 0.20681273937225342, 0.5530630946159363, -0.2227061539888382, -0.31168538331985474, 0.0723273754119873, -0.27971088886260986, 0.06109311431646347, 0.5969295501708984, 0.016896717250347137, -0.045385636389255524, 0.09633375704288483, -0.022889044135808945, -0.14813567698001862, 0.4024342894554138, 0.11751515418291092, -0.1510026454925537, -0.20277783274650574, 0.12230797111988068, -0.09035278111696243, -0.0236541498452425, -0.30876845121383667, 0.11439558118581772, 0.08038894087076187, -0.3489375412464142, 0.29126477241516113, -0.12255707383155823, 0.7924690842628479, 0.08610707521438599, 0.09047207236289978, 0.2621948719024658, -0.22999584674835205, 0.1402718722820282, -0.33743736147880554, 0.1398801952600479, -0.45490750670433044, -0.53296959400177, -0.057885803282260895, -0.10956007987260818, 0.16708464920520782, 0.5605618953704834, 0.16601133346557617, 0.187458798289299, -0.1225702092051506, 0.3688099682331085, -0.007356553338468075, 0.16912142932415009, 0.012888754718005657, 0.0024982569739222527, -0.18150052428245544, 0.18228435516357422, -0.1176161840558052, 0.04919083043932915, -0.0877586081624031, -0.26294243335723877, -0.0047338842414319515, -0.3463090658187866, -0.07215699553489685, 0.25097134709358215, -0.23282508552074432, 0.05553733929991722, -0.00284873740747571, -0.14758428931236267, 0.09579890221357346, 0.030110754072666168, 0.04169029742479324, 0.14861954748630524, -0.10755892097949982, 0.3352479636669159, 0.22169819474220276, 0.16435737907886505, -0.15727557241916656, -0.04891091585159302, 0.3338724374771118, 0.08657405525445938, -0.20820531249046326, 0.00009881192818284035, -0.22397929430007935, 0.05101589486002922, 0.10871697962284088, 0.29281485080718994, -0.14275921881198883, -0.7123091816902161, -0.0005049040773883462, 0.025745823979377747, 0.4213807284832001, -0.1994255632162094, 0.17814944684505463, -0.03206983208656311, -0.05737408623099327, 0.32079818844795227, -0.01062821689993143, -0.3256344497203827, -0.1633543074131012, 0.36796197295188904, 0.11612671613693237, 0.060194775462150574, 0.47158658504486084, -0.22964924573898315, -0.1909327656030655, -0.48194393515586853, 0.038492199033498764, 0.27344250679016113, -0.520662784576416, 0.18702112138271332, -0.1558195799589157, -0.26696479320526123, 0.1897270679473877, 0.08545311540365219, 0.11778969317674637, 0.05341522768139839, -0.0714607685804367, -0.4384523332118988, -0.026973361149430275, -0.10411989688873291, -0.14213161170482635, 0.20069637894630432, 0.1864420771598816, 0.26430124044418335, -0.20748405158519745, 0.38683781027793884, -0.39883431792259216, 0.1697552353143692, -0.047010861337184906, 0.12068027257919312, -0.30411094427108765, -0.16153289377689362, 0.039791688323020935, -0.11569923907518387, 0.2490624487400055, 0.21468396484851837, -0.12573660910129547, -0.3095145523548126, -0.05244704335927963, 0.12710577249526978, 0.08125258982181549, 0.07820139825344086, -0.10204687714576721, 0.12648150324821472, -0.03428516909480095, -0.01042861770838499, 0.419766902923584, -0.014240450225770473, 0.06583753228187561, -0.09727530181407928, 0.08478079736232758, 0.22167658805847168, -0.058640431612730026, -0.19934788346290588, -0.27876710891723633, 0.181839719414711, -0.021112654358148575, 0.08716684579849243, -0.15234825015068054, -0.07905138283967972, -0.09131860733032227, 0.055195510387420654, 0.22582881152629852, 0.12875977158546448, 0.1622142642736435, -0.21932029724121094, -0.06047592684626579, 0.01801692321896553, 0.2567499279975891, 0.479554682970047, -0.32924607396125793, -0.0785624235868454, 0.0016909647965803742, 0.26571255922317505, -0.24642375111579895, -0.12151091545820236, 0.4245348274707794, 0.1080048456788063, 0.03199365735054016, 0.11476556211709976, 0.24578802287578583, 0.034735508263111115, 0.2687526345252991, 0.12629598379135132, 0.25640398263931274, -0.120589978992939, 0.0329473651945591, 0.6691233515739441, -0.5211690664291382, 0.04764227941632271, 0.29425522685050964, -0.2550312876701355, -0.10541080683469772, 0.4874914288520813, -0.04384592920541763, 0.4596478343009949, -0.0954255685210228, 0.09354232251644135, -0.014387616887688637, -0.4997258484363556, -0.08823329955339432, 0.20570965111255646, -0.2802779972553253, 0.1088508740067482, 0.11134934425354004, -0.12053869664669037, -0.42085620760917664, -0.21838979423046112, -0.3694174587726593, 0.022034578025341034, -0.3043478727340698, 0.23321984708309174, -0.2672523856163025, -0.09917343407869339, -0.20748485624790192, 0.20232859253883362, -0.016661006957292557, 0.07547599822282791, 0.3982202708721161, -0.15416236221790314, -0.2448016256093979, -0.20259638130664825, 0.05362289026379585, 0.05953693389892578, -0.03982215374708176, -0.309177041053772, 0.17635051906108856, -0.057384684681892395, 0.010792621411383152, 0.47736039757728577, 0.12036681920289993, 0.10153859853744507, 0.16583698987960815, 0.134414404630661, -0.28580573201179504, 0.04206685721874237, -0.1994324028491974, 0.025531960651278496, 0.425709068775177, 0.22620266675949097, 0.43704846501350403, 0.4366135001182556, 0.2808776795864105, -0.2122206836938858, 0.1521768718957901, 0.31178027391433716, 0.011473474092781544, -0.3385802209377289, 0.2957163453102112, 0.2966179847717285, -0.1634129136800766, -0.2641139626502991, -0.08905330300331116, -0.018880335614085197, -0.10606289654970169, 0.1759338676929474, 0.022241488099098206, 0.4417622685432434, -0.2063487470149994, 0.10531143844127655, 0.08368325233459473, 0.34973812103271484, -0.08577854931354523, -0.22940634191036224, -0.35455790162086487, -0.10854528844356537, -0.41993507742881775, 0.2663476765155792, -0.2560449540615082, 0.10078486800193787, -0.007541438098996878, -0.08515740185976028, 0.2046058028936386, 0.11909487098455429, -0.08744485676288605, 0.09612006694078445, 0.19940128922462463, -0.038766294717788696, -0.22125358879566193, 0.30567771196365356, 0.11792465299367905, -0.07131336629390717, -0.07716511189937592, -0.34826016426086426, 0.3584441542625427, 0.2567148506641388, 0.11423962563276291, 0.2732875943183899, -0.27685707807540894, 0.08347031474113464, 0.33163851499557495, 0.18509745597839355, 0.23951540887355804, 0.5160273313522339, -0.14036071300506592, 0.2673827111721039, -0.19671176373958588, -0.040550023317337036, -0.21288961172103882, 0.3764577805995941, 0.4151133596897125, 0.1579706221818924, -0.030506707727909088, 0.24499216675758362, 0.021130487322807312, 0.14620842039585114, 0.09837322682142258, 0.1199822872877121, -0.34887006878852844, 0.08650730550289154, -0.2779887914657593, 0.27978086471557617, 0.20954203605651855, 0.3078593909740448, 0.01580074243247509, -0.13761423528194427, 0.15432168543338776, -0.27343907952308655, 0.1684785634279251, -0.06111932918429375, -0.3736802339553833, -0.11915739625692368, 0.21607042849063873, 0.15838488936424255, -0.2903813123703003, -0.47811102867126465, -0.156157985329628, 0.3793674409389496, -0.36781519651412964, -0.23915503919124603, 0.053949203342199326, 0.0016357427230104804, -0.30826717615127563, 0.005504905711859465, 0.22465170919895172, 0.3292202651500702, -0.3917998969554901, 0.03461841121315956, -0.24346351623535156 ]
https://github.com/huggingface/datasets/issues/3786
Bug downloading Virus scan warning page from Google Drive URLs
Once the PR merged into master and until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
## Describe the bug Recently, some issues were reported with URLs from Google Drive, where we were downloading the Virus scan warning page instead of the data file itself. See: - #3758 - #3773 - #3784
77
Bug downloading Virus scan warning page from Google Drive URLs
[ 0.19107165932655334, -0.272675096988678, -0.16155272722244263, 0.1295403391122818, 0.10009493678808212, 0.22917643189430237, 0.08663645386695862, -0.06615832448005676, 0.2897867262363434, 0.3155333995819092, -0.06072184443473816, -0.35043445229530334, 0.026818566024303436, 0.07258257269859314, 0.02452855557203293, -0.0019199498929083347, -0.0941324383020401, -0.1776496171951294, 0.3333635628223419, 0.04684411734342575, -0.4293956756591797, 0.3333248198032379, -0.19069083034992218, 0.1550501585006714, 0.21541334688663483, 0.15618933737277985, 0.031728241592645645, 0.09789282828569412, 0.11453136801719666, -0.31440848112106323, 0.05302456021308899, -0.18061180412769318, 0.11415122449398041, 0.013895376585423946, -0.0000984287544270046, 0.08972440659999847, 0.2568306028842926, 0.06809879839420319, -0.1314047873020172, 0.2550748884677887, 0.01573318801820278, 0.266006201505661, -0.1002604141831398, -0.23569439351558685, 0.0570424422621727, -0.04112030565738678, 0.0730304941534996, 0.28210166096687317, -0.24216359853744507, 0.4790133237838745, 0.2731104791164398, 0.1363091766834259, -0.14473068714141846, -0.004113472066819668, 0.4552653729915619, -0.4955683946609497, 0.09448219835758209, 0.28114259243011475, 0.27123939990997314, 0.20426006615161896, -0.044106196612119675, 0.3987661898136139, 0.03172668442130089, -0.09166066348552704, -0.03188920393586159, 0.21230152249336243, 0.16162455081939697, -0.1992017775774002, 0.15367862582206726, -0.27156537771224976, -0.1484859585762024, 0.09833616763353348, 0.16545890271663666, -0.04486287385225296, -0.05483665689826012, -0.04524737969040871, 0.4649934470653534, 0.01542611513286829, 0.037573203444480896, 0.12438636273145676, -0.11204637587070465, -0.07297534495592117, -0.009761051274836063, -0.1564260721206665, -0.18575406074523926, 0.1659887731075287, 0.005418175365775824, -0.16379369795322418, 0.10098782926797867, 0.13383616507053375, 0.14196869730949402, -0.19799326360225677, -0.039961326867341995, -0.051765382289886475, 0.2602352499961853, -0.05355175584554672, 0.14236034452915192, -0.13897846639156342, 0.2334451675415039, -0.05417494848370552, -0.19797447323799133, -0.2099362462759018, -0.32933416962623596, -0.049429163336753845, 0.036040063947439194, -0.0465727336704731, -0.32056766748428345, 0.15472735464572906, 0.2561609447002411, 0.49178436398506165, 0.2067631632089615, 0.21593865752220154, 0.12289609014987946, -0.15340754389762878, 0.06748519837856293, 0.2295544594526291, -0.16804544627666473, -0.09710994362831116, -0.18419136106967926, 0.22078527510166168, -0.14402081072330475, 0.1608467847108841, -0.1510821431875229, 0.3299406170845032, -0.008928301744163036, -0.38614797592163086, 0.2359045147895813, -0.024176454171538353, -0.004112242721021175, 0.014555811882019043, -0.2197534739971161, 0.12111081928014755, 0.03419354930520058, -0.2184261977672577, 0.03696860373020172, 0.011112995445728302, 0.01077943667769432, -0.23309326171875, -0.0685851126909256, -0.20777755975723267, -0.3811652660369873, 0.09632139652967453, 0.06028581038117409, 0.27851617336273193, 0.4364566206932068, 0.15420326590538025, -0.04076807200908661, 0.02908758632838726, 0.02019849605858326, 0.1976567804813385, -0.3940266966819763, -0.006436157040297985, 0.10196854919195175, 0.29663005471229553, -0.01789444498717785, -0.12317419797182083, 0.23352038860321045, -0.33257755637168884, -0.11972983926534653, -0.02047172375023365, -0.15577329695224762, 0.11439288407564163, -0.44246429204940796, -0.13843876123428345, 0.097617506980896, 0.2853338122367859, 0.301072895526886, 0.07683014124631882, 0.37268009781837463, -0.3630615770816803, 0.11047446727752686, 0.21781563758850098, -0.0019717353861778975, 0.12994305789470673, -0.5034924745559692, 0.394143283367157, -0.07287309318780899, -0.0024599183816462755, -0.25622475147247314, 0.1819547563791275, -0.3343546390533447, 0.030644088983535767, -0.15375712513923645, -0.07774509489536285, -0.06188827380537987, 0.08749696612358093, 0.09797967970371246, 0.1944570243358612, 0.26774072647094727, 0.43791496753692627, -0.39805567264556885, -0.3040062189102173, -0.15727122128009796, 0.003154330886900425, 0.22805099189281464, 0.2366497665643692, 0.22002333402633667, -0.4399894177913666, 0.3290269374847412, -0.06297847628593445, -0.04281521588563919, 0.17444972693920135, 0.17212599515914917, 0.0433405265212059, 0.2449776977300644, 0.22127249836921692, -0.5143004059791565, -0.0629652887582779, -0.2759098708629608, -0.11679758131504059, -0.24830539524555206, -0.10585334151983261, -0.49436691403388977, -0.11281654238700867, -0.05149171128869057, -0.09665044397115707, 0.24211658537387848, 0.06801237910985947, 0.12535224854946136, 0.35542425513267517, 0.26935166120529175, -0.24081242084503174, -0.26377588510513306, 0.1343434453010559, 0.208357572555542, 0.36442241072654724, -0.24597664177417755, 0.029648015275597572, 0.33260348439216614, -0.2595258951187134, 0.24063047766685486, 0.1443556696176529, -0.04784363508224487, 0.04585970565676689, -0.1798117309808731, 0.2733955383300781, 0.15589620172977448, -0.05378793179988861, 0.27242881059646606, -0.1172083243727684, -0.04659891873598099, 0.33741331100463867, 0.20774675905704498, 0.2603871524333954, -0.18745873868465424, -0.008987490087747574, -0.17119742929935455, -0.13502909243106842, 0.015484178438782692, 0.17691946029663086, 0.16203849017620087, -0.10837587714195251, 0.3226434588432312, -0.21131551265716553, 0.02399754896759987, 0.5458773970603943, -0.12504512071609497, -0.1972709596157074, 0.08840690553188324, 0.01942821964621544, 0.14174027740955353, -0.12438401579856873, 0.1642693728208542, 0.08365816622972488, 0.03379807621240616, -0.061602883040905, -0.011709321290254593, 0.34567078948020935, -0.05761833116412163, -0.01222903747111559, 0.33484897017478943, 0.07759303599596024, -0.176000714302063, -0.30202826857566833, 0.27544504404067993, -0.08607152104377747, -0.2417573183774948, 0.30073922872543335, -0.10744570940732956, -0.20146453380584717, -0.2796371281147003, -0.034814294427633286, 0.15236879885196686, 0.003260047174990177, -0.36524179577827454, -0.07268404960632324, 0.1637212336063385, -0.3032248616218567, -0.04253363981842995, 0.5167160630226135, -0.020455259829759598, -0.31529274582862854, 0.21179991960525513, 0.12787993252277374, -0.6013312935829163, -0.11409009248018265, -0.18209101259708405, 0.35222718119621277, 0.19575968384742737, -0.07731157541275024, 0.24028606712818146, 0.1986042857170105, -0.19035209715366364, 0.2183881253004074, -0.15873998403549194, -0.05581189692020416, 0.17174126207828522, -0.2697944939136505, 0.17106100916862488, -0.5567797422409058, 0.0502624548971653, 0.2657313644886017, 0.0668434277176857, -0.06790260970592499, 0.01601550169289112, 0.14888818562030792, -0.1219111904501915, -0.1209343820810318, -0.07853782922029495, -0.026311999186873436, -0.07649379968643188, -0.22642278671264648, 0.18896786868572235, 0.1208522841334343, -0.32512998580932617, -0.404824823141098, 0.31765058636665344, -0.012509198859333992, -0.4283924102783203, -0.14409856498241425, 0.30171817541122437, -0.051415637135505676, 0.13709600269794464, 0.012476244010031223, -0.1613820493221283, -0.08979294449090958, -0.22279523313045502, -0.04271826148033142, 0.4433058202266693, -0.2547512650489807, -0.3131156265735626, 0.09731421619653702, -0.12410645931959152, -0.3293617367744446, 0.18850889801979065, -0.3140164911746979, -0.1745637208223343, -0.18503382802009583, -0.26727697253227234, 0.18860433995723724, -0.21141117811203003, -0.0904051810503006, -0.1558578610420227, -0.1475188285112381, -0.055034901946783066, -0.026775861158967018, 0.03404078260064125, -0.15239277482032776, 0.1478813886642456, 0.03449098765850067, 0.002997094765305519, 0.22679339349269867, 0.2476949840784073, -0.05603179708123207, 0.12152063846588135, 0.16991209983825684, -0.19209058582782745, 0.07122030854225159, 0.24385705590248108, 0.20307359099388123, -0.0867673009634018, 0.23160839080810547, -0.0905618891119957, 0.2745828926563263, 0.013263721950352192, -0.08375096321105957, 0.13688480854034424, -0.18356268107891083, -0.3525174856185913, -0.34779196977615356, -0.2402094006538391, 0.6088139414787292, 0.0967445820569992, 0.12322716414928436, 0.1688028872013092, 0.15903696417808533, -0.10553314536809921, 0.3408973515033722, 0.43128636479377747, 0.0745995044708252, -0.012989293783903122, 0.10559689998626709, 0.025996489450335503, -0.11383788287639618, 0.053293198347091675, 0.2627308964729309, -0.11436048150062561, 0.03021370992064476, -0.10653854161500931, 0.1707153171300888, -0.19657167792320251, 0.47649624943733215, -0.14445576071739197, 0.769305944442749, -0.035719841718673706, 0.23964914679527283, 0.4776003062725067, -0.09307989478111267, -0.23563924431800842, -0.34318992495536804, 0.18071676790714264, -0.1458098143339157, -0.014919443055987358, 0.211404487490654, 0.41870051622390747, -0.19930881261825562, -0.13507065176963806, 0.2739540636539459, -0.09956362843513489, -0.4549606144428253, -0.20241451263427734, 0.23971623182296753, 0.15864446759223938, 0.12382737547159195, -0.28409478068351746, -0.06552954018115997, 0.1451343446969986, -0.24407032132148743, -0.411556601524353, 0.057784851640462875, 0.28164660930633545, 0.22926408052444458, -0.040580980479717255, 0.21081052720546722, 0.27248838543891907, -0.05597185716032982, 0.12101534754037857, 0.004205537494271994, -0.05513642355799675, 0.2381269484758377, -0.28472766280174255, -0.265424519777298, 0.23303663730621338, -0.049260202795267105, -0.36744317412376404, 0.1477973461151123, 0.007628999650478363, 0.08740462362766266, -0.02580980584025383, 0.0928836464881897, -0.24226461350917816, 0.41807836294174194, 0.19560588896274567, 0.17020182311534882, -0.06127554923295975, -0.2653442919254303, 0.32348334789276123, 0.024723660200834274, -0.29924967885017395, 0.014864368364214897, 0.13350285589694977, 0.424777090549469, 0.03807280585169792, 0.00039340779767371714, 0.30446869134902954, -0.1476372927427292, -0.19433851540088654, 0.17173127830028534, 0.16373321413993835, -0.13526234030723572, -0.022692568600177765, 0.03274386748671532, -0.046166982501745224, -0.19513873755931854, -0.13824649155139923, -0.023154854774475098, 0.04024578630924225, 0.006496441550552845, 0.1076529249548912, 0.2329392284154892, 0.10809744149446487, -0.025350436568260193, 0.1007285788655281, 0.23457461595535278, 0.16308821737766266, 0.10679574310779572, 0.5034264922142029, -0.10288093239068985, 0.0000378155309590511, 0.10288946330547333, -0.2992955446243286, -0.030014079064130783, 0.357036292552948, -0.10331960022449493, 0.032813142985105515, -0.345704048871994, 0.022395722568035126, -0.40542489290237427, 0.15436992049217224, 0.04002687707543373, 0.3694540560245514, -0.24469687044620514, 0.4087629020214081, 0.22197040915489197, -0.04421592876315117, -0.39023905992507935, 0.10622768104076385, -0.11621396988630295, -0.16542242467403412, -0.013980545103549957, 0.0065764449536800385, 0.02263406291604042, -0.33963990211486816, -0.18048949539661407, -0.017157964408397675, -0.3055603802204132, 0.011661316268146038, 0.24443940818309784, -0.05131268501281738, -0.02833079919219017, -0.1716640144586563, 0.20565684139728546, 0.016123218461871147, 0.2965013086795807, -0.2648400068283081, 0.17284227907657623, -0.3847390413284302, -0.1991506814956665, 0.3754584491252899, 0.21319164335727692, -0.5104273557662964, 0.21602870523929596, -0.0704800933599472, -0.26074567437171936, -0.34125640988349915, -0.2311667501926422, -0.4262496829032898, 0.040238261222839355, 0.1296227127313614, -0.3869567811489105, 0.051816198974847794, -0.35609492659568787, 0.2531931400299072, -0.013095131143927574, 0.23389291763305664, 0.039792221039533615, -0.28145211935043335, 0.33568382263183594, 0.0703078955411911, -0.2661926746368408, 0.13672982156276703, -0.07599688321352005, -0.11086420714855194, 0.4175834655761719, -0.7117079496383667, -0.36757874488830566, 0.35900938510894775, -0.15229570865631104, -0.19482941925525665, -0.11664421111345291, 0.17906378209590912, 0.38444316387176514, 0.10032688826322556, 0.25288456678390503, 0.052317988127470016, 0.052442967891693115, -0.22922416031360626, -0.13637642562389374, -0.031841401010751724, -0.1476055383682251, 0.06734320521354675, -0.04735395312309265, -0.10689185559749603, -0.1385093480348587, 0.2552298307418823, 0.30806559324264526, 0.13522139191627502, 0.10798940807580948, -0.32289832830429077, 0.018070043995976448, -0.06626790016889572, -0.11154034733772278, 0.10525777190923691, -0.3413805067539215, 0.2476096898317337, -0.00443796394392848, -0.052372533828020096, -0.30467912554740906, -0.005577515345066786, 0.22403272986412048, -0.04024913161993027, 0.0236827302724123, 0.25546330213546753, 0.15520444512367249, 0.1700175702571869, -0.24013131856918335, 0.3089320659637451, -0.12170711904764175, 0.17539167404174805, -0.5014063715934753, -0.3509093225002289, 0.0006238085916265845, 0.3231896162033081, 0.028810491785407066, -0.10301239043474197, -0.4011799693107605, -0.411256343126297, -0.013325238600373268, -0.06005844101309776, -0.0712687149643898, 0.13376323878765106, 0.1871432214975357, 0.23830029368400574, 0.3502773344516754, 0.13149455189704895, -0.13044346868991852, 0.15838417410850525, -0.08628274500370026, 0.22545309364795685, -0.15021997690200806, -0.2653093636035919, 0.09783755242824554, 0.11697094142436981, -0.015759136527776718, -0.11869745701551437, -0.04352438822388649, 0.1389894187450409, -0.1376386284828186, -0.17369194328784943, 0.08565617352724075, 0.11082971841096878, -0.4946596622467041, 0.12708446383476257, 0.22618354856967926, -0.21801213920116425, 0.10471974313259125, 0.1977413445711136, -0.5834035873413086, 0.07178950309753418, -0.032808151096105576, -0.0855025053024292, -0.31690797209739685, -0.2446814477443695, -0.3256523907184601, 0.42118924856185913, 0.18346527218818665, -0.041819922626018524, -0.154200941324234, -0.2127731442451477, -0.2858976423740387, 0.14634546637535095, 0.06421659141778946, -0.02504432573914528, 0.09231970459222794, -0.3122953176498413, -0.10757194459438324, -0.06573071330785751, 0.10177337378263474, 0.3179612159729004, 0.07541932910680771, 0.07796269655227661, 0.0931040570139885, 0.20619803667068481, -0.5103195905685425, 0.010746221989393234, 0.05124715715646744, -0.07952717691659927, 0.17001628875732422, 0.18234992027282715, -0.024253666400909424, 0.47058969736099243, 0.21611572802066803, -0.3451402187347412, -0.0712716355919838, 0.183835968375206, 0.15853673219680786, 0.16063056886196136, 0.1642482578754425, -0.24893073737621307, 0.39205458760261536, -0.20725442469120026, -0.25566354393959045, -0.2311619371175766, -0.32168757915496826, -0.19884389638900757, -0.16629517078399658, 0.25267601013183594, 0.0750611424446106, 0.1550600528717041, 0.32726311683654785, 0.2884824872016907, 0.3316945433616638, 0.07170430570840836, -0.05988895148038864, -0.1455032080411911, -0.4277596175670624, 0.2371806502342224, 0.02254597470164299, 0.1266622543334961, -0.0853128433227539, 0.19247977435588837, -0.5544071793556213, 0.15011559426784515, 0.21441228687763214, 0.4262469410896301, 0.010798693634569645, -0.008745373226702213, 0.03371408209204674, -0.04789524897933006, 0.29613974690437317, -0.03768434748053551, -0.09494152665138245, -0.33648166060447693, 0.3171926736831665, -0.3505818545818329, 0.24420331418514252, 0.19039539992809296, -0.21137961745262146, -0.25429436564445496, -0.026523984968662262, 0.6175892353057861, -0.09225789457559586, 0.3397495150566101, -0.16409894824028015, -0.2027907520532608, -0.3247806429862976, -0.010955289006233215, 0.2820080518722534, -0.04531450197100639, 0.18478846549987793, -0.16447584331035614, 0.15925592184066772, -0.14738792181015015, -0.017581069841980934, 0.3462062180042267, 0.16893050074577332, 0.3987201452255249, -0.17188678681850433, 0.11559566855430603, -0.0038418686017394066, 0.0148008419200778, 0.07263533771038055, -0.07562476396560669, -0.01767376996576786, -0.013725833036005497, -0.044566672295331955, -0.37089303135871887, 0.06384723633527756, -0.0021965510677546263, 0.23074398934841156, -0.2594979405403137, 0.3409539461135864, 0.15535379946231842, -0.04914874583482742, -0.12074927240610123, 0.1354106366634369, 0.10795451700687408, 0.11118322610855103, -0.24021531641483307, -0.09331358224153519, 0.00834822840988636, -0.30245256423950195, 0.11589857935905457, 0.32353848218917847, 0.3461337983608246, -0.2520941197872162, -0.03912844881415367, -0.10853034257888794 ]
https://github.com/huggingface/datasets/issues/3784
Unable to Download CNN-Dailymail Dataset
Glad to help @albertvillanova! Just fine-tuning the PR, will comment once I am able to get it up and running 😀
## Describe the bug I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening: - The dataset sits in Google Drive, and both the CNN and DM datasets are large. - Google is unable to scan the folder for viruses, **so the link which would originally download the dataset, now downloads the source code of this web page:** ![image](https://user-images.githubusercontent.com/58678541/155658435-c2f497d7-7601-4332-94b1-18a62dd96422.png) - **This leads to the following error**: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Steps to reproduce the bug ```python import datasets dataset = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` ## Expected results That the dataset is downloaded and processed just like other datasets. ## Actual results Hit with this error: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1
21
Unable to Download CNN-Dailymail Dataset
[ -0.10649226605892181, 0.10207291692495346, -0.20901411771774292, 0.17133240401744843, -0.10824070125818253, 0.4486195743083954, 0.16136839985847473, 0.13085418939590454, -0.24471533298492432, -0.008408903144299984, 0.05399603024125099, -0.013326880522072315, -0.2311871498823166, 0.22166424989700317, -0.09015896171331406, 0.16819056868553162, -0.1130620464682579, 0.17340612411499023, -0.2546873092651367, -0.19959837198257446, -0.12605145573616028, 0.262544184923172, -0.06906288862228394, -0.12883360683918, -0.11583013832569122, -0.3569870591163635, 0.1293196827173233, 0.20837803184986115, -0.3985168933868408, -0.027465082705020905, 0.1467285305261612, 0.06369251757860184, -0.21967747807502747, 0.07122080773115158, -0.00010177532385569066, 0.06739373505115509, 0.2640007734298706, -0.007053130306303501, -0.38011232018470764, -0.2279302328824997, 0.03539097681641579, -0.1811504364013672, -0.15707910060882568, -0.11237912625074387, 0.08260446041822433, -0.16392318904399872, -0.021107619628310204, 0.013554639182984829, 0.1841358244419098, 0.42785120010375977, 0.28961819410324097, 0.18156342208385468, 0.35394057631492615, -0.13917739689350128, -0.24661028385162354, -0.2137278914451599, -0.021877214312553406, 0.12375568598508835, -0.2704235017299652, 0.13894467055797577, 0.25843992829322815, 0.19625554978847504, -0.015486983582377434, 0.07214799523353577, -0.24713097512722015, 0.001704334281384945, -0.14098162949085236, -0.39794328808784485, 0.27898988127708435, 0.07217150181531906, 0.262861967086792, 0.29946309328079224, -0.1061631590127945, 0.2564393877983093, 0.20286068320274353, -0.09011754393577576, 0.15311984717845917, 0.44654104113578796, -0.2895582616329193, 0.16092060506343842, -0.2680976986885071, -0.12895166873931885, -0.37102097272872925, 0.39994415640830994, -0.3636524975299835, 0.09066624194383621, -0.12900173664093018, -0.03487084433436394, -0.06892184913158417, -0.08519396185874939, 0.4799615442752838, 0.010299590416252613, 0.40748271346092224, -0.05694081261754036, 0.3093680441379547, 0.09664153307676315, 0.26179587841033936, -0.09215392917394638, -0.09069425612688065, 0.01403855625540018, -0.0709419921040535, -0.011665845289826393, -0.025956718251109123, -0.14190275967121124, -0.0013826563954353333, -0.18441323935985565, -0.05397132411599159, 0.26926150918006897, 0.31801050901412964, 0.27189886569976807, 0.16164521872997284, 0.09630776196718216, -0.15888367593288422, 0.18228940665721893, -0.1754610240459442, 0.11127956211566925, 0.3813036382198334, -0.2066294550895691, 0.03627236187458038, 0.1789182424545288, -0.2725363075733185, -0.03634066879749298, -0.1192597895860672, 0.2893386483192444, -0.15736012160778046, -0.20175276696681976, -0.034452587366104126, -0.04537476599216461, 0.1985495388507843, -0.06464161723852158, -0.4120081961154938, 0.03689293563365936, 0.03872738406062126, -0.14713242650032043, 0.45122161507606506, -0.25055238604545593, 0.26939356327056885, -0.23292195796966553, 0.13499663770198822, -0.00605513621121645, -0.13731053471565247, 0.15616440773010254, 0.009103340096771717, 0.4297725558280945, -0.11998843401670456, 0.24519795179367065, 0.023689979687333107, 0.40443792939186096, 0.07507728785276413, 0.03525702655315399, -0.2647399604320526, -0.5911279320716858, 0.3755437135696411, 0.26811304688453674, -0.040735382586717606, -0.3826989233493805, 0.4906851351261139, -0.03343413770198822, -0.14372844994068146, 0.16977480053901672, -0.40310320258140564, 0.225357785820961, 0.07363723963499069, -0.09201215952634811, -0.014277742244303226, 0.29369524121284485, -0.49520042538642883, 0.07846824079751968, -0.14025500416755676, -0.29472362995147705, 0.18056803941726685, 0.18869349360466003, -0.18676163256168365, -0.08685106784105301, -0.0463302880525589, 0.08772071450948715, 0.28831592202186584, -0.03934943303465843, -0.6424969434738159, -0.08896257728338242, -0.005020317621529102, -0.289673775434494, 0.06541953235864639, 0.12389469891786575, -0.027028558775782585, 0.10706038773059845, -0.02564130537211895, 0.6358479857444763, -0.1556231528520584, 0.06518982350826263, -0.09170094132423401, -0.36019977927207947, 0.05573403462767601, 0.185236856341362, 0.4710550606250763, 0.0958457738161087, 0.10340471565723419, -0.005180167034268379, 0.07324356585741043, 0.17018301784992218, -0.11947698891162872, 0.15298467874526978, -0.07266169786453247, -0.2819119095802307, 0.015688523650169373, 0.14252538979053497, -0.16426828503608704, -0.25092703104019165, 0.17922958731651306, 0.29437604546546936, -0.26552537083625793, 0.022485807538032532, -0.5281566977500916, 0.05263394117355347, 0.010216510854661465, 0.15938609838485718, 0.33595043420791626, 0.0487411804497242, 0.10730288922786713, 0.17531469464302063, -0.027590369805693626, 0.40249037742614746, -0.13955138623714447, 0.11107438802719116, -0.13314761221408844, 0.2485693246126175, -0.19837716221809387, -0.016235440969467163, 0.28076666593551636, 0.023518843576312065, 0.19511346518993378, -0.1574266254901886, 0.03176140785217285, -0.20986084640026093, -0.2066311538219452, 0.010914571583271027, 0.09361974149942398, -0.10549994558095932, 0.13647355139255524, -0.07928218692541122, 0.07392778247594833, 0.3758234977722168, -0.09444186091423035, 0.11504589021205902, 0.06835130602121353, 0.1891305148601532, 0.19271664321422577, -0.25186270475387573, 0.08897143602371216, 0.09080161154270172, 0.18932411074638367, -0.01998688466846943, 0.08105596154928207, -0.3361852467060089, 0.06679002940654755, -0.38727086782455444, 0.2692648470401764, -0.24754732847213745, -0.3007447421550751, -0.020121781155467033, 0.36683282256126404, -0.15247845649719238, -0.005293442402034998, 0.033811818808317184, -0.24438075721263885, -0.048866868019104004, -0.3032901883125305, 0.43621712923049927, 0.1634276658296585, 0.21446044743061066, 0.36709630489349365, 0.14496536552906036, -0.028331300243735313, -0.30990538001060486, 0.17566634714603424, 0.0997532457113266, 0.03571319952607155, 0.18990451097488403, -0.012976998463273048, 0.041889969259500504, -0.537598192691803, -0.09151016175746918, 0.2684829831123352, 0.26138201355934143, -0.06192236393690109, -0.22072255611419678, -0.44505220651626587, -0.18674425780773163, 0.21251235902309418, -0.3133309483528137, -0.004947691690176725, -0.3505348861217499, 0.17096251249313354, 0.009959980845451355, 0.007727101910859346, -0.21208976209163666, 0.011219235137104988, 0.3132294714450836, 0.39134013652801514, 0.16746048629283905, -0.10514850914478302, -0.02174082025885582, -0.11208455264568329, 0.2991451919078827, -0.0360892079770565, -0.15088488161563873, 0.15242138504981995, -0.132658913731575, 0.04104137793183327, -0.26342251896858215, -0.21849070489406586, 0.24553564190864563, 0.24191413819789886, 0.10440249741077423, -0.11002731323242188, 0.4218664765357971, 0.15875914692878723, 0.017479833215475082, -0.1782640516757965, -0.17666392028331757, -0.10797902196645737, -0.03146567940711975, -0.11483616381883621, -0.08739230781793594, -0.008342573419213295, -0.6674628257751465, -0.5571029782295227, -0.12962070107460022, -0.013755927793681622, -0.1268041878938675, 0.14301957190036774, 0.3068806827068329, 0.01590176299214363, -0.10560232400894165, -0.002600250765681267, 0.18655769526958466, -0.364790678024292, -0.18826410174369812, 0.5653076171875, -0.4913110136985779, -0.6272264719009399, 0.2561960220336914, 0.09948001801967621, -0.05988210812211037, -0.19193153083324432, -0.3760782778263092, -0.24614645540714264, -0.05682891607284546, -0.38457268476486206, 0.12674589455127716, -0.1604423075914383, -0.07833250612020493, -0.15627768635749817, -0.23148831725120544, -0.007062097545713186, -0.05894579365849495, 0.020599111914634705, 0.018140166997909546, -0.17068471014499664, -0.06170845776796341, 0.3228065073490143, 0.0366743728518486, 0.3641926646232605, 0.12472927570343018, -0.06142469123005867, 0.21530026197433472, -0.043525420129299164, 0.1361905038356781, 0.2534309923648834, -0.3970419764518738, -0.07964267581701279, 0.2629220485687256, -0.007683401927351952, 0.17785879969596863, 0.012522324919700623, -0.6307902336120605, -0.1928153783082962, -0.21132050454616547, -0.41567936539649963, -0.2058238983154297, -0.042519088834524155, 0.6065401434898376, 0.14123894274234772, 0.5255665183067322, 0.1415279656648636, -0.0029843926895409822, -0.3514323830604553, 0.12215480953454971, 0.24610300362110138, -0.18999120593070984, 0.07044132053852081, 0.5041539669036865, -0.022238491103053093, -0.38133755326271057, 0.12676401436328888, -0.2008828967809677, 0.3012404143810272, -0.16940823197364807, 0.18206679821014404, 0.18013961613178253, 0.0004074568278156221, 0.3522971570491791, -0.17788133025169373, 0.1250290721654892, 0.02365490235388279, 0.16628894209861755, 0.049826480448246, -0.12210410833358765, -0.4461122751235962, 0.023831233382225037, 0.2528211772441864, 0.16224758327007294, -0.1613345593214035, 0.06330138444900513, 0.4929821491241455, -0.026118477806448936, 0.021075928583741188, -0.1309262365102768, 0.04172653704881668, -0.33569231629371643, -0.36428046226501465, -0.13159187138080597, -0.31592854857444763, 0.17693856358528137, 0.02907838672399521, -0.27607589960098267, 0.022950883954763412, -0.061079397797584534, 0.16534018516540527, 0.1236504539847374, 0.10466208308935165, 0.2784520387649536, -0.020089825615286827, 0.13824833929538727, 0.03254035860300064, 0.2367485761642456, 0.41541481018066406, 0.03578870743513107, 0.04321035370230675, 0.19306115806102753, -0.16461868584156036, -0.07950079441070557, 0.4400743842124939, -0.4305339753627777, -0.5277210474014282, 0.26142948865890503, 0.14545771479606628, 0.23703184723854065, 0.1715083122253418, 0.41700708866119385, -0.11732473224401474, -0.5119782090187073, -0.10926755517721176, 0.1126476600766182, 0.11041781306266785, 0.12942816317081451, -0.029054805636405945, -0.15950456261634827, 0.175811767578125, -0.004151773173362017, -0.2352154552936554, 0.6199111938476562, 0.1466876119375229, 0.06551408022642136, 0.2737374007701874, 0.20451048016548157, 0.22315411269664764, -0.42732641100883484, 0.18114061653614044, -0.06343767791986465, -0.33626148104667664, -0.29885023832321167, -0.024999462068080902, 0.05494968220591545, 0.5637397170066833, 0.09391359984874725, 0.22388219833374023, 0.10144511610269547, 0.13974013924598694, 0.03905932232737541, 0.3319433927536011, -0.1072651818394661, 0.15632852911949158, -0.057649530470371246, 0.1918186992406845, -0.05505247786641121, 0.2207455337047577, -0.08272414654493332, -0.18625403940677643, 0.031339798122644424, -0.1597483605146408, -0.2495502531528473, 0.009908350184559822, -0.0187674667686224, 0.3638090491294861, -0.1558406949043274, 0.08532356470823288, -0.1742529720067978, -0.22895413637161255, 0.1824340671300888, 0.15423192083835602, -0.24954545497894287, -0.019952375441789627, -0.20366866886615753, -0.5015665292739868, -0.16644568741321564, 0.10805404186248779, 0.2596926689147949, -0.30304351449012756, -0.11045728623867035, 0.0017193403327837586, 0.020132139325141907, -0.06695355474948883, 0.029043350368738174, 0.17644861340522766, -0.08828981220722198, -0.07083866745233536, -0.15351085364818573, 0.17284879088401794, -0.04625527188181877, -0.0877959355711937, 0.20551060140132904, -0.10861071944236755, 0.09447496384382248, 0.19178296625614166, 0.1834188997745514, -0.26196709275245667, -0.2661488354206085, 0.28589174151420593, 0.04796319454908371, -0.3273490071296692, 0.3619152009487152, 0.09571617841720581, -0.3228449821472168, -0.21264302730560303, 0.060188718140125275, -0.1351340264081955, -0.194756418466568, 0.13382582366466522, -0.006025413051247597, 0.09939553588628769, 0.0449952594935894, 0.37322670221328735, 0.201677605509758, 0.1922495812177658, -0.23231779038906097, -0.5142399668693542, 0.0970158502459526, 0.08544989675283432, 0.10268885642290115, 0.08970987051725388, -0.0558653324842453, 0.034826166927814484, 0.2233085036277771, -0.15777727961540222, -0.4176645874977112, 0.19613787531852722, 0.09801135212182999, -0.25087791681289673, 0.08883348107337952, -0.08220037072896957, 0.5687844753265381, 0.20314189791679382, 0.20844003558158875, -0.11822954565286636, -0.26721706986427307, -0.3509516716003418, 0.10089270025491714, 0.06184995546936989, 0.008983103558421135, -0.050834525376558304, 0.22618058323860168, -0.2718827426433563, -0.409221351146698, 0.37257686257362366, 0.09502051770687103, -0.046426571905612946, 0.25305619835853577, -0.0787690207362175, 0.13134239614009857, 0.01737680844962597, 0.0925782173871994, 0.05293719843029976, 0.029305338859558105, 0.4835990369319916, -0.02392326109111309, 0.19812333583831787, 0.04742301627993584, -0.08068887144327164, -0.059944961220026016, -0.1270224153995514, -0.03690614923834801, -0.038073573261499405, 0.3189013600349426, -0.3513489067554474, -0.05587373673915863, 0.28712764382362366, 0.15047390758991241, 0.08954671025276184, -0.061886925250291824, -0.04813991114497185, 0.0019623469561338425, 0.2648753225803375, -0.3573221266269684, -0.14881449937820435, 0.19283083081245422, 0.09698942303657532, 0.08608423173427582, -0.018084073439240456, -0.006483112927526236, 0.09190448373556137, 0.003364891977980733, 0.15056604146957397, 0.2649012804031372, 0.1543915718793869, 0.04325905814766884, 0.26111727952957153, -0.16749462485313416, 0.054018959403038025, 0.08791232854127884, 0.03830640763044357, -0.041373997926712036, 0.34857359528541565, 0.06786512583494186, -0.21489325165748596, 0.2351538985967636, 0.015689680352807045, 0.09124480932950974, -0.31488746404647827, 0.43915843963623047, 0.06085396558046341, -0.12259384989738464, 0.22947880625724792, 0.19612589478492737, 0.17413713037967682, 0.13428127765655518, 0.1342812478542328, -0.5625160336494446, 0.46292123198509216, 0.1371489018201828, 0.18121100962162018, 0.1807379275560379, -0.21029697358608246, -0.06520295143127441, 0.3061351180076599, 0.11957364529371262, -0.37010324001312256, 0.02550591714680195, 0.24254243075847626, -0.17319068312644958, -0.12377194315195084, 0.026051921769976616, -0.08681157231330872, 0.0286667849868536, -0.19744443893432617, 0.11384082585573196, 0.004313850775361061, -0.05424530804157257, 0.03734545409679413, 0.1924603134393692, 0.18156154453754425, 0.08641662448644638, 0.2410193681716919, 0.1196734681725502, 0.14904548227787018, -0.31629031896591187, -0.1288723349571228, 0.18995846807956696, 0.6240440011024475, 0.05726121366024017, 0.13705883920192719, 0.21558865904808044, -0.2966465651988983, 0.10375144332647324, 0.0849236398935318, 0.10596053302288055, 0.007215345278382301, 0.09749391674995422, -0.0031514305155724287, 0.12174500524997711, -0.17554283142089844, -0.3738443851470947, -0.4931384325027466, -0.13029468059539795, 0.2562622129917145, -0.026598522439599037, 0.14794082939624786, -0.17333409190177917, 0.13604117929935455, -0.006054280791431665, 0.3898693919181824, 0.14259915053844452, 0.31315404176712036, -0.12464336305856705, -0.19950513541698456, -0.4157872498035431, 0.22044436633586884, 0.05476810038089752, 0.18323810398578644, -0.04069237411022186, -0.022487027570605278, 0.19552473723888397, 0.255439817905426, 0.19367660582065582, 0.14207255840301514, -0.23082780838012695, 0.18464016914367676, -0.2679404318332672, 0.1349242925643921, 0.4106619954109192, -0.045843806117773056, 0.036690883338451385, -0.12808625400066376, 0.0043573337607085705, -0.535727322101593, 0.11562177538871765, 0.01284603588283062, -0.2844139337539673, -0.27927538752555847, 0.20657673478126526, 0.15338344871997833, 0.019031602889299393, 0.4675363600254059, -0.10160226374864578, -0.25010693073272705, -0.23104020953178406, -0.021766524761915207, -0.168633833527565, 0.186943918466568, 0.2575792074203491, 0.06242391839623451, 0.13714970648288727, -0.2437031865119934, 0.07193759828805923, 0.021455422043800354, -0.007542287465184927, -0.0773802325129509, -0.1700863540172577, 0.22401700913906097, -0.18195775151252747, 0.14163300395011902, -0.03868807479739189, 0.01990470476448536, -0.09037137031555176, -0.24022246897220612, -0.0624706968665123, -0.5236115455627441, 0.38805654644966125, -0.19721439480781555, -0.13914959132671356, -0.07786601036787033, -0.07278767228126526, 0.0655040442943573, 0.12059760838747025, -0.2277441769838333, 0.22197994589805603, 0.0823836699128151, -0.24560920894145966, -0.1500067263841629, 0.1026955395936966, 0.22251208126544952, -0.12418525665998459, -0.0669446513056755, 0.49717509746551514, 0.4015417695045471, -0.48893433809280396, -0.1768094301223755, -0.025967366993427277 ]
https://github.com/huggingface/datasets/issues/3778
Not be able to download dataset - "Newsroom"
Hi @Darshan2104, thanks for reporting. Please note that at Hugging Face we do not host the data of this dataset, but just a loading script pointing to the host of the data owners. Apparently the data owners changed their data host server. After googling it, I found their new website at: https://lil.nlp.cornell.edu/newsroom/index.html - Download page: https://lil.nlp.cornell.edu/newsroom/download/index.html I'm fixing the link in our Datasets library.
Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody has this dataset please share your google drive link, it would be a great help! Thanks Darshan Tank
64
Not be able to download dataset - "Newsroom"
[ -0.47861331701278687, 0.3707923889160156, -0.2388700395822525, 0.049442995339632034, 0.08762171864509583, 0.2738115191459656, 0.015446764416992664, 0.36219558119773865, -0.2296508252620697, 0.12967820465564728, -0.06215604022145271, -0.020395658910274506, 0.025191770866513252, 0.1277775764465332, -0.008560437709093094, -0.008816351182758808, 0.04319189116358757, 0.1119556576013565, 0.01850755698978901, -0.05120723322033882, -0.12833453714847565, 0.1700095534324646, -0.17415393888950348, -0.005661494564265013, -0.05316809192299843, -0.3447278141975403, 0.05582896247506142, 0.015467355027794838, -0.5410259366035461, -0.15173940360546112, 0.19248975813388824, 0.25051718950271606, -0.05544279143214226, 0.24628424644470215, -0.00010261733405059204, 0.01562413014471531, 0.1775718629360199, 0.03342201188206673, -0.3278834819793701, -0.17103655636310577, -0.34718453884124756, -0.42663219571113586, -0.15271742641925812, -0.33363237977027893, -0.0375332310795784, -0.22802869975566864, 0.1799807846546173, -0.272634893655777, 0.1508529782295227, 0.5299286246299744, 0.3443356156349182, 0.2947729825973511, 0.25638681650161743, -0.3708835244178772, 0.08814465999603271, -0.20409785211086273, -0.056800976395606995, 0.10961604863405228, 0.06682895869016647, 0.1888452172279358, 0.18406622111797333, 0.18580394983291626, 0.06995270401239395, 0.21147838234901428, -0.22887994349002838, -0.010673181153833866, 0.1178891584277153, -0.33443742990493774, 0.4219190776348114, 0.1218409314751625, 0.4472876191139221, 0.002210195641964674, -0.06983125954866409, 0.15772783756256104, 0.25292208790779114, 0.12027944624423981, 0.15448851883411407, 0.36946380138397217, -0.3119870722293854, 0.08649766445159912, -0.18800576031208038, -0.26368027925491333, -0.2166774421930313, 0.28511446714401245, -0.04683389887213707, 0.3184624910354614, -0.14142504334449768, 0.121730275452137, 0.02686718851327896, 0.09988684952259064, 0.2739127576351166, 0.00825695600360632, -0.12314461916685104, 0.08441972732543945, 0.1347821205854416, 0.06805304437875748, 0.05559220165014267, 0.2104957550764084, 0.07026036828756332, -0.12025132775306702, -0.56609708070755, -0.11042561382055283, 0.21117782592773438, -0.08508796244859695, 0.17120499908924103, -0.33654898405075073, -0.07967797666788101, 0.24286003410816193, 0.37570905685424805, 0.239432230591774, 0.019511913880705833, -0.032291460782289505, -0.17182068526744843, -0.14842428267002106, -0.18511651456356049, -0.08667256683111191, 0.3195073902606964, -0.3264698386192322, -0.07770157605409622, 0.07900737971067429, 0.3158043920993805, 0.002920297207310796, -0.16619069874286652, 0.18803514540195465, 0.12360867112874985, 0.10125801712274551, -0.15214236080646515, 0.17573422193527222, 0.10693463683128357, -0.12945838272571564, -0.3383670747280121, 0.03433334827423096, -0.1659793108701706, -0.16562174260616302, 0.17669621109962463, 0.02977731078863144, 0.2448800653219223, -0.06008868291974068, -0.1601468175649643, -0.1268463283777237, -0.0891328901052475, -0.0735190138220787, -0.10553625226020813, 0.3173379600048065, 0.13718979060649872, 0.31036558747291565, -0.13937348127365112, -0.037112656980752945, -0.012543993070721626, 0.14206920564174652, -0.13837286829948425, -0.34610310196876526, -0.3261343538761139, 0.29069337248802185, -0.09804216027259827, -0.015007277019321918, 0.05760614946484566, 0.12159708887338638, -0.05725810304284096, 0.19917233288288116, -0.20041240751743317, 0.2778291702270508, 0.2284768670797348, -0.005642440170049667, 0.09680720418691635, 0.2973436713218689, -0.538431704044342, -0.014876609668135643, -0.2138361781835556, -0.3709116280078888, 0.20676292479038239, -0.03794208914041519, -0.3506391942501068, 0.24499739706516266, -0.20326611399650574, -0.12542931735515594, 0.8827683925628662, -0.28001245856285095, -0.8278747797012329, 0.0054681869223713875, -0.28066107630729675, -0.40519291162490845, 0.14014872908592224, 0.2362675666809082, 0.11135758459568024, 0.17134062945842743, -0.33873820304870605, 0.38618671894073486, 0.022410249337553978, 0.066482312977314, -0.1139746904373169, -0.07832828164100647, 0.06709205359220505, 0.16422873735427856, 0.3469955623149872, 0.15601181983947754, 0.07775597274303436, 0.2733365297317505, 0.23762103915214539, 0.22493338584899902, 0.06473832577466965, 0.22575566172599792, 0.13179226219654083, 0.027968058362603188, -0.09075301140546799, -0.1806764155626297, -0.11670161783695221, -0.1633252054452896, -0.051276709884405136, -0.08530335128307343, -0.02917853370308876, -0.03045303001999855, -0.6083881855010986, -0.04220934212207794, -0.12452945113182068, -0.033191077411174774, 0.2831691801548004, 0.3505886495113373, 0.21183499693870544, 0.12163662165403366, -0.048794977366924286, 0.2122076451778412, -0.0752788856625557, 0.06825533509254456, -0.11881104111671448, 0.06741154938936234, -0.414395272731781, 0.030543189495801926, 0.2153932899236679, -0.11379168182611465, 0.23375192284584045, 0.04890844598412514, -0.1019112691283226, 0.21005409955978394, -0.07914752513170242, 0.07367359101772308, 0.27521806955337524, -0.22076936066150665, -0.042832911014556885, -0.34140849113464355, 0.13766084611415863, -0.023775441572070122, -0.022949401289224625, 0.17236347496509552, -0.05793486908078194, -0.025033416226506233, -0.09661280363798141, -0.08267106860876083, -0.06691762804985046, -0.04031197354197502, 0.48646000027656555, -0.07295646518468857, 0.29886749386787415, -0.21132861077785492, 0.06730663031339645, -0.0016027885721996427, 0.06656824052333832, -0.19309647381305695, 0.014908762648701668, -0.06119050458073616, 0.47547072172164917, 0.183579221367836, 0.05470551550388336, 0.07290448248386383, -0.07826356589794159, -0.06591138988733292, -0.03510771319270134, 0.3781253397464752, 0.2162656933069229, 0.16531004011631012, 0.1395368129014969, 0.05280810594558716, 0.1578245908021927, -0.32437989115715027, 0.16336406767368317, -0.10348130017518997, 0.12224215269088745, 0.19057327508926392, 0.10914821177721024, -0.05717875063419342, -0.23045232892036438, 0.07210443168878555, 0.3667447865009308, 0.17160159349441528, -0.02783573791384697, -0.13610221445560455, -0.2792156934738159, -0.6065189838409424, -0.03337712958455086, 0.21262472867965698, 0.05475302413105965, -0.4051048755645752, 0.08367013186216354, 0.20806024968624115, 0.21133321523666382, 0.008799579925835133, -0.3628157079219818, 0.12194938212633133, -0.01672958768904209, 0.29451823234558105, -0.08220046013593674, -0.01919569820165634, -0.02596425637602806, 0.27507317066192627, 0.07004053890705109, 0.21785736083984375, 0.3971916437149048, -0.22613127529621124, 0.06966445595026016, -0.7447347640991211, -0.021351836621761322, 0.21008940041065216, 0.23587365448474884, 0.3797786831855774, 0.10902629792690277, 0.47838661074638367, -0.08078186959028244, -0.1820264458656311, 0.13050784170627594, 0.006885625422000885, 0.0009238921338692307, -0.03838429972529411, -0.24248407781124115, -0.24461792409420013, 0.16861705482006073, -0.4979152977466583, -0.4204932451248169, -0.1508985310792923, 0.022179966792464256, -0.13340215384960175, 0.013800754211843014, 0.042409498244524, -0.07959067821502686, -0.04550330340862274, 0.002544152783229947, 0.04861003905534744, -0.22721730172634125, -0.21378907561302185, 0.33886685967445374, -0.3385120928287506, -0.46617910265922546, 0.2264036387205124, 0.23631848394870758, 0.15853933990001678, -0.06124486029148102, -0.4071600139141083, 0.02065213769674301, -0.1591954082250595, 0.07759737223386765, 0.2401367872953415, 0.1259932518005371, 0.2710694968700409, -0.24995124340057373, -0.19103261828422546, -0.06573859602212906, 0.02370867133140564, -0.05538532882928848, -0.027909470722079277, 0.31641408801078796, -0.04773090034723282, 0.25455522537231445, -0.07899346202611923, 0.6085690259933472, 0.2710060477256775, -0.1181323230266571, 0.43065744638442993, -0.14520032703876495, 0.2855733335018158, -0.03393377363681793, -0.3896459937095642, 0.1520097702741623, 0.12316340208053589, 0.12215670943260193, 0.016809560358524323, -0.117850162088871, -0.4123111367225647, -0.2509479522705078, 0.014992401003837585, -0.4470617175102234, -0.15511037409305573, -0.1258133202791214, 0.13178372383117676, 0.1306694746017456, 0.43754318356513977, 0.04339445009827614, 0.14236226677894592, -0.4415198564529419, 0.18000680208206177, 0.304559588432312, -0.09355315566062927, 0.0049269297160208225, -0.11728471517562866, -0.05305938795208931, -0.3123669922351837, 0.14100003242492676, -0.1794099360704422, 0.2156638205051422, -0.1207582876086235, 0.21122898161411285, 0.20555251836776733, -0.13439719378948212, 0.4957088232040405, -0.41893911361694336, 0.3109433948993683, 0.07529136538505554, 0.30297422409057617, -0.014835254289209843, -0.12553666532039642, -0.3639476001262665, 0.3502238094806671, 0.1412351131439209, 0.05186685919761658, -0.2028546780347824, 0.08899763971567154, 0.3500804007053375, -0.12595310807228088, 0.05135025829076767, 0.005537175107747316, -0.0679653137922287, -0.1796862781047821, -0.46330562233924866, -0.10369903594255447, -0.17925111949443817, 0.09055423736572266, -0.10377457737922668, -0.1703682243824005, 0.018807990476489067, 0.13912707567214966, -0.17355865240097046, 0.12498804926872253, 0.2021813988685608, 0.2062280923128128, 0.05948042497038841, 0.25745877623558044, 0.115366131067276, 0.20371437072753906, 0.42094212770462036, -0.05938323959708214, -0.19440136849880219, 0.3391491770744324, -0.24489080905914307, 0.26908692717552185, 0.37986114621162415, -0.2179548591375351, -0.1857173889875412, 0.22279873490333557, 0.07753109186887741, 0.1343357264995575, 0.17955560982227325, 0.4036124050617218, -0.10142882913351059, -0.18240711092948914, -0.22454574704170227, 0.11250650137662888, 0.0978364497423172, -0.12259592860937119, 0.0025269913021475077, 0.10748254507780075, 0.13166850805282593, -0.26712706685066223, -0.18656426668167114, 0.9006599187850952, -0.06494028866291046, -0.1215086430311203, -0.09082330018281937, -0.1477365493774414, 0.39908188581466675, -0.39859721064567566, 0.19612669944763184, -0.19618597626686096, -0.05985703319311142, -0.10088308155536652, -0.05964436009526253, 0.006277657113969326, 0.31970128417015076, -0.19017301499843597, 0.21922458708286285, 0.06530813127756119, 0.2542032301425934, -0.09387591481208801, 0.3485603928565979, -0.24418969452381134, 0.15467789769172668, -0.23956884443759918, 0.26392221450805664, -0.09960880875587463, 0.2821124196052551, -0.3150671720504761, 0.01971561647951603, -0.005012258421629667, -0.03968933969736099, -0.3911001980304718, 0.14259086549282074, -0.07925461232662201, 0.2398952692747116, -0.1898472011089325, -0.17225292325019836, -0.03539839759469032, 0.18351562321186066, 0.08693850785493851, 0.27542388439178467, -0.20005762577056885, 0.14992022514343262, -0.020798569545149803, -0.5399023294448853, -0.011130186729133129, 0.20122402906417847, -0.008821142837405205, -0.2644669711589813, -0.45363956689834595, 0.10555800795555115, -0.03015654720366001, -0.2385295033454895, 0.01320621557533741, -0.09623944014310837, 0.44459840655326843, -0.2914104461669922, -0.14571236073970795, -0.048575982451438904, -0.11444766074419022, -0.06711640954017639, 0.2812892496585846, -0.22506436705589294, 0.019159890711307526, -0.09142269939184189, 0.307345449924469, -0.29824528098106384, -0.14981083571910858, 0.40254586935043335, 0.07016631960868835, 0.08406420052051544, 0.27712035179138184, 0.10243135690689087, -0.3075304925441742, -0.39288920164108276, -0.015828989446163177, 0.0993531122803688, -0.2518711984157562, -0.016652429476380348, 0.011427045799791813, -0.05556618422269821, 0.20891624689102173, 0.021240875124931335, 0.15187567472457886, 0.012314893305301666, -0.07362861186265945, -0.5394707918167114, 0.026613693684339523, -0.021975569427013397, -0.13237205147743225, -0.05895518139004707, -0.10707543790340424, -0.27368706464767456, 0.318254292011261, 0.01330764964222908, -0.44582030177116394, 0.02756553329527378, -0.253125935792923, 0.11360364407300949, -0.005868338979780674, 0.08080265671014786, -0.030056890100240707, 0.030210938304662704, 0.21572478115558624, 0.019753476604819298, -0.2850649654865265, -0.39745673537254333, 0.1635063737630844, 0.04380147531628609, 0.018148289993405342, -0.21219973266124725, 0.03573780879378319, -0.2982313334941864, -0.3904961049556732, 0.3062358796596527, 0.006900446023792028, -0.08550737053155899, 0.2596859931945801, 0.05261263623833656, 0.19963790476322174, -0.026447843760252, -0.1606435924768448, 0.0012599226320162416, 0.03489886224269867, 0.43424808979034424, -0.2741410732269287, 0.2964561879634857, 0.04916665703058243, -0.057878363877534866, -0.44033050537109375, -0.09011346101760864, 0.3687889873981476, 0.31242477893829346, 0.09265848994255066, -0.2623584568500519, 0.053195178508758545, 0.3556435704231262, 0.09086933732032776, 0.2637459337711334, -0.2470686137676239, 0.08143173158168793, 0.04701652750372887, 0.29859524965286255, -0.3770195245742798, -0.1181878000497818, 0.16637350618839264, -0.06909463554620743, -0.04677548259496689, -0.05174800381064415, 0.21321365237236023, -0.051477205008268356, 0.1465826779603958, 0.088544562458992, 0.2577665150165558, -0.07626542448997498, 0.18344958126544952, 0.5120958089828491, 0.1029982939362526, 0.029845543205738068, 0.14785148203372955, 0.32677191495895386, -0.21240265667438507, 0.4933035969734192, 0.014716953039169312, 0.05606455355882645, 0.12082742899656296, 0.1710120439529419, 0.29164329171180725, -0.12210112810134888, 0.12580902874469757, 0.29670825600624084, -0.10009961575269699, 0.03503620997071266, -0.004702088423073292, -0.038049109280109406, 0.06856761127710342, 0.06419617682695389, -0.47933390736579895, 0.3320291340351105, -0.07698232680559158, 0.1842944473028183, -0.08531270921230316, -0.27089229226112366, -0.2400333136320114, 0.12823712825775146, -0.11219219863414764, -0.23199816048145294, 0.21889269351959229, 0.142449289560318, -0.27004942297935486, -0.29515838623046875, 0.49195000529289246, -0.07145716995000839, 0.14494705200195312, -0.19516126811504364, 0.43562716245651245, -0.14976322650909424, 0.07288545370101929, 0.2174358069896698, 0.6362842321395874, 0.15164916217327118, 0.14931625127792358, 0.12987706065177917, 0.10503274202346802, 0.14422105252742767, -0.3633496165275574, -0.1566382199525833, 0.33494049310684204, 0.2202053666114807, -0.09943408519029617, 0.1472918540239334, 0.2799413204193115, -0.19525694847106934, -0.041032105684280396, 0.20328065752983093, 0.003398579778149724, 0.11786013096570969, -0.06982893496751785, -0.13625694811344147, 0.10329828411340714, -0.07665243744850159, -0.25390830636024475, -0.21983371675014496, -0.1747664213180542, 0.20613695681095123, -0.15650691092014313, 0.26525941491127014, -0.2461736500263214, 0.13476595282554626, -0.03357985243201256, 0.36731091141700745, 0.2575458884239197, 0.25044435262680054, -0.07309146225452423, -0.540642261505127, -0.5999894142150879, 0.15176483988761902, -0.03465220704674721, -0.21639585494995117, -0.06633980572223663, 0.1261274367570877, -0.04156889393925667, 0.38555505871772766, 0.32719552516937256, 0.3043988347053528, -0.22922000288963318, 0.156952902674675, -0.35522550344467163, -0.1947726309299469, 0.12914985418319702, 0.21484871208667755, -0.1144196093082428, -0.20903511345386505, 0.2024272382259369, -0.0860339105129242, 0.11819285899400711, -0.011058866046369076, -0.20796947181224823, 0.013076710514724255, 0.15223699808120728, 0.34778892993927, -0.11912506073713303, 0.44210100173950195, -0.29220306873321533, -0.1570350080728531, -0.17397066950798035, -0.06045881286263466, -0.14454270899295807, 0.17838729918003082, 0.2030411958694458, -0.06537929177284241, 0.007170369848608971, 0.10874750465154648, 0.13094370067119598, -0.07845216989517212, -0.040165144950151443, 0.1514645367860794, -0.21061189472675323, -0.28508204221725464, -0.04585997015237808, 0.09490408003330231, 0.09308014065027237, -0.09946276992559433, -0.10884006321430206, -0.1553429514169693, -0.22626616060733795, -0.1563473492860794, 0.2514326870441437, 0.025362014770507812, -0.16245605051517487, -0.23307397961616516, 0.13751518726348877, -0.10431967675685883, -0.05796562507748604, -0.339399516582489, 0.22461247444152832, 0.28812530636787415, -0.1653461456298828, 0.001322458265349269, 0.11782070249319077, 0.05085274949669838, 0.050919681787490845, -0.03879585117101669, 0.47203129529953003, 0.10388409346342087, -0.25541961193084717, -0.10063020884990692, -0.07310274988412857 ]
https://github.com/huggingface/datasets/issues/3776
Allow download only some files from the Wikipedia dataset
Hi @jvanz, thank you for your proposal. In fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_files` to load only a specific subset of the data files. See: - #3401
**Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I would like to use the `data_files` argument in the `load_dataset` function to define which file in the wikipedia dataset I would like to download. Thus, I can work with the dataset in a smaller machine using the Apache Beam `DirectRunner`. **Describe alternatives you've considered** I've tried to use the `simple` Wikipedia dataset. But it's in English and I would like to use Portuguese texts in my model.
70
Allow download only some files from the Wikipedia dataset
[ -0.23206068575382233, 0.22669683396816254, -0.2680682837963104, 0.12891067564487457, -0.24667908251285553, 0.1235252246260643, -0.03986170142889023, 0.5405309200286865, 0.36851954460144043, -0.07119730859994888, -0.20530764758586884, -0.07727891951799393, 0.08551084995269775, -0.0961332768201828, -0.12313847243785858, 0.06809879839420319, -0.05817438289523125, 0.2575899660587311, -0.06117592006921768, -0.18249672651290894, -0.1908576786518097, -0.08126558363437653, 0.13294973969459534, -0.021680710837244987, 0.19620415568351746, 0.0553940124809742, 0.5059530735015869, 0.0011520388070493937, -0.5623053312301636, -0.23279443383216858, 0.10814651846885681, 0.6210541129112244, -0.023056572303175926, -0.2532888650894165, -0.00010421359911561012, -0.07939665019512177, 0.2255672663450241, -0.02991078794002533, -0.4400935471057892, 0.05773881450295448, -0.43969666957855225, -0.08215191215276718, 0.07816068083047867, -0.406432181596756, 0.02065376751124859, -0.1108856275677681, 0.36644062399864197, -0.033587824553251266, 0.2961936295032501, 0.26556214690208435, 0.2553638815879822, -0.08180416375398636, -0.04228690639138222, -0.003393613500520587, 0.5727571845054626, 0.09722477942705154, 0.09978185594081879, 0.04085947945713997, 0.19200579822063446, 0.11825574189424515, -0.15160882472991943, 0.43615901470184326, -0.1994577944278717, 0.24357666075229645, 0.2282588928937912, -0.15885844826698303, -0.13628321886062622, -0.6566970348358154, 0.352851003408432, 0.500129222869873, 0.7009572386741638, -0.002030700445175171, -0.11647019535303116, -0.0858602300286293, -0.13690368831157684, 0.10815197974443436, 0.05997852981090546, 0.36633196473121643, -0.4510941505432129, 0.14855772256851196, 0.1582636684179306, -0.4223095774650574, -0.2699601352214813, 0.4184240996837616, 0.024485984817147255, 0.25921374559402466, 0.13324324786663055, -0.025208700448274612, 0.13002346456050873, -0.019542112946510315, -0.1751268059015274, -0.1283208131790161, 0.08670798689126968, 0.21384279429912567, 0.10821140557527542, -0.16821002960205078, -0.13813334703445435, 0.10908812284469604, 0.5015681982040405, 0.0276210717856884, -0.14661362767219543, 0.24805481731891632, -0.0005477883387356997, -0.022936323657631874, 0.46659234166145325, -0.45011240243911743, 0.08599795401096344, 0.111527219414711, 0.5995323061943054, 0.3160842955112457, -0.1282469928264618, 0.13512632250785828, 0.24367062747478485, -0.06447198241949081, -0.38291412591934204, 0.026578418910503387, 0.13436384499073029, -0.1927313208580017, 0.1103176698088646, 0.0737786665558815, 0.09530208259820938, -0.38128867745399475, -0.2505283057689667, 0.3074556589126587, -0.0062591684982180595, -0.14303666353225708, 0.04796731844544411, 0.12684206664562225, 0.041068680584430695, -0.09992203116416931, -0.050266508013010025, 0.1336713582277298, 0.1577233523130417, -0.03444286435842514, 0.5328547358512878, -0.0757443755865097, 0.2070961594581604, -0.01452640537172556, -0.06859035789966583, -0.06404802948236465, 0.3354300260543823, -0.16894549131393433, 0.2274770438671112, 0.3474486768245697, 0.28197935223579407, 0.28790050745010376, -0.011827688664197922, -0.29196175932884216, -0.13267533481121063, 0.11923369020223618, -0.09575839340686798, 0.008944893255829811, 0.04632434993982315, 0.274203896522522, 0.008494597859680653, 0.1087774708867073, 0.06250567734241486, 0.11744242906570435, -0.18668001890182495, -0.29537513852119446, -0.021466389298439026, 0.3160884380340576, 0.12593387067317963, -0.009427644312381744, 0.09159912914037704, 0.3938416540622711, 0.015511536039412022, 0.0010596116771921515, -0.07080505043268204, -0.06860945373773575, 0.04631992056965828, 0.21038854122161865, -0.20652800798416138, 0.013950434513390064, 0.07350803911685944, 0.41874611377716064, 0.521222710609436, -0.16501189768314362, -0.276968777179718, 0.13779857754707336, 0.07398390024900436, -0.09757908433675766, 0.11719261109828949, 0.24408568441867828, 0.3889870345592499, 0.007385550066828728, -0.16319261491298676, 0.36827921867370605, 0.34723803400993347, 0.14994877576828003, 0.061120133846998215, -0.2861995995044708, 0.1286294013261795, 0.07005864381790161, 0.2780458629131317, 0.17181634902954102, 0.3788934648036957, 0.3606499135494232, 0.41717329621315, -0.1709991991519928, 0.1652238368988037, 0.062236238270998, 0.006427772808820009, -0.025500968098640442, 0.04630492627620697, -0.10323378443717957, -0.2025245726108551, -0.1147071123123169, -0.01879134587943554, -0.008763504214584827, -0.16431669890880585, -0.21972143650054932, -0.33655375242233276, -0.2322179228067398, 0.11030196398496628, -0.10959771275520325, 0.2598609924316406, 0.024857712909579277, 0.019140256568789482, 0.24467994272708893, 0.026694826781749725, -0.23738014698028564, -0.12065562605857849, 0.17466296255588531, 0.05929091200232506, 0.021766813471913338, -0.03554384782910347, 0.12085318565368652, 0.19149602949619293, -0.22341519594192505, 0.11085014790296555, 0.07052019983530045, 0.21213586628437042, -0.1738627851009369, 0.1281525045633316, 0.1306667923927307, 0.21948190033435822, -0.015077228657901287, 0.13963964581489563, -0.2902701795101166, -0.050157152116298676, 0.3782413601875305, 0.21335375308990479, -0.033297620713710785, -0.3890857398509979, 0.1515756994485855, 0.09877349436283112, 0.04879002645611763, 0.10727190971374512, -0.035683438181877136, 0.25638073682785034, -0.25250473618507385, -0.05141320079565048, -0.39056235551834106, 0.001482094288803637, 0.4412335157394409, -0.17106018960475922, -0.045696038752794266, -0.20627723634243011, -0.10472103953361511, 0.2397516518831253, 0.138800248503685, 0.2706139385700226, 0.13420633971691132, -0.07703833281993866, 0.08527930080890656, 0.20229369401931763, 0.27554798126220703, -0.18021002411842346, 0.24374885857105255, 0.33541736006736755, -0.07508792728185654, 0.018681297078728676, -0.2878364622592926, 0.16898012161254883, -0.003632661420851946, -0.29270172119140625, 0.2500336468219757, 0.062124744057655334, -0.035274066030979156, -0.4069417715072632, 0.00974062830209732, -0.1319304257631302, 0.0594048909842968, 0.08680950850248337, -0.10009140521287918, -0.2216331958770752, -0.5106093287467957, 0.3743656873703003, 0.18060597777366638, -0.2638948857784271, -0.11900229752063751, 0.2929733991622925, 0.31731072068214417, -0.2433984875679016, -0.018535396084189415, -0.24238592386245728, 0.1378752440214157, 0.042531128972768784, -0.07316301017999649, -0.21253475546836853, -0.22711552679538727, 0.11160433292388916, 0.16290283203125, 0.18845431506633759, 0.24707725644111633, 0.28652945160865784, -0.042740389704704285, -0.14248274266719818, -0.5430800914764404, -0.14704160392284393, 0.06680795550346375, 0.03352772444486618, -0.10752604901790619, -0.035544853657484055, 0.6928520202636719, -0.05811045318841934, -0.11484063416719437, -0.0843251422047615, 0.010393805801868439, 0.11679306626319885, -0.13354887068271637, -0.030037399381399155, 0.2718339264392853, -0.054408181458711624, -0.4106083810329437, -0.11005021631717682, -0.2906164526939392, 0.26043835282325745, 0.43613874912261963, 0.29800158739089966, 0.29909616708755493, 0.20070567727088928, -0.16564568877220154, -0.14353539049625397, 0.27279794216156006, -0.13622169196605682, 0.05353062227368355, 0.5897860527038574, -0.10564357042312622, -0.3469785153865814, 0.1684366762638092, -0.024965506047010422, -0.17753764986991882, 0.4472573399543762, -0.3049321174621582, -0.05348977819085121, 0.058385055512189865, 0.13733813166618347, -0.031325530260801315, 0.03396797925233841, 0.11049260199069977, -0.0965714082121849, -0.21670131385326385, -0.1185292974114418, 0.21384108066558838, 0.0008603243622928858, -0.060540709644556046, -0.31929370760917664, 0.01943095773458481, 0.006621410604566336, 0.11510375142097473, 0.6831987500190735, 0.03835363686084747, 0.32476282119750977, 0.4272494316101074, 0.04043271392583847, 0.20953615009784698, 0.1455289125442505, -0.1187664344906807, -0.07110537588596344, -0.10813554376363754, -0.047849658876657486, 0.19922690093517303, -0.007323241792619228, -0.4213509261608124, -0.28596949577331543, 0.0014590073842555285, -0.30411097407341003, -0.37838196754455566, -0.011214598082005978, 0.4657478630542755, 0.16197359561920166, 0.2839186489582062, 0.05442709103226662, -0.06980251520872116, -0.31162258982658386, 0.11364679783582687, 0.26899227499961853, 0.11298622936010361, 0.08355081081390381, 0.030609065666794777, -0.06543572247028351, -0.47430211305618286, -0.06155829131603241, 0.01951875537633896, -0.1423376351594925, -0.15778057277202606, -0.057165779173374176, 0.14510837197303772, 0.17537392675876617, 0.2884001135826111, -0.20898081362247467, 0.4640519917011261, -0.06012978032231331, 0.2217392474412918, -0.29876261949539185, 0.2405814677476883, -0.20145344734191895, 0.15160098671913147, 0.28093427419662476, 0.1628614217042923, -0.4111570715904236, 0.08510687202215195, -0.00803750567138195, 0.1734466850757599, 0.16880455613136292, 0.015703925862908363, 0.18082597851753235, -0.1631513088941574, -0.6744197607040405, -0.050809748470783234, 0.2503121495246887, -0.061315909028053284, -0.09407442063093185, -0.08125945925712585, -0.024252671748399734, 0.2046850174665451, -0.06959685683250427, 0.2072603404521942, 0.03368343785405159, 0.3315258324146271, -0.34262514114379883, -0.1014876514673233, -0.17206640541553497, -0.026447206735610962, 0.23581625521183014, 0.20276276767253876, -0.07346536219120026, -0.24582432210445404, -0.17103959619998932, -0.5240694284439087, 0.21104037761688232, -0.08258938044309616, 0.0659237951040268, 0.2688061594963074, -0.12195193022489548, 0.22192606329917908, 0.2968919277191162, -0.1826837658882141, -0.357130229473114, -0.1353769451379776, -0.2852170467376709, 0.4266783595085144, -0.006052521988749504, -0.32138392329216003, 0.24552085995674133, 0.10859173536300659, -0.410957932472229, -0.21447394788265228, 0.27754834294319153, 0.6047561168670654, -0.016737641766667366, 0.2828395664691925, -0.11375510692596436, -0.009483685716986656, 0.521196186542511, -0.3018938899040222, 0.16996686160564423, -0.0262941624969244, -0.07563388347625732, -0.21336835622787476, -0.046442754566669464, -0.1912287324666977, 0.0757099986076355, -0.1701301634311676, -0.04077824577689171, 0.13758255541324615, 0.10882142931222916, 0.002085625659674406, 0.34259647130966187, -0.19384683668613434, -0.16234593093395233, 0.03315563499927521, 0.13362739980220795, -0.1040850281715393, 0.2134416252374649, -0.015950828790664673, -0.10540005564689636, -0.08284517377614975, -0.2599325180053711, -0.15825313329696655, 0.01353253610432148, -0.307914674282074, 0.1060853898525238, -0.46055567264556885, -0.20523890852928162, -0.11353351175785065, 0.375677227973938, -0.13903076946735382, 0.24149742722511292, -0.3370342254638672, -0.0874677374958992, -0.2274785190820694, -0.29664620757102966, -0.33080247044563293, 0.09082260727882385, 0.009542661719024181, -0.21148452162742615, -0.10189014673233032, 0.23905397951602936, 0.026022136211395264, -0.21222242712974548, -0.04077279940247536, 0.29323410987854004, -0.12814901769161224, 0.03942463919520378, -0.12448185682296753, -0.17326843738555908, -0.2867368161678314, -0.17051962018013, 0.1897718906402588, -0.04428349807858467, 0.18655449151992798, -0.1812329888343811, 0.26660045981407166, -0.239018514752388, -0.11607569456100464, 0.605893075466156, 0.1585223376750946, 0.06594520807266235, 0.30047476291656494, -0.06220497563481331, -0.40579503774642944, -0.36277785897254944, -0.3174101710319519, -0.638868510723114, -0.21378791332244873, -0.013797061517834663, -0.1777721345424652, 0.01725630834698677, -0.4812541604042053, 0.07574345171451569, 0.09302939474582672, 0.10156472772359848, 0.2226099669933319, -0.42410847544670105, -0.05809098109602928, 0.12987525761127472, -0.2697462737560272, 0.12609806656837463, 0.013801133260130882, -0.4253454804420471, 0.20842567086219788, -0.14128825068473816, -0.3367183804512024, 0.004401277285069227, -0.13337072730064392, 0.09840153902769089, 0.337360143661499, 0.13638406991958618, -0.23718485236167908, -0.096445232629776, 0.1063738688826561, -0.21520641446113586, -0.27096498012542725, -0.30818960070610046, -0.10315132886171341, 0.04536711052060127, 0.1373613476753235, -0.26608213782310486, 0.02222595177590847, -0.30326950550079346, 0.1100548654794693, -0.03199438005685806, 0.08840873837471008, -0.19819331169128418, 0.046136919409036636, 0.16299015283584595, 0.29954877495765686, -0.0037423984613269567, -0.40007713437080383, 0.11491008847951889, -0.18421146273612976, 0.1584029644727707, 0.11368059366941452, 0.1109243705868721, 0.18841181695461273, -0.016344038769602776, -0.18465492129325867, -0.030316513031721115, 0.22483423352241516, 0.17130056023597717, 0.1178693026304245, 0.1680063158273697, -0.16426102817058563, 0.4666774272918701, 0.003849191591143608, 0.39225149154663086, -0.21062172949314117, 0.1468583643436432, 0.021778801456093788, 0.29024431109428406, -0.17471371591091156, -0.16506710648536682, 0.4090742766857147, -0.2398291379213333, 0.14563524723052979, 0.00817749835550785, 0.10120648890733719, -0.4344653785228729, 0.29258105158805847, 0.11156667768955231, -0.07243004441261292, -0.023595158010721207, 0.29317525029182434, 0.33183160424232483, -0.013782121241092682, -0.11796258389949799, -0.3545759320259094, 0.3547144830226898, 0.0829390361905098, 0.08398878574371338, -0.10261109471321106, 0.07387920469045639, 0.04785453528165817, -0.1902817338705063, -0.1819160133600235, -0.14457514882087708, 0.2968693673610687, 0.15082678198814392, -0.14357759058475494, 0.1626638025045395, 0.21812671422958374, -0.18320722877979279, 0.44919756054878235, 0.24650250375270844, -0.11205218732357025, 0.029150711372494698, 0.11961500346660614, -0.14785198867321014, -0.22999364137649536, -0.25771278142929077, 0.15206106007099152, 0.07109787315130234, -0.0437098927795887, -0.40277770161628723, -0.08474394679069519, 0.26034218072891235, -0.15315301716327667, -0.302785187959671, 0.5601679682731628, -0.21398499608039856, -0.06423959881067276, -0.14067210257053375, -0.2617940306663513, -0.19101360440254211, 0.06254870444536209, 0.16342616081237793, -0.03786829859018326, -0.07464893907308578, 0.13861601054668427, 0.012883895076811314, -0.07337610423564911, -0.04332195967435837, -0.1503632813692093, -0.41290050745010376, -0.05691045522689819, 0.298100084066391, 0.10402193665504456, 0.35391631722450256, 0.24964238703250885, -0.22715850174427032, -0.19557541608810425, 0.1569688320159912, -0.18326565623283386, -0.1991850882768631, -0.5460636615753174, 0.3200099468231201, -0.10238713771104813, 0.28462767601013184, -0.11779110878705978, -0.06245510280132294, 0.18089371919631958, 0.001362507464364171, 0.01370170060545206, 0.2138562649488449, -0.11918344348669052, 0.1152150109410286, -0.20353096723556519, 0.2893449366092682, -0.047828707844018936, 0.17162418365478516, -0.07207075506448746, -0.19998373091220856, -0.3262964189052582, 0.13613450527191162, -0.26049426198005676, -0.3814743161201477, 0.17396791279315948, 0.18682600557804108, -0.043995074927806854, 0.32655036449432373, 0.0712476372718811, -0.22231201827526093, 0.07535065710544586, 0.2539575695991516, -0.02237240970134735, -0.30442893505096436, 0.11140397936105728, 0.2949230372905731, -0.12975110113620758, -0.17721617221832275, 0.2524385452270508, -0.25675344467163086, 0.20969155430793762, -0.05195968970656395, -0.1638590544462204, 0.09990311414003372, 0.22231429815292358, 0.4451420307159424, -0.08197268843650818, 0.3153403401374817, -0.4167989492416382, 0.026987651363015175, -0.06235380470752716, 0.11859684437513351, -0.12365444749593735, 0.10972899198532104, 0.15356846153736115, 0.1513308584690094, -0.11795108020305634, 0.03350086882710457, 0.0027149904053658247, 0.553209662437439, -0.0022469935938715935, 0.36786848306655884, 0.11562987416982651, -0.15420334041118622, 0.27292197942733765, 0.1165962666273117, -0.14458641409873962, -0.1471899300813675, -0.2598988711833954, -0.20593532919883728, -0.20847980678081512, -0.49536654353141785, 0.26040253043174744, -0.4095061421394348, -0.2418057918548584, -0.1465391218662262, 0.3614062964916229, 0.007647641934454441, 0.16285623610019684, -0.12766717374324799, 0.22549179196357727, 0.2713480293750763, -0.2390042543411255, -0.2565422058105469, 0.052242036908864975, -0.013507585972547531, -0.15378674864768982, -0.21093015372753143, 0.1868220418691635, 0.2896113991737366, -0.3720146417617798, -0.42020854353904724, -0.4408073425292969 ]
https://github.com/huggingface/datasets/issues/3773
Checksum mismatch for the reddit_tifu dataset
@albertvillanova Thank you for the fast response! However I am still getting the same error: Downloading: 2.23kB [00:00, ?B/s] Traceback (most recent call last): File "C:\Users\Anna\PycharmProjects\summarization\main.py", line 17, in <module> dataset = load_dataset('reddit_tifu', 'long') File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 594, in download_and_prepare self._download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 665, in _download_and_prepare verify_checksums( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\utils\info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] I have cleaned the cache/huggingface/datasets & cache/huggingface/modules files and also tried on another machine with a fresh installation of trasnformers & datasets. The reddit_tifu.py that gets downloaded still has the previous url on line 51, _URL = "https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF"
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
112
Checksum mismatch for the reddit_tifu dataset
[ -0.14222565293312073, -0.10443805903196335, -0.19664524495601654, 0.06598220020532608, 0.1302528977394104, -0.13522258400917053, 0.07190945744514465, 0.403835654258728, -0.0133992163464427, -0.05401935055851936, -0.09158962219953537, 0.16410423815250397, 0.4143873155117035, 0.3662427067756653, -0.13201038539409637, 0.1445336937904358, 0.25888121128082275, 0.16240134835243225, -0.12695980072021484, -0.31228873133659363, 0.08324556797742844, 0.11243545264005661, -0.14232312142848969, -0.15005743503570557, -0.0024154556449502707, 0.2632541358470917, 0.28674930334091187, 0.2699022591114044, -0.27365732192993164, 0.17540696263313293, 0.18079833686351776, 0.16789384186267853, -0.38769418001174927, 0.5640372037887573, -0.0001067620687535964, -0.0999366044998169, 0.11724480986595154, -0.25486820936203003, 0.08503171801567078, 0.03793900087475777, -0.1815861165523529, 0.2984936833381653, -0.37200284004211426, 0.028542516753077507, -0.0603664331138134, 0.11161664128303528, 0.06557119637727737, 0.06700440496206284, -0.1201193630695343, 0.24571968615055084, 0.23297367990016937, -0.007484463509172201, 0.1733429729938507, 0.13872453570365906, 0.25955483317375183, 0.11180707812309265, 0.11011020094156265, 0.26610082387924194, -0.08146519213914871, -0.046313922852277756, -0.1646537333726883, 0.23939962685108185, 0.06212673708796501, -0.086459681391716, -0.07506940513849258, -0.03764908015727997, 0.06165366247296333, 0.1324796974658966, 0.08285190910100937, 0.28010499477386475, 0.06887829303741455, -0.039117131382226944, -0.2260550558567047, 0.3974962532520294, -0.1680825799703598, -0.14105011522769928, 0.19544526934623718, 0.18276271224021912, -0.10630392283201218, 0.14538897573947906, 0.05349452793598175, 0.14690735936164856, 0.06679709255695343, 0.14309565722942352, -0.006681601982563734, 0.0402323342859745, 0.0871574878692627, -0.012309320271015167, -0.36978456377983093, -0.1053725853562355, 0.07863806188106537, 0.25657397508621216, -0.0900171548128128, -0.20640866458415985, -0.36143794655799866, -0.03869800269603729, 0.07715750485658646, -0.21107129752635956, 0.470991313457489, 0.24725213646888733, 0.3009383976459503, 0.48737427592277527, -0.24505336582660675, 0.14851810038089752, -0.023470483720302582, 0.10088802129030228, -0.03281189128756523, 0.2774389684200287, 0.20946095883846283, 0.13540400564670563, -0.254399836063385, 0.1578327864408493, 0.1465967893600464, -0.18892733752727509, 0.3928854167461395, 0.26448819041252136, -0.014543402940034866, -0.3949821889400482, -0.08249913901090622, 0.21314334869384766, 0.3263610303401947, -0.12755709886550903, 0.017744509503245354, 0.2197856456041336, 0.01499960571527481, 0.1166231632232666, -0.3693293333053589, 0.279253751039505, -0.16196490824222565, -0.1250303089618683, -0.346720427274704, 0.02377752587199211, -0.07441916316747665, -0.32408615946769714, -0.008720641024410725, -0.2094735950231552, 0.45573118329048157, -0.08867278695106506, 0.47289878129959106, -0.08757418394088745, -0.2540639340877533, -0.13438861072063446, 0.3891110122203827, 0.41248592734336853, -0.12291932106018066, 0.03913319483399391, 0.22937965393066406, 0.2751948833465576, -0.07244913280010223, -0.05284998193383217, -0.1855897605419159, -0.04642981290817261, -0.11595974862575531, 0.23268179595470428, -0.10749699175357819, -0.06648264825344086, 0.1621936559677124, -0.3650681674480438, 0.3167301416397095, -0.3114860951900482, 0.05876275897026062, -0.2684909403324127, -0.4016974866390228, -0.26364055275917053, -0.09292172640562057, -0.027730431407690048, -0.31062743067741394, 0.35407575964927673, 0.3100533187389374, -0.07953652739524841, 0.4345903694629669, 0.29214778542518616, 0.0680299922823906, -0.19752384722232819, -0.06670495867729187, 0.13623850047588348, 0.22634319961071014, -0.6615322828292847, -0.5504740476608276, -0.256322979927063, 0.14402498304843903, -0.04577767848968506, 0.171890988945961, 0.06298518925905228, 0.008698882535099983, -0.23281808197498322, 0.4803321063518524, 0.025372257456183434, -0.04188825190067291, 0.28092509508132935, -0.4237839877605438, -0.25256386399269104, -0.04178537428379059, 0.00031132742878980935, 0.14696791768074036, -0.01650244928896427, 0.3180111348628998, -0.3023310601711273, 0.34893596172332764, 0.0315396785736084, -0.20286016166210175, -0.1665465235710144, 0.5424060821533203, -0.11191762238740921, 0.17224782705307007, -0.32141244411468506, 0.0774424746632576, -0.012087369337677956, 0.1862379014492035, 0.530148446559906, 0.039538245648145676, 0.04229792207479477, -0.5167880058288574, -0.06930536031723022, 0.2439260631799698, 0.1705051064491272, 0.2531503736972809, 0.1960953325033188, 0.3522815406322479, -0.06717472523450851, -0.18560650944709778, -0.0024372220505028963, -0.3586977422237396, 0.042078860104084015, 0.09668207913637161, 0.22430406510829926, -0.19658777117729187, -0.22866609692573547, 0.36903831362724304, -0.1083744689822197, 0.041486188769340515, -0.014802608639001846, -0.08733034878969193, 0.4134070575237274, 0.2825595438480377, -0.1038963720202446, 0.01737375371158123, 0.25891759991645813, 0.07155432552099228, -0.21052294969558716, -0.21323804557323456, 0.5797767043113708, -0.021792054176330566, -0.06443909555673599, 0.10059987753629684, 0.33663296699523926, -0.15973475575447083, -0.11216895282268524, -0.13643348217010498, 0.011642835102975368, 0.41183415055274963, -0.04962042719125748, -0.020959148183465004, -0.4695281386375427, 0.2632039189338684, -0.029250144958496094, -0.3970354199409485, -0.02757568284869194, -0.06247793883085251, 0.10931111127138138, 0.4024747312068939, 0.00004851034464081749, 0.03427506983280182, -0.08240926265716553, 0.20864610373973846, -0.04962657764554024, 0.026586230844259262, 0.5410640239715576, 0.3148307204246521, 0.20024079084396362, 0.0059026204980909824, -0.039625853300094604, -0.4421415328979492, -0.24682267010211945, -0.15612047910690308, -0.09145859628915787, 0.1874694526195526, 0.40731507539749146, 0.16999538242816925, -0.12810418009757996, -0.3002091944217682, -0.06411866098642349, -0.13885165750980377, 0.1730814129114151, -0.20810182392597198, -0.10906129330396652, -0.16742844879627228, -0.28240758180618286, 0.2145266979932785, 0.16409584879875183, 0.05280027538537979, -0.3630602955818176, 0.05069209262728691, -0.0849442258477211, -0.21776609122753143, -0.06994771957397461, -0.42078930139541626, -0.3021787405014038, 0.32826441526412964, -0.08246322721242905, 0.046640414744615555, -0.2758690416812897, -0.05626719444990158, 0.10193393379449844, 0.19778089225292206, 0.15898390114307404, 0.14829282462596893, -0.434469074010849, -0.004777363035827875, -0.032729048281908035, -0.4033166468143463, 0.18375644087791443, -0.1087791919708252, 0.27721869945526123, 0.23825928568840027, 0.3897310495376587, 0.07805473357439041, -0.20381860435009003, 0.2513960599899292, -0.304535835981369, -0.41835758090019226, 0.3126942813396454, -0.010622147470712662, -0.1921047419309616, -0.1822868138551712, -0.025504687801003456, 0.23160064220428467, -0.19954553246498108, -0.1391129046678543, 0.2880702614784241, 0.369369775056839, -0.07522769272327423, 0.06442713737487793, -0.31128600239753723, -0.05591490492224693, 0.24221110343933105, -0.4078170657157898, -0.7388376593589783, 0.45995497703552246, -0.06099691614508629, -0.42016366124153137, -0.027427470311522484, 0.15443073213100433, 0.1103655993938446, 0.25046730041503906, -0.1849190890789032, -0.36890020966529846, -0.03142274543642998, -0.1265137940645218, 0.12523825466632843, -0.09109729528427124, -0.14478175342082977, -0.06199448183178902, -0.2523662745952606, -0.32046473026275635, 0.0571853369474411, 0.16972683370113373, 0.00651794858276844, 0.25831860303878784, -0.124966561794281, -0.015220358967781067, 0.1211475357413292, -0.059279460459947586, 0.17989476025104523, -0.15777289867401123, -0.19460423290729523, 0.05220296233892441, 0.26215818524360657, 0.025855762884020805, 0.005078492686152458, -0.03568081930279732, 0.08761818706989288, 0.004860883112996817, 0.13714909553527832, -0.05910820886492729, -0.09846056252717972, -0.12391895800828934, -0.12516534328460693, -0.20153318345546722, -0.35498589277267456, 0.12878602743148804, -0.30715638399124146, -0.17486074566841125, 0.2272447794675827, -0.018787622451782227, -0.19936487078666687, -0.29973918199539185, 0.16206012666225433, 0.13805215060710907, -0.4553608298301697, -0.08255355060100555, -0.5735774040222168, 0.15501880645751953, -0.002468194579705596, 0.232920303940773, 0.26224109530448914, 0.5715526342391968, 0.16417963802814484, -0.3074127733707428, 0.03740694746375084, 0.0704674944281578, 0.021431922912597656, -0.611308217048645, 0.24790850281715393, 0.12261861562728882, 0.3440795838832855, 0.22321666777133942, -0.083137147128582, -0.2200758010149002, 0.07488828897476196, 0.47658467292785645, 0.0451476126909256, -0.31452712416648865, 0.20949596166610718, 0.3099008798599243, 0.1719794124364853, -0.0756826177239418, -0.11757231503725052, -0.3872244954109192, -0.14536729454994202, -0.14801347255706787, -0.058899275958538055, 0.11906608939170837, 0.09815482795238495, 0.046571940183639526, 0.059311918914318085, -0.12490386515855789, 0.05493029206991196, 0.3092915415763855, 0.21603792905807495, 0.0685143992304802, -0.1138107031583786, -0.2536185085773468, -0.2960675358772278, -0.1140056625008583, 0.35006770491600037, 0.20853368937969208, 0.09844926744699478, -0.2491403967142105, -0.08198153227567673, -0.44308042526245117, 0.07476655393838882, -0.03813721239566803, 0.06002751365303993, -0.1977708637714386, -0.22455202043056488, 0.09489814937114716, 0.3209749162197113, 0.13226085901260376, -0.13737356662750244, 0.008997567929327488, -0.24851641058921814, -0.14586801826953888, -0.3924299478530884, -0.3522776663303375, -0.10634428262710571, 0.42971739172935486, 0.23469410836696625, -0.07002868503332138, 0.5981249809265137, 0.31916284561157227, 0.8615162372589111, -0.2744414508342743, -0.0858849510550499, 0.049909546971321106, -0.3665095567703247, 0.22950777411460876, -0.2775725722312927, 0.1274399310350418, -0.12149111181497574, -0.5124898552894592, -0.0018712272867560387, -0.1265331506729126, -0.14875149726867676, 0.04469817876815796, -0.018059249967336655, 0.15575389564037323, -0.06232915073633194, 0.007453638128936291, 0.1860130876302719, 0.04094851016998291, 0.15422967076301575, 0.12499035894870758, 0.09821899980306625, 0.1677391678094864, 0.14676904678344727, 0.1097196564078331, 0.09912402182817459, -0.06341259926557541, -0.35156986117362976, -0.04847533255815506, -0.517920970916748, -0.042828503996133804, -0.022889476269483566, -0.0010429848916828632, 0.006682807579636574, -0.1210341826081276, -0.6185848712921143, 0.11688586324453354, 0.5268989205360413, 0.3380441665649414, 0.1267869770526886, 0.16571171581745148, 0.595617413520813, 0.018163157626986504, 0.06244286149740219, -0.05925128236413002, 0.4334346354007721, -0.03988545387983322, -0.35142266750335693, 0.2026648223400116, 0.1140623688697815, -0.36906903982162476, -0.04685689136385918, 0.09741778671741486, -0.3829525113105774, -0.0851392149925232, 0.021944480016827583, -0.05890226364135742, -0.017655057832598686, -0.20956425368785858, 0.1939745545387268, 0.1548880785703659, 0.01757098361849785, 0.1119532436132431, 0.32713860273361206, -0.42740270495414734, -0.12065551429986954, 0.33355653285980225, 0.2891641855239868, -0.23324517905712128, 0.275808185338974, -0.19620531797409058, -0.18397381901741028, -0.2420550137758255, -0.4081205129623413, -0.3563987910747528, -0.2468874305486679, -0.08602064847946167, -0.5507462620735168, -0.08097273856401443, 0.10504572838544846, 0.24410167336463928, 0.2970673441886902, 0.27324050664901733, 0.18253697454929352, -0.5157673954963684, -0.2646504342556, -0.05679868534207344, 0.2574826180934906, -0.0018834222573786974, -0.2433241903781891, 0.04650946334004402, -0.19460543990135193, 0.020380401983857155, -0.3887527585029602, -0.07859162986278534, -0.2912108600139618, -0.016971608623862267, 0.06762886047363281, 0.1233239620923996, 0.2429172694683075, -0.17969632148742676, 0.19921506941318512, -0.10271764546632767, -0.03172149136662483, -0.23431313037872314, -0.021390104666352272, 0.06958228349685669, 0.07760963588953018, -0.12650126218795776, -0.0024355952627956867, 0.10392843931913376, 0.07058822363615036, 0.13994531333446503, -0.16647784411907196, 0.2089553028345108, 0.007064647041261196, 0.22276705503463745, -0.019895700737833977, 0.08254866302013397, 0.04950552433729172, -0.05654340982437134, -0.05522412061691284, 0.12410960346460342, 0.027872147038578987, -0.06684397161006927, -0.1426028460264206, -0.07570376247167587, 0.4736546576023102, 0.0866217091679573, -0.1512540727853775, 0.07018731534481049, 0.3644711673259735, -0.05914602056145668, -0.042231008410453796, 0.15723557770252228, 0.32674896717071533, 0.4155758321285248, -0.09964095056056976, -0.12126919627189636, 0.008474542759358883, 0.24463997781276703, -0.31452450156211853, -0.04127485677599907, 0.3684576749801636, 0.19202961027622223, 0.13492451608181, 0.10123629868030548, 0.17547428607940674, -0.4320671260356903, 0.3769778311252594, -0.005495250225067139, 0.22608785331249237, -0.3132900893688202, 0.09383409470319748, 0.31337228417396545, -0.037945665419101715, -0.02828126959502697, 0.09731302410364151, -0.13390740752220154, -0.022434139624238014, 0.15147854387760162, 0.2881315052509308, 0.15382365882396698, -0.3426853120326996, -0.06571625918149948, -0.2914190888404846, -0.16102944314479828, 0.43350669741630554, 0.4875747561454773, -0.04020310193300247, 0.1536538004875183, 0.27830764651298523, 0.37161681056022644, 0.4587709605693817, 0.31013569235801697, -0.33260250091552734, -0.04600178077816963, 0.0026715064886957407, -0.08792291581630707, -0.2687505781650543, -0.2151094377040863, 0.025172241032123566, 0.01389468926936388, 0.08880557119846344, 0.4495185911655426, -0.02106458507478237, 0.06810828298330307, -0.06613031774759293, -0.22663192451000214, 0.04274682700634003, -0.21995867788791656, 0.044899486005306244, -0.20326493680477142, 0.035116009414196014, 0.31016069650650024, -0.06725145131349564, 0.3586987853050232, 0.18044547736644745, 0.3190467357635498, 0.2008029669523239, 0.23825599253177643, -0.1776018738746643, 0.056568630039691925, 0.012652195058763027, -0.1911715567111969, 0.42715564370155334, 0.25856438279151917, 0.07875680178403854, 0.2940573990345001, 0.23756355047225952, -0.2050880491733551, 0.059744302183389664, 0.21649883687496185, -0.03504360467195511, 0.3742266893386841, -0.12428540736436844, 0.00900590606033802, 0.004409919958561659, -0.10033517330884933, -0.05758676305413246, -0.20062893629074097, -0.055902089923620224, 0.03986774757504463, -0.11027875542640686, 0.3021050989627838, -0.10925199836492538, 0.1536729782819748, 0.06853543967008591, 0.3849218189716339, 0.21655791997909546, -0.17863668501377106, 0.047607749700546265, -0.3293286859989166, -0.449545294046402, 0.36584144830703735, 0.040487006306648254, 0.11251696944236755, -0.24868956208229065, 0.4617868959903717, 0.17002783715724945, 0.19614729285240173, 0.21706035733222961, -0.4783816933631897, -0.5679197907447815, 0.3761240243911743, -0.3019161820411682, 0.07293002307415009, -0.33830320835113525, -0.3860795795917511, 0.12971794605255127, -0.22934108972549438, 0.25902029871940613, 0.024643801152706146, 0.3270181119441986, -0.0016990136355161667, -0.030581746250391006, -0.11176830530166626, 0.021232962608337402, 0.029049796983599663, -0.07533935457468033, 0.41799697279930115, -0.1319250464439392, -0.2647467851638794, -0.16274522244930267, -0.01279803179204464, -0.06457829475402832, 0.5972599983215332, -0.028730854392051697, 0.0674557089805603, -0.14160771667957306, -0.1968841850757599, 0.08665955811738968, 0.4679981768131256, 0.1112937331199646, -0.5949345827102661, -0.3771756589412689, 0.13731040060520172, -0.003363081021234393, -0.32759520411491394, 0.07951506972312927, 0.04449329897761345, -0.13877199590206146, 0.10934818536043167, -0.10310716927051544, -0.354498952627182, 0.16156093776226044, -0.07011748850345612, -0.03761875629425049, -0.2715403735637665, 0.11064405739307404, 0.12469809502363205, 0.07925214618444443, -0.5690494775772095, 0.2887401878833771, 0.0487026646733284, -0.046218231320381165, -0.12258423864841461, 0.23484203219413757, -0.23772484064102173, -0.058256447315216064, -0.047324251383543015, 0.26749834418296814, 0.01412128284573555, -0.2425054907798767, -0.21458575129508972, -0.02775360457599163 ]
https://github.com/huggingface/datasets/issues/3773
Checksum mismatch for the reddit_tifu dataset
Hi @anna-kay, I'm sorry I didn't clearly explain the details to you: - the error has been fixed in our `master` branch on GitHub: https://github.com/huggingface/datasets/commit/8ae21bf6a77175dc803ce2f1b93d18b8fbf45586 - the fix will not be accessible to users in PyPI until our next release of the `datasets` library - our latest release (version 1.18.3) was made 23 days ago: https://github.com/huggingface/datasets/releases/tag/1.18.3 - in the meantime, you can get the fix if you install datasets from our GitHub `master` branch: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
79
Checksum mismatch for the reddit_tifu dataset
[ -0.14222565293312073, -0.10443805903196335, -0.19664524495601654, 0.06598220020532608, 0.1302528977394104, -0.13522258400917053, 0.07190945744514465, 0.403835654258728, -0.0133992163464427, -0.05401935055851936, -0.09158962219953537, 0.16410423815250397, 0.4143873155117035, 0.3662427067756653, -0.13201038539409637, 0.1445336937904358, 0.25888121128082275, 0.16240134835243225, -0.12695980072021484, -0.31228873133659363, 0.08324556797742844, 0.11243545264005661, -0.14232312142848969, -0.15005743503570557, -0.0024154556449502707, 0.2632541358470917, 0.28674930334091187, 0.2699022591114044, -0.27365732192993164, 0.17540696263313293, 0.18079833686351776, 0.16789384186267853, -0.38769418001174927, 0.5640372037887573, -0.0001067620687535964, -0.0999366044998169, 0.11724480986595154, -0.25486820936203003, 0.08503171801567078, 0.03793900087475777, -0.1815861165523529, 0.2984936833381653, -0.37200284004211426, 0.028542516753077507, -0.0603664331138134, 0.11161664128303528, 0.06557119637727737, 0.06700440496206284, -0.1201193630695343, 0.24571968615055084, 0.23297367990016937, -0.007484463509172201, 0.1733429729938507, 0.13872453570365906, 0.25955483317375183, 0.11180707812309265, 0.11011020094156265, 0.26610082387924194, -0.08146519213914871, -0.046313922852277756, -0.1646537333726883, 0.23939962685108185, 0.06212673708796501, -0.086459681391716, -0.07506940513849258, -0.03764908015727997, 0.06165366247296333, 0.1324796974658966, 0.08285190910100937, 0.28010499477386475, 0.06887829303741455, -0.039117131382226944, -0.2260550558567047, 0.3974962532520294, -0.1680825799703598, -0.14105011522769928, 0.19544526934623718, 0.18276271224021912, -0.10630392283201218, 0.14538897573947906, 0.05349452793598175, 0.14690735936164856, 0.06679709255695343, 0.14309565722942352, -0.006681601982563734, 0.0402323342859745, 0.0871574878692627, -0.012309320271015167, -0.36978456377983093, -0.1053725853562355, 0.07863806188106537, 0.25657397508621216, -0.0900171548128128, -0.20640866458415985, -0.36143794655799866, -0.03869800269603729, 0.07715750485658646, -0.21107129752635956, 0.470991313457489, 0.24725213646888733, 0.3009383976459503, 0.48737427592277527, -0.24505336582660675, 0.14851810038089752, -0.023470483720302582, 0.10088802129030228, -0.03281189128756523, 0.2774389684200287, 0.20946095883846283, 0.13540400564670563, -0.254399836063385, 0.1578327864408493, 0.1465967893600464, -0.18892733752727509, 0.3928854167461395, 0.26448819041252136, -0.014543402940034866, -0.3949821889400482, -0.08249913901090622, 0.21314334869384766, 0.3263610303401947, -0.12755709886550903, 0.017744509503245354, 0.2197856456041336, 0.01499960571527481, 0.1166231632232666, -0.3693293333053589, 0.279253751039505, -0.16196490824222565, -0.1250303089618683, -0.346720427274704, 0.02377752587199211, -0.07441916316747665, -0.32408615946769714, -0.008720641024410725, -0.2094735950231552, 0.45573118329048157, -0.08867278695106506, 0.47289878129959106, -0.08757418394088745, -0.2540639340877533, -0.13438861072063446, 0.3891110122203827, 0.41248592734336853, -0.12291932106018066, 0.03913319483399391, 0.22937965393066406, 0.2751948833465576, -0.07244913280010223, -0.05284998193383217, -0.1855897605419159, -0.04642981290817261, -0.11595974862575531, 0.23268179595470428, -0.10749699175357819, -0.06648264825344086, 0.1621936559677124, -0.3650681674480438, 0.3167301416397095, -0.3114860951900482, 0.05876275897026062, -0.2684909403324127, -0.4016974866390228, -0.26364055275917053, -0.09292172640562057, -0.027730431407690048, -0.31062743067741394, 0.35407575964927673, 0.3100533187389374, -0.07953652739524841, 0.4345903694629669, 0.29214778542518616, 0.0680299922823906, -0.19752384722232819, -0.06670495867729187, 0.13623850047588348, 0.22634319961071014, -0.6615322828292847, -0.5504740476608276, -0.256322979927063, 0.14402498304843903, -0.04577767848968506, 0.171890988945961, 0.06298518925905228, 0.008698882535099983, -0.23281808197498322, 0.4803321063518524, 0.025372257456183434, -0.04188825190067291, 0.28092509508132935, -0.4237839877605438, -0.25256386399269104, -0.04178537428379059, 0.00031132742878980935, 0.14696791768074036, -0.01650244928896427, 0.3180111348628998, -0.3023310601711273, 0.34893596172332764, 0.0315396785736084, -0.20286016166210175, -0.1665465235710144, 0.5424060821533203, -0.11191762238740921, 0.17224782705307007, -0.32141244411468506, 0.0774424746632576, -0.012087369337677956, 0.1862379014492035, 0.530148446559906, 0.039538245648145676, 0.04229792207479477, -0.5167880058288574, -0.06930536031723022, 0.2439260631799698, 0.1705051064491272, 0.2531503736972809, 0.1960953325033188, 0.3522815406322479, -0.06717472523450851, -0.18560650944709778, -0.0024372220505028963, -0.3586977422237396, 0.042078860104084015, 0.09668207913637161, 0.22430406510829926, -0.19658777117729187, -0.22866609692573547, 0.36903831362724304, -0.1083744689822197, 0.041486188769340515, -0.014802608639001846, -0.08733034878969193, 0.4134070575237274, 0.2825595438480377, -0.1038963720202446, 0.01737375371158123, 0.25891759991645813, 0.07155432552099228, -0.21052294969558716, -0.21323804557323456, 0.5797767043113708, -0.021792054176330566, -0.06443909555673599, 0.10059987753629684, 0.33663296699523926, -0.15973475575447083, -0.11216895282268524, -0.13643348217010498, 0.011642835102975368, 0.41183415055274963, -0.04962042719125748, -0.020959148183465004, -0.4695281386375427, 0.2632039189338684, -0.029250144958496094, -0.3970354199409485, -0.02757568284869194, -0.06247793883085251, 0.10931111127138138, 0.4024747312068939, 0.00004851034464081749, 0.03427506983280182, -0.08240926265716553, 0.20864610373973846, -0.04962657764554024, 0.026586230844259262, 0.5410640239715576, 0.3148307204246521, 0.20024079084396362, 0.0059026204980909824, -0.039625853300094604, -0.4421415328979492, -0.24682267010211945, -0.15612047910690308, -0.09145859628915787, 0.1874694526195526, 0.40731507539749146, 0.16999538242816925, -0.12810418009757996, -0.3002091944217682, -0.06411866098642349, -0.13885165750980377, 0.1730814129114151, -0.20810182392597198, -0.10906129330396652, -0.16742844879627228, -0.28240758180618286, 0.2145266979932785, 0.16409584879875183, 0.05280027538537979, -0.3630602955818176, 0.05069209262728691, -0.0849442258477211, -0.21776609122753143, -0.06994771957397461, -0.42078930139541626, -0.3021787405014038, 0.32826441526412964, -0.08246322721242905, 0.046640414744615555, -0.2758690416812897, -0.05626719444990158, 0.10193393379449844, 0.19778089225292206, 0.15898390114307404, 0.14829282462596893, -0.434469074010849, -0.004777363035827875, -0.032729048281908035, -0.4033166468143463, 0.18375644087791443, -0.1087791919708252, 0.27721869945526123, 0.23825928568840027, 0.3897310495376587, 0.07805473357439041, -0.20381860435009003, 0.2513960599899292, -0.304535835981369, -0.41835758090019226, 0.3126942813396454, -0.010622147470712662, -0.1921047419309616, -0.1822868138551712, -0.025504687801003456, 0.23160064220428467, -0.19954553246498108, -0.1391129046678543, 0.2880702614784241, 0.369369775056839, -0.07522769272327423, 0.06442713737487793, -0.31128600239753723, -0.05591490492224693, 0.24221110343933105, -0.4078170657157898, -0.7388376593589783, 0.45995497703552246, -0.06099691614508629, -0.42016366124153137, -0.027427470311522484, 0.15443073213100433, 0.1103655993938446, 0.25046730041503906, -0.1849190890789032, -0.36890020966529846, -0.03142274543642998, -0.1265137940645218, 0.12523825466632843, -0.09109729528427124, -0.14478175342082977, -0.06199448183178902, -0.2523662745952606, -0.32046473026275635, 0.0571853369474411, 0.16972683370113373, 0.00651794858276844, 0.25831860303878784, -0.124966561794281, -0.015220358967781067, 0.1211475357413292, -0.059279460459947586, 0.17989476025104523, -0.15777289867401123, -0.19460423290729523, 0.05220296233892441, 0.26215818524360657, 0.025855762884020805, 0.005078492686152458, -0.03568081930279732, 0.08761818706989288, 0.004860883112996817, 0.13714909553527832, -0.05910820886492729, -0.09846056252717972, -0.12391895800828934, -0.12516534328460693, -0.20153318345546722, -0.35498589277267456, 0.12878602743148804, -0.30715638399124146, -0.17486074566841125, 0.2272447794675827, -0.018787622451782227, -0.19936487078666687, -0.29973918199539185, 0.16206012666225433, 0.13805215060710907, -0.4553608298301697, -0.08255355060100555, -0.5735774040222168, 0.15501880645751953, -0.002468194579705596, 0.232920303940773, 0.26224109530448914, 0.5715526342391968, 0.16417963802814484, -0.3074127733707428, 0.03740694746375084, 0.0704674944281578, 0.021431922912597656, -0.611308217048645, 0.24790850281715393, 0.12261861562728882, 0.3440795838832855, 0.22321666777133942, -0.083137147128582, -0.2200758010149002, 0.07488828897476196, 0.47658467292785645, 0.0451476126909256, -0.31452712416648865, 0.20949596166610718, 0.3099008798599243, 0.1719794124364853, -0.0756826177239418, -0.11757231503725052, -0.3872244954109192, -0.14536729454994202, -0.14801347255706787, -0.058899275958538055, 0.11906608939170837, 0.09815482795238495, 0.046571940183639526, 0.059311918914318085, -0.12490386515855789, 0.05493029206991196, 0.3092915415763855, 0.21603792905807495, 0.0685143992304802, -0.1138107031583786, -0.2536185085773468, -0.2960675358772278, -0.1140056625008583, 0.35006770491600037, 0.20853368937969208, 0.09844926744699478, -0.2491403967142105, -0.08198153227567673, -0.44308042526245117, 0.07476655393838882, -0.03813721239566803, 0.06002751365303993, -0.1977708637714386, -0.22455202043056488, 0.09489814937114716, 0.3209749162197113, 0.13226085901260376, -0.13737356662750244, 0.008997567929327488, -0.24851641058921814, -0.14586801826953888, -0.3924299478530884, -0.3522776663303375, -0.10634428262710571, 0.42971739172935486, 0.23469410836696625, -0.07002868503332138, 0.5981249809265137, 0.31916284561157227, 0.8615162372589111, -0.2744414508342743, -0.0858849510550499, 0.049909546971321106, -0.3665095567703247, 0.22950777411460876, -0.2775725722312927, 0.1274399310350418, -0.12149111181497574, -0.5124898552894592, -0.0018712272867560387, -0.1265331506729126, -0.14875149726867676, 0.04469817876815796, -0.018059249967336655, 0.15575389564037323, -0.06232915073633194, 0.007453638128936291, 0.1860130876302719, 0.04094851016998291, 0.15422967076301575, 0.12499035894870758, 0.09821899980306625, 0.1677391678094864, 0.14676904678344727, 0.1097196564078331, 0.09912402182817459, -0.06341259926557541, -0.35156986117362976, -0.04847533255815506, -0.517920970916748, -0.042828503996133804, -0.022889476269483566, -0.0010429848916828632, 0.006682807579636574, -0.1210341826081276, -0.6185848712921143, 0.11688586324453354, 0.5268989205360413, 0.3380441665649414, 0.1267869770526886, 0.16571171581745148, 0.595617413520813, 0.018163157626986504, 0.06244286149740219, -0.05925128236413002, 0.4334346354007721, -0.03988545387983322, -0.35142266750335693, 0.2026648223400116, 0.1140623688697815, -0.36906903982162476, -0.04685689136385918, 0.09741778671741486, -0.3829525113105774, -0.0851392149925232, 0.021944480016827583, -0.05890226364135742, -0.017655057832598686, -0.20956425368785858, 0.1939745545387268, 0.1548880785703659, 0.01757098361849785, 0.1119532436132431, 0.32713860273361206, -0.42740270495414734, -0.12065551429986954, 0.33355653285980225, 0.2891641855239868, -0.23324517905712128, 0.275808185338974, -0.19620531797409058, -0.18397381901741028, -0.2420550137758255, -0.4081205129623413, -0.3563987910747528, -0.2468874305486679, -0.08602064847946167, -0.5507462620735168, -0.08097273856401443, 0.10504572838544846, 0.24410167336463928, 0.2970673441886902, 0.27324050664901733, 0.18253697454929352, -0.5157673954963684, -0.2646504342556, -0.05679868534207344, 0.2574826180934906, -0.0018834222573786974, -0.2433241903781891, 0.04650946334004402, -0.19460543990135193, 0.020380401983857155, -0.3887527585029602, -0.07859162986278534, -0.2912108600139618, -0.016971608623862267, 0.06762886047363281, 0.1233239620923996, 0.2429172694683075, -0.17969632148742676, 0.19921506941318512, -0.10271764546632767, -0.03172149136662483, -0.23431313037872314, -0.021390104666352272, 0.06958228349685669, 0.07760963588953018, -0.12650126218795776, -0.0024355952627956867, 0.10392843931913376, 0.07058822363615036, 0.13994531333446503, -0.16647784411907196, 0.2089553028345108, 0.007064647041261196, 0.22276705503463745, -0.019895700737833977, 0.08254866302013397, 0.04950552433729172, -0.05654340982437134, -0.05522412061691284, 0.12410960346460342, 0.027872147038578987, -0.06684397161006927, -0.1426028460264206, -0.07570376247167587, 0.4736546576023102, 0.0866217091679573, -0.1512540727853775, 0.07018731534481049, 0.3644711673259735, -0.05914602056145668, -0.042231008410453796, 0.15723557770252228, 0.32674896717071533, 0.4155758321285248, -0.09964095056056976, -0.12126919627189636, 0.008474542759358883, 0.24463997781276703, -0.31452450156211853, -0.04127485677599907, 0.3684576749801636, 0.19202961027622223, 0.13492451608181, 0.10123629868030548, 0.17547428607940674, -0.4320671260356903, 0.3769778311252594, -0.005495250225067139, 0.22608785331249237, -0.3132900893688202, 0.09383409470319748, 0.31337228417396545, -0.037945665419101715, -0.02828126959502697, 0.09731302410364151, -0.13390740752220154, -0.022434139624238014, 0.15147854387760162, 0.2881315052509308, 0.15382365882396698, -0.3426853120326996, -0.06571625918149948, -0.2914190888404846, -0.16102944314479828, 0.43350669741630554, 0.4875747561454773, -0.04020310193300247, 0.1536538004875183, 0.27830764651298523, 0.37161681056022644, 0.4587709605693817, 0.31013569235801697, -0.33260250091552734, -0.04600178077816963, 0.0026715064886957407, -0.08792291581630707, -0.2687505781650543, -0.2151094377040863, 0.025172241032123566, 0.01389468926936388, 0.08880557119846344, 0.4495185911655426, -0.02106458507478237, 0.06810828298330307, -0.06613031774759293, -0.22663192451000214, 0.04274682700634003, -0.21995867788791656, 0.044899486005306244, -0.20326493680477142, 0.035116009414196014, 0.31016069650650024, -0.06725145131349564, 0.3586987853050232, 0.18044547736644745, 0.3190467357635498, 0.2008029669523239, 0.23825599253177643, -0.1776018738746643, 0.056568630039691925, 0.012652195058763027, -0.1911715567111969, 0.42715564370155334, 0.25856438279151917, 0.07875680178403854, 0.2940573990345001, 0.23756355047225952, -0.2050880491733551, 0.059744302183389664, 0.21649883687496185, -0.03504360467195511, 0.3742266893386841, -0.12428540736436844, 0.00900590606033802, 0.004409919958561659, -0.10033517330884933, -0.05758676305413246, -0.20062893629074097, -0.055902089923620224, 0.03986774757504463, -0.11027875542640686, 0.3021050989627838, -0.10925199836492538, 0.1536729782819748, 0.06853543967008591, 0.3849218189716339, 0.21655791997909546, -0.17863668501377106, 0.047607749700546265, -0.3293286859989166, -0.449545294046402, 0.36584144830703735, 0.040487006306648254, 0.11251696944236755, -0.24868956208229065, 0.4617868959903717, 0.17002783715724945, 0.19614729285240173, 0.21706035733222961, -0.4783816933631897, -0.5679197907447815, 0.3761240243911743, -0.3019161820411682, 0.07293002307415009, -0.33830320835113525, -0.3860795795917511, 0.12971794605255127, -0.22934108972549438, 0.25902029871940613, 0.024643801152706146, 0.3270181119441986, -0.0016990136355161667, -0.030581746250391006, -0.11176830530166626, 0.021232962608337402, 0.029049796983599663, -0.07533935457468033, 0.41799697279930115, -0.1319250464439392, -0.2647467851638794, -0.16274522244930267, -0.01279803179204464, -0.06457829475402832, 0.5972599983215332, -0.028730854392051697, 0.0674557089805603, -0.14160771667957306, -0.1968841850757599, 0.08665955811738968, 0.4679981768131256, 0.1112937331199646, -0.5949345827102661, -0.3771756589412689, 0.13731040060520172, -0.003363081021234393, -0.32759520411491394, 0.07951506972312927, 0.04449329897761345, -0.13877199590206146, 0.10934818536043167, -0.10310716927051544, -0.354498952627182, 0.16156093776226044, -0.07011748850345612, -0.03761875629425049, -0.2715403735637665, 0.11064405739307404, 0.12469809502363205, 0.07925214618444443, -0.5690494775772095, 0.2887401878833771, 0.0487026646733284, -0.046218231320381165, -0.12258423864841461, 0.23484203219413757, -0.23772484064102173, -0.058256447315216064, -0.047324251383543015, 0.26749834418296814, 0.01412128284573555, -0.2425054907798767, -0.21458575129508972, -0.02775360457599163 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore) I guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what do you think ?
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
60
`dataset = dataset.map()` causes faiss index lost
[ -0.21301989257335663, -0.05160760134458542, -0.19257855415344238, 0.28836771845817566, 0.2616257071495056, 0.308135062456131, 0.19771620631217957, 0.33032122254371643, 0.5089245438575745, 0.21684914827346802, -0.05643802881240845, 0.5025092959403992, 0.2298395186662674, -0.05084621533751488, -0.16168780624866486, 0.2097453624010086, 0.13157600164413452, 0.3159995377063751, -0.1163778081536293, -0.23666350543498993, -0.34309425950050354, 0.14709728956222534, -0.28864267468452454, 0.13232462108135223, -0.11838962882757187, -0.15276409685611725, 0.10922880470752716, 0.12004616111516953, -0.13588730990886688, -0.3265554904937744, 0.04496607556939125, -0.24236954748630524, -0.1466369330883026, 0.3627898097038269, -0.00010361433669459075, 0.08589597791433334, 0.25769782066345215, 0.05322816222906113, -0.13730062544345856, 0.26682254672050476, -0.4904409945011139, 0.1948135942220688, 0.013537054881453514, -0.2522849142551422, -0.1205616220831871, -0.12520670890808105, 0.07092215865850449, -0.5764815807342529, -0.10481632500886917, 0.18763403594493866, 0.3078978955745697, 0.18075884878635406, 0.12743325531482697, -0.04638579115271568, 0.3989028334617615, -0.22545413672924042, 0.09238806366920471, 0.11977384984493256, 0.038911428302526474, -0.03257248178124428, -0.1550302505493164, 0.07059118151664734, -0.013682895340025425, -0.001511258538812399, 0.01847383752465248, 0.08230774104595184, 0.3006899356842041, -0.12044361978769302, 0.31304991245269775, -0.07455842941999435, 0.2537769079208374, -0.3252544403076172, -0.23525391519069672, 0.10272703319787979, 0.009004469960927963, 0.004742608405649662, -0.05979426950216293, -0.14372020959854126, 0.2799296975135803, 0.22008830308914185, -0.050620175898075104, -0.11706649512052536, 0.07183216512203217, 0.4517936706542969, -0.13307105004787445, 0.3240765929222107, -0.07027900964021683, 0.29016557335853577, -0.007510673720389605, -0.09410376101732254, -0.08958618342876434, -0.21589356660842896, -0.12230568379163742, -0.05588377267122269, -0.046580977737903595, -0.06757214665412903, 0.46987712383270264, -0.24698565900325775, 0.12177717685699463, -0.6073588728904724, -0.004065759479999542, 0.36404120922088623, -0.0016398439183831215, 0.1551179587841034, 0.30293217301368713, 0.0206054225564003, 0.008654028177261353, 0.3076117932796478, 0.2068382352590561, -0.19763895869255066, -0.26643893122673035, -0.09751487523317337, 0.4610927402973175, 0.023777388036251068, 0.10275019705295563, -0.15732796490192413, 0.13521872460842133, -0.07732916623353958, -0.28098374605178833, 0.15689079463481903, -0.2767532765865326, 0.05591762065887451, 0.06337585300207138, 0.2656659185886383, 0.22196051478385925, -0.22181980311870575, -0.04219215363264084, 0.02927243895828724, -0.1964549422264099, 0.20835311710834503, -0.44863444566726685, -0.2001158893108368, -0.05990895628929138, -0.11545612663030624, -0.05113513767719269, -0.21736116707324982, 0.28083285689353943, -0.048731494694948196, -0.053560834378004074, -0.10455894470214844, -0.06067227944731712, -0.05400160700082779, 0.30862119793891907, 0.1479569375514984, -0.15369583666324615, 0.2643048167228699, 0.08719334751367569, -0.1219576820731163, -0.13109387457370758, 0.11479362100362778, -0.30433136224746704, -0.16447407007217407, 0.20665057003498077, 0.27772217988967896, 0.22244514524936676, 0.29229673743247986, 0.11259743571281433, 0.0779939815402031, 0.19710950553417206, -0.3567650318145752, 0.0692901760339737, -0.3200724422931671, -0.25604164600372314, -0.22550255060195923, -0.001201033708639443, 0.2619367241859436, -0.05857398733496666, -0.1190727949142456, -0.05298836901783943, -0.10896240919828415, -0.05886078253388405, 0.23768886923789978, -0.2760893702507019, 0.33792465925216675, -0.29854896664619446, 0.3066273033618927, 0.4827452301979065, -0.034242596477270126, -0.769978940486908, 0.17712129652500153, -0.29700109362602234, -0.3209175169467926, -0.2710229158401489, 0.31115755438804626, 0.23068778216838837, 0.0006224025273695588, 0.32853561639785767, -0.0017415491165593266, 0.03705144301056862, 0.08367425203323364, -0.15264888107776642, -0.029378307983279228, 0.17237290740013123, 0.06729110330343246, -0.11813808977603912, 0.26252567768096924, 0.5043994188308716, -0.38822367787361145, 0.09669876098632812, -0.19007223844528198, 0.13229155540466309, 0.3988635838031769, -0.054570045322179794, -0.15476807951927185, 0.08421095460653305, -0.09979340434074402, -0.21681839227676392, -0.001326203579083085, 0.006195783615112305, -0.32312706112861633, -0.17639662325382233, -0.017059415578842163, -0.10478928685188293, 0.18011073768138885, -0.0886896401643753, 0.12075192481279373, 0.19453491270542145, -0.0037034170236438513, -0.26738283038139343, -0.01070230919867754, -0.136926531791687, -0.32381436228752136, 0.028514668345451355, -0.04094291478395462, -0.2751733064651489, 0.09041600674390793, -0.019253037869930267, -0.059699513018131256, -0.09539691358804703, 0.06919781118631363, 0.19897718727588654, -0.20658011734485626, -0.2166699916124344, 0.3687041401863098, 0.035179246217012405, -0.2114795595407486, 0.3294416069984436, -0.14170509576797485, 0.05080106109380722, -0.26818734407424927, 0.21723243594169617, 0.3451955318450928, 0.2528943121433258, -0.2090090662240982, -0.11478415876626968, 0.10027710348367691, -0.03348849341273308, 0.15782788395881653, -0.088533915579319, -0.04297565668821335, 0.18637412786483765, 0.08990449458360672, -0.008001732639968395, -0.4732135236263275, -0.3412598669528961, 0.1416819542646408, 0.11825651675462723, 0.12448839843273163, -0.03285643458366394, 0.25985315442085266, 0.6736217737197876, -0.20160932838916779, 0.20486153662204742, 0.10738138854503632, -0.1982574462890625, -0.06235695257782936, -0.12644702196121216, -0.0910940170288086, 0.4315493702888489, 0.29594850540161133, 0.2738765776157379, -0.09346609562635422, 0.028837313875555992, -0.2502027153968811, 0.0446934700012207, 0.07958319038152695, 0.056698381900787354, 0.2215832769870758, 0.4163913428783417, -0.2881316542625427, -0.2671160399913788, 0.03125341609120369, 0.18552112579345703, 0.10865982621908188, -0.25748687982559204, 0.03220763057470322, -0.1435839682817459, -0.001689549651928246, 0.07892663031816483, -0.1361899971961975, -0.053841836750507355, -0.4873576760292053, 0.07167740911245346, 0.04454043507575989, -0.1427079439163208, 0.19398871064186096, -0.08641016483306885, -0.13874927163124084, 0.31918153166770935, -0.21147871017456055, 0.24097126722335815, -0.4139288365840912, -0.26998621225357056, 0.082326740026474, -0.13148362934589386, -0.03455035760998726, 0.09176028519868851, -0.11514872312545776, -0.10541889816522598, -0.49439606070518494, -0.08209456503391266, 0.11410275846719742, 0.06676837801933289, 0.18754464387893677, 0.019304968416690826, 0.10886901617050171, -0.21470631659030914, -0.00038284683250822127, 0.20029622316360474, -0.17425571382045746, -0.17954976856708527, 0.07510942220687866, -0.053754258900880814, -0.2402896285057068, -0.16829954087734222, -0.4362872838973999, 0.14295631647109985, -0.17705489695072174, 0.1214544028043747, -0.1222601905465126, 0.14547406136989594, -0.029666190966963768, 0.16686436533927917, -0.012868890538811684, -0.1344357430934906, -0.10178089141845703, -0.4908100962638855, -0.18181893229484558, 0.1483304649591446, -0.06054193526506424, -0.29795920848846436, -0.033994726836681366, -0.13088694214820862, 0.024515490978956223, 0.5060213804244995, -0.37800413370132446, 0.0007236886885948479, -0.03787742182612419, 0.2525964677333832, -0.1536129117012024, 0.23285026848316193, 0.4184783399105072, 0.1838962882757187, -0.17571325600147247, -0.14637142419815063, -0.27947038412094116, 0.25056663155555725, 0.2793491780757904, 0.11762870848178864, -0.16185086965560913, 0.4055072069168091, -0.19689078629016876, 0.5154780745506287, 0.10283893346786499, -0.1798148900270462, 0.4078705608844757, -0.23872138559818268, 0.5017374157905579, -0.3077835142612457, -0.26920565962791443, 0.054058823734521866, 0.11802550405263901, 0.034933969378471375, 0.08763878792524338, -0.11636599153280258, -0.5886639356613159, 0.1802496612071991, -0.008339770138263702, -0.21618124842643738, -0.2956104278564453, 0.003457742976024747, 0.29929423332214355, 0.23300953209400177, 0.32672157883644104, 0.24724791944026947, -0.3309718668460846, -0.051807597279548645, 0.18177251517772675, -0.2268676459789276, 0.23344461619853973, -0.20569004118442535, -0.11941764503717422, -0.1796964704990387, -0.1205124631524086, 0.2688080966472626, 0.09607911854982376, 0.4930209815502167, -0.04103902354836464, -0.1288338452577591, 0.12947207689285278, 0.1306706666946411, 0.8169519305229187, -0.226740762591362, 0.22359272837638855, 0.26239028573036194, 0.23979583382606506, -0.3969348669052124, 0.16043472290039062, -0.18723030388355255, 0.6982067823410034, 0.11642221361398697, 0.5313466191291809, -0.1755729615688324, -0.009533858858048916, 0.08296533674001694, 0.15783560276031494, 0.039270732551813126, -0.12608888745307922, -0.17445440590381622, -0.020366713404655457, -0.01050211675465107, -0.028431033715605736, -0.12933394312858582, 0.029991289600729942, 0.3930967152118683, -0.44272831082344055, -0.3315795958042145, -0.11415582150220871, -0.20061157643795013, 0.14180505275726318, 0.4329715967178345, 0.16818617284297943, 0.12949343025684357, 0.2212655395269394, 0.15341050922870636, 0.05946281924843788, 0.275790810585022, -0.12585075199604034, 0.28564518690109253, 0.04931775853037834, -0.010991415940225124, 0.18239201605319977, 0.2061896175146103, -0.0005154759273864329, -0.022512542083859444, -0.22103402018547058, 0.08898960053920746, -0.10323428362607956, 0.16768138110637665, 0.32618966698646545, 0.09649541229009628, -0.3363702893257141, -0.25269564986228943, 0.1079685315489769, -0.21033254265785217, -0.26035112142562866, 0.3487606644630432, 0.033344682306051254, -0.3208165764808655, 0.43797236680984497, -0.015803644433617592, 0.6414880752563477, -0.10620741546154022, 0.12183863669633865, -0.04622519388794899, 0.10604335367679596, -0.06787403672933578, 0.0056865098886191845, 0.374144047498703, -0.27671849727630615, -0.33176568150520325, 0.007795989513397217, -0.07723090052604675, -0.07982393354177475, 0.11795903742313385, -0.06098397821187973, 0.4033135175704956, 0.13998855650424957, 0.34971949458122253, -0.15477226674556732, -0.0010217708768323064, 0.21134299039840698, -0.19579477608203888, -0.05061522498726845, 0.23835524916648865, 0.10829896479845047, 0.058882419019937515, 0.005563023034483194, -0.14565032720565796, -0.16517893970012665, -0.04613334685564041, 0.15306882560253143, -0.06787744164466858, -0.16379483044147491, 0.6250630617141724, -0.16061536967754364, -0.06958883255720139, -0.2881055176258087, -0.02680828981101513, 0.004986681044101715, 0.25408753752708435, -0.09943901002407074, 0.03448479250073433, 0.16990648210048676, 0.07832665741443634, -0.009675154462456703, 0.05032157152891159, 0.004974652547389269, 0.22332218289375305, -0.34935685992240906, -0.047889355570077896, -0.021088121458888054, -0.2585471570491791, -0.31096500158309937, 0.1662633717060089, -0.11487449705600739, -0.43224266171455383, -0.2058897465467453, 0.08994696289300919, -0.028187323361635208, -0.22131097316741943, 0.19230376183986664, 0.1689058244228363, 0.036499056965112686, 0.4557730555534363, 0.28034600615501404, -0.42554518580436707, -0.11594662070274353, 0.7144898772239685, 0.01291344128549099, 0.4340420663356781, 0.25813135504722595, -0.2141350507736206, -0.29139992594718933, -0.2753561735153198, -0.11998771131038666, 0.10644529014825821, 0.12955710291862488, 0.04991845414042473, -0.2064473032951355, -0.11532420665025711, 0.0005187831120565534, -0.09027013182640076, -0.26047924160957336, 0.27288883924484253, -0.3441504240036011, -0.23771332204341888, -0.5228772759437561, 0.2130352258682251, 0.13792738318443298, 0.18523404002189636, 0.06674309819936752, -0.09606020897626877, -0.1356545388698578, -0.09889886528253555, -0.3936140835285187, 0.17068704962730408, -0.09684833139181137, 0.35709112882614136, 0.19713279604911804, 0.02712710201740265, 0.026456318795681, -0.2990706264972687, 0.2856089770793915, -0.0422576442360878, -0.12589100003242493, -0.34197601675987244, 0.12461331486701965, 0.08360900729894638, -0.025591986253857613, 0.13280031085014343, -0.08374907076358795, -0.41676509380340576, -0.11755980551242828, -0.4317937195301056, 0.1682790219783783, 0.0892348438501358, -0.07081133127212524, -0.04468492791056633, 0.1819079965353012, -0.12845860421657562, 0.4062047004699707, 0.11389583349227905, -0.12947732210159302, -0.05394318699836731, -0.20359042286872864, 0.04096053168177605, -0.1393253207206726, -0.03510160371661186, 0.13920210301876068, 0.08888407051563263, -0.018594587221741676, 0.13387435674667358, 0.4109722375869751, -0.33789774775505066, -0.06900586932897568, 0.4514084756374359, 0.264433354139328, 0.11579933017492294, -0.241193950176239, -0.12605983018875122, -0.07250107079744339, 0.28029105067253113, -0.25334054231643677, -0.40274208784103394, 0.7323782444000244, -0.03519834578037262, 0.27138829231262207, 0.004327978473156691, 0.10169189423322678, -0.10510927438735962, -0.10939981043338776, 0.07775387912988663, 0.06826812028884888, -0.0337529182434082, -0.13298211991786957, 0.27929964661598206, 0.13164551556110382, 0.03518856689333916, 0.17908607423305511, 0.30410563945770264, 0.18429908156394958, 0.9028794765472412, 0.2157232016324997, 0.3635534346103668, 0.19927658140659332, 0.048952367156744, -0.17095212638378143, -0.25016748905181885, 0.46122029423713684, 0.29685285687446594, -0.05302556976675987, 0.1581614762544632, 0.5157192945480347, -0.019359514117240906, -0.1731041967868805, -0.1260729432106018, 0.07434717565774918, 0.05021810159087181, -0.40587538480758667, -0.11983384191989899, 0.251411110162735, -0.05663714185357094, 0.20013831555843353, 0.06894451379776001, -0.17970097064971924, 0.10775681585073471, 0.20962068438529968, -0.027262834832072258, -0.03701658546924591, -0.2255634367465973, -0.09157097339630127, 0.09045550972223282, 0.23162409663200378, -0.04690294712781906, 0.021778730675578117, -0.14888207614421844, 0.10289059579372406, 0.042235467582941055, 0.18673750758171082, -0.011170586571097374, -0.06061825528740883, -0.2097540646791458, 0.2597382068634033, 0.2561456859111786, -0.401137113571167, -0.12269845604896545, -0.10312984138727188, -0.03227055445313454, -0.045657381415367126, 0.2279294729232788, 0.20044764876365662, -0.17390255630016327, -0.12960755825042725, 0.26851487159729004, 0.42932721972465515, -0.0936480388045311, -0.18030646443367004, -0.08680609613656998, -0.2987282872200012, -0.20763657987117767, -0.2401377558708191, -0.3398892283439636, -0.027644634246826172, 0.25830262899398804, -0.3179916441440582, 0.23688720166683197, -0.036874838173389435, 0.13630588352680206, 0.00808712374418974, 0.3162602186203003, 0.021145952865481377, -0.11145463585853577, -0.25585195422172546, -0.01221233606338501, -0.6029641628265381, 0.20102708041667938, -0.0929676964879036, 0.10538017004728317, 0.10917532444000244, 0.06666836142539978, -0.019117334857583046, -0.11405496299266815, 0.46622106432914734, 0.09139474481344223, 0.20538924634456635, 0.13307668268680573, -0.0818314328789711, -0.25205907225608826, -0.2907332181930542, -0.15953077375888824, -0.0029021811205893755, -0.34748607873916626, 0.23339885473251343, -0.12659426033496857, 0.2419624626636505, -0.14586395025253296, 0.1436077356338501, -0.33979153633117676, -0.1494309902191162, 0.4763992726802826, 0.06620962172746658, -0.029410425573587418, -0.3134181499481201, 0.08276456594467163, -0.0071598500944674015, -0.3878059387207031, 0.109328493475914, 0.3151916265487671, -0.012797233648598194, 0.10544735938310623, -0.25082042813301086, -0.2835150361061096, -0.07870873063802719, 0.0036901996936649084, 0.1287437081336975, 0.07086245715618134, -0.20775261521339417, 0.22484277188777924, -0.3323403298854828, -0.027253583073616028, -0.08570921421051025, 0.22979584336280823, 0.056839510798454285, 0.07074017077684402, 0.2849195599555969, -0.3127566874027252, 0.37984028458595276, -0.35824257135391235, -0.2854955792427063, -0.021018629893660545, 0.06405584514141083, 0.2966919243335724, -0.27878084778785706, -0.111955925822258, -0.021750597283244133, 0.33527466654777527, -0.19445490837097168, -0.4069487154483795, 0.11051573604345322, -0.14057494699954987, 0.177534282207489, -0.13060230016708374, 0.3865913450717926, 0.2356894612312317, -0.23533251881599426, 0.26402828097343445, -0.14141392707824707 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
doing `.add_column("x",x_data)` also removes the index. the new column might be irrelevant to the index so I don't think it should drop. Minimal example ```python from datasets import load_dataset import numpy as np data=load_dataset("ceyda/cats_vs_dogs_sample") #just a test dataset data=data["train"] embd_data=data.map(lambda x: {"emb":np.random.uniform(-1,0,50).astype(np.float32)}) embd_data.add_faiss_index(column="emb") print(embd_data.list_indexes()) embd_data=embd_data.add_column("x",[0]*data.num_rows) print(embd_data.list_indexes()) ```
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
47
`dataset = dataset.map()` causes faiss index lost
[ -0.21301989257335663, -0.05160760134458542, -0.19257855415344238, 0.28836771845817566, 0.2616257071495056, 0.308135062456131, 0.19771620631217957, 0.33032122254371643, 0.5089245438575745, 0.21684914827346802, -0.05643802881240845, 0.5025092959403992, 0.2298395186662674, -0.05084621533751488, -0.16168780624866486, 0.2097453624010086, 0.13157600164413452, 0.3159995377063751, -0.1163778081536293, -0.23666350543498993, -0.34309425950050354, 0.14709728956222534, -0.28864267468452454, 0.13232462108135223, -0.11838962882757187, -0.15276409685611725, 0.10922880470752716, 0.12004616111516953, -0.13588730990886688, -0.3265554904937744, 0.04496607556939125, -0.24236954748630524, -0.1466369330883026, 0.3627898097038269, -0.00010361433669459075, 0.08589597791433334, 0.25769782066345215, 0.05322816222906113, -0.13730062544345856, 0.26682254672050476, -0.4904409945011139, 0.1948135942220688, 0.013537054881453514, -0.2522849142551422, -0.1205616220831871, -0.12520670890808105, 0.07092215865850449, -0.5764815807342529, -0.10481632500886917, 0.18763403594493866, 0.3078978955745697, 0.18075884878635406, 0.12743325531482697, -0.04638579115271568, 0.3989028334617615, -0.22545413672924042, 0.09238806366920471, 0.11977384984493256, 0.038911428302526474, -0.03257248178124428, -0.1550302505493164, 0.07059118151664734, -0.013682895340025425, -0.001511258538812399, 0.01847383752465248, 0.08230774104595184, 0.3006899356842041, -0.12044361978769302, 0.31304991245269775, -0.07455842941999435, 0.2537769079208374, -0.3252544403076172, -0.23525391519069672, 0.10272703319787979, 0.009004469960927963, 0.004742608405649662, -0.05979426950216293, -0.14372020959854126, 0.2799296975135803, 0.22008830308914185, -0.050620175898075104, -0.11706649512052536, 0.07183216512203217, 0.4517936706542969, -0.13307105004787445, 0.3240765929222107, -0.07027900964021683, 0.29016557335853577, -0.007510673720389605, -0.09410376101732254, -0.08958618342876434, -0.21589356660842896, -0.12230568379163742, -0.05588377267122269, -0.046580977737903595, -0.06757214665412903, 0.46987712383270264, -0.24698565900325775, 0.12177717685699463, -0.6073588728904724, -0.004065759479999542, 0.36404120922088623, -0.0016398439183831215, 0.1551179587841034, 0.30293217301368713, 0.0206054225564003, 0.008654028177261353, 0.3076117932796478, 0.2068382352590561, -0.19763895869255066, -0.26643893122673035, -0.09751487523317337, 0.4610927402973175, 0.023777388036251068, 0.10275019705295563, -0.15732796490192413, 0.13521872460842133, -0.07732916623353958, -0.28098374605178833, 0.15689079463481903, -0.2767532765865326, 0.05591762065887451, 0.06337585300207138, 0.2656659185886383, 0.22196051478385925, -0.22181980311870575, -0.04219215363264084, 0.02927243895828724, -0.1964549422264099, 0.20835311710834503, -0.44863444566726685, -0.2001158893108368, -0.05990895628929138, -0.11545612663030624, -0.05113513767719269, -0.21736116707324982, 0.28083285689353943, -0.048731494694948196, -0.053560834378004074, -0.10455894470214844, -0.06067227944731712, -0.05400160700082779, 0.30862119793891907, 0.1479569375514984, -0.15369583666324615, 0.2643048167228699, 0.08719334751367569, -0.1219576820731163, -0.13109387457370758, 0.11479362100362778, -0.30433136224746704, -0.16447407007217407, 0.20665057003498077, 0.27772217988967896, 0.22244514524936676, 0.29229673743247986, 0.11259743571281433, 0.0779939815402031, 0.19710950553417206, -0.3567650318145752, 0.0692901760339737, -0.3200724422931671, -0.25604164600372314, -0.22550255060195923, -0.001201033708639443, 0.2619367241859436, -0.05857398733496666, -0.1190727949142456, -0.05298836901783943, -0.10896240919828415, -0.05886078253388405, 0.23768886923789978, -0.2760893702507019, 0.33792465925216675, -0.29854896664619446, 0.3066273033618927, 0.4827452301979065, -0.034242596477270126, -0.769978940486908, 0.17712129652500153, -0.29700109362602234, -0.3209175169467926, -0.2710229158401489, 0.31115755438804626, 0.23068778216838837, 0.0006224025273695588, 0.32853561639785767, -0.0017415491165593266, 0.03705144301056862, 0.08367425203323364, -0.15264888107776642, -0.029378307983279228, 0.17237290740013123, 0.06729110330343246, -0.11813808977603912, 0.26252567768096924, 0.5043994188308716, -0.38822367787361145, 0.09669876098632812, -0.19007223844528198, 0.13229155540466309, 0.3988635838031769, -0.054570045322179794, -0.15476807951927185, 0.08421095460653305, -0.09979340434074402, -0.21681839227676392, -0.001326203579083085, 0.006195783615112305, -0.32312706112861633, -0.17639662325382233, -0.017059415578842163, -0.10478928685188293, 0.18011073768138885, -0.0886896401643753, 0.12075192481279373, 0.19453491270542145, -0.0037034170236438513, -0.26738283038139343, -0.01070230919867754, -0.136926531791687, -0.32381436228752136, 0.028514668345451355, -0.04094291478395462, -0.2751733064651489, 0.09041600674390793, -0.019253037869930267, -0.059699513018131256, -0.09539691358804703, 0.06919781118631363, 0.19897718727588654, -0.20658011734485626, -0.2166699916124344, 0.3687041401863098, 0.035179246217012405, -0.2114795595407486, 0.3294416069984436, -0.14170509576797485, 0.05080106109380722, -0.26818734407424927, 0.21723243594169617, 0.3451955318450928, 0.2528943121433258, -0.2090090662240982, -0.11478415876626968, 0.10027710348367691, -0.03348849341273308, 0.15782788395881653, -0.088533915579319, -0.04297565668821335, 0.18637412786483765, 0.08990449458360672, -0.008001732639968395, -0.4732135236263275, -0.3412598669528961, 0.1416819542646408, 0.11825651675462723, 0.12448839843273163, -0.03285643458366394, 0.25985315442085266, 0.6736217737197876, -0.20160932838916779, 0.20486153662204742, 0.10738138854503632, -0.1982574462890625, -0.06235695257782936, -0.12644702196121216, -0.0910940170288086, 0.4315493702888489, 0.29594850540161133, 0.2738765776157379, -0.09346609562635422, 0.028837313875555992, -0.2502027153968811, 0.0446934700012207, 0.07958319038152695, 0.056698381900787354, 0.2215832769870758, 0.4163913428783417, -0.2881316542625427, -0.2671160399913788, 0.03125341609120369, 0.18552112579345703, 0.10865982621908188, -0.25748687982559204, 0.03220763057470322, -0.1435839682817459, -0.001689549651928246, 0.07892663031816483, -0.1361899971961975, -0.053841836750507355, -0.4873576760292053, 0.07167740911245346, 0.04454043507575989, -0.1427079439163208, 0.19398871064186096, -0.08641016483306885, -0.13874927163124084, 0.31918153166770935, -0.21147871017456055, 0.24097126722335815, -0.4139288365840912, -0.26998621225357056, 0.082326740026474, -0.13148362934589386, -0.03455035760998726, 0.09176028519868851, -0.11514872312545776, -0.10541889816522598, -0.49439606070518494, -0.08209456503391266, 0.11410275846719742, 0.06676837801933289, 0.18754464387893677, 0.019304968416690826, 0.10886901617050171, -0.21470631659030914, -0.00038284683250822127, 0.20029622316360474, -0.17425571382045746, -0.17954976856708527, 0.07510942220687866, -0.053754258900880814, -0.2402896285057068, -0.16829954087734222, -0.4362872838973999, 0.14295631647109985, -0.17705489695072174, 0.1214544028043747, -0.1222601905465126, 0.14547406136989594, -0.029666190966963768, 0.16686436533927917, -0.012868890538811684, -0.1344357430934906, -0.10178089141845703, -0.4908100962638855, -0.18181893229484558, 0.1483304649591446, -0.06054193526506424, -0.29795920848846436, -0.033994726836681366, -0.13088694214820862, 0.024515490978956223, 0.5060213804244995, -0.37800413370132446, 0.0007236886885948479, -0.03787742182612419, 0.2525964677333832, -0.1536129117012024, 0.23285026848316193, 0.4184783399105072, 0.1838962882757187, -0.17571325600147247, -0.14637142419815063, -0.27947038412094116, 0.25056663155555725, 0.2793491780757904, 0.11762870848178864, -0.16185086965560913, 0.4055072069168091, -0.19689078629016876, 0.5154780745506287, 0.10283893346786499, -0.1798148900270462, 0.4078705608844757, -0.23872138559818268, 0.5017374157905579, -0.3077835142612457, -0.26920565962791443, 0.054058823734521866, 0.11802550405263901, 0.034933969378471375, 0.08763878792524338, -0.11636599153280258, -0.5886639356613159, 0.1802496612071991, -0.008339770138263702, -0.21618124842643738, -0.2956104278564453, 0.003457742976024747, 0.29929423332214355, 0.23300953209400177, 0.32672157883644104, 0.24724791944026947, -0.3309718668460846, -0.051807597279548645, 0.18177251517772675, -0.2268676459789276, 0.23344461619853973, -0.20569004118442535, -0.11941764503717422, -0.1796964704990387, -0.1205124631524086, 0.2688080966472626, 0.09607911854982376, 0.4930209815502167, -0.04103902354836464, -0.1288338452577591, 0.12947207689285278, 0.1306706666946411, 0.8169519305229187, -0.226740762591362, 0.22359272837638855, 0.26239028573036194, 0.23979583382606506, -0.3969348669052124, 0.16043472290039062, -0.18723030388355255, 0.6982067823410034, 0.11642221361398697, 0.5313466191291809, -0.1755729615688324, -0.009533858858048916, 0.08296533674001694, 0.15783560276031494, 0.039270732551813126, -0.12608888745307922, -0.17445440590381622, -0.020366713404655457, -0.01050211675465107, -0.028431033715605736, -0.12933394312858582, 0.029991289600729942, 0.3930967152118683, -0.44272831082344055, -0.3315795958042145, -0.11415582150220871, -0.20061157643795013, 0.14180505275726318, 0.4329715967178345, 0.16818617284297943, 0.12949343025684357, 0.2212655395269394, 0.15341050922870636, 0.05946281924843788, 0.275790810585022, -0.12585075199604034, 0.28564518690109253, 0.04931775853037834, -0.010991415940225124, 0.18239201605319977, 0.2061896175146103, -0.0005154759273864329, -0.022512542083859444, -0.22103402018547058, 0.08898960053920746, -0.10323428362607956, 0.16768138110637665, 0.32618966698646545, 0.09649541229009628, -0.3363702893257141, -0.25269564986228943, 0.1079685315489769, -0.21033254265785217, -0.26035112142562866, 0.3487606644630432, 0.033344682306051254, -0.3208165764808655, 0.43797236680984497, -0.015803644433617592, 0.6414880752563477, -0.10620741546154022, 0.12183863669633865, -0.04622519388794899, 0.10604335367679596, -0.06787403672933578, 0.0056865098886191845, 0.374144047498703, -0.27671849727630615, -0.33176568150520325, 0.007795989513397217, -0.07723090052604675, -0.07982393354177475, 0.11795903742313385, -0.06098397821187973, 0.4033135175704956, 0.13998855650424957, 0.34971949458122253, -0.15477226674556732, -0.0010217708768323064, 0.21134299039840698, -0.19579477608203888, -0.05061522498726845, 0.23835524916648865, 0.10829896479845047, 0.058882419019937515, 0.005563023034483194, -0.14565032720565796, -0.16517893970012665, -0.04613334685564041, 0.15306882560253143, -0.06787744164466858, -0.16379483044147491, 0.6250630617141724, -0.16061536967754364, -0.06958883255720139, -0.2881055176258087, -0.02680828981101513, 0.004986681044101715, 0.25408753752708435, -0.09943901002407074, 0.03448479250073433, 0.16990648210048676, 0.07832665741443634, -0.009675154462456703, 0.05032157152891159, 0.004974652547389269, 0.22332218289375305, -0.34935685992240906, -0.047889355570077896, -0.021088121458888054, -0.2585471570491791, -0.31096500158309937, 0.1662633717060089, -0.11487449705600739, -0.43224266171455383, -0.2058897465467453, 0.08994696289300919, -0.028187323361635208, -0.22131097316741943, 0.19230376183986664, 0.1689058244228363, 0.036499056965112686, 0.4557730555534363, 0.28034600615501404, -0.42554518580436707, -0.11594662070274353, 0.7144898772239685, 0.01291344128549099, 0.4340420663356781, 0.25813135504722595, -0.2141350507736206, -0.29139992594718933, -0.2753561735153198, -0.11998771131038666, 0.10644529014825821, 0.12955710291862488, 0.04991845414042473, -0.2064473032951355, -0.11532420665025711, 0.0005187831120565534, -0.09027013182640076, -0.26047924160957336, 0.27288883924484253, -0.3441504240036011, -0.23771332204341888, -0.5228772759437561, 0.2130352258682251, 0.13792738318443298, 0.18523404002189636, 0.06674309819936752, -0.09606020897626877, -0.1356545388698578, -0.09889886528253555, -0.3936140835285187, 0.17068704962730408, -0.09684833139181137, 0.35709112882614136, 0.19713279604911804, 0.02712710201740265, 0.026456318795681, -0.2990706264972687, 0.2856089770793915, -0.0422576442360878, -0.12589100003242493, -0.34197601675987244, 0.12461331486701965, 0.08360900729894638, -0.025591986253857613, 0.13280031085014343, -0.08374907076358795, -0.41676509380340576, -0.11755980551242828, -0.4317937195301056, 0.1682790219783783, 0.0892348438501358, -0.07081133127212524, -0.04468492791056633, 0.1819079965353012, -0.12845860421657562, 0.4062047004699707, 0.11389583349227905, -0.12947732210159302, -0.05394318699836731, -0.20359042286872864, 0.04096053168177605, -0.1393253207206726, -0.03510160371661186, 0.13920210301876068, 0.08888407051563263, -0.018594587221741676, 0.13387435674667358, 0.4109722375869751, -0.33789774775505066, -0.06900586932897568, 0.4514084756374359, 0.264433354139328, 0.11579933017492294, -0.241193950176239, -0.12605983018875122, -0.07250107079744339, 0.28029105067253113, -0.25334054231643677, -0.40274208784103394, 0.7323782444000244, -0.03519834578037262, 0.27138829231262207, 0.004327978473156691, 0.10169189423322678, -0.10510927438735962, -0.10939981043338776, 0.07775387912988663, 0.06826812028884888, -0.0337529182434082, -0.13298211991786957, 0.27929964661598206, 0.13164551556110382, 0.03518856689333916, 0.17908607423305511, 0.30410563945770264, 0.18429908156394958, 0.9028794765472412, 0.2157232016324997, 0.3635534346103668, 0.19927658140659332, 0.048952367156744, -0.17095212638378143, -0.25016748905181885, 0.46122029423713684, 0.29685285687446594, -0.05302556976675987, 0.1581614762544632, 0.5157192945480347, -0.019359514117240906, -0.1731041967868805, -0.1260729432106018, 0.07434717565774918, 0.05021810159087181, -0.40587538480758667, -0.11983384191989899, 0.251411110162735, -0.05663714185357094, 0.20013831555843353, 0.06894451379776001, -0.17970097064971924, 0.10775681585073471, 0.20962068438529968, -0.027262834832072258, -0.03701658546924591, -0.2255634367465973, -0.09157097339630127, 0.09045550972223282, 0.23162409663200378, -0.04690294712781906, 0.021778730675578117, -0.14888207614421844, 0.10289059579372406, 0.042235467582941055, 0.18673750758171082, -0.011170586571097374, -0.06061825528740883, -0.2097540646791458, 0.2597382068634033, 0.2561456859111786, -0.401137113571167, -0.12269845604896545, -0.10312984138727188, -0.03227055445313454, -0.045657381415367126, 0.2279294729232788, 0.20044764876365662, -0.17390255630016327, -0.12960755825042725, 0.26851487159729004, 0.42932721972465515, -0.0936480388045311, -0.18030646443367004, -0.08680609613656998, -0.2987282872200012, -0.20763657987117767, -0.2401377558708191, -0.3398892283439636, -0.027644634246826172, 0.25830262899398804, -0.3179916441440582, 0.23688720166683197, -0.036874838173389435, 0.13630588352680206, 0.00808712374418974, 0.3162602186203003, 0.021145952865481377, -0.11145463585853577, -0.25585195422172546, -0.01221233606338501, -0.6029641628265381, 0.20102708041667938, -0.0929676964879036, 0.10538017004728317, 0.10917532444000244, 0.06666836142539978, -0.019117334857583046, -0.11405496299266815, 0.46622106432914734, 0.09139474481344223, 0.20538924634456635, 0.13307668268680573, -0.0818314328789711, -0.25205907225608826, -0.2907332181930542, -0.15953077375888824, -0.0029021811205893755, -0.34748607873916626, 0.23339885473251343, -0.12659426033496857, 0.2419624626636505, -0.14586395025253296, 0.1436077356338501, -0.33979153633117676, -0.1494309902191162, 0.4763992726802826, 0.06620962172746658, -0.029410425573587418, -0.3134181499481201, 0.08276456594467163, -0.0071598500944674015, -0.3878059387207031, 0.109328493475914, 0.3151916265487671, -0.012797233648598194, 0.10544735938310623, -0.25082042813301086, -0.2835150361061096, -0.07870873063802719, 0.0036901996936649084, 0.1287437081336975, 0.07086245715618134, -0.20775261521339417, 0.22484277188777924, -0.3323403298854828, -0.027253583073616028, -0.08570921421051025, 0.22979584336280823, 0.056839510798454285, 0.07074017077684402, 0.2849195599555969, -0.3127566874027252, 0.37984028458595276, -0.35824257135391235, -0.2854955792427063, -0.021018629893660545, 0.06405584514141083, 0.2966919243335724, -0.27878084778785706, -0.111955925822258, -0.021750597283244133, 0.33527466654777527, -0.19445490837097168, -0.4069487154483795, 0.11051573604345322, -0.14057494699954987, 0.177534282207489, -0.13060230016708374, 0.3865913450717926, 0.2356894612312317, -0.23533251881599426, 0.26402828097343445, -0.14141392707824707 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
I agree `add_column` shouldn't drop the index indeed ! Is it something you'd like to contribute ? I think it's just a matter of copying the `self._indexes` dictionary to the output dataset
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
32
`dataset = dataset.map()` causes faiss index lost
[ -0.21301989257335663, -0.05160760134458542, -0.19257855415344238, 0.28836771845817566, 0.2616257071495056, 0.308135062456131, 0.19771620631217957, 0.33032122254371643, 0.5089245438575745, 0.21684914827346802, -0.05643802881240845, 0.5025092959403992, 0.2298395186662674, -0.05084621533751488, -0.16168780624866486, 0.2097453624010086, 0.13157600164413452, 0.3159995377063751, -0.1163778081536293, -0.23666350543498993, -0.34309425950050354, 0.14709728956222534, -0.28864267468452454, 0.13232462108135223, -0.11838962882757187, -0.15276409685611725, 0.10922880470752716, 0.12004616111516953, -0.13588730990886688, -0.3265554904937744, 0.04496607556939125, -0.24236954748630524, -0.1466369330883026, 0.3627898097038269, -0.00010361433669459075, 0.08589597791433334, 0.25769782066345215, 0.05322816222906113, -0.13730062544345856, 0.26682254672050476, -0.4904409945011139, 0.1948135942220688, 0.013537054881453514, -0.2522849142551422, -0.1205616220831871, -0.12520670890808105, 0.07092215865850449, -0.5764815807342529, -0.10481632500886917, 0.18763403594493866, 0.3078978955745697, 0.18075884878635406, 0.12743325531482697, -0.04638579115271568, 0.3989028334617615, -0.22545413672924042, 0.09238806366920471, 0.11977384984493256, 0.038911428302526474, -0.03257248178124428, -0.1550302505493164, 0.07059118151664734, -0.013682895340025425, -0.001511258538812399, 0.01847383752465248, 0.08230774104595184, 0.3006899356842041, -0.12044361978769302, 0.31304991245269775, -0.07455842941999435, 0.2537769079208374, -0.3252544403076172, -0.23525391519069672, 0.10272703319787979, 0.009004469960927963, 0.004742608405649662, -0.05979426950216293, -0.14372020959854126, 0.2799296975135803, 0.22008830308914185, -0.050620175898075104, -0.11706649512052536, 0.07183216512203217, 0.4517936706542969, -0.13307105004787445, 0.3240765929222107, -0.07027900964021683, 0.29016557335853577, -0.007510673720389605, -0.09410376101732254, -0.08958618342876434, -0.21589356660842896, -0.12230568379163742, -0.05588377267122269, -0.046580977737903595, -0.06757214665412903, 0.46987712383270264, -0.24698565900325775, 0.12177717685699463, -0.6073588728904724, -0.004065759479999542, 0.36404120922088623, -0.0016398439183831215, 0.1551179587841034, 0.30293217301368713, 0.0206054225564003, 0.008654028177261353, 0.3076117932796478, 0.2068382352590561, -0.19763895869255066, -0.26643893122673035, -0.09751487523317337, 0.4610927402973175, 0.023777388036251068, 0.10275019705295563, -0.15732796490192413, 0.13521872460842133, -0.07732916623353958, -0.28098374605178833, 0.15689079463481903, -0.2767532765865326, 0.05591762065887451, 0.06337585300207138, 0.2656659185886383, 0.22196051478385925, -0.22181980311870575, -0.04219215363264084, 0.02927243895828724, -0.1964549422264099, 0.20835311710834503, -0.44863444566726685, -0.2001158893108368, -0.05990895628929138, -0.11545612663030624, -0.05113513767719269, -0.21736116707324982, 0.28083285689353943, -0.048731494694948196, -0.053560834378004074, -0.10455894470214844, -0.06067227944731712, -0.05400160700082779, 0.30862119793891907, 0.1479569375514984, -0.15369583666324615, 0.2643048167228699, 0.08719334751367569, -0.1219576820731163, -0.13109387457370758, 0.11479362100362778, -0.30433136224746704, -0.16447407007217407, 0.20665057003498077, 0.27772217988967896, 0.22244514524936676, 0.29229673743247986, 0.11259743571281433, 0.0779939815402031, 0.19710950553417206, -0.3567650318145752, 0.0692901760339737, -0.3200724422931671, -0.25604164600372314, -0.22550255060195923, -0.001201033708639443, 0.2619367241859436, -0.05857398733496666, -0.1190727949142456, -0.05298836901783943, -0.10896240919828415, -0.05886078253388405, 0.23768886923789978, -0.2760893702507019, 0.33792465925216675, -0.29854896664619446, 0.3066273033618927, 0.4827452301979065, -0.034242596477270126, -0.769978940486908, 0.17712129652500153, -0.29700109362602234, -0.3209175169467926, -0.2710229158401489, 0.31115755438804626, 0.23068778216838837, 0.0006224025273695588, 0.32853561639785767, -0.0017415491165593266, 0.03705144301056862, 0.08367425203323364, -0.15264888107776642, -0.029378307983279228, 0.17237290740013123, 0.06729110330343246, -0.11813808977603912, 0.26252567768096924, 0.5043994188308716, -0.38822367787361145, 0.09669876098632812, -0.19007223844528198, 0.13229155540466309, 0.3988635838031769, -0.054570045322179794, -0.15476807951927185, 0.08421095460653305, -0.09979340434074402, -0.21681839227676392, -0.001326203579083085, 0.006195783615112305, -0.32312706112861633, -0.17639662325382233, -0.017059415578842163, -0.10478928685188293, 0.18011073768138885, -0.0886896401643753, 0.12075192481279373, 0.19453491270542145, -0.0037034170236438513, -0.26738283038139343, -0.01070230919867754, -0.136926531791687, -0.32381436228752136, 0.028514668345451355, -0.04094291478395462, -0.2751733064651489, 0.09041600674390793, -0.019253037869930267, -0.059699513018131256, -0.09539691358804703, 0.06919781118631363, 0.19897718727588654, -0.20658011734485626, -0.2166699916124344, 0.3687041401863098, 0.035179246217012405, -0.2114795595407486, 0.3294416069984436, -0.14170509576797485, 0.05080106109380722, -0.26818734407424927, 0.21723243594169617, 0.3451955318450928, 0.2528943121433258, -0.2090090662240982, -0.11478415876626968, 0.10027710348367691, -0.03348849341273308, 0.15782788395881653, -0.088533915579319, -0.04297565668821335, 0.18637412786483765, 0.08990449458360672, -0.008001732639968395, -0.4732135236263275, -0.3412598669528961, 0.1416819542646408, 0.11825651675462723, 0.12448839843273163, -0.03285643458366394, 0.25985315442085266, 0.6736217737197876, -0.20160932838916779, 0.20486153662204742, 0.10738138854503632, -0.1982574462890625, -0.06235695257782936, -0.12644702196121216, -0.0910940170288086, 0.4315493702888489, 0.29594850540161133, 0.2738765776157379, -0.09346609562635422, 0.028837313875555992, -0.2502027153968811, 0.0446934700012207, 0.07958319038152695, 0.056698381900787354, 0.2215832769870758, 0.4163913428783417, -0.2881316542625427, -0.2671160399913788, 0.03125341609120369, 0.18552112579345703, 0.10865982621908188, -0.25748687982559204, 0.03220763057470322, -0.1435839682817459, -0.001689549651928246, 0.07892663031816483, -0.1361899971961975, -0.053841836750507355, -0.4873576760292053, 0.07167740911245346, 0.04454043507575989, -0.1427079439163208, 0.19398871064186096, -0.08641016483306885, -0.13874927163124084, 0.31918153166770935, -0.21147871017456055, 0.24097126722335815, -0.4139288365840912, -0.26998621225357056, 0.082326740026474, -0.13148362934589386, -0.03455035760998726, 0.09176028519868851, -0.11514872312545776, -0.10541889816522598, -0.49439606070518494, -0.08209456503391266, 0.11410275846719742, 0.06676837801933289, 0.18754464387893677, 0.019304968416690826, 0.10886901617050171, -0.21470631659030914, -0.00038284683250822127, 0.20029622316360474, -0.17425571382045746, -0.17954976856708527, 0.07510942220687866, -0.053754258900880814, -0.2402896285057068, -0.16829954087734222, -0.4362872838973999, 0.14295631647109985, -0.17705489695072174, 0.1214544028043747, -0.1222601905465126, 0.14547406136989594, -0.029666190966963768, 0.16686436533927917, -0.012868890538811684, -0.1344357430934906, -0.10178089141845703, -0.4908100962638855, -0.18181893229484558, 0.1483304649591446, -0.06054193526506424, -0.29795920848846436, -0.033994726836681366, -0.13088694214820862, 0.024515490978956223, 0.5060213804244995, -0.37800413370132446, 0.0007236886885948479, -0.03787742182612419, 0.2525964677333832, -0.1536129117012024, 0.23285026848316193, 0.4184783399105072, 0.1838962882757187, -0.17571325600147247, -0.14637142419815063, -0.27947038412094116, 0.25056663155555725, 0.2793491780757904, 0.11762870848178864, -0.16185086965560913, 0.4055072069168091, -0.19689078629016876, 0.5154780745506287, 0.10283893346786499, -0.1798148900270462, 0.4078705608844757, -0.23872138559818268, 0.5017374157905579, -0.3077835142612457, -0.26920565962791443, 0.054058823734521866, 0.11802550405263901, 0.034933969378471375, 0.08763878792524338, -0.11636599153280258, -0.5886639356613159, 0.1802496612071991, -0.008339770138263702, -0.21618124842643738, -0.2956104278564453, 0.003457742976024747, 0.29929423332214355, 0.23300953209400177, 0.32672157883644104, 0.24724791944026947, -0.3309718668460846, -0.051807597279548645, 0.18177251517772675, -0.2268676459789276, 0.23344461619853973, -0.20569004118442535, -0.11941764503717422, -0.1796964704990387, -0.1205124631524086, 0.2688080966472626, 0.09607911854982376, 0.4930209815502167, -0.04103902354836464, -0.1288338452577591, 0.12947207689285278, 0.1306706666946411, 0.8169519305229187, -0.226740762591362, 0.22359272837638855, 0.26239028573036194, 0.23979583382606506, -0.3969348669052124, 0.16043472290039062, -0.18723030388355255, 0.6982067823410034, 0.11642221361398697, 0.5313466191291809, -0.1755729615688324, -0.009533858858048916, 0.08296533674001694, 0.15783560276031494, 0.039270732551813126, -0.12608888745307922, -0.17445440590381622, -0.020366713404655457, -0.01050211675465107, -0.028431033715605736, -0.12933394312858582, 0.029991289600729942, 0.3930967152118683, -0.44272831082344055, -0.3315795958042145, -0.11415582150220871, -0.20061157643795013, 0.14180505275726318, 0.4329715967178345, 0.16818617284297943, 0.12949343025684357, 0.2212655395269394, 0.15341050922870636, 0.05946281924843788, 0.275790810585022, -0.12585075199604034, 0.28564518690109253, 0.04931775853037834, -0.010991415940225124, 0.18239201605319977, 0.2061896175146103, -0.0005154759273864329, -0.022512542083859444, -0.22103402018547058, 0.08898960053920746, -0.10323428362607956, 0.16768138110637665, 0.32618966698646545, 0.09649541229009628, -0.3363702893257141, -0.25269564986228943, 0.1079685315489769, -0.21033254265785217, -0.26035112142562866, 0.3487606644630432, 0.033344682306051254, -0.3208165764808655, 0.43797236680984497, -0.015803644433617592, 0.6414880752563477, -0.10620741546154022, 0.12183863669633865, -0.04622519388794899, 0.10604335367679596, -0.06787403672933578, 0.0056865098886191845, 0.374144047498703, -0.27671849727630615, -0.33176568150520325, 0.007795989513397217, -0.07723090052604675, -0.07982393354177475, 0.11795903742313385, -0.06098397821187973, 0.4033135175704956, 0.13998855650424957, 0.34971949458122253, -0.15477226674556732, -0.0010217708768323064, 0.21134299039840698, -0.19579477608203888, -0.05061522498726845, 0.23835524916648865, 0.10829896479845047, 0.058882419019937515, 0.005563023034483194, -0.14565032720565796, -0.16517893970012665, -0.04613334685564041, 0.15306882560253143, -0.06787744164466858, -0.16379483044147491, 0.6250630617141724, -0.16061536967754364, -0.06958883255720139, -0.2881055176258087, -0.02680828981101513, 0.004986681044101715, 0.25408753752708435, -0.09943901002407074, 0.03448479250073433, 0.16990648210048676, 0.07832665741443634, -0.009675154462456703, 0.05032157152891159, 0.004974652547389269, 0.22332218289375305, -0.34935685992240906, -0.047889355570077896, -0.021088121458888054, -0.2585471570491791, -0.31096500158309937, 0.1662633717060089, -0.11487449705600739, -0.43224266171455383, -0.2058897465467453, 0.08994696289300919, -0.028187323361635208, -0.22131097316741943, 0.19230376183986664, 0.1689058244228363, 0.036499056965112686, 0.4557730555534363, 0.28034600615501404, -0.42554518580436707, -0.11594662070274353, 0.7144898772239685, 0.01291344128549099, 0.4340420663356781, 0.25813135504722595, -0.2141350507736206, -0.29139992594718933, -0.2753561735153198, -0.11998771131038666, 0.10644529014825821, 0.12955710291862488, 0.04991845414042473, -0.2064473032951355, -0.11532420665025711, 0.0005187831120565534, -0.09027013182640076, -0.26047924160957336, 0.27288883924484253, -0.3441504240036011, -0.23771332204341888, -0.5228772759437561, 0.2130352258682251, 0.13792738318443298, 0.18523404002189636, 0.06674309819936752, -0.09606020897626877, -0.1356545388698578, -0.09889886528253555, -0.3936140835285187, 0.17068704962730408, -0.09684833139181137, 0.35709112882614136, 0.19713279604911804, 0.02712710201740265, 0.026456318795681, -0.2990706264972687, 0.2856089770793915, -0.0422576442360878, -0.12589100003242493, -0.34197601675987244, 0.12461331486701965, 0.08360900729894638, -0.025591986253857613, 0.13280031085014343, -0.08374907076358795, -0.41676509380340576, -0.11755980551242828, -0.4317937195301056, 0.1682790219783783, 0.0892348438501358, -0.07081133127212524, -0.04468492791056633, 0.1819079965353012, -0.12845860421657562, 0.4062047004699707, 0.11389583349227905, -0.12947732210159302, -0.05394318699836731, -0.20359042286872864, 0.04096053168177605, -0.1393253207206726, -0.03510160371661186, 0.13920210301876068, 0.08888407051563263, -0.018594587221741676, 0.13387435674667358, 0.4109722375869751, -0.33789774775505066, -0.06900586932897568, 0.4514084756374359, 0.264433354139328, 0.11579933017492294, -0.241193950176239, -0.12605983018875122, -0.07250107079744339, 0.28029105067253113, -0.25334054231643677, -0.40274208784103394, 0.7323782444000244, -0.03519834578037262, 0.27138829231262207, 0.004327978473156691, 0.10169189423322678, -0.10510927438735962, -0.10939981043338776, 0.07775387912988663, 0.06826812028884888, -0.0337529182434082, -0.13298211991786957, 0.27929964661598206, 0.13164551556110382, 0.03518856689333916, 0.17908607423305511, 0.30410563945770264, 0.18429908156394958, 0.9028794765472412, 0.2157232016324997, 0.3635534346103668, 0.19927658140659332, 0.048952367156744, -0.17095212638378143, -0.25016748905181885, 0.46122029423713684, 0.29685285687446594, -0.05302556976675987, 0.1581614762544632, 0.5157192945480347, -0.019359514117240906, -0.1731041967868805, -0.1260729432106018, 0.07434717565774918, 0.05021810159087181, -0.40587538480758667, -0.11983384191989899, 0.251411110162735, -0.05663714185357094, 0.20013831555843353, 0.06894451379776001, -0.17970097064971924, 0.10775681585073471, 0.20962068438529968, -0.027262834832072258, -0.03701658546924591, -0.2255634367465973, -0.09157097339630127, 0.09045550972223282, 0.23162409663200378, -0.04690294712781906, 0.021778730675578117, -0.14888207614421844, 0.10289059579372406, 0.042235467582941055, 0.18673750758171082, -0.011170586571097374, -0.06061825528740883, -0.2097540646791458, 0.2597382068634033, 0.2561456859111786, -0.401137113571167, -0.12269845604896545, -0.10312984138727188, -0.03227055445313454, -0.045657381415367126, 0.2279294729232788, 0.20044764876365662, -0.17390255630016327, -0.12960755825042725, 0.26851487159729004, 0.42932721972465515, -0.0936480388045311, -0.18030646443367004, -0.08680609613656998, -0.2987282872200012, -0.20763657987117767, -0.2401377558708191, -0.3398892283439636, -0.027644634246826172, 0.25830262899398804, -0.3179916441440582, 0.23688720166683197, -0.036874838173389435, 0.13630588352680206, 0.00808712374418974, 0.3162602186203003, 0.021145952865481377, -0.11145463585853577, -0.25585195422172546, -0.01221233606338501, -0.6029641628265381, 0.20102708041667938, -0.0929676964879036, 0.10538017004728317, 0.10917532444000244, 0.06666836142539978, -0.019117334857583046, -0.11405496299266815, 0.46622106432914734, 0.09139474481344223, 0.20538924634456635, 0.13307668268680573, -0.0818314328789711, -0.25205907225608826, -0.2907332181930542, -0.15953077375888824, -0.0029021811205893755, -0.34748607873916626, 0.23339885473251343, -0.12659426033496857, 0.2419624626636505, -0.14586395025253296, 0.1436077356338501, -0.33979153633117676, -0.1494309902191162, 0.4763992726802826, 0.06620962172746658, -0.029410425573587418, -0.3134181499481201, 0.08276456594467163, -0.0071598500944674015, -0.3878059387207031, 0.109328493475914, 0.3151916265487671, -0.012797233648598194, 0.10544735938310623, -0.25082042813301086, -0.2835150361061096, -0.07870873063802719, 0.0036901996936649084, 0.1287437081336975, 0.07086245715618134, -0.20775261521339417, 0.22484277188777924, -0.3323403298854828, -0.027253583073616028, -0.08570921421051025, 0.22979584336280823, 0.056839510798454285, 0.07074017077684402, 0.2849195599555969, -0.3127566874027252, 0.37984028458595276, -0.35824257135391235, -0.2854955792427063, -0.021018629893660545, 0.06405584514141083, 0.2966919243335724, -0.27878084778785706, -0.111955925822258, -0.021750597283244133, 0.33527466654777527, -0.19445490837097168, -0.4069487154483795, 0.11051573604345322, -0.14057494699954987, 0.177534282207489, -0.13060230016708374, 0.3865913450717926, 0.2356894612312317, -0.23533251881599426, 0.26402828097343445, -0.14141392707824707 ]
https://github.com/huggingface/datasets/issues/3763
It's not possible download `20200501.pt` dataset
Hi @jvanz, thanks for reporting. Please note that Wikimedia website does not longer host Wikipedia dumps for so old dates. For a list of accessible dump dates of `pt` Wikipedia, please see: https://dumps.wikimedia.org/ptwiki/ You can load for example `20220220` `pt` Wikipedia: ```python dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") ```
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ```
49
It's not possible download `20200501.pt` dataset
[ -0.5053288340568542, -0.015092436224222183, -0.26616087555885315, 0.2853660583496094, 0.17221058905124664, 0.23665450513362885, -0.07831701636314392, 0.4829849898815155, 0.10153869539499283, 0.26932722330093384, -0.0318855382502079, 0.1438046246767044, -0.051865436136722565, 0.48598042130470276, -0.19878944754600525, -0.222239151597023, 0.059734418988227844, 0.08447202295064926, -0.158421590924263, 0.07366964966058731, -0.16402220726013184, 0.17108044028282166, -0.015244364738464355, -0.12394536286592484, -0.08608803898096085, -0.1573728621006012, 0.14925815165042877, -0.0899997353553772, -0.5458304286003113, -0.1268162876367569, 0.21988637745380402, 0.011662853881716728, 0.10595615953207016, 0.26499056816101074, -0.00010383703920524567, 0.08098605275154114, 0.008866366930305958, -0.006699602119624615, -0.2381589561700821, 0.007089331746101379, -0.09375610202550888, -0.00787249393761158, -0.07522517442703247, -0.244436115026474, -0.07400356978178024, 0.04214915260672569, 0.020951716229319572, -0.05973714217543602, 0.3172294795513153, 0.37718653678894043, 0.37287989258766174, 0.14075663685798645, 0.46279749274253845, -0.367855042219162, 0.25739338994026184, -0.3957509398460388, -0.11579807847738266, 0.03881795331835747, 0.24793954193592072, 0.48867613077163696, 0.3452393710613251, 0.11606179922819138, -0.04518907889723778, 0.13213080167770386, -0.1568404585123062, -0.20576901733875275, 0.5203786492347717, -0.4154510498046875, 0.4136926829814911, 0.2793351709842682, 0.759202241897583, -0.0057161105796694756, -0.0711277574300766, 0.2658020257949829, 0.056046366691589355, -0.17207498848438263, 0.15266063809394836, 0.18450674414634705, -0.06096838042140007, 0.2107146978378296, 0.11360054463148117, -0.0837390273809433, -0.26958751678466797, 0.019015885889530182, -0.17605116963386536, -0.10379568487405777, -0.09379542618989944, 0.019288962706923485, -0.17694203555583954, -0.19269132614135742, -0.05082909017801285, 0.25179558992385864, 0.1538492739200592, 0.10028915107250214, -0.03061780147254467, -0.040264178067445755, -0.15363158285617828, -0.002773174550384283, 0.15091688930988312, 0.2505400478839874, 0.20574496686458588, 0.15025226771831512, -0.19129811227321625, -0.11887899041175842, -0.11050111800432205, -0.030245831236243248, -0.4027235507965088, -0.10372737795114517, 0.1256287395954132, 0.10540743172168732, 0.10057426989078522, 0.13940106332302094, -0.27795374393463135, -0.11044414341449738, -0.23846717178821564, 0.20397283136844635, 0.2067057341337204, -0.32958558201789856, -0.24054566025733948, 0.10343438386917114, 0.16899524629116058, 0.0756363496184349, -0.24134016036987305, 0.2287212610244751, -0.0797576829791069, 0.03748447448015213, -0.037281036376953125, 0.04379206895828247, -0.01564144715666771, -0.5161339640617371, -0.32439759373664856, 0.11461511254310608, 0.10389218479394913, -0.11727917194366455, 0.27020198106765747, -0.2249891757965088, 0.1932874321937561, -0.11534316092729568, -0.2507910430431366, -0.040268681943416595, -0.12665916979312897, -0.028181472793221474, -0.12761680781841278, 0.47388696670532227, 0.2290012389421463, -0.005103408358991146, -0.12553611397743225, 0.39335426688194275, -0.005296269431710243, 0.11578696221113205, -0.28948232531547546, -0.2845037877559662, -0.27058663964271545, 0.2860737442970276, 0.010976539924740791, -0.1301649659872055, 0.11383361369371414, -0.07927065342664719, 0.030184254050254822, -0.17389246821403503, -0.20718786120414734, 0.014208442531526089, -0.19282294809818268, -0.20610202848911285, 0.13115297257900238, 0.1805618405342102, -0.650131344795227, 0.10632583498954773, -0.07787570357322693, -0.2488478422164917, 0.26826056838035583, 0.1119917780160904, 0.03800061717629433, 0.04120757430791855, -0.2390015423297882, -0.12572456896305084, 0.13793745636940002, -0.13985897600650787, -0.4650695025920868, 0.13173025846481323, -0.30861589312553406, -0.6009163856506348, 0.43517228960990906, 0.07058151811361313, 0.11817178130149841, 0.006856232415884733, -0.02498292736709118, -0.18760386109352112, 0.1070936843752861, -0.2983643710613251, -0.13298961520195007, -0.2645132839679718, 0.0033754343166947365, 0.015364899300038815, 0.315483421087265, 0.23813776671886444, 0.24256190657615662, 0.3199019134044647, 0.2678821086883545, 0.18633517622947693, 0.07518918812274933, 0.27715131640434265, 0.18166951835155487, -0.33290860056877136, 0.05349436029791832, -0.26366347074508667, -0.22131900489330292, -0.017646776512265205, -0.1703762710094452, -0.11547499895095825, 0.050494950264692307, 0.12456469982862473, -0.5234450697898865, -0.03138875216245651, 0.08832268416881561, 0.10482440888881683, 0.2700348496437073, 0.0005242091719992459, 0.356356143951416, 0.11008624732494354, 0.00445143599063158, 0.19730885326862335, -0.3530108332633972, -0.1383521556854248, -0.23679077625274658, 0.23994532227516174, -0.2632724940776825, 0.009500479325652122, 0.22830255329608917, -0.10402915626764297, 0.2265283316373825, -0.1536346971988678, 0.07712630927562714, 0.0049137030728161335, 0.037347037345170975, 0.06069081276655197, 0.030894868075847626, 0.3778161108493805, 0.1030106171965599, -0.3140399158000946, 0.060690656304359436, 0.17890846729278564, 0.0798950120806694, 0.1203685849905014, 0.016776500269770622, 0.26476576924324036, -0.0640362948179245, -0.017625274136662483, -0.023958319798111916, 0.096612349152565, 0.5122784376144409, 0.023130526766180992, 0.2132444977760315, -0.27358976006507874, 0.25800445675849915, 0.3061237633228302, 0.22340208292007446, -0.0756666287779808, -0.19642332196235657, 0.1461663544178009, 0.2467450648546219, -0.07147020846605301, -0.0902886614203453, -0.1057719886302948, 0.03740262612700462, -0.09199345856904984, 0.0419064499437809, 0.15079852938652039, -0.04852013289928436, 0.21464376151561737, 0.21371641755104065, 0.11765479296445847, -0.046730488538742065, -0.3271408677101135, 0.12748943269252777, 0.12582218647003174, 0.03628816828131676, 0.2098235785961151, -0.047078125178813934, 0.12537765502929688, -0.2065431773662567, -0.12431951612234116, 0.415977418422699, 0.3158443570137024, -0.10663789510726929, -0.3593486249446869, -0.47027164697647095, -0.49590757489204407, 0.018392980098724365, 0.49962884187698364, 0.14566363394260406, -0.19578546285629272, 0.04964660480618477, 0.26561489701271057, 0.0408044159412384, 0.07394517958164215, -0.3385466933250427, 0.139340341091156, 0.12698280811309814, 0.08773193508386612, -0.18256567418575287, -0.012508546002209187, -0.07581710070371628, 0.2905833125114441, 0.11659157276153564, -0.2100507915019989, 0.46292707324028015, -0.28043586015701294, 0.02792791835963726, -0.4905158281326294, -0.08729520440101624, 0.2967904210090637, 0.06471236795186996, -0.3452143669128418, 0.011550611816346645, 0.28312352299690247, 0.09215804934501648, -0.01941874623298645, -0.16855576634407043, -0.3973939120769501, -0.35748571157455444, -0.07321835309267044, -0.4379754662513733, -0.0868196189403534, -0.11067040264606476, -0.5788179636001587, -0.35960784554481506, -0.24227993190288544, 0.22286632657051086, 0.29548150300979614, 0.21161624789237976, 0.19883808493614197, -0.029037045314908028, 0.12323549389839172, 0.07960245758295059, 0.027130044996738434, -0.3293537497520447, -0.35374966263771057, 0.18278175592422485, -0.14259785413742065, -0.5124803185462952, 0.4105491042137146, 0.10403371602296829, 0.11367238312959671, -0.005002613179385662, -0.27522459626197815, -0.09721684455871582, -0.04417093098163605, 0.02976507879793644, 0.027149558067321777, -0.11990145593881607, 0.3079237937927246, -0.19646577537059784, -0.211222305893898, -0.057472892105579376, 0.025512835010886192, 0.06786328554153442, 0.06458950787782669, 0.019553611055016518, 0.09580665081739426, 0.3220057487487793, 0.05242081731557846, 0.4134247601032257, 0.2602274715900421, 0.04555757716298103, 0.3408334255218506, -0.12801334261894226, 0.06174495071172714, -0.24393638968467712, -0.005953152664005756, 0.2166687548160553, -0.026036780327558517, -0.04557529464364052, 0.18882641196250916, -0.12521176040172577, -0.09276202321052551, -0.19793975353240967, 0.0491202250123024, -0.30171793699264526, -0.09379393607378006, -0.4262368977069855, -0.02456907369196415, 0.17990805208683014, 0.1778639853000641, -0.0783563181757927, -0.2546558678150177, -0.23742060363292694, 0.10941912233829498, 0.16280445456504822, 0.05155939608812332, 0.08766313642263412, -0.06878744810819626, -0.04026060551404953, -0.47200286388397217, 0.3150610625743866, -0.01519794948399067, 0.373942106962204, -0.36406758427619934, 0.2153722494840622, 0.3758136034011841, 0.029663698747754097, 0.5147141814231873, -0.24568568170070648, 0.5481950640678406, 0.27659016847610474, -0.1489158570766449, -0.12378112971782684, -0.008600501343607903, -0.3349568247795105, -0.17771022021770477, 0.2442370504140854, -0.09174719452857971, -0.12465545535087585, 0.07287866622209549, 0.26477280259132385, 0.06395795941352844, -0.0889778733253479, 0.17765651643276215, 0.15240654349327087, -0.3622053265571594, -0.39909136295318604, -0.25019875168800354, 0.11252943426370621, 0.24411441385746002, -0.08461165428161621, -0.006379270926117897, 0.03168652579188347, -0.1722191721200943, -0.1312657594680786, -0.20211373269557953, 0.15849706530570984, 0.4008146822452545, 0.20961007475852966, 0.21408532559871674, 0.21422497928142548, 0.23682846128940582, 0.3922562003135681, 0.039891958236694336, -0.010381598956882954, 0.4015638530254364, -0.2782541811466217, -0.15969698131084442, 0.2537224590778351, -0.11027176678180695, -0.04092653468251228, 0.022486500442028046, 0.07846617698669434, 0.12818114459514618, 0.18493874371051788, 0.18014709651470184, -0.32906079292297363, -0.4970793128013611, -0.3096057176589966, 0.31744539737701416, 0.3701367974281311, -0.014899231493473053, 0.14858072996139526, -0.12210418283939362, 0.049708910286426544, 0.025213800370693207, 0.019184546545147896, 0.7506256699562073, -0.17634068429470062, 0.05716501548886299, 0.06116461753845215, -0.09079498052597046, 0.4236200153827667, -0.32555636763572693, -0.13097208738327026, -0.13304580748081207, 0.03198367357254028, -0.17681340873241425, 0.07771104574203491, -0.0745740756392479, 0.10041515529155731, -0.08567304909229279, 0.2531188726425171, 0.048421312123537064, 0.2881544530391693, 0.27833661437034607, 0.1708962619304657, -0.09233264625072479, 0.13161170482635498, 0.05433788523077965, 0.25703439116477966, 0.11585865169763565, 0.2677072584629059, -0.1435200273990631, -0.19218167662620544, 0.20051179826259613, -0.06410375982522964, -0.4702264368534088, -0.06316177546977997, -0.017485449090600014, 0.19145558774471283, -0.3434562385082245, -0.27129220962524414, -0.16503068804740906, 0.11567876487970352, 0.3013090193271637, -0.04905102774500847, -0.37209734320640564, 0.02331000193953514, -0.05043841525912285, -0.42531588673591614, -0.11462406069040298, 0.21351882815361023, 0.2529650926589966, -0.3565911054611206, -0.1321766972541809, 0.1417284458875656, -0.04834243655204773, -0.19172485172748566, 0.0066460720263421535, -0.004575854167342186, 0.15991228818893433, 0.20912139117717743, 0.02760072983801365, -0.17759190499782562, -0.2540728747844696, -0.38282111287117004, 0.2237044721841812, -0.09099636971950531, -0.01325624156743288, 0.0033430950716137886, 0.25839436054229736, -0.39530324935913086, -0.30784863233566284, 0.5620148777961731, 0.07043237239122391, 0.1403525471687317, 0.40041857957839966, 0.18583621084690094, -0.13678830862045288, -0.4021373689174652, -0.017485840246081352, 0.046685874462127686, -0.32574015855789185, 0.1118585616350174, -0.00661222031340003, 0.2627870440483093, 0.10880740731954575, 0.5001118779182434, 0.2790956497192383, -0.09452679753303528, -0.027177732437849045, -0.4214977025985718, -0.3379365801811218, -0.03570694848895073, -0.015010318718850613, 0.11404744535684586, -0.010229352861642838, 0.31624120473861694, 0.11269312351942062, -0.28748220205307007, -0.44185808300971985, 0.19823525846004486, -0.1367853283882141, -0.1547444462776184, 0.09948690235614777, 0.0170447938144207, -0.09012684226036072, 0.161372572183609, 0.230752632021904, 0.04254909232258797, -0.37767916917800903, -0.35579097270965576, -0.08112284541130066, 0.07403796166181564, -0.026788882911205292, -0.2218591868877411, -0.05551138520240784, -0.3569180369377136, -0.462452232837677, 0.4300788640975952, -0.1408761739730835, 0.22320151329040527, 0.24827390909194946, 0.09816857427358627, 0.2208895981311798, 0.1877303272485733, -0.21304084360599518, 0.17306111752986908, 0.14956162869930267, 0.4758569598197937, -0.12057141214609146, 0.32244762778282166, 0.04991498216986656, -0.012288019061088562, -0.1827940195798874, -0.23582154512405396, 0.07325390726327896, -0.18683497607707977, 0.1823744922876358, -0.2235235571861267, 0.07145152240991592, 0.11722122877836227, 0.15865878760814667, 0.12829376757144928, -0.07541418075561523, 0.12032656371593475, 0.08452487736940384, 0.27937301993370056, -0.4055006504058838, -0.07856199145317078, 0.3232959806919098, 0.17164675891399384, 0.06375591456890106, -0.051628779619932175, 0.5672822594642639, 0.004197216592729092, 0.35399752855300903, 0.20326445996761322, 0.30328837037086487, -0.19174788892269135, 0.06470206379890442, 0.4779939353466034, 0.3765704333782196, 0.12041091918945312, -0.018030710518360138, 0.3117276430130005, -0.027117393910884857, 0.5138891935348511, 0.1113831177353859, 0.15053589642047882, -0.11022443324327469, 0.04374241828918457, -0.0014493361813947558, -0.4261225759983063, 0.21337951719760895, 0.24200773239135742, -0.20956993103027344, 0.0003508205700200051, 0.17386405169963837, 0.13045531511306763, 0.12506410479545593, 0.11524032056331635, -0.48725658655166626, 0.2448877990245819, 0.06717903912067413, -0.05952921882271767, -0.4496268332004547, -0.2749723792076111, 0.019411753863096237, 0.13221852481365204, 0.04089843109250069, -0.15850572288036346, 0.21324579417705536, 0.16193729639053345, -0.1462380290031433, -0.3248497545719147, -0.01876617595553398, 0.07485861331224442, -0.03974257782101631, -0.12239004671573639, 0.29677096009254456, -0.12735772132873535, -0.10223673284053802, 0.3498808443546295, 0.13842585682868958, 0.21751120686531067, -0.3345452845096588, -0.06844533234834671, -0.09101294726133347, 0.08293010294437408, -0.20933358371257782, -0.25789201259613037, 0.2532538175582886, 0.13029132783412933, -0.07934922724962234, 0.3744431734085083, 0.20174318552017212, -0.1961820125579834, 0.08377890288829803, 0.2001032829284668, 0.18652114272117615, -0.017446244135499, 0.26154276728630066, -0.16305671632289886, 0.014874528162181377, -0.12578356266021729, 0.01498214527964592, -0.23222029209136963, -0.01020384207367897, -0.13623124361038208, -0.11172743141651154, 0.2647535800933838, 0.12344580143690109, 0.13505248725414276, -0.35531559586524963, 0.20358791947364807, 0.28175660967826843, 0.061062540858983994, -0.02211363986134529, -0.2327953577041626, -0.4188673794269562, 0.19137287139892578, 0.05666586756706238, 0.050598759204149246, 0.017379915341734886, 0.036292169243097305, 0.0760340467095375, 0.1071901023387909, 0.33038973808288574, -0.13492611050605774, -0.0585247240960598, 0.44565266370773315, -0.3090667426586151, -0.06790290772914886, 0.2889004945755005, 0.11144433915615082, -0.06407778710126877, -0.18195843696594238, 0.19721025228500366, -0.13251586258411407, 0.1408117413520813, -0.2467852532863617, -0.26947343349456787, -0.06542893499135971, -0.11915101110935211, 0.45111197233200073, -0.04665202647447586, 0.5052331686019897, -0.2777947187423706, 0.0684623122215271, -0.20553307235240936, -0.024145444855093956, -0.08387727290391922, 0.17079755663871765, 0.010237012058496475, -0.0292148906737566, -0.22567583620548248, -0.14038299024105072, 0.11032678931951523, 0.07686623930931091, -0.29894012212753296, 0.29407790303230286, -0.3790905773639679, 0.16551530361175537, -0.2307606339454651, 0.17103655636310577, 0.024165883660316467, -0.13527832925319672, -0.059860531240701675, -0.039758432656526566, -0.32365092635154724, -0.2344089299440384, 0.2193441092967987, 0.07420241087675095, -0.10839980095624924, -0.16343864798545837, 0.11330492049455643, 0.03360026702284813, -0.002988278865814209, -0.015628984197974205, 0.3338150084018707, 0.2864198684692383, -0.35401397943496704, -0.06179485842585564, 0.14173054695129395, -0.09108205139636993, 0.06597264856100082, -0.03571410849690437, 0.648838460445404, 0.09364394098520279, -0.2684493362903595, -0.1648339480161667, -0.18697930872440338 ]
https://github.com/huggingface/datasets/issues/3763
It's not possible download `20200501.pt` dataset
> ```python > dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") > ``` Thank you! I did not know that I can do this. I was following the example in the error message when I do not define which language dataset I'm trying to download. I've tried something similar changing the date in the `load_dataset` call that I've shared in the bug description. Obviously, it did not work. I need to read the docs more carefully next time. My bad! Thanks again and sorry for the noise.
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ```
85
It's not possible download `20200501.pt` dataset
[ -0.5053288340568542, -0.015092436224222183, -0.26616087555885315, 0.2853660583496094, 0.17221058905124664, 0.23665450513362885, -0.07831701636314392, 0.4829849898815155, 0.10153869539499283, 0.26932722330093384, -0.0318855382502079, 0.1438046246767044, -0.051865436136722565, 0.48598042130470276, -0.19878944754600525, -0.222239151597023, 0.059734418988227844, 0.08447202295064926, -0.158421590924263, 0.07366964966058731, -0.16402220726013184, 0.17108044028282166, -0.015244364738464355, -0.12394536286592484, -0.08608803898096085, -0.1573728621006012, 0.14925815165042877, -0.0899997353553772, -0.5458304286003113, -0.1268162876367569, 0.21988637745380402, 0.011662853881716728, 0.10595615953207016, 0.26499056816101074, -0.00010383703920524567, 0.08098605275154114, 0.008866366930305958, -0.006699602119624615, -0.2381589561700821, 0.007089331746101379, -0.09375610202550888, -0.00787249393761158, -0.07522517442703247, -0.244436115026474, -0.07400356978178024, 0.04214915260672569, 0.020951716229319572, -0.05973714217543602, 0.3172294795513153, 0.37718653678894043, 0.37287989258766174, 0.14075663685798645, 0.46279749274253845, -0.367855042219162, 0.25739338994026184, -0.3957509398460388, -0.11579807847738266, 0.03881795331835747, 0.24793954193592072, 0.48867613077163696, 0.3452393710613251, 0.11606179922819138, -0.04518907889723778, 0.13213080167770386, -0.1568404585123062, -0.20576901733875275, 0.5203786492347717, -0.4154510498046875, 0.4136926829814911, 0.2793351709842682, 0.759202241897583, -0.0057161105796694756, -0.0711277574300766, 0.2658020257949829, 0.056046366691589355, -0.17207498848438263, 0.15266063809394836, 0.18450674414634705, -0.06096838042140007, 0.2107146978378296, 0.11360054463148117, -0.0837390273809433, -0.26958751678466797, 0.019015885889530182, -0.17605116963386536, -0.10379568487405777, -0.09379542618989944, 0.019288962706923485, -0.17694203555583954, -0.19269132614135742, -0.05082909017801285, 0.25179558992385864, 0.1538492739200592, 0.10028915107250214, -0.03061780147254467, -0.040264178067445755, -0.15363158285617828, -0.002773174550384283, 0.15091688930988312, 0.2505400478839874, 0.20574496686458588, 0.15025226771831512, -0.19129811227321625, -0.11887899041175842, -0.11050111800432205, -0.030245831236243248, -0.4027235507965088, -0.10372737795114517, 0.1256287395954132, 0.10540743172168732, 0.10057426989078522, 0.13940106332302094, -0.27795374393463135, -0.11044414341449738, -0.23846717178821564, 0.20397283136844635, 0.2067057341337204, -0.32958558201789856, -0.24054566025733948, 0.10343438386917114, 0.16899524629116058, 0.0756363496184349, -0.24134016036987305, 0.2287212610244751, -0.0797576829791069, 0.03748447448015213, -0.037281036376953125, 0.04379206895828247, -0.01564144715666771, -0.5161339640617371, -0.32439759373664856, 0.11461511254310608, 0.10389218479394913, -0.11727917194366455, 0.27020198106765747, -0.2249891757965088, 0.1932874321937561, -0.11534316092729568, -0.2507910430431366, -0.040268681943416595, -0.12665916979312897, -0.028181472793221474, -0.12761680781841278, 0.47388696670532227, 0.2290012389421463, -0.005103408358991146, -0.12553611397743225, 0.39335426688194275, -0.005296269431710243, 0.11578696221113205, -0.28948232531547546, -0.2845037877559662, -0.27058663964271545, 0.2860737442970276, 0.010976539924740791, -0.1301649659872055, 0.11383361369371414, -0.07927065342664719, 0.030184254050254822, -0.17389246821403503, -0.20718786120414734, 0.014208442531526089, -0.19282294809818268, -0.20610202848911285, 0.13115297257900238, 0.1805618405342102, -0.650131344795227, 0.10632583498954773, -0.07787570357322693, -0.2488478422164917, 0.26826056838035583, 0.1119917780160904, 0.03800061717629433, 0.04120757430791855, -0.2390015423297882, -0.12572456896305084, 0.13793745636940002, -0.13985897600650787, -0.4650695025920868, 0.13173025846481323, -0.30861589312553406, -0.6009163856506348, 0.43517228960990906, 0.07058151811361313, 0.11817178130149841, 0.006856232415884733, -0.02498292736709118, -0.18760386109352112, 0.1070936843752861, -0.2983643710613251, -0.13298961520195007, -0.2645132839679718, 0.0033754343166947365, 0.015364899300038815, 0.315483421087265, 0.23813776671886444, 0.24256190657615662, 0.3199019134044647, 0.2678821086883545, 0.18633517622947693, 0.07518918812274933, 0.27715131640434265, 0.18166951835155487, -0.33290860056877136, 0.05349436029791832, -0.26366347074508667, -0.22131900489330292, -0.017646776512265205, -0.1703762710094452, -0.11547499895095825, 0.050494950264692307, 0.12456469982862473, -0.5234450697898865, -0.03138875216245651, 0.08832268416881561, 0.10482440888881683, 0.2700348496437073, 0.0005242091719992459, 0.356356143951416, 0.11008624732494354, 0.00445143599063158, 0.19730885326862335, -0.3530108332633972, -0.1383521556854248, -0.23679077625274658, 0.23994532227516174, -0.2632724940776825, 0.009500479325652122, 0.22830255329608917, -0.10402915626764297, 0.2265283316373825, -0.1536346971988678, 0.07712630927562714, 0.0049137030728161335, 0.037347037345170975, 0.06069081276655197, 0.030894868075847626, 0.3778161108493805, 0.1030106171965599, -0.3140399158000946, 0.060690656304359436, 0.17890846729278564, 0.0798950120806694, 0.1203685849905014, 0.016776500269770622, 0.26476576924324036, -0.0640362948179245, -0.017625274136662483, -0.023958319798111916, 0.096612349152565, 0.5122784376144409, 0.023130526766180992, 0.2132444977760315, -0.27358976006507874, 0.25800445675849915, 0.3061237633228302, 0.22340208292007446, -0.0756666287779808, -0.19642332196235657, 0.1461663544178009, 0.2467450648546219, -0.07147020846605301, -0.0902886614203453, -0.1057719886302948, 0.03740262612700462, -0.09199345856904984, 0.0419064499437809, 0.15079852938652039, -0.04852013289928436, 0.21464376151561737, 0.21371641755104065, 0.11765479296445847, -0.046730488538742065, -0.3271408677101135, 0.12748943269252777, 0.12582218647003174, 0.03628816828131676, 0.2098235785961151, -0.047078125178813934, 0.12537765502929688, -0.2065431773662567, -0.12431951612234116, 0.415977418422699, 0.3158443570137024, -0.10663789510726929, -0.3593486249446869, -0.47027164697647095, -0.49590757489204407, 0.018392980098724365, 0.49962884187698364, 0.14566363394260406, -0.19578546285629272, 0.04964660480618477, 0.26561489701271057, 0.0408044159412384, 0.07394517958164215, -0.3385466933250427, 0.139340341091156, 0.12698280811309814, 0.08773193508386612, -0.18256567418575287, -0.012508546002209187, -0.07581710070371628, 0.2905833125114441, 0.11659157276153564, -0.2100507915019989, 0.46292707324028015, -0.28043586015701294, 0.02792791835963726, -0.4905158281326294, -0.08729520440101624, 0.2967904210090637, 0.06471236795186996, -0.3452143669128418, 0.011550611816346645, 0.28312352299690247, 0.09215804934501648, -0.01941874623298645, -0.16855576634407043, -0.3973939120769501, -0.35748571157455444, -0.07321835309267044, -0.4379754662513733, -0.0868196189403534, -0.11067040264606476, -0.5788179636001587, -0.35960784554481506, -0.24227993190288544, 0.22286632657051086, 0.29548150300979614, 0.21161624789237976, 0.19883808493614197, -0.029037045314908028, 0.12323549389839172, 0.07960245758295059, 0.027130044996738434, -0.3293537497520447, -0.35374966263771057, 0.18278175592422485, -0.14259785413742065, -0.5124803185462952, 0.4105491042137146, 0.10403371602296829, 0.11367238312959671, -0.005002613179385662, -0.27522459626197815, -0.09721684455871582, -0.04417093098163605, 0.02976507879793644, 0.027149558067321777, -0.11990145593881607, 0.3079237937927246, -0.19646577537059784, -0.211222305893898, -0.057472892105579376, 0.025512835010886192, 0.06786328554153442, 0.06458950787782669, 0.019553611055016518, 0.09580665081739426, 0.3220057487487793, 0.05242081731557846, 0.4134247601032257, 0.2602274715900421, 0.04555757716298103, 0.3408334255218506, -0.12801334261894226, 0.06174495071172714, -0.24393638968467712, -0.005953152664005756, 0.2166687548160553, -0.026036780327558517, -0.04557529464364052, 0.18882641196250916, -0.12521176040172577, -0.09276202321052551, -0.19793975353240967, 0.0491202250123024, -0.30171793699264526, -0.09379393607378006, -0.4262368977069855, -0.02456907369196415, 0.17990805208683014, 0.1778639853000641, -0.0783563181757927, -0.2546558678150177, -0.23742060363292694, 0.10941912233829498, 0.16280445456504822, 0.05155939608812332, 0.08766313642263412, -0.06878744810819626, -0.04026060551404953, -0.47200286388397217, 0.3150610625743866, -0.01519794948399067, 0.373942106962204, -0.36406758427619934, 0.2153722494840622, 0.3758136034011841, 0.029663698747754097, 0.5147141814231873, -0.24568568170070648, 0.5481950640678406, 0.27659016847610474, -0.1489158570766449, -0.12378112971782684, -0.008600501343607903, -0.3349568247795105, -0.17771022021770477, 0.2442370504140854, -0.09174719452857971, -0.12465545535087585, 0.07287866622209549, 0.26477280259132385, 0.06395795941352844, -0.0889778733253479, 0.17765651643276215, 0.15240654349327087, -0.3622053265571594, -0.39909136295318604, -0.25019875168800354, 0.11252943426370621, 0.24411441385746002, -0.08461165428161621, -0.006379270926117897, 0.03168652579188347, -0.1722191721200943, -0.1312657594680786, -0.20211373269557953, 0.15849706530570984, 0.4008146822452545, 0.20961007475852966, 0.21408532559871674, 0.21422497928142548, 0.23682846128940582, 0.3922562003135681, 0.039891958236694336, -0.010381598956882954, 0.4015638530254364, -0.2782541811466217, -0.15969698131084442, 0.2537224590778351, -0.11027176678180695, -0.04092653468251228, 0.022486500442028046, 0.07846617698669434, 0.12818114459514618, 0.18493874371051788, 0.18014709651470184, -0.32906079292297363, -0.4970793128013611, -0.3096057176589966, 0.31744539737701416, 0.3701367974281311, -0.014899231493473053, 0.14858072996139526, -0.12210418283939362, 0.049708910286426544, 0.025213800370693207, 0.019184546545147896, 0.7506256699562073, -0.17634068429470062, 0.05716501548886299, 0.06116461753845215, -0.09079498052597046, 0.4236200153827667, -0.32555636763572693, -0.13097208738327026, -0.13304580748081207, 0.03198367357254028, -0.17681340873241425, 0.07771104574203491, -0.0745740756392479, 0.10041515529155731, -0.08567304909229279, 0.2531188726425171, 0.048421312123537064, 0.2881544530391693, 0.27833661437034607, 0.1708962619304657, -0.09233264625072479, 0.13161170482635498, 0.05433788523077965, 0.25703439116477966, 0.11585865169763565, 0.2677072584629059, -0.1435200273990631, -0.19218167662620544, 0.20051179826259613, -0.06410375982522964, -0.4702264368534088, -0.06316177546977997, -0.017485449090600014, 0.19145558774471283, -0.3434562385082245, -0.27129220962524414, -0.16503068804740906, 0.11567876487970352, 0.3013090193271637, -0.04905102774500847, -0.37209734320640564, 0.02331000193953514, -0.05043841525912285, -0.42531588673591614, -0.11462406069040298, 0.21351882815361023, 0.2529650926589966, -0.3565911054611206, -0.1321766972541809, 0.1417284458875656, -0.04834243655204773, -0.19172485172748566, 0.0066460720263421535, -0.004575854167342186, 0.15991228818893433, 0.20912139117717743, 0.02760072983801365, -0.17759190499782562, -0.2540728747844696, -0.38282111287117004, 0.2237044721841812, -0.09099636971950531, -0.01325624156743288, 0.0033430950716137886, 0.25839436054229736, -0.39530324935913086, -0.30784863233566284, 0.5620148777961731, 0.07043237239122391, 0.1403525471687317, 0.40041857957839966, 0.18583621084690094, -0.13678830862045288, -0.4021373689174652, -0.017485840246081352, 0.046685874462127686, -0.32574015855789185, 0.1118585616350174, -0.00661222031340003, 0.2627870440483093, 0.10880740731954575, 0.5001118779182434, 0.2790956497192383, -0.09452679753303528, -0.027177732437849045, -0.4214977025985718, -0.3379365801811218, -0.03570694848895073, -0.015010318718850613, 0.11404744535684586, -0.010229352861642838, 0.31624120473861694, 0.11269312351942062, -0.28748220205307007, -0.44185808300971985, 0.19823525846004486, -0.1367853283882141, -0.1547444462776184, 0.09948690235614777, 0.0170447938144207, -0.09012684226036072, 0.161372572183609, 0.230752632021904, 0.04254909232258797, -0.37767916917800903, -0.35579097270965576, -0.08112284541130066, 0.07403796166181564, -0.026788882911205292, -0.2218591868877411, -0.05551138520240784, -0.3569180369377136, -0.462452232837677, 0.4300788640975952, -0.1408761739730835, 0.22320151329040527, 0.24827390909194946, 0.09816857427358627, 0.2208895981311798, 0.1877303272485733, -0.21304084360599518, 0.17306111752986908, 0.14956162869930267, 0.4758569598197937, -0.12057141214609146, 0.32244762778282166, 0.04991498216986656, -0.012288019061088562, -0.1827940195798874, -0.23582154512405396, 0.07325390726327896, -0.18683497607707977, 0.1823744922876358, -0.2235235571861267, 0.07145152240991592, 0.11722122877836227, 0.15865878760814667, 0.12829376757144928, -0.07541418075561523, 0.12032656371593475, 0.08452487736940384, 0.27937301993370056, -0.4055006504058838, -0.07856199145317078, 0.3232959806919098, 0.17164675891399384, 0.06375591456890106, -0.051628779619932175, 0.5672822594642639, 0.004197216592729092, 0.35399752855300903, 0.20326445996761322, 0.30328837037086487, -0.19174788892269135, 0.06470206379890442, 0.4779939353466034, 0.3765704333782196, 0.12041091918945312, -0.018030710518360138, 0.3117276430130005, -0.027117393910884857, 0.5138891935348511, 0.1113831177353859, 0.15053589642047882, -0.11022443324327469, 0.04374241828918457, -0.0014493361813947558, -0.4261225759983063, 0.21337951719760895, 0.24200773239135742, -0.20956993103027344, 0.0003508205700200051, 0.17386405169963837, 0.13045531511306763, 0.12506410479545593, 0.11524032056331635, -0.48725658655166626, 0.2448877990245819, 0.06717903912067413, -0.05952921882271767, -0.4496268332004547, -0.2749723792076111, 0.019411753863096237, 0.13221852481365204, 0.04089843109250069, -0.15850572288036346, 0.21324579417705536, 0.16193729639053345, -0.1462380290031433, -0.3248497545719147, -0.01876617595553398, 0.07485861331224442, -0.03974257782101631, -0.12239004671573639, 0.29677096009254456, -0.12735772132873535, -0.10223673284053802, 0.3498808443546295, 0.13842585682868958, 0.21751120686531067, -0.3345452845096588, -0.06844533234834671, -0.09101294726133347, 0.08293010294437408, -0.20933358371257782, -0.25789201259613037, 0.2532538175582886, 0.13029132783412933, -0.07934922724962234, 0.3744431734085083, 0.20174318552017212, -0.1961820125579834, 0.08377890288829803, 0.2001032829284668, 0.18652114272117615, -0.017446244135499, 0.26154276728630066, -0.16305671632289886, 0.014874528162181377, -0.12578356266021729, 0.01498214527964592, -0.23222029209136963, -0.01020384207367897, -0.13623124361038208, -0.11172743141651154, 0.2647535800933838, 0.12344580143690109, 0.13505248725414276, -0.35531559586524963, 0.20358791947364807, 0.28175660967826843, 0.061062540858983994, -0.02211363986134529, -0.2327953577041626, -0.4188673794269562, 0.19137287139892578, 0.05666586756706238, 0.050598759204149246, 0.017379915341734886, 0.036292169243097305, 0.0760340467095375, 0.1071901023387909, 0.33038973808288574, -0.13492611050605774, -0.0585247240960598, 0.44565266370773315, -0.3090667426586151, -0.06790290772914886, 0.2889004945755005, 0.11144433915615082, -0.06407778710126877, -0.18195843696594238, 0.19721025228500366, -0.13251586258411407, 0.1408117413520813, -0.2467852532863617, -0.26947343349456787, -0.06542893499135971, -0.11915101110935211, 0.45111197233200073, -0.04665202647447586, 0.5052331686019897, -0.2777947187423706, 0.0684623122215271, -0.20553307235240936, -0.024145444855093956, -0.08387727290391922, 0.17079755663871765, 0.010237012058496475, -0.0292148906737566, -0.22567583620548248, -0.14038299024105072, 0.11032678931951523, 0.07686623930931091, -0.29894012212753296, 0.29407790303230286, -0.3790905773639679, 0.16551530361175537, -0.2307606339454651, 0.17103655636310577, 0.024165883660316467, -0.13527832925319672, -0.059860531240701675, -0.039758432656526566, -0.32365092635154724, -0.2344089299440384, 0.2193441092967987, 0.07420241087675095, -0.10839980095624924, -0.16343864798545837, 0.11330492049455643, 0.03360026702284813, -0.002988278865814209, -0.015628984197974205, 0.3338150084018707, 0.2864198684692383, -0.35401397943496704, -0.06179485842585564, 0.14173054695129395, -0.09108205139636993, 0.06597264856100082, -0.03571410849690437, 0.648838460445404, 0.09364394098520279, -0.2684493362903595, -0.1648339480161667, -0.18697930872440338 ]
https://github.com/huggingface/datasets/issues/3762
`Dataset.class_encode` should support custom class names
Hi @Dref360, thanks a lot for your proposal. It totally makes sense to have more flexibility when class encoding, I agree. You could even further customize the class encoding by passing an instance of `ClassLabel` itself (instead of replicating `ClassLabel` instantiation arguments as `Dataset.class_encode_column` arguments). And the latter made me think of `Dataset.cast_column`... Maybe better to have some others' opinions @lhoestq @mariosasko
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted.
62
`Dataset.class_encode` should support custom class names
[ -0.209991455078125, 0.4157164692878723, -0.15350893139839172, 0.07143983989953995, 0.49031537771224976, 0.06413115561008453, 0.41283950209617615, 0.22604386508464813, -0.2094999998807907, 0.11637357622385025, 0.24488383531570435, 0.5020076036453247, -0.28346768021583557, 0.3959560692310333, 0.10684482008218765, -0.09028612077236176, 0.04105794057250023, 0.2048964649438858, -0.10520103573799133, -0.14841917157173157, -0.41323769092559814, 0.11994963884353638, 0.1433546096086502, 0.19558601081371307, -0.08076401799917221, 0.23868975043296814, 0.03435112163424492, -0.04647945612668991, -0.16812101006507874, -0.5056830644607544, 0.4187001585960388, 0.391440212726593, 0.16752684116363525, 0.25475382804870605, -0.0001022969008772634, 0.15193529427051544, 0.13401581346988678, -0.1317184865474701, -0.3308253288269043, 0.35117578506469727, -0.4072014391422272, -0.30225589871406555, 0.09474430233240128, -0.556980311870575, -0.28030237555503845, -0.21805980801582336, 0.1893950253725052, -0.6305898427963257, -0.06287692487239838, 0.11296911537647247, 0.287823885679245, -0.2214709371328354, -0.13661737740039825, -0.1928761899471283, 0.16183122992515564, 0.2429901361465454, -0.19741852581501007, 0.020050829276442528, 0.20646314322948456, 0.2562398612499237, -0.24200043082237244, 0.22842815518379211, 0.24862445890903473, -0.05834606662392616, 0.3196631968021393, -0.07128338515758514, -0.15668745338916779, 0.07369561493396759, 0.13499312102794647, 0.15350791811943054, 0.425150990486145, -0.2777811288833618, -0.2812211513519287, -0.09192164987325668, 0.19901497662067413, -0.40054067969322205, 0.23807750642299652, -0.1185731589794159, 0.05342524126172066, 0.20391444861888885, -0.08092018961906433, -0.11198515444993973, -0.3115665316581726, 0.05921139940619469, 0.17057450115680695, 0.3999423086643219, 0.009324660524725914, 0.04698360711336136, -0.1302947998046875, -0.23606282472610474, 0.4972105622291565, 0.06103062257170677, -0.12745200097560883, -0.09854333102703094, 0.06850402802228928, -0.2262510061264038, -0.17931151390075684, 0.04292118549346924, 0.027606630697846413, -0.021333947777748108, -0.20699244737625122, 0.36961326003074646, 0.2908708155155182, -0.06927306205034256, -0.12295845150947571, -0.069986991584301, 0.3914686441421509, 0.3163451552391052, 0.3557421565055847, -0.057307880371809006, -0.22393923997879028, 0.12450841814279556, -0.31542709469795227, -0.021154111251235008, -0.1107218936085701, 0.05200967565178871, -0.3620472550392151, 0.07018841058015823, 0.00011507053568493575, 0.06752502918243408, 0.08359891176223755, -0.06407096982002258, 0.16704806685447693, 0.2274993360042572, 0.2827543318271637, -0.09618938714265823, 0.09858930110931396, 0.04351254925131798, 0.0013037167955189943, -0.3823632001876831, -0.08234376460313797, 0.10889914631843567, -0.055663976818323135, -0.14451558887958527, 0.21208898723125458, 0.10714131593704224, 0.11209756135940552, -0.18470945954322815, 0.23678694665431976, -0.021700631827116013, 0.12057727575302124, 0.4105820655822754, 0.08928602933883667, -0.07154428213834763, -0.37579548358917236, 0.0049483501352369785, 0.12231146544218063, -0.3789544999599457, -0.18565483391284943, -0.13749536871910095, -0.26765891909599304, -0.08604905754327774, -0.19900082051753998, 0.2778712511062622, 0.07681561261415482, -0.2761114537715912, 0.3098289370536804, 0.26206260919570923, 0.253827840089798, -0.26125356554985046, 0.1610792726278305, -0.21070808172225952, -0.060593582689762115, -0.014718035236001015, -0.04830888286232948, -0.01617577113211155, -0.2808280289173126, -0.32419636845588684, 0.16315844655036926, -0.016708144918084145, -0.016161397099494934, -0.22550606727600098, -0.23923450708389282, -0.21445098519325256, -0.15485000610351562, 0.1047043427824974, 0.2930104434490204, -0.46228545904159546, -0.19338059425354004, 0.18927405774593353, 0.0847926139831543, -0.3097897171974182, 0.5628185868263245, 0.16242815554141998, 0.06767051666975021, -0.11173521727323532, 0.0878630131483078, 0.20155133306980133, 0.01210707612335682, -0.20106171071529388, 0.17248573899269104, -0.19569611549377441, 0.12434852868318558, 0.2975553274154663, 0.06575324386358261, -0.07689907401800156, 0.10507697612047195, 0.04235731437802315, 0.09724675118923187, -0.5775883197784424, 0.0812080129981041, 0.01879662089049816, -0.12201076000928879, 0.040682047605514526, 0.014853235334157944, -0.10358024388551712, -0.2283875197172165, 0.0517306812107563, -0.1380910575389862, 0.012844808399677277, -0.23595967888832092, -0.4526192843914032, 0.08073072135448456, -0.11713212728500366, -0.29760003089904785, -0.18404021859169006, 0.25947239995002747, 0.2923646867275238, -0.051359426230192184, 0.0013947284314781427, -0.20860855281352997, 0.17292699217796326, -0.2825355529785156, -0.004843536764383316, 0.024820154532790184, -0.17361977696418762, 0.11320490390062332, 0.13907086849212646, -0.15362338721752167, 0.27448511123657227, 0.06098722293972969, -0.23776108026504517, -0.15097559988498688, 0.18437586724758148, 0.00951505359262228, -0.2847253978252411, 0.17095305025577545, -0.07332615554332733, 0.04031451791524887, -0.12028450518846512, 0.17554223537445068, -0.06951490789651871, -0.023357927799224854, -0.0031542018987238407, -0.1820620447397232, 0.46341392397880554, 0.2359664887189865, -0.04408205300569534, 0.17091083526611328, -0.24781587719917297, 0.37746694684028625, 0.05431906878948212, -0.32082799077033997, -0.42924007773399353, -0.037945862859487534, 0.04385947436094284, 0.3519067168235779, 0.04290597140789032, -0.24842800199985504, -0.15998852252960205, 0.8554233908653259, 0.009291727095842361, 0.2226102650165558, -0.07649118453264236, -0.00464988686144352, 0.1910199224948883, 0.12388401478528976, 0.6697263121604919, 0.1930503398180008, 0.17881441116333008, -0.012991040013730526, -0.10853709280490875, -0.19425344467163086, -0.18401199579238892, 0.12287155538797379, -0.024849141016602516, 0.18116387724876404, -0.04829559847712517, 0.0013704157900065184, -0.2340238243341446, -0.5116034746170044, -0.2139165699481964, 0.15029862523078918, -0.22221533954143524, -0.14488787949085236, 0.17388322949409485, -0.5257680416107178, -0.34622952342033386, -0.13449524343013763, 0.06784088909626007, -0.020442796871066093, -0.11290927976369858, 0.22896017134189606, -0.425210177898407, -0.19471000134944916, 0.35198089480400085, -0.18703940510749817, 0.24808785319328308, -0.09263620525598526, -0.3758525252342224, 0.15717501938343048, -0.1489674299955368, -0.21780180931091309, 0.16276076436042786, 0.09710868448019028, -0.47743865847587585, 0.33686283230781555, -0.1406412571668625, 0.039674852043390274, -0.18377406895160675, -0.4771001935005188, 0.18328425288200378, -0.11344417929649353, -0.1059049740433693, 0.18108606338500977, -0.20224814116954803, -0.155012309551239, -0.2643294632434845, 0.2868652939796448, 0.05504315719008446, 0.1038265973329544, -0.17204037308692932, 0.1354725956916809, -0.09117256104946136, -0.33092886209487915, -0.4497016668319702, -0.37099602818489075, -0.27926596999168396, 0.04564393684267998, -0.061221327632665634, 0.006556649226695299, 0.23994454741477966, -0.029970241710543633, 0.13434277474880219, 0.14726434648036957, 0.028051400557160378, -0.21717141568660736, -0.28032219409942627, 0.4713840186595917, -0.3854382038116455, -0.08961871266365051, -0.05801859125494957, -0.17260032892227173, 0.3366698920726776, 0.017442084848880768, -0.06879434734582901, -0.11036142706871033, 0.10329971462488174, 0.285861074924469, 0.16548144817352295, -0.05955688655376434, 0.0858820453286171, 0.2771534025669098, -0.15620030462741852, -0.24345915019512177, -0.12799379229545593, 0.22659720480442047, -0.17981499433517456, -0.08714419603347778, 0.02038920484483242, 0.5014781951904297, -0.10308026522397995, 0.36010727286338806, -0.09401930868625641, -0.29597118496894836, 0.3231416940689087, 0.013202842324972153, 0.38235291838645935, 0.09920831769704819, 0.054676685482263565, 0.06272262334823608, -0.16622015833854675, -0.0050874389708042145, 0.20984624326229095, -0.1047043576836586, -0.26289862394332886, 0.06262557953596115, 0.3676259219646454, 0.12123586237430573, -0.24841167032718658, 0.034915413707494736, 0.1194860115647316, 0.18955959379673004, -0.07818249613046646, 0.26761406660079956, -0.04904111474752426, 0.19500507414340973, 0.09829346090555191, 0.06298355758190155, -0.3518213629722595, -0.02894779108464718, -0.4073730707168579, -0.19358429312705994, -0.047751277685165405, 0.21202626824378967, 0.09669018536806107, 0.24979573488235474, -0.20002491772174835, 0.0653337836265564, 0.03216389939188957, 0.008991152979433537, 0.22744660079479218, -0.3592042326927185, -0.09027846902608871, 0.16302615404129028, -0.00395464152097702, 0.09744955599308014, -0.043261636048555374, -0.020135125145316124, 0.10905496776103973, -0.0794954001903534, -0.3705085515975952, -0.1730852574110031, -0.12988264858722687, 0.45249244570732117, -0.02750042825937271, -0.23175643384456635, -0.056753456592559814, 0.08657518029212952, -0.1787695437669754, -0.19778603315353394, -0.02442917786538601, 0.3524489104747772, 0.11304521560668945, -0.009659836068749428, -0.15618740022182465, -0.30054739117622375, -0.13346567749977112, 0.17439374327659607, 0.12505944073200226, -0.03356091305613518, 0.21232374012470245, -0.008722844533622265, -0.25955531001091003, 0.2443433552980423, 0.4115224778652191, 0.46909865736961365, -0.37373024225234985, -0.5423241853713989, 0.32831284403800964, -0.2643909454345703, 0.5027212500572205, 0.2324380874633789, -0.0992199257016182, -0.0740760788321495, 0.2734776735305786, -0.24798943102359772, -0.2202790528535843, 0.2254541516304016, 0.35114407539367676, -0.031521786004304886, -0.4303295314311981, -0.5919122099876404, 0.477125346660614, 0.03835368901491165, 0.03727377951145172, -0.1510482281446457, 0.11071358621120453, -0.7045401930809021, 0.08696252852678299, 0.16638633608818054, 0.4598716199398041, 0.06481828540563583, 0.31046435236930847, -0.055530305951833725, -0.17417176067829132, 0.42603668570518494, -0.19245027005672455, 0.15601961314678192, -0.19269952178001404, -0.21844197809696198, -0.06664254516363144, 0.15587705373764038, 0.47734054923057556, 0.38936135172843933, 0.054506223648786545, 0.16940900683403015, 0.045527007430791855, 0.03651433438062668, -0.008161581121385098, 0.20060528814792633, 0.0034770630300045013, -0.29546159505844116, -0.22893865406513214, 0.2679307162761688, 0.06344453990459442, -0.38661715388298035, -0.04683931916952133, -0.15659672021865845, 0.05714142322540283, 0.01120053417980671, -0.08315877616405487, -0.014153935946524143, -0.024383973330259323, 0.24810585379600525, -0.17901858687400818, -0.3605464696884155, 0.2903420925140381, 0.01992068439722061, 0.4032447636127472, 0.22527815401554108, -0.06906323879957199, 0.3372247815132141, -0.13439102470874786, 0.21975788474082947, -0.21172331273555756, 0.07591702789068222, 0.40295323729515076, 0.013385671190917492, 0.2357296645641327, 0.011126928962767124, 0.06115494668483734, -0.3988242745399475, 0.15472185611724854, -0.16667188704013824, 0.302267849445343, -0.3258204460144043, 0.12090800702571869, -0.13056457042694092, 0.0890861302614212, -0.3901776373386383, 0.23407745361328125, -0.010047578252851963, -0.1459084302186966, -0.11154543608427048, 0.05595075711607933, -0.16989614069461823, -0.20878064632415771, 0.13023993372917175, 0.22292611002922058, -0.11393051594495773, 0.4268677234649658, -0.11281691491603851, -0.10778266191482544, -0.2331703007221222, 0.2702864706516266, 0.30997034907341003, -0.09340669214725494, 0.11082066595554352, 0.32513484358787537, -0.4475274682044983, -0.058595333248376846, -0.12594909965991974, 0.003630475141108036, 0.16117198765277863, -0.0953625813126564, 0.142741397023201, -0.49080100655555725, 0.0688239112496376, 0.02859659492969513, 0.33014434576034546, 0.18886177241802216, 0.0514572411775589, -0.08062350004911423, -0.2733857333660126, -0.3834945261478424, -0.21666663885116577, -0.024011701345443726, -0.15471461415290833, 0.12293518334627151, 0.33086147904396057, 0.1025945171713829, 0.14007261395454407, 0.21804527938365936, 0.08569852262735367, -0.13810069859027863, -0.22501063346862793, -0.291688472032547, 0.08123497664928436, 0.23674210906028748, 0.4116590917110443, 0.025826526805758476, -0.22117026150226593, -0.12131018191576004, -0.13407458364963531, 0.14470987021923065, -0.04438001662492752, 0.012286759912967682, 0.5059929490089417, 0.12537281215190887, 0.06249502673745155, 0.21126271784305573, -0.1524539291858673, 0.06291820853948593, 0.49783286452293396, 0.1425950974225998, -0.013913827948272228, -0.06879370659589767, 0.07357437908649445, 0.06340593844652176, 0.11985447257757187, 0.000386576633900404, 0.08489445596933365, 0.027408672496676445, -0.26281067728996277, 0.03559352457523346, 0.4787783622741699, -0.008694694377481937, 0.34043607115745544, -0.27129319310188293, -0.28203654289245605, 0.40879055857658386, 0.21760518848896027, -0.13529106974601746, -0.2429642379283905, 0.051049891859292984, -0.23970596492290497, 0.12697787582874298, 0.24673447012901306, 0.14312733709812164, 0.1301877349615097, 0.11111612617969513, -0.03966766968369484, 0.15892116725444794, -0.09995964169502258, 0.40740761160850525, 0.36057108640670776, -0.019717911258339882, 0.046438995748758316, 0.3235768973827362, 0.2752460837364197, 0.31802210211753845, 0.6103225946426392, -0.04429945722222328, 0.2419554591178894, 0.28957799077033997, 0.1293778419494629, 0.10121065378189087, 0.16979077458381653, 0.2187580019235611, -0.01765988953411579, 0.15387074649333954, 0.4693644940853119, 0.2383589744567871, 0.019729945808649063, -0.3650829792022705, -0.11172059923410416, -0.30137741565704346, 0.025631165131926537, -0.17507131397724152, -0.2930741310119629, 0.001140636159107089, -0.09348321706056595, -0.07868481427431107, 0.11948085576295853, -0.47452378273010254, 0.0268268845975399, 0.16569964587688446, -0.11871452629566193, 0.16475923359394073, -0.10278045386075974, 0.31088775396347046, -0.287433385848999, 0.10008318722248077, -0.03862534463405609, 0.2913329005241394, 0.231856569647789, -0.16676081717014313, 0.395529180765152, -0.05841304734349251, -0.019443444907665253, -0.011781487613916397, 0.081227146089077, -0.37795838713645935, -0.33566150069236755, 0.025645539164543152, -0.2630184590816498, 0.02669924683868885, 0.05950353294610977, -0.03615425154566765, 0.22579698264598846, 0.22336681187152863, -0.1583472043275833, -0.05028289183974266, 0.3495611250400543, 0.0692005380988121, -0.17394796013832092, 0.2597559094429016, 0.21484696865081787, 0.14636145532131195, 0.06355560570955276, -0.05742453411221504, -0.31743234395980835, -0.36080488562583923, 0.34432730078697205, 0.11416278779506683, 0.15091003477573395, 0.03362910822033882, 0.127261221408844, -0.02110670506954193, 0.5018587112426758, -0.15144696831703186, -0.20517830550670624, 0.09610040485858917, -0.11254233121871948, -0.29412642121315, 0.17116133868694305, 0.09694089740514755, -0.3816310465335846, -0.12073621153831482, -0.051124464720487595, 0.3983498513698578, -0.2882815897464752, 0.11961882561445236, -0.16853299736976624, 0.17031076550483704, -0.11411341279745102, -0.2784578800201416, -0.12195023894309998, 0.16667670011520386, 0.24641552567481995, 0.21567845344543457, -0.19863992929458618, -0.08377634733915329, 0.10646302253007889, 0.05291062965989113, -0.1916581243276596, -0.06698860228061676, 0.08620544523000717, -0.44098880887031555, 0.4960872232913971, -0.03140309453010559, 0.4105471670627594, -0.20870010554790497, -0.19927717745304108, 0.09167223423719406, -0.2031899094581604, -0.18660400807857513, 0.6522056460380554, -0.04953900724649429, 0.25186312198638916, -0.15822410583496094, -0.07383307814598083, 0.006178673356771469, 0.19057369232177734, -0.029434431344270706, 0.1297137588262558, -0.046009913086891174, 0.45371153950691223, -0.11142220348119736, -0.08848665654659271, 0.11123985052108765, 0.18053236603736877, -0.00386068201623857, 0.15863332152366638, 0.11367734521627426, -0.39554646611213684, 0.26170405745506287, -0.24964039027690887, -0.49240607023239136, 0.1046275794506073, 0.11954392492771149, -0.11664682626724243, 0.22635139524936676, -0.294647753238678, 0.2089352309703827, 0.23660507798194885, 0.08604150265455246, -0.2020469456911087, 0.2770594656467438, -0.12774263322353363, -0.027046794071793556, -0.06886064261198044, 0.48041805624961853, -0.01899917982518673, -0.17175212502479553, -0.21411171555519104, -0.31077396869659424 ]
https://github.com/huggingface/datasets/issues/3762
`Dataset.class_encode` should support custom class names
Hi @Dref360! You can use [`Dataset.align_labels_with_mapping`](https://huggingface.co/docs/datasets/master/package_reference/main_classes.html#datasets.Dataset.align_labels_with_mapping) after `Dataset.class_encode_column` to assign a different mapping of labels to ids. @albertvillanova I'd like to avoid adding more complexity to the API where it's not (absolutely) needed, so I don't think introducing a new param in `Dataset.class_encode_column` is a good idea.
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted.
47
`Dataset.class_encode` should support custom class names
[ -0.209991455078125, 0.4157164692878723, -0.15350893139839172, 0.07143983989953995, 0.49031537771224976, 0.06413115561008453, 0.41283950209617615, 0.22604386508464813, -0.2094999998807907, 0.11637357622385025, 0.24488383531570435, 0.5020076036453247, -0.28346768021583557, 0.3959560692310333, 0.10684482008218765, -0.09028612077236176, 0.04105794057250023, 0.2048964649438858, -0.10520103573799133, -0.14841917157173157, -0.41323769092559814, 0.11994963884353638, 0.1433546096086502, 0.19558601081371307, -0.08076401799917221, 0.23868975043296814, 0.03435112163424492, -0.04647945612668991, -0.16812101006507874, -0.5056830644607544, 0.4187001585960388, 0.391440212726593, 0.16752684116363525, 0.25475382804870605, -0.0001022969008772634, 0.15193529427051544, 0.13401581346988678, -0.1317184865474701, -0.3308253288269043, 0.35117578506469727, -0.4072014391422272, -0.30225589871406555, 0.09474430233240128, -0.556980311870575, -0.28030237555503845, -0.21805980801582336, 0.1893950253725052, -0.6305898427963257, -0.06287692487239838, 0.11296911537647247, 0.287823885679245, -0.2214709371328354, -0.13661737740039825, -0.1928761899471283, 0.16183122992515564, 0.2429901361465454, -0.19741852581501007, 0.020050829276442528, 0.20646314322948456, 0.2562398612499237, -0.24200043082237244, 0.22842815518379211, 0.24862445890903473, -0.05834606662392616, 0.3196631968021393, -0.07128338515758514, -0.15668745338916779, 0.07369561493396759, 0.13499312102794647, 0.15350791811943054, 0.425150990486145, -0.2777811288833618, -0.2812211513519287, -0.09192164987325668, 0.19901497662067413, -0.40054067969322205, 0.23807750642299652, -0.1185731589794159, 0.05342524126172066, 0.20391444861888885, -0.08092018961906433, -0.11198515444993973, -0.3115665316581726, 0.05921139940619469, 0.17057450115680695, 0.3999423086643219, 0.009324660524725914, 0.04698360711336136, -0.1302947998046875, -0.23606282472610474, 0.4972105622291565, 0.06103062257170677, -0.12745200097560883, -0.09854333102703094, 0.06850402802228928, -0.2262510061264038, -0.17931151390075684, 0.04292118549346924, 0.027606630697846413, -0.021333947777748108, -0.20699244737625122, 0.36961326003074646, 0.2908708155155182, -0.06927306205034256, -0.12295845150947571, -0.069986991584301, 0.3914686441421509, 0.3163451552391052, 0.3557421565055847, -0.057307880371809006, -0.22393923997879028, 0.12450841814279556, -0.31542709469795227, -0.021154111251235008, -0.1107218936085701, 0.05200967565178871, -0.3620472550392151, 0.07018841058015823, 0.00011507053568493575, 0.06752502918243408, 0.08359891176223755, -0.06407096982002258, 0.16704806685447693, 0.2274993360042572, 0.2827543318271637, -0.09618938714265823, 0.09858930110931396, 0.04351254925131798, 0.0013037167955189943, -0.3823632001876831, -0.08234376460313797, 0.10889914631843567, -0.055663976818323135, -0.14451558887958527, 0.21208898723125458, 0.10714131593704224, 0.11209756135940552, -0.18470945954322815, 0.23678694665431976, -0.021700631827116013, 0.12057727575302124, 0.4105820655822754, 0.08928602933883667, -0.07154428213834763, -0.37579548358917236, 0.0049483501352369785, 0.12231146544218063, -0.3789544999599457, -0.18565483391284943, -0.13749536871910095, -0.26765891909599304, -0.08604905754327774, -0.19900082051753998, 0.2778712511062622, 0.07681561261415482, -0.2761114537715912, 0.3098289370536804, 0.26206260919570923, 0.253827840089798, -0.26125356554985046, 0.1610792726278305, -0.21070808172225952, -0.060593582689762115, -0.014718035236001015, -0.04830888286232948, -0.01617577113211155, -0.2808280289173126, -0.32419636845588684, 0.16315844655036926, -0.016708144918084145, -0.016161397099494934, -0.22550606727600098, -0.23923450708389282, -0.21445098519325256, -0.15485000610351562, 0.1047043427824974, 0.2930104434490204, -0.46228545904159546, -0.19338059425354004, 0.18927405774593353, 0.0847926139831543, -0.3097897171974182, 0.5628185868263245, 0.16242815554141998, 0.06767051666975021, -0.11173521727323532, 0.0878630131483078, 0.20155133306980133, 0.01210707612335682, -0.20106171071529388, 0.17248573899269104, -0.19569611549377441, 0.12434852868318558, 0.2975553274154663, 0.06575324386358261, -0.07689907401800156, 0.10507697612047195, 0.04235731437802315, 0.09724675118923187, -0.5775883197784424, 0.0812080129981041, 0.01879662089049816, -0.12201076000928879, 0.040682047605514526, 0.014853235334157944, -0.10358024388551712, -0.2283875197172165, 0.0517306812107563, -0.1380910575389862, 0.012844808399677277, -0.23595967888832092, -0.4526192843914032, 0.08073072135448456, -0.11713212728500366, -0.29760003089904785, -0.18404021859169006, 0.25947239995002747, 0.2923646867275238, -0.051359426230192184, 0.0013947284314781427, -0.20860855281352997, 0.17292699217796326, -0.2825355529785156, -0.004843536764383316, 0.024820154532790184, -0.17361977696418762, 0.11320490390062332, 0.13907086849212646, -0.15362338721752167, 0.27448511123657227, 0.06098722293972969, -0.23776108026504517, -0.15097559988498688, 0.18437586724758148, 0.00951505359262228, -0.2847253978252411, 0.17095305025577545, -0.07332615554332733, 0.04031451791524887, -0.12028450518846512, 0.17554223537445068, -0.06951490789651871, -0.023357927799224854, -0.0031542018987238407, -0.1820620447397232, 0.46341392397880554, 0.2359664887189865, -0.04408205300569534, 0.17091083526611328, -0.24781587719917297, 0.37746694684028625, 0.05431906878948212, -0.32082799077033997, -0.42924007773399353, -0.037945862859487534, 0.04385947436094284, 0.3519067168235779, 0.04290597140789032, -0.24842800199985504, -0.15998852252960205, 0.8554233908653259, 0.009291727095842361, 0.2226102650165558, -0.07649118453264236, -0.00464988686144352, 0.1910199224948883, 0.12388401478528976, 0.6697263121604919, 0.1930503398180008, 0.17881441116333008, -0.012991040013730526, -0.10853709280490875, -0.19425344467163086, -0.18401199579238892, 0.12287155538797379, -0.024849141016602516, 0.18116387724876404, -0.04829559847712517, 0.0013704157900065184, -0.2340238243341446, -0.5116034746170044, -0.2139165699481964, 0.15029862523078918, -0.22221533954143524, -0.14488787949085236, 0.17388322949409485, -0.5257680416107178, -0.34622952342033386, -0.13449524343013763, 0.06784088909626007, -0.020442796871066093, -0.11290927976369858, 0.22896017134189606, -0.425210177898407, -0.19471000134944916, 0.35198089480400085, -0.18703940510749817, 0.24808785319328308, -0.09263620525598526, -0.3758525252342224, 0.15717501938343048, -0.1489674299955368, -0.21780180931091309, 0.16276076436042786, 0.09710868448019028, -0.47743865847587585, 0.33686283230781555, -0.1406412571668625, 0.039674852043390274, -0.18377406895160675, -0.4771001935005188, 0.18328425288200378, -0.11344417929649353, -0.1059049740433693, 0.18108606338500977, -0.20224814116954803, -0.155012309551239, -0.2643294632434845, 0.2868652939796448, 0.05504315719008446, 0.1038265973329544, -0.17204037308692932, 0.1354725956916809, -0.09117256104946136, -0.33092886209487915, -0.4497016668319702, -0.37099602818489075, -0.27926596999168396, 0.04564393684267998, -0.061221327632665634, 0.006556649226695299, 0.23994454741477966, -0.029970241710543633, 0.13434277474880219, 0.14726434648036957, 0.028051400557160378, -0.21717141568660736, -0.28032219409942627, 0.4713840186595917, -0.3854382038116455, -0.08961871266365051, -0.05801859125494957, -0.17260032892227173, 0.3366698920726776, 0.017442084848880768, -0.06879434734582901, -0.11036142706871033, 0.10329971462488174, 0.285861074924469, 0.16548144817352295, -0.05955688655376434, 0.0858820453286171, 0.2771534025669098, -0.15620030462741852, -0.24345915019512177, -0.12799379229545593, 0.22659720480442047, -0.17981499433517456, -0.08714419603347778, 0.02038920484483242, 0.5014781951904297, -0.10308026522397995, 0.36010727286338806, -0.09401930868625641, -0.29597118496894836, 0.3231416940689087, 0.013202842324972153, 0.38235291838645935, 0.09920831769704819, 0.054676685482263565, 0.06272262334823608, -0.16622015833854675, -0.0050874389708042145, 0.20984624326229095, -0.1047043576836586, -0.26289862394332886, 0.06262557953596115, 0.3676259219646454, 0.12123586237430573, -0.24841167032718658, 0.034915413707494736, 0.1194860115647316, 0.18955959379673004, -0.07818249613046646, 0.26761406660079956, -0.04904111474752426, 0.19500507414340973, 0.09829346090555191, 0.06298355758190155, -0.3518213629722595, -0.02894779108464718, -0.4073730707168579, -0.19358429312705994, -0.047751277685165405, 0.21202626824378967, 0.09669018536806107, 0.24979573488235474, -0.20002491772174835, 0.0653337836265564, 0.03216389939188957, 0.008991152979433537, 0.22744660079479218, -0.3592042326927185, -0.09027846902608871, 0.16302615404129028, -0.00395464152097702, 0.09744955599308014, -0.043261636048555374, -0.020135125145316124, 0.10905496776103973, -0.0794954001903534, -0.3705085515975952, -0.1730852574110031, -0.12988264858722687, 0.45249244570732117, -0.02750042825937271, -0.23175643384456635, -0.056753456592559814, 0.08657518029212952, -0.1787695437669754, -0.19778603315353394, -0.02442917786538601, 0.3524489104747772, 0.11304521560668945, -0.009659836068749428, -0.15618740022182465, -0.30054739117622375, -0.13346567749977112, 0.17439374327659607, 0.12505944073200226, -0.03356091305613518, 0.21232374012470245, -0.008722844533622265, -0.25955531001091003, 0.2443433552980423, 0.4115224778652191, 0.46909865736961365, -0.37373024225234985, -0.5423241853713989, 0.32831284403800964, -0.2643909454345703, 0.5027212500572205, 0.2324380874633789, -0.0992199257016182, -0.0740760788321495, 0.2734776735305786, -0.24798943102359772, -0.2202790528535843, 0.2254541516304016, 0.35114407539367676, -0.031521786004304886, -0.4303295314311981, -0.5919122099876404, 0.477125346660614, 0.03835368901491165, 0.03727377951145172, -0.1510482281446457, 0.11071358621120453, -0.7045401930809021, 0.08696252852678299, 0.16638633608818054, 0.4598716199398041, 0.06481828540563583, 0.31046435236930847, -0.055530305951833725, -0.17417176067829132, 0.42603668570518494, -0.19245027005672455, 0.15601961314678192, -0.19269952178001404, -0.21844197809696198, -0.06664254516363144, 0.15587705373764038, 0.47734054923057556, 0.38936135172843933, 0.054506223648786545, 0.16940900683403015, 0.045527007430791855, 0.03651433438062668, -0.008161581121385098, 0.20060528814792633, 0.0034770630300045013, -0.29546159505844116, -0.22893865406513214, 0.2679307162761688, 0.06344453990459442, -0.38661715388298035, -0.04683931916952133, -0.15659672021865845, 0.05714142322540283, 0.01120053417980671, -0.08315877616405487, -0.014153935946524143, -0.024383973330259323, 0.24810585379600525, -0.17901858687400818, -0.3605464696884155, 0.2903420925140381, 0.01992068439722061, 0.4032447636127472, 0.22527815401554108, -0.06906323879957199, 0.3372247815132141, -0.13439102470874786, 0.21975788474082947, -0.21172331273555756, 0.07591702789068222, 0.40295323729515076, 0.013385671190917492, 0.2357296645641327, 0.011126928962767124, 0.06115494668483734, -0.3988242745399475, 0.15472185611724854, -0.16667188704013824, 0.302267849445343, -0.3258204460144043, 0.12090800702571869, -0.13056457042694092, 0.0890861302614212, -0.3901776373386383, 0.23407745361328125, -0.010047578252851963, -0.1459084302186966, -0.11154543608427048, 0.05595075711607933, -0.16989614069461823, -0.20878064632415771, 0.13023993372917175, 0.22292611002922058, -0.11393051594495773, 0.4268677234649658, -0.11281691491603851, -0.10778266191482544, -0.2331703007221222, 0.2702864706516266, 0.30997034907341003, -0.09340669214725494, 0.11082066595554352, 0.32513484358787537, -0.4475274682044983, -0.058595333248376846, -0.12594909965991974, 0.003630475141108036, 0.16117198765277863, -0.0953625813126564, 0.142741397023201, -0.49080100655555725, 0.0688239112496376, 0.02859659492969513, 0.33014434576034546, 0.18886177241802216, 0.0514572411775589, -0.08062350004911423, -0.2733857333660126, -0.3834945261478424, -0.21666663885116577, -0.024011701345443726, -0.15471461415290833, 0.12293518334627151, 0.33086147904396057, 0.1025945171713829, 0.14007261395454407, 0.21804527938365936, 0.08569852262735367, -0.13810069859027863, -0.22501063346862793, -0.291688472032547, 0.08123497664928436, 0.23674210906028748, 0.4116590917110443, 0.025826526805758476, -0.22117026150226593, -0.12131018191576004, -0.13407458364963531, 0.14470987021923065, -0.04438001662492752, 0.012286759912967682, 0.5059929490089417, 0.12537281215190887, 0.06249502673745155, 0.21126271784305573, -0.1524539291858673, 0.06291820853948593, 0.49783286452293396, 0.1425950974225998, -0.013913827948272228, -0.06879370659589767, 0.07357437908649445, 0.06340593844652176, 0.11985447257757187, 0.000386576633900404, 0.08489445596933365, 0.027408672496676445, -0.26281067728996277, 0.03559352457523346, 0.4787783622741699, -0.008694694377481937, 0.34043607115745544, -0.27129319310188293, -0.28203654289245605, 0.40879055857658386, 0.21760518848896027, -0.13529106974601746, -0.2429642379283905, 0.051049891859292984, -0.23970596492290497, 0.12697787582874298, 0.24673447012901306, 0.14312733709812164, 0.1301877349615097, 0.11111612617969513, -0.03966766968369484, 0.15892116725444794, -0.09995964169502258, 0.40740761160850525, 0.36057108640670776, -0.019717911258339882, 0.046438995748758316, 0.3235768973827362, 0.2752460837364197, 0.31802210211753845, 0.6103225946426392, -0.04429945722222328, 0.2419554591178894, 0.28957799077033997, 0.1293778419494629, 0.10121065378189087, 0.16979077458381653, 0.2187580019235611, -0.01765988953411579, 0.15387074649333954, 0.4693644940853119, 0.2383589744567871, 0.019729945808649063, -0.3650829792022705, -0.11172059923410416, -0.30137741565704346, 0.025631165131926537, -0.17507131397724152, -0.2930741310119629, 0.001140636159107089, -0.09348321706056595, -0.07868481427431107, 0.11948085576295853, -0.47452378273010254, 0.0268268845975399, 0.16569964587688446, -0.11871452629566193, 0.16475923359394073, -0.10278045386075974, 0.31088775396347046, -0.287433385848999, 0.10008318722248077, -0.03862534463405609, 0.2913329005241394, 0.231856569647789, -0.16676081717014313, 0.395529180765152, -0.05841304734349251, -0.019443444907665253, -0.011781487613916397, 0.081227146089077, -0.37795838713645935, -0.33566150069236755, 0.025645539164543152, -0.2630184590816498, 0.02669924683868885, 0.05950353294610977, -0.03615425154566765, 0.22579698264598846, 0.22336681187152863, -0.1583472043275833, -0.05028289183974266, 0.3495611250400543, 0.0692005380988121, -0.17394796013832092, 0.2597559094429016, 0.21484696865081787, 0.14636145532131195, 0.06355560570955276, -0.05742453411221504, -0.31743234395980835, -0.36080488562583923, 0.34432730078697205, 0.11416278779506683, 0.15091003477573395, 0.03362910822033882, 0.127261221408844, -0.02110670506954193, 0.5018587112426758, -0.15144696831703186, -0.20517830550670624, 0.09610040485858917, -0.11254233121871948, -0.29412642121315, 0.17116133868694305, 0.09694089740514755, -0.3816310465335846, -0.12073621153831482, -0.051124464720487595, 0.3983498513698578, -0.2882815897464752, 0.11961882561445236, -0.16853299736976624, 0.17031076550483704, -0.11411341279745102, -0.2784578800201416, -0.12195023894309998, 0.16667670011520386, 0.24641552567481995, 0.21567845344543457, -0.19863992929458618, -0.08377634733915329, 0.10646302253007889, 0.05291062965989113, -0.1916581243276596, -0.06698860228061676, 0.08620544523000717, -0.44098880887031555, 0.4960872232913971, -0.03140309453010559, 0.4105471670627594, -0.20870010554790497, -0.19927717745304108, 0.09167223423719406, -0.2031899094581604, -0.18660400807857513, 0.6522056460380554, -0.04953900724649429, 0.25186312198638916, -0.15822410583496094, -0.07383307814598083, 0.006178673356771469, 0.19057369232177734, -0.029434431344270706, 0.1297137588262558, -0.046009913086891174, 0.45371153950691223, -0.11142220348119736, -0.08848665654659271, 0.11123985052108765, 0.18053236603736877, -0.00386068201623857, 0.15863332152366638, 0.11367734521627426, -0.39554646611213684, 0.26170405745506287, -0.24964039027690887, -0.49240607023239136, 0.1046275794506073, 0.11954392492771149, -0.11664682626724243, 0.22635139524936676, -0.294647753238678, 0.2089352309703827, 0.23660507798194885, 0.08604150265455246, -0.2020469456911087, 0.2770594656467438, -0.12774263322353363, -0.027046794071793556, -0.06886064261198044, 0.48041805624961853, -0.01899917982518673, -0.17175212502479553, -0.21411171555519104, -0.31077396869659424 ]
https://github.com/huggingface/datasets/issues/3761
Know your data for HF hub
Hi @Muhtasham you should take a look at https://huggingface.co/blog/data-measurements-tool and accompanying demo app at https://huggingface.co/spaces/huggingface/data-measurements-tool We would be interested in your feedback. cc @meg-huggingface @sashavor @yjernite
**Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoogle.com/ for HF hub
26
Know your data for HF hub
[ -0.36788612604141235, -0.34053128957748413, -0.28667151927948, 0.18470096588134766, -0.1680886149406433, -0.08887486904859543, 0.13016456365585327, 0.12075120210647583, 0.13905805349349976, 0.1965874284505844, -0.49567684531211853, -0.22144491970539093, 0.17416061460971832, 0.336466521024704, 0.04039164260029793, 0.2926710546016693, -0.07870642095804214, 0.08270995318889618, -0.02438681200146675, -0.39789488911628723, -0.12989340722560883, 0.22999568283557892, 0.015772955492138863, 0.15607687830924988, -0.44093772768974304, 0.19912558794021606, -0.2679719626903534, 0.32601097226142883, 0.125615194439888, -0.07515266537666321, 0.009916399605572224, 0.676723837852478, 0.24189771711826324, 0.24312222003936768, -0.00010755786206573248, -0.19459784030914307, -0.06725239753723145, 0.00255759758874774, -0.32699018716812134, 0.295375794172287, -0.20439662039279938, -0.14996406435966492, -0.24850678443908691, -0.1506934016942978, -0.17734847962856293, -0.009580316953361034, -0.17736169695854187, 0.29947352409362793, 0.15997947752475739, 0.10204160213470459, 0.3101648688316345, 0.031034670770168304, 0.09891492873430252, -0.20457352697849274, 0.42856812477111816, 0.35173097252845764, 0.03625321388244629, 0.20618249475955963, 0.16537848114967346, -0.15522980690002441, -0.14950741827487946, 0.2495325803756714, 0.11477037519216537, 0.041141021996736526, 0.18713818490505219, -0.05552501231431961, 0.10149937123060226, 0.016169855371117592, 0.13940906524658203, 0.4919089376926422, 0.1968534290790558, -0.062392622232437134, 0.09048381447792053, 0.028241077437996864, -0.08220379054546356, -0.05878860503435135, 0.07994641363620758, -0.052064649760723114, -0.020634517073631287, -0.0829421728849411, 0.061581194400787354, -0.22069400548934937, 0.020055707544088364, 0.01286228559911251, -0.27888545393943787, 0.40315771102905273, -0.0754624605178833, -0.12285812199115753, -0.05523594841361046, 0.03338923305273056, 0.2877621054649353, -0.25358518958091736, -0.12445167452096939, -0.05012840777635574, 0.04321587085723877, -0.4612538814544678, 0.1614772379398346, 0.294508159160614, 0.036972496658563614, -0.12310908734798431, -0.2850646376609802, 0.20517787337303162, -0.10391386598348618, -0.0929894968867302, 0.12858691811561584, -0.14442749321460724, 0.2577749192714691, -0.056873686611652374, 0.1255958527326584, 0.053462833166122437, 0.08444567769765854, -0.0994567796587944, 0.006205470766872168, 0.231841579079628, -0.13230934739112854, -0.04552403837442398, -0.020068857818841934, -0.2062334269285202, -0.20982305705547333, 0.22109770774841309, 0.15152934193611145, -0.13962668180465698, 0.20752975344657898, 0.28490546345710754, -0.05105007439851761, 0.056137919425964355, -0.32831060886383057, 0.007254425901919603, -0.046225398778915405, -0.25081485509872437, -0.3336208760738373, 0.026480838656425476, 0.14960014820098877, 0.05068578943610191, 0.17076104879379272, -0.025296658277511597, 0.07214504480361938, -0.056993577629327774, 0.22452014684677124, 0.05050276592373848, -0.11017705500125885, -0.2837137281894684, 0.13428045809268951, 0.2517760694026947, 0.006746934726834297, -0.036958247423172, 0.07654380798339844, 0.21417029201984406, -0.2112738937139511, -0.14050306379795074, -0.3442210257053375, -0.18278945982456207, -0.14035877585411072, 0.2805073857307434, 0.039272651076316833, -0.06141725182533264, 0.13505299389362335, 0.17091093957424164, -0.3118896186351776, 0.12642577290534973, 0.09589739143848419, 0.2866974174976349, -0.033678874373435974, -0.013980965130031109, -0.2598232328891754, 0.18602681159973145, -0.06727022677659988, -0.01804698072373867, 0.011642428115010262, -0.3094780445098877, -0.1073029637336731, -0.15671944618225098, -0.028583334758877754, 0.41550397872924805, 0.07432930171489716, 0.0873928815126419, 0.34492990374565125, -0.4165697395801544, -0.17258670926094055, -0.069741390645504, 0.1233750730752945, -0.5035529732704163, 0.009035687893629074, 0.0836927518248558, 0.1591206043958664, -0.20440712571144104, -0.01658787950873375, 0.02178090438246727, -0.09742365777492523, -0.026626044884324074, -0.00440176110714674, -0.3478339612483978, -0.4421383738517761, 0.3845544755458832, 0.37496933341026306, -0.1291166990995407, 0.1249682754278183, 0.19358991086483002, 0.29777076840400696, 0.2490842193365097, -0.07634830474853516, 0.31947973370552063, 0.29115140438079834, 0.187149316072464, 0.18940824270248413, 0.09491124749183655, 0.1366705745458603, -0.2912069261074066, -0.19876708090305328, 0.0028308399487286806, 0.475502610206604, -0.07931304723024368, -0.08545637130737305, 0.14991271495819092, 0.15530787408351898, 0.19986189901828766, 0.3666270971298218, 0.046511609107255936, -0.12817643582820892, -0.4310058355331421, -0.142405167222023, 0.45284590125083923, -0.1093079075217247, -0.03666508197784424, 0.05807933211326599, 0.5168765187263489, 0.08506393432617188, 0.01533882413059473, 0.34100547432899475, 0.14318418502807617, 0.2943147122859955, 0.09949968010187149, 0.04637911170721054, 0.03563283383846283, 0.010080356150865555, 0.13347451388835907, 0.5250733494758606, 0.3471733331680298, 0.034292541444301605, -0.21059830486774445, 0.3036271631717682, -0.33025142550468445, 0.11503447592258453, 0.02510947175323963, 0.00626912759616971, 0.08338171988725662, -0.1840643584728241, 0.04800025001168251, -0.1274898499250412, -0.047987356781959534, -0.22941164672374725, -0.06508950144052505, 0.12445701658725739, -0.02231093868613243, 0.12454073876142502, 0.12051285803318024, -0.21421818435192108, -0.052024055272340775, 0.12435011565685272, 0.33082395792007446, 0.5578826069831848, -0.17664523422718048, 0.14807267487049103, 0.11361903697252274, -0.24538704752922058, -0.26292067766189575, 0.3687773048877716, -0.40589436888694763, 0.07794110476970673, 0.35894104838371277, 0.07104600965976715, -0.09927459806203842, -0.07251197844743729, -0.19451938569545746, -0.07707089185714722, -0.07672872394323349, -0.027364948764443398, 0.0011184352915734053, -0.07402495294809341, -0.03794422000646591, -0.2980218529701233, -0.18710075318813324, -0.03168671205639839, 0.16130182147026062, -0.2481619268655777, -0.05090983584523201, 0.02802966721355915, -0.029594767838716507, 0.6246638894081116, -0.2542427182197571, 0.005506875459104776, -0.5207204222679138, 0.21285055577754974, 0.22634746134281158, 0.1432645320892334, -0.13482673466205597, -0.11317575722932816, 0.3058518171310425, -0.15345065295696259, 0.07931876182556152, -0.41502276062965393, -0.1588941365480423, -0.23975525796413422, 0.3457932770252228, -0.2730833888053894, 0.33297210931777954, 0.20721258223056793, -0.1569880098104477, 0.23140734434127808, 0.012270312756299973, -0.14557963609695435, 0.3358153700828552, 0.2153623104095459, -0.3582824170589447, 0.20114214718341827, 0.18562690913677216, -0.24732959270477295, 0.21134842932224274, 0.034153684973716736, -0.14855298399925232, -0.061697494238615036, -0.06029849126935005, -0.3716457188129425, -0.12152013927698135, 0.2171982228755951, 0.35377374291419983, -0.13159646093845367, -0.10793298482894897, -0.28367626667022705, 0.11348400264978409, 0.18343010544776917, -0.1601737141609192, -0.274995356798172, 0.14461787045001984, -0.10467040538787842, -0.3422575891017914, -0.6231912970542908, -0.21415966749191284, 0.16675160825252533, -0.17207151651382446, -0.03434241935610771, 0.08154508471488953, -0.11129899322986603, -0.03725644201040268, -0.22613725066184998, -0.4500713646411896, -0.27526718378067017, -0.1391795575618744, 0.3257071077823639, -0.07584832608699799, 0.09570536762475967, 0.2921970784664154, -0.22105726599693298, -0.27235937118530273, -0.07824237644672394, 0.02589963749051094, 0.03057965077459812, 0.39776962995529175, 0.07348934561014175, -0.24082745611667633, -0.14139103889465332, -0.03578575327992439, 0.3239043354988098, 0.14441658556461334, 0.021362829953432083, 0.2966260612010956, 0.03170670196413994, 0.051950592547655106, 0.01088078785687685, 0.04197145998477936, 0.1588965505361557, 0.3468870222568512, 0.18282966315746307, 0.3942682445049286, -0.10005085170269012, -0.06458024680614471, -0.17486311495304108, -0.12130821496248245, -0.3591868281364441, -0.2809782028198242, 0.05516200512647629, -0.07404929399490356, -0.013427557423710823, 0.02427869848906994, 0.15843677520751953, -0.11270084977149963, -0.5110881328582764, 0.3470969796180725, 0.09988352656364441, -0.0832308754324913, -0.2028234750032425, -0.024712201207876205, -0.07864716649055481, -0.12541250884532928, 0.28050148487091064, -0.2932184040546417, 0.01398592907935381, -0.3447352945804596, 0.2303420901298523, 0.008538254536688328, -0.3897806704044342, 0.17347565293312073, -0.3090081512928009, 0.08384907245635986, -0.05740611255168915, 0.01414505671709776, 0.06390387564897537, -0.018036415800452232, -0.35042646527290344, -0.052754372358322144, -0.5728822946548462, 0.4473235011100769, -0.23575855791568756, -0.24334421753883362, 0.3907075822353363, -0.5013662576675415, -0.15491819381713867, -0.251143217086792, 0.13638626039028168, -0.24352051317691803, -0.2785789668560028, -0.05031737685203552, -0.14682269096374512, -0.14157643914222717, -0.13701076805591583, -0.060753483325242996, 0.19035041332244873, -0.005199784878641367, 0.36839723587036133, 0.12443726509809494, -0.10828657448291779, 0.1446860134601593, -0.2759679853916168, 0.3431943953037262, -0.080980584025383, 0.08650896698236465, 0.2612982988357544, 0.34071412682533264, 0.24621884524822235, 0.40101704001426697, -0.05881398543715477, 0.07061595469713211, 0.5825744271278381, 0.19621214270591736, 0.34761545062065125, -0.03513328358530998, 0.16903488337993622, -0.30578821897506714, -0.07416745275259018, -0.02823815308511257, -0.07919072359800339, -0.12257470935583115, 0.17403395473957062, 0.4533153176307678, -0.3780817687511444, -0.2770479917526245, 0.1337418258190155, 0.4042261242866516, 0.006995298899710178, 0.07587703317403793, 0.20096316933631897, 1.3374258279800415, 0.0616503544151783, -0.19388629496097565, 0.06989721208810806, -0.45464327931404114, 0.05039094761013985, -0.742836058139801, -0.22582048177719116, -0.36870068311691284, -0.0799100399017334, -0.28453290462493896, 0.12408240884542465, 0.13492102921009064, 0.11729772388935089, 0.012255256064236164, 0.11914301663637161, -0.07604430615901947, 0.3738180696964264, -0.12060847878456116, 0.3053271174430847, -0.31233638525009155, -0.24097545444965363, -0.024447238072752953, 0.3794889748096466, -0.2155722677707672, 0.33658719062805176, -0.13760095834732056, 0.06805820763111115, -0.09901944547891617, 0.08226281404495239, -0.25654226541519165, -0.20646342635154724, -0.019623585045337677, -0.03439299389719963, -0.03283371776342392, 0.05773288756608963, -0.43354862928390503, -0.545596182346344, 0.578993022441864, 0.0625813901424408, -0.1694888174533844, 0.22815677523612976, 0.03647598996758461, 0.1949242651462555, -0.09349048137664795, 0.19249185919761658, -0.04783584922552109, -0.3090978264808655, -0.4532369375228882, 0.14792683720588684, 0.20117342472076416, -0.11820241808891296, -0.11231798678636551, -0.06267165392637253, 0.015740148723125458, -0.10948166996240616, 0.3073689341545105, 0.19333194196224213, -0.22976447641849518, 0.17801165580749512, 0.2188427597284317, 0.16393432021141052, 0.03978387266397476, 0.16863127052783966, 0.3355163633823395, -0.013639692217111588, -0.522130012512207, 0.09422246366739273, 0.3052017092704773, -0.007195245008915663, 0.02308773249387741, -0.20332792401313782, -0.30324190855026245, -0.4143853485584259, 0.34162473678588867, 0.3855089843273163, -0.07314613461494446, -0.43143248558044434, -0.1852477341890335, -0.31455373764038086, -0.054049357771873474, 0.2376907616853714, 0.1249062791466713, 0.14330314099788666, -0.04352768510580063, -0.25114312767982483, -0.2557307183742523, 0.3183634877204895, 0.05793832615017891, 0.1467188447713852, -0.1984807699918747, -0.16402935981750488, 0.028502095490694046, 0.2552911341190338, -0.4938623905181885, -0.16052009165287018, 0.057006221264600754, -0.11918482184410095, -0.5350256562232971, -0.03656813129782677, 0.15290483832359314, -0.06339681148529053, 0.22799906134605408, -0.09258481860160828, -0.361255943775177, -0.3792537450790405, -0.27356305718421936, 0.10056549310684204, 0.027569260448217392, 0.027214139699935913, -0.15094397962093353, -0.17874763906002045, -0.11388810724020004, 0.043840158730745316, -0.035858627408742905, 0.0596042200922966, 0.39549505710601807, 0.18950028717517853, 0.5617778301239014, -0.29554954171180725, -0.23609977960586548, 0.0756329745054245, 0.5287413597106934, 0.323358416557312, -0.29477009177207947, 0.004742841701954603, -0.08978205919265747, -0.23300059139728546, 0.06424545496702194, 0.5007504820823669, 0.3992002308368683, -0.25467556715011597, 0.013984781689941883, 0.1545853316783905, 0.06970245391130447, -0.022177623584866524, -0.031342342495918274, 0.08592948317527771, 0.0007749101496301591, -0.18165943026542664, -0.19063971936702728, 0.26334089040756226, -0.18055984377861023, -0.08083948493003845, -0.08187802881002426, -0.0313006229698658, 0.09829491376876831, 0.3043142557144165, 0.3461863696575165, 0.19537565112113953, 0.22299723327159882, 0.05503739416599274, 0.1866588443517685, -0.29962071776390076, -0.3225829005241394, 0.18344448506832123, -0.15550221502780914, 0.2880091071128845, 0.34960606694221497, 0.18071505427360535, 0.051640771329402924, 0.2707642614841461, 0.31287795305252075, 0.15264461934566498, 0.15535660088062286, 0.132368266582489, 0.4570141136646271, -0.2678792178630829, 0.05628378689289093, 0.2662756145000458, -0.05392177402973175, 0.1354273110628128, 0.1438678652048111, -0.05139096826314926, -0.0832166001200676, -0.23650333285331726, -0.3761250972747803, -0.19075867533683777, -0.13176243007183075, 0.1066771000623703, 0.03034922108054161, -0.10265461355447769, -0.4696058928966522, -0.26941052079200745, 0.08236750215291977, -0.229053795337677, 0.26658084988594055, 0.019238842651247978, -0.03371309116482735, 0.0860138088464737, 0.20709280669689178, 0.05886879190802574, 0.2207603007555008, -0.061873387545347214, 0.1097552552819252, -0.10444574058055878, 0.24525941908359528, 0.21609485149383545, 0.21821236610412598, -0.11818847060203552, -0.2244189977645874, -0.17103339731693268, -0.07561681419610977, 0.26575714349746704, -0.4544706642627716, -0.013450185768306255, -0.047334443777799606, 0.2821787893772125, 0.04819465056061745, 0.16781583428382874, 0.33689865469932556, -0.27237460017204285, 0.09087447077035904, 0.035919222980737686, 0.08907771110534668, 0.22448553144931793, 0.5472446084022522, 0.025998998433351517, -0.07702692598104477, 0.1963794082403183, -0.17133556306362152, -0.19738614559173584, -0.07552172243595123, 0.09347789734601974, -0.005572402384132147, 0.19196221232414246, 0.07670743018388748, 0.11872517317533493, -0.017056304961442947, 0.2675773799419403, 0.15044961869716644, -0.03940046578645706, -0.14577749371528625, -0.18799260258674622, -0.0343472920358181, -0.00921635888516903, -0.0013990756124258041, 0.12141777575016022, 0.10149244964122772, 0.07742328941822052, 0.45861199498176575, 0.3703067898750305, 0.15064194798469543, -0.36498939990997314, 0.12406126409769058, 0.08552108705043793, -0.2073391228914261, -0.004227194469422102, -0.04856395348906517, 0.3577203154563904, -0.0734531432390213, -0.10273502767086029, 0.42534324526786804, 0.08076591044664383, 0.12035106122493744, -0.021697597578167915, -0.09032298624515533, 0.49090418219566345, -0.3094309866428375, 0.007847113534808159, -0.2674831449985504, 0.3671990931034088, -0.32384565472602844, 0.16432657837867737, 0.2315763533115387, -0.0327635295689106, 0.028346918523311615, -0.15684154629707336, -0.19991353154182434, 0.12132284790277481, 0.3155798614025116, -0.27326834201812744, 0.274613618850708, -0.040255509316921234, -0.08374910801649094, 0.3324839770793915, -0.060826946049928665, 0.043150343000888824, -0.17204608023166656, 0.05288076400756836, 0.26983433961868286, 0.01762194000184536, 0.19608764350414276, -0.0949055626988411, -0.10520171374082565, -0.05203140899538994, 0.40448328852653503, 0.2987566292285919, -0.2747546434402466, -0.37345677614212036, 0.31484323740005493, 0.030917294323444366, 0.03828144446015358, -0.1545802354812622, 0.11065726727247238, 0.2658863663673401, -0.28624510765075684, 0.23030409216880798, 0.3457036018371582, 0.2135174572467804, 0.12257278710603714, -0.1791672259569168, 0.10490420460700989, -0.02771827206015587, -0.1912621259689331, -0.3402080833911896, -0.042004190385341644 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
Hi @kingabzpro. I think you need to create a loading script that creates the dataset from the CSV file and the image paths. As example, you could have a look at the Food-101 dataset: https://huggingface.co/datasets/food101 - Loading script: https://huggingface.co/datasets/food101/blob/main/food101.py Once the loading script is created, the viewer will show a previsualization of your dataset.
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
54
Unable to view the Gradio flagged call back dataset
[ -0.3084610104560852, 0.3093335032463074, -0.14035455882549286, 0.14146257936954498, 0.3404788076877594, 0.01508361753076315, 0.25459492206573486, 0.20975394546985626, -0.2342836558818817, -0.07027488946914673, -0.3909190893173218, 0.016883745789527893, 0.0449766181409359, 0.3594934344291687, 0.012802651152014732, 0.2614814341068268, -0.3629304766654968, 0.0798916444182396, 0.21785007417201996, -0.28412312269210815, -0.12447045743465424, 0.1649906188249588, -0.108616903424263, 0.26831942796707153, -0.2289336770772934, -0.271660715341568, 0.01686312071979046, 0.4844929575920105, -0.31731295585632324, -0.33996397256851196, 0.18038804829120636, 0.08646085113286972, -0.1043359637260437, 0.33538031578063965, -0.00011372087465133518, 0.20946292579174042, 0.27836018800735474, -0.10249608010053635, -0.061030313372612, 0.16475915908813477, -0.48460546135902405, 0.23039422929286957, -0.23028193414211273, -0.1692643016576767, -0.16071413457393646, -0.4070642590522766, -0.01194476056843996, -0.2366636097431183, 0.462862104177475, 0.4668659567832947, 0.22103025019168854, -0.0493759885430336, 0.006000198889523745, -0.14848972856998444, 0.02464107982814312, 0.2288644015789032, -0.13844488561153412, 0.401441365480423, 0.14203256368637085, -0.056290604174137115, -0.09323357045650482, 0.24983660876750946, -0.2129855901002884, -0.40451306104660034, -0.4688682556152344, 0.08507412672042847, 0.01037095207720995, 0.17596100270748138, 0.39021036028862, 0.2407834380865097, 0.09784498065710068, -0.07198052853345871, -0.23375052213668823, -0.019352789968252182, -0.10011531412601471, 0.00006415682582883164, -0.03424149751663208, 0.10291845351457596, -0.12654362618923187, 0.2860988676548004, -0.019170226529240608, 0.015494287014007568, -0.31435391306877136, 0.03295844793319702, -0.08215389400720596, 0.38295722007751465, -0.26636803150177, 0.19369512796401978, -0.15435363352298737, 0.08553807437419891, 0.11390805244445801, 0.18303005397319794, -0.04901851341128349, 0.19220975041389465, -0.03218323737382889, 0.1101684495806694, 0.36785873770713806, -0.13640384376049042, 0.2272299975156784, 0.45064577460289, 0.31119492650032043, 0.4680846035480499, -0.4233566224575043, -0.06657399982213974, 0.06005731597542763, 0.29766103625297546, -0.0452411063015461, 0.29481595754623413, 0.5163862109184265, -0.016943732276558876, -0.2391345053911209, -0.11893896758556366, -0.36444929242134094, 0.034503571689128876, -0.2067161202430725, 0.08949950337409973, 0.5291007161140442, -0.39946186542510986, -0.0156936626881361, -0.11371935904026031, -0.2783351242542267, -0.006076732650399208, 0.3495996594429016, 0.36159399151802063, -0.20569060742855072, -0.2439694106578827, -0.09116718918085098, 0.04973616823554039, -0.00388416089117527, -0.2523605227470398, -0.24082013964653015, -0.3324224650859833, -0.3365952968597412, -0.2536745071411133, 0.20387300848960876, -0.3951367437839508, 0.31036376953125, -0.09663125872612, -0.06332896649837494, 0.014249877072870731, 0.317902535200119, -0.2185674011707306, 0.4697732925415039, 0.11370399594306946, 0.19851885735988617, -0.17563143372535706, 0.5558293461799622, 0.11782756447792053, -0.10413390398025513, 0.01800856739282608, 0.027047399431467056, -0.504733681678772, 0.09379366040229797, 0.10783512145280838, -0.1605679988861084, 0.06494660675525665, -0.09463079273700714, -0.026126515120267868, 0.047663453966379166, -0.13478749990463257, -0.10402505099773407, 0.014933090656995773, -0.12303841859102249, -0.2566030025482178, -0.14808452129364014, 0.27981773018836975, -0.354362428188324, 0.12630708515644073, -0.05237620696425438, -0.1944146305322647, 0.6244195699691772, 0.15925003588199615, -0.059834323823451996, -0.23213694989681244, -0.5336516499519348, 0.07393401861190796, 0.5435470938682556, -0.44249656796455383, -0.2454984337091446, 0.1863139420747757, -0.07407955080270767, -0.3403555750846863, 0.23960836231708527, -0.1900137960910797, 0.06000010669231415, -0.061976317316293716, 0.11209957301616669, 0.283626526594162, -0.15322543680667877, 0.05974012240767479, -0.030949916690587997, 0.017286483198404312, -0.3737937808036804, 0.0814187303185463, 0.07478135079145432, 0.2938360571861267, 0.14083465933799744, -0.2771943509578705, 0.270295113325119, 0.20229141414165497, 0.05783003568649292, 0.004352655727416277, 0.36447039246559143, -0.20832353830337524, 0.1577281653881073, 0.38660117983818054, 0.05587707459926605, -0.19756752252578735, -0.03397625684738159, 0.015169128775596619, -0.14255040884017944, -0.06336942315101624, -0.6233658194541931, 0.2209775298833847, -0.3591623604297638, 0.17971286177635193, 0.23033393919467926, 0.4558269679546356, 0.15900665521621704, 0.17961882054805756, 0.08866696059703827, 0.23021841049194336, -0.3642136752605438, -0.06029219180345535, 0.3798896074295044, 0.20156602561473846, 0.060707032680511475, -0.3300427496433258, 0.38135620951652527, 0.2629566490650177, 0.342912495136261, -0.007262552622705698, -0.05434282496571541, 0.11593655496835709, 0.15936101973056793, 0.062174104154109955, 0.16929975152015686, 0.37544557452201843, 0.10357601940631866, -0.3254896402359009, 0.30449536442756653, 0.2681920528411865, 0.053399745374917984, -0.10881644487380981, -0.26301395893096924, 0.2669183909893036, -0.1263265609741211, 0.3021278381347656, 0.05432689189910889, 0.280672550201416, 0.34930092096328735, 0.01784130372107029, -0.46558403968811035, -0.33240821957588196, -0.08676747977733612, -0.09228701144456863, 0.4262349605560303, -0.049908917397260666, -0.5516001582145691, 0.23203103244304657, 0.7391930818557739, 0.11554219573736191, -0.006925750989466906, -0.3390061557292938, -0.061107706278562546, -0.32051047682762146, 0.40928974747657776, 0.292135089635849, 0.24439750611782074, 0.31433627009391785, 0.23365022242069244, 0.07653234899044037, -0.25715532898902893, -0.1413259655237198, -0.13018645346164703, 0.2068435549736023, 0.013770954683423042, 0.1371723860502243, 0.2970298230648041, -0.2654484510421753, -0.26085954904556274, -0.24767039716243744, 0.003235864918678999, 0.016860932111740112, 0.04035598039627075, 0.14189894497394562, 0.03863432630896568, -0.2159012407064438, -0.04134026914834976, -0.8043534755706787, -0.0899849608540535, -0.6825613379478455, -0.005351418163627386, -0.1333770453929901, -0.016869142651557922, 0.2459423989057541, -0.27233415842056274, 0.12910319864749908, 0.3427828252315521, 0.1568584144115448, -0.05200720578432083, -0.17610305547714233, -0.33893683552742004, 0.1652410328388214, -0.0916590765118599, -0.22460900247097015, 0.5053142309188843, 0.08346180617809296, 0.06545841693878174, -0.21708974242210388, -0.22306644916534424, 0.23026485741138458, 0.03575810045003891, -0.04726606234908104, 0.32906025648117065, -0.00934789888560772, -0.08370939642190933, 0.1368541270494461, 0.1272086799144745, -0.13439156115055084, -0.11920630186796188, -0.08663385361433029, -0.2705182433128357, 0.2714700698852539, 0.21109315752983093, -0.23982839286327362, -0.054666291922330856, -0.32358333468437195, 0.0036159136798232794, 0.19519460201263428, 0.21984125673770905, 0.4140479564666748, -0.1318473368883133, 0.37313705682754517, 0.037949495017528534, 0.032069649547338486, -0.4044114053249359, -0.27808138728141785, 0.07600237429141998, -0.5255765318870544, -0.28042513132095337, 0.37758541107177734, -0.0862816721200943, 0.7890831232070923, -0.019409814849495888, -0.10250166803598404, -0.27721768617630005, -0.05806712061166763, -0.04726547375321388, -0.1655406951904297, -0.3107924461364746, 0.06868699938058853, 0.01991555094718933, -0.16284434497356415, -0.10793084651231766, 0.051711954176425934, 0.10527095943689346, -0.10502402484416962, 0.08147050440311432, 0.18146854639053345, 0.21457228064537048, 0.019535446539521217, 0.5047159790992737, -0.019672272726893425, 0.09797155112028122, 0.1726183146238327, -0.33709990978240967, 0.325918048620224, -0.22960598766803741, -0.3941689431667328, -0.056279752403497696, 0.2490483522415161, -0.09191139042377472, -0.03061022236943245, 0.14874252676963806, 0.12541471421718597, -0.05377861112356186, 0.09041912853717804, -0.12598131597042084, -0.23067441582679749, -0.27033746242523193, 0.3796285092830658, 0.14703893661499023, 0.2141193002462387, 0.13831476867198944, -0.2194938361644745, 0.09262493997812271, -0.016633812338113785, -0.07181672006845474, 0.04328007251024246, 0.09628205001354218, -0.11954120546579361, -0.024876704439520836, -0.4249158799648285, 0.18238206207752228, -0.105336032807827, -0.06353364139795303, -0.16282561421394348, -0.23303689062595367, 0.20683394372463226, -0.05199035257101059, 0.5561932325363159, 0.03868556395173073, 0.23144268989562988, 0.554757833480835, -0.3068625330924988, -0.13900171220302582, 0.13897979259490967, -0.025253426283597946, 0.060311686247587204, 0.26241326332092285, 0.06283944100141525, -0.020608101040124893, 0.16493989527225494, 0.2736208736896515, -0.20580267906188965, -0.16562342643737793, 0.25794705748558044, -0.09112466871738434, -0.33676406741142273, -0.08469603955745697, 0.012886797077953815, 0.1851344108581543, 0.0006092000985518098, 0.1297132521867752, -0.21347463130950928, -0.04695099964737892, -0.24539868533611298, -0.10293450206518173, 0.3149620592594147, 0.22015860676765442, 0.011092993430793285, -0.06650830805301666, 0.10985217243432999, 0.14722533524036407, 0.14645852148532867, 0.7024558186531067, 0.4542315602302551, -0.05324854329228401, 0.3679182231426239, -0.24470454454421997, 0.23880979418754578, 0.16526223719120026, -0.16458985209465027, -0.19996041059494019, -0.10327445715665817, -0.03034983202815056, -0.1812969595193863, 0.3887615501880646, 0.012569642625749111, -0.048748861998319626, -0.3514018952846527, -0.2880389988422394, 0.2436303049325943, -0.04251541197299957, -0.1695733368396759, 0.25063356757164, 0.31258624792099, 0.020171189680695534, 0.3001648783683777, 0.174132838845253, 1.2192214727401733, -0.15665166079998016, 0.29778558015823364, 0.4527478516101837, -0.2786144018173218, 0.1728859394788742, -0.13547104597091675, -0.18349876999855042, -0.10787323117256165, 0.039745915681123734, -0.01289886049926281, -0.1780681312084198, 0.07977881282567978, 0.26083409786224365, -0.21789346635341644, -0.24865777790546417, 0.07950228452682495, -0.06815595179796219, -0.04758046194911003, -0.1962089091539383, 0.1581238955259323, -0.07617724686861038, -0.6544114947319031, 0.15094970166683197, -0.03526527062058449, 0.0599704347550869, 0.19264614582061768, -0.002973774215206504, 0.13378548622131348, 0.041192855685949326, -0.36839985847473145, 0.22566142678260803, -0.006262606009840965, -0.12510119378566742, 0.01432566437870264, -0.12957854568958282, -0.37350568175315857, -0.08361207693815231, 0.25015369057655334, 0.3033996522426605, -0.04901241511106491, 0.06771625578403473, -0.0041564148850739, -0.04422713816165924, -0.21652503311634064, 0.18017245829105377, 0.19193686544895172, -0.2355019599199295, -0.2686888575553894, 0.48146894574165344, 0.08145730197429657, -0.32103559374809265, -0.6031530499458313, 0.1051897332072258, -0.17888759076595306, -0.4931918978691101, 0.3390376567840576, -0.009801025502383709, 0.031934335827827454, -0.2258099764585495, 0.12243964523077011, 0.2535378336906433, -0.03624926134943962, 0.05092407763004303, 0.17558708786964417, -0.14059361815452576, -0.007689372170716524, 0.47498440742492676, 0.17026105523109436, 0.32596126198768616, 0.35059791803359985, 0.1505599021911621, 0.09613052755594254, -0.27289554476737976, -0.3269476294517517, 0.012375479564070702, 0.13921333849430084, 0.21736985445022583, -0.15665306150913239, -0.1696336716413498, 0.18106329441070557, 0.1803586333990097, 0.16704332828521729, 0.1756846159696579, -0.3242601454257965, -0.27449730038642883, -0.5304838418960571, -0.1419157236814499, 0.056074369698762894, 0.12728844583034515, 0.010801959782838821, -0.30425143241882324, 0.034967102110385895, -0.147475004196167, -0.34858304262161255, -0.2585320770740509, -0.41343066096305847, -0.1307494342327118, 0.183437317609787, -0.28989377617836, 0.29903334379196167, 0.17060939967632294, 0.14670297503471375, -0.13404503464698792, 0.06390363723039627, -0.16960808634757996, -0.013025985099375248, 0.0912124514579773, 0.33824169635772705, -0.032288528978824615, 0.12262608110904694, -0.07466642558574677, -0.43054017424583435, 0.19249457120895386, 0.3701153099536896, 0.4708024263381958, 0.1501724272966385, -0.1337045431137085, -0.35892051458358765, -0.031550537794828415, 0.09861326962709427, -0.03163476660847664, 0.062311846762895584, -0.26831963658332825, 0.29612958431243896, 0.04743945598602295, -0.15361560881137848, -0.3153887391090393, 0.26406005024909973, -0.0007248736219480634, -0.037672847509384155, -0.04030865058302879, 0.3112975060939789, -0.15485431253910065, -0.014925703406333923, 0.16445058584213257, 0.2689133882522583, -0.07162356376647949, 0.16707798838615417, -0.0793517529964447, -0.08902149647474289, 0.12029958516359329, -0.389119416475296, -0.14264161884784698, -0.25141701102256775, -0.09006360918283463, 0.22959989309310913, 0.07003266364336014, -0.2772971987724304, 0.03569954261183739, 0.45393452048301697, -0.08210621029138565, 0.616871178150177, -0.15282723307609558, -0.08137038350105286, 0.2756047546863556, -0.375506192445755, 0.19555145502090454, 0.27677643299102783, 0.18895184993743896, 0.18947233259677887, 0.10194506496191025, -0.2922600209712982, 0.11746716499328613, 0.021746769547462463, 0.07356950640678406, 0.19335335493087769, -0.44214844703674316, -0.33459198474884033, 0.4948809742927551, -0.37923258543014526, 0.13113948702812195, -0.14403770864009857, 0.2864777445793152, 0.1930244415998459, 0.37702617049217224, -0.3777199387550354, 0.1426822692155838, 0.045633770525455475, -0.035607583820819855, -0.7637511491775513, -0.015385352075099945, -0.023739919066429138, 0.03259703144431114, 0.08937080949544907, 0.024387111887335777, -0.16017167270183563, -0.21437548100948334, -0.1392183154821396, -0.08194079250097275, -0.12187723815441132, -0.08089625835418701, -0.17370948195457458, 0.028821678832173347, 0.09775911271572113, 0.033884044736623764, 0.39095285534858704, 0.28083428740501404, 0.23462697863578796, 0.20631174743175507, -0.2550905644893646, 0.44829845428466797, -0.16536860167980194, 0.009488142095506191, -0.2553824782371521, -0.38568127155303955, 0.30615317821502686, 0.23025308549404144, 0.03811195492744446, 0.15119875967502594, 0.17169758677482605, -0.15553273260593414, 0.3145713210105896, -0.13002048432826996, -0.07055093348026276, 0.44203007221221924, 0.015992699190974236, -0.016000822186470032, -0.22377869486808777, -0.15935519337654114, -0.010026137344539165, -0.18160732090473175, -0.5486764311790466, 0.3301120698451996, 0.1759704202413559, 0.2575104534626007, -0.01778959482908249, 0.08155333995819092, -0.14471885561943054, 0.1665848344564438, 0.4524156451225281, -0.15445679426193237, 0.14772087335586548, -0.1175052747130394, 0.01662445440888405, 0.34739986062049866, 0.16838708519935608, -0.24822062253952026, -0.04784054681658745, -0.1197618618607521, 0.16538511216640472, 0.0006015287362970412, 0.20159345865249634, -0.0898524820804596, -0.04614992439746857, -0.2543570399284363, -0.201002299785614, -0.18111339211463928, 0.2637561559677124, -0.19478045403957367, -0.15770886838436127, -0.43709564208984375, 0.05878259241580963, 0.4438140392303467, 0.12743118405342102, -0.07399560511112213, -0.305230051279068, -0.2408832311630249, 0.43865132331848145, 0.124052032828331, 0.030783049762248993, 0.21055172383785248, 0.04446294903755188, 0.1636599749326706, -0.5453417897224426, -0.09309197962284088, -0.11809714883565903, -0.010500902310013771, 0.07021044939756393, 0.14275898039340973, -0.06369678676128387, 0.024182790890336037, -0.10206465423107147, -0.19200856983661652, -0.005403160583227873, -0.09844227135181427, 0.045302100479602814, 0.3706863820552826, -0.2414790540933609, -0.18264661729335785, 0.0037764457520097494, -0.15292321145534515, 0.12003699690103531, -0.2036433219909668, -0.10005896538496017, -0.11677104234695435, 0.37124574184417725, -0.1123768538236618, -0.11752281337976456, 0.010069182142615318, 0.08564575016498566, -0.11310335993766785, 0.09172655642032623, 0.06821179389953613, 0.12716850638389587, 0.3936368227005005, -0.020087353885173798, 0.011854914017021656, 0.1452532410621643, 0.06977051496505737, 0.012310290709137917, -0.08568951487541199, 0.05628403276205063, 0.13655394315719604, 0.09862828254699707, -0.08682297170162201, 0.11179941892623901 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
@albertvillanova I don't think this is the issue. I have created another dataset with similar files and format and it works. https://huggingface.co/datasets/kingabzpro/savtadepth-flags-V2
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
22
Unable to view the Gradio flagged call back dataset
[ -0.3084610104560852, 0.3093335032463074, -0.14035455882549286, 0.14146257936954498, 0.3404788076877594, 0.01508361753076315, 0.25459492206573486, 0.20975394546985626, -0.2342836558818817, -0.07027488946914673, -0.3909190893173218, 0.016883745789527893, 0.0449766181409359, 0.3594934344291687, 0.012802651152014732, 0.2614814341068268, -0.3629304766654968, 0.0798916444182396, 0.21785007417201996, -0.28412312269210815, -0.12447045743465424, 0.1649906188249588, -0.108616903424263, 0.26831942796707153, -0.2289336770772934, -0.271660715341568, 0.01686312071979046, 0.4844929575920105, -0.31731295585632324, -0.33996397256851196, 0.18038804829120636, 0.08646085113286972, -0.1043359637260437, 0.33538031578063965, -0.00011372087465133518, 0.20946292579174042, 0.27836018800735474, -0.10249608010053635, -0.061030313372612, 0.16475915908813477, -0.48460546135902405, 0.23039422929286957, -0.23028193414211273, -0.1692643016576767, -0.16071413457393646, -0.4070642590522766, -0.01194476056843996, -0.2366636097431183, 0.462862104177475, 0.4668659567832947, 0.22103025019168854, -0.0493759885430336, 0.006000198889523745, -0.14848972856998444, 0.02464107982814312, 0.2288644015789032, -0.13844488561153412, 0.401441365480423, 0.14203256368637085, -0.056290604174137115, -0.09323357045650482, 0.24983660876750946, -0.2129855901002884, -0.40451306104660034, -0.4688682556152344, 0.08507412672042847, 0.01037095207720995, 0.17596100270748138, 0.39021036028862, 0.2407834380865097, 0.09784498065710068, -0.07198052853345871, -0.23375052213668823, -0.019352789968252182, -0.10011531412601471, 0.00006415682582883164, -0.03424149751663208, 0.10291845351457596, -0.12654362618923187, 0.2860988676548004, -0.019170226529240608, 0.015494287014007568, -0.31435391306877136, 0.03295844793319702, -0.08215389400720596, 0.38295722007751465, -0.26636803150177, 0.19369512796401978, -0.15435363352298737, 0.08553807437419891, 0.11390805244445801, 0.18303005397319794, -0.04901851341128349, 0.19220975041389465, -0.03218323737382889, 0.1101684495806694, 0.36785873770713806, -0.13640384376049042, 0.2272299975156784, 0.45064577460289, 0.31119492650032043, 0.4680846035480499, -0.4233566224575043, -0.06657399982213974, 0.06005731597542763, 0.29766103625297546, -0.0452411063015461, 0.29481595754623413, 0.5163862109184265, -0.016943732276558876, -0.2391345053911209, -0.11893896758556366, -0.36444929242134094, 0.034503571689128876, -0.2067161202430725, 0.08949950337409973, 0.5291007161140442, -0.39946186542510986, -0.0156936626881361, -0.11371935904026031, -0.2783351242542267, -0.006076732650399208, 0.3495996594429016, 0.36159399151802063, -0.20569060742855072, -0.2439694106578827, -0.09116718918085098, 0.04973616823554039, -0.00388416089117527, -0.2523605227470398, -0.24082013964653015, -0.3324224650859833, -0.3365952968597412, -0.2536745071411133, 0.20387300848960876, -0.3951367437839508, 0.31036376953125, -0.09663125872612, -0.06332896649837494, 0.014249877072870731, 0.317902535200119, -0.2185674011707306, 0.4697732925415039, 0.11370399594306946, 0.19851885735988617, -0.17563143372535706, 0.5558293461799622, 0.11782756447792053, -0.10413390398025513, 0.01800856739282608, 0.027047399431467056, -0.504733681678772, 0.09379366040229797, 0.10783512145280838, -0.1605679988861084, 0.06494660675525665, -0.09463079273700714, -0.026126515120267868, 0.047663453966379166, -0.13478749990463257, -0.10402505099773407, 0.014933090656995773, -0.12303841859102249, -0.2566030025482178, -0.14808452129364014, 0.27981773018836975, -0.354362428188324, 0.12630708515644073, -0.05237620696425438, -0.1944146305322647, 0.6244195699691772, 0.15925003588199615, -0.059834323823451996, -0.23213694989681244, -0.5336516499519348, 0.07393401861190796, 0.5435470938682556, -0.44249656796455383, -0.2454984337091446, 0.1863139420747757, -0.07407955080270767, -0.3403555750846863, 0.23960836231708527, -0.1900137960910797, 0.06000010669231415, -0.061976317316293716, 0.11209957301616669, 0.283626526594162, -0.15322543680667877, 0.05974012240767479, -0.030949916690587997, 0.017286483198404312, -0.3737937808036804, 0.0814187303185463, 0.07478135079145432, 0.2938360571861267, 0.14083465933799744, -0.2771943509578705, 0.270295113325119, 0.20229141414165497, 0.05783003568649292, 0.004352655727416277, 0.36447039246559143, -0.20832353830337524, 0.1577281653881073, 0.38660117983818054, 0.05587707459926605, -0.19756752252578735, -0.03397625684738159, 0.015169128775596619, -0.14255040884017944, -0.06336942315101624, -0.6233658194541931, 0.2209775298833847, -0.3591623604297638, 0.17971286177635193, 0.23033393919467926, 0.4558269679546356, 0.15900665521621704, 0.17961882054805756, 0.08866696059703827, 0.23021841049194336, -0.3642136752605438, -0.06029219180345535, 0.3798896074295044, 0.20156602561473846, 0.060707032680511475, -0.3300427496433258, 0.38135620951652527, 0.2629566490650177, 0.342912495136261, -0.007262552622705698, -0.05434282496571541, 0.11593655496835709, 0.15936101973056793, 0.062174104154109955, 0.16929975152015686, 0.37544557452201843, 0.10357601940631866, -0.3254896402359009, 0.30449536442756653, 0.2681920528411865, 0.053399745374917984, -0.10881644487380981, -0.26301395893096924, 0.2669183909893036, -0.1263265609741211, 0.3021278381347656, 0.05432689189910889, 0.280672550201416, 0.34930092096328735, 0.01784130372107029, -0.46558403968811035, -0.33240821957588196, -0.08676747977733612, -0.09228701144456863, 0.4262349605560303, -0.049908917397260666, -0.5516001582145691, 0.23203103244304657, 0.7391930818557739, 0.11554219573736191, -0.006925750989466906, -0.3390061557292938, -0.061107706278562546, -0.32051047682762146, 0.40928974747657776, 0.292135089635849, 0.24439750611782074, 0.31433627009391785, 0.23365022242069244, 0.07653234899044037, -0.25715532898902893, -0.1413259655237198, -0.13018645346164703, 0.2068435549736023, 0.013770954683423042, 0.1371723860502243, 0.2970298230648041, -0.2654484510421753, -0.26085954904556274, -0.24767039716243744, 0.003235864918678999, 0.016860932111740112, 0.04035598039627075, 0.14189894497394562, 0.03863432630896568, -0.2159012407064438, -0.04134026914834976, -0.8043534755706787, -0.0899849608540535, -0.6825613379478455, -0.005351418163627386, -0.1333770453929901, -0.016869142651557922, 0.2459423989057541, -0.27233415842056274, 0.12910319864749908, 0.3427828252315521, 0.1568584144115448, -0.05200720578432083, -0.17610305547714233, -0.33893683552742004, 0.1652410328388214, -0.0916590765118599, -0.22460900247097015, 0.5053142309188843, 0.08346180617809296, 0.06545841693878174, -0.21708974242210388, -0.22306644916534424, 0.23026485741138458, 0.03575810045003891, -0.04726606234908104, 0.32906025648117065, -0.00934789888560772, -0.08370939642190933, 0.1368541270494461, 0.1272086799144745, -0.13439156115055084, -0.11920630186796188, -0.08663385361433029, -0.2705182433128357, 0.2714700698852539, 0.21109315752983093, -0.23982839286327362, -0.054666291922330856, -0.32358333468437195, 0.0036159136798232794, 0.19519460201263428, 0.21984125673770905, 0.4140479564666748, -0.1318473368883133, 0.37313705682754517, 0.037949495017528534, 0.032069649547338486, -0.4044114053249359, -0.27808138728141785, 0.07600237429141998, -0.5255765318870544, -0.28042513132095337, 0.37758541107177734, -0.0862816721200943, 0.7890831232070923, -0.019409814849495888, -0.10250166803598404, -0.27721768617630005, -0.05806712061166763, -0.04726547375321388, -0.1655406951904297, -0.3107924461364746, 0.06868699938058853, 0.01991555094718933, -0.16284434497356415, -0.10793084651231766, 0.051711954176425934, 0.10527095943689346, -0.10502402484416962, 0.08147050440311432, 0.18146854639053345, 0.21457228064537048, 0.019535446539521217, 0.5047159790992737, -0.019672272726893425, 0.09797155112028122, 0.1726183146238327, -0.33709990978240967, 0.325918048620224, -0.22960598766803741, -0.3941689431667328, -0.056279752403497696, 0.2490483522415161, -0.09191139042377472, -0.03061022236943245, 0.14874252676963806, 0.12541471421718597, -0.05377861112356186, 0.09041912853717804, -0.12598131597042084, -0.23067441582679749, -0.27033746242523193, 0.3796285092830658, 0.14703893661499023, 0.2141193002462387, 0.13831476867198944, -0.2194938361644745, 0.09262493997812271, -0.016633812338113785, -0.07181672006845474, 0.04328007251024246, 0.09628205001354218, -0.11954120546579361, -0.024876704439520836, -0.4249158799648285, 0.18238206207752228, -0.105336032807827, -0.06353364139795303, -0.16282561421394348, -0.23303689062595367, 0.20683394372463226, -0.05199035257101059, 0.5561932325363159, 0.03868556395173073, 0.23144268989562988, 0.554757833480835, -0.3068625330924988, -0.13900171220302582, 0.13897979259490967, -0.025253426283597946, 0.060311686247587204, 0.26241326332092285, 0.06283944100141525, -0.020608101040124893, 0.16493989527225494, 0.2736208736896515, -0.20580267906188965, -0.16562342643737793, 0.25794705748558044, -0.09112466871738434, -0.33676406741142273, -0.08469603955745697, 0.012886797077953815, 0.1851344108581543, 0.0006092000985518098, 0.1297132521867752, -0.21347463130950928, -0.04695099964737892, -0.24539868533611298, -0.10293450206518173, 0.3149620592594147, 0.22015860676765442, 0.011092993430793285, -0.06650830805301666, 0.10985217243432999, 0.14722533524036407, 0.14645852148532867, 0.7024558186531067, 0.4542315602302551, -0.05324854329228401, 0.3679182231426239, -0.24470454454421997, 0.23880979418754578, 0.16526223719120026, -0.16458985209465027, -0.19996041059494019, -0.10327445715665817, -0.03034983202815056, -0.1812969595193863, 0.3887615501880646, 0.012569642625749111, -0.048748861998319626, -0.3514018952846527, -0.2880389988422394, 0.2436303049325943, -0.04251541197299957, -0.1695733368396759, 0.25063356757164, 0.31258624792099, 0.020171189680695534, 0.3001648783683777, 0.174132838845253, 1.2192214727401733, -0.15665166079998016, 0.29778558015823364, 0.4527478516101837, -0.2786144018173218, 0.1728859394788742, -0.13547104597091675, -0.18349876999855042, -0.10787323117256165, 0.039745915681123734, -0.01289886049926281, -0.1780681312084198, 0.07977881282567978, 0.26083409786224365, -0.21789346635341644, -0.24865777790546417, 0.07950228452682495, -0.06815595179796219, -0.04758046194911003, -0.1962089091539383, 0.1581238955259323, -0.07617724686861038, -0.6544114947319031, 0.15094970166683197, -0.03526527062058449, 0.0599704347550869, 0.19264614582061768, -0.002973774215206504, 0.13378548622131348, 0.041192855685949326, -0.36839985847473145, 0.22566142678260803, -0.006262606009840965, -0.12510119378566742, 0.01432566437870264, -0.12957854568958282, -0.37350568175315857, -0.08361207693815231, 0.25015369057655334, 0.3033996522426605, -0.04901241511106491, 0.06771625578403473, -0.0041564148850739, -0.04422713816165924, -0.21652503311634064, 0.18017245829105377, 0.19193686544895172, -0.2355019599199295, -0.2686888575553894, 0.48146894574165344, 0.08145730197429657, -0.32103559374809265, -0.6031530499458313, 0.1051897332072258, -0.17888759076595306, -0.4931918978691101, 0.3390376567840576, -0.009801025502383709, 0.031934335827827454, -0.2258099764585495, 0.12243964523077011, 0.2535378336906433, -0.03624926134943962, 0.05092407763004303, 0.17558708786964417, -0.14059361815452576, -0.007689372170716524, 0.47498440742492676, 0.17026105523109436, 0.32596126198768616, 0.35059791803359985, 0.1505599021911621, 0.09613052755594254, -0.27289554476737976, -0.3269476294517517, 0.012375479564070702, 0.13921333849430084, 0.21736985445022583, -0.15665306150913239, -0.1696336716413498, 0.18106329441070557, 0.1803586333990097, 0.16704332828521729, 0.1756846159696579, -0.3242601454257965, -0.27449730038642883, -0.5304838418960571, -0.1419157236814499, 0.056074369698762894, 0.12728844583034515, 0.010801959782838821, -0.30425143241882324, 0.034967102110385895, -0.147475004196167, -0.34858304262161255, -0.2585320770740509, -0.41343066096305847, -0.1307494342327118, 0.183437317609787, -0.28989377617836, 0.29903334379196167, 0.17060939967632294, 0.14670297503471375, -0.13404503464698792, 0.06390363723039627, -0.16960808634757996, -0.013025985099375248, 0.0912124514579773, 0.33824169635772705, -0.032288528978824615, 0.12262608110904694, -0.07466642558574677, -0.43054017424583435, 0.19249457120895386, 0.3701153099536896, 0.4708024263381958, 0.1501724272966385, -0.1337045431137085, -0.35892051458358765, -0.031550537794828415, 0.09861326962709427, -0.03163476660847664, 0.062311846762895584, -0.26831963658332825, 0.29612958431243896, 0.04743945598602295, -0.15361560881137848, -0.3153887391090393, 0.26406005024909973, -0.0007248736219480634, -0.037672847509384155, -0.04030865058302879, 0.3112975060939789, -0.15485431253910065, -0.014925703406333923, 0.16445058584213257, 0.2689133882522583, -0.07162356376647949, 0.16707798838615417, -0.0793517529964447, -0.08902149647474289, 0.12029958516359329, -0.389119416475296, -0.14264161884784698, -0.25141701102256775, -0.09006360918283463, 0.22959989309310913, 0.07003266364336014, -0.2772971987724304, 0.03569954261183739, 0.45393452048301697, -0.08210621029138565, 0.616871178150177, -0.15282723307609558, -0.08137038350105286, 0.2756047546863556, -0.375506192445755, 0.19555145502090454, 0.27677643299102783, 0.18895184993743896, 0.18947233259677887, 0.10194506496191025, -0.2922600209712982, 0.11746716499328613, 0.021746769547462463, 0.07356950640678406, 0.19335335493087769, -0.44214844703674316, -0.33459198474884033, 0.4948809742927551, -0.37923258543014526, 0.13113948702812195, -0.14403770864009857, 0.2864777445793152, 0.1930244415998459, 0.37702617049217224, -0.3777199387550354, 0.1426822692155838, 0.045633770525455475, -0.035607583820819855, -0.7637511491775513, -0.015385352075099945, -0.023739919066429138, 0.03259703144431114, 0.08937080949544907, 0.024387111887335777, -0.16017167270183563, -0.21437548100948334, -0.1392183154821396, -0.08194079250097275, -0.12187723815441132, -0.08089625835418701, -0.17370948195457458, 0.028821678832173347, 0.09775911271572113, 0.033884044736623764, 0.39095285534858704, 0.28083428740501404, 0.23462697863578796, 0.20631174743175507, -0.2550905644893646, 0.44829845428466797, -0.16536860167980194, 0.009488142095506191, -0.2553824782371521, -0.38568127155303955, 0.30615317821502686, 0.23025308549404144, 0.03811195492744446, 0.15119875967502594, 0.17169758677482605, -0.15553273260593414, 0.3145713210105896, -0.13002048432826996, -0.07055093348026276, 0.44203007221221924, 0.015992699190974236, -0.016000822186470032, -0.22377869486808777, -0.15935519337654114, -0.010026137344539165, -0.18160732090473175, -0.5486764311790466, 0.3301120698451996, 0.1759704202413559, 0.2575104534626007, -0.01778959482908249, 0.08155333995819092, -0.14471885561943054, 0.1665848344564438, 0.4524156451225281, -0.15445679426193237, 0.14772087335586548, -0.1175052747130394, 0.01662445440888405, 0.34739986062049866, 0.16838708519935608, -0.24822062253952026, -0.04784054681658745, -0.1197618618607521, 0.16538511216640472, 0.0006015287362970412, 0.20159345865249634, -0.0898524820804596, -0.04614992439746857, -0.2543570399284363, -0.201002299785614, -0.18111339211463928, 0.2637561559677124, -0.19478045403957367, -0.15770886838436127, -0.43709564208984375, 0.05878259241580963, 0.4438140392303467, 0.12743118405342102, -0.07399560511112213, -0.305230051279068, -0.2408832311630249, 0.43865132331848145, 0.124052032828331, 0.030783049762248993, 0.21055172383785248, 0.04446294903755188, 0.1636599749326706, -0.5453417897224426, -0.09309197962284088, -0.11809714883565903, -0.010500902310013771, 0.07021044939756393, 0.14275898039340973, -0.06369678676128387, 0.024182790890336037, -0.10206465423107147, -0.19200856983661652, -0.005403160583227873, -0.09844227135181427, 0.045302100479602814, 0.3706863820552826, -0.2414790540933609, -0.18264661729335785, 0.0037764457520097494, -0.15292321145534515, 0.12003699690103531, -0.2036433219909668, -0.10005896538496017, -0.11677104234695435, 0.37124574184417725, -0.1123768538236618, -0.11752281337976456, 0.010069182142615318, 0.08564575016498566, -0.11310335993766785, 0.09172655642032623, 0.06821179389953613, 0.12716850638389587, 0.3936368227005005, -0.020087353885173798, 0.011854914017021656, 0.1452532410621643, 0.06977051496505737, 0.012310290709137917, -0.08568951487541199, 0.05628403276205063, 0.13655394315719604, 0.09862828254699707, -0.08682297170162201, 0.11179941892623901 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
Yes, you are right, that was not the issue. Just take into account that sometimes the viewer can take some time until it shows the preview of the dataset. After some time, yours is finally properly shown: https://huggingface.co/datasets/kingabzpro/savtadepth-flags
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
38
Unable to view the Gradio flagged call back dataset
[ -0.3084610104560852, 0.3093335032463074, -0.14035455882549286, 0.14146257936954498, 0.3404788076877594, 0.01508361753076315, 0.25459492206573486, 0.20975394546985626, -0.2342836558818817, -0.07027488946914673, -0.3909190893173218, 0.016883745789527893, 0.0449766181409359, 0.3594934344291687, 0.012802651152014732, 0.2614814341068268, -0.3629304766654968, 0.0798916444182396, 0.21785007417201996, -0.28412312269210815, -0.12447045743465424, 0.1649906188249588, -0.108616903424263, 0.26831942796707153, -0.2289336770772934, -0.271660715341568, 0.01686312071979046, 0.4844929575920105, -0.31731295585632324, -0.33996397256851196, 0.18038804829120636, 0.08646085113286972, -0.1043359637260437, 0.33538031578063965, -0.00011372087465133518, 0.20946292579174042, 0.27836018800735474, -0.10249608010053635, -0.061030313372612, 0.16475915908813477, -0.48460546135902405, 0.23039422929286957, -0.23028193414211273, -0.1692643016576767, -0.16071413457393646, -0.4070642590522766, -0.01194476056843996, -0.2366636097431183, 0.462862104177475, 0.4668659567832947, 0.22103025019168854, -0.0493759885430336, 0.006000198889523745, -0.14848972856998444, 0.02464107982814312, 0.2288644015789032, -0.13844488561153412, 0.401441365480423, 0.14203256368637085, -0.056290604174137115, -0.09323357045650482, 0.24983660876750946, -0.2129855901002884, -0.40451306104660034, -0.4688682556152344, 0.08507412672042847, 0.01037095207720995, 0.17596100270748138, 0.39021036028862, 0.2407834380865097, 0.09784498065710068, -0.07198052853345871, -0.23375052213668823, -0.019352789968252182, -0.10011531412601471, 0.00006415682582883164, -0.03424149751663208, 0.10291845351457596, -0.12654362618923187, 0.2860988676548004, -0.019170226529240608, 0.015494287014007568, -0.31435391306877136, 0.03295844793319702, -0.08215389400720596, 0.38295722007751465, -0.26636803150177, 0.19369512796401978, -0.15435363352298737, 0.08553807437419891, 0.11390805244445801, 0.18303005397319794, -0.04901851341128349, 0.19220975041389465, -0.03218323737382889, 0.1101684495806694, 0.36785873770713806, -0.13640384376049042, 0.2272299975156784, 0.45064577460289, 0.31119492650032043, 0.4680846035480499, -0.4233566224575043, -0.06657399982213974, 0.06005731597542763, 0.29766103625297546, -0.0452411063015461, 0.29481595754623413, 0.5163862109184265, -0.016943732276558876, -0.2391345053911209, -0.11893896758556366, -0.36444929242134094, 0.034503571689128876, -0.2067161202430725, 0.08949950337409973, 0.5291007161140442, -0.39946186542510986, -0.0156936626881361, -0.11371935904026031, -0.2783351242542267, -0.006076732650399208, 0.3495996594429016, 0.36159399151802063, -0.20569060742855072, -0.2439694106578827, -0.09116718918085098, 0.04973616823554039, -0.00388416089117527, -0.2523605227470398, -0.24082013964653015, -0.3324224650859833, -0.3365952968597412, -0.2536745071411133, 0.20387300848960876, -0.3951367437839508, 0.31036376953125, -0.09663125872612, -0.06332896649837494, 0.014249877072870731, 0.317902535200119, -0.2185674011707306, 0.4697732925415039, 0.11370399594306946, 0.19851885735988617, -0.17563143372535706, 0.5558293461799622, 0.11782756447792053, -0.10413390398025513, 0.01800856739282608, 0.027047399431467056, -0.504733681678772, 0.09379366040229797, 0.10783512145280838, -0.1605679988861084, 0.06494660675525665, -0.09463079273700714, -0.026126515120267868, 0.047663453966379166, -0.13478749990463257, -0.10402505099773407, 0.014933090656995773, -0.12303841859102249, -0.2566030025482178, -0.14808452129364014, 0.27981773018836975, -0.354362428188324, 0.12630708515644073, -0.05237620696425438, -0.1944146305322647, 0.6244195699691772, 0.15925003588199615, -0.059834323823451996, -0.23213694989681244, -0.5336516499519348, 0.07393401861190796, 0.5435470938682556, -0.44249656796455383, -0.2454984337091446, 0.1863139420747757, -0.07407955080270767, -0.3403555750846863, 0.23960836231708527, -0.1900137960910797, 0.06000010669231415, -0.061976317316293716, 0.11209957301616669, 0.283626526594162, -0.15322543680667877, 0.05974012240767479, -0.030949916690587997, 0.017286483198404312, -0.3737937808036804, 0.0814187303185463, 0.07478135079145432, 0.2938360571861267, 0.14083465933799744, -0.2771943509578705, 0.270295113325119, 0.20229141414165497, 0.05783003568649292, 0.004352655727416277, 0.36447039246559143, -0.20832353830337524, 0.1577281653881073, 0.38660117983818054, 0.05587707459926605, -0.19756752252578735, -0.03397625684738159, 0.015169128775596619, -0.14255040884017944, -0.06336942315101624, -0.6233658194541931, 0.2209775298833847, -0.3591623604297638, 0.17971286177635193, 0.23033393919467926, 0.4558269679546356, 0.15900665521621704, 0.17961882054805756, 0.08866696059703827, 0.23021841049194336, -0.3642136752605438, -0.06029219180345535, 0.3798896074295044, 0.20156602561473846, 0.060707032680511475, -0.3300427496433258, 0.38135620951652527, 0.2629566490650177, 0.342912495136261, -0.007262552622705698, -0.05434282496571541, 0.11593655496835709, 0.15936101973056793, 0.062174104154109955, 0.16929975152015686, 0.37544557452201843, 0.10357601940631866, -0.3254896402359009, 0.30449536442756653, 0.2681920528411865, 0.053399745374917984, -0.10881644487380981, -0.26301395893096924, 0.2669183909893036, -0.1263265609741211, 0.3021278381347656, 0.05432689189910889, 0.280672550201416, 0.34930092096328735, 0.01784130372107029, -0.46558403968811035, -0.33240821957588196, -0.08676747977733612, -0.09228701144456863, 0.4262349605560303, -0.049908917397260666, -0.5516001582145691, 0.23203103244304657, 0.7391930818557739, 0.11554219573736191, -0.006925750989466906, -0.3390061557292938, -0.061107706278562546, -0.32051047682762146, 0.40928974747657776, 0.292135089635849, 0.24439750611782074, 0.31433627009391785, 0.23365022242069244, 0.07653234899044037, -0.25715532898902893, -0.1413259655237198, -0.13018645346164703, 0.2068435549736023, 0.013770954683423042, 0.1371723860502243, 0.2970298230648041, -0.2654484510421753, -0.26085954904556274, -0.24767039716243744, 0.003235864918678999, 0.016860932111740112, 0.04035598039627075, 0.14189894497394562, 0.03863432630896568, -0.2159012407064438, -0.04134026914834976, -0.8043534755706787, -0.0899849608540535, -0.6825613379478455, -0.005351418163627386, -0.1333770453929901, -0.016869142651557922, 0.2459423989057541, -0.27233415842056274, 0.12910319864749908, 0.3427828252315521, 0.1568584144115448, -0.05200720578432083, -0.17610305547714233, -0.33893683552742004, 0.1652410328388214, -0.0916590765118599, -0.22460900247097015, 0.5053142309188843, 0.08346180617809296, 0.06545841693878174, -0.21708974242210388, -0.22306644916534424, 0.23026485741138458, 0.03575810045003891, -0.04726606234908104, 0.32906025648117065, -0.00934789888560772, -0.08370939642190933, 0.1368541270494461, 0.1272086799144745, -0.13439156115055084, -0.11920630186796188, -0.08663385361433029, -0.2705182433128357, 0.2714700698852539, 0.21109315752983093, -0.23982839286327362, -0.054666291922330856, -0.32358333468437195, 0.0036159136798232794, 0.19519460201263428, 0.21984125673770905, 0.4140479564666748, -0.1318473368883133, 0.37313705682754517, 0.037949495017528534, 0.032069649547338486, -0.4044114053249359, -0.27808138728141785, 0.07600237429141998, -0.5255765318870544, -0.28042513132095337, 0.37758541107177734, -0.0862816721200943, 0.7890831232070923, -0.019409814849495888, -0.10250166803598404, -0.27721768617630005, -0.05806712061166763, -0.04726547375321388, -0.1655406951904297, -0.3107924461364746, 0.06868699938058853, 0.01991555094718933, -0.16284434497356415, -0.10793084651231766, 0.051711954176425934, 0.10527095943689346, -0.10502402484416962, 0.08147050440311432, 0.18146854639053345, 0.21457228064537048, 0.019535446539521217, 0.5047159790992737, -0.019672272726893425, 0.09797155112028122, 0.1726183146238327, -0.33709990978240967, 0.325918048620224, -0.22960598766803741, -0.3941689431667328, -0.056279752403497696, 0.2490483522415161, -0.09191139042377472, -0.03061022236943245, 0.14874252676963806, 0.12541471421718597, -0.05377861112356186, 0.09041912853717804, -0.12598131597042084, -0.23067441582679749, -0.27033746242523193, 0.3796285092830658, 0.14703893661499023, 0.2141193002462387, 0.13831476867198944, -0.2194938361644745, 0.09262493997812271, -0.016633812338113785, -0.07181672006845474, 0.04328007251024246, 0.09628205001354218, -0.11954120546579361, -0.024876704439520836, -0.4249158799648285, 0.18238206207752228, -0.105336032807827, -0.06353364139795303, -0.16282561421394348, -0.23303689062595367, 0.20683394372463226, -0.05199035257101059, 0.5561932325363159, 0.03868556395173073, 0.23144268989562988, 0.554757833480835, -0.3068625330924988, -0.13900171220302582, 0.13897979259490967, -0.025253426283597946, 0.060311686247587204, 0.26241326332092285, 0.06283944100141525, -0.020608101040124893, 0.16493989527225494, 0.2736208736896515, -0.20580267906188965, -0.16562342643737793, 0.25794705748558044, -0.09112466871738434, -0.33676406741142273, -0.08469603955745697, 0.012886797077953815, 0.1851344108581543, 0.0006092000985518098, 0.1297132521867752, -0.21347463130950928, -0.04695099964737892, -0.24539868533611298, -0.10293450206518173, 0.3149620592594147, 0.22015860676765442, 0.011092993430793285, -0.06650830805301666, 0.10985217243432999, 0.14722533524036407, 0.14645852148532867, 0.7024558186531067, 0.4542315602302551, -0.05324854329228401, 0.3679182231426239, -0.24470454454421997, 0.23880979418754578, 0.16526223719120026, -0.16458985209465027, -0.19996041059494019, -0.10327445715665817, -0.03034983202815056, -0.1812969595193863, 0.3887615501880646, 0.012569642625749111, -0.048748861998319626, -0.3514018952846527, -0.2880389988422394, 0.2436303049325943, -0.04251541197299957, -0.1695733368396759, 0.25063356757164, 0.31258624792099, 0.020171189680695534, 0.3001648783683777, 0.174132838845253, 1.2192214727401733, -0.15665166079998016, 0.29778558015823364, 0.4527478516101837, -0.2786144018173218, 0.1728859394788742, -0.13547104597091675, -0.18349876999855042, -0.10787323117256165, 0.039745915681123734, -0.01289886049926281, -0.1780681312084198, 0.07977881282567978, 0.26083409786224365, -0.21789346635341644, -0.24865777790546417, 0.07950228452682495, -0.06815595179796219, -0.04758046194911003, -0.1962089091539383, 0.1581238955259323, -0.07617724686861038, -0.6544114947319031, 0.15094970166683197, -0.03526527062058449, 0.0599704347550869, 0.19264614582061768, -0.002973774215206504, 0.13378548622131348, 0.041192855685949326, -0.36839985847473145, 0.22566142678260803, -0.006262606009840965, -0.12510119378566742, 0.01432566437870264, -0.12957854568958282, -0.37350568175315857, -0.08361207693815231, 0.25015369057655334, 0.3033996522426605, -0.04901241511106491, 0.06771625578403473, -0.0041564148850739, -0.04422713816165924, -0.21652503311634064, 0.18017245829105377, 0.19193686544895172, -0.2355019599199295, -0.2686888575553894, 0.48146894574165344, 0.08145730197429657, -0.32103559374809265, -0.6031530499458313, 0.1051897332072258, -0.17888759076595306, -0.4931918978691101, 0.3390376567840576, -0.009801025502383709, 0.031934335827827454, -0.2258099764585495, 0.12243964523077011, 0.2535378336906433, -0.03624926134943962, 0.05092407763004303, 0.17558708786964417, -0.14059361815452576, -0.007689372170716524, 0.47498440742492676, 0.17026105523109436, 0.32596126198768616, 0.35059791803359985, 0.1505599021911621, 0.09613052755594254, -0.27289554476737976, -0.3269476294517517, 0.012375479564070702, 0.13921333849430084, 0.21736985445022583, -0.15665306150913239, -0.1696336716413498, 0.18106329441070557, 0.1803586333990097, 0.16704332828521729, 0.1756846159696579, -0.3242601454257965, -0.27449730038642883, -0.5304838418960571, -0.1419157236814499, 0.056074369698762894, 0.12728844583034515, 0.010801959782838821, -0.30425143241882324, 0.034967102110385895, -0.147475004196167, -0.34858304262161255, -0.2585320770740509, -0.41343066096305847, -0.1307494342327118, 0.183437317609787, -0.28989377617836, 0.29903334379196167, 0.17060939967632294, 0.14670297503471375, -0.13404503464698792, 0.06390363723039627, -0.16960808634757996, -0.013025985099375248, 0.0912124514579773, 0.33824169635772705, -0.032288528978824615, 0.12262608110904694, -0.07466642558574677, -0.43054017424583435, 0.19249457120895386, 0.3701153099536896, 0.4708024263381958, 0.1501724272966385, -0.1337045431137085, -0.35892051458358765, -0.031550537794828415, 0.09861326962709427, -0.03163476660847664, 0.062311846762895584, -0.26831963658332825, 0.29612958431243896, 0.04743945598602295, -0.15361560881137848, -0.3153887391090393, 0.26406005024909973, -0.0007248736219480634, -0.037672847509384155, -0.04030865058302879, 0.3112975060939789, -0.15485431253910065, -0.014925703406333923, 0.16445058584213257, 0.2689133882522583, -0.07162356376647949, 0.16707798838615417, -0.0793517529964447, -0.08902149647474289, 0.12029958516359329, -0.389119416475296, -0.14264161884784698, -0.25141701102256775, -0.09006360918283463, 0.22959989309310913, 0.07003266364336014, -0.2772971987724304, 0.03569954261183739, 0.45393452048301697, -0.08210621029138565, 0.616871178150177, -0.15282723307609558, -0.08137038350105286, 0.2756047546863556, -0.375506192445755, 0.19555145502090454, 0.27677643299102783, 0.18895184993743896, 0.18947233259677887, 0.10194506496191025, -0.2922600209712982, 0.11746716499328613, 0.021746769547462463, 0.07356950640678406, 0.19335335493087769, -0.44214844703674316, -0.33459198474884033, 0.4948809742927551, -0.37923258543014526, 0.13113948702812195, -0.14403770864009857, 0.2864777445793152, 0.1930244415998459, 0.37702617049217224, -0.3777199387550354, 0.1426822692155838, 0.045633770525455475, -0.035607583820819855, -0.7637511491775513, -0.015385352075099945, -0.023739919066429138, 0.03259703144431114, 0.08937080949544907, 0.024387111887335777, -0.16017167270183563, -0.21437548100948334, -0.1392183154821396, -0.08194079250097275, -0.12187723815441132, -0.08089625835418701, -0.17370948195457458, 0.028821678832173347, 0.09775911271572113, 0.033884044736623764, 0.39095285534858704, 0.28083428740501404, 0.23462697863578796, 0.20631174743175507, -0.2550905644893646, 0.44829845428466797, -0.16536860167980194, 0.009488142095506191, -0.2553824782371521, -0.38568127155303955, 0.30615317821502686, 0.23025308549404144, 0.03811195492744446, 0.15119875967502594, 0.17169758677482605, -0.15553273260593414, 0.3145713210105896, -0.13002048432826996, -0.07055093348026276, 0.44203007221221924, 0.015992699190974236, -0.016000822186470032, -0.22377869486808777, -0.15935519337654114, -0.010026137344539165, -0.18160732090473175, -0.5486764311790466, 0.3301120698451996, 0.1759704202413559, 0.2575104534626007, -0.01778959482908249, 0.08155333995819092, -0.14471885561943054, 0.1665848344564438, 0.4524156451225281, -0.15445679426193237, 0.14772087335586548, -0.1175052747130394, 0.01662445440888405, 0.34739986062049866, 0.16838708519935608, -0.24822062253952026, -0.04784054681658745, -0.1197618618607521, 0.16538511216640472, 0.0006015287362970412, 0.20159345865249634, -0.0898524820804596, -0.04614992439746857, -0.2543570399284363, -0.201002299785614, -0.18111339211463928, 0.2637561559677124, -0.19478045403957367, -0.15770886838436127, -0.43709564208984375, 0.05878259241580963, 0.4438140392303467, 0.12743118405342102, -0.07399560511112213, -0.305230051279068, -0.2408832311630249, 0.43865132331848145, 0.124052032828331, 0.030783049762248993, 0.21055172383785248, 0.04446294903755188, 0.1636599749326706, -0.5453417897224426, -0.09309197962284088, -0.11809714883565903, -0.010500902310013771, 0.07021044939756393, 0.14275898039340973, -0.06369678676128387, 0.024182790890336037, -0.10206465423107147, -0.19200856983661652, -0.005403160583227873, -0.09844227135181427, 0.045302100479602814, 0.3706863820552826, -0.2414790540933609, -0.18264661729335785, 0.0037764457520097494, -0.15292321145534515, 0.12003699690103531, -0.2036433219909668, -0.10005896538496017, -0.11677104234695435, 0.37124574184417725, -0.1123768538236618, -0.11752281337976456, 0.010069182142615318, 0.08564575016498566, -0.11310335993766785, 0.09172655642032623, 0.06821179389953613, 0.12716850638389587, 0.3936368227005005, -0.020087353885173798, 0.011854914017021656, 0.1452532410621643, 0.06977051496505737, 0.012310290709137917, -0.08568951487541199, 0.05628403276205063, 0.13655394315719604, 0.09862828254699707, -0.08682297170162201, 0.11179941892623901 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
The problem was resolved by deleted the dataset and creating new one with similar name and then clicking on flag button.
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
21
Unable to view the Gradio flagged call back dataset
[ -0.3084610104560852, 0.3093335032463074, -0.14035455882549286, 0.14146257936954498, 0.3404788076877594, 0.01508361753076315, 0.25459492206573486, 0.20975394546985626, -0.2342836558818817, -0.07027488946914673, -0.3909190893173218, 0.016883745789527893, 0.0449766181409359, 0.3594934344291687, 0.012802651152014732, 0.2614814341068268, -0.3629304766654968, 0.0798916444182396, 0.21785007417201996, -0.28412312269210815, -0.12447045743465424, 0.1649906188249588, -0.108616903424263, 0.26831942796707153, -0.2289336770772934, -0.271660715341568, 0.01686312071979046, 0.4844929575920105, -0.31731295585632324, -0.33996397256851196, 0.18038804829120636, 0.08646085113286972, -0.1043359637260437, 0.33538031578063965, -0.00011372087465133518, 0.20946292579174042, 0.27836018800735474, -0.10249608010053635, -0.061030313372612, 0.16475915908813477, -0.48460546135902405, 0.23039422929286957, -0.23028193414211273, -0.1692643016576767, -0.16071413457393646, -0.4070642590522766, -0.01194476056843996, -0.2366636097431183, 0.462862104177475, 0.4668659567832947, 0.22103025019168854, -0.0493759885430336, 0.006000198889523745, -0.14848972856998444, 0.02464107982814312, 0.2288644015789032, -0.13844488561153412, 0.401441365480423, 0.14203256368637085, -0.056290604174137115, -0.09323357045650482, 0.24983660876750946, -0.2129855901002884, -0.40451306104660034, -0.4688682556152344, 0.08507412672042847, 0.01037095207720995, 0.17596100270748138, 0.39021036028862, 0.2407834380865097, 0.09784498065710068, -0.07198052853345871, -0.23375052213668823, -0.019352789968252182, -0.10011531412601471, 0.00006415682582883164, -0.03424149751663208, 0.10291845351457596, -0.12654362618923187, 0.2860988676548004, -0.019170226529240608, 0.015494287014007568, -0.31435391306877136, 0.03295844793319702, -0.08215389400720596, 0.38295722007751465, -0.26636803150177, 0.19369512796401978, -0.15435363352298737, 0.08553807437419891, 0.11390805244445801, 0.18303005397319794, -0.04901851341128349, 0.19220975041389465, -0.03218323737382889, 0.1101684495806694, 0.36785873770713806, -0.13640384376049042, 0.2272299975156784, 0.45064577460289, 0.31119492650032043, 0.4680846035480499, -0.4233566224575043, -0.06657399982213974, 0.06005731597542763, 0.29766103625297546, -0.0452411063015461, 0.29481595754623413, 0.5163862109184265, -0.016943732276558876, -0.2391345053911209, -0.11893896758556366, -0.36444929242134094, 0.034503571689128876, -0.2067161202430725, 0.08949950337409973, 0.5291007161140442, -0.39946186542510986, -0.0156936626881361, -0.11371935904026031, -0.2783351242542267, -0.006076732650399208, 0.3495996594429016, 0.36159399151802063, -0.20569060742855072, -0.2439694106578827, -0.09116718918085098, 0.04973616823554039, -0.00388416089117527, -0.2523605227470398, -0.24082013964653015, -0.3324224650859833, -0.3365952968597412, -0.2536745071411133, 0.20387300848960876, -0.3951367437839508, 0.31036376953125, -0.09663125872612, -0.06332896649837494, 0.014249877072870731, 0.317902535200119, -0.2185674011707306, 0.4697732925415039, 0.11370399594306946, 0.19851885735988617, -0.17563143372535706, 0.5558293461799622, 0.11782756447792053, -0.10413390398025513, 0.01800856739282608, 0.027047399431467056, -0.504733681678772, 0.09379366040229797, 0.10783512145280838, -0.1605679988861084, 0.06494660675525665, -0.09463079273700714, -0.026126515120267868, 0.047663453966379166, -0.13478749990463257, -0.10402505099773407, 0.014933090656995773, -0.12303841859102249, -0.2566030025482178, -0.14808452129364014, 0.27981773018836975, -0.354362428188324, 0.12630708515644073, -0.05237620696425438, -0.1944146305322647, 0.6244195699691772, 0.15925003588199615, -0.059834323823451996, -0.23213694989681244, -0.5336516499519348, 0.07393401861190796, 0.5435470938682556, -0.44249656796455383, -0.2454984337091446, 0.1863139420747757, -0.07407955080270767, -0.3403555750846863, 0.23960836231708527, -0.1900137960910797, 0.06000010669231415, -0.061976317316293716, 0.11209957301616669, 0.283626526594162, -0.15322543680667877, 0.05974012240767479, -0.030949916690587997, 0.017286483198404312, -0.3737937808036804, 0.0814187303185463, 0.07478135079145432, 0.2938360571861267, 0.14083465933799744, -0.2771943509578705, 0.270295113325119, 0.20229141414165497, 0.05783003568649292, 0.004352655727416277, 0.36447039246559143, -0.20832353830337524, 0.1577281653881073, 0.38660117983818054, 0.05587707459926605, -0.19756752252578735, -0.03397625684738159, 0.015169128775596619, -0.14255040884017944, -0.06336942315101624, -0.6233658194541931, 0.2209775298833847, -0.3591623604297638, 0.17971286177635193, 0.23033393919467926, 0.4558269679546356, 0.15900665521621704, 0.17961882054805756, 0.08866696059703827, 0.23021841049194336, -0.3642136752605438, -0.06029219180345535, 0.3798896074295044, 0.20156602561473846, 0.060707032680511475, -0.3300427496433258, 0.38135620951652527, 0.2629566490650177, 0.342912495136261, -0.007262552622705698, -0.05434282496571541, 0.11593655496835709, 0.15936101973056793, 0.062174104154109955, 0.16929975152015686, 0.37544557452201843, 0.10357601940631866, -0.3254896402359009, 0.30449536442756653, 0.2681920528411865, 0.053399745374917984, -0.10881644487380981, -0.26301395893096924, 0.2669183909893036, -0.1263265609741211, 0.3021278381347656, 0.05432689189910889, 0.280672550201416, 0.34930092096328735, 0.01784130372107029, -0.46558403968811035, -0.33240821957588196, -0.08676747977733612, -0.09228701144456863, 0.4262349605560303, -0.049908917397260666, -0.5516001582145691, 0.23203103244304657, 0.7391930818557739, 0.11554219573736191, -0.006925750989466906, -0.3390061557292938, -0.061107706278562546, -0.32051047682762146, 0.40928974747657776, 0.292135089635849, 0.24439750611782074, 0.31433627009391785, 0.23365022242069244, 0.07653234899044037, -0.25715532898902893, -0.1413259655237198, -0.13018645346164703, 0.2068435549736023, 0.013770954683423042, 0.1371723860502243, 0.2970298230648041, -0.2654484510421753, -0.26085954904556274, -0.24767039716243744, 0.003235864918678999, 0.016860932111740112, 0.04035598039627075, 0.14189894497394562, 0.03863432630896568, -0.2159012407064438, -0.04134026914834976, -0.8043534755706787, -0.0899849608540535, -0.6825613379478455, -0.005351418163627386, -0.1333770453929901, -0.016869142651557922, 0.2459423989057541, -0.27233415842056274, 0.12910319864749908, 0.3427828252315521, 0.1568584144115448, -0.05200720578432083, -0.17610305547714233, -0.33893683552742004, 0.1652410328388214, -0.0916590765118599, -0.22460900247097015, 0.5053142309188843, 0.08346180617809296, 0.06545841693878174, -0.21708974242210388, -0.22306644916534424, 0.23026485741138458, 0.03575810045003891, -0.04726606234908104, 0.32906025648117065, -0.00934789888560772, -0.08370939642190933, 0.1368541270494461, 0.1272086799144745, -0.13439156115055084, -0.11920630186796188, -0.08663385361433029, -0.2705182433128357, 0.2714700698852539, 0.21109315752983093, -0.23982839286327362, -0.054666291922330856, -0.32358333468437195, 0.0036159136798232794, 0.19519460201263428, 0.21984125673770905, 0.4140479564666748, -0.1318473368883133, 0.37313705682754517, 0.037949495017528534, 0.032069649547338486, -0.4044114053249359, -0.27808138728141785, 0.07600237429141998, -0.5255765318870544, -0.28042513132095337, 0.37758541107177734, -0.0862816721200943, 0.7890831232070923, -0.019409814849495888, -0.10250166803598404, -0.27721768617630005, -0.05806712061166763, -0.04726547375321388, -0.1655406951904297, -0.3107924461364746, 0.06868699938058853, 0.01991555094718933, -0.16284434497356415, -0.10793084651231766, 0.051711954176425934, 0.10527095943689346, -0.10502402484416962, 0.08147050440311432, 0.18146854639053345, 0.21457228064537048, 0.019535446539521217, 0.5047159790992737, -0.019672272726893425, 0.09797155112028122, 0.1726183146238327, -0.33709990978240967, 0.325918048620224, -0.22960598766803741, -0.3941689431667328, -0.056279752403497696, 0.2490483522415161, -0.09191139042377472, -0.03061022236943245, 0.14874252676963806, 0.12541471421718597, -0.05377861112356186, 0.09041912853717804, -0.12598131597042084, -0.23067441582679749, -0.27033746242523193, 0.3796285092830658, 0.14703893661499023, 0.2141193002462387, 0.13831476867198944, -0.2194938361644745, 0.09262493997812271, -0.016633812338113785, -0.07181672006845474, 0.04328007251024246, 0.09628205001354218, -0.11954120546579361, -0.024876704439520836, -0.4249158799648285, 0.18238206207752228, -0.105336032807827, -0.06353364139795303, -0.16282561421394348, -0.23303689062595367, 0.20683394372463226, -0.05199035257101059, 0.5561932325363159, 0.03868556395173073, 0.23144268989562988, 0.554757833480835, -0.3068625330924988, -0.13900171220302582, 0.13897979259490967, -0.025253426283597946, 0.060311686247587204, 0.26241326332092285, 0.06283944100141525, -0.020608101040124893, 0.16493989527225494, 0.2736208736896515, -0.20580267906188965, -0.16562342643737793, 0.25794705748558044, -0.09112466871738434, -0.33676406741142273, -0.08469603955745697, 0.012886797077953815, 0.1851344108581543, 0.0006092000985518098, 0.1297132521867752, -0.21347463130950928, -0.04695099964737892, -0.24539868533611298, -0.10293450206518173, 0.3149620592594147, 0.22015860676765442, 0.011092993430793285, -0.06650830805301666, 0.10985217243432999, 0.14722533524036407, 0.14645852148532867, 0.7024558186531067, 0.4542315602302551, -0.05324854329228401, 0.3679182231426239, -0.24470454454421997, 0.23880979418754578, 0.16526223719120026, -0.16458985209465027, -0.19996041059494019, -0.10327445715665817, -0.03034983202815056, -0.1812969595193863, 0.3887615501880646, 0.012569642625749111, -0.048748861998319626, -0.3514018952846527, -0.2880389988422394, 0.2436303049325943, -0.04251541197299957, -0.1695733368396759, 0.25063356757164, 0.31258624792099, 0.020171189680695534, 0.3001648783683777, 0.174132838845253, 1.2192214727401733, -0.15665166079998016, 0.29778558015823364, 0.4527478516101837, -0.2786144018173218, 0.1728859394788742, -0.13547104597091675, -0.18349876999855042, -0.10787323117256165, 0.039745915681123734, -0.01289886049926281, -0.1780681312084198, 0.07977881282567978, 0.26083409786224365, -0.21789346635341644, -0.24865777790546417, 0.07950228452682495, -0.06815595179796219, -0.04758046194911003, -0.1962089091539383, 0.1581238955259323, -0.07617724686861038, -0.6544114947319031, 0.15094970166683197, -0.03526527062058449, 0.0599704347550869, 0.19264614582061768, -0.002973774215206504, 0.13378548622131348, 0.041192855685949326, -0.36839985847473145, 0.22566142678260803, -0.006262606009840965, -0.12510119378566742, 0.01432566437870264, -0.12957854568958282, -0.37350568175315857, -0.08361207693815231, 0.25015369057655334, 0.3033996522426605, -0.04901241511106491, 0.06771625578403473, -0.0041564148850739, -0.04422713816165924, -0.21652503311634064, 0.18017245829105377, 0.19193686544895172, -0.2355019599199295, -0.2686888575553894, 0.48146894574165344, 0.08145730197429657, -0.32103559374809265, -0.6031530499458313, 0.1051897332072258, -0.17888759076595306, -0.4931918978691101, 0.3390376567840576, -0.009801025502383709, 0.031934335827827454, -0.2258099764585495, 0.12243964523077011, 0.2535378336906433, -0.03624926134943962, 0.05092407763004303, 0.17558708786964417, -0.14059361815452576, -0.007689372170716524, 0.47498440742492676, 0.17026105523109436, 0.32596126198768616, 0.35059791803359985, 0.1505599021911621, 0.09613052755594254, -0.27289554476737976, -0.3269476294517517, 0.012375479564070702, 0.13921333849430084, 0.21736985445022583, -0.15665306150913239, -0.1696336716413498, 0.18106329441070557, 0.1803586333990097, 0.16704332828521729, 0.1756846159696579, -0.3242601454257965, -0.27449730038642883, -0.5304838418960571, -0.1419157236814499, 0.056074369698762894, 0.12728844583034515, 0.010801959782838821, -0.30425143241882324, 0.034967102110385895, -0.147475004196167, -0.34858304262161255, -0.2585320770740509, -0.41343066096305847, -0.1307494342327118, 0.183437317609787, -0.28989377617836, 0.29903334379196167, 0.17060939967632294, 0.14670297503471375, -0.13404503464698792, 0.06390363723039627, -0.16960808634757996, -0.013025985099375248, 0.0912124514579773, 0.33824169635772705, -0.032288528978824615, 0.12262608110904694, -0.07466642558574677, -0.43054017424583435, 0.19249457120895386, 0.3701153099536896, 0.4708024263381958, 0.1501724272966385, -0.1337045431137085, -0.35892051458358765, -0.031550537794828415, 0.09861326962709427, -0.03163476660847664, 0.062311846762895584, -0.26831963658332825, 0.29612958431243896, 0.04743945598602295, -0.15361560881137848, -0.3153887391090393, 0.26406005024909973, -0.0007248736219480634, -0.037672847509384155, -0.04030865058302879, 0.3112975060939789, -0.15485431253910065, -0.014925703406333923, 0.16445058584213257, 0.2689133882522583, -0.07162356376647949, 0.16707798838615417, -0.0793517529964447, -0.08902149647474289, 0.12029958516359329, -0.389119416475296, -0.14264161884784698, -0.25141701102256775, -0.09006360918283463, 0.22959989309310913, 0.07003266364336014, -0.2772971987724304, 0.03569954261183739, 0.45393452048301697, -0.08210621029138565, 0.616871178150177, -0.15282723307609558, -0.08137038350105286, 0.2756047546863556, -0.375506192445755, 0.19555145502090454, 0.27677643299102783, 0.18895184993743896, 0.18947233259677887, 0.10194506496191025, -0.2922600209712982, 0.11746716499328613, 0.021746769547462463, 0.07356950640678406, 0.19335335493087769, -0.44214844703674316, -0.33459198474884033, 0.4948809742927551, -0.37923258543014526, 0.13113948702812195, -0.14403770864009857, 0.2864777445793152, 0.1930244415998459, 0.37702617049217224, -0.3777199387550354, 0.1426822692155838, 0.045633770525455475, -0.035607583820819855, -0.7637511491775513, -0.015385352075099945, -0.023739919066429138, 0.03259703144431114, 0.08937080949544907, 0.024387111887335777, -0.16017167270183563, -0.21437548100948334, -0.1392183154821396, -0.08194079250097275, -0.12187723815441132, -0.08089625835418701, -0.17370948195457458, 0.028821678832173347, 0.09775911271572113, 0.033884044736623764, 0.39095285534858704, 0.28083428740501404, 0.23462697863578796, 0.20631174743175507, -0.2550905644893646, 0.44829845428466797, -0.16536860167980194, 0.009488142095506191, -0.2553824782371521, -0.38568127155303955, 0.30615317821502686, 0.23025308549404144, 0.03811195492744446, 0.15119875967502594, 0.17169758677482605, -0.15553273260593414, 0.3145713210105896, -0.13002048432826996, -0.07055093348026276, 0.44203007221221924, 0.015992699190974236, -0.016000822186470032, -0.22377869486808777, -0.15935519337654114, -0.010026137344539165, -0.18160732090473175, -0.5486764311790466, 0.3301120698451996, 0.1759704202413559, 0.2575104534626007, -0.01778959482908249, 0.08155333995819092, -0.14471885561943054, 0.1665848344564438, 0.4524156451225281, -0.15445679426193237, 0.14772087335586548, -0.1175052747130394, 0.01662445440888405, 0.34739986062049866, 0.16838708519935608, -0.24822062253952026, -0.04784054681658745, -0.1197618618607521, 0.16538511216640472, 0.0006015287362970412, 0.20159345865249634, -0.0898524820804596, -0.04614992439746857, -0.2543570399284363, -0.201002299785614, -0.18111339211463928, 0.2637561559677124, -0.19478045403957367, -0.15770886838436127, -0.43709564208984375, 0.05878259241580963, 0.4438140392303467, 0.12743118405342102, -0.07399560511112213, -0.305230051279068, -0.2408832311630249, 0.43865132331848145, 0.124052032828331, 0.030783049762248993, 0.21055172383785248, 0.04446294903755188, 0.1636599749326706, -0.5453417897224426, -0.09309197962284088, -0.11809714883565903, -0.010500902310013771, 0.07021044939756393, 0.14275898039340973, -0.06369678676128387, 0.024182790890336037, -0.10206465423107147, -0.19200856983661652, -0.005403160583227873, -0.09844227135181427, 0.045302100479602814, 0.3706863820552826, -0.2414790540933609, -0.18264661729335785, 0.0037764457520097494, -0.15292321145534515, 0.12003699690103531, -0.2036433219909668, -0.10005896538496017, -0.11677104234695435, 0.37124574184417725, -0.1123768538236618, -0.11752281337976456, 0.010069182142615318, 0.08564575016498566, -0.11310335993766785, 0.09172655642032623, 0.06821179389953613, 0.12716850638389587, 0.3936368227005005, -0.020087353885173798, 0.011854914017021656, 0.1452532410621643, 0.06977051496505737, 0.012310290709137917, -0.08568951487541199, 0.05628403276205063, 0.13655394315719604, 0.09862828254699707, -0.08682297170162201, 0.11179941892623901 ]
https://github.com/huggingface/datasets/issues/3758
head_qa file missing
We usually find issues with files hosted at Google Drive... In this case we download the Google Drive Virus scan warning instead of the data file.
## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expected results The dataset should be loaded ## Actual results ``` Downloading and preparing dataset head_qa/en (download: 75.69 MiB, generated: 2.69 MiB, post-processed: Unknown size, total: 78.38 MiB) to /home/slesage/.cache/huggingface/datasets/head_qa/en/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Downloading data: 2.21kB [00:00, 2.05MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1729, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] ``` ## Environment info - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.11.0-1028-aws-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 6.0.1
26
head_qa file missing
[ 0.024031085893511772, -0.1989349126815796, -0.20560358464717865, -0.050533901900053024, 0.1476718634366989, 0.2745002210140228, -0.027417412027716637, 0.22475026547908783, 0.15202267467975616, 0.43656814098358154, 0.07137623429298401, -0.13448242843151093, 0.226082906126976, -0.16184154152870178, 0.5493558049201965, 0.036556001752614975, 0.061901070177555084, 0.19116908311843872, -0.25973302125930786, -0.19204016029834747, 0.08680862933397293, 0.4544461965560913, -0.07455156743526459, 0.38867923617362976, 0.0393955335021019, 0.0695587769150734, 0.16952641308307648, 0.3062587380409241, 0.19894978404045105, 0.06432643532752991, -0.12092624604701996, -0.32162904739379883, -0.19270727038383484, 0.3949127793312073, -0.00010703624138841406, 0.2479654848575592, 0.17862741649150848, -0.15538866817951202, 0.24447348713874817, 0.3095577359199524, -0.6926587224006653, -0.07911881804466248, -0.2676059901714325, 0.08739347010850906, 0.024868471547961235, 0.26043933629989624, 0.20408067107200623, 0.10633649677038193, 0.19853030145168304, 0.22351953387260437, 0.264494925737381, -0.1128910705447197, 0.28211039304733276, -0.43926605582237244, 0.27574461698532104, -0.33368316292762756, 0.1464662104845047, -0.08632128685712814, -0.20913779735565186, -0.0077393450774252415, 0.26222753524780273, 0.18916738033294678, 0.25687235593795776, -0.4824797809123993, -0.09438392519950867, -0.08426343649625778, 0.27497321367263794, 0.15873299539089203, 0.32633933424949646, 0.2336786389350891, 0.1282820999622345, -0.046753909438848495, -0.00944099947810173, 0.22139763832092285, 0.22630655765533447, -0.2418578416109085, 0.01308636274188757, 0.20456184446811676, -0.016218872740864754, 0.127878338098526, 0.253679096698761, -0.3497534990310669, -0.19186986982822418, -0.20679141581058502, -0.1461574286222458, 0.04531088471412659, 0.10779611021280289, -0.19214168190956116, -0.022012583911418915, 0.09805343300104141, -0.29083549976348877, 0.6140662431716919, -0.5892360210418701, 0.03401289880275726, -0.027298571541905403, -0.012002436444163322, 0.31591060757637024, 0.04831993952393532, 0.1421697586774826, -0.3342004120349884, 0.2037888765335083, 0.07804230600595474, -0.07678689807653427, 0.008179253898561, 0.05714339390397072, 0.11308660358190536, -0.026075351983308792, -0.1409270018339157, 0.343578964471817, -0.0069275228306651115, -0.17553205788135529, 0.01874333806335926, -0.08775295317173004, -0.49245473742485046, 0.012311489321291447, 0.11470183730125427, -0.1539837270975113, -0.32729315757751465, 0.037387434393167496, -0.015406172722578049, -0.05878068134188652, -0.11008860170841217, -0.3606187105178833, 0.1417934000492096, 0.2616170644760132, 0.03965117037296295, 0.04543346166610718, -0.042516134679317474, -0.4049223065376282, -0.07731467485427856, -0.5080448389053345, 0.06862723082304001, 0.08492159098386765, -0.07167591899633408, -0.18815307319164276, 0.0016736716497689486, 0.49546530842781067, -0.2786373794078827, 0.2207133024930954, 0.04375361651182175, -0.1367124319076538, 0.2345179319381714, -0.06446138769388199, 0.5344349145889282, 0.06278343498706818, -0.11306972801685333, -0.019779596477746964, 0.1757487803697586, -0.013475737534463406, 0.1991942822933197, -0.2959950864315033, -0.4169774651527405, -0.0700255036354065, 0.2665349841117859, 0.1369493007659912, 0.10848401486873627, 0.007345566060394049, -0.07477109879255295, -0.031504642218351364, -0.22850078344345093, 0.06477351486682892, -0.1576303243637085, 0.036395907402038574, -0.11234193295240402, -0.024858472868800163, 0.23819643259048462, -0.5272483825683594, -0.1784067451953888, 0.10568403452634811, -0.13640639185905457, -0.2694435119628906, 0.18017974495887756, -0.0678354874253273, 0.4868239462375641, -0.45845896005630493, -0.20224569737911224, 0.22150899469852448, -0.7842570543289185, -0.17612658441066742, -0.43605348467826843, 0.03728806972503662, -0.2271788865327835, -0.00473831407725811, -0.2711794674396515, -0.2777682840824127, -0.045976269990205765, -0.10458759218454361, -0.12039598077535629, 0.03173082321882248, -0.08721572905778885, 0.008591650053858757, -0.10683567076921463, -0.4817397892475128, -0.09114812314510345, 0.2782494127750397, 0.07245095819234848, -0.039809029549360275, -0.32872188091278076, 0.15603096783161163, 0.06972721219062805, -0.12969623506069183, 0.37427449226379395, 0.3591455817222595, -0.11438232660293579, 0.039504509419202805, 0.16967083513736725, 0.20510579645633698, -0.023675108328461647, -0.019171640276908875, 0.1467079371213913, -0.10179781168699265, 0.04816782474517822, -0.1219322606921196, -0.1876416653394699, 0.07653040438890457, -0.14029081165790558, 0.2177966684103012, 0.2534622848033905, -0.1779337376356125, 0.28727278113365173, -0.016739962622523308, -0.11887272447347641, 0.15829159319400787, -0.1362125426530838, -0.2217174917459488, -0.16126543283462524, -0.054970696568489075, 0.02588541992008686, 0.13407249748706818, 0.1598244607448578, 0.10021588951349258, -0.0489935465157032, 0.07237875461578369, 0.11133953928947449, -0.08131622523069382, -0.09637168794870377, 0.2824627459049225, 0.2815442383289337, 0.09699953347444534, -0.13829441368579865, -0.14563386142253876, -0.08487359434366226, -0.0607205331325531, -0.12375850975513458, 0.024722421541810036, -0.06322960555553436, -0.020644517615437508, -0.0615752637386322, 0.11642582714557648, -0.06523143500089645, 0.37005168199539185, -0.008261322975158691, 0.250154972076416, -0.034550972282886505, -0.22935086488723755, 0.3565157949924469, -0.24098731577396393, -0.15545065701007843, 0.1503685861825943, 0.3336905539035797, 0.7624228596687317, -0.13633808493614197, 0.07332064211368561, -0.0034737507812678814, 0.11090464890003204, 0.029306743294000626, 0.025691328570246696, -0.05274180695414543, 0.14334285259246826, 0.24916599690914154, -0.0578312985599041, -0.219514399766922, 0.02759036049246788, -0.3368178606033325, -0.015617291443049908, -0.06050761789083481, 0.09616409987211227, 0.16372239589691162, -0.05452736094594002, -0.18402071297168732, 0.06295807659626007, 0.06619564443826675, -0.2973315417766571, -0.031876254826784134, -0.2039804756641388, -0.09241849184036255, -0.061512455344200134, 0.06053910776972771, 0.09307384490966797, 0.0015156047884374857, -0.11080249398946762, -0.18317092955112457, 0.20979945361614227, -0.20970526337623596, -0.1366712749004364, 0.23895606398582458, 0.013061337172985077, 0.33681535720825195, 0.1557939350605011, -0.07849922776222229, 0.12121675908565521, -0.003376895794644952, -0.20319925248622894, 0.15350298583507538, -0.279122531414032, -0.08488189429044724, -0.23977982997894287, -0.2271519899368286, 0.047359175980091095, -0.3263176381587982, 0.1094730794429779, 0.21243654191493988, -0.03180432319641113, 0.3459310531616211, 0.14162351191043854, 0.08747450262308121, -0.14255958795547485, 0.05423738807439804, 0.03200777247548103, 0.1650349199771881, -0.20466259121894836, 0.10954825580120087, 0.07467947155237198, -0.1382981836795807, -0.049088794738054276, 0.08323709666728973, 0.09377481043338776, -0.3216083347797394, 0.07707466930150986, -0.07264503836631775, 0.11463108658790588, -0.058158330619335175, -0.05236739665269852, -0.0699944719672203, -0.16604380309581757, 0.02729368768632412, -0.00993143767118454, -0.3673851788043976, 0.06050235778093338, -0.3363487720489502, -0.38848650455474854, 0.2512388527393341, 0.02191843092441559, 0.8403013348579407, -0.2043856531381607, -0.4532829523086548, 0.13272619247436523, 0.11917056888341904, 0.08186881989240646, -0.20255661010742188, 0.3596017360687256, 0.5034596920013428, -0.1716613918542862, -0.3375910520553589, -0.1805214285850525, -0.3357061743736267, 0.48853611946105957, 0.0008154227398335934, 0.17615431547164917, -0.42203450202941895, 0.23312297463417053, -0.3782944083213806, 0.9200137853622437, -0.049206413328647614, 0.34702080488204956, -0.1395266354084015, 0.015767674893140793, 0.43675804138183594, -0.3261221945285797, 0.12578444182872772, -0.012919442728161812, 0.4843599200248718, -0.17470283806324005, 0.36870676279067993, 0.306174635887146, 0.19979800283908844, -0.12057501822710037, -0.28222325444221497, -0.31442156434059143, -0.2846161723136902, -0.042270611971616745, 0.31885847449302673, -0.03474980592727661, 0.17568494379520416, 0.2172863930463791, 0.007256438490003347, -0.00858172308653593, 0.5270891785621643, 0.5310376286506653, 0.36439138650894165, 0.032804373651742935, -0.34464031457901, -0.3201417922973633, 0.11844651401042938, 0.031525567173957825, -0.3485722839832306, 0.13528968393802643, -0.29408591985702515, -0.416675865650177, -0.23241785168647766, 0.0475350022315979, 0.30433183908462524, 0.17430993914604187, 0.0977771207690239, 0.4815940260887146, 0.03183703497052193, 0.5973846316337585, -0.2026275098323822, 0.2511548697948456, -0.06264163553714752, -0.07727709412574768, -0.37338462471961975, -0.06873935461044312, 0.09315381944179535, -0.0938415676355362, -0.2422410398721695, -0.25117430090904236, 0.1497981697320938, -0.3231171667575836, -0.23350830376148224, 0.23779632151126862, -0.06791878491640091, -0.10851036757230759, -0.2599465847015381, -0.026153137907385826, -0.27138641476631165, -0.0026642228476703167, -0.40982168912887573, -0.0453108586370945, 0.047219593077898026, 0.07838230580091476, -0.09401273727416992, 0.14494559168815613, 0.0149094732478261, -0.0029676540289074183, 0.12511631846427917, -0.04741361737251282, 0.055268339812755585, -0.1387200951576233, 0.19446702301502228, -0.3343900442123413, 0.3974720537662506, 0.26040634512901306, -0.12393510341644287, 0.18650200963020325, -0.013995898887515068, -0.016247807070612907, -0.11239136755466461, -0.4625246226787567, 0.16566354036331177, 0.17922836542129517, -0.08228379487991333, 0.07062524557113647, 0.061977487057447433, -0.1980903148651123, -0.11837615072727203, 0.3574604094028473, 0.46014463901519775, -0.17208226025104523, 0.08294523507356644, -0.17342010140419006, 0.9666116833686829, -0.08701611310243607, 0.30651021003723145, 0.16309048235416412, -0.28223299980163574, 0.20640428364276886, -0.027445200830698013, 0.24343924224376678, -0.16611447930335999, 0.09829743951559067, 0.01654207520186901, 0.02866791933774948, -0.0507490411400795, -0.01236016396433115, -0.0781329870223999, 0.31238073110580444, -0.12671460211277008, -0.11590832471847534, 0.06729898601770401, -0.24971330165863037, 0.24183256924152374, 0.19030441343784332, 0.27260857820510864, 0.20572727918624878, 0.1770370602607727, 0.22975540161132812, -0.19392439723014832, 0.0010532732121646404, -0.1668597161769867, 0.3337588310241699, -0.11985795944929123, 0.08486416935920715, -0.024763721972703934, 0.059247326105833054, 0.15075097978115082, -0.23571743071079254, 0.007720496971160173, -0.12503623962402344, 0.01737813837826252, 0.3137320280075073, -0.2195059061050415, 0.5339850187301636, 0.1761535406112671, -0.1503567397594452, -0.019246431067585945, 0.23807673156261444, 0.0752396509051323, -0.2933390140533447, -0.3583962321281433, 0.2856740355491638, -0.19787158071994781, -0.35279765725135803, -0.28294894099235535, 0.1734122484922409, 0.07946036756038666, -0.19321760535240173, -0.2252996563911438, 0.07083198428153992, 0.21942661702632904, -0.08588217198848724, 0.22669270634651184, 0.32281720638275146, -0.01881498098373413, -0.23491154611110687, 0.1167820394039154, -0.18993516266345978, -0.024608228355646133, -0.12321480363607407, 0.009245524182915688, -0.14200782775878906, 0.37678346037864685, -0.033392488956451416, -0.014561479911208153, -0.3158395290374756, -0.2656894028186798, -0.10828030854463577, -0.20611681044101715, 0.07672577351331711, 0.08162565529346466, -0.3757321238517761, 0.15184934437274933, 0.10496588796377182, -0.09785228222608566, -0.462324321269989, -0.007580347824841738, -0.3518945872783661, 0.04108143225312233, 0.23680581152439117, -0.13345114886760712, -0.13361750543117523, -0.11734534800052643, -0.3241610527038574, -0.24029727280139923, 0.18467172980308533, -0.3524678647518158, 0.02259770594537258, -0.16316935420036316, -0.07412715256214142, -0.5100782513618469, -0.0039627267979085445, 0.32568347454071045, 0.03712841123342514, 0.26167798042297363, 0.0042880685068666935, -0.27966204285621643, -0.34673821926116943, -0.004438294097781181, 0.10414642840623856, -0.2361709326505661, 0.39672935009002686, 0.4903107285499573, 0.027593715116381645, -0.18052391707897186, 0.22749008238315582, 0.0455779954791069, -0.3257265090942383, 0.1585596650838852, 0.2776337265968323, 0.4485563337802887, -0.08223287761211395, -0.010229387320578098, 0.25967317819595337, 0.143511101603508, 0.23093919456005096, -0.06624715775251389, -0.05509202554821968, -0.28647053241729736, -0.08723729103803635, -0.04473790153861046, 0.3283528685569763, -0.15405625104904175, 0.4371042251586914, 0.24423222243785858, -0.14472606778144836, -0.15772362053394318, -0.07176555693149567, -0.1221238225698471, -0.10936815291643143, -0.2672440707683563, 0.22081273794174194, 0.1210111528635025, 0.3033645451068878, -0.3035905957221985, 0.06151999905705452, 0.03705605864524841, -0.0733577311038971, -0.022588839754462242, 0.03079596348106861, 0.03492869809269905, -0.3704008162021637, 0.37328585982322693, 0.26491275429725647, -0.2348112314939499, -0.09427788108587265, -0.09338384866714478, 0.29581448435783386, 0.03410310298204422, 0.05051827058196068, -0.04991063475608826, -0.06341476738452911, -0.001019669696688652, 0.4910416305065155, 0.27074751257896423, -0.3178960978984833, 0.15243534743785858, 0.20014356076717377, 0.0725066289305687, -0.5525767207145691, 0.05845986679196358, 0.19591858983039856, 0.06761563569307327, -0.2104635387659073, 0.21905140578746796, 0.5777036547660828, 0.30219823122024536, -0.020699355751276016, -0.1474563181400299, -0.14718148112297058, -0.11787883937358856, 0.055477604269981384, 0.24100899696350098, -0.05929723381996155, 0.1535247415304184, 0.02115064300596714, 0.3112744987010956, -0.033642590045928955, -0.3168659210205078, 0.0523049421608448, -0.03808769956231117, 0.5137315988540649, 0.06737722456455231, -0.2585238516330719, 0.22805827856063843, 0.2789359986782074, 0.16353559494018555, 0.017726581543684006, -0.14169394969940186, 0.2943289577960968, 0.25009557604789734, -0.004647244233638048, -0.3420358896255493, -0.03581253066658974, 0.1914392113685608, 0.1511555016040802, -0.08821125328540802, -0.014916582964360714, 0.33509156107902527, 0.14889799058437347, 0.1757856160402298, -0.27981242537498474, 0.26141881942749023, -0.19154559075832367, -0.21931350231170654, 0.05603405088186264, 0.11627452820539474, 0.13920314610004425, 0.027435699477791786, -0.2813887894153595, -0.195011168718338, -0.32687678933143616, -0.00805599708110094, -0.24789491295814514, 0.0026590137276798487, 0.22764705121517181, 0.11738043278455734, -0.23949745297431946, -0.1508859395980835, 0.15390343964099884, -0.2853977680206299, 0.26356807351112366, 0.1867826133966446, 0.3392733931541443, 0.15008312463760376, -0.2044629007577896, 0.02285013347864151, 0.3349549174308777, -0.02872326783835888, 0.1112108901143074, -0.179923877120018, 0.13340719044208527, 0.13774053752422333, -0.3111329972743988, 0.3094175159931183, -0.19042512774467468, 0.029806293547153473, 0.08350253850221634, -0.5498998165130615, -0.2984902858734131, -0.12385373562574387, 0.0648026317358017, -0.05040612071752548, -0.2507075071334839, 0.0740150436758995, 0.26770296692848206, 0.23856906592845917, 0.2908264696598053, 0.04891842231154442, 0.08295722305774689, 0.3722149431705475, 0.3750935196876526, 0.08134704828262329, 0.024636678397655487, 0.021270444616675377, -0.38290542364120483, -0.08926069736480713, -0.07644271105527878, 0.06897618621587753, 0.2626979351043701, 0.30809319019317627, 0.20463941991329193, -0.01819542795419693, 0.04545847699046135, 0.011432498693466187, 0.41315680742263794, -0.03577054291963577, -0.2784804105758667, -0.4655769169330597, 0.30282509326934814, 0.09348821640014648, -0.04006822779774666, 0.5206317901611328, 0.06476172804832458, -0.2394639253616333, -0.303420752286911, -0.45220834016799927, 0.008978855796158314, 0.5105875134468079, -0.2642083168029785, 0.1813308298587799, -0.03667573258280754, 0.26611894369125366, -0.24790170788764954, -0.29769161343574524, -0.47938060760498047, 0.12112387269735336, 0.14096397161483765, 0.054734986275434494, -0.1156451627612114, 0.3336496651172638, -0.06452655792236328, 0.06477150321006775, 0.03347667679190636, 0.384010374546051, 0.142149418592453, -0.18666057288646698, 0.07732008397579193, -0.06648246198892593 ]
https://github.com/huggingface/datasets/issues/3756
Images get decoded when using `map()` with `input_columns` argument on a dataset
Hi! If I'm not mistaken, this behavior is intentional, but I agree it could be more intuitive. @albertvillanova Do you remember why you decided not to decode columns in the `Audio` feature PR when `input_columns` is not `None`? IMO we should decode those columns, and we don't even have to use lazy structures here because the user explicitly requires them in the map transform. cc @lhoestq for visibility
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0
68
Images get decoded when using `map()` with `input_columns` argument on a dataset
[ -0.2124365121126175, 0.07815352082252502, -0.19875098764896393, 0.32629039883613586, 0.6277083158493042, 0.09082651138305664, 0.5144675970077515, 0.28419244289398193, 0.3760993182659149, 0.20388048887252808, -0.12305886298418045, 0.3873065114021301, 0.17092812061309814, -0.11542855203151703, -0.3139380216598511, -0.04808320105075836, 0.08384507894515991, 0.40299487113952637, -0.47168904542922974, -0.19778507947921753, -0.2997759282588959, 0.0605739951133728, -0.2825007438659668, -0.1104440987110138, -0.16420626640319824, -0.14336426556110382, 0.02579743042588234, -0.030238643288612366, -0.3760628402233124, -0.0011738983448594809, -0.39471861720085144, 0.05473138391971588, -0.27374112606048584, 0.24470241367816925, -0.00010428754467284307, 0.3038432002067566, 0.1163770854473114, -0.07678331434726715, -0.02771630324423313, 0.0863376334309578, -0.49229517579078674, -0.07137692719697952, -0.2378118485212326, -0.4205021262168884, 0.040306661278009415, -0.360359251499176, 0.3301694095134735, -0.24113820493221283, 0.26850077509880066, -0.10030752420425415, 0.2848682999610901, -0.050365298986434937, 0.059333283454179764, 0.19084593653678894, 0.2762726843357086, 0.21202169358730316, -0.135647252202034, -0.22999757528305054, 0.03109259158372879, -0.12578850984573364, -0.43734827637672424, 0.5036967396736145, -0.09299339354038239, 0.20251676440238953, 0.049592044204473495, 0.22451363503932953, -0.014683441258966923, -0.1284945160150528, 0.2202703058719635, -0.09107927978038788, 0.022407351061701775, -0.10924260318279266, -0.1926642507314682, -0.18424727022647858, -0.14662644267082214, 0.02186218835413456, 0.09327324479818344, 0.09105446189641953, -0.06071813404560089, 0.05371624603867531, -0.40036991238594055, 0.10601729899644852, -0.19206097722053528, 0.26363834738731384, -0.14129950106143951, -0.034704145044088364, -0.17218436300754547, 0.205540731549263, 0.15247613191604614, -0.06883420795202255, -0.18820609152317047, -0.20006544888019562, 0.14055976271629333, 0.09088733047246933, -0.0617709718644619, 0.07641948014497757, 0.03292161598801613, -0.04999450594186783, 0.02537045255303383, -0.406901478767395, 0.21780595183372498, 0.22947320342063904, 0.019220424816012383, 0.3781326711177826, 0.24978426098823547, -0.0732240155339241, -0.3188192844390869, 0.47325363755226135, 0.20341631770133972, 0.049352921545505524, -0.3156910836696625, -0.20138588547706604, 0.14365631341934204, -0.07757306098937988, -0.05903118848800659, -0.14056554436683655, 0.036752741783857346, 0.0992506593465805, 0.04348767548799515, 0.16239407658576965, -0.0346066914498806, 0.10475935786962509, -0.12101906538009644, 0.2252722680568695, 0.3551695644855499, 0.23801009356975555, 0.1211564913392067, 0.05514846369624138, -0.1434594988822937, -0.11353493481874466, -0.22890301048755646, -0.053872764110565186, -0.21241168677806854, -0.08031502366065979, -0.1431666612625122, 0.14001969993114471, 0.08113602548837662, 0.09834828227758408, -0.0285800788551569, -0.08388322591781616, 0.20117612183094025, -0.3834398686885834, 0.7426573038101196, 0.27433404326438904, 0.09491526335477829, 0.010656919330358505, 0.11866477131843567, -0.23640254139900208, 0.07964961230754852, 0.3412432074546814, -0.5086039304733276, 0.396523654460907, 0.09434322267770767, 0.16870251297950745, 0.06910011917352676, 0.22527246177196503, 0.03738395497202873, 0.15531721711158752, 0.20212016999721527, -0.3288395404815674, 0.02732916548848152, -0.08674639463424683, -0.16458085179328918, -0.1327083706855774, -0.05825338512659073, 0.1372513473033905, -0.3403864800930023, 0.16556508839130402, 0.15669459104537964, -0.08269388973712921, 0.14762699604034424, 0.20759175717830658, 0.004456802271306515, -0.0813552513718605, 0.04990121349692345, 0.499368280172348, 0.22749558091163635, -0.13910867273807526, -0.279513955116272, 0.41854119300842285, 0.14696651697158813, 0.022402867674827576, -0.06594017893075943, 0.15466763079166412, 0.39901256561279297, 0.07986581325531006, -0.006009768228977919, 0.22146649658679962, -0.03784627839922905, 0.3103107213973999, -0.09517551958560944, -0.09266915917396545, 0.03735467791557312, 0.14692436158657074, -0.05622432753443718, 0.1481103003025055, 0.20188966393470764, -0.2518075406551361, -0.09281854331493378, -0.34956440329551697, 0.17747123539447784, 0.3122878670692444, -0.02008669264614582, -0.1759641021490097, -0.0591108538210392, 0.06897052377462387, -0.04449063539505005, -0.08249060809612274, 0.34084296226501465, 0.021500151604413986, -0.46560922265052795, -0.15849603712558746, -0.17683671414852142, -0.08364817500114441, -0.24106711149215698, 0.35522404313087463, 0.27585089206695557, 0.04574045538902283, -0.24193112552165985, 0.09233256429433823, -0.024797266349196434, 0.18190264701843262, -0.06321282684803009, 0.03142207860946655, -0.1799757033586502, -0.0017643739702180028, -0.09199598431587219, -0.16661356389522552, -0.1339430958032608, -0.007791517302393913, 0.010005810298025608, -0.0022562057711184025, -0.08260936290025711, 0.2835625410079956, 0.33005455136299133, 0.10693173110485077, -0.46086257696151733, 0.07871182262897491, 0.14283566176891327, 0.07904307544231415, 0.000565457041375339, -0.11287743598222733, 0.27812424302101135, 0.04856818914413452, -0.06299277395009995, 0.14451968669891357, 0.0842481181025505, 0.07669591903686523, 0.13420870900154114, -0.0428592711687088, 0.06171134114265442, 0.045053862035274506, -0.1196310892701149, -0.5973020792007446, -0.38502711057662964, -0.020841337740421295, 0.009888900443911552, 0.05923135578632355, -0.03413700312376022, -0.09241818636655807, 0.7380111813545227, 0.06168948858976364, 0.2125924825668335, -0.00508090341463685, 0.017927510663866997, 0.124797023832798, 0.22096887230873108, 0.3196309804916382, 0.3231322169303894, 0.12722617387771606, -0.031070111319422722, -0.04520740732550621, -0.22268708050251007, -0.004135486204177141, -0.008042902685701847, 0.16465722024440765, 0.26135122776031494, 0.11041568219661713, 0.16422466933727264, -0.23161472380161285, -0.39498499035835266, 0.1290706843137741, 0.1191563755273819, -0.12141958624124527, -0.17275752127170563, 0.16470623016357422, -0.5576855540275574, -0.32389089465141296, 0.09457455575466156, 0.23294666409492493, 0.17122462391853333, -0.2565849721431732, 0.12240514904260635, -0.13910271227359772, -0.3266942501068115, 0.19166091084480286, -0.1382603496313095, 0.0023305853828787804, 0.26723843812942505, -0.12190326303243637, -0.012104208581149578, -0.2665351629257202, -0.04936947301030159, 0.1467294692993164, 0.060815609991550446, -0.2574763596057892, 0.11223708838224411, -0.19064439833164215, 0.1253911703824997, 0.11093834787607193, -0.2841494679450989, 0.34240779280662537, -0.2615724503993988, -0.0853622704744339, 0.153846874833107, 0.3386518955230713, -0.1901291012763977, -0.1765897125005722, 0.34183183312416077, 0.08038267493247986, -0.18625634908676147, 0.04952540621161461, 0.08625232428312302, -0.3866802155971527, -0.5669114589691162, -0.03784111514687538, 0.11905574798583984, -0.21507929265499115, -0.11780662834644318, 0.10078766942024231, 0.19301123917102814, 0.17361056804656982, 0.5553531050682068, -0.1877870261669159, 0.013067315332591534, 0.05914611369371414, -0.32635924220085144, 0.005913381464779377, 0.37531986832618713, -0.2201647162437439, -0.22424763441085815, -0.06133594736456871, -0.07207833230495453, 0.09922029823064804, 0.5669361352920532, -0.3329847753047943, -0.39945873618125916, -0.14198686182498932, -0.11583205312490463, 0.057247184216976166, 0.24017764627933502, -0.07527726143598557, 0.2299562394618988, -0.16157770156860352, -0.29982903599739075, -0.022206006571650505, 0.14743418991565704, 0.2594897747039795, -0.07785496860742569, 0.13707229495048523, 0.32416442036628723, 0.22562557458877563, -0.09627514332532883, -0.08397561311721802, -0.20990198850631714, 0.5044706463813782, -0.156917542219162, 0.6890963315963745, -0.20256489515304565, 0.08583562821149826, -0.030335228890180588, -0.0290228184312582, 0.0031285181175917387, -0.07261905819177628, -0.024348698556423187, -0.5652623772621155, -0.026833632960915565, 0.6596167087554932, -0.42287686467170715, -0.23294812440872192, 0.19044797122478485, 0.257828950881958, 0.1652800589799881, 0.180962473154068, 0.35435178875923157, -0.10689303278923035, -0.06342050433158875, -0.1031954362988472, -0.3903752863407135, 0.28198400139808655, -0.24363166093826294, -0.02620691992342472, -0.01188209280371666, -0.1332612782716751, 0.1425894796848297, 0.11649999022483826, 0.3887389004230499, -0.12250197678804398, -0.35334309935569763, 0.17892523109912872, 0.042838204652071, 0.4444262683391571, -0.39222005009651184, -0.18349063396453857, 0.15285150706768036, 0.23624682426452637, -0.17669489979743958, 0.23521946370601654, -0.303058385848999, -0.019054939970374107, -0.09857677668333054, 0.5750085115432739, -0.31887340545654297, 0.06359345465898514, 0.10996013879776001, 0.08285477012395859, 0.04243442043662071, 0.15952081978321075, -0.2903345823287964, -0.3194114565849304, -0.3523370623588562, -0.2554290294647217, 0.3198038935661316, -0.002063350984826684, 0.2546865940093994, -0.22587959468364716, 0.021217120811343193, 0.11288994550704956, -0.1309814602136612, 0.477533221244812, 0.32655850052833557, 0.06680600345134735, -0.15092985332012177, 0.21870435774326324, 0.0968204066157341, -0.2310454100370407, 0.40791770815849304, -0.31399643421173096, -0.1546602100133896, 0.213556706905365, -0.3440362513065338, 0.010653815232217312, 0.24490705132484436, -0.029734017327427864, -0.09845655411481857, -0.0717453807592392, -0.23639629781246185, -0.4422134459018707, 0.1445370614528656, 0.45331788063049316, 0.004486957099288702, 0.1493629813194275, -0.26163142919540405, 0.020885195583105087, -0.056893158704042435, -0.11546640843153, 0.30216363072395325, 0.029479611665010452, -0.21950283646583557, 0.6017840504646301, 0.22829489409923553, 0.5017257332801819, -0.24900566041469574, 0.11493656784296036, 0.19309884309768677, -0.14178434014320374, -0.031530339270830154, -0.1129797101020813, 0.20754438638687134, -0.01174403727054596, -0.36285820603370667, -0.07786784321069717, 0.019537819549441338, 0.24844539165496826, 0.34437766671180725, -0.03825870901346207, -0.04667209833860397, 0.20498935878276825, 0.43156325817108154, -0.017658602446317673, -0.26866498589515686, 0.08821884542703629, -0.3253752589225769, -0.12935534119606018, 0.24668075144290924, -0.004441647790372372, -0.2320704460144043, 0.05819828435778618, -0.02642354741692543, 0.055829085409641266, -0.1755477786064148, 0.1216488629579544, -0.007793433032929897, -0.296680748462677, 0.2855803072452545, 0.07006561756134033, -0.04569200798869133, -0.16714538633823395, 0.42388638854026794, -0.157989963889122, 0.04610452055931091, 0.12309837341308594, 0.11116969585418701, 0.2695353925228119, 0.3845762014389038, -0.019561396911740303, 0.05663066729903221, 0.1600065678358078, 0.12809734046459198, -0.024786366149783134, -0.038985371589660645, 0.07434424757957458, -0.1567140817642212, -0.09926121681928635, 0.18754570186138153, -0.04258730635046959, -0.18048016726970673, -0.2863512635231018, -0.10835041105747223, -0.020354870706796646, 0.1433173418045044, 0.18186992406845093, -0.29123005270957947, 0.20050843060016632, 0.4742047190666199, 0.15998609364032745, -0.32504352927207947, 0.07927069813013077, 0.36998623609542847, -0.14705246686935425, 0.03115891106426716, 0.19862371683120728, -0.1925891488790512, -0.3514792323112488, -0.22506511211395264, 0.11630694568157196, -0.05602740868926048, -0.06780118495225906, 0.07364796102046967, -0.09476891160011292, -0.22494345903396606, -0.24369201064109802, -0.19995027780532837, -0.3251069486141205, 0.019588174298405647, -0.1443788707256317, -0.20965850353240967, -0.31211861968040466, 0.3255866467952728, 0.13754527270793915, 0.12076734006404877, 0.10139380395412445, -0.23551766574382782, -0.08588392287492752, -0.060724277049303055, -0.37751561403274536, 0.06116349250078201, -0.2338196039199829, 0.2683555781841278, 0.16385012865066528, 0.062196437269449234, 0.03191209211945534, -0.1808953732252121, 0.28080689907073975, 0.39811378717422485, -0.21166115999221802, -0.22466884553432465, -0.053076282143592834, 0.10615094006061554, -0.006398631725460291, -0.14296497404575348, -0.03310229629278183, -0.238052636384964, -0.15937656164169312, -0.25318169593811035, 0.2903127074241638, 0.0843261182308197, -0.380799800157547, 0.20304985344409943, -0.38171494007110596, 0.0982101634144783, 0.28668510913848877, -0.23841051757335663, -0.17884588241577148, 0.3438940644264221, 0.1849924921989441, -0.07227934896945953, 0.170897975564003, -0.016553713008761406, 0.09189536422491074, 0.14660371840000153, 0.047386329621076584, -0.13740216195583344, 0.6710885167121887, -0.055284224450588226, 0.2454957515001297, 0.12224765866994858, 0.35753145813941956, -0.08834269642829895, -0.40881630778312683, -0.21651111543178558, 0.04816988483071327, 0.27923622727394104, -0.1652308851480484, -0.0873810276389122, 0.46512657403945923, -0.015843987464904785, 0.21913200616836548, 0.2527064383029938, 0.11297725141048431, 0.21017268300056458, 0.011793753132224083, -0.07811618596315384, 0.1910059005022049, -0.3154163956642151, -0.057336241006851196, 0.7088228464126587, -0.1031942144036293, 0.1731351912021637, -0.011860664933919907, 0.0068182810209691525, -0.029603492468595505, 0.529118537902832, -0.14884276688098907, 0.11410273611545563, 0.052913494408130646, 0.012284675613045692, -0.12407299131155014, -0.32365602254867554, 0.38907507061958313, 0.3873545229434967, -0.11293293535709381, 0.5370990037918091, 0.18400107324123383, -0.1758393943309784, 0.0072399009950459, -0.15693728625774384, -0.0314643532037735, 0.11068302392959595, -0.24733787775039673, -0.04091052711009979, -0.23853586614131927, -0.0629325658082962, -0.48337680101394653, 0.09046269208192825, -0.03746873140335083, 0.03693012148141861, 0.4277597665786743, 0.05108046904206276, 0.17926757037639618, -0.04256797581911087, -0.1931391805410385, -0.1444758027791977, 0.3424762785434723, -0.19636838138103485, 0.3278580605983734, 0.13907046616077423, 0.37279483675956726, 0.44723859429359436, 0.008377599529922009, 0.26165276765823364, 0.19686613976955414, -0.12592396140098572, 0.001721302280202508, -0.09482394903898239, -0.3456326425075531, -0.20949606597423553, 0.18338140845298767, 0.15082308650016785, 0.3035188913345337, 0.3316076695919037, 0.1632992923259735, -0.22332091629505157, -0.1795147955417633, 0.23049916326999664, 0.2929528057575226, 0.22936344146728516, -0.038652557879686356, -0.3147282898426056, -0.17590034008026123, -0.1014738604426384, -0.52363121509552, -0.32684287428855896, -0.21477079391479492, 0.2562863528728485, -0.3468785583972931, 0.2690672278404236, 0.034529656171798706, 0.10999349504709244, 0.012568417936563492, 0.43357861042022705, 0.07789888232946396, -0.16538535058498383, -0.1177276149392128, -0.19457949697971344, -0.424904465675354, 0.12434981763362885, -0.22631514072418213, -0.3932938277721405, -0.17929038405418396, 0.04309726506471634, 0.4806983470916748, 0.24821223318576813, 0.09759039431810379, -0.29637089371681213, 0.005141795612871647, 0.2122872769832611, -0.2009086310863495, -0.21872003376483917, 0.09038602560758591, -0.1544027179479599, -0.11518443375825882, -0.3925169110298157, 0.20801295340061188, 0.2936628460884094, 0.23969493806362152, -0.029184265062212944, 0.12453095614910126, -0.5688467621803284, -0.18962770700454712, 0.15076488256454468, 0.1779291331768036, 0.22992625832557678, -0.3325495421886444, 0.01104767806828022, 0.03391924872994423, -0.14596788585186005, -0.04986618086695671, 0.10926494747400284, 0.12751242518424988, 0.4036194682121277, -0.11798775941133499, -0.12489599734544754, -0.10824285447597504, 0.10675324499607086, 0.08994798362255096, 0.15605883300304413, -0.18142898380756378, 0.2704620361328125, -0.16962306201457977, -0.21028581261634827, -0.0903865396976471, 0.09376382827758789, 0.16830536723136902, 0.022959990426898003, 0.06591357290744781, -0.41020721197128296, 0.18408437073230743, -0.3741220235824585, -0.47788891196250916, 0.2566799819469452, -0.3092260956764221, -0.0593051016330719, 0.07869352400302887, -0.35642245411872864, 0.1346224695444107, 0.0360899455845356, -0.28973424434661865, -0.289745956659317, 0.2194754034280777, 0.020589223131537437, 0.02806023880839348, -0.0703718289732933, 0.27142268419265747, 0.07872312515974045, -0.17772185802459717, -0.003798846388235688, -0.13286644220352173 ]
https://github.com/huggingface/datasets/issues/3756
Images get decoded when using `map()` with `input_columns` argument on a dataset
I think I excluded to decorate the function when `input_columns` were passed as a quick fix for some non-passing tests: - https://github.com/huggingface/datasets/pull/2324/commits/9d7c3e8fa53e23ec636859b4407eeec904b1b3f9 That PR was quite complex and I decided to focus on the main feature requests, leaving refinements for subsequent PRs. Note that when `input_columns` are passed, the signature of the function is effectively changed, while the decorated function expects an item (whether an example or a batch) as first arg (which is not the case when passing `input_columns`. I agree we should consider supporting the case when `input_columns` are passed.
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0
92
Images get decoded when using `map()` with `input_columns` argument on a dataset
[ -0.2124365121126175, 0.07815352082252502, -0.19875098764896393, 0.32629039883613586, 0.6277083158493042, 0.09082651138305664, 0.5144675970077515, 0.28419244289398193, 0.3760993182659149, 0.20388048887252808, -0.12305886298418045, 0.3873065114021301, 0.17092812061309814, -0.11542855203151703, -0.3139380216598511, -0.04808320105075836, 0.08384507894515991, 0.40299487113952637, -0.47168904542922974, -0.19778507947921753, -0.2997759282588959, 0.0605739951133728, -0.2825007438659668, -0.1104440987110138, -0.16420626640319824, -0.14336426556110382, 0.02579743042588234, -0.030238643288612366, -0.3760628402233124, -0.0011738983448594809, -0.39471861720085144, 0.05473138391971588, -0.27374112606048584, 0.24470241367816925, -0.00010428754467284307, 0.3038432002067566, 0.1163770854473114, -0.07678331434726715, -0.02771630324423313, 0.0863376334309578, -0.49229517579078674, -0.07137692719697952, -0.2378118485212326, -0.4205021262168884, 0.040306661278009415, -0.360359251499176, 0.3301694095134735, -0.24113820493221283, 0.26850077509880066, -0.10030752420425415, 0.2848682999610901, -0.050365298986434937, 0.059333283454179764, 0.19084593653678894, 0.2762726843357086, 0.21202169358730316, -0.135647252202034, -0.22999757528305054, 0.03109259158372879, -0.12578850984573364, -0.43734827637672424, 0.5036967396736145, -0.09299339354038239, 0.20251676440238953, 0.049592044204473495, 0.22451363503932953, -0.014683441258966923, -0.1284945160150528, 0.2202703058719635, -0.09107927978038788, 0.022407351061701775, -0.10924260318279266, -0.1926642507314682, -0.18424727022647858, -0.14662644267082214, 0.02186218835413456, 0.09327324479818344, 0.09105446189641953, -0.06071813404560089, 0.05371624603867531, -0.40036991238594055, 0.10601729899644852, -0.19206097722053528, 0.26363834738731384, -0.14129950106143951, -0.034704145044088364, -0.17218436300754547, 0.205540731549263, 0.15247613191604614, -0.06883420795202255, -0.18820609152317047, -0.20006544888019562, 0.14055976271629333, 0.09088733047246933, -0.0617709718644619, 0.07641948014497757, 0.03292161598801613, -0.04999450594186783, 0.02537045255303383, -0.406901478767395, 0.21780595183372498, 0.22947320342063904, 0.019220424816012383, 0.3781326711177826, 0.24978426098823547, -0.0732240155339241, -0.3188192844390869, 0.47325363755226135, 0.20341631770133972, 0.049352921545505524, -0.3156910836696625, -0.20138588547706604, 0.14365631341934204, -0.07757306098937988, -0.05903118848800659, -0.14056554436683655, 0.036752741783857346, 0.0992506593465805, 0.04348767548799515, 0.16239407658576965, -0.0346066914498806, 0.10475935786962509, -0.12101906538009644, 0.2252722680568695, 0.3551695644855499, 0.23801009356975555, 0.1211564913392067, 0.05514846369624138, -0.1434594988822937, -0.11353493481874466, -0.22890301048755646, -0.053872764110565186, -0.21241168677806854, -0.08031502366065979, -0.1431666612625122, 0.14001969993114471, 0.08113602548837662, 0.09834828227758408, -0.0285800788551569, -0.08388322591781616, 0.20117612183094025, -0.3834398686885834, 0.7426573038101196, 0.27433404326438904, 0.09491526335477829, 0.010656919330358505, 0.11866477131843567, -0.23640254139900208, 0.07964961230754852, 0.3412432074546814, -0.5086039304733276, 0.396523654460907, 0.09434322267770767, 0.16870251297950745, 0.06910011917352676, 0.22527246177196503, 0.03738395497202873, 0.15531721711158752, 0.20212016999721527, -0.3288395404815674, 0.02732916548848152, -0.08674639463424683, -0.16458085179328918, -0.1327083706855774, -0.05825338512659073, 0.1372513473033905, -0.3403864800930023, 0.16556508839130402, 0.15669459104537964, -0.08269388973712921, 0.14762699604034424, 0.20759175717830658, 0.004456802271306515, -0.0813552513718605, 0.04990121349692345, 0.499368280172348, 0.22749558091163635, -0.13910867273807526, -0.279513955116272, 0.41854119300842285, 0.14696651697158813, 0.022402867674827576, -0.06594017893075943, 0.15466763079166412, 0.39901256561279297, 0.07986581325531006, -0.006009768228977919, 0.22146649658679962, -0.03784627839922905, 0.3103107213973999, -0.09517551958560944, -0.09266915917396545, 0.03735467791557312, 0.14692436158657074, -0.05622432753443718, 0.1481103003025055, 0.20188966393470764, -0.2518075406551361, -0.09281854331493378, -0.34956440329551697, 0.17747123539447784, 0.3122878670692444, -0.02008669264614582, -0.1759641021490097, -0.0591108538210392, 0.06897052377462387, -0.04449063539505005, -0.08249060809612274, 0.34084296226501465, 0.021500151604413986, -0.46560922265052795, -0.15849603712558746, -0.17683671414852142, -0.08364817500114441, -0.24106711149215698, 0.35522404313087463, 0.27585089206695557, 0.04574045538902283, -0.24193112552165985, 0.09233256429433823, -0.024797266349196434, 0.18190264701843262, -0.06321282684803009, 0.03142207860946655, -0.1799757033586502, -0.0017643739702180028, -0.09199598431587219, -0.16661356389522552, -0.1339430958032608, -0.007791517302393913, 0.010005810298025608, -0.0022562057711184025, -0.08260936290025711, 0.2835625410079956, 0.33005455136299133, 0.10693173110485077, -0.46086257696151733, 0.07871182262897491, 0.14283566176891327, 0.07904307544231415, 0.000565457041375339, -0.11287743598222733, 0.27812424302101135, 0.04856818914413452, -0.06299277395009995, 0.14451968669891357, 0.0842481181025505, 0.07669591903686523, 0.13420870900154114, -0.0428592711687088, 0.06171134114265442, 0.045053862035274506, -0.1196310892701149, -0.5973020792007446, -0.38502711057662964, -0.020841337740421295, 0.009888900443911552, 0.05923135578632355, -0.03413700312376022, -0.09241818636655807, 0.7380111813545227, 0.06168948858976364, 0.2125924825668335, -0.00508090341463685, 0.017927510663866997, 0.124797023832798, 0.22096887230873108, 0.3196309804916382, 0.3231322169303894, 0.12722617387771606, -0.031070111319422722, -0.04520740732550621, -0.22268708050251007, -0.004135486204177141, -0.008042902685701847, 0.16465722024440765, 0.26135122776031494, 0.11041568219661713, 0.16422466933727264, -0.23161472380161285, -0.39498499035835266, 0.1290706843137741, 0.1191563755273819, -0.12141958624124527, -0.17275752127170563, 0.16470623016357422, -0.5576855540275574, -0.32389089465141296, 0.09457455575466156, 0.23294666409492493, 0.17122462391853333, -0.2565849721431732, 0.12240514904260635, -0.13910271227359772, -0.3266942501068115, 0.19166091084480286, -0.1382603496313095, 0.0023305853828787804, 0.26723843812942505, -0.12190326303243637, -0.012104208581149578, -0.2665351629257202, -0.04936947301030159, 0.1467294692993164, 0.060815609991550446, -0.2574763596057892, 0.11223708838224411, -0.19064439833164215, 0.1253911703824997, 0.11093834787607193, -0.2841494679450989, 0.34240779280662537, -0.2615724503993988, -0.0853622704744339, 0.153846874833107, 0.3386518955230713, -0.1901291012763977, -0.1765897125005722, 0.34183183312416077, 0.08038267493247986, -0.18625634908676147, 0.04952540621161461, 0.08625232428312302, -0.3866802155971527, -0.5669114589691162, -0.03784111514687538, 0.11905574798583984, -0.21507929265499115, -0.11780662834644318, 0.10078766942024231, 0.19301123917102814, 0.17361056804656982, 0.5553531050682068, -0.1877870261669159, 0.013067315332591534, 0.05914611369371414, -0.32635924220085144, 0.005913381464779377, 0.37531986832618713, -0.2201647162437439, -0.22424763441085815, -0.06133594736456871, -0.07207833230495453, 0.09922029823064804, 0.5669361352920532, -0.3329847753047943, -0.39945873618125916, -0.14198686182498932, -0.11583205312490463, 0.057247184216976166, 0.24017764627933502, -0.07527726143598557, 0.2299562394618988, -0.16157770156860352, -0.29982903599739075, -0.022206006571650505, 0.14743418991565704, 0.2594897747039795, -0.07785496860742569, 0.13707229495048523, 0.32416442036628723, 0.22562557458877563, -0.09627514332532883, -0.08397561311721802, -0.20990198850631714, 0.5044706463813782, -0.156917542219162, 0.6890963315963745, -0.20256489515304565, 0.08583562821149826, -0.030335228890180588, -0.0290228184312582, 0.0031285181175917387, -0.07261905819177628, -0.024348698556423187, -0.5652623772621155, -0.026833632960915565, 0.6596167087554932, -0.42287686467170715, -0.23294812440872192, 0.19044797122478485, 0.257828950881958, 0.1652800589799881, 0.180962473154068, 0.35435178875923157, -0.10689303278923035, -0.06342050433158875, -0.1031954362988472, -0.3903752863407135, 0.28198400139808655, -0.24363166093826294, -0.02620691992342472, -0.01188209280371666, -0.1332612782716751, 0.1425894796848297, 0.11649999022483826, 0.3887389004230499, -0.12250197678804398, -0.35334309935569763, 0.17892523109912872, 0.042838204652071, 0.4444262683391571, -0.39222005009651184, -0.18349063396453857, 0.15285150706768036, 0.23624682426452637, -0.17669489979743958, 0.23521946370601654, -0.303058385848999, -0.019054939970374107, -0.09857677668333054, 0.5750085115432739, -0.31887340545654297, 0.06359345465898514, 0.10996013879776001, 0.08285477012395859, 0.04243442043662071, 0.15952081978321075, -0.2903345823287964, -0.3194114565849304, -0.3523370623588562, -0.2554290294647217, 0.3198038935661316, -0.002063350984826684, 0.2546865940093994, -0.22587959468364716, 0.021217120811343193, 0.11288994550704956, -0.1309814602136612, 0.477533221244812, 0.32655850052833557, 0.06680600345134735, -0.15092985332012177, 0.21870435774326324, 0.0968204066157341, -0.2310454100370407, 0.40791770815849304, -0.31399643421173096, -0.1546602100133896, 0.213556706905365, -0.3440362513065338, 0.010653815232217312, 0.24490705132484436, -0.029734017327427864, -0.09845655411481857, -0.0717453807592392, -0.23639629781246185, -0.4422134459018707, 0.1445370614528656, 0.45331788063049316, 0.004486957099288702, 0.1493629813194275, -0.26163142919540405, 0.020885195583105087, -0.056893158704042435, -0.11546640843153, 0.30216363072395325, 0.029479611665010452, -0.21950283646583557, 0.6017840504646301, 0.22829489409923553, 0.5017257332801819, -0.24900566041469574, 0.11493656784296036, 0.19309884309768677, -0.14178434014320374, -0.031530339270830154, -0.1129797101020813, 0.20754438638687134, -0.01174403727054596, -0.36285820603370667, -0.07786784321069717, 0.019537819549441338, 0.24844539165496826, 0.34437766671180725, -0.03825870901346207, -0.04667209833860397, 0.20498935878276825, 0.43156325817108154, -0.017658602446317673, -0.26866498589515686, 0.08821884542703629, -0.3253752589225769, -0.12935534119606018, 0.24668075144290924, -0.004441647790372372, -0.2320704460144043, 0.05819828435778618, -0.02642354741692543, 0.055829085409641266, -0.1755477786064148, 0.1216488629579544, -0.007793433032929897, -0.296680748462677, 0.2855803072452545, 0.07006561756134033, -0.04569200798869133, -0.16714538633823395, 0.42388638854026794, -0.157989963889122, 0.04610452055931091, 0.12309837341308594, 0.11116969585418701, 0.2695353925228119, 0.3845762014389038, -0.019561396911740303, 0.05663066729903221, 0.1600065678358078, 0.12809734046459198, -0.024786366149783134, -0.038985371589660645, 0.07434424757957458, -0.1567140817642212, -0.09926121681928635, 0.18754570186138153, -0.04258730635046959, -0.18048016726970673, -0.2863512635231018, -0.10835041105747223, -0.020354870706796646, 0.1433173418045044, 0.18186992406845093, -0.29123005270957947, 0.20050843060016632, 0.4742047190666199, 0.15998609364032745, -0.32504352927207947, 0.07927069813013077, 0.36998623609542847, -0.14705246686935425, 0.03115891106426716, 0.19862371683120728, -0.1925891488790512, -0.3514792323112488, -0.22506511211395264, 0.11630694568157196, -0.05602740868926048, -0.06780118495225906, 0.07364796102046967, -0.09476891160011292, -0.22494345903396606, -0.24369201064109802, -0.19995027780532837, -0.3251069486141205, 0.019588174298405647, -0.1443788707256317, -0.20965850353240967, -0.31211861968040466, 0.3255866467952728, 0.13754527270793915, 0.12076734006404877, 0.10139380395412445, -0.23551766574382782, -0.08588392287492752, -0.060724277049303055, -0.37751561403274536, 0.06116349250078201, -0.2338196039199829, 0.2683555781841278, 0.16385012865066528, 0.062196437269449234, 0.03191209211945534, -0.1808953732252121, 0.28080689907073975, 0.39811378717422485, -0.21166115999221802, -0.22466884553432465, -0.053076282143592834, 0.10615094006061554, -0.006398631725460291, -0.14296497404575348, -0.03310229629278183, -0.238052636384964, -0.15937656164169312, -0.25318169593811035, 0.2903127074241638, 0.0843261182308197, -0.380799800157547, 0.20304985344409943, -0.38171494007110596, 0.0982101634144783, 0.28668510913848877, -0.23841051757335663, -0.17884588241577148, 0.3438940644264221, 0.1849924921989441, -0.07227934896945953, 0.170897975564003, -0.016553713008761406, 0.09189536422491074, 0.14660371840000153, 0.047386329621076584, -0.13740216195583344, 0.6710885167121887, -0.055284224450588226, 0.2454957515001297, 0.12224765866994858, 0.35753145813941956, -0.08834269642829895, -0.40881630778312683, -0.21651111543178558, 0.04816988483071327, 0.27923622727394104, -0.1652308851480484, -0.0873810276389122, 0.46512657403945923, -0.015843987464904785, 0.21913200616836548, 0.2527064383029938, 0.11297725141048431, 0.21017268300056458, 0.011793753132224083, -0.07811618596315384, 0.1910059005022049, -0.3154163956642151, -0.057336241006851196, 0.7088228464126587, -0.1031942144036293, 0.1731351912021637, -0.011860664933919907, 0.0068182810209691525, -0.029603492468595505, 0.529118537902832, -0.14884276688098907, 0.11410273611545563, 0.052913494408130646, 0.012284675613045692, -0.12407299131155014, -0.32365602254867554, 0.38907507061958313, 0.3873545229434967, -0.11293293535709381, 0.5370990037918091, 0.18400107324123383, -0.1758393943309784, 0.0072399009950459, -0.15693728625774384, -0.0314643532037735, 0.11068302392959595, -0.24733787775039673, -0.04091052711009979, -0.23853586614131927, -0.0629325658082962, -0.48337680101394653, 0.09046269208192825, -0.03746873140335083, 0.03693012148141861, 0.4277597665786743, 0.05108046904206276, 0.17926757037639618, -0.04256797581911087, -0.1931391805410385, -0.1444758027791977, 0.3424762785434723, -0.19636838138103485, 0.3278580605983734, 0.13907046616077423, 0.37279483675956726, 0.44723859429359436, 0.008377599529922009, 0.26165276765823364, 0.19686613976955414, -0.12592396140098572, 0.001721302280202508, -0.09482394903898239, -0.3456326425075531, -0.20949606597423553, 0.18338140845298767, 0.15082308650016785, 0.3035188913345337, 0.3316076695919037, 0.1632992923259735, -0.22332091629505157, -0.1795147955417633, 0.23049916326999664, 0.2929528057575226, 0.22936344146728516, -0.038652557879686356, -0.3147282898426056, -0.17590034008026123, -0.1014738604426384, -0.52363121509552, -0.32684287428855896, -0.21477079391479492, 0.2562863528728485, -0.3468785583972931, 0.2690672278404236, 0.034529656171798706, 0.10999349504709244, 0.012568417936563492, 0.43357861042022705, 0.07789888232946396, -0.16538535058498383, -0.1177276149392128, -0.19457949697971344, -0.424904465675354, 0.12434981763362885, -0.22631514072418213, -0.3932938277721405, -0.17929038405418396, 0.04309726506471634, 0.4806983470916748, 0.24821223318576813, 0.09759039431810379, -0.29637089371681213, 0.005141795612871647, 0.2122872769832611, -0.2009086310863495, -0.21872003376483917, 0.09038602560758591, -0.1544027179479599, -0.11518443375825882, -0.3925169110298157, 0.20801295340061188, 0.2936628460884094, 0.23969493806362152, -0.029184265062212944, 0.12453095614910126, -0.5688467621803284, -0.18962770700454712, 0.15076488256454468, 0.1779291331768036, 0.22992625832557678, -0.3325495421886444, 0.01104767806828022, 0.03391924872994423, -0.14596788585186005, -0.04986618086695671, 0.10926494747400284, 0.12751242518424988, 0.4036194682121277, -0.11798775941133499, -0.12489599734544754, -0.10824285447597504, 0.10675324499607086, 0.08994798362255096, 0.15605883300304413, -0.18142898380756378, 0.2704620361328125, -0.16962306201457977, -0.21028581261634827, -0.0903865396976471, 0.09376382827758789, 0.16830536723136902, 0.022959990426898003, 0.06591357290744781, -0.41020721197128296, 0.18408437073230743, -0.3741220235824585, -0.47788891196250916, 0.2566799819469452, -0.3092260956764221, -0.0593051016330719, 0.07869352400302887, -0.35642245411872864, 0.1346224695444107, 0.0360899455845356, -0.28973424434661865, -0.289745956659317, 0.2194754034280777, 0.020589223131537437, 0.02806023880839348, -0.0703718289732933, 0.27142268419265747, 0.07872312515974045, -0.17772185802459717, -0.003798846388235688, -0.13286644220352173 ]
https://github.com/huggingface/datasets/issues/3755
Cannot preview dataset
Thanks for reporting. The dataset viewer depends on some backend treatments, and for now, they might take some hours to get processed. We're working on improving it.
## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am I the one who added this dataset ? No
27
Cannot preview dataset
[ -0.7250696420669556, -0.04969589412212372, -0.21061110496520996, 0.2612984776496887, 0.11802797764539719, 0.15637364983558655, 0.24850796163082123, 0.39299100637435913, -0.06654128432273865, 0.2779723107814789, -0.3073297441005707, 0.14163590967655182, -0.07516184449195862, 0.15672920644283295, -0.17069143056869507, 0.07108646631240845, -0.012681677006185055, 0.21326619386672974, -0.35857611894607544, -0.10015708953142166, -0.1468224674463272, -0.08932074904441833, -0.210489422082901, -0.0823621153831482, -0.1514596939086914, -0.21165870130062103, -0.034434400498867035, 0.037955716252326965, -0.384954571723938, -0.23454730212688446, -0.10290521383285522, 0.16394320130348206, 0.11714448034763336, 0.3621191382408142, -0.00010423462663311511, 0.10951431840658188, 0.3554171025753021, 0.06784743070602417, -0.2884344160556793, 0.07149570435285568, -0.27369534969329834, -0.16925279796123505, 0.16481022536754608, -0.24819275736808777, -0.2552521526813507, -0.295640766620636, 0.0859362781047821, -0.2182421088218689, 0.31094178557395935, 0.13710060715675354, 0.38550254702568054, 0.45991015434265137, -0.04928414151072502, -0.3776875436306, 0.16667544841766357, 0.05207172408699989, -0.37675783038139343, -0.011726322583854198, 0.195892333984375, 0.07620611041784286, 0.012927836738526821, 0.14174039661884308, 0.04447617754340172, 0.012244530953466892, -0.19444876909255981, 0.02286173403263092, 0.22198419272899628, -0.1620311588048935, 0.2802358865737915, 0.07170107215642929, 0.7845381498336792, -0.055810581892728806, -0.3670506179332733, 0.15284372866153717, 0.10112874209880829, -0.011804617010056973, -0.05100885406136513, 0.1058306097984314, -0.07382776588201523, 0.24829500913619995, -0.4000464975833893, -0.16676662862300873, -0.04172362759709358, 0.26510196924209595, 0.025439443066716194, 0.2426922768354416, -0.1552511602640152, 0.09747297316789627, -0.0005283704958856106, 0.09491944313049316, 0.2889225482940674, -0.0978117361664772, -0.1703440397977829, -0.002779341535642743, 0.15824967622756958, -0.02387337014079094, 0.08380235731601715, -0.22986799478530884, -0.164221853017807, 0.2639336585998535, 0.026434708386659622, 0.16341648995876312, 0.18077565729618073, -0.09695956110954285, 0.07949882745742798, -0.017575867474079132, 0.11616506427526474, 0.44572314620018005, 0.2111663669347763, 0.026590563356876373, 0.19363926351070404, -0.06688040494918823, -0.21661899983882904, 0.07180528342723846, -0.22603681683540344, -0.09409383684396744, 0.27584007382392883, -0.3721073567867279, -0.2764791250228882, 0.10132066160440445, 0.010808826424181461, -0.005449903197586536, -0.15244606137275696, 0.43904340267181396, -0.19354580342769623, -0.2680971920490265, 0.03745098039507866, 0.2283587008714676, -0.08018660545349121, -0.5101374387741089, -0.3709651529788971, -0.1359204351902008, -0.3800032138824463, 0.120653435587883, 0.2559891939163208, 0.2663261890411377, 0.08249591290950775, -0.0501331090927124, -0.0964101105928421, -0.152509406208992, 0.06377643346786499, -0.049907099455595016, 0.006023476831614971, 0.1977808028459549, 0.04501393437385559, 0.3418346643447876, 0.29367971420288086, 0.10392459481954575, 0.04844897985458374, 0.1917991191148758, -0.036719609051942825, -0.16271154582500458, -0.17206817865371704, 0.24027223885059357, -0.2491873949766159, 0.14758597314357758, -0.09339580684900284, 0.17650805413722992, -0.10213056206703186, -0.2513667643070221, -0.11723203957080841, 0.20216354727745056, -0.015203050337731838, -0.10957933962345123, 0.1981084793806076, 0.29124510288238525, -0.43183448910713196, -0.0358523391187191, -0.3541334271430969, -0.45405036211013794, 0.3508910536766052, 0.09607287496328354, -0.1623055636882782, -0.08274932950735092, -0.2579321265220642, 0.07351164519786835, 0.5347204208374023, -0.172186478972435, -0.7179849147796631, 0.25103849172592163, -0.21434001624584198, -0.23081843554973602, 0.05243254825472832, 0.06160517409443855, 0.2347967028617859, -0.19908374547958374, -0.16733640432357788, -0.12876299023628235, 0.1402677297592163, -0.12164974212646484, -0.23267845809459686, -0.22263458371162415, 0.2482323944568634, 0.22020332515239716, 0.21559277176856995, 0.3197270929813385, 0.12566128373146057, 0.01166621781885624, 0.2023298144340515, 0.1057615652680397, 0.03753145784139633, 0.21695253252983093, 0.08464394509792328, -0.053071439266204834, -0.1458507925271988, -0.08333495259284973, -0.1286497265100479, -0.1954500675201416, 0.04658069461584091, -0.009207659400999546, 0.11700830608606339, -0.10150940716266632, -0.42858919501304626, 0.15835173428058624, -0.038074884563684464, -0.21646718680858612, 0.3101072907447815, 0.42947956919670105, -0.10759080946445465, 0.04207048565149307, 0.07236798107624054, -0.19791647791862488, -0.19305695593357086, -0.22059182822704315, -0.0958474725484848, 0.3454838991165161, -0.04675309732556343, -0.26233330368995667, 0.29507312178611755, 0.018297599628567696, 0.19074907898902893, -0.046910546720027924, -0.02837149240076542, 0.16093043982982635, -0.13028055429458618, 0.07789461314678192, 0.3520672619342804, 0.0703030526638031, -0.11637591570615768, -0.6198034882545471, 0.14258988201618195, -0.09928211569786072, -0.023156873881816864, 0.07562179863452911, -0.13329170644283295, 0.04026143252849579, 0.11910542845726013, -0.1276702582836151, -0.14328807592391968, 0.08586900681257248, 0.23926082253456116, -0.044669266790151596, -0.1533975899219513, -0.4868415296077728, 0.16769276559352875, 0.03388531133532524, 0.2589658200740814, 0.001699040993116796, -0.3024459779262543, 0.15684539079666138, 0.26636338233947754, -0.055393513292074203, 0.14986595511436462, -0.11489640176296234, -0.16518326103687286, -0.09544970840215683, 0.12483712285757065, -0.11649133265018463, 0.13447341322898865, 0.24103476107120514, 0.09852518886327744, 0.02822311781346798, 0.00046309572644531727, -0.1761934757232666, 0.010899318382143974, -0.008183813653886318, 0.13326354324817657, 0.09917330741882324, 0.15789251029491425, -0.13264958560466766, -0.14529751241207123, 0.09035392105579376, 0.19978226721286774, 0.17467528581619263, -0.1594516783952713, -0.04326378554105759, -0.3937211036682129, -0.27767816185951233, 0.15838384628295898, -0.07971340417861938, 0.05690719932317734, -0.2549726963043213, 0.0762229636311531, 0.2386029213666916, 0.07753554731607437, 0.24813133478164673, -0.2573365867137909, 0.18014436960220337, 0.08281803131103516, 0.2639603912830353, -0.12775638699531555, -0.03199106082320213, -0.03603716194629669, 0.26740923523902893, 0.13657644391059875, 0.044510822743177414, 0.40668413043022156, 0.03324341028928757, 0.13195981085300446, -0.5190775394439697, 0.05796428769826889, 0.08456438779830933, 0.12335830181837082, 0.280053973197937, -0.06082838028669357, 0.26563480496406555, 0.1160157099366188, -0.13926146924495697, 0.27074548602104187, -0.11749958992004395, -0.14691045880317688, -0.08838454633951187, -0.11461826413869858, -0.3197478950023651, 0.07708597183227539, -0.363726943731308, -0.10861601680517197, -0.32009950280189514, -0.06677507609128952, -0.18836244940757751, -0.04139275476336479, -0.17137180268764496, 0.19190073013305664, -0.08199026435613632, -0.05355673283338547, -0.06394845992326736, -0.2789682447910309, -0.10260339826345444, 0.3299039304256439, -0.3140057623386383, -0.6512125134468079, 0.020906219258904457, 0.01278906874358654, 0.23305250704288483, 0.25396329164505005, -0.4416793882846832, 0.12901049852371216, -0.1741371601819992, -0.0815935805439949, 0.06662493944168091, -0.2793673574924469, 0.22517536580562592, -0.06138275936245918, -0.2322831004858017, -0.19123931229114532, -0.12548047304153442, -0.13137702643871307, -0.3485497236251831, 0.3792196810245514, -0.31800898909568787, 0.2994355857372284, -0.09910926222801208, 0.7235721349716187, 0.3797827363014221, -0.1179758608341217, 0.1171196848154068, -0.24105097353458405, 0.45864337682724, -0.14482198655605316, -0.3565785586833954, 0.005936841014772654, 0.2359108030796051, 0.095248743891716, 0.26912224292755127, -0.13626711070537567, -0.5446045994758606, -0.118498295545578, 0.1600794792175293, -0.5094401836395264, -0.1689295768737793, -0.026769088581204414, 0.07175999134778976, 0.21306204795837402, 0.11676599085330963, 0.3358043432235718, -0.03140203282237053, -0.19655409455299377, -0.1421751081943512, 0.11373628675937653, 0.12361033260822296, 0.006579488981515169, -0.09824215620756149, 0.03463646396994591, -0.32457876205444336, 0.17772431671619415, -0.18797361850738525, 0.6482793092727661, -0.3642159104347229, -0.07238192111253738, 0.25180134177207947, 0.04026784002780914, 0.6091024279594421, -0.3139839172363281, 0.1545984297990799, 0.23730435967445374, -0.28181660175323486, -0.3167840242385864, 0.02263115718960762, -0.2875710427761078, 0.45486724376678467, 0.08312283456325531, 0.3566640019416809, 0.1025509163737297, -0.09221654385328293, 0.4059741199016571, -0.15747061371803284, -0.01758391410112381, -0.03195689991116524, 0.04008494317531586, -0.05161963775753975, -0.14591404795646667, -0.16025277972221375, -0.13448259234428406, 0.031722355633974075, -0.1856127679347992, -0.21535222232341766, -0.2593986690044403, -0.1308182328939438, -0.05847634747624397, 0.1758454442024231, 0.11977632343769073, 0.019982468336820602, 0.39155885577201843, 0.45818036794662476, 0.09144341200590134, 0.31950148940086365, 0.527459979057312, 0.2237948477268219, -0.24566586315631866, 0.47623497247695923, -0.16335289180278778, 0.07773734629154205, 0.3522627353668213, -0.12522456049919128, 0.031554751098155975, -0.10442658513784409, 0.15699027478694916, -0.4074286222457886, 0.2126232385635376, 0.31854188442230225, -0.1515272706747055, -0.5402752161026001, -0.26920777559280396, 0.38398507237434387, -0.07035109400749207, -0.1424158811569214, 0.30930668115615845, -0.14323461055755615, 0.12469811737537384, -0.08098571747541428, 0.06375586986541748, 0.9457745552062988, -0.13092762231826782, -0.04891027882695198, 0.09041652828454971, 0.16008177399635315, 0.029642505571246147, -0.1030869260430336, 0.06663094460964203, -0.27857884764671326, -0.5063999891281128, 0.014697904698550701, -0.061870329082012177, 0.1721569448709488, 0.1858963817358017, -0.10978987067937851, -0.01227165199816227, 0.025395289063453674, 0.030512291938066483, 0.04820048063993454, -0.15255522727966309, 0.09537439793348312, 0.13180340826511383, -0.15735971927642822, 0.31285080313682556, -0.0031988422852009535, 0.1058427169919014, -0.00924904178828001, 0.09241480380296707, -0.25396811962127686, -0.05297601595520973, -0.5133771896362305, 0.13383717834949493, 0.028281303122639656, 0.15712882578372955, -0.028908811509609222, -0.2797714173793793, 0.05657750740647316, 0.2022595852613449, -0.205610454082489, 0.4179164171218872, -0.21239399909973145, 0.07848485559225082, -0.21252477169036865, -0.3561154305934906, -0.36339807510375977, 0.20871596038341522, 0.10984807461500168, -0.17079247534275055, -0.34607842564582825, 0.21303169429302216, 0.058523815125226974, -0.02643447369337082, -0.11325445771217346, -0.024764275178313255, 0.13826654851436615, -0.3763214647769928, -0.04999580234289169, -0.14425525069236755, -0.022468145936727524, -0.12044867873191833, 0.2574957609176636, 0.02293701469898224, 0.14616316556930542, 0.03524789586663246, 0.4907335937023163, -0.2748071849346161, -0.07349950820207596, 0.6358327269554138, -0.07298204302787781, -0.04141181707382202, 0.4519020617008209, 0.1473812460899353, -0.1913379430770874, -0.47537827491760254, 0.14955489337444305, 0.3245658874511719, -0.257612943649292, 0.11107015609741211, -0.22474907338619232, 0.15222850441932678, 0.27111977338790894, 0.3165736794471741, 0.18130432069301605, -0.2724352180957794, -0.2045871615409851, -0.4016404449939728, -0.1593979299068451, 0.11178840696811676, -0.09513082355260849, 0.3111107647418976, -0.12223028391599655, -0.09100954979658127, -0.029837563633918762, 0.15941478312015533, -0.44464415311813354, -0.12490317225456238, -0.38735368847846985, 0.06576262414455414, 0.2699790596961975, 0.07972046732902527, 0.1641610562801361, -0.08943402022123337, 0.24602171778678894, 0.011337337084114552, -0.3360711634159088, -0.3680856227874756, 0.020217755809426308, 0.07957832515239716, 0.12014930695295334, -0.02776278369128704, -0.08269478380680084, -0.18673092126846313, -0.2145116627216339, -0.06673872470855713, 0.05699582025408745, 0.11042752116918564, 0.21741469204425812, -0.07382296025753021, 0.034816939383745193, -0.0917217880487442, -0.16647063195705414, 0.03132370114326477, -0.02517015114426613, 0.3792862892150879, -0.05597921088337898, 0.028015045449137688, 0.27710607647895813, -0.06081107258796692, -0.018744520843029022, -0.13262517750263214, 0.13894997537136078, 0.18556778132915497, 0.17685343325138092, -0.26559415459632874, 0.38108915090560913, 0.25538161396980286, 0.329868346452713, 0.04886439070105553, -0.21990104019641876, -0.028588540852069855, 0.24336647987365723, 0.2820744514465332, -0.20776455104351044, -0.006746203172951937, 0.15714216232299805, 0.1618119776248932, 0.1093641072511673, 0.037048082798719406, -0.03343118354678154, -0.02285464107990265, 0.23677484691143036, 0.013852844014763832, 0.2719629406929016, -0.11522507667541504, 0.24873089790344238, 0.4561653435230255, -0.18474827706813812, 0.03286959230899811, 0.10767917335033417, 0.4514435827732086, -0.035922251641750336, 0.6565555334091187, 0.19960862398147583, 0.27104154229164124, 0.044136933982372284, 0.19986368715763092, -0.051259640604257584, -0.32106101512908936, 0.013251915574073792, 0.052766814827919006, 0.054050225764513016, 0.2365347146987915, -0.1486344337463379, 0.08105362951755524, -0.010600595735013485, 0.14797049760818481, -0.17833274602890015, 0.1293647438287735, -0.07530033588409424, 0.04045599326491356, -0.30728185176849365, -0.1728123277425766, -0.14802315831184387, 0.019762661308050156, -0.10235311836004257, -0.06723060458898544, 0.11309714615345001, -0.01027770061045885, -0.12522855401039124, -0.2787030339241028, 0.33837246894836426, 0.10601334273815155, -0.005027232691645622, -0.15597164630889893, 0.16699333488941193, -0.003623674623668194, 0.2459067553281784, 0.33265337347984314, 0.3140653073787689, 0.2254200130701065, 0.009137935005128384, 0.11444637179374695, -0.0494992733001709, 0.09547339379787445, -0.4023537337779999, -0.0699693113565445, 0.30932509899139404, 0.4178790748119354, -0.0657435730099678, 0.17437846958637238, 0.2737710475921631, -0.26681169867515564, 0.32637909054756165, 0.09691143035888672, 0.13838155567646027, -0.027348671108484268, 0.16282373666763306, -0.3037487268447876, -0.22830094397068024, -0.039866846054792404, -0.36884352564811707, -0.27558618783950806, -0.13061726093292236, 0.30618512630462646, -0.169088676571846, 0.19082003831863403, -0.049957308918237686, 0.13709108531475067, -0.05524260550737381, 0.3929716944694519, 0.3733975291252136, 0.32447394728660583, 0.07751418650150299, -0.3421662151813507, -0.2818549573421478, 0.25750282406806946, -0.012917882762849331, -0.15607568621635437, 0.06926432996988297, 0.10308928787708282, 0.2329423874616623, 0.2805490791797638, 0.4379369914531708, -0.013750552199780941, 0.09582766145467758, 0.4363845884799957, -0.2010648548603058, -0.1582397073507309, -0.028035974130034447, -0.007528122514486313, -0.10095946490764618, -0.21213486790657043, 0.1976417601108551, -0.007118695415556431, 0.20969119668006897, -0.15965183079242706, -0.016064755618572235, -0.13468824326992035, -0.04747994244098663, 0.5022605657577515, -0.042146533727645874, 0.6165490746498108, -0.17366057634353638, 0.004639667924493551, -0.3709123134613037, -0.2066182643175125, 0.2223721295595169, 0.10367214679718018, 0.2732293903827667, 0.24634991586208344, -0.29730668663978577, 0.11509989202022552, -0.007068118080496788, -0.04612530395388603, -0.03656814992427826, 0.3801877796649933, -0.11047560721635818, 0.03484861180186272, -0.14504948258399963, -0.2555054724216461, 0.2621408700942993, 0.12066233158111572, -0.0025994295720010996, -0.0424148365855217, -0.07848845422267914, -0.1853150725364685, 0.31677842140197754, -0.20099832117557526, -0.24675503373146057, 0.027707654982805252, -0.0018424427835270762, -0.10848461836576462, -0.05618556588888168, -0.33319342136383057, 0.02267722599208355, 0.3364046514034271, -0.21980628371238708, 0.10275926440954208, 0.26838749647140503, -0.05584898218512535, -0.09803903847932816, -0.08965393900871277, 0.9441585540771484, 0.03507864475250244, -0.06640439480543137, -0.011762131936848164, -0.1781020313501358 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Cool ! `filter` will be very useful. There can be a filter that you can apply on a streaming dataset: ```python load_dataset(..., streaming=True).filter(lambda x: x["lang"] == "sw") ``` Otherwise if you want to apply a filter on the source files that are going to be used for streaming, the logic has to be impIemented directly in the dataset script, or if there's no dataset script this can be done with pattern matching ```python load_dataset(..., lang="sw") # if the dataset script supports this parameter load_dataset(..., data_files="data/lang=sw/*") # if there's no dataset script, but only data files ``` -------------- Here are also some additional ideas of API to convert from iterable to map-style dataset: ```python on_disk_dataset = streaming_dataset.to_disk() on_disk_dataset = streaming_dataset.to_disk(path="path/to/my/dataset/dir") in_memory_dataset = streaming_dataset.take(100).to_memory() # to experiment without having to write files ``` -------------- Finally regarding `push_to_hub`, we can replace `batch_size` by `shard_size` (same API as for on-disk datasets). The default is 500MB per file Let me know what you think !
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
160
Expanding streaming capabilities
[ -0.3992480933666229, -0.23181837797164917, -0.2449195832014084, -0.2562445104122162, 0.07252813875675201, -0.11348876357078552, 0.0932808518409729, 0.09215379506349564, -0.08528273552656174, 0.026260778307914734, -0.03614121675491333, -0.024351604282855988, -0.1257842779159546, 0.38801559805870056, 0.10303380340337753, -0.14846433699131012, 0.15088389813899994, 0.06414447724819183, 0.05001082271337509, -0.03463377058506012, -0.12126540392637253, -0.23438778519630432, -0.08377588540315628, -0.5523244142532349, -0.019901037216186523, 0.019844941794872284, 0.15854588150978088, 0.04224511608481407, -0.17630241811275482, -0.07765933871269226, -0.36556485295295715, 0.07363095879554749, 0.012947160750627518, 0.1648261994123459, -0.00010142177779925987, -0.1914394199848175, 0.12580394744873047, -0.02208622358739376, -0.32409146428108215, 0.29310116171836853, -0.06842591613531113, -0.04931466653943062, 0.16091664135456085, 0.1346442550420761, 0.018512887880206108, -0.051733341068029404, 0.034492410719394684, -0.3780582845211029, 0.16347144544124603, -0.11030375212430954, 0.2924162745475769, -0.04941120743751526, -0.01966582052409649, -0.01612168923020363, -0.00705465255305171, 0.0949910581111908, -0.1710105687379837, -0.03365735337138176, 0.721564769744873, 0.10598130524158478, -0.08152726292610168, 0.3128741383552551, -0.14069414138793945, -0.0006478241411969066, 0.268221378326416, -0.10056514292955399, -0.024764886125922203, -0.19148315489292145, 0.21264459192752838, -0.07034336030483246, 0.13835814595222473, 0.14310809969902039, -0.45295828580856323, -0.18674707412719727, 0.16313228011131287, -0.3573843836784363, -0.2337009757757187, 0.09612482041120529, -0.20405128598213196, 0.03748815134167671, -0.30792251229286194, -0.49788394570350647, -0.2767876982688904, 0.3257082998752594, 0.13253647089004517, 0.4424710273742676, 0.17806707322597504, -0.2142471969127655, 0.04689141735434532, -0.025917019695043564, 0.20708471536636353, -0.021482327952980995, 0.07353916764259338, -0.018832353875041008, -0.12689197063446045, 0.1124022901058197, 0.14947225153446198, 0.06573835760354996, -0.290783166885376, 0.18723909556865692, 0.5025026202201843, 0.32448810338974, 0.016071919351816177, 0.02462690696120262, 0.08242835104465485, -0.07794581353664398, -0.30161672830581665, -0.1410076767206192, -0.08047549426555634, 0.260062038898468, -0.00971608143299818, -0.12306813150644302, 0.10196567326784134, 0.08612612634897232, -0.42962750792503357, -0.1003839448094368, 0.05874866619706154, 0.030786311253905296, 0.09470652043819427, -0.04892336577177048, -0.06659481674432755, -0.1742640733718872, -0.002165526617318392, -0.2232450395822525, -0.11961644142866135, 0.3806237578392029, -0.2683112621307373, 0.34493574500083923, 0.0856156051158905, -0.30499786138534546, -0.20483629405498505, -0.12837915122509003, -0.07570774108171463, 0.23043638467788696, 0.26178327202796936, -0.2859506905078888, -0.1422073394060135, -0.0783623680472374, 0.49595946073532104, 0.20877864956855774, -0.12404436618089676, 0.007728129159659147, -0.03558703139424324, -0.18488267064094543, -0.3236221969127655, -0.15383338928222656, 0.10406435281038284, 0.36964625120162964, 0.05882798135280609, -0.24648109078407288, 0.25037041306495667, -0.5530647039413452, 0.05502582713961601, 0.2678602635860443, 0.1503201574087143, -0.15869735181331635, -0.040575217455625534, 0.4656246602535248, -0.3469957113265991, -0.5500773787498474, -0.05705530568957329, 0.23504282534122467, -0.08043425530195236, -0.022451402619481087, -0.030494796112179756, 0.14203259348869324, -0.31258219480514526, -0.18233658373355865, -0.08358127623796463, 0.3114621043205261, 0.11626590043306351, 0.043823979794979095, -0.1970285177230835, -0.44809913635253906, 0.05283571407198906, -0.11518345028162003, 0.30997103452682495, -0.2935945987701416, -0.2131917029619217, 0.12416002154350281, -0.45687803626060486, -0.07959242165088654, 0.3691256046295166, 0.08994971215724945, 0.5866976976394653, -0.14965960383415222, 0.2175057977437973, 0.3254242539405823, -0.1096094474196434, -0.16804026067256927, -0.2220182865858078, -0.2551843822002411, 0.05121670663356781, 0.007219790481030941, 0.2973549962043762, 0.24329526722431183, 0.03203950449824333, 0.08350808173418045, 0.06510265171527863, 0.10296856611967087, 0.2770450711250305, -0.255205363035202, 0.27350321412086487, 0.23510371148586273, -0.2253415286540985, -0.08077780902385712, 0.20161153376102448, -0.23686744272708893, 0.018333783373236656, 0.1808837205171585, 0.2974293828010559, -0.13577774167060852, 0.1623382419347763, 0.022854221984744072, 0.2225390374660492, 0.19877339899539948, 0.29739534854888916, 0.399371474981308, -0.12872016429901123, -0.2121618539094925, -0.1743009090423584, 0.007382213603705168, -0.1969643384218216, -0.10674724727869034, 0.12396027892827988, 0.25660160183906555, 0.10133049637079239, -0.2383321225643158, 0.188881978392601, 0.07967226207256317, 0.21621306240558624, 0.07455119490623474, 0.06699679046869278, -0.1157461404800415, -0.28053686022758484, 0.48866045475006104, 0.4168090224266052, 0.43761223554611206, 0.2807903587818146, -0.2607631981372833, 0.19388248026371002, 0.3076466917991638, -0.06688109040260315, -0.006193775683641434, 0.02732093445956707, -0.21605193614959717, -0.03664358705282211, 0.15074551105499268, 0.21898983418941498, -0.1632780283689499, -0.02812485210597515, 0.2734220325946808, 0.0348699726164341, -0.07236018776893616, -0.015898512676358223, -0.1697244495153427, -0.2946588695049286, -0.03600923717021942, -0.20431484282016754, 0.3592483401298523, -0.1825954020023346, 0.08928535133600235, -0.23860867321491241, 0.028381669893860817, 0.04941023886203766, -0.34040260314941406, 0.3420516848564148, 0.008577471598982811, 0.23513467609882355, 0.3456483483314514, 0.35288605093955994, 0.03605944290757179, 0.2011786252260208, -0.3497684597969055, 0.3910674452781677, 0.20127549767494202, -0.22102539241313934, 0.21365106105804443, 0.11301729083061218, -0.14985299110412598, -0.10083983093500137, -0.16886965930461884, 0.2274169772863388, -0.1362248957157135, 0.030551956966519356, -0.20268218219280243, -0.26320144534111023, -0.3368806540966034, 0.05263005942106247, -0.38274136185646057, -0.1471710503101349, -0.24126803874969482, 0.15186716616153717, 0.4956682622432709, 0.011617702431976795, -0.13115867972373962, -0.3066515326499939, 0.24952013790607452, -0.19043879210948944, -0.0682242140173912, 0.03287596255540848, 0.0051763891242444515, 0.06581556797027588, 0.32161712646484375, -0.013916018418967724, -0.2091221809387207, 0.19087862968444824, 0.2867841124534607, 0.06777323782444, -0.3520873188972473, -0.1571640521287918, 0.06489915400743484, -0.05629940703511238, -0.3379913866519928, -0.16562588512897491, 0.15927913784980774, 0.028659187257289886, -0.375011146068573, -0.036093633621931076, -0.1957201212644577, 0.30436453223228455, -0.24348916113376617, 0.06504527479410172, 0.16174636781215668, 0.009935910813510418, -0.20810739696025848, -0.30748188495635986, -0.5092033743858337, 0.19552257657051086, 0.09240417182445526, 0.016404787078499794, -0.1390989124774933, 0.1449800580739975, -0.28396904468536377, 0.13380049169063568, 0.2869809865951538, -0.1371217668056488, -0.12334658950567245, 0.0783967450261116, -0.24367867410182953, -0.11015701293945312, 0.0049710962921381, 0.08113574236631393, 0.17015840113162994, 0.3924250900745392, -0.2060646116733551, -0.07164113968610764, 0.38552868366241455, 0.0826086476445198, -0.09829401969909668, -0.12905600666999817, 0.37740305066108704, -0.015554549172520638, -0.32158830761909485, -0.019324321299791336, -0.20992909371852875, -0.3068893849849701, 0.3630450665950775, 0.12851238250732422, 0.01907952129840851, 0.12902949750423431, -0.24287733435630798, 0.623440682888031, -0.19666063785552979, 0.10186775028705597, 0.3616890609264374, 0.09930109232664108, 0.0645906999707222, -0.1689734309911728, -0.15798622369766235, 0.250540554523468, 0.06630868464708328, -0.2585912048816681, 0.23375031352043152, 0.07128895074129105, -0.2561939060688019, -0.3335379660129547, 0.03270348161458969, -0.23448790609836578, 0.017459187656641006, 0.2665969133377075, -0.23199041187763214, 0.3961210548877716, -0.0019828900694847107, -0.034136440604925156, -0.16402046382427216, -0.14184971153736115, -0.23295539617538452, -0.10723277181386948, 0.24669469892978668, -0.1208704262971878, 0.11086154729127884, -0.07105964422225952, -0.05121248587965965, 0.25538966059684753, 0.1701035499572754, 0.14740000665187836, -0.311871737241745, -0.26225826144218445, 0.012428048066794872, 0.055170364677906036, 0.08583846688270569, -0.41628989577293396, -0.37272465229034424, -0.11278505623340607, -0.09776077419519424, -0.03415481001138687, -0.09469188749790192, -0.04052946716547012, -0.1832105815410614, 0.20307721197605133, -0.06357251107692719, -0.05206024646759033, 0.23260551691055298, 0.21731333434581757, -0.0176928099244833, 0.217095747590065, 0.18897387385368347, -0.03728218004107475, 0.35738757252693176, -0.19484667479991913, 0.15320239961147308, -0.21945972740650177, 0.28244444727897644, -0.12386006861925125, -0.0431818924844265, 0.20952455699443817, -0.16144801676273346, 0.30649617314338684, -0.13756349682807922, -0.040880873799324036, 0.2877933382987976, -0.10484301298856735, -0.03763559088110924, 0.2131592482328415, 0.1534949243068695, 0.24566470086574554, 0.3709496557712555, -0.06412036716938019, 0.21687152981758118, 0.2635100781917572, 0.18239010870456696, 0.49959221482276917, 0.3864913284778595, 0.45427951216697693, 0.11817096918821335, 0.31458237767219543, -0.13219141960144043, -0.061792273074388504, 0.3814978003501892, -0.22348397970199585, -0.08590371161699295, -0.3340305984020233, 0.02446887642145157, -0.32174399495124817, 0.013064689002931118, 0.3751603662967682, 0.015951646491885185, 0.06370220333337784, -0.15512584149837494, 0.13083010911941528, 1.2000408172607422, 0.21614676713943481, -0.1574520766735077, -0.22673647105693817, -0.44618234038352966, 0.029225101694464684, -0.40372738242149353, 0.2356492280960083, 0.13843820989131927, -0.09524910151958466, -0.08252052962779999, 0.24050864577293396, -0.11590825766324997, 0.012634730897843838, -0.2062324732542038, 0.00005204386980039999, -0.04379792883992195, 0.4219304025173187, -0.09216112643480301, 0.034128282219171524, -0.3676610589027405, -0.1316043585538864, -0.3926580846309662, 0.2652783691883087, -0.055070266127586365, -0.2482442557811737, -0.1521604359149933, 0.020835131406784058, 0.029211539775133133, -0.03517947345972061, -0.40405088663101196, -0.02603013440966606, 0.025707652792334557, -0.2004396915435791, -0.5593099594116211, -0.2865771949291229, -0.08814453333616257, -0.29676514863967896, -0.4265797436237335, 0.037646688520908356, -0.15293046832084656, -0.14889733493328094, -0.10238690674304962, 0.058333270251750946, -0.10365287214517593, -0.13748840987682343, -0.10156258940696716, -0.2515740394592285, -0.38233184814453125, 0.2826102674007416, 0.19685064256191254, -0.330633282661438, -0.4043424427509308, 0.19121713936328888, 0.46224695444107056, -0.17679452896118164, 0.12762759625911713, 0.2221430391073227, -0.2066545933485031, -0.14832772314548492, 0.24812142550945282, 0.013212696649134159, -0.15851294994354248, 0.04856794327497482, 0.03165985271334648, 0.05075598135590553, -0.3978120982646942, 0.5066480040550232, 0.12365207076072693, -0.13933850824832916, 0.051242392510175705, -0.12543390691280365, -0.22014978528022766, -0.2874630093574524, -0.2986595034599304, -0.21722528338432312, 0.07417304068803787, -0.2164965271949768, 0.10669778287410736, -0.2857912480831146, 0.07579607516527176, -0.10125915706157684, -0.016739338636398315, 0.4429197609424591, -0.3661057651042938, 0.005974242929369211, -0.24137157201766968, 0.2464148849248886, -0.07920514792203903, 0.07177403569221497, -0.12550221383571625, -0.1917644739151001, 0.22047966718673706, 0.22259478271007538, -0.4874606728553772, -0.05812334269285202, 0.3546387851238251, 0.04946468397974968, -0.12126446515321732, -0.17302317917346954, 0.01594322733581066, 0.08697538822889328, 0.3073730170726776, -0.13505442440509796, -0.2613197863101959, -0.2610812783241272, 0.3552669584751129, 0.145787313580513, 0.2857814133167267, -0.09151480346918106, -0.3432041108608246, -0.06432393193244934, -0.18297810852527618, 0.025527404621243477, -0.030235949903726578, -0.1066555306315422, 0.12233515083789825, -0.30504941940307617, 0.26661384105682373, -0.2626427114009857, 0.15181945264339447, -0.030770184472203255, 0.1927410215139389, 0.46458184719085693, 0.05348343774676323, 0.01486988179385662, 0.5160068273544312, -0.27941134572029114, -0.269681453704834, 0.2937026917934418, 0.21633967757225037, 0.004630426876246929, 0.41351351141929626, 0.0505613349378109, 0.10849668830633163, -0.06532849371433258, 0.21334391832351685, 0.24709448218345642, 0.4051624536514282, -0.1321650743484497, -0.07083405554294586, 0.3587549328804016, 0.02593090571463108, -0.16537238657474518, 0.013681835494935513, 0.15381701290607452, 0.1689092516899109, 0.18619461357593536, 0.3469349443912506, -0.28271377086639404, 0.06479557603597641, -0.014183265157043934, -0.10997599363327026, 0.09472585469484329, 0.38410431146621704, 0.21124213933944702, 0.13947880268096924, -0.05291779339313507, -0.3910486102104187, 0.0219014473259449, -0.021390821784734726, -0.31097719073295593, -0.20423556864261627, 0.19973494112491608, 0.04990987107157707, 0.024609485641121864, 0.0851486548781395, -0.22425200045108795, -0.3302968740463257, 0.01432525273412466, 0.07210150361061096, 0.5643169283866882, 0.23613733053207397, 0.2886195182800293, 0.008497118018567562, -0.1216723620891571, 0.08964546769857407, 0.08815663307905197, 0.1857285499572754, 0.16253918409347534, -0.030469661578536034, -0.18623356521129608, -0.1572389304637909, 0.13852278888225555, 0.20367112755775452, 0.09228742122650146, -0.021416617557406425, -0.15399275720119476, -0.12129127234220505, 0.0044005680829286575, 0.19920051097869873, -0.07572511583566666, 0.42742568254470825, -0.061211343854665756, 0.06159326061606407, 0.5159865617752075, 0.05489770323038101, 0.4888455867767334, 0.14686471223831177, 0.09567707031965256, -0.20186085999011993, 0.1690949946641922, 0.17935146391391754, 0.14325176179409027, -0.1311860978603363, 0.08876626193523407, 0.15351276099681854, 0.400494784116745, -0.012318781577050686, 0.007968258112668991, 0.30976423621177673, -0.25743812322616577, 0.4027559757232666, -0.1261485069990158, -0.10862407833337784, 0.0194730032235384, 0.27540895342826843, 0.33875414729118347, -0.07174742966890335, -0.3879799246788025, -0.18880920112133026, -0.3688850700855255, 0.04755823686718941, 0.16194206476211548, -0.3435857892036438, -0.05709070339798927, -0.0041484651155769825, 0.13343319296836853, 0.1610940843820572, 0.48779240250587463, 0.034539513289928436, 0.06246267631649971, 0.014612370170652866, -0.3946686089038849, 0.018391352146863937, 0.2812940180301666, 0.1493871957063675, -0.03274301812052727, -0.25827518105506897, 0.14176855981349945, 0.2119586318731308, 0.12631434202194214, -0.016568025574088097, -0.4163261950016022, -0.1833675056695938, 0.30664539337158203, -0.10753782093524933, 0.25667068362236023, 0.35583364963531494, 0.4652538597583771, -0.03679275885224342, 0.07934083789587021, 0.3734481632709503, -0.1350070685148239, 0.28731703758239746, 0.1621338576078415, 0.04170377552509308, -0.18873345851898193, -0.10538571327924728, 0.2672770321369171, -0.2299305498600006, 0.30859479308128357, -0.29779019951820374, -0.17729519307613373, -0.31794095039367676, 0.04184047877788544, -0.09916986525058746, 0.07864551991224289, 0.015756292268633842, 0.5439207553863525, 0.11059238016605377, -0.1483418345451355, 0.1293506771326065, 0.5160801410675049, 0.0290303286164999, -0.1090255007147789, 0.06561660021543503, -0.13202881813049316, -0.12397696077823639, 0.11987900733947754, 0.17818234860897064, 0.1985487937927246, -0.11108250170946121, -0.23240245878696442, -0.1669108122587204, -0.2449461966753006, 0.3028443157672882, 0.1181916743516922, -0.24093537032604218, -0.2534087598323822, 0.24871474504470825, 0.32489776611328125, 0.3596436083316803, -0.2763969600200653, -0.12421607971191406, 0.14474689960479736, -0.18995161354541779, 0.2965094745159149, 0.3733390271663666, -0.12035252153873444, -0.32077401876449585, -0.20703592896461487, -0.26398879289627075, 0.16899584233760834, 0.1992189586162567, 0.04220350831747055, -0.021810118108987808 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Regarding conversion, I'd also ask for some kind of equivalent to `save_to_disk` for an `IterableDataset`. Similarly to the streaming to hub idea, my use case would be to define a sequence of dataset transforms via `.map()`, using an `IterableDataset` as the input (so processing could start without doing whole download up-front), but streaming the resultant processed dataset just to disk.
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
60
Expanding streaming capabilities
[ -0.3992480933666229, -0.23181837797164917, -0.2449195832014084, -0.2562445104122162, 0.07252813875675201, -0.11348876357078552, 0.0932808518409729, 0.09215379506349564, -0.08528273552656174, 0.026260778307914734, -0.03614121675491333, -0.024351604282855988, -0.1257842779159546, 0.38801559805870056, 0.10303380340337753, -0.14846433699131012, 0.15088389813899994, 0.06414447724819183, 0.05001082271337509, -0.03463377058506012, -0.12126540392637253, -0.23438778519630432, -0.08377588540315628, -0.5523244142532349, -0.019901037216186523, 0.019844941794872284, 0.15854588150978088, 0.04224511608481407, -0.17630241811275482, -0.07765933871269226, -0.36556485295295715, 0.07363095879554749, 0.012947160750627518, 0.1648261994123459, -0.00010142177779925987, -0.1914394199848175, 0.12580394744873047, -0.02208622358739376, -0.32409146428108215, 0.29310116171836853, -0.06842591613531113, -0.04931466653943062, 0.16091664135456085, 0.1346442550420761, 0.018512887880206108, -0.051733341068029404, 0.034492410719394684, -0.3780582845211029, 0.16347144544124603, -0.11030375212430954, 0.2924162745475769, -0.04941120743751526, -0.01966582052409649, -0.01612168923020363, -0.00705465255305171, 0.0949910581111908, -0.1710105687379837, -0.03365735337138176, 0.721564769744873, 0.10598130524158478, -0.08152726292610168, 0.3128741383552551, -0.14069414138793945, -0.0006478241411969066, 0.268221378326416, -0.10056514292955399, -0.024764886125922203, -0.19148315489292145, 0.21264459192752838, -0.07034336030483246, 0.13835814595222473, 0.14310809969902039, -0.45295828580856323, -0.18674707412719727, 0.16313228011131287, -0.3573843836784363, -0.2337009757757187, 0.09612482041120529, -0.20405128598213196, 0.03748815134167671, -0.30792251229286194, -0.49788394570350647, -0.2767876982688904, 0.3257082998752594, 0.13253647089004517, 0.4424710273742676, 0.17806707322597504, -0.2142471969127655, 0.04689141735434532, -0.025917019695043564, 0.20708471536636353, -0.021482327952980995, 0.07353916764259338, -0.018832353875041008, -0.12689197063446045, 0.1124022901058197, 0.14947225153446198, 0.06573835760354996, -0.290783166885376, 0.18723909556865692, 0.5025026202201843, 0.32448810338974, 0.016071919351816177, 0.02462690696120262, 0.08242835104465485, -0.07794581353664398, -0.30161672830581665, -0.1410076767206192, -0.08047549426555634, 0.260062038898468, -0.00971608143299818, -0.12306813150644302, 0.10196567326784134, 0.08612612634897232, -0.42962750792503357, -0.1003839448094368, 0.05874866619706154, 0.030786311253905296, 0.09470652043819427, -0.04892336577177048, -0.06659481674432755, -0.1742640733718872, -0.002165526617318392, -0.2232450395822525, -0.11961644142866135, 0.3806237578392029, -0.2683112621307373, 0.34493574500083923, 0.0856156051158905, -0.30499786138534546, -0.20483629405498505, -0.12837915122509003, -0.07570774108171463, 0.23043638467788696, 0.26178327202796936, -0.2859506905078888, -0.1422073394060135, -0.0783623680472374, 0.49595946073532104, 0.20877864956855774, -0.12404436618089676, 0.007728129159659147, -0.03558703139424324, -0.18488267064094543, -0.3236221969127655, -0.15383338928222656, 0.10406435281038284, 0.36964625120162964, 0.05882798135280609, -0.24648109078407288, 0.25037041306495667, -0.5530647039413452, 0.05502582713961601, 0.2678602635860443, 0.1503201574087143, -0.15869735181331635, -0.040575217455625534, 0.4656246602535248, -0.3469957113265991, -0.5500773787498474, -0.05705530568957329, 0.23504282534122467, -0.08043425530195236, -0.022451402619481087, -0.030494796112179756, 0.14203259348869324, -0.31258219480514526, -0.18233658373355865, -0.08358127623796463, 0.3114621043205261, 0.11626590043306351, 0.043823979794979095, -0.1970285177230835, -0.44809913635253906, 0.05283571407198906, -0.11518345028162003, 0.30997103452682495, -0.2935945987701416, -0.2131917029619217, 0.12416002154350281, -0.45687803626060486, -0.07959242165088654, 0.3691256046295166, 0.08994971215724945, 0.5866976976394653, -0.14965960383415222, 0.2175057977437973, 0.3254242539405823, -0.1096094474196434, -0.16804026067256927, -0.2220182865858078, -0.2551843822002411, 0.05121670663356781, 0.007219790481030941, 0.2973549962043762, 0.24329526722431183, 0.03203950449824333, 0.08350808173418045, 0.06510265171527863, 0.10296856611967087, 0.2770450711250305, -0.255205363035202, 0.27350321412086487, 0.23510371148586273, -0.2253415286540985, -0.08077780902385712, 0.20161153376102448, -0.23686744272708893, 0.018333783373236656, 0.1808837205171585, 0.2974293828010559, -0.13577774167060852, 0.1623382419347763, 0.022854221984744072, 0.2225390374660492, 0.19877339899539948, 0.29739534854888916, 0.399371474981308, -0.12872016429901123, -0.2121618539094925, -0.1743009090423584, 0.007382213603705168, -0.1969643384218216, -0.10674724727869034, 0.12396027892827988, 0.25660160183906555, 0.10133049637079239, -0.2383321225643158, 0.188881978392601, 0.07967226207256317, 0.21621306240558624, 0.07455119490623474, 0.06699679046869278, -0.1157461404800415, -0.28053686022758484, 0.48866045475006104, 0.4168090224266052, 0.43761223554611206, 0.2807903587818146, -0.2607631981372833, 0.19388248026371002, 0.3076466917991638, -0.06688109040260315, -0.006193775683641434, 0.02732093445956707, -0.21605193614959717, -0.03664358705282211, 0.15074551105499268, 0.21898983418941498, -0.1632780283689499, -0.02812485210597515, 0.2734220325946808, 0.0348699726164341, -0.07236018776893616, -0.015898512676358223, -0.1697244495153427, -0.2946588695049286, -0.03600923717021942, -0.20431484282016754, 0.3592483401298523, -0.1825954020023346, 0.08928535133600235, -0.23860867321491241, 0.028381669893860817, 0.04941023886203766, -0.34040260314941406, 0.3420516848564148, 0.008577471598982811, 0.23513467609882355, 0.3456483483314514, 0.35288605093955994, 0.03605944290757179, 0.2011786252260208, -0.3497684597969055, 0.3910674452781677, 0.20127549767494202, -0.22102539241313934, 0.21365106105804443, 0.11301729083061218, -0.14985299110412598, -0.10083983093500137, -0.16886965930461884, 0.2274169772863388, -0.1362248957157135, 0.030551956966519356, -0.20268218219280243, -0.26320144534111023, -0.3368806540966034, 0.05263005942106247, -0.38274136185646057, -0.1471710503101349, -0.24126803874969482, 0.15186716616153717, 0.4956682622432709, 0.011617702431976795, -0.13115867972373962, -0.3066515326499939, 0.24952013790607452, -0.19043879210948944, -0.0682242140173912, 0.03287596255540848, 0.0051763891242444515, 0.06581556797027588, 0.32161712646484375, -0.013916018418967724, -0.2091221809387207, 0.19087862968444824, 0.2867841124534607, 0.06777323782444, -0.3520873188972473, -0.1571640521287918, 0.06489915400743484, -0.05629940703511238, -0.3379913866519928, -0.16562588512897491, 0.15927913784980774, 0.028659187257289886, -0.375011146068573, -0.036093633621931076, -0.1957201212644577, 0.30436453223228455, -0.24348916113376617, 0.06504527479410172, 0.16174636781215668, 0.009935910813510418, -0.20810739696025848, -0.30748188495635986, -0.5092033743858337, 0.19552257657051086, 0.09240417182445526, 0.016404787078499794, -0.1390989124774933, 0.1449800580739975, -0.28396904468536377, 0.13380049169063568, 0.2869809865951538, -0.1371217668056488, -0.12334658950567245, 0.0783967450261116, -0.24367867410182953, -0.11015701293945312, 0.0049710962921381, 0.08113574236631393, 0.17015840113162994, 0.3924250900745392, -0.2060646116733551, -0.07164113968610764, 0.38552868366241455, 0.0826086476445198, -0.09829401969909668, -0.12905600666999817, 0.37740305066108704, -0.015554549172520638, -0.32158830761909485, -0.019324321299791336, -0.20992909371852875, -0.3068893849849701, 0.3630450665950775, 0.12851238250732422, 0.01907952129840851, 0.12902949750423431, -0.24287733435630798, 0.623440682888031, -0.19666063785552979, 0.10186775028705597, 0.3616890609264374, 0.09930109232664108, 0.0645906999707222, -0.1689734309911728, -0.15798622369766235, 0.250540554523468, 0.06630868464708328, -0.2585912048816681, 0.23375031352043152, 0.07128895074129105, -0.2561939060688019, -0.3335379660129547, 0.03270348161458969, -0.23448790609836578, 0.017459187656641006, 0.2665969133377075, -0.23199041187763214, 0.3961210548877716, -0.0019828900694847107, -0.034136440604925156, -0.16402046382427216, -0.14184971153736115, -0.23295539617538452, -0.10723277181386948, 0.24669469892978668, -0.1208704262971878, 0.11086154729127884, -0.07105964422225952, -0.05121248587965965, 0.25538966059684753, 0.1701035499572754, 0.14740000665187836, -0.311871737241745, -0.26225826144218445, 0.012428048066794872, 0.055170364677906036, 0.08583846688270569, -0.41628989577293396, -0.37272465229034424, -0.11278505623340607, -0.09776077419519424, -0.03415481001138687, -0.09469188749790192, -0.04052946716547012, -0.1832105815410614, 0.20307721197605133, -0.06357251107692719, -0.05206024646759033, 0.23260551691055298, 0.21731333434581757, -0.0176928099244833, 0.217095747590065, 0.18897387385368347, -0.03728218004107475, 0.35738757252693176, -0.19484667479991913, 0.15320239961147308, -0.21945972740650177, 0.28244444727897644, -0.12386006861925125, -0.0431818924844265, 0.20952455699443817, -0.16144801676273346, 0.30649617314338684, -0.13756349682807922, -0.040880873799324036, 0.2877933382987976, -0.10484301298856735, -0.03763559088110924, 0.2131592482328415, 0.1534949243068695, 0.24566470086574554, 0.3709496557712555, -0.06412036716938019, 0.21687152981758118, 0.2635100781917572, 0.18239010870456696, 0.49959221482276917, 0.3864913284778595, 0.45427951216697693, 0.11817096918821335, 0.31458237767219543, -0.13219141960144043, -0.061792273074388504, 0.3814978003501892, -0.22348397970199585, -0.08590371161699295, -0.3340305984020233, 0.02446887642145157, -0.32174399495124817, 0.013064689002931118, 0.3751603662967682, 0.015951646491885185, 0.06370220333337784, -0.15512584149837494, 0.13083010911941528, 1.2000408172607422, 0.21614676713943481, -0.1574520766735077, -0.22673647105693817, -0.44618234038352966, 0.029225101694464684, -0.40372738242149353, 0.2356492280960083, 0.13843820989131927, -0.09524910151958466, -0.08252052962779999, 0.24050864577293396, -0.11590825766324997, 0.012634730897843838, -0.2062324732542038, 0.00005204386980039999, -0.04379792883992195, 0.4219304025173187, -0.09216112643480301, 0.034128282219171524, -0.3676610589027405, -0.1316043585538864, -0.3926580846309662, 0.2652783691883087, -0.055070266127586365, -0.2482442557811737, -0.1521604359149933, 0.020835131406784058, 0.029211539775133133, -0.03517947345972061, -0.40405088663101196, -0.02603013440966606, 0.025707652792334557, -0.2004396915435791, -0.5593099594116211, -0.2865771949291229, -0.08814453333616257, -0.29676514863967896, -0.4265797436237335, 0.037646688520908356, -0.15293046832084656, -0.14889733493328094, -0.10238690674304962, 0.058333270251750946, -0.10365287214517593, -0.13748840987682343, -0.10156258940696716, -0.2515740394592285, -0.38233184814453125, 0.2826102674007416, 0.19685064256191254, -0.330633282661438, -0.4043424427509308, 0.19121713936328888, 0.46224695444107056, -0.17679452896118164, 0.12762759625911713, 0.2221430391073227, -0.2066545933485031, -0.14832772314548492, 0.24812142550945282, 0.013212696649134159, -0.15851294994354248, 0.04856794327497482, 0.03165985271334648, 0.05075598135590553, -0.3978120982646942, 0.5066480040550232, 0.12365207076072693, -0.13933850824832916, 0.051242392510175705, -0.12543390691280365, -0.22014978528022766, -0.2874630093574524, -0.2986595034599304, -0.21722528338432312, 0.07417304068803787, -0.2164965271949768, 0.10669778287410736, -0.2857912480831146, 0.07579607516527176, -0.10125915706157684, -0.016739338636398315, 0.4429197609424591, -0.3661057651042938, 0.005974242929369211, -0.24137157201766968, 0.2464148849248886, -0.07920514792203903, 0.07177403569221497, -0.12550221383571625, -0.1917644739151001, 0.22047966718673706, 0.22259478271007538, -0.4874606728553772, -0.05812334269285202, 0.3546387851238251, 0.04946468397974968, -0.12126446515321732, -0.17302317917346954, 0.01594322733581066, 0.08697538822889328, 0.3073730170726776, -0.13505442440509796, -0.2613197863101959, -0.2610812783241272, 0.3552669584751129, 0.145787313580513, 0.2857814133167267, -0.09151480346918106, -0.3432041108608246, -0.06432393193244934, -0.18297810852527618, 0.025527404621243477, -0.030235949903726578, -0.1066555306315422, 0.12233515083789825, -0.30504941940307617, 0.26661384105682373, -0.2626427114009857, 0.15181945264339447, -0.030770184472203255, 0.1927410215139389, 0.46458184719085693, 0.05348343774676323, 0.01486988179385662, 0.5160068273544312, -0.27941134572029114, -0.269681453704834, 0.2937026917934418, 0.21633967757225037, 0.004630426876246929, 0.41351351141929626, 0.0505613349378109, 0.10849668830633163, -0.06532849371433258, 0.21334391832351685, 0.24709448218345642, 0.4051624536514282, -0.1321650743484497, -0.07083405554294586, 0.3587549328804016, 0.02593090571463108, -0.16537238657474518, 0.013681835494935513, 0.15381701290607452, 0.1689092516899109, 0.18619461357593536, 0.3469349443912506, -0.28271377086639404, 0.06479557603597641, -0.014183265157043934, -0.10997599363327026, 0.09472585469484329, 0.38410431146621704, 0.21124213933944702, 0.13947880268096924, -0.05291779339313507, -0.3910486102104187, 0.0219014473259449, -0.021390821784734726, -0.31097719073295593, -0.20423556864261627, 0.19973494112491608, 0.04990987107157707, 0.024609485641121864, 0.0851486548781395, -0.22425200045108795, -0.3302968740463257, 0.01432525273412466, 0.07210150361061096, 0.5643169283866882, 0.23613733053207397, 0.2886195182800293, 0.008497118018567562, -0.1216723620891571, 0.08964546769857407, 0.08815663307905197, 0.1857285499572754, 0.16253918409347534, -0.030469661578536034, -0.18623356521129608, -0.1572389304637909, 0.13852278888225555, 0.20367112755775452, 0.09228742122650146, -0.021416617557406425, -0.15399275720119476, -0.12129127234220505, 0.0044005680829286575, 0.19920051097869873, -0.07572511583566666, 0.42742568254470825, -0.061211343854665756, 0.06159326061606407, 0.5159865617752075, 0.05489770323038101, 0.4888455867767334, 0.14686471223831177, 0.09567707031965256, -0.20186085999011993, 0.1690949946641922, 0.17935146391391754, 0.14325176179409027, -0.1311860978603363, 0.08876626193523407, 0.15351276099681854, 0.400494784116745, -0.012318781577050686, 0.007968258112668991, 0.30976423621177673, -0.25743812322616577, 0.4027559757232666, -0.1261485069990158, -0.10862407833337784, 0.0194730032235384, 0.27540895342826843, 0.33875414729118347, -0.07174742966890335, -0.3879799246788025, -0.18880920112133026, -0.3688850700855255, 0.04755823686718941, 0.16194206476211548, -0.3435857892036438, -0.05709070339798927, -0.0041484651155769825, 0.13343319296836853, 0.1610940843820572, 0.48779240250587463, 0.034539513289928436, 0.06246267631649971, 0.014612370170652866, -0.3946686089038849, 0.018391352146863937, 0.2812940180301666, 0.1493871957063675, -0.03274301812052727, -0.25827518105506897, 0.14176855981349945, 0.2119586318731308, 0.12631434202194214, -0.016568025574088097, -0.4163261950016022, -0.1833675056695938, 0.30664539337158203, -0.10753782093524933, 0.25667068362236023, 0.35583364963531494, 0.4652538597583771, -0.03679275885224342, 0.07934083789587021, 0.3734481632709503, -0.1350070685148239, 0.28731703758239746, 0.1621338576078415, 0.04170377552509308, -0.18873345851898193, -0.10538571327924728, 0.2672770321369171, -0.2299305498600006, 0.30859479308128357, -0.29779019951820374, -0.17729519307613373, -0.31794095039367676, 0.04184047877788544, -0.09916986525058746, 0.07864551991224289, 0.015756292268633842, 0.5439207553863525, 0.11059238016605377, -0.1483418345451355, 0.1293506771326065, 0.5160801410675049, 0.0290303286164999, -0.1090255007147789, 0.06561660021543503, -0.13202881813049316, -0.12397696077823639, 0.11987900733947754, 0.17818234860897064, 0.1985487937927246, -0.11108250170946121, -0.23240245878696442, -0.1669108122587204, -0.2449461966753006, 0.3028443157672882, 0.1181916743516922, -0.24093537032604218, -0.2534087598323822, 0.24871474504470825, 0.32489776611328125, 0.3596436083316803, -0.2763969600200653, -0.12421607971191406, 0.14474689960479736, -0.18995161354541779, 0.2965094745159149, 0.3733390271663666, -0.12035252153873444, -0.32077401876449585, -0.20703592896461487, -0.26398879289627075, 0.16899584233760834, 0.1992189586162567, 0.04220350831747055, -0.021810118108987808 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
That makes sense @athewsey , thanks for the suggestion :) Maybe instead of the `to_disk` we could simply have `save_to_disk` instead: ```python streaming_dataset.save_to_disk("path/to/my/dataset/dir") on_disk_dataset = load_from_disk("path/to/my/dataset/dir") in_memory_dataset = Dataset.from_list(list(streaming_dataset.take(100))) # to experiment without having to write files ```
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
38
Expanding streaming capabilities
[ -0.3992480933666229, -0.23181837797164917, -0.2449195832014084, -0.2562445104122162, 0.07252813875675201, -0.11348876357078552, 0.0932808518409729, 0.09215379506349564, -0.08528273552656174, 0.026260778307914734, -0.03614121675491333, -0.024351604282855988, -0.1257842779159546, 0.38801559805870056, 0.10303380340337753, -0.14846433699131012, 0.15088389813899994, 0.06414447724819183, 0.05001082271337509, -0.03463377058506012, -0.12126540392637253, -0.23438778519630432, -0.08377588540315628, -0.5523244142532349, -0.019901037216186523, 0.019844941794872284, 0.15854588150978088, 0.04224511608481407, -0.17630241811275482, -0.07765933871269226, -0.36556485295295715, 0.07363095879554749, 0.012947160750627518, 0.1648261994123459, -0.00010142177779925987, -0.1914394199848175, 0.12580394744873047, -0.02208622358739376, -0.32409146428108215, 0.29310116171836853, -0.06842591613531113, -0.04931466653943062, 0.16091664135456085, 0.1346442550420761, 0.018512887880206108, -0.051733341068029404, 0.034492410719394684, -0.3780582845211029, 0.16347144544124603, -0.11030375212430954, 0.2924162745475769, -0.04941120743751526, -0.01966582052409649, -0.01612168923020363, -0.00705465255305171, 0.0949910581111908, -0.1710105687379837, -0.03365735337138176, 0.721564769744873, 0.10598130524158478, -0.08152726292610168, 0.3128741383552551, -0.14069414138793945, -0.0006478241411969066, 0.268221378326416, -0.10056514292955399, -0.024764886125922203, -0.19148315489292145, 0.21264459192752838, -0.07034336030483246, 0.13835814595222473, 0.14310809969902039, -0.45295828580856323, -0.18674707412719727, 0.16313228011131287, -0.3573843836784363, -0.2337009757757187, 0.09612482041120529, -0.20405128598213196, 0.03748815134167671, -0.30792251229286194, -0.49788394570350647, -0.2767876982688904, 0.3257082998752594, 0.13253647089004517, 0.4424710273742676, 0.17806707322597504, -0.2142471969127655, 0.04689141735434532, -0.025917019695043564, 0.20708471536636353, -0.021482327952980995, 0.07353916764259338, -0.018832353875041008, -0.12689197063446045, 0.1124022901058197, 0.14947225153446198, 0.06573835760354996, -0.290783166885376, 0.18723909556865692, 0.5025026202201843, 0.32448810338974, 0.016071919351816177, 0.02462690696120262, 0.08242835104465485, -0.07794581353664398, -0.30161672830581665, -0.1410076767206192, -0.08047549426555634, 0.260062038898468, -0.00971608143299818, -0.12306813150644302, 0.10196567326784134, 0.08612612634897232, -0.42962750792503357, -0.1003839448094368, 0.05874866619706154, 0.030786311253905296, 0.09470652043819427, -0.04892336577177048, -0.06659481674432755, -0.1742640733718872, -0.002165526617318392, -0.2232450395822525, -0.11961644142866135, 0.3806237578392029, -0.2683112621307373, 0.34493574500083923, 0.0856156051158905, -0.30499786138534546, -0.20483629405498505, -0.12837915122509003, -0.07570774108171463, 0.23043638467788696, 0.26178327202796936, -0.2859506905078888, -0.1422073394060135, -0.0783623680472374, 0.49595946073532104, 0.20877864956855774, -0.12404436618089676, 0.007728129159659147, -0.03558703139424324, -0.18488267064094543, -0.3236221969127655, -0.15383338928222656, 0.10406435281038284, 0.36964625120162964, 0.05882798135280609, -0.24648109078407288, 0.25037041306495667, -0.5530647039413452, 0.05502582713961601, 0.2678602635860443, 0.1503201574087143, -0.15869735181331635, -0.040575217455625534, 0.4656246602535248, -0.3469957113265991, -0.5500773787498474, -0.05705530568957329, 0.23504282534122467, -0.08043425530195236, -0.022451402619481087, -0.030494796112179756, 0.14203259348869324, -0.31258219480514526, -0.18233658373355865, -0.08358127623796463, 0.3114621043205261, 0.11626590043306351, 0.043823979794979095, -0.1970285177230835, -0.44809913635253906, 0.05283571407198906, -0.11518345028162003, 0.30997103452682495, -0.2935945987701416, -0.2131917029619217, 0.12416002154350281, -0.45687803626060486, -0.07959242165088654, 0.3691256046295166, 0.08994971215724945, 0.5866976976394653, -0.14965960383415222, 0.2175057977437973, 0.3254242539405823, -0.1096094474196434, -0.16804026067256927, -0.2220182865858078, -0.2551843822002411, 0.05121670663356781, 0.007219790481030941, 0.2973549962043762, 0.24329526722431183, 0.03203950449824333, 0.08350808173418045, 0.06510265171527863, 0.10296856611967087, 0.2770450711250305, -0.255205363035202, 0.27350321412086487, 0.23510371148586273, -0.2253415286540985, -0.08077780902385712, 0.20161153376102448, -0.23686744272708893, 0.018333783373236656, 0.1808837205171585, 0.2974293828010559, -0.13577774167060852, 0.1623382419347763, 0.022854221984744072, 0.2225390374660492, 0.19877339899539948, 0.29739534854888916, 0.399371474981308, -0.12872016429901123, -0.2121618539094925, -0.1743009090423584, 0.007382213603705168, -0.1969643384218216, -0.10674724727869034, 0.12396027892827988, 0.25660160183906555, 0.10133049637079239, -0.2383321225643158, 0.188881978392601, 0.07967226207256317, 0.21621306240558624, 0.07455119490623474, 0.06699679046869278, -0.1157461404800415, -0.28053686022758484, 0.48866045475006104, 0.4168090224266052, 0.43761223554611206, 0.2807903587818146, -0.2607631981372833, 0.19388248026371002, 0.3076466917991638, -0.06688109040260315, -0.006193775683641434, 0.02732093445956707, -0.21605193614959717, -0.03664358705282211, 0.15074551105499268, 0.21898983418941498, -0.1632780283689499, -0.02812485210597515, 0.2734220325946808, 0.0348699726164341, -0.07236018776893616, -0.015898512676358223, -0.1697244495153427, -0.2946588695049286, -0.03600923717021942, -0.20431484282016754, 0.3592483401298523, -0.1825954020023346, 0.08928535133600235, -0.23860867321491241, 0.028381669893860817, 0.04941023886203766, -0.34040260314941406, 0.3420516848564148, 0.008577471598982811, 0.23513467609882355, 0.3456483483314514, 0.35288605093955994, 0.03605944290757179, 0.2011786252260208, -0.3497684597969055, 0.3910674452781677, 0.20127549767494202, -0.22102539241313934, 0.21365106105804443, 0.11301729083061218, -0.14985299110412598, -0.10083983093500137, -0.16886965930461884, 0.2274169772863388, -0.1362248957157135, 0.030551956966519356, -0.20268218219280243, -0.26320144534111023, -0.3368806540966034, 0.05263005942106247, -0.38274136185646057, -0.1471710503101349, -0.24126803874969482, 0.15186716616153717, 0.4956682622432709, 0.011617702431976795, -0.13115867972373962, -0.3066515326499939, 0.24952013790607452, -0.19043879210948944, -0.0682242140173912, 0.03287596255540848, 0.0051763891242444515, 0.06581556797027588, 0.32161712646484375, -0.013916018418967724, -0.2091221809387207, 0.19087862968444824, 0.2867841124534607, 0.06777323782444, -0.3520873188972473, -0.1571640521287918, 0.06489915400743484, -0.05629940703511238, -0.3379913866519928, -0.16562588512897491, 0.15927913784980774, 0.028659187257289886, -0.375011146068573, -0.036093633621931076, -0.1957201212644577, 0.30436453223228455, -0.24348916113376617, 0.06504527479410172, 0.16174636781215668, 0.009935910813510418, -0.20810739696025848, -0.30748188495635986, -0.5092033743858337, 0.19552257657051086, 0.09240417182445526, 0.016404787078499794, -0.1390989124774933, 0.1449800580739975, -0.28396904468536377, 0.13380049169063568, 0.2869809865951538, -0.1371217668056488, -0.12334658950567245, 0.0783967450261116, -0.24367867410182953, -0.11015701293945312, 0.0049710962921381, 0.08113574236631393, 0.17015840113162994, 0.3924250900745392, -0.2060646116733551, -0.07164113968610764, 0.38552868366241455, 0.0826086476445198, -0.09829401969909668, -0.12905600666999817, 0.37740305066108704, -0.015554549172520638, -0.32158830761909485, -0.019324321299791336, -0.20992909371852875, -0.3068893849849701, 0.3630450665950775, 0.12851238250732422, 0.01907952129840851, 0.12902949750423431, -0.24287733435630798, 0.623440682888031, -0.19666063785552979, 0.10186775028705597, 0.3616890609264374, 0.09930109232664108, 0.0645906999707222, -0.1689734309911728, -0.15798622369766235, 0.250540554523468, 0.06630868464708328, -0.2585912048816681, 0.23375031352043152, 0.07128895074129105, -0.2561939060688019, -0.3335379660129547, 0.03270348161458969, -0.23448790609836578, 0.017459187656641006, 0.2665969133377075, -0.23199041187763214, 0.3961210548877716, -0.0019828900694847107, -0.034136440604925156, -0.16402046382427216, -0.14184971153736115, -0.23295539617538452, -0.10723277181386948, 0.24669469892978668, -0.1208704262971878, 0.11086154729127884, -0.07105964422225952, -0.05121248587965965, 0.25538966059684753, 0.1701035499572754, 0.14740000665187836, -0.311871737241745, -0.26225826144218445, 0.012428048066794872, 0.055170364677906036, 0.08583846688270569, -0.41628989577293396, -0.37272465229034424, -0.11278505623340607, -0.09776077419519424, -0.03415481001138687, -0.09469188749790192, -0.04052946716547012, -0.1832105815410614, 0.20307721197605133, -0.06357251107692719, -0.05206024646759033, 0.23260551691055298, 0.21731333434581757, -0.0176928099244833, 0.217095747590065, 0.18897387385368347, -0.03728218004107475, 0.35738757252693176, -0.19484667479991913, 0.15320239961147308, -0.21945972740650177, 0.28244444727897644, -0.12386006861925125, -0.0431818924844265, 0.20952455699443817, -0.16144801676273346, 0.30649617314338684, -0.13756349682807922, -0.040880873799324036, 0.2877933382987976, -0.10484301298856735, -0.03763559088110924, 0.2131592482328415, 0.1534949243068695, 0.24566470086574554, 0.3709496557712555, -0.06412036716938019, 0.21687152981758118, 0.2635100781917572, 0.18239010870456696, 0.49959221482276917, 0.3864913284778595, 0.45427951216697693, 0.11817096918821335, 0.31458237767219543, -0.13219141960144043, -0.061792273074388504, 0.3814978003501892, -0.22348397970199585, -0.08590371161699295, -0.3340305984020233, 0.02446887642145157, -0.32174399495124817, 0.013064689002931118, 0.3751603662967682, 0.015951646491885185, 0.06370220333337784, -0.15512584149837494, 0.13083010911941528, 1.2000408172607422, 0.21614676713943481, -0.1574520766735077, -0.22673647105693817, -0.44618234038352966, 0.029225101694464684, -0.40372738242149353, 0.2356492280960083, 0.13843820989131927, -0.09524910151958466, -0.08252052962779999, 0.24050864577293396, -0.11590825766324997, 0.012634730897843838, -0.2062324732542038, 0.00005204386980039999, -0.04379792883992195, 0.4219304025173187, -0.09216112643480301, 0.034128282219171524, -0.3676610589027405, -0.1316043585538864, -0.3926580846309662, 0.2652783691883087, -0.055070266127586365, -0.2482442557811737, -0.1521604359149933, 0.020835131406784058, 0.029211539775133133, -0.03517947345972061, -0.40405088663101196, -0.02603013440966606, 0.025707652792334557, -0.2004396915435791, -0.5593099594116211, -0.2865771949291229, -0.08814453333616257, -0.29676514863967896, -0.4265797436237335, 0.037646688520908356, -0.15293046832084656, -0.14889733493328094, -0.10238690674304962, 0.058333270251750946, -0.10365287214517593, -0.13748840987682343, -0.10156258940696716, -0.2515740394592285, -0.38233184814453125, 0.2826102674007416, 0.19685064256191254, -0.330633282661438, -0.4043424427509308, 0.19121713936328888, 0.46224695444107056, -0.17679452896118164, 0.12762759625911713, 0.2221430391073227, -0.2066545933485031, -0.14832772314548492, 0.24812142550945282, 0.013212696649134159, -0.15851294994354248, 0.04856794327497482, 0.03165985271334648, 0.05075598135590553, -0.3978120982646942, 0.5066480040550232, 0.12365207076072693, -0.13933850824832916, 0.051242392510175705, -0.12543390691280365, -0.22014978528022766, -0.2874630093574524, -0.2986595034599304, -0.21722528338432312, 0.07417304068803787, -0.2164965271949768, 0.10669778287410736, -0.2857912480831146, 0.07579607516527176, -0.10125915706157684, -0.016739338636398315, 0.4429197609424591, -0.3661057651042938, 0.005974242929369211, -0.24137157201766968, 0.2464148849248886, -0.07920514792203903, 0.07177403569221497, -0.12550221383571625, -0.1917644739151001, 0.22047966718673706, 0.22259478271007538, -0.4874606728553772, -0.05812334269285202, 0.3546387851238251, 0.04946468397974968, -0.12126446515321732, -0.17302317917346954, 0.01594322733581066, 0.08697538822889328, 0.3073730170726776, -0.13505442440509796, -0.2613197863101959, -0.2610812783241272, 0.3552669584751129, 0.145787313580513, 0.2857814133167267, -0.09151480346918106, -0.3432041108608246, -0.06432393193244934, -0.18297810852527618, 0.025527404621243477, -0.030235949903726578, -0.1066555306315422, 0.12233515083789825, -0.30504941940307617, 0.26661384105682373, -0.2626427114009857, 0.15181945264339447, -0.030770184472203255, 0.1927410215139389, 0.46458184719085693, 0.05348343774676323, 0.01486988179385662, 0.5160068273544312, -0.27941134572029114, -0.269681453704834, 0.2937026917934418, 0.21633967757225037, 0.004630426876246929, 0.41351351141929626, 0.0505613349378109, 0.10849668830633163, -0.06532849371433258, 0.21334391832351685, 0.24709448218345642, 0.4051624536514282, -0.1321650743484497, -0.07083405554294586, 0.3587549328804016, 0.02593090571463108, -0.16537238657474518, 0.013681835494935513, 0.15381701290607452, 0.1689092516899109, 0.18619461357593536, 0.3469349443912506, -0.28271377086639404, 0.06479557603597641, -0.014183265157043934, -0.10997599363327026, 0.09472585469484329, 0.38410431146621704, 0.21124213933944702, 0.13947880268096924, -0.05291779339313507, -0.3910486102104187, 0.0219014473259449, -0.021390821784734726, -0.31097719073295593, -0.20423556864261627, 0.19973494112491608, 0.04990987107157707, 0.024609485641121864, 0.0851486548781395, -0.22425200045108795, -0.3302968740463257, 0.01432525273412466, 0.07210150361061096, 0.5643169283866882, 0.23613733053207397, 0.2886195182800293, 0.008497118018567562, -0.1216723620891571, 0.08964546769857407, 0.08815663307905197, 0.1857285499572754, 0.16253918409347534, -0.030469661578536034, -0.18623356521129608, -0.1572389304637909, 0.13852278888225555, 0.20367112755775452, 0.09228742122650146, -0.021416617557406425, -0.15399275720119476, -0.12129127234220505, 0.0044005680829286575, 0.19920051097869873, -0.07572511583566666, 0.42742568254470825, -0.061211343854665756, 0.06159326061606407, 0.5159865617752075, 0.05489770323038101, 0.4888455867767334, 0.14686471223831177, 0.09567707031965256, -0.20186085999011993, 0.1690949946641922, 0.17935146391391754, 0.14325176179409027, -0.1311860978603363, 0.08876626193523407, 0.15351276099681854, 0.400494784116745, -0.012318781577050686, 0.007968258112668991, 0.30976423621177673, -0.25743812322616577, 0.4027559757232666, -0.1261485069990158, -0.10862407833337784, 0.0194730032235384, 0.27540895342826843, 0.33875414729118347, -0.07174742966890335, -0.3879799246788025, -0.18880920112133026, -0.3688850700855255, 0.04755823686718941, 0.16194206476211548, -0.3435857892036438, -0.05709070339798927, -0.0041484651155769825, 0.13343319296836853, 0.1610940843820572, 0.48779240250587463, 0.034539513289928436, 0.06246267631649971, 0.014612370170652866, -0.3946686089038849, 0.018391352146863937, 0.2812940180301666, 0.1493871957063675, -0.03274301812052727, -0.25827518105506897, 0.14176855981349945, 0.2119586318731308, 0.12631434202194214, -0.016568025574088097, -0.4163261950016022, -0.1833675056695938, 0.30664539337158203, -0.10753782093524933, 0.25667068362236023, 0.35583364963531494, 0.4652538597583771, -0.03679275885224342, 0.07934083789587021, 0.3734481632709503, -0.1350070685148239, 0.28731703758239746, 0.1621338576078415, 0.04170377552509308, -0.18873345851898193, -0.10538571327924728, 0.2672770321369171, -0.2299305498600006, 0.30859479308128357, -0.29779019951820374, -0.17729519307613373, -0.31794095039367676, 0.04184047877788544, -0.09916986525058746, 0.07864551991224289, 0.015756292268633842, 0.5439207553863525, 0.11059238016605377, -0.1483418345451355, 0.1293506771326065, 0.5160801410675049, 0.0290303286164999, -0.1090255007147789, 0.06561660021543503, -0.13202881813049316, -0.12397696077823639, 0.11987900733947754, 0.17818234860897064, 0.1985487937927246, -0.11108250170946121, -0.23240245878696442, -0.1669108122587204, -0.2449461966753006, 0.3028443157672882, 0.1181916743516922, -0.24093537032604218, -0.2534087598323822, 0.24871474504470825, 0.32489776611328125, 0.3596436083316803, -0.2763969600200653, -0.12421607971191406, 0.14474689960479736, -0.18995161354541779, 0.2965094745159149, 0.3733390271663666, -0.12035252153873444, -0.32077401876449585, -0.20703592896461487, -0.26398879289627075, 0.16899584233760834, 0.1992189586162567, 0.04220350831747055, -0.021810118108987808 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
So far are implemented: `IterableDataset.filter()` and `Dataset.to_iterable_dataset()`. Still missing: `IterableDataset.push_to_hub()` - though there is a hack to write on disk and then push to hub using ```python ds_on_disk = Dataset.from_generator(streaming_ds.__iter__) # stream to disk ds_on_disk.push_to_hub(...) ```
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
36
Expanding streaming capabilities
[ -0.3992480933666229, -0.23181837797164917, -0.2449195832014084, -0.2562445104122162, 0.07252813875675201, -0.11348876357078552, 0.0932808518409729, 0.09215379506349564, -0.08528273552656174, 0.026260778307914734, -0.03614121675491333, -0.024351604282855988, -0.1257842779159546, 0.38801559805870056, 0.10303380340337753, -0.14846433699131012, 0.15088389813899994, 0.06414447724819183, 0.05001082271337509, -0.03463377058506012, -0.12126540392637253, -0.23438778519630432, -0.08377588540315628, -0.5523244142532349, -0.019901037216186523, 0.019844941794872284, 0.15854588150978088, 0.04224511608481407, -0.17630241811275482, -0.07765933871269226, -0.36556485295295715, 0.07363095879554749, 0.012947160750627518, 0.1648261994123459, -0.00010142177779925987, -0.1914394199848175, 0.12580394744873047, -0.02208622358739376, -0.32409146428108215, 0.29310116171836853, -0.06842591613531113, -0.04931466653943062, 0.16091664135456085, 0.1346442550420761, 0.018512887880206108, -0.051733341068029404, 0.034492410719394684, -0.3780582845211029, 0.16347144544124603, -0.11030375212430954, 0.2924162745475769, -0.04941120743751526, -0.01966582052409649, -0.01612168923020363, -0.00705465255305171, 0.0949910581111908, -0.1710105687379837, -0.03365735337138176, 0.721564769744873, 0.10598130524158478, -0.08152726292610168, 0.3128741383552551, -0.14069414138793945, -0.0006478241411969066, 0.268221378326416, -0.10056514292955399, -0.024764886125922203, -0.19148315489292145, 0.21264459192752838, -0.07034336030483246, 0.13835814595222473, 0.14310809969902039, -0.45295828580856323, -0.18674707412719727, 0.16313228011131287, -0.3573843836784363, -0.2337009757757187, 0.09612482041120529, -0.20405128598213196, 0.03748815134167671, -0.30792251229286194, -0.49788394570350647, -0.2767876982688904, 0.3257082998752594, 0.13253647089004517, 0.4424710273742676, 0.17806707322597504, -0.2142471969127655, 0.04689141735434532, -0.025917019695043564, 0.20708471536636353, -0.021482327952980995, 0.07353916764259338, -0.018832353875041008, -0.12689197063446045, 0.1124022901058197, 0.14947225153446198, 0.06573835760354996, -0.290783166885376, 0.18723909556865692, 0.5025026202201843, 0.32448810338974, 0.016071919351816177, 0.02462690696120262, 0.08242835104465485, -0.07794581353664398, -0.30161672830581665, -0.1410076767206192, -0.08047549426555634, 0.260062038898468, -0.00971608143299818, -0.12306813150644302, 0.10196567326784134, 0.08612612634897232, -0.42962750792503357, -0.1003839448094368, 0.05874866619706154, 0.030786311253905296, 0.09470652043819427, -0.04892336577177048, -0.06659481674432755, -0.1742640733718872, -0.002165526617318392, -0.2232450395822525, -0.11961644142866135, 0.3806237578392029, -0.2683112621307373, 0.34493574500083923, 0.0856156051158905, -0.30499786138534546, -0.20483629405498505, -0.12837915122509003, -0.07570774108171463, 0.23043638467788696, 0.26178327202796936, -0.2859506905078888, -0.1422073394060135, -0.0783623680472374, 0.49595946073532104, 0.20877864956855774, -0.12404436618089676, 0.007728129159659147, -0.03558703139424324, -0.18488267064094543, -0.3236221969127655, -0.15383338928222656, 0.10406435281038284, 0.36964625120162964, 0.05882798135280609, -0.24648109078407288, 0.25037041306495667, -0.5530647039413452, 0.05502582713961601, 0.2678602635860443, 0.1503201574087143, -0.15869735181331635, -0.040575217455625534, 0.4656246602535248, -0.3469957113265991, -0.5500773787498474, -0.05705530568957329, 0.23504282534122467, -0.08043425530195236, -0.022451402619481087, -0.030494796112179756, 0.14203259348869324, -0.31258219480514526, -0.18233658373355865, -0.08358127623796463, 0.3114621043205261, 0.11626590043306351, 0.043823979794979095, -0.1970285177230835, -0.44809913635253906, 0.05283571407198906, -0.11518345028162003, 0.30997103452682495, -0.2935945987701416, -0.2131917029619217, 0.12416002154350281, -0.45687803626060486, -0.07959242165088654, 0.3691256046295166, 0.08994971215724945, 0.5866976976394653, -0.14965960383415222, 0.2175057977437973, 0.3254242539405823, -0.1096094474196434, -0.16804026067256927, -0.2220182865858078, -0.2551843822002411, 0.05121670663356781, 0.007219790481030941, 0.2973549962043762, 0.24329526722431183, 0.03203950449824333, 0.08350808173418045, 0.06510265171527863, 0.10296856611967087, 0.2770450711250305, -0.255205363035202, 0.27350321412086487, 0.23510371148586273, -0.2253415286540985, -0.08077780902385712, 0.20161153376102448, -0.23686744272708893, 0.018333783373236656, 0.1808837205171585, 0.2974293828010559, -0.13577774167060852, 0.1623382419347763, 0.022854221984744072, 0.2225390374660492, 0.19877339899539948, 0.29739534854888916, 0.399371474981308, -0.12872016429901123, -0.2121618539094925, -0.1743009090423584, 0.007382213603705168, -0.1969643384218216, -0.10674724727869034, 0.12396027892827988, 0.25660160183906555, 0.10133049637079239, -0.2383321225643158, 0.188881978392601, 0.07967226207256317, 0.21621306240558624, 0.07455119490623474, 0.06699679046869278, -0.1157461404800415, -0.28053686022758484, 0.48866045475006104, 0.4168090224266052, 0.43761223554611206, 0.2807903587818146, -0.2607631981372833, 0.19388248026371002, 0.3076466917991638, -0.06688109040260315, -0.006193775683641434, 0.02732093445956707, -0.21605193614959717, -0.03664358705282211, 0.15074551105499268, 0.21898983418941498, -0.1632780283689499, -0.02812485210597515, 0.2734220325946808, 0.0348699726164341, -0.07236018776893616, -0.015898512676358223, -0.1697244495153427, -0.2946588695049286, -0.03600923717021942, -0.20431484282016754, 0.3592483401298523, -0.1825954020023346, 0.08928535133600235, -0.23860867321491241, 0.028381669893860817, 0.04941023886203766, -0.34040260314941406, 0.3420516848564148, 0.008577471598982811, 0.23513467609882355, 0.3456483483314514, 0.35288605093955994, 0.03605944290757179, 0.2011786252260208, -0.3497684597969055, 0.3910674452781677, 0.20127549767494202, -0.22102539241313934, 0.21365106105804443, 0.11301729083061218, -0.14985299110412598, -0.10083983093500137, -0.16886965930461884, 0.2274169772863388, -0.1362248957157135, 0.030551956966519356, -0.20268218219280243, -0.26320144534111023, -0.3368806540966034, 0.05263005942106247, -0.38274136185646057, -0.1471710503101349, -0.24126803874969482, 0.15186716616153717, 0.4956682622432709, 0.011617702431976795, -0.13115867972373962, -0.3066515326499939, 0.24952013790607452, -0.19043879210948944, -0.0682242140173912, 0.03287596255540848, 0.0051763891242444515, 0.06581556797027588, 0.32161712646484375, -0.013916018418967724, -0.2091221809387207, 0.19087862968444824, 0.2867841124534607, 0.06777323782444, -0.3520873188972473, -0.1571640521287918, 0.06489915400743484, -0.05629940703511238, -0.3379913866519928, -0.16562588512897491, 0.15927913784980774, 0.028659187257289886, -0.375011146068573, -0.036093633621931076, -0.1957201212644577, 0.30436453223228455, -0.24348916113376617, 0.06504527479410172, 0.16174636781215668, 0.009935910813510418, -0.20810739696025848, -0.30748188495635986, -0.5092033743858337, 0.19552257657051086, 0.09240417182445526, 0.016404787078499794, -0.1390989124774933, 0.1449800580739975, -0.28396904468536377, 0.13380049169063568, 0.2869809865951538, -0.1371217668056488, -0.12334658950567245, 0.0783967450261116, -0.24367867410182953, -0.11015701293945312, 0.0049710962921381, 0.08113574236631393, 0.17015840113162994, 0.3924250900745392, -0.2060646116733551, -0.07164113968610764, 0.38552868366241455, 0.0826086476445198, -0.09829401969909668, -0.12905600666999817, 0.37740305066108704, -0.015554549172520638, -0.32158830761909485, -0.019324321299791336, -0.20992909371852875, -0.3068893849849701, 0.3630450665950775, 0.12851238250732422, 0.01907952129840851, 0.12902949750423431, -0.24287733435630798, 0.623440682888031, -0.19666063785552979, 0.10186775028705597, 0.3616890609264374, 0.09930109232664108, 0.0645906999707222, -0.1689734309911728, -0.15798622369766235, 0.250540554523468, 0.06630868464708328, -0.2585912048816681, 0.23375031352043152, 0.07128895074129105, -0.2561939060688019, -0.3335379660129547, 0.03270348161458969, -0.23448790609836578, 0.017459187656641006, 0.2665969133377075, -0.23199041187763214, 0.3961210548877716, -0.0019828900694847107, -0.034136440604925156, -0.16402046382427216, -0.14184971153736115, -0.23295539617538452, -0.10723277181386948, 0.24669469892978668, -0.1208704262971878, 0.11086154729127884, -0.07105964422225952, -0.05121248587965965, 0.25538966059684753, 0.1701035499572754, 0.14740000665187836, -0.311871737241745, -0.26225826144218445, 0.012428048066794872, 0.055170364677906036, 0.08583846688270569, -0.41628989577293396, -0.37272465229034424, -0.11278505623340607, -0.09776077419519424, -0.03415481001138687, -0.09469188749790192, -0.04052946716547012, -0.1832105815410614, 0.20307721197605133, -0.06357251107692719, -0.05206024646759033, 0.23260551691055298, 0.21731333434581757, -0.0176928099244833, 0.217095747590065, 0.18897387385368347, -0.03728218004107475, 0.35738757252693176, -0.19484667479991913, 0.15320239961147308, -0.21945972740650177, 0.28244444727897644, -0.12386006861925125, -0.0431818924844265, 0.20952455699443817, -0.16144801676273346, 0.30649617314338684, -0.13756349682807922, -0.040880873799324036, 0.2877933382987976, -0.10484301298856735, -0.03763559088110924, 0.2131592482328415, 0.1534949243068695, 0.24566470086574554, 0.3709496557712555, -0.06412036716938019, 0.21687152981758118, 0.2635100781917572, 0.18239010870456696, 0.49959221482276917, 0.3864913284778595, 0.45427951216697693, 0.11817096918821335, 0.31458237767219543, -0.13219141960144043, -0.061792273074388504, 0.3814978003501892, -0.22348397970199585, -0.08590371161699295, -0.3340305984020233, 0.02446887642145157, -0.32174399495124817, 0.013064689002931118, 0.3751603662967682, 0.015951646491885185, 0.06370220333337784, -0.15512584149837494, 0.13083010911941528, 1.2000408172607422, 0.21614676713943481, -0.1574520766735077, -0.22673647105693817, -0.44618234038352966, 0.029225101694464684, -0.40372738242149353, 0.2356492280960083, 0.13843820989131927, -0.09524910151958466, -0.08252052962779999, 0.24050864577293396, -0.11590825766324997, 0.012634730897843838, -0.2062324732542038, 0.00005204386980039999, -0.04379792883992195, 0.4219304025173187, -0.09216112643480301, 0.034128282219171524, -0.3676610589027405, -0.1316043585538864, -0.3926580846309662, 0.2652783691883087, -0.055070266127586365, -0.2482442557811737, -0.1521604359149933, 0.020835131406784058, 0.029211539775133133, -0.03517947345972061, -0.40405088663101196, -0.02603013440966606, 0.025707652792334557, -0.2004396915435791, -0.5593099594116211, -0.2865771949291229, -0.08814453333616257, -0.29676514863967896, -0.4265797436237335, 0.037646688520908356, -0.15293046832084656, -0.14889733493328094, -0.10238690674304962, 0.058333270251750946, -0.10365287214517593, -0.13748840987682343, -0.10156258940696716, -0.2515740394592285, -0.38233184814453125, 0.2826102674007416, 0.19685064256191254, -0.330633282661438, -0.4043424427509308, 0.19121713936328888, 0.46224695444107056, -0.17679452896118164, 0.12762759625911713, 0.2221430391073227, -0.2066545933485031, -0.14832772314548492, 0.24812142550945282, 0.013212696649134159, -0.15851294994354248, 0.04856794327497482, 0.03165985271334648, 0.05075598135590553, -0.3978120982646942, 0.5066480040550232, 0.12365207076072693, -0.13933850824832916, 0.051242392510175705, -0.12543390691280365, -0.22014978528022766, -0.2874630093574524, -0.2986595034599304, -0.21722528338432312, 0.07417304068803787, -0.2164965271949768, 0.10669778287410736, -0.2857912480831146, 0.07579607516527176, -0.10125915706157684, -0.016739338636398315, 0.4429197609424591, -0.3661057651042938, 0.005974242929369211, -0.24137157201766968, 0.2464148849248886, -0.07920514792203903, 0.07177403569221497, -0.12550221383571625, -0.1917644739151001, 0.22047966718673706, 0.22259478271007538, -0.4874606728553772, -0.05812334269285202, 0.3546387851238251, 0.04946468397974968, -0.12126446515321732, -0.17302317917346954, 0.01594322733581066, 0.08697538822889328, 0.3073730170726776, -0.13505442440509796, -0.2613197863101959, -0.2610812783241272, 0.3552669584751129, 0.145787313580513, 0.2857814133167267, -0.09151480346918106, -0.3432041108608246, -0.06432393193244934, -0.18297810852527618, 0.025527404621243477, -0.030235949903726578, -0.1066555306315422, 0.12233515083789825, -0.30504941940307617, 0.26661384105682373, -0.2626427114009857, 0.15181945264339447, -0.030770184472203255, 0.1927410215139389, 0.46458184719085693, 0.05348343774676323, 0.01486988179385662, 0.5160068273544312, -0.27941134572029114, -0.269681453704834, 0.2937026917934418, 0.21633967757225037, 0.004630426876246929, 0.41351351141929626, 0.0505613349378109, 0.10849668830633163, -0.06532849371433258, 0.21334391832351685, 0.24709448218345642, 0.4051624536514282, -0.1321650743484497, -0.07083405554294586, 0.3587549328804016, 0.02593090571463108, -0.16537238657474518, 0.013681835494935513, 0.15381701290607452, 0.1689092516899109, 0.18619461357593536, 0.3469349443912506, -0.28271377086639404, 0.06479557603597641, -0.014183265157043934, -0.10997599363327026, 0.09472585469484329, 0.38410431146621704, 0.21124213933944702, 0.13947880268096924, -0.05291779339313507, -0.3910486102104187, 0.0219014473259449, -0.021390821784734726, -0.31097719073295593, -0.20423556864261627, 0.19973494112491608, 0.04990987107157707, 0.024609485641121864, 0.0851486548781395, -0.22425200045108795, -0.3302968740463257, 0.01432525273412466, 0.07210150361061096, 0.5643169283866882, 0.23613733053207397, 0.2886195182800293, 0.008497118018567562, -0.1216723620891571, 0.08964546769857407, 0.08815663307905197, 0.1857285499572754, 0.16253918409347534, -0.030469661578536034, -0.18623356521129608, -0.1572389304637909, 0.13852278888225555, 0.20367112755775452, 0.09228742122650146, -0.021416617557406425, -0.15399275720119476, -0.12129127234220505, 0.0044005680829286575, 0.19920051097869873, -0.07572511583566666, 0.42742568254470825, -0.061211343854665756, 0.06159326061606407, 0.5159865617752075, 0.05489770323038101, 0.4888455867767334, 0.14686471223831177, 0.09567707031965256, -0.20186085999011993, 0.1690949946641922, 0.17935146391391754, 0.14325176179409027, -0.1311860978603363, 0.08876626193523407, 0.15351276099681854, 0.400494784116745, -0.012318781577050686, 0.007968258112668991, 0.30976423621177673, -0.25743812322616577, 0.4027559757232666, -0.1261485069990158, -0.10862407833337784, 0.0194730032235384, 0.27540895342826843, 0.33875414729118347, -0.07174742966890335, -0.3879799246788025, -0.18880920112133026, -0.3688850700855255, 0.04755823686718941, 0.16194206476211548, -0.3435857892036438, -0.05709070339798927, -0.0041484651155769825, 0.13343319296836853, 0.1610940843820572, 0.48779240250587463, 0.034539513289928436, 0.06246267631649971, 0.014612370170652866, -0.3946686089038849, 0.018391352146863937, 0.2812940180301666, 0.1493871957063675, -0.03274301812052727, -0.25827518105506897, 0.14176855981349945, 0.2119586318731308, 0.12631434202194214, -0.016568025574088097, -0.4163261950016022, -0.1833675056695938, 0.30664539337158203, -0.10753782093524933, 0.25667068362236023, 0.35583364963531494, 0.4652538597583771, -0.03679275885224342, 0.07934083789587021, 0.3734481632709503, -0.1350070685148239, 0.28731703758239746, 0.1621338576078415, 0.04170377552509308, -0.18873345851898193, -0.10538571327924728, 0.2672770321369171, -0.2299305498600006, 0.30859479308128357, -0.29779019951820374, -0.17729519307613373, -0.31794095039367676, 0.04184047877788544, -0.09916986525058746, 0.07864551991224289, 0.015756292268633842, 0.5439207553863525, 0.11059238016605377, -0.1483418345451355, 0.1293506771326065, 0.5160801410675049, 0.0290303286164999, -0.1090255007147789, 0.06561660021543503, -0.13202881813049316, -0.12397696077823639, 0.11987900733947754, 0.17818234860897064, 0.1985487937927246, -0.11108250170946121, -0.23240245878696442, -0.1669108122587204, -0.2449461966753006, 0.3028443157672882, 0.1181916743516922, -0.24093537032604218, -0.2534087598323822, 0.24871474504470825, 0.32489776611328125, 0.3596436083316803, -0.2763969600200653, -0.12421607971191406, 0.14474689960479736, -0.18995161354541779, 0.2965094745159149, 0.3733390271663666, -0.12035252153873444, -0.32077401876449585, -0.20703592896461487, -0.26398879289627075, 0.16899584233760834, 0.1992189586162567, 0.04220350831747055, -0.021810118108987808 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Do we have anything related to save_to_disk for IterableDataset / IterableDatasetDict. I believe this should be implementing that Dataset / DatasetDict have to offer, since for large amounts of data, this becomes quite a bit of problem.
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
37
Expanding streaming capabilities
[ -0.3992480933666229, -0.23181837797164917, -0.2449195832014084, -0.2562445104122162, 0.07252813875675201, -0.11348876357078552, 0.0932808518409729, 0.09215379506349564, -0.08528273552656174, 0.026260778307914734, -0.03614121675491333, -0.024351604282855988, -0.1257842779159546, 0.38801559805870056, 0.10303380340337753, -0.14846433699131012, 0.15088389813899994, 0.06414447724819183, 0.05001082271337509, -0.03463377058506012, -0.12126540392637253, -0.23438778519630432, -0.08377588540315628, -0.5523244142532349, -0.019901037216186523, 0.019844941794872284, 0.15854588150978088, 0.04224511608481407, -0.17630241811275482, -0.07765933871269226, -0.36556485295295715, 0.07363095879554749, 0.012947160750627518, 0.1648261994123459, -0.00010142177779925987, -0.1914394199848175, 0.12580394744873047, -0.02208622358739376, -0.32409146428108215, 0.29310116171836853, -0.06842591613531113, -0.04931466653943062, 0.16091664135456085, 0.1346442550420761, 0.018512887880206108, -0.051733341068029404, 0.034492410719394684, -0.3780582845211029, 0.16347144544124603, -0.11030375212430954, 0.2924162745475769, -0.04941120743751526, -0.01966582052409649, -0.01612168923020363, -0.00705465255305171, 0.0949910581111908, -0.1710105687379837, -0.03365735337138176, 0.721564769744873, 0.10598130524158478, -0.08152726292610168, 0.3128741383552551, -0.14069414138793945, -0.0006478241411969066, 0.268221378326416, -0.10056514292955399, -0.024764886125922203, -0.19148315489292145, 0.21264459192752838, -0.07034336030483246, 0.13835814595222473, 0.14310809969902039, -0.45295828580856323, -0.18674707412719727, 0.16313228011131287, -0.3573843836784363, -0.2337009757757187, 0.09612482041120529, -0.20405128598213196, 0.03748815134167671, -0.30792251229286194, -0.49788394570350647, -0.2767876982688904, 0.3257082998752594, 0.13253647089004517, 0.4424710273742676, 0.17806707322597504, -0.2142471969127655, 0.04689141735434532, -0.025917019695043564, 0.20708471536636353, -0.021482327952980995, 0.07353916764259338, -0.018832353875041008, -0.12689197063446045, 0.1124022901058197, 0.14947225153446198, 0.06573835760354996, -0.290783166885376, 0.18723909556865692, 0.5025026202201843, 0.32448810338974, 0.016071919351816177, 0.02462690696120262, 0.08242835104465485, -0.07794581353664398, -0.30161672830581665, -0.1410076767206192, -0.08047549426555634, 0.260062038898468, -0.00971608143299818, -0.12306813150644302, 0.10196567326784134, 0.08612612634897232, -0.42962750792503357, -0.1003839448094368, 0.05874866619706154, 0.030786311253905296, 0.09470652043819427, -0.04892336577177048, -0.06659481674432755, -0.1742640733718872, -0.002165526617318392, -0.2232450395822525, -0.11961644142866135, 0.3806237578392029, -0.2683112621307373, 0.34493574500083923, 0.0856156051158905, -0.30499786138534546, -0.20483629405498505, -0.12837915122509003, -0.07570774108171463, 0.23043638467788696, 0.26178327202796936, -0.2859506905078888, -0.1422073394060135, -0.0783623680472374, 0.49595946073532104, 0.20877864956855774, -0.12404436618089676, 0.007728129159659147, -0.03558703139424324, -0.18488267064094543, -0.3236221969127655, -0.15383338928222656, 0.10406435281038284, 0.36964625120162964, 0.05882798135280609, -0.24648109078407288, 0.25037041306495667, -0.5530647039413452, 0.05502582713961601, 0.2678602635860443, 0.1503201574087143, -0.15869735181331635, -0.040575217455625534, 0.4656246602535248, -0.3469957113265991, -0.5500773787498474, -0.05705530568957329, 0.23504282534122467, -0.08043425530195236, -0.022451402619481087, -0.030494796112179756, 0.14203259348869324, -0.31258219480514526, -0.18233658373355865, -0.08358127623796463, 0.3114621043205261, 0.11626590043306351, 0.043823979794979095, -0.1970285177230835, -0.44809913635253906, 0.05283571407198906, -0.11518345028162003, 0.30997103452682495, -0.2935945987701416, -0.2131917029619217, 0.12416002154350281, -0.45687803626060486, -0.07959242165088654, 0.3691256046295166, 0.08994971215724945, 0.5866976976394653, -0.14965960383415222, 0.2175057977437973, 0.3254242539405823, -0.1096094474196434, -0.16804026067256927, -0.2220182865858078, -0.2551843822002411, 0.05121670663356781, 0.007219790481030941, 0.2973549962043762, 0.24329526722431183, 0.03203950449824333, 0.08350808173418045, 0.06510265171527863, 0.10296856611967087, 0.2770450711250305, -0.255205363035202, 0.27350321412086487, 0.23510371148586273, -0.2253415286540985, -0.08077780902385712, 0.20161153376102448, -0.23686744272708893, 0.018333783373236656, 0.1808837205171585, 0.2974293828010559, -0.13577774167060852, 0.1623382419347763, 0.022854221984744072, 0.2225390374660492, 0.19877339899539948, 0.29739534854888916, 0.399371474981308, -0.12872016429901123, -0.2121618539094925, -0.1743009090423584, 0.007382213603705168, -0.1969643384218216, -0.10674724727869034, 0.12396027892827988, 0.25660160183906555, 0.10133049637079239, -0.2383321225643158, 0.188881978392601, 0.07967226207256317, 0.21621306240558624, 0.07455119490623474, 0.06699679046869278, -0.1157461404800415, -0.28053686022758484, 0.48866045475006104, 0.4168090224266052, 0.43761223554611206, 0.2807903587818146, -0.2607631981372833, 0.19388248026371002, 0.3076466917991638, -0.06688109040260315, -0.006193775683641434, 0.02732093445956707, -0.21605193614959717, -0.03664358705282211, 0.15074551105499268, 0.21898983418941498, -0.1632780283689499, -0.02812485210597515, 0.2734220325946808, 0.0348699726164341, -0.07236018776893616, -0.015898512676358223, -0.1697244495153427, -0.2946588695049286, -0.03600923717021942, -0.20431484282016754, 0.3592483401298523, -0.1825954020023346, 0.08928535133600235, -0.23860867321491241, 0.028381669893860817, 0.04941023886203766, -0.34040260314941406, 0.3420516848564148, 0.008577471598982811, 0.23513467609882355, 0.3456483483314514, 0.35288605093955994, 0.03605944290757179, 0.2011786252260208, -0.3497684597969055, 0.3910674452781677, 0.20127549767494202, -0.22102539241313934, 0.21365106105804443, 0.11301729083061218, -0.14985299110412598, -0.10083983093500137, -0.16886965930461884, 0.2274169772863388, -0.1362248957157135, 0.030551956966519356, -0.20268218219280243, -0.26320144534111023, -0.3368806540966034, 0.05263005942106247, -0.38274136185646057, -0.1471710503101349, -0.24126803874969482, 0.15186716616153717, 0.4956682622432709, 0.011617702431976795, -0.13115867972373962, -0.3066515326499939, 0.24952013790607452, -0.19043879210948944, -0.0682242140173912, 0.03287596255540848, 0.0051763891242444515, 0.06581556797027588, 0.32161712646484375, -0.013916018418967724, -0.2091221809387207, 0.19087862968444824, 0.2867841124534607, 0.06777323782444, -0.3520873188972473, -0.1571640521287918, 0.06489915400743484, -0.05629940703511238, -0.3379913866519928, -0.16562588512897491, 0.15927913784980774, 0.028659187257289886, -0.375011146068573, -0.036093633621931076, -0.1957201212644577, 0.30436453223228455, -0.24348916113376617, 0.06504527479410172, 0.16174636781215668, 0.009935910813510418, -0.20810739696025848, -0.30748188495635986, -0.5092033743858337, 0.19552257657051086, 0.09240417182445526, 0.016404787078499794, -0.1390989124774933, 0.1449800580739975, -0.28396904468536377, 0.13380049169063568, 0.2869809865951538, -0.1371217668056488, -0.12334658950567245, 0.0783967450261116, -0.24367867410182953, -0.11015701293945312, 0.0049710962921381, 0.08113574236631393, 0.17015840113162994, 0.3924250900745392, -0.2060646116733551, -0.07164113968610764, 0.38552868366241455, 0.0826086476445198, -0.09829401969909668, -0.12905600666999817, 0.37740305066108704, -0.015554549172520638, -0.32158830761909485, -0.019324321299791336, -0.20992909371852875, -0.3068893849849701, 0.3630450665950775, 0.12851238250732422, 0.01907952129840851, 0.12902949750423431, -0.24287733435630798, 0.623440682888031, -0.19666063785552979, 0.10186775028705597, 0.3616890609264374, 0.09930109232664108, 0.0645906999707222, -0.1689734309911728, -0.15798622369766235, 0.250540554523468, 0.06630868464708328, -0.2585912048816681, 0.23375031352043152, 0.07128895074129105, -0.2561939060688019, -0.3335379660129547, 0.03270348161458969, -0.23448790609836578, 0.017459187656641006, 0.2665969133377075, -0.23199041187763214, 0.3961210548877716, -0.0019828900694847107, -0.034136440604925156, -0.16402046382427216, -0.14184971153736115, -0.23295539617538452, -0.10723277181386948, 0.24669469892978668, -0.1208704262971878, 0.11086154729127884, -0.07105964422225952, -0.05121248587965965, 0.25538966059684753, 0.1701035499572754, 0.14740000665187836, -0.311871737241745, -0.26225826144218445, 0.012428048066794872, 0.055170364677906036, 0.08583846688270569, -0.41628989577293396, -0.37272465229034424, -0.11278505623340607, -0.09776077419519424, -0.03415481001138687, -0.09469188749790192, -0.04052946716547012, -0.1832105815410614, 0.20307721197605133, -0.06357251107692719, -0.05206024646759033, 0.23260551691055298, 0.21731333434581757, -0.0176928099244833, 0.217095747590065, 0.18897387385368347, -0.03728218004107475, 0.35738757252693176, -0.19484667479991913, 0.15320239961147308, -0.21945972740650177, 0.28244444727897644, -0.12386006861925125, -0.0431818924844265, 0.20952455699443817, -0.16144801676273346, 0.30649617314338684, -0.13756349682807922, -0.040880873799324036, 0.2877933382987976, -0.10484301298856735, -0.03763559088110924, 0.2131592482328415, 0.1534949243068695, 0.24566470086574554, 0.3709496557712555, -0.06412036716938019, 0.21687152981758118, 0.2635100781917572, 0.18239010870456696, 0.49959221482276917, 0.3864913284778595, 0.45427951216697693, 0.11817096918821335, 0.31458237767219543, -0.13219141960144043, -0.061792273074388504, 0.3814978003501892, -0.22348397970199585, -0.08590371161699295, -0.3340305984020233, 0.02446887642145157, -0.32174399495124817, 0.013064689002931118, 0.3751603662967682, 0.015951646491885185, 0.06370220333337784, -0.15512584149837494, 0.13083010911941528, 1.2000408172607422, 0.21614676713943481, -0.1574520766735077, -0.22673647105693817, -0.44618234038352966, 0.029225101694464684, -0.40372738242149353, 0.2356492280960083, 0.13843820989131927, -0.09524910151958466, -0.08252052962779999, 0.24050864577293396, -0.11590825766324997, 0.012634730897843838, -0.2062324732542038, 0.00005204386980039999, -0.04379792883992195, 0.4219304025173187, -0.09216112643480301, 0.034128282219171524, -0.3676610589027405, -0.1316043585538864, -0.3926580846309662, 0.2652783691883087, -0.055070266127586365, -0.2482442557811737, -0.1521604359149933, 0.020835131406784058, 0.029211539775133133, -0.03517947345972061, -0.40405088663101196, -0.02603013440966606, 0.025707652792334557, -0.2004396915435791, -0.5593099594116211, -0.2865771949291229, -0.08814453333616257, -0.29676514863967896, -0.4265797436237335, 0.037646688520908356, -0.15293046832084656, -0.14889733493328094, -0.10238690674304962, 0.058333270251750946, -0.10365287214517593, -0.13748840987682343, -0.10156258940696716, -0.2515740394592285, -0.38233184814453125, 0.2826102674007416, 0.19685064256191254, -0.330633282661438, -0.4043424427509308, 0.19121713936328888, 0.46224695444107056, -0.17679452896118164, 0.12762759625911713, 0.2221430391073227, -0.2066545933485031, -0.14832772314548492, 0.24812142550945282, 0.013212696649134159, -0.15851294994354248, 0.04856794327497482, 0.03165985271334648, 0.05075598135590553, -0.3978120982646942, 0.5066480040550232, 0.12365207076072693, -0.13933850824832916, 0.051242392510175705, -0.12543390691280365, -0.22014978528022766, -0.2874630093574524, -0.2986595034599304, -0.21722528338432312, 0.07417304068803787, -0.2164965271949768, 0.10669778287410736, -0.2857912480831146, 0.07579607516527176, -0.10125915706157684, -0.016739338636398315, 0.4429197609424591, -0.3661057651042938, 0.005974242929369211, -0.24137157201766968, 0.2464148849248886, -0.07920514792203903, 0.07177403569221497, -0.12550221383571625, -0.1917644739151001, 0.22047966718673706, 0.22259478271007538, -0.4874606728553772, -0.05812334269285202, 0.3546387851238251, 0.04946468397974968, -0.12126446515321732, -0.17302317917346954, 0.01594322733581066, 0.08697538822889328, 0.3073730170726776, -0.13505442440509796, -0.2613197863101959, -0.2610812783241272, 0.3552669584751129, 0.145787313580513, 0.2857814133167267, -0.09151480346918106, -0.3432041108608246, -0.06432393193244934, -0.18297810852527618, 0.025527404621243477, -0.030235949903726578, -0.1066555306315422, 0.12233515083789825, -0.30504941940307617, 0.26661384105682373, -0.2626427114009857, 0.15181945264339447, -0.030770184472203255, 0.1927410215139389, 0.46458184719085693, 0.05348343774676323, 0.01486988179385662, 0.5160068273544312, -0.27941134572029114, -0.269681453704834, 0.2937026917934418, 0.21633967757225037, 0.004630426876246929, 0.41351351141929626, 0.0505613349378109, 0.10849668830633163, -0.06532849371433258, 0.21334391832351685, 0.24709448218345642, 0.4051624536514282, -0.1321650743484497, -0.07083405554294586, 0.3587549328804016, 0.02593090571463108, -0.16537238657474518, 0.013681835494935513, 0.15381701290607452, 0.1689092516899109, 0.18619461357593536, 0.3469349443912506, -0.28271377086639404, 0.06479557603597641, -0.014183265157043934, -0.10997599363327026, 0.09472585469484329, 0.38410431146621704, 0.21124213933944702, 0.13947880268096924, -0.05291779339313507, -0.3910486102104187, 0.0219014473259449, -0.021390821784734726, -0.31097719073295593, -0.20423556864261627, 0.19973494112491608, 0.04990987107157707, 0.024609485641121864, 0.0851486548781395, -0.22425200045108795, -0.3302968740463257, 0.01432525273412466, 0.07210150361061096, 0.5643169283866882, 0.23613733053207397, 0.2886195182800293, 0.008497118018567562, -0.1216723620891571, 0.08964546769857407, 0.08815663307905197, 0.1857285499572754, 0.16253918409347534, -0.030469661578536034, -0.18623356521129608, -0.1572389304637909, 0.13852278888225555, 0.20367112755775452, 0.09228742122650146, -0.021416617557406425, -0.15399275720119476, -0.12129127234220505, 0.0044005680829286575, 0.19920051097869873, -0.07572511583566666, 0.42742568254470825, -0.061211343854665756, 0.06159326061606407, 0.5159865617752075, 0.05489770323038101, 0.4888455867767334, 0.14686471223831177, 0.09567707031965256, -0.20186085999011993, 0.1690949946641922, 0.17935146391391754, 0.14325176179409027, -0.1311860978603363, 0.08876626193523407, 0.15351276099681854, 0.400494784116745, -0.012318781577050686, 0.007968258112668991, 0.30976423621177673, -0.25743812322616577, 0.4027559757232666, -0.1261485069990158, -0.10862407833337784, 0.0194730032235384, 0.27540895342826843, 0.33875414729118347, -0.07174742966890335, -0.3879799246788025, -0.18880920112133026, -0.3688850700855255, 0.04755823686718941, 0.16194206476211548, -0.3435857892036438, -0.05709070339798927, -0.0041484651155769825, 0.13343319296836853, 0.1610940843820572, 0.48779240250587463, 0.034539513289928436, 0.06246267631649971, 0.014612370170652866, -0.3946686089038849, 0.018391352146863937, 0.2812940180301666, 0.1493871957063675, -0.03274301812052727, -0.25827518105506897, 0.14176855981349945, 0.2119586318731308, 0.12631434202194214, -0.016568025574088097, -0.4163261950016022, -0.1833675056695938, 0.30664539337158203, -0.10753782093524933, 0.25667068362236023, 0.35583364963531494, 0.4652538597583771, -0.03679275885224342, 0.07934083789587021, 0.3734481632709503, -0.1350070685148239, 0.28731703758239746, 0.1621338576078415, 0.04170377552509308, -0.18873345851898193, -0.10538571327924728, 0.2672770321369171, -0.2299305498600006, 0.30859479308128357, -0.29779019951820374, -0.17729519307613373, -0.31794095039367676, 0.04184047877788544, -0.09916986525058746, 0.07864551991224289, 0.015756292268633842, 0.5439207553863525, 0.11059238016605377, -0.1483418345451355, 0.1293506771326065, 0.5160801410675049, 0.0290303286164999, -0.1090255007147789, 0.06561660021543503, -0.13202881813049316, -0.12397696077823639, 0.11987900733947754, 0.17818234860897064, 0.1985487937927246, -0.11108250170946121, -0.23240245878696442, -0.1669108122587204, -0.2449461966753006, 0.3028443157672882, 0.1181916743516922, -0.24093537032604218, -0.2534087598323822, 0.24871474504470825, 0.32489776611328125, 0.3596436083316803, -0.2763969600200653, -0.12421607971191406, 0.14474689960479736, -0.18995161354541779, 0.2965094745159149, 0.3733390271663666, -0.12035252153873444, -0.32077401876449585, -0.20703592896461487, -0.26398879289627075, 0.16899584233760834, 0.1992189586162567, 0.04220350831747055, -0.021810118108987808 ]
https://github.com/huggingface/datasets/issues/3739
Pubmed dataset does not work in streaming mode
Thanks for reporting, @abhi-mosaic (related to #3655). Please note that `xml.etree.ElementTree.parse` already supports streaming: - #3476 No need to refactor to use `open`/`xopen`. Is is enough with importing the package `as ET` (instead of `as etree`).
## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Expected results I would expect to see the first training sample from the pubmed dataset. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 367, in __iter__ for key, example in self._iter(): File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 364, in _iter yield from ex_iterable File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 79, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/Users/abhinav/.cache/huggingface/modules/datasets_modules/datasets/pubmed/9715addf10c42a7877a2149ae0c5f2fddabefc775cd1bd9b03ac3f012b86ce46/pubmed.py", line 373, in _generate_examples tree = etree.parse(filename) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'gzip://pubmed21n0001.xml::ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed21n0001.xml.gz' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.2 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.2 - PyArrow version: 6.0.0 ## Comments The error looks like an issue with `open` vs. `xopen` inside the `xml` package. It looks like it's trying to open the remote source URL, which has been edited with prefix `gzip://...`. Maybe there can be an explicit `xopen` before passing the raw data to `etree`, something like: ```python # Before tree = etree.parse(filename) root = tree.getroot() # After with xopen(filename) as f: data_str = f.read() root = etree.fromstring(data_str) ```
36
Pubmed dataset does not work in streaming mode
[ -0.49542149901390076, -0.012860135175287724, -0.05850343778729439, -0.2172498255968094, 0.19326817989349365, -0.05040168762207031, 0.2684558928012848, 0.15867960453033447, -0.25202327966690063, 0.05428050830960274, 0.019016943871974945, 0.11546295136213303, 0.048561666160821915, 0.2393696904182434, -0.05334846302866936, -0.0919935554265976, 0.0537148043513298, 0.263930082321167, 0.012646200135350227, -0.08072206377983093, 0.23156476020812988, -0.05139109492301941, -0.42279085516929626, -0.35795554518699646, 0.2659062147140503, -0.23530782759189606, 0.31664595007896423, 0.11785198748111725, -0.3129926025867462, -0.1891235113143921, -0.09591367095708847, 0.432567298412323, 0.052436307072639465, 0.232026144862175, -0.00011117687972728163, 0.0567595399916172, 0.3635055124759674, -0.1515420526266098, -0.2117137610912323, 0.003606320358812809, -0.1910194754600525, 0.12330059707164764, 0.15097351372241974, -0.15657258033752441, -0.30488714575767517, -0.5139453411102295, 0.04325220361351967, -0.5781788229942322, 0.2009686976671219, 0.37090715765953064, 0.2262774109840393, 0.23446248471736908, -0.15420861542224884, 0.02035696618258953, -0.014887922443449497, -0.06437472999095917, -0.1888069063425064, 0.12436556071043015, 0.3221427798271179, 0.39120057225227356, -0.15061479806900024, 0.4312296211719513, -0.12973272800445557, 0.16802231967449188, -0.07238898426294327, -0.005796311888843775, -0.1474095731973648, 0.017047449946403503, 0.26767581701278687, 0.19793683290481567, 0.5517259836196899, -0.10431326925754547, -0.09192336350679398, 0.0799887552857399, 0.027883930131793022, -0.008026070892810822, 0.08570843935012817, 0.1439337134361267, -0.13294577598571777, 0.1884949505329132, -0.26117008924484253, -0.23800037801265717, -0.29210221767425537, 0.06974104046821594, 0.11508035659790039, 0.09632626175880432, -0.12354326993227005, 0.058059848845005035, -0.10857389867305756, 0.1207273006439209, 0.35212013125419617, -0.06343800574541092, 0.08476627618074417, -0.1558263599872589, 0.031080393120646477, 0.11899391561746597, 0.009915584698319435, -0.11928883194923401, 0.1151454895734787, 0.25215619802474976, 0.3669084310531616, 0.3499443829059601, 0.22608371078968048, -0.0786484107375145, 0.24750198423862457, -0.4704795777797699, 0.005083071533590555, 0.04705757275223732, 0.45850610733032227, 0.35385897755622864, -0.1444670706987381, -0.2204548865556717, 0.11364670842885971, 0.12660931050777435, -0.039130907505750656, -0.3372122645378113, 0.16578911244869232, -0.2897462546825409, 0.1757747381925583, 0.08430297672748566, 0.07842656224966049, 0.021415896713733673, -0.08625569939613342, 0.3345510959625244, 0.12285462766885757, 0.1281232386827469, 0.054258719086647034, 0.11651889979839325, -0.06547313928604126, -0.11747109144926071, -0.20701196789741516, -0.32858148217201233, 0.07310353964567184, -0.13687223196029663, 0.16269101202487946, -0.6799332499504089, 0.23900938034057617, -0.038116056472063065, 0.23604720830917358, -0.10084870457649231, 0.1666686236858368, -0.09561829268932343, 0.27613386511802673, 0.2877768576145172, 0.37005317211151123, 0.2751704752445221, 0.07147587835788727, -0.08695752173662186, 0.09056033194065094, 0.11951497197151184, 0.13265842199325562, -0.19706542789936066, -0.06775248795747757, 0.15614670515060425, -0.13530325889587402, -0.013085752725601196, 0.014349712990224361, 0.25189587473869324, 0.032202739268541336, -0.6038600206375122, -0.187519371509552, -0.00033483339939266443, -0.011609415523707867, -0.0007647855672985315, 0.34043315052986145, 0.07283101975917816, -0.10756942629814148, -0.08147928863763809, -0.1530609279870987, -0.06661926954984665, 0.42691898345947266, 0.025169996544718742, -0.03184166178107262, -0.2439498007297516, 0.1180490255355835, 0.14021724462509155, 0.7325704097747803, -0.28031638264656067, -0.616005003452301, 0.24027663469314575, 0.04362870007753372, -0.12245509773492813, 0.26691514253616333, -0.017370758578181267, 0.3999924957752228, 0.16189736127853394, -0.04346150904893875, 0.256570428609848, -0.09165152162313461, 0.32246801257133484, -0.2948003113269806, -0.09778312593698502, -0.013934522867202759, 0.12319797277450562, 0.26801735162734985, 0.1330806165933609, 0.372247576713562, 0.6234687566757202, 0.2428392469882965, 0.05818990245461464, 0.21753734350204468, 0.14097271859645844, -0.055750370025634766, -0.24475730955600739, 0.1167166456580162, -0.249877467751503, 0.08020620048046112, -0.24306657910346985, 0.35467928647994995, 0.1991225630044937, -0.10249922424554825, -0.09889917075634003, -0.30995404720306396, -0.25928735733032227, -0.25451451539993286, -0.19521012902259827, 0.17498083412647247, 0.28866854310035706, -0.0820753276348114, 0.18280749022960663, -0.26766031980514526, -0.12085790187120438, -0.17658087611198425, -0.13556718826293945, -0.18539458513259888, 0.32681217789649963, -0.14214159548282623, -0.40968891978263855, 0.18133272230625153, -0.22556708753108978, 0.06078903004527092, 0.11769157648086548, -0.1764986664056778, 0.24096886813640594, -0.28521987795829773, 0.5891872644424438, 0.17343099415302277, -0.019325606524944305, 0.2746286690235138, -0.468269407749176, 0.14261646568775177, 0.34969380497932434, 0.15878136456012726, 0.14419324696063995, -0.5323165655136108, -0.18719559907913208, -0.02069755829870701, 0.011583201587200165, 0.21756525337696075, -0.03500682860612869, 0.32446396350860596, 0.09956546127796173, -0.2835083305835724, -0.1981372982263565, 0.19933286309242249, -0.10606255382299423, -0.06561289727687836, -0.1380622684955597, -0.49351736903190613, 0.20000867545604706, 0.4482526183128357, 0.28022512793540955, 0.10605484247207642, -0.20167461037635803, -0.41530880331993103, -0.21206580102443695, 0.192046120762825, 0.22986572980880737, 0.17905107140541077, 0.2924076020717621, 0.483873575925827, 0.19553345441818237, 0.11230753362178802, -0.38258084654808044, 0.056350983679294586, -0.10562887042760849, 0.0367111936211586, 0.3817441165447235, 0.3330925703048706, -0.19921261072158813, -0.527236819267273, 0.20515067875385284, 0.24290485680103302, 0.008633284829556942, -0.22366759181022644, -0.13254958391189575, -0.4500851035118103, -0.20880180597305298, -0.11698620021343231, 0.19991202652454376, 0.2209065556526184, -0.1804022490978241, 0.08145502209663391, 0.5543712377548218, -0.04560289531946182, 0.1884896457195282, -0.17894287407398224, 0.0740140974521637, 0.25462058186531067, -0.02795720100402832, -0.14161111414432526, -0.0008124234736897051, -0.028697121888399124, 0.23159444332122803, -0.10958822816610336, 0.22177617251873016, 0.2202996164560318, -0.0710371881723404, -0.09172382950782776, -0.4172487258911133, -0.08070644736289978, 0.286784827709198, 0.13042080402374268, 0.19261588156223297, -0.08831020444631577, 0.3884531855583191, 0.011442061513662338, 0.09836756438016891, 0.2531520128250122, -0.5159841179847717, 0.05068478360772133, -0.028681941330432892, 0.036153148859739304, 0.08658599108457565, -0.13554082810878754, -0.5106176137924194, -0.08382853120565414, -0.36287644505500793, -0.32997971773147583, -0.03237353637814522, -0.0033945292234420776, -0.04147052392363548, 0.17061647772789001, -0.0754985436797142, 0.10271641612052917, 0.17857135832309723, -0.2698867619037628, -0.2905867099761963, 0.36510297656059265, -0.2858891785144806, -0.5726096630096436, -0.029554132372140884, 0.3542298376560211, -0.032644134014844894, 0.5027905106544495, -0.2860243022441864, -0.017386525869369507, 0.21282429993152618, -0.3131963908672333, 0.2961843013763428, 0.039284590631723404, 0.298207551240921, -0.061530835926532745, -0.15482257306575775, -0.27296459674835205, 0.12257272750139236, -0.12914273142814636, 0.054295677691698074, 0.15150226652622223, 0.08607080578804016, 0.25611138343811035, 0.01117219403386116, 0.5960228443145752, 0.32616525888442993, 0.015509390272200108, 0.3825341761112213, -0.21993370354175568, 0.3688594102859497, -0.10529424250125885, -0.07027322798967361, 0.23069442808628082, 0.09598240256309509, 0.0934421718120575, 0.25689220428466797, 0.04442622512578964, -0.258035272359848, -0.16859470307826996, 0.0010199539829045534, -0.28508439660072327, -0.17328564822673798, -0.016641972586512566, -0.14252732694149017, 0.37028035521507263, 0.23578698933124542, 0.22649981081485748, 0.21348464488983154, -0.20271705090999603, -0.2114466279745102, 0.2539304494857788, -0.14975109696388245, 0.07289388030767441, -0.07049975544214249, 0.08056227117776871, -0.4585685133934021, 0.10371527820825577, 0.05462576076388359, 0.3572510778903961, -0.3043791651725769, -0.09089241176843643, 0.18315540254116058, -0.09317047148942947, 0.18072450160980225, -0.5930986404418945, 0.08322786539793015, 0.05609510466456413, 0.19451992213726044, -0.2921610474586487, 0.052993837743997574, -0.2660430073738098, 0.21835879981517792, 0.008792118169367313, 0.15694601833820343, -0.1496412605047226, 0.11090590804815292, 0.18342651426792145, -0.2314939945936203, 0.0526152066886425, -0.06544896960258484, -0.3621436059474945, -0.3720647096633911, -0.3463711738586426, -0.1264529973268509, -0.05303754657506943, -0.12924592196941376, -0.3764180541038513, -0.35658106207847595, 0.0654882863163948, 0.21020591259002686, -0.1770499050617218, 0.25126925110816956, 0.3020186424255371, 0.10393547266721725, 0.05728471651673317, 0.3143562376499176, 0.1671305000782013, 0.2605048716068268, 0.4355013370513916, 0.3095128834247589, 0.036426566541194916, 0.3017594814300537, -0.1405230611562729, -0.07664206624031067, 0.26771464943885803, -0.11286886036396027, 0.19808299839496613, 0.7195669412612915, 0.08091392368078232, -0.0017553063808009028, 0.22697821259498596, 0.2908667325973511, -0.07873597741127014, -0.12309806048870087, -0.5857947468757629, 0.35126563906669617, -0.04323553293943405, 0.05973132327198982, 0.17544683814048767, -0.002794212894514203, -0.1029171422123909, -0.06510211527347565, 0.040330320596694946, 0.6508147716522217, -0.012503555975854397, -0.07506579905748367, 0.00840675737708807, -0.07974570989608765, 0.3439754545688629, -0.10042961686849594, 0.19815273582935333, -0.1591573804616928, -0.5009783506393433, -0.1864980012178421, -0.07688388973474503, 0.21162371337413788, -0.24357189238071442, -0.34157177805900574, 0.08369886130094528, 0.2900688350200653, 0.28205567598342896, 0.08589980006217957, 0.23818035423755646, -0.2812211215496063, -0.10322815179824829, -0.49016836285591125, 0.10713503509759903, -0.21396826207637787, -0.1497802436351776, 0.030163802206516266, -0.07499751448631287, 0.010631212033331394, -0.16499820351600647, -0.16040360927581787, 0.15904805064201355, 0.20207475125789642, -0.0863000750541687, -0.2041395753622055, -0.430853933095932, 0.09343086928129196, 0.03091352991759777, -0.1309373825788498, 0.019356993958353996, -0.362193763256073, 0.21306808292865753, 0.20993928611278534, -0.22731871902942657, -0.17593488097190857, 0.15247729420661926, 0.24949519336223602, -0.28508827090263367, -0.31774601340293884, 0.22169657051563263, -0.006256581284105778, -0.37626057863235474, 0.24493683874607086, -0.1658431589603424, 0.3539476990699768, -0.06900884211063385, 0.0396837554872036, 0.09193653613328934, -0.21516363322734833, -0.28221163153648376, 0.1512606143951416, -0.1970585584640503, -0.035358164459466934, 0.3017224669456482, 0.5277124047279358, 0.03920162469148636, -0.1443900167942047, 0.5771017670631409, 0.30607083439826965, 0.328917920589447, 0.33440864086151123, 0.10548312962055206, -0.28141823410987854, -0.24023082852363586, -0.07338875532150269, 0.01574745588004589, 0.11217209696769714, 0.07209892570972443, -0.13191677629947662, -0.04847245663404465, 0.17154313623905182, 0.2757887542247772, -0.42042243480682373, 0.037884265184402466, -0.5283124446868896, -0.2402738481760025, -0.1833280771970749, -0.011041713878512383, -0.2043870985507965, 0.001116570900194347, 0.4576817750930786, -0.14038735628128052, 0.2224499136209488, -0.2108941227197647, -0.33994099497795105, -0.127749964594841, -0.19228461384773254, 0.14141438901424408, 0.10558654367923737, 0.05117334425449371, 0.252146452665329, -0.2810206115245819, 0.10869426280260086, 0.18293388187885284, -0.08505714684724808, -0.2633048892021179, 0.03623614460229874, 0.1697075366973877, 0.17906028032302856, -0.20224133133888245, -0.3815537691116333, -0.2564723789691925, -0.5013640522956848, -0.01647675782442093, 0.24526475369930267, -0.10271266102790833, 0.05426337942481041, -0.2819400131702423, 0.0022432671394199133, -0.13790294528007507, -0.08559796959161758, -0.11742369085550308, -0.24491560459136963, -0.05474633350968361, -0.22314779460430145, 0.0715542659163475, 0.14794275164604187, -0.030618228018283844, -0.09587672352790833, 0.05795352905988693, 0.42858996987342834, 0.17423608899116516, 0.592807412147522, -0.32811716198921204, -0.00410057557746768, 0.036021072417497635, 0.5546711087226868, 0.3745950758457184, -0.20910942554473877, -0.17270439863204956, -0.1216701790690422, 0.18432146310806274, -0.39987555146217346, -0.09466998279094696, -0.29282692074775696, -0.016908161342144012, 0.2511737048625946, 0.008219430223107338, 0.14703863859176636, -0.22931978106498718, -0.05484890937805176, 0.11603490263223648, 0.4107440412044525, -0.16743865609169006, -0.02161535620689392, 0.06085722893476486, 0.03964327648282051, 0.15741191804409027, -0.027024460956454277, 0.1807938814163208, -0.1739782691001892, 0.20426104962825775, 0.19285641610622406, 0.13299356400966644, 0.39803996682167053, -0.04172370955348015, -0.21685640513896942, -0.04346151277422905, 0.1499011069536209, 0.21082472801208496, -0.09966545552015305, 0.3914385139942169, 0.3163338005542755, 0.022369395941495895, -0.07874032109975815, -0.17524157464504242, -0.10406855493783951, -0.008103180676698685, 0.14187797904014587, 0.002124486491084099, -0.3284800350666046, -0.18253634870052338, 0.009587953798472881, 0.09131474047899246, 0.0005508982576429844, 0.3690012991428375, -0.057164400815963745, -0.015300978906452656, 0.15013229846954346, -0.49736812710762024, 0.17802917957305908, 0.02545233443379402, 0.19014933705329895, -0.29000988602638245, 0.3215314447879791, 0.08274328708648682, 0.19974032044410706, 0.37724053859710693, 0.4093950390815735, 0.22046145796775818, -0.05236238241195679, 0.11753303557634354, -0.08410634100437164, 0.276102215051651, -0.2887941896915436, 0.021565617993474007, 0.04729895666241646, 0.587814211845398, 0.21450701355934143, 0.23219802975654602, 0.1755494475364685, -0.17782437801361084, 0.2571427524089813, 0.04277828708291054, 0.06009029597043991, 0.01811523735523224, -0.0822349563241005, -0.11372078210115433, -0.02989848703145981, -0.057048387825489044, -0.41367146372795105, -0.40022727847099304, 0.23472505807876587, 0.27604547142982483, -0.2988554835319519, 0.15237025916576385, -0.3360207974910736, 0.09120823442935944, 0.3929389715194702, 0.48772162199020386, 0.035182759165763855, 0.0932062417268753, 0.31860077381134033, -0.5019060373306274, -0.5965461730957031, 0.2769610285758972, 0.13825206458568573, -0.11312592029571533, -0.05910634249448776, 0.11492970585823059, 0.37556561827659607, 0.26747602224349976, 0.21892566978931427, -0.23306187987327576, -0.22483231127262115, 0.12304149568080902, -0.0035337358713150024, -0.258823961019516, -0.08825872838497162, 0.12705999612808228, -0.25305992364883423, -0.2288217395544052, 0.45470714569091797, -0.20469246804714203, 0.18999844789505005, 0.09887614101171494, -0.17917025089263916, -0.2203468680381775, -0.11383499205112457, 0.2645880877971649, -0.12185273319482803, 0.19852682948112488, -0.30641019344329834, 0.0527583472430706, -0.13352085649967194, 0.21162351965904236, -0.30935415625572205, 0.1136157438158989, -0.029552431777119637, 0.41782256960868835, 0.11402130126953125, 0.0432770662009716, -0.10868504643440247, -0.009703101590275764, 0.02282056212425232, 0.019721802324056625, -0.12437710165977478, -0.18903513252735138, 0.008213463239371777, 0.031012484803795815, -0.15854446589946747, -0.0268088411539793, -0.2193160355091095, -0.2621329128742218, -0.24819310009479523, -0.4422614276409149, 0.30719414353370667, -0.24921812117099762, -0.3040749132633209, -0.2240728884935379, -0.07199307531118393, 0.242122620344162, 0.21371841430664062, -0.6211029887199402, 0.1802031248807907, 0.15070810914039612, -0.3009224832057953, 0.011879323050379753, 0.1030283272266388, -0.0950983390212059, 0.10050869733095169, -0.09847762435674667, -0.028345834463834763, 0.23772867023944855, -0.23472380638122559, -0.25476545095443726, -0.01598302088677883 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Note that we might change the heuristic and create a different config per file, at least in that case.
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
19
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Hi @severo, thanks for reporting. Yes, this happens because when non-streaming, a cast of all data is done in order to "concatenate" it all into a single dataset (thus the error), while this casting is not done while yielding item by item in streaming mode. Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
74
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Why do we want to concatenate the files? Is it the expected behavior for most datasets that lack a script and dataset info?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
23
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
These files are two different dataset configurations since they don't share the same schema. IMO the streaming mode should fail in this case, as @albertvillanova said. There is one challenge though: inferring the schema from the first example is not robust enough in the general case - especially if some fields are nullable. I guess we can at least make sure that no new columns are added
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
67
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
OK. So, if we make the streaming also fail, the dataset https://huggingface.co/datasets/huggingface/transformers-metadata will never be [viewable](https://github.com/huggingface/datasets-preview-backend/issues/144) (be it using streaming or fallback to downloading the files), right?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
27
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Yes, until we have a way for the user to specify explicitly that those two files are different configurations. We can maybe have some rule to detect this automatically, maybe checking the first line of each file ? That would mean that for dataset of 10,000+ files we would have to verify every single one of them just to know if there is one ore more configurations, so I'm not sure if this is a good idea
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
77
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
i think requiring the user to specify that those two files are different configurations is in that case perfectly reasonable. (Maybe at some point we could however detect this type of case and prompt them to define a config mapping etc)
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
41
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
OK, so, before closing the issue, what do you think should be done? > Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema? or nothing?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
45
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
We should at least raise an error if a new sample has column names that are missing, or if it has extra columns. No need to check for the type for now. I'm in favor of having an error especially because we want to avoid silent issues as much as possible - i.e. when something goes wrong (when schemas don't match or some data are missing) and no errors/warnings are raised. Consistency between streaming and non-streaming is also important.
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
79
For data-only datasets, streaming and non-streaming don't behave the same
[ -0.33813557028770447, -0.14874957501888275, -0.15710261464118958, -0.04972478002309799, 0.10561396181583405, -0.34091052412986755, 0.110003262758255, -0.09223263710737228, -0.16898846626281738, 0.032098885625600815, -0.2144332379102707, 0.028886962682008743, -0.045447785407304764, 0.380892276763916, -0.020835356786847115, -0.027882108464837074, 0.2113715410232544, 0.14808300137519836, -0.012440741993486881, -0.22922787070274353, 0.2304079681634903, -0.18994101881980896, -0.130815789103508, -0.38363662362098694, -0.006584043148905039, 0.0017597107216715813, 0.22325171530246735, -0.041252441704273224, -0.020701559260487556, 0.07513095438480377, 0.1702902913093567, 0.22802911698818207, -0.001742484513670206, 0.3195948004722595, -0.00010557826317381114, 0.006953490898013115, 0.30767518281936646, -0.17041777074337006, -0.34811490774154663, 0.06499878317117691, -0.26684027910232544, -0.029533592984080315, 0.02806393802165985, -0.04778071492910385, -0.045315470546483994, 0.02355358377099037, 0.29531851410865784, -0.49583128094673157, 0.13578534126281738, 0.12329543381929398, 0.2513158917427063, 0.05719482898712158, -0.3958260118961334, -0.010190294124186039, 0.008914693258702755, 0.3545483648777008, -0.12410078197717667, 0.039201002568006516, 0.22644394636154175, 0.24211382865905762, -0.30355027318000793, 0.30974406003952026, -0.25820598006248474, 0.2089165896177292, 0.08569198101758957, 0.02858814038336277, -0.4534057080745697, -0.0854194387793541, 0.16480031609535217, 0.5526157021522522, 0.2740979790687561, -0.07893160730600357, -0.2595582604408264, -0.2139432430267334, -0.18673591315746307, -0.21661487221717834, 0.0760328471660614, 0.24027642607688904, -0.11828332394361496, 0.0324212908744812, -0.38195884227752686, 0.18320977687835693, -0.11927010118961334, 0.20908668637275696, -0.2829779088497162, 0.09530270099639893, -0.08783068507909775, 0.041658543050289154, -0.34641680121421814, 0.07703632861375809, 0.2267492115497589, -0.45905518531799316, -0.007310833316296339, -0.2984955906867981, -0.21505743265151978, 0.18725378811359406, -0.014478691853582859, 0.2436058670282364, 0.05047955736517906, 0.13966532051563263, 0.46964913606643677, 0.2748229205608368, -0.0013801841996610165, 0.11970042437314987, 0.2266835719347, -0.17202308773994446, -0.013739732094109058, -0.1876862496137619, 0.37140563130378723, -0.03077036514878273, -0.358439177274704, -0.23088592290878296, 0.5297334790229797, 0.3742802143096924, 0.13724805414676666, -0.3138483166694641, 0.21883991360664368, -0.23730891942977905, -0.4239477515220642, 0.10092868655920029, -0.17444191873073578, 0.16697531938552856, 0.10855106264352798, 0.08603768795728683, 0.019010823220014572, 0.31651419401168823, -0.18557219207286835, 0.3377593755722046, -0.1600714921951294, -0.2973794639110565, -0.2927618622779846, -0.3388606309890747, -0.09385594725608826, 0.04019468277692795, 0.2815709412097931, -0.22500626742839813, 0.2845273017883301, 0.16205942630767822, 0.012709245085716248, 0.2688755691051483, 0.1076594814658165, -0.28031501173973083, 0.2928991913795471, 0.2458907812833786, 0.14928002655506134, 0.3355708122253418, 0.1386432945728302, 0.153416708111763, 0.004234923515468836, 0.15184326469898224, 0.1956745982170105, -0.004295966122299433, 0.5979579091072083, 0.2663435935974121, -0.3322840929031372, -0.36835262179374695, 0.07415715605020523, 0.5129789710044861, -0.27387967705726624, -0.6170785427093506, 0.06847994029521942, 0.005896535236388445, 0.16248001158237457, -0.08276575803756714, 0.12525728344917297, 0.0780608132481575, -0.34737926721572876, -0.03635238856077194, -0.03769339621067047, -0.11461066454648972, 0.5836045145988464, 0.28891730308532715, -0.1173364594578743, -0.41897013783454895, -0.1252160370349884, 0.029556168243288994, 0.3821128308773041, -0.1039443239569664, -0.3758028447628021, 0.44857367873191833, -0.024417225271463394, 0.32734623551368713, 0.32560113072395325, 0.3371337950229645, 0.4083283245563507, 0.06217266619205475, -0.08650876581668854, 0.2655453681945801, -0.1357206553220749, 0.13795894384384155, -0.2255553901195526, 0.11680395156145096, 0.17443782091140747, -0.059510864317417145, 0.11561891436576843, 0.36493155360221863, 0.2168927788734436, -0.030389541760087013, 0.13315115869045258, -0.004356747958809137, 0.17273472249507904, 0.04953400418162346, 0.23795659840106964, -0.007464742753654718, -0.3003001809120178, -0.264911949634552, -0.13093344867229462, -0.040736474096775055, 0.3751063942909241, -0.13097016513347626, 0.24948051571846008, -0.2394130527973175, 0.04797876253724098, -0.3494396209716797, 0.12938998639583588, -0.15029124915599823, 0.25492963194847107, 0.4255376160144806, -0.1947483867406845, 0.11605117470026016, -0.03768932819366455, 0.3274209499359131, -0.15625308454036713, -0.2024189829826355, 0.05615417659282684, 0.16363099217414856, 0.09563852101564407, -0.37533605098724365, -0.12337780743837357, -0.23677712678909302, -0.0007979355286806822, 0.2800166606903076, -0.13711105287075043, 0.17252685129642487, -0.16089275479316711, 0.3550257682800293, 0.022121824324131012, 0.4572359621524811, 0.22619594633579254, 0.0238247811794281, 0.19220052659511566, 0.36207297444343567, 0.28468117117881775, -0.09901362657546997, -0.3311249613761902, 0.40811237692832947, 0.14134371280670166, 0.23738573491573334, 0.28289711475372314, -0.15879428386688232, 0.23287148773670197, 0.1158469021320343, -0.37499842047691345, -0.02175689861178398, 0.15193507075309753, -0.1744416058063507, 0.11055468767881393, -0.06647995859384537, -0.5008018612861633, 0.19132494926452637, 0.2899836599826813, 0.006450069602578878, 0.17695684731006622, -0.09409862011671066, -0.4903101623058319, -0.10080423951148987, 0.3258691132068634, 0.28992047905921936, 0.4730588495731354, 0.34686270356178284, 0.45908355712890625, 0.04827530309557915, -0.06313139200210571, -0.5339774489402771, 0.13366621732711792, -0.022344445809721947, -0.2945893704891205, 0.35242095589637756, 0.1907598227262497, -0.21030737459659576, -0.5189204216003418, 0.1932850033044815, 0.007410709746181965, -0.1920037418603897, -0.17909352481365204, 0.14316384494304657, -0.4098193049430847, -0.24979999661445618, -0.0222468264400959, -0.27767956256866455, -0.15533682703971863, -0.3127438426017761, -0.025865526869893074, 0.39770203828811646, -0.2291800081729889, -0.03688458725810051, -0.19859790802001953, -0.07577229291200638, -0.046445827931165695, -0.1377411037683487, -0.15569444000720978, -0.09093690663576126, -0.08943778276443481, 0.22683581709861755, -0.06396683305501938, 0.23640374839305878, 0.28288739919662476, -0.015667788684368134, 0.02751866914331913, -0.2666582763195038, -0.2200714647769928, -0.0027861734852194786, -0.010044107213616371, 0.1609489470720291, -0.1217213049530983, 0.11998298764228821, 0.030770108103752136, -0.09808038175106049, 0.24517770111560822, -0.48517557978630066, -0.040295232087373734, 0.1384378969669342, -0.007359650917351246, 0.244397833943367, -0.2465360164642334, -0.10413802415132523, -0.028295738622546196, -0.3942900002002716, 0.10998192429542542, 0.06222899258136749, 0.06194927915930748, -0.01605621725320816, 0.025138380005955696, -0.18508565425872803, 0.0011037071235477924, 0.31034010648727417, -0.4304829239845276, -0.28072282671928406, 0.2630113661289215, -0.128278449177742, -0.2375883013010025, 0.09523335099220276, 0.21006780862808228, -0.08782411366701126, 0.6950345039367676, -0.2810173034667969, 0.051072753965854645, -0.13418519496917725, -0.02855263650417328, 0.2291102558374405, 0.0573783777654171, 0.1714332401752472, -0.25373709201812744, -0.22364065051078796, -0.30177000164985657, 0.22729551792144775, 0.03206485137343407, 0.10536244511604309, -0.1210140511393547, -0.08452025055885315, 0.311456561088562, 0.00141322601120919, 0.33294814825057983, -0.06769224256277084, -0.05665767565369606, 0.33876872062683105, 0.08130193501710892, 0.5461168885231018, -0.29943791031837463, 0.21924184262752533, 0.2322983741760254, 0.10455001890659332, -0.0424441397190094, 0.2366059124469757, 0.050985150039196014, -0.1572219878435135, -0.21672867238521576, 0.09316686540842056, -0.2847670018672943, -0.14731304347515106, 0.20111677050590515, -0.08689022064208984, 0.056727003306150436, 0.21635210514068604, 0.3566000461578369, -0.0037386722397059202, -0.11317628622055054, -0.22796909511089325, 0.09525199979543686, 0.13042432069778442, -0.03982696309685707, -0.15400226414203644, 0.13775652647018433, -0.3260960876941681, 0.1297440528869629, -0.1260087490081787, 0.3621481955051422, -0.13559210300445557, -0.45995205640792847, 0.14755751192569733, 0.16872301697731018, 0.16076675057411194, -0.35115331411361694, 0.06571181863546371, 0.027579063549637794, -0.053202684968709946, -0.22470663487911224, 0.022835372015833855, -0.471454381942749, -0.057832978665828705, 0.16168534755706787, -0.007696515880525112, -0.19668355584144592, 0.03997664898633957, -0.24062100052833557, 0.008581556379795074, 0.09489940851926804, -0.07122674584388733, -0.19179244339466095, 0.0016136253252625465, 0.003412142861634493, -0.1397341936826706, -0.05830127373337746, -0.14342385530471802, -0.4695218801498413, -0.24512702226638794, -0.38678374886512756, 0.22997872531414032, 0.15601380169391632, -0.10801544785499573, 0.06204759329557419, -0.11092152446508408, 0.0639960765838623, 0.2217860072851181, 0.3860326409339905, 0.12344180792570114, 0.2104869931936264, 0.23157164454460144, -0.10364178568124771, 0.30054834485054016, -0.048229068517684937, -0.2757921814918518, 0.4250457286834717, 0.2800157070159912, 0.23692500591278076, 0.4067394435405731, -0.043364834040403366, -0.1112479418516159, 0.008835799060761929, 0.05636720731854439, -0.035799261182546616, -0.10612204670906067, -0.4365645945072174, 0.34668397903442383, 0.14640453457832336, -0.2001355141401291, 0.20757924020290375, -0.07614671438932419, -0.24107399582862854, 0.06457718461751938, -0.11809885501861572, 0.7309544682502747, 0.31689026951789856, 0.30223649740219116, 0.126261368393898, -0.6012974977493286, 0.23822806775569916, -0.28931257128715515, 0.2281986027956009, -0.07455501705408096, -0.5834565162658691, -0.17573188245296478, -0.1286350041627884, 0.2331022322177887, 0.04677758738398552, -0.0623815581202507, 0.18928906321525574, -0.12056473642587662, 0.6827425956726074, 0.020276492461562157, -0.19191117584705353, -0.35113465785980225, 0.030537156388163567, -0.19320696592330933, 0.23364093899726868, -0.041535716503858566, 0.1447015106678009, -0.12433652579784393, -0.1232319325208664, -0.161526620388031, 0.14542563259601593, -0.09620162844657898, -0.16177456080913544, -0.25860750675201416, -0.20392541587352753, -0.5240041017532349, -0.4226389527320862, -0.44917476177215576, 0.26188647747039795, -0.1459210366010666, -0.23575459420681, -0.21898587048053741, 0.2888127267360687, 0.29204386472702026, 0.46876171231269836, -0.04990294203162193, -0.20888005197048187, 0.2901022136211395, 0.018930327147245407, -0.11214669793844223, 0.12179763615131378, -0.20708125829696655, -0.058465197682380676, 0.1419076919555664, 0.008486342616379261, -0.10178614407777786, -0.17268207669258118, -0.05624056234955788, 0.008278506807982922, 0.017314014956355095, -0.1241341233253479, 0.17355921864509583, -0.05296963080763817, 0.033977486193180084, 0.190542072057724, 0.021761219948530197, -0.055570438504219055, -0.4761725664138794, 0.5312466025352478, 0.19590620696544647, 0.2982969284057617, 0.10313388705253601, -0.47667568922042847, -0.39652103185653687, -0.19901764392852783, 0.10549130290746689, -0.0477914996445179, -0.045628421008586884, 0.15832537412643433, -0.1613420844078064, -0.17886219918727875, 0.18277254700660706, 0.0006665781256742775, -0.15230290591716766, 0.17143185436725616, -0.33963075280189514, -0.10263650864362717, -0.10302039980888367, 0.07022667676210403, 0.09227398782968521, -0.04258647561073303, -0.08986321091651917, -0.07811813056468964, 0.21120335161685944, -0.04602062702178955, -0.3997901380062103, -0.2447032481431961, 0.3136824667453766, 0.21686336398124695, -0.08819360285997391, 0.0992007851600647, 0.1480427235364914, -0.0006238067289814353, 0.1749470829963684, -0.015235996805131435, -0.22036658227443695, -0.30179500579833984, 0.09775017201900482, 0.180141881108284, 0.2357383370399475, -0.12862205505371094, -0.26738253235816956, -0.08248326182365417, -0.23616300523281097, -0.12320243567228317, 0.23570169508457184, 0.2502259314060211, -0.18470950424671173, -0.1444094330072403, 0.14563316106796265, 0.3856598436832428, -0.08389142155647278, 0.021290183067321777, -0.16373604536056519, 0.16189417243003845, -0.06694062054157257, -0.16139480471611023, 0.09606871008872986, -0.028071654960513115, 0.05746482312679291, -0.09631728380918503, 0.07099388539791107, 0.14807184040546417, 0.39052703976631165, -0.15862062573432922, 0.16085609793663025, 0.14012379944324493, 0.36574774980545044, 0.3671148419380188, 0.06302589923143387, -0.16400161385536194, 0.11783310770988464, 0.32315945625305176, -0.01857617497444153, 0.054244816303253174, 0.1032591164112091, -0.056072354316711426, 0.43548083305358887, 0.0006825663731433451, 0.26589250564575195, -0.15248826146125793, -0.023145807906985283, -0.07878787815570831, 0.047751426696777344, -0.1536761075258255, 0.31821176409721375, 0.4619155824184418, 0.056480586528778076, 0.17303936183452606, 0.028363704681396484, -0.09633086621761322, -0.09396537393331528, 0.3870595395565033, 0.11070260405540466, 0.3113744556903839, 0.3151417374610901, -0.07509411871433258, -0.15411785244941711, -0.23292309045791626, -0.17076563835144043, 0.19134332239627838, -0.3214898109436035, 0.49487486481666565, 0.11121763288974762, -0.3871282935142517, -0.3275620937347412, -0.11225340515375137, -0.09080182015895844, -0.12759412825107574, -0.11730103939771652, 0.0319274365901947, -0.2242177426815033, -0.21349824965000153, 0.036218639463186264, 0.04974117875099182, -0.05524817109107971, 0.2741601765155792, 0.23550868034362793, -0.027511823922395706, 0.14390724897384644, -0.35533204674720764, 0.07313958555459976, -0.1518641710281372, 0.20936498045921326, -0.08105356246232986, 0.195242241024971, 0.140518918633461, 0.009768316522240639, 0.6852946877479553, 0.3117181360721588, 0.12087173014879227, 0.08647479861974716, 0.11281516402959824, 0.21233691275119781, 0.2116396576166153, -0.19051533937454224, -0.11784085631370544, 0.24362455308437347, 0.3384440839290619, 0.013692745938897133, 0.2946963310241699, 0.3014233708381653, -0.23326654732227325, 0.35375386476516724, 0.056345678865909576, -0.17535792291164398, -0.28600451350212097, 0.1971055120229721, -0.08983173966407776, 0.03410392999649048, 0.04098391905426979, -0.4301771819591522, -0.2970721125602722, 0.006709012668579817, 0.028344081714749336, -0.30060088634490967, 0.21214279532432556, -0.00017934585048351437, 0.12311592698097229, 0.04248737543821335, 0.2884784936904907, -0.20611676573753357, 0.03454193100333214, 0.09290684759616852, -0.22685955464839935, -0.5508130788803101, 0.17629598081111908, -0.06355597823858261, 0.08867147564888, -0.30533042550086975, 0.12682224810123444, 0.1479954868555069, 0.0348561592400074, -0.0821099579334259, -0.09828602522611618, -0.07041258364915848, 0.16505730152130127, -0.20079396665096283, -0.1342902034521103, -0.008502700366079807, 0.07284267246723175, -0.2378082275390625, -0.36664238572120667, 0.2251182645559311, 0.14167669415473938, 0.31277209520339966, 0.3241508901119232, 0.09292188286781311, -0.06423988193273544, 0.02250079996883869, 0.3184148967266083, 0.22106891870498657, 0.402515709400177, -0.21555295586585999, -0.13719332218170166, 0.003804162610322237, -0.05097096413373947, -0.37510284781455994, 0.10622289031744003, -0.147953599691391, 0.3596746325492859, -0.10508036613464355, 0.0834224671125412, 0.11058557033538818, 0.43011370301246643, 0.05879522114992142, -0.01537963654845953, -0.2491624653339386, 0.10076181590557098, -0.26838213205337524, 0.032199420034885406, -0.07823940366506577, 0.18436849117279053, -0.08054244518280029, -0.15744782984256744, -0.08536987751722336, -0.218467578291893, 0.2682587802410126, -0.2511974573135376, -0.06938420981168747, -0.33616048097610474, 0.12906262278556824, 0.46942469477653503, 0.3797498345375061, -0.23183567821979523, 0.05720468983054161, 0.3395625352859497, -0.456384539604187, 0.15343162417411804, 0.13555996119976044, -0.14588308334350586, -0.16947828233242035, -0.20214036107063293, -0.01599385216832161, 0.2272903472185135, -0.38585230708122253, 0.04766592010855675, -0.1633564829826355 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
The most surprising part to me is the saving time. Wondering if it could be due to compression (`ParquetWriter` uses SNAPPY compression by default; it can be turned off with `to_parquet(..., compression=None)`).
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
32
Performance of `datasets` at scale
[ -0.7635977268218994, -0.0431685708463192, -0.30105313658714294, 0.39476776123046875, 0.15146106481552124, -0.01955404132604599, 0.47983041405677795, 0.16406558454036713, 0.21040721237659454, 0.06909936666488647, -0.19120082259178162, 0.04445762187242508, -0.06330306828022003, 0.5549514293670654, -0.15343374013900757, -0.013287607580423355, 0.006219430360943079, 0.07289370149374008, -0.5734259486198425, -0.22440709173679352, -0.10414361208677292, -0.3133721947669983, -0.22505459189414978, -0.31417375802993774, -0.1810869574546814, -0.23118549585342407, 0.027704397216439247, -0.11319797486066818, -0.20633390545845032, -0.15816117823123932, -0.21535301208496094, 0.14035584032535553, 0.10425809025764465, 0.3851255774497986, -0.00010446084343129769, -0.09338635951280594, 0.014956778846681118, 0.25564253330230713, -0.16316397488117218, 0.5148706436157227, -0.2821783423423767, -0.4453311562538147, -0.27260997891426086, -0.24954624474048615, 0.08557264506816864, -0.2536108195781708, -0.05419250205159187, -0.5169935822486877, -0.256854772567749, -0.19616246223449707, 0.2814379334449768, 0.1919327974319458, -0.6266632676124573, -0.08843014389276505, -0.12477639317512512, 0.24638095498085022, -0.2740824222564697, 0.2189890742301941, 0.18723830580711365, 0.11801401525735855, -0.27905014157295227, 0.24331223964691162, 0.0542791448533535, 0.10997235774993896, 0.11634526401758194, -0.02936800941824913, -0.08940338343381882, 0.16154225170612335, 0.1852172613143921, 0.2010069191455841, 0.535541296005249, -0.0971754938364029, -0.59735107421875, -0.4790472090244293, -0.24850329756736755, -0.07605285197496414, -0.26740938425064087, -0.07641397416591644, 0.07471787184476852, -0.03838344290852547, -0.572066605091095, 0.02495141699910164, -0.021290011703968048, -0.0032036935444921255, -0.20101366937160492, 0.04575033113360405, 0.058813728392124176, 0.03576704487204552, -0.04947677254676819, -0.034731101244688034, 0.1463986486196518, -0.3778398334980011, 0.31717848777770996, 0.06660271435976028, -0.3945848345756531, -0.17355698347091675, 0.18068036437034607, 0.1354745328426361, 0.21866150200366974, -0.14890088140964508, 0.20567378401756287, 0.14514468610286713, 0.13977482914924622, -0.06853367388248444, 0.4066666066646576, 0.3006843328475952, -0.0017745050135999918, -0.18302759528160095, 0.3654553294181824, -0.14083947241306305, -0.23291030526161194, 0.20383019745349884, 0.10953474044799805, 0.06004868820309639, -0.1486559361219406, -0.20407766103744507, -0.29163333773612976, -0.1517825424671173, -0.11759053170681, 0.2781131863594055, 0.25485295057296753, -0.296398788690567, -0.0655708909034729, 0.1732253134250641, 0.005184136796742678, 0.322977751493454, -0.21739819645881653, -0.09762377291917801, 0.017675276845693588, -0.24433472752571106, -0.25852683186531067, -0.19470931589603424, -0.10860881209373474, 0.011227380484342575, 0.1321922242641449, 0.014009957201778889, 0.24848733842372894, -0.059498805552721024, 0.10768065601587296, 0.20399951934814453, 0.17018891870975494, -0.30030500888824463, -0.12760646641254425, -0.0880102589726448, -0.025067651644349098, -0.00800907239317894, -0.1398678570985794, 0.33737000823020935, -0.14848293364048004, -0.03516652435064316, 0.008542736060917377, -0.12484662979841232, 0.36492836475372314, 0.23368877172470093, -0.2245156317949295, -0.1465851366519928, -0.32837820053100586, 0.48350298404693604, 0.055882856249809265, 0.05236291140317917, -0.08308287709951401, -0.03182190656661987, -0.2814180552959442, -0.024046074599027634, -0.11430428177118301, 0.24345488846302032, -0.49873021245002747, -0.10126203298568726, 0.044114649295806885, 0.12427821755409241, 0.04944246634840965, 0.6429823637008667, -0.3815690577030182, 0.1852688491344452, -0.011829239316284657, 0.20490053296089172, 0.4852517247200012, -0.03449220210313797, -0.4137507975101471, 0.25276848673820496, -0.08185489475727081, -0.16393090784549713, 0.09604097902774811, 0.19104760885238647, 0.4600697457790375, 0.04857288673520088, 0.09310821443796158, 0.3220031261444092, 0.05977862328290939, 0.18905802071094513, -0.28998592495918274, -0.11324426531791687, 0.08770442754030228, 0.15362344682216644, 0.21088750660419464, -0.002025860594585538, 0.30066347122192383, -0.2342369705438614, 0.147517591714859, -0.1451813280582428, 0.026084473356604576, 0.22506120800971985, -0.21858538687229156, -0.17584830522537231, 0.039140425622463226, -0.16489650309085846, 0.10247750580310822, 0.3031170964241028, 0.004967082757502794, 0.11596085876226425, 0.44276025891304016, -0.047346290200948715, -0.0501054972410202, 0.06976620107889175, 0.05083977058529854, 0.1415334939956665, 0.1415908932685852, 0.15445750951766968, -0.1233113631606102, -0.012251656502485275, -0.12104278057813644, -0.02632930688560009, -0.26004108786582947, -0.1474309116601944, -0.010853135026991367, 0.05850345641374588, 0.2707011103630066, -0.06634584814310074, 0.03858437016606331, -0.0282181017100811, -0.3023759126663208, -0.0360000915825367, -0.15989506244659424, 0.07637608051300049, 0.0066353329457342625, 0.11646601557731628, 0.5268729329109192, 0.5504664182662964, 0.17276951670646667, 0.37358954548835754, 0.5843510031700134, -0.2312052696943283, 0.0628291517496109, 0.09150516986846924, -0.3202269971370697, 0.48149290680885315, 0.1189415231347084, 0.3030836582183838, 0.14972533285617828, -0.35430753231048584, 0.07053129374980927, 0.15422610938549042, 0.1377669721841812, -0.0242286529392004, 0.3106445074081421, 0.16256467998027802, 0.4940667450428009, 0.3182826340198517, -0.102517269551754, 0.1392243355512619, 0.499496728181839, -0.18211360275745392, 0.15796718001365662, -0.0885498896241188, -0.24722234904766083, -0.09453444182872772, 0.32503074407577515, 0.09022507071495056, 0.5582574009895325, 0.3386375606060028, 0.35793164372444153, -0.014880343340337276, 0.05134716257452965, 0.08396601676940918, 0.24580569565296173, 0.023333970457315445, 0.04786837846040726, 0.28485214710235596, 0.21403399109840393, -0.21500442922115326, -0.4070436358451843, -0.2737131714820862, 0.07217588275671005, 0.02142173796892166, -0.004563627764582634, -0.03615215793251991, 0.0026051474269479513, 0.18692584335803986, 0.006770266219973564, 0.26312366127967834, -0.14215168356895447, -0.145924374461174, -0.03711526468396187, -0.20231495797634125, -0.053899943828582764, -0.06741559505462646, -0.19557008147239685, 0.3078635334968567, 0.1234976276755333, -0.03972409665584564, 0.24829712510108948, -0.150005504488945, -0.09760009497404099, 0.14049871265888214, -0.05542166903614998, 0.07158374041318893, 0.2175116389989853, -0.05208276957273483, 0.16002999246120453, 0.041716527193784714, -0.1587914377450943, 0.09008777141571045, -0.10769673436880112, -0.05646227300167084, -0.08376813679933548, 0.1794205904006958, -0.17506998777389526, 0.1842130720615387, 0.1747896820306778, -0.04801817983388901, 0.012479817494750023, -0.2250668704509735, 0.10555528849363327, -0.13724201917648315, 0.15274403989315033, -0.3009807765483856, -0.14748512208461761, -0.24162204563617706, 0.280819833278656, 0.018714921548962593, 0.046082183718681335, -0.056053124368190765, 0.10122620314359665, -0.12977731227874756, -0.08642666041851044, 0.2203688770532608, -0.32720616459846497, -0.29830092191696167, 0.19737404584884644, -0.0590689480304718, 0.025481486693024635, -0.407380074262619, -0.06082245707511902, 0.15006351470947266, 0.5533294677734375, -0.14042958617210388, 0.1093161329627037, -0.21022187173366547, 0.18134036660194397, 0.08302368223667145, 0.43042466044425964, 0.19423381984233856, -0.05662006139755249, -0.23795804381370544, -0.07382921129465103, -0.07199426740407944, -0.18383876979351044, 0.0474567748606205, -0.05733209103345871, -0.3194532096385956, 0.25147733092308044, 0.03472520038485527, 0.42931991815567017, -0.13025319576263428, -0.42916372418403625, 0.05213683098554611, 0.014433018863201141, 0.2729467749595642, -0.10548825562000275, -0.1349109411239624, 0.33740612864494324, 0.08802980929613113, -0.208692267537117, 0.35836848616600037, -0.11619456112384796, -0.1926882416009903, -0.17703470587730408, -0.18249766528606415, -0.0020285651553422213, -0.013947345316410065, 0.07087205350399017, -0.06915309280157089, 0.44709840416908264, 0.11327577382326126, 0.22020818293094635, -0.27536311745643616, 0.16304968297481537, 0.16416960954666138, -0.3551062345504761, -0.11110669374465942, -0.30641844868659973, -0.3079237639904022, 0.06200056150555611, -0.33715781569480896, 0.3312525451183319, -0.03975049406290054, 0.25084492564201355, 0.0031466330401599407, -0.11251578480005264, 0.004714570008218288, 0.2874824106693268, 0.4430709779262543, -0.33255815505981445, -0.04712923243641853, -0.11405835300683975, -0.2194361537694931, -0.31902599334716797, 0.06142910197377205, -0.3643839955329895, 0.0604054294526577, 0.13440224528312683, 0.3757288157939911, -0.03940531611442566, -0.0046652695164084435, 0.04739626497030258, 0.2691231071949005, -0.09847581386566162, -0.0794653445482254, -0.19936765730381012, 0.18091511726379395, 0.018803434446454048, 0.16449713706970215, -0.29774752259254456, 0.024602452293038368, -0.10084559768438339, -0.14886218309402466, -0.2699527442455292, -0.04919996112585068, 0.13134245574474335, 0.4104071855545044, 0.02502942457795143, 0.07347219437360764, 0.2926616072654724, 0.055566903203725815, 0.261761337518692, 0.07457637786865234, 0.269059419631958, -0.03454424813389778, -0.0679759681224823, 0.16438530385494232, -0.03183039650321007, 0.21780017018318176, 0.22380413115024567, 0.04120057821273804, -0.2725377678871155, -0.3675559163093567, 0.30091822147369385, -0.25124913454055786, 0.17208194732666016, 0.25938189029693604, 0.2534598112106323, -0.306196928024292, -0.22472159564495087, 0.6466032862663269, 0.08212924748659134, -0.10189715027809143, -0.005819033365696669, -0.14952489733695984, -0.11205613613128662, 0.11550159007310867, 0.2715865671634674, 0.6453539729118347, -0.1383928507566452, 0.07824438065290451, -0.3333333432674408, 0.10687630623579025, 0.2175428569316864, -0.11299081146717072, -0.020134733989834785, -0.22745153307914734, -0.49941736459732056, 0.10604343563318253, -0.18750445544719696, 0.20274247229099274, 0.3864424526691437, 0.15527096390724182, 0.1561519205570221, -0.03002326376736164, 0.024386998265981674, -0.21126548945903778, 0.16171617805957794, 0.01755332760512829, -0.14115794003009796, -0.15702521800994873, 0.2039683312177658, -0.036515478044748306, -0.027700617909431458, -0.21589861810207367, 0.1324525624513626, -0.1976940780878067, 0.20316758751869202, 0.02882036752998829, -0.21875661611557007, -0.12482018768787384, 0.21377094089984894, -0.3205908238887787, -0.40715262293815613, -0.11458534747362137, -0.0954580008983612, -0.09833225607872009, 0.1483244001865387, -0.09953925013542175, -0.05814744159579277, -0.21055682003498077, 0.3793618381023407, 0.3164684772491455, -0.08250725269317627, -0.08992759883403778, 0.19779843091964722, -0.13252830505371094, -0.20682528614997864, 0.03374583274126053, -0.030363529920578003, -0.14939793944358826, 0.04560394212603569, -0.12339093536138535, -0.5650177001953125, 0.004686813801527023, -0.015217228792607784, -0.03505170717835426, -0.033490560948848724, 0.18047751486301422, 0.24606189131736755, 0.214042529463768, 0.6840704679489136, 0.3526240289211273, -0.13934555649757385, -0.2736488878726959, 0.4846014082431793, 0.18486832082271576, 0.1209530308842659, -0.08210042119026184, -0.23184829950332642, -0.3851889967918396, -0.2760835289955139, 0.36823952198028564, 0.11599856615066528, 0.03512081876397133, 0.16484510898590088, -0.14196786284446716, -0.3539036214351654, 0.029481586068868637, -0.17796947062015533, 0.04508239030838013, -0.02702680602669716, -0.30628159642219543, -0.11812406778335571, -0.18522405624389648, 0.39684170484542847, 0.2733965218067169, 0.24468010663986206, 0.0762927383184433, -0.2871025800704956, -0.15255646407604218, 0.06865871697664261, -0.41066890954971313, -0.18185386061668396, 0.16939514875411987, 0.13245126605033875, 0.048433609306812286, 0.033689044415950775, 0.09232384711503983, -0.007389211095869541, 0.23633962869644165, -0.15885576605796814, -0.17861796915531158, -0.3503775894641876, 0.20819008350372314, 0.11097116768360138, -0.18925634026527405, -0.044743750244379044, 0.17708821594715118, -0.041115567088127136, -0.2084982842206955, -0.4842297434806824, 0.21675269305706024, 0.1952664703130722, -0.29648149013519287, -0.06621013581752777, 0.03332816809415817, -0.1861611157655716, -0.09311741590499878, 0.21772336959838867, 0.18292437493801117, 0.08289465308189392, -0.009460028260946274, 0.2314952313899994, 0.30175870656967163, -0.2187063843011856, -0.11060129106044769, 0.06056997552514076, 0.23475053906440735, 0.04639429599046707, 0.20243331789970398, -0.27326467633247375, 0.07910392433404922, 0.442496120929718, 0.6317548751831055, 0.49677637219429016, -0.03835659101605415, -0.17584329843521118, -0.055470824241638184, 0.3269091248512268, -0.24356159567832947, -0.5848161578178406, 0.1518346220254898, 0.12369191646575928, 0.3374846279621124, 0.2685619294643402, 0.45987117290496826, 0.11105823516845703, -0.1363856941461563, -0.18732285499572754, 0.06298499554395676, 0.08702187240123749, 0.07517750561237335, 0.5185866951942444, 0.37223657965660095, -0.15660715103149414, 0.41205206513404846, 0.11566612124443054, 0.3539960980415344, 0.5650328397750854, 0.08374352008104324, 0.4994075894355774, -0.07461123168468475, 0.248295396566391, -0.27623361349105835, -0.4168631434440613, 0.3601817488670349, 0.26602867245674133, -0.10666754841804504, 0.17862866818904877, -0.07595685869455338, -0.07627658545970917, -0.1447860449552536, -0.15263447165489197, -0.29600632190704346, 0.0627037063241005, -0.24983006715774536, -0.12904413044452667, -0.03847736865282059, -0.28464585542678833, -0.19537349045276642, 0.041756775230169296, -0.32295429706573486, -0.20526142418384552, 0.23876972496509552, -0.212222620844841, 0.27219152450561523, -0.3375519812107086, 0.25212815403938293, 0.03864991292357445, 0.07754155248403549, -0.09835021197795868, 0.21206021308898926, -0.05615139380097389, 0.12881731986999512, -0.0036598239094018936, 0.429874062538147, 0.12104886025190353, -0.010087202303111553, -0.05920209363102913, -0.003434479935094714, -0.1919446736574173, -0.07307944446802139, -0.27402856945991516, -0.039105374366045, -0.27226725220680237, -0.07594097405672073, 0.4518393576145172, 0.17022037506103516, -0.26325294375419617, 0.08709868043661118, -0.13089463114738464, -0.4998296797275543, -0.17483393847942352, 0.0713706687092781, 0.07001412659883499, -0.2022498995065689, 0.031648583710193634, -0.06828004866838455, -0.19968381524085999, -0.1826942265033722, 0.5816975831985474, -0.30581915378570557, -0.0074875676073133945, -0.02624756097793579, 0.12229694426059723, -0.312888503074646, 0.5994312167167664, 0.1578054428100586, 0.21828095614910126, -0.07166412472724915, -0.04934952035546303, -0.25191569328308105, 0.06785117834806442, -0.1349724978208542, 0.031112786382436752, -0.019039427861571312, 0.254123717546463, 0.20513665676116943, 0.23116038739681244, 0.4338483512401581, 0.08556022495031357, -0.14241787791252136, -0.05818278342485428, -0.3982545733451843, -0.20982512831687927, -0.5229934453964233, -0.012634560465812683, 0.05214959383010864, -0.301912397146225, 0.12351839244365692, -0.06244168058037758, 0.16096527874469757, -0.0778723731637001, 0.21051591634750366, -0.08859178423881531, -0.1237146183848381, 0.5896790623664856, -0.008517607115209103, 0.22915048897266388, -0.07792570441961288, 0.1402851939201355, -0.058079302310943604, -0.12439794838428497, -0.01662331633269787, 0.4873819351196289, 0.06639773398637772, 0.06215338781476021, -0.19054226577281952, -0.09603506326675415, 0.2820145785808563, 0.0832107737660408, 0.1626201719045639, 0.1927821785211563, 0.038728341460227966, -0.21160799264907837, -0.06859633326530457, 0.06472611427307129, -0.14897136390209198, 0.263054758310318, -0.05724025145173073, -0.099015973508358, 0.03310871869325638, -0.09852483123540878, 0.3373894691467285, 0.003065487602725625, -0.0853755995631218, -0.462190717458725, 0.24113251268863678, 0.030021579936146736, 0.0995301827788353, -0.16776801645755768, 0.06918162852525711, 0.4935241937637329, 0.06307590752840042, -0.05665510892868042, 0.3248343765735626, -0.26043570041656494, -0.21825578808784485, -0.004060063045471907, 0.24836544692516327, -0.3511219918727875, -0.3199547827243805, -0.10650918632745743, 0.024417012929916382 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
+1 to what @mariosasko mentioned. Also, @lvwerra did you parallelize `to_parquet` using similar approach in #2747? (we used multiprocessing at the shard level). I'm working on a similar PR to add multi_proc in `to_parquet` which might give you further speed up. Stas benchmarked his approach and mine in this [gist](https://gist.github.com/stas00/dc1597a1e245c5915cfeefa0eee6902c) for `lama` dataset when we were working on adding multi_proc support for `to_json`.
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
63
Performance of `datasets` at scale
[ -0.7635977268218994, -0.0431685708463192, -0.30105313658714294, 0.39476776123046875, 0.15146106481552124, -0.01955404132604599, 0.47983041405677795, 0.16406558454036713, 0.21040721237659454, 0.06909936666488647, -0.19120082259178162, 0.04445762187242508, -0.06330306828022003, 0.5549514293670654, -0.15343374013900757, -0.013287607580423355, 0.006219430360943079, 0.07289370149374008, -0.5734259486198425, -0.22440709173679352, -0.10414361208677292, -0.3133721947669983, -0.22505459189414978, -0.31417375802993774, -0.1810869574546814, -0.23118549585342407, 0.027704397216439247, -0.11319797486066818, -0.20633390545845032, -0.15816117823123932, -0.21535301208496094, 0.14035584032535553, 0.10425809025764465, 0.3851255774497986, -0.00010446084343129769, -0.09338635951280594, 0.014956778846681118, 0.25564253330230713, -0.16316397488117218, 0.5148706436157227, -0.2821783423423767, -0.4453311562538147, -0.27260997891426086, -0.24954624474048615, 0.08557264506816864, -0.2536108195781708, -0.05419250205159187, -0.5169935822486877, -0.256854772567749, -0.19616246223449707, 0.2814379334449768, 0.1919327974319458, -0.6266632676124573, -0.08843014389276505, -0.12477639317512512, 0.24638095498085022, -0.2740824222564697, 0.2189890742301941, 0.18723830580711365, 0.11801401525735855, -0.27905014157295227, 0.24331223964691162, 0.0542791448533535, 0.10997235774993896, 0.11634526401758194, -0.02936800941824913, -0.08940338343381882, 0.16154225170612335, 0.1852172613143921, 0.2010069191455841, 0.535541296005249, -0.0971754938364029, -0.59735107421875, -0.4790472090244293, -0.24850329756736755, -0.07605285197496414, -0.26740938425064087, -0.07641397416591644, 0.07471787184476852, -0.03838344290852547, -0.572066605091095, 0.02495141699910164, -0.021290011703968048, -0.0032036935444921255, -0.20101366937160492, 0.04575033113360405, 0.058813728392124176, 0.03576704487204552, -0.04947677254676819, -0.034731101244688034, 0.1463986486196518, -0.3778398334980011, 0.31717848777770996, 0.06660271435976028, -0.3945848345756531, -0.17355698347091675, 0.18068036437034607, 0.1354745328426361, 0.21866150200366974, -0.14890088140964508, 0.20567378401756287, 0.14514468610286713, 0.13977482914924622, -0.06853367388248444, 0.4066666066646576, 0.3006843328475952, -0.0017745050135999918, -0.18302759528160095, 0.3654553294181824, -0.14083947241306305, -0.23291030526161194, 0.20383019745349884, 0.10953474044799805, 0.06004868820309639, -0.1486559361219406, -0.20407766103744507, -0.29163333773612976, -0.1517825424671173, -0.11759053170681, 0.2781131863594055, 0.25485295057296753, -0.296398788690567, -0.0655708909034729, 0.1732253134250641, 0.005184136796742678, 0.322977751493454, -0.21739819645881653, -0.09762377291917801, 0.017675276845693588, -0.24433472752571106, -0.25852683186531067, -0.19470931589603424, -0.10860881209373474, 0.011227380484342575, 0.1321922242641449, 0.014009957201778889, 0.24848733842372894, -0.059498805552721024, 0.10768065601587296, 0.20399951934814453, 0.17018891870975494, -0.30030500888824463, -0.12760646641254425, -0.0880102589726448, -0.025067651644349098, -0.00800907239317894, -0.1398678570985794, 0.33737000823020935, -0.14848293364048004, -0.03516652435064316, 0.008542736060917377, -0.12484662979841232, 0.36492836475372314, 0.23368877172470093, -0.2245156317949295, -0.1465851366519928, -0.32837820053100586, 0.48350298404693604, 0.055882856249809265, 0.05236291140317917, -0.08308287709951401, -0.03182190656661987, -0.2814180552959442, -0.024046074599027634, -0.11430428177118301, 0.24345488846302032, -0.49873021245002747, -0.10126203298568726, 0.044114649295806885, 0.12427821755409241, 0.04944246634840965, 0.6429823637008667, -0.3815690577030182, 0.1852688491344452, -0.011829239316284657, 0.20490053296089172, 0.4852517247200012, -0.03449220210313797, -0.4137507975101471, 0.25276848673820496, -0.08185489475727081, -0.16393090784549713, 0.09604097902774811, 0.19104760885238647, 0.4600697457790375, 0.04857288673520088, 0.09310821443796158, 0.3220031261444092, 0.05977862328290939, 0.18905802071094513, -0.28998592495918274, -0.11324426531791687, 0.08770442754030228, 0.15362344682216644, 0.21088750660419464, -0.002025860594585538, 0.30066347122192383, -0.2342369705438614, 0.147517591714859, -0.1451813280582428, 0.026084473356604576, 0.22506120800971985, -0.21858538687229156, -0.17584830522537231, 0.039140425622463226, -0.16489650309085846, 0.10247750580310822, 0.3031170964241028, 0.004967082757502794, 0.11596085876226425, 0.44276025891304016, -0.047346290200948715, -0.0501054972410202, 0.06976620107889175, 0.05083977058529854, 0.1415334939956665, 0.1415908932685852, 0.15445750951766968, -0.1233113631606102, -0.012251656502485275, -0.12104278057813644, -0.02632930688560009, -0.26004108786582947, -0.1474309116601944, -0.010853135026991367, 0.05850345641374588, 0.2707011103630066, -0.06634584814310074, 0.03858437016606331, -0.0282181017100811, -0.3023759126663208, -0.0360000915825367, -0.15989506244659424, 0.07637608051300049, 0.0066353329457342625, 0.11646601557731628, 0.5268729329109192, 0.5504664182662964, 0.17276951670646667, 0.37358954548835754, 0.5843510031700134, -0.2312052696943283, 0.0628291517496109, 0.09150516986846924, -0.3202269971370697, 0.48149290680885315, 0.1189415231347084, 0.3030836582183838, 0.14972533285617828, -0.35430753231048584, 0.07053129374980927, 0.15422610938549042, 0.1377669721841812, -0.0242286529392004, 0.3106445074081421, 0.16256467998027802, 0.4940667450428009, 0.3182826340198517, -0.102517269551754, 0.1392243355512619, 0.499496728181839, -0.18211360275745392, 0.15796718001365662, -0.0885498896241188, -0.24722234904766083, -0.09453444182872772, 0.32503074407577515, 0.09022507071495056, 0.5582574009895325, 0.3386375606060028, 0.35793164372444153, -0.014880343340337276, 0.05134716257452965, 0.08396601676940918, 0.24580569565296173, 0.023333970457315445, 0.04786837846040726, 0.28485214710235596, 0.21403399109840393, -0.21500442922115326, -0.4070436358451843, -0.2737131714820862, 0.07217588275671005, 0.02142173796892166, -0.004563627764582634, -0.03615215793251991, 0.0026051474269479513, 0.18692584335803986, 0.006770266219973564, 0.26312366127967834, -0.14215168356895447, -0.145924374461174, -0.03711526468396187, -0.20231495797634125, -0.053899943828582764, -0.06741559505462646, -0.19557008147239685, 0.3078635334968567, 0.1234976276755333, -0.03972409665584564, 0.24829712510108948, -0.150005504488945, -0.09760009497404099, 0.14049871265888214, -0.05542166903614998, 0.07158374041318893, 0.2175116389989853, -0.05208276957273483, 0.16002999246120453, 0.041716527193784714, -0.1587914377450943, 0.09008777141571045, -0.10769673436880112, -0.05646227300167084, -0.08376813679933548, 0.1794205904006958, -0.17506998777389526, 0.1842130720615387, 0.1747896820306778, -0.04801817983388901, 0.012479817494750023, -0.2250668704509735, 0.10555528849363327, -0.13724201917648315, 0.15274403989315033, -0.3009807765483856, -0.14748512208461761, -0.24162204563617706, 0.280819833278656, 0.018714921548962593, 0.046082183718681335, -0.056053124368190765, 0.10122620314359665, -0.12977731227874756, -0.08642666041851044, 0.2203688770532608, -0.32720616459846497, -0.29830092191696167, 0.19737404584884644, -0.0590689480304718, 0.025481486693024635, -0.407380074262619, -0.06082245707511902, 0.15006351470947266, 0.5533294677734375, -0.14042958617210388, 0.1093161329627037, -0.21022187173366547, 0.18134036660194397, 0.08302368223667145, 0.43042466044425964, 0.19423381984233856, -0.05662006139755249, -0.23795804381370544, -0.07382921129465103, -0.07199426740407944, -0.18383876979351044, 0.0474567748606205, -0.05733209103345871, -0.3194532096385956, 0.25147733092308044, 0.03472520038485527, 0.42931991815567017, -0.13025319576263428, -0.42916372418403625, 0.05213683098554611, 0.014433018863201141, 0.2729467749595642, -0.10548825562000275, -0.1349109411239624, 0.33740612864494324, 0.08802980929613113, -0.208692267537117, 0.35836848616600037, -0.11619456112384796, -0.1926882416009903, -0.17703470587730408, -0.18249766528606415, -0.0020285651553422213, -0.013947345316410065, 0.07087205350399017, -0.06915309280157089, 0.44709840416908264, 0.11327577382326126, 0.22020818293094635, -0.27536311745643616, 0.16304968297481537, 0.16416960954666138, -0.3551062345504761, -0.11110669374465942, -0.30641844868659973, -0.3079237639904022, 0.06200056150555611, -0.33715781569480896, 0.3312525451183319, -0.03975049406290054, 0.25084492564201355, 0.0031466330401599407, -0.11251578480005264, 0.004714570008218288, 0.2874824106693268, 0.4430709779262543, -0.33255815505981445, -0.04712923243641853, -0.11405835300683975, -0.2194361537694931, -0.31902599334716797, 0.06142910197377205, -0.3643839955329895, 0.0604054294526577, 0.13440224528312683, 0.3757288157939911, -0.03940531611442566, -0.0046652695164084435, 0.04739626497030258, 0.2691231071949005, -0.09847581386566162, -0.0794653445482254, -0.19936765730381012, 0.18091511726379395, 0.018803434446454048, 0.16449713706970215, -0.29774752259254456, 0.024602452293038368, -0.10084559768438339, -0.14886218309402466, -0.2699527442455292, -0.04919996112585068, 0.13134245574474335, 0.4104071855545044, 0.02502942457795143, 0.07347219437360764, 0.2926616072654724, 0.055566903203725815, 0.261761337518692, 0.07457637786865234, 0.269059419631958, -0.03454424813389778, -0.0679759681224823, 0.16438530385494232, -0.03183039650321007, 0.21780017018318176, 0.22380413115024567, 0.04120057821273804, -0.2725377678871155, -0.3675559163093567, 0.30091822147369385, -0.25124913454055786, 0.17208194732666016, 0.25938189029693604, 0.2534598112106323, -0.306196928024292, -0.22472159564495087, 0.6466032862663269, 0.08212924748659134, -0.10189715027809143, -0.005819033365696669, -0.14952489733695984, -0.11205613613128662, 0.11550159007310867, 0.2715865671634674, 0.6453539729118347, -0.1383928507566452, 0.07824438065290451, -0.3333333432674408, 0.10687630623579025, 0.2175428569316864, -0.11299081146717072, -0.020134733989834785, -0.22745153307914734, -0.49941736459732056, 0.10604343563318253, -0.18750445544719696, 0.20274247229099274, 0.3864424526691437, 0.15527096390724182, 0.1561519205570221, -0.03002326376736164, 0.024386998265981674, -0.21126548945903778, 0.16171617805957794, 0.01755332760512829, -0.14115794003009796, -0.15702521800994873, 0.2039683312177658, -0.036515478044748306, -0.027700617909431458, -0.21589861810207367, 0.1324525624513626, -0.1976940780878067, 0.20316758751869202, 0.02882036752998829, -0.21875661611557007, -0.12482018768787384, 0.21377094089984894, -0.3205908238887787, -0.40715262293815613, -0.11458534747362137, -0.0954580008983612, -0.09833225607872009, 0.1483244001865387, -0.09953925013542175, -0.05814744159579277, -0.21055682003498077, 0.3793618381023407, 0.3164684772491455, -0.08250725269317627, -0.08992759883403778, 0.19779843091964722, -0.13252830505371094, -0.20682528614997864, 0.03374583274126053, -0.030363529920578003, -0.14939793944358826, 0.04560394212603569, -0.12339093536138535, -0.5650177001953125, 0.004686813801527023, -0.015217228792607784, -0.03505170717835426, -0.033490560948848724, 0.18047751486301422, 0.24606189131736755, 0.214042529463768, 0.6840704679489136, 0.3526240289211273, -0.13934555649757385, -0.2736488878726959, 0.4846014082431793, 0.18486832082271576, 0.1209530308842659, -0.08210042119026184, -0.23184829950332642, -0.3851889967918396, -0.2760835289955139, 0.36823952198028564, 0.11599856615066528, 0.03512081876397133, 0.16484510898590088, -0.14196786284446716, -0.3539036214351654, 0.029481586068868637, -0.17796947062015533, 0.04508239030838013, -0.02702680602669716, -0.30628159642219543, -0.11812406778335571, -0.18522405624389648, 0.39684170484542847, 0.2733965218067169, 0.24468010663986206, 0.0762927383184433, -0.2871025800704956, -0.15255646407604218, 0.06865871697664261, -0.41066890954971313, -0.18185386061668396, 0.16939514875411987, 0.13245126605033875, 0.048433609306812286, 0.033689044415950775, 0.09232384711503983, -0.007389211095869541, 0.23633962869644165, -0.15885576605796814, -0.17861796915531158, -0.3503775894641876, 0.20819008350372314, 0.11097116768360138, -0.18925634026527405, -0.044743750244379044, 0.17708821594715118, -0.041115567088127136, -0.2084982842206955, -0.4842297434806824, 0.21675269305706024, 0.1952664703130722, -0.29648149013519287, -0.06621013581752777, 0.03332816809415817, -0.1861611157655716, -0.09311741590499878, 0.21772336959838867, 0.18292437493801117, 0.08289465308189392, -0.009460028260946274, 0.2314952313899994, 0.30175870656967163, -0.2187063843011856, -0.11060129106044769, 0.06056997552514076, 0.23475053906440735, 0.04639429599046707, 0.20243331789970398, -0.27326467633247375, 0.07910392433404922, 0.442496120929718, 0.6317548751831055, 0.49677637219429016, -0.03835659101605415, -0.17584329843521118, -0.055470824241638184, 0.3269091248512268, -0.24356159567832947, -0.5848161578178406, 0.1518346220254898, 0.12369191646575928, 0.3374846279621124, 0.2685619294643402, 0.45987117290496826, 0.11105823516845703, -0.1363856941461563, -0.18732285499572754, 0.06298499554395676, 0.08702187240123749, 0.07517750561237335, 0.5185866951942444, 0.37223657965660095, -0.15660715103149414, 0.41205206513404846, 0.11566612124443054, 0.3539960980415344, 0.5650328397750854, 0.08374352008104324, 0.4994075894355774, -0.07461123168468475, 0.248295396566391, -0.27623361349105835, -0.4168631434440613, 0.3601817488670349, 0.26602867245674133, -0.10666754841804504, 0.17862866818904877, -0.07595685869455338, -0.07627658545970917, -0.1447860449552536, -0.15263447165489197, -0.29600632190704346, 0.0627037063241005, -0.24983006715774536, -0.12904413044452667, -0.03847736865282059, -0.28464585542678833, -0.19537349045276642, 0.041756775230169296, -0.32295429706573486, -0.20526142418384552, 0.23876972496509552, -0.212222620844841, 0.27219152450561523, -0.3375519812107086, 0.25212815403938293, 0.03864991292357445, 0.07754155248403549, -0.09835021197795868, 0.21206021308898926, -0.05615139380097389, 0.12881731986999512, -0.0036598239094018936, 0.429874062538147, 0.12104886025190353, -0.010087202303111553, -0.05920209363102913, -0.003434479935094714, -0.1919446736574173, -0.07307944446802139, -0.27402856945991516, -0.039105374366045, -0.27226725220680237, -0.07594097405672073, 0.4518393576145172, 0.17022037506103516, -0.26325294375419617, 0.08709868043661118, -0.13089463114738464, -0.4998296797275543, -0.17483393847942352, 0.0713706687092781, 0.07001412659883499, -0.2022498995065689, 0.031648583710193634, -0.06828004866838455, -0.19968381524085999, -0.1826942265033722, 0.5816975831985474, -0.30581915378570557, -0.0074875676073133945, -0.02624756097793579, 0.12229694426059723, -0.312888503074646, 0.5994312167167664, 0.1578054428100586, 0.21828095614910126, -0.07166412472724915, -0.04934952035546303, -0.25191569328308105, 0.06785117834806442, -0.1349724978208542, 0.031112786382436752, -0.019039427861571312, 0.254123717546463, 0.20513665676116943, 0.23116038739681244, 0.4338483512401581, 0.08556022495031357, -0.14241787791252136, -0.05818278342485428, -0.3982545733451843, -0.20982512831687927, -0.5229934453964233, -0.012634560465812683, 0.05214959383010864, -0.301912397146225, 0.12351839244365692, -0.06244168058037758, 0.16096527874469757, -0.0778723731637001, 0.21051591634750366, -0.08859178423881531, -0.1237146183848381, 0.5896790623664856, -0.008517607115209103, 0.22915048897266388, -0.07792570441961288, 0.1402851939201355, -0.058079302310943604, -0.12439794838428497, -0.01662331633269787, 0.4873819351196289, 0.06639773398637772, 0.06215338781476021, -0.19054226577281952, -0.09603506326675415, 0.2820145785808563, 0.0832107737660408, 0.1626201719045639, 0.1927821785211563, 0.038728341460227966, -0.21160799264907837, -0.06859633326530457, 0.06472611427307129, -0.14897136390209198, 0.263054758310318, -0.05724025145173073, -0.099015973508358, 0.03310871869325638, -0.09852483123540878, 0.3373894691467285, 0.003065487602725625, -0.0853755995631218, -0.462190717458725, 0.24113251268863678, 0.030021579936146736, 0.0995301827788353, -0.16776801645755768, 0.06918162852525711, 0.4935241937637329, 0.06307590752840042, -0.05665510892868042, 0.3248343765735626, -0.26043570041656494, -0.21825578808784485, -0.004060063045471907, 0.24836544692516327, -0.3511219918727875, -0.3199547827243805, -0.10650918632745743, 0.024417012929916382 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
@mariosasko I did not turn it off but I can try the next time - I have to run the pipeline again, anyway. @bhavitvyamalik Yes, I also sharded the dataset and used multiprocessing to save each shard. I'll have a closer look at your approach, too.
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
46
Performance of `datasets` at scale
[ -0.7635977268218994, -0.0431685708463192, -0.30105313658714294, 0.39476776123046875, 0.15146106481552124, -0.01955404132604599, 0.47983041405677795, 0.16406558454036713, 0.21040721237659454, 0.06909936666488647, -0.19120082259178162, 0.04445762187242508, -0.06330306828022003, 0.5549514293670654, -0.15343374013900757, -0.013287607580423355, 0.006219430360943079, 0.07289370149374008, -0.5734259486198425, -0.22440709173679352, -0.10414361208677292, -0.3133721947669983, -0.22505459189414978, -0.31417375802993774, -0.1810869574546814, -0.23118549585342407, 0.027704397216439247, -0.11319797486066818, -0.20633390545845032, -0.15816117823123932, -0.21535301208496094, 0.14035584032535553, 0.10425809025764465, 0.3851255774497986, -0.00010446084343129769, -0.09338635951280594, 0.014956778846681118, 0.25564253330230713, -0.16316397488117218, 0.5148706436157227, -0.2821783423423767, -0.4453311562538147, -0.27260997891426086, -0.24954624474048615, 0.08557264506816864, -0.2536108195781708, -0.05419250205159187, -0.5169935822486877, -0.256854772567749, -0.19616246223449707, 0.2814379334449768, 0.1919327974319458, -0.6266632676124573, -0.08843014389276505, -0.12477639317512512, 0.24638095498085022, -0.2740824222564697, 0.2189890742301941, 0.18723830580711365, 0.11801401525735855, -0.27905014157295227, 0.24331223964691162, 0.0542791448533535, 0.10997235774993896, 0.11634526401758194, -0.02936800941824913, -0.08940338343381882, 0.16154225170612335, 0.1852172613143921, 0.2010069191455841, 0.535541296005249, -0.0971754938364029, -0.59735107421875, -0.4790472090244293, -0.24850329756736755, -0.07605285197496414, -0.26740938425064087, -0.07641397416591644, 0.07471787184476852, -0.03838344290852547, -0.572066605091095, 0.02495141699910164, -0.021290011703968048, -0.0032036935444921255, -0.20101366937160492, 0.04575033113360405, 0.058813728392124176, 0.03576704487204552, -0.04947677254676819, -0.034731101244688034, 0.1463986486196518, -0.3778398334980011, 0.31717848777770996, 0.06660271435976028, -0.3945848345756531, -0.17355698347091675, 0.18068036437034607, 0.1354745328426361, 0.21866150200366974, -0.14890088140964508, 0.20567378401756287, 0.14514468610286713, 0.13977482914924622, -0.06853367388248444, 0.4066666066646576, 0.3006843328475952, -0.0017745050135999918, -0.18302759528160095, 0.3654553294181824, -0.14083947241306305, -0.23291030526161194, 0.20383019745349884, 0.10953474044799805, 0.06004868820309639, -0.1486559361219406, -0.20407766103744507, -0.29163333773612976, -0.1517825424671173, -0.11759053170681, 0.2781131863594055, 0.25485295057296753, -0.296398788690567, -0.0655708909034729, 0.1732253134250641, 0.005184136796742678, 0.322977751493454, -0.21739819645881653, -0.09762377291917801, 0.017675276845693588, -0.24433472752571106, -0.25852683186531067, -0.19470931589603424, -0.10860881209373474, 0.011227380484342575, 0.1321922242641449, 0.014009957201778889, 0.24848733842372894, -0.059498805552721024, 0.10768065601587296, 0.20399951934814453, 0.17018891870975494, -0.30030500888824463, -0.12760646641254425, -0.0880102589726448, -0.025067651644349098, -0.00800907239317894, -0.1398678570985794, 0.33737000823020935, -0.14848293364048004, -0.03516652435064316, 0.008542736060917377, -0.12484662979841232, 0.36492836475372314, 0.23368877172470093, -0.2245156317949295, -0.1465851366519928, -0.32837820053100586, 0.48350298404693604, 0.055882856249809265, 0.05236291140317917, -0.08308287709951401, -0.03182190656661987, -0.2814180552959442, -0.024046074599027634, -0.11430428177118301, 0.24345488846302032, -0.49873021245002747, -0.10126203298568726, 0.044114649295806885, 0.12427821755409241, 0.04944246634840965, 0.6429823637008667, -0.3815690577030182, 0.1852688491344452, -0.011829239316284657, 0.20490053296089172, 0.4852517247200012, -0.03449220210313797, -0.4137507975101471, 0.25276848673820496, -0.08185489475727081, -0.16393090784549713, 0.09604097902774811, 0.19104760885238647, 0.4600697457790375, 0.04857288673520088, 0.09310821443796158, 0.3220031261444092, 0.05977862328290939, 0.18905802071094513, -0.28998592495918274, -0.11324426531791687, 0.08770442754030228, 0.15362344682216644, 0.21088750660419464, -0.002025860594585538, 0.30066347122192383, -0.2342369705438614, 0.147517591714859, -0.1451813280582428, 0.026084473356604576, 0.22506120800971985, -0.21858538687229156, -0.17584830522537231, 0.039140425622463226, -0.16489650309085846, 0.10247750580310822, 0.3031170964241028, 0.004967082757502794, 0.11596085876226425, 0.44276025891304016, -0.047346290200948715, -0.0501054972410202, 0.06976620107889175, 0.05083977058529854, 0.1415334939956665, 0.1415908932685852, 0.15445750951766968, -0.1233113631606102, -0.012251656502485275, -0.12104278057813644, -0.02632930688560009, -0.26004108786582947, -0.1474309116601944, -0.010853135026991367, 0.05850345641374588, 0.2707011103630066, -0.06634584814310074, 0.03858437016606331, -0.0282181017100811, -0.3023759126663208, -0.0360000915825367, -0.15989506244659424, 0.07637608051300049, 0.0066353329457342625, 0.11646601557731628, 0.5268729329109192, 0.5504664182662964, 0.17276951670646667, 0.37358954548835754, 0.5843510031700134, -0.2312052696943283, 0.0628291517496109, 0.09150516986846924, -0.3202269971370697, 0.48149290680885315, 0.1189415231347084, 0.3030836582183838, 0.14972533285617828, -0.35430753231048584, 0.07053129374980927, 0.15422610938549042, 0.1377669721841812, -0.0242286529392004, 0.3106445074081421, 0.16256467998027802, 0.4940667450428009, 0.3182826340198517, -0.102517269551754, 0.1392243355512619, 0.499496728181839, -0.18211360275745392, 0.15796718001365662, -0.0885498896241188, -0.24722234904766083, -0.09453444182872772, 0.32503074407577515, 0.09022507071495056, 0.5582574009895325, 0.3386375606060028, 0.35793164372444153, -0.014880343340337276, 0.05134716257452965, 0.08396601676940918, 0.24580569565296173, 0.023333970457315445, 0.04786837846040726, 0.28485214710235596, 0.21403399109840393, -0.21500442922115326, -0.4070436358451843, -0.2737131714820862, 0.07217588275671005, 0.02142173796892166, -0.004563627764582634, -0.03615215793251991, 0.0026051474269479513, 0.18692584335803986, 0.006770266219973564, 0.26312366127967834, -0.14215168356895447, -0.145924374461174, -0.03711526468396187, -0.20231495797634125, -0.053899943828582764, -0.06741559505462646, -0.19557008147239685, 0.3078635334968567, 0.1234976276755333, -0.03972409665584564, 0.24829712510108948, -0.150005504488945, -0.09760009497404099, 0.14049871265888214, -0.05542166903614998, 0.07158374041318893, 0.2175116389989853, -0.05208276957273483, 0.16002999246120453, 0.041716527193784714, -0.1587914377450943, 0.09008777141571045, -0.10769673436880112, -0.05646227300167084, -0.08376813679933548, 0.1794205904006958, -0.17506998777389526, 0.1842130720615387, 0.1747896820306778, -0.04801817983388901, 0.012479817494750023, -0.2250668704509735, 0.10555528849363327, -0.13724201917648315, 0.15274403989315033, -0.3009807765483856, -0.14748512208461761, -0.24162204563617706, 0.280819833278656, 0.018714921548962593, 0.046082183718681335, -0.056053124368190765, 0.10122620314359665, -0.12977731227874756, -0.08642666041851044, 0.2203688770532608, -0.32720616459846497, -0.29830092191696167, 0.19737404584884644, -0.0590689480304718, 0.025481486693024635, -0.407380074262619, -0.06082245707511902, 0.15006351470947266, 0.5533294677734375, -0.14042958617210388, 0.1093161329627037, -0.21022187173366547, 0.18134036660194397, 0.08302368223667145, 0.43042466044425964, 0.19423381984233856, -0.05662006139755249, -0.23795804381370544, -0.07382921129465103, -0.07199426740407944, -0.18383876979351044, 0.0474567748606205, -0.05733209103345871, -0.3194532096385956, 0.25147733092308044, 0.03472520038485527, 0.42931991815567017, -0.13025319576263428, -0.42916372418403625, 0.05213683098554611, 0.014433018863201141, 0.2729467749595642, -0.10548825562000275, -0.1349109411239624, 0.33740612864494324, 0.08802980929613113, -0.208692267537117, 0.35836848616600037, -0.11619456112384796, -0.1926882416009903, -0.17703470587730408, -0.18249766528606415, -0.0020285651553422213, -0.013947345316410065, 0.07087205350399017, -0.06915309280157089, 0.44709840416908264, 0.11327577382326126, 0.22020818293094635, -0.27536311745643616, 0.16304968297481537, 0.16416960954666138, -0.3551062345504761, -0.11110669374465942, -0.30641844868659973, -0.3079237639904022, 0.06200056150555611, -0.33715781569480896, 0.3312525451183319, -0.03975049406290054, 0.25084492564201355, 0.0031466330401599407, -0.11251578480005264, 0.004714570008218288, 0.2874824106693268, 0.4430709779262543, -0.33255815505981445, -0.04712923243641853, -0.11405835300683975, -0.2194361537694931, -0.31902599334716797, 0.06142910197377205, -0.3643839955329895, 0.0604054294526577, 0.13440224528312683, 0.3757288157939911, -0.03940531611442566, -0.0046652695164084435, 0.04739626497030258, 0.2691231071949005, -0.09847581386566162, -0.0794653445482254, -0.19936765730381012, 0.18091511726379395, 0.018803434446454048, 0.16449713706970215, -0.29774752259254456, 0.024602452293038368, -0.10084559768438339, -0.14886218309402466, -0.2699527442455292, -0.04919996112585068, 0.13134245574474335, 0.4104071855545044, 0.02502942457795143, 0.07347219437360764, 0.2926616072654724, 0.055566903203725815, 0.261761337518692, 0.07457637786865234, 0.269059419631958, -0.03454424813389778, -0.0679759681224823, 0.16438530385494232, -0.03183039650321007, 0.21780017018318176, 0.22380413115024567, 0.04120057821273804, -0.2725377678871155, -0.3675559163093567, 0.30091822147369385, -0.25124913454055786, 0.17208194732666016, 0.25938189029693604, 0.2534598112106323, -0.306196928024292, -0.22472159564495087, 0.6466032862663269, 0.08212924748659134, -0.10189715027809143, -0.005819033365696669, -0.14952489733695984, -0.11205613613128662, 0.11550159007310867, 0.2715865671634674, 0.6453539729118347, -0.1383928507566452, 0.07824438065290451, -0.3333333432674408, 0.10687630623579025, 0.2175428569316864, -0.11299081146717072, -0.020134733989834785, -0.22745153307914734, -0.49941736459732056, 0.10604343563318253, -0.18750445544719696, 0.20274247229099274, 0.3864424526691437, 0.15527096390724182, 0.1561519205570221, -0.03002326376736164, 0.024386998265981674, -0.21126548945903778, 0.16171617805957794, 0.01755332760512829, -0.14115794003009796, -0.15702521800994873, 0.2039683312177658, -0.036515478044748306, -0.027700617909431458, -0.21589861810207367, 0.1324525624513626, -0.1976940780878067, 0.20316758751869202, 0.02882036752998829, -0.21875661611557007, -0.12482018768787384, 0.21377094089984894, -0.3205908238887787, -0.40715262293815613, -0.11458534747362137, -0.0954580008983612, -0.09833225607872009, 0.1483244001865387, -0.09953925013542175, -0.05814744159579277, -0.21055682003498077, 0.3793618381023407, 0.3164684772491455, -0.08250725269317627, -0.08992759883403778, 0.19779843091964722, -0.13252830505371094, -0.20682528614997864, 0.03374583274126053, -0.030363529920578003, -0.14939793944358826, 0.04560394212603569, -0.12339093536138535, -0.5650177001953125, 0.004686813801527023, -0.015217228792607784, -0.03505170717835426, -0.033490560948848724, 0.18047751486301422, 0.24606189131736755, 0.214042529463768, 0.6840704679489136, 0.3526240289211273, -0.13934555649757385, -0.2736488878726959, 0.4846014082431793, 0.18486832082271576, 0.1209530308842659, -0.08210042119026184, -0.23184829950332642, -0.3851889967918396, -0.2760835289955139, 0.36823952198028564, 0.11599856615066528, 0.03512081876397133, 0.16484510898590088, -0.14196786284446716, -0.3539036214351654, 0.029481586068868637, -0.17796947062015533, 0.04508239030838013, -0.02702680602669716, -0.30628159642219543, -0.11812406778335571, -0.18522405624389648, 0.39684170484542847, 0.2733965218067169, 0.24468010663986206, 0.0762927383184433, -0.2871025800704956, -0.15255646407604218, 0.06865871697664261, -0.41066890954971313, -0.18185386061668396, 0.16939514875411987, 0.13245126605033875, 0.048433609306812286, 0.033689044415950775, 0.09232384711503983, -0.007389211095869541, 0.23633962869644165, -0.15885576605796814, -0.17861796915531158, -0.3503775894641876, 0.20819008350372314, 0.11097116768360138, -0.18925634026527405, -0.044743750244379044, 0.17708821594715118, -0.041115567088127136, -0.2084982842206955, -0.4842297434806824, 0.21675269305706024, 0.1952664703130722, -0.29648149013519287, -0.06621013581752777, 0.03332816809415817, -0.1861611157655716, -0.09311741590499878, 0.21772336959838867, 0.18292437493801117, 0.08289465308189392, -0.009460028260946274, 0.2314952313899994, 0.30175870656967163, -0.2187063843011856, -0.11060129106044769, 0.06056997552514076, 0.23475053906440735, 0.04639429599046707, 0.20243331789970398, -0.27326467633247375, 0.07910392433404922, 0.442496120929718, 0.6317548751831055, 0.49677637219429016, -0.03835659101605415, -0.17584329843521118, -0.055470824241638184, 0.3269091248512268, -0.24356159567832947, -0.5848161578178406, 0.1518346220254898, 0.12369191646575928, 0.3374846279621124, 0.2685619294643402, 0.45987117290496826, 0.11105823516845703, -0.1363856941461563, -0.18732285499572754, 0.06298499554395676, 0.08702187240123749, 0.07517750561237335, 0.5185866951942444, 0.37223657965660095, -0.15660715103149414, 0.41205206513404846, 0.11566612124443054, 0.3539960980415344, 0.5650328397750854, 0.08374352008104324, 0.4994075894355774, -0.07461123168468475, 0.248295396566391, -0.27623361349105835, -0.4168631434440613, 0.3601817488670349, 0.26602867245674133, -0.10666754841804504, 0.17862866818904877, -0.07595685869455338, -0.07627658545970917, -0.1447860449552536, -0.15263447165489197, -0.29600632190704346, 0.0627037063241005, -0.24983006715774536, -0.12904413044452667, -0.03847736865282059, -0.28464585542678833, -0.19537349045276642, 0.041756775230169296, -0.32295429706573486, -0.20526142418384552, 0.23876972496509552, -0.212222620844841, 0.27219152450561523, -0.3375519812107086, 0.25212815403938293, 0.03864991292357445, 0.07754155248403549, -0.09835021197795868, 0.21206021308898926, -0.05615139380097389, 0.12881731986999512, -0.0036598239094018936, 0.429874062538147, 0.12104886025190353, -0.010087202303111553, -0.05920209363102913, -0.003434479935094714, -0.1919446736574173, -0.07307944446802139, -0.27402856945991516, -0.039105374366045, -0.27226725220680237, -0.07594097405672073, 0.4518393576145172, 0.17022037506103516, -0.26325294375419617, 0.08709868043661118, -0.13089463114738464, -0.4998296797275543, -0.17483393847942352, 0.0713706687092781, 0.07001412659883499, -0.2022498995065689, 0.031648583710193634, -0.06828004866838455, -0.19968381524085999, -0.1826942265033722, 0.5816975831985474, -0.30581915378570557, -0.0074875676073133945, -0.02624756097793579, 0.12229694426059723, -0.312888503074646, 0.5994312167167664, 0.1578054428100586, 0.21828095614910126, -0.07166412472724915, -0.04934952035546303, -0.25191569328308105, 0.06785117834806442, -0.1349724978208542, 0.031112786382436752, -0.019039427861571312, 0.254123717546463, 0.20513665676116943, 0.23116038739681244, 0.4338483512401581, 0.08556022495031357, -0.14241787791252136, -0.05818278342485428, -0.3982545733451843, -0.20982512831687927, -0.5229934453964233, -0.012634560465812683, 0.05214959383010864, -0.301912397146225, 0.12351839244365692, -0.06244168058037758, 0.16096527874469757, -0.0778723731637001, 0.21051591634750366, -0.08859178423881531, -0.1237146183848381, 0.5896790623664856, -0.008517607115209103, 0.22915048897266388, -0.07792570441961288, 0.1402851939201355, -0.058079302310943604, -0.12439794838428497, -0.01662331633269787, 0.4873819351196289, 0.06639773398637772, 0.06215338781476021, -0.19054226577281952, -0.09603506326675415, 0.2820145785808563, 0.0832107737660408, 0.1626201719045639, 0.1927821785211563, 0.038728341460227966, -0.21160799264907837, -0.06859633326530457, 0.06472611427307129, -0.14897136390209198, 0.263054758310318, -0.05724025145173073, -0.099015973508358, 0.03310871869325638, -0.09852483123540878, 0.3373894691467285, 0.003065487602725625, -0.0853755995631218, -0.462190717458725, 0.24113251268863678, 0.030021579936146736, 0.0995301827788353, -0.16776801645755768, 0.06918162852525711, 0.4935241937637329, 0.06307590752840042, -0.05665510892868042, 0.3248343765735626, -0.26043570041656494, -0.21825578808784485, -0.004060063045471907, 0.24836544692516327, -0.3511219918727875, -0.3199547827243805, -0.10650918632745743, 0.024417012929916382 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
Is there a way to read from the cache files directly as a dataset in its own
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
17
Performance of `datasets` at scale
[ -0.7635977268218994, -0.0431685708463192, -0.30105313658714294, 0.39476776123046875, 0.15146106481552124, -0.01955404132604599, 0.47983041405677795, 0.16406558454036713, 0.21040721237659454, 0.06909936666488647, -0.19120082259178162, 0.04445762187242508, -0.06330306828022003, 0.5549514293670654, -0.15343374013900757, -0.013287607580423355, 0.006219430360943079, 0.07289370149374008, -0.5734259486198425, -0.22440709173679352, -0.10414361208677292, -0.3133721947669983, -0.22505459189414978, -0.31417375802993774, -0.1810869574546814, -0.23118549585342407, 0.027704397216439247, -0.11319797486066818, -0.20633390545845032, -0.15816117823123932, -0.21535301208496094, 0.14035584032535553, 0.10425809025764465, 0.3851255774497986, -0.00010446084343129769, -0.09338635951280594, 0.014956778846681118, 0.25564253330230713, -0.16316397488117218, 0.5148706436157227, -0.2821783423423767, -0.4453311562538147, -0.27260997891426086, -0.24954624474048615, 0.08557264506816864, -0.2536108195781708, -0.05419250205159187, -0.5169935822486877, -0.256854772567749, -0.19616246223449707, 0.2814379334449768, 0.1919327974319458, -0.6266632676124573, -0.08843014389276505, -0.12477639317512512, 0.24638095498085022, -0.2740824222564697, 0.2189890742301941, 0.18723830580711365, 0.11801401525735855, -0.27905014157295227, 0.24331223964691162, 0.0542791448533535, 0.10997235774993896, 0.11634526401758194, -0.02936800941824913, -0.08940338343381882, 0.16154225170612335, 0.1852172613143921, 0.2010069191455841, 0.535541296005249, -0.0971754938364029, -0.59735107421875, -0.4790472090244293, -0.24850329756736755, -0.07605285197496414, -0.26740938425064087, -0.07641397416591644, 0.07471787184476852, -0.03838344290852547, -0.572066605091095, 0.02495141699910164, -0.021290011703968048, -0.0032036935444921255, -0.20101366937160492, 0.04575033113360405, 0.058813728392124176, 0.03576704487204552, -0.04947677254676819, -0.034731101244688034, 0.1463986486196518, -0.3778398334980011, 0.31717848777770996, 0.06660271435976028, -0.3945848345756531, -0.17355698347091675, 0.18068036437034607, 0.1354745328426361, 0.21866150200366974, -0.14890088140964508, 0.20567378401756287, 0.14514468610286713, 0.13977482914924622, -0.06853367388248444, 0.4066666066646576, 0.3006843328475952, -0.0017745050135999918, -0.18302759528160095, 0.3654553294181824, -0.14083947241306305, -0.23291030526161194, 0.20383019745349884, 0.10953474044799805, 0.06004868820309639, -0.1486559361219406, -0.20407766103744507, -0.29163333773612976, -0.1517825424671173, -0.11759053170681, 0.2781131863594055, 0.25485295057296753, -0.296398788690567, -0.0655708909034729, 0.1732253134250641, 0.005184136796742678, 0.322977751493454, -0.21739819645881653, -0.09762377291917801, 0.017675276845693588, -0.24433472752571106, -0.25852683186531067, -0.19470931589603424, -0.10860881209373474, 0.011227380484342575, 0.1321922242641449, 0.014009957201778889, 0.24848733842372894, -0.059498805552721024, 0.10768065601587296, 0.20399951934814453, 0.17018891870975494, -0.30030500888824463, -0.12760646641254425, -0.0880102589726448, -0.025067651644349098, -0.00800907239317894, -0.1398678570985794, 0.33737000823020935, -0.14848293364048004, -0.03516652435064316, 0.008542736060917377, -0.12484662979841232, 0.36492836475372314, 0.23368877172470093, -0.2245156317949295, -0.1465851366519928, -0.32837820053100586, 0.48350298404693604, 0.055882856249809265, 0.05236291140317917, -0.08308287709951401, -0.03182190656661987, -0.2814180552959442, -0.024046074599027634, -0.11430428177118301, 0.24345488846302032, -0.49873021245002747, -0.10126203298568726, 0.044114649295806885, 0.12427821755409241, 0.04944246634840965, 0.6429823637008667, -0.3815690577030182, 0.1852688491344452, -0.011829239316284657, 0.20490053296089172, 0.4852517247200012, -0.03449220210313797, -0.4137507975101471, 0.25276848673820496, -0.08185489475727081, -0.16393090784549713, 0.09604097902774811, 0.19104760885238647, 0.4600697457790375, 0.04857288673520088, 0.09310821443796158, 0.3220031261444092, 0.05977862328290939, 0.18905802071094513, -0.28998592495918274, -0.11324426531791687, 0.08770442754030228, 0.15362344682216644, 0.21088750660419464, -0.002025860594585538, 0.30066347122192383, -0.2342369705438614, 0.147517591714859, -0.1451813280582428, 0.026084473356604576, 0.22506120800971985, -0.21858538687229156, -0.17584830522537231, 0.039140425622463226, -0.16489650309085846, 0.10247750580310822, 0.3031170964241028, 0.004967082757502794, 0.11596085876226425, 0.44276025891304016, -0.047346290200948715, -0.0501054972410202, 0.06976620107889175, 0.05083977058529854, 0.1415334939956665, 0.1415908932685852, 0.15445750951766968, -0.1233113631606102, -0.012251656502485275, -0.12104278057813644, -0.02632930688560009, -0.26004108786582947, -0.1474309116601944, -0.010853135026991367, 0.05850345641374588, 0.2707011103630066, -0.06634584814310074, 0.03858437016606331, -0.0282181017100811, -0.3023759126663208, -0.0360000915825367, -0.15989506244659424, 0.07637608051300049, 0.0066353329457342625, 0.11646601557731628, 0.5268729329109192, 0.5504664182662964, 0.17276951670646667, 0.37358954548835754, 0.5843510031700134, -0.2312052696943283, 0.0628291517496109, 0.09150516986846924, -0.3202269971370697, 0.48149290680885315, 0.1189415231347084, 0.3030836582183838, 0.14972533285617828, -0.35430753231048584, 0.07053129374980927, 0.15422610938549042, 0.1377669721841812, -0.0242286529392004, 0.3106445074081421, 0.16256467998027802, 0.4940667450428009, 0.3182826340198517, -0.102517269551754, 0.1392243355512619, 0.499496728181839, -0.18211360275745392, 0.15796718001365662, -0.0885498896241188, -0.24722234904766083, -0.09453444182872772, 0.32503074407577515, 0.09022507071495056, 0.5582574009895325, 0.3386375606060028, 0.35793164372444153, -0.014880343340337276, 0.05134716257452965, 0.08396601676940918, 0.24580569565296173, 0.023333970457315445, 0.04786837846040726, 0.28485214710235596, 0.21403399109840393, -0.21500442922115326, -0.4070436358451843, -0.2737131714820862, 0.07217588275671005, 0.02142173796892166, -0.004563627764582634, -0.03615215793251991, 0.0026051474269479513, 0.18692584335803986, 0.006770266219973564, 0.26312366127967834, -0.14215168356895447, -0.145924374461174, -0.03711526468396187, -0.20231495797634125, -0.053899943828582764, -0.06741559505462646, -0.19557008147239685, 0.3078635334968567, 0.1234976276755333, -0.03972409665584564, 0.24829712510108948, -0.150005504488945, -0.09760009497404099, 0.14049871265888214, -0.05542166903614998, 0.07158374041318893, 0.2175116389989853, -0.05208276957273483, 0.16002999246120453, 0.041716527193784714, -0.1587914377450943, 0.09008777141571045, -0.10769673436880112, -0.05646227300167084, -0.08376813679933548, 0.1794205904006958, -0.17506998777389526, 0.1842130720615387, 0.1747896820306778, -0.04801817983388901, 0.012479817494750023, -0.2250668704509735, 0.10555528849363327, -0.13724201917648315, 0.15274403989315033, -0.3009807765483856, -0.14748512208461761, -0.24162204563617706, 0.280819833278656, 0.018714921548962593, 0.046082183718681335, -0.056053124368190765, 0.10122620314359665, -0.12977731227874756, -0.08642666041851044, 0.2203688770532608, -0.32720616459846497, -0.29830092191696167, 0.19737404584884644, -0.0590689480304718, 0.025481486693024635, -0.407380074262619, -0.06082245707511902, 0.15006351470947266, 0.5533294677734375, -0.14042958617210388, 0.1093161329627037, -0.21022187173366547, 0.18134036660194397, 0.08302368223667145, 0.43042466044425964, 0.19423381984233856, -0.05662006139755249, -0.23795804381370544, -0.07382921129465103, -0.07199426740407944, -0.18383876979351044, 0.0474567748606205, -0.05733209103345871, -0.3194532096385956, 0.25147733092308044, 0.03472520038485527, 0.42931991815567017, -0.13025319576263428, -0.42916372418403625, 0.05213683098554611, 0.014433018863201141, 0.2729467749595642, -0.10548825562000275, -0.1349109411239624, 0.33740612864494324, 0.08802980929613113, -0.208692267537117, 0.35836848616600037, -0.11619456112384796, -0.1926882416009903, -0.17703470587730408, -0.18249766528606415, -0.0020285651553422213, -0.013947345316410065, 0.07087205350399017, -0.06915309280157089, 0.44709840416908264, 0.11327577382326126, 0.22020818293094635, -0.27536311745643616, 0.16304968297481537, 0.16416960954666138, -0.3551062345504761, -0.11110669374465942, -0.30641844868659973, -0.3079237639904022, 0.06200056150555611, -0.33715781569480896, 0.3312525451183319, -0.03975049406290054, 0.25084492564201355, 0.0031466330401599407, -0.11251578480005264, 0.004714570008218288, 0.2874824106693268, 0.4430709779262543, -0.33255815505981445, -0.04712923243641853, -0.11405835300683975, -0.2194361537694931, -0.31902599334716797, 0.06142910197377205, -0.3643839955329895, 0.0604054294526577, 0.13440224528312683, 0.3757288157939911, -0.03940531611442566, -0.0046652695164084435, 0.04739626497030258, 0.2691231071949005, -0.09847581386566162, -0.0794653445482254, -0.19936765730381012, 0.18091511726379395, 0.018803434446454048, 0.16449713706970215, -0.29774752259254456, 0.024602452293038368, -0.10084559768438339, -0.14886218309402466, -0.2699527442455292, -0.04919996112585068, 0.13134245574474335, 0.4104071855545044, 0.02502942457795143, 0.07347219437360764, 0.2926616072654724, 0.055566903203725815, 0.261761337518692, 0.07457637786865234, 0.269059419631958, -0.03454424813389778, -0.0679759681224823, 0.16438530385494232, -0.03183039650321007, 0.21780017018318176, 0.22380413115024567, 0.04120057821273804, -0.2725377678871155, -0.3675559163093567, 0.30091822147369385, -0.25124913454055786, 0.17208194732666016, 0.25938189029693604, 0.2534598112106323, -0.306196928024292, -0.22472159564495087, 0.6466032862663269, 0.08212924748659134, -0.10189715027809143, -0.005819033365696669, -0.14952489733695984, -0.11205613613128662, 0.11550159007310867, 0.2715865671634674, 0.6453539729118347, -0.1383928507566452, 0.07824438065290451, -0.3333333432674408, 0.10687630623579025, 0.2175428569316864, -0.11299081146717072, -0.020134733989834785, -0.22745153307914734, -0.49941736459732056, 0.10604343563318253, -0.18750445544719696, 0.20274247229099274, 0.3864424526691437, 0.15527096390724182, 0.1561519205570221, -0.03002326376736164, 0.024386998265981674, -0.21126548945903778, 0.16171617805957794, 0.01755332760512829, -0.14115794003009796, -0.15702521800994873, 0.2039683312177658, -0.036515478044748306, -0.027700617909431458, -0.21589861810207367, 0.1324525624513626, -0.1976940780878067, 0.20316758751869202, 0.02882036752998829, -0.21875661611557007, -0.12482018768787384, 0.21377094089984894, -0.3205908238887787, -0.40715262293815613, -0.11458534747362137, -0.0954580008983612, -0.09833225607872009, 0.1483244001865387, -0.09953925013542175, -0.05814744159579277, -0.21055682003498077, 0.3793618381023407, 0.3164684772491455, -0.08250725269317627, -0.08992759883403778, 0.19779843091964722, -0.13252830505371094, -0.20682528614997864, 0.03374583274126053, -0.030363529920578003, -0.14939793944358826, 0.04560394212603569, -0.12339093536138535, -0.5650177001953125, 0.004686813801527023, -0.015217228792607784, -0.03505170717835426, -0.033490560948848724, 0.18047751486301422, 0.24606189131736755, 0.214042529463768, 0.6840704679489136, 0.3526240289211273, -0.13934555649757385, -0.2736488878726959, 0.4846014082431793, 0.18486832082271576, 0.1209530308842659, -0.08210042119026184, -0.23184829950332642, -0.3851889967918396, -0.2760835289955139, 0.36823952198028564, 0.11599856615066528, 0.03512081876397133, 0.16484510898590088, -0.14196786284446716, -0.3539036214351654, 0.029481586068868637, -0.17796947062015533, 0.04508239030838013, -0.02702680602669716, -0.30628159642219543, -0.11812406778335571, -0.18522405624389648, 0.39684170484542847, 0.2733965218067169, 0.24468010663986206, 0.0762927383184433, -0.2871025800704956, -0.15255646407604218, 0.06865871697664261, -0.41066890954971313, -0.18185386061668396, 0.16939514875411987, 0.13245126605033875, 0.048433609306812286, 0.033689044415950775, 0.09232384711503983, -0.007389211095869541, 0.23633962869644165, -0.15885576605796814, -0.17861796915531158, -0.3503775894641876, 0.20819008350372314, 0.11097116768360138, -0.18925634026527405, -0.044743750244379044, 0.17708821594715118, -0.041115567088127136, -0.2084982842206955, -0.4842297434806824, 0.21675269305706024, 0.1952664703130722, -0.29648149013519287, -0.06621013581752777, 0.03332816809415817, -0.1861611157655716, -0.09311741590499878, 0.21772336959838867, 0.18292437493801117, 0.08289465308189392, -0.009460028260946274, 0.2314952313899994, 0.30175870656967163, -0.2187063843011856, -0.11060129106044769, 0.06056997552514076, 0.23475053906440735, 0.04639429599046707, 0.20243331789970398, -0.27326467633247375, 0.07910392433404922, 0.442496120929718, 0.6317548751831055, 0.49677637219429016, -0.03835659101605415, -0.17584329843521118, -0.055470824241638184, 0.3269091248512268, -0.24356159567832947, -0.5848161578178406, 0.1518346220254898, 0.12369191646575928, 0.3374846279621124, 0.2685619294643402, 0.45987117290496826, 0.11105823516845703, -0.1363856941461563, -0.18732285499572754, 0.06298499554395676, 0.08702187240123749, 0.07517750561237335, 0.5185866951942444, 0.37223657965660095, -0.15660715103149414, 0.41205206513404846, 0.11566612124443054, 0.3539960980415344, 0.5650328397750854, 0.08374352008104324, 0.4994075894355774, -0.07461123168468475, 0.248295396566391, -0.27623361349105835, -0.4168631434440613, 0.3601817488670349, 0.26602867245674133, -0.10666754841804504, 0.17862866818904877, -0.07595685869455338, -0.07627658545970917, -0.1447860449552536, -0.15263447165489197, -0.29600632190704346, 0.0627037063241005, -0.24983006715774536, -0.12904413044452667, -0.03847736865282059, -0.28464585542678833, -0.19537349045276642, 0.041756775230169296, -0.32295429706573486, -0.20526142418384552, 0.23876972496509552, -0.212222620844841, 0.27219152450561523, -0.3375519812107086, 0.25212815403938293, 0.03864991292357445, 0.07754155248403549, -0.09835021197795868, 0.21206021308898926, -0.05615139380097389, 0.12881731986999512, -0.0036598239094018936, 0.429874062538147, 0.12104886025190353, -0.010087202303111553, -0.05920209363102913, -0.003434479935094714, -0.1919446736574173, -0.07307944446802139, -0.27402856945991516, -0.039105374366045, -0.27226725220680237, -0.07594097405672073, 0.4518393576145172, 0.17022037506103516, -0.26325294375419617, 0.08709868043661118, -0.13089463114738464, -0.4998296797275543, -0.17483393847942352, 0.0713706687092781, 0.07001412659883499, -0.2022498995065689, 0.031648583710193634, -0.06828004866838455, -0.19968381524085999, -0.1826942265033722, 0.5816975831985474, -0.30581915378570557, -0.0074875676073133945, -0.02624756097793579, 0.12229694426059723, -0.312888503074646, 0.5994312167167664, 0.1578054428100586, 0.21828095614910126, -0.07166412472724915, -0.04934952035546303, -0.25191569328308105, 0.06785117834806442, -0.1349724978208542, 0.031112786382436752, -0.019039427861571312, 0.254123717546463, 0.20513665676116943, 0.23116038739681244, 0.4338483512401581, 0.08556022495031357, -0.14241787791252136, -0.05818278342485428, -0.3982545733451843, -0.20982512831687927, -0.5229934453964233, -0.012634560465812683, 0.05214959383010864, -0.301912397146225, 0.12351839244365692, -0.06244168058037758, 0.16096527874469757, -0.0778723731637001, 0.21051591634750366, -0.08859178423881531, -0.1237146183848381, 0.5896790623664856, -0.008517607115209103, 0.22915048897266388, -0.07792570441961288, 0.1402851939201355, -0.058079302310943604, -0.12439794838428497, -0.01662331633269787, 0.4873819351196289, 0.06639773398637772, 0.06215338781476021, -0.19054226577281952, -0.09603506326675415, 0.2820145785808563, 0.0832107737660408, 0.1626201719045639, 0.1927821785211563, 0.038728341460227966, -0.21160799264907837, -0.06859633326530457, 0.06472611427307129, -0.14897136390209198, 0.263054758310318, -0.05724025145173073, -0.099015973508358, 0.03310871869325638, -0.09852483123540878, 0.3373894691467285, 0.003065487602725625, -0.0853755995631218, -0.462190717458725, 0.24113251268863678, 0.030021579936146736, 0.0995301827788353, -0.16776801645755768, 0.06918162852525711, 0.4935241937637329, 0.06307590752840042, -0.05665510892868042, 0.3248343765735626, -0.26043570041656494, -0.21825578808784485, -0.004060063045471907, 0.24836544692516327, -0.3511219918727875, -0.3199547827243805, -0.10650918632745743, 0.024417012929916382 ]
https://github.com/huggingface/datasets/issues/3730
Checksum Error when loading multi-news dataset
Thanks for reporting @byw2. We are fixing it. In the meantime, you can load the dataset by passing `ignore_verifications=True`: ```python dataset = load_dataset("multi_news", ignore_verifications=True)
## Describe the bug When using the load_dataset function from datasets module to load the Multi-News dataset, does not load the dataset but throws Checksum Error instead. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("multi_news") ``` ## Expected results Should download and load Multi-News dataset. ## Actual results Throws the following error and cannot load data successfully: ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C'] ``` Could this issue please be looked at? Thanks!
24
Checksum Error when loading multi-news dataset
[ -0.34388184547424316, 0.10426599532365799, -0.14959494769573212, 0.2581496834754944, 0.15674401819705963, 0.07172271609306335, 0.25446265935897827, 0.4215177297592163, 0.26866525411605835, 0.15563473105430603, -0.11537933349609375, 0.08860895782709122, 0.0527246817946434, 0.2317308932542801, -0.4762950837612152, 0.12702803313732147, 0.199875146150589, 0.09013645350933075, 0.1622532159090042, -0.08838007599115372, -0.20288456976413727, 0.17747186124324799, -0.1371764987707138, -0.21169385313987732, -0.2646593749523163, 0.08836429566144943, 0.054211072623729706, 0.5750175714492798, 0.024597030133008957, -0.20541292428970337, -0.11348399519920349, 0.253640741109848, -0.09149783104658127, 0.43314239382743835, -0.00010868965182453394, 0.076674684882164, 0.19238848984241486, -0.07142432034015656, -0.20181986689567566, 0.22103746235370636, -0.22031846642494202, -0.21517843008041382, -0.09300637245178223, -0.3493523895740509, -0.022386861965060234, -0.13413995504379272, -0.11636790633201599, -0.2375212013721466, 0.1572558730840683, 0.2659442722797394, 0.2772756814956665, 0.3892238736152649, 0.17754879593849182, -0.17175273597240448, 0.05032956972718239, -0.29066911339759827, 0.17277994751930237, 0.2985577881336212, 0.027335118502378464, -0.10964780300855637, -0.2903147041797638, 0.4240760803222656, -0.0007134342449717224, 0.20045103132724762, -0.36619317531585693, -0.08793313056230545, 0.2798720598220825, 0.2923877239227295, 0.014727062545716763, 0.13792449235916138, 0.05323603004217148, 0.07449937611818314, -0.09735170006752014, 0.08218111842870712, -0.0055470033548772335, 0.16343507170677185, 0.21065431833267212, 0.4160487651824951, -0.2389739453792572, -0.05769474804401398, -0.0314030684530735, 0.060453999787569046, -0.037699632346630096, 0.22209621965885162, -0.10780946165323257, 0.42328548431396484, -0.03253032639622688, 0.13360363245010376, 0.15373452007770538, 0.06557412445545197, 0.12474367767572403, -0.06260129064321518, -0.04589499905705452, -0.28986525535583496, -0.2235822230577469, 0.10212527960538864, 0.05053764954209328, -0.019016267731785774, -0.019611606374382973, -0.05947022885084152, -0.22131451964378357, 0.44233056902885437, -0.1088046059012413, 0.12287501990795135, 0.41769126057624817, -0.5098156332969666, -0.1851607710123062, 0.1802431344985962, 0.32396677136421204, 0.38463249802589417, -0.13892796635627747, 0.035796038806438446, -0.07857552915811539, -0.11645858734846115, 0.012484022416174412, 0.08001474291086197, 0.11607518047094345, -0.3496342897415161, -0.12495604902505875, 0.08180352300405502, 0.4036097824573517, -0.17364291846752167, 0.03521144390106201, 0.409733384847641, 0.0004631002084352076, 0.3895728290081024, -0.19317924976348877, 0.19735616445541382, -0.1016419306397438, -0.18877746164798737, -0.27549293637275696, -0.04595325514674187, -0.19321534037590027, -0.1076904758810997, 0.2885443866252899, -0.0026991001795977354, 0.0755096822977066, -0.15646542608737946, 0.15266111493110657, -0.29392755031585693, -0.08583025634288788, -0.23105432093143463, 0.13577038049697876, 0.3857956528663635, 0.06815671175718307, 0.11591910570859909, 0.3978653848171234, 0.03104315884411335, -0.0630645826458931, 0.17592890560626984, -0.14393973350524902, -0.18664798140525818, -0.2511579692363739, 0.1925254762172699, -0.08581355214118958, 0.1969238817691803, 0.24627716839313507, -0.1389574557542801, 0.32748958468437195, -0.27351170778274536, -0.11280002444982529, 0.08004354685544968, -0.26053813099861145, -0.21900808811187744, -0.13236506283283234, 0.2561173439025879, -0.2592550814151764, 0.030445626005530357, -0.03620386868715286, -0.32049986720085144, 0.2579560875892639, 0.16202186048030853, -0.2896544635295868, 0.0682462826371193, -0.0036309820134192705, -0.16579470038414001, 0.17924104630947113, -0.32816988229751587, -0.37243717908859253, 0.07726539671421051, -0.057657528668642044, 0.07527940720319748, 0.1236000508069992, 0.3089407980442047, -0.31677621603012085, -0.11815503239631653, 0.038146860897541046, 0.2712634205818176, -0.015558777377009392, 0.38517698645591736, -0.17898298799991608, -0.01625632494688034, 0.27257850766181946, 0.31216031312942505, 0.16908270120620728, -0.1276579350233078, 0.2940950095653534, 0.07744242995977402, 0.2920094430446625, -0.07019434124231339, 0.03300180658698082, 0.27030009031295776, 0.27076128125190735, -0.18040983378887177, 0.10066846758127213, -0.22304211556911469, -0.18329986929893494, 0.07544361054897308, 0.1632423847913742, 0.05739931762218475, -0.03853726014494896, 0.021022507920861244, -0.44134581089019775, -0.13304713368415833, -0.12919887900352478, 0.24723093211650848, 0.2562970519065857, 0.39649462699890137, -0.19131655991077423, 0.1323387771844864, -0.17738676071166992, 0.23315809667110443, -0.35149261355400085, -0.1316731721162796, -0.227248877286911, 0.260664165019989, -0.12221481651067734, -0.15446430444717407, 0.15663418173789978, 0.04816264286637306, 0.054753150790929794, 0.0588139072060585, -0.13990183174610138, 0.38406190276145935, 0.22011196613311768, 0.0066409483551979065, -0.04122164845466614, 0.06461768597364426, -0.10836627334356308, -0.5061068534851074, 0.08307984471321106, 0.266518235206604, 0.11987482756376266, -0.29697832465171814, -0.2650810480117798, 0.4499390423297882, -0.32331398129463196, -0.10883805900812149, -0.04058590903878212, -0.07969651371240616, 0.3263888359069824, -0.17552408576011658, 0.15424245595932007, -0.4952746629714966, -0.029117170721292496, -0.010285615921020508, -0.1821850836277008, 0.017093732953071594, 0.13933490216732025, -0.21022553741931915, 0.3282195031642914, 0.3192268908023834, 0.1410180926322937, -0.028514746576547623, 0.0929507240653038, -0.10497939586639404, -0.02896151691675186, 0.45852985978126526, 0.4392598271369934, 0.08059477806091309, 0.07039759308099747, 0.06835566461086273, 0.11865787953138351, -0.25256994366645813, -0.032204680144786835, -0.1973128318786621, 0.4547818601131439, 0.580099880695343, 0.12241754680871964, -0.19276998937129974, -0.2976665794849396, 0.11900769919157028, 0.4335584044456482, 0.0949295312166214, -0.21474689245224, -0.22641514241695404, -0.21085476875305176, -0.43437469005584717, -0.18607591092586517, -0.07160772383213043, -0.0675540566444397, -0.42120036482810974, -0.021611718460917473, 0.2840971350669861, -0.18589890003204346, 0.07020656764507294, -0.39366087317466736, 0.1543966680765152, 0.285090833902359, 0.21997599303722382, 0.22950363159179688, -0.29181843996047974, 0.08597621321678162, 0.13413897156715393, 0.4018692076206207, 0.34355342388153076, 0.22282834351062775, -0.0699809119105339, -0.15734736621379852, -0.33254459500312805, -0.11819131672382355, 0.08040563017129898, -0.03190610930323601, 0.1447741687297821, 0.13041242957115173, 0.20140282809734344, 0.1320943981409073, -0.37263184785842896, 0.42395150661468506, -0.09098285436630249, -0.1422833949327469, 0.46925029158592224, -0.06103275716304779, -0.03345199674367905, 0.020504465326666832, -0.14780201017856598, -0.037188246846199036, -0.2446887195110321, -0.3255445659160614, -0.2883474826812744, 0.24637308716773987, -0.09753528982400894, 0.022248713299632072, -0.17653782665729523, -0.07925581187009811, 0.29278549551963806, -0.2807481586933136, -0.1304512768983841, 0.20241820812225342, -0.1950272023677826, -0.4293374717235565, 0.06473904848098755, 0.177438884973526, -0.02948656864464283, -0.07349387556314468, -0.27472543716430664, -0.11850658804178238, -0.14457722008228302, -0.17359797656536102, 0.1294441670179367, -0.09776145964860916, 0.021102236583828926, -0.19345149397850037, -0.2618228495121002, -0.18191714584827423, -0.008064708672463894, 0.028855690732598305, -0.24779944121837616, 0.36727455258369446, -0.06421593576669693, -0.041960474103689194, -0.0193997323513031, 0.18441583216190338, 0.4125170111656189, -0.019467556849122047, 0.24535268545150757, 0.13462337851524353, 0.41212671995162964, -0.017690520733594894, -0.3373590111732483, -0.09912315756082535, -0.08087856322526932, 0.0931369811296463, 0.2124623954296112, -0.17467543482780457, -0.4369181990623474, -0.16664016246795654, 0.07537850737571716, -0.408186674118042, -0.25648000836372375, 0.11565481126308441, -0.17267999053001404, 0.02664664201438427, -0.026523929089307785, -0.21883325278759003, 0.053518787026405334, -0.235972061753273, 0.08426635712385178, 0.25717127323150635, -0.40839365124702454, -0.414186954498291, -0.2493513524532318, 0.022299665957689285, 0.10534758120775223, 0.12310224026441574, 0.12343349307775497, 0.3620772659778595, 0.02111954800784588, -0.176214337348938, -0.03333483263850212, -0.2680901885032654, 0.24489007890224457, -0.3414321839809418, 0.29421666264533997, 0.20705455541610718, -0.00033245328813791275, -0.027642270550131798, -0.19966411590576172, -0.6145758628845215, 0.22440022230148315, 0.10470546036958694, 0.0682888776063919, -0.33304068446159363, -0.00993289053440094, 0.35052400827407837, -0.05367165058851242, -0.0971626415848732, -0.31294724345207214, -0.3212645649909973, 0.0871884822845459, -0.38190507888793945, -0.0903717502951622, -0.17142124474048615, 0.23414061963558197, -0.2763480544090271, 0.044113341718912125, 0.07982436567544937, 0.17402397096157074, 0.03453066200017929, 0.026980850845575333, 0.14145655930042267, 0.1976470798254013, 0.10207979381084442, -0.048069000244140625, 0.11310862749814987, 0.3554105758666992, 0.8107118606567383, -0.17804956436157227, -0.2930827736854553, 0.12681177258491516, -0.23414021730422974, 0.051529671996831894, 0.3538881838321686, 0.0989525243639946, 0.0677049532532692, 0.5359621644020081, -0.06986358761787415, 0.12181971222162247, -0.04031741991639137, -0.00906792189925909, -0.11384191364049911, -0.17110991477966309, 0.16360877454280853, -0.20939505100250244, -0.1945871114730835, -0.052526142448186874, 0.20947641134262085, -0.1674022227525711, 0.146554097533226, 0.12109801173210144, 0.008275928907096386, 0.6286473870277405, -0.32087278366088867, 0.0019265470327809453, -0.05116087570786476, 0.002453101333230734, -0.12560595571994781, -0.08278868347406387, 0.02986922860145569, -0.42216137051582336, -0.39314398169517517, 0.07097380608320236, 0.004337593447417021, -0.036657750606536865, 0.22278034687042236, -0.13383091986179352, -0.06623730063438416, 0.1697600930929184, 0.09213275462388992, -0.23150405287742615, 0.281128466129303, -0.025686707347631454, -0.07799699902534485, -0.23371173441410065, 0.14891797304153442, -0.04168357700109482, -0.22885291278362274, -0.18890927731990814, 0.08609692752361298, 0.12031322717666626, -0.2689240276813507, -0.308887779712677, 0.10802797228097916, 0.2332703024148941, 0.34368574619293213, 0.10991277545690536, 0.13994860649108887, -0.2619697153568268, 0.1575690656900406, 0.23836587369441986, 0.14940020442008972, -0.030566755682229996, -0.002808916848152876, 0.2996935248374939, -0.19201530516147614, -0.28620633482933044, -0.11210654675960541, 0.32314375042915344, -0.05846245959401131, -0.5505067706108093, 0.12285701185464859, -0.09155543148517609, -0.5191430449485779, 0.4070760905742645, 0.27068373560905457, 0.08837736397981644, -0.2833496332168579, -0.1221030056476593, -0.10565008223056793, 0.08000396937131882, -0.239987313747406, 0.2306521236896515, 0.19224481284618378, -0.07758872956037521, 0.19137533009052277, 0.2513183653354645, -0.26810795068740845, -0.043860819190740585, 0.5312854051589966, 0.2235536128282547, -0.28857916593551636, 0.28915876150131226, 0.2481021285057068, -0.19235436618328094, -0.43673253059387207, -0.11110380291938782, 0.09725313633680344, -0.07108503580093384, 0.030191421508789062, -0.09359278529882431, -0.18258614838123322, 0.40266358852386475, 0.49788782000541687, 0.28552427887916565, 0.23190726339817047, 0.03253762051463127, -0.6020488739013672, -0.009858948178589344, 0.22937631607055664, 0.1591283679008484, 0.23340894281864166, -0.22425100207328796, -0.39991194009780884, -0.02948056161403656, 0.3221172094345093, -0.3966268002986908, 0.020678753033280373, -0.365905225276947, 0.1573934108018875, -0.2888648509979248, 0.177215114235878, 0.05729217082262039, 0.020527653396129608, 0.1801292896270752, 0.009988912381231785, -0.024366647005081177, -0.31973904371261597, 0.09622471779584885, 0.10931743681430817, 0.13024699687957764, -0.03281182423233986, -0.02309415303170681, -0.26882442831993103, -0.24873577058315277, -0.010206115432083607, 0.1698400229215622, 0.07147791236639023, -0.09169278293848038, 0.20488525927066803, 0.4356555938720703, 0.02954118885099888, 0.026831185445189476, -0.04540608450770378, -0.33845406770706177, 0.20098146796226501, -0.1355314999818802, -0.10661735385656357, -0.3345507085323334, -0.044328730553388596, 0.2625276744365692, 0.06946930289268494, 0.31316256523132324, 0.1401081383228302, 0.21113555133342743, -0.18888996541500092, -0.15806718170642853, 0.14102040231227875, 0.5041892528533936, 0.2106873244047165, -0.44265469908714294, -0.03580012544989586, 0.01867423765361309, 0.22875958681106567, -0.31686025857925415, -0.046926699578762054, 0.18229205906391144, -0.06251446157693863, 0.20806969702243805, 0.2583547830581665, 0.36168211698532104, -0.4011128842830658, 0.39647749066352844, -0.0389026403427124, 0.04170577600598335, -0.03422795608639717, 0.07494115084409714, 0.1390816867351532, 0.014162855222821236, -0.07609611749649048, -0.06399326771497726, -0.08516494929790497, -0.144609272480011, 0.11039239168167114, 0.21634303033351898, 0.31321635842323303, -0.027116265147924423, 0.31704968214035034, -0.08118228614330292, -0.4849900007247925, 0.7953716516494751, 0.29569730162620544, -0.2764277756214142, -0.028759973123669624, 0.0014695946592837572, 0.3162030279636383, -0.07300510257482529, 0.1582230031490326, -0.5741552710533142, 0.3046014606952667, -0.05708618834614754, -0.08036964386701584, -0.23467496037483215, -0.03940539062023163, -0.15308737754821777, 0.0250288937240839, 0.09309603273868561, 0.338459849357605, 0.4556094706058502, 0.2163064181804657, -0.06042329594492912, -0.3588249087333679, 0.09466642141342163, 0.04966447502374649, 0.09359250962734222, -0.3878507614135742, 0.2827965021133423, 0.3593215346336365, 0.04368077218532562, 0.437632292509079, 0.35360953211784363, 0.2262645959854126, 0.32321691513061523, 0.18286320567131042, -0.018206795677542686, 0.08085307478904724, -0.12329386919736862, -0.01013463456183672, 0.46309465169906616, 0.28604257106781006, 0.09425990283489227, 0.32450249791145325, 0.21310704946517944, -0.21325315535068512, -0.04837135225534439, 0.3326577842235565, 0.0052285706624388695, 0.2759588658809662, -0.19784046709537506, 0.013301360420882702, 0.2104564756155014, -0.13793203234672546, -0.040249355137348175, -0.44784530997276306, -0.36182552576065063, 0.24560709297657013, -0.2173001617193222, 0.32436227798461914, 0.12315114587545395, 0.13538317382335663, 0.18602138757705688, 0.5850639343261719, 0.09728305041790009, 0.1552005261182785, -0.1710101068019867, -0.6617550253868103, -0.6976041197776794, 0.524243175983429, -0.15280543267726898, -0.1158006489276886, -0.025334738194942474, 0.25300928950309753, 0.18485096096992493, 0.21093936264514923, 0.10607927292585373, -0.31706929206848145, -0.13489562273025513, 0.2166052758693695, -0.42321985960006714, -0.077512726187706, 0.21010822057724, -0.25166934728622437, -0.13623197376728058, -0.25376904010772705, 0.23616652190685272, 0.2319830358028412, 0.15479250252246857, 0.14738014340400696, -0.3857656717300415, -0.19711503386497498, 0.25717130303382874, 0.031024621799588203, -0.18000397086143494, 0.6169899702072144, -0.28065288066864014, -0.22017693519592285, -0.022868849337100983, -0.072132907807827, 0.004237773362547159, 0.3278881013393402, 0.3337787389755249, 0.430660605430603, -0.08429072052240372, 0.37414976954460144, 0.12670165300369263, 0.1900225132703781, -0.045762334018945694, -0.40108752250671387, -0.34204408526420593, 0.037272628396749496, 0.09621114283800125, 0.03007936105132103, 0.052843090146780014, -0.09467443823814392, 0.018543614074587822, 0.15834040939807892, -0.014588259160518646, -0.3267817199230194, 0.3215629458427429, 0.00781073747202754, -0.21002249419689178, -0.349279522895813, 0.3174053132534027, -0.6505718231201172, 0.06381208449602127, -0.68796706199646, 0.13346384465694427, 0.12910974025726318, 0.19000911712646484, -0.16220606863498688, 0.1032450795173645, -0.2740223705768585, -0.11387095600366592, -0.06160938739776611, 0.02076789364218712, -0.01480776909738779, -0.30150824785232544, -0.43461939692497253, -0.02365560457110405 ]
https://github.com/huggingface/datasets/issues/3729
Wrong number of examples when loading a text dataset
Hi @kg-nlp, thanks for reporting. That is weird... I guess we would need some sample data file where this behavior appears to reproduce the bug for further investigation...
## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False) print(len(datasets['train'])) # 1199649 ``` I also use command line operation to verify it ``` $ wc -l train.txt 1199637 train.txt ``` ## Expected results please fix that issue ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.3 - Platform:windows&linux - Python version:3.7 - PyArrow version:6.0.1
28
Wrong number of examples when loading a text dataset
[ -0.04692413657903671, -0.21126356720924377, -0.17198969423770905, 0.5441309213638306, 0.032744359225034714, -0.029391825199127197, 0.5704278945922852, 0.07558263093233109, 0.07174171507358551, 0.24240835011005402, 0.3637148439884186, 0.016420485451817513, 0.17087720334529877, 0.11058977991342545, 0.08187726140022278, -0.017979254946112633, 0.00820525549352169, 0.1574152708053589, -0.07036427408456802, 0.010342171415686607, 0.06047753244638443, 0.48339661955833435, -0.31285104155540466, -0.0630144253373146, -0.3872229754924774, -0.0017705067293718457, 0.0040200999937951565, 0.20652998983860016, 0.09442102164030075, -0.256436288356781, -0.25472503900527954, -0.010936502367258072, 0.009365620091557503, 0.22365036606788635, -0.00010785187623696402, -0.06395760178565979, 0.19834093749523163, -0.08709044754505157, -0.37212976813316345, -0.023566771298646927, -0.11114657670259476, 0.04910745471715927, 0.17575183510780334, -0.1194075271487236, -0.054532237350940704, 0.09664136916399002, -0.06497183442115784, -0.12284161150455475, 0.18526795506477356, 0.23443545401096344, 0.2348448485136032, -0.021718254312872887, -0.13370350003242493, -0.09386366605758667, 0.39801025390625, 0.21670642495155334, 0.056533608585596085, 0.1784381866455078, 0.33634117245674133, 0.11067184805870056, -0.19220808148384094, 0.5148918628692627, -0.024113349616527557, 0.22526784241199493, -0.13516968488693237, 0.27433332800865173, -0.04320622980594635, 0.22892548143863678, 0.24271562695503235, 0.4387444257736206, 0.7821389436721802, 0.12480433285236359, -0.045785389840602875, -0.4138167202472687, 0.030710585415363312, -0.10939379036426544, 0.1015496701002121, -0.019861172884702682, -0.10603684931993484, 0.012825232930481434, -0.06537338346242905, 0.11130480468273163, 0.08684304356575012, 0.17095597088336945, 0.08030474185943604, -0.1464097946882248, -0.26270249485969543, 0.0640743151307106, 0.021096715703606606, -0.07818454504013062, 0.2558453381061554, -0.17164453864097595, 0.03384782001376152, -0.0859026163816452, 0.14107953011989594, 0.37918904423713684, 0.13441471755504608, -0.24139761924743652, 0.14525462687015533, -0.26185309886932373, 0.19023869931697845, 0.22956082224845886, -0.01664213463664055, -0.027624689042568207, 0.11301422119140625, -0.1304713934659958, 0.3853788673877716, -0.08764591068029404, 0.0989009365439415, 0.13736413419246674, -0.1958991289138794, -0.03876001387834549, -0.3213183581829071, -0.2117156833410263, -0.02117156982421875, -0.21181432902812958, -0.0787050873041153, -0.19919705390930176, -0.20922446250915527, 0.023825544863939285, -0.18638667464256287, 0.007611413020640612, -0.077445387840271, 0.2910037040710449, 0.1996314972639084, -0.027702292427420616, 0.11924523115158081, 0.172288179397583, -0.34973281621932983, -0.41715946793556213, -0.34323325753211975, -0.12173200398683548, -0.1867712289094925, -0.15440836548805237, 0.2446470856666565, 0.05006636306643486, 0.3604816496372223, 0.0758100301027298, -0.18565960228443146, -0.3893134593963623, 0.13921065628528595, -0.07136538624763489, -0.09447424858808517, 0.14672541618347168, 0.09951615333557129, 0.31145957112312317, 0.21577967703342438, -0.17963939905166626, -0.13260847330093384, 0.2629369795322418, -0.33894556760787964, -0.3516261577606201, 0.07388310134410858, 0.29911747574806213, 0.023686254397034645, -0.12912467122077942, -0.17949099838733673, 0.5025451183319092, 0.3003208637237549, -0.34318041801452637, -0.22169113159179688, -0.0735151469707489, -0.2116936594247818, 0.05076348036527634, 0.015501953661441803, 0.6188146471977234, -0.41342639923095703, -0.1322474628686905, -0.13133735954761505, 0.05901404097676277, 0.032468631863594055, 0.1971340924501419, -0.4800944924354553, 0.43317022919654846, -0.28818532824516296, 0.329376220703125, 0.3840872645378113, -0.15775944292545319, -0.2096342146396637, 0.3173995316028595, 0.11389030516147614, -0.10333231091499329, 0.049918171018362045, -0.008741920813918114, 0.1718093603849411, 0.0701928436756134, 0.226700097322464, 0.009586150757968426, 0.17091017961502075, 0.17590612173080444, -0.14661037921905518, -0.013484237715601921, 0.2547472417354584, 0.061357174068689346, -0.0822703093290329, -0.03955990448594093, 0.1039670929312706, 0.0016820793971419334, 0.333619087934494, -0.25427377223968506, 0.049145035445690155, 0.5672004818916321, -0.12056649476289749, 0.14253148436546326, 0.12339785695075989, -0.04893960431218147, -0.2684610188007355, -0.0626378059387207, 0.2717112600803375, 0.009678221307694912, 0.13963334262371063, -0.0467727929353714, -0.4058840274810791, -0.11491328477859497, -0.0386313796043396, 0.09797956049442291, 0.19535185396671295, 0.04701872542500496, -0.32176414132118225, -0.09670011699199677, 0.2193325012922287, 0.13613258302211761, -0.35551151633262634, 0.10066120326519012, -0.3793773055076599, 0.005350032821297646, -0.0261678509414196, -0.27299338579177856, 0.10829663276672363, -0.039607420563697815, 0.10082173347473145, -0.1465306133031845, -0.13544614613056183, 0.3806639015674591, 0.284245103597641, 0.07863838970661163, -0.19363632798194885, -0.17157363891601562, 0.12117651849985123, -0.0702202320098877, 0.169938325881958, 0.07476440817117691, 0.18322515487670898, -0.08324044197797775, -0.5272393822669983, -0.023277290165424347, 0.3516312539577484, -0.023870553821325302, 0.1409393697977066, -0.1682078093290329, 0.4461452066898346, 0.1724499613046646, 0.02061072178184986, -0.4841175675392151, 0.23225648701190948, 0.26248857378959656, 0.2533750832080841, 0.27953821420669556, -0.26352331042289734, 0.21612639725208282, 0.146743044257164, 0.04214519262313843, 0.1896287202835083, 0.2030203640460968, -0.31036460399627686, -0.3776955008506775, 0.10844883322715759, -0.00948114600032568, 0.37069252133369446, 0.2738272249698639, 0.04466776177287102, -0.19079628586769104, -0.062183234840631485, -0.42532676458358765, 0.13809734582901, -0.036978334188461304, 0.10209615528583527, 0.19642898440361023, 0.10958697646856308, -0.18151795864105225, -0.5142083168029785, -0.15789127349853516, 0.22604787349700928, 0.06841922551393509, -0.5123748779296875, 0.18691091239452362, -0.1853768527507782, -0.21974119544029236, -0.2730841636657715, 0.08097150176763535, 0.09445100277662277, -0.06303108483552933, 0.26657333970069885, 0.07031682878732681, -0.28655821084976196, 0.07933339476585388, 0.05480415001511574, 0.09536270052194595, 0.05385417491197586, 0.2601815164089203, 0.29369670152664185, -0.053010839968919754, -0.5386034846305847, 0.13691997528076172, -0.17803144454956055, 0.35476040840148926, 0.1657896786928177, -0.407823383808136, -0.28535476326942444, -0.16178452968597412, -0.2934170365333557, 0.34061241149902344, 0.1818442940711975, 0.0921807587146759, 0.1458001732826233, 0.004083945881575346, -0.04248293489217758, -0.2709638774394989, 0.05888424441218376, -0.19957932829856873, -0.06658876687288284, 0.17054182291030884, -0.07855438441038132, -0.10570146888494492, -0.06766694784164429, -0.6810298562049866, 0.1399868130683899, -0.14782606065273285, -0.1460232138633728, 0.3611064851284027, 0.13395504653453827, 0.29876571893692017, 0.21333298087120056, -0.03144402429461479, 0.1782393455505371, 0.11513496190309525, -0.3787667453289032, -0.06970393657684326, 0.03805419057607651, -0.21113280951976776, -0.29364579916000366, -0.06431172788143158, -0.2724655866622925, -0.22751058638095856, 0.2935052216053009, -0.42434394359588623, -0.006034428719431162, -0.18758563697338104, -0.20437882840633392, -0.23086625337600708, 0.1239633709192276, 0.4217263460159302, 0.10130838304758072, -0.2068384885787964, -0.3002758324146271, -0.15981480479240417, 0.45989659428596497, -0.2329520285129547, 0.13766220211982727, -0.28388282656669617, 0.23991185426712036, -0.06773551553487778, 0.25097984075546265, 0.34653931856155396, -0.04238589480519295, 0.167952761054039, -0.20712512731552124, 0.17768068611621857, -0.2418946921825409, 0.21858066320419312, 0.10967835783958435, 0.056761953979730606, 0.05314812809228897, 0.6004197597503662, 0.17659981548786163, -0.09312065690755844, 0.23262548446655273, 0.0705118477344513, -0.6189897656440735, -0.3667346239089966, 0.11976970732212067, -0.13382601737976074, 0.019874533638358116, 0.1340053528547287, 0.03527577593922615, -0.3557027280330658, -0.09772559255361557, -0.2115837186574936, -0.20089472830295563, -0.030791455879807472, -0.05300460755825043, -0.5645986199378967, 0.5139729976654053, -0.1790233701467514, 0.16711114346981049, 0.016678491607308388, 0.09365218877792358, 0.0407305471599102, -0.0017860191874206066, 0.21229076385498047, 0.25516337156295776, 0.6216360330581665, -0.19582043588161469, 0.20059292018413544, 0.1325509399175644, -0.023381121456623077, -0.4123193621635437, -0.1483365297317505, -0.5571321249008179, 0.33117637038230896, 0.1269904524087906, 0.2510010898113251, -0.215032696723938, 0.14707313477993011, 0.2845311462879181, 0.25031575560569763, -0.05904809385538101, -0.39725226163864136, -0.03511280193924904, -0.2005518525838852, -0.43797123432159424, -0.17061170935630798, 0.3193584382534027, 0.21736840903759003, -0.12480543553829193, -0.3136133849620819, -0.08591026812791824, -0.15053193271160126, 0.053473468869924545, 0.04575010761618614, 0.46649426221847534, 0.23742251098155975, 0.23967406153678894, 0.08964136242866516, 0.23244915902614594, 0.14991462230682373, 0.4890822172164917, -0.045860789716243744, -0.20397154986858368, 0.20808103680610657, -0.348151296377182, 0.04688567668199539, 0.3542620539665222, 0.10755182802677155, 0.008560042828321457, 0.11229601502418518, 0.0066636186093091965, 0.10947155207395554, 0.3810041546821594, 0.26871952414512634, 0.04015031456947327, -0.024844201281666756, -0.2581116557121277, 0.26497316360473633, -0.10919728130102158, -0.22310389578342438, 0.3263015151023865, -0.10339346528053284, -0.3670104742050171, 0.15867064893245697, -0.2295570969581604, 0.6401743292808533, -0.11853944510221481, 0.24213793873786926, 0.2180236279964447, 0.10092134773731232, 0.25852519273757935, -0.08412094414234161, 0.23107285797595978, -0.2738800644874573, -0.41491732001304626, 0.22127091884613037, -0.012567071244120598, -0.11508022993803024, 0.3832583725452423, -0.09377285093069077, 0.0679737776517868, -0.1039842814207077, 0.22786639630794525, -0.09694186598062515, 0.04212063550949097, -0.1024499461054802, -0.32790714502334595, -0.24401028454303741, 0.16748836636543274, 0.27707505226135254, 0.011562221683561802, -0.1816321760416031, 0.30876657366752625, 0.12056434899568558, -0.36972686648368835, -0.10137686878442764, -0.06076305732131004, -0.135049968957901, 0.18642044067382812, 0.2260369211435318, -0.3434107005596161, -0.18419881165027618, 0.4660007357597351, 0.09537120163440704, 0.2921738624572754, -0.11996494233608246, 0.058719202876091, -0.13936999440193176, 0.022596130147576332, -0.0879058688879013, 0.01894267089664936, 0.16584734618663788, -0.005952287465333939, -0.13441161811351776, -0.11321354657411575, -0.06999344378709793, -0.005685959942638874, -0.036889731884002686, -0.08615095168352127, -0.12279731035232544, -0.46311458945274353, -0.21333150565624237, 0.20947250723838806, 0.044243741780519485, -0.21427612006664276, 0.1701793670654297, 0.15469403564929962, 0.04539957642555237, -0.008792707696557045, 0.13186025619506836, -0.23136484622955322, -0.09519242495298386, 0.2973306179046631, 0.1058780625462532, -0.06482638418674469, 0.4600216746330261, 0.30626803636550903, -0.11068562418222427, -0.20580069720745087, 0.06449861824512482, 0.3591988682746887, -0.24387650191783905, 0.28528285026550293, -0.10191089659929276, -0.23574768006801605, 0.04027220979332924, 0.44927746057510376, 0.15310578048229218, 0.13421916961669922, -0.12085150182247162, -0.16771097481250763, -0.25202611088752747, 0.1796942949295044, 0.02162041701376438, 0.0814795196056366, 0.0928783118724823, -0.1461031138896942, 0.08129087090492249, 0.03641754761338234, -0.36320778727531433, 0.24372419714927673, -0.03437642380595207, 0.3253171443939209, -0.07809655368328094, -0.0009130531107075512, -0.07530299574136734, 0.11976464837789536, 0.1843481957912445, 0.007105477619916201, -0.09538069367408752, -0.33838513493537903, -0.12686428427696228, 0.12013228982686996, -0.13190965354442596, -0.2573329210281372, 0.2565402686595917, -0.19423246383666992, -0.1006801500916481, -0.3492053747177124, 0.19573450088500977, 0.07338546216487885, -0.03363802284002304, 0.042091622948646545, -0.2703900635242462, 0.14411047101020813, -0.054774098098278046, 0.119674451649189, -0.45693734288215637, 0.226360023021698, 0.18638166785240173, -0.23457194864749908, 0.2690514326095581, 0.013209656812250614, 0.11567163467407227, 0.16682225465774536, 0.10570145398378372, 0.1796431839466095, -0.06518437713384628, -0.42027178406715393, 0.2317061424255371, 0.22240419685840607, 0.4599236845970154, 0.14885027706623077, -0.39157041907310486, 0.0017579441191628575, 0.12098576873540878, 0.29459521174430847, -0.3815084993839264, -0.4491095542907715, 0.05769531801342964, -0.25096455216407776, 0.18952614068984985, 0.24421559274196625, 0.2222319096326828, -0.2815958559513092, 0.003970342222601175, -0.00016744159802328795, 0.20463337004184723, -0.054126303642988205, -0.10831591486930847, 0.37995579838752747, -0.34342002868652344, 0.04218349978327751, -0.059736039489507675, 0.1226300522685051, 0.08723811060190201, 0.4707012176513672, 0.1414557844400406, 0.18687261641025543, -0.08166486024856567, 0.13601674139499664, -0.04051046073436737, -0.34696459770202637, 0.41850802302360535, 0.4680347144603729, -0.2172781229019165, 0.10162947326898575, 0.12948699295520782, -0.02129957266151905, -0.1893083155155182, 0.26000893115997314, -0.3430662751197815, -0.3015100657939911, -0.3592163324356079, -0.2890819013118744, -0.004828589968383312, -0.08315297961235046, -0.16417235136032104, 0.08940362185239792, -0.4116710424423218, 0.030213385820388794, 0.07383863627910614, -0.14317813515663147, -0.2652038037776947, -0.687351644039154, 0.381465345621109, -0.22459810972213745, 0.03381841257214546, -0.40350744128227234, 0.3329811096191406, -0.024836188182234764, -0.04893597215414047, 0.35368767380714417, 0.18907004594802856, 0.17234990000724792, 0.2061953991651535, 0.2732665538787842, -0.11689701676368713, 0.02400575391948223, -0.051506273448467255, -0.3826592266559601, -0.04755324870347977, 0.506419837474823, 0.18765220046043396, 0.222164586186409, 0.15082190930843353, -0.18866296112537384, 0.33553338050842285, 0.4110001027584076, -0.24587711691856384, -0.4072445333003998, -0.19892241060733795, -0.19317854940891266, -0.20104233920574188, -0.18579623103141785, -0.06846627593040466, -0.1775331348180771, -0.0223064087331295, 0.5083456635475159, -0.20935404300689697, 0.285099595785141, 0.18244116008281708, 0.1348639279603958, -0.12747709453105927, 0.234836608171463, -0.06304845213890076, 0.22585797309875488, -0.12796683609485626, -0.12130475789308548, -0.6803412437438965, 0.2266223132610321, -0.24145658314228058, 0.01621781662106514, 0.19254370033740997, 0.21134911477565765, 0.2176848202943802, 0.06639041006565094, 0.04709047079086304, 0.07274391502141953, -0.18213672935962677, -0.12339258939027786, -0.23960287868976593, -0.22786109149456024, -0.0005844853003509343, 0.11125688254833221, -0.004792733583599329, -0.2105729728937149, 0.14508025348186493, -0.21152158081531525, 0.18393294513225555, -0.03446086868643761, 0.23035860061645508, 0.026744430884718895, -0.07018081098794937, 0.14872783422470093, 0.1126357838511467, 0.2979472875595093, -0.2342306673526764, 0.14845535159111023, -0.20166316628456116, -0.14987248182296753, -0.09402987360954285, 0.5648872256278992, 0.32617855072021484, -0.10163329541683197, -0.2115442156791687, 0.26428887248039246, 0.16065427660942078, -0.10176805406808853, 0.3598218262195587, 0.27829164266586304, -0.5447028279304504, 0.16823747754096985, -0.11685886234045029, 0.11342333257198334, 0.13622699677944183, 0.26012396812438965, -0.07539211958646774, -0.37910890579223633, 0.0885946974158287, -0.4036993384361267, 0.10539674758911133, -0.196273073554039, -0.2403586506843567, -0.4314923882484436, 0.399312824010849, 0.35919511318206787, -0.033773329108953476, -0.33731839060783386, 0.07551259547472, 0.4979908764362335, -0.12304317206144333, -0.272854208946228, 0.2914550006389618, -0.011723799630999565, -0.31041163206100464, -0.027898700907826424, 0.5063729286193848, 0.31832554936408997, -0.09462063759565353, -0.1285748928785324, -0.400787889957428 ]
https://github.com/huggingface/datasets/issues/3729
Wrong number of examples when loading a text dataset
ok, I found the reason why that two results are not same. there is /u2029 in the text, the datasets will split sentence according to the /u2029,but when I use open function will not do that . so I want to know which function shell do that thanks
## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False) print(len(datasets['train'])) # 1199649 ``` I also use command line operation to verify it ``` $ wc -l train.txt 1199637 train.txt ``` ## Expected results please fix that issue ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.3 - Platform:windows&linux - Python version:3.7 - PyArrow version:6.0.1
48
Wrong number of examples when loading a text dataset
[ -0.04692413657903671, -0.21126356720924377, -0.17198969423770905, 0.5441309213638306, 0.032744359225034714, -0.029391825199127197, 0.5704278945922852, 0.07558263093233109, 0.07174171507358551, 0.24240835011005402, 0.3637148439884186, 0.016420485451817513, 0.17087720334529877, 0.11058977991342545, 0.08187726140022278, -0.017979254946112633, 0.00820525549352169, 0.1574152708053589, -0.07036427408456802, 0.010342171415686607, 0.06047753244638443, 0.48339661955833435, -0.31285104155540466, -0.0630144253373146, -0.3872229754924774, -0.0017705067293718457, 0.0040200999937951565, 0.20652998983860016, 0.09442102164030075, -0.256436288356781, -0.25472503900527954, -0.010936502367258072, 0.009365620091557503, 0.22365036606788635, -0.00010785187623696402, -0.06395760178565979, 0.19834093749523163, -0.08709044754505157, -0.37212976813316345, -0.023566771298646927, -0.11114657670259476, 0.04910745471715927, 0.17575183510780334, -0.1194075271487236, -0.054532237350940704, 0.09664136916399002, -0.06497183442115784, -0.12284161150455475, 0.18526795506477356, 0.23443545401096344, 0.2348448485136032, -0.021718254312872887, -0.13370350003242493, -0.09386366605758667, 0.39801025390625, 0.21670642495155334, 0.056533608585596085, 0.1784381866455078, 0.33634117245674133, 0.11067184805870056, -0.19220808148384094, 0.5148918628692627, -0.024113349616527557, 0.22526784241199493, -0.13516968488693237, 0.27433332800865173, -0.04320622980594635, 0.22892548143863678, 0.24271562695503235, 0.4387444257736206, 0.7821389436721802, 0.12480433285236359, -0.045785389840602875, -0.4138167202472687, 0.030710585415363312, -0.10939379036426544, 0.1015496701002121, -0.019861172884702682, -0.10603684931993484, 0.012825232930481434, -0.06537338346242905, 0.11130480468273163, 0.08684304356575012, 0.17095597088336945, 0.08030474185943604, -0.1464097946882248, -0.26270249485969543, 0.0640743151307106, 0.021096715703606606, -0.07818454504013062, 0.2558453381061554, -0.17164453864097595, 0.03384782001376152, -0.0859026163816452, 0.14107953011989594, 0.37918904423713684, 0.13441471755504608, -0.24139761924743652, 0.14525462687015533, -0.26185309886932373, 0.19023869931697845, 0.22956082224845886, -0.01664213463664055, -0.027624689042568207, 0.11301422119140625, -0.1304713934659958, 0.3853788673877716, -0.08764591068029404, 0.0989009365439415, 0.13736413419246674, -0.1958991289138794, -0.03876001387834549, -0.3213183581829071, -0.2117156833410263, -0.02117156982421875, -0.21181432902812958, -0.0787050873041153, -0.19919705390930176, -0.20922446250915527, 0.023825544863939285, -0.18638667464256287, 0.007611413020640612, -0.077445387840271, 0.2910037040710449, 0.1996314972639084, -0.027702292427420616, 0.11924523115158081, 0.172288179397583, -0.34973281621932983, -0.41715946793556213, -0.34323325753211975, -0.12173200398683548, -0.1867712289094925, -0.15440836548805237, 0.2446470856666565, 0.05006636306643486, 0.3604816496372223, 0.0758100301027298, -0.18565960228443146, -0.3893134593963623, 0.13921065628528595, -0.07136538624763489, -0.09447424858808517, 0.14672541618347168, 0.09951615333557129, 0.31145957112312317, 0.21577967703342438, -0.17963939905166626, -0.13260847330093384, 0.2629369795322418, -0.33894556760787964, -0.3516261577606201, 0.07388310134410858, 0.29911747574806213, 0.023686254397034645, -0.12912467122077942, -0.17949099838733673, 0.5025451183319092, 0.3003208637237549, -0.34318041801452637, -0.22169113159179688, -0.0735151469707489, -0.2116936594247818, 0.05076348036527634, 0.015501953661441803, 0.6188146471977234, -0.41342639923095703, -0.1322474628686905, -0.13133735954761505, 0.05901404097676277, 0.032468631863594055, 0.1971340924501419, -0.4800944924354553, 0.43317022919654846, -0.28818532824516296, 0.329376220703125, 0.3840872645378113, -0.15775944292545319, -0.2096342146396637, 0.3173995316028595, 0.11389030516147614, -0.10333231091499329, 0.049918171018362045, -0.008741920813918114, 0.1718093603849411, 0.0701928436756134, 0.226700097322464, 0.009586150757968426, 0.17091017961502075, 0.17590612173080444, -0.14661037921905518, -0.013484237715601921, 0.2547472417354584, 0.061357174068689346, -0.0822703093290329, -0.03955990448594093, 0.1039670929312706, 0.0016820793971419334, 0.333619087934494, -0.25427377223968506, 0.049145035445690155, 0.5672004818916321, -0.12056649476289749, 0.14253148436546326, 0.12339785695075989, -0.04893960431218147, -0.2684610188007355, -0.0626378059387207, 0.2717112600803375, 0.009678221307694912, 0.13963334262371063, -0.0467727929353714, -0.4058840274810791, -0.11491328477859497, -0.0386313796043396, 0.09797956049442291, 0.19535185396671295, 0.04701872542500496, -0.32176414132118225, -0.09670011699199677, 0.2193325012922287, 0.13613258302211761, -0.35551151633262634, 0.10066120326519012, -0.3793773055076599, 0.005350032821297646, -0.0261678509414196, -0.27299338579177856, 0.10829663276672363, -0.039607420563697815, 0.10082173347473145, -0.1465306133031845, -0.13544614613056183, 0.3806639015674591, 0.284245103597641, 0.07863838970661163, -0.19363632798194885, -0.17157363891601562, 0.12117651849985123, -0.0702202320098877, 0.169938325881958, 0.07476440817117691, 0.18322515487670898, -0.08324044197797775, -0.5272393822669983, -0.023277290165424347, 0.3516312539577484, -0.023870553821325302, 0.1409393697977066, -0.1682078093290329, 0.4461452066898346, 0.1724499613046646, 0.02061072178184986, -0.4841175675392151, 0.23225648701190948, 0.26248857378959656, 0.2533750832080841, 0.27953821420669556, -0.26352331042289734, 0.21612639725208282, 0.146743044257164, 0.04214519262313843, 0.1896287202835083, 0.2030203640460968, -0.31036460399627686, -0.3776955008506775, 0.10844883322715759, -0.00948114600032568, 0.37069252133369446, 0.2738272249698639, 0.04466776177287102, -0.19079628586769104, -0.062183234840631485, -0.42532676458358765, 0.13809734582901, -0.036978334188461304, 0.10209615528583527, 0.19642898440361023, 0.10958697646856308, -0.18151795864105225, -0.5142083168029785, -0.15789127349853516, 0.22604787349700928, 0.06841922551393509, -0.5123748779296875, 0.18691091239452362, -0.1853768527507782, -0.21974119544029236, -0.2730841636657715, 0.08097150176763535, 0.09445100277662277, -0.06303108483552933, 0.26657333970069885, 0.07031682878732681, -0.28655821084976196, 0.07933339476585388, 0.05480415001511574, 0.09536270052194595, 0.05385417491197586, 0.2601815164089203, 0.29369670152664185, -0.053010839968919754, -0.5386034846305847, 0.13691997528076172, -0.17803144454956055, 0.35476040840148926, 0.1657896786928177, -0.407823383808136, -0.28535476326942444, -0.16178452968597412, -0.2934170365333557, 0.34061241149902344, 0.1818442940711975, 0.0921807587146759, 0.1458001732826233, 0.004083945881575346, -0.04248293489217758, -0.2709638774394989, 0.05888424441218376, -0.19957932829856873, -0.06658876687288284, 0.17054182291030884, -0.07855438441038132, -0.10570146888494492, -0.06766694784164429, -0.6810298562049866, 0.1399868130683899, -0.14782606065273285, -0.1460232138633728, 0.3611064851284027, 0.13395504653453827, 0.29876571893692017, 0.21333298087120056, -0.03144402429461479, 0.1782393455505371, 0.11513496190309525, -0.3787667453289032, -0.06970393657684326, 0.03805419057607651, -0.21113280951976776, -0.29364579916000366, -0.06431172788143158, -0.2724655866622925, -0.22751058638095856, 0.2935052216053009, -0.42434394359588623, -0.006034428719431162, -0.18758563697338104, -0.20437882840633392, -0.23086625337600708, 0.1239633709192276, 0.4217263460159302, 0.10130838304758072, -0.2068384885787964, -0.3002758324146271, -0.15981480479240417, 0.45989659428596497, -0.2329520285129547, 0.13766220211982727, -0.28388282656669617, 0.23991185426712036, -0.06773551553487778, 0.25097984075546265, 0.34653931856155396, -0.04238589480519295, 0.167952761054039, -0.20712512731552124, 0.17768068611621857, -0.2418946921825409, 0.21858066320419312, 0.10967835783958435, 0.056761953979730606, 0.05314812809228897, 0.6004197597503662, 0.17659981548786163, -0.09312065690755844, 0.23262548446655273, 0.0705118477344513, -0.6189897656440735, -0.3667346239089966, 0.11976970732212067, -0.13382601737976074, 0.019874533638358116, 0.1340053528547287, 0.03527577593922615, -0.3557027280330658, -0.09772559255361557, -0.2115837186574936, -0.20089472830295563, -0.030791455879807472, -0.05300460755825043, -0.5645986199378967, 0.5139729976654053, -0.1790233701467514, 0.16711114346981049, 0.016678491607308388, 0.09365218877792358, 0.0407305471599102, -0.0017860191874206066, 0.21229076385498047, 0.25516337156295776, 0.6216360330581665, -0.19582043588161469, 0.20059292018413544, 0.1325509399175644, -0.023381121456623077, -0.4123193621635437, -0.1483365297317505, -0.5571321249008179, 0.33117637038230896, 0.1269904524087906, 0.2510010898113251, -0.215032696723938, 0.14707313477993011, 0.2845311462879181, 0.25031575560569763, -0.05904809385538101, -0.39725226163864136, -0.03511280193924904, -0.2005518525838852, -0.43797123432159424, -0.17061170935630798, 0.3193584382534027, 0.21736840903759003, -0.12480543553829193, -0.3136133849620819, -0.08591026812791824, -0.15053193271160126, 0.053473468869924545, 0.04575010761618614, 0.46649426221847534, 0.23742251098155975, 0.23967406153678894, 0.08964136242866516, 0.23244915902614594, 0.14991462230682373, 0.4890822172164917, -0.045860789716243744, -0.20397154986858368, 0.20808103680610657, -0.348151296377182, 0.04688567668199539, 0.3542620539665222, 0.10755182802677155, 0.008560042828321457, 0.11229601502418518, 0.0066636186093091965, 0.10947155207395554, 0.3810041546821594, 0.26871952414512634, 0.04015031456947327, -0.024844201281666756, -0.2581116557121277, 0.26497316360473633, -0.10919728130102158, -0.22310389578342438, 0.3263015151023865, -0.10339346528053284, -0.3670104742050171, 0.15867064893245697, -0.2295570969581604, 0.6401743292808533, -0.11853944510221481, 0.24213793873786926, 0.2180236279964447, 0.10092134773731232, 0.25852519273757935, -0.08412094414234161, 0.23107285797595978, -0.2738800644874573, -0.41491732001304626, 0.22127091884613037, -0.012567071244120598, -0.11508022993803024, 0.3832583725452423, -0.09377285093069077, 0.0679737776517868, -0.1039842814207077, 0.22786639630794525, -0.09694186598062515, 0.04212063550949097, -0.1024499461054802, -0.32790714502334595, -0.24401028454303741, 0.16748836636543274, 0.27707505226135254, 0.011562221683561802, -0.1816321760416031, 0.30876657366752625, 0.12056434899568558, -0.36972686648368835, -0.10137686878442764, -0.06076305732131004, -0.135049968957901, 0.18642044067382812, 0.2260369211435318, -0.3434107005596161, -0.18419881165027618, 0.4660007357597351, 0.09537120163440704, 0.2921738624572754, -0.11996494233608246, 0.058719202876091, -0.13936999440193176, 0.022596130147576332, -0.0879058688879013, 0.01894267089664936, 0.16584734618663788, -0.005952287465333939, -0.13441161811351776, -0.11321354657411575, -0.06999344378709793, -0.005685959942638874, -0.036889731884002686, -0.08615095168352127, -0.12279731035232544, -0.46311458945274353, -0.21333150565624237, 0.20947250723838806, 0.044243741780519485, -0.21427612006664276, 0.1701793670654297, 0.15469403564929962, 0.04539957642555237, -0.008792707696557045, 0.13186025619506836, -0.23136484622955322, -0.09519242495298386, 0.2973306179046631, 0.1058780625462532, -0.06482638418674469, 0.4600216746330261, 0.30626803636550903, -0.11068562418222427, -0.20580069720745087, 0.06449861824512482, 0.3591988682746887, -0.24387650191783905, 0.28528285026550293, -0.10191089659929276, -0.23574768006801605, 0.04027220979332924, 0.44927746057510376, 0.15310578048229218, 0.13421916961669922, -0.12085150182247162, -0.16771097481250763, -0.25202611088752747, 0.1796942949295044, 0.02162041701376438, 0.0814795196056366, 0.0928783118724823, -0.1461031138896942, 0.08129087090492249, 0.03641754761338234, -0.36320778727531433, 0.24372419714927673, -0.03437642380595207, 0.3253171443939209, -0.07809655368328094, -0.0009130531107075512, -0.07530299574136734, 0.11976464837789536, 0.1843481957912445, 0.007105477619916201, -0.09538069367408752, -0.33838513493537903, -0.12686428427696228, 0.12013228982686996, -0.13190965354442596, -0.2573329210281372, 0.2565402686595917, -0.19423246383666992, -0.1006801500916481, -0.3492053747177124, 0.19573450088500977, 0.07338546216487885, -0.03363802284002304, 0.042091622948646545, -0.2703900635242462, 0.14411047101020813, -0.054774098098278046, 0.119674451649189, -0.45693734288215637, 0.226360023021698, 0.18638166785240173, -0.23457194864749908, 0.2690514326095581, 0.013209656812250614, 0.11567163467407227, 0.16682225465774536, 0.10570145398378372, 0.1796431839466095, -0.06518437713384628, -0.42027178406715393, 0.2317061424255371, 0.22240419685840607, 0.4599236845970154, 0.14885027706623077, -0.39157041907310486, 0.0017579441191628575, 0.12098576873540878, 0.29459521174430847, -0.3815084993839264, -0.4491095542907715, 0.05769531801342964, -0.25096455216407776, 0.18952614068984985, 0.24421559274196625, 0.2222319096326828, -0.2815958559513092, 0.003970342222601175, -0.00016744159802328795, 0.20463337004184723, -0.054126303642988205, -0.10831591486930847, 0.37995579838752747, -0.34342002868652344, 0.04218349978327751, -0.059736039489507675, 0.1226300522685051, 0.08723811060190201, 0.4707012176513672, 0.1414557844400406, 0.18687261641025543, -0.08166486024856567, 0.13601674139499664, -0.04051046073436737, -0.34696459770202637, 0.41850802302360535, 0.4680347144603729, -0.2172781229019165, 0.10162947326898575, 0.12948699295520782, -0.02129957266151905, -0.1893083155155182, 0.26000893115997314, -0.3430662751197815, -0.3015100657939911, -0.3592163324356079, -0.2890819013118744, -0.004828589968383312, -0.08315297961235046, -0.16417235136032104, 0.08940362185239792, -0.4116710424423218, 0.030213385820388794, 0.07383863627910614, -0.14317813515663147, -0.2652038037776947, -0.687351644039154, 0.381465345621109, -0.22459810972213745, 0.03381841257214546, -0.40350744128227234, 0.3329811096191406, -0.024836188182234764, -0.04893597215414047, 0.35368767380714417, 0.18907004594802856, 0.17234990000724792, 0.2061953991651535, 0.2732665538787842, -0.11689701676368713, 0.02400575391948223, -0.051506273448467255, -0.3826592266559601, -0.04755324870347977, 0.506419837474823, 0.18765220046043396, 0.222164586186409, 0.15082190930843353, -0.18866296112537384, 0.33553338050842285, 0.4110001027584076, -0.24587711691856384, -0.4072445333003998, -0.19892241060733795, -0.19317854940891266, -0.20104233920574188, -0.18579623103141785, -0.06846627593040466, -0.1775331348180771, -0.0223064087331295, 0.5083456635475159, -0.20935404300689697, 0.285099595785141, 0.18244116008281708, 0.1348639279603958, -0.12747709453105927, 0.234836608171463, -0.06304845213890076, 0.22585797309875488, -0.12796683609485626, -0.12130475789308548, -0.6803412437438965, 0.2266223132610321, -0.24145658314228058, 0.01621781662106514, 0.19254370033740997, 0.21134911477565765, 0.2176848202943802, 0.06639041006565094, 0.04709047079086304, 0.07274391502141953, -0.18213672935962677, -0.12339258939027786, -0.23960287868976593, -0.22786109149456024, -0.0005844853003509343, 0.11125688254833221, -0.004792733583599329, -0.2105729728937149, 0.14508025348186493, -0.21152158081531525, 0.18393294513225555, -0.03446086868643761, 0.23035860061645508, 0.026744430884718895, -0.07018081098794937, 0.14872783422470093, 0.1126357838511467, 0.2979472875595093, -0.2342306673526764, 0.14845535159111023, -0.20166316628456116, -0.14987248182296753, -0.09402987360954285, 0.5648872256278992, 0.32617855072021484, -0.10163329541683197, -0.2115442156791687, 0.26428887248039246, 0.16065427660942078, -0.10176805406808853, 0.3598218262195587, 0.27829164266586304, -0.5447028279304504, 0.16823747754096985, -0.11685886234045029, 0.11342333257198334, 0.13622699677944183, 0.26012396812438965, -0.07539211958646774, -0.37910890579223633, 0.0885946974158287, -0.4036993384361267, 0.10539674758911133, -0.196273073554039, -0.2403586506843567, -0.4314923882484436, 0.399312824010849, 0.35919511318206787, -0.033773329108953476, -0.33731839060783386, 0.07551259547472, 0.4979908764362335, -0.12304317206144333, -0.272854208946228, 0.2914550006389618, -0.011723799630999565, -0.31041163206100464, -0.027898700907826424, 0.5063729286193848, 0.31832554936408997, -0.09462063759565353, -0.1285748928785324, -0.400787889957428 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
Hi @aasem, thanks for reporting. Please note that currently Commom Voice is hosted on our Hub as a community dataset by the Mozilla Foundation. See all Common Voice versions here: https://huggingface.co/mozilla-foundation Maybe we should add an explaining note in our "legacy" Common Voice canonical script? What do you think @lhoestq @mariosasko ?
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
52
Builder Configuration Update Required on Common Voice Dataset
[ -0.6524866819381714, 0.38413265347480774, -0.06744194030761719, -0.11136505007743835, 0.08583786338567734, 0.020625868812203407, 0.28843051195144653, 0.12123043835163116, -0.4009939432144165, 0.24101631343364716, -0.07864212989807129, -0.028184115886688232, 0.0015199572080746293, -0.011669040657579899, -0.26424670219421387, 0.20344407856464386, -0.05035965517163277, 0.4214217960834503, 0.07954312860965729, -0.24213923513889313, 0.09790652245283127, 0.12753945589065552, -0.26394036412239075, 0.03158615157008171, -0.5481311082839966, -0.10938532650470734, 0.1271945983171463, 0.13316522538661957, -0.10361777245998383, -0.28420624136924744, 0.14202913641929626, 0.5528342723846436, -0.264614075422287, 0.21185339987277985, -0.00011618174175964668, 0.1671716868877411, 0.19256485998630524, -0.030520007014274597, -0.3312789797782898, 0.3738288879394531, -0.5272738933563232, 0.1751781553030014, -0.18868045508861542, 0.13094046711921692, -0.1402328461408615, -0.05200527608394623, 0.033120203763246536, 0.1040320172905922, 0.32837390899658203, 0.25866270065307617, 0.2411634624004364, 0.12467285245656967, 0.06841744482517242, -0.12165046483278275, -0.14653362333774567, -0.04998793452978134, 0.18806472420692444, 0.09298604726791382, 0.30379486083984375, 0.31261470913887024, -0.0269338209182024, 0.380031555891037, 0.13133974373340607, -0.33669179677963257, -0.10221877694129944, -0.2630683183670044, 0.32483339309692383, -0.15376774966716766, 0.3844292461872101, 0.023013604804873466, 0.7257822155952454, -0.05523895472288132, -0.003118297317996621, 0.02513042464852333, 0.10560904443264008, -0.09879691898822784, 0.3647049069404602, -0.1043642908334732, -0.1921495646238327, 0.050818052142858505, -0.2745732069015503, -0.6643875241279602, -0.023011261597275734, -0.1267821043729782, -0.28854015469551086, 0.18760362267494202, 0.02200731821358204, 0.01724616438150406, -0.19336006045341492, -0.1503450870513916, 0.07295548915863037, -0.11917273700237274, -0.2495102882385254, -0.08312419801950455, -0.20958763360977173, -0.3269910216331482, 0.06223176792263985, -0.06943818926811218, -0.14393112063407898, -0.137142151594162, 0.0790172815322876, 0.2229856699705124, -0.16404201090335846, 0.10747426003217697, 0.3511941730976105, 0.027166856452822685, 0.34852495789527893, 0.0749010369181633, 0.3858380913734436, -0.10486887395381927, -0.18050357699394226, 0.16193515062332153, -0.12763449549674988, -0.1554490178823471, 0.11570990830659866, 0.057952966541051865, 0.08878391981124878, -0.1442466825246811, -0.13162267208099365, 0.0814153328537941, -0.006294353399425745, 0.04065355658531189, 0.13700716197490692, 0.057795681059360504, 0.21443459391593933, -0.11254765093326569, -0.025081206113100052, 0.12563852965831757, 0.03515315800905228, -0.28075382113456726, -0.1985688954591751, -0.2912497818470001, -0.013233160600066185, -0.1324145793914795, 0.2487173229455948, -0.44162827730178833, -0.048459406942129135, 0.10675787180662155, -0.07538153976202011, -0.09149540215730667, -0.1800178438425064, 0.33221548795700073, -0.23691082000732422, 0.30701744556427, -0.12195566296577454, 0.05776697024703026, -0.18708887696266174, 0.028860878199338913, -0.20634493231773376, 0.2629309296607971, -0.14711815118789673, -0.6215483546257019, -0.017526857554912567, 0.2165360301733017, 0.20054422318935394, -0.05949612706899643, 0.5743678212165833, 0.28844812512397766, 0.4095233678817749, -0.6635436415672302, -0.1010749340057373, -0.1448390632867813, -0.2314511090517044, 0.10936465859413147, -0.1811213195323944, 0.08253145217895508, -0.3899838626384735, -0.16597072780132294, -0.08984149247407913, -0.21150542795658112, -0.09802845120429993, 0.07154271751642227, -0.19261568784713745, -0.19006392359733582, -0.03384517878293991, 0.16936162114143372, 0.709525465965271, -0.08239228278398514, -0.5337049961090088, -0.02528131939470768, -0.1392499804496765, -0.31294918060302734, 0.024868160486221313, -0.12015694379806519, -0.2792259156703949, -0.1349523663520813, 0.166450634598732, 0.10252664238214493, -0.005985230207443237, 0.17260462045669556, -0.02474616840481758, -0.24048832058906555, 0.026295261457562447, -0.027905337512493134, 0.12004633992910385, 0.10004593431949615, 0.006093991454690695, 0.17516562342643738, 0.1678352802991867, -0.09649308770895004, 0.14918510615825653, 0.13933426141738892, 0.09985137730836868, -0.29001566767692566, -0.0692540779709816, 0.07864975929260254, -0.17701919376850128, 0.11120057851076126, 0.10687009990215302, 0.2587144374847412, 0.39777034521102905, -0.03053603693842888, -0.0702502578496933, -0.21789950132369995, -0.44286614656448364, 0.10104642063379288, 0.19208784401416779, 0.3077879250049591, -0.11453639715909958, -0.378917396068573, -0.18164418637752533, -0.13654960691928864, -0.028889190405607224, -0.027298051863908768, 0.11764948070049286, 0.24741941690444946, -0.1992465853691101, -0.14120130240917206, 0.1294773370027542, 0.049216803163290024, -0.09238667786121368, 0.11582520604133606, -0.22324839234352112, 0.1622774302959442, -0.27776068449020386, 0.19795699417591095, -0.2762037515640259, 0.1613684594631195, -0.0632200688123703, 0.028521809726953506, 0.4678356945514679, -0.053345926105976105, -0.14997729659080505, -0.040607206523418427, 0.09547242522239685, 0.056745968759059906, 0.5180546641349792, 0.19267882406711578, -0.03788528963923454, 0.10195855051279068, 0.10437596589326859, 0.11405984312295914, -0.05789979174733162, -0.40985307097435, -0.4419247806072235, 0.027771655470132828, 0.5044502019882202, 0.36201658844947815, -0.41410529613494873, 0.249769389629364, 0.4620388448238373, 0.3550783693790436, 0.1453246772289276, 0.11854647099971771, 0.0026165791787207127, -0.197402223944664, 0.06451670080423355, -0.14411118626594543, 0.1802886426448822, 0.17923055589199066, 0.12329132109880447, 0.21825654804706573, 0.04369249567389488, -0.32457876205444336, 0.14818958938121796, -0.12334294617176056, 0.14694373309612274, 0.38931092619895935, 0.38703304529190063, -0.022521140053868294, -0.7127004861831665, 0.03633808344602585, 0.0676339641213417, -0.011726885102689266, -0.1415819674730301, -0.17107872664928436, -0.17597874999046326, 0.052174169570207596, -0.09977202862501144, -0.11188424378633499, -0.5056554079055786, -0.18004992604255676, 0.5394278168678284, -0.05793303996324539, -0.019906625151634216, 0.5802631378173828, 0.28320083022117615, 0.3105352818965912, 0.07940000295639038, 0.04194636270403862, -0.1738952398300171, 0.06659243255853653, -0.4214290976524353, 0.1164064034819603, 0.052657343447208405, -0.20843759179115295, -0.16382929682731628, -0.050705019384622574, 0.06115671619772911, -0.10931187868118286, -0.3172694742679596, 0.23031729459762573, 0.05891865864396095, -0.009989718906581402, 0.2992153763771057, -0.012962142936885357, 0.34800955653190613, -0.25013452768325806, 0.30913037061691284, 0.16269752383232117, -0.2224961370229721, -0.07544631510972977, -0.23374870419502258, -0.07969175279140472, -0.09322874993085861, -0.265480637550354, -0.0316644124686718, -0.3255424499511719, -0.215658038854599, -0.25456857681274414, 0.2720935642719269, 0.2840018570423126, 0.09005903452634811, -0.4054289162158966, -0.35170403122901917, 0.41437095403671265, -0.32936638593673706, 0.02567911520600319, -0.023656103760004044, -0.10092870146036148, -0.03675495833158493, -0.034973546862602234, -0.07158657163381577, 0.7069276571273804, 0.06710189580917358, -0.20886676013469696, 0.30281418561935425, -0.10598217695951462, 0.35228580236434937, 0.12638236582279205, 0.03093918412923813, 0.3759506344795227, 0.45358288288116455, -0.1615595668554306, -0.011419478803873062, -0.2124314308166504, 0.013575325720012188, 0.5705265402793884, 0.07221522182226181, -0.014730026014149189, 0.05484500154852867, -0.20373965799808502, 0.6464540362358093, 0.11326736211776733, -0.2463071644306183, 0.08776568621397018, -0.2254398912191391, 0.44329148530960083, -0.20952151715755463, -0.1941516250371933, 0.28627121448516846, 0.26123061776161194, -0.1460607647895813, 0.2786007821559906, 0.11478466540575027, -0.16485945880413055, -0.11462775617837906, -0.32641375064849854, 0.13977308571338654, -0.3012371063232422, -0.034761395305395126, -0.18820181488990784, 0.35695937275886536, 0.3781491219997406, 0.107668437063694, -0.1325950026512146, 0.06544025242328644, -0.008908006362617016, 0.09858085960149765, -0.027592312544584274, -0.01737879030406475, -0.08589691668748856, -0.19012419879436493, -0.17447397112846375, 0.02827714942395687, -0.037787407636642456, 0.24255847930908203, -0.21342429518699646, 0.07098053395748138, 0.0898904949426651, 0.00629789661616087, -0.1088913232088089, -0.3740183413028717, 0.04023716598749161, 0.10187442600727081, 0.28017595410346985, 0.163030207157135, -0.1407671719789505, 0.11103677749633789, 0.21928240358829498, 0.08974048495292664, 0.04260769113898277, -0.029350420460104942, -0.1933804303407669, 0.12616929411888123, 0.08554834872484207, -0.14747504889965057, -0.13015732169151306, -0.07291174679994583, 0.03583453595638275, -0.4839373826980591, 0.013978355564177036, -0.1843390166759491, -0.12977983057498932, -0.01597321406006813, 0.01993347331881523, 0.32882991433143616, -0.06514915078878403, -0.01930028386414051, 0.10886331647634506, -0.05542968213558197, 0.16458351910114288, -0.025033801794052124, 0.07425359636545181, -0.06557199358940125, 0.011304010637104511, 0.4725331664085388, 0.24274688959121704, 0.08506616950035095, 0.09690262377262115, -0.010134146548807621, 0.2817108929157257, 0.6582722067832947, -0.03288774564862251, 0.03107643313705921, 0.3532449007034302, -0.12775491178035736, 0.057529956102371216, -0.08932090550661087, 0.36881181597709656, 0.09846222400665283, 0.02799084223806858, -0.2594919204711914, 0.21290066838264465, -0.07399797439575195, -0.2964356541633606, -0.11983205378055573, 0.19747580587863922, -0.14145269989967346, -0.022868873551487923, -0.13471531867980957, 0.7433813810348511, 0.5572594404220581, 0.24740445613861084, 0.3039766848087311, 0.1442442387342453, -0.2576976716518402, -0.07066396623849869, 0.26993250846862793, -0.24059589207172394, 0.1443699300289154, 0.00990285910665989, 0.06563597172498703, 0.03619799762964249, 0.2294364720582962, -0.2916404604911804, 0.2776002585887909, -0.039241984486579895, -0.021342052146792412, 0.15440677106380463, -0.04473987966775894, -0.37289702892303467, -0.08702149242162704, 0.08989528566598892, 0.08770622313022614, 0.17936716973781586, 0.5686981678009033, -0.024549275636672974, -0.04245932400226593, 0.23378244042396545, -0.5450392961502075, -0.1598232388496399, -0.013455948792397976, -0.03975486382842064, -0.03809092566370964, 0.3062267303466797, 0.11555987596511841, 0.3721618950366974, -0.0666225403547287, 0.00921366736292839, 0.34902170300483704, -0.08886030316352844, 0.41191110014915466, 0.37505239248275757, 0.1915796995162964, -0.007875160314142704, -0.020250316709280014, 0.36898234486579895, -0.18287953734397888, -0.4265231490135193, -0.046734973788261414, -0.2775048613548279, -0.02207748405635357, -0.3030235469341278, -0.15874305367469788, 0.04370060935616493, -0.22859527170658112, 0.22766859829425812, 0.2486737221479416, 0.041233647614717484, -0.18819190561771393, 0.17592354118824005, -0.3065353333950043, 0.06631609052419662, 0.2104422152042389, 0.0819098949432373, 0.11548029631376266, 0.03296012431383133, 0.3813120722770691, 0.35137367248535156, -0.14793279767036438, 0.7755977511405945, -0.22739292681217194, 0.0309287142008543, -0.3311326503753662, -0.14127115905284882, 0.28552088141441345, 0.04890027269721031, 0.04607197642326355, -0.04365001246333122, -0.38432759046554565, -0.001363625517114997, 0.5744263529777527, 0.03251210227608681, 0.35437488555908203, -0.13233532011508942, 0.0659540444612503, -0.40954139828681946, -0.10938737541437149, 0.14871570467948914, 0.16368484497070312, -0.34782344102859497, -0.02403697371482849, 0.18041692674160004, 0.1348891705274582, -0.39185017347335815, -0.11156781762838364, -0.03463926911354065, 0.2028905153274536, -0.2060115784406662, -0.0485137440264225, -0.1812778264284134, -0.015914464369416237, 0.1669817566871643, -0.42011237144470215, -0.37039855122566223, -0.1556205302476883, 0.12489655613899231, 0.09837877005338669, 0.35894328355789185, -0.044597405940294266, 0.17092430591583252, 0.08814775943756104, -0.4710342586040497, 0.07739842683076859, 0.2492632120847702, -0.29081249237060547, -0.14088328182697296, 0.19998548924922943, -0.27462464570999146, -0.18311923742294312, 0.20447707176208496, -0.015658752992749214, 0.0019719935953617096, 0.11524156481027603, -0.20622026920318604, 0.37462034821510315, -0.19175241887569427, -0.2771074175834656, 0.37660229206085205, 0.4684484004974365, -0.10059162229299545, 0.005653650499880314, -0.00029611014178954065, -0.40702393651008606, 0.03252933546900749, -0.003252639202401042, 0.3393225371837616, 0.38461005687713623, -0.10927432775497437, -0.16171421110630035, -0.20368921756744385, 0.23289993405342102, -0.4396820664405823, 0.04367028921842575, 0.2809235751628876, -0.07143238186836243, 0.24774859845638275, 0.06401952356100082, 0.4957173764705658, -0.3172492980957031, 0.12484385818243027, 0.06113811954855919, 0.023928003385663033, -0.49828463792800903, 0.02720613405108452, 0.36468470096588135, -0.13517634570598602, 0.16466686129570007, 0.5495707988739014, 0.18276347219944, -0.18475008010864258, 0.4903278350830078, -0.24188119173049927, 0.014283494092524052, 0.3627485930919647, -0.03234238550066948, 0.22120551764965057, -0.3238152861595154, 0.4563004672527313, 0.15505315363407135, 0.14660362899303436, -0.2886829972267151, 0.2081931233406067, 0.2888818383216858, -0.17589788138866425, -0.1435641497373581, -0.1675092726945877, 0.052912771701812744, -0.3343077600002289, -0.0852520614862442, -0.5235225558280945, -0.2694969177246094, -0.2397698611021042, -0.09182105213403702, -0.20172913372516632, 0.15102998912334442, 0.184667706489563, -0.1896214783191681, 0.12336605042219162, -0.46240100264549255, 0.01635126769542694, -0.15929552912712097, -0.1842118799686432, -0.0797925665974617, 0.6401214599609375, 0.22393152117729187, -0.20929545164108276, 0.6252644658088684, 0.5076648592948914, 0.3857695162296295, 0.07089396566152573, 0.18766851723194122, 0.13634036481380463, -0.0499095655977726, -0.24793660640716553, -0.16219806671142578, 0.01097038108855486, 0.2266455441713333, 0.2429662048816681, -0.03527972847223282, 0.11976701021194458, -0.1470699906349182, 0.04287729039788246, 0.0009340450633317232, 0.19710619747638702, -0.03143180161714554, -0.05453665181994438, 0.12471431493759155, -0.18743008375167847, -0.10269428789615631, -0.14163129031658173, -0.0071846675127744675, -0.23163676261901855, 0.5573568344116211, 0.14473609626293182, 0.0752149149775505, -0.3096888065338135, 0.10133441537618637, 0.0163485798984766, 0.515020489692688, 0.014491638168692589, -0.0647418424487114, 0.08712584525346756, -0.20967355370521545, -0.40150463581085205, 0.21365442872047424, 0.28571954369544983, 0.0942452922463417, -0.12368927150964737, -0.06866095215082169, 0.29126590490341187, 0.04814888536930084, 0.26408687233924866, -0.28353050351142883, -0.10178506374359131, -0.2704361081123352, -0.38315168023109436, 0.024877706542611122, 0.3755563199520111, 0.11925692856311798, -0.007933298125863075, -0.2357626110315323, 0.2831542491912842, 0.011966822668910027, 0.11053965985774994, -0.042701441794633865, -0.044670045375823975, 0.0014727310044690967, -0.12108859419822693, 0.14314207434654236, 0.08787760138511658, 0.4740321934223175, -0.1627388596534729, -0.09784723073244095, -0.05386129021644592, -0.07090211659669876, -0.603179931640625, -0.11674195528030396, 0.035992998629808426, 0.5240471959114075, -0.12335913628339767, 0.47024497389793396, -0.15080255270004272, -0.15517035126686096, 0.029027877375483513, 0.07026016712188721, -0.12510955333709717, 0.25950926542282104, 0.004659807775169611, 0.3517363667488098, 0.010522848926484585, -0.07183578610420227, 0.2509213089942932, -0.17247094213962555, -0.5465261936187744, -0.28558337688446045, 0.5287108421325684, 0.2635911703109741, -0.4426979124546051, -0.723198652267456, 0.1346382349729538, 0.11301286518573761, -0.05923663079738617, -0.08027494698762894, 0.06819194555282593, 0.18331266939640045, -0.3150345981121063, -0.005120361689478159, -0.020384859293699265, -0.06278101354837418, -0.1744260936975479, -0.040898919105529785, 0.39136040210723877, -0.052427660673856735, -0.25792860984802246, -0.6060261726379395, -0.15405356884002686 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
Thank you, @albertvillanova, for the quick response. I am not sure about the exact flow but I guess adding the following lines under the `_Languages` dictionary definition in [common_voice.py](https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py) might resolve the issue. I guess the dataset is recently made available so the file needs updating. ``` "ur": { "Language": "Urdu", "Date": "2022-01-19", "Size": "68 MB", "Version": "ur_3h_2022-01-19", "Validated_Hr_Total": 1, "Overall_Hr_Total": 3, "Number_Of_Voice": 48, }, ```
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
66
Builder Configuration Update Required on Common Voice Dataset
[ -0.6524866819381714, 0.38413265347480774, -0.06744194030761719, -0.11136505007743835, 0.08583786338567734, 0.020625868812203407, 0.28843051195144653, 0.12123043835163116, -0.4009939432144165, 0.24101631343364716, -0.07864212989807129, -0.028184115886688232, 0.0015199572080746293, -0.011669040657579899, -0.26424670219421387, 0.20344407856464386, -0.05035965517163277, 0.4214217960834503, 0.07954312860965729, -0.24213923513889313, 0.09790652245283127, 0.12753945589065552, -0.26394036412239075, 0.03158615157008171, -0.5481311082839966, -0.10938532650470734, 0.1271945983171463, 0.13316522538661957, -0.10361777245998383, -0.28420624136924744, 0.14202913641929626, 0.5528342723846436, -0.264614075422287, 0.21185339987277985, -0.00011618174175964668, 0.1671716868877411, 0.19256485998630524, -0.030520007014274597, -0.3312789797782898, 0.3738288879394531, -0.5272738933563232, 0.1751781553030014, -0.18868045508861542, 0.13094046711921692, -0.1402328461408615, -0.05200527608394623, 0.033120203763246536, 0.1040320172905922, 0.32837390899658203, 0.25866270065307617, 0.2411634624004364, 0.12467285245656967, 0.06841744482517242, -0.12165046483278275, -0.14653362333774567, -0.04998793452978134, 0.18806472420692444, 0.09298604726791382, 0.30379486083984375, 0.31261470913887024, -0.0269338209182024, 0.380031555891037, 0.13133974373340607, -0.33669179677963257, -0.10221877694129944, -0.2630683183670044, 0.32483339309692383, -0.15376774966716766, 0.3844292461872101, 0.023013604804873466, 0.7257822155952454, -0.05523895472288132, -0.003118297317996621, 0.02513042464852333, 0.10560904443264008, -0.09879691898822784, 0.3647049069404602, -0.1043642908334732, -0.1921495646238327, 0.050818052142858505, -0.2745732069015503, -0.6643875241279602, -0.023011261597275734, -0.1267821043729782, -0.28854015469551086, 0.18760362267494202, 0.02200731821358204, 0.01724616438150406, -0.19336006045341492, -0.1503450870513916, 0.07295548915863037, -0.11917273700237274, -0.2495102882385254, -0.08312419801950455, -0.20958763360977173, -0.3269910216331482, 0.06223176792263985, -0.06943818926811218, -0.14393112063407898, -0.137142151594162, 0.0790172815322876, 0.2229856699705124, -0.16404201090335846, 0.10747426003217697, 0.3511941730976105, 0.027166856452822685, 0.34852495789527893, 0.0749010369181633, 0.3858380913734436, -0.10486887395381927, -0.18050357699394226, 0.16193515062332153, -0.12763449549674988, -0.1554490178823471, 0.11570990830659866, 0.057952966541051865, 0.08878391981124878, -0.1442466825246811, -0.13162267208099365, 0.0814153328537941, -0.006294353399425745, 0.04065355658531189, 0.13700716197490692, 0.057795681059360504, 0.21443459391593933, -0.11254765093326569, -0.025081206113100052, 0.12563852965831757, 0.03515315800905228, -0.28075382113456726, -0.1985688954591751, -0.2912497818470001, -0.013233160600066185, -0.1324145793914795, 0.2487173229455948, -0.44162827730178833, -0.048459406942129135, 0.10675787180662155, -0.07538153976202011, -0.09149540215730667, -0.1800178438425064, 0.33221548795700073, -0.23691082000732422, 0.30701744556427, -0.12195566296577454, 0.05776697024703026, -0.18708887696266174, 0.028860878199338913, -0.20634493231773376, 0.2629309296607971, -0.14711815118789673, -0.6215483546257019, -0.017526857554912567, 0.2165360301733017, 0.20054422318935394, -0.05949612706899643, 0.5743678212165833, 0.28844812512397766, 0.4095233678817749, -0.6635436415672302, -0.1010749340057373, -0.1448390632867813, -0.2314511090517044, 0.10936465859413147, -0.1811213195323944, 0.08253145217895508, -0.3899838626384735, -0.16597072780132294, -0.08984149247407913, -0.21150542795658112, -0.09802845120429993, 0.07154271751642227, -0.19261568784713745, -0.19006392359733582, -0.03384517878293991, 0.16936162114143372, 0.709525465965271, -0.08239228278398514, -0.5337049961090088, -0.02528131939470768, -0.1392499804496765, -0.31294918060302734, 0.024868160486221313, -0.12015694379806519, -0.2792259156703949, -0.1349523663520813, 0.166450634598732, 0.10252664238214493, -0.005985230207443237, 0.17260462045669556, -0.02474616840481758, -0.24048832058906555, 0.026295261457562447, -0.027905337512493134, 0.12004633992910385, 0.10004593431949615, 0.006093991454690695, 0.17516562342643738, 0.1678352802991867, -0.09649308770895004, 0.14918510615825653, 0.13933426141738892, 0.09985137730836868, -0.29001566767692566, -0.0692540779709816, 0.07864975929260254, -0.17701919376850128, 0.11120057851076126, 0.10687009990215302, 0.2587144374847412, 0.39777034521102905, -0.03053603693842888, -0.0702502578496933, -0.21789950132369995, -0.44286614656448364, 0.10104642063379288, 0.19208784401416779, 0.3077879250049591, -0.11453639715909958, -0.378917396068573, -0.18164418637752533, -0.13654960691928864, -0.028889190405607224, -0.027298051863908768, 0.11764948070049286, 0.24741941690444946, -0.1992465853691101, -0.14120130240917206, 0.1294773370027542, 0.049216803163290024, -0.09238667786121368, 0.11582520604133606, -0.22324839234352112, 0.1622774302959442, -0.27776068449020386, 0.19795699417591095, -0.2762037515640259, 0.1613684594631195, -0.0632200688123703, 0.028521809726953506, 0.4678356945514679, -0.053345926105976105, -0.14997729659080505, -0.040607206523418427, 0.09547242522239685, 0.056745968759059906, 0.5180546641349792, 0.19267882406711578, -0.03788528963923454, 0.10195855051279068, 0.10437596589326859, 0.11405984312295914, -0.05789979174733162, -0.40985307097435, -0.4419247806072235, 0.027771655470132828, 0.5044502019882202, 0.36201658844947815, -0.41410529613494873, 0.249769389629364, 0.4620388448238373, 0.3550783693790436, 0.1453246772289276, 0.11854647099971771, 0.0026165791787207127, -0.197402223944664, 0.06451670080423355, -0.14411118626594543, 0.1802886426448822, 0.17923055589199066, 0.12329132109880447, 0.21825654804706573, 0.04369249567389488, -0.32457876205444336, 0.14818958938121796, -0.12334294617176056, 0.14694373309612274, 0.38931092619895935, 0.38703304529190063, -0.022521140053868294, -0.7127004861831665, 0.03633808344602585, 0.0676339641213417, -0.011726885102689266, -0.1415819674730301, -0.17107872664928436, -0.17597874999046326, 0.052174169570207596, -0.09977202862501144, -0.11188424378633499, -0.5056554079055786, -0.18004992604255676, 0.5394278168678284, -0.05793303996324539, -0.019906625151634216, 0.5802631378173828, 0.28320083022117615, 0.3105352818965912, 0.07940000295639038, 0.04194636270403862, -0.1738952398300171, 0.06659243255853653, -0.4214290976524353, 0.1164064034819603, 0.052657343447208405, -0.20843759179115295, -0.16382929682731628, -0.050705019384622574, 0.06115671619772911, -0.10931187868118286, -0.3172694742679596, 0.23031729459762573, 0.05891865864396095, -0.009989718906581402, 0.2992153763771057, -0.012962142936885357, 0.34800955653190613, -0.25013452768325806, 0.30913037061691284, 0.16269752383232117, -0.2224961370229721, -0.07544631510972977, -0.23374870419502258, -0.07969175279140472, -0.09322874993085861, -0.265480637550354, -0.0316644124686718, -0.3255424499511719, -0.215658038854599, -0.25456857681274414, 0.2720935642719269, 0.2840018570423126, 0.09005903452634811, -0.4054289162158966, -0.35170403122901917, 0.41437095403671265, -0.32936638593673706, 0.02567911520600319, -0.023656103760004044, -0.10092870146036148, -0.03675495833158493, -0.034973546862602234, -0.07158657163381577, 0.7069276571273804, 0.06710189580917358, -0.20886676013469696, 0.30281418561935425, -0.10598217695951462, 0.35228580236434937, 0.12638236582279205, 0.03093918412923813, 0.3759506344795227, 0.45358288288116455, -0.1615595668554306, -0.011419478803873062, -0.2124314308166504, 0.013575325720012188, 0.5705265402793884, 0.07221522182226181, -0.014730026014149189, 0.05484500154852867, -0.20373965799808502, 0.6464540362358093, 0.11326736211776733, -0.2463071644306183, 0.08776568621397018, -0.2254398912191391, 0.44329148530960083, -0.20952151715755463, -0.1941516250371933, 0.28627121448516846, 0.26123061776161194, -0.1460607647895813, 0.2786007821559906, 0.11478466540575027, -0.16485945880413055, -0.11462775617837906, -0.32641375064849854, 0.13977308571338654, -0.3012371063232422, -0.034761395305395126, -0.18820181488990784, 0.35695937275886536, 0.3781491219997406, 0.107668437063694, -0.1325950026512146, 0.06544025242328644, -0.008908006362617016, 0.09858085960149765, -0.027592312544584274, -0.01737879030406475, -0.08589691668748856, -0.19012419879436493, -0.17447397112846375, 0.02827714942395687, -0.037787407636642456, 0.24255847930908203, -0.21342429518699646, 0.07098053395748138, 0.0898904949426651, 0.00629789661616087, -0.1088913232088089, -0.3740183413028717, 0.04023716598749161, 0.10187442600727081, 0.28017595410346985, 0.163030207157135, -0.1407671719789505, 0.11103677749633789, 0.21928240358829498, 0.08974048495292664, 0.04260769113898277, -0.029350420460104942, -0.1933804303407669, 0.12616929411888123, 0.08554834872484207, -0.14747504889965057, -0.13015732169151306, -0.07291174679994583, 0.03583453595638275, -0.4839373826980591, 0.013978355564177036, -0.1843390166759491, -0.12977983057498932, -0.01597321406006813, 0.01993347331881523, 0.32882991433143616, -0.06514915078878403, -0.01930028386414051, 0.10886331647634506, -0.05542968213558197, 0.16458351910114288, -0.025033801794052124, 0.07425359636545181, -0.06557199358940125, 0.011304010637104511, 0.4725331664085388, 0.24274688959121704, 0.08506616950035095, 0.09690262377262115, -0.010134146548807621, 0.2817108929157257, 0.6582722067832947, -0.03288774564862251, 0.03107643313705921, 0.3532449007034302, -0.12775491178035736, 0.057529956102371216, -0.08932090550661087, 0.36881181597709656, 0.09846222400665283, 0.02799084223806858, -0.2594919204711914, 0.21290066838264465, -0.07399797439575195, -0.2964356541633606, -0.11983205378055573, 0.19747580587863922, -0.14145269989967346, -0.022868873551487923, -0.13471531867980957, 0.7433813810348511, 0.5572594404220581, 0.24740445613861084, 0.3039766848087311, 0.1442442387342453, -0.2576976716518402, -0.07066396623849869, 0.26993250846862793, -0.24059589207172394, 0.1443699300289154, 0.00990285910665989, 0.06563597172498703, 0.03619799762964249, 0.2294364720582962, -0.2916404604911804, 0.2776002585887909, -0.039241984486579895, -0.021342052146792412, 0.15440677106380463, -0.04473987966775894, -0.37289702892303467, -0.08702149242162704, 0.08989528566598892, 0.08770622313022614, 0.17936716973781586, 0.5686981678009033, -0.024549275636672974, -0.04245932400226593, 0.23378244042396545, -0.5450392961502075, -0.1598232388496399, -0.013455948792397976, -0.03975486382842064, -0.03809092566370964, 0.3062267303466797, 0.11555987596511841, 0.3721618950366974, -0.0666225403547287, 0.00921366736292839, 0.34902170300483704, -0.08886030316352844, 0.41191110014915466, 0.37505239248275757, 0.1915796995162964, -0.007875160314142704, -0.020250316709280014, 0.36898234486579895, -0.18287953734397888, -0.4265231490135193, -0.046734973788261414, -0.2775048613548279, -0.02207748405635357, -0.3030235469341278, -0.15874305367469788, 0.04370060935616493, -0.22859527170658112, 0.22766859829425812, 0.2486737221479416, 0.041233647614717484, -0.18819190561771393, 0.17592354118824005, -0.3065353333950043, 0.06631609052419662, 0.2104422152042389, 0.0819098949432373, 0.11548029631376266, 0.03296012431383133, 0.3813120722770691, 0.35137367248535156, -0.14793279767036438, 0.7755977511405945, -0.22739292681217194, 0.0309287142008543, -0.3311326503753662, -0.14127115905284882, 0.28552088141441345, 0.04890027269721031, 0.04607197642326355, -0.04365001246333122, -0.38432759046554565, -0.001363625517114997, 0.5744263529777527, 0.03251210227608681, 0.35437488555908203, -0.13233532011508942, 0.0659540444612503, -0.40954139828681946, -0.10938737541437149, 0.14871570467948914, 0.16368484497070312, -0.34782344102859497, -0.02403697371482849, 0.18041692674160004, 0.1348891705274582, -0.39185017347335815, -0.11156781762838364, -0.03463926911354065, 0.2028905153274536, -0.2060115784406662, -0.0485137440264225, -0.1812778264284134, -0.015914464369416237, 0.1669817566871643, -0.42011237144470215, -0.37039855122566223, -0.1556205302476883, 0.12489655613899231, 0.09837877005338669, 0.35894328355789185, -0.044597405940294266, 0.17092430591583252, 0.08814775943756104, -0.4710342586040497, 0.07739842683076859, 0.2492632120847702, -0.29081249237060547, -0.14088328182697296, 0.19998548924922943, -0.27462464570999146, -0.18311923742294312, 0.20447707176208496, -0.015658752992749214, 0.0019719935953617096, 0.11524156481027603, -0.20622026920318604, 0.37462034821510315, -0.19175241887569427, -0.2771074175834656, 0.37660229206085205, 0.4684484004974365, -0.10059162229299545, 0.005653650499880314, -0.00029611014178954065, -0.40702393651008606, 0.03252933546900749, -0.003252639202401042, 0.3393225371837616, 0.38461005687713623, -0.10927432775497437, -0.16171421110630035, -0.20368921756744385, 0.23289993405342102, -0.4396820664405823, 0.04367028921842575, 0.2809235751628876, -0.07143238186836243, 0.24774859845638275, 0.06401952356100082, 0.4957173764705658, -0.3172492980957031, 0.12484385818243027, 0.06113811954855919, 0.023928003385663033, -0.49828463792800903, 0.02720613405108452, 0.36468470096588135, -0.13517634570598602, 0.16466686129570007, 0.5495707988739014, 0.18276347219944, -0.18475008010864258, 0.4903278350830078, -0.24188119173049927, 0.014283494092524052, 0.3627485930919647, -0.03234238550066948, 0.22120551764965057, -0.3238152861595154, 0.4563004672527313, 0.15505315363407135, 0.14660362899303436, -0.2886829972267151, 0.2081931233406067, 0.2888818383216858, -0.17589788138866425, -0.1435641497373581, -0.1675092726945877, 0.052912771701812744, -0.3343077600002289, -0.0852520614862442, -0.5235225558280945, -0.2694969177246094, -0.2397698611021042, -0.09182105213403702, -0.20172913372516632, 0.15102998912334442, 0.184667706489563, -0.1896214783191681, 0.12336605042219162, -0.46240100264549255, 0.01635126769542694, -0.15929552912712097, -0.1842118799686432, -0.0797925665974617, 0.6401214599609375, 0.22393152117729187, -0.20929545164108276, 0.6252644658088684, 0.5076648592948914, 0.3857695162296295, 0.07089396566152573, 0.18766851723194122, 0.13634036481380463, -0.0499095655977726, -0.24793660640716553, -0.16219806671142578, 0.01097038108855486, 0.2266455441713333, 0.2429662048816681, -0.03527972847223282, 0.11976701021194458, -0.1470699906349182, 0.04287729039788246, 0.0009340450633317232, 0.19710619747638702, -0.03143180161714554, -0.05453665181994438, 0.12471431493759155, -0.18743008375167847, -0.10269428789615631, -0.14163129031658173, -0.0071846675127744675, -0.23163676261901855, 0.5573568344116211, 0.14473609626293182, 0.0752149149775505, -0.3096888065338135, 0.10133441537618637, 0.0163485798984766, 0.515020489692688, 0.014491638168692589, -0.0647418424487114, 0.08712584525346756, -0.20967355370521545, -0.40150463581085205, 0.21365442872047424, 0.28571954369544983, 0.0942452922463417, -0.12368927150964737, -0.06866095215082169, 0.29126590490341187, 0.04814888536930084, 0.26408687233924866, -0.28353050351142883, -0.10178506374359131, -0.2704361081123352, -0.38315168023109436, 0.024877706542611122, 0.3755563199520111, 0.11925692856311798, -0.007933298125863075, -0.2357626110315323, 0.2831542491912842, 0.011966822668910027, 0.11053965985774994, -0.042701441794633865, -0.044670045375823975, 0.0014727310044690967, -0.12108859419822693, 0.14314207434654236, 0.08787760138511658, 0.4740321934223175, -0.1627388596534729, -0.09784723073244095, -0.05386129021644592, -0.07090211659669876, -0.603179931640625, -0.11674195528030396, 0.035992998629808426, 0.5240471959114075, -0.12335913628339767, 0.47024497389793396, -0.15080255270004272, -0.15517035126686096, 0.029027877375483513, 0.07026016712188721, -0.12510955333709717, 0.25950926542282104, 0.004659807775169611, 0.3517363667488098, 0.010522848926484585, -0.07183578610420227, 0.2509213089942932, -0.17247094213962555, -0.5465261936187744, -0.28558337688446045, 0.5287108421325684, 0.2635911703109741, -0.4426979124546051, -0.723198652267456, 0.1346382349729538, 0.11301286518573761, -0.05923663079738617, -0.08027494698762894, 0.06819194555282593, 0.18331266939640045, -0.3150345981121063, -0.005120361689478159, -0.020384859293699265, -0.06278101354837418, -0.1744260936975479, -0.040898919105529785, 0.39136040210723877, -0.052427660673856735, -0.25792860984802246, -0.6060261726379395, -0.15405356884002686 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@aasem for compliance reasons, we are no longer updating the `common_voice.py` script. We agreed with Mozilla Foundation to use their community datasets instead, which will ask you to accept their terms of use: ``` You need to share your contact information to access this dataset. This repository is publicly accessible, but you have to register to access its content — don't worry, it's just one click! By clicking on “Access repository” below, you accept that your contact information (email address and username) can be shared with the repository authors. This will let the authors get in touch for instance if some parts of the repository's contents need to be taken down for licensing reasons. By clicking on “Access repository” below, you also agree to not attempt to determine the identity of speakers in the Common Voice dataset. You will immediately be granted access to the contents of the dataset. ``` In order to use e.g. their Common Voice dataset version 8.0, please: - First visit their dataset page: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Accept their term of use by clicking "Access repository" - You can then load their dataset with: ```python load_dataset("mozilla-foundation/common_voice_8_0", "ur", split="train+validation") ```
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
192
Builder Configuration Update Required on Common Voice Dataset
[ -0.6524866819381714, 0.38413265347480774, -0.06744194030761719, -0.11136505007743835, 0.08583786338567734, 0.020625868812203407, 0.28843051195144653, 0.12123043835163116, -0.4009939432144165, 0.24101631343364716, -0.07864212989807129, -0.028184115886688232, 0.0015199572080746293, -0.011669040657579899, -0.26424670219421387, 0.20344407856464386, -0.05035965517163277, 0.4214217960834503, 0.07954312860965729, -0.24213923513889313, 0.09790652245283127, 0.12753945589065552, -0.26394036412239075, 0.03158615157008171, -0.5481311082839966, -0.10938532650470734, 0.1271945983171463, 0.13316522538661957, -0.10361777245998383, -0.28420624136924744, 0.14202913641929626, 0.5528342723846436, -0.264614075422287, 0.21185339987277985, -0.00011618174175964668, 0.1671716868877411, 0.19256485998630524, -0.030520007014274597, -0.3312789797782898, 0.3738288879394531, -0.5272738933563232, 0.1751781553030014, -0.18868045508861542, 0.13094046711921692, -0.1402328461408615, -0.05200527608394623, 0.033120203763246536, 0.1040320172905922, 0.32837390899658203, 0.25866270065307617, 0.2411634624004364, 0.12467285245656967, 0.06841744482517242, -0.12165046483278275, -0.14653362333774567, -0.04998793452978134, 0.18806472420692444, 0.09298604726791382, 0.30379486083984375, 0.31261470913887024, -0.0269338209182024, 0.380031555891037, 0.13133974373340607, -0.33669179677963257, -0.10221877694129944, -0.2630683183670044, 0.32483339309692383, -0.15376774966716766, 0.3844292461872101, 0.023013604804873466, 0.7257822155952454, -0.05523895472288132, -0.003118297317996621, 0.02513042464852333, 0.10560904443264008, -0.09879691898822784, 0.3647049069404602, -0.1043642908334732, -0.1921495646238327, 0.050818052142858505, -0.2745732069015503, -0.6643875241279602, -0.023011261597275734, -0.1267821043729782, -0.28854015469551086, 0.18760362267494202, 0.02200731821358204, 0.01724616438150406, -0.19336006045341492, -0.1503450870513916, 0.07295548915863037, -0.11917273700237274, -0.2495102882385254, -0.08312419801950455, -0.20958763360977173, -0.3269910216331482, 0.06223176792263985, -0.06943818926811218, -0.14393112063407898, -0.137142151594162, 0.0790172815322876, 0.2229856699705124, -0.16404201090335846, 0.10747426003217697, 0.3511941730976105, 0.027166856452822685, 0.34852495789527893, 0.0749010369181633, 0.3858380913734436, -0.10486887395381927, -0.18050357699394226, 0.16193515062332153, -0.12763449549674988, -0.1554490178823471, 0.11570990830659866, 0.057952966541051865, 0.08878391981124878, -0.1442466825246811, -0.13162267208099365, 0.0814153328537941, -0.006294353399425745, 0.04065355658531189, 0.13700716197490692, 0.057795681059360504, 0.21443459391593933, -0.11254765093326569, -0.025081206113100052, 0.12563852965831757, 0.03515315800905228, -0.28075382113456726, -0.1985688954591751, -0.2912497818470001, -0.013233160600066185, -0.1324145793914795, 0.2487173229455948, -0.44162827730178833, -0.048459406942129135, 0.10675787180662155, -0.07538153976202011, -0.09149540215730667, -0.1800178438425064, 0.33221548795700073, -0.23691082000732422, 0.30701744556427, -0.12195566296577454, 0.05776697024703026, -0.18708887696266174, 0.028860878199338913, -0.20634493231773376, 0.2629309296607971, -0.14711815118789673, -0.6215483546257019, -0.017526857554912567, 0.2165360301733017, 0.20054422318935394, -0.05949612706899643, 0.5743678212165833, 0.28844812512397766, 0.4095233678817749, -0.6635436415672302, -0.1010749340057373, -0.1448390632867813, -0.2314511090517044, 0.10936465859413147, -0.1811213195323944, 0.08253145217895508, -0.3899838626384735, -0.16597072780132294, -0.08984149247407913, -0.21150542795658112, -0.09802845120429993, 0.07154271751642227, -0.19261568784713745, -0.19006392359733582, -0.03384517878293991, 0.16936162114143372, 0.709525465965271, -0.08239228278398514, -0.5337049961090088, -0.02528131939470768, -0.1392499804496765, -0.31294918060302734, 0.024868160486221313, -0.12015694379806519, -0.2792259156703949, -0.1349523663520813, 0.166450634598732, 0.10252664238214493, -0.005985230207443237, 0.17260462045669556, -0.02474616840481758, -0.24048832058906555, 0.026295261457562447, -0.027905337512493134, 0.12004633992910385, 0.10004593431949615, 0.006093991454690695, 0.17516562342643738, 0.1678352802991867, -0.09649308770895004, 0.14918510615825653, 0.13933426141738892, 0.09985137730836868, -0.29001566767692566, -0.0692540779709816, 0.07864975929260254, -0.17701919376850128, 0.11120057851076126, 0.10687009990215302, 0.2587144374847412, 0.39777034521102905, -0.03053603693842888, -0.0702502578496933, -0.21789950132369995, -0.44286614656448364, 0.10104642063379288, 0.19208784401416779, 0.3077879250049591, -0.11453639715909958, -0.378917396068573, -0.18164418637752533, -0.13654960691928864, -0.028889190405607224, -0.027298051863908768, 0.11764948070049286, 0.24741941690444946, -0.1992465853691101, -0.14120130240917206, 0.1294773370027542, 0.049216803163290024, -0.09238667786121368, 0.11582520604133606, -0.22324839234352112, 0.1622774302959442, -0.27776068449020386, 0.19795699417591095, -0.2762037515640259, 0.1613684594631195, -0.0632200688123703, 0.028521809726953506, 0.4678356945514679, -0.053345926105976105, -0.14997729659080505, -0.040607206523418427, 0.09547242522239685, 0.056745968759059906, 0.5180546641349792, 0.19267882406711578, -0.03788528963923454, 0.10195855051279068, 0.10437596589326859, 0.11405984312295914, -0.05789979174733162, -0.40985307097435, -0.4419247806072235, 0.027771655470132828, 0.5044502019882202, 0.36201658844947815, -0.41410529613494873, 0.249769389629364, 0.4620388448238373, 0.3550783693790436, 0.1453246772289276, 0.11854647099971771, 0.0026165791787207127, -0.197402223944664, 0.06451670080423355, -0.14411118626594543, 0.1802886426448822, 0.17923055589199066, 0.12329132109880447, 0.21825654804706573, 0.04369249567389488, -0.32457876205444336, 0.14818958938121796, -0.12334294617176056, 0.14694373309612274, 0.38931092619895935, 0.38703304529190063, -0.022521140053868294, -0.7127004861831665, 0.03633808344602585, 0.0676339641213417, -0.011726885102689266, -0.1415819674730301, -0.17107872664928436, -0.17597874999046326, 0.052174169570207596, -0.09977202862501144, -0.11188424378633499, -0.5056554079055786, -0.18004992604255676, 0.5394278168678284, -0.05793303996324539, -0.019906625151634216, 0.5802631378173828, 0.28320083022117615, 0.3105352818965912, 0.07940000295639038, 0.04194636270403862, -0.1738952398300171, 0.06659243255853653, -0.4214290976524353, 0.1164064034819603, 0.052657343447208405, -0.20843759179115295, -0.16382929682731628, -0.050705019384622574, 0.06115671619772911, -0.10931187868118286, -0.3172694742679596, 0.23031729459762573, 0.05891865864396095, -0.009989718906581402, 0.2992153763771057, -0.012962142936885357, 0.34800955653190613, -0.25013452768325806, 0.30913037061691284, 0.16269752383232117, -0.2224961370229721, -0.07544631510972977, -0.23374870419502258, -0.07969175279140472, -0.09322874993085861, -0.265480637550354, -0.0316644124686718, -0.3255424499511719, -0.215658038854599, -0.25456857681274414, 0.2720935642719269, 0.2840018570423126, 0.09005903452634811, -0.4054289162158966, -0.35170403122901917, 0.41437095403671265, -0.32936638593673706, 0.02567911520600319, -0.023656103760004044, -0.10092870146036148, -0.03675495833158493, -0.034973546862602234, -0.07158657163381577, 0.7069276571273804, 0.06710189580917358, -0.20886676013469696, 0.30281418561935425, -0.10598217695951462, 0.35228580236434937, 0.12638236582279205, 0.03093918412923813, 0.3759506344795227, 0.45358288288116455, -0.1615595668554306, -0.011419478803873062, -0.2124314308166504, 0.013575325720012188, 0.5705265402793884, 0.07221522182226181, -0.014730026014149189, 0.05484500154852867, -0.20373965799808502, 0.6464540362358093, 0.11326736211776733, -0.2463071644306183, 0.08776568621397018, -0.2254398912191391, 0.44329148530960083, -0.20952151715755463, -0.1941516250371933, 0.28627121448516846, 0.26123061776161194, -0.1460607647895813, 0.2786007821559906, 0.11478466540575027, -0.16485945880413055, -0.11462775617837906, -0.32641375064849854, 0.13977308571338654, -0.3012371063232422, -0.034761395305395126, -0.18820181488990784, 0.35695937275886536, 0.3781491219997406, 0.107668437063694, -0.1325950026512146, 0.06544025242328644, -0.008908006362617016, 0.09858085960149765, -0.027592312544584274, -0.01737879030406475, -0.08589691668748856, -0.19012419879436493, -0.17447397112846375, 0.02827714942395687, -0.037787407636642456, 0.24255847930908203, -0.21342429518699646, 0.07098053395748138, 0.0898904949426651, 0.00629789661616087, -0.1088913232088089, -0.3740183413028717, 0.04023716598749161, 0.10187442600727081, 0.28017595410346985, 0.163030207157135, -0.1407671719789505, 0.11103677749633789, 0.21928240358829498, 0.08974048495292664, 0.04260769113898277, -0.029350420460104942, -0.1933804303407669, 0.12616929411888123, 0.08554834872484207, -0.14747504889965057, -0.13015732169151306, -0.07291174679994583, 0.03583453595638275, -0.4839373826980591, 0.013978355564177036, -0.1843390166759491, -0.12977983057498932, -0.01597321406006813, 0.01993347331881523, 0.32882991433143616, -0.06514915078878403, -0.01930028386414051, 0.10886331647634506, -0.05542968213558197, 0.16458351910114288, -0.025033801794052124, 0.07425359636545181, -0.06557199358940125, 0.011304010637104511, 0.4725331664085388, 0.24274688959121704, 0.08506616950035095, 0.09690262377262115, -0.010134146548807621, 0.2817108929157257, 0.6582722067832947, -0.03288774564862251, 0.03107643313705921, 0.3532449007034302, -0.12775491178035736, 0.057529956102371216, -0.08932090550661087, 0.36881181597709656, 0.09846222400665283, 0.02799084223806858, -0.2594919204711914, 0.21290066838264465, -0.07399797439575195, -0.2964356541633606, -0.11983205378055573, 0.19747580587863922, -0.14145269989967346, -0.022868873551487923, -0.13471531867980957, 0.7433813810348511, 0.5572594404220581, 0.24740445613861084, 0.3039766848087311, 0.1442442387342453, -0.2576976716518402, -0.07066396623849869, 0.26993250846862793, -0.24059589207172394, 0.1443699300289154, 0.00990285910665989, 0.06563597172498703, 0.03619799762964249, 0.2294364720582962, -0.2916404604911804, 0.2776002585887909, -0.039241984486579895, -0.021342052146792412, 0.15440677106380463, -0.04473987966775894, -0.37289702892303467, -0.08702149242162704, 0.08989528566598892, 0.08770622313022614, 0.17936716973781586, 0.5686981678009033, -0.024549275636672974, -0.04245932400226593, 0.23378244042396545, -0.5450392961502075, -0.1598232388496399, -0.013455948792397976, -0.03975486382842064, -0.03809092566370964, 0.3062267303466797, 0.11555987596511841, 0.3721618950366974, -0.0666225403547287, 0.00921366736292839, 0.34902170300483704, -0.08886030316352844, 0.41191110014915466, 0.37505239248275757, 0.1915796995162964, -0.007875160314142704, -0.020250316709280014, 0.36898234486579895, -0.18287953734397888, -0.4265231490135193, -0.046734973788261414, -0.2775048613548279, -0.02207748405635357, -0.3030235469341278, -0.15874305367469788, 0.04370060935616493, -0.22859527170658112, 0.22766859829425812, 0.2486737221479416, 0.041233647614717484, -0.18819190561771393, 0.17592354118824005, -0.3065353333950043, 0.06631609052419662, 0.2104422152042389, 0.0819098949432373, 0.11548029631376266, 0.03296012431383133, 0.3813120722770691, 0.35137367248535156, -0.14793279767036438, 0.7755977511405945, -0.22739292681217194, 0.0309287142008543, -0.3311326503753662, -0.14127115905284882, 0.28552088141441345, 0.04890027269721031, 0.04607197642326355, -0.04365001246333122, -0.38432759046554565, -0.001363625517114997, 0.5744263529777527, 0.03251210227608681, 0.35437488555908203, -0.13233532011508942, 0.0659540444612503, -0.40954139828681946, -0.10938737541437149, 0.14871570467948914, 0.16368484497070312, -0.34782344102859497, -0.02403697371482849, 0.18041692674160004, 0.1348891705274582, -0.39185017347335815, -0.11156781762838364, -0.03463926911354065, 0.2028905153274536, -0.2060115784406662, -0.0485137440264225, -0.1812778264284134, -0.015914464369416237, 0.1669817566871643, -0.42011237144470215, -0.37039855122566223, -0.1556205302476883, 0.12489655613899231, 0.09837877005338669, 0.35894328355789185, -0.044597405940294266, 0.17092430591583252, 0.08814775943756104, -0.4710342586040497, 0.07739842683076859, 0.2492632120847702, -0.29081249237060547, -0.14088328182697296, 0.19998548924922943, -0.27462464570999146, -0.18311923742294312, 0.20447707176208496, -0.015658752992749214, 0.0019719935953617096, 0.11524156481027603, -0.20622026920318604, 0.37462034821510315, -0.19175241887569427, -0.2771074175834656, 0.37660229206085205, 0.4684484004974365, -0.10059162229299545, 0.005653650499880314, -0.00029611014178954065, -0.40702393651008606, 0.03252933546900749, -0.003252639202401042, 0.3393225371837616, 0.38461005687713623, -0.10927432775497437, -0.16171421110630035, -0.20368921756744385, 0.23289993405342102, -0.4396820664405823, 0.04367028921842575, 0.2809235751628876, -0.07143238186836243, 0.24774859845638275, 0.06401952356100082, 0.4957173764705658, -0.3172492980957031, 0.12484385818243027, 0.06113811954855919, 0.023928003385663033, -0.49828463792800903, 0.02720613405108452, 0.36468470096588135, -0.13517634570598602, 0.16466686129570007, 0.5495707988739014, 0.18276347219944, -0.18475008010864258, 0.4903278350830078, -0.24188119173049927, 0.014283494092524052, 0.3627485930919647, -0.03234238550066948, 0.22120551764965057, -0.3238152861595154, 0.4563004672527313, 0.15505315363407135, 0.14660362899303436, -0.2886829972267151, 0.2081931233406067, 0.2888818383216858, -0.17589788138866425, -0.1435641497373581, -0.1675092726945877, 0.052912771701812744, -0.3343077600002289, -0.0852520614862442, -0.5235225558280945, -0.2694969177246094, -0.2397698611021042, -0.09182105213403702, -0.20172913372516632, 0.15102998912334442, 0.184667706489563, -0.1896214783191681, 0.12336605042219162, -0.46240100264549255, 0.01635126769542694, -0.15929552912712097, -0.1842118799686432, -0.0797925665974617, 0.6401214599609375, 0.22393152117729187, -0.20929545164108276, 0.6252644658088684, 0.5076648592948914, 0.3857695162296295, 0.07089396566152573, 0.18766851723194122, 0.13634036481380463, -0.0499095655977726, -0.24793660640716553, -0.16219806671142578, 0.01097038108855486, 0.2266455441713333, 0.2429662048816681, -0.03527972847223282, 0.11976701021194458, -0.1470699906349182, 0.04287729039788246, 0.0009340450633317232, 0.19710619747638702, -0.03143180161714554, -0.05453665181994438, 0.12471431493759155, -0.18743008375167847, -0.10269428789615631, -0.14163129031658173, -0.0071846675127744675, -0.23163676261901855, 0.5573568344116211, 0.14473609626293182, 0.0752149149775505, -0.3096888065338135, 0.10133441537618637, 0.0163485798984766, 0.515020489692688, 0.014491638168692589, -0.0647418424487114, 0.08712584525346756, -0.20967355370521545, -0.40150463581085205, 0.21365442872047424, 0.28571954369544983, 0.0942452922463417, -0.12368927150964737, -0.06866095215082169, 0.29126590490341187, 0.04814888536930084, 0.26408687233924866, -0.28353050351142883, -0.10178506374359131, -0.2704361081123352, -0.38315168023109436, 0.024877706542611122, 0.3755563199520111, 0.11925692856311798, -0.007933298125863075, -0.2357626110315323, 0.2831542491912842, 0.011966822668910027, 0.11053965985774994, -0.042701441794633865, -0.044670045375823975, 0.0014727310044690967, -0.12108859419822693, 0.14314207434654236, 0.08787760138511658, 0.4740321934223175, -0.1627388596534729, -0.09784723073244095, -0.05386129021644592, -0.07090211659669876, -0.603179931640625, -0.11674195528030396, 0.035992998629808426, 0.5240471959114075, -0.12335913628339767, 0.47024497389793396, -0.15080255270004272, -0.15517035126686096, 0.029027877375483513, 0.07026016712188721, -0.12510955333709717, 0.25950926542282104, 0.004659807775169611, 0.3517363667488098, 0.010522848926484585, -0.07183578610420227, 0.2509213089942932, -0.17247094213962555, -0.5465261936187744, -0.28558337688446045, 0.5287108421325684, 0.2635911703109741, -0.4426979124546051, -0.723198652267456, 0.1346382349729538, 0.11301286518573761, -0.05923663079738617, -0.08027494698762894, 0.06819194555282593, 0.18331266939640045, -0.3150345981121063, -0.005120361689478159, -0.020384859293699265, -0.06278101354837418, -0.1744260936975479, -0.040898919105529785, 0.39136040210723877, -0.052427660673856735, -0.25792860984802246, -0.6060261726379395, -0.15405356884002686 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@albertvillanova >Maybe we should add an explaining note in our "legacy" Common Voice canonical script? Yes, I agree we should have a deprecation notice in the canonical script to redirect users to the new script.
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
35
Builder Configuration Update Required on Common Voice Dataset
[ -0.6524866819381714, 0.38413265347480774, -0.06744194030761719, -0.11136505007743835, 0.08583786338567734, 0.020625868812203407, 0.28843051195144653, 0.12123043835163116, -0.4009939432144165, 0.24101631343364716, -0.07864212989807129, -0.028184115886688232, 0.0015199572080746293, -0.011669040657579899, -0.26424670219421387, 0.20344407856464386, -0.05035965517163277, 0.4214217960834503, 0.07954312860965729, -0.24213923513889313, 0.09790652245283127, 0.12753945589065552, -0.26394036412239075, 0.03158615157008171, -0.5481311082839966, -0.10938532650470734, 0.1271945983171463, 0.13316522538661957, -0.10361777245998383, -0.28420624136924744, 0.14202913641929626, 0.5528342723846436, -0.264614075422287, 0.21185339987277985, -0.00011618174175964668, 0.1671716868877411, 0.19256485998630524, -0.030520007014274597, -0.3312789797782898, 0.3738288879394531, -0.5272738933563232, 0.1751781553030014, -0.18868045508861542, 0.13094046711921692, -0.1402328461408615, -0.05200527608394623, 0.033120203763246536, 0.1040320172905922, 0.32837390899658203, 0.25866270065307617, 0.2411634624004364, 0.12467285245656967, 0.06841744482517242, -0.12165046483278275, -0.14653362333774567, -0.04998793452978134, 0.18806472420692444, 0.09298604726791382, 0.30379486083984375, 0.31261470913887024, -0.0269338209182024, 0.380031555891037, 0.13133974373340607, -0.33669179677963257, -0.10221877694129944, -0.2630683183670044, 0.32483339309692383, -0.15376774966716766, 0.3844292461872101, 0.023013604804873466, 0.7257822155952454, -0.05523895472288132, -0.003118297317996621, 0.02513042464852333, 0.10560904443264008, -0.09879691898822784, 0.3647049069404602, -0.1043642908334732, -0.1921495646238327, 0.050818052142858505, -0.2745732069015503, -0.6643875241279602, -0.023011261597275734, -0.1267821043729782, -0.28854015469551086, 0.18760362267494202, 0.02200731821358204, 0.01724616438150406, -0.19336006045341492, -0.1503450870513916, 0.07295548915863037, -0.11917273700237274, -0.2495102882385254, -0.08312419801950455, -0.20958763360977173, -0.3269910216331482, 0.06223176792263985, -0.06943818926811218, -0.14393112063407898, -0.137142151594162, 0.0790172815322876, 0.2229856699705124, -0.16404201090335846, 0.10747426003217697, 0.3511941730976105, 0.027166856452822685, 0.34852495789527893, 0.0749010369181633, 0.3858380913734436, -0.10486887395381927, -0.18050357699394226, 0.16193515062332153, -0.12763449549674988, -0.1554490178823471, 0.11570990830659866, 0.057952966541051865, 0.08878391981124878, -0.1442466825246811, -0.13162267208099365, 0.0814153328537941, -0.006294353399425745, 0.04065355658531189, 0.13700716197490692, 0.057795681059360504, 0.21443459391593933, -0.11254765093326569, -0.025081206113100052, 0.12563852965831757, 0.03515315800905228, -0.28075382113456726, -0.1985688954591751, -0.2912497818470001, -0.013233160600066185, -0.1324145793914795, 0.2487173229455948, -0.44162827730178833, -0.048459406942129135, 0.10675787180662155, -0.07538153976202011, -0.09149540215730667, -0.1800178438425064, 0.33221548795700073, -0.23691082000732422, 0.30701744556427, -0.12195566296577454, 0.05776697024703026, -0.18708887696266174, 0.028860878199338913, -0.20634493231773376, 0.2629309296607971, -0.14711815118789673, -0.6215483546257019, -0.017526857554912567, 0.2165360301733017, 0.20054422318935394, -0.05949612706899643, 0.5743678212165833, 0.28844812512397766, 0.4095233678817749, -0.6635436415672302, -0.1010749340057373, -0.1448390632867813, -0.2314511090517044, 0.10936465859413147, -0.1811213195323944, 0.08253145217895508, -0.3899838626384735, -0.16597072780132294, -0.08984149247407913, -0.21150542795658112, -0.09802845120429993, 0.07154271751642227, -0.19261568784713745, -0.19006392359733582, -0.03384517878293991, 0.16936162114143372, 0.709525465965271, -0.08239228278398514, -0.5337049961090088, -0.02528131939470768, -0.1392499804496765, -0.31294918060302734, 0.024868160486221313, -0.12015694379806519, -0.2792259156703949, -0.1349523663520813, 0.166450634598732, 0.10252664238214493, -0.005985230207443237, 0.17260462045669556, -0.02474616840481758, -0.24048832058906555, 0.026295261457562447, -0.027905337512493134, 0.12004633992910385, 0.10004593431949615, 0.006093991454690695, 0.17516562342643738, 0.1678352802991867, -0.09649308770895004, 0.14918510615825653, 0.13933426141738892, 0.09985137730836868, -0.29001566767692566, -0.0692540779709816, 0.07864975929260254, -0.17701919376850128, 0.11120057851076126, 0.10687009990215302, 0.2587144374847412, 0.39777034521102905, -0.03053603693842888, -0.0702502578496933, -0.21789950132369995, -0.44286614656448364, 0.10104642063379288, 0.19208784401416779, 0.3077879250049591, -0.11453639715909958, -0.378917396068573, -0.18164418637752533, -0.13654960691928864, -0.028889190405607224, -0.027298051863908768, 0.11764948070049286, 0.24741941690444946, -0.1992465853691101, -0.14120130240917206, 0.1294773370027542, 0.049216803163290024, -0.09238667786121368, 0.11582520604133606, -0.22324839234352112, 0.1622774302959442, -0.27776068449020386, 0.19795699417591095, -0.2762037515640259, 0.1613684594631195, -0.0632200688123703, 0.028521809726953506, 0.4678356945514679, -0.053345926105976105, -0.14997729659080505, -0.040607206523418427, 0.09547242522239685, 0.056745968759059906, 0.5180546641349792, 0.19267882406711578, -0.03788528963923454, 0.10195855051279068, 0.10437596589326859, 0.11405984312295914, -0.05789979174733162, -0.40985307097435, -0.4419247806072235, 0.027771655470132828, 0.5044502019882202, 0.36201658844947815, -0.41410529613494873, 0.249769389629364, 0.4620388448238373, 0.3550783693790436, 0.1453246772289276, 0.11854647099971771, 0.0026165791787207127, -0.197402223944664, 0.06451670080423355, -0.14411118626594543, 0.1802886426448822, 0.17923055589199066, 0.12329132109880447, 0.21825654804706573, 0.04369249567389488, -0.32457876205444336, 0.14818958938121796, -0.12334294617176056, 0.14694373309612274, 0.38931092619895935, 0.38703304529190063, -0.022521140053868294, -0.7127004861831665, 0.03633808344602585, 0.0676339641213417, -0.011726885102689266, -0.1415819674730301, -0.17107872664928436, -0.17597874999046326, 0.052174169570207596, -0.09977202862501144, -0.11188424378633499, -0.5056554079055786, -0.18004992604255676, 0.5394278168678284, -0.05793303996324539, -0.019906625151634216, 0.5802631378173828, 0.28320083022117615, 0.3105352818965912, 0.07940000295639038, 0.04194636270403862, -0.1738952398300171, 0.06659243255853653, -0.4214290976524353, 0.1164064034819603, 0.052657343447208405, -0.20843759179115295, -0.16382929682731628, -0.050705019384622574, 0.06115671619772911, -0.10931187868118286, -0.3172694742679596, 0.23031729459762573, 0.05891865864396095, -0.009989718906581402, 0.2992153763771057, -0.012962142936885357, 0.34800955653190613, -0.25013452768325806, 0.30913037061691284, 0.16269752383232117, -0.2224961370229721, -0.07544631510972977, -0.23374870419502258, -0.07969175279140472, -0.09322874993085861, -0.265480637550354, -0.0316644124686718, -0.3255424499511719, -0.215658038854599, -0.25456857681274414, 0.2720935642719269, 0.2840018570423126, 0.09005903452634811, -0.4054289162158966, -0.35170403122901917, 0.41437095403671265, -0.32936638593673706, 0.02567911520600319, -0.023656103760004044, -0.10092870146036148, -0.03675495833158493, -0.034973546862602234, -0.07158657163381577, 0.7069276571273804, 0.06710189580917358, -0.20886676013469696, 0.30281418561935425, -0.10598217695951462, 0.35228580236434937, 0.12638236582279205, 0.03093918412923813, 0.3759506344795227, 0.45358288288116455, -0.1615595668554306, -0.011419478803873062, -0.2124314308166504, 0.013575325720012188, 0.5705265402793884, 0.07221522182226181, -0.014730026014149189, 0.05484500154852867, -0.20373965799808502, 0.6464540362358093, 0.11326736211776733, -0.2463071644306183, 0.08776568621397018, -0.2254398912191391, 0.44329148530960083, -0.20952151715755463, -0.1941516250371933, 0.28627121448516846, 0.26123061776161194, -0.1460607647895813, 0.2786007821559906, 0.11478466540575027, -0.16485945880413055, -0.11462775617837906, -0.32641375064849854, 0.13977308571338654, -0.3012371063232422, -0.034761395305395126, -0.18820181488990784, 0.35695937275886536, 0.3781491219997406, 0.107668437063694, -0.1325950026512146, 0.06544025242328644, -0.008908006362617016, 0.09858085960149765, -0.027592312544584274, -0.01737879030406475, -0.08589691668748856, -0.19012419879436493, -0.17447397112846375, 0.02827714942395687, -0.037787407636642456, 0.24255847930908203, -0.21342429518699646, 0.07098053395748138, 0.0898904949426651, 0.00629789661616087, -0.1088913232088089, -0.3740183413028717, 0.04023716598749161, 0.10187442600727081, 0.28017595410346985, 0.163030207157135, -0.1407671719789505, 0.11103677749633789, 0.21928240358829498, 0.08974048495292664, 0.04260769113898277, -0.029350420460104942, -0.1933804303407669, 0.12616929411888123, 0.08554834872484207, -0.14747504889965057, -0.13015732169151306, -0.07291174679994583, 0.03583453595638275, -0.4839373826980591, 0.013978355564177036, -0.1843390166759491, -0.12977983057498932, -0.01597321406006813, 0.01993347331881523, 0.32882991433143616, -0.06514915078878403, -0.01930028386414051, 0.10886331647634506, -0.05542968213558197, 0.16458351910114288, -0.025033801794052124, 0.07425359636545181, -0.06557199358940125, 0.011304010637104511, 0.4725331664085388, 0.24274688959121704, 0.08506616950035095, 0.09690262377262115, -0.010134146548807621, 0.2817108929157257, 0.6582722067832947, -0.03288774564862251, 0.03107643313705921, 0.3532449007034302, -0.12775491178035736, 0.057529956102371216, -0.08932090550661087, 0.36881181597709656, 0.09846222400665283, 0.02799084223806858, -0.2594919204711914, 0.21290066838264465, -0.07399797439575195, -0.2964356541633606, -0.11983205378055573, 0.19747580587863922, -0.14145269989967346, -0.022868873551487923, -0.13471531867980957, 0.7433813810348511, 0.5572594404220581, 0.24740445613861084, 0.3039766848087311, 0.1442442387342453, -0.2576976716518402, -0.07066396623849869, 0.26993250846862793, -0.24059589207172394, 0.1443699300289154, 0.00990285910665989, 0.06563597172498703, 0.03619799762964249, 0.2294364720582962, -0.2916404604911804, 0.2776002585887909, -0.039241984486579895, -0.021342052146792412, 0.15440677106380463, -0.04473987966775894, -0.37289702892303467, -0.08702149242162704, 0.08989528566598892, 0.08770622313022614, 0.17936716973781586, 0.5686981678009033, -0.024549275636672974, -0.04245932400226593, 0.23378244042396545, -0.5450392961502075, -0.1598232388496399, -0.013455948792397976, -0.03975486382842064, -0.03809092566370964, 0.3062267303466797, 0.11555987596511841, 0.3721618950366974, -0.0666225403547287, 0.00921366736292839, 0.34902170300483704, -0.08886030316352844, 0.41191110014915466, 0.37505239248275757, 0.1915796995162964, -0.007875160314142704, -0.020250316709280014, 0.36898234486579895, -0.18287953734397888, -0.4265231490135193, -0.046734973788261414, -0.2775048613548279, -0.02207748405635357, -0.3030235469341278, -0.15874305367469788, 0.04370060935616493, -0.22859527170658112, 0.22766859829425812, 0.2486737221479416, 0.041233647614717484, -0.18819190561771393, 0.17592354118824005, -0.3065353333950043, 0.06631609052419662, 0.2104422152042389, 0.0819098949432373, 0.11548029631376266, 0.03296012431383133, 0.3813120722770691, 0.35137367248535156, -0.14793279767036438, 0.7755977511405945, -0.22739292681217194, 0.0309287142008543, -0.3311326503753662, -0.14127115905284882, 0.28552088141441345, 0.04890027269721031, 0.04607197642326355, -0.04365001246333122, -0.38432759046554565, -0.001363625517114997, 0.5744263529777527, 0.03251210227608681, 0.35437488555908203, -0.13233532011508942, 0.0659540444612503, -0.40954139828681946, -0.10938737541437149, 0.14871570467948914, 0.16368484497070312, -0.34782344102859497, -0.02403697371482849, 0.18041692674160004, 0.1348891705274582, -0.39185017347335815, -0.11156781762838364, -0.03463926911354065, 0.2028905153274536, -0.2060115784406662, -0.0485137440264225, -0.1812778264284134, -0.015914464369416237, 0.1669817566871643, -0.42011237144470215, -0.37039855122566223, -0.1556205302476883, 0.12489655613899231, 0.09837877005338669, 0.35894328355789185, -0.044597405940294266, 0.17092430591583252, 0.08814775943756104, -0.4710342586040497, 0.07739842683076859, 0.2492632120847702, -0.29081249237060547, -0.14088328182697296, 0.19998548924922943, -0.27462464570999146, -0.18311923742294312, 0.20447707176208496, -0.015658752992749214, 0.0019719935953617096, 0.11524156481027603, -0.20622026920318604, 0.37462034821510315, -0.19175241887569427, -0.2771074175834656, 0.37660229206085205, 0.4684484004974365, -0.10059162229299545, 0.005653650499880314, -0.00029611014178954065, -0.40702393651008606, 0.03252933546900749, -0.003252639202401042, 0.3393225371837616, 0.38461005687713623, -0.10927432775497437, -0.16171421110630035, -0.20368921756744385, 0.23289993405342102, -0.4396820664405823, 0.04367028921842575, 0.2809235751628876, -0.07143238186836243, 0.24774859845638275, 0.06401952356100082, 0.4957173764705658, -0.3172492980957031, 0.12484385818243027, 0.06113811954855919, 0.023928003385663033, -0.49828463792800903, 0.02720613405108452, 0.36468470096588135, -0.13517634570598602, 0.16466686129570007, 0.5495707988739014, 0.18276347219944, -0.18475008010864258, 0.4903278350830078, -0.24188119173049927, 0.014283494092524052, 0.3627485930919647, -0.03234238550066948, 0.22120551764965057, -0.3238152861595154, 0.4563004672527313, 0.15505315363407135, 0.14660362899303436, -0.2886829972267151, 0.2081931233406067, 0.2888818383216858, -0.17589788138866425, -0.1435641497373581, -0.1675092726945877, 0.052912771701812744, -0.3343077600002289, -0.0852520614862442, -0.5235225558280945, -0.2694969177246094, -0.2397698611021042, -0.09182105213403702, -0.20172913372516632, 0.15102998912334442, 0.184667706489563, -0.1896214783191681, 0.12336605042219162, -0.46240100264549255, 0.01635126769542694, -0.15929552912712097, -0.1842118799686432, -0.0797925665974617, 0.6401214599609375, 0.22393152117729187, -0.20929545164108276, 0.6252644658088684, 0.5076648592948914, 0.3857695162296295, 0.07089396566152573, 0.18766851723194122, 0.13634036481380463, -0.0499095655977726, -0.24793660640716553, -0.16219806671142578, 0.01097038108855486, 0.2266455441713333, 0.2429662048816681, -0.03527972847223282, 0.11976701021194458, -0.1470699906349182, 0.04287729039788246, 0.0009340450633317232, 0.19710619747638702, -0.03143180161714554, -0.05453665181994438, 0.12471431493759155, -0.18743008375167847, -0.10269428789615631, -0.14163129031658173, -0.0071846675127744675, -0.23163676261901855, 0.5573568344116211, 0.14473609626293182, 0.0752149149775505, -0.3096888065338135, 0.10133441537618637, 0.0163485798984766, 0.515020489692688, 0.014491638168692589, -0.0647418424487114, 0.08712584525346756, -0.20967355370521545, -0.40150463581085205, 0.21365442872047424, 0.28571954369544983, 0.0942452922463417, -0.12368927150964737, -0.06866095215082169, 0.29126590490341187, 0.04814888536930084, 0.26408687233924866, -0.28353050351142883, -0.10178506374359131, -0.2704361081123352, -0.38315168023109436, 0.024877706542611122, 0.3755563199520111, 0.11925692856311798, -0.007933298125863075, -0.2357626110315323, 0.2831542491912842, 0.011966822668910027, 0.11053965985774994, -0.042701441794633865, -0.044670045375823975, 0.0014727310044690967, -0.12108859419822693, 0.14314207434654236, 0.08787760138511658, 0.4740321934223175, -0.1627388596534729, -0.09784723073244095, -0.05386129021644592, -0.07090211659669876, -0.603179931640625, -0.11674195528030396, 0.035992998629808426, 0.5240471959114075, -0.12335913628339767, 0.47024497389793396, -0.15080255270004272, -0.15517035126686096, 0.029027877375483513, 0.07026016712188721, -0.12510955333709717, 0.25950926542282104, 0.004659807775169611, 0.3517363667488098, 0.010522848926484585, -0.07183578610420227, 0.2509213089942932, -0.17247094213962555, -0.5465261936187744, -0.28558337688446045, 0.5287108421325684, 0.2635911703109741, -0.4426979124546051, -0.723198652267456, 0.1346382349729538, 0.11301286518573761, -0.05923663079738617, -0.08027494698762894, 0.06819194555282593, 0.18331266939640045, -0.3150345981121063, -0.005120361689478159, -0.020384859293699265, -0.06278101354837418, -0.1744260936975479, -0.040898919105529785, 0.39136040210723877, -0.052427660673856735, -0.25792860984802246, -0.6060261726379395, -0.15405356884002686 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@albertvillanova, I now get the following error after downloading my access token from the huggingface and passing it to `load_dataset` call: `AttributeError: 'DownloadManager' object has no attribute 'download_config'` Any quick pointer on how it might be resolved?
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
37
Builder Configuration Update Required on Common Voice Dataset
[ -0.6524866819381714, 0.38413265347480774, -0.06744194030761719, -0.11136505007743835, 0.08583786338567734, 0.020625868812203407, 0.28843051195144653, 0.12123043835163116, -0.4009939432144165, 0.24101631343364716, -0.07864212989807129, -0.028184115886688232, 0.0015199572080746293, -0.011669040657579899, -0.26424670219421387, 0.20344407856464386, -0.05035965517163277, 0.4214217960834503, 0.07954312860965729, -0.24213923513889313, 0.09790652245283127, 0.12753945589065552, -0.26394036412239075, 0.03158615157008171, -0.5481311082839966, -0.10938532650470734, 0.1271945983171463, 0.13316522538661957, -0.10361777245998383, -0.28420624136924744, 0.14202913641929626, 0.5528342723846436, -0.264614075422287, 0.21185339987277985, -0.00011618174175964668, 0.1671716868877411, 0.19256485998630524, -0.030520007014274597, -0.3312789797782898, 0.3738288879394531, -0.5272738933563232, 0.1751781553030014, -0.18868045508861542, 0.13094046711921692, -0.1402328461408615, -0.05200527608394623, 0.033120203763246536, 0.1040320172905922, 0.32837390899658203, 0.25866270065307617, 0.2411634624004364, 0.12467285245656967, 0.06841744482517242, -0.12165046483278275, -0.14653362333774567, -0.04998793452978134, 0.18806472420692444, 0.09298604726791382, 0.30379486083984375, 0.31261470913887024, -0.0269338209182024, 0.380031555891037, 0.13133974373340607, -0.33669179677963257, -0.10221877694129944, -0.2630683183670044, 0.32483339309692383, -0.15376774966716766, 0.3844292461872101, 0.023013604804873466, 0.7257822155952454, -0.05523895472288132, -0.003118297317996621, 0.02513042464852333, 0.10560904443264008, -0.09879691898822784, 0.3647049069404602, -0.1043642908334732, -0.1921495646238327, 0.050818052142858505, -0.2745732069015503, -0.6643875241279602, -0.023011261597275734, -0.1267821043729782, -0.28854015469551086, 0.18760362267494202, 0.02200731821358204, 0.01724616438150406, -0.19336006045341492, -0.1503450870513916, 0.07295548915863037, -0.11917273700237274, -0.2495102882385254, -0.08312419801950455, -0.20958763360977173, -0.3269910216331482, 0.06223176792263985, -0.06943818926811218, -0.14393112063407898, -0.137142151594162, 0.0790172815322876, 0.2229856699705124, -0.16404201090335846, 0.10747426003217697, 0.3511941730976105, 0.027166856452822685, 0.34852495789527893, 0.0749010369181633, 0.3858380913734436, -0.10486887395381927, -0.18050357699394226, 0.16193515062332153, -0.12763449549674988, -0.1554490178823471, 0.11570990830659866, 0.057952966541051865, 0.08878391981124878, -0.1442466825246811, -0.13162267208099365, 0.0814153328537941, -0.006294353399425745, 0.04065355658531189, 0.13700716197490692, 0.057795681059360504, 0.21443459391593933, -0.11254765093326569, -0.025081206113100052, 0.12563852965831757, 0.03515315800905228, -0.28075382113456726, -0.1985688954591751, -0.2912497818470001, -0.013233160600066185, -0.1324145793914795, 0.2487173229455948, -0.44162827730178833, -0.048459406942129135, 0.10675787180662155, -0.07538153976202011, -0.09149540215730667, -0.1800178438425064, 0.33221548795700073, -0.23691082000732422, 0.30701744556427, -0.12195566296577454, 0.05776697024703026, -0.18708887696266174, 0.028860878199338913, -0.20634493231773376, 0.2629309296607971, -0.14711815118789673, -0.6215483546257019, -0.017526857554912567, 0.2165360301733017, 0.20054422318935394, -0.05949612706899643, 0.5743678212165833, 0.28844812512397766, 0.4095233678817749, -0.6635436415672302, -0.1010749340057373, -0.1448390632867813, -0.2314511090517044, 0.10936465859413147, -0.1811213195323944, 0.08253145217895508, -0.3899838626384735, -0.16597072780132294, -0.08984149247407913, -0.21150542795658112, -0.09802845120429993, 0.07154271751642227, -0.19261568784713745, -0.19006392359733582, -0.03384517878293991, 0.16936162114143372, 0.709525465965271, -0.08239228278398514, -0.5337049961090088, -0.02528131939470768, -0.1392499804496765, -0.31294918060302734, 0.024868160486221313, -0.12015694379806519, -0.2792259156703949, -0.1349523663520813, 0.166450634598732, 0.10252664238214493, -0.005985230207443237, 0.17260462045669556, -0.02474616840481758, -0.24048832058906555, 0.026295261457562447, -0.027905337512493134, 0.12004633992910385, 0.10004593431949615, 0.006093991454690695, 0.17516562342643738, 0.1678352802991867, -0.09649308770895004, 0.14918510615825653, 0.13933426141738892, 0.09985137730836868, -0.29001566767692566, -0.0692540779709816, 0.07864975929260254, -0.17701919376850128, 0.11120057851076126, 0.10687009990215302, 0.2587144374847412, 0.39777034521102905, -0.03053603693842888, -0.0702502578496933, -0.21789950132369995, -0.44286614656448364, 0.10104642063379288, 0.19208784401416779, 0.3077879250049591, -0.11453639715909958, -0.378917396068573, -0.18164418637752533, -0.13654960691928864, -0.028889190405607224, -0.027298051863908768, 0.11764948070049286, 0.24741941690444946, -0.1992465853691101, -0.14120130240917206, 0.1294773370027542, 0.049216803163290024, -0.09238667786121368, 0.11582520604133606, -0.22324839234352112, 0.1622774302959442, -0.27776068449020386, 0.19795699417591095, -0.2762037515640259, 0.1613684594631195, -0.0632200688123703, 0.028521809726953506, 0.4678356945514679, -0.053345926105976105, -0.14997729659080505, -0.040607206523418427, 0.09547242522239685, 0.056745968759059906, 0.5180546641349792, 0.19267882406711578, -0.03788528963923454, 0.10195855051279068, 0.10437596589326859, 0.11405984312295914, -0.05789979174733162, -0.40985307097435, -0.4419247806072235, 0.027771655470132828, 0.5044502019882202, 0.36201658844947815, -0.41410529613494873, 0.249769389629364, 0.4620388448238373, 0.3550783693790436, 0.1453246772289276, 0.11854647099971771, 0.0026165791787207127, -0.197402223944664, 0.06451670080423355, -0.14411118626594543, 0.1802886426448822, 0.17923055589199066, 0.12329132109880447, 0.21825654804706573, 0.04369249567389488, -0.32457876205444336, 0.14818958938121796, -0.12334294617176056, 0.14694373309612274, 0.38931092619895935, 0.38703304529190063, -0.022521140053868294, -0.7127004861831665, 0.03633808344602585, 0.0676339641213417, -0.011726885102689266, -0.1415819674730301, -0.17107872664928436, -0.17597874999046326, 0.052174169570207596, -0.09977202862501144, -0.11188424378633499, -0.5056554079055786, -0.18004992604255676, 0.5394278168678284, -0.05793303996324539, -0.019906625151634216, 0.5802631378173828, 0.28320083022117615, 0.3105352818965912, 0.07940000295639038, 0.04194636270403862, -0.1738952398300171, 0.06659243255853653, -0.4214290976524353, 0.1164064034819603, 0.052657343447208405, -0.20843759179115295, -0.16382929682731628, -0.050705019384622574, 0.06115671619772911, -0.10931187868118286, -0.3172694742679596, 0.23031729459762573, 0.05891865864396095, -0.009989718906581402, 0.2992153763771057, -0.012962142936885357, 0.34800955653190613, -0.25013452768325806, 0.30913037061691284, 0.16269752383232117, -0.2224961370229721, -0.07544631510972977, -0.23374870419502258, -0.07969175279140472, -0.09322874993085861, -0.265480637550354, -0.0316644124686718, -0.3255424499511719, -0.215658038854599, -0.25456857681274414, 0.2720935642719269, 0.2840018570423126, 0.09005903452634811, -0.4054289162158966, -0.35170403122901917, 0.41437095403671265, -0.32936638593673706, 0.02567911520600319, -0.023656103760004044, -0.10092870146036148, -0.03675495833158493, -0.034973546862602234, -0.07158657163381577, 0.7069276571273804, 0.06710189580917358, -0.20886676013469696, 0.30281418561935425, -0.10598217695951462, 0.35228580236434937, 0.12638236582279205, 0.03093918412923813, 0.3759506344795227, 0.45358288288116455, -0.1615595668554306, -0.011419478803873062, -0.2124314308166504, 0.013575325720012188, 0.5705265402793884, 0.07221522182226181, -0.014730026014149189, 0.05484500154852867, -0.20373965799808502, 0.6464540362358093, 0.11326736211776733, -0.2463071644306183, 0.08776568621397018, -0.2254398912191391, 0.44329148530960083, -0.20952151715755463, -0.1941516250371933, 0.28627121448516846, 0.26123061776161194, -0.1460607647895813, 0.2786007821559906, 0.11478466540575027, -0.16485945880413055, -0.11462775617837906, -0.32641375064849854, 0.13977308571338654, -0.3012371063232422, -0.034761395305395126, -0.18820181488990784, 0.35695937275886536, 0.3781491219997406, 0.107668437063694, -0.1325950026512146, 0.06544025242328644, -0.008908006362617016, 0.09858085960149765, -0.027592312544584274, -0.01737879030406475, -0.08589691668748856, -0.19012419879436493, -0.17447397112846375, 0.02827714942395687, -0.037787407636642456, 0.24255847930908203, -0.21342429518699646, 0.07098053395748138, 0.0898904949426651, 0.00629789661616087, -0.1088913232088089, -0.3740183413028717, 0.04023716598749161, 0.10187442600727081, 0.28017595410346985, 0.163030207157135, -0.1407671719789505, 0.11103677749633789, 0.21928240358829498, 0.08974048495292664, 0.04260769113898277, -0.029350420460104942, -0.1933804303407669, 0.12616929411888123, 0.08554834872484207, -0.14747504889965057, -0.13015732169151306, -0.07291174679994583, 0.03583453595638275, -0.4839373826980591, 0.013978355564177036, -0.1843390166759491, -0.12977983057498932, -0.01597321406006813, 0.01993347331881523, 0.32882991433143616, -0.06514915078878403, -0.01930028386414051, 0.10886331647634506, -0.05542968213558197, 0.16458351910114288, -0.025033801794052124, 0.07425359636545181, -0.06557199358940125, 0.011304010637104511, 0.4725331664085388, 0.24274688959121704, 0.08506616950035095, 0.09690262377262115, -0.010134146548807621, 0.2817108929157257, 0.6582722067832947, -0.03288774564862251, 0.03107643313705921, 0.3532449007034302, -0.12775491178035736, 0.057529956102371216, -0.08932090550661087, 0.36881181597709656, 0.09846222400665283, 0.02799084223806858, -0.2594919204711914, 0.21290066838264465, -0.07399797439575195, -0.2964356541633606, -0.11983205378055573, 0.19747580587863922, -0.14145269989967346, -0.022868873551487923, -0.13471531867980957, 0.7433813810348511, 0.5572594404220581, 0.24740445613861084, 0.3039766848087311, 0.1442442387342453, -0.2576976716518402, -0.07066396623849869, 0.26993250846862793, -0.24059589207172394, 0.1443699300289154, 0.00990285910665989, 0.06563597172498703, 0.03619799762964249, 0.2294364720582962, -0.2916404604911804, 0.2776002585887909, -0.039241984486579895, -0.021342052146792412, 0.15440677106380463, -0.04473987966775894, -0.37289702892303467, -0.08702149242162704, 0.08989528566598892, 0.08770622313022614, 0.17936716973781586, 0.5686981678009033, -0.024549275636672974, -0.04245932400226593, 0.23378244042396545, -0.5450392961502075, -0.1598232388496399, -0.013455948792397976, -0.03975486382842064, -0.03809092566370964, 0.3062267303466797, 0.11555987596511841, 0.3721618950366974, -0.0666225403547287, 0.00921366736292839, 0.34902170300483704, -0.08886030316352844, 0.41191110014915466, 0.37505239248275757, 0.1915796995162964, -0.007875160314142704, -0.020250316709280014, 0.36898234486579895, -0.18287953734397888, -0.4265231490135193, -0.046734973788261414, -0.2775048613548279, -0.02207748405635357, -0.3030235469341278, -0.15874305367469788, 0.04370060935616493, -0.22859527170658112, 0.22766859829425812, 0.2486737221479416, 0.041233647614717484, -0.18819190561771393, 0.17592354118824005, -0.3065353333950043, 0.06631609052419662, 0.2104422152042389, 0.0819098949432373, 0.11548029631376266, 0.03296012431383133, 0.3813120722770691, 0.35137367248535156, -0.14793279767036438, 0.7755977511405945, -0.22739292681217194, 0.0309287142008543, -0.3311326503753662, -0.14127115905284882, 0.28552088141441345, 0.04890027269721031, 0.04607197642326355, -0.04365001246333122, -0.38432759046554565, -0.001363625517114997, 0.5744263529777527, 0.03251210227608681, 0.35437488555908203, -0.13233532011508942, 0.0659540444612503, -0.40954139828681946, -0.10938737541437149, 0.14871570467948914, 0.16368484497070312, -0.34782344102859497, -0.02403697371482849, 0.18041692674160004, 0.1348891705274582, -0.39185017347335815, -0.11156781762838364, -0.03463926911354065, 0.2028905153274536, -0.2060115784406662, -0.0485137440264225, -0.1812778264284134, -0.015914464369416237, 0.1669817566871643, -0.42011237144470215, -0.37039855122566223, -0.1556205302476883, 0.12489655613899231, 0.09837877005338669, 0.35894328355789185, -0.044597405940294266, 0.17092430591583252, 0.08814775943756104, -0.4710342586040497, 0.07739842683076859, 0.2492632120847702, -0.29081249237060547, -0.14088328182697296, 0.19998548924922943, -0.27462464570999146, -0.18311923742294312, 0.20447707176208496, -0.015658752992749214, 0.0019719935953617096, 0.11524156481027603, -0.20622026920318604, 0.37462034821510315, -0.19175241887569427, -0.2771074175834656, 0.37660229206085205, 0.4684484004974365, -0.10059162229299545, 0.005653650499880314, -0.00029611014178954065, -0.40702393651008606, 0.03252933546900749, -0.003252639202401042, 0.3393225371837616, 0.38461005687713623, -0.10927432775497437, -0.16171421110630035, -0.20368921756744385, 0.23289993405342102, -0.4396820664405823, 0.04367028921842575, 0.2809235751628876, -0.07143238186836243, 0.24774859845638275, 0.06401952356100082, 0.4957173764705658, -0.3172492980957031, 0.12484385818243027, 0.06113811954855919, 0.023928003385663033, -0.49828463792800903, 0.02720613405108452, 0.36468470096588135, -0.13517634570598602, 0.16466686129570007, 0.5495707988739014, 0.18276347219944, -0.18475008010864258, 0.4903278350830078, -0.24188119173049927, 0.014283494092524052, 0.3627485930919647, -0.03234238550066948, 0.22120551764965057, -0.3238152861595154, 0.4563004672527313, 0.15505315363407135, 0.14660362899303436, -0.2886829972267151, 0.2081931233406067, 0.2888818383216858, -0.17589788138866425, -0.1435641497373581, -0.1675092726945877, 0.052912771701812744, -0.3343077600002289, -0.0852520614862442, -0.5235225558280945, -0.2694969177246094, -0.2397698611021042, -0.09182105213403702, -0.20172913372516632, 0.15102998912334442, 0.184667706489563, -0.1896214783191681, 0.12336605042219162, -0.46240100264549255, 0.01635126769542694, -0.15929552912712097, -0.1842118799686432, -0.0797925665974617, 0.6401214599609375, 0.22393152117729187, -0.20929545164108276, 0.6252644658088684, 0.5076648592948914, 0.3857695162296295, 0.07089396566152573, 0.18766851723194122, 0.13634036481380463, -0.0499095655977726, -0.24793660640716553, -0.16219806671142578, 0.01097038108855486, 0.2266455441713333, 0.2429662048816681, -0.03527972847223282, 0.11976701021194458, -0.1470699906349182, 0.04287729039788246, 0.0009340450633317232, 0.19710619747638702, -0.03143180161714554, -0.05453665181994438, 0.12471431493759155, -0.18743008375167847, -0.10269428789615631, -0.14163129031658173, -0.0071846675127744675, -0.23163676261901855, 0.5573568344116211, 0.14473609626293182, 0.0752149149775505, -0.3096888065338135, 0.10133441537618637, 0.0163485798984766, 0.515020489692688, 0.014491638168692589, -0.0647418424487114, 0.08712584525346756, -0.20967355370521545, -0.40150463581085205, 0.21365442872047424, 0.28571954369544983, 0.0942452922463417, -0.12368927150964737, -0.06866095215082169, 0.29126590490341187, 0.04814888536930084, 0.26408687233924866, -0.28353050351142883, -0.10178506374359131, -0.2704361081123352, -0.38315168023109436, 0.024877706542611122, 0.3755563199520111, 0.11925692856311798, -0.007933298125863075, -0.2357626110315323, 0.2831542491912842, 0.011966822668910027, 0.11053965985774994, -0.042701441794633865, -0.044670045375823975, 0.0014727310044690967, -0.12108859419822693, 0.14314207434654236, 0.08787760138511658, 0.4740321934223175, -0.1627388596534729, -0.09784723073244095, -0.05386129021644592, -0.07090211659669876, -0.603179931640625, -0.11674195528030396, 0.035992998629808426, 0.5240471959114075, -0.12335913628339767, 0.47024497389793396, -0.15080255270004272, -0.15517035126686096, 0.029027877375483513, 0.07026016712188721, -0.12510955333709717, 0.25950926542282104, 0.004659807775169611, 0.3517363667488098, 0.010522848926484585, -0.07183578610420227, 0.2509213089942932, -0.17247094213962555, -0.5465261936187744, -0.28558337688446045, 0.5287108421325684, 0.2635911703109741, -0.4426979124546051, -0.723198652267456, 0.1346382349729538, 0.11301286518573761, -0.05923663079738617, -0.08027494698762894, 0.06819194555282593, 0.18331266939640045, -0.3150345981121063, -0.005120361689478159, -0.020384859293699265, -0.06278101354837418, -0.1744260936975479, -0.040898919105529785, 0.39136040210723877, -0.052427660673856735, -0.25792860984802246, -0.6060261726379395, -0.15405356884002686 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@aasem What version of `datasets` are you using? We renamed that attribute from `_download_config` to `download_conig` fairly recently, so updating to the newest version should resolve the issue: ``` pip install -U datasets ```
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
34
Builder Configuration Update Required on Common Voice Dataset
[ -0.6524866819381714, 0.38413265347480774, -0.06744194030761719, -0.11136505007743835, 0.08583786338567734, 0.020625868812203407, 0.28843051195144653, 0.12123043835163116, -0.4009939432144165, 0.24101631343364716, -0.07864212989807129, -0.028184115886688232, 0.0015199572080746293, -0.011669040657579899, -0.26424670219421387, 0.20344407856464386, -0.05035965517163277, 0.4214217960834503, 0.07954312860965729, -0.24213923513889313, 0.09790652245283127, 0.12753945589065552, -0.26394036412239075, 0.03158615157008171, -0.5481311082839966, -0.10938532650470734, 0.1271945983171463, 0.13316522538661957, -0.10361777245998383, -0.28420624136924744, 0.14202913641929626, 0.5528342723846436, -0.264614075422287, 0.21185339987277985, -0.00011618174175964668, 0.1671716868877411, 0.19256485998630524, -0.030520007014274597, -0.3312789797782898, 0.3738288879394531, -0.5272738933563232, 0.1751781553030014, -0.18868045508861542, 0.13094046711921692, -0.1402328461408615, -0.05200527608394623, 0.033120203763246536, 0.1040320172905922, 0.32837390899658203, 0.25866270065307617, 0.2411634624004364, 0.12467285245656967, 0.06841744482517242, -0.12165046483278275, -0.14653362333774567, -0.04998793452978134, 0.18806472420692444, 0.09298604726791382, 0.30379486083984375, 0.31261470913887024, -0.0269338209182024, 0.380031555891037, 0.13133974373340607, -0.33669179677963257, -0.10221877694129944, -0.2630683183670044, 0.32483339309692383, -0.15376774966716766, 0.3844292461872101, 0.023013604804873466, 0.7257822155952454, -0.05523895472288132, -0.003118297317996621, 0.02513042464852333, 0.10560904443264008, -0.09879691898822784, 0.3647049069404602, -0.1043642908334732, -0.1921495646238327, 0.050818052142858505, -0.2745732069015503, -0.6643875241279602, -0.023011261597275734, -0.1267821043729782, -0.28854015469551086, 0.18760362267494202, 0.02200731821358204, 0.01724616438150406, -0.19336006045341492, -0.1503450870513916, 0.07295548915863037, -0.11917273700237274, -0.2495102882385254, -0.08312419801950455, -0.20958763360977173, -0.3269910216331482, 0.06223176792263985, -0.06943818926811218, -0.14393112063407898, -0.137142151594162, 0.0790172815322876, 0.2229856699705124, -0.16404201090335846, 0.10747426003217697, 0.3511941730976105, 0.027166856452822685, 0.34852495789527893, 0.0749010369181633, 0.3858380913734436, -0.10486887395381927, -0.18050357699394226, 0.16193515062332153, -0.12763449549674988, -0.1554490178823471, 0.11570990830659866, 0.057952966541051865, 0.08878391981124878, -0.1442466825246811, -0.13162267208099365, 0.0814153328537941, -0.006294353399425745, 0.04065355658531189, 0.13700716197490692, 0.057795681059360504, 0.21443459391593933, -0.11254765093326569, -0.025081206113100052, 0.12563852965831757, 0.03515315800905228, -0.28075382113456726, -0.1985688954591751, -0.2912497818470001, -0.013233160600066185, -0.1324145793914795, 0.2487173229455948, -0.44162827730178833, -0.048459406942129135, 0.10675787180662155, -0.07538153976202011, -0.09149540215730667, -0.1800178438425064, 0.33221548795700073, -0.23691082000732422, 0.30701744556427, -0.12195566296577454, 0.05776697024703026, -0.18708887696266174, 0.028860878199338913, -0.20634493231773376, 0.2629309296607971, -0.14711815118789673, -0.6215483546257019, -0.017526857554912567, 0.2165360301733017, 0.20054422318935394, -0.05949612706899643, 0.5743678212165833, 0.28844812512397766, 0.4095233678817749, -0.6635436415672302, -0.1010749340057373, -0.1448390632867813, -0.2314511090517044, 0.10936465859413147, -0.1811213195323944, 0.08253145217895508, -0.3899838626384735, -0.16597072780132294, -0.08984149247407913, -0.21150542795658112, -0.09802845120429993, 0.07154271751642227, -0.19261568784713745, -0.19006392359733582, -0.03384517878293991, 0.16936162114143372, 0.709525465965271, -0.08239228278398514, -0.5337049961090088, -0.02528131939470768, -0.1392499804496765, -0.31294918060302734, 0.024868160486221313, -0.12015694379806519, -0.2792259156703949, -0.1349523663520813, 0.166450634598732, 0.10252664238214493, -0.005985230207443237, 0.17260462045669556, -0.02474616840481758, -0.24048832058906555, 0.026295261457562447, -0.027905337512493134, 0.12004633992910385, 0.10004593431949615, 0.006093991454690695, 0.17516562342643738, 0.1678352802991867, -0.09649308770895004, 0.14918510615825653, 0.13933426141738892, 0.09985137730836868, -0.29001566767692566, -0.0692540779709816, 0.07864975929260254, -0.17701919376850128, 0.11120057851076126, 0.10687009990215302, 0.2587144374847412, 0.39777034521102905, -0.03053603693842888, -0.0702502578496933, -0.21789950132369995, -0.44286614656448364, 0.10104642063379288, 0.19208784401416779, 0.3077879250049591, -0.11453639715909958, -0.378917396068573, -0.18164418637752533, -0.13654960691928864, -0.028889190405607224, -0.027298051863908768, 0.11764948070049286, 0.24741941690444946, -0.1992465853691101, -0.14120130240917206, 0.1294773370027542, 0.049216803163290024, -0.09238667786121368, 0.11582520604133606, -0.22324839234352112, 0.1622774302959442, -0.27776068449020386, 0.19795699417591095, -0.2762037515640259, 0.1613684594631195, -0.0632200688123703, 0.028521809726953506, 0.4678356945514679, -0.053345926105976105, -0.14997729659080505, -0.040607206523418427, 0.09547242522239685, 0.056745968759059906, 0.5180546641349792, 0.19267882406711578, -0.03788528963923454, 0.10195855051279068, 0.10437596589326859, 0.11405984312295914, -0.05789979174733162, -0.40985307097435, -0.4419247806072235, 0.027771655470132828, 0.5044502019882202, 0.36201658844947815, -0.41410529613494873, 0.249769389629364, 0.4620388448238373, 0.3550783693790436, 0.1453246772289276, 0.11854647099971771, 0.0026165791787207127, -0.197402223944664, 0.06451670080423355, -0.14411118626594543, 0.1802886426448822, 0.17923055589199066, 0.12329132109880447, 0.21825654804706573, 0.04369249567389488, -0.32457876205444336, 0.14818958938121796, -0.12334294617176056, 0.14694373309612274, 0.38931092619895935, 0.38703304529190063, -0.022521140053868294, -0.7127004861831665, 0.03633808344602585, 0.0676339641213417, -0.011726885102689266, -0.1415819674730301, -0.17107872664928436, -0.17597874999046326, 0.052174169570207596, -0.09977202862501144, -0.11188424378633499, -0.5056554079055786, -0.18004992604255676, 0.5394278168678284, -0.05793303996324539, -0.019906625151634216, 0.5802631378173828, 0.28320083022117615, 0.3105352818965912, 0.07940000295639038, 0.04194636270403862, -0.1738952398300171, 0.06659243255853653, -0.4214290976524353, 0.1164064034819603, 0.052657343447208405, -0.20843759179115295, -0.16382929682731628, -0.050705019384622574, 0.06115671619772911, -0.10931187868118286, -0.3172694742679596, 0.23031729459762573, 0.05891865864396095, -0.009989718906581402, 0.2992153763771057, -0.012962142936885357, 0.34800955653190613, -0.25013452768325806, 0.30913037061691284, 0.16269752383232117, -0.2224961370229721, -0.07544631510972977, -0.23374870419502258, -0.07969175279140472, -0.09322874993085861, -0.265480637550354, -0.0316644124686718, -0.3255424499511719, -0.215658038854599, -0.25456857681274414, 0.2720935642719269, 0.2840018570423126, 0.09005903452634811, -0.4054289162158966, -0.35170403122901917, 0.41437095403671265, -0.32936638593673706, 0.02567911520600319, -0.023656103760004044, -0.10092870146036148, -0.03675495833158493, -0.034973546862602234, -0.07158657163381577, 0.7069276571273804, 0.06710189580917358, -0.20886676013469696, 0.30281418561935425, -0.10598217695951462, 0.35228580236434937, 0.12638236582279205, 0.03093918412923813, 0.3759506344795227, 0.45358288288116455, -0.1615595668554306, -0.011419478803873062, -0.2124314308166504, 0.013575325720012188, 0.5705265402793884, 0.07221522182226181, -0.014730026014149189, 0.05484500154852867, -0.20373965799808502, 0.6464540362358093, 0.11326736211776733, -0.2463071644306183, 0.08776568621397018, -0.2254398912191391, 0.44329148530960083, -0.20952151715755463, -0.1941516250371933, 0.28627121448516846, 0.26123061776161194, -0.1460607647895813, 0.2786007821559906, 0.11478466540575027, -0.16485945880413055, -0.11462775617837906, -0.32641375064849854, 0.13977308571338654, -0.3012371063232422, -0.034761395305395126, -0.18820181488990784, 0.35695937275886536, 0.3781491219997406, 0.107668437063694, -0.1325950026512146, 0.06544025242328644, -0.008908006362617016, 0.09858085960149765, -0.027592312544584274, -0.01737879030406475, -0.08589691668748856, -0.19012419879436493, -0.17447397112846375, 0.02827714942395687, -0.037787407636642456, 0.24255847930908203, -0.21342429518699646, 0.07098053395748138, 0.0898904949426651, 0.00629789661616087, -0.1088913232088089, -0.3740183413028717, 0.04023716598749161, 0.10187442600727081, 0.28017595410346985, 0.163030207157135, -0.1407671719789505, 0.11103677749633789, 0.21928240358829498, 0.08974048495292664, 0.04260769113898277, -0.029350420460104942, -0.1933804303407669, 0.12616929411888123, 0.08554834872484207, -0.14747504889965057, -0.13015732169151306, -0.07291174679994583, 0.03583453595638275, -0.4839373826980591, 0.013978355564177036, -0.1843390166759491, -0.12977983057498932, -0.01597321406006813, 0.01993347331881523, 0.32882991433143616, -0.06514915078878403, -0.01930028386414051, 0.10886331647634506, -0.05542968213558197, 0.16458351910114288, -0.025033801794052124, 0.07425359636545181, -0.06557199358940125, 0.011304010637104511, 0.4725331664085388, 0.24274688959121704, 0.08506616950035095, 0.09690262377262115, -0.010134146548807621, 0.2817108929157257, 0.6582722067832947, -0.03288774564862251, 0.03107643313705921, 0.3532449007034302, -0.12775491178035736, 0.057529956102371216, -0.08932090550661087, 0.36881181597709656, 0.09846222400665283, 0.02799084223806858, -0.2594919204711914, 0.21290066838264465, -0.07399797439575195, -0.2964356541633606, -0.11983205378055573, 0.19747580587863922, -0.14145269989967346, -0.022868873551487923, -0.13471531867980957, 0.7433813810348511, 0.5572594404220581, 0.24740445613861084, 0.3039766848087311, 0.1442442387342453, -0.2576976716518402, -0.07066396623849869, 0.26993250846862793, -0.24059589207172394, 0.1443699300289154, 0.00990285910665989, 0.06563597172498703, 0.03619799762964249, 0.2294364720582962, -0.2916404604911804, 0.2776002585887909, -0.039241984486579895, -0.021342052146792412, 0.15440677106380463, -0.04473987966775894, -0.37289702892303467, -0.08702149242162704, 0.08989528566598892, 0.08770622313022614, 0.17936716973781586, 0.5686981678009033, -0.024549275636672974, -0.04245932400226593, 0.23378244042396545, -0.5450392961502075, -0.1598232388496399, -0.013455948792397976, -0.03975486382842064, -0.03809092566370964, 0.3062267303466797, 0.11555987596511841, 0.3721618950366974, -0.0666225403547287, 0.00921366736292839, 0.34902170300483704, -0.08886030316352844, 0.41191110014915466, 0.37505239248275757, 0.1915796995162964, -0.007875160314142704, -0.020250316709280014, 0.36898234486579895, -0.18287953734397888, -0.4265231490135193, -0.046734973788261414, -0.2775048613548279, -0.02207748405635357, -0.3030235469341278, -0.15874305367469788, 0.04370060935616493, -0.22859527170658112, 0.22766859829425812, 0.2486737221479416, 0.041233647614717484, -0.18819190561771393, 0.17592354118824005, -0.3065353333950043, 0.06631609052419662, 0.2104422152042389, 0.0819098949432373, 0.11548029631376266, 0.03296012431383133, 0.3813120722770691, 0.35137367248535156, -0.14793279767036438, 0.7755977511405945, -0.22739292681217194, 0.0309287142008543, -0.3311326503753662, -0.14127115905284882, 0.28552088141441345, 0.04890027269721031, 0.04607197642326355, -0.04365001246333122, -0.38432759046554565, -0.001363625517114997, 0.5744263529777527, 0.03251210227608681, 0.35437488555908203, -0.13233532011508942, 0.0659540444612503, -0.40954139828681946, -0.10938737541437149, 0.14871570467948914, 0.16368484497070312, -0.34782344102859497, -0.02403697371482849, 0.18041692674160004, 0.1348891705274582, -0.39185017347335815, -0.11156781762838364, -0.03463926911354065, 0.2028905153274536, -0.2060115784406662, -0.0485137440264225, -0.1812778264284134, -0.015914464369416237, 0.1669817566871643, -0.42011237144470215, -0.37039855122566223, -0.1556205302476883, 0.12489655613899231, 0.09837877005338669, 0.35894328355789185, -0.044597405940294266, 0.17092430591583252, 0.08814775943756104, -0.4710342586040497, 0.07739842683076859, 0.2492632120847702, -0.29081249237060547, -0.14088328182697296, 0.19998548924922943, -0.27462464570999146, -0.18311923742294312, 0.20447707176208496, -0.015658752992749214, 0.0019719935953617096, 0.11524156481027603, -0.20622026920318604, 0.37462034821510315, -0.19175241887569427, -0.2771074175834656, 0.37660229206085205, 0.4684484004974365, -0.10059162229299545, 0.005653650499880314, -0.00029611014178954065, -0.40702393651008606, 0.03252933546900749, -0.003252639202401042, 0.3393225371837616, 0.38461005687713623, -0.10927432775497437, -0.16171421110630035, -0.20368921756744385, 0.23289993405342102, -0.4396820664405823, 0.04367028921842575, 0.2809235751628876, -0.07143238186836243, 0.24774859845638275, 0.06401952356100082, 0.4957173764705658, -0.3172492980957031, 0.12484385818243027, 0.06113811954855919, 0.023928003385663033, -0.49828463792800903, 0.02720613405108452, 0.36468470096588135, -0.13517634570598602, 0.16466686129570007, 0.5495707988739014, 0.18276347219944, -0.18475008010864258, 0.4903278350830078, -0.24188119173049927, 0.014283494092524052, 0.3627485930919647, -0.03234238550066948, 0.22120551764965057, -0.3238152861595154, 0.4563004672527313, 0.15505315363407135, 0.14660362899303436, -0.2886829972267151, 0.2081931233406067, 0.2888818383216858, -0.17589788138866425, -0.1435641497373581, -0.1675092726945877, 0.052912771701812744, -0.3343077600002289, -0.0852520614862442, -0.5235225558280945, -0.2694969177246094, -0.2397698611021042, -0.09182105213403702, -0.20172913372516632, 0.15102998912334442, 0.184667706489563, -0.1896214783191681, 0.12336605042219162, -0.46240100264549255, 0.01635126769542694, -0.15929552912712097, -0.1842118799686432, -0.0797925665974617, 0.6401214599609375, 0.22393152117729187, -0.20929545164108276, 0.6252644658088684, 0.5076648592948914, 0.3857695162296295, 0.07089396566152573, 0.18766851723194122, 0.13634036481380463, -0.0499095655977726, -0.24793660640716553, -0.16219806671142578, 0.01097038108855486, 0.2266455441713333, 0.2429662048816681, -0.03527972847223282, 0.11976701021194458, -0.1470699906349182, 0.04287729039788246, 0.0009340450633317232, 0.19710619747638702, -0.03143180161714554, -0.05453665181994438, 0.12471431493759155, -0.18743008375167847, -0.10269428789615631, -0.14163129031658173, -0.0071846675127744675, -0.23163676261901855, 0.5573568344116211, 0.14473609626293182, 0.0752149149775505, -0.3096888065338135, 0.10133441537618637, 0.0163485798984766, 0.515020489692688, 0.014491638168692589, -0.0647418424487114, 0.08712584525346756, -0.20967355370521545, -0.40150463581085205, 0.21365442872047424, 0.28571954369544983, 0.0942452922463417, -0.12368927150964737, -0.06866095215082169, 0.29126590490341187, 0.04814888536930084, 0.26408687233924866, -0.28353050351142883, -0.10178506374359131, -0.2704361081123352, -0.38315168023109436, 0.024877706542611122, 0.3755563199520111, 0.11925692856311798, -0.007933298125863075, -0.2357626110315323, 0.2831542491912842, 0.011966822668910027, 0.11053965985774994, -0.042701441794633865, -0.044670045375823975, 0.0014727310044690967, -0.12108859419822693, 0.14314207434654236, 0.08787760138511658, 0.4740321934223175, -0.1627388596534729, -0.09784723073244095, -0.05386129021644592, -0.07090211659669876, -0.603179931640625, -0.11674195528030396, 0.035992998629808426, 0.5240471959114075, -0.12335913628339767, 0.47024497389793396, -0.15080255270004272, -0.15517035126686096, 0.029027877375483513, 0.07026016712188721, -0.12510955333709717, 0.25950926542282104, 0.004659807775169611, 0.3517363667488098, 0.010522848926484585, -0.07183578610420227, 0.2509213089942932, -0.17247094213962555, -0.5465261936187744, -0.28558337688446045, 0.5287108421325684, 0.2635911703109741, -0.4426979124546051, -0.723198652267456, 0.1346382349729538, 0.11301286518573761, -0.05923663079738617, -0.08027494698762894, 0.06819194555282593, 0.18331266939640045, -0.3150345981121063, -0.005120361689478159, -0.020384859293699265, -0.06278101354837418, -0.1744260936975479, -0.040898919105529785, 0.39136040210723877, -0.052427660673856735, -0.25792860984802246, -0.6060261726379395, -0.15405356884002686 ]
https://github.com/huggingface/datasets/issues/3717
wrong condition in `Features ClassLabel encode_example`
Hi @Tudyx, Please note that in Python, the boolean NOT operator (`not`) has lower precedence than comparison operators (`<=`, `<`), thus the expression you mention is equivalent to: ```python not (-1 <= example_data < self.num_classes) ``` Also note that as expected, the exception is raised if: - `example_data < -1` - or `example_data >= self.num_classes` The raise of the exception is expected when `example_data` equals 4 and `self.num_classes` equals 4 too.
## Describe the bug The `encode_example` function in *features.py* seems to have a wrong condition. ```python if not -1 <= example_data < self.num_classes: raise ValueError(f"Class label {example_data:d} greater than configured num_classes {self.num_classes}") ``` ## Expected results The `not - 1` condition change the result of the condition. For instance, if `example_data` equals 4 and ` self.num_classes` equals 4 too, `example_data < self.num_classes` will give `False` as expected . But if i add the `not - 1` condition, `not -1 <= example_data < self.num_classes` will give `True` and raise an exception. ## Environment info - `datasets` version: 1.18.3 - Python version: 3.8.10 - PyArrow version: 7.00
71
wrong condition in `Features ClassLabel encode_example`
[ 0.26175740361213684, -0.08103135228157043, -0.1597099006175995, 0.12824878096580505, 0.20592328906059265, -0.21449099481105804, 0.4214436709880829, 0.28663578629493713, -0.15283064544200897, 0.06170615181326866, 0.5387420654296875, 0.25897741317749023, -0.14195558428764343, 0.4805823266506195, -0.27860161662101746, 0.002710901666432619, 0.07134909182786942, 0.446502685546875, 0.10492399334907532, -0.3374875783920288, -0.2781521677970886, 0.37218451499938965, -0.3547639846801758, 0.009873629547655582, -0.4138404130935669, 0.27510395646095276, 0.2396470010280609, -0.09145180135965347, -0.214070126414299, -0.13240881264209747, 0.025382936000823975, 0.008627316914498806, -0.019582051783800125, -0.28339648246765137, -0.00010344431939302012, -0.21890632808208466, 0.04026398807764053, -0.27354395389556885, -0.19625194370746613, 0.3738383948802948, -0.40516188740730286, 0.015279765240848064, -0.2569757401943207, -0.39800724387168884, -0.49877724051475525, 0.027409236878156662, -0.06074768304824829, -0.16691961884498596, -0.23760126531124115, 0.265520840883255, 0.264528751373291, -0.045699022710323334, 0.05136851221323013, -0.00039106866461224854, 0.410121887922287, 0.010784930549561977, -0.05328213423490524, -0.07389291375875473, -0.0932857096195221, 0.11436672508716583, -0.0322607196867466, 0.8299403786659241, 0.2675929069519043, -0.05870634317398071, 0.2400723546743393, 0.021737132221460342, 0.14859545230865479, -0.2360902577638626, 0.09582981467247009, -0.08381891995668411, 0.1673813760280609, 0.12197884172201157, -0.16081859171390533, 0.037853844463825226, -0.17006713151931763, -0.40728995203971863, 0.33818066120147705, -0.04584341123700142, 0.08596993237733841, 0.23908042907714844, -0.1613246649503708, -0.014069759286940098, -0.09366152435541153, 0.02099100686609745, -0.10405085980892181, 0.3657655417919159, -0.1726989597082138, -0.013075767084956169, -0.2332172989845276, -0.05566852167248726, 0.040008120238780975, 0.2079673558473587, -0.14253652095794678, -0.014146647416055202, 0.2597644329071045, -0.19494114816188812, -0.009455936029553413, 0.08843907713890076, -0.1188143864274025, -0.035861171782016754, -0.5138025879859924, 0.05111728981137276, 0.10740888863801956, 0.14834538102149963, -0.3234277069568634, 0.3740690052509308, 0.7656009793281555, 0.12569394707679749, -0.12946872413158417, 0.050831906497478485, -0.26626133918762207, 0.22523467242717743, -0.22230307757854462, -0.11010349541902542, 0.31301215291023254, 0.15380501747131348, -0.018993021920323372, -0.23774732649326324, -0.2632012665271759, 0.4779883921146393, -0.2281348556280136, -0.015066076070070267, 0.18530865013599396, 0.1699138581752777, 0.2540420889854431, -0.3330719470977783, 0.2398647516965866, 0.10960022360086441, -0.020333725959062576, -0.3020079433917999, -0.2564154863357544, 0.14007490873336792, -0.22642455995082855, -0.2749543786048889, 0.08278948068618774, 0.15997536480426788, 0.4516470432281494, -0.06010184437036514, -0.036474309861660004, -0.3590084910392761, -0.0705905482172966, 0.2760275602340698, 0.3317504823207855, -0.012836840003728867, -0.21698743104934692, 0.05047900974750519, 0.5130748748779297, -0.1169920489192009, -0.15296508371829987, -0.0459878109395504, -0.22200292348861694, -0.11563268303871155, 0.03552879020571709, 0.32145118713378906, 0.11793976277112961, 0.02431904338300228, 0.40356943011283875, 0.0897834300994873, 0.3919248878955841, -0.19679658114910126, 0.3229862451553345, -0.20630279183387756, 0.056192800402641296, 0.21100302040576935, 0.11048027127981186, 0.14715707302093506, -0.05585015192627907, -0.10241713374853134, 0.5291557908058167, 0.013774964958429337, 0.1676979809999466, -0.06140631064772606, -0.23155705630779266, -0.16724713146686554, -0.2556151747703552, 0.09563110768795013, 0.25073426961898804, -0.42493942379951477, -0.28036415576934814, 0.2966630160808563, 0.0067857108078897, -0.3200743496417999, 0.2771197259426117, 0.047936610877513885, -0.19713206589221954, -0.06867736577987671, 0.048608794808387756, 0.07670272886753082, 0.15605704486370087, -0.09407781064510345, -0.16215075552463531, -0.05648569017648697, 0.27499476075172424, -0.15303562581539154, -0.17432615160942078, 0.08758745342493057, -0.25702351331710815, 0.2995651960372925, 0.14495712518692017, -0.2065414935350418, 0.036871686577796936, -0.05945129320025444, 0.05789675936102867, -0.2227395921945572, 0.028146421536803246, 0.10966233164072037, 0.15313801169395447, 0.031226057559251785, -0.33798056840896606, 0.15310533344745636, 0.09869273751974106, -0.20124077796936035, -0.03448215499520302, -0.34661489725112915, -0.21278896927833557, -0.4209516644477844, 0.3279244899749756, -0.04222321882843971, 0.04810085892677307, -0.17221689224243164, -0.1060938760638237, 0.13234926760196686, -0.19302667677402496, -0.12394537031650543, 0.025243200361728668, -0.2609145939350128, -0.1925249993801117, 0.10681262612342834, -0.16110482811927795, -0.0012536434223875403, 0.45855841040611267, -0.004746653605252504, -0.3047356605529785, 0.033159784972667694, 0.002242667367681861, -0.2743762731552124, -0.25737178325653076, -0.3931702673435211, -0.2320549190044403, -0.4980277717113495, -0.10016835480928421, -0.0071348887868225574, 0.09876838326454163, 0.12688830494880676, -0.2201148122549057, 0.3779894709587097, 0.4477994740009308, -0.007418171036988497, 0.07100353389978409, -0.16743621230125427, 0.22202852368354797, -0.08490058034658432, -0.34252431988716125, -0.5293558835983276, 0.108983114361763, -0.10626412183046341, -0.12877124547958374, 0.1873287558555603, -0.13335733115673065, 0.2376234382390976, 0.6303030848503113, 0.1420787125825882, 0.17013315856456757, -0.029281912371516228, 0.1537013202905655, 0.10543856769800186, 0.16687004268169403, -0.14464879035949707, 0.006443172227591276, 0.13813962042331696, -0.0314645878970623, -0.035868167877197266, -0.26907551288604736, -0.1046338900923729, 0.37344124913215637, -0.11397555470466614, 0.12788507342338562, -0.08557713031768799, -0.11927367001771927, -0.19193919003009796, -0.1724848449230194, -0.2459058165550232, 0.14019961655139923, -0.20042917132377625, -0.29500964283943176, 0.32474276423454285, -0.26347795128822327, -0.08255989104509354, -0.13615921139717102, -0.19817623496055603, -0.09643787890672684, 0.05608795955777168, 0.3071947991847992, -0.03092268295586109, -0.06515666842460632, 0.2623109221458435, -0.2619682550430298, 0.014976505190134048, -0.08650841563940048, -0.15511608123779297, 0.4009708762168884, -0.03885410353541374, -0.49420538544654846, 0.1590050458908081, -0.23745538294315338, 0.02140592597424984, 0.02602129988372326, -0.40103715658187866, -0.1306493878364563, -0.025140397250652313, -0.3914053440093994, 0.147934690117836, -0.15506042540073395, -0.018589524552226067, 0.05960257723927498, -0.24733874201774597, -0.29185500741004944, -0.06363998353481293, 0.3076546788215637, 0.1636756807565689, -0.032439228147268295, 0.022195085883140564, 0.1310690939426422, -0.431059330701828, -0.35921695828437805, -0.4064447283744812, 0.09214726835489273, -0.13877932727336884, -0.1792936474084854, 0.008544068783521652, 0.19729189574718475, 0.2584364116191864, -0.03377513587474823, 0.16953645646572113, 0.1995970755815506, -0.008562651462852955, -0.2576633095741272, -0.18512120842933655, 0.05889207497239113, -0.0008409671136178076, -0.14020167291164398, -0.08462080359458923, -0.11785951256752014, 0.10065577924251556, -0.04330269247293472, 0.1604759842157364, -0.21248017251491547, -0.044049669057130814, 0.01623920351266861, 0.03333659470081329, -0.15218479931354523, 0.19743569195270538, 0.12172861397266388, -0.1609126180410385, -0.4243713319301605, -0.18146218359470367, 0.674359917640686, -0.23687049746513367, 0.0419657900929451, -0.1504632979631424, 0.2664265036582947, -0.12440493702888489, 0.2502273619174957, 0.4013568162918091, -0.1160510927438736, 0.3255004584789276, -0.0043644472025334835, 0.0783906802535057, 0.21202054619789124, 0.07935592532157898, 0.1447509080171585, 0.168101966381073, -0.1008995771408081, 0.23800170421600342, -0.1325361430644989, -0.08872523158788681, 0.1988973319530487, 0.09869199246168137, -0.30116069316864014, -0.07352932542562485, -0.0795758068561554, 0.2831512689590454, 0.2365724742412567, -0.045356493443250656, 0.23466363549232483, -0.0006433717207983136, 0.23924721777439117, 0.11066451668739319, 0.19021640717983246, 0.018803022801876068, 0.06881621479988098, -0.39142364263534546, -0.4140666723251343, 0.11398279666900635, -0.10165181756019592, 0.270251989364624, 0.5229208469390869, -0.014768294058740139, 0.05862746760249138, 0.07984834909439087, 0.051671139895915985, 0.3400499224662781, -0.0880926176905632, 0.33584079146385193, 0.08907956629991531, 0.21487876772880554, 0.1309710294008255, -0.2471182495355606, -0.23946316540241241, 0.2181166708469391, 0.047597821801900864, 0.18190452456474304, -0.14091959595680237, 0.12420899420976639, 0.3082219660282135, -0.17133192718029022, -0.1331871896982193, -0.06174667552113533, -0.2263999730348587, -0.08403383940458298, -0.36401644349098206, 0.15396559238433838, 0.5111329555511475, 0.10697265714406967, 0.03581775724887848, -0.039771806448698044, -0.13458837568759918, -0.19741666316986084, 0.014300904236733913, 0.1237393468618393, 0.006899860221892595, -0.06510064005851746, -0.005545209627598524, -0.442293256521225, 0.09313423186540604, -0.057383690029382706, 0.4645051658153534, 0.1803533434867859, -0.11136642098426819, 0.22936776280403137, -0.15243279933929443, 0.300536185503006, 0.15130941569805145, -0.23430456221103668, -0.06419510394334793, 0.09819233417510986, -0.11137313395738602, 0.13288439810276031, 0.18183419108390808, 0.31767526268959045, 0.05979683995246887, -0.24993309378623962, -0.010414698161184788, 0.713142991065979, -0.27622681856155396, 0.03640420362353325, -0.23627740144729614, 0.40423595905303955, -0.45897597074508667, -0.0008530423510819674, 0.15984150767326355, 0.7237200736999512, 0.464402437210083, 0.024823537096381187, 0.09957104176282883, 0.02543250471353531, 0.3891405463218689, 0.2675319314002991, 0.4479295611381531, -0.1581851989030838, -0.29295533895492554, -0.03286592289805412, 0.02098304033279419, 0.046519048511981964, 0.0012916114646941423, -0.22814467549324036, 0.15069347620010376, -0.3652774393558502, -0.12003284692764282, 0.06936860084533691, -0.1847333461046219, -0.05884961038827896, 0.01648440770804882, 0.015079292468726635, 0.18372847139835358, 0.2515082359313965, 0.4262959063053131, -0.027594586834311485, -0.1880245953798294, -0.24565523862838745, -0.2396164834499359, -0.07358960807323456, 0.37105095386505127, -0.11529640853404999, 0.051642317324876785, -0.04204753041267395, -0.09749239683151245, -0.07594306021928787, -0.253620445728302, 0.30096200108528137, 0.19392672181129456, -0.11030282080173492, 0.10894014686346054, 0.3750198781490326, 0.05828540027141571, -0.20384174585342407, 0.0607328861951828, 0.41284501552581787, -0.19871540367603302, 0.048232633620500565, 0.04156256094574928, -0.20205813646316528, 0.14741262793540955, -0.1332770138978958, -0.19070498645305634, 0.2130928337574005, -0.18476368486881256, -0.29085326194763184, 0.1852835714817047, 0.054214444011449814, -0.36351221799850464, 0.22343400120735168, -0.0992053896188736, -0.13944922387599945, -0.3096200227737427, 0.062348622828722, -0.21781215071678162, -0.1555940955877304, 0.034601155668497086, 0.1477164477109909, 0.29447120428085327, 0.4250710904598236, -0.21495972573757172, 0.11685434728860855, -0.1578480303287506, -0.049226582050323486, 0.44918835163116455, -0.5161006450653076, -0.06840821355581284, 0.012613571248948574, -0.3783630430698395, 0.06099044904112816, 0.19887332618236542, 0.24482528865337372, 0.4176945090293884, 0.10815852135419846, 0.009167201817035675, -0.17084476351737976, -0.029855752363801003, -0.18401123583316803, 0.13415279984474182, -0.14684157073497772, 0.24832242727279663, 0.04964708909392357, -0.12778155505657196, -0.4071383774280548, -0.19921903312206268, -0.1418921798467636, 0.1542634218931198, 0.24005693197250366, 0.3000587821006775, -0.02941242605447769, 0.14460937678813934, 0.17819204926490784, 0.18786895275115967, -0.08465281128883362, -0.28106632828712463, -0.3540616035461426, 0.07595225423574448, 0.39271390438079834, -0.010703588835895061, 0.09890568256378174, 0.12795743346214294, -0.2014407366514206, -0.07882393151521683, -0.10276168584823608, -0.2952268421649933, 0.1977040022611618, 0.4372497797012329, -0.1972433626651764, 0.1891867071390152, -0.10447384417057037, -0.25305265188217163, -0.03235943615436554, 0.012492961250245571, 0.011405122466385365, -0.15185901522636414, 0.032695308327674866, 0.08082180470228195, -0.2624429166316986, -0.05432584136724472, -0.28800806403160095, 0.22277817130088806, -0.25529390573501587, -0.11640975624322891, 0.28094157576560974, 0.09148871898651123, 0.16205677390098572, -0.1929856240749359, -0.1595475822687149, -0.3653954565525055, 0.24676896631717682, 0.3301466107368469, -0.2806076109409332, -0.1385771930217743, -0.3390069901943207, -0.13935832679271698, 0.12731510400772095, 0.40505990386009216, 0.08604995906352997, 0.18522301316261292, 0.1407870054244995, 0.021121850237250328, 0.025059154257178307, 0.036813680082559586, 0.0102677708491683, 0.30214592814445496, -0.12616105377674103, 0.3432493507862091, 0.37336069345474243, -0.06871336698532104, 0.35936012864112854, 0.35007572174072266, 0.030187079682946205, 0.32894793152809143, 0.425067663192749, 0.32297834753990173, -0.02060099132359028, 0.2711886763572693, -0.030027978122234344, 0.06932457536458969, 0.07078687846660614, 0.46800461411476135, 0.03859742730855942, -0.3396221697330475, -0.6595054268836975, -0.18122512102127075, -0.05122937634587288, 0.23548948764801025, -0.2655649781227112, -0.21819835901260376, 0.37321436405181885, -0.16326390206813812, -0.13915422558784485, -0.15578024089336395, -0.224511057138443, 0.2414914220571518, 0.0441352017223835, -0.05041750520467758, -0.28258928656578064, -0.12946878373622894, -0.14123593270778656, 0.019695676863193512, 0.34870198369026184, -0.2584906816482544, 0.4229626953601837, -0.03676304221153259, -0.22049416601657867, 0.2400558441877365, 0.08165567368268967, 0.18981413543224335, 0.3365386426448822, 0.30918967723846436, -0.30510950088500977, 0.044688887894153595, -0.0864616110920906, -0.04379047453403473, -0.03330404311418533, 0.17255963385105133, -0.01777919940650463, -0.0026691381353884935, 0.19124166667461395, -0.32687366008758545, 0.11454030871391296, 0.308628648519516, -0.015736714005470276, -0.17554177343845367, 0.24444274604320526, 0.029764274135231972, 0.08121366798877716, -0.18854214251041412, 0.024474812671542168, -0.2714273929595947, -0.15356561541557312, 0.0281180702149868, 0.41826102137565613, 0.12751005589962006, 0.16218431293964386, 0.15331104397773743, 0.05389159917831421, 0.2404651939868927, -0.05070311576128006, -0.06628263741731644, -0.1368788182735443, 0.2365371137857437, -0.33900582790374756, 0.3196510970592499, -0.09383842349052429, -0.5033413767814636, 0.16965819895267487, -0.03471734747290611, 0.09682612866163254, -0.18708668649196625, 0.24846826493740082, 0.009110548533499241, 0.21540623903274536, -0.24012716114521027, -0.1877226084470749, 0.0035086311399936676, 0.39299625158309937, -0.057666387408971786, 0.14738543331623077, -0.30158519744873047, 0.2672777771949768, -0.16900169849395752, 0.21169322729110718, -0.14429888129234314, -0.15882007777690887, 0.018295491114258766, -0.11634647846221924, 0.4035801589488983, 0.15830011665821075, 0.4793111979961395, -0.2534879446029663, -0.08570116013288498, 0.1903918981552124, 0.1459510624408722, -0.2815142273902893, 0.25655514001846313, 0.00754275219514966, 0.26597949862480164, -0.006994374096393585, -0.11714000999927521, -0.2812552750110626, 0.4606925845146179, 0.17891383171081543, -0.07870068401098251, -0.04004151374101639, 0.6183518767356873, -0.2612835168838501, -0.07130623608827591, 0.3205410838127136, 0.09372653812170029, -0.029689572751522064, 0.014885718934237957, -0.2974224090576172, -0.5994413495063782, 0.339680552482605, -0.48595747351646423, -0.41410091519355774, 0.054329246282577515, 0.4966658651828766, 0.49743685126304626, -0.06427400559186935, -0.2918955087661743, -0.037209078669548035, 0.22487115859985352, 0.03426516428589821, -0.17763075232505798, 0.23160193860530853, 0.06929772347211838, -0.05484040081501007, 0.034592121839523315, 0.3481614291667938, 0.03574009984731674, -0.26531463861465454, 0.12788404524326324, -0.2984236180782318 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
Hi ! Note that it does `block_size *= 2` until `block_size > len(batch)`, so it doesn't loop indefinitely. What do you mean by "get stuck indefinitely" then ? Is this the actual call to `paj.read_json` that hangs ? > increasing the `chunksize` argument decreases the chance of getting stuck Could you share the values of chunksize that you're using to observe this ? And maybe the order of magnitude of number of bytes per line of JSON ?
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
78
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
To clarify, I don't think it loops indefinitely but the `paj.read_json` gets stuck after the first try. That's why I think it could be an issue with a lock somewhere. Using `load_dataset(..., chunksize=40<<20)` worked without errors.
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
36
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
@lhoestq I encountered another related issue. I use load_dataset() for my json data and set_transform() for preprocessing. But it hangs at the end of the epoch if `dataloader_num_workers>=1`. It appears to be working fine with num_worker=0, but it's slow. ``` train_dataset = datasets.load_dataset("json", data_files=corpus_jsonl_path, keep_in_memory=False, cache_dir=model_args.cache_dir, streaming=False) train_dataset.set_transform(psg_parse_fn) ```
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
49
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I couldn't I think your problem is unrelated to this issue @memray Indeed this issue discusses a bug when doing `load_dataset`, while your case has to do with the dataloader in a multiprocessing setup. Can you open a new issue and provide more details (share your env and what psg_parse_fn does) ?
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
52
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I also encountered a similar issue when loading a 190GB dataset of jsonl files (255 files with less than 1Gb) where it got stuck for over 20h at tables generation (fig below), increasing the `chunksize` with `load_dataset(..., chunksize=40<<20)` fixed the issue <img width="560" alt="image" src="https://user-images.githubusercontent.com/44069155/195605603-548a106e-7ad3-4269-8cdd-2ad3e975bf16.png">
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
45
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
> @lhoestq I encountered another related issue. I use load_dataset() for my json data and set_transform() for preprocessing. But it hangs at the end of the epoch if `dataloader_num_workers>=1`. It appears to be working fine with num_worker=0, but it's slow. > > ``` > train_dataset = datasets.load_dataset("json", > data_files=corpus_jsonl_path, > keep_in_memory=False, > cache_dir=model_args.cache_dir, > streaming=False) > train_dataset.set_transform(psg_parse_fn) > ``` In case people also get this problem, I found a way to fix it by adding `persistent_workers=True` when initializing DataLoader, like: `train_loader = DataLoader( train_dataset, batch_size=self._train_batch_size, sampler=train_sampler, collate_fn=data_collator, num_workers=self.args.dataloader_num_workers, persistent_workers=True )` The error was `CUDA error: initialization error Exception raised from insert_events at ../c10/cuda/CUDACachingAllocator.cpp:1266` after the 1st epoch, I guess it's because the data_loader worker is killed after each epoch and the data supply is cut off. This error only occurs when num_workers>1.
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
132
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I can confirm the issue using datasets (2.12.0) with the following code and Accelerate (0.20.3) env: ```` trainDataloader = DataLoader(trainSplit, batch_size=args.train_batch_size, shuffle=True) evalDataloader = DataLoader(validSplit, batch_size=args.valid_batch_size) // Here is where it gets stuck. ```` ```` - `Accelerate` version: 0.20.3 - Platform: Linux-5.4.0-150-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - Numpy version: 1.24.3 - PyTorch version (GPU?): 2.0.1+cu117 (True) - PyTorch XPU available: False - System RAM: 503.28 GB - GPU type: Tesla V100-SXM2-32GB - `Accelerate` default config: - compute_environment: LOCAL_MACHINE - distributed_type: MULTI_GPU - mixed_precision: fp16 - use_cpu: False - num_processes: 2 - machine_rank: 0 - num_machines: 1 - gpu_ids: 0,1 - rdzv_backend: static - same_network: True - main_training_function: main - downcast_bf16: no - tpu_use_cluster: False - tpu_use_sudo: False - tpu_env: [] ```` Notable that with Accelerate configured for one GPU only, **it doesn't get stuck.** The suggestion made by @memray worked in my case. This is how it was applied: ```` trainDataloader = DataLoader(trainSplit, batch_size=args.train_batch_size, shuffle=True, num_workers=2, persistent_workers=True) evalDataloader = DataLoader(validSplit, batch_size=args.valid_batch_size, num_workers=2, persistent_workers=True) ````
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
164
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I think your issue is related to `accelerate`, feel free to open an issue there: https://github.com/huggingface/accelerate/issues `Dataset` objects generally work fine with the torch DataLoader, idk what `accelerate` does that could make it get stuck.
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
35
Loading JSON gets stuck with many workers/threads
[ -0.10726232081651688, -0.02144310250878334, -0.30402684211730957, 0.28768885135650635, -0.03209688514471054, -0.2490760236978531, 0.24562335014343262, 0.3841286599636078, 0.3892706632614136, 0.3901287913322449, 0.22459018230438232, 0.26132136583328247, 0.3359664976596832, -0.18879102170467377, -0.30002525448799133, 0.4207225739955902, -0.13964207470417023, 0.11053896695375443, -0.040503356605768204, 0.004507673438638449, -0.24170628190040588, 0.19049616158008575, 0.22473208606243134, 0.0057922485284507275, -0.21404658257961273, -0.034290749579668045, 0.31163015961647034, 0.2625482976436615, 0.14288845658302307, -0.026024391874670982, -0.10482780635356903, 0.2745113968849182, -0.20821744203567505, 0.5910980701446533, -0.0001014160443446599, 0.09277832508087158, 0.43270739912986755, 0.2896440029144287, -0.2901184856891632, -0.01930496096611023, -0.24850814044475555, -0.33407628536224365, 0.259734570980072, -0.0405239462852478, 0.16778860986232758, -0.0886259377002716, 0.20235927402973175, -0.27412816882133484, 0.6980007886886597, -0.2158156931400299, 0.2702382802963257, -0.023197559639811516, -0.20623908936977386, -0.014440683647990227, -0.19090674817562103, -0.2519451677799225, 0.23734800517559052, 0.18567313253879547, 0.2881702184677124, 0.018825825303792953, -0.16908009350299835, 0.11227100342512131, -0.10839369148015976, 0.07290932536125183, -0.2834014594554901, -0.262333482503891, 0.2377338856458664, -0.1681833565235138, 0.28709906339645386, 0.027476714923977852, 0.17844298481941223, 0.37099388241767883, 0.056019436568021774, -0.24869604408740997, -0.0999901071190834, 0.17135198414325714, 0.30579718947410583, 0.09668640792369843, 0.026148082688450813, -0.008485176600515842, 0.004830897785723209, -0.13994796574115753, 0.016536595299839973, -0.015164067968726158, 0.006226514000445604, -0.04627833142876625, -0.03940559923648834, 0.10261522978544235, 0.2701128423213959, 0.05765772610902786, 0.15880130231380463, -0.11045407503843307, 0.05113588646054268, -0.15518851578235626, -0.03721325471997261, 0.10193350166082382, 0.35034167766571045, -0.43789395689964294, -0.045206304639577866, -0.18972794711589813, 0.01333110872656107, 0.3640962243080139, -0.02107325755059719, 0.1398865431547165, 0.3269605338573456, -0.25146111845970154, -0.131387397646904, -0.4978187680244446, 0.45344728231430054, 0.002702802186831832, -0.4753211438655853, 0.08954571932554245, -0.04560872167348862, -0.3417893350124359, -0.1671750694513321, 0.014966161921620369, 0.04009360074996948, -0.023836174979805946, 0.1776222288608551, 0.12404491752386093, -0.37834176421165466, -0.11283715069293976, -0.133604496717453, 0.43671903014183044, -0.22839808464050293, 0.3903356194496155, 0.18653954565525055, 0.036482445895671844, -0.20475666224956512, 0.14819522202014923, -0.22184622287750244, -0.18284866213798523, 0.0485057607293129, 0.013170870952308178, 0.12342504411935806, 0.04521438851952553, 0.18332335352897644, 0.013671592809259892, -0.03255249932408333, -0.5899586081504822, 0.26568523049354553, 0.18595202267169952, -0.20013006031513214, 0.030393267050385475, 0.29436594247817993, 0.1762055605649948, -0.003145223017781973, -0.05406450480222702, -0.10260188579559326, -0.05555683374404907, -0.2666483521461487, -0.07614584267139435, 0.21285676956176758, 0.2994764447212219, -0.02634187787771225, 0.2346702367067337, -0.0026614293456077576, -0.16755327582359314, 0.0060120937414467335, 0.2055075466632843, -0.14186309278011322, -0.005270764697343111, 0.15707778930664062, -0.09402009099721909, -0.41825538873672485, 0.26783886551856995, 0.1673552691936493, -0.04383430629968643, 0.05754829943180084, 0.000004529162197286496, -0.04212062433362007, 0.10455923527479172, -0.041981738060712814, 0.1426415741443634, -0.000712495413608849, 0.14167918264865875, -0.0700368732213974, -0.08308637887239456, -0.19663766026496887, 0.558262050151825, -0.2764311134815216, -0.028223028406500816, 0.3314160108566284, -0.015289993956685066, 0.0622222013771534, -0.015633638948202133, 0.4764711260795593, 0.25814199447631836, 0.2044430375099182, 0.18021532893180847, -0.24093899130821228, -0.11160805821418762, -0.3510402739048004, 0.2970069646835327, -0.13520006835460663, -0.12396786361932755, -0.10330338031053543, -0.21880482137203217, 0.30635103583335876, -0.05218074098229408, -0.08748387545347214, 0.20520126819610596, -0.09319555759429932, 0.15890178084373474, 0.04535544663667679, 0.32480961084365845, -0.43433403968811035, -0.03154268115758896, 0.12110567092895508, -0.07508663088083267, 0.07206862419843674, 0.2613850235939026, -0.03962607681751251, 0.12235928326845169, -0.019625745713710785, 0.2894631326198578, 0.2798461616039276, 0.3704092502593994, -0.3454202115535736, -0.03621761500835419, -0.08184655755758286, 0.21172985434532166, 0.04002775996923447, -0.028181344270706177, -0.34279319643974304, 0.15227630734443665, -0.02318543754518032, -0.26296505331993103, 0.3483492136001587, 0.0095157315954566, -0.030089668929576874, -0.34541136026382446, 0.024980133399367332, -0.10589864104986191, -0.08659576624631882, 0.2640259563922882, 0.03234203904867172, 0.21346518397331238, -0.05251052603125572, 0.29220378398895264, -0.22115905582904816, 0.1507554054260254, 0.09869042783975601, -0.13864833116531372, 0.0829785093665123, 0.2390279471874237, -0.140422061085701, 0.297079473733902, -0.07374630123376846, -0.2785748839378357, 0.3310018479824066, -0.08463569730520248, -0.040333349257707596, 0.25783851742744446, 0.3957377076148987, 0.2313435971736908, 0.09275759756565094, 0.19688689708709717, -0.3630138635635376, 0.0310529638081789, 0.3872029185295105, -0.015483353286981583, 0.10796598345041275, -0.04490538313984871, 0.32120171189308167, 0.013529065065085888, -0.16184207797050476, -0.13598358631134033, 0.033739298582077026, 0.18306872248649597, -0.11773419380187988, -0.3375024199485779, 0.1509561538696289, -0.3509265184402466, -0.069020114839077, 0.0026474660262465477, 0.5064464211463928, 0.13210101425647736, 0.2163909673690796, -0.32391855120658875, -0.3283655345439911, -0.5227070450782776, 0.03427765518426895, 0.1794518381357193, -0.0008672061376273632, 0.059243105351924896, -0.1380876898765564, 0.3939296007156372, 0.02684030681848526, 0.03630504757165909, 0.10820076614618301, -0.21215792000293732, 0.08683701604604721, 0.3714769780635834, -0.2149783968925476, 0.06903347373008728, -0.03162979334592819, 0.15934276580810547, -0.1674574464559555, 0.30593088269233704, -0.3447248339653015, -0.2348623275756836, -0.10059968382120132, 0.04974367842078209, 0.32812076807022095, -0.1753329336643219, -0.006782812066376209, 0.16256539523601532, -0.2400120198726654, 0.2695799171924591, 0.13083697855472565, -0.06317204982042313, 0.1593163013458252, -0.07460571825504303, -0.12677055597305298, 0.4325578212738037, 0.06475531309843063, -0.17448417842388153, -0.04309851676225662, -0.007514801807701588, -0.12714074552059174, -0.027492694556713104, -0.10046040266752243, 0.07974755764007568, -0.053264718502759933, -0.34898409247398376, 0.1434871107339859, -0.33627453446388245, 0.6246247887611389, -0.10491479933261871, 0.09702583402395248, -0.19649149477481842, 0.17146089673042297, -0.1393505185842514, 0.2789725065231323, 0.22358132898807526, -0.2052464336156845, -0.4169982969760895, -0.0070467921905219555, 0.036910731345415115, -0.1848629117012024, 0.05604664236307144, 0.015512460842728615, 0.1180092990398407, -0.38017144799232483, -0.5141918063163757, 0.022259872406721115, -0.12719543278217316, 0.09922284632921219, -0.23509906232357025, -0.2184881716966629, 0.17605240643024445, 0.3236600458621979, -0.34599727392196655, -0.13897815346717834, -0.3287813365459442, 0.16825784742832184, -0.0019610049203038216, -0.14468611776828766, -0.27002984285354614, 0.5389938950538635, -0.14478035271167755, 0.032621052116155624, -0.10052108019590378, -0.047506846487522125, 0.02619018219411373, 0.18521329760551453, 0.021063873544335365, -0.0468299575150013, 0.004146423190832138, -0.17711760103702545, -0.07852126657962799, -0.27205610275268555, 0.14657261967658997, -0.04067942127585411, -0.26145049929618835, 0.004720436874777079, -0.08169244974851608, -0.31162095069885254, -0.1770707219839096, 0.20634208619594574, 0.15597859025001526, -0.2599223554134369, 0.02606426738202572, 0.08843696862459183, -0.03601880371570587, 0.1541413962841034, -0.09206070750951767, -0.04090220108628273, 0.23193134367465973, -0.3127715289592743, -0.2800033390522003, -0.107722207903862, -0.18977300822734833, 0.16950492560863495, -0.17962239682674408, 0.238104909658432, 0.019867317751049995, 0.13923092186450958, 0.26649242639541626, -0.4571724832057953, 0.5685825943946838, 0.1349870264530182, 0.3375381827354431, 0.0050012655556201935, -0.3149414658546448, 0.008605110459029675, 0.12934844195842743, 0.12040703743696213, 0.024287860840559006, 0.5533881783485413, 0.3874494135379791, -0.3618096709251404, -0.21781277656555176, -0.2059490978717804, -0.24094271659851074, -0.15923777222633362, -0.4191412627696991, -0.399114191532135, -0.36136123538017273, -0.22379720211029053, 0.08343508839607239, -0.1596079170703888, 0.15449008345603943, -0.10688834637403488, -0.36548638343811035, -0.09683527797460556, -0.21059532463550568, -0.10987378656864166, 0.0762118473649025, -0.2883215546607971, -0.06583718210458755, 0.10687082260847092, 0.14701691269874573, 0.22475072741508484, 0.03668362274765968, 0.022517213597893715, 0.3681701719760895, 0.24405471980571747, 0.25014474987983704, 0.03498378023505211, 0.2024766206741333, 0.30090904235839844, 0.3267797827720642, 0.0206723902374506, 0.14396266639232635, 0.28164851665496826, -0.015802942216396332, 0.005443088710308075, 0.0583767332136631, -0.013288806192576885, -0.03314618393778801, -0.024924296885728836, 0.355660080909729, -0.11111684888601303, -0.08635111153125763, 0.13173533976078033, -0.5866286158561707, 0.09560857713222504, 0.023584507405757904, 0.09440720081329346, 0.7368483543395996, -0.17441342771053314, -0.13363958895206451, 0.14677736163139343, -0.5675060153007507, 0.19009913504123688, -0.5837522745132446, 0.1783948391675949, -0.28502747416496277, 0.2784919738769531, 0.2773333489894867, -0.2528042495250702, -0.38703882694244385, 0.19571207463741302, -0.04478064551949501, -0.07585646212100983, 0.09463271498680115, -0.19392411410808563, -0.2910213768482208, 0.4623294472694397, -0.1804443895816803, -0.22041228413581848, -0.42444419860839844, 0.22918395698070526, -0.03021513670682907, 0.1414909064769745, -0.22709859907627106, -0.1983606368303299, 0.11959809809923172, -0.03450324013829231, 0.24179799854755402, 0.16549058258533478, 0.3753463923931122, 0.2382410168647766, 0.3235592842102051, 0.0927758440375328, -0.29044967889785767, -0.5212954878807068, -0.2094014286994934, 0.0766066312789917, 0.08002402633428574, 0.22647050023078918, -0.32044726610183716, -0.09286928176879883, 0.03297526761889458, 0.09360374510288239, -0.05922343209385872, -0.13961568474769592, -0.19676080346107483, 0.09499786794185638, -0.08206790685653687, -0.24697484076023102, -0.23259297013282776, 0.43035128712654114, -0.4406251907348633, 0.07042481005191803, -0.07749300450086594, 0.38562360405921936, -0.09129353612661362, -0.10766396671533585, 0.3022492229938507, 0.13493266701698303, -0.09808263182640076, 0.3548714220523834, 0.040794748812913895, -0.159669890999794, -0.10903967916965485, 0.40826180577278137, 0.08259124308824539, -0.10673179477453232, 0.4584466516971588, 0.35473373532295227, -0.09710568189620972, -0.4271712005138397, -0.0681689977645874, 0.39727774262428284, -0.1380438357591629, 0.3430548310279846, -0.12522365152835846, -0.36671462655067444, 0.09210507571697235, -0.09714653342962265, -0.10016889125108719, 0.06865306198596954, 0.22663143277168274, -0.27125635743141174, -0.21842147409915924, 0.15065348148345947, -0.02935735322535038, 0.06603919714689255, -0.053542181849479675, 0.17288555204868317, -0.1518951803445816, 0.23865491151809692, -0.38327452540397644, 0.06562013179063797, -0.6734471321105957, 0.01732468791306019, -0.001140802982263267, -0.37362709641456604, 0.009641671553254128, 0.14433574676513672, 0.2716663181781769, 0.10707880556583405, -0.13311205804347992, -0.3311856687068939, 0.16118156909942627, 0.055542249232530594, -0.08033686876296997, 0.17023131251335144, -0.07860545814037323, -0.19174310564994812, 0.18730534613132477, 0.1553623527288437, 0.05035789683461189, -0.2798994481563568, -0.062155112624168396, -0.2441975325345993, 0.07100605219602585, 0.3899669051170349, 0.1824677288532257, 0.2234208583831787, 0.04906172677874565, 0.3569996654987335, -0.16699568927288055, -0.009817259386181831, 0.1533433496952057, 0.05225342884659767, -0.04864056035876274, 0.04639008268713951, 0.33842822909355164, 0.2979048788547516, 0.21377509832382202, -0.28306952118873596, 0.011813053861260414, 0.1401769518852234, 0.0942201092839241, 0.3823326826095581, 0.04393632709980011, -0.03344977647066116, -0.11104626953601837, 0.34266215562820435, 0.17523996531963348, -0.022382624447345734, 0.2529347538948059, -0.004774346947669983, -0.11156368255615234, -0.032573070377111435, -0.2627600133419037, -0.3185242712497711, -0.061975929886102676, 0.4565258026123047, 0.1530897468328476, -0.31409382820129395, -0.31279319524765015, -0.45944279432296753, -0.24953989684581757, -0.3021121919155121, 0.22412583231925964, 0.2687547504901886, 0.3033022880554199, 0.029315032064914703, 0.40408074855804443, -0.0661589503288269, 0.21140767633914948, 0.23802919685840607, -0.17622150480747223, -0.17287878692150116, -0.12248238176107407, 0.4587450325489044, 0.09348263591527939, 0.07083422690629959, 0.0989757627248764, -0.256225049495697, 0.016157260164618492, 0.33957988023757935, -0.24904043972492218, 0.30789780616760254, -0.18798580765724182, -0.17373234033584595, -0.1741970032453537, -0.033869076520204544, -0.014866690151393414, 0.1902889758348465, 0.0052982172928750515, 0.26018187403678894, -0.1635146141052246, 0.09348088502883911, -0.10544241964817047, -0.12721820175647736, -0.06192825362086296, -0.029605427756905556, 0.04521780088543892, -0.06591012328863144, 0.011632243171334267, 0.07328464835882187, 0.01210231427103281, -0.11883675307035446, 0.053109537810087204, 0.1087435632944107, 0.17143245041370392, -0.17831729352474213, -0.123123399913311, -0.06508234143257141, -0.0695984810590744, -0.4971209764480591, 0.40144625306129456, 0.13310422003269196, -0.06406942754983902, 0.033691633492708206, 0.23974691331386566, -0.32422637939453125, 0.10487590730190277, 0.24185912311077118, -0.08678128570318222, 0.1337045282125473, -0.10503789037466049, 0.01330725010484457, -0.19736449420452118, -0.05416825786232948, -0.003212433308362961, -0.1244359239935875, -0.26418977975845337, -0.0502009242773056, -0.18410153687000275, -0.08590129017829895, -0.1592172086238861, 0.13588941097259521, -0.2802143692970276, 0.5446154475212097, -0.03232583776116371, 0.030295325443148613, -0.05708206072449684, -0.06235324591398239, -0.017637433484196663, 0.35332953929901123, -0.22829508781433105, 0.017999175935983658, -0.03862312063574791, 0.3880155682563782, 0.12118763476610184, -0.16704653203487396, -0.21431446075439453, 0.056648313999176025, 0.17334744334220886, 0.2665605843067169, -0.24437259137630463, 0.0310614425688982, 0.42830416560173035, -0.08343112468719482, 0.1220841109752655, -0.048670776188373566, 0.12599554657936096, -0.21422456204891205, 0.2510962188243866, -0.02402789145708084, -0.11436258256435394, -0.23189790546894073, 0.07459122687578201, 0.33648911118507385, 0.1141914576292038, -0.024043744429945946, -0.20711933076381683, -0.21092385053634644, -0.03985016793012619, -0.44093945622444153, 0.18694336712360382, 0.0018187228124588728, 0.14386217296123505, 0.0181154552847147, -0.02978220395743847, 0.6037039160728455, -0.2208080142736435, 0.015520417131483555, -0.43876808881759644, 0.12676656246185303, 0.16330745816230774, -0.07514321058988571, -0.08019251376390457, 0.32622164487838745, -0.12791433930397034, 0.19050078094005585, 0.21348682045936584, 0.06292423605918884, -0.3118615448474884, 0.020667219534516335, 0.23320837318897247, 0.03378164768218994, -0.583713173866272, -0.10842738300561905, 0.2802809774875641, -0.23443244397640228, 0.15538547933101654, 0.22742825746536255, 0.10964174568653107, 0.0853346660733223, 0.04603022336959839, -0.335041880607605, 0.07566417008638382, 0.25262683629989624, -0.3340790271759033, 0.057669512927532196, -0.14158907532691956, 0.29777854681015015, 0.009220757521688938, -0.03232607617974281, -0.13284263014793396 ]
https://github.com/huggingface/datasets/issues/3707
`.select`: unexpected behavior with `indices`
Hi! Currently, we compute the final index as `index % len(dset)`. I agree this behavior is somewhat unexpected and that it would be more appropriate to raise an error instead (this is what `df.iloc` in Pandas does, for instance). @albertvillanova @lhoestq wdyt?
## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": ["d", "e", "f"], "label": [4, 5, 6]}) res1 = ds.select([1, 2, 3])['text'] res2 = ds.select([1000])['text'] ``` ## Expected results Both results should throw an `Error`. ## Actual results `res1` will give `['e', 'f', 'd']` `res2` will give `['e']` ## Environment info Bug found from this environment: - `datasets` version: 1.16.1 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.7 - PyArrow version: 6.0.1 It was also replicated on `master`.
42
`.select`: unexpected behavior with `indices`
[ -0.028166750445961952, -0.024653879925608635, -0.21593187749385834, 0.3740985691547394, 0.11384748667478561, -0.08216673135757446, 0.28650566935539246, 0.11427699774503708, 0.09967851638793945, 0.41381216049194336, 0.08611719310283661, 0.2533508539199829, 0.08251623064279556, 0.005826622247695923, -0.3747066259384155, 0.050032839179039, -0.1842026263475418, 0.16602793335914612, -0.1136598289012909, -0.3162592947483063, -0.41397255659103394, 0.17610882222652435, -0.43430429697036743, 0.19697138667106628, -0.2619807720184326, -0.04737437888979912, 0.17592456936836243, 0.25549671053886414, -0.09286855906248093, -0.0008816136978566647, 0.09815437346696854, -0.09243857115507126, -0.09101318567991257, 0.4377214014530182, -0.00010379520244896412, 0.015617458149790764, 0.27101898193359375, -0.12645424902439117, -0.140684112906456, -0.04622148349881172, -0.5674347281455994, 0.17786794900894165, 0.07525551319122314, -0.47806793451309204, 0.034506283700466156, -0.12935826182365417, -0.2555581331253052, -0.2922149896621704, -0.4294484555721283, 0.03869842737913132, 0.36734139919281006, 0.14508521556854248, -0.40902549028396606, -0.22570137679576874, 0.2167753428220749, -0.07781841605901718, 0.09623125940561295, 0.006627089809626341, 0.050743818283081055, 0.2720141112804413, 0.36816030740737915, 0.07424697279930115, -0.18794140219688416, -0.3317159414291382, 0.06016828119754791, 0.26422885060310364, 0.677639365196228, 0.01761983148753643, 0.23269213736057281, -0.04901137202978134, 0.41995134949684143, 0.20819702744483948, -0.1039058193564415, -0.03143703192472458, -0.10380307585000992, 0.03631122410297394, 0.09405692666769028, -0.0264776311814785, 0.22071479260921478, 0.13203883171081543, 0.007684628013521433, 0.5230382680892944, -0.06594198197126389, 0.22284071147441864, 0.1269730180501938, 0.11482616513967514, -0.12451021373271942, 0.2158646583557129, 0.27758103609085083, -0.08829847723245621, 0.1241673156619072, -0.2005254030227661, -0.07517635822296143, -0.044228408485651016, 0.09068916738033295, -0.004069831222295761, 0.23142525553703308, -0.40355876088142395, -0.19407926499843597, -0.019302023574709892, 0.1396118849515915, 0.2584632635116577, -0.03095058910548687, 0.14500661194324493, 0.27966660261154175, 0.27099621295928955, 0.25942444801330566, 0.11735861748456955, -0.022477207705378532, 0.055570438504219055, -0.04069169983267784, 0.07913892716169357, 0.10967368632555008, -0.014500140212476254, -0.11428708583116531, 0.0437484085559845, -0.1943511664867401, 0.08487603813409805, -0.41023319959640503, 0.3144182860851288, -0.21598252654075623, -0.33525389432907104, 0.24191440641880035, 0.20851260423660278, 0.3718147575855255, -0.26345065236091614, -0.12935134768486023, 0.19155874848365784, -0.2163681983947754, 0.3067820966243744, -0.5080193877220154, 0.10039020329713821, 0.14690737426280975, -0.2308616191148758, -0.3805461525917053, 0.04957612231373787, 0.06262882798910141, 0.08642931282520294, 0.19419223070144653, -0.0051749940030276775, 0.10181737691164017, -0.16322961449623108, 0.4966602325439453, 0.2998761236667633, -0.17599159479141235, 0.13390864431858063, 0.2373940348625183, -0.5598124265670776, -0.0766305923461914, 0.4061550199985504, -0.015996618196368217, -0.04282029718160629, 0.2394934743642807, 0.3320099413394928, 0.2246275395154953, 0.16021449863910675, 0.17324353754520416, 0.2805849313735962, 0.19130629301071167, -0.12830261886119843, 0.16564451158046722, -0.0875064954161644, -0.12564869225025177, -0.2085990607738495, 0.05886067822575569, 0.23958003520965576, -0.33681565523147583, 0.00489752646535635, 0.1798328012228012, 0.0034994196612387896, 0.42030155658721924, 0.057862021028995514, -0.120145782828331, -0.2319035530090332, -0.021143713966012, 0.4521133303642273, -0.1900264322757721, 0.1972438097000122, -0.1823277771472931, -0.10026147216558456, -0.17888329923152924, 0.014409501105546951, 0.013113484717905521, 0.02814098447561264, -0.057894017547369, -0.027985483407974243, 0.3803308308124542, 0.00223953602835536, 0.1570909321308136, -0.16851221024990082, -0.1958034336566925, 0.05153582990169525, 0.005847530905157328, -0.18065665662288666, -0.10461732000112534, 0.07497990131378174, -0.13561803102493286, -0.3626087009906769, 0.20685046911239624, 0.018587619066238403, -0.10567550361156464, 0.06245672330260277, 0.37329691648483276, -0.07074569165706635, 0.1749671995639801, -0.2268550992012024, 0.1793414205312729, 0.14369647204875946, -0.05668497085571289, -0.20971709489822388, 0.27527016401290894, -0.023144448176026344, -0.29661428928375244, -0.006524369120597839, -0.1319410353899002, 0.21350063383579254, 0.208407923579216, -0.14368675649166107, -0.13111844658851624, 0.02866496331989765, -0.10690472275018692, -0.351282000541687, 0.022658132016658783, -0.24209727346897125, 0.0013043724466115236, -0.02687184140086174, -0.13704264163970947, -0.34409549832344055, -0.46836230158805847, -0.08895717561244965, 0.3125985860824585, -0.1452944278717041, -0.09599016606807709, 0.199965238571167, -0.05925564840435982, -0.2621244192123413, -0.014661751687526703, 0.030399378389120102, -0.12620443105697632, -0.09612710028886795, -0.03281809017062187, 0.0772579237818718, 0.1957772821187973, -0.056201763451099396, -0.03270062431693077, 0.3606017827987671, -0.6234490275382996, 0.17655201256275177, -0.2533838152885437, -0.12996281683444977, -0.02504831738770008, 0.1167767345905304, 0.10770368576049805, -0.6369725465774536, -0.4721786081790924, 0.3447820544242859, -0.24684111773967743, 0.07976376265287399, -0.14552557468414307, 0.24557556211948395, 0.1445896029472351, 0.09879450500011444, 0.18822267651557922, -0.10724688321352005, 0.20217929780483246, 0.10449434071779251, -0.16882766783237457, -0.27662762999534607, 0.23402124643325806, 0.16205978393554688, 0.3548719882965088, -0.42984867095947266, 0.1461905688047409, -0.271415650844574, 0.13792423903942108, 0.09751953184604645, -0.19795088469982147, 0.2094736397266388, 0.04923788830637932, -0.20454494655132294, -0.06371394544839859, 0.4913233518600464, 0.048535432666540146, -0.2583869397640228, -0.09774727374315262, 0.44506779313087463, -0.36126893758773804, -0.004051489755511284, 0.3391946256160736, -0.2886103093624115, 0.2393285483121872, -0.22128182649612427, 0.12494051456451416, 0.13255806267261505, -0.5450923442840576, 0.03767520934343338, -0.20617179572582245, 0.15841564536094666, 0.40769970417022705, -0.10605540871620178, 0.002568222116678953, 0.035835910588502884, -0.3061279058456421, 0.12780354917049408, -0.2143833339214325, 0.29976141452789307, -0.1868974268436432, 0.38159602880477905, -0.1415153443813324, -0.011504394002258778, -0.1263778954744339, 0.07530930638313293, -0.1510922759771347, 0.30107229948043823, -0.004768839105963707, -0.09716233611106873, -0.26729875802993774, -0.07066503912210464, 0.1975724995136261, 0.22199894487857819, 0.10542086511850357, 0.18763771653175354, 0.23831503093242645, -0.13353340327739716, -0.13450123369693756, -0.2002299726009369, 0.026405073702335358, -0.15729808807373047, 0.08885269612073898, -0.05489230528473854, 0.1740408092737198, 0.23088568449020386, 0.054802533239126205, -0.1087777242064476, 0.1059061735868454, 0.009046543389558792, -0.3684723675251007, 0.15087705850601196, 0.1316019892692566, 0.0022105828393250704, -0.07108171284198761, -0.21967005729675293, -0.2861548066139221, -0.4210667908191681, -0.21904447674751282, 0.11812339723110199, 0.052480943500995636, -0.18384714424610138, -0.14344285428524017, 0.24655495584011078, 0.19659331440925598, 0.2989037036895752, -0.03945084288716316, -0.3656068444252014, -0.2383900135755539, -0.2518075108528137, 0.3775612711906433, 0.5172685384750366, -0.1607256531715393, -0.03783333674073219, 0.029056617990136147, -0.03850644454360008, 0.24921613931655884, 0.029025567695498466, 0.07084216177463531, 0.32920193672180176, 0.05163518711924553, 0.20106826722621918, -0.20106305181980133, -0.31476569175720215, -0.2092927247285843, 0.1977682113647461, -0.15804140269756317, 0.11082103103399277, -0.1280282884836197, -0.2056264728307724, 0.17757607996463776, 0.2118285894393921, -0.07552026957273483, -0.25967586040496826, 0.12993748486042023, 0.12501609325408936, -0.057641249150037766, 0.22947995364665985, 0.3326271176338196, 0.018398292362689972, 0.2515210211277008, -0.16298316419124603, -0.2086649090051651, 0.23334059119224548, -0.21554097533226013, 0.04422997310757637, -0.07826586812734604, 0.18650102615356445, 0.17047038674354553, 0.11242835223674774, 0.19905534386634827, -0.03416311368346214, -0.6377464532852173, 0.10001841187477112, 0.20481227338314056, 0.5300296545028687, 0.018270010128617287, -0.1815992146730423, 0.3773345947265625, -0.2672041356563568, -0.2852444052696228, -0.06865043193101883, -0.20253267884254456, 0.5558968782424927, -0.002481171628460288, -0.019678065553307533, -0.2660713493824005, 0.04254678264260292, 0.0882284939289093, 0.2889634072780609, -0.06763499975204468, -0.2141379863023758, -0.2639741003513336, -0.00020320230396464467, 0.19936266541481018, 0.20026886463165283, -0.16544710099697113, 0.22825230658054352, -0.0564083531498909, -0.1973745971918106, 0.09623774141073227, -0.15546062588691711, -0.2687673270702362, -0.1844838261604309, 0.27883481979370117, -0.06690189987421036, 0.01407303474843502, 0.16899238526821136, -0.11256926506757736, 0.11376222223043442, 0.4065700173377991, -0.10608260333538055, 0.3315107524394989, 0.23039720952510834, -0.31745728850364685, 0.01063243392854929, 0.39226531982421875, -0.0062675271183252335, 0.09415297955274582, -0.00035612648935057223, -0.04835124313831329, 0.13072124123573303, -0.3027138411998749, 0.32485970854759216, -0.15225692093372345, 0.1374981701374054, 0.016402943059802055, 0.3289889991283417, -0.33884602785110474, -0.20807698369026184, 0.17394278943538666, 0.5391748547554016, -0.0025367869529873133, 0.13271459937095642, 0.023639939725399017, 0.7638087868690491, 0.2043408453464508, -0.10976091772317886, -0.05346398428082466, 0.08152098953723907, -0.22977711260318756, 0.36994820833206177, 0.26391956210136414, -0.46259066462516785, -0.5569995641708374, 0.17242145538330078, -0.18648460507392883, -0.36385002732276917, 0.20320184528827667, -0.07054691761732101, -0.0793391689658165, -0.6622023582458496, -0.1746530532836914, -0.07153582572937012, -0.4874666631221771, -0.04894549399614334, -0.033575307577848434, 0.32309669256210327, 0.18543320894241333, 0.5108218193054199, -0.01260682474821806, 0.11328493803739548, 0.027902858331799507, -0.3515133261680603, -0.20903733372688293, 0.05729087069630623, -0.0034793138038367033, 0.09476067870855331, 0.44238561391830444, 0.18847402930259705, -0.547009289264679, -0.19212663173675537, -0.21861940622329712, -0.0014515899820253253, -0.056780677288770676, 0.04100603982806206, -0.10139954090118408, 0.41198745369911194, 0.3034718334674835, 0.005348811391741037, -0.09896239638328552, 0.41828659176826477, 0.2179812490940094, -0.1207895502448082, -0.10385066270828247, -0.05204010754823685, -0.17021454870700836, -0.3739354610443115, 0.6968635320663452, -0.0337807759642601, -0.2765543758869171, -0.4493162930011749, -0.13516229391098022, 0.05841910466551781, -0.090706005692482, 0.24236202239990234, -0.08588770776987076, 0.09895683825016022, 0.4199274480342865, 0.0183210838586092, -0.24141690135002136, -0.016910605132579803, 0.5127360820770264, 0.02609700709581375, 0.1548387110233307, 0.05307205021381378, -0.009042879566550255, -0.3256175220012665, -0.1854151040315628, 0.08749733120203018, 0.06499834358692169, 0.06997857987880707, 0.28905344009399414, -0.3778849244117737, -0.12626762688159943, 0.18723879754543304, 0.3684428334236145, 0.010900004766881466, 0.08492647856473923, -0.6241517663002014, 0.21894222497940063, -0.04797983542084694, 0.22787612676620483, 0.11277827620506287, 0.005260845180600882, -0.027385152876377106, -0.3498832881450653, -0.055714111775159836, -0.1722026765346527, -0.3954777717590332, -0.05529409274458885, -0.15722087025642395, 0.16140632331371307, -0.052161961793899536, 0.020586661994457245, -0.06072600558400154, 0.038995083421468735, 0.28319665789604187, 0.12065256386995316, 0.08922217041254044, -0.32035115361213684, -0.09476128965616226, 0.10746976733207703, 0.025828467682003975, 0.17959201335906982, -0.0424472913146019, 0.0403856560587883, -0.2521393895149231, -0.2668410539627075, 0.12437111139297485, -0.004803174640983343, -0.05143580958247185, -0.055124107748270035, 0.21629099547863007, 0.013964157551527023, 0.19428811967372894, 0.14077533781528473, -0.2894783020019531, 0.11734262853860855, 0.08954381197690964, -0.17106425762176514, -0.28991419076919556, -0.2114979773759842, -0.1281748265028, -0.030018646270036697, 0.03201703354716301, 0.1062312200665474, 0.16128472983837128, -0.23590098321437836, 0.17951476573944092, 0.1718880981206894, 0.2752021849155426, 0.34995755553245544, 0.1100672036409378, -0.3515273332595825, -0.24186450242996216, 0.3120856285095215, -0.004014664329588413, -0.3839166462421417, -0.38923338055610657, 0.19901537895202637, 0.16985946893692017, 0.2977662682533264, -0.04545610398054123, -0.031113479286432266, 0.09516405314207077, 0.09999397397041321, 0.16282999515533447, 0.1382177174091339, -0.18385398387908936, 0.11052798479795456, -0.0858709067106247, -0.0010965220862999558, 0.20867611467838287, -0.12472332268953323, 0.2835565209388733, 0.4038628339767456, 0.24948638677597046, 0.06619260460138321, 0.33015984296798706, -0.1031714528799057, -0.1484639048576355, -0.3531342148780823, 0.022421028465032578, -0.032208021730184555, 0.25727662444114685, -0.08621420711278915, 0.4323655664920807, 0.0445895679295063, -0.4237402677536011, 0.15367254614830017, -0.02736525982618332, 0.07958059757947922, -0.26485416293144226, 0.07915954291820526, -0.02673410438001156, -0.28411850333213806, 0.02520010620355606, -0.35807713866233826, 0.06757482886314392, 0.33599913120269775, -0.10471274703741074, -0.1838071346282959, 0.1396510899066925, -0.2930673658847809, -0.0618961825966835, -0.24233441054821014, 0.10716549307107925, -0.17905870079994202, 0.05241243541240692, 0.5080346465110779, 0.15057401359081268, 0.0360112302005291, -0.049819640815258026, 0.0792069062590599, 0.07766305655241013, -0.25335821509361267, -0.15116482973098755, -0.03122611530125141, -0.2355075627565384, -0.08660838007926941, 0.08427833020687103, 0.07320816814899445, 0.06389793753623962, 0.14975808560848236, 0.22203931212425232, -0.2598419189453125, -0.07146979868412018, 0.5110819339752197, 0.5667164325714111, -0.10463457554578781, -0.19747598469257355, 0.021034598350524902, 0.10811014473438263, 0.007823462598025799, -0.2050131857395172, -0.11417555063962936, 0.12275893241167068, -0.3178633749485016, 0.06625425815582275, 0.2701539695262909, 0.4545356035232544, 0.143830806016922, 0.018570810556411743, 0.21333874762058258, -0.2740572392940521, -0.039516087621450424, -0.19738522171974182, 0.22558309137821198, 0.005049573257565498, 0.13927817344665527, 0.14462950825691223, -0.05008465424180031, 0.12357430905103683, 0.35355374217033386, 0.21123071014881134, -0.11848301440477371, 0.15540555119514465, 0.03907518461346626, 0.17477546632289886, 0.3511585593223572, -0.11781812459230423, -0.11309973895549774, -0.16581414639949799, -0.43758490681648254, -0.05810331553220749, -0.10348063707351685, 0.03953422233462334, -0.017924603074789047, 0.31973984837532043, -0.26935118436813354, -0.42607182264328003, -0.040710750967264175, 0.5764130353927612, 0.25748223066329956, 0.09027374535799026, 0.06041784584522247, -0.22074152529239655, 0.22341087460517883, 0.15031704306602478, -0.20675618946552277, 0.07602443546056747, 0.2018374502658844, 0.07078412920236588, -0.012065580114722252, -0.1508229374885559, -0.02230626344680786, -0.13677801191806793, 0.20378148555755615, 0.01732434704899788, 0.06893552094697952, -0.26994264125823975, -0.06676266342401505, -0.31296631693840027, -0.11101200431585312, -0.2146906554698944, -0.08897020667791367, 0.15663594007492065, 0.2124466747045517, 0.287171870470047, -0.37479639053344727, 0.5123461484909058, 0.09509047120809555, -0.35619160532951355, 0.001845445018261671, 0.1039547249674797, 0.22221960127353668, -0.10737325996160507, 0.7801001667976379, -0.19560043513774872, 0.27865180373191833, -0.09844473749399185, -0.20480597019195557, -0.2618553936481476, -0.027859477326273918, -0.06444095075130463, -0.06164878234267235, 0.07623287290334702, 0.2871848940849304, -0.0016571932937949896, -0.24144524335861206, -0.09641139954328537 ]
https://github.com/huggingface/datasets/issues/3707
`.select`: unexpected behavior with `indices`
I agree. I think `index % len(dset)` was used to support negative indices. I think this needs to be fixed in `datasets.formatting.formatting._check_valid_index_key` if I'm not mistaken
## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": ["d", "e", "f"], "label": [4, 5, 6]}) res1 = ds.select([1, 2, 3])['text'] res2 = ds.select([1000])['text'] ``` ## Expected results Both results should throw an `Error`. ## Actual results `res1` will give `['e', 'f', 'd']` `res2` will give `['e']` ## Environment info Bug found from this environment: - `datasets` version: 1.16.1 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.7 - PyArrow version: 6.0.1 It was also replicated on `master`.
26
`.select`: unexpected behavior with `indices`
[ -0.028166750445961952, -0.024653879925608635, -0.21593187749385834, 0.3740985691547394, 0.11384748667478561, -0.08216673135757446, 0.28650566935539246, 0.11427699774503708, 0.09967851638793945, 0.41381216049194336, 0.08611719310283661, 0.2533508539199829, 0.08251623064279556, 0.005826622247695923, -0.3747066259384155, 0.050032839179039, -0.1842026263475418, 0.16602793335914612, -0.1136598289012909, -0.3162592947483063, -0.41397255659103394, 0.17610882222652435, -0.43430429697036743, 0.19697138667106628, -0.2619807720184326, -0.04737437888979912, 0.17592456936836243, 0.25549671053886414, -0.09286855906248093, -0.0008816136978566647, 0.09815437346696854, -0.09243857115507126, -0.09101318567991257, 0.4377214014530182, -0.00010379520244896412, 0.015617458149790764, 0.27101898193359375, -0.12645424902439117, -0.140684112906456, -0.04622148349881172, -0.5674347281455994, 0.17786794900894165, 0.07525551319122314, -0.47806793451309204, 0.034506283700466156, -0.12935826182365417, -0.2555581331253052, -0.2922149896621704, -0.4294484555721283, 0.03869842737913132, 0.36734139919281006, 0.14508521556854248, -0.40902549028396606, -0.22570137679576874, 0.2167753428220749, -0.07781841605901718, 0.09623125940561295, 0.006627089809626341, 0.050743818283081055, 0.2720141112804413, 0.36816030740737915, 0.07424697279930115, -0.18794140219688416, -0.3317159414291382, 0.06016828119754791, 0.26422885060310364, 0.677639365196228, 0.01761983148753643, 0.23269213736057281, -0.04901137202978134, 0.41995134949684143, 0.20819702744483948, -0.1039058193564415, -0.03143703192472458, -0.10380307585000992, 0.03631122410297394, 0.09405692666769028, -0.0264776311814785, 0.22071479260921478, 0.13203883171081543, 0.007684628013521433, 0.5230382680892944, -0.06594198197126389, 0.22284071147441864, 0.1269730180501938, 0.11482616513967514, -0.12451021373271942, 0.2158646583557129, 0.27758103609085083, -0.08829847723245621, 0.1241673156619072, -0.2005254030227661, -0.07517635822296143, -0.044228408485651016, 0.09068916738033295, -0.004069831222295761, 0.23142525553703308, -0.40355876088142395, -0.19407926499843597, -0.019302023574709892, 0.1396118849515915, 0.2584632635116577, -0.03095058910548687, 0.14500661194324493, 0.27966660261154175, 0.27099621295928955, 0.25942444801330566, 0.11735861748456955, -0.022477207705378532, 0.055570438504219055, -0.04069169983267784, 0.07913892716169357, 0.10967368632555008, -0.014500140212476254, -0.11428708583116531, 0.0437484085559845, -0.1943511664867401, 0.08487603813409805, -0.41023319959640503, 0.3144182860851288, -0.21598252654075623, -0.33525389432907104, 0.24191440641880035, 0.20851260423660278, 0.3718147575855255, -0.26345065236091614, -0.12935134768486023, 0.19155874848365784, -0.2163681983947754, 0.3067820966243744, -0.5080193877220154, 0.10039020329713821, 0.14690737426280975, -0.2308616191148758, -0.3805461525917053, 0.04957612231373787, 0.06262882798910141, 0.08642931282520294, 0.19419223070144653, -0.0051749940030276775, 0.10181737691164017, -0.16322961449623108, 0.4966602325439453, 0.2998761236667633, -0.17599159479141235, 0.13390864431858063, 0.2373940348625183, -0.5598124265670776, -0.0766305923461914, 0.4061550199985504, -0.015996618196368217, -0.04282029718160629, 0.2394934743642807, 0.3320099413394928, 0.2246275395154953, 0.16021449863910675, 0.17324353754520416, 0.2805849313735962, 0.19130629301071167, -0.12830261886119843, 0.16564451158046722, -0.0875064954161644, -0.12564869225025177, -0.2085990607738495, 0.05886067822575569, 0.23958003520965576, -0.33681565523147583, 0.00489752646535635, 0.1798328012228012, 0.0034994196612387896, 0.42030155658721924, 0.057862021028995514, -0.120145782828331, -0.2319035530090332, -0.021143713966012, 0.4521133303642273, -0.1900264322757721, 0.1972438097000122, -0.1823277771472931, -0.10026147216558456, -0.17888329923152924, 0.014409501105546951, 0.013113484717905521, 0.02814098447561264, -0.057894017547369, -0.027985483407974243, 0.3803308308124542, 0.00223953602835536, 0.1570909321308136, -0.16851221024990082, -0.1958034336566925, 0.05153582990169525, 0.005847530905157328, -0.18065665662288666, -0.10461732000112534, 0.07497990131378174, -0.13561803102493286, -0.3626087009906769, 0.20685046911239624, 0.018587619066238403, -0.10567550361156464, 0.06245672330260277, 0.37329691648483276, -0.07074569165706635, 0.1749671995639801, -0.2268550992012024, 0.1793414205312729, 0.14369647204875946, -0.05668497085571289, -0.20971709489822388, 0.27527016401290894, -0.023144448176026344, -0.29661428928375244, -0.006524369120597839, -0.1319410353899002, 0.21350063383579254, 0.208407923579216, -0.14368675649166107, -0.13111844658851624, 0.02866496331989765, -0.10690472275018692, -0.351282000541687, 0.022658132016658783, -0.24209727346897125, 0.0013043724466115236, -0.02687184140086174, -0.13704264163970947, -0.34409549832344055, -0.46836230158805847, -0.08895717561244965, 0.3125985860824585, -0.1452944278717041, -0.09599016606807709, 0.199965238571167, -0.05925564840435982, -0.2621244192123413, -0.014661751687526703, 0.030399378389120102, -0.12620443105697632, -0.09612710028886795, -0.03281809017062187, 0.0772579237818718, 0.1957772821187973, -0.056201763451099396, -0.03270062431693077, 0.3606017827987671, -0.6234490275382996, 0.17655201256275177, -0.2533838152885437, -0.12996281683444977, -0.02504831738770008, 0.1167767345905304, 0.10770368576049805, -0.6369725465774536, -0.4721786081790924, 0.3447820544242859, -0.24684111773967743, 0.07976376265287399, -0.14552557468414307, 0.24557556211948395, 0.1445896029472351, 0.09879450500011444, 0.18822267651557922, -0.10724688321352005, 0.20217929780483246, 0.10449434071779251, -0.16882766783237457, -0.27662762999534607, 0.23402124643325806, 0.16205978393554688, 0.3548719882965088, -0.42984867095947266, 0.1461905688047409, -0.271415650844574, 0.13792423903942108, 0.09751953184604645, -0.19795088469982147, 0.2094736397266388, 0.04923788830637932, -0.20454494655132294, -0.06371394544839859, 0.4913233518600464, 0.048535432666540146, -0.2583869397640228, -0.09774727374315262, 0.44506779313087463, -0.36126893758773804, -0.004051489755511284, 0.3391946256160736, -0.2886103093624115, 0.2393285483121872, -0.22128182649612427, 0.12494051456451416, 0.13255806267261505, -0.5450923442840576, 0.03767520934343338, -0.20617179572582245, 0.15841564536094666, 0.40769970417022705, -0.10605540871620178, 0.002568222116678953, 0.035835910588502884, -0.3061279058456421, 0.12780354917049408, -0.2143833339214325, 0.29976141452789307, -0.1868974268436432, 0.38159602880477905, -0.1415153443813324, -0.011504394002258778, -0.1263778954744339, 0.07530930638313293, -0.1510922759771347, 0.30107229948043823, -0.004768839105963707, -0.09716233611106873, -0.26729875802993774, -0.07066503912210464, 0.1975724995136261, 0.22199894487857819, 0.10542086511850357, 0.18763771653175354, 0.23831503093242645, -0.13353340327739716, -0.13450123369693756, -0.2002299726009369, 0.026405073702335358, -0.15729808807373047, 0.08885269612073898, -0.05489230528473854, 0.1740408092737198, 0.23088568449020386, 0.054802533239126205, -0.1087777242064476, 0.1059061735868454, 0.009046543389558792, -0.3684723675251007, 0.15087705850601196, 0.1316019892692566, 0.0022105828393250704, -0.07108171284198761, -0.21967005729675293, -0.2861548066139221, -0.4210667908191681, -0.21904447674751282, 0.11812339723110199, 0.052480943500995636, -0.18384714424610138, -0.14344285428524017, 0.24655495584011078, 0.19659331440925598, 0.2989037036895752, -0.03945084288716316, -0.3656068444252014, -0.2383900135755539, -0.2518075108528137, 0.3775612711906433, 0.5172685384750366, -0.1607256531715393, -0.03783333674073219, 0.029056617990136147, -0.03850644454360008, 0.24921613931655884, 0.029025567695498466, 0.07084216177463531, 0.32920193672180176, 0.05163518711924553, 0.20106826722621918, -0.20106305181980133, -0.31476569175720215, -0.2092927247285843, 0.1977682113647461, -0.15804140269756317, 0.11082103103399277, -0.1280282884836197, -0.2056264728307724, 0.17757607996463776, 0.2118285894393921, -0.07552026957273483, -0.25967586040496826, 0.12993748486042023, 0.12501609325408936, -0.057641249150037766, 0.22947995364665985, 0.3326271176338196, 0.018398292362689972, 0.2515210211277008, -0.16298316419124603, -0.2086649090051651, 0.23334059119224548, -0.21554097533226013, 0.04422997310757637, -0.07826586812734604, 0.18650102615356445, 0.17047038674354553, 0.11242835223674774, 0.19905534386634827, -0.03416311368346214, -0.6377464532852173, 0.10001841187477112, 0.20481227338314056, 0.5300296545028687, 0.018270010128617287, -0.1815992146730423, 0.3773345947265625, -0.2672041356563568, -0.2852444052696228, -0.06865043193101883, -0.20253267884254456, 0.5558968782424927, -0.002481171628460288, -0.019678065553307533, -0.2660713493824005, 0.04254678264260292, 0.0882284939289093, 0.2889634072780609, -0.06763499975204468, -0.2141379863023758, -0.2639741003513336, -0.00020320230396464467, 0.19936266541481018, 0.20026886463165283, -0.16544710099697113, 0.22825230658054352, -0.0564083531498909, -0.1973745971918106, 0.09623774141073227, -0.15546062588691711, -0.2687673270702362, -0.1844838261604309, 0.27883481979370117, -0.06690189987421036, 0.01407303474843502, 0.16899238526821136, -0.11256926506757736, 0.11376222223043442, 0.4065700173377991, -0.10608260333538055, 0.3315107524394989, 0.23039720952510834, -0.31745728850364685, 0.01063243392854929, 0.39226531982421875, -0.0062675271183252335, 0.09415297955274582, -0.00035612648935057223, -0.04835124313831329, 0.13072124123573303, -0.3027138411998749, 0.32485970854759216, -0.15225692093372345, 0.1374981701374054, 0.016402943059802055, 0.3289889991283417, -0.33884602785110474, -0.20807698369026184, 0.17394278943538666, 0.5391748547554016, -0.0025367869529873133, 0.13271459937095642, 0.023639939725399017, 0.7638087868690491, 0.2043408453464508, -0.10976091772317886, -0.05346398428082466, 0.08152098953723907, -0.22977711260318756, 0.36994820833206177, 0.26391956210136414, -0.46259066462516785, -0.5569995641708374, 0.17242145538330078, -0.18648460507392883, -0.36385002732276917, 0.20320184528827667, -0.07054691761732101, -0.0793391689658165, -0.6622023582458496, -0.1746530532836914, -0.07153582572937012, -0.4874666631221771, -0.04894549399614334, -0.033575307577848434, 0.32309669256210327, 0.18543320894241333, 0.5108218193054199, -0.01260682474821806, 0.11328493803739548, 0.027902858331799507, -0.3515133261680603, -0.20903733372688293, 0.05729087069630623, -0.0034793138038367033, 0.09476067870855331, 0.44238561391830444, 0.18847402930259705, -0.547009289264679, -0.19212663173675537, -0.21861940622329712, -0.0014515899820253253, -0.056780677288770676, 0.04100603982806206, -0.10139954090118408, 0.41198745369911194, 0.3034718334674835, 0.005348811391741037, -0.09896239638328552, 0.41828659176826477, 0.2179812490940094, -0.1207895502448082, -0.10385066270828247, -0.05204010754823685, -0.17021454870700836, -0.3739354610443115, 0.6968635320663452, -0.0337807759642601, -0.2765543758869171, -0.4493162930011749, -0.13516229391098022, 0.05841910466551781, -0.090706005692482, 0.24236202239990234, -0.08588770776987076, 0.09895683825016022, 0.4199274480342865, 0.0183210838586092, -0.24141690135002136, -0.016910605132579803, 0.5127360820770264, 0.02609700709581375, 0.1548387110233307, 0.05307205021381378, -0.009042879566550255, -0.3256175220012665, -0.1854151040315628, 0.08749733120203018, 0.06499834358692169, 0.06997857987880707, 0.28905344009399414, -0.3778849244117737, -0.12626762688159943, 0.18723879754543304, 0.3684428334236145, 0.010900004766881466, 0.08492647856473923, -0.6241517663002014, 0.21894222497940063, -0.04797983542084694, 0.22787612676620483, 0.11277827620506287, 0.005260845180600882, -0.027385152876377106, -0.3498832881450653, -0.055714111775159836, -0.1722026765346527, -0.3954777717590332, -0.05529409274458885, -0.15722087025642395, 0.16140632331371307, -0.052161961793899536, 0.020586661994457245, -0.06072600558400154, 0.038995083421468735, 0.28319665789604187, 0.12065256386995316, 0.08922217041254044, -0.32035115361213684, -0.09476128965616226, 0.10746976733207703, 0.025828467682003975, 0.17959201335906982, -0.0424472913146019, 0.0403856560587883, -0.2521393895149231, -0.2668410539627075, 0.12437111139297485, -0.004803174640983343, -0.05143580958247185, -0.055124107748270035, 0.21629099547863007, 0.013964157551527023, 0.19428811967372894, 0.14077533781528473, -0.2894783020019531, 0.11734262853860855, 0.08954381197690964, -0.17106425762176514, -0.28991419076919556, -0.2114979773759842, -0.1281748265028, -0.030018646270036697, 0.03201703354716301, 0.1062312200665474, 0.16128472983837128, -0.23590098321437836, 0.17951476573944092, 0.1718880981206894, 0.2752021849155426, 0.34995755553245544, 0.1100672036409378, -0.3515273332595825, -0.24186450242996216, 0.3120856285095215, -0.004014664329588413, -0.3839166462421417, -0.38923338055610657, 0.19901537895202637, 0.16985946893692017, 0.2977662682533264, -0.04545610398054123, -0.031113479286432266, 0.09516405314207077, 0.09999397397041321, 0.16282999515533447, 0.1382177174091339, -0.18385398387908936, 0.11052798479795456, -0.0858709067106247, -0.0010965220862999558, 0.20867611467838287, -0.12472332268953323, 0.2835565209388733, 0.4038628339767456, 0.24948638677597046, 0.06619260460138321, 0.33015984296798706, -0.1031714528799057, -0.1484639048576355, -0.3531342148780823, 0.022421028465032578, -0.032208021730184555, 0.25727662444114685, -0.08621420711278915, 0.4323655664920807, 0.0445895679295063, -0.4237402677536011, 0.15367254614830017, -0.02736525982618332, 0.07958059757947922, -0.26485416293144226, 0.07915954291820526, -0.02673410438001156, -0.28411850333213806, 0.02520010620355606, -0.35807713866233826, 0.06757482886314392, 0.33599913120269775, -0.10471274703741074, -0.1838071346282959, 0.1396510899066925, -0.2930673658847809, -0.0618961825966835, -0.24233441054821014, 0.10716549307107925, -0.17905870079994202, 0.05241243541240692, 0.5080346465110779, 0.15057401359081268, 0.0360112302005291, -0.049819640815258026, 0.0792069062590599, 0.07766305655241013, -0.25335821509361267, -0.15116482973098755, -0.03122611530125141, -0.2355075627565384, -0.08660838007926941, 0.08427833020687103, 0.07320816814899445, 0.06389793753623962, 0.14975808560848236, 0.22203931212425232, -0.2598419189453125, -0.07146979868412018, 0.5110819339752197, 0.5667164325714111, -0.10463457554578781, -0.19747598469257355, 0.021034598350524902, 0.10811014473438263, 0.007823462598025799, -0.2050131857395172, -0.11417555063962936, 0.12275893241167068, -0.3178633749485016, 0.06625425815582275, 0.2701539695262909, 0.4545356035232544, 0.143830806016922, 0.018570810556411743, 0.21333874762058258, -0.2740572392940521, -0.039516087621450424, -0.19738522171974182, 0.22558309137821198, 0.005049573257565498, 0.13927817344665527, 0.14462950825691223, -0.05008465424180031, 0.12357430905103683, 0.35355374217033386, 0.21123071014881134, -0.11848301440477371, 0.15540555119514465, 0.03907518461346626, 0.17477546632289886, 0.3511585593223572, -0.11781812459230423, -0.11309973895549774, -0.16581414639949799, -0.43758490681648254, -0.05810331553220749, -0.10348063707351685, 0.03953422233462334, -0.017924603074789047, 0.31973984837532043, -0.26935118436813354, -0.42607182264328003, -0.040710750967264175, 0.5764130353927612, 0.25748223066329956, 0.09027374535799026, 0.06041784584522247, -0.22074152529239655, 0.22341087460517883, 0.15031704306602478, -0.20675618946552277, 0.07602443546056747, 0.2018374502658844, 0.07078412920236588, -0.012065580114722252, -0.1508229374885559, -0.02230626344680786, -0.13677801191806793, 0.20378148555755615, 0.01732434704899788, 0.06893552094697952, -0.26994264125823975, -0.06676266342401505, -0.31296631693840027, -0.11101200431585312, -0.2146906554698944, -0.08897020667791367, 0.15663594007492065, 0.2124466747045517, 0.287171870470047, -0.37479639053344727, 0.5123461484909058, 0.09509047120809555, -0.35619160532951355, 0.001845445018261671, 0.1039547249674797, 0.22221960127353668, -0.10737325996160507, 0.7801001667976379, -0.19560043513774872, 0.27865180373191833, -0.09844473749399185, -0.20480597019195557, -0.2618553936481476, -0.027859477326273918, -0.06444095075130463, -0.06164878234267235, 0.07623287290334702, 0.2871848940849304, -0.0016571932937949896, -0.24144524335861206, -0.09641139954328537 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
Hi @ankitk2109, Have you tried passing the split name with the keyword `split=`? See e.g. an example in our Quick Start docs: https://huggingface.co/docs/datasets/quickstart.html#load-the-dataset-and-model ```python ds = load_dataset("big_patent", "d", split="validation")
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
29
Unable to load dataset 'big_patent'
[ -0.3359028398990631, 0.12686239182949066, -0.24664373695850372, 0.38867369294166565, 0.12660476565361023, -0.18658511340618134, 0.11524147540330887, 0.26421433687210083, 0.3153839707374573, 0.042927563190460205, -0.02750626765191555, -0.07575224339962006, -0.12460736185312271, 0.43926551938056946, 0.0915474146604538, 0.3191434442996979, -0.08264259994029999, 0.04579196125268936, -0.18266239762306213, -0.10742439329624176, -0.11130181699991226, 0.021594751626253128, -0.17180147767066956, 0.22751979529857635, -0.16828516125679016, -0.048941224813461304, 0.44542595744132996, 0.23536519706249237, -0.44146302342414856, -0.5765212178230286, -0.11477173864841461, 0.2410557121038437, 0.2316708266735077, 0.4933951199054718, -0.00010601827671052888, 0.015703614801168442, 0.3561532199382782, -0.07445144653320312, -0.06931787729263306, 0.20729629695415497, -0.10858170688152313, -0.11627588421106339, -0.11005362123250961, -0.01868441328406334, -0.0785456970334053, -0.35385453701019287, -0.09815120697021484, -0.01671636290848255, -0.0927739366889, 0.32722726464271545, 0.3578650653362274, -0.1588781327009201, 0.4847322106361389, -0.41444435715675354, 0.1826145350933075, -0.2159542590379715, 0.0720910057425499, 0.27654051780700684, 0.2629041373729706, -0.33007439970970154, -0.18560732901096344, 0.12129978090524673, -0.1383577585220337, 0.12498737871646881, 0.17086152732372284, -0.19738167524337769, 0.20078684389591217, 0.03464614227414131, 0.4301137626171112, 0.2775249183177948, 0.6089503765106201, 0.21473845839500427, -0.16937485337257385, 0.18708865344524384, 0.141991525888443, -0.40640297532081604, 0.19179506599903107, 0.15527501702308655, 0.08570370823144913, 0.06346392631530762, -0.09678616374731064, -0.3572530448436737, -0.37995803356170654, 0.1172272190451622, -0.317839115858078, 0.10788550227880478, -0.08005960285663605, 0.07990507781505585, 0.04940003529191017, -0.3625034689903259, 0.37081965804100037, 0.13345013558864594, 0.1383160948753357, -0.03063340112566948, -0.10225839912891388, 0.2640324532985687, 0.18095296621322632, 0.274601548910141, 0.3532711863517761, 0.04176533594727516, 0.11854959279298782, 0.12297596782445908, -0.04901542514562607, 0.014333179220557213, -0.010920950211584568, 0.0741056576371193, -0.39032840728759766, -0.004406722262501717, 0.3399662375450134, 0.09221956878900528, -0.27444663643836975, 0.13650743663311005, -0.5172374844551086, -0.1696626842021942, -0.27002426981925964, -0.22240442037582397, 0.07889831066131592, -0.47058069705963135, -0.1706341952085495, 0.3332863748073578, 0.034971754997968674, 0.037753041833639145, 0.1377374678850174, 0.5721497535705566, -0.1283564418554306, -0.15106111764907837, -0.11188476532697678, 0.10757037252187729, 0.028817344456911087, -0.14489343762397766, -0.3663182556629181, 0.14541682600975037, 0.025291569530963898, 0.003884942503646016, 0.2121383100748062, -0.013536007143557072, 0.3519160747528076, -0.34030595421791077, 0.21562761068344116, -0.12079384922981262, -0.033215317875146866, 0.02218063920736313, 0.052220381796360016, 0.37412962317466736, -0.02730613388121128, -0.1350913643836975, 0.09041166305541992, -0.1695164144039154, -0.03649837523698807, 0.15584872663021088, -0.10188861936330795, -0.38854846358299255, -0.08378612995147705, 0.21911077201366425, -0.2634468376636505, -0.003825563006103039, -0.09158671647310257, -0.07047092914581299, -0.0049078320153057575, -0.2486167550086975, -0.2650105953216553, -0.24024371802806854, 0.18929478526115417, -0.1572585254907608, 0.23275506496429443, 0.20345230400562286, -0.26965606212615967, 0.2627563774585724, -0.000655798299703747, 0.10210534930229187, -0.08783954381942749, 0.15350030362606049, -0.29599180817604065, 0.39938798546791077, -0.10944703221321106, 0.03488954156637192, 0.29581448435783386, -0.16495177149772644, -0.6891696453094482, -0.02812994085252285, -0.21971282362937927, -0.35821017622947693, 0.22748810052871704, -0.018909577280282974, -0.11779176443815231, 0.07539951801300049, 0.17635536193847656, 0.2467508167028427, 0.18918122351169586, -0.10252367705106735, -0.07496920228004456, -0.15695123374462128, 0.2643834054470062, 0.29653817415237427, 0.22078950703144073, 0.03748081251978874, 0.17005358636379242, 0.1984294354915619, 0.036441948264837265, 0.22668185830116272, -0.29559335112571716, 0.11456849426031113, 0.058087147772312164, -0.07558614760637283, -0.05427850782871246, 0.12265469878911972, 0.09100443124771118, 0.04368428513407707, 0.02017938159406185, -0.009963737800717354, 0.038251422345638275, 0.18897758424282074, -0.556046724319458, 0.1183299869298935, -0.07634980231523514, -0.026783687993884087, 0.24758198857307434, 0.27459874749183655, 0.01750681921839714, 0.1244240328669548, -0.0787772610783577, -0.042704008519649506, 0.14538215100765228, -0.18910080194473267, -0.3389776945114136, -0.10092297196388245, -0.056486595422029495, -0.05521191656589508, 0.2765161991119385, 0.11466095596551895, 0.23110221326351166, -0.19086645543575287, -0.09169084578752518, 0.14523287117481232, -0.21330702304840088, -0.02800188586115837, 0.18362046778202057, 0.23348136246204376, -0.07791782915592194, -0.3601873815059662, 0.13643214106559753, -0.12034425139427185, 0.2188868373632431, 0.0795876756310463, -0.01985798217356205, 0.20130161941051483, -0.06794129312038422, -0.09745949506759644, 0.11979972571134567, -0.15524612367153168, 0.4030400216579437, -0.12708333134651184, 0.08274214714765549, 0.000960966688580811, 0.28475403785705566, 0.0985451489686966, 0.1785358041524887, 0.03125491738319397, -0.19974485039710999, 0.007203617133200169, 0.34074148535728455, -0.0818784087896347, 0.09187038987874985, -0.26057785749435425, -0.2945704758167267, -0.021036123856902122, 0.1287371963262558, -0.08214641362428665, 0.46765372157096863, 0.3137879967689514, -0.07208572328090668, -0.1669800728559494, 0.24092155694961548, -0.21765127778053284, 0.18356546759605408, -0.12501370906829834, 0.11235544830560684, 0.17193186283111572, 0.1556912511587143, -0.26221781969070435, -0.3978787064552307, -0.15272313356399536, 0.31041979789733887, 0.2943226993083954, -0.06011750176548958, -0.04979199171066284, -0.10434845089912415, 0.23459506034851074, -0.04174210503697395, 0.027666904032230377, -0.05489369109272957, 0.05953490361571312, 0.026143526658415794, 0.4564753472805023, 0.16207855939865112, 0.19617462158203125, -0.4146488606929779, 0.23948684334754944, 0.3079254925251007, 0.059459105134010315, 0.1298917531967163, -0.23607954382896423, -0.1355726718902588, 0.2053522914648056, 0.27521440386772156, 0.09939194470643997, 0.20618313550949097, 0.24285967648029327, -0.06007824465632439, -0.26438087224960327, -0.25834256410598755, 0.008685019798576832, -0.008322259411215782, -0.19277158379554749, 0.07596876472234726, 0.030841099098324776, 0.32522347569465637, 0.10607965290546417, 0.14620858430862427, -0.24213984608650208, 0.021213389933109283, 0.06196705624461174, -0.07457007467746735, -0.29806986451148987, -0.004797718953341246, -0.4482051134109497, -0.18117308616638184, -0.4368607699871063, 0.2528476119041443, 0.1299804002046585, -0.04763513058423996, -0.14629106223583221, 0.1529332995414734, 0.16762079298496246, 0.11733378469944, -0.01983719691634178, -0.4306400716304779, -0.07255858927965164, 0.3476077914237976, -0.4015321731567383, -0.5745417475700378, -0.07949969917535782, 0.07793150097131729, 0.0850101038813591, 0.028651002794504166, -0.5899274945259094, 0.35397595167160034, -0.08930937945842743, -0.15676191449165344, -0.1282309740781784, -0.08434697240591049, -0.0558578260242939, -0.030838489532470703, -0.20399163663387299, -0.18319986760616302, -0.0033808229491114616, 0.17787279188632965, -0.1090344712138176, 0.203388050198555, 0.026921063661575317, 0.3859729766845703, -0.2737625539302826, 0.31935784220695496, -0.19680054485797882, -0.1264542192220688, 0.0984797477722168, -0.11627151072025299, 0.3289116621017456, 0.01991059072315693, -0.19543114304542542, 0.18066108226776123, 0.13065072894096375, 0.057907916605472565, 0.2574114501476288, -0.14653296768665314, 0.08573287725448608, 0.02342609129846096, 0.2345496118068695, -0.03785041719675064, -0.007737572304904461, 0.04063858091831207, -0.04076121374964714, -0.04233467951416969, 0.019594408571720123, -0.15296722948551178, -0.3307301700115204, -0.11731072515249252, -0.004368402995169163, -0.3702685236930847, 0.19150632619857788, 0.04304397851228714, -0.39674198627471924, -0.0987444818019867, -0.40487203001976013, 0.3331465423107147, -0.2823764979839325, 0.18247324228286743, -0.1158994808793068, -0.09262295067310333, 0.05459372326731682, 0.005004430655390024, 0.3926253616809845, 0.16272403299808502, 0.21051423251628876, 0.02707052417099476, -0.14801546931266785, -0.1727832853794098, -0.10091090202331543, -0.11441389471292496, 0.3635956346988678, -0.06935365498065948, 0.08976142108440399, -0.2668599784374237, 0.08264072984457016, 0.25175413489341736, 0.101778045296669, -0.10513874143362045, -0.050843581557273865, -0.2684357464313507, -0.4011590778827667, -0.23486566543579102, -0.0706939697265625, 0.1276717334985733, 0.3101245164871216, -0.22252129018306732, 0.03254257142543793, -0.22342067956924438, -0.14426355063915253, 0.18192918598651886, 0.22009047865867615, 0.18936488032341003, 0.021095143631100655, -0.09416472911834717, 0.20326226949691772, 0.03812997415661812, 0.4226415455341339, 0.6595003008842468, 0.23310747742652893, -0.04090779274702072, 0.3091760277748108, -0.05414058640599251, 0.15529675781726837, 0.31397947669029236, -0.19343525171279907, 0.018360918387770653, 0.0534001961350441, 0.19551189243793488, -0.06309261918067932, 0.6161538362503052, 0.07003229111433029, -0.15986211597919464, -0.31414106488227844, -0.19088958203792572, 0.5224155783653259, -0.1730613112449646, -0.08403953909873962, 0.14730952680110931, 0.01686164364218712, -0.16638274490833282, -0.09861889481544495, -0.4117412865161896, 0.6687524914741516, -0.20328328013420105, 0.06204402446746826, 0.06626295298337936, 0.3870287537574768, 0.24766667187213898, -0.06672540307044983, 0.02193259261548519, -0.3826223313808441, -0.4099578559398651, -0.06871434301137924, -0.2425113022327423, -0.18453946709632874, 0.12984810769557953, -0.03598020225763321, 0.21084058284759521, 0.2276781052350998, 0.1756293773651123, 0.09610765427350998, 0.5285754799842834, 0.18122674524784088, 0.0733349397778511, -0.19009250402450562, 0.17996597290039062, -0.12201528996229172, 0.25813591480255127, -0.09576521813869476, -0.1427297294139862, -0.12270443886518478, -0.3268105089664459, -0.2493518739938736, 0.06598073244094849, -0.2413952797651291, 0.6252077221870422, -0.10935287922620773, -0.3353390693664551, -0.01956109330058098, -0.051509514451026917, -0.09406950324773788, 0.22825638949871063, -0.2631535232067108, 0.16265061497688293, 0.22450511157512665, -0.41832900047302246, -0.19028639793395996, 0.22967186570167542, 0.1480245739221573, -0.1788026988506317, -0.1048193871974945, 0.2917749881744385, 0.01769549399614334, -0.18815110623836517, -0.21297544240951538, 0.1803676038980484, 0.43421050906181335, -0.220099538564682, -0.3376471996307373, -0.1154816672205925, 0.0002102611178997904, -0.07584156095981598, 0.22710953652858734, 0.27071428298950195, -0.18916188180446625, -0.13265842199325562, 0.485320508480072, -0.16133888065814972, -0.11579691618680954, 0.2922755479812622, -0.006521433591842651, -0.0019559822976589203, 0.568136990070343, -0.054944925010204315, 0.12147774547338486, -0.21250879764556885, -0.10280044376850128, 0.39327573776245117, -0.2973114252090454, 0.0447506420314312, 0.03445884585380554, -0.38639503717422485, 0.23234876990318298, 0.11301020532846451, 0.09292268007993698, -0.20461343228816986, -0.00017837058112490922, -0.24569541215896606, -0.2520091235637665, 0.25126340985298157, -0.2728801965713501, 0.1807880848646164, -0.02785729244351387, 0.0376695953309536, -0.48403072357177734, 0.06134995073080063, -0.4035327434539795, 0.1795940101146698, -0.14392763376235962, -0.11753206700086594, 0.08456888794898987, -0.008812976069748402, -0.1863047182559967, 0.12724344432353973, 0.27570730447769165, 0.015680644661188126, -0.15650852024555206, -0.36332589387893677, -0.049116525799036026, 0.13426634669303894, -0.03382446616888046, 0.04022660478949547, -0.2104640156030655, -0.2732779383659363, -0.15449216961860657, 0.08057821542024612, 0.30907049775123596, -0.07388488203287125, 0.08095744252204895, -0.3234630227088928, -0.051615796983242035, -0.18159136176109314, -0.029764216393232346, 0.2688758969306946, -0.10105718672275543, -0.0021307491697371006, 0.19329705834388733, 0.15506671369075775, 0.015007570385932922, -0.1505734771490097, -0.2379753142595291, -0.10551605373620987, 0.04119598865509033, 0.06049514189362526, 0.5367912650108337, -0.2544393539428711, -0.09200946986675262, 0.13566680252552032, 0.12121503055095673, 0.2668644189834595, -0.21580377221107483, -0.040323253720998764, 0.09919968992471695, 0.28379011154174805, -0.5178390145301819, -0.16271039843559265, -0.004127928055822849, -0.13591885566711426, 0.10013586282730103, 0.26262885332107544, 0.21198110282421112, 0.006167985964566469, -0.35740211606025696, 0.1743650883436203, 0.3999604880809784, 0.28041937947273254, -0.026844540610909462, 0.08774778246879578, -0.28600582480430603, -0.04407024383544922, 0.22271454334259033, 0.3076282739639282, 0.2137732058763504, 0.7375859022140503, 0.26157820224761963, 0.4250287115573883, -0.2168947160243988, -0.01049347035586834, 0.039681948721408844, -0.32766199111938477, 0.022578952834010124, 0.21161776781082153, -0.1146809384226799, 0.18452027440071106, -0.08381075412034988, 0.1554230898618698, -0.31755536794662476, 0.13482975959777832, -0.49636465311050415, 0.12137195467948914, 0.03594876453280449, 0.0017496236832812428, 0.15881355106830597, -0.16824805736541748, 0.20279760658740997, 0.051803238689899445, -0.07807384431362152, 0.10056200623512268, 0.26445522904396057, 0.1347682625055313, -0.19635683298110962, -0.19553621113300323, -0.22276397049427032, 0.14930316805839539, 0.010423203930258751, -0.13417036831378937, 0.1256936937570572, 0.10717280209064484, -0.11741692572832108, 0.21297083795070648, 0.23955944180488586, 0.45952489972114563, 0.15559300780296326, -0.1417904496192932, -0.3558119833469391, 0.04237522929906845, -0.16928181052207947, -0.25096559524536133, 0.2187959849834442, 0.31927627325057983, 0.07755497097969055, 0.12484636902809143, 0.2226816862821579, -0.1505165994167328, 0.07898459583520889, 0.1778375804424286, -0.03391941264271736, 0.07430533319711685, -0.3868422210216522, -0.06381844729185104, -0.2020207643508911, -0.2836495339870453, 0.017676202580332756, -0.3352563977241516, -0.2028525471687317, 0.2236137092113495, 0.08641829341650009, 0.19563870131969452, -0.0328608900308609, 0.1233760267496109, -0.33801326155662537, 0.7097560167312622, 0.01549214031547308, 0.41244226694107056, -0.17469532787799835, -0.09409728646278381, -0.5283468961715698, 0.5568981170654297, -0.1425919085741043, -0.11653818190097809, 0.20422819256782532, -0.06549587100744247, 0.27426087856292725, -0.09471584111452103, -0.1006249487400055, -0.2723659574985504, -0.07387009263038635, -0.08046386390924454, -0.35126426815986633, -0.11989787220954895, 0.3524158000946045, 0.18384850025177002, -0.11552883684635162, -0.270740807056427, 0.23909781873226166, -0.3342856168746948, 0.2704393267631531, -0.2623750567436218, 0.10025666654109955, -0.18906821310520172, 0.4158267080783844, 0.37685301899909973, -0.01773490197956562, 0.6198323369026184, -0.13249658048152924, -0.06870731711387634, -0.38476037979125977, -0.24018961191177368, 0.057214148342609406, 0.42558300495147705, 0.202819362282753, 0.16471050679683685, -0.007446705363690853, -0.056842636317014694, -0.10046841949224472, 0.3361852765083313, -0.30293866991996765, -0.05650396645069122, 0.094913549721241, -0.08796817809343338, -0.16944263875484467, 0.056969642639160156, 0.21466697752475739, -0.03663826361298561, -0.14204345643520355, -0.057161103934049606, -0.03937103971838951, -0.2801482379436493, 0.6055493950843811, -0.2736343443393707, -0.36942270398139954, -0.029989123344421387, 0.27927061915397644, 0.1905107945203781, 0.0752776712179184, -0.4199987053871155, 0.3273061215877533, 0.09152757376432419, 0.16774792969226837, -0.29582732915878296, 0.22047795355319977, -0.1803394854068756, 0.08253832906484604, -0.019938724115490913, 0.7990158200263977, -0.1299661248922348, -0.47409549355506897, -0.36300235986709595, 0.0491340197622776 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
Hi @albertvillanova, Thanks for your response. Yes, I tried the `split='validation'` as well. But getting the same issue.
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
18
Unable to load dataset 'big_patent'
[ -0.3359028398990631, 0.12686239182949066, -0.24664373695850372, 0.38867369294166565, 0.12660476565361023, -0.18658511340618134, 0.11524147540330887, 0.26421433687210083, 0.3153839707374573, 0.042927563190460205, -0.02750626765191555, -0.07575224339962006, -0.12460736185312271, 0.43926551938056946, 0.0915474146604538, 0.3191434442996979, -0.08264259994029999, 0.04579196125268936, -0.18266239762306213, -0.10742439329624176, -0.11130181699991226, 0.021594751626253128, -0.17180147767066956, 0.22751979529857635, -0.16828516125679016, -0.048941224813461304, 0.44542595744132996, 0.23536519706249237, -0.44146302342414856, -0.5765212178230286, -0.11477173864841461, 0.2410557121038437, 0.2316708266735077, 0.4933951199054718, -0.00010601827671052888, 0.015703614801168442, 0.3561532199382782, -0.07445144653320312, -0.06931787729263306, 0.20729629695415497, -0.10858170688152313, -0.11627588421106339, -0.11005362123250961, -0.01868441328406334, -0.0785456970334053, -0.35385453701019287, -0.09815120697021484, -0.01671636290848255, -0.0927739366889, 0.32722726464271545, 0.3578650653362274, -0.1588781327009201, 0.4847322106361389, -0.41444435715675354, 0.1826145350933075, -0.2159542590379715, 0.0720910057425499, 0.27654051780700684, 0.2629041373729706, -0.33007439970970154, -0.18560732901096344, 0.12129978090524673, -0.1383577585220337, 0.12498737871646881, 0.17086152732372284, -0.19738167524337769, 0.20078684389591217, 0.03464614227414131, 0.4301137626171112, 0.2775249183177948, 0.6089503765106201, 0.21473845839500427, -0.16937485337257385, 0.18708865344524384, 0.141991525888443, -0.40640297532081604, 0.19179506599903107, 0.15527501702308655, 0.08570370823144913, 0.06346392631530762, -0.09678616374731064, -0.3572530448436737, -0.37995803356170654, 0.1172272190451622, -0.317839115858078, 0.10788550227880478, -0.08005960285663605, 0.07990507781505585, 0.04940003529191017, -0.3625034689903259, 0.37081965804100037, 0.13345013558864594, 0.1383160948753357, -0.03063340112566948, -0.10225839912891388, 0.2640324532985687, 0.18095296621322632, 0.274601548910141, 0.3532711863517761, 0.04176533594727516, 0.11854959279298782, 0.12297596782445908, -0.04901542514562607, 0.014333179220557213, -0.010920950211584568, 0.0741056576371193, -0.39032840728759766, -0.004406722262501717, 0.3399662375450134, 0.09221956878900528, -0.27444663643836975, 0.13650743663311005, -0.5172374844551086, -0.1696626842021942, -0.27002426981925964, -0.22240442037582397, 0.07889831066131592, -0.47058069705963135, -0.1706341952085495, 0.3332863748073578, 0.034971754997968674, 0.037753041833639145, 0.1377374678850174, 0.5721497535705566, -0.1283564418554306, -0.15106111764907837, -0.11188476532697678, 0.10757037252187729, 0.028817344456911087, -0.14489343762397766, -0.3663182556629181, 0.14541682600975037, 0.025291569530963898, 0.003884942503646016, 0.2121383100748062, -0.013536007143557072, 0.3519160747528076, -0.34030595421791077, 0.21562761068344116, -0.12079384922981262, -0.033215317875146866, 0.02218063920736313, 0.052220381796360016, 0.37412962317466736, -0.02730613388121128, -0.1350913643836975, 0.09041166305541992, -0.1695164144039154, -0.03649837523698807, 0.15584872663021088, -0.10188861936330795, -0.38854846358299255, -0.08378612995147705, 0.21911077201366425, -0.2634468376636505, -0.003825563006103039, -0.09158671647310257, -0.07047092914581299, -0.0049078320153057575, -0.2486167550086975, -0.2650105953216553, -0.24024371802806854, 0.18929478526115417, -0.1572585254907608, 0.23275506496429443, 0.20345230400562286, -0.26965606212615967, 0.2627563774585724, -0.000655798299703747, 0.10210534930229187, -0.08783954381942749, 0.15350030362606049, -0.29599180817604065, 0.39938798546791077, -0.10944703221321106, 0.03488954156637192, 0.29581448435783386, -0.16495177149772644, -0.6891696453094482, -0.02812994085252285, -0.21971282362937927, -0.35821017622947693, 0.22748810052871704, -0.018909577280282974, -0.11779176443815231, 0.07539951801300049, 0.17635536193847656, 0.2467508167028427, 0.18918122351169586, -0.10252367705106735, -0.07496920228004456, -0.15695123374462128, 0.2643834054470062, 0.29653817415237427, 0.22078950703144073, 0.03748081251978874, 0.17005358636379242, 0.1984294354915619, 0.036441948264837265, 0.22668185830116272, -0.29559335112571716, 0.11456849426031113, 0.058087147772312164, -0.07558614760637283, -0.05427850782871246, 0.12265469878911972, 0.09100443124771118, 0.04368428513407707, 0.02017938159406185, -0.009963737800717354, 0.038251422345638275, 0.18897758424282074, -0.556046724319458, 0.1183299869298935, -0.07634980231523514, -0.026783687993884087, 0.24758198857307434, 0.27459874749183655, 0.01750681921839714, 0.1244240328669548, -0.0787772610783577, -0.042704008519649506, 0.14538215100765228, -0.18910080194473267, -0.3389776945114136, -0.10092297196388245, -0.056486595422029495, -0.05521191656589508, 0.2765161991119385, 0.11466095596551895, 0.23110221326351166, -0.19086645543575287, -0.09169084578752518, 0.14523287117481232, -0.21330702304840088, -0.02800188586115837, 0.18362046778202057, 0.23348136246204376, -0.07791782915592194, -0.3601873815059662, 0.13643214106559753, -0.12034425139427185, 0.2188868373632431, 0.0795876756310463, -0.01985798217356205, 0.20130161941051483, -0.06794129312038422, -0.09745949506759644, 0.11979972571134567, -0.15524612367153168, 0.4030400216579437, -0.12708333134651184, 0.08274214714765549, 0.000960966688580811, 0.28475403785705566, 0.0985451489686966, 0.1785358041524887, 0.03125491738319397, -0.19974485039710999, 0.007203617133200169, 0.34074148535728455, -0.0818784087896347, 0.09187038987874985, -0.26057785749435425, -0.2945704758167267, -0.021036123856902122, 0.1287371963262558, -0.08214641362428665, 0.46765372157096863, 0.3137879967689514, -0.07208572328090668, -0.1669800728559494, 0.24092155694961548, -0.21765127778053284, 0.18356546759605408, -0.12501370906829834, 0.11235544830560684, 0.17193186283111572, 0.1556912511587143, -0.26221781969070435, -0.3978787064552307, -0.15272313356399536, 0.31041979789733887, 0.2943226993083954, -0.06011750176548958, -0.04979199171066284, -0.10434845089912415, 0.23459506034851074, -0.04174210503697395, 0.027666904032230377, -0.05489369109272957, 0.05953490361571312, 0.026143526658415794, 0.4564753472805023, 0.16207855939865112, 0.19617462158203125, -0.4146488606929779, 0.23948684334754944, 0.3079254925251007, 0.059459105134010315, 0.1298917531967163, -0.23607954382896423, -0.1355726718902588, 0.2053522914648056, 0.27521440386772156, 0.09939194470643997, 0.20618313550949097, 0.24285967648029327, -0.06007824465632439, -0.26438087224960327, -0.25834256410598755, 0.008685019798576832, -0.008322259411215782, -0.19277158379554749, 0.07596876472234726, 0.030841099098324776, 0.32522347569465637, 0.10607965290546417, 0.14620858430862427, -0.24213984608650208, 0.021213389933109283, 0.06196705624461174, -0.07457007467746735, -0.29806986451148987, -0.004797718953341246, -0.4482051134109497, -0.18117308616638184, -0.4368607699871063, 0.2528476119041443, 0.1299804002046585, -0.04763513058423996, -0.14629106223583221, 0.1529332995414734, 0.16762079298496246, 0.11733378469944, -0.01983719691634178, -0.4306400716304779, -0.07255858927965164, 0.3476077914237976, -0.4015321731567383, -0.5745417475700378, -0.07949969917535782, 0.07793150097131729, 0.0850101038813591, 0.028651002794504166, -0.5899274945259094, 0.35397595167160034, -0.08930937945842743, -0.15676191449165344, -0.1282309740781784, -0.08434697240591049, -0.0558578260242939, -0.030838489532470703, -0.20399163663387299, -0.18319986760616302, -0.0033808229491114616, 0.17787279188632965, -0.1090344712138176, 0.203388050198555, 0.026921063661575317, 0.3859729766845703, -0.2737625539302826, 0.31935784220695496, -0.19680054485797882, -0.1264542192220688, 0.0984797477722168, -0.11627151072025299, 0.3289116621017456, 0.01991059072315693, -0.19543114304542542, 0.18066108226776123, 0.13065072894096375, 0.057907916605472565, 0.2574114501476288, -0.14653296768665314, 0.08573287725448608, 0.02342609129846096, 0.2345496118068695, -0.03785041719675064, -0.007737572304904461, 0.04063858091831207, -0.04076121374964714, -0.04233467951416969, 0.019594408571720123, -0.15296722948551178, -0.3307301700115204, -0.11731072515249252, -0.004368402995169163, -0.3702685236930847, 0.19150632619857788, 0.04304397851228714, -0.39674198627471924, -0.0987444818019867, -0.40487203001976013, 0.3331465423107147, -0.2823764979839325, 0.18247324228286743, -0.1158994808793068, -0.09262295067310333, 0.05459372326731682, 0.005004430655390024, 0.3926253616809845, 0.16272403299808502, 0.21051423251628876, 0.02707052417099476, -0.14801546931266785, -0.1727832853794098, -0.10091090202331543, -0.11441389471292496, 0.3635956346988678, -0.06935365498065948, 0.08976142108440399, -0.2668599784374237, 0.08264072984457016, 0.25175413489341736, 0.101778045296669, -0.10513874143362045, -0.050843581557273865, -0.2684357464313507, -0.4011590778827667, -0.23486566543579102, -0.0706939697265625, 0.1276717334985733, 0.3101245164871216, -0.22252129018306732, 0.03254257142543793, -0.22342067956924438, -0.14426355063915253, 0.18192918598651886, 0.22009047865867615, 0.18936488032341003, 0.021095143631100655, -0.09416472911834717, 0.20326226949691772, 0.03812997415661812, 0.4226415455341339, 0.6595003008842468, 0.23310747742652893, -0.04090779274702072, 0.3091760277748108, -0.05414058640599251, 0.15529675781726837, 0.31397947669029236, -0.19343525171279907, 0.018360918387770653, 0.0534001961350441, 0.19551189243793488, -0.06309261918067932, 0.6161538362503052, 0.07003229111433029, -0.15986211597919464, -0.31414106488227844, -0.19088958203792572, 0.5224155783653259, -0.1730613112449646, -0.08403953909873962, 0.14730952680110931, 0.01686164364218712, -0.16638274490833282, -0.09861889481544495, -0.4117412865161896, 0.6687524914741516, -0.20328328013420105, 0.06204402446746826, 0.06626295298337936, 0.3870287537574768, 0.24766667187213898, -0.06672540307044983, 0.02193259261548519, -0.3826223313808441, -0.4099578559398651, -0.06871434301137924, -0.2425113022327423, -0.18453946709632874, 0.12984810769557953, -0.03598020225763321, 0.21084058284759521, 0.2276781052350998, 0.1756293773651123, 0.09610765427350998, 0.5285754799842834, 0.18122674524784088, 0.0733349397778511, -0.19009250402450562, 0.17996597290039062, -0.12201528996229172, 0.25813591480255127, -0.09576521813869476, -0.1427297294139862, -0.12270443886518478, -0.3268105089664459, -0.2493518739938736, 0.06598073244094849, -0.2413952797651291, 0.6252077221870422, -0.10935287922620773, -0.3353390693664551, -0.01956109330058098, -0.051509514451026917, -0.09406950324773788, 0.22825638949871063, -0.2631535232067108, 0.16265061497688293, 0.22450511157512665, -0.41832900047302246, -0.19028639793395996, 0.22967186570167542, 0.1480245739221573, -0.1788026988506317, -0.1048193871974945, 0.2917749881744385, 0.01769549399614334, -0.18815110623836517, -0.21297544240951538, 0.1803676038980484, 0.43421050906181335, -0.220099538564682, -0.3376471996307373, -0.1154816672205925, 0.0002102611178997904, -0.07584156095981598, 0.22710953652858734, 0.27071428298950195, -0.18916188180446625, -0.13265842199325562, 0.485320508480072, -0.16133888065814972, -0.11579691618680954, 0.2922755479812622, -0.006521433591842651, -0.0019559822976589203, 0.568136990070343, -0.054944925010204315, 0.12147774547338486, -0.21250879764556885, -0.10280044376850128, 0.39327573776245117, -0.2973114252090454, 0.0447506420314312, 0.03445884585380554, -0.38639503717422485, 0.23234876990318298, 0.11301020532846451, 0.09292268007993698, -0.20461343228816986, -0.00017837058112490922, -0.24569541215896606, -0.2520091235637665, 0.25126340985298157, -0.2728801965713501, 0.1807880848646164, -0.02785729244351387, 0.0376695953309536, -0.48403072357177734, 0.06134995073080063, -0.4035327434539795, 0.1795940101146698, -0.14392763376235962, -0.11753206700086594, 0.08456888794898987, -0.008812976069748402, -0.1863047182559967, 0.12724344432353973, 0.27570730447769165, 0.015680644661188126, -0.15650852024555206, -0.36332589387893677, -0.049116525799036026, 0.13426634669303894, -0.03382446616888046, 0.04022660478949547, -0.2104640156030655, -0.2732779383659363, -0.15449216961860657, 0.08057821542024612, 0.30907049775123596, -0.07388488203287125, 0.08095744252204895, -0.3234630227088928, -0.051615796983242035, -0.18159136176109314, -0.029764216393232346, 0.2688758969306946, -0.10105718672275543, -0.0021307491697371006, 0.19329705834388733, 0.15506671369075775, 0.015007570385932922, -0.1505734771490097, -0.2379753142595291, -0.10551605373620987, 0.04119598865509033, 0.06049514189362526, 0.5367912650108337, -0.2544393539428711, -0.09200946986675262, 0.13566680252552032, 0.12121503055095673, 0.2668644189834595, -0.21580377221107483, -0.040323253720998764, 0.09919968992471695, 0.28379011154174805, -0.5178390145301819, -0.16271039843559265, -0.004127928055822849, -0.13591885566711426, 0.10013586282730103, 0.26262885332107544, 0.21198110282421112, 0.006167985964566469, -0.35740211606025696, 0.1743650883436203, 0.3999604880809784, 0.28041937947273254, -0.026844540610909462, 0.08774778246879578, -0.28600582480430603, -0.04407024383544922, 0.22271454334259033, 0.3076282739639282, 0.2137732058763504, 0.7375859022140503, 0.26157820224761963, 0.4250287115573883, -0.2168947160243988, -0.01049347035586834, 0.039681948721408844, -0.32766199111938477, 0.022578952834010124, 0.21161776781082153, -0.1146809384226799, 0.18452027440071106, -0.08381075412034988, 0.1554230898618698, -0.31755536794662476, 0.13482975959777832, -0.49636465311050415, 0.12137195467948914, 0.03594876453280449, 0.0017496236832812428, 0.15881355106830597, -0.16824805736541748, 0.20279760658740997, 0.051803238689899445, -0.07807384431362152, 0.10056200623512268, 0.26445522904396057, 0.1347682625055313, -0.19635683298110962, -0.19553621113300323, -0.22276397049427032, 0.14930316805839539, 0.010423203930258751, -0.13417036831378937, 0.1256936937570572, 0.10717280209064484, -0.11741692572832108, 0.21297083795070648, 0.23955944180488586, 0.45952489972114563, 0.15559300780296326, -0.1417904496192932, -0.3558119833469391, 0.04237522929906845, -0.16928181052207947, -0.25096559524536133, 0.2187959849834442, 0.31927627325057983, 0.07755497097969055, 0.12484636902809143, 0.2226816862821579, -0.1505165994167328, 0.07898459583520889, 0.1778375804424286, -0.03391941264271736, 0.07430533319711685, -0.3868422210216522, -0.06381844729185104, -0.2020207643508911, -0.2836495339870453, 0.017676202580332756, -0.3352563977241516, -0.2028525471687317, 0.2236137092113495, 0.08641829341650009, 0.19563870131969452, -0.0328608900308609, 0.1233760267496109, -0.33801326155662537, 0.7097560167312622, 0.01549214031547308, 0.41244226694107056, -0.17469532787799835, -0.09409728646278381, -0.5283468961715698, 0.5568981170654297, -0.1425919085741043, -0.11653818190097809, 0.20422819256782532, -0.06549587100744247, 0.27426087856292725, -0.09471584111452103, -0.1006249487400055, -0.2723659574985504, -0.07387009263038635, -0.08046386390924454, -0.35126426815986633, -0.11989787220954895, 0.3524158000946045, 0.18384850025177002, -0.11552883684635162, -0.270740807056427, 0.23909781873226166, -0.3342856168746948, 0.2704393267631531, -0.2623750567436218, 0.10025666654109955, -0.18906821310520172, 0.4158267080783844, 0.37685301899909973, -0.01773490197956562, 0.6198323369026184, -0.13249658048152924, -0.06870731711387634, -0.38476037979125977, -0.24018961191177368, 0.057214148342609406, 0.42558300495147705, 0.202819362282753, 0.16471050679683685, -0.007446705363690853, -0.056842636317014694, -0.10046841949224472, 0.3361852765083313, -0.30293866991996765, -0.05650396645069122, 0.094913549721241, -0.08796817809343338, -0.16944263875484467, 0.056969642639160156, 0.21466697752475739, -0.03663826361298561, -0.14204345643520355, -0.057161103934049606, -0.03937103971838951, -0.2801482379436493, 0.6055493950843811, -0.2736343443393707, -0.36942270398139954, -0.029989123344421387, 0.27927061915397644, 0.1905107945203781, 0.0752776712179184, -0.4199987053871155, 0.3273061215877533, 0.09152757376432419, 0.16774792969226837, -0.29582732915878296, 0.22047795355319977, -0.1803394854068756, 0.08253832906484604, -0.019938724115490913, 0.7990158200263977, -0.1299661248922348, -0.47409549355506897, -0.36300235986709595, 0.0491340197622776 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
I'm sorry, but I can't reproduce your problem: ```python In [5]: ds = load_dataset("big_patent", "d", split="validation") Downloading and preparing dataset big_patent/d (download: 6.01 GiB, generated: 169.61 MiB, post-processed: Unknown size, total: 6.17 GiB) to .../.cache/big_patent/d/1.0.0/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.45G/6.45G [27:36<00:00, 3.89MB/s] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [03:18<00:00, 66.08s/it] Dataset big_patent downloaded and prepared to .../.cache/big_patent/d/1.0.0/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c. Subsequent calls will reuse this data. In [6]: ds Out[6]: Dataset({ features: ['description', 'abstract'], num_rows: 565 })
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
72
Unable to load dataset 'big_patent'
[ -0.3359028398990631, 0.12686239182949066, -0.24664373695850372, 0.38867369294166565, 0.12660476565361023, -0.18658511340618134, 0.11524147540330887, 0.26421433687210083, 0.3153839707374573, 0.042927563190460205, -0.02750626765191555, -0.07575224339962006, -0.12460736185312271, 0.43926551938056946, 0.0915474146604538, 0.3191434442996979, -0.08264259994029999, 0.04579196125268936, -0.18266239762306213, -0.10742439329624176, -0.11130181699991226, 0.021594751626253128, -0.17180147767066956, 0.22751979529857635, -0.16828516125679016, -0.048941224813461304, 0.44542595744132996, 0.23536519706249237, -0.44146302342414856, -0.5765212178230286, -0.11477173864841461, 0.2410557121038437, 0.2316708266735077, 0.4933951199054718, -0.00010601827671052888, 0.015703614801168442, 0.3561532199382782, -0.07445144653320312, -0.06931787729263306, 0.20729629695415497, -0.10858170688152313, -0.11627588421106339, -0.11005362123250961, -0.01868441328406334, -0.0785456970334053, -0.35385453701019287, -0.09815120697021484, -0.01671636290848255, -0.0927739366889, 0.32722726464271545, 0.3578650653362274, -0.1588781327009201, 0.4847322106361389, -0.41444435715675354, 0.1826145350933075, -0.2159542590379715, 0.0720910057425499, 0.27654051780700684, 0.2629041373729706, -0.33007439970970154, -0.18560732901096344, 0.12129978090524673, -0.1383577585220337, 0.12498737871646881, 0.17086152732372284, -0.19738167524337769, 0.20078684389591217, 0.03464614227414131, 0.4301137626171112, 0.2775249183177948, 0.6089503765106201, 0.21473845839500427, -0.16937485337257385, 0.18708865344524384, 0.141991525888443, -0.40640297532081604, 0.19179506599903107, 0.15527501702308655, 0.08570370823144913, 0.06346392631530762, -0.09678616374731064, -0.3572530448436737, -0.37995803356170654, 0.1172272190451622, -0.317839115858078, 0.10788550227880478, -0.08005960285663605, 0.07990507781505585, 0.04940003529191017, -0.3625034689903259, 0.37081965804100037, 0.13345013558864594, 0.1383160948753357, -0.03063340112566948, -0.10225839912891388, 0.2640324532985687, 0.18095296621322632, 0.274601548910141, 0.3532711863517761, 0.04176533594727516, 0.11854959279298782, 0.12297596782445908, -0.04901542514562607, 0.014333179220557213, -0.010920950211584568, 0.0741056576371193, -0.39032840728759766, -0.004406722262501717, 0.3399662375450134, 0.09221956878900528, -0.27444663643836975, 0.13650743663311005, -0.5172374844551086, -0.1696626842021942, -0.27002426981925964, -0.22240442037582397, 0.07889831066131592, -0.47058069705963135, -0.1706341952085495, 0.3332863748073578, 0.034971754997968674, 0.037753041833639145, 0.1377374678850174, 0.5721497535705566, -0.1283564418554306, -0.15106111764907837, -0.11188476532697678, 0.10757037252187729, 0.028817344456911087, -0.14489343762397766, -0.3663182556629181, 0.14541682600975037, 0.025291569530963898, 0.003884942503646016, 0.2121383100748062, -0.013536007143557072, 0.3519160747528076, -0.34030595421791077, 0.21562761068344116, -0.12079384922981262, -0.033215317875146866, 0.02218063920736313, 0.052220381796360016, 0.37412962317466736, -0.02730613388121128, -0.1350913643836975, 0.09041166305541992, -0.1695164144039154, -0.03649837523698807, 0.15584872663021088, -0.10188861936330795, -0.38854846358299255, -0.08378612995147705, 0.21911077201366425, -0.2634468376636505, -0.003825563006103039, -0.09158671647310257, -0.07047092914581299, -0.0049078320153057575, -0.2486167550086975, -0.2650105953216553, -0.24024371802806854, 0.18929478526115417, -0.1572585254907608, 0.23275506496429443, 0.20345230400562286, -0.26965606212615967, 0.2627563774585724, -0.000655798299703747, 0.10210534930229187, -0.08783954381942749, 0.15350030362606049, -0.29599180817604065, 0.39938798546791077, -0.10944703221321106, 0.03488954156637192, 0.29581448435783386, -0.16495177149772644, -0.6891696453094482, -0.02812994085252285, -0.21971282362937927, -0.35821017622947693, 0.22748810052871704, -0.018909577280282974, -0.11779176443815231, 0.07539951801300049, 0.17635536193847656, 0.2467508167028427, 0.18918122351169586, -0.10252367705106735, -0.07496920228004456, -0.15695123374462128, 0.2643834054470062, 0.29653817415237427, 0.22078950703144073, 0.03748081251978874, 0.17005358636379242, 0.1984294354915619, 0.036441948264837265, 0.22668185830116272, -0.29559335112571716, 0.11456849426031113, 0.058087147772312164, -0.07558614760637283, -0.05427850782871246, 0.12265469878911972, 0.09100443124771118, 0.04368428513407707, 0.02017938159406185, -0.009963737800717354, 0.038251422345638275, 0.18897758424282074, -0.556046724319458, 0.1183299869298935, -0.07634980231523514, -0.026783687993884087, 0.24758198857307434, 0.27459874749183655, 0.01750681921839714, 0.1244240328669548, -0.0787772610783577, -0.042704008519649506, 0.14538215100765228, -0.18910080194473267, -0.3389776945114136, -0.10092297196388245, -0.056486595422029495, -0.05521191656589508, 0.2765161991119385, 0.11466095596551895, 0.23110221326351166, -0.19086645543575287, -0.09169084578752518, 0.14523287117481232, -0.21330702304840088, -0.02800188586115837, 0.18362046778202057, 0.23348136246204376, -0.07791782915592194, -0.3601873815059662, 0.13643214106559753, -0.12034425139427185, 0.2188868373632431, 0.0795876756310463, -0.01985798217356205, 0.20130161941051483, -0.06794129312038422, -0.09745949506759644, 0.11979972571134567, -0.15524612367153168, 0.4030400216579437, -0.12708333134651184, 0.08274214714765549, 0.000960966688580811, 0.28475403785705566, 0.0985451489686966, 0.1785358041524887, 0.03125491738319397, -0.19974485039710999, 0.007203617133200169, 0.34074148535728455, -0.0818784087896347, 0.09187038987874985, -0.26057785749435425, -0.2945704758167267, -0.021036123856902122, 0.1287371963262558, -0.08214641362428665, 0.46765372157096863, 0.3137879967689514, -0.07208572328090668, -0.1669800728559494, 0.24092155694961548, -0.21765127778053284, 0.18356546759605408, -0.12501370906829834, 0.11235544830560684, 0.17193186283111572, 0.1556912511587143, -0.26221781969070435, -0.3978787064552307, -0.15272313356399536, 0.31041979789733887, 0.2943226993083954, -0.06011750176548958, -0.04979199171066284, -0.10434845089912415, 0.23459506034851074, -0.04174210503697395, 0.027666904032230377, -0.05489369109272957, 0.05953490361571312, 0.026143526658415794, 0.4564753472805023, 0.16207855939865112, 0.19617462158203125, -0.4146488606929779, 0.23948684334754944, 0.3079254925251007, 0.059459105134010315, 0.1298917531967163, -0.23607954382896423, -0.1355726718902588, 0.2053522914648056, 0.27521440386772156, 0.09939194470643997, 0.20618313550949097, 0.24285967648029327, -0.06007824465632439, -0.26438087224960327, -0.25834256410598755, 0.008685019798576832, -0.008322259411215782, -0.19277158379554749, 0.07596876472234726, 0.030841099098324776, 0.32522347569465637, 0.10607965290546417, 0.14620858430862427, -0.24213984608650208, 0.021213389933109283, 0.06196705624461174, -0.07457007467746735, -0.29806986451148987, -0.004797718953341246, -0.4482051134109497, -0.18117308616638184, -0.4368607699871063, 0.2528476119041443, 0.1299804002046585, -0.04763513058423996, -0.14629106223583221, 0.1529332995414734, 0.16762079298496246, 0.11733378469944, -0.01983719691634178, -0.4306400716304779, -0.07255858927965164, 0.3476077914237976, -0.4015321731567383, -0.5745417475700378, -0.07949969917535782, 0.07793150097131729, 0.0850101038813591, 0.028651002794504166, -0.5899274945259094, 0.35397595167160034, -0.08930937945842743, -0.15676191449165344, -0.1282309740781784, -0.08434697240591049, -0.0558578260242939, -0.030838489532470703, -0.20399163663387299, -0.18319986760616302, -0.0033808229491114616, 0.17787279188632965, -0.1090344712138176, 0.203388050198555, 0.026921063661575317, 0.3859729766845703, -0.2737625539302826, 0.31935784220695496, -0.19680054485797882, -0.1264542192220688, 0.0984797477722168, -0.11627151072025299, 0.3289116621017456, 0.01991059072315693, -0.19543114304542542, 0.18066108226776123, 0.13065072894096375, 0.057907916605472565, 0.2574114501476288, -0.14653296768665314, 0.08573287725448608, 0.02342609129846096, 0.2345496118068695, -0.03785041719675064, -0.007737572304904461, 0.04063858091831207, -0.04076121374964714, -0.04233467951416969, 0.019594408571720123, -0.15296722948551178, -0.3307301700115204, -0.11731072515249252, -0.004368402995169163, -0.3702685236930847, 0.19150632619857788, 0.04304397851228714, -0.39674198627471924, -0.0987444818019867, -0.40487203001976013, 0.3331465423107147, -0.2823764979839325, 0.18247324228286743, -0.1158994808793068, -0.09262295067310333, 0.05459372326731682, 0.005004430655390024, 0.3926253616809845, 0.16272403299808502, 0.21051423251628876, 0.02707052417099476, -0.14801546931266785, -0.1727832853794098, -0.10091090202331543, -0.11441389471292496, 0.3635956346988678, -0.06935365498065948, 0.08976142108440399, -0.2668599784374237, 0.08264072984457016, 0.25175413489341736, 0.101778045296669, -0.10513874143362045, -0.050843581557273865, -0.2684357464313507, -0.4011590778827667, -0.23486566543579102, -0.0706939697265625, 0.1276717334985733, 0.3101245164871216, -0.22252129018306732, 0.03254257142543793, -0.22342067956924438, -0.14426355063915253, 0.18192918598651886, 0.22009047865867615, 0.18936488032341003, 0.021095143631100655, -0.09416472911834717, 0.20326226949691772, 0.03812997415661812, 0.4226415455341339, 0.6595003008842468, 0.23310747742652893, -0.04090779274702072, 0.3091760277748108, -0.05414058640599251, 0.15529675781726837, 0.31397947669029236, -0.19343525171279907, 0.018360918387770653, 0.0534001961350441, 0.19551189243793488, -0.06309261918067932, 0.6161538362503052, 0.07003229111433029, -0.15986211597919464, -0.31414106488227844, -0.19088958203792572, 0.5224155783653259, -0.1730613112449646, -0.08403953909873962, 0.14730952680110931, 0.01686164364218712, -0.16638274490833282, -0.09861889481544495, -0.4117412865161896, 0.6687524914741516, -0.20328328013420105, 0.06204402446746826, 0.06626295298337936, 0.3870287537574768, 0.24766667187213898, -0.06672540307044983, 0.02193259261548519, -0.3826223313808441, -0.4099578559398651, -0.06871434301137924, -0.2425113022327423, -0.18453946709632874, 0.12984810769557953, -0.03598020225763321, 0.21084058284759521, 0.2276781052350998, 0.1756293773651123, 0.09610765427350998, 0.5285754799842834, 0.18122674524784088, 0.0733349397778511, -0.19009250402450562, 0.17996597290039062, -0.12201528996229172, 0.25813591480255127, -0.09576521813869476, -0.1427297294139862, -0.12270443886518478, -0.3268105089664459, -0.2493518739938736, 0.06598073244094849, -0.2413952797651291, 0.6252077221870422, -0.10935287922620773, -0.3353390693664551, -0.01956109330058098, -0.051509514451026917, -0.09406950324773788, 0.22825638949871063, -0.2631535232067108, 0.16265061497688293, 0.22450511157512665, -0.41832900047302246, -0.19028639793395996, 0.22967186570167542, 0.1480245739221573, -0.1788026988506317, -0.1048193871974945, 0.2917749881744385, 0.01769549399614334, -0.18815110623836517, -0.21297544240951538, 0.1803676038980484, 0.43421050906181335, -0.220099538564682, -0.3376471996307373, -0.1154816672205925, 0.0002102611178997904, -0.07584156095981598, 0.22710953652858734, 0.27071428298950195, -0.18916188180446625, -0.13265842199325562, 0.485320508480072, -0.16133888065814972, -0.11579691618680954, 0.2922755479812622, -0.006521433591842651, -0.0019559822976589203, 0.568136990070343, -0.054944925010204315, 0.12147774547338486, -0.21250879764556885, -0.10280044376850128, 0.39327573776245117, -0.2973114252090454, 0.0447506420314312, 0.03445884585380554, -0.38639503717422485, 0.23234876990318298, 0.11301020532846451, 0.09292268007993698, -0.20461343228816986, -0.00017837058112490922, -0.24569541215896606, -0.2520091235637665, 0.25126340985298157, -0.2728801965713501, 0.1807880848646164, -0.02785729244351387, 0.0376695953309536, -0.48403072357177734, 0.06134995073080063, -0.4035327434539795, 0.1795940101146698, -0.14392763376235962, -0.11753206700086594, 0.08456888794898987, -0.008812976069748402, -0.1863047182559967, 0.12724344432353973, 0.27570730447769165, 0.015680644661188126, -0.15650852024555206, -0.36332589387893677, -0.049116525799036026, 0.13426634669303894, -0.03382446616888046, 0.04022660478949547, -0.2104640156030655, -0.2732779383659363, -0.15449216961860657, 0.08057821542024612, 0.30907049775123596, -0.07388488203287125, 0.08095744252204895, -0.3234630227088928, -0.051615796983242035, -0.18159136176109314, -0.029764216393232346, 0.2688758969306946, -0.10105718672275543, -0.0021307491697371006, 0.19329705834388733, 0.15506671369075775, 0.015007570385932922, -0.1505734771490097, -0.2379753142595291, -0.10551605373620987, 0.04119598865509033, 0.06049514189362526, 0.5367912650108337, -0.2544393539428711, -0.09200946986675262, 0.13566680252552032, 0.12121503055095673, 0.2668644189834595, -0.21580377221107483, -0.040323253720998764, 0.09919968992471695, 0.28379011154174805, -0.5178390145301819, -0.16271039843559265, -0.004127928055822849, -0.13591885566711426, 0.10013586282730103, 0.26262885332107544, 0.21198110282421112, 0.006167985964566469, -0.35740211606025696, 0.1743650883436203, 0.3999604880809784, 0.28041937947273254, -0.026844540610909462, 0.08774778246879578, -0.28600582480430603, -0.04407024383544922, 0.22271454334259033, 0.3076282739639282, 0.2137732058763504, 0.7375859022140503, 0.26157820224761963, 0.4250287115573883, -0.2168947160243988, -0.01049347035586834, 0.039681948721408844, -0.32766199111938477, 0.022578952834010124, 0.21161776781082153, -0.1146809384226799, 0.18452027440071106, -0.08381075412034988, 0.1554230898618698, -0.31755536794662476, 0.13482975959777832, -0.49636465311050415, 0.12137195467948914, 0.03594876453280449, 0.0017496236832812428, 0.15881355106830597, -0.16824805736541748, 0.20279760658740997, 0.051803238689899445, -0.07807384431362152, 0.10056200623512268, 0.26445522904396057, 0.1347682625055313, -0.19635683298110962, -0.19553621113300323, -0.22276397049427032, 0.14930316805839539, 0.010423203930258751, -0.13417036831378937, 0.1256936937570572, 0.10717280209064484, -0.11741692572832108, 0.21297083795070648, 0.23955944180488586, 0.45952489972114563, 0.15559300780296326, -0.1417904496192932, -0.3558119833469391, 0.04237522929906845, -0.16928181052207947, -0.25096559524536133, 0.2187959849834442, 0.31927627325057983, 0.07755497097969055, 0.12484636902809143, 0.2226816862821579, -0.1505165994167328, 0.07898459583520889, 0.1778375804424286, -0.03391941264271736, 0.07430533319711685, -0.3868422210216522, -0.06381844729185104, -0.2020207643508911, -0.2836495339870453, 0.017676202580332756, -0.3352563977241516, -0.2028525471687317, 0.2236137092113495, 0.08641829341650009, 0.19563870131969452, -0.0328608900308609, 0.1233760267496109, -0.33801326155662537, 0.7097560167312622, 0.01549214031547308, 0.41244226694107056, -0.17469532787799835, -0.09409728646278381, -0.5283468961715698, 0.5568981170654297, -0.1425919085741043, -0.11653818190097809, 0.20422819256782532, -0.06549587100744247, 0.27426087856292725, -0.09471584111452103, -0.1006249487400055, -0.2723659574985504, -0.07387009263038635, -0.08046386390924454, -0.35126426815986633, -0.11989787220954895, 0.3524158000946045, 0.18384850025177002, -0.11552883684635162, -0.270740807056427, 0.23909781873226166, -0.3342856168746948, 0.2704393267631531, -0.2623750567436218, 0.10025666654109955, -0.18906821310520172, 0.4158267080783844, 0.37685301899909973, -0.01773490197956562, 0.6198323369026184, -0.13249658048152924, -0.06870731711387634, -0.38476037979125977, -0.24018961191177368, 0.057214148342609406, 0.42558300495147705, 0.202819362282753, 0.16471050679683685, -0.007446705363690853, -0.056842636317014694, -0.10046841949224472, 0.3361852765083313, -0.30293866991996765, -0.05650396645069122, 0.094913549721241, -0.08796817809343338, -0.16944263875484467, 0.056969642639160156, 0.21466697752475739, -0.03663826361298561, -0.14204345643520355, -0.057161103934049606, -0.03937103971838951, -0.2801482379436493, 0.6055493950843811, -0.2736343443393707, -0.36942270398139954, -0.029989123344421387, 0.27927061915397644, 0.1905107945203781, 0.0752776712179184, -0.4199987053871155, 0.3273061215877533, 0.09152757376432419, 0.16774792969226837, -0.29582732915878296, 0.22047795355319977, -0.1803394854068756, 0.08253832906484604, -0.019938724115490913, 0.7990158200263977, -0.1299661248922348, -0.47409549355506897, -0.36300235986709595, 0.0491340197622776 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
Maybe you had a connection issue while downloading the file and this was corrupted? Our cache system uses the file you downloaded first time. If so, you could try forcing redownload of the file with: ```python ds = load_dataset("big_patent", "d", split="validation", download_mode="force_redownload")
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
42
Unable to load dataset 'big_patent'
[ -0.3359028398990631, 0.12686239182949066, -0.24664373695850372, 0.38867369294166565, 0.12660476565361023, -0.18658511340618134, 0.11524147540330887, 0.26421433687210083, 0.3153839707374573, 0.042927563190460205, -0.02750626765191555, -0.07575224339962006, -0.12460736185312271, 0.43926551938056946, 0.0915474146604538, 0.3191434442996979, -0.08264259994029999, 0.04579196125268936, -0.18266239762306213, -0.10742439329624176, -0.11130181699991226, 0.021594751626253128, -0.17180147767066956, 0.22751979529857635, -0.16828516125679016, -0.048941224813461304, 0.44542595744132996, 0.23536519706249237, -0.44146302342414856, -0.5765212178230286, -0.11477173864841461, 0.2410557121038437, 0.2316708266735077, 0.4933951199054718, -0.00010601827671052888, 0.015703614801168442, 0.3561532199382782, -0.07445144653320312, -0.06931787729263306, 0.20729629695415497, -0.10858170688152313, -0.11627588421106339, -0.11005362123250961, -0.01868441328406334, -0.0785456970334053, -0.35385453701019287, -0.09815120697021484, -0.01671636290848255, -0.0927739366889, 0.32722726464271545, 0.3578650653362274, -0.1588781327009201, 0.4847322106361389, -0.41444435715675354, 0.1826145350933075, -0.2159542590379715, 0.0720910057425499, 0.27654051780700684, 0.2629041373729706, -0.33007439970970154, -0.18560732901096344, 0.12129978090524673, -0.1383577585220337, 0.12498737871646881, 0.17086152732372284, -0.19738167524337769, 0.20078684389591217, 0.03464614227414131, 0.4301137626171112, 0.2775249183177948, 0.6089503765106201, 0.21473845839500427, -0.16937485337257385, 0.18708865344524384, 0.141991525888443, -0.40640297532081604, 0.19179506599903107, 0.15527501702308655, 0.08570370823144913, 0.06346392631530762, -0.09678616374731064, -0.3572530448436737, -0.37995803356170654, 0.1172272190451622, -0.317839115858078, 0.10788550227880478, -0.08005960285663605, 0.07990507781505585, 0.04940003529191017, -0.3625034689903259, 0.37081965804100037, 0.13345013558864594, 0.1383160948753357, -0.03063340112566948, -0.10225839912891388, 0.2640324532985687, 0.18095296621322632, 0.274601548910141, 0.3532711863517761, 0.04176533594727516, 0.11854959279298782, 0.12297596782445908, -0.04901542514562607, 0.014333179220557213, -0.010920950211584568, 0.0741056576371193, -0.39032840728759766, -0.004406722262501717, 0.3399662375450134, 0.09221956878900528, -0.27444663643836975, 0.13650743663311005, -0.5172374844551086, -0.1696626842021942, -0.27002426981925964, -0.22240442037582397, 0.07889831066131592, -0.47058069705963135, -0.1706341952085495, 0.3332863748073578, 0.034971754997968674, 0.037753041833639145, 0.1377374678850174, 0.5721497535705566, -0.1283564418554306, -0.15106111764907837, -0.11188476532697678, 0.10757037252187729, 0.028817344456911087, -0.14489343762397766, -0.3663182556629181, 0.14541682600975037, 0.025291569530963898, 0.003884942503646016, 0.2121383100748062, -0.013536007143557072, 0.3519160747528076, -0.34030595421791077, 0.21562761068344116, -0.12079384922981262, -0.033215317875146866, 0.02218063920736313, 0.052220381796360016, 0.37412962317466736, -0.02730613388121128, -0.1350913643836975, 0.09041166305541992, -0.1695164144039154, -0.03649837523698807, 0.15584872663021088, -0.10188861936330795, -0.38854846358299255, -0.08378612995147705, 0.21911077201366425, -0.2634468376636505, -0.003825563006103039, -0.09158671647310257, -0.07047092914581299, -0.0049078320153057575, -0.2486167550086975, -0.2650105953216553, -0.24024371802806854, 0.18929478526115417, -0.1572585254907608, 0.23275506496429443, 0.20345230400562286, -0.26965606212615967, 0.2627563774585724, -0.000655798299703747, 0.10210534930229187, -0.08783954381942749, 0.15350030362606049, -0.29599180817604065, 0.39938798546791077, -0.10944703221321106, 0.03488954156637192, 0.29581448435783386, -0.16495177149772644, -0.6891696453094482, -0.02812994085252285, -0.21971282362937927, -0.35821017622947693, 0.22748810052871704, -0.018909577280282974, -0.11779176443815231, 0.07539951801300049, 0.17635536193847656, 0.2467508167028427, 0.18918122351169586, -0.10252367705106735, -0.07496920228004456, -0.15695123374462128, 0.2643834054470062, 0.29653817415237427, 0.22078950703144073, 0.03748081251978874, 0.17005358636379242, 0.1984294354915619, 0.036441948264837265, 0.22668185830116272, -0.29559335112571716, 0.11456849426031113, 0.058087147772312164, -0.07558614760637283, -0.05427850782871246, 0.12265469878911972, 0.09100443124771118, 0.04368428513407707, 0.02017938159406185, -0.009963737800717354, 0.038251422345638275, 0.18897758424282074, -0.556046724319458, 0.1183299869298935, -0.07634980231523514, -0.026783687993884087, 0.24758198857307434, 0.27459874749183655, 0.01750681921839714, 0.1244240328669548, -0.0787772610783577, -0.042704008519649506, 0.14538215100765228, -0.18910080194473267, -0.3389776945114136, -0.10092297196388245, -0.056486595422029495, -0.05521191656589508, 0.2765161991119385, 0.11466095596551895, 0.23110221326351166, -0.19086645543575287, -0.09169084578752518, 0.14523287117481232, -0.21330702304840088, -0.02800188586115837, 0.18362046778202057, 0.23348136246204376, -0.07791782915592194, -0.3601873815059662, 0.13643214106559753, -0.12034425139427185, 0.2188868373632431, 0.0795876756310463, -0.01985798217356205, 0.20130161941051483, -0.06794129312038422, -0.09745949506759644, 0.11979972571134567, -0.15524612367153168, 0.4030400216579437, -0.12708333134651184, 0.08274214714765549, 0.000960966688580811, 0.28475403785705566, 0.0985451489686966, 0.1785358041524887, 0.03125491738319397, -0.19974485039710999, 0.007203617133200169, 0.34074148535728455, -0.0818784087896347, 0.09187038987874985, -0.26057785749435425, -0.2945704758167267, -0.021036123856902122, 0.1287371963262558, -0.08214641362428665, 0.46765372157096863, 0.3137879967689514, -0.07208572328090668, -0.1669800728559494, 0.24092155694961548, -0.21765127778053284, 0.18356546759605408, -0.12501370906829834, 0.11235544830560684, 0.17193186283111572, 0.1556912511587143, -0.26221781969070435, -0.3978787064552307, -0.15272313356399536, 0.31041979789733887, 0.2943226993083954, -0.06011750176548958, -0.04979199171066284, -0.10434845089912415, 0.23459506034851074, -0.04174210503697395, 0.027666904032230377, -0.05489369109272957, 0.05953490361571312, 0.026143526658415794, 0.4564753472805023, 0.16207855939865112, 0.19617462158203125, -0.4146488606929779, 0.23948684334754944, 0.3079254925251007, 0.059459105134010315, 0.1298917531967163, -0.23607954382896423, -0.1355726718902588, 0.2053522914648056, 0.27521440386772156, 0.09939194470643997, 0.20618313550949097, 0.24285967648029327, -0.06007824465632439, -0.26438087224960327, -0.25834256410598755, 0.008685019798576832, -0.008322259411215782, -0.19277158379554749, 0.07596876472234726, 0.030841099098324776, 0.32522347569465637, 0.10607965290546417, 0.14620858430862427, -0.24213984608650208, 0.021213389933109283, 0.06196705624461174, -0.07457007467746735, -0.29806986451148987, -0.004797718953341246, -0.4482051134109497, -0.18117308616638184, -0.4368607699871063, 0.2528476119041443, 0.1299804002046585, -0.04763513058423996, -0.14629106223583221, 0.1529332995414734, 0.16762079298496246, 0.11733378469944, -0.01983719691634178, -0.4306400716304779, -0.07255858927965164, 0.3476077914237976, -0.4015321731567383, -0.5745417475700378, -0.07949969917535782, 0.07793150097131729, 0.0850101038813591, 0.028651002794504166, -0.5899274945259094, 0.35397595167160034, -0.08930937945842743, -0.15676191449165344, -0.1282309740781784, -0.08434697240591049, -0.0558578260242939, -0.030838489532470703, -0.20399163663387299, -0.18319986760616302, -0.0033808229491114616, 0.17787279188632965, -0.1090344712138176, 0.203388050198555, 0.026921063661575317, 0.3859729766845703, -0.2737625539302826, 0.31935784220695496, -0.19680054485797882, -0.1264542192220688, 0.0984797477722168, -0.11627151072025299, 0.3289116621017456, 0.01991059072315693, -0.19543114304542542, 0.18066108226776123, 0.13065072894096375, 0.057907916605472565, 0.2574114501476288, -0.14653296768665314, 0.08573287725448608, 0.02342609129846096, 0.2345496118068695, -0.03785041719675064, -0.007737572304904461, 0.04063858091831207, -0.04076121374964714, -0.04233467951416969, 0.019594408571720123, -0.15296722948551178, -0.3307301700115204, -0.11731072515249252, -0.004368402995169163, -0.3702685236930847, 0.19150632619857788, 0.04304397851228714, -0.39674198627471924, -0.0987444818019867, -0.40487203001976013, 0.3331465423107147, -0.2823764979839325, 0.18247324228286743, -0.1158994808793068, -0.09262295067310333, 0.05459372326731682, 0.005004430655390024, 0.3926253616809845, 0.16272403299808502, 0.21051423251628876, 0.02707052417099476, -0.14801546931266785, -0.1727832853794098, -0.10091090202331543, -0.11441389471292496, 0.3635956346988678, -0.06935365498065948, 0.08976142108440399, -0.2668599784374237, 0.08264072984457016, 0.25175413489341736, 0.101778045296669, -0.10513874143362045, -0.050843581557273865, -0.2684357464313507, -0.4011590778827667, -0.23486566543579102, -0.0706939697265625, 0.1276717334985733, 0.3101245164871216, -0.22252129018306732, 0.03254257142543793, -0.22342067956924438, -0.14426355063915253, 0.18192918598651886, 0.22009047865867615, 0.18936488032341003, 0.021095143631100655, -0.09416472911834717, 0.20326226949691772, 0.03812997415661812, 0.4226415455341339, 0.6595003008842468, 0.23310747742652893, -0.04090779274702072, 0.3091760277748108, -0.05414058640599251, 0.15529675781726837, 0.31397947669029236, -0.19343525171279907, 0.018360918387770653, 0.0534001961350441, 0.19551189243793488, -0.06309261918067932, 0.6161538362503052, 0.07003229111433029, -0.15986211597919464, -0.31414106488227844, -0.19088958203792572, 0.5224155783653259, -0.1730613112449646, -0.08403953909873962, 0.14730952680110931, 0.01686164364218712, -0.16638274490833282, -0.09861889481544495, -0.4117412865161896, 0.6687524914741516, -0.20328328013420105, 0.06204402446746826, 0.06626295298337936, 0.3870287537574768, 0.24766667187213898, -0.06672540307044983, 0.02193259261548519, -0.3826223313808441, -0.4099578559398651, -0.06871434301137924, -0.2425113022327423, -0.18453946709632874, 0.12984810769557953, -0.03598020225763321, 0.21084058284759521, 0.2276781052350998, 0.1756293773651123, 0.09610765427350998, 0.5285754799842834, 0.18122674524784088, 0.0733349397778511, -0.19009250402450562, 0.17996597290039062, -0.12201528996229172, 0.25813591480255127, -0.09576521813869476, -0.1427297294139862, -0.12270443886518478, -0.3268105089664459, -0.2493518739938736, 0.06598073244094849, -0.2413952797651291, 0.6252077221870422, -0.10935287922620773, -0.3353390693664551, -0.01956109330058098, -0.051509514451026917, -0.09406950324773788, 0.22825638949871063, -0.2631535232067108, 0.16265061497688293, 0.22450511157512665, -0.41832900047302246, -0.19028639793395996, 0.22967186570167542, 0.1480245739221573, -0.1788026988506317, -0.1048193871974945, 0.2917749881744385, 0.01769549399614334, -0.18815110623836517, -0.21297544240951538, 0.1803676038980484, 0.43421050906181335, -0.220099538564682, -0.3376471996307373, -0.1154816672205925, 0.0002102611178997904, -0.07584156095981598, 0.22710953652858734, 0.27071428298950195, -0.18916188180446625, -0.13265842199325562, 0.485320508480072, -0.16133888065814972, -0.11579691618680954, 0.2922755479812622, -0.006521433591842651, -0.0019559822976589203, 0.568136990070343, -0.054944925010204315, 0.12147774547338486, -0.21250879764556885, -0.10280044376850128, 0.39327573776245117, -0.2973114252090454, 0.0447506420314312, 0.03445884585380554, -0.38639503717422485, 0.23234876990318298, 0.11301020532846451, 0.09292268007993698, -0.20461343228816986, -0.00017837058112490922, -0.24569541215896606, -0.2520091235637665, 0.25126340985298157, -0.2728801965713501, 0.1807880848646164, -0.02785729244351387, 0.0376695953309536, -0.48403072357177734, 0.06134995073080063, -0.4035327434539795, 0.1795940101146698, -0.14392763376235962, -0.11753206700086594, 0.08456888794898987, -0.008812976069748402, -0.1863047182559967, 0.12724344432353973, 0.27570730447769165, 0.015680644661188126, -0.15650852024555206, -0.36332589387893677, -0.049116525799036026, 0.13426634669303894, -0.03382446616888046, 0.04022660478949547, -0.2104640156030655, -0.2732779383659363, -0.15449216961860657, 0.08057821542024612, 0.30907049775123596, -0.07388488203287125, 0.08095744252204895, -0.3234630227088928, -0.051615796983242035, -0.18159136176109314, -0.029764216393232346, 0.2688758969306946, -0.10105718672275543, -0.0021307491697371006, 0.19329705834388733, 0.15506671369075775, 0.015007570385932922, -0.1505734771490097, -0.2379753142595291, -0.10551605373620987, 0.04119598865509033, 0.06049514189362526, 0.5367912650108337, -0.2544393539428711, -0.09200946986675262, 0.13566680252552032, 0.12121503055095673, 0.2668644189834595, -0.21580377221107483, -0.040323253720998764, 0.09919968992471695, 0.28379011154174805, -0.5178390145301819, -0.16271039843559265, -0.004127928055822849, -0.13591885566711426, 0.10013586282730103, 0.26262885332107544, 0.21198110282421112, 0.006167985964566469, -0.35740211606025696, 0.1743650883436203, 0.3999604880809784, 0.28041937947273254, -0.026844540610909462, 0.08774778246879578, -0.28600582480430603, -0.04407024383544922, 0.22271454334259033, 0.3076282739639282, 0.2137732058763504, 0.7375859022140503, 0.26157820224761963, 0.4250287115573883, -0.2168947160243988, -0.01049347035586834, 0.039681948721408844, -0.32766199111938477, 0.022578952834010124, 0.21161776781082153, -0.1146809384226799, 0.18452027440071106, -0.08381075412034988, 0.1554230898618698, -0.31755536794662476, 0.13482975959777832, -0.49636465311050415, 0.12137195467948914, 0.03594876453280449, 0.0017496236832812428, 0.15881355106830597, -0.16824805736541748, 0.20279760658740997, 0.051803238689899445, -0.07807384431362152, 0.10056200623512268, 0.26445522904396057, 0.1347682625055313, -0.19635683298110962, -0.19553621113300323, -0.22276397049427032, 0.14930316805839539, 0.010423203930258751, -0.13417036831378937, 0.1256936937570572, 0.10717280209064484, -0.11741692572832108, 0.21297083795070648, 0.23955944180488586, 0.45952489972114563, 0.15559300780296326, -0.1417904496192932, -0.3558119833469391, 0.04237522929906845, -0.16928181052207947, -0.25096559524536133, 0.2187959849834442, 0.31927627325057983, 0.07755497097969055, 0.12484636902809143, 0.2226816862821579, -0.1505165994167328, 0.07898459583520889, 0.1778375804424286, -0.03391941264271736, 0.07430533319711685, -0.3868422210216522, -0.06381844729185104, -0.2020207643508911, -0.2836495339870453, 0.017676202580332756, -0.3352563977241516, -0.2028525471687317, 0.2236137092113495, 0.08641829341650009, 0.19563870131969452, -0.0328608900308609, 0.1233760267496109, -0.33801326155662537, 0.7097560167312622, 0.01549214031547308, 0.41244226694107056, -0.17469532787799835, -0.09409728646278381, -0.5283468961715698, 0.5568981170654297, -0.1425919085741043, -0.11653818190097809, 0.20422819256782532, -0.06549587100744247, 0.27426087856292725, -0.09471584111452103, -0.1006249487400055, -0.2723659574985504, -0.07387009263038635, -0.08046386390924454, -0.35126426815986633, -0.11989787220954895, 0.3524158000946045, 0.18384850025177002, -0.11552883684635162, -0.270740807056427, 0.23909781873226166, -0.3342856168746948, 0.2704393267631531, -0.2623750567436218, 0.10025666654109955, -0.18906821310520172, 0.4158267080783844, 0.37685301899909973, -0.01773490197956562, 0.6198323369026184, -0.13249658048152924, -0.06870731711387634, -0.38476037979125977, -0.24018961191177368, 0.057214148342609406, 0.42558300495147705, 0.202819362282753, 0.16471050679683685, -0.007446705363690853, -0.056842636317014694, -0.10046841949224472, 0.3361852765083313, -0.30293866991996765, -0.05650396645069122, 0.094913549721241, -0.08796817809343338, -0.16944263875484467, 0.056969642639160156, 0.21466697752475739, -0.03663826361298561, -0.14204345643520355, -0.057161103934049606, -0.03937103971838951, -0.2801482379436493, 0.6055493950843811, -0.2736343443393707, -0.36942270398139954, -0.029989123344421387, 0.27927061915397644, 0.1905107945203781, 0.0752776712179184, -0.4199987053871155, 0.3273061215877533, 0.09152757376432419, 0.16774792969226837, -0.29582732915878296, 0.22047795355319977, -0.1803394854068756, 0.08253832906484604, -0.019938724115490913, 0.7990158200263977, -0.1299661248922348, -0.47409549355506897, -0.36300235986709595, 0.0491340197622776 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
I am able to download the dataset with ``` download_mode="force_redownload"```. As you mentioned it was an issue with the cached version which was failed earlier due to a network issue. I am closing the issue now, once again thank you.
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
40
Unable to load dataset 'big_patent'
[ -0.3359028398990631, 0.12686239182949066, -0.24664373695850372, 0.38867369294166565, 0.12660476565361023, -0.18658511340618134, 0.11524147540330887, 0.26421433687210083, 0.3153839707374573, 0.042927563190460205, -0.02750626765191555, -0.07575224339962006, -0.12460736185312271, 0.43926551938056946, 0.0915474146604538, 0.3191434442996979, -0.08264259994029999, 0.04579196125268936, -0.18266239762306213, -0.10742439329624176, -0.11130181699991226, 0.021594751626253128, -0.17180147767066956, 0.22751979529857635, -0.16828516125679016, -0.048941224813461304, 0.44542595744132996, 0.23536519706249237, -0.44146302342414856, -0.5765212178230286, -0.11477173864841461, 0.2410557121038437, 0.2316708266735077, 0.4933951199054718, -0.00010601827671052888, 0.015703614801168442, 0.3561532199382782, -0.07445144653320312, -0.06931787729263306, 0.20729629695415497, -0.10858170688152313, -0.11627588421106339, -0.11005362123250961, -0.01868441328406334, -0.0785456970334053, -0.35385453701019287, -0.09815120697021484, -0.01671636290848255, -0.0927739366889, 0.32722726464271545, 0.3578650653362274, -0.1588781327009201, 0.4847322106361389, -0.41444435715675354, 0.1826145350933075, -0.2159542590379715, 0.0720910057425499, 0.27654051780700684, 0.2629041373729706, -0.33007439970970154, -0.18560732901096344, 0.12129978090524673, -0.1383577585220337, 0.12498737871646881, 0.17086152732372284, -0.19738167524337769, 0.20078684389591217, 0.03464614227414131, 0.4301137626171112, 0.2775249183177948, 0.6089503765106201, 0.21473845839500427, -0.16937485337257385, 0.18708865344524384, 0.141991525888443, -0.40640297532081604, 0.19179506599903107, 0.15527501702308655, 0.08570370823144913, 0.06346392631530762, -0.09678616374731064, -0.3572530448436737, -0.37995803356170654, 0.1172272190451622, -0.317839115858078, 0.10788550227880478, -0.08005960285663605, 0.07990507781505585, 0.04940003529191017, -0.3625034689903259, 0.37081965804100037, 0.13345013558864594, 0.1383160948753357, -0.03063340112566948, -0.10225839912891388, 0.2640324532985687, 0.18095296621322632, 0.274601548910141, 0.3532711863517761, 0.04176533594727516, 0.11854959279298782, 0.12297596782445908, -0.04901542514562607, 0.014333179220557213, -0.010920950211584568, 0.0741056576371193, -0.39032840728759766, -0.004406722262501717, 0.3399662375450134, 0.09221956878900528, -0.27444663643836975, 0.13650743663311005, -0.5172374844551086, -0.1696626842021942, -0.27002426981925964, -0.22240442037582397, 0.07889831066131592, -0.47058069705963135, -0.1706341952085495, 0.3332863748073578, 0.034971754997968674, 0.037753041833639145, 0.1377374678850174, 0.5721497535705566, -0.1283564418554306, -0.15106111764907837, -0.11188476532697678, 0.10757037252187729, 0.028817344456911087, -0.14489343762397766, -0.3663182556629181, 0.14541682600975037, 0.025291569530963898, 0.003884942503646016, 0.2121383100748062, -0.013536007143557072, 0.3519160747528076, -0.34030595421791077, 0.21562761068344116, -0.12079384922981262, -0.033215317875146866, 0.02218063920736313, 0.052220381796360016, 0.37412962317466736, -0.02730613388121128, -0.1350913643836975, 0.09041166305541992, -0.1695164144039154, -0.03649837523698807, 0.15584872663021088, -0.10188861936330795, -0.38854846358299255, -0.08378612995147705, 0.21911077201366425, -0.2634468376636505, -0.003825563006103039, -0.09158671647310257, -0.07047092914581299, -0.0049078320153057575, -0.2486167550086975, -0.2650105953216553, -0.24024371802806854, 0.18929478526115417, -0.1572585254907608, 0.23275506496429443, 0.20345230400562286, -0.26965606212615967, 0.2627563774585724, -0.000655798299703747, 0.10210534930229187, -0.08783954381942749, 0.15350030362606049, -0.29599180817604065, 0.39938798546791077, -0.10944703221321106, 0.03488954156637192, 0.29581448435783386, -0.16495177149772644, -0.6891696453094482, -0.02812994085252285, -0.21971282362937927, -0.35821017622947693, 0.22748810052871704, -0.018909577280282974, -0.11779176443815231, 0.07539951801300049, 0.17635536193847656, 0.2467508167028427, 0.18918122351169586, -0.10252367705106735, -0.07496920228004456, -0.15695123374462128, 0.2643834054470062, 0.29653817415237427, 0.22078950703144073, 0.03748081251978874, 0.17005358636379242, 0.1984294354915619, 0.036441948264837265, 0.22668185830116272, -0.29559335112571716, 0.11456849426031113, 0.058087147772312164, -0.07558614760637283, -0.05427850782871246, 0.12265469878911972, 0.09100443124771118, 0.04368428513407707, 0.02017938159406185, -0.009963737800717354, 0.038251422345638275, 0.18897758424282074, -0.556046724319458, 0.1183299869298935, -0.07634980231523514, -0.026783687993884087, 0.24758198857307434, 0.27459874749183655, 0.01750681921839714, 0.1244240328669548, -0.0787772610783577, -0.042704008519649506, 0.14538215100765228, -0.18910080194473267, -0.3389776945114136, -0.10092297196388245, -0.056486595422029495, -0.05521191656589508, 0.2765161991119385, 0.11466095596551895, 0.23110221326351166, -0.19086645543575287, -0.09169084578752518, 0.14523287117481232, -0.21330702304840088, -0.02800188586115837, 0.18362046778202057, 0.23348136246204376, -0.07791782915592194, -0.3601873815059662, 0.13643214106559753, -0.12034425139427185, 0.2188868373632431, 0.0795876756310463, -0.01985798217356205, 0.20130161941051483, -0.06794129312038422, -0.09745949506759644, 0.11979972571134567, -0.15524612367153168, 0.4030400216579437, -0.12708333134651184, 0.08274214714765549, 0.000960966688580811, 0.28475403785705566, 0.0985451489686966, 0.1785358041524887, 0.03125491738319397, -0.19974485039710999, 0.007203617133200169, 0.34074148535728455, -0.0818784087896347, 0.09187038987874985, -0.26057785749435425, -0.2945704758167267, -0.021036123856902122, 0.1287371963262558, -0.08214641362428665, 0.46765372157096863, 0.3137879967689514, -0.07208572328090668, -0.1669800728559494, 0.24092155694961548, -0.21765127778053284, 0.18356546759605408, -0.12501370906829834, 0.11235544830560684, 0.17193186283111572, 0.1556912511587143, -0.26221781969070435, -0.3978787064552307, -0.15272313356399536, 0.31041979789733887, 0.2943226993083954, -0.06011750176548958, -0.04979199171066284, -0.10434845089912415, 0.23459506034851074, -0.04174210503697395, 0.027666904032230377, -0.05489369109272957, 0.05953490361571312, 0.026143526658415794, 0.4564753472805023, 0.16207855939865112, 0.19617462158203125, -0.4146488606929779, 0.23948684334754944, 0.3079254925251007, 0.059459105134010315, 0.1298917531967163, -0.23607954382896423, -0.1355726718902588, 0.2053522914648056, 0.27521440386772156, 0.09939194470643997, 0.20618313550949097, 0.24285967648029327, -0.06007824465632439, -0.26438087224960327, -0.25834256410598755, 0.008685019798576832, -0.008322259411215782, -0.19277158379554749, 0.07596876472234726, 0.030841099098324776, 0.32522347569465637, 0.10607965290546417, 0.14620858430862427, -0.24213984608650208, 0.021213389933109283, 0.06196705624461174, -0.07457007467746735, -0.29806986451148987, -0.004797718953341246, -0.4482051134109497, -0.18117308616638184, -0.4368607699871063, 0.2528476119041443, 0.1299804002046585, -0.04763513058423996, -0.14629106223583221, 0.1529332995414734, 0.16762079298496246, 0.11733378469944, -0.01983719691634178, -0.4306400716304779, -0.07255858927965164, 0.3476077914237976, -0.4015321731567383, -0.5745417475700378, -0.07949969917535782, 0.07793150097131729, 0.0850101038813591, 0.028651002794504166, -0.5899274945259094, 0.35397595167160034, -0.08930937945842743, -0.15676191449165344, -0.1282309740781784, -0.08434697240591049, -0.0558578260242939, -0.030838489532470703, -0.20399163663387299, -0.18319986760616302, -0.0033808229491114616, 0.17787279188632965, -0.1090344712138176, 0.203388050198555, 0.026921063661575317, 0.3859729766845703, -0.2737625539302826, 0.31935784220695496, -0.19680054485797882, -0.1264542192220688, 0.0984797477722168, -0.11627151072025299, 0.3289116621017456, 0.01991059072315693, -0.19543114304542542, 0.18066108226776123, 0.13065072894096375, 0.057907916605472565, 0.2574114501476288, -0.14653296768665314, 0.08573287725448608, 0.02342609129846096, 0.2345496118068695, -0.03785041719675064, -0.007737572304904461, 0.04063858091831207, -0.04076121374964714, -0.04233467951416969, 0.019594408571720123, -0.15296722948551178, -0.3307301700115204, -0.11731072515249252, -0.004368402995169163, -0.3702685236930847, 0.19150632619857788, 0.04304397851228714, -0.39674198627471924, -0.0987444818019867, -0.40487203001976013, 0.3331465423107147, -0.2823764979839325, 0.18247324228286743, -0.1158994808793068, -0.09262295067310333, 0.05459372326731682, 0.005004430655390024, 0.3926253616809845, 0.16272403299808502, 0.21051423251628876, 0.02707052417099476, -0.14801546931266785, -0.1727832853794098, -0.10091090202331543, -0.11441389471292496, 0.3635956346988678, -0.06935365498065948, 0.08976142108440399, -0.2668599784374237, 0.08264072984457016, 0.25175413489341736, 0.101778045296669, -0.10513874143362045, -0.050843581557273865, -0.2684357464313507, -0.4011590778827667, -0.23486566543579102, -0.0706939697265625, 0.1276717334985733, 0.3101245164871216, -0.22252129018306732, 0.03254257142543793, -0.22342067956924438, -0.14426355063915253, 0.18192918598651886, 0.22009047865867615, 0.18936488032341003, 0.021095143631100655, -0.09416472911834717, 0.20326226949691772, 0.03812997415661812, 0.4226415455341339, 0.6595003008842468, 0.23310747742652893, -0.04090779274702072, 0.3091760277748108, -0.05414058640599251, 0.15529675781726837, 0.31397947669029236, -0.19343525171279907, 0.018360918387770653, 0.0534001961350441, 0.19551189243793488, -0.06309261918067932, 0.6161538362503052, 0.07003229111433029, -0.15986211597919464, -0.31414106488227844, -0.19088958203792572, 0.5224155783653259, -0.1730613112449646, -0.08403953909873962, 0.14730952680110931, 0.01686164364218712, -0.16638274490833282, -0.09861889481544495, -0.4117412865161896, 0.6687524914741516, -0.20328328013420105, 0.06204402446746826, 0.06626295298337936, 0.3870287537574768, 0.24766667187213898, -0.06672540307044983, 0.02193259261548519, -0.3826223313808441, -0.4099578559398651, -0.06871434301137924, -0.2425113022327423, -0.18453946709632874, 0.12984810769557953, -0.03598020225763321, 0.21084058284759521, 0.2276781052350998, 0.1756293773651123, 0.09610765427350998, 0.5285754799842834, 0.18122674524784088, 0.0733349397778511, -0.19009250402450562, 0.17996597290039062, -0.12201528996229172, 0.25813591480255127, -0.09576521813869476, -0.1427297294139862, -0.12270443886518478, -0.3268105089664459, -0.2493518739938736, 0.06598073244094849, -0.2413952797651291, 0.6252077221870422, -0.10935287922620773, -0.3353390693664551, -0.01956109330058098, -0.051509514451026917, -0.09406950324773788, 0.22825638949871063, -0.2631535232067108, 0.16265061497688293, 0.22450511157512665, -0.41832900047302246, -0.19028639793395996, 0.22967186570167542, 0.1480245739221573, -0.1788026988506317, -0.1048193871974945, 0.2917749881744385, 0.01769549399614334, -0.18815110623836517, -0.21297544240951538, 0.1803676038980484, 0.43421050906181335, -0.220099538564682, -0.3376471996307373, -0.1154816672205925, 0.0002102611178997904, -0.07584156095981598, 0.22710953652858734, 0.27071428298950195, -0.18916188180446625, -0.13265842199325562, 0.485320508480072, -0.16133888065814972, -0.11579691618680954, 0.2922755479812622, -0.006521433591842651, -0.0019559822976589203, 0.568136990070343, -0.054944925010204315, 0.12147774547338486, -0.21250879764556885, -0.10280044376850128, 0.39327573776245117, -0.2973114252090454, 0.0447506420314312, 0.03445884585380554, -0.38639503717422485, 0.23234876990318298, 0.11301020532846451, 0.09292268007993698, -0.20461343228816986, -0.00017837058112490922, -0.24569541215896606, -0.2520091235637665, 0.25126340985298157, -0.2728801965713501, 0.1807880848646164, -0.02785729244351387, 0.0376695953309536, -0.48403072357177734, 0.06134995073080063, -0.4035327434539795, 0.1795940101146698, -0.14392763376235962, -0.11753206700086594, 0.08456888794898987, -0.008812976069748402, -0.1863047182559967, 0.12724344432353973, 0.27570730447769165, 0.015680644661188126, -0.15650852024555206, -0.36332589387893677, -0.049116525799036026, 0.13426634669303894, -0.03382446616888046, 0.04022660478949547, -0.2104640156030655, -0.2732779383659363, -0.15449216961860657, 0.08057821542024612, 0.30907049775123596, -0.07388488203287125, 0.08095744252204895, -0.3234630227088928, -0.051615796983242035, -0.18159136176109314, -0.029764216393232346, 0.2688758969306946, -0.10105718672275543, -0.0021307491697371006, 0.19329705834388733, 0.15506671369075775, 0.015007570385932922, -0.1505734771490097, -0.2379753142595291, -0.10551605373620987, 0.04119598865509033, 0.06049514189362526, 0.5367912650108337, -0.2544393539428711, -0.09200946986675262, 0.13566680252552032, 0.12121503055095673, 0.2668644189834595, -0.21580377221107483, -0.040323253720998764, 0.09919968992471695, 0.28379011154174805, -0.5178390145301819, -0.16271039843559265, -0.004127928055822849, -0.13591885566711426, 0.10013586282730103, 0.26262885332107544, 0.21198110282421112, 0.006167985964566469, -0.35740211606025696, 0.1743650883436203, 0.3999604880809784, 0.28041937947273254, -0.026844540610909462, 0.08774778246879578, -0.28600582480430603, -0.04407024383544922, 0.22271454334259033, 0.3076282739639282, 0.2137732058763504, 0.7375859022140503, 0.26157820224761963, 0.4250287115573883, -0.2168947160243988, -0.01049347035586834, 0.039681948721408844, -0.32766199111938477, 0.022578952834010124, 0.21161776781082153, -0.1146809384226799, 0.18452027440071106, -0.08381075412034988, 0.1554230898618698, -0.31755536794662476, 0.13482975959777832, -0.49636465311050415, 0.12137195467948914, 0.03594876453280449, 0.0017496236832812428, 0.15881355106830597, -0.16824805736541748, 0.20279760658740997, 0.051803238689899445, -0.07807384431362152, 0.10056200623512268, 0.26445522904396057, 0.1347682625055313, -0.19635683298110962, -0.19553621113300323, -0.22276397049427032, 0.14930316805839539, 0.010423203930258751, -0.13417036831378937, 0.1256936937570572, 0.10717280209064484, -0.11741692572832108, 0.21297083795070648, 0.23955944180488586, 0.45952489972114563, 0.15559300780296326, -0.1417904496192932, -0.3558119833469391, 0.04237522929906845, -0.16928181052207947, -0.25096559524536133, 0.2187959849834442, 0.31927627325057983, 0.07755497097969055, 0.12484636902809143, 0.2226816862821579, -0.1505165994167328, 0.07898459583520889, 0.1778375804424286, -0.03391941264271736, 0.07430533319711685, -0.3868422210216522, -0.06381844729185104, -0.2020207643508911, -0.2836495339870453, 0.017676202580332756, -0.3352563977241516, -0.2028525471687317, 0.2236137092113495, 0.08641829341650009, 0.19563870131969452, -0.0328608900308609, 0.1233760267496109, -0.33801326155662537, 0.7097560167312622, 0.01549214031547308, 0.41244226694107056, -0.17469532787799835, -0.09409728646278381, -0.5283468961715698, 0.5568981170654297, -0.1425919085741043, -0.11653818190097809, 0.20422819256782532, -0.06549587100744247, 0.27426087856292725, -0.09471584111452103, -0.1006249487400055, -0.2723659574985504, -0.07387009263038635, -0.08046386390924454, -0.35126426815986633, -0.11989787220954895, 0.3524158000946045, 0.18384850025177002, -0.11552883684635162, -0.270740807056427, 0.23909781873226166, -0.3342856168746948, 0.2704393267631531, -0.2623750567436218, 0.10025666654109955, -0.18906821310520172, 0.4158267080783844, 0.37685301899909973, -0.01773490197956562, 0.6198323369026184, -0.13249658048152924, -0.06870731711387634, -0.38476037979125977, -0.24018961191177368, 0.057214148342609406, 0.42558300495147705, 0.202819362282753, 0.16471050679683685, -0.007446705363690853, -0.056842636317014694, -0.10046841949224472, 0.3361852765083313, -0.30293866991996765, -0.05650396645069122, 0.094913549721241, -0.08796817809343338, -0.16944263875484467, 0.056969642639160156, 0.21466697752475739, -0.03663826361298561, -0.14204345643520355, -0.057161103934049606, -0.03937103971838951, -0.2801482379436493, 0.6055493950843811, -0.2736343443393707, -0.36942270398139954, -0.029989123344421387, 0.27927061915397644, 0.1905107945203781, 0.0752776712179184, -0.4199987053871155, 0.3273061215877533, 0.09152757376432419, 0.16774792969226837, -0.29582732915878296, 0.22047795355319977, -0.1803394854068756, 0.08253832906484604, -0.019938724115490913, 0.7990158200263977, -0.1299661248922348, -0.47409549355506897, -0.36300235986709595, 0.0491340197622776 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Hi @adrianeboyd, thanks for reporting. There is indeed a bug in that community dataset: Line: ```python metadata_and_text_files = list(zip(metadata_files, text_files)) ``` should be replaced with ```python metadata_and_text_files = list(zip(sorted(metadata_files), sorted(text_files))) ``` I am going to contact their owners (https://huggingface.co/oscar-corpus) in order to inform them about the bug. I keep you informed.
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
51
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
That fix is part of it, but it's clearly not the only issue. I also already contacted the OSCAR creators, but I reported it here because it looked like huggingface members were the main authors in the git history. Is there a better place to have reported this?
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
48
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Hello, We've had an issue that could be linked to this one here: https://github.com/oscar-corpus/corpus/issues/15. I have been spot checking the source (`.txt`/`.jsonl`) files for a while, and have not found issues, especially in the start/end of corpora (but I conceed that more integration testing would be necessary on our side). The text and metadata files are designed to be used in sync (with `lang_part_n.txt` and `lang_meta_part_n.jsonl` working together), while staying independent from part to part, so that anyone could randomly choose a part and work with it. The fix @albertvillanova proposed should fix the problem, as the parts will be in sync again. Let me know if you need help or more details, I'd be glad to help!
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
118
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
I'm happy to move the discussion to the other repo! Merely sorting the files only **maybe** fixes the processing of the first part. If the first part contains non-unix newlines, it will still be misaligned/truncated, and all the following parts will be truncated with incorrect text offsets and metadata due the offset and newline bugs.
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
55
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Hi @Uinelj, This is a total noobs question but how can I integrate that bugfix into my code? I reinstalled the datasets library this time from source. Should that have fixed the issue? I am still facing the misalignment issue. Do I need to download the dataset from scratch?
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
49
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Sorry @norakassner for the late reply. There are indeed several issues creating the misalignment, as @adrianeboyd cleverly pointed out: - https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/3cd7e95aa1799b73c5ea8afc3989635f3e19b86b fixed one of them - but there are still others to be fixed
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
34
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Normally, the issues should be fixed now: - Fix offset initialization for each file: https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/1ad9b7bfe00798a9258a923b887bb1c8d732b833 - Disable default universal newline support: https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/0c2f307d3167f03632f502af361ac6c3c393f510 Feel free to reopen if you find additional misalignments/truncations. CC: @adrianeboyd @norakassner @Uinelj
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
35
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Thanks for the updates! The purist in me would still like to have the rstrip not strip additional characters from the original text (unicode whitespace mainly in practice, I think), but the differences are extremely small in practice and it doesn't actually matter for my current task: ```python text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip("\n") ```
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
56
OSCAR-2109 datasets are misaligned and truncated
[ -0.4117484390735626, 0.20423242449760437, -0.14758524298667908, 0.4208986163139343, -0.08655332028865814, -0.01518301758915186, 0.24871550500392914, 0.2779760956764221, -0.2146356701850891, 0.1827799528837204, -0.3122415840625763, -0.08526485413312912, 0.22333207726478577, 0.3384700417518616, -0.1718335598707199, -0.06680165231227875, -0.048958927392959595, 0.2769208550453186, -0.24728862941265106, -0.2433130145072937, -0.3418208658695221, 0.16369175910949707, -0.26152291893959045, -0.22760207951068878, -0.43912848830223083, 0.0010609758319333196, 0.08950120210647583, 0.0982876643538475, -0.47130975127220154, 0.10751829296350479, 0.012708653695881367, -0.0039453948847949505, -0.14748039841651917, 0.0646069347858429, -0.0001109606382669881, -0.26446741819381714, 0.055868297815322876, 0.03817233070731163, -0.09832483530044556, 0.3044404089450836, -0.005826268345117569, -0.14634796977043152, 0.020982664078474045, -0.04029252007603645, -0.1348372995853424, -0.25972047448158264, -0.1712857484817505, -0.028418894857168198, 0.28955918550491333, 0.2139298915863037, 0.24153192341327667, -0.12089192122220993, 0.1312464028596878, -0.44111013412475586, 0.12014918029308319, -0.11633598804473877, -0.12579302489757538, -0.23127472400665283, 0.17807072401046753, 0.07863113284111023, -0.0594414584338665, 0.23888835310935974, 0.23233476281166077, 0.041508328169584274, 0.13273127377033234, -0.17159217596054077, -0.25469323992729187, -0.29163581132888794, 0.2272811084985733, 0.1708851009607315, 0.565165638923645, -0.03643980249762535, -0.25687211751937866, -0.19334398210048676, 0.17369943857192993, -0.4992400109767914, 0.305673748254776, 0.26359662413597107, 0.2824987471103668, -0.08491215109825134, -0.20064198970794678, 0.2892593443393707, -0.3397098481655121, 0.22426104545593262, -0.46763116121292114, 0.3375036120414734, 0.031783632934093475, -0.019645731896162033, -0.09085448831319809, -0.0452650748193264, 0.18385626375675201, -0.13122913241386414, 0.05777889862656593, -0.06549401581287384, -0.28831252455711365, -0.08292553573846817, -0.1530216634273529, 0.14145664870738983, 0.038957856595516205, 0.15267135202884674, 0.006569950841367245, 0.021089162677526474, 0.21173891425132751, -0.36794865131378174, 0.3935808539390564, 0.282720148563385, -0.26606541872024536, 0.07445396482944489, 0.015060648322105408, 0.29778534173965454, -0.0428234301507473, 0.05999765172600746, 0.16472817957401276, -0.4001843333244324, -0.1212877556681633, -0.1847759634256363, -0.0646551325917244, -0.30183297395706177, -0.08433847874403, 0.21289433538913727, -0.08571302145719528, 0.22226478159427643, -0.1865442544221878, 0.049238137900829315, -0.3331190049648285, 0.1233859434723854, -0.01934061385691166, 0.1026088073849678, -0.17055775225162506, 0.12879785895347595, -0.28404080867767334, 0.06423688679933548, -0.17318272590637207, -0.18622329831123352, 0.15315291285514832, -0.04625995084643364, 0.37620365619659424, 0.02307884581387043, 0.8236232399940491, 0.08272819966077805, -0.09001307189464569, -0.17229333519935608, 0.11845701187849045, 0.3876052796840668, 0.4034252166748047, 0.045049771666526794, -0.24508914351463318, 0.13234522938728333, -0.06979335844516754, -0.10414964705705643, -0.2016122192144394, -0.06458678096532822, -0.079033263027668, 0.2648888826370239, 0.13033920526504517, 0.25129327178001404, 0.15809500217437744, -0.07677886635065079, 0.15473882853984833, 0.027596337720751762, 0.1267162710428238, -0.2859642207622528, -0.06650847941637039, 0.043459463864564896, 0.11333083361387253, 0.10132331401109695, -0.3005550801753998, 0.2939140796661377, -0.4012966454029083, 0.24880646169185638, 0.4597986936569214, 0.2537015378475189, 0.024678215384483337, -0.14143650233745575, -0.2959029972553253, 0.25059404969215393, 0.004645019769668579, -0.10406819730997086, -0.5521141886711121, -0.02205006219446659, 0.10003272444009781, -0.016587037593126297, -0.1112394854426384, -0.03718644380569458, 0.41424810886383057, 0.10198204964399338, 0.3491758704185486, 0.2647570073604584, 0.04201452061533928, -0.009033908136188984, -0.3114423155784607, 0.013807827606797218, -0.18040162324905396, 0.16897279024124146, 0.3263729214668274, -0.2669358253479004, -0.1507650762796402, 0.07102309167385101, 0.06699024140834808, 0.07794912159442902, 0.1702524721622467, 0.10055434703826904, -0.1750241070985794, 0.0677105188369751, 0.00593017740175128, 0.014834641478955746, -0.24665890634059906, -0.1495688110589981, -0.09450465440750122, 0.2901250123977661, 0.29963064193725586, -0.12681187689304352, -0.4312213957309723, -0.22320790588855743, -0.09687327593564987, 0.005713270045816898, 0.21551044285297394, -0.1904996633529663, 0.1739477664232254, -0.031667955219745636, -0.04374123364686966, 0.16466030478477478, -0.05707494169473648, 0.06465940177440643, -0.37101519107818604, 0.2964702844619751, -0.2036401629447937, -0.14083331823349, 0.32480013370513916, 0.31199896335601807, 0.22547094523906708, -0.05682266503572464, -0.14285817742347717, 0.2371567338705063, 0.10257387906312943, -0.015874618664383888, -0.17541980743408203, 0.38094645738601685, 0.47395434975624084, -0.1552467793226242, 0.05846774950623512, 0.13318945467472076, -0.022870313376188278, 0.014055485837161541, 0.018675608560442924, 0.4825025200843811, -0.14329160749912262, 0.04862745478749275, 0.18506605923175812, 0.19283929467201233, 0.401396781206131, -0.17665256559848785, -0.04676450043916702, -0.40702390670776367, 0.11809277534484863, 0.006143774837255478, 0.15919741988182068, 0.2979310154914856, -0.2659727931022644, 0.33208489418029785, 0.3939114511013031, 0.1810077279806137, -0.058244407176971436, 0.15510457754135132, -0.23977062106132507, -0.19780486822128296, 0.24292424321174622, 0.2920522689819336, 0.20231880247592926, 0.2980296313762665, -0.04631219059228897, 0.21682900190353394, -0.3467848300933838, -0.41805076599121094, 0.20513737201690674, 0.06567484885454178, 0.20863933861255646, 0.41265296936035156, 0.00248368876054883, 0.041651275008916855, -0.13387805223464966, 0.12790881097316742, -0.12119929492473602, 0.1574944406747818, -0.2357710897922516, -0.06921444088220596, -0.26500988006591797, -0.453769326210022, -0.24814864993095398, -0.03352973982691765, 0.021156568080186844, -0.19770778715610504, 0.3376663029193878, 0.184780552983284, -0.26850810647010803, 0.20428895950317383, -0.29028648138046265, 0.3212421238422394, 0.04506932199001312, 0.6902076005935669, -0.11551274359226227, 0.03078906051814556, 0.02694454789161682, 0.20166367292404175, -0.13353298604488373, 0.15243399143218994, 0.11239063739776611, -0.2417227178812027, -0.009454994462430477, -0.3820617198944092, -0.46756502985954285, 0.17538733780384064, 0.2489398717880249, -0.1558755338191986, 0.21452929079532623, -0.13792107999324799, -0.20748084783554077, -0.22823558747768402, 0.1003870740532875, 0.07391314208507538, -0.007766205817461014, -0.026530221104621887, -0.4082631468772888, -0.22598406672477722, -0.17483405768871307, -0.4373684525489807, -0.004245891235768795, -0.17237398028373718, -0.0412306971848011, 0.39133575558662415, 0.2003180831670761, 0.2646593451499939, 0.17363618314266205, -0.596359372138977, -0.13984738290309906, -0.06475479155778885, -0.37442970275878906, -0.06989634037017822, 0.30106547474861145, -0.29909563064575195, -0.48820608854293823, -0.19009929895401, -0.07837249338626862, 0.008450948633253574, 0.29898375272750854, -0.11243762820959091, -0.5303226709365845, -0.1319158375263214, -0.2689688801765442, -0.021414872258901596, -0.09532048553228378, 0.2582103908061981, -0.21495313942432404, -0.17498841881752014, -0.20221953094005585, 0.0316443108022213, 0.412533700466156, -0.0879376009106636, 0.22384877502918243, -0.4468531012535095, 0.017622172832489014, -0.25284406542778015, 0.42156821489334106, 0.18497812747955322, -0.16142620146274567, 0.1250341385602951, 0.011922851204872131, 0.1959751844406128, -0.35122835636138916, 0.01675313152372837, 0.4113917946815491, 0.3355380594730377, 0.20781159400939941, 0.49164727330207825, 0.0266617052257061, -0.2596926987171173, 0.222415030002594, 0.460984468460083, -0.40032318234443665, -0.09611749649047852, -0.12154963612556458, 0.14850707352161407, 0.1374925971031189, 0.3253630995750427, -0.06885642558336258, -0.0058549088425934315, -0.26288411021232605, -0.2629930377006531, -0.23303982615470886, 0.13055925071239471, -0.10664337873458862, -0.1540241837501526, 0.07643540948629379, -0.08056528866291046, 0.1282743513584137, -0.12716639041900635, 0.3821028470993042, -0.14605534076690674, -0.10696510970592499, 0.15775814652442932, 0.1941700428724289, 0.4280775785446167, -0.09956632554531097, -0.2530474364757538, -0.08314976096153259, 0.04116511717438698, -0.17088930308818817, -0.07442060858011246, -0.18919900059700012, 0.02760913409292698, 0.36657533049583435, 0.536391019821167, -0.07613713294267654, 0.22928324341773987, 0.00926042627543211, 0.027743488550186157, -0.1202043890953064, 0.232857346534729, 0.06310667097568512, -0.48564231395721436, -0.1738947331905365, 0.062272053211927414, 0.06448575854301453, 0.27882108092308044, 0.10149960219860077, -0.2841033935546875, -0.19216056168079376, 0.029790816828608513, -0.010549470782279968, 0.24526400864124298, 0.4680265188217163, 0.14701631665229797, 0.44693490862846375, -0.0914764329791069, 0.5139084458351135, 0.5598426461219788, 0.23948907852172852, -0.22527176141738892, -0.2609182596206665, 0.11507650464773178, -0.48416396975517273, 0.1358262151479721, 0.36605173349380493, -0.11282378435134888, -0.2356797158718109, -0.5431793332099915, 0.2916727066040039, -0.06965421140193939, 0.24954736232757568, 0.06897955387830734, -0.057392627000808716, -0.18157704174518585, -0.28179091215133667, -0.11297861486673355, 0.09482128173112869, -0.06070588156580925, 0.13260293006896973, 0.017025230452418327, -0.09469227492809296, 0.14415305852890015, 0.21187478303909302, 0.8694184422492981, 0.2576581537723541, 0.2385125458240509, 0.10754504799842834, -0.16070958971977234, 0.2937113344669342, 0.05399741977453232, 0.20443102717399597, -0.4429302215576172, -0.4390498995780945, 0.024448830634355545, 0.01955469511449337, -0.136504128575325, 0.01697390526533127, 0.23017412424087524, 0.22742263972759247, -0.02580980956554413, -0.22546520829200745, -0.2545606195926666, -0.16262122988700867, 0.20306283235549927, -0.34737250208854675, -0.49700063467025757, 0.18031787872314453, 0.04123103246092796, 0.12794837355613708, -0.1407744586467743, 0.21813906729221344, -0.1054559126496315, -0.07960329204797745, -0.18581993877887726, 0.011367546394467354, -0.039710309356451035, -0.1948131024837494, -0.06851501017808914, -0.44311830401420593, -0.008930543437600136, -0.13377119600772858, 0.2556425631046295, 0.2046481817960739, -0.0420038178563118, 0.35573726892471313, -0.0031267323065549135, -0.14684945344924927, 0.1269473433494568, 0.15865275263786316, 0.08313227444887161, -0.3091750144958496, 0.009394850581884384, -0.32266131043434143, 0.2780604660511017, -0.05003335326910019, -0.014129248447716236, -0.08046296238899231, -0.04125627130270004, -0.1278403401374817, -0.20394033193588257, -0.2777779996395111, 0.2638672888278961, -0.31650733947753906, 0.19686274230480194, -0.2298130989074707, 0.05599673092365265, 0.20676970481872559, 0.2966126799583435, -0.4053903818130493, -0.30686715245246887, 0.5158078074455261, 0.2813996374607086, 0.12424778938293457, 0.2634408175945282, 0.2075950652360916, -0.08832893520593643, -0.1627618670463562, -0.33320149779319763, 0.06305185705423355, -0.5546020865440369, 0.015282169915735722, -0.11863397806882858, -0.12302884459495544, -0.042785339057445526, 0.2801567018032074, 0.3283427655696869, 0.013262555934488773, 0.07252844423055649, -0.3984679877758026, -0.08852743357419968, 0.0747680515050888, 0.224825918674469, 0.20783278346061707, 0.047314099967479706, 0.005257938057184219, -0.12014492601156235, 0.04756630212068558, -0.36950379610061646, 0.034859880805015564, -0.040982164442539215, 0.09555630385875702, -0.2653455138206482, -0.2104545533657074, -0.27979761362075806, -0.08226907253265381, 0.09777995198965073, 0.1377495527267456, -0.0866737961769104, -0.29620715975761414, -0.11813267320394516, 0.0697595402598381, -0.002832580590620637, -0.6015724539756775, 0.02927447110414505, 0.09545237571001053, -0.2498757392168045, -0.18266400694847107, -0.045155998319387436, -0.021570878103375435, 0.2060893177986145, -0.07165712118148804, 0.23950323462486267, -0.17606432735919952, -0.03185516223311424, 0.3063812255859375, 0.1671994924545288, 0.3529500663280487, 0.1911553591489792, 0.19432125985622406, -0.0867137536406517, -0.15074008703231812, 0.006269593723118305, -0.13712376356124878, -0.1224387139081955, 0.09775134176015854, 0.40511205792427063, 0.04487559571862221, 0.18599382042884827, 0.6706463694572449, 0.37774205207824707, 0.28939875960350037, -0.08247027546167374, -0.2928328216075897, 0.052503593266010284, 0.26342618465423584, -0.49219146370887756, -0.12266864627599716, 0.3066044747829437, 0.1803281307220459, 0.04489615559577942, -0.02116251550614834, 0.4378632605075836, -0.22135041654109955, -0.14595066010951996, 0.2068064659833908, 0.23657508194446564, 0.07804590463638306, 0.12091678380966187, 0.5188789367675781, 0.00958309043198824, 0.21378089487552643, 0.1778056025505066, 0.02568397857248783, 0.17440561950206757, 0.3923701345920563, 0.10931006819009781, 0.42293286323547363, -0.1442706435918808, -0.24981838464736938, -0.0577448271214962, -0.3159710168838501, 0.0593813955783844, 0.5081712007522583, -0.09664051234722137, 0.22582519054412842, 0.30903229117393494, -0.0932023823261261, 0.04978295788168907, -0.28626748919487, -0.33811286091804504, 0.007528625428676605, -0.10596031695604324, 0.15330857038497925, -0.2941057085990906, -0.35493144392967224, -0.10843528807163239, -0.003350334009155631, -0.019844071939587593, 0.18650756776332855, 0.6831830739974976, -0.013187706470489502, -0.3050503432750702, -0.18528123199939728, 0.22224628925323486, 0.1350245624780655, 0.16431684792041779, 0.021930808201432228, 0.2850985825061798, 0.3580925762653351, -0.023931028321385384, 0.1530209332704544, 0.5955718159675598, 0.31287944316864014, 0.0070194341242313385, 0.22463515400886536, -0.15008001029491425, 0.292486310005188, -0.08121495693922043, -0.322307825088501, 0.1115134134888649, 0.2999519407749176, 0.002936718752607703, 0.3416781723499298, 0.24449439346790314, -0.17815665900707245, 0.30827951431274414, -0.0881124883890152, 0.03667515143752098, 0.01087251864373684, 0.10421886295080185, 0.07101190835237503, -0.17381174862384796, -0.025925371795892715, -0.2080966681241989, -0.22781412303447723, -0.1354275941848755, 0.06612107902765274, -0.13910017907619476, 0.09618489444255829, -0.2580139636993408, 0.09997043013572693, -0.06979826837778091, 0.6022166013717651, 0.2388913482427597, -0.17993436753749847, 0.029647953808307648, -0.48597410321235657, -0.5042017102241516, 0.4876810312271118, -0.4301227331161499, 0.10033828765153885, 0.04135030508041382, 0.21390162408351898, -0.06380992382764816, -0.10151946544647217, 0.24355895817279816, 0.20550408959388733, 0.08428379893302917, 0.20259903371334076, -0.5181728601455688, 0.17426380515098572, 0.22407948970794678, -0.04785575717687607, -0.14745303988456726, 0.005118431057780981, 0.11502543836832047, 0.07565774768590927, 0.20061925053596497, 0.13044454157352448, -0.03378261998295784, -0.13378696143627167, -0.043640799820423126, 0.07075352966785431, 0.2697093188762665, 0.3313436210155487, -0.2832188308238983, 0.11052601039409637, -0.1639232188463211, -0.09375688433647156, -0.11600064486265182, 0.26252281665802, -0.050377245992422104, 0.10145106911659241, 0.05290565639734268, 0.15114226937294006, 0.029362045228481293, 0.31324079632759094, 0.07400433719158173, -0.23982258141040802, -0.21878767013549805, 0.14234961569309235, -0.07089101523160934, -0.12007846683263779, 0.239053413271904, 0.3482939898967743, -0.04991956427693367, -0.16484434902668, -0.0862487256526947, -0.6387033462524414, 0.17821209132671356, -0.10645655542612076, -0.14850851893424988, -0.17002837359905243, 0.05224266275763512, 0.07350633293390274, 0.1224699467420578, -0.06573425978422165, 0.07874054461717606, 0.14852532744407654, -0.3569563925266266, 0.18855316936969757, 0.2337813377380371, -0.17501430213451385, -0.1751466691493988, -0.22050294280052185, 0.3866173326969147, 0.209058940410614, -0.5036883354187012, -0.04497828707098961, -0.0608920156955719 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue.
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
26
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
[ -0.41675522923469543, 0.027540920302271843, -0.2510954737663269, -0.053035348653793335, 0.32158368825912476, -0.15092706680297852, 0.04854653403162956, 0.16240526735782623, 0.06525202095508575, 0.30983853340148926, -0.08387104421854019, 0.26748383045196533, -0.032192036509513855, 0.15686030685901642, -0.08237872272729874, -0.07425018399953842, -0.24421687424182892, 0.1586361974477768, -0.09902515262365341, -0.11987370252609253, -0.22038908302783966, 0.3180543780326843, -0.2764386236667633, 0.1745409071445465, 0.14211447536945343, 0.07353005558252335, 0.25798535346984863, -0.04215719550848007, -0.5106651186943054, -0.2723649740219116, 0.09656952321529388, 0.07929233461618423, -0.14991798996925354, 0.22851575911045074, -0.00010390800889581442, -0.11019646376371384, 0.2552398145198822, -0.07145446538925171, 0.1074167788028717, -0.27844932675361633, -0.279013067483902, -0.4674667418003082, 0.1887589544057846, -0.28839898109436035, -0.12135066837072372, -0.003426596522331238, -0.057236891239881516, -0.15128964185714722, 0.1908685266971588, 0.5563839673995972, 0.3634546399116516, 0.015942562371492386, 0.29009780287742615, -0.2749340832233429, 0.05870071426033974, -0.3622947931289673, 0.09242074191570282, 0.32398101687431335, 0.08621546626091003, 0.19535279273986816, 0.10209718346595764, 0.27008873224258423, -0.049072712659835815, 0.06522341817617416, 0.08671832829713821, -0.20732037723064423, 0.3173922896385193, -0.12860147655010223, 0.022131554782390594, 0.005323356483131647, 0.2954908013343811, -0.24808014929294586, -0.004822417628020048, 0.3959144353866577, -0.03894231840968132, -0.5455911159515381, -0.05852320417761803, -0.05979529395699501, 0.07217099517583847, -0.07462463527917862, -0.07643834501504898, -0.06078243628144264, -0.3344632089138031, 0.12867103517055511, -0.2968931496143341, 0.3577006459236145, -0.175848588347435, 0.0032559249084442854, 0.1773156225681305, -0.24853789806365967, -0.14922337234020233, 0.37320202589035034, 0.03340419381856918, 0.08242861926555634, -0.18565073609352112, 0.027492741122841835, 0.08424921333789825, 0.07119668275117874, 0.05335810035467148, 0.04920239746570587, -0.2085018903017044, 0.1338834911584854, 0.3550044298171997, 0.29046425223350525, -0.11212234944105148, 0.5971264243125916, 0.31021955609321594, 0.19174207746982574, 0.20437368750572205, 0.1945798695087433, -0.05099504813551903, -0.21506725251674652, 0.049749817699193954, -0.5417318344116211, -0.06965602934360504, 0.2050076723098755, -0.04729233682155609, -0.33068129420280457, -0.4385610520839691, -0.07769471406936646, 0.04775374382734299, -0.08177545666694641, 0.34632816910743713, 0.2882708013057709, -0.017422262579202652, -0.18694591522216797, 0.1284056156873703, 0.44615960121154785, -0.21186330914497375, -0.017382832244038582, -0.19141831994056702, 0.3973478376865387, -0.009962926618754864, -0.3503825068473816, 0.05918547138571739, -0.06570292264223099, 0.29688552021980286, -0.1592058539390564, 0.3032929599285126, 0.06560706347227097, 0.21214203536510468, 0.039218731224536896, -0.2650286853313446, 0.19171582162380219, 0.13238883018493652, -0.2012615203857422, 0.23038706183433533, -0.18956565856933594, -0.21029719710350037, -0.0915692001581192, -0.28584837913513184, -0.2779426872730255, -0.007033267058432102, 0.3506714701652527, -0.05876799300312996, -0.18117401003837585, 0.30173444747924805, 0.13468237221240997, -0.19454644620418549, -0.31175827980041504, -0.1710641235113144, -0.022683611139655113, -0.12045318633317947, -0.032707005739212036, 0.20568358898162842, -0.17207811772823334, -0.44196802377700806, -0.20034436881542206, -0.24963217973709106, -0.1368652731180191, 0.1352493017911911, 0.07095161080360413, 0.07277978956699371, 0.13746443390846252, 0.16028816998004913, 0.1297004222869873, 0.7688165903091431, -0.6260377168655396, -0.31038492918014526, -0.01920953579246998, 0.143930584192276, -0.6138864159584045, 0.05125820264220238, -0.2482578605413437, 0.31986695528030396, 0.18744516372680664, 0.08387760072946548, 0.07108420133590698, 0.1257173866033554, -0.24865588545799255, -0.16426748037338257, -0.1081283688545227, -0.20563866198062897, 0.13371604681015015, 0.39237603545188904, 0.02829417586326599, 0.35373857617378235, 0.12181813269853592, -0.315688818693161, -0.05998024344444275, 0.016000235453248024, 0.16383576393127441, 0.38683977723121643, -0.07926985621452332, 0.09247829765081406, -0.1840900182723999, 0.45248207449913025, -0.07908336073160172, -0.14541521668434143, 0.06738906353712082, 0.0581844188272953, 0.03219035267829895, -0.6098834872245789, 0.011342517100274563, -0.03765931725502014, -0.0385989248752594, 0.33127161860466003, -0.27673691511154175, 0.24253280460834503, 0.23902003467082977, 0.003956945147365332, -0.1119358167052269, 0.2628291845321655, 0.03441579267382622, 0.07172286510467529, -0.12564605474472046, -0.3507295548915863, -0.06789904832839966, 0.22247183322906494, 0.36144062876701355, 0.1637120395898819, 0.0970727950334549, 0.010623583570122719, 0.20609281957149506, -0.21451117098331451, 0.13622938096523285, 0.14069055020809174, 0.19098010659217834, 0.03503387048840523, -0.2622738778591156, 0.1466570347547531, -0.08344382792711258, 0.09148028492927551, 0.10928690433502197, -0.014259260147809982, 0.23404063284397125, -0.08930258452892303, 0.11092509329319, -0.005619308911263943, 0.199727863073349, 0.35228869318962097, -0.08716532588005066, -0.15125761926174164, -0.3852752447128296, 0.4719978868961334, -0.24026940762996674, 0.13616523146629333, -0.4211151897907257, 0.22144755721092224, -0.22566406428813934, 0.25216594338417053, 0.11528337001800537, 0.29949572682380676, 0.012834484688937664, 0.09481862187385559, 0.09310681372880936, -0.022188663482666016, -0.15900109708309174, 0.21519926190376282, 0.2790392339229584, 0.023610534146428108, 0.05721571668982506, -0.0675438940525055, -0.18634863197803497, 0.17211602628231049, 0.052303873002529144, -0.25020578503608704, 0.3074663281440735, 0.006748002488166094, -0.2490176409482956, -0.2800571024417877, -0.05637736991047859, -0.24275842308998108, 0.19980089366436005, -0.15685182809829712, 0.16698500514030457, -0.24876408278942108, 0.10184012353420258, 0.11571988463401794, -0.34142762422561646, -0.08139804005622864, -0.42278069257736206, 0.2282131463289261, -0.08200248330831528, 0.033648110926151276, 0.2987365126609802, 0.22047117352485657, 0.1268409788608551, 0.24080197513103485, -0.07613340020179749, -0.12589940428733826, -0.3825855553150177, 0.03732945770025253, 0.23819215595722198, -0.162379652261734, 0.1775464415550232, 0.3207966685295105, -0.3435415029525757, 0.4247748553752899, -0.07132857292890549, -0.5249403119087219, 0.014101047068834305, -0.18488775193691254, 0.6352327466011047, 0.31282782554626465, -0.21214883029460907, -0.059566400945186615, 0.009876212105154991, 0.23410288989543915, -0.252076119184494, 0.05337679013609886, 0.3274463415145874, -0.34600967168807983, -0.10966454446315765, -0.1735105812549591, -0.28954651951789856, -0.17907017469406128, -0.47182032465934753, 0.08324436843395233, 0.33871641755104065, -0.07323314249515533, -0.07118267565965652, 0.002418654737994075, 0.23248541355133057, 0.13034647703170776, 0.28245046734809875, -0.19733698666095734, 0.11011229455471039, 0.34864383935928345, -0.2179943323135376, -0.27123427391052246, 0.2637709081172943, -0.09586291760206223, 0.6406808495521545, -0.21533654630184174, -0.15828974545001984, -0.4564114809036255, 0.13929225504398346, 0.05723050236701965, 0.09554319083690643, 0.05851411819458008, 0.25271785259246826, 0.002373039023950696, -0.1634347140789032, -0.26517799496650696, -0.19059279561042786, 0.018359486013650894, -0.0010095626348629594, 0.019038552418351173, -0.2482185810804367, 0.6285089254379272, 0.005807893350720406, 0.3810456693172455, -0.17089247703552246, 0.2569108009338379, 0.19065739214420319, -0.07000484317541122, 0.359887033700943, 0.14364434778690338, -0.221164271235466, 0.06084961071610451, 0.2831035554409027, 0.004022615030407906, 0.21932606399059296, -0.10191070288419724, 0.14670366048812866, -0.3420071005821228, -0.040689315646886826, -0.14645691215991974, 0.07730971276760101, -0.21749351918697357, 0.15524820983409882, 0.16375859081745148, 0.14789460599422455, -0.033239103853702545, -0.06255780905485153, -0.05104495957493782, 0.05846817418932915, 0.2557469606399536, -0.30432310700416565, 0.025321021676063538, -0.12161792069673538, -0.19758695363998413, -0.342425137758255, 0.4330677092075348, -0.3046341836452484, -0.22316129505634308, -0.17532879114151, -0.010731001384556293, 0.01068897731602192, -0.09149428457021713, 0.21408283710479736, -0.11172739416360855, -0.17796455323696136, 0.26965585350990295, -0.03320438787341118, -0.468347430229187, 0.12718544900417328, -0.43963608145713806, -0.057507310062646866, 0.2821334898471832, 0.060763198882341385, -0.3862977921962738, 0.22782747447490692, 0.3623233139514923, 0.07968074083328247, -0.2082468420267105, 0.06431379169225693, -0.3555910587310791, -0.3295179605484009, -0.3449433147907257, 0.07415377348661423, -0.12451852858066559, 0.3520359396934509, 0.28663167357444763, 0.3210482895374298, -0.1277715563774109, -0.33303341269493103, 0.025538945570588112, 0.23365195095539093, 0.24468283355236053, -0.38497477769851685, -0.09691150486469269, 0.01817379891872406, -0.3263266682624817, -0.09584111720323563, 0.2624133825302124, 0.014277171343564987, -0.18183335661888123, 0.11878951638936996, -0.13927540183067322, 0.13527047634124756, -0.08650035411119461, -0.3221997022628784, -0.07926175743341446, -0.2078350931406021, 0.23268449306488037, 0.04895450547337532, 0.20593494176864624, 0.17169632017612457, 0.2284080684185028, 0.29769930243492126, 0.19342714548110962, 0.14200754463672638, 0.22117117047309875, -0.12384195625782013, -0.18413497507572174, -0.03957971930503845, -0.20987486839294434, 0.07642409205436707, 0.2665187418460846, 0.7249440550804138, 0.000016886442608665675, -0.26812493801116943, 0.2511969804763794, 0.0752452164888382, 0.18141211569309235, -0.35967013239860535, 0.12584710121154785, -0.13872921466827393, -0.024045759811997414, -0.03133497014641762, -0.049077220261096954, 0.24109011888504028, -0.18416248261928558, -0.5192674994468689, 0.4703894853591919, 0.11865940690040588, -0.18995799124240875, -0.14176562428474426, -0.18004904687404633, 0.02237001433968544, 0.1239394098520279, -0.10901357233524323, 0.2535928189754486, -0.009630521759390831, 0.19746853411197662, -0.2916775047779083, 0.10603952407836914, -0.00446851784363389, -0.3400867283344269, 0.09904549270868301, -0.0991506427526474, 0.04741407185792923, 0.2200702577829361, -0.1562594175338745, -0.17335736751556396, -0.21892939507961273, 0.05677703022956848, 0.3196418881416321, 0.21419011056423187, -0.2644229233264923, 0.24016980826854706, 0.03352028876543045, -0.15193422138690948, 0.16231299936771393, 0.27738261222839355, -0.06662911921739578, -0.5298559665679932, -0.05838673561811447, 0.23166866600513458, 0.046546608209609985, -0.13872286677360535, -0.028834346681833267, 0.3151634931564331, 0.07321787625551224, -0.11367369443178177, -0.004216185305267572, 0.06337717175483704, 0.0851440280675888, -0.18330304324626923, 0.25215980410575867, 0.08517852425575256, -0.11944014579057693, 0.4502106308937073, -0.034473028033971786, -0.27494940161705017, -0.1329536885023117, 0.16644912958145142, -0.0025401567108929157, -0.02917133830487728, 0.07707030326128006, -0.21354888379573822, -0.23061488568782806, -0.3262697458267212, -0.2824385464191437, -0.1971416473388672, -0.3823763132095337, 0.11833490431308746, 0.09494825452566147, -0.14162541925907135, 0.1013837531208992, 0.2322547882795334, 0.1737825870513916, -0.07988134771585464, -0.005547414068132639, -0.2975584864616394, -0.0436733104288578, 0.27404677867889404, -0.04793457314372063, -0.09632209688425064, -0.17576588690280914, -0.0811787024140358, -0.04438361898064613, 0.08540312945842743, -0.4019530713558197, 0.0298259686678648, -0.24404847621917725, 0.09240680187940598, 0.11430186033248901, -0.13918684422969818, 0.14408741891384125, 0.1860284060239792, 0.22280417382717133, -0.04551827907562256, -0.349258154630661, -0.3369482457637787, -0.11615137755870819, 0.058056969195604324, -0.16179652512073517, 0.10616691410541534, 0.14557188749313354, 0.19917500019073486, -0.1893712282180786, 0.0767684206366539, -0.06442975997924805, 0.03269106522202492, -0.11417544633150101, 0.16690237820148468, 0.029097452759742737, 0.08357895165681839, 0.16425547003746033, -0.01824583299458027, 0.25089600682258606, 0.23284174501895905, -0.07202708721160889, 0.318204402923584, -0.027238575741648674, -0.02874988317489624, 0.21737365424633026, -0.06027764827013016, 0.23800289630889893, -0.11678867042064667, 0.20206855237483978, -0.0019480327609926462, 0.15875577926635742, 0.18321947753429413, 0.3904413878917694, 0.33041560649871826, -0.2261853963136673, -0.0899350568652153, -0.07023052126169205, 0.33029308915138245, -0.2983527183532715, 0.008816570974886417, -0.199090376496315, 0.12544763088226318, 0.1959921270608902, 0.11982166022062302, 0.19343049824237823, -0.10349354892969131, 0.6223946213722229, 0.2369834929704666, 0.1943972259759903, -0.05229468643665314, 0.05236982926726341, 0.03471884876489639, -0.2090582400560379, 0.09061533212661743, 0.3515644669532776, 0.22765813767910004, 0.2687918245792389, 0.31868720054626465, -0.18752959370613098, 0.22776615619659424, -0.15915079414844513, 0.08212178200483322, -0.15256719291210175, 0.02574221044778824, 0.06836163252592087, -0.08005858957767487, 0.02744380570948124, -0.18840333819389343, -0.03867208957672119, 0.15673865377902985, -0.05304994061589241, 0.136762335896492, -0.2581334114074707, 0.14315550029277802, -0.11417871713638306, -0.15972743928432465, -0.0019621315877884626, -0.1815492808818817, -0.10157829523086548, -0.16146039962768555, 0.2538164556026459, 0.3116317689418793, -0.14723536372184753, -0.014014995656907558, 0.17418251931667328, -0.23113320767879486, -0.10515764355659485, 0.02435944601893425, -0.12985055148601532, -0.17279328405857086, 0.17937876284122467, 0.2348039299249649, 0.10141751170158386, 0.12820082902908325, 0.40886521339416504, 0.45965129137039185, 0.034388601779937744, -0.1619013547897339, -0.07369925826787949, -0.35238176584243774, -0.20178574323654175, -0.12729239463806152, 0.30769768357276917, 0.21567030251026154, 0.18029601871967316, 0.2465033382177353, 0.2583933472633362, -0.3504382371902466, 0.24611157178878784, -0.037622250616550446, -0.029432840645313263, -0.21905715763568878, 0.0298810675740242, 0.16218183934688568, 0.08756767958402634, -0.17801104485988617, -0.2196497768163681, -0.5397444367408752, -0.010103452950716019, -0.2158927023410797, -0.13262499868869781, 0.02075047418475151, -0.3387152850627899, 0.15195642411708832, -0.07192756980657578, 0.22668525576591492, -0.035677675157785416, 0.1594032496213913, -0.11316045373678207, -0.09774791449308395, -0.4701968729496002, 0.20591917634010315, -0.05507645383477211, 0.04373375326395035, -0.2400238960981369, 0.05064474791288376, -0.03869940713047981, 0.3549928665161133, 0.06370139122009277, -0.2204439342021942, -0.1291353553533554, -0.43631061911582947, -0.262407511472702, 0.08166923373937607, 0.21879206597805023, -0.23907899856567383, 0.09837476909160614, -0.0032436219044029713, -0.08864175528287888, -0.4718116819858551, 0.2678165137767792, -0.07279706001281738, -0.2667320966720581, 0.14891287684440613, 0.3883853852748871, 0.25003960728645325, 0.25556156039237976, 0.5130252838134766, -0.13332314789295197, 0.35852909088134766, 0.1996467113494873, -0.27878761291503906, -0.055636726319789886, 0.10411995649337769, 0.08794552832841873, -0.006459114141762257, -0.09170179814100266, -0.3316137492656708, -0.07182440906763077, 0.4336846172809601, -0.01526203379034996, -0.209014892578125, 0.1564854383468628, 0.11449625343084335, 0.1514417678117752, 0.015557236038148403, -0.24260631203651428, 0.07074696570634842, 0.030956363305449486, 0.37996840476989746, -0.1648266613483429, -0.33219006657600403, 0.26693642139434814, 0.027752021327614784, -0.22448505461215973, -0.03217877075076103, 0.16639961302280426, 0.3746841251850128, -0.258398175239563, -0.016979167237877846, 0.1823127269744873, 0.29833483695983887, 0.22655829787254333, -0.03086276724934578, 0.358206182718277, -0.11473452299833298, -0.05738896131515503, 0.0211457721889019, 0.026121683418750763, 0.31147491931915283, -0.049956344068050385, -0.018339119851589203, -0.04801962152123451 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
> Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue. I installed seqeval, but still reported the same error. That's too bad.
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
39
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
[ -0.41675522923469543, 0.027540920302271843, -0.2510954737663269, -0.053035348653793335, 0.32158368825912476, -0.15092706680297852, 0.04854653403162956, 0.16240526735782623, 0.06525202095508575, 0.30983853340148926, -0.08387104421854019, 0.26748383045196533, -0.032192036509513855, 0.15686030685901642, -0.08237872272729874, -0.07425018399953842, -0.24421687424182892, 0.1586361974477768, -0.09902515262365341, -0.11987370252609253, -0.22038908302783966, 0.3180543780326843, -0.2764386236667633, 0.1745409071445465, 0.14211447536945343, 0.07353005558252335, 0.25798535346984863, -0.04215719550848007, -0.5106651186943054, -0.2723649740219116, 0.09656952321529388, 0.07929233461618423, -0.14991798996925354, 0.22851575911045074, -0.00010390800889581442, -0.11019646376371384, 0.2552398145198822, -0.07145446538925171, 0.1074167788028717, -0.27844932675361633, -0.279013067483902, -0.4674667418003082, 0.1887589544057846, -0.28839898109436035, -0.12135066837072372, -0.003426596522331238, -0.057236891239881516, -0.15128964185714722, 0.1908685266971588, 0.5563839673995972, 0.3634546399116516, 0.015942562371492386, 0.29009780287742615, -0.2749340832233429, 0.05870071426033974, -0.3622947931289673, 0.09242074191570282, 0.32398101687431335, 0.08621546626091003, 0.19535279273986816, 0.10209718346595764, 0.27008873224258423, -0.049072712659835815, 0.06522341817617416, 0.08671832829713821, -0.20732037723064423, 0.3173922896385193, -0.12860147655010223, 0.022131554782390594, 0.005323356483131647, 0.2954908013343811, -0.24808014929294586, -0.004822417628020048, 0.3959144353866577, -0.03894231840968132, -0.5455911159515381, -0.05852320417761803, -0.05979529395699501, 0.07217099517583847, -0.07462463527917862, -0.07643834501504898, -0.06078243628144264, -0.3344632089138031, 0.12867103517055511, -0.2968931496143341, 0.3577006459236145, -0.175848588347435, 0.0032559249084442854, 0.1773156225681305, -0.24853789806365967, -0.14922337234020233, 0.37320202589035034, 0.03340419381856918, 0.08242861926555634, -0.18565073609352112, 0.027492741122841835, 0.08424921333789825, 0.07119668275117874, 0.05335810035467148, 0.04920239746570587, -0.2085018903017044, 0.1338834911584854, 0.3550044298171997, 0.29046425223350525, -0.11212234944105148, 0.5971264243125916, 0.31021955609321594, 0.19174207746982574, 0.20437368750572205, 0.1945798695087433, -0.05099504813551903, -0.21506725251674652, 0.049749817699193954, -0.5417318344116211, -0.06965602934360504, 0.2050076723098755, -0.04729233682155609, -0.33068129420280457, -0.4385610520839691, -0.07769471406936646, 0.04775374382734299, -0.08177545666694641, 0.34632816910743713, 0.2882708013057709, -0.017422262579202652, -0.18694591522216797, 0.1284056156873703, 0.44615960121154785, -0.21186330914497375, -0.017382832244038582, -0.19141831994056702, 0.3973478376865387, -0.009962926618754864, -0.3503825068473816, 0.05918547138571739, -0.06570292264223099, 0.29688552021980286, -0.1592058539390564, 0.3032929599285126, 0.06560706347227097, 0.21214203536510468, 0.039218731224536896, -0.2650286853313446, 0.19171582162380219, 0.13238883018493652, -0.2012615203857422, 0.23038706183433533, -0.18956565856933594, -0.21029719710350037, -0.0915692001581192, -0.28584837913513184, -0.2779426872730255, -0.007033267058432102, 0.3506714701652527, -0.05876799300312996, -0.18117401003837585, 0.30173444747924805, 0.13468237221240997, -0.19454644620418549, -0.31175827980041504, -0.1710641235113144, -0.022683611139655113, -0.12045318633317947, -0.032707005739212036, 0.20568358898162842, -0.17207811772823334, -0.44196802377700806, -0.20034436881542206, -0.24963217973709106, -0.1368652731180191, 0.1352493017911911, 0.07095161080360413, 0.07277978956699371, 0.13746443390846252, 0.16028816998004913, 0.1297004222869873, 0.7688165903091431, -0.6260377168655396, -0.31038492918014526, -0.01920953579246998, 0.143930584192276, -0.6138864159584045, 0.05125820264220238, -0.2482578605413437, 0.31986695528030396, 0.18744516372680664, 0.08387760072946548, 0.07108420133590698, 0.1257173866033554, -0.24865588545799255, -0.16426748037338257, -0.1081283688545227, -0.20563866198062897, 0.13371604681015015, 0.39237603545188904, 0.02829417586326599, 0.35373857617378235, 0.12181813269853592, -0.315688818693161, -0.05998024344444275, 0.016000235453248024, 0.16383576393127441, 0.38683977723121643, -0.07926985621452332, 0.09247829765081406, -0.1840900182723999, 0.45248207449913025, -0.07908336073160172, -0.14541521668434143, 0.06738906353712082, 0.0581844188272953, 0.03219035267829895, -0.6098834872245789, 0.011342517100274563, -0.03765931725502014, -0.0385989248752594, 0.33127161860466003, -0.27673691511154175, 0.24253280460834503, 0.23902003467082977, 0.003956945147365332, -0.1119358167052269, 0.2628291845321655, 0.03441579267382622, 0.07172286510467529, -0.12564605474472046, -0.3507295548915863, -0.06789904832839966, 0.22247183322906494, 0.36144062876701355, 0.1637120395898819, 0.0970727950334549, 0.010623583570122719, 0.20609281957149506, -0.21451117098331451, 0.13622938096523285, 0.14069055020809174, 0.19098010659217834, 0.03503387048840523, -0.2622738778591156, 0.1466570347547531, -0.08344382792711258, 0.09148028492927551, 0.10928690433502197, -0.014259260147809982, 0.23404063284397125, -0.08930258452892303, 0.11092509329319, -0.005619308911263943, 0.199727863073349, 0.35228869318962097, -0.08716532588005066, -0.15125761926174164, -0.3852752447128296, 0.4719978868961334, -0.24026940762996674, 0.13616523146629333, -0.4211151897907257, 0.22144755721092224, -0.22566406428813934, 0.25216594338417053, 0.11528337001800537, 0.29949572682380676, 0.012834484688937664, 0.09481862187385559, 0.09310681372880936, -0.022188663482666016, -0.15900109708309174, 0.21519926190376282, 0.2790392339229584, 0.023610534146428108, 0.05721571668982506, -0.0675438940525055, -0.18634863197803497, 0.17211602628231049, 0.052303873002529144, -0.25020578503608704, 0.3074663281440735, 0.006748002488166094, -0.2490176409482956, -0.2800571024417877, -0.05637736991047859, -0.24275842308998108, 0.19980089366436005, -0.15685182809829712, 0.16698500514030457, -0.24876408278942108, 0.10184012353420258, 0.11571988463401794, -0.34142762422561646, -0.08139804005622864, -0.42278069257736206, 0.2282131463289261, -0.08200248330831528, 0.033648110926151276, 0.2987365126609802, 0.22047117352485657, 0.1268409788608551, 0.24080197513103485, -0.07613340020179749, -0.12589940428733826, -0.3825855553150177, 0.03732945770025253, 0.23819215595722198, -0.162379652261734, 0.1775464415550232, 0.3207966685295105, -0.3435415029525757, 0.4247748553752899, -0.07132857292890549, -0.5249403119087219, 0.014101047068834305, -0.18488775193691254, 0.6352327466011047, 0.31282782554626465, -0.21214883029460907, -0.059566400945186615, 0.009876212105154991, 0.23410288989543915, -0.252076119184494, 0.05337679013609886, 0.3274463415145874, -0.34600967168807983, -0.10966454446315765, -0.1735105812549591, -0.28954651951789856, -0.17907017469406128, -0.47182032465934753, 0.08324436843395233, 0.33871641755104065, -0.07323314249515533, -0.07118267565965652, 0.002418654737994075, 0.23248541355133057, 0.13034647703170776, 0.28245046734809875, -0.19733698666095734, 0.11011229455471039, 0.34864383935928345, -0.2179943323135376, -0.27123427391052246, 0.2637709081172943, -0.09586291760206223, 0.6406808495521545, -0.21533654630184174, -0.15828974545001984, -0.4564114809036255, 0.13929225504398346, 0.05723050236701965, 0.09554319083690643, 0.05851411819458008, 0.25271785259246826, 0.002373039023950696, -0.1634347140789032, -0.26517799496650696, -0.19059279561042786, 0.018359486013650894, -0.0010095626348629594, 0.019038552418351173, -0.2482185810804367, 0.6285089254379272, 0.005807893350720406, 0.3810456693172455, -0.17089247703552246, 0.2569108009338379, 0.19065739214420319, -0.07000484317541122, 0.359887033700943, 0.14364434778690338, -0.221164271235466, 0.06084961071610451, 0.2831035554409027, 0.004022615030407906, 0.21932606399059296, -0.10191070288419724, 0.14670366048812866, -0.3420071005821228, -0.040689315646886826, -0.14645691215991974, 0.07730971276760101, -0.21749351918697357, 0.15524820983409882, 0.16375859081745148, 0.14789460599422455, -0.033239103853702545, -0.06255780905485153, -0.05104495957493782, 0.05846817418932915, 0.2557469606399536, -0.30432310700416565, 0.025321021676063538, -0.12161792069673538, -0.19758695363998413, -0.342425137758255, 0.4330677092075348, -0.3046341836452484, -0.22316129505634308, -0.17532879114151, -0.010731001384556293, 0.01068897731602192, -0.09149428457021713, 0.21408283710479736, -0.11172739416360855, -0.17796455323696136, 0.26965585350990295, -0.03320438787341118, -0.468347430229187, 0.12718544900417328, -0.43963608145713806, -0.057507310062646866, 0.2821334898471832, 0.060763198882341385, -0.3862977921962738, 0.22782747447490692, 0.3623233139514923, 0.07968074083328247, -0.2082468420267105, 0.06431379169225693, -0.3555910587310791, -0.3295179605484009, -0.3449433147907257, 0.07415377348661423, -0.12451852858066559, 0.3520359396934509, 0.28663167357444763, 0.3210482895374298, -0.1277715563774109, -0.33303341269493103, 0.025538945570588112, 0.23365195095539093, 0.24468283355236053, -0.38497477769851685, -0.09691150486469269, 0.01817379891872406, -0.3263266682624817, -0.09584111720323563, 0.2624133825302124, 0.014277171343564987, -0.18183335661888123, 0.11878951638936996, -0.13927540183067322, 0.13527047634124756, -0.08650035411119461, -0.3221997022628784, -0.07926175743341446, -0.2078350931406021, 0.23268449306488037, 0.04895450547337532, 0.20593494176864624, 0.17169632017612457, 0.2284080684185028, 0.29769930243492126, 0.19342714548110962, 0.14200754463672638, 0.22117117047309875, -0.12384195625782013, -0.18413497507572174, -0.03957971930503845, -0.20987486839294434, 0.07642409205436707, 0.2665187418460846, 0.7249440550804138, 0.000016886442608665675, -0.26812493801116943, 0.2511969804763794, 0.0752452164888382, 0.18141211569309235, -0.35967013239860535, 0.12584710121154785, -0.13872921466827393, -0.024045759811997414, -0.03133497014641762, -0.049077220261096954, 0.24109011888504028, -0.18416248261928558, -0.5192674994468689, 0.4703894853591919, 0.11865940690040588, -0.18995799124240875, -0.14176562428474426, -0.18004904687404633, 0.02237001433968544, 0.1239394098520279, -0.10901357233524323, 0.2535928189754486, -0.009630521759390831, 0.19746853411197662, -0.2916775047779083, 0.10603952407836914, -0.00446851784363389, -0.3400867283344269, 0.09904549270868301, -0.0991506427526474, 0.04741407185792923, 0.2200702577829361, -0.1562594175338745, -0.17335736751556396, -0.21892939507961273, 0.05677703022956848, 0.3196418881416321, 0.21419011056423187, -0.2644229233264923, 0.24016980826854706, 0.03352028876543045, -0.15193422138690948, 0.16231299936771393, 0.27738261222839355, -0.06662911921739578, -0.5298559665679932, -0.05838673561811447, 0.23166866600513458, 0.046546608209609985, -0.13872286677360535, -0.028834346681833267, 0.3151634931564331, 0.07321787625551224, -0.11367369443178177, -0.004216185305267572, 0.06337717175483704, 0.0851440280675888, -0.18330304324626923, 0.25215980410575867, 0.08517852425575256, -0.11944014579057693, 0.4502106308937073, -0.034473028033971786, -0.27494940161705017, -0.1329536885023117, 0.16644912958145142, -0.0025401567108929157, -0.02917133830487728, 0.07707030326128006, -0.21354888379573822, -0.23061488568782806, -0.3262697458267212, -0.2824385464191437, -0.1971416473388672, -0.3823763132095337, 0.11833490431308746, 0.09494825452566147, -0.14162541925907135, 0.1013837531208992, 0.2322547882795334, 0.1737825870513916, -0.07988134771585464, -0.005547414068132639, -0.2975584864616394, -0.0436733104288578, 0.27404677867889404, -0.04793457314372063, -0.09632209688425064, -0.17576588690280914, -0.0811787024140358, -0.04438361898064613, 0.08540312945842743, -0.4019530713558197, 0.0298259686678648, -0.24404847621917725, 0.09240680187940598, 0.11430186033248901, -0.13918684422969818, 0.14408741891384125, 0.1860284060239792, 0.22280417382717133, -0.04551827907562256, -0.349258154630661, -0.3369482457637787, -0.11615137755870819, 0.058056969195604324, -0.16179652512073517, 0.10616691410541534, 0.14557188749313354, 0.19917500019073486, -0.1893712282180786, 0.0767684206366539, -0.06442975997924805, 0.03269106522202492, -0.11417544633150101, 0.16690237820148468, 0.029097452759742737, 0.08357895165681839, 0.16425547003746033, -0.01824583299458027, 0.25089600682258606, 0.23284174501895905, -0.07202708721160889, 0.318204402923584, -0.027238575741648674, -0.02874988317489624, 0.21737365424633026, -0.06027764827013016, 0.23800289630889893, -0.11678867042064667, 0.20206855237483978, -0.0019480327609926462, 0.15875577926635742, 0.18321947753429413, 0.3904413878917694, 0.33041560649871826, -0.2261853963136673, -0.0899350568652153, -0.07023052126169205, 0.33029308915138245, -0.2983527183532715, 0.008816570974886417, -0.199090376496315, 0.12544763088226318, 0.1959921270608902, 0.11982166022062302, 0.19343049824237823, -0.10349354892969131, 0.6223946213722229, 0.2369834929704666, 0.1943972259759903, -0.05229468643665314, 0.05236982926726341, 0.03471884876489639, -0.2090582400560379, 0.09061533212661743, 0.3515644669532776, 0.22765813767910004, 0.2687918245792389, 0.31868720054626465, -0.18752959370613098, 0.22776615619659424, -0.15915079414844513, 0.08212178200483322, -0.15256719291210175, 0.02574221044778824, 0.06836163252592087, -0.08005858957767487, 0.02744380570948124, -0.18840333819389343, -0.03867208957672119, 0.15673865377902985, -0.05304994061589241, 0.136762335896492, -0.2581334114074707, 0.14315550029277802, -0.11417871713638306, -0.15972743928432465, -0.0019621315877884626, -0.1815492808818817, -0.10157829523086548, -0.16146039962768555, 0.2538164556026459, 0.3116317689418793, -0.14723536372184753, -0.014014995656907558, 0.17418251931667328, -0.23113320767879486, -0.10515764355659485, 0.02435944601893425, -0.12985055148601532, -0.17279328405857086, 0.17937876284122467, 0.2348039299249649, 0.10141751170158386, 0.12820082902908325, 0.40886521339416504, 0.45965129137039185, 0.034388601779937744, -0.1619013547897339, -0.07369925826787949, -0.35238176584243774, -0.20178574323654175, -0.12729239463806152, 0.30769768357276917, 0.21567030251026154, 0.18029601871967316, 0.2465033382177353, 0.2583933472633362, -0.3504382371902466, 0.24611157178878784, -0.037622250616550446, -0.029432840645313263, -0.21905715763568878, 0.0298810675740242, 0.16218183934688568, 0.08756767958402634, -0.17801104485988617, -0.2196497768163681, -0.5397444367408752, -0.010103452950716019, -0.2158927023410797, -0.13262499868869781, 0.02075047418475151, -0.3387152850627899, 0.15195642411708832, -0.07192756980657578, 0.22668525576591492, -0.035677675157785416, 0.1594032496213913, -0.11316045373678207, -0.09774791449308395, -0.4701968729496002, 0.20591917634010315, -0.05507645383477211, 0.04373375326395035, -0.2400238960981369, 0.05064474791288376, -0.03869940713047981, 0.3549928665161133, 0.06370139122009277, -0.2204439342021942, -0.1291353553533554, -0.43631061911582947, -0.262407511472702, 0.08166923373937607, 0.21879206597805023, -0.23907899856567383, 0.09837476909160614, -0.0032436219044029713, -0.08864175528287888, -0.4718116819858551, 0.2678165137767792, -0.07279706001281738, -0.2667320966720581, 0.14891287684440613, 0.3883853852748871, 0.25003960728645325, 0.25556156039237976, 0.5130252838134766, -0.13332314789295197, 0.35852909088134766, 0.1996467113494873, -0.27878761291503906, -0.055636726319789886, 0.10411995649337769, 0.08794552832841873, -0.006459114141762257, -0.09170179814100266, -0.3316137492656708, -0.07182440906763077, 0.4336846172809601, -0.01526203379034996, -0.209014892578125, 0.1564854383468628, 0.11449625343084335, 0.1514417678117752, 0.015557236038148403, -0.24260631203651428, 0.07074696570634842, 0.030956363305449486, 0.37996840476989746, -0.1648266613483429, -0.33219006657600403, 0.26693642139434814, 0.027752021327614784, -0.22448505461215973, -0.03217877075076103, 0.16639961302280426, 0.3746841251850128, -0.258398175239563, -0.016979167237877846, 0.1823127269744873, 0.29833483695983887, 0.22655829787254333, -0.03086276724934578, 0.358206182718277, -0.11473452299833298, -0.05738896131515503, 0.0211457721889019, 0.026121683418750763, 0.31147491931915283, -0.049956344068050385, -0.018339119851589203, -0.04801962152123451 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
> > Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue. > > I installed seqeval, but still reported the same error. That's too bad. Same issue here. What should I do to fix this error? Please help! Thank you.
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
57
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
[ -0.41675522923469543, 0.027540920302271843, -0.2510954737663269, -0.053035348653793335, 0.32158368825912476, -0.15092706680297852, 0.04854653403162956, 0.16240526735782623, 0.06525202095508575, 0.30983853340148926, -0.08387104421854019, 0.26748383045196533, -0.032192036509513855, 0.15686030685901642, -0.08237872272729874, -0.07425018399953842, -0.24421687424182892, 0.1586361974477768, -0.09902515262365341, -0.11987370252609253, -0.22038908302783966, 0.3180543780326843, -0.2764386236667633, 0.1745409071445465, 0.14211447536945343, 0.07353005558252335, 0.25798535346984863, -0.04215719550848007, -0.5106651186943054, -0.2723649740219116, 0.09656952321529388, 0.07929233461618423, -0.14991798996925354, 0.22851575911045074, -0.00010390800889581442, -0.11019646376371384, 0.2552398145198822, -0.07145446538925171, 0.1074167788028717, -0.27844932675361633, -0.279013067483902, -0.4674667418003082, 0.1887589544057846, -0.28839898109436035, -0.12135066837072372, -0.003426596522331238, -0.057236891239881516, -0.15128964185714722, 0.1908685266971588, 0.5563839673995972, 0.3634546399116516, 0.015942562371492386, 0.29009780287742615, -0.2749340832233429, 0.05870071426033974, -0.3622947931289673, 0.09242074191570282, 0.32398101687431335, 0.08621546626091003, 0.19535279273986816, 0.10209718346595764, 0.27008873224258423, -0.049072712659835815, 0.06522341817617416, 0.08671832829713821, -0.20732037723064423, 0.3173922896385193, -0.12860147655010223, 0.022131554782390594, 0.005323356483131647, 0.2954908013343811, -0.24808014929294586, -0.004822417628020048, 0.3959144353866577, -0.03894231840968132, -0.5455911159515381, -0.05852320417761803, -0.05979529395699501, 0.07217099517583847, -0.07462463527917862, -0.07643834501504898, -0.06078243628144264, -0.3344632089138031, 0.12867103517055511, -0.2968931496143341, 0.3577006459236145, -0.175848588347435, 0.0032559249084442854, 0.1773156225681305, -0.24853789806365967, -0.14922337234020233, 0.37320202589035034, 0.03340419381856918, 0.08242861926555634, -0.18565073609352112, 0.027492741122841835, 0.08424921333789825, 0.07119668275117874, 0.05335810035467148, 0.04920239746570587, -0.2085018903017044, 0.1338834911584854, 0.3550044298171997, 0.29046425223350525, -0.11212234944105148, 0.5971264243125916, 0.31021955609321594, 0.19174207746982574, 0.20437368750572205, 0.1945798695087433, -0.05099504813551903, -0.21506725251674652, 0.049749817699193954, -0.5417318344116211, -0.06965602934360504, 0.2050076723098755, -0.04729233682155609, -0.33068129420280457, -0.4385610520839691, -0.07769471406936646, 0.04775374382734299, -0.08177545666694641, 0.34632816910743713, 0.2882708013057709, -0.017422262579202652, -0.18694591522216797, 0.1284056156873703, 0.44615960121154785, -0.21186330914497375, -0.017382832244038582, -0.19141831994056702, 0.3973478376865387, -0.009962926618754864, -0.3503825068473816, 0.05918547138571739, -0.06570292264223099, 0.29688552021980286, -0.1592058539390564, 0.3032929599285126, 0.06560706347227097, 0.21214203536510468, 0.039218731224536896, -0.2650286853313446, 0.19171582162380219, 0.13238883018493652, -0.2012615203857422, 0.23038706183433533, -0.18956565856933594, -0.21029719710350037, -0.0915692001581192, -0.28584837913513184, -0.2779426872730255, -0.007033267058432102, 0.3506714701652527, -0.05876799300312996, -0.18117401003837585, 0.30173444747924805, 0.13468237221240997, -0.19454644620418549, -0.31175827980041504, -0.1710641235113144, -0.022683611139655113, -0.12045318633317947, -0.032707005739212036, 0.20568358898162842, -0.17207811772823334, -0.44196802377700806, -0.20034436881542206, -0.24963217973709106, -0.1368652731180191, 0.1352493017911911, 0.07095161080360413, 0.07277978956699371, 0.13746443390846252, 0.16028816998004913, 0.1297004222869873, 0.7688165903091431, -0.6260377168655396, -0.31038492918014526, -0.01920953579246998, 0.143930584192276, -0.6138864159584045, 0.05125820264220238, -0.2482578605413437, 0.31986695528030396, 0.18744516372680664, 0.08387760072946548, 0.07108420133590698, 0.1257173866033554, -0.24865588545799255, -0.16426748037338257, -0.1081283688545227, -0.20563866198062897, 0.13371604681015015, 0.39237603545188904, 0.02829417586326599, 0.35373857617378235, 0.12181813269853592, -0.315688818693161, -0.05998024344444275, 0.016000235453248024, 0.16383576393127441, 0.38683977723121643, -0.07926985621452332, 0.09247829765081406, -0.1840900182723999, 0.45248207449913025, -0.07908336073160172, -0.14541521668434143, 0.06738906353712082, 0.0581844188272953, 0.03219035267829895, -0.6098834872245789, 0.011342517100274563, -0.03765931725502014, -0.0385989248752594, 0.33127161860466003, -0.27673691511154175, 0.24253280460834503, 0.23902003467082977, 0.003956945147365332, -0.1119358167052269, 0.2628291845321655, 0.03441579267382622, 0.07172286510467529, -0.12564605474472046, -0.3507295548915863, -0.06789904832839966, 0.22247183322906494, 0.36144062876701355, 0.1637120395898819, 0.0970727950334549, 0.010623583570122719, 0.20609281957149506, -0.21451117098331451, 0.13622938096523285, 0.14069055020809174, 0.19098010659217834, 0.03503387048840523, -0.2622738778591156, 0.1466570347547531, -0.08344382792711258, 0.09148028492927551, 0.10928690433502197, -0.014259260147809982, 0.23404063284397125, -0.08930258452892303, 0.11092509329319, -0.005619308911263943, 0.199727863073349, 0.35228869318962097, -0.08716532588005066, -0.15125761926174164, -0.3852752447128296, 0.4719978868961334, -0.24026940762996674, 0.13616523146629333, -0.4211151897907257, 0.22144755721092224, -0.22566406428813934, 0.25216594338417053, 0.11528337001800537, 0.29949572682380676, 0.012834484688937664, 0.09481862187385559, 0.09310681372880936, -0.022188663482666016, -0.15900109708309174, 0.21519926190376282, 0.2790392339229584, 0.023610534146428108, 0.05721571668982506, -0.0675438940525055, -0.18634863197803497, 0.17211602628231049, 0.052303873002529144, -0.25020578503608704, 0.3074663281440735, 0.006748002488166094, -0.2490176409482956, -0.2800571024417877, -0.05637736991047859, -0.24275842308998108, 0.19980089366436005, -0.15685182809829712, 0.16698500514030457, -0.24876408278942108, 0.10184012353420258, 0.11571988463401794, -0.34142762422561646, -0.08139804005622864, -0.42278069257736206, 0.2282131463289261, -0.08200248330831528, 0.033648110926151276, 0.2987365126609802, 0.22047117352485657, 0.1268409788608551, 0.24080197513103485, -0.07613340020179749, -0.12589940428733826, -0.3825855553150177, 0.03732945770025253, 0.23819215595722198, -0.162379652261734, 0.1775464415550232, 0.3207966685295105, -0.3435415029525757, 0.4247748553752899, -0.07132857292890549, -0.5249403119087219, 0.014101047068834305, -0.18488775193691254, 0.6352327466011047, 0.31282782554626465, -0.21214883029460907, -0.059566400945186615, 0.009876212105154991, 0.23410288989543915, -0.252076119184494, 0.05337679013609886, 0.3274463415145874, -0.34600967168807983, -0.10966454446315765, -0.1735105812549591, -0.28954651951789856, -0.17907017469406128, -0.47182032465934753, 0.08324436843395233, 0.33871641755104065, -0.07323314249515533, -0.07118267565965652, 0.002418654737994075, 0.23248541355133057, 0.13034647703170776, 0.28245046734809875, -0.19733698666095734, 0.11011229455471039, 0.34864383935928345, -0.2179943323135376, -0.27123427391052246, 0.2637709081172943, -0.09586291760206223, 0.6406808495521545, -0.21533654630184174, -0.15828974545001984, -0.4564114809036255, 0.13929225504398346, 0.05723050236701965, 0.09554319083690643, 0.05851411819458008, 0.25271785259246826, 0.002373039023950696, -0.1634347140789032, -0.26517799496650696, -0.19059279561042786, 0.018359486013650894, -0.0010095626348629594, 0.019038552418351173, -0.2482185810804367, 0.6285089254379272, 0.005807893350720406, 0.3810456693172455, -0.17089247703552246, 0.2569108009338379, 0.19065739214420319, -0.07000484317541122, 0.359887033700943, 0.14364434778690338, -0.221164271235466, 0.06084961071610451, 0.2831035554409027, 0.004022615030407906, 0.21932606399059296, -0.10191070288419724, 0.14670366048812866, -0.3420071005821228, -0.040689315646886826, -0.14645691215991974, 0.07730971276760101, -0.21749351918697357, 0.15524820983409882, 0.16375859081745148, 0.14789460599422455, -0.033239103853702545, -0.06255780905485153, -0.05104495957493782, 0.05846817418932915, 0.2557469606399536, -0.30432310700416565, 0.025321021676063538, -0.12161792069673538, -0.19758695363998413, -0.342425137758255, 0.4330677092075348, -0.3046341836452484, -0.22316129505634308, -0.17532879114151, -0.010731001384556293, 0.01068897731602192, -0.09149428457021713, 0.21408283710479736, -0.11172739416360855, -0.17796455323696136, 0.26965585350990295, -0.03320438787341118, -0.468347430229187, 0.12718544900417328, -0.43963608145713806, -0.057507310062646866, 0.2821334898471832, 0.060763198882341385, -0.3862977921962738, 0.22782747447490692, 0.3623233139514923, 0.07968074083328247, -0.2082468420267105, 0.06431379169225693, -0.3555910587310791, -0.3295179605484009, -0.3449433147907257, 0.07415377348661423, -0.12451852858066559, 0.3520359396934509, 0.28663167357444763, 0.3210482895374298, -0.1277715563774109, -0.33303341269493103, 0.025538945570588112, 0.23365195095539093, 0.24468283355236053, -0.38497477769851685, -0.09691150486469269, 0.01817379891872406, -0.3263266682624817, -0.09584111720323563, 0.2624133825302124, 0.014277171343564987, -0.18183335661888123, 0.11878951638936996, -0.13927540183067322, 0.13527047634124756, -0.08650035411119461, -0.3221997022628784, -0.07926175743341446, -0.2078350931406021, 0.23268449306488037, 0.04895450547337532, 0.20593494176864624, 0.17169632017612457, 0.2284080684185028, 0.29769930243492126, 0.19342714548110962, 0.14200754463672638, 0.22117117047309875, -0.12384195625782013, -0.18413497507572174, -0.03957971930503845, -0.20987486839294434, 0.07642409205436707, 0.2665187418460846, 0.7249440550804138, 0.000016886442608665675, -0.26812493801116943, 0.2511969804763794, 0.0752452164888382, 0.18141211569309235, -0.35967013239860535, 0.12584710121154785, -0.13872921466827393, -0.024045759811997414, -0.03133497014641762, -0.049077220261096954, 0.24109011888504028, -0.18416248261928558, -0.5192674994468689, 0.4703894853591919, 0.11865940690040588, -0.18995799124240875, -0.14176562428474426, -0.18004904687404633, 0.02237001433968544, 0.1239394098520279, -0.10901357233524323, 0.2535928189754486, -0.009630521759390831, 0.19746853411197662, -0.2916775047779083, 0.10603952407836914, -0.00446851784363389, -0.3400867283344269, 0.09904549270868301, -0.0991506427526474, 0.04741407185792923, 0.2200702577829361, -0.1562594175338745, -0.17335736751556396, -0.21892939507961273, 0.05677703022956848, 0.3196418881416321, 0.21419011056423187, -0.2644229233264923, 0.24016980826854706, 0.03352028876543045, -0.15193422138690948, 0.16231299936771393, 0.27738261222839355, -0.06662911921739578, -0.5298559665679932, -0.05838673561811447, 0.23166866600513458, 0.046546608209609985, -0.13872286677360535, -0.028834346681833267, 0.3151634931564331, 0.07321787625551224, -0.11367369443178177, -0.004216185305267572, 0.06337717175483704, 0.0851440280675888, -0.18330304324626923, 0.25215980410575867, 0.08517852425575256, -0.11944014579057693, 0.4502106308937073, -0.034473028033971786, -0.27494940161705017, -0.1329536885023117, 0.16644912958145142, -0.0025401567108929157, -0.02917133830487728, 0.07707030326128006, -0.21354888379573822, -0.23061488568782806, -0.3262697458267212, -0.2824385464191437, -0.1971416473388672, -0.3823763132095337, 0.11833490431308746, 0.09494825452566147, -0.14162541925907135, 0.1013837531208992, 0.2322547882795334, 0.1737825870513916, -0.07988134771585464, -0.005547414068132639, -0.2975584864616394, -0.0436733104288578, 0.27404677867889404, -0.04793457314372063, -0.09632209688425064, -0.17576588690280914, -0.0811787024140358, -0.04438361898064613, 0.08540312945842743, -0.4019530713558197, 0.0298259686678648, -0.24404847621917725, 0.09240680187940598, 0.11430186033248901, -0.13918684422969818, 0.14408741891384125, 0.1860284060239792, 0.22280417382717133, -0.04551827907562256, -0.349258154630661, -0.3369482457637787, -0.11615137755870819, 0.058056969195604324, -0.16179652512073517, 0.10616691410541534, 0.14557188749313354, 0.19917500019073486, -0.1893712282180786, 0.0767684206366539, -0.06442975997924805, 0.03269106522202492, -0.11417544633150101, 0.16690237820148468, 0.029097452759742737, 0.08357895165681839, 0.16425547003746033, -0.01824583299458027, 0.25089600682258606, 0.23284174501895905, -0.07202708721160889, 0.318204402923584, -0.027238575741648674, -0.02874988317489624, 0.21737365424633026, -0.06027764827013016, 0.23800289630889893, -0.11678867042064667, 0.20206855237483978, -0.0019480327609926462, 0.15875577926635742, 0.18321947753429413, 0.3904413878917694, 0.33041560649871826, -0.2261853963136673, -0.0899350568652153, -0.07023052126169205, 0.33029308915138245, -0.2983527183532715, 0.008816570974886417, -0.199090376496315, 0.12544763088226318, 0.1959921270608902, 0.11982166022062302, 0.19343049824237823, -0.10349354892969131, 0.6223946213722229, 0.2369834929704666, 0.1943972259759903, -0.05229468643665314, 0.05236982926726341, 0.03471884876489639, -0.2090582400560379, 0.09061533212661743, 0.3515644669532776, 0.22765813767910004, 0.2687918245792389, 0.31868720054626465, -0.18752959370613098, 0.22776615619659424, -0.15915079414844513, 0.08212178200483322, -0.15256719291210175, 0.02574221044778824, 0.06836163252592087, -0.08005858957767487, 0.02744380570948124, -0.18840333819389343, -0.03867208957672119, 0.15673865377902985, -0.05304994061589241, 0.136762335896492, -0.2581334114074707, 0.14315550029277802, -0.11417871713638306, -0.15972743928432465, -0.0019621315877884626, -0.1815492808818817, -0.10157829523086548, -0.16146039962768555, 0.2538164556026459, 0.3116317689418793, -0.14723536372184753, -0.014014995656907558, 0.17418251931667328, -0.23113320767879486, -0.10515764355659485, 0.02435944601893425, -0.12985055148601532, -0.17279328405857086, 0.17937876284122467, 0.2348039299249649, 0.10141751170158386, 0.12820082902908325, 0.40886521339416504, 0.45965129137039185, 0.034388601779937744, -0.1619013547897339, -0.07369925826787949, -0.35238176584243774, -0.20178574323654175, -0.12729239463806152, 0.30769768357276917, 0.21567030251026154, 0.18029601871967316, 0.2465033382177353, 0.2583933472633362, -0.3504382371902466, 0.24611157178878784, -0.037622250616550446, -0.029432840645313263, -0.21905715763568878, 0.0298810675740242, 0.16218183934688568, 0.08756767958402634, -0.17801104485988617, -0.2196497768163681, -0.5397444367408752, -0.010103452950716019, -0.2158927023410797, -0.13262499868869781, 0.02075047418475151, -0.3387152850627899, 0.15195642411708832, -0.07192756980657578, 0.22668525576591492, -0.035677675157785416, 0.1594032496213913, -0.11316045373678207, -0.09774791449308395, -0.4701968729496002, 0.20591917634010315, -0.05507645383477211, 0.04373375326395035, -0.2400238960981369, 0.05064474791288376, -0.03869940713047981, 0.3549928665161133, 0.06370139122009277, -0.2204439342021942, -0.1291353553533554, -0.43631061911582947, -0.262407511472702, 0.08166923373937607, 0.21879206597805023, -0.23907899856567383, 0.09837476909160614, -0.0032436219044029713, -0.08864175528287888, -0.4718116819858551, 0.2678165137767792, -0.07279706001281738, -0.2667320966720581, 0.14891287684440613, 0.3883853852748871, 0.25003960728645325, 0.25556156039237976, 0.5130252838134766, -0.13332314789295197, 0.35852909088134766, 0.1996467113494873, -0.27878761291503906, -0.055636726319789886, 0.10411995649337769, 0.08794552832841873, -0.006459114141762257, -0.09170179814100266, -0.3316137492656708, -0.07182440906763077, 0.4336846172809601, -0.01526203379034996, -0.209014892578125, 0.1564854383468628, 0.11449625343084335, 0.1514417678117752, 0.015557236038148403, -0.24260631203651428, 0.07074696570634842, 0.030956363305449486, 0.37996840476989746, -0.1648266613483429, -0.33219006657600403, 0.26693642139434814, 0.027752021327614784, -0.22448505461215973, -0.03217877075076103, 0.16639961302280426, 0.3746841251850128, -0.258398175239563, -0.016979167237877846, 0.1823127269744873, 0.29833483695983887, 0.22655829787254333, -0.03086276724934578, 0.358206182718277, -0.11473452299833298, -0.05738896131515503, 0.0211457721889019, 0.026121683418750763, 0.31147491931915283, -0.049956344068050385, -0.018339119851589203, -0.04801962152123451 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
I tried to install **seqeval** package through anaconda instead of pip: `conda install -c conda-forge seqeval` It worked for me!
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
20
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
[ -0.41675522923469543, 0.027540920302271843, -0.2510954737663269, -0.053035348653793335, 0.32158368825912476, -0.15092706680297852, 0.04854653403162956, 0.16240526735782623, 0.06525202095508575, 0.30983853340148926, -0.08387104421854019, 0.26748383045196533, -0.032192036509513855, 0.15686030685901642, -0.08237872272729874, -0.07425018399953842, -0.24421687424182892, 0.1586361974477768, -0.09902515262365341, -0.11987370252609253, -0.22038908302783966, 0.3180543780326843, -0.2764386236667633, 0.1745409071445465, 0.14211447536945343, 0.07353005558252335, 0.25798535346984863, -0.04215719550848007, -0.5106651186943054, -0.2723649740219116, 0.09656952321529388, 0.07929233461618423, -0.14991798996925354, 0.22851575911045074, -0.00010390800889581442, -0.11019646376371384, 0.2552398145198822, -0.07145446538925171, 0.1074167788028717, -0.27844932675361633, -0.279013067483902, -0.4674667418003082, 0.1887589544057846, -0.28839898109436035, -0.12135066837072372, -0.003426596522331238, -0.057236891239881516, -0.15128964185714722, 0.1908685266971588, 0.5563839673995972, 0.3634546399116516, 0.015942562371492386, 0.29009780287742615, -0.2749340832233429, 0.05870071426033974, -0.3622947931289673, 0.09242074191570282, 0.32398101687431335, 0.08621546626091003, 0.19535279273986816, 0.10209718346595764, 0.27008873224258423, -0.049072712659835815, 0.06522341817617416, 0.08671832829713821, -0.20732037723064423, 0.3173922896385193, -0.12860147655010223, 0.022131554782390594, 0.005323356483131647, 0.2954908013343811, -0.24808014929294586, -0.004822417628020048, 0.3959144353866577, -0.03894231840968132, -0.5455911159515381, -0.05852320417761803, -0.05979529395699501, 0.07217099517583847, -0.07462463527917862, -0.07643834501504898, -0.06078243628144264, -0.3344632089138031, 0.12867103517055511, -0.2968931496143341, 0.3577006459236145, -0.175848588347435, 0.0032559249084442854, 0.1773156225681305, -0.24853789806365967, -0.14922337234020233, 0.37320202589035034, 0.03340419381856918, 0.08242861926555634, -0.18565073609352112, 0.027492741122841835, 0.08424921333789825, 0.07119668275117874, 0.05335810035467148, 0.04920239746570587, -0.2085018903017044, 0.1338834911584854, 0.3550044298171997, 0.29046425223350525, -0.11212234944105148, 0.5971264243125916, 0.31021955609321594, 0.19174207746982574, 0.20437368750572205, 0.1945798695087433, -0.05099504813551903, -0.21506725251674652, 0.049749817699193954, -0.5417318344116211, -0.06965602934360504, 0.2050076723098755, -0.04729233682155609, -0.33068129420280457, -0.4385610520839691, -0.07769471406936646, 0.04775374382734299, -0.08177545666694641, 0.34632816910743713, 0.2882708013057709, -0.017422262579202652, -0.18694591522216797, 0.1284056156873703, 0.44615960121154785, -0.21186330914497375, -0.017382832244038582, -0.19141831994056702, 0.3973478376865387, -0.009962926618754864, -0.3503825068473816, 0.05918547138571739, -0.06570292264223099, 0.29688552021980286, -0.1592058539390564, 0.3032929599285126, 0.06560706347227097, 0.21214203536510468, 0.039218731224536896, -0.2650286853313446, 0.19171582162380219, 0.13238883018493652, -0.2012615203857422, 0.23038706183433533, -0.18956565856933594, -0.21029719710350037, -0.0915692001581192, -0.28584837913513184, -0.2779426872730255, -0.007033267058432102, 0.3506714701652527, -0.05876799300312996, -0.18117401003837585, 0.30173444747924805, 0.13468237221240997, -0.19454644620418549, -0.31175827980041504, -0.1710641235113144, -0.022683611139655113, -0.12045318633317947, -0.032707005739212036, 0.20568358898162842, -0.17207811772823334, -0.44196802377700806, -0.20034436881542206, -0.24963217973709106, -0.1368652731180191, 0.1352493017911911, 0.07095161080360413, 0.07277978956699371, 0.13746443390846252, 0.16028816998004913, 0.1297004222869873, 0.7688165903091431, -0.6260377168655396, -0.31038492918014526, -0.01920953579246998, 0.143930584192276, -0.6138864159584045, 0.05125820264220238, -0.2482578605413437, 0.31986695528030396, 0.18744516372680664, 0.08387760072946548, 0.07108420133590698, 0.1257173866033554, -0.24865588545799255, -0.16426748037338257, -0.1081283688545227, -0.20563866198062897, 0.13371604681015015, 0.39237603545188904, 0.02829417586326599, 0.35373857617378235, 0.12181813269853592, -0.315688818693161, -0.05998024344444275, 0.016000235453248024, 0.16383576393127441, 0.38683977723121643, -0.07926985621452332, 0.09247829765081406, -0.1840900182723999, 0.45248207449913025, -0.07908336073160172, -0.14541521668434143, 0.06738906353712082, 0.0581844188272953, 0.03219035267829895, -0.6098834872245789, 0.011342517100274563, -0.03765931725502014, -0.0385989248752594, 0.33127161860466003, -0.27673691511154175, 0.24253280460834503, 0.23902003467082977, 0.003956945147365332, -0.1119358167052269, 0.2628291845321655, 0.03441579267382622, 0.07172286510467529, -0.12564605474472046, -0.3507295548915863, -0.06789904832839966, 0.22247183322906494, 0.36144062876701355, 0.1637120395898819, 0.0970727950334549, 0.010623583570122719, 0.20609281957149506, -0.21451117098331451, 0.13622938096523285, 0.14069055020809174, 0.19098010659217834, 0.03503387048840523, -0.2622738778591156, 0.1466570347547531, -0.08344382792711258, 0.09148028492927551, 0.10928690433502197, -0.014259260147809982, 0.23404063284397125, -0.08930258452892303, 0.11092509329319, -0.005619308911263943, 0.199727863073349, 0.35228869318962097, -0.08716532588005066, -0.15125761926174164, -0.3852752447128296, 0.4719978868961334, -0.24026940762996674, 0.13616523146629333, -0.4211151897907257, 0.22144755721092224, -0.22566406428813934, 0.25216594338417053, 0.11528337001800537, 0.29949572682380676, 0.012834484688937664, 0.09481862187385559, 0.09310681372880936, -0.022188663482666016, -0.15900109708309174, 0.21519926190376282, 0.2790392339229584, 0.023610534146428108, 0.05721571668982506, -0.0675438940525055, -0.18634863197803497, 0.17211602628231049, 0.052303873002529144, -0.25020578503608704, 0.3074663281440735, 0.006748002488166094, -0.2490176409482956, -0.2800571024417877, -0.05637736991047859, -0.24275842308998108, 0.19980089366436005, -0.15685182809829712, 0.16698500514030457, -0.24876408278942108, 0.10184012353420258, 0.11571988463401794, -0.34142762422561646, -0.08139804005622864, -0.42278069257736206, 0.2282131463289261, -0.08200248330831528, 0.033648110926151276, 0.2987365126609802, 0.22047117352485657, 0.1268409788608551, 0.24080197513103485, -0.07613340020179749, -0.12589940428733826, -0.3825855553150177, 0.03732945770025253, 0.23819215595722198, -0.162379652261734, 0.1775464415550232, 0.3207966685295105, -0.3435415029525757, 0.4247748553752899, -0.07132857292890549, -0.5249403119087219, 0.014101047068834305, -0.18488775193691254, 0.6352327466011047, 0.31282782554626465, -0.21214883029460907, -0.059566400945186615, 0.009876212105154991, 0.23410288989543915, -0.252076119184494, 0.05337679013609886, 0.3274463415145874, -0.34600967168807983, -0.10966454446315765, -0.1735105812549591, -0.28954651951789856, -0.17907017469406128, -0.47182032465934753, 0.08324436843395233, 0.33871641755104065, -0.07323314249515533, -0.07118267565965652, 0.002418654737994075, 0.23248541355133057, 0.13034647703170776, 0.28245046734809875, -0.19733698666095734, 0.11011229455471039, 0.34864383935928345, -0.2179943323135376, -0.27123427391052246, 0.2637709081172943, -0.09586291760206223, 0.6406808495521545, -0.21533654630184174, -0.15828974545001984, -0.4564114809036255, 0.13929225504398346, 0.05723050236701965, 0.09554319083690643, 0.05851411819458008, 0.25271785259246826, 0.002373039023950696, -0.1634347140789032, -0.26517799496650696, -0.19059279561042786, 0.018359486013650894, -0.0010095626348629594, 0.019038552418351173, -0.2482185810804367, 0.6285089254379272, 0.005807893350720406, 0.3810456693172455, -0.17089247703552246, 0.2569108009338379, 0.19065739214420319, -0.07000484317541122, 0.359887033700943, 0.14364434778690338, -0.221164271235466, 0.06084961071610451, 0.2831035554409027, 0.004022615030407906, 0.21932606399059296, -0.10191070288419724, 0.14670366048812866, -0.3420071005821228, -0.040689315646886826, -0.14645691215991974, 0.07730971276760101, -0.21749351918697357, 0.15524820983409882, 0.16375859081745148, 0.14789460599422455, -0.033239103853702545, -0.06255780905485153, -0.05104495957493782, 0.05846817418932915, 0.2557469606399536, -0.30432310700416565, 0.025321021676063538, -0.12161792069673538, -0.19758695363998413, -0.342425137758255, 0.4330677092075348, -0.3046341836452484, -0.22316129505634308, -0.17532879114151, -0.010731001384556293, 0.01068897731602192, -0.09149428457021713, 0.21408283710479736, -0.11172739416360855, -0.17796455323696136, 0.26965585350990295, -0.03320438787341118, -0.468347430229187, 0.12718544900417328, -0.43963608145713806, -0.057507310062646866, 0.2821334898471832, 0.060763198882341385, -0.3862977921962738, 0.22782747447490692, 0.3623233139514923, 0.07968074083328247, -0.2082468420267105, 0.06431379169225693, -0.3555910587310791, -0.3295179605484009, -0.3449433147907257, 0.07415377348661423, -0.12451852858066559, 0.3520359396934509, 0.28663167357444763, 0.3210482895374298, -0.1277715563774109, -0.33303341269493103, 0.025538945570588112, 0.23365195095539093, 0.24468283355236053, -0.38497477769851685, -0.09691150486469269, 0.01817379891872406, -0.3263266682624817, -0.09584111720323563, 0.2624133825302124, 0.014277171343564987, -0.18183335661888123, 0.11878951638936996, -0.13927540183067322, 0.13527047634124756, -0.08650035411119461, -0.3221997022628784, -0.07926175743341446, -0.2078350931406021, 0.23268449306488037, 0.04895450547337532, 0.20593494176864624, 0.17169632017612457, 0.2284080684185028, 0.29769930243492126, 0.19342714548110962, 0.14200754463672638, 0.22117117047309875, -0.12384195625782013, -0.18413497507572174, -0.03957971930503845, -0.20987486839294434, 0.07642409205436707, 0.2665187418460846, 0.7249440550804138, 0.000016886442608665675, -0.26812493801116943, 0.2511969804763794, 0.0752452164888382, 0.18141211569309235, -0.35967013239860535, 0.12584710121154785, -0.13872921466827393, -0.024045759811997414, -0.03133497014641762, -0.049077220261096954, 0.24109011888504028, -0.18416248261928558, -0.5192674994468689, 0.4703894853591919, 0.11865940690040588, -0.18995799124240875, -0.14176562428474426, -0.18004904687404633, 0.02237001433968544, 0.1239394098520279, -0.10901357233524323, 0.2535928189754486, -0.009630521759390831, 0.19746853411197662, -0.2916775047779083, 0.10603952407836914, -0.00446851784363389, -0.3400867283344269, 0.09904549270868301, -0.0991506427526474, 0.04741407185792923, 0.2200702577829361, -0.1562594175338745, -0.17335736751556396, -0.21892939507961273, 0.05677703022956848, 0.3196418881416321, 0.21419011056423187, -0.2644229233264923, 0.24016980826854706, 0.03352028876543045, -0.15193422138690948, 0.16231299936771393, 0.27738261222839355, -0.06662911921739578, -0.5298559665679932, -0.05838673561811447, 0.23166866600513458, 0.046546608209609985, -0.13872286677360535, -0.028834346681833267, 0.3151634931564331, 0.07321787625551224, -0.11367369443178177, -0.004216185305267572, 0.06337717175483704, 0.0851440280675888, -0.18330304324626923, 0.25215980410575867, 0.08517852425575256, -0.11944014579057693, 0.4502106308937073, -0.034473028033971786, -0.27494940161705017, -0.1329536885023117, 0.16644912958145142, -0.0025401567108929157, -0.02917133830487728, 0.07707030326128006, -0.21354888379573822, -0.23061488568782806, -0.3262697458267212, -0.2824385464191437, -0.1971416473388672, -0.3823763132095337, 0.11833490431308746, 0.09494825452566147, -0.14162541925907135, 0.1013837531208992, 0.2322547882795334, 0.1737825870513916, -0.07988134771585464, -0.005547414068132639, -0.2975584864616394, -0.0436733104288578, 0.27404677867889404, -0.04793457314372063, -0.09632209688425064, -0.17576588690280914, -0.0811787024140358, -0.04438361898064613, 0.08540312945842743, -0.4019530713558197, 0.0298259686678648, -0.24404847621917725, 0.09240680187940598, 0.11430186033248901, -0.13918684422969818, 0.14408741891384125, 0.1860284060239792, 0.22280417382717133, -0.04551827907562256, -0.349258154630661, -0.3369482457637787, -0.11615137755870819, 0.058056969195604324, -0.16179652512073517, 0.10616691410541534, 0.14557188749313354, 0.19917500019073486, -0.1893712282180786, 0.0767684206366539, -0.06442975997924805, 0.03269106522202492, -0.11417544633150101, 0.16690237820148468, 0.029097452759742737, 0.08357895165681839, 0.16425547003746033, -0.01824583299458027, 0.25089600682258606, 0.23284174501895905, -0.07202708721160889, 0.318204402923584, -0.027238575741648674, -0.02874988317489624, 0.21737365424633026, -0.06027764827013016, 0.23800289630889893, -0.11678867042064667, 0.20206855237483978, -0.0019480327609926462, 0.15875577926635742, 0.18321947753429413, 0.3904413878917694, 0.33041560649871826, -0.2261853963136673, -0.0899350568652153, -0.07023052126169205, 0.33029308915138245, -0.2983527183532715, 0.008816570974886417, -0.199090376496315, 0.12544763088226318, 0.1959921270608902, 0.11982166022062302, 0.19343049824237823, -0.10349354892969131, 0.6223946213722229, 0.2369834929704666, 0.1943972259759903, -0.05229468643665314, 0.05236982926726341, 0.03471884876489639, -0.2090582400560379, 0.09061533212661743, 0.3515644669532776, 0.22765813767910004, 0.2687918245792389, 0.31868720054626465, -0.18752959370613098, 0.22776615619659424, -0.15915079414844513, 0.08212178200483322, -0.15256719291210175, 0.02574221044778824, 0.06836163252592087, -0.08005858957767487, 0.02744380570948124, -0.18840333819389343, -0.03867208957672119, 0.15673865377902985, -0.05304994061589241, 0.136762335896492, -0.2581334114074707, 0.14315550029277802, -0.11417871713638306, -0.15972743928432465, -0.0019621315877884626, -0.1815492808818817, -0.10157829523086548, -0.16146039962768555, 0.2538164556026459, 0.3116317689418793, -0.14723536372184753, -0.014014995656907558, 0.17418251931667328, -0.23113320767879486, -0.10515764355659485, 0.02435944601893425, -0.12985055148601532, -0.17279328405857086, 0.17937876284122467, 0.2348039299249649, 0.10141751170158386, 0.12820082902908325, 0.40886521339416504, 0.45965129137039185, 0.034388601779937744, -0.1619013547897339, -0.07369925826787949, -0.35238176584243774, -0.20178574323654175, -0.12729239463806152, 0.30769768357276917, 0.21567030251026154, 0.18029601871967316, 0.2465033382177353, 0.2583933472633362, -0.3504382371902466, 0.24611157178878784, -0.037622250616550446, -0.029432840645313263, -0.21905715763568878, 0.0298810675740242, 0.16218183934688568, 0.08756767958402634, -0.17801104485988617, -0.2196497768163681, -0.5397444367408752, -0.010103452950716019, -0.2158927023410797, -0.13262499868869781, 0.02075047418475151, -0.3387152850627899, 0.15195642411708832, -0.07192756980657578, 0.22668525576591492, -0.035677675157785416, 0.1594032496213913, -0.11316045373678207, -0.09774791449308395, -0.4701968729496002, 0.20591917634010315, -0.05507645383477211, 0.04373375326395035, -0.2400238960981369, 0.05064474791288376, -0.03869940713047981, 0.3549928665161133, 0.06370139122009277, -0.2204439342021942, -0.1291353553533554, -0.43631061911582947, -0.262407511472702, 0.08166923373937607, 0.21879206597805023, -0.23907899856567383, 0.09837476909160614, -0.0032436219044029713, -0.08864175528287888, -0.4718116819858551, 0.2678165137767792, -0.07279706001281738, -0.2667320966720581, 0.14891287684440613, 0.3883853852748871, 0.25003960728645325, 0.25556156039237976, 0.5130252838134766, -0.13332314789295197, 0.35852909088134766, 0.1996467113494873, -0.27878761291503906, -0.055636726319789886, 0.10411995649337769, 0.08794552832841873, -0.006459114141762257, -0.09170179814100266, -0.3316137492656708, -0.07182440906763077, 0.4336846172809601, -0.01526203379034996, -0.209014892578125, 0.1564854383468628, 0.11449625343084335, 0.1514417678117752, 0.015557236038148403, -0.24260631203651428, 0.07074696570634842, 0.030956363305449486, 0.37996840476989746, -0.1648266613483429, -0.33219006657600403, 0.26693642139434814, 0.027752021327614784, -0.22448505461215973, -0.03217877075076103, 0.16639961302280426, 0.3746841251850128, -0.258398175239563, -0.016979167237877846, 0.1823127269744873, 0.29833483695983887, 0.22655829787254333, -0.03086276724934578, 0.358206182718277, -0.11473452299833298, -0.05738896131515503, 0.0211457721889019, 0.026121683418750763, 0.31147491931915283, -0.049956344068050385, -0.018339119851589203, -0.04801962152123451 ]
https://github.com/huggingface/datasets/issues/3688
Pyarrow version error
Hi @Zaker237, thanks for reporting. This is weird: the error you get is only thrown if the installed pyarrow version is less than 3.0.0. Could you please check that you install pyarrow in the same Python virtual environment where you installed datasets? From the Python command line (or terminal) where you get the error, please type: ``` import pyarrow print(pyarrow.__version__) import datasets print(datasets.__version__) ```
## Describe the bug I installed datasets(version 1.17.0, 1.18.0, 1.18.3) but i'm right now nor able to import it because of pyarrow. when i try to import it, i get the following error: `To use datasets, the module pyarrow>=3.0.0 is required, and the current version of pyarrow doesn't match this condition`. i tryed with all version of pyarrow execpt `4.0.0` but still get the same error. ## Steps to reproduce the bug ```python import datasets ``` ## Expected results A clear and concise description of the expected results. ## Actual results AttributeError Traceback (most recent call last) <ipython-input-19-652e886d387f> in <module> ----> 1 import datasets ~\AppData\Local\Continuum\anaconda3\lib\site-packages\datasets\__init__.py in <module> 26 27 ---> 28 if _version.parse(pyarrow.__version__).major < 3: 29 raise ImportWarning( 30 "To use `datasets`, the module `pyarrow>=3.0.0` is required, and the current version of `pyarrow` doesn't match this condition.\n" AttributeError: 'Version' object has no attribute 'major' ## Environment info Traceback (most recent call last): File "c:\users\alex\appdata\local\continuum\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\alex\appdata\local\continuum\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Alex\AppData\Local\Continuum\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 5, in <module> File "c:\users\alex\appdata\local\continuum\anaconda3\lib\site-packages\datasets\__init__.py", line 28, in <module> if _version.parse(pyarrow.__version__).major < 3: AttributeError: 'Version' object has no attribute 'major' - `datasets` version: - Platform: Linux(Ubuntu) and Windows: conda on the both - Python version: 3.7 - PyArrow version: 7.0.0
64
Pyarrow version error
[ -0.19817136228084564, 0.12095895409584045, -0.239375501871109, -0.14648425579071045, 0.21336433291435242, -0.003239734098315239, 0.12475182116031647, 0.4424278140068054, -0.4931745231151581, 0.10656821727752686, 0.0779057964682579, 0.27962157130241394, 0.031620703637599945, -0.13978996872901917, -0.01329566165804863, -0.22168153524398804, 0.14379224181175232, 0.17225642502307892, 0.04951323941349983, 0.04070591181516647, -0.08305510133504868, 0.2456495612859726, -0.24223297834396362, 0.44815337657928467, -0.16039757430553436, -0.02373187243938446, 0.04404480755329132, 0.07403335720300674, -0.3925674259662628, -0.5263980031013489, 0.12545146048069, -0.13276606798171997, 0.11050990968942642, 0.3002346158027649, -0.00010672622011043131, -0.04594835638999939, 0.4608915150165558, 0.16367091238498688, 0.03640319034457207, -0.013232089579105377, 0.38419222831726074, 0.11558054387569427, 0.1722647249698639, -0.05913213640451431, 0.14055165648460388, -0.5313019752502441, 0.19314630329608917, 0.7333831191062927, 0.2095770239830017, 0.09042172133922577, 0.3141670823097229, 0.31043195724487305, 0.46968668699264526, -0.09552289545536041, 0.6852743029594421, -0.33669498562812805, -0.05619509890675545, 0.5917324423789978, 0.0771314799785614, -0.16868534684181213, 0.05033860355615616, 0.11902670562267303, -0.06821122765541077, -0.0965985506772995, -0.02654138021171093, -0.023915398865938187, 0.54115229845047, -0.031575996428728104, 0.0008225706988014281, -0.11531011015176773, 0.2881399393081665, -0.3783712089061737, -0.12370558828115463, 0.32125964760780334, 0.08946601301431656, -0.3972206711769104, 0.19265124201774597, 0.1598014235496521, -0.104066863656044, 0.20183685421943665, 0.030728567391633987, -0.10282844305038452, -0.3398400545120239, 0.2057199776172638, -0.10537261515855789, 0.31491976976394653, 0.21040450036525726, 0.14885865151882172, -0.0033472010400146246, -0.016011057421565056, 0.24855180084705353, 0.2465749979019165, -0.06455876678228378, 0.032043036073446274, 0.24708914756774902, 0.09525462239980698, -0.06178082898259163, 0.14443600177764893, 0.11315236985683441, -0.27262261509895325, -0.10669130831956863, 0.025096843019127846, 0.4571847915649414, 0.16664238274097443, -0.05598480626940727, -0.028921905905008316, 0.08062505722045898, 0.012438652105629444, 0.2526809573173523, -0.1955758035182953, -0.008913552388548851, 0.1540558934211731, -0.13719525933265686, -0.451476126909256, 0.349037766456604, -0.017917899414896965, 0.17707644402980804, -0.039209526032209396, 0.1140606701374054, -0.09098842740058899, -0.514739990234375, -0.18221788108348846, -0.2163109928369522, 0.08830638229846954, -0.11102292686700821, -0.16409865021705627, -0.03032887727022171, 0.2089514434337616, -0.3284614086151123, -0.10817887634038925, -0.18190458416938782, 0.08630922436714172, -0.24111394584178925, -0.22280141711235046, -0.03925235942006111, -0.1853526085615158, 0.10431043058633804, 0.0786418467760086, -0.08672221004962921, 0.08685485273599625, -0.23327518999576569, 0.20335575938224792, -0.377103716135025, 0.30884960293769836, -0.06310169398784637, 0.011011219583451748, -0.16910631954669952, -0.2508830726146698, -0.08893527090549469, 0.3007436990737915, -0.05336373299360275, -0.4261687099933624, -0.3526919484138489, 0.28181570768356323, 0.09701713919639587, 0.004205404780805111, 0.1507684290409088, -0.11324280500411987, 0.1699516326189041, -0.2278875708580017, 0.0050697606056928635, -0.41525062918663025, 0.19376914203166962, -0.4365265369415283, -0.035929203033447266, -0.08777020871639252, -0.3948606252670288, -0.05944023281335831, 0.17598643898963928, -0.42896124720573425, -0.003966569434851408, 0.32872331142425537, -0.04846637696027756, 0.10465424507856369, 0.04794846102595329, 0.31323790550231934, 0.328632652759552, -0.16689829528331757, -0.5039275884628296, -0.09900260716676712, -0.030100826174020767, -0.3810616731643677, 0.029707076027989388, -0.08539481461048126, -0.07333879917860031, 0.029718676581978798, 0.08084650337696075, -0.04485831409692764, 0.18219171464443207, -0.1635005921125412, -0.3022077977657318, -0.3157646059989929, 0.04160907119512558, 0.020397620275616646, 0.12513595819473267, 0.0007162654655985534, 0.23361793160438538, -0.28589749336242676, 0.27500295639038086, -0.05123351886868477, -0.21499916911125183, -0.05955243483185768, 0.4092007577419281, 0.05293342471122742, 0.07979442924261093, -0.1459912210702896, -0.12259983271360397, -0.12349697202444077, -0.36522176861763, 0.15526309609413147, -0.19309081137180328, -0.12705819308757782, -0.24961136281490326, 0.22442127764225006, 0.05489857867360115, 0.011327382177114487, 0.258674681186676, -0.12803782522678375, 0.2548081576824188, 0.04256981611251831, -0.011903240345418453, -0.33264780044555664, 0.07422823458909988, 0.13721522688865662, 0.13523250818252563, 0.2751208245754242, -0.5282232165336609, -0.5185377597808838, 0.10799536854028702, 0.12757381796836853, 0.3557192087173462, -0.08439192920923233, 0.1268743872642517, 0.30041682720184326, -0.14819088578224182, 0.07697343826293945, -0.199894979596138, 0.04149962589144707, -0.009531927295029163, -0.3104167580604553, 0.019944602623581886, -0.017931340262293816, -0.20013536512851715, 0.275542676448822, 0.5096003413200378, 0.03141237795352936, 0.37256672978401184, -0.21603897213935852, -0.031746674329042435, -0.035695306956768036, 0.034288644790649414, 0.10026389360427856, 0.16284674406051636, -0.02548954449594021, 0.04554399475455284, 0.25135332345962524, 0.02004934847354889, -0.04738345742225647, -0.18535010516643524, -0.15948964655399323, 0.40285032987594604, -0.129285529255867, 0.1647261530160904, -0.009315413422882557, 0.06650886684656143, -0.017452700063586235, 0.030892807990312576, -0.44980838894844055, -0.09344299137592316, 0.29802295565605164, -0.21274788677692413, 0.15313507616519928, -0.22489142417907715, -0.28312861919403076, -0.0019218834349885583, -0.053386956453323364, 0.37574008107185364, 0.1836339235305786, 0.1721910685300827, -0.08827854692935944, -0.29837968945503235, 0.20849883556365967, 0.00841712485998869, 0.10859941691160202, -0.20170767605304718, -0.01755591109395027, -0.2837683856487274, -0.10010384768247604, -0.012520166113972664, -0.30253344774246216, -0.3590272068977356, 0.03836146742105484, 0.3754532039165497, 0.31219416856765747, 0.039820216596126556, 0.3575817346572876, 0.2643771171569824, -0.19251605868339539, 0.026943808421492577, -0.16535498201847076, 0.041331786662340164, -0.1823624223470688, -0.5063105821609497, 0.12720833718776703, -0.004300613421946764, -0.32021909952163696, 0.06813541054725647, -0.420513391494751, -0.18627578020095825, -0.20424969494342804, -0.5172057151794434, 0.14407117664813995, -0.19441045820713043, 0.28185799717903137, 0.37230098247528076, 0.10290344059467316, -0.08981887996196747, -0.2298247218132019, 0.36452221870422363, -0.38273951411247253, -0.16250653564929962, 0.012954102829098701, -0.1526348739862442, -0.10256580263376236, -0.09204921871423721, -0.13349339365959167, -0.1619182676076889, -0.010085713118314743, 0.2526024580001831, 0.10918385535478592, 0.1843191534280777, 0.08277694880962372, 0.313796728849411, -0.02348681353032589, -0.30011966824531555, -0.06581786274909973, 0.08564839512109756, 0.09259576350450516, 0.20840996503829956, -0.16481678187847137, -0.3703852593898773, 0.050303418189287186, -0.004098612815141678, -0.0484398752450943, 0.13136358559131622, -0.3474556505680084, -0.3168925940990448, 0.23808085918426514, 0.6784434914588928, 0.048759397119283676, -0.16170158982276917, 0.42978325486183167, 0.12403536587953568, -0.20389840006828308, -0.08186185359954834, -0.23596324026584625, -0.022202547639608383, 0.10016259551048279, 0.18938681483268738, 0.000546485825907439, -0.009202305227518082, -0.09874241054058075, 0.7093067169189453, -0.3222612142562866, -0.0867350623011589, 0.16947710514068604, -0.37277963757514954, 0.03429058566689491, -0.011365431360900402, 0.1553778350353241, -0.02453782595694065, -0.05767476558685303, -0.19187498092651367, 0.24503758549690247, -0.010072899051010609, -0.2948390245437622, -0.10468976199626923, -0.29162245988845825, -0.36863502860069275, 0.019495651125907898, -0.12781131267547607, 0.42190811038017273, 0.19317582249641418, 0.02244383841753006, 0.049826085567474365, -0.08504059910774231, -0.038355473428964615, 0.24861378967761993, 0.02554764598608017, -0.0597367137670517, 0.05743611976504326, 0.11120957136154175, -0.22145800292491913, -0.1766367107629776, 0.3834322690963745, 0.24849052727222443, -0.11450568586587906, 0.03289360925555229, -0.16024301946163177, 0.1732719987630844, -0.2548896074295044, 0.6277467608451843, 0.17193320393562317, 0.16856470704078674, 0.11126375198364258, 0.21139025688171387, -0.20301814377307892, -0.38880690932273865, -0.08706337958574295, -0.01633014902472496, 0.10986930131912231, 0.07225201278924942, -0.38369399309158325, 0.05154609680175781, 0.2570542097091675, -0.004256675019860268, 0.020941365510225296, -0.23145589232444763, -0.35875365138053894, -0.20954135060310364, -0.0013981984229758382, -0.12728717923164368, -0.11968488991260529, 0.07408413290977478, -0.1503993570804596, 0.09596014767885208, 0.21083205938339233, -0.17925669252872467, -0.35249564051628113, 0.2921213209629059, 0.14060357213020325, -0.41777676343917847, -0.313567578792572, -0.1443166583776474, -0.02068958804011345, 0.42502617835998535, 0.03394978120923042, 0.034284673631191254, -0.06862005591392517, -0.06666605919599533, 0.0614345446228981, 0.19175595045089722, 0.037159405648708344, -0.21929457783699036, 0.07326353341341019, 0.060781028121709824, 0.10685452073812485, 0.232036292552948, -0.38175132870674133, 0.6220137476921082, -0.1496410369873047, -0.010714097879827023, 0.22593671083450317, 0.3242146372795105, 0.05808873847126961, -0.041996970772743225, -0.05462055280804634, 0.10334238409996033, 0.06788327544927597, 0.1038372740149498, 0.07301780581474304, 0.9236828684806824, -0.2258756458759308, 0.1413857340812683, 0.5316177010536194, -0.3988950252532959, 0.08355150371789932, 0.017187105491757393, 0.24850395321846008, -0.4434128701686859, 0.13530251383781433, -0.018756665289402008, -0.1383347511291504, 0.04703393206000328, -0.16209325194358826, -0.14788377285003662, 0.06379210948944092, -0.1503790318965912, 0.2216021716594696, 0.23777230083942413, 0.05370765179395676, 0.0009201439097523689, 0.46068015694618225, -0.31772565841674805, 0.19556693732738495, -0.009462379850447178, 0.11211828142404556, -0.2153736799955368, -0.07982168346643448, -0.12704166769981384, -0.37075579166412354, -0.19253936409950256, 0.02484779618680477, -0.13540789484977722, 0.03514367714524269, 0.3415796756744385, -0.308774471282959, -0.26537343859672546, -0.09724757820367813, -0.15655198693275452, -0.03855371102690697, -0.05293842777609825, 0.18450844287872314, 0.34560105204582214, -0.36438122391700745, -0.18444502353668213, 0.29571226239204407, -0.03596675768494606, -0.3293123245239258, -0.4525003135204315, 0.24131792783737183, -0.07996910065412521, -0.2136070430278778, -0.3332328796386719, -0.08462047576904297, 0.17983880639076233, 0.025115065276622772, 0.30714526772499084, -0.3130614757537842, 0.03644654527306557, -0.2521388828754425, 0.23521630465984344, -0.2725459933280945, 0.14176532626152039, -0.000994864385575056, -0.04339155927300453, -0.05864856392145157, -0.11358997225761414, 0.2405744045972824, 0.10085077583789825, 0.3021802604198456, 0.32688379287719727, 0.2516414523124695, -0.18061880767345428, -0.20395371317863464, -0.41163164377212524, 0.02281869761645794, -0.34499791264533997, -0.09700142592191696, -0.02281106822192669, 0.15743987262248993, -0.06278898566961288, 0.440501868724823, 0.2453930377960205, 0.13846039772033691, -0.02553223818540573, -0.11743652075529099, -0.1442643404006958, 0.3410760760307312, 0.0963510125875473, -0.10417763143777847, 0.3489803969860077, 0.4411511719226837, 0.38368478417396545, -0.06806676834821701, -0.36177194118499756, -0.01782364398241043, 0.05051802098751068, 0.16531746089458466, -0.28018757700920105, -0.17657414078712463, -0.04533107206225395, 0.04603973776102066, 0.3262350261211395, -0.017806535586714745, -0.24650436639785767, -0.30764272809028625, -0.10061370581388474, 0.0642949640750885, -0.057345371693372726, -0.008200242184102535, 0.19293202459812164, 0.006928090006113052, 0.004347173031419516, 0.31093811988830566, -0.01121880766004324, 0.21764414012432098, -0.01020235475152731, 0.1437406688928604, 0.4155583381652832, 0.09192664176225662, -0.09653404355049133, -0.020149389281868935, -0.1623656004667282, 0.27460184693336487, 0.08011440187692642, 0.22732657194137573, -0.1411748081445694, -0.051579542458057404, -0.05435730889439583, -0.05209137499332428, -0.11556024849414825, 0.06707398593425751, 0.06478467583656311, -0.33100131154060364, -0.1908540576696396, -0.3018471300601959, 0.5382062196731567, 0.22111836075782776, -0.025640590116381645, -0.22562870383262634, 0.3349727392196655, 0.2697274386882782, -0.3331097960472107, 0.008392537012696266, 0.09232993423938751, -0.02099347487092018, -0.0705527663230896, 0.037598658353090286, 0.1279076486825943, -0.11393366008996964, -0.029181642457842827, 0.17079806327819824, 0.2113274782896042, -0.013674496673047543, -0.22324009239673615, 0.47607409954071045, -0.06688438355922699, 0.034059155732393265, 0.26135504245758057, 0.08939594775438309, -0.0643920823931694, -0.006362379528582096, -0.08831630647182465, -0.13612091541290283, -0.059629276394844055, -0.029115309938788414, 0.13748496770858765, 0.12240365147590637, -0.15748149156570435, 0.23188276588916779, 0.47662967443466187, -0.24694055318832397, 0.2690804600715637, 0.6672101616859436, 0.4658915102481842, -0.03649210184812546, -0.08267129957675934, 0.30464881658554077, 0.0927504226565361, -0.09043727815151215, -0.2947205603122711, -0.07777272164821625, -0.04663713648915291, -0.0035736854188144207, -0.13097117841243744, -0.038093842566013336, 0.4906744360923767, 0.25676313042640686, 0.02871844917535782, -0.3420470952987671, 0.046979062259197235, -0.08154761046171188, 0.10215691477060318, -0.0765528753399849, 0.3549341857433319, 0.210913747549057, -0.21069325506687164, 0.031176278367638588, 0.26861920952796936, 0.5757941603660583, 0.08733818680047989, -0.22400535643100739, -0.35264065861701965, -0.2385278344154358, 0.05034135282039642, 0.08777414262294769, 0.009515291079878807, 0.34494873881340027, 0.34009838104248047, 0.027939042076468468, 0.23706291615962982, -0.17585264146327972, 0.17349304258823395, 0.1778447926044464, 0.1855790913105011, 0.07374857366085052, -0.008632606826722622, -0.160291850566864, -0.43441537022590637, 0.06721341609954834, 0.1004456952214241, -0.2505284249782562, 0.3552751839160919, 0.03903617709875107, 0.3504793643951416, -0.11281523108482361, -0.0403459332883358, 0.1312544047832489, 0.03775310143828392, 0.5596158504486084, 0.3978041410446167, 0.5189701318740845, 0.01401591207832098, -0.11369695514440536, -0.2487877458333969, 0.4131844639778137, -0.4980246126651764, 0.05350694805383682, 0.07523888349533081, 0.018854152411222458, 0.0215175598859787, 0.1387171745300293, 0.4348289370536804, -0.15274128317832947, -0.40483558177948, 0.26282867789268494, -0.25790682435035706, 0.24621984362602234, 0.2309594452381134, -0.0831773430109024, 0.05654088035225868, -0.08321070671081543, 0.286643922328949, -0.4500545561313629, 0.1981694996356964, -0.22792796790599823, -0.09096560627222061, 0.30397969484329224, 0.042548563331365585, 0.4275496006011963, -0.1625436246395111, 0.1787504255771637, -0.13616910576820374, -0.14340020716190338, -0.16971580684185028, 0.018538741394877434, -0.09450972080230713, 0.18332017958164215, -0.01141386665403843, 0.03591929376125336, -0.07291944324970245, -0.05057913810014725, -0.15181666612625122, 0.514418363571167, -0.04337453097105026, 0.02705352194607258, 0.1891368329524994, 0.030805174261331558, 0.18764035403728485, -0.2738395929336548, -0.12054073065519333, -0.12792983651161194, 0.019611191004514694, -0.06428766250610352, -0.4984941780567169, -0.386958509683609, 0.40927478671073914, -0.5095210075378418, -0.15155810117721558, -0.10378874838352203, 0.09050465375185013, 0.2016349881887436, -0.06975508481264114, -0.2175668627023697, 0.24184581637382507, 0.34878769516944885, 0.11298020929098129, -0.16199511289596558, 0.09717481583356857, -0.07698873430490494, -0.13410867750644684, 0.10532486438751221, 0.37344440817832947, -0.14846684038639069, -0.2535119950771332, -0.25184527039527893, -0.3124886453151703 ]
https://github.com/huggingface/datasets/issues/3688
Pyarrow version error
hi @albertvillanova i try yesterday to create a new python environement with python 7 and try it on the environement and it worked. so i think that the error was not the package but may be jupyter notebook on conda. still yet i'm not yet sure but it worked in an environment created with venv
## Describe the bug I installed datasets(version 1.17.0, 1.18.0, 1.18.3) but i'm right now nor able to import it because of pyarrow. when i try to import it, i get the following error: `To use datasets, the module pyarrow>=3.0.0 is required, and the current version of pyarrow doesn't match this condition`. i tryed with all version of pyarrow execpt `4.0.0` but still get the same error. ## Steps to reproduce the bug ```python import datasets ``` ## Expected results A clear and concise description of the expected results. ## Actual results AttributeError Traceback (most recent call last) <ipython-input-19-652e886d387f> in <module> ----> 1 import datasets ~\AppData\Local\Continuum\anaconda3\lib\site-packages\datasets\__init__.py in <module> 26 27 ---> 28 if _version.parse(pyarrow.__version__).major < 3: 29 raise ImportWarning( 30 "To use `datasets`, the module `pyarrow>=3.0.0` is required, and the current version of `pyarrow` doesn't match this condition.\n" AttributeError: 'Version' object has no attribute 'major' ## Environment info Traceback (most recent call last): File "c:\users\alex\appdata\local\continuum\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\alex\appdata\local\continuum\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Alex\AppData\Local\Continuum\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 5, in <module> File "c:\users\alex\appdata\local\continuum\anaconda3\lib\site-packages\datasets\__init__.py", line 28, in <module> if _version.parse(pyarrow.__version__).major < 3: AttributeError: 'Version' object has no attribute 'major' - `datasets` version: - Platform: Linux(Ubuntu) and Windows: conda on the both - Python version: 3.7 - PyArrow version: 7.0.0
55
Pyarrow version error
[ -0.19817136228084564, 0.12095895409584045, -0.239375501871109, -0.14648425579071045, 0.21336433291435242, -0.003239734098315239, 0.12475182116031647, 0.4424278140068054, -0.4931745231151581, 0.10656821727752686, 0.0779057964682579, 0.27962157130241394, 0.031620703637599945, -0.13978996872901917, -0.01329566165804863, -0.22168153524398804, 0.14379224181175232, 0.17225642502307892, 0.04951323941349983, 0.04070591181516647, -0.08305510133504868, 0.2456495612859726, -0.24223297834396362, 0.44815337657928467, -0.16039757430553436, -0.02373187243938446, 0.04404480755329132, 0.07403335720300674, -0.3925674259662628, -0.5263980031013489, 0.12545146048069, -0.13276606798171997, 0.11050990968942642, 0.3002346158027649, -0.00010672622011043131, -0.04594835638999939, 0.4608915150165558, 0.16367091238498688, 0.03640319034457207, -0.013232089579105377, 0.38419222831726074, 0.11558054387569427, 0.1722647249698639, -0.05913213640451431, 0.14055165648460388, -0.5313019752502441, 0.19314630329608917, 0.7333831191062927, 0.2095770239830017, 0.09042172133922577, 0.3141670823097229, 0.31043195724487305, 0.46968668699264526, -0.09552289545536041, 0.6852743029594421, -0.33669498562812805, -0.05619509890675545, 0.5917324423789978, 0.0771314799785614, -0.16868534684181213, 0.05033860355615616, 0.11902670562267303, -0.06821122765541077, -0.0965985506772995, -0.02654138021171093, -0.023915398865938187, 0.54115229845047, -0.031575996428728104, 0.0008225706988014281, -0.11531011015176773, 0.2881399393081665, -0.3783712089061737, -0.12370558828115463, 0.32125964760780334, 0.08946601301431656, -0.3972206711769104, 0.19265124201774597, 0.1598014235496521, -0.104066863656044, 0.20183685421943665, 0.030728567391633987, -0.10282844305038452, -0.3398400545120239, 0.2057199776172638, -0.10537261515855789, 0.31491976976394653, 0.21040450036525726, 0.14885865151882172, -0.0033472010400146246, -0.016011057421565056, 0.24855180084705353, 0.2465749979019165, -0.06455876678228378, 0.032043036073446274, 0.24708914756774902, 0.09525462239980698, -0.06178082898259163, 0.14443600177764893, 0.11315236985683441, -0.27262261509895325, -0.10669130831956863, 0.025096843019127846, 0.4571847915649414, 0.16664238274097443, -0.05598480626940727, -0.028921905905008316, 0.08062505722045898, 0.012438652105629444, 0.2526809573173523, -0.1955758035182953, -0.008913552388548851, 0.1540558934211731, -0.13719525933265686, -0.451476126909256, 0.349037766456604, -0.017917899414896965, 0.17707644402980804, -0.039209526032209396, 0.1140606701374054, -0.09098842740058899, -0.514739990234375, -0.18221788108348846, -0.2163109928369522, 0.08830638229846954, -0.11102292686700821, -0.16409865021705627, -0.03032887727022171, 0.2089514434337616, -0.3284614086151123, -0.10817887634038925, -0.18190458416938782, 0.08630922436714172, -0.24111394584178925, -0.22280141711235046, -0.03925235942006111, -0.1853526085615158, 0.10431043058633804, 0.0786418467760086, -0.08672221004962921, 0.08685485273599625, -0.23327518999576569, 0.20335575938224792, -0.377103716135025, 0.30884960293769836, -0.06310169398784637, 0.011011219583451748, -0.16910631954669952, -0.2508830726146698, -0.08893527090549469, 0.3007436990737915, -0.05336373299360275, -0.4261687099933624, -0.3526919484138489, 0.28181570768356323, 0.09701713919639587, 0.004205404780805111, 0.1507684290409088, -0.11324280500411987, 0.1699516326189041, -0.2278875708580017, 0.0050697606056928635, -0.41525062918663025, 0.19376914203166962, -0.4365265369415283, -0.035929203033447266, -0.08777020871639252, -0.3948606252670288, -0.05944023281335831, 0.17598643898963928, -0.42896124720573425, -0.003966569434851408, 0.32872331142425537, -0.04846637696027756, 0.10465424507856369, 0.04794846102595329, 0.31323790550231934, 0.328632652759552, -0.16689829528331757, -0.5039275884628296, -0.09900260716676712, -0.030100826174020767, -0.3810616731643677, 0.029707076027989388, -0.08539481461048126, -0.07333879917860031, 0.029718676581978798, 0.08084650337696075, -0.04485831409692764, 0.18219171464443207, -0.1635005921125412, -0.3022077977657318, -0.3157646059989929, 0.04160907119512558, 0.020397620275616646, 0.12513595819473267, 0.0007162654655985534, 0.23361793160438538, -0.28589749336242676, 0.27500295639038086, -0.05123351886868477, -0.21499916911125183, -0.05955243483185768, 0.4092007577419281, 0.05293342471122742, 0.07979442924261093, -0.1459912210702896, -0.12259983271360397, -0.12349697202444077, -0.36522176861763, 0.15526309609413147, -0.19309081137180328, -0.12705819308757782, -0.24961136281490326, 0.22442127764225006, 0.05489857867360115, 0.011327382177114487, 0.258674681186676, -0.12803782522678375, 0.2548081576824188, 0.04256981611251831, -0.011903240345418453, -0.33264780044555664, 0.07422823458909988, 0.13721522688865662, 0.13523250818252563, 0.2751208245754242, -0.5282232165336609, -0.5185377597808838, 0.10799536854028702, 0.12757381796836853, 0.3557192087173462, -0.08439192920923233, 0.1268743872642517, 0.30041682720184326, -0.14819088578224182, 0.07697343826293945, -0.199894979596138, 0.04149962589144707, -0.009531927295029163, -0.3104167580604553, 0.019944602623581886, -0.017931340262293816, -0.20013536512851715, 0.275542676448822, 0.5096003413200378, 0.03141237795352936, 0.37256672978401184, -0.21603897213935852, -0.031746674329042435, -0.035695306956768036, 0.034288644790649414, 0.10026389360427856, 0.16284674406051636, -0.02548954449594021, 0.04554399475455284, 0.25135332345962524, 0.02004934847354889, -0.04738345742225647, -0.18535010516643524, -0.15948964655399323, 0.40285032987594604, -0.129285529255867, 0.1647261530160904, -0.009315413422882557, 0.06650886684656143, -0.017452700063586235, 0.030892807990312576, -0.44980838894844055, -0.09344299137592316, 0.29802295565605164, -0.21274788677692413, 0.15313507616519928, -0.22489142417907715, -0.28312861919403076, -0.0019218834349885583, -0.053386956453323364, 0.37574008107185364, 0.1836339235305786, 0.1721910685300827, -0.08827854692935944, -0.29837968945503235, 0.20849883556365967, 0.00841712485998869, 0.10859941691160202, -0.20170767605304718, -0.01755591109395027, -0.2837683856487274, -0.10010384768247604, -0.012520166113972664, -0.30253344774246216, -0.3590272068977356, 0.03836146742105484, 0.3754532039165497, 0.31219416856765747, 0.039820216596126556, 0.3575817346572876, 0.2643771171569824, -0.19251605868339539, 0.026943808421492577, -0.16535498201847076, 0.041331786662340164, -0.1823624223470688, -0.5063105821609497, 0.12720833718776703, -0.004300613421946764, -0.32021909952163696, 0.06813541054725647, -0.420513391494751, -0.18627578020095825, -0.20424969494342804, -0.5172057151794434, 0.14407117664813995, -0.19441045820713043, 0.28185799717903137, 0.37230098247528076, 0.10290344059467316, -0.08981887996196747, -0.2298247218132019, 0.36452221870422363, -0.38273951411247253, -0.16250653564929962, 0.012954102829098701, -0.1526348739862442, -0.10256580263376236, -0.09204921871423721, -0.13349339365959167, -0.1619182676076889, -0.010085713118314743, 0.2526024580001831, 0.10918385535478592, 0.1843191534280777, 0.08277694880962372, 0.313796728849411, -0.02348681353032589, -0.30011966824531555, -0.06581786274909973, 0.08564839512109756, 0.09259576350450516, 0.20840996503829956, -0.16481678187847137, -0.3703852593898773, 0.050303418189287186, -0.004098612815141678, -0.0484398752450943, 0.13136358559131622, -0.3474556505680084, -0.3168925940990448, 0.23808085918426514, 0.6784434914588928, 0.048759397119283676, -0.16170158982276917, 0.42978325486183167, 0.12403536587953568, -0.20389840006828308, -0.08186185359954834, -0.23596324026584625, -0.022202547639608383, 0.10016259551048279, 0.18938681483268738, 0.000546485825907439, -0.009202305227518082, -0.09874241054058075, 0.7093067169189453, -0.3222612142562866, -0.0867350623011589, 0.16947710514068604, -0.37277963757514954, 0.03429058566689491, -0.011365431360900402, 0.1553778350353241, -0.02453782595694065, -0.05767476558685303, -0.19187498092651367, 0.24503758549690247, -0.010072899051010609, -0.2948390245437622, -0.10468976199626923, -0.29162245988845825, -0.36863502860069275, 0.019495651125907898, -0.12781131267547607, 0.42190811038017273, 0.19317582249641418, 0.02244383841753006, 0.049826085567474365, -0.08504059910774231, -0.038355473428964615, 0.24861378967761993, 0.02554764598608017, -0.0597367137670517, 0.05743611976504326, 0.11120957136154175, -0.22145800292491913, -0.1766367107629776, 0.3834322690963745, 0.24849052727222443, -0.11450568586587906, 0.03289360925555229, -0.16024301946163177, 0.1732719987630844, -0.2548896074295044, 0.6277467608451843, 0.17193320393562317, 0.16856470704078674, 0.11126375198364258, 0.21139025688171387, -0.20301814377307892, -0.38880690932273865, -0.08706337958574295, -0.01633014902472496, 0.10986930131912231, 0.07225201278924942, -0.38369399309158325, 0.05154609680175781, 0.2570542097091675, -0.004256675019860268, 0.020941365510225296, -0.23145589232444763, -0.35875365138053894, -0.20954135060310364, -0.0013981984229758382, -0.12728717923164368, -0.11968488991260529, 0.07408413290977478, -0.1503993570804596, 0.09596014767885208, 0.21083205938339233, -0.17925669252872467, -0.35249564051628113, 0.2921213209629059, 0.14060357213020325, -0.41777676343917847, -0.313567578792572, -0.1443166583776474, -0.02068958804011345, 0.42502617835998535, 0.03394978120923042, 0.034284673631191254, -0.06862005591392517, -0.06666605919599533, 0.0614345446228981, 0.19175595045089722, 0.037159405648708344, -0.21929457783699036, 0.07326353341341019, 0.060781028121709824, 0.10685452073812485, 0.232036292552948, -0.38175132870674133, 0.6220137476921082, -0.1496410369873047, -0.010714097879827023, 0.22593671083450317, 0.3242146372795105, 0.05808873847126961, -0.041996970772743225, -0.05462055280804634, 0.10334238409996033, 0.06788327544927597, 0.1038372740149498, 0.07301780581474304, 0.9236828684806824, -0.2258756458759308, 0.1413857340812683, 0.5316177010536194, -0.3988950252532959, 0.08355150371789932, 0.017187105491757393, 0.24850395321846008, -0.4434128701686859, 0.13530251383781433, -0.018756665289402008, -0.1383347511291504, 0.04703393206000328, -0.16209325194358826, -0.14788377285003662, 0.06379210948944092, -0.1503790318965912, 0.2216021716594696, 0.23777230083942413, 0.05370765179395676, 0.0009201439097523689, 0.46068015694618225, -0.31772565841674805, 0.19556693732738495, -0.009462379850447178, 0.11211828142404556, -0.2153736799955368, -0.07982168346643448, -0.12704166769981384, -0.37075579166412354, -0.19253936409950256, 0.02484779618680477, -0.13540789484977722, 0.03514367714524269, 0.3415796756744385, -0.308774471282959, -0.26537343859672546, -0.09724757820367813, -0.15655198693275452, -0.03855371102690697, -0.05293842777609825, 0.18450844287872314, 0.34560105204582214, -0.36438122391700745, -0.18444502353668213, 0.29571226239204407, -0.03596675768494606, -0.3293123245239258, -0.4525003135204315, 0.24131792783737183, -0.07996910065412521, -0.2136070430278778, -0.3332328796386719, -0.08462047576904297, 0.17983880639076233, 0.025115065276622772, 0.30714526772499084, -0.3130614757537842, 0.03644654527306557, -0.2521388828754425, 0.23521630465984344, -0.2725459933280945, 0.14176532626152039, -0.000994864385575056, -0.04339155927300453, -0.05864856392145157, -0.11358997225761414, 0.2405744045972824, 0.10085077583789825, 0.3021802604198456, 0.32688379287719727, 0.2516414523124695, -0.18061880767345428, -0.20395371317863464, -0.41163164377212524, 0.02281869761645794, -0.34499791264533997, -0.09700142592191696, -0.02281106822192669, 0.15743987262248993, -0.06278898566961288, 0.440501868724823, 0.2453930377960205, 0.13846039772033691, -0.02553223818540573, -0.11743652075529099, -0.1442643404006958, 0.3410760760307312, 0.0963510125875473, -0.10417763143777847, 0.3489803969860077, 0.4411511719226837, 0.38368478417396545, -0.06806676834821701, -0.36177194118499756, -0.01782364398241043, 0.05051802098751068, 0.16531746089458466, -0.28018757700920105, -0.17657414078712463, -0.04533107206225395, 0.04603973776102066, 0.3262350261211395, -0.017806535586714745, -0.24650436639785767, -0.30764272809028625, -0.10061370581388474, 0.0642949640750885, -0.057345371693372726, -0.008200242184102535, 0.19293202459812164, 0.006928090006113052, 0.004347173031419516, 0.31093811988830566, -0.01121880766004324, 0.21764414012432098, -0.01020235475152731, 0.1437406688928604, 0.4155583381652832, 0.09192664176225662, -0.09653404355049133, -0.020149389281868935, -0.1623656004667282, 0.27460184693336487, 0.08011440187692642, 0.22732657194137573, -0.1411748081445694, -0.051579542458057404, -0.05435730889439583, -0.05209137499332428, -0.11556024849414825, 0.06707398593425751, 0.06478467583656311, -0.33100131154060364, -0.1908540576696396, -0.3018471300601959, 0.5382062196731567, 0.22111836075782776, -0.025640590116381645, -0.22562870383262634, 0.3349727392196655, 0.2697274386882782, -0.3331097960472107, 0.008392537012696266, 0.09232993423938751, -0.02099347487092018, -0.0705527663230896, 0.037598658353090286, 0.1279076486825943, -0.11393366008996964, -0.029181642457842827, 0.17079806327819824, 0.2113274782896042, -0.013674496673047543, -0.22324009239673615, 0.47607409954071045, -0.06688438355922699, 0.034059155732393265, 0.26135504245758057, 0.08939594775438309, -0.0643920823931694, -0.006362379528582096, -0.08831630647182465, -0.13612091541290283, -0.059629276394844055, -0.029115309938788414, 0.13748496770858765, 0.12240365147590637, -0.15748149156570435, 0.23188276588916779, 0.47662967443466187, -0.24694055318832397, 0.2690804600715637, 0.6672101616859436, 0.4658915102481842, -0.03649210184812546, -0.08267129957675934, 0.30464881658554077, 0.0927504226565361, -0.09043727815151215, -0.2947205603122711, -0.07777272164821625, -0.04663713648915291, -0.0035736854188144207, -0.13097117841243744, -0.038093842566013336, 0.4906744360923767, 0.25676313042640686, 0.02871844917535782, -0.3420470952987671, 0.046979062259197235, -0.08154761046171188, 0.10215691477060318, -0.0765528753399849, 0.3549341857433319, 0.210913747549057, -0.21069325506687164, 0.031176278367638588, 0.26861920952796936, 0.5757941603660583, 0.08733818680047989, -0.22400535643100739, -0.35264065861701965, -0.2385278344154358, 0.05034135282039642, 0.08777414262294769, 0.009515291079878807, 0.34494873881340027, 0.34009838104248047, 0.027939042076468468, 0.23706291615962982, -0.17585264146327972, 0.17349304258823395, 0.1778447926044464, 0.1855790913105011, 0.07374857366085052, -0.008632606826722622, -0.160291850566864, -0.43441537022590637, 0.06721341609954834, 0.1004456952214241, -0.2505284249782562, 0.3552751839160919, 0.03903617709875107, 0.3504793643951416, -0.11281523108482361, -0.0403459332883358, 0.1312544047832489, 0.03775310143828392, 0.5596158504486084, 0.3978041410446167, 0.5189701318740845, 0.01401591207832098, -0.11369695514440536, -0.2487877458333969, 0.4131844639778137, -0.4980246126651764, 0.05350694805383682, 0.07523888349533081, 0.018854152411222458, 0.0215175598859787, 0.1387171745300293, 0.4348289370536804, -0.15274128317832947, -0.40483558177948, 0.26282867789268494, -0.25790682435035706, 0.24621984362602234, 0.2309594452381134, -0.0831773430109024, 0.05654088035225868, -0.08321070671081543, 0.286643922328949, -0.4500545561313629, 0.1981694996356964, -0.22792796790599823, -0.09096560627222061, 0.30397969484329224, 0.042548563331365585, 0.4275496006011963, -0.1625436246395111, 0.1787504255771637, -0.13616910576820374, -0.14340020716190338, -0.16971580684185028, 0.018538741394877434, -0.09450972080230713, 0.18332017958164215, -0.01141386665403843, 0.03591929376125336, -0.07291944324970245, -0.05057913810014725, -0.15181666612625122, 0.514418363571167, -0.04337453097105026, 0.02705352194607258, 0.1891368329524994, 0.030805174261331558, 0.18764035403728485, -0.2738395929336548, -0.12054073065519333, -0.12792983651161194, 0.019611191004514694, -0.06428766250610352, -0.4984941780567169, -0.386958509683609, 0.40927478671073914, -0.5095210075378418, -0.15155810117721558, -0.10378874838352203, 0.09050465375185013, 0.2016349881887436, -0.06975508481264114, -0.2175668627023697, 0.24184581637382507, 0.34878769516944885, 0.11298020929098129, -0.16199511289596558, 0.09717481583356857, -0.07698873430490494, -0.13410867750644684, 0.10532486438751221, 0.37344440817832947, -0.14846684038639069, -0.2535119950771332, -0.25184527039527893, -0.3124886453151703 ]
https://github.com/huggingface/datasets/issues/3688
Pyarrow version error
OK, thanks @Zaker237 for your feedback. I close this issue then. Please, feel free to reopen it if the problem arises again.
## Describe the bug I installed datasets(version 1.17.0, 1.18.0, 1.18.3) but i'm right now nor able to import it because of pyarrow. when i try to import it, i get the following error: `To use datasets, the module pyarrow>=3.0.0 is required, and the current version of pyarrow doesn't match this condition`. i tryed with all version of pyarrow execpt `4.0.0` but still get the same error. ## Steps to reproduce the bug ```python import datasets ``` ## Expected results A clear and concise description of the expected results. ## Actual results AttributeError Traceback (most recent call last) <ipython-input-19-652e886d387f> in <module> ----> 1 import datasets ~\AppData\Local\Continuum\anaconda3\lib\site-packages\datasets\__init__.py in <module> 26 27 ---> 28 if _version.parse(pyarrow.__version__).major < 3: 29 raise ImportWarning( 30 "To use `datasets`, the module `pyarrow>=3.0.0` is required, and the current version of `pyarrow` doesn't match this condition.\n" AttributeError: 'Version' object has no attribute 'major' ## Environment info Traceback (most recent call last): File "c:\users\alex\appdata\local\continuum\anaconda3\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\alex\appdata\local\continuum\anaconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\Alex\AppData\Local\Continuum\anaconda3\Scripts\datasets-cli.exe\__main__.py", line 5, in <module> File "c:\users\alex\appdata\local\continuum\anaconda3\lib\site-packages\datasets\__init__.py", line 28, in <module> if _version.parse(pyarrow.__version__).major < 3: AttributeError: 'Version' object has no attribute 'major' - `datasets` version: - Platform: Linux(Ubuntu) and Windows: conda on the both - Python version: 3.7 - PyArrow version: 7.0.0
22
Pyarrow version error
[ -0.19817136228084564, 0.12095895409584045, -0.239375501871109, -0.14648425579071045, 0.21336433291435242, -0.003239734098315239, 0.12475182116031647, 0.4424278140068054, -0.4931745231151581, 0.10656821727752686, 0.0779057964682579, 0.27962157130241394, 0.031620703637599945, -0.13978996872901917, -0.01329566165804863, -0.22168153524398804, 0.14379224181175232, 0.17225642502307892, 0.04951323941349983, 0.04070591181516647, -0.08305510133504868, 0.2456495612859726, -0.24223297834396362, 0.44815337657928467, -0.16039757430553436, -0.02373187243938446, 0.04404480755329132, 0.07403335720300674, -0.3925674259662628, -0.5263980031013489, 0.12545146048069, -0.13276606798171997, 0.11050990968942642, 0.3002346158027649, -0.00010672622011043131, -0.04594835638999939, 0.4608915150165558, 0.16367091238498688, 0.03640319034457207, -0.013232089579105377, 0.38419222831726074, 0.11558054387569427, 0.1722647249698639, -0.05913213640451431, 0.14055165648460388, -0.5313019752502441, 0.19314630329608917, 0.7333831191062927, 0.2095770239830017, 0.09042172133922577, 0.3141670823097229, 0.31043195724487305, 0.46968668699264526, -0.09552289545536041, 0.6852743029594421, -0.33669498562812805, -0.05619509890675545, 0.5917324423789978, 0.0771314799785614, -0.16868534684181213, 0.05033860355615616, 0.11902670562267303, -0.06821122765541077, -0.0965985506772995, -0.02654138021171093, -0.023915398865938187, 0.54115229845047, -0.031575996428728104, 0.0008225706988014281, -0.11531011015176773, 0.2881399393081665, -0.3783712089061737, -0.12370558828115463, 0.32125964760780334, 0.08946601301431656, -0.3972206711769104, 0.19265124201774597, 0.1598014235496521, -0.104066863656044, 0.20183685421943665, 0.030728567391633987, -0.10282844305038452, -0.3398400545120239, 0.2057199776172638, -0.10537261515855789, 0.31491976976394653, 0.21040450036525726, 0.14885865151882172, -0.0033472010400146246, -0.016011057421565056, 0.24855180084705353, 0.2465749979019165, -0.06455876678228378, 0.032043036073446274, 0.24708914756774902, 0.09525462239980698, -0.06178082898259163, 0.14443600177764893, 0.11315236985683441, -0.27262261509895325, -0.10669130831956863, 0.025096843019127846, 0.4571847915649414, 0.16664238274097443, -0.05598480626940727, -0.028921905905008316, 0.08062505722045898, 0.012438652105629444, 0.2526809573173523, -0.1955758035182953, -0.008913552388548851, 0.1540558934211731, -0.13719525933265686, -0.451476126909256, 0.349037766456604, -0.017917899414896965, 0.17707644402980804, -0.039209526032209396, 0.1140606701374054, -0.09098842740058899, -0.514739990234375, -0.18221788108348846, -0.2163109928369522, 0.08830638229846954, -0.11102292686700821, -0.16409865021705627, -0.03032887727022171, 0.2089514434337616, -0.3284614086151123, -0.10817887634038925, -0.18190458416938782, 0.08630922436714172, -0.24111394584178925, -0.22280141711235046, -0.03925235942006111, -0.1853526085615158, 0.10431043058633804, 0.0786418467760086, -0.08672221004962921, 0.08685485273599625, -0.23327518999576569, 0.20335575938224792, -0.377103716135025, 0.30884960293769836, -0.06310169398784637, 0.011011219583451748, -0.16910631954669952, -0.2508830726146698, -0.08893527090549469, 0.3007436990737915, -0.05336373299360275, -0.4261687099933624, -0.3526919484138489, 0.28181570768356323, 0.09701713919639587, 0.004205404780805111, 0.1507684290409088, -0.11324280500411987, 0.1699516326189041, -0.2278875708580017, 0.0050697606056928635, -0.41525062918663025, 0.19376914203166962, -0.4365265369415283, -0.035929203033447266, -0.08777020871639252, -0.3948606252670288, -0.05944023281335831, 0.17598643898963928, -0.42896124720573425, -0.003966569434851408, 0.32872331142425537, -0.04846637696027756, 0.10465424507856369, 0.04794846102595329, 0.31323790550231934, 0.328632652759552, -0.16689829528331757, -0.5039275884628296, -0.09900260716676712, -0.030100826174020767, -0.3810616731643677, 0.029707076027989388, -0.08539481461048126, -0.07333879917860031, 0.029718676581978798, 0.08084650337696075, -0.04485831409692764, 0.18219171464443207, -0.1635005921125412, -0.3022077977657318, -0.3157646059989929, 0.04160907119512558, 0.020397620275616646, 0.12513595819473267, 0.0007162654655985534, 0.23361793160438538, -0.28589749336242676, 0.27500295639038086, -0.05123351886868477, -0.21499916911125183, -0.05955243483185768, 0.4092007577419281, 0.05293342471122742, 0.07979442924261093, -0.1459912210702896, -0.12259983271360397, -0.12349697202444077, -0.36522176861763, 0.15526309609413147, -0.19309081137180328, -0.12705819308757782, -0.24961136281490326, 0.22442127764225006, 0.05489857867360115, 0.011327382177114487, 0.258674681186676, -0.12803782522678375, 0.2548081576824188, 0.04256981611251831, -0.011903240345418453, -0.33264780044555664, 0.07422823458909988, 0.13721522688865662, 0.13523250818252563, 0.2751208245754242, -0.5282232165336609, -0.5185377597808838, 0.10799536854028702, 0.12757381796836853, 0.3557192087173462, -0.08439192920923233, 0.1268743872642517, 0.30041682720184326, -0.14819088578224182, 0.07697343826293945, -0.199894979596138, 0.04149962589144707, -0.009531927295029163, -0.3104167580604553, 0.019944602623581886, -0.017931340262293816, -0.20013536512851715, 0.275542676448822, 0.5096003413200378, 0.03141237795352936, 0.37256672978401184, -0.21603897213935852, -0.031746674329042435, -0.035695306956768036, 0.034288644790649414, 0.10026389360427856, 0.16284674406051636, -0.02548954449594021, 0.04554399475455284, 0.25135332345962524, 0.02004934847354889, -0.04738345742225647, -0.18535010516643524, -0.15948964655399323, 0.40285032987594604, -0.129285529255867, 0.1647261530160904, -0.009315413422882557, 0.06650886684656143, -0.017452700063586235, 0.030892807990312576, -0.44980838894844055, -0.09344299137592316, 0.29802295565605164, -0.21274788677692413, 0.15313507616519928, -0.22489142417907715, -0.28312861919403076, -0.0019218834349885583, -0.053386956453323364, 0.37574008107185364, 0.1836339235305786, 0.1721910685300827, -0.08827854692935944, -0.29837968945503235, 0.20849883556365967, 0.00841712485998869, 0.10859941691160202, -0.20170767605304718, -0.01755591109395027, -0.2837683856487274, -0.10010384768247604, -0.012520166113972664, -0.30253344774246216, -0.3590272068977356, 0.03836146742105484, 0.3754532039165497, 0.31219416856765747, 0.039820216596126556, 0.3575817346572876, 0.2643771171569824, -0.19251605868339539, 0.026943808421492577, -0.16535498201847076, 0.041331786662340164, -0.1823624223470688, -0.5063105821609497, 0.12720833718776703, -0.004300613421946764, -0.32021909952163696, 0.06813541054725647, -0.420513391494751, -0.18627578020095825, -0.20424969494342804, -0.5172057151794434, 0.14407117664813995, -0.19441045820713043, 0.28185799717903137, 0.37230098247528076, 0.10290344059467316, -0.08981887996196747, -0.2298247218132019, 0.36452221870422363, -0.38273951411247253, -0.16250653564929962, 0.012954102829098701, -0.1526348739862442, -0.10256580263376236, -0.09204921871423721, -0.13349339365959167, -0.1619182676076889, -0.010085713118314743, 0.2526024580001831, 0.10918385535478592, 0.1843191534280777, 0.08277694880962372, 0.313796728849411, -0.02348681353032589, -0.30011966824531555, -0.06581786274909973, 0.08564839512109756, 0.09259576350450516, 0.20840996503829956, -0.16481678187847137, -0.3703852593898773, 0.050303418189287186, -0.004098612815141678, -0.0484398752450943, 0.13136358559131622, -0.3474556505680084, -0.3168925940990448, 0.23808085918426514, 0.6784434914588928, 0.048759397119283676, -0.16170158982276917, 0.42978325486183167, 0.12403536587953568, -0.20389840006828308, -0.08186185359954834, -0.23596324026584625, -0.022202547639608383, 0.10016259551048279, 0.18938681483268738, 0.000546485825907439, -0.009202305227518082, -0.09874241054058075, 0.7093067169189453, -0.3222612142562866, -0.0867350623011589, 0.16947710514068604, -0.37277963757514954, 0.03429058566689491, -0.011365431360900402, 0.1553778350353241, -0.02453782595694065, -0.05767476558685303, -0.19187498092651367, 0.24503758549690247, -0.010072899051010609, -0.2948390245437622, -0.10468976199626923, -0.29162245988845825, -0.36863502860069275, 0.019495651125907898, -0.12781131267547607, 0.42190811038017273, 0.19317582249641418, 0.02244383841753006, 0.049826085567474365, -0.08504059910774231, -0.038355473428964615, 0.24861378967761993, 0.02554764598608017, -0.0597367137670517, 0.05743611976504326, 0.11120957136154175, -0.22145800292491913, -0.1766367107629776, 0.3834322690963745, 0.24849052727222443, -0.11450568586587906, 0.03289360925555229, -0.16024301946163177, 0.1732719987630844, -0.2548896074295044, 0.6277467608451843, 0.17193320393562317, 0.16856470704078674, 0.11126375198364258, 0.21139025688171387, -0.20301814377307892, -0.38880690932273865, -0.08706337958574295, -0.01633014902472496, 0.10986930131912231, 0.07225201278924942, -0.38369399309158325, 0.05154609680175781, 0.2570542097091675, -0.004256675019860268, 0.020941365510225296, -0.23145589232444763, -0.35875365138053894, -0.20954135060310364, -0.0013981984229758382, -0.12728717923164368, -0.11968488991260529, 0.07408413290977478, -0.1503993570804596, 0.09596014767885208, 0.21083205938339233, -0.17925669252872467, -0.35249564051628113, 0.2921213209629059, 0.14060357213020325, -0.41777676343917847, -0.313567578792572, -0.1443166583776474, -0.02068958804011345, 0.42502617835998535, 0.03394978120923042, 0.034284673631191254, -0.06862005591392517, -0.06666605919599533, 0.0614345446228981, 0.19175595045089722, 0.037159405648708344, -0.21929457783699036, 0.07326353341341019, 0.060781028121709824, 0.10685452073812485, 0.232036292552948, -0.38175132870674133, 0.6220137476921082, -0.1496410369873047, -0.010714097879827023, 0.22593671083450317, 0.3242146372795105, 0.05808873847126961, -0.041996970772743225, -0.05462055280804634, 0.10334238409996033, 0.06788327544927597, 0.1038372740149498, 0.07301780581474304, 0.9236828684806824, -0.2258756458759308, 0.1413857340812683, 0.5316177010536194, -0.3988950252532959, 0.08355150371789932, 0.017187105491757393, 0.24850395321846008, -0.4434128701686859, 0.13530251383781433, -0.018756665289402008, -0.1383347511291504, 0.04703393206000328, -0.16209325194358826, -0.14788377285003662, 0.06379210948944092, -0.1503790318965912, 0.2216021716594696, 0.23777230083942413, 0.05370765179395676, 0.0009201439097523689, 0.46068015694618225, -0.31772565841674805, 0.19556693732738495, -0.009462379850447178, 0.11211828142404556, -0.2153736799955368, -0.07982168346643448, -0.12704166769981384, -0.37075579166412354, -0.19253936409950256, 0.02484779618680477, -0.13540789484977722, 0.03514367714524269, 0.3415796756744385, -0.308774471282959, -0.26537343859672546, -0.09724757820367813, -0.15655198693275452, -0.03855371102690697, -0.05293842777609825, 0.18450844287872314, 0.34560105204582214, -0.36438122391700745, -0.18444502353668213, 0.29571226239204407, -0.03596675768494606, -0.3293123245239258, -0.4525003135204315, 0.24131792783737183, -0.07996910065412521, -0.2136070430278778, -0.3332328796386719, -0.08462047576904297, 0.17983880639076233, 0.025115065276622772, 0.30714526772499084, -0.3130614757537842, 0.03644654527306557, -0.2521388828754425, 0.23521630465984344, -0.2725459933280945, 0.14176532626152039, -0.000994864385575056, -0.04339155927300453, -0.05864856392145157, -0.11358997225761414, 0.2405744045972824, 0.10085077583789825, 0.3021802604198456, 0.32688379287719727, 0.2516414523124695, -0.18061880767345428, -0.20395371317863464, -0.41163164377212524, 0.02281869761645794, -0.34499791264533997, -0.09700142592191696, -0.02281106822192669, 0.15743987262248993, -0.06278898566961288, 0.440501868724823, 0.2453930377960205, 0.13846039772033691, -0.02553223818540573, -0.11743652075529099, -0.1442643404006958, 0.3410760760307312, 0.0963510125875473, -0.10417763143777847, 0.3489803969860077, 0.4411511719226837, 0.38368478417396545, -0.06806676834821701, -0.36177194118499756, -0.01782364398241043, 0.05051802098751068, 0.16531746089458466, -0.28018757700920105, -0.17657414078712463, -0.04533107206225395, 0.04603973776102066, 0.3262350261211395, -0.017806535586714745, -0.24650436639785767, -0.30764272809028625, -0.10061370581388474, 0.0642949640750885, -0.057345371693372726, -0.008200242184102535, 0.19293202459812164, 0.006928090006113052, 0.004347173031419516, 0.31093811988830566, -0.01121880766004324, 0.21764414012432098, -0.01020235475152731, 0.1437406688928604, 0.4155583381652832, 0.09192664176225662, -0.09653404355049133, -0.020149389281868935, -0.1623656004667282, 0.27460184693336487, 0.08011440187692642, 0.22732657194137573, -0.1411748081445694, -0.051579542458057404, -0.05435730889439583, -0.05209137499332428, -0.11556024849414825, 0.06707398593425751, 0.06478467583656311, -0.33100131154060364, -0.1908540576696396, -0.3018471300601959, 0.5382062196731567, 0.22111836075782776, -0.025640590116381645, -0.22562870383262634, 0.3349727392196655, 0.2697274386882782, -0.3331097960472107, 0.008392537012696266, 0.09232993423938751, -0.02099347487092018, -0.0705527663230896, 0.037598658353090286, 0.1279076486825943, -0.11393366008996964, -0.029181642457842827, 0.17079806327819824, 0.2113274782896042, -0.013674496673047543, -0.22324009239673615, 0.47607409954071045, -0.06688438355922699, 0.034059155732393265, 0.26135504245758057, 0.08939594775438309, -0.0643920823931694, -0.006362379528582096, -0.08831630647182465, -0.13612091541290283, -0.059629276394844055, -0.029115309938788414, 0.13748496770858765, 0.12240365147590637, -0.15748149156570435, 0.23188276588916779, 0.47662967443466187, -0.24694055318832397, 0.2690804600715637, 0.6672101616859436, 0.4658915102481842, -0.03649210184812546, -0.08267129957675934, 0.30464881658554077, 0.0927504226565361, -0.09043727815151215, -0.2947205603122711, -0.07777272164821625, -0.04663713648915291, -0.0035736854188144207, -0.13097117841243744, -0.038093842566013336, 0.4906744360923767, 0.25676313042640686, 0.02871844917535782, -0.3420470952987671, 0.046979062259197235, -0.08154761046171188, 0.10215691477060318, -0.0765528753399849, 0.3549341857433319, 0.210913747549057, -0.21069325506687164, 0.031176278367638588, 0.26861920952796936, 0.5757941603660583, 0.08733818680047989, -0.22400535643100739, -0.35264065861701965, -0.2385278344154358, 0.05034135282039642, 0.08777414262294769, 0.009515291079878807, 0.34494873881340027, 0.34009838104248047, 0.027939042076468468, 0.23706291615962982, -0.17585264146327972, 0.17349304258823395, 0.1778447926044464, 0.1855790913105011, 0.07374857366085052, -0.008632606826722622, -0.160291850566864, -0.43441537022590637, 0.06721341609954834, 0.1004456952214241, -0.2505284249782562, 0.3552751839160919, 0.03903617709875107, 0.3504793643951416, -0.11281523108482361, -0.0403459332883358, 0.1312544047832489, 0.03775310143828392, 0.5596158504486084, 0.3978041410446167, 0.5189701318740845, 0.01401591207832098, -0.11369695514440536, -0.2487877458333969, 0.4131844639778137, -0.4980246126651764, 0.05350694805383682, 0.07523888349533081, 0.018854152411222458, 0.0215175598859787, 0.1387171745300293, 0.4348289370536804, -0.15274128317832947, -0.40483558177948, 0.26282867789268494, -0.25790682435035706, 0.24621984362602234, 0.2309594452381134, -0.0831773430109024, 0.05654088035225868, -0.08321070671081543, 0.286643922328949, -0.4500545561313629, 0.1981694996356964, -0.22792796790599823, -0.09096560627222061, 0.30397969484329224, 0.042548563331365585, 0.4275496006011963, -0.1625436246395111, 0.1787504255771637, -0.13616910576820374, -0.14340020716190338, -0.16971580684185028, 0.018538741394877434, -0.09450972080230713, 0.18332017958164215, -0.01141386665403843, 0.03591929376125336, -0.07291944324970245, -0.05057913810014725, -0.15181666612625122, 0.514418363571167, -0.04337453097105026, 0.02705352194607258, 0.1891368329524994, 0.030805174261331558, 0.18764035403728485, -0.2738395929336548, -0.12054073065519333, -0.12792983651161194, 0.019611191004514694, -0.06428766250610352, -0.4984941780567169, -0.386958509683609, 0.40927478671073914, -0.5095210075378418, -0.15155810117721558, -0.10378874838352203, 0.09050465375185013, 0.2016349881887436, -0.06975508481264114, -0.2175668627023697, 0.24184581637382507, 0.34878769516944885, 0.11298020929098129, -0.16199511289596558, 0.09717481583356857, -0.07698873430490494, -0.13410867750644684, 0.10532486438751221, 0.37344440817832947, -0.14846684038639069, -0.2535119950771332, -0.25184527039527893, -0.3124886453151703 ]
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
You are correct that `to_tf_dataset` only handles numerical columns right now, yes, though this is a limitation we might remove in future! The main reason we do this is that our models mostly do not include the tokenizer as a model layer, because it's very difficult to compile some of them in TF. So the "normal" Huggingface workflow is to first tokenize your dataset, and then pass tokenized tensors to the model. For your use case, would you prefer to pass strings to the model, and use some text processing layers instead of the built-in tokenizers?
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = DefaultDataCollator(return_tensors="tf") dataset = load_dataset("sst") train_dataset = dataset["train"].to_tf_dataset(columns=['sentence'], label_cols="label", shuffle=True, batch_size=8,collate_fn=data_collator) ``` However, this only gets me the labels; the text--the most important part--is missing: ``` for s in train_dataset.take(1): print(s) #prints something like: ({}, <tf.Tensor: shape=(8,), ...>) ``` As you can see, it only returns the label part, not the data, as indicated by the empty dictionary, `{}`. So far, I've played with various settings of the method arguments, but to no avail; I do not want to perform any text processing at this time. On my quest to achieve what I want ( a `tf.data.Dataset`), I've consulted these resources: [https://www.philschmid.de/huggingface-transformers-keras-tf](https://www.philschmid.de/huggingface-transformers-keras-tf) [https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow](https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow) I was surprised to not find more extensive examples on how to transform a Hugginface dataset to one compatible with TensorFlow. If you could point me to where I am going wrong, please do so. Thanks in advance for your support. --- Edit: In the [docs](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.to_tf_dataset), I found the following description: _In general, only columns that the model can use as input should be included here (numeric data only)._ Does this imply that no textual, i.e., `string` data can be loaded?
96
Can't get the text data when calling to_tf_dataset
[ -0.2756195366382599, -0.20069877803325653, -0.14774373173713684, 0.4984422028064728, 0.2815820276737213, 0.0047683496959507465, 0.23300179839134216, 0.36034274101257324, -0.33517831563949585, 0.38741591572761536, -0.1376045197248459, 0.12547077238559723, 0.291829377412796, 0.2669117748737335, -0.10410591959953308, 0.046420007944107056, -0.13647308945655823, 0.23656480014324188, -0.27628225088119507, -0.2695099413394928, -0.03274921700358391, 0.27862033247947693, -0.06919240206480026, 0.15574787557125092, -0.3849896490573883, -0.00726897781714797, 0.12307879328727722, 0.19840428233146667, 0.05241288244724274, 0.012869876809418201, -0.11949498951435089, 0.17358596622943878, -0.07241041958332062, 0.451397567987442, -0.00010651814955053851, 0.20563164353370667, -0.0039509874768555164, -0.060336869210004807, -0.185628741979599, -0.13513939082622528, -0.0684674084186554, -0.046314336359500885, -0.08902968466281891, -0.2810775339603424, -0.2497805505990982, 0.07009389996528625, 0.12795551121234894, 0.06281592696905136, -0.04998929798603058, 0.36116528511047363, 0.2592197358608246, 0.09101193398237228, 0.05513428896665573, 0.052283938974142075, 0.3355266749858856, 0.20506294071674347, -0.09031945466995239, -0.1837993711233139, 0.08105505257844925, 0.07398056983947754, -0.05456021800637245, 0.26166832447052, -0.07773678004741669, 0.1784026324748993, -0.20768140256404877, 0.34314411878585815, -0.3129845857620239, 0.04630037769675255, 0.30406805872917175, 0.22573517262935638, 0.8079725503921509, -0.3054933547973633, -0.14656761288642883, 0.030724091455340385, -0.21033087372779846, -0.03946618735790253, -0.012058478780090809, -0.2840459644794464, -0.33736613392829895, 0.14681513607501984, -0.1907816231250763, -0.1266789436340332, -0.2547571063041687, 0.25359562039375305, -0.1632469892501831, 0.23591956496238708, -0.11452282965183258, 0.12985262274742126, -0.22110411524772644, -0.09920673072338104, 0.19214500486850739, -0.1507367193698883, 0.001396802719682455, 0.10785400867462158, -0.15944862365722656, 0.029192106798291206, 0.22808639705181122, -0.281872421503067, 0.02904602140188217, -0.21695220470428467, -0.1687176674604416, 0.24230040609836578, -0.2898848354816437, -0.09773698449134827, -0.013867374509572983, -0.29679250717163086, 0.10096989572048187, 0.24882671236991882, 0.01812487281858921, -0.34473177790641785, -0.31380555033683777, -0.23883891105651855, -0.009625663980841637, 0.13768859207630157, 0.18774071335792542, -0.038787104189395905, 0.3069246709346771, -0.13656815886497498, -0.06318619847297668, -0.027550438418984413, 0.05790899693965912, -0.022861454635858536, -0.12267298251390457, 0.21850335597991943, 0.15950408577919006, 0.16328065097332, 0.26272594928741455, -0.07917466014623642, -0.18396224081516266, -0.1895715296268463, -0.3799343705177307, -0.14465545117855072, 0.08730990439653397, 0.005370600149035454, 0.22661691904067993, 0.15641453862190247, 0.013437618501484394, -0.05575656145811081, -0.03553895279765129, 0.16905567049980164, -0.1569795161485672, -0.440455824136734, 0.2182042896747589, 0.14357012510299683, 0.04982345551252365, 0.20902198553085327, 0.31800517439842224, 0.10072252154350281, 0.1141413152217865, 0.24907061457633972, -0.26561638712882996, -0.1421705186367035, 0.11332131177186966, 0.2806468605995178, 0.14565825462341309, -0.1831669956445694, 0.15424266457557678, 0.49325186014175415, 0.30184075236320496, -0.13760466873645782, -0.11030401289463043, -0.017035938799381256, -0.5404677391052246, -0.006216367240995169, 0.15890266001224518, 0.46002519130706787, -0.7628551721572876, 0.14940693974494934, 0.2233428806066513, -0.3033253848552704, 0.06416542828083038, -0.025948895141482353, -0.02297966554760933, 0.43942299485206604, -0.02449030615389347, 0.34371432662010193, 0.44241902232170105, -0.3257370889186859, -0.26485922932624817, 0.25341591238975525, -0.060226667672395706, -0.2287777066230774, 0.1846441924571991, -0.07230262458324432, 0.05085211619734764, 0.16107460856437683, 0.2874417006969452, 0.0028529951814562082, -0.22381506860256195, 0.053164951503276825, 0.01925136335194111, 0.19293387234210968, 0.1402517706155777, 0.10907202959060669, -0.014611334539949894, 0.307867169380188, 0.058051131665706635, 0.04385904595255852, 0.38323864340782166, 0.0437634252011776, 0.05422787740826607, 0.2714937627315521, 0.13126778602600098, 0.07757116109132767, 0.04934147372841835, -0.1913389414548874, 0.01917029544711113, 0.03794112801551819, 0.545365571975708, 0.2456045150756836, -0.15186697244644165, 0.094651959836483, -0.3055880665779114, 0.2071085423231125, 0.27999347448349, 0.18067510426044464, 0.23852324485778809, 0.41287726163864136, -0.057119742035865784, 0.20129428803920746, -0.0872153490781784, 0.16239674389362335, -0.45718392729759216, -0.0910484567284584, 0.139604389667511, 0.12272637337446213, 0.21138109266757965, -0.3657490313053131, 0.1207914724946022, 0.04232463985681534, -0.015608321875333786, 0.20260703563690186, -0.19067397713661194, 0.3214553892612457, -0.04766641929745674, 0.10165973007678986, -0.23369738459587097, 0.08764661848545074, -0.16641949117183685, -0.16887600719928741, -0.09450197964906693, -0.054700396955013275, 0.24947847425937653, -0.05269137769937515, 0.060613539069890976, -0.06926087290048599, 0.09382224828004837, 0.14117413759231567, 0.21714022755622864, -0.16329869627952576, 0.0005067568272352219, 0.05735479295253754, 0.2799392342567444, -0.2921980321407318, -0.08185053616762161, -0.13829071819782257, 0.09410057961940765, -0.07678355276584625, -0.6246334314346313, 0.5626622438430786, 1.1834365129470825, 0.026868382468819618, -0.06126219034194946, -0.031152354553341866, -0.06602402031421661, -0.06728143244981766, 0.08756185322999954, -0.05788117274641991, 0.1746063530445099, 0.3609139919281006, 0.03224856033921242, -0.07890862971544266, 0.03937973827123642, -0.17009004950523376, 0.20615741610527039, -0.11617015302181244, 0.06955422461032867, 0.21689435839653015, -0.11056928336620331, -0.09010536223649979, -0.3468632996082306, -0.016531959176063538, 0.0860896110534668, 0.29457926750183105, -0.3141286373138428, 0.014034029096364975, -0.2633311152458191, -0.5122830867767334, 0.005946395453065634, 0.005063916090875864, 0.15765902400016785, -0.40775787830352783, 0.0036159823648631573, 0.2097444087266922, 0.0963481217622757, -0.006002064794301987, -0.2934418320655823, -0.1413075029850006, 0.44453561305999756, -0.1052616685628891, -0.4538065493106842, -0.19475524127483368, -0.4297935664653778, 0.17467142641544342, -0.19507847726345062, 0.05890806019306183, 0.1593281626701355, -0.19150082767009735, 0.30689674615859985, 0.053008489310741425, -0.09975523501634598, 0.322194367647171, -0.43320006132125854, -0.11504179239273071, 0.1026727631688118, 0.40218135714530945, 0.11198437213897705, -0.010341211222112179, 0.22481949627399445, -0.34161195158958435, -0.3203396499156952, 0.015128301456570625, -0.0690089613199234, -0.2990460693836212, -0.1066463440656662, -0.5605749487876892, -0.06501854956150055, -0.19925867021083832, -0.010826528072357178, 0.03714772313833237, 0.21779531240463257, 0.4924776554107666, 0.11808682978153229, 0.2407107800245285, 0.0620347261428833, 0.07973416894674301, -0.3911379873752594, -0.19496746361255646, 0.17978662252426147, -0.10712254047393799, -0.33080294728279114, -0.0519413948059082, 0.33048105239868164, -0.0537782721221447, 0.04822564870119095, -0.38973134756088257, -0.11693155765533447, -0.2189396619796753, -0.057724736630916595, -0.30244195461273193, 0.10586319118738174, 0.15962214767932892, -0.03551694378256798, -0.3097397983074188, -0.3509983718395233, -0.17991751432418823, 0.3220769762992859, -0.21723444759845734, -0.13220332562923431, -0.1472049206495285, 0.37461283802986145, 0.22426043450832367, 0.2894859313964844, -0.20740100741386414, 0.07285536825656891, 0.1289455145597458, -0.509157657623291, 0.3212851881980896, -0.18696807324886322, -0.3702632188796997, 0.003114724066108465, 0.2235536128282547, 0.14835096895694733, 0.2795237600803375, -0.22259457409381866, 0.15608952939510345, -0.040062714368104935, 0.1223306804895401, -0.3157602548599243, -0.248728409409523, -0.20381616055965424, -0.02557133324444294, 0.0028938271570950747, 0.2765013575553894, 0.2660048305988312, -0.17521651089191437, -0.26208651065826416, -0.14578530192375183, -0.0870201513171196, -0.09060009568929672, 0.025524621829390526, -0.32224342226982117, 0.12397798895835876, -0.2875654399394989, 0.3209458291530609, 0.16371630132198334, 0.3627290725708008, -0.4119597375392914, -0.07290758192539215, 0.08802955597639084, 0.13384535908699036, 0.6087149381637573, -0.18891091644763947, 0.23576822876930237, 0.3793392777442932, -0.1359836757183075, -0.22791822254657745, 0.34385553002357483, -0.3577347695827484, 0.25528252124786377, -0.03198593482375145, 0.4056262969970703, -0.16953721642494202, -0.2745690941810608, 0.192785382270813, -0.09288598597049713, -0.1556113213300705, 0.003687662072479725, 0.02512587048113346, -0.2001039683818817, -0.07007439434528351, -0.21710538864135742, 0.05642833933234215, 0.3097606897354126, 0.018817540258169174, -0.008386436849832535, 0.1533106565475464, -0.10104097425937653, 0.2129797637462616, -0.013194755651056767, 0.11511357128620148, 0.09732846915721893, -0.03191307187080383, -0.03417376056313515, 0.018217753618955612, -0.0005436085630208254, 0.37739014625549316, -0.00902051292359829, -0.2676136791706085, 0.20817148685455322, -0.3244970142841339, 0.47242411971092224, 0.3106571137905121, -0.22728510200977325, 0.18815350532531738, 0.003053516848012805, 0.05079067870974541, 0.06724238395690918, 0.3027364909648895, 0.2194802612066269, 0.03913068026304245, -0.21705211699008942, -0.27708104252815247, -0.008040602318942547, -0.40207773447036743, 0.08126343041658401, 0.19500888884067535, 0.07619115710258484, -0.42096665501594543, 0.05734334513545036, -0.16843438148498535, 0.8421042561531067, -0.00220252457074821, 0.3387342095375061, 0.3424323797225952, 0.11078161746263504, 0.28564006090164185, -0.31163489818573, 0.010421572253108025, -0.35314178466796875, -0.19821076095104218, 0.0006637567421421409, 0.06034138426184654, -0.1337958425283432, 0.3082279860973358, -0.10786464810371399, -0.004966895096004009, 0.02899046801030636, 0.28358522057533264, 0.22671034932136536, 0.2584983706474304, 0.03017711453139782, -0.1879342943429947, -0.12838341295719147, 0.2528952956199646, 0.03994029387831688, 0.019269220530986786, 0.029859168455004692, -0.11319693922996521, -0.15867362916469574, -0.03817121312022209, -0.05818206071853638, 0.12123730778694153, -0.39081087708473206, -0.031603895127773285, -0.1623934507369995, -0.1327953338623047, -0.35105398297309875, 0.052570927888154984, 0.2941450774669647, 0.3056957423686981, -0.3456542193889618, -0.1513981819152832, -0.12006735801696777, 0.09752514213323593, -0.04872770980000496, 0.2158297747373581, 0.5049208998680115, 0.06289095431566238, -0.23418545722961426, 0.06818817555904388, 0.1414041817188263, -0.14631658792495728, -0.10508076101541519, -0.3620489835739136, -0.25512051582336426, -0.5854071974754333, -0.23808780312538147, 0.07013921439647675, 0.008131620474159718, -0.014219176955521107, 0.19260360300540924, -0.15836209058761597, -0.08680765330791473, -0.0010697682155296206, 0.15291433036327362, -0.28069254755973816, -0.012131845578551292, 0.3550332188606262, 0.05166900157928467, 0.3202662467956543, 0.5534886121749878, 0.333927720785141, -0.1127093955874443, -0.2338140606880188, 0.12644703686237335, 0.3129344582557678, -0.39292559027671814, -0.04761292785406113, 0.03584981709718704, 0.21432746946811676, 0.11022832244634628, 0.32167571783065796, -0.3547508716583252, -0.1272423416376114, -0.36309248208999634, -0.224983811378479, -0.3691045939922333, 0.14822588860988617, 0.10149578005075455, 0.14636577665805817, 0.06596973538398743, 0.5048033595085144, 0.0496278814971447, 0.009932047687470913, -0.44218742847442627, -0.27110397815704346, -0.06366104632616043, -0.01106368750333786, 0.35514718294143677, -0.0716051533818245, 0.3333612382411957, -0.03013422340154648, 0.24105378985404968, 0.15933021903038025, -0.06115421652793884, -0.3974876403808594, -0.10403620451688766, 0.07488911598920822, 0.284953236579895, -0.08661054819822311, -0.10568614304065704, -0.18875852227210999, -0.3586927354335785, -0.07906538248062134, 0.100749671459198, 0.24644246697425842, -0.17106778919696808, 0.3100168704986572, -0.13967472314834595, 0.31332024931907654, 0.024258380755782127, -0.15575829148292542, 0.06331700831651688, 0.20427164435386658, -0.018708590418100357, -0.01211752463132143, -0.09562059491872787, -0.01907176710665226, 0.06055757403373718, 0.07155940681695938, 0.18621715903282166, -0.024573566392064095, 0.14878728985786438, -0.1219683289527893, 0.07517476379871368, -0.1875021904706955, 0.39060771465301514, -0.020321430638432503, -0.1344415843486786, -0.08252085745334625, -0.05615764483809471, 0.23129607737064362, -0.1377233862876892, 0.0312974788248539, 0.09005293995141983, -0.4736629128456116, -0.04916849359869957, 0.1707487553358078, -0.17928026616573334, 0.3133980333805084, 0.22247253358364105, -0.04037979617714882, 0.18356215953826904, -0.27608349919319153, -0.37462571263313293, 0.48653796315193176, -0.12538759410381317, 0.2760167121887207, 0.18375632166862488, 0.34005942940711975, -0.20301678776741028, 0.6303751468658447, 0.23604343831539154, 0.021836835891008377, -0.30531615018844604, -0.09530835598707199, -0.032472290098667145, -0.3141525983810425, 0.20023472607135773, 0.08517251163721085, -0.24912415444850922, 0.2865254282951355, -0.26876917481422424, -0.03902944549918175, 0.003480729414150119, 0.16226428747177124, 0.028423670679330826, 0.14861255884170532, -0.13885977864265442, -0.19738730788230896, -0.0077586728148162365, -0.02944607473909855, -0.14126527309417725, -0.14373679459095, -0.04786261171102524, 0.058892786502838135, -0.2293451726436615, -0.18777400255203247, -0.06393837183713913, -0.20839375257492065, -0.1434558480978012, -0.23017875850200653, -0.06615898758172989, -0.1625514179468155, 0.3820536732673645, -0.33808305859565735, 0.12081080675125122, 0.3115365505218506, 0.26867955923080444, 0.02272002212703228, 0.03847649693489075, 0.26726728677749634, 0.028418997302651405, -0.14846068620681763, -0.28249096870422363, -0.10498637706041336, 0.3306084871292114, 0.23055535554885864, 0.16621622443199158, 0.23964817821979523, 0.15654419362545013, -0.20581990480422974, -0.04313017427921295, 0.34582915902137756, 0.00417160801589489, -0.12614132463932037, 0.025960315018892288, 0.11648731678724289, -0.1692582368850708, -0.042907096445560455, -0.09829135984182358, -0.20783990621566772, 0.000606890011113137, 0.4773406386375427, 0.068863645195961, 0.3460817337036133, -0.06807226687669754, 0.1512247622013092, -0.12327848374843597, 0.2969987392425537, 0.11073043197393417, 0.19386179745197296, -0.09136871993541718, 0.07288876175880432, -0.25598934292793274, 0.17540343105793, 0.24082466959953308, -0.10064972937107086, -0.023472413420677185, 0.053823210299015045, 0.544069230556488, 0.012939919717609882, 0.26698043942451477, -0.0010031472193077207, -0.24931244552135468, -0.07362215220928192, -0.11168134957551956, -0.5936121940612793, -0.4140438437461853, 0.10676153004169464, -0.03191747888922691, -0.21312139928340912, 0.07150264084339142, -0.028033141046762466, 0.21988703310489655, -0.4212368428707123, -0.004171563312411308, 0.166017547249794, 0.02720675989985466, 0.09579139202833176, 0.04445546120405197, 0.2867448031902313, -0.17316646873950958, 0.3043467700481415, 0.14355376362800598, -0.2601781189441681, -0.32097506523132324, 0.24704526364803314, 0.05758974328637123, 0.16284097731113434, 0.00033737567719072104, -0.1419600248336792, 0.007266182918101549, -0.14101728796958923, 0.0766211748123169, 0.24268141388893127, 0.12422331422567368, 0.2470385581254959, -0.08868186920881271, -0.1805063784122467, 0.09180941432714462, 0.29503917694091797, -0.015596062876284122, 0.19734328985214233, -0.3323311507701874, -0.212362140417099, 0.325053334236145, -0.15759994089603424, -0.4683327078819275, -0.04375234618782997, -0.006202069576829672, 0.16670098900794983, 0.04748916998505592, -0.5262383818626404, 0.06497226655483246, 0.4364042282104492, -0.19501332938671112, -0.22687804698944092, 0.2077818512916565, -0.03239939361810684, 0.200590580701828, -0.005253612995147705, 0.4829830229282379, 0.22359901666641235, -0.09985370188951492, -0.22591671347618103, -0.0031290920451283455 ]
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
Thanks for the quick follow-up to my issue. For my use-case, instead of the built-in tokenizers I wanted to use the `TextVectorization` layer to map from strings to integers. To achieve this, I came up with the following solution: ``` from datasets import load_dataset from transformers import DefaultDataCollator import tensorflow as tf import string import re from tensorflow.keras.layers.experimental.preprocessing import TextVectorization #some hyper-parameters for the text-to-integer mapping max_features = 20000 embedding_dim = 128 sequence_length = 210 data_collator = DefaultDataCollator(return_tensors="tf") dataset = load_dataset("sst", "default") #adapt the vectorization layer on train data only vectorize_layer.adapt(dataset["train"].to_dict(batched=False)["sentence"]) def prepare_features(text, label): text = tf.expand_dims(text, -1) return {"vectorized_text": vectorize_layer(text)[0], "label": tf.expand_dims(label, axis=-1)} encoded_dataset = dataset.map(lambda example: prepare_features(example["sentence"], example["label"]), batched=False) def custom_standardization(input_data): lowercase = tf.strings.lower(input_data) return tf.strings.regex_replace( lowercase, f"[{re.escape(string.punctuation)}]", "" ) vectorize_layer = TextVectorization( standardize=custom_standardization, max_tokens=max_features, output_mode="int", output_sequence_length=sequence_length, ) train_dataset = encoded_dataset["train"].to_tf_dataset(columns=['vectorized_text'], label_cols=["label"], shuffle=True, batch_size=1, collate_fn=data_collator).unbatch() #similar for the other sub-sets ``` Since the strings would have been mapped to integers or floats at some point, it's no drawback that this mapping is done early in the process. For the future, however, it'd be more convenient to get the string data, since I am also inspecting the dataset (longest sentence, shortest sentence), which is more challenging when working with integer or float. For now, this can be done by calling `to_dict`.
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = DefaultDataCollator(return_tensors="tf") dataset = load_dataset("sst") train_dataset = dataset["train"].to_tf_dataset(columns=['sentence'], label_cols="label", shuffle=True, batch_size=8,collate_fn=data_collator) ``` However, this only gets me the labels; the text--the most important part--is missing: ``` for s in train_dataset.take(1): print(s) #prints something like: ({}, <tf.Tensor: shape=(8,), ...>) ``` As you can see, it only returns the label part, not the data, as indicated by the empty dictionary, `{}`. So far, I've played with various settings of the method arguments, but to no avail; I do not want to perform any text processing at this time. On my quest to achieve what I want ( a `tf.data.Dataset`), I've consulted these resources: [https://www.philschmid.de/huggingface-transformers-keras-tf](https://www.philschmid.de/huggingface-transformers-keras-tf) [https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow](https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow) I was surprised to not find more extensive examples on how to transform a Hugginface dataset to one compatible with TensorFlow. If you could point me to where I am going wrong, please do so. Thanks in advance for your support. --- Edit: In the [docs](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.to_tf_dataset), I found the following description: _In general, only columns that the model can use as input should be included here (numeric data only)._ Does this imply that no textual, i.e., `string` data can be loaded?
212
Can't get the text data when calling to_tf_dataset
[ -0.2756195366382599, -0.20069877803325653, -0.14774373173713684, 0.4984422028064728, 0.2815820276737213, 0.0047683496959507465, 0.23300179839134216, 0.36034274101257324, -0.33517831563949585, 0.38741591572761536, -0.1376045197248459, 0.12547077238559723, 0.291829377412796, 0.2669117748737335, -0.10410591959953308, 0.046420007944107056, -0.13647308945655823, 0.23656480014324188, -0.27628225088119507, -0.2695099413394928, -0.03274921700358391, 0.27862033247947693, -0.06919240206480026, 0.15574787557125092, -0.3849896490573883, -0.00726897781714797, 0.12307879328727722, 0.19840428233146667, 0.05241288244724274, 0.012869876809418201, -0.11949498951435089, 0.17358596622943878, -0.07241041958332062, 0.451397567987442, -0.00010651814955053851, 0.20563164353370667, -0.0039509874768555164, -0.060336869210004807, -0.185628741979599, -0.13513939082622528, -0.0684674084186554, -0.046314336359500885, -0.08902968466281891, -0.2810775339603424, -0.2497805505990982, 0.07009389996528625, 0.12795551121234894, 0.06281592696905136, -0.04998929798603058, 0.36116528511047363, 0.2592197358608246, 0.09101193398237228, 0.05513428896665573, 0.052283938974142075, 0.3355266749858856, 0.20506294071674347, -0.09031945466995239, -0.1837993711233139, 0.08105505257844925, 0.07398056983947754, -0.05456021800637245, 0.26166832447052, -0.07773678004741669, 0.1784026324748993, -0.20768140256404877, 0.34314411878585815, -0.3129845857620239, 0.04630037769675255, 0.30406805872917175, 0.22573517262935638, 0.8079725503921509, -0.3054933547973633, -0.14656761288642883, 0.030724091455340385, -0.21033087372779846, -0.03946618735790253, -0.012058478780090809, -0.2840459644794464, -0.33736613392829895, 0.14681513607501984, -0.1907816231250763, -0.1266789436340332, -0.2547571063041687, 0.25359562039375305, -0.1632469892501831, 0.23591956496238708, -0.11452282965183258, 0.12985262274742126, -0.22110411524772644, -0.09920673072338104, 0.19214500486850739, -0.1507367193698883, 0.001396802719682455, 0.10785400867462158, -0.15944862365722656, 0.029192106798291206, 0.22808639705181122, -0.281872421503067, 0.02904602140188217, -0.21695220470428467, -0.1687176674604416, 0.24230040609836578, -0.2898848354816437, -0.09773698449134827, -0.013867374509572983, -0.29679250717163086, 0.10096989572048187, 0.24882671236991882, 0.01812487281858921, -0.34473177790641785, -0.31380555033683777, -0.23883891105651855, -0.009625663980841637, 0.13768859207630157, 0.18774071335792542, -0.038787104189395905, 0.3069246709346771, -0.13656815886497498, -0.06318619847297668, -0.027550438418984413, 0.05790899693965912, -0.022861454635858536, -0.12267298251390457, 0.21850335597991943, 0.15950408577919006, 0.16328065097332, 0.26272594928741455, -0.07917466014623642, -0.18396224081516266, -0.1895715296268463, -0.3799343705177307, -0.14465545117855072, 0.08730990439653397, 0.005370600149035454, 0.22661691904067993, 0.15641453862190247, 0.013437618501484394, -0.05575656145811081, -0.03553895279765129, 0.16905567049980164, -0.1569795161485672, -0.440455824136734, 0.2182042896747589, 0.14357012510299683, 0.04982345551252365, 0.20902198553085327, 0.31800517439842224, 0.10072252154350281, 0.1141413152217865, 0.24907061457633972, -0.26561638712882996, -0.1421705186367035, 0.11332131177186966, 0.2806468605995178, 0.14565825462341309, -0.1831669956445694, 0.15424266457557678, 0.49325186014175415, 0.30184075236320496, -0.13760466873645782, -0.11030401289463043, -0.017035938799381256, -0.5404677391052246, -0.006216367240995169, 0.15890266001224518, 0.46002519130706787, -0.7628551721572876, 0.14940693974494934, 0.2233428806066513, -0.3033253848552704, 0.06416542828083038, -0.025948895141482353, -0.02297966554760933, 0.43942299485206604, -0.02449030615389347, 0.34371432662010193, 0.44241902232170105, -0.3257370889186859, -0.26485922932624817, 0.25341591238975525, -0.060226667672395706, -0.2287777066230774, 0.1846441924571991, -0.07230262458324432, 0.05085211619734764, 0.16107460856437683, 0.2874417006969452, 0.0028529951814562082, -0.22381506860256195, 0.053164951503276825, 0.01925136335194111, 0.19293387234210968, 0.1402517706155777, 0.10907202959060669, -0.014611334539949894, 0.307867169380188, 0.058051131665706635, 0.04385904595255852, 0.38323864340782166, 0.0437634252011776, 0.05422787740826607, 0.2714937627315521, 0.13126778602600098, 0.07757116109132767, 0.04934147372841835, -0.1913389414548874, 0.01917029544711113, 0.03794112801551819, 0.545365571975708, 0.2456045150756836, -0.15186697244644165, 0.094651959836483, -0.3055880665779114, 0.2071085423231125, 0.27999347448349, 0.18067510426044464, 0.23852324485778809, 0.41287726163864136, -0.057119742035865784, 0.20129428803920746, -0.0872153490781784, 0.16239674389362335, -0.45718392729759216, -0.0910484567284584, 0.139604389667511, 0.12272637337446213, 0.21138109266757965, -0.3657490313053131, 0.1207914724946022, 0.04232463985681534, -0.015608321875333786, 0.20260703563690186, -0.19067397713661194, 0.3214553892612457, -0.04766641929745674, 0.10165973007678986, -0.23369738459587097, 0.08764661848545074, -0.16641949117183685, -0.16887600719928741, -0.09450197964906693, -0.054700396955013275, 0.24947847425937653, -0.05269137769937515, 0.060613539069890976, -0.06926087290048599, 0.09382224828004837, 0.14117413759231567, 0.21714022755622864, -0.16329869627952576, 0.0005067568272352219, 0.05735479295253754, 0.2799392342567444, -0.2921980321407318, -0.08185053616762161, -0.13829071819782257, 0.09410057961940765, -0.07678355276584625, -0.6246334314346313, 0.5626622438430786, 1.1834365129470825, 0.026868382468819618, -0.06126219034194946, -0.031152354553341866, -0.06602402031421661, -0.06728143244981766, 0.08756185322999954, -0.05788117274641991, 0.1746063530445099, 0.3609139919281006, 0.03224856033921242, -0.07890862971544266, 0.03937973827123642, -0.17009004950523376, 0.20615741610527039, -0.11617015302181244, 0.06955422461032867, 0.21689435839653015, -0.11056928336620331, -0.09010536223649979, -0.3468632996082306, -0.016531959176063538, 0.0860896110534668, 0.29457926750183105, -0.3141286373138428, 0.014034029096364975, -0.2633311152458191, -0.5122830867767334, 0.005946395453065634, 0.005063916090875864, 0.15765902400016785, -0.40775787830352783, 0.0036159823648631573, 0.2097444087266922, 0.0963481217622757, -0.006002064794301987, -0.2934418320655823, -0.1413075029850006, 0.44453561305999756, -0.1052616685628891, -0.4538065493106842, -0.19475524127483368, -0.4297935664653778, 0.17467142641544342, -0.19507847726345062, 0.05890806019306183, 0.1593281626701355, -0.19150082767009735, 0.30689674615859985, 0.053008489310741425, -0.09975523501634598, 0.322194367647171, -0.43320006132125854, -0.11504179239273071, 0.1026727631688118, 0.40218135714530945, 0.11198437213897705, -0.010341211222112179, 0.22481949627399445, -0.34161195158958435, -0.3203396499156952, 0.015128301456570625, -0.0690089613199234, -0.2990460693836212, -0.1066463440656662, -0.5605749487876892, -0.06501854956150055, -0.19925867021083832, -0.010826528072357178, 0.03714772313833237, 0.21779531240463257, 0.4924776554107666, 0.11808682978153229, 0.2407107800245285, 0.0620347261428833, 0.07973416894674301, -0.3911379873752594, -0.19496746361255646, 0.17978662252426147, -0.10712254047393799, -0.33080294728279114, -0.0519413948059082, 0.33048105239868164, -0.0537782721221447, 0.04822564870119095, -0.38973134756088257, -0.11693155765533447, -0.2189396619796753, -0.057724736630916595, -0.30244195461273193, 0.10586319118738174, 0.15962214767932892, -0.03551694378256798, -0.3097397983074188, -0.3509983718395233, -0.17991751432418823, 0.3220769762992859, -0.21723444759845734, -0.13220332562923431, -0.1472049206495285, 0.37461283802986145, 0.22426043450832367, 0.2894859313964844, -0.20740100741386414, 0.07285536825656891, 0.1289455145597458, -0.509157657623291, 0.3212851881980896, -0.18696807324886322, -0.3702632188796997, 0.003114724066108465, 0.2235536128282547, 0.14835096895694733, 0.2795237600803375, -0.22259457409381866, 0.15608952939510345, -0.040062714368104935, 0.1223306804895401, -0.3157602548599243, -0.248728409409523, -0.20381616055965424, -0.02557133324444294, 0.0028938271570950747, 0.2765013575553894, 0.2660048305988312, -0.17521651089191437, -0.26208651065826416, -0.14578530192375183, -0.0870201513171196, -0.09060009568929672, 0.025524621829390526, -0.32224342226982117, 0.12397798895835876, -0.2875654399394989, 0.3209458291530609, 0.16371630132198334, 0.3627290725708008, -0.4119597375392914, -0.07290758192539215, 0.08802955597639084, 0.13384535908699036, 0.6087149381637573, -0.18891091644763947, 0.23576822876930237, 0.3793392777442932, -0.1359836757183075, -0.22791822254657745, 0.34385553002357483, -0.3577347695827484, 0.25528252124786377, -0.03198593482375145, 0.4056262969970703, -0.16953721642494202, -0.2745690941810608, 0.192785382270813, -0.09288598597049713, -0.1556113213300705, 0.003687662072479725, 0.02512587048113346, -0.2001039683818817, -0.07007439434528351, -0.21710538864135742, 0.05642833933234215, 0.3097606897354126, 0.018817540258169174, -0.008386436849832535, 0.1533106565475464, -0.10104097425937653, 0.2129797637462616, -0.013194755651056767, 0.11511357128620148, 0.09732846915721893, -0.03191307187080383, -0.03417376056313515, 0.018217753618955612, -0.0005436085630208254, 0.37739014625549316, -0.00902051292359829, -0.2676136791706085, 0.20817148685455322, -0.3244970142841339, 0.47242411971092224, 0.3106571137905121, -0.22728510200977325, 0.18815350532531738, 0.003053516848012805, 0.05079067870974541, 0.06724238395690918, 0.3027364909648895, 0.2194802612066269, 0.03913068026304245, -0.21705211699008942, -0.27708104252815247, -0.008040602318942547, -0.40207773447036743, 0.08126343041658401, 0.19500888884067535, 0.07619115710258484, -0.42096665501594543, 0.05734334513545036, -0.16843438148498535, 0.8421042561531067, -0.00220252457074821, 0.3387342095375061, 0.3424323797225952, 0.11078161746263504, 0.28564006090164185, -0.31163489818573, 0.010421572253108025, -0.35314178466796875, -0.19821076095104218, 0.0006637567421421409, 0.06034138426184654, -0.1337958425283432, 0.3082279860973358, -0.10786464810371399, -0.004966895096004009, 0.02899046801030636, 0.28358522057533264, 0.22671034932136536, 0.2584983706474304, 0.03017711453139782, -0.1879342943429947, -0.12838341295719147, 0.2528952956199646, 0.03994029387831688, 0.019269220530986786, 0.029859168455004692, -0.11319693922996521, -0.15867362916469574, -0.03817121312022209, -0.05818206071853638, 0.12123730778694153, -0.39081087708473206, -0.031603895127773285, -0.1623934507369995, -0.1327953338623047, -0.35105398297309875, 0.052570927888154984, 0.2941450774669647, 0.3056957423686981, -0.3456542193889618, -0.1513981819152832, -0.12006735801696777, 0.09752514213323593, -0.04872770980000496, 0.2158297747373581, 0.5049208998680115, 0.06289095431566238, -0.23418545722961426, 0.06818817555904388, 0.1414041817188263, -0.14631658792495728, -0.10508076101541519, -0.3620489835739136, -0.25512051582336426, -0.5854071974754333, -0.23808780312538147, 0.07013921439647675, 0.008131620474159718, -0.014219176955521107, 0.19260360300540924, -0.15836209058761597, -0.08680765330791473, -0.0010697682155296206, 0.15291433036327362, -0.28069254755973816, -0.012131845578551292, 0.3550332188606262, 0.05166900157928467, 0.3202662467956543, 0.5534886121749878, 0.333927720785141, -0.1127093955874443, -0.2338140606880188, 0.12644703686237335, 0.3129344582557678, -0.39292559027671814, -0.04761292785406113, 0.03584981709718704, 0.21432746946811676, 0.11022832244634628, 0.32167571783065796, -0.3547508716583252, -0.1272423416376114, -0.36309248208999634, -0.224983811378479, -0.3691045939922333, 0.14822588860988617, 0.10149578005075455, 0.14636577665805817, 0.06596973538398743, 0.5048033595085144, 0.0496278814971447, 0.009932047687470913, -0.44218742847442627, -0.27110397815704346, -0.06366104632616043, -0.01106368750333786, 0.35514718294143677, -0.0716051533818245, 0.3333612382411957, -0.03013422340154648, 0.24105378985404968, 0.15933021903038025, -0.06115421652793884, -0.3974876403808594, -0.10403620451688766, 0.07488911598920822, 0.284953236579895, -0.08661054819822311, -0.10568614304065704, -0.18875852227210999, -0.3586927354335785, -0.07906538248062134, 0.100749671459198, 0.24644246697425842, -0.17106778919696808, 0.3100168704986572, -0.13967472314834595, 0.31332024931907654, 0.024258380755782127, -0.15575829148292542, 0.06331700831651688, 0.20427164435386658, -0.018708590418100357, -0.01211752463132143, -0.09562059491872787, -0.01907176710665226, 0.06055757403373718, 0.07155940681695938, 0.18621715903282166, -0.024573566392064095, 0.14878728985786438, -0.1219683289527893, 0.07517476379871368, -0.1875021904706955, 0.39060771465301514, -0.020321430638432503, -0.1344415843486786, -0.08252085745334625, -0.05615764483809471, 0.23129607737064362, -0.1377233862876892, 0.0312974788248539, 0.09005293995141983, -0.4736629128456116, -0.04916849359869957, 0.1707487553358078, -0.17928026616573334, 0.3133980333805084, 0.22247253358364105, -0.04037979617714882, 0.18356215953826904, -0.27608349919319153, -0.37462571263313293, 0.48653796315193176, -0.12538759410381317, 0.2760167121887207, 0.18375632166862488, 0.34005942940711975, -0.20301678776741028, 0.6303751468658447, 0.23604343831539154, 0.021836835891008377, -0.30531615018844604, -0.09530835598707199, -0.032472290098667145, -0.3141525983810425, 0.20023472607135773, 0.08517251163721085, -0.24912415444850922, 0.2865254282951355, -0.26876917481422424, -0.03902944549918175, 0.003480729414150119, 0.16226428747177124, 0.028423670679330826, 0.14861255884170532, -0.13885977864265442, -0.19738730788230896, -0.0077586728148162365, -0.02944607473909855, -0.14126527309417725, -0.14373679459095, -0.04786261171102524, 0.058892786502838135, -0.2293451726436615, -0.18777400255203247, -0.06393837183713913, -0.20839375257492065, -0.1434558480978012, -0.23017875850200653, -0.06615898758172989, -0.1625514179468155, 0.3820536732673645, -0.33808305859565735, 0.12081080675125122, 0.3115365505218506, 0.26867955923080444, 0.02272002212703228, 0.03847649693489075, 0.26726728677749634, 0.028418997302651405, -0.14846068620681763, -0.28249096870422363, -0.10498637706041336, 0.3306084871292114, 0.23055535554885864, 0.16621622443199158, 0.23964817821979523, 0.15654419362545013, -0.20581990480422974, -0.04313017427921295, 0.34582915902137756, 0.00417160801589489, -0.12614132463932037, 0.025960315018892288, 0.11648731678724289, -0.1692582368850708, -0.042907096445560455, -0.09829135984182358, -0.20783990621566772, 0.000606890011113137, 0.4773406386375427, 0.068863645195961, 0.3460817337036133, -0.06807226687669754, 0.1512247622013092, -0.12327848374843597, 0.2969987392425537, 0.11073043197393417, 0.19386179745197296, -0.09136871993541718, 0.07288876175880432, -0.25598934292793274, 0.17540343105793, 0.24082466959953308, -0.10064972937107086, -0.023472413420677185, 0.053823210299015045, 0.544069230556488, 0.012939919717609882, 0.26698043942451477, -0.0010031472193077207, -0.24931244552135468, -0.07362215220928192, -0.11168134957551956, -0.5936121940612793, -0.4140438437461853, 0.10676153004169464, -0.03191747888922691, -0.21312139928340912, 0.07150264084339142, -0.028033141046762466, 0.21988703310489655, -0.4212368428707123, -0.004171563312411308, 0.166017547249794, 0.02720675989985466, 0.09579139202833176, 0.04445546120405197, 0.2867448031902313, -0.17316646873950958, 0.3043467700481415, 0.14355376362800598, -0.2601781189441681, -0.32097506523132324, 0.24704526364803314, 0.05758974328637123, 0.16284097731113434, 0.00033737567719072104, -0.1419600248336792, 0.007266182918101549, -0.14101728796958923, 0.0766211748123169, 0.24268141388893127, 0.12422331422567368, 0.2470385581254959, -0.08868186920881271, -0.1805063784122467, 0.09180941432714462, 0.29503917694091797, -0.015596062876284122, 0.19734328985214233, -0.3323311507701874, -0.212362140417099, 0.325053334236145, -0.15759994089603424, -0.4683327078819275, -0.04375234618782997, -0.006202069576829672, 0.16670098900794983, 0.04748916998505592, -0.5262383818626404, 0.06497226655483246, 0.4364042282104492, -0.19501332938671112, -0.22687804698944092, 0.2077818512916565, -0.03239939361810684, 0.200590580701828, -0.005253612995147705, 0.4829830229282379, 0.22359901666641235, -0.09985370188951492, -0.22591671347618103, -0.0031290920451283455 ]
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
> For the future, however, it'd be more convenient to get the string data, since I am also inspecting the dataset (longest sentence, shortest sentence), which is more challenging when working with integer or float. Yes, I agree, so let's keep this issue open.
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = DefaultDataCollator(return_tensors="tf") dataset = load_dataset("sst") train_dataset = dataset["train"].to_tf_dataset(columns=['sentence'], label_cols="label", shuffle=True, batch_size=8,collate_fn=data_collator) ``` However, this only gets me the labels; the text--the most important part--is missing: ``` for s in train_dataset.take(1): print(s) #prints something like: ({}, <tf.Tensor: shape=(8,), ...>) ``` As you can see, it only returns the label part, not the data, as indicated by the empty dictionary, `{}`. So far, I've played with various settings of the method arguments, but to no avail; I do not want to perform any text processing at this time. On my quest to achieve what I want ( a `tf.data.Dataset`), I've consulted these resources: [https://www.philschmid.de/huggingface-transformers-keras-tf](https://www.philschmid.de/huggingface-transformers-keras-tf) [https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow](https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow) I was surprised to not find more extensive examples on how to transform a Hugginface dataset to one compatible with TensorFlow. If you could point me to where I am going wrong, please do so. Thanks in advance for your support. --- Edit: In the [docs](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.to_tf_dataset), I found the following description: _In general, only columns that the model can use as input should be included here (numeric data only)._ Does this imply that no textual, i.e., `string` data can be loaded?
44
Can't get the text data when calling to_tf_dataset
[ -0.2756195366382599, -0.20069877803325653, -0.14774373173713684, 0.4984422028064728, 0.2815820276737213, 0.0047683496959507465, 0.23300179839134216, 0.36034274101257324, -0.33517831563949585, 0.38741591572761536, -0.1376045197248459, 0.12547077238559723, 0.291829377412796, 0.2669117748737335, -0.10410591959953308, 0.046420007944107056, -0.13647308945655823, 0.23656480014324188, -0.27628225088119507, -0.2695099413394928, -0.03274921700358391, 0.27862033247947693, -0.06919240206480026, 0.15574787557125092, -0.3849896490573883, -0.00726897781714797, 0.12307879328727722, 0.19840428233146667, 0.05241288244724274, 0.012869876809418201, -0.11949498951435089, 0.17358596622943878, -0.07241041958332062, 0.451397567987442, -0.00010651814955053851, 0.20563164353370667, -0.0039509874768555164, -0.060336869210004807, -0.185628741979599, -0.13513939082622528, -0.0684674084186554, -0.046314336359500885, -0.08902968466281891, -0.2810775339603424, -0.2497805505990982, 0.07009389996528625, 0.12795551121234894, 0.06281592696905136, -0.04998929798603058, 0.36116528511047363, 0.2592197358608246, 0.09101193398237228, 0.05513428896665573, 0.052283938974142075, 0.3355266749858856, 0.20506294071674347, -0.09031945466995239, -0.1837993711233139, 0.08105505257844925, 0.07398056983947754, -0.05456021800637245, 0.26166832447052, -0.07773678004741669, 0.1784026324748993, -0.20768140256404877, 0.34314411878585815, -0.3129845857620239, 0.04630037769675255, 0.30406805872917175, 0.22573517262935638, 0.8079725503921509, -0.3054933547973633, -0.14656761288642883, 0.030724091455340385, -0.21033087372779846, -0.03946618735790253, -0.012058478780090809, -0.2840459644794464, -0.33736613392829895, 0.14681513607501984, -0.1907816231250763, -0.1266789436340332, -0.2547571063041687, 0.25359562039375305, -0.1632469892501831, 0.23591956496238708, -0.11452282965183258, 0.12985262274742126, -0.22110411524772644, -0.09920673072338104, 0.19214500486850739, -0.1507367193698883, 0.001396802719682455, 0.10785400867462158, -0.15944862365722656, 0.029192106798291206, 0.22808639705181122, -0.281872421503067, 0.02904602140188217, -0.21695220470428467, -0.1687176674604416, 0.24230040609836578, -0.2898848354816437, -0.09773698449134827, -0.013867374509572983, -0.29679250717163086, 0.10096989572048187, 0.24882671236991882, 0.01812487281858921, -0.34473177790641785, -0.31380555033683777, -0.23883891105651855, -0.009625663980841637, 0.13768859207630157, 0.18774071335792542, -0.038787104189395905, 0.3069246709346771, -0.13656815886497498, -0.06318619847297668, -0.027550438418984413, 0.05790899693965912, -0.022861454635858536, -0.12267298251390457, 0.21850335597991943, 0.15950408577919006, 0.16328065097332, 0.26272594928741455, -0.07917466014623642, -0.18396224081516266, -0.1895715296268463, -0.3799343705177307, -0.14465545117855072, 0.08730990439653397, 0.005370600149035454, 0.22661691904067993, 0.15641453862190247, 0.013437618501484394, -0.05575656145811081, -0.03553895279765129, 0.16905567049980164, -0.1569795161485672, -0.440455824136734, 0.2182042896747589, 0.14357012510299683, 0.04982345551252365, 0.20902198553085327, 0.31800517439842224, 0.10072252154350281, 0.1141413152217865, 0.24907061457633972, -0.26561638712882996, -0.1421705186367035, 0.11332131177186966, 0.2806468605995178, 0.14565825462341309, -0.1831669956445694, 0.15424266457557678, 0.49325186014175415, 0.30184075236320496, -0.13760466873645782, -0.11030401289463043, -0.017035938799381256, -0.5404677391052246, -0.006216367240995169, 0.15890266001224518, 0.46002519130706787, -0.7628551721572876, 0.14940693974494934, 0.2233428806066513, -0.3033253848552704, 0.06416542828083038, -0.025948895141482353, -0.02297966554760933, 0.43942299485206604, -0.02449030615389347, 0.34371432662010193, 0.44241902232170105, -0.3257370889186859, -0.26485922932624817, 0.25341591238975525, -0.060226667672395706, -0.2287777066230774, 0.1846441924571991, -0.07230262458324432, 0.05085211619734764, 0.16107460856437683, 0.2874417006969452, 0.0028529951814562082, -0.22381506860256195, 0.053164951503276825, 0.01925136335194111, 0.19293387234210968, 0.1402517706155777, 0.10907202959060669, -0.014611334539949894, 0.307867169380188, 0.058051131665706635, 0.04385904595255852, 0.38323864340782166, 0.0437634252011776, 0.05422787740826607, 0.2714937627315521, 0.13126778602600098, 0.07757116109132767, 0.04934147372841835, -0.1913389414548874, 0.01917029544711113, 0.03794112801551819, 0.545365571975708, 0.2456045150756836, -0.15186697244644165, 0.094651959836483, -0.3055880665779114, 0.2071085423231125, 0.27999347448349, 0.18067510426044464, 0.23852324485778809, 0.41287726163864136, -0.057119742035865784, 0.20129428803920746, -0.0872153490781784, 0.16239674389362335, -0.45718392729759216, -0.0910484567284584, 0.139604389667511, 0.12272637337446213, 0.21138109266757965, -0.3657490313053131, 0.1207914724946022, 0.04232463985681534, -0.015608321875333786, 0.20260703563690186, -0.19067397713661194, 0.3214553892612457, -0.04766641929745674, 0.10165973007678986, -0.23369738459587097, 0.08764661848545074, -0.16641949117183685, -0.16887600719928741, -0.09450197964906693, -0.054700396955013275, 0.24947847425937653, -0.05269137769937515, 0.060613539069890976, -0.06926087290048599, 0.09382224828004837, 0.14117413759231567, 0.21714022755622864, -0.16329869627952576, 0.0005067568272352219, 0.05735479295253754, 0.2799392342567444, -0.2921980321407318, -0.08185053616762161, -0.13829071819782257, 0.09410057961940765, -0.07678355276584625, -0.6246334314346313, 0.5626622438430786, 1.1834365129470825, 0.026868382468819618, -0.06126219034194946, -0.031152354553341866, -0.06602402031421661, -0.06728143244981766, 0.08756185322999954, -0.05788117274641991, 0.1746063530445099, 0.3609139919281006, 0.03224856033921242, -0.07890862971544266, 0.03937973827123642, -0.17009004950523376, 0.20615741610527039, -0.11617015302181244, 0.06955422461032867, 0.21689435839653015, -0.11056928336620331, -0.09010536223649979, -0.3468632996082306, -0.016531959176063538, 0.0860896110534668, 0.29457926750183105, -0.3141286373138428, 0.014034029096364975, -0.2633311152458191, -0.5122830867767334, 0.005946395453065634, 0.005063916090875864, 0.15765902400016785, -0.40775787830352783, 0.0036159823648631573, 0.2097444087266922, 0.0963481217622757, -0.006002064794301987, -0.2934418320655823, -0.1413075029850006, 0.44453561305999756, -0.1052616685628891, -0.4538065493106842, -0.19475524127483368, -0.4297935664653778, 0.17467142641544342, -0.19507847726345062, 0.05890806019306183, 0.1593281626701355, -0.19150082767009735, 0.30689674615859985, 0.053008489310741425, -0.09975523501634598, 0.322194367647171, -0.43320006132125854, -0.11504179239273071, 0.1026727631688118, 0.40218135714530945, 0.11198437213897705, -0.010341211222112179, 0.22481949627399445, -0.34161195158958435, -0.3203396499156952, 0.015128301456570625, -0.0690089613199234, -0.2990460693836212, -0.1066463440656662, -0.5605749487876892, -0.06501854956150055, -0.19925867021083832, -0.010826528072357178, 0.03714772313833237, 0.21779531240463257, 0.4924776554107666, 0.11808682978153229, 0.2407107800245285, 0.0620347261428833, 0.07973416894674301, -0.3911379873752594, -0.19496746361255646, 0.17978662252426147, -0.10712254047393799, -0.33080294728279114, -0.0519413948059082, 0.33048105239868164, -0.0537782721221447, 0.04822564870119095, -0.38973134756088257, -0.11693155765533447, -0.2189396619796753, -0.057724736630916595, -0.30244195461273193, 0.10586319118738174, 0.15962214767932892, -0.03551694378256798, -0.3097397983074188, -0.3509983718395233, -0.17991751432418823, 0.3220769762992859, -0.21723444759845734, -0.13220332562923431, -0.1472049206495285, 0.37461283802986145, 0.22426043450832367, 0.2894859313964844, -0.20740100741386414, 0.07285536825656891, 0.1289455145597458, -0.509157657623291, 0.3212851881980896, -0.18696807324886322, -0.3702632188796997, 0.003114724066108465, 0.2235536128282547, 0.14835096895694733, 0.2795237600803375, -0.22259457409381866, 0.15608952939510345, -0.040062714368104935, 0.1223306804895401, -0.3157602548599243, -0.248728409409523, -0.20381616055965424, -0.02557133324444294, 0.0028938271570950747, 0.2765013575553894, 0.2660048305988312, -0.17521651089191437, -0.26208651065826416, -0.14578530192375183, -0.0870201513171196, -0.09060009568929672, 0.025524621829390526, -0.32224342226982117, 0.12397798895835876, -0.2875654399394989, 0.3209458291530609, 0.16371630132198334, 0.3627290725708008, -0.4119597375392914, -0.07290758192539215, 0.08802955597639084, 0.13384535908699036, 0.6087149381637573, -0.18891091644763947, 0.23576822876930237, 0.3793392777442932, -0.1359836757183075, -0.22791822254657745, 0.34385553002357483, -0.3577347695827484, 0.25528252124786377, -0.03198593482375145, 0.4056262969970703, -0.16953721642494202, -0.2745690941810608, 0.192785382270813, -0.09288598597049713, -0.1556113213300705, 0.003687662072479725, 0.02512587048113346, -0.2001039683818817, -0.07007439434528351, -0.21710538864135742, 0.05642833933234215, 0.3097606897354126, 0.018817540258169174, -0.008386436849832535, 0.1533106565475464, -0.10104097425937653, 0.2129797637462616, -0.013194755651056767, 0.11511357128620148, 0.09732846915721893, -0.03191307187080383, -0.03417376056313515, 0.018217753618955612, -0.0005436085630208254, 0.37739014625549316, -0.00902051292359829, -0.2676136791706085, 0.20817148685455322, -0.3244970142841339, 0.47242411971092224, 0.3106571137905121, -0.22728510200977325, 0.18815350532531738, 0.003053516848012805, 0.05079067870974541, 0.06724238395690918, 0.3027364909648895, 0.2194802612066269, 0.03913068026304245, -0.21705211699008942, -0.27708104252815247, -0.008040602318942547, -0.40207773447036743, 0.08126343041658401, 0.19500888884067535, 0.07619115710258484, -0.42096665501594543, 0.05734334513545036, -0.16843438148498535, 0.8421042561531067, -0.00220252457074821, 0.3387342095375061, 0.3424323797225952, 0.11078161746263504, 0.28564006090164185, -0.31163489818573, 0.010421572253108025, -0.35314178466796875, -0.19821076095104218, 0.0006637567421421409, 0.06034138426184654, -0.1337958425283432, 0.3082279860973358, -0.10786464810371399, -0.004966895096004009, 0.02899046801030636, 0.28358522057533264, 0.22671034932136536, 0.2584983706474304, 0.03017711453139782, -0.1879342943429947, -0.12838341295719147, 0.2528952956199646, 0.03994029387831688, 0.019269220530986786, 0.029859168455004692, -0.11319693922996521, -0.15867362916469574, -0.03817121312022209, -0.05818206071853638, 0.12123730778694153, -0.39081087708473206, -0.031603895127773285, -0.1623934507369995, -0.1327953338623047, -0.35105398297309875, 0.052570927888154984, 0.2941450774669647, 0.3056957423686981, -0.3456542193889618, -0.1513981819152832, -0.12006735801696777, 0.09752514213323593, -0.04872770980000496, 0.2158297747373581, 0.5049208998680115, 0.06289095431566238, -0.23418545722961426, 0.06818817555904388, 0.1414041817188263, -0.14631658792495728, -0.10508076101541519, -0.3620489835739136, -0.25512051582336426, -0.5854071974754333, -0.23808780312538147, 0.07013921439647675, 0.008131620474159718, -0.014219176955521107, 0.19260360300540924, -0.15836209058761597, -0.08680765330791473, -0.0010697682155296206, 0.15291433036327362, -0.28069254755973816, -0.012131845578551292, 0.3550332188606262, 0.05166900157928467, 0.3202662467956543, 0.5534886121749878, 0.333927720785141, -0.1127093955874443, -0.2338140606880188, 0.12644703686237335, 0.3129344582557678, -0.39292559027671814, -0.04761292785406113, 0.03584981709718704, 0.21432746946811676, 0.11022832244634628, 0.32167571783065796, -0.3547508716583252, -0.1272423416376114, -0.36309248208999634, -0.224983811378479, -0.3691045939922333, 0.14822588860988617, 0.10149578005075455, 0.14636577665805817, 0.06596973538398743, 0.5048033595085144, 0.0496278814971447, 0.009932047687470913, -0.44218742847442627, -0.27110397815704346, -0.06366104632616043, -0.01106368750333786, 0.35514718294143677, -0.0716051533818245, 0.3333612382411957, -0.03013422340154648, 0.24105378985404968, 0.15933021903038025, -0.06115421652793884, -0.3974876403808594, -0.10403620451688766, 0.07488911598920822, 0.284953236579895, -0.08661054819822311, -0.10568614304065704, -0.18875852227210999, -0.3586927354335785, -0.07906538248062134, 0.100749671459198, 0.24644246697425842, -0.17106778919696808, 0.3100168704986572, -0.13967472314834595, 0.31332024931907654, 0.024258380755782127, -0.15575829148292542, 0.06331700831651688, 0.20427164435386658, -0.018708590418100357, -0.01211752463132143, -0.09562059491872787, -0.01907176710665226, 0.06055757403373718, 0.07155940681695938, 0.18621715903282166, -0.024573566392064095, 0.14878728985786438, -0.1219683289527893, 0.07517476379871368, -0.1875021904706955, 0.39060771465301514, -0.020321430638432503, -0.1344415843486786, -0.08252085745334625, -0.05615764483809471, 0.23129607737064362, -0.1377233862876892, 0.0312974788248539, 0.09005293995141983, -0.4736629128456116, -0.04916849359869957, 0.1707487553358078, -0.17928026616573334, 0.3133980333805084, 0.22247253358364105, -0.04037979617714882, 0.18356215953826904, -0.27608349919319153, -0.37462571263313293, 0.48653796315193176, -0.12538759410381317, 0.2760167121887207, 0.18375632166862488, 0.34005942940711975, -0.20301678776741028, 0.6303751468658447, 0.23604343831539154, 0.021836835891008377, -0.30531615018844604, -0.09530835598707199, -0.032472290098667145, -0.3141525983810425, 0.20023472607135773, 0.08517251163721085, -0.24912415444850922, 0.2865254282951355, -0.26876917481422424, -0.03902944549918175, 0.003480729414150119, 0.16226428747177124, 0.028423670679330826, 0.14861255884170532, -0.13885977864265442, -0.19738730788230896, -0.0077586728148162365, -0.02944607473909855, -0.14126527309417725, -0.14373679459095, -0.04786261171102524, 0.058892786502838135, -0.2293451726436615, -0.18777400255203247, -0.06393837183713913, -0.20839375257492065, -0.1434558480978012, -0.23017875850200653, -0.06615898758172989, -0.1625514179468155, 0.3820536732673645, -0.33808305859565735, 0.12081080675125122, 0.3115365505218506, 0.26867955923080444, 0.02272002212703228, 0.03847649693489075, 0.26726728677749634, 0.028418997302651405, -0.14846068620681763, -0.28249096870422363, -0.10498637706041336, 0.3306084871292114, 0.23055535554885864, 0.16621622443199158, 0.23964817821979523, 0.15654419362545013, -0.20581990480422974, -0.04313017427921295, 0.34582915902137756, 0.00417160801589489, -0.12614132463932037, 0.025960315018892288, 0.11648731678724289, -0.1692582368850708, -0.042907096445560455, -0.09829135984182358, -0.20783990621566772, 0.000606890011113137, 0.4773406386375427, 0.068863645195961, 0.3460817337036133, -0.06807226687669754, 0.1512247622013092, -0.12327848374843597, 0.2969987392425537, 0.11073043197393417, 0.19386179745197296, -0.09136871993541718, 0.07288876175880432, -0.25598934292793274, 0.17540343105793, 0.24082466959953308, -0.10064972937107086, -0.023472413420677185, 0.053823210299015045, 0.544069230556488, 0.012939919717609882, 0.26698043942451477, -0.0010031472193077207, -0.24931244552135468, -0.07362215220928192, -0.11168134957551956, -0.5936121940612793, -0.4140438437461853, 0.10676153004169464, -0.03191747888922691, -0.21312139928340912, 0.07150264084339142, -0.028033141046762466, 0.21988703310489655, -0.4212368428707123, -0.004171563312411308, 0.166017547249794, 0.02720675989985466, 0.09579139202833176, 0.04445546120405197, 0.2867448031902313, -0.17316646873950958, 0.3043467700481415, 0.14355376362800598, -0.2601781189441681, -0.32097506523132324, 0.24704526364803314, 0.05758974328637123, 0.16284097731113434, 0.00033737567719072104, -0.1419600248336792, 0.007266182918101549, -0.14101728796958923, 0.0766211748123169, 0.24268141388893127, 0.12422331422567368, 0.2470385581254959, -0.08868186920881271, -0.1805063784122467, 0.09180941432714462, 0.29503917694091797, -0.015596062876284122, 0.19734328985214233, -0.3323311507701874, -0.212362140417099, 0.325053334236145, -0.15759994089603424, -0.4683327078819275, -0.04375234618782997, -0.006202069576829672, 0.16670098900794983, 0.04748916998505592, -0.5262383818626404, 0.06497226655483246, 0.4364042282104492, -0.19501332938671112, -0.22687804698944092, 0.2077818512916565, -0.03239939361810684, 0.200590580701828, -0.005253612995147705, 0.4829830229282379, 0.22359901666641235, -0.09985370188951492, -0.22591671347618103, -0.0031290920451283455 ]
https://github.com/huggingface/datasets/issues/3687
Can't get the text data when calling to_tf_dataset
Going to close this now - methods like `to_tf_dataset` and `prepare_tf_dataset` now support string data, and have done for a while! If anyone sees this and is encountering issues with string data in those methods, please file a new issue!
I am working with the SST2 dataset, and am using TensorFlow 2.5 I'd like to convert it to a `tf.data.Dataset` by calling the `to_tf_dataset` method. The following snippet is what I am using to achieve this: ``` from datasets import load_dataset from transformers import DefaultDataCollator data_collator = DefaultDataCollator(return_tensors="tf") dataset = load_dataset("sst") train_dataset = dataset["train"].to_tf_dataset(columns=['sentence'], label_cols="label", shuffle=True, batch_size=8,collate_fn=data_collator) ``` However, this only gets me the labels; the text--the most important part--is missing: ``` for s in train_dataset.take(1): print(s) #prints something like: ({}, <tf.Tensor: shape=(8,), ...>) ``` As you can see, it only returns the label part, not the data, as indicated by the empty dictionary, `{}`. So far, I've played with various settings of the method arguments, but to no avail; I do not want to perform any text processing at this time. On my quest to achieve what I want ( a `tf.data.Dataset`), I've consulted these resources: [https://www.philschmid.de/huggingface-transformers-keras-tf](https://www.philschmid.de/huggingface-transformers-keras-tf) [https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow](https://huggingface.co/docs/datasets/use_dataset.html?highlight=tensorflow) I was surprised to not find more extensive examples on how to transform a Hugginface dataset to one compatible with TensorFlow. If you could point me to where I am going wrong, please do so. Thanks in advance for your support. --- Edit: In the [docs](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.to_tf_dataset), I found the following description: _In general, only columns that the model can use as input should be included here (numeric data only)._ Does this imply that no textual, i.e., `string` data can be loaded?
40
Can't get the text data when calling to_tf_dataset
[ -0.2756195366382599, -0.20069877803325653, -0.14774373173713684, 0.4984422028064728, 0.2815820276737213, 0.0047683496959507465, 0.23300179839134216, 0.36034274101257324, -0.33517831563949585, 0.38741591572761536, -0.1376045197248459, 0.12547077238559723, 0.291829377412796, 0.2669117748737335, -0.10410591959953308, 0.046420007944107056, -0.13647308945655823, 0.23656480014324188, -0.27628225088119507, -0.2695099413394928, -0.03274921700358391, 0.27862033247947693, -0.06919240206480026, 0.15574787557125092, -0.3849896490573883, -0.00726897781714797, 0.12307879328727722, 0.19840428233146667, 0.05241288244724274, 0.012869876809418201, -0.11949498951435089, 0.17358596622943878, -0.07241041958332062, 0.451397567987442, -0.00010651814955053851, 0.20563164353370667, -0.0039509874768555164, -0.060336869210004807, -0.185628741979599, -0.13513939082622528, -0.0684674084186554, -0.046314336359500885, -0.08902968466281891, -0.2810775339603424, -0.2497805505990982, 0.07009389996528625, 0.12795551121234894, 0.06281592696905136, -0.04998929798603058, 0.36116528511047363, 0.2592197358608246, 0.09101193398237228, 0.05513428896665573, 0.052283938974142075, 0.3355266749858856, 0.20506294071674347, -0.09031945466995239, -0.1837993711233139, 0.08105505257844925, 0.07398056983947754, -0.05456021800637245, 0.26166832447052, -0.07773678004741669, 0.1784026324748993, -0.20768140256404877, 0.34314411878585815, -0.3129845857620239, 0.04630037769675255, 0.30406805872917175, 0.22573517262935638, 0.8079725503921509, -0.3054933547973633, -0.14656761288642883, 0.030724091455340385, -0.21033087372779846, -0.03946618735790253, -0.012058478780090809, -0.2840459644794464, -0.33736613392829895, 0.14681513607501984, -0.1907816231250763, -0.1266789436340332, -0.2547571063041687, 0.25359562039375305, -0.1632469892501831, 0.23591956496238708, -0.11452282965183258, 0.12985262274742126, -0.22110411524772644, -0.09920673072338104, 0.19214500486850739, -0.1507367193698883, 0.001396802719682455, 0.10785400867462158, -0.15944862365722656, 0.029192106798291206, 0.22808639705181122, -0.281872421503067, 0.02904602140188217, -0.21695220470428467, -0.1687176674604416, 0.24230040609836578, -0.2898848354816437, -0.09773698449134827, -0.013867374509572983, -0.29679250717163086, 0.10096989572048187, 0.24882671236991882, 0.01812487281858921, -0.34473177790641785, -0.31380555033683777, -0.23883891105651855, -0.009625663980841637, 0.13768859207630157, 0.18774071335792542, -0.038787104189395905, 0.3069246709346771, -0.13656815886497498, -0.06318619847297668, -0.027550438418984413, 0.05790899693965912, -0.022861454635858536, -0.12267298251390457, 0.21850335597991943, 0.15950408577919006, 0.16328065097332, 0.26272594928741455, -0.07917466014623642, -0.18396224081516266, -0.1895715296268463, -0.3799343705177307, -0.14465545117855072, 0.08730990439653397, 0.005370600149035454, 0.22661691904067993, 0.15641453862190247, 0.013437618501484394, -0.05575656145811081, -0.03553895279765129, 0.16905567049980164, -0.1569795161485672, -0.440455824136734, 0.2182042896747589, 0.14357012510299683, 0.04982345551252365, 0.20902198553085327, 0.31800517439842224, 0.10072252154350281, 0.1141413152217865, 0.24907061457633972, -0.26561638712882996, -0.1421705186367035, 0.11332131177186966, 0.2806468605995178, 0.14565825462341309, -0.1831669956445694, 0.15424266457557678, 0.49325186014175415, 0.30184075236320496, -0.13760466873645782, -0.11030401289463043, -0.017035938799381256, -0.5404677391052246, -0.006216367240995169, 0.15890266001224518, 0.46002519130706787, -0.7628551721572876, 0.14940693974494934, 0.2233428806066513, -0.3033253848552704, 0.06416542828083038, -0.025948895141482353, -0.02297966554760933, 0.43942299485206604, -0.02449030615389347, 0.34371432662010193, 0.44241902232170105, -0.3257370889186859, -0.26485922932624817, 0.25341591238975525, -0.060226667672395706, -0.2287777066230774, 0.1846441924571991, -0.07230262458324432, 0.05085211619734764, 0.16107460856437683, 0.2874417006969452, 0.0028529951814562082, -0.22381506860256195, 0.053164951503276825, 0.01925136335194111, 0.19293387234210968, 0.1402517706155777, 0.10907202959060669, -0.014611334539949894, 0.307867169380188, 0.058051131665706635, 0.04385904595255852, 0.38323864340782166, 0.0437634252011776, 0.05422787740826607, 0.2714937627315521, 0.13126778602600098, 0.07757116109132767, 0.04934147372841835, -0.1913389414548874, 0.01917029544711113, 0.03794112801551819, 0.545365571975708, 0.2456045150756836, -0.15186697244644165, 0.094651959836483, -0.3055880665779114, 0.2071085423231125, 0.27999347448349, 0.18067510426044464, 0.23852324485778809, 0.41287726163864136, -0.057119742035865784, 0.20129428803920746, -0.0872153490781784, 0.16239674389362335, -0.45718392729759216, -0.0910484567284584, 0.139604389667511, 0.12272637337446213, 0.21138109266757965, -0.3657490313053131, 0.1207914724946022, 0.04232463985681534, -0.015608321875333786, 0.20260703563690186, -0.19067397713661194, 0.3214553892612457, -0.04766641929745674, 0.10165973007678986, -0.23369738459587097, 0.08764661848545074, -0.16641949117183685, -0.16887600719928741, -0.09450197964906693, -0.054700396955013275, 0.24947847425937653, -0.05269137769937515, 0.060613539069890976, -0.06926087290048599, 0.09382224828004837, 0.14117413759231567, 0.21714022755622864, -0.16329869627952576, 0.0005067568272352219, 0.05735479295253754, 0.2799392342567444, -0.2921980321407318, -0.08185053616762161, -0.13829071819782257, 0.09410057961940765, -0.07678355276584625, -0.6246334314346313, 0.5626622438430786, 1.1834365129470825, 0.026868382468819618, -0.06126219034194946, -0.031152354553341866, -0.06602402031421661, -0.06728143244981766, 0.08756185322999954, -0.05788117274641991, 0.1746063530445099, 0.3609139919281006, 0.03224856033921242, -0.07890862971544266, 0.03937973827123642, -0.17009004950523376, 0.20615741610527039, -0.11617015302181244, 0.06955422461032867, 0.21689435839653015, -0.11056928336620331, -0.09010536223649979, -0.3468632996082306, -0.016531959176063538, 0.0860896110534668, 0.29457926750183105, -0.3141286373138428, 0.014034029096364975, -0.2633311152458191, -0.5122830867767334, 0.005946395453065634, 0.005063916090875864, 0.15765902400016785, -0.40775787830352783, 0.0036159823648631573, 0.2097444087266922, 0.0963481217622757, -0.006002064794301987, -0.2934418320655823, -0.1413075029850006, 0.44453561305999756, -0.1052616685628891, -0.4538065493106842, -0.19475524127483368, -0.4297935664653778, 0.17467142641544342, -0.19507847726345062, 0.05890806019306183, 0.1593281626701355, -0.19150082767009735, 0.30689674615859985, 0.053008489310741425, -0.09975523501634598, 0.322194367647171, -0.43320006132125854, -0.11504179239273071, 0.1026727631688118, 0.40218135714530945, 0.11198437213897705, -0.010341211222112179, 0.22481949627399445, -0.34161195158958435, -0.3203396499156952, 0.015128301456570625, -0.0690089613199234, -0.2990460693836212, -0.1066463440656662, -0.5605749487876892, -0.06501854956150055, -0.19925867021083832, -0.010826528072357178, 0.03714772313833237, 0.21779531240463257, 0.4924776554107666, 0.11808682978153229, 0.2407107800245285, 0.0620347261428833, 0.07973416894674301, -0.3911379873752594, -0.19496746361255646, 0.17978662252426147, -0.10712254047393799, -0.33080294728279114, -0.0519413948059082, 0.33048105239868164, -0.0537782721221447, 0.04822564870119095, -0.38973134756088257, -0.11693155765533447, -0.2189396619796753, -0.057724736630916595, -0.30244195461273193, 0.10586319118738174, 0.15962214767932892, -0.03551694378256798, -0.3097397983074188, -0.3509983718395233, -0.17991751432418823, 0.3220769762992859, -0.21723444759845734, -0.13220332562923431, -0.1472049206495285, 0.37461283802986145, 0.22426043450832367, 0.2894859313964844, -0.20740100741386414, 0.07285536825656891, 0.1289455145597458, -0.509157657623291, 0.3212851881980896, -0.18696807324886322, -0.3702632188796997, 0.003114724066108465, 0.2235536128282547, 0.14835096895694733, 0.2795237600803375, -0.22259457409381866, 0.15608952939510345, -0.040062714368104935, 0.1223306804895401, -0.3157602548599243, -0.248728409409523, -0.20381616055965424, -0.02557133324444294, 0.0028938271570950747, 0.2765013575553894, 0.2660048305988312, -0.17521651089191437, -0.26208651065826416, -0.14578530192375183, -0.0870201513171196, -0.09060009568929672, 0.025524621829390526, -0.32224342226982117, 0.12397798895835876, -0.2875654399394989, 0.3209458291530609, 0.16371630132198334, 0.3627290725708008, -0.4119597375392914, -0.07290758192539215, 0.08802955597639084, 0.13384535908699036, 0.6087149381637573, -0.18891091644763947, 0.23576822876930237, 0.3793392777442932, -0.1359836757183075, -0.22791822254657745, 0.34385553002357483, -0.3577347695827484, 0.25528252124786377, -0.03198593482375145, 0.4056262969970703, -0.16953721642494202, -0.2745690941810608, 0.192785382270813, -0.09288598597049713, -0.1556113213300705, 0.003687662072479725, 0.02512587048113346, -0.2001039683818817, -0.07007439434528351, -0.21710538864135742, 0.05642833933234215, 0.3097606897354126, 0.018817540258169174, -0.008386436849832535, 0.1533106565475464, -0.10104097425937653, 0.2129797637462616, -0.013194755651056767, 0.11511357128620148, 0.09732846915721893, -0.03191307187080383, -0.03417376056313515, 0.018217753618955612, -0.0005436085630208254, 0.37739014625549316, -0.00902051292359829, -0.2676136791706085, 0.20817148685455322, -0.3244970142841339, 0.47242411971092224, 0.3106571137905121, -0.22728510200977325, 0.18815350532531738, 0.003053516848012805, 0.05079067870974541, 0.06724238395690918, 0.3027364909648895, 0.2194802612066269, 0.03913068026304245, -0.21705211699008942, -0.27708104252815247, -0.008040602318942547, -0.40207773447036743, 0.08126343041658401, 0.19500888884067535, 0.07619115710258484, -0.42096665501594543, 0.05734334513545036, -0.16843438148498535, 0.8421042561531067, -0.00220252457074821, 0.3387342095375061, 0.3424323797225952, 0.11078161746263504, 0.28564006090164185, -0.31163489818573, 0.010421572253108025, -0.35314178466796875, -0.19821076095104218, 0.0006637567421421409, 0.06034138426184654, -0.1337958425283432, 0.3082279860973358, -0.10786464810371399, -0.004966895096004009, 0.02899046801030636, 0.28358522057533264, 0.22671034932136536, 0.2584983706474304, 0.03017711453139782, -0.1879342943429947, -0.12838341295719147, 0.2528952956199646, 0.03994029387831688, 0.019269220530986786, 0.029859168455004692, -0.11319693922996521, -0.15867362916469574, -0.03817121312022209, -0.05818206071853638, 0.12123730778694153, -0.39081087708473206, -0.031603895127773285, -0.1623934507369995, -0.1327953338623047, -0.35105398297309875, 0.052570927888154984, 0.2941450774669647, 0.3056957423686981, -0.3456542193889618, -0.1513981819152832, -0.12006735801696777, 0.09752514213323593, -0.04872770980000496, 0.2158297747373581, 0.5049208998680115, 0.06289095431566238, -0.23418545722961426, 0.06818817555904388, 0.1414041817188263, -0.14631658792495728, -0.10508076101541519, -0.3620489835739136, -0.25512051582336426, -0.5854071974754333, -0.23808780312538147, 0.07013921439647675, 0.008131620474159718, -0.014219176955521107, 0.19260360300540924, -0.15836209058761597, -0.08680765330791473, -0.0010697682155296206, 0.15291433036327362, -0.28069254755973816, -0.012131845578551292, 0.3550332188606262, 0.05166900157928467, 0.3202662467956543, 0.5534886121749878, 0.333927720785141, -0.1127093955874443, -0.2338140606880188, 0.12644703686237335, 0.3129344582557678, -0.39292559027671814, -0.04761292785406113, 0.03584981709718704, 0.21432746946811676, 0.11022832244634628, 0.32167571783065796, -0.3547508716583252, -0.1272423416376114, -0.36309248208999634, -0.224983811378479, -0.3691045939922333, 0.14822588860988617, 0.10149578005075455, 0.14636577665805817, 0.06596973538398743, 0.5048033595085144, 0.0496278814971447, 0.009932047687470913, -0.44218742847442627, -0.27110397815704346, -0.06366104632616043, -0.01106368750333786, 0.35514718294143677, -0.0716051533818245, 0.3333612382411957, -0.03013422340154648, 0.24105378985404968, 0.15933021903038025, -0.06115421652793884, -0.3974876403808594, -0.10403620451688766, 0.07488911598920822, 0.284953236579895, -0.08661054819822311, -0.10568614304065704, -0.18875852227210999, -0.3586927354335785, -0.07906538248062134, 0.100749671459198, 0.24644246697425842, -0.17106778919696808, 0.3100168704986572, -0.13967472314834595, 0.31332024931907654, 0.024258380755782127, -0.15575829148292542, 0.06331700831651688, 0.20427164435386658, -0.018708590418100357, -0.01211752463132143, -0.09562059491872787, -0.01907176710665226, 0.06055757403373718, 0.07155940681695938, 0.18621715903282166, -0.024573566392064095, 0.14878728985786438, -0.1219683289527893, 0.07517476379871368, -0.1875021904706955, 0.39060771465301514, -0.020321430638432503, -0.1344415843486786, -0.08252085745334625, -0.05615764483809471, 0.23129607737064362, -0.1377233862876892, 0.0312974788248539, 0.09005293995141983, -0.4736629128456116, -0.04916849359869957, 0.1707487553358078, -0.17928026616573334, 0.3133980333805084, 0.22247253358364105, -0.04037979617714882, 0.18356215953826904, -0.27608349919319153, -0.37462571263313293, 0.48653796315193176, -0.12538759410381317, 0.2760167121887207, 0.18375632166862488, 0.34005942940711975, -0.20301678776741028, 0.6303751468658447, 0.23604343831539154, 0.021836835891008377, -0.30531615018844604, -0.09530835598707199, -0.032472290098667145, -0.3141525983810425, 0.20023472607135773, 0.08517251163721085, -0.24912415444850922, 0.2865254282951355, -0.26876917481422424, -0.03902944549918175, 0.003480729414150119, 0.16226428747177124, 0.028423670679330826, 0.14861255884170532, -0.13885977864265442, -0.19738730788230896, -0.0077586728148162365, -0.02944607473909855, -0.14126527309417725, -0.14373679459095, -0.04786261171102524, 0.058892786502838135, -0.2293451726436615, -0.18777400255203247, -0.06393837183713913, -0.20839375257492065, -0.1434558480978012, -0.23017875850200653, -0.06615898758172989, -0.1625514179468155, 0.3820536732673645, -0.33808305859565735, 0.12081080675125122, 0.3115365505218506, 0.26867955923080444, 0.02272002212703228, 0.03847649693489075, 0.26726728677749634, 0.028418997302651405, -0.14846068620681763, -0.28249096870422363, -0.10498637706041336, 0.3306084871292114, 0.23055535554885864, 0.16621622443199158, 0.23964817821979523, 0.15654419362545013, -0.20581990480422974, -0.04313017427921295, 0.34582915902137756, 0.00417160801589489, -0.12614132463932037, 0.025960315018892288, 0.11648731678724289, -0.1692582368850708, -0.042907096445560455, -0.09829135984182358, -0.20783990621566772, 0.000606890011113137, 0.4773406386375427, 0.068863645195961, 0.3460817337036133, -0.06807226687669754, 0.1512247622013092, -0.12327848374843597, 0.2969987392425537, 0.11073043197393417, 0.19386179745197296, -0.09136871993541718, 0.07288876175880432, -0.25598934292793274, 0.17540343105793, 0.24082466959953308, -0.10064972937107086, -0.023472413420677185, 0.053823210299015045, 0.544069230556488, 0.012939919717609882, 0.26698043942451477, -0.0010031472193077207, -0.24931244552135468, -0.07362215220928192, -0.11168134957551956, -0.5936121940612793, -0.4140438437461853, 0.10676153004169464, -0.03191747888922691, -0.21312139928340912, 0.07150264084339142, -0.028033141046762466, 0.21988703310489655, -0.4212368428707123, -0.004171563312411308, 0.166017547249794, 0.02720675989985466, 0.09579139202833176, 0.04445546120405197, 0.2867448031902313, -0.17316646873950958, 0.3043467700481415, 0.14355376362800598, -0.2601781189441681, -0.32097506523132324, 0.24704526364803314, 0.05758974328637123, 0.16284097731113434, 0.00033737567719072104, -0.1419600248336792, 0.007266182918101549, -0.14101728796958923, 0.0766211748123169, 0.24268141388893127, 0.12422331422567368, 0.2470385581254959, -0.08868186920881271, -0.1805063784122467, 0.09180941432714462, 0.29503917694091797, -0.015596062876284122, 0.19734328985214233, -0.3323311507701874, -0.212362140417099, 0.325053334236145, -0.15759994089603424, -0.4683327078819275, -0.04375234618782997, -0.006202069576829672, 0.16670098900794983, 0.04748916998505592, -0.5262383818626404, 0.06497226655483246, 0.4364042282104492, -0.19501332938671112, -0.22687804698944092, 0.2077818512916565, -0.03239939361810684, 0.200590580701828, -0.005253612995147705, 0.4829830229282379, 0.22359901666641235, -0.09985370188951492, -0.22591671347618103, -0.0031290920451283455 ]