html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/4085
datasets.set_progress_bar_enabled(False) not working in datasets v2
One important thing for beginner like me is: from datasets.utils.logging import disable_progress_bar Do not forget the 'utils' or you will waste a long time like me....
## Describe the bug datasets.set_progress_bar_enabled(False) not working in datasets v2 ## Steps to reproduce the bug ```python datasets.set_progress_bar_enabled(False) ``` ## Expected results datasets not using any progress bar ## Actual results AttributeError: module 'datasets' has no attribute 'set_progress_bar_enabled ## Environment info datasets version 2
26
datasets.set_progress_bar_enabled(False) not working in datasets v2 ## Describe the bug datasets.set_progress_bar_enabled(False) not working in datasets v2 ## Steps to reproduce the bug ```python datasets.set_progress_bar_enabled(False) ``` ## Expected results datasets not using any progress bar ## Actual results AttributeError: module 'datasets' has no attribute 'set_progress_bar_enabled ## Environment info datasets version 2 One important thing for beginner like me is: from datasets.utils.logging import disable_progress_bar Do not forget the 'utils' or you will waste a long time like me....
[ -0.33783936500549316, 0.0953609049320221, -0.1768750250339508, -0.20570753514766693, 0.17226794362068176, 0.05164556950330734, 0.33103448152542114, 0.309957355260849, -0.22342157363891602, 0.16390080749988556, 0.1908254474401474, 0.387928307056427, -0.08671452105045319, 0.3137720227241516, -0.23111724853515625, 0.05359870567917824, 0.0491584874689579, 0.37192368507385254, -0.12197226285934448, 0.06224041432142258, -0.24682624638080597, -0.09330323338508606, -0.4830355644226074, -0.050629645586013794, -0.1128309890627861, 0.02837526798248291, 0.22456741333007812, -0.11137012392282486, -0.2133156806230545, -0.6194264888763428, 0.32614442706108093, 0.17256280779838562, 0.12955166399478912, 0.4557395279407501, -0.00010547997953835875, -0.06149417906999588, 0.4617351293563843, 0.14023806154727936, -0.3473763167858124, -0.1838609129190445, -0.30399972200393677, -0.514620304107666, 0.30311453342437744, -0.21786586940288544, 0.06969493627548218, -0.44628041982650757, -0.18684180080890656, -0.35940009355545044, 0.3321271538734436, 0.1669272631406784, 0.31660038232803345, 0.17258021235466003, -0.05629561096429825, -0.0799165889620781, 0.13330066204071045, -0.08952277898788452, -0.2516210675239563, 0.06805379688739777, 0.24525153636932373, -0.0518680065870285, -0.047869421541690826, 0.3793673813343048, -0.15647611021995544, 0.32889530062675476, 0.1837376058101654, -0.0762101411819458, 0.13588520884513855, -0.2328016459941864, 0.14297425746917725, 0.06474887579679489, 0.45881229639053345, -0.49538251757621765, -0.31759804487228394, -0.2932398021221161, -0.1082751527428627, -0.26408588886260986, 0.0028849244117736816, -0.05612083524465561, 0.06292444467544556, 0.21786978840827942, -0.35057681798934937, -0.19313587248325348, -0.1405870020389557, 0.024525925517082214, -0.0338384211063385, 0.041220493614673615, -0.18265295028686523, -0.05735638737678528, -0.20103926956653595, 0.09740082174539566, 0.068354032933712, 0.08451876044273376, -0.06371985375881195, 0.004380440805107355, -0.37265366315841675, 0.06726937741041183, 0.3563745319843292, 0.23255133628845215, -0.012883642688393593, 0.4389744997024536, -0.3742128610610962, 0.19358491897583008, 0.054474469274282455, 0.08455976843833923, -0.06118262931704521, 0.24531812965869904, 0.28412386775016785, 0.025395799428224564, 0.49782806634902954, -0.14099031686782837, 0.09921130537986755, 0.058773383498191833, 0.18469703197479248, -0.585138738155365, 0.5076311230659485, 0.2548143267631531, 0.43971526622772217, -0.22636784613132477, -0.37417709827423096, 0.10413837432861328, -0.12106795608997345, -0.18424250185489655, 0.22960665822029114, 0.18122872710227966, -0.02923906221985817, -0.18244412541389465, -0.039067476987838745, 0.2418414205312729, -0.18995694816112518, -0.09846649318933487, -0.2273675799369812, 0.07880282402038574, -0.2878604829311371, 0.13463622331619263, 0.15950965881347656, -0.0974893718957901, 0.11883098632097244, 0.17475634813308716, -0.3187256455421448, 0.20036941766738892, 0.2799195945262909, -0.18321114778518677, 0.27211230993270874, 0.254558265209198, 0.12314486503601074, 0.36399877071380615, 0.16438685357570648, -0.07364828884601593, -0.1124359518289566, 0.2296040952205658, 0.048599615693092346, -0.3260646164417267, -0.20397129654884338, 0.2656123638153076, -0.3033207058906555, -0.09122097492218018, -0.26210105419158936, 0.17406834661960602, 0.21827208995819092, 0.16275720298290253, 0.15499992668628693, -0.15266773104667664, -0.2686050236225128, -0.09671824425458908, 0.3141758143901825, 0.2879326343536377, -0.5877816677093506, 0.07357949018478394, -0.023897990584373474, -0.2248511016368866, 0.05025976523756981, -0.21952007710933685, -0.06915033608675003, 0.1438341736793518, -0.1515045315027237, -0.0340726338326931, 0.15804550051689148, -0.23082581162452698, -0.3971763551235199, -0.10283570736646652, 0.1386556774377823, -0.16730086505413055, 0.030807241797447205, -0.06782408058643341, -0.12022672593593597, -0.09745626896619797, -0.2513761818408966, 0.13646166026592255, 0.29838675260543823, -0.09907190501689911, -0.08651132136583328, -0.20882484316825867, 0.28291237354278564, 0.24016301333904266, 0.237583726644516, -0.0021825209259986877, 0.08329486846923828, -0.21459907293319702, 0.15032252669334412, 0.051179949194192886, 0.23078829050064087, 0.18739759922027588, 0.354299396276474, -0.17278997600078583, -0.05257995054125786, -0.32621222734451294, 0.03303365781903267, 0.21819955110549927, 0.11641000211238861, -0.15183785557746887, -0.11152943968772888, -0.0664609894156456, -0.24204671382904053, -0.008166290819644928, -0.43600383400917053, -0.042479146271944046, 0.18449077010154724, 0.036936063319444656, 0.27375608682632446, 0.09652011096477509, -0.36282044649124146, 0.29569798707962036, -0.35064470767974854, -0.04691684991121292, 0.07788674533367157, 0.3428378105163574, 0.15027755498886108, -0.34586623311042786, 0.15319472551345825, 0.24026569724082947, 0.11437349021434784, 0.17118504643440247, -0.1271727979183197, 0.23173734545707703, -0.05842724069952965, 0.20679499208927155, -0.0461173877120018, 0.07719367742538452, 0.00672992505133152, -0.20626546442508698, -0.07015907019376755, 0.3962523341178894, -0.028920553624629974, 0.21125465631484985, -0.1006724163889885, 0.06255010515451431, 0.12681445479393005, 0.2544773817062378, 0.12768597900867462, 0.020255563780665398, 0.11257946491241455, 0.02072729542851448, -0.21846693754196167, -0.35261768102645874, 0.13947714865207672, 0.0435635931789875, 0.45945703983306885, -0.18938128650188446, 0.053768083453178406, 0.14379043877124786, 0.4923385977745056, 0.32277846336364746, 0.26218464970588684, -0.019148431718349457, -0.3406812846660614, -0.09749899804592133, 0.21887794137001038, 0.2170984297990799, 0.41332030296325684, 0.329032838344574, 0.23493018746376038, 0.14544939994812012, -0.0948595255613327, -0.06170197203755379, -0.03042646497488022, 0.007788494229316711, 0.05353047698736191, 0.16203673183918, 0.18154862523078918, -0.12414092570543289, -0.3062172532081604, -0.18537800014019012, -0.24821913242340088, 0.23580895364284515, -0.28780508041381836, -0.09624677896499634, -0.3819882273674011, -0.10293807089328766, 0.03560300171375275, -0.21592029929161072, -0.002748895436525345, -0.2051384449005127, 0.03777273744344711, 0.20021723210811615, 0.17874176800251007, 0.40379229187965393, 0.07223580777645111, -0.11613292992115021, 0.041703104972839355, 0.04736339673399925, -0.20643991231918335, -0.047803089022636414, -0.04539375752210617, 0.1801561713218689, 0.0031567681580781937, 0.061564963310956955, 0.29347166419029236, -0.12836378812789917, 0.10680229961872101, -0.2697717845439911, 0.0023842230439186096, 0.02385808154940605, -0.08380251377820969, 0.19017498195171356, 0.10281404852867126, 0.05983543395996094, 0.07611026614904404, 0.4360067844390869, 0.19578516483306885, -0.1079498827457428, 0.028475260362029076, -0.14953085780143738, -0.2789931893348694, -0.11020004749298096, -0.07840500771999359, -0.09471196681261063, -0.38216787576675415, -0.3482317328453064, -0.0659504234790802, 0.05239858105778694, -0.04293081909418106, 0.22913126647472382, -0.025111664086580276, 0.19666574895381927, 0.2345520704984665, 0.014024581760168076, -0.009238878265023232, -0.388040691614151, 0.434359073638916, -0.23996667563915253, -0.1704590916633606, 0.2390788495540619, 0.07891332358121872, -0.049542177468538284, -0.13402195274829865, -0.24422086775302887, -0.2551480233669281, -0.49549227952957153, 0.11809062957763672, -0.06309198588132858, 0.3408672511577606, 0.23088495433330536, 0.05236811190843582, -0.11636509746313095, -0.13946625590324402, -0.327879399061203, 0.14030048251152039, 0.04774414002895355, 0.03053351491689682, -0.20348557829856873, -0.011783670634031296, 0.055554475635290146, 0.37413036823272705, 0.41062819957733154, -0.07076600193977356, 0.3312931954860687, -0.027038222178816795, 0.211760014295578, -0.20029744505882263, -0.42419254779815674, -0.10277684032917023, -0.01045428216457367, 0.02773015946149826, 0.014628320932388306, 0.06393155455589294, 0.07610831409692764, -0.20488004386425018, -0.11466817557811737, -0.12172053754329681, 0.022891182452440262, -0.4983132779598236, -0.12502528727054596, 0.17862524092197418, 0.015467125922441483, 0.23055365681648254, -0.13509607315063477, -0.02397826313972473, -0.16586241126060486, 0.21698997914791107, 0.10509814321994781, -0.02581355907022953, -0.36019372940063477, -0.06128762289881706, -0.29341551661491394, 0.2373127043247223, -0.012670442461967468, -0.04239966347813606, -0.04406343773007393, -0.04513802006840706, 0.14484207332134247, 0.01726496033370495, 0.2318463772535324, -0.3235875368118286, 0.11537746340036392, 0.1591154783964157, 0.04705870896577835, -0.41120123863220215, -0.2766832709312439, 0.008721157908439636, 0.4448125958442688, -0.0023045502603054047, -0.003446318209171295, 0.1913423240184784, -0.12832920253276825, 0.11402259021997452, 0.10243705660104752, 0.05265910550951958, -0.4074954092502594, -0.5203847289085388, -0.01621338166296482, -0.20957057178020477, -0.009828336536884308, -0.08018376678228378, 0.04858160391449928, -0.23336218297481537, -0.37180405855178833, -0.10781249403953552, -0.2910788059234619, 0.11294712871313095, 0.19731740653514862, 0.17082479596138, -0.05305545777082443, 0.1559155136346817, 0.03461731597781181, 0.16545036435127258, 0.24421821534633636, 0.16692796349525452, 0.14663711190223694, -0.17245852947235107, 0.21465915441513062, -0.1620158553123474, 0.249436616897583, 0.02991887927055359, -0.3905831575393677, 0.32385215163230896, -0.10116036236286163, 0.24058741331100464, -0.34000229835510254, -0.34334850311279297, 0.19905878603458405, 0.09842893481254578, -0.23183132708072662, -0.2546095848083496, 0.39134737849235535, 0.06044359132647514, 0.0392480194568634, 0.13497479259967804, 0.05480552464723587, -0.13436566293239594, -0.3013814687728882, -0.033932529389858246, 0.47602909803390503, 0.004705991595983505, -0.1849360167980194, 0.22343644499778748, -0.1274774968624115, 0.2882319390773773, 0.15735793113708496, 0.12858045101165771, -0.3917069733142853, -0.09567028284072876, 0.002828819677233696, -0.23129677772521973, 0.3870672285556793, -0.265198290348053, -0.25081124901771545, 0.2928738594055176, -0.34680694341659546, 0.0379021018743515, -0.26805514097213745, 0.10374563932418823, -0.17841783165931702, -0.06864306330680847, -0.5556945204734802, 0.262716144323349, 0.0831683948636055, 0.2677493691444397, -0.07753603160381317, 0.16228224337100983, -0.08657525479793549, 0.24038366973400116, -0.22694994509220123, 0.10292502492666245, 0.2453620582818985, 0.16870445013046265, 0.10991096496582031, -0.503649890422821, 0.2165624052286148, 0.035660192370414734, 0.6704265475273132, -0.14937825500965118, -0.26544398069381714, 0.1239459216594696, -0.20111778378486633, 0.2984063923358917, 0.03110559843480587, -0.0299125537276268, 0.25297942757606506, -0.17577213048934937, -0.40939420461654663, 0.3555717170238495, 0.15053454041481018, -0.1182849183678627, -0.11241339147090912, 0.16679802536964417, 0.2795485854148865, -0.06920928508043289, 0.08092036843299866, 0.17205557227134705, 0.45788446068763733, -0.21129469573497772, 0.2472633272409439, 0.15806742012500763, 0.04627262055873871, 0.47583141922950745, -0.3637080788612366, -0.273499071598053, -0.18119321763515472, 0.37565097212791443, -0.13413700461387634, 0.21231937408447266, 0.3802914321422577, 0.23559127748012543, -0.32579505443573, -0.2530767023563385, 0.15494152903556824, 0.29351603984832764, -0.07226738333702087, 0.021954605355858803, 0.16103418171405792, 0.4247846007347107, 0.0997200682759285, 0.17334319651126862, -0.2966758608818054, 0.006949812173843384, -0.13035506010055542, -0.22462254762649536, -0.22466467320919037, -0.10906147956848145, -0.15256312489509583, 0.05477038025856018, -0.24951091408729553, 0.09541180729866028, 0.308569073677063, -0.15594789385795593, -0.38214555382728577, -0.09333840757608414, -0.046100713312625885, -0.06837432086467743, 0.03942743316292763, 0.022392988204956055, -0.11941535770893097, -0.2019234150648117, 0.15153537690639496, -0.17342104017734528, -0.39981070160865784, -0.3349466323852539, -0.09195062518119812, 0.058622293174266815, -0.12687411904335022, -0.20821024477481842, 0.0771857351064682, -0.18380677700042725, -0.24991285800933838, -0.09977594017982483, 0.08274494111537933, 0.41817790269851685, 0.029486171901226044, 0.43604207038879395, -0.123731330037117, -0.12786978483200073, -0.2621978521347046, -0.27160483598709106, -0.03139593452215195, -0.033341288566589355, -0.017909402027726173, 0.22858242690563202, 0.20209631323814392, 0.18940100073814392, -0.09519684314727783, -0.009016349911689758, 0.12182856351137161, 0.15977269411087036, -0.13883766531944275, -0.3195647597312927, 0.1809767782688141, -0.09059077501296997, 0.5169323682785034, 0.21054546535015106, -0.09704604744911194, -0.07728565484285355, 0.14930281043052673, 0.3057023286819458, -0.34296807646751404, 0.15183864533901215, 0.3632061183452606, 0.11953763663768768, 0.17536668479442596, 0.08420877158641815, -0.007640764117240906, 0.2212086021900177, 0.05021663382649422, 0.2906914949417114, 0.1874254047870636, -0.29771149158477783, 0.1714358627796173, 0.25073421001434326, 0.0391964353621006, -0.0430578775703907, 0.34353652596473694, 0.3435918092727661, 0.12201672792434692, 0.649990975856781, 0.01072557270526886, 0.46677127480506897, 0.22179996967315674, 0.23731419444084167, -0.3221615254878998, -0.2071290910243988, -0.09778231382369995, 0.01115979254245758, -0.20549637079238892, -0.4033391773700714, -0.01960381120443344, 0.30749261379241943, -0.16000919044017792, -0.12627092003822327, -0.12919670343399048, 0.03138481825590134, 0.08680760115385056, -0.13668939471244812, 0.016261689364910126, -0.08325029909610748, -0.03356762230396271, -0.04386087507009506, -0.032400209456682205, 0.06250365823507309, 0.10873253643512726, -0.06749138236045837, 0.059480033814907074, -0.35955145955085754, 0.2341548204421997, 0.19108235836029053, 0.25717195868492126, 0.08534400165081024, -0.2153410166501999, -0.04661749303340912, 0.19508779048919678, -0.11521771550178528, 0.42688828706741333, 0.286281555891037, 0.28704941272735596, -0.11140508949756622, -0.10993387550115585, 0.05552799627184868, -0.2078825831413269, -0.2204098403453827, 0.10114869475364685, -0.25890955328941345, 0.0062538497149944305, 0.0386977344751358, 0.25445568561553955, -0.17538082599639893, 0.3462069034576416, -0.06503118574619293, 0.22901330888271332, -0.6070831418037415, 0.5187288522720337, 0.05104915797710419, -0.009881895035505295, 0.10706578195095062, -0.06733805686235428, -0.2483019232749939, 0.0686664804816246, 0.5465316772460938, 0.044333018362522125, 0.029001228511333466, -0.3056618869304657, 0.12698066234588623, -0.2679186165332794, 0.10530945658683777, 0.22915056347846985, 0.4951187074184418, -0.004935546778142452, -0.10825160145759583, -0.6040712594985962, -0.12724649906158447, 0.07186096161603928, 0.09975612163543701, -0.07347961515188217, 0.0388946607708931, -0.25487634539604187, 0.3366084694862366, 0.5301196575164795, 0.11120815575122833, 0.07112870365381241, -0.17118465900421143, -0.17815713584423065, 0.014708714559674263, -0.05345626175403595, -0.03406108170747757, -0.14707133173942566, -0.22796335816383362, -0.028015021234750748, -0.17382551729679108, 0.15684732794761658, -0.11081402003765106, -0.0830957442522049, 0.26628613471984863, -0.10049249231815338, 0.7162855267524719, 0.02986348792910576, 0.11222204566001892, -0.0019867680966854095, 0.05657058209180832, -0.07705537974834442, -0.0694836750626564, -0.26652202010154724, 0.2894010841846466, -0.23370134830474854, 0.41580915451049805, -0.26430973410606384, 0.03743129223585129, -0.11471336334943771, 0.39159440994262695, 0.1419932246208191, 0.2878200113773346, -0.048768654465675354, 0.1231352910399437, 0.1286984384059906, 0.23058199882507324, -0.23296502232551575, -0.3019637167453766, -0.05666027218103409, 0.48928403854370117, -0.3734370470046997, -0.13242782652378082, 0.23852255940437317, -0.302568256855011, -0.36552441120147705, -0.2150966227054596, 0.39165863394737244, 0.14583852887153625, -0.24627330899238586, -0.2667224109172821, -0.10904693603515625, 0.3695959150791168, -0.09398302435874939, -0.18787114322185516, 0.4394337236881256, -0.1521885097026825, 0.22427286207675934, 0.08366557955741882, 0.08995917439460754, 0.11955256760120392, 0.13253462314605713, -0.05325857177376747, -0.1343241184949875 ]
https://github.com/huggingface/datasets/issues/4084
Errors in `Train with Datasets` Tensorflow code section on Huggingface.co
Hi @blackhat-coder, thanks for reporting. Please note that the `transformers` library updated their data collators API last year (version 4.10.0): - huggingface/transformers#13105 now requiring to pass `return_tensors` argument at Data Collator instantiation. And therefore, we also updated in the `datasets` library documentation all the examples using `transformers` data collators. If you would like to follow our examples, please update your installed `transformers` version: ``` pip install -U transformers ```
## Describe the bug Hi ### Error 1 Running the Tensforlow code on [Huggingface](https://huggingface.co/docs/datasets/use_dataset) gives a TypeError: __init__() got an unexpected keyword argument 'return_tensors' ### Error 2 `DataCollatorWithPadding` isn't imported ## Steps to reproduce the bug ```python import tensorflow as tf from datasets import load_dataset from transformers import AutoTokenizer dataset = load_dataset('glue', 'mrpc', split='train') tokenizer = AutoTokenizer.from_pretrained('bert-base-cased') dataset = dataset.map(lambda e: tokenizer(e['sentence1'], truncation=True, padding='max_length'), batched=True) data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="tf") train_dataset = dataset["train"].to_tf_dataset( columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'], shuffle=True, batch_size=16, collate_fn=data_collator, ) ``` This is the same code on Huggingface.co ## Actual results TypeError: __init__() got an unexpected keyword argument 'return_tensors' ## Environment info - `datasets` version: 2.0.0 - Platform: Windows-10-10.0.19044-SP0 - Python version: 3.9.7 - PyArrow version: 6.0.0 - Pandas version: 1.4.1 >
69
Errors in `Train with Datasets` Tensorflow code section on Huggingface.co ## Describe the bug Hi ### Error 1 Running the Tensforlow code on [Huggingface](https://huggingface.co/docs/datasets/use_dataset) gives a TypeError: __init__() got an unexpected keyword argument 'return_tensors' ### Error 2 `DataCollatorWithPadding` isn't imported ## Steps to reproduce the bug ```python import tensorflow as tf from datasets import load_dataset from transformers import AutoTokenizer dataset = load_dataset('glue', 'mrpc', split='train') tokenizer = AutoTokenizer.from_pretrained('bert-base-cased') dataset = dataset.map(lambda e: tokenizer(e['sentence1'], truncation=True, padding='max_length'), batched=True) data_collator = DataCollatorWithPadding(tokenizer=tokenizer, return_tensors="tf") train_dataset = dataset["train"].to_tf_dataset( columns=['input_ids', 'token_type_ids', 'attention_mask', 'label'], shuffle=True, batch_size=16, collate_fn=data_collator, ) ``` This is the same code on Huggingface.co ## Actual results TypeError: __init__() got an unexpected keyword argument 'return_tensors' ## Environment info - `datasets` version: 2.0.0 - Platform: Windows-10-10.0.19044-SP0 - Python version: 3.9.7 - PyArrow version: 6.0.0 - Pandas version: 1.4.1 > Hi @blackhat-coder, thanks for reporting. Please note that the `transformers` library updated their data collators API last year (version 4.10.0): - huggingface/transformers#13105 now requiring to pass `return_tensors` argument at Data Collator instantiation. And therefore, we also updated in the `datasets` library documentation all the examples using `transformers` data collators. If you would like to follow our examples, please update your installed `transformers` version: ``` pip install -U transformers ```
[ 0.0014985501766204834, -0.36685293912887573, 0.048746880143880844, 0.3086221218109131, 0.3064284324645996, -0.08058949559926987, 0.5264430046081543, 0.19769388437271118, -0.13140475749969482, 0.19881537556648254, -0.11223018914461136, 0.20431219041347504, -0.08323900401592255, -0.052147336304187775, 0.017663611099123955, -0.15765556693077087, 0.21893736720085144, 0.07137368619441986, -0.3227122128009796, -0.23758329451084137, -0.1939614713191986, 0.3038800060749054, -0.2507765591144562, -0.018316954374313354, -0.32470574975013733, -0.1822083741426468, -0.010305538773536682, -0.15348413586616516, 0.038150906562805176, -0.41263705492019653, 0.4672781229019165, -0.29759228229522705, 0.23919540643692017, 0.5737634301185608, -0.00012189151311758906, 0.14585429430007935, 0.08373265713453293, 0.11644236743450165, 0.09271165728569031, -0.33556294441223145, 0.3315157890319824, -0.1995677351951599, 0.03700942546129227, -0.1197463646531105, -0.10435618460178375, -0.06325894594192505, -0.21605725586414337, -0.2058304101228714, 0.5409151911735535, 0.33226075768470764, 0.14486533403396606, 0.7791123390197754, 0.05859445407986641, -0.05593496933579445, 0.06525745987892151, -0.2148648351430893, -0.2049066424369812, 0.15498588979244232, 0.1084916740655899, -0.17285209894180298, -0.08027046173810959, 0.2868850827217102, -0.002483399584889412, -0.10775148868560791, 0.36789536476135254, 0.19354978203773499, -0.02827974408864975, -0.300287663936615, -0.18334123492240906, 0.19678771495819092, 0.32485419511795044, -0.16054773330688477, -0.37315231561660767, -0.3035632371902466, -0.06936947256326675, -0.21139225363731384, 0.2996199131011963, -0.04962606728076935, -0.21804633736610413, 0.01749115064740181, -0.22075828909873962, -0.04239432513713837, -0.12120474874973297, 0.2889653742313385, -0.07236701250076294, 0.2040787935256958, -0.17142796516418457, 0.09053797274827957, 0.13300535082817078, -0.19896303117275238, 0.06974178552627563, -0.04149247705936432, 0.45648062229156494, 0.4023072421550751, -0.4760333299636841, -0.16155719757080078, 0.06118462607264519, -0.4526576101779938, 0.03131901100277901, 0.09751106798648834, -0.19072148203849792, -0.3000096380710602, -0.10250795632600784, 0.06477892398834229, -0.007471080869436264, 0.3991289734840393, -0.021395601332187653, 0.1671234369277954, 0.19780372083187103, -0.05874521657824516, 0.08338005840778351, -0.08298687636852264, -0.2544443607330322, -0.18868878483772278, 0.11255930364131927, -0.21863093972206116, 0.3533603549003601, -0.04864398390054703, -0.37885066866874695, 0.12685589492321014, -0.2335672378540039, -0.11751122772693634, -0.03050673007965088, 0.20267435908317566, -0.1360609531402588, 0.15573200583457947, 0.011304933577775955, 0.2052580714225769, -0.10543236136436462, -0.06970971822738647, -0.20479460060596466, 0.08083635568618774, -0.23896627128124237, 0.10421665757894516, 0.1216813325881958, -0.46987640857696533, 0.08442511409521103, 0.31612515449523926, 0.23780034482479095, -0.036871712654829025, -0.16734260320663452, -0.028371641412377357, 0.0968155562877655, -0.05405381694436073, -0.12579107284545898, 0.3238430321216583, 0.2854463458061218, -0.12836581468582153, -0.057168975472450256, -0.11890808492898941, -0.3269977569580078, -0.13612163066864014, -0.2510533332824707, 0.12023404985666275, -0.1425836980342865, -0.13660086691379547, -0.11254049092531204, 0.13100533187389374, 0.35105541348457336, 0.2946303188800812, 0.13332104682922363, -0.08024157583713531, -0.17278985679149628, -0.14951132237911224, 0.3649396300315857, 0.15143442153930664, -0.4850076138973236, -0.33239442110061646, 0.2549624741077423, 0.08459767699241638, 0.18796560168266296, 0.4674879312515259, -0.20899705588817596, 0.2316734790802002, -0.23216478526592255, 0.3128443956375122, 0.2132294476032257, -0.32703617215156555, -0.25770989060401917, -0.01794181577861309, -0.16521055996418, 0.25054818391799927, 0.0813433825969696, -0.27662813663482666, 0.024900663644075394, 0.16881239414215088, 0.31226855516433716, 0.15581783652305603, -0.03782404959201813, 0.07160881906747818, -0.22338327765464783, -0.21974694728851318, 0.4852014183998108, 0.046416182070970535, 0.19100403785705566, 0.1702880859375, -0.16958323121070862, 0.037121303379535675, 0.04262813925743103, -0.09519506990909576, -0.08934909850358963, 0.2106991559267044, 0.36472374200820923, 0.0613260418176651, 0.008472789078950882, -0.10984405875205994, -0.31754329800605774, 0.2574198842048645, -0.04190072789788246, 0.39477142691612244, 0.08954431861639023, -0.10435068607330322, -0.19786250591278076, 0.10437124222517014, -0.03659229353070259, -0.03411996737122536, 0.06799498200416565, -0.042559124529361725, 0.009218502789735794, 0.21076886355876923, -0.24883893132209778, 0.1926717758178711, -0.25866636633872986, 0.32745957374572754, -0.3335152566432953, 0.43496763706207275, -0.025302546098828316, -0.2538338005542755, -0.06737249344587326, 0.1803557574748993, 0.3520183563232422, -0.11363016068935394, 0.007935505360364914, 0.2804091274738312, -0.2853687107563019, 0.09391917288303375, -0.4882343113422394, 0.08762454241514206, 0.19443002343177795, -0.21235567331314087, -0.21771101653575897, 0.1651758998632431, -0.12446139007806778, 0.005736887454986572, 0.3016076683998108, 0.4601542353630066, 0.10613003373146057, 0.2559302747249603, 0.05815468728542328, -0.05569465458393097, -0.15603633224964142, 0.02707969769835472, -0.20846807956695557, -0.0758545845746994, 0.17698121070861816, -0.11223341524600983, 0.4216616153717041, -0.02100236527621746, -0.12067188322544098, -0.19137227535247803, 0.532290518283844, 0.003913693130016327, -0.022476866841316223, 0.08184067904949188, -0.25612202286720276, 0.08585438132286072, 0.14167866110801697, -0.060867905616760254, 0.44668829441070557, 0.044828835874795914, -0.2082025110721588, 0.19670459628105164, -0.15610937774181366, -0.14768655598163605, 0.24860629439353943, 0.23552177846431732, -0.01606524921953678, 0.057322315871715546, 0.06260985881090164, 0.23267708718776703, -0.2178468406200409, -0.02794067934155464, -0.07707252353429794, 0.08258334547281265, -0.5147148966789246, -0.08849871903657913, -0.28464192152023315, -0.4329262375831604, -0.42760032415390015, 0.03979642689228058, -0.32123062014579773, -0.24072617292404175, -0.2334575206041336, 0.029536060988903046, 0.0015904977917671204, 0.3169415593147278, 0.1062835156917572, 0.3900309205055237, 0.04180348664522171, 0.04720524698495865, -0.24557530879974365, 0.11504088342189789, -0.1984393298625946, -0.016246173530817032, 0.023968927562236786, -0.4612428545951843, 0.2475912868976593, 0.06440272182226181, 0.11429502069950104, -0.2358550727367401, -0.47089317440986633, 0.29446738958358765, -0.172731414437294, 0.11404997855424881, 0.24267275631427765, 0.1792580485343933, -0.16761736571788788, -0.5400101542472839, 0.2425733059644699, -0.11941784620285034, -0.15672391653060913, -0.022280104458332062, -0.10840951651334763, -0.028562946245074272, -0.16213850677013397, -0.2753280997276306, -0.10191745311021805, -0.15917819738388062, 0.23122896254062653, -0.03455818071961403, -0.1919754296541214, 0.5298271775245667, 0.051396965980529785, 0.3717562258243561, -0.05735880509018898, -0.04809431731700897, -0.15924376249313354, -0.29262399673461914, 0.45375964045524597, -0.041440751403570175, -0.3110722303390503, -0.09761090576648712, 0.006828855723142624, 0.3575114905834198, -0.02860407531261444, -0.24974457919597626, -0.16314683854579926, -0.3558212220668793, 0.421513170003891, -0.04262028634548187, 0.39379367232322693, 0.12809273600578308, -0.11947165429592133, 0.10349726676940918, -0.09518067538738251, -0.15657933056354523, 0.11363696306943893, -0.06845395267009735, 0.03382562845945358, 0.026985231786966324, 0.3927471339702606, 0.17243391275405884, 0.7291771769523621, 0.19919005036354065, -0.2576274871826172, 0.23909617960453033, -0.13572542369365692, 0.24450281262397766, 0.056895606219768524, -0.4617813229560852, 0.08656423538923264, -0.09521019458770752, 0.09297213703393936, -0.030746296048164368, -0.16310811042785645, 0.10786966234445572, -0.07217046618461609, 0.01645391434431076, -0.12130407989025116, -0.2872438132762909, -0.06815474480390549, -0.03295331448316574, 0.04458435997366905, 0.05555662140250206, 0.2250688672065735, -0.18066729605197906, -0.03559594973921776, 0.06606034934520721, -0.005238354206085205, 0.13995233178138733, 0.04130643233656883, -0.32501184940338135, -0.2623114287853241, -0.5370691418647766, 0.1453665792942047, 0.14730112254619598, 0.28851863741874695, 0.2170366793870926, -0.14101871848106384, -0.06526190042495728, 0.23928792774677277, 0.60316002368927, 0.08401055634021759, -0.3986589312553406, -0.06715801358222961, -0.1854994148015976, -0.46043264865875244, -0.21860462427139282, -0.23572474718093872, -0.35451459884643555, 0.20531493425369263, 0.7288033962249756, -0.27528896927833557, -0.14179642498493195, 0.15466639399528503, -0.013899111188948154, 0.002232927829027176, 0.00663104560226202, -0.25978782773017883, -0.22901242971420288, -0.34725621342658997, 0.1123436763882637, 0.16627907752990723, 0.297238826751709, -0.15690350532531738, 0.13069015741348267, 0.16936641931533813, -0.1457933783531189, 0.2461281269788742, 0.15066708624362946, 0.15290290117263794, -0.07441733777523041, 0.11475802958011627, 0.1496899127960205, 0.06921302527189255, 0.19724297523498535, 0.22539189457893372, -0.11084817349910736, -0.8224906325340271, 0.020801067352294922, 0.1452736258506775, 0.2900666296482086, 0.22076857089996338, -0.23880118131637573, 0.3712967336177826, 0.02344609424471855, 0.17813992500305176, -0.09787984192371368, 0.3228916823863983, 0.5211766958236694, 0.16104380786418915, -0.24852228164672852, -0.23542550206184387, 0.3501799702644348, 0.05127255246043205, 0.18420453369617462, 0.43684616684913635, 0.3740442395210266, -0.25592702627182007, 0.2084084004163742, -0.07224766165018082, 0.8230895400047302, 0.17033061385154724, 0.1842499077320099, 0.5413137674331665, 0.12245351076126099, 0.8654453158378601, -0.25135552883148193, -0.07478535175323486, -0.1818588376045227, -0.2908479571342468, 0.028888771310448647, -0.14336653053760529, 0.07516428083181381, -0.01724795252084732, -0.20894260704517365, 0.1841719001531601, -0.10617490112781525, 0.5781673789024353, 0.04492659121751785, 0.13998223841190338, 0.01164932083338499, -0.3098269999027252, -0.21160778403282166, 0.0037875473499298096, 0.03672204166650772, 0.4078468084335327, -0.14020222425460815, 0.01157330721616745, -0.02728838101029396, -0.4036058187484741, -0.24575141072273254, 0.16924646496772766, -0.5048065781593323, 0.2920900583267212, 0.6453121304512024, -0.12740476429462433, 0.41308897733688354, 0.3325307369232178, 0.7959588766098022, 0.08444994688034058, -0.13982516527175903, -0.009298108518123627, -0.12145208567380905, 0.1776001751422882, 0.1009557917714119, -0.17629987001419067, 0.47505414485931396, 0.03014129400253296, -0.13693426549434662, 0.1565409004688263, 0.10187248140573502, -0.08697029948234558, -0.4386698305606842, -0.13830140233039856, -0.22411836683750153, -0.49452435970306396, 0.048094820231199265, -0.05507449805736542, 0.169114887714386, -0.18730734288692474, 0.049817465245723724, -0.037587933242321014, -0.06597293168306351, -0.17751285433769226, 0.11833024024963379, -0.16208416223526, -0.11203177273273468, 0.4164886474609375, 0.11603614687919617, -0.4826328754425049, 0.5158083438873291, 0.2675762474536896, -0.15860415995121002, 0.05017521232366562, 0.06996225565671921, 0.6363313794136047, -0.5238050222396851, 0.1843014657497406, -0.07437920570373535, 0.10384128987789154, -0.16750025749206543, 0.544150173664093, 0.18236012756824493, -0.011429361999034882, 0.005067117512226105, 0.021634258329868317, -0.2481713891029358, 0.23126667737960815, -0.0036998987197875977, 0.03835952654480934, 0.19160854816436768, 0.514968991279602, -0.07550866156816483, -0.23109275102615356, -0.22514060139656067, -0.04152829200029373, -0.04404666647315025, -0.06336566805839539, 0.2014552503824234, -0.2837081849575043, 0.12413174659013748, -0.06965504586696625, 0.021565841510891914, 0.34468144178390503, -0.008809391409158707, -0.08826475590467453, -0.4231022000312805, 0.0996280387043953, 0.2765849530696869, -0.25102677941322327, 0.12154237180948257, 0.1420288234949112, 0.013894652016460896, -0.18637479841709137, 0.31089797616004944, 0.2134954333305359, 0.03368945047259331, 0.3925890028476715, -0.11292128264904022, 0.19942301511764526, -0.14558811485767365, -0.15534697473049164, -0.020153939723968506, 0.2116355448961258, 0.2135924994945526, 0.2771558165550232, -0.004486399702727795, 0.009781651198863983, -0.3863818347454071, 0.18584318459033966, 0.2845863103866577, 0.21391302347183228, 0.07221494615077972, -0.4032377004623413, -0.24654610455036163, -0.08415670692920685, 0.10338293761014938, 0.19356580078601837, -0.4330407679080963, -0.07338403910398483, 0.25053277611732483, 0.14156043529510498, -0.16616535186767578, -0.11655686795711517, 0.03368229418992996, 0.03471723943948746, 0.12124113738536835, 0.18032360076904297, 0.008906010538339615, 0.1793014407157898, 0.198929563164711, -0.15855446457862854, 0.5195468664169312, -0.1314956396818161, 0.4028109014034271, 0.43564751744270325, -0.019963722676038742, 0.17805467545986176, 0.1688051074743271, 0.11332237720489502, 0.01528710126876831, 0.08503861725330353, -0.18145716190338135, 0.22969727218151093, -0.35466811060905457, -0.0019333809614181519, 0.3148384392261505, -0.2658116817474365, -0.0962756872177124, 0.22741277515888214, -0.25142228603363037, 0.17378568649291992, -0.36561569571495056, 0.5020420551300049, 0.038040097802877426, -0.28947338461875916, -0.19408392906188965, 0.24769346415996552, -0.2983724772930145, -0.10383601486682892, -0.18683655560016632, -0.05154639482498169, -0.09851110726594925, -0.026916425675153732, -0.07823555171489716, -0.25140470266342163, -0.05551382899284363, -0.06573063135147095, -0.16723771393299103, -0.019597923383116722, -0.18650859594345093, 0.10796093195676804, 0.20199768245220184, -0.020773090422153473, 0.2483050674200058, 0.16927661001682281, -0.11381727457046509, -0.28844454884529114, 0.1950722187757492, 0.5169967412948608, 0.35229775309562683, 0.33595553040504456, 0.08366063237190247, 0.06638975441455841, 0.029965771362185478, 0.08591014891862869, 0.20937658846378326, -0.04994107782840729, 0.2752992510795593, 0.1580095738172531, 0.07973838597536087, -0.208016037940979, -0.1287713646888733, -0.17736010253429413, 0.2659725248813629, -0.5500897169113159, 0.007756918668746948, -0.44828861951828003, -0.11893069744110107, -0.2881695032119751, 0.10156404972076416, -0.20964395999908447, 0.29491695761680603, 0.5633782744407654, 0.35362914204597473, 0.048641033470630646, -0.17055575549602509, 0.053039759397506714, 0.008886712603271008, 0.3613320589065552, 0.393150269985199, 0.12038654834032059, -0.22558212280273438, -0.14351436495780945, -0.3741695284843445, 0.21554242074489594, 0.30908462405204773, 0.18367069959640503, 0.08269200474023819, 0.08274809271097183, 0.11321264505386353, 0.07755136489868164, 0.16465581953525543, -0.2828173339366913, -0.19883665442466736, -0.04521806538105011, -0.07408895343542099, -0.23713864386081696, -0.26665419340133667, -0.234092116355896, 0.16297249495983124, 0.027064844965934753, 0.08117207139730453, 0.06540896743535995, -0.06959818303585052, -0.251534640789032, 0.2535332143306732, -0.10942356288433075, -0.31251800060272217, 0.31612688302993774, 0.1211416944861412, 0.36416223645210266, 0.021082773804664612, -0.0677228793501854, -0.13143837451934814, -0.38294029235839844, -0.35582244396209717, 0.0782938301563263, -0.25040265917778015, 0.32236161828041077, -0.021702634170651436, -0.25715723633766174, -0.4550187289714813, 0.2915806174278259, 0.4052894115447998, -0.3729126453399658, -0.2114999145269394, 0.24311795830726624, -0.06845443695783615, -0.05210667476058006, 0.36058562994003296, 0.32550564408302307, -0.0401904359459877, 0.3121386766433716, -0.17801964282989502, -0.5307362079620361, 0.462855726480484, -0.6110706329345703, -0.22845998406410217, -0.17014701664447784, 0.12535744905471802, 0.2723366916179657, -0.20666632056236267, -0.8224714398384094, -0.14465315639972687, 0.30447375774383545, -0.07474335283041, -0.4769989550113678, 0.15453846752643585, 0.14838306605815887, 0.2244313508272171, -0.08356471359729767, 0.16653205454349518, 0.17595982551574707, -0.15263330936431885, 0.3210791051387787, -0.2993318438529968 ]
https://github.com/huggingface/datasets/issues/4080
NonMatchingChecksumError for downloading conll2012_ontonotesv5 dataset
Hi @richarddwang, Indeed, we have recently updated the loading script of that dataset (and fixed that bug as well): - #4002 That fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by: - installing `datasets` from our GitHub repo: ```bash pip install git+https://github.com/huggingface/datasets#egg=datasets ``` - forcing the data files to be redownloaded ```python ds = load_dataset('conll2012_ontonotesv5', 'english_v4', split="test", download_mode="force_redownload") ``` Feel free to re-open this issue if the problem persists. Duplicate of: - #4031
## Steps to reproduce the bug ```python datasets.load_dataset("conll2012_ontonotesv5", "english_v12") ``` ## Actual results ``` Downloading builder script: 32.2kB [00:00, 9.72MB/s] Downloading metadata: 20.0kB [00:00, 10.4MB/s] Downloading and preparing dataset conll2012_ontonotesv5/english_v12 (download: 174.83 MiB, generated: 204.29 MiB, post-processed: Unknown size , total: 379.12 MiB) to ... Traceback (most recent call last): [315/390] File "/home/yisiang/lgtn/conll2012/run.py", line 86, in <module> train() File "/home/yisiang/lgtn/conll2012/run.py", line 65, in train trainer.fit(model, datamodule=dm) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 740, in fit self._call_and_handle_interrupt( File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 685, in _call_and_handle_inte rrupt return trainer_fn(*args, **kwargs) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 777, in _fit_impl self._run(model, ckpt_path=ckpt_path) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 1131, in _run self._data_connector.prepare_data() File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/connectors/data_connector.py", line 154, in pre pare_data self.trainer.datamodule.prepare_data() File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/core/datamodule.py", line 474, in wrapped_fn fn(*args, **kwargs) File "/home/yisiang/lgtn/_abstract_task/data.py", line 43, in prepare_data raw_dsets = datasets.load_dataset(**load_dataset_kwargs) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/load.py", line 1687, in load_dataset builder_instance.download_and_prepare( File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/builder.py", line 605, in download_and_prepare self._download_and_prepare( File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/builder.py", line 1104, in _download_and_prepare super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/builder.py", line 676, in _download_and_prepare verify_checksums( File "/home/yisiang/miniconda3/envs/ai/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://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/zmycy7t9h9-1.zip'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0
83
NonMatchingChecksumError for downloading conll2012_ontonotesv5 dataset ## Steps to reproduce the bug ```python datasets.load_dataset("conll2012_ontonotesv5", "english_v12") ``` ## Actual results ``` Downloading builder script: 32.2kB [00:00, 9.72MB/s] Downloading metadata: 20.0kB [00:00, 10.4MB/s] Downloading and preparing dataset conll2012_ontonotesv5/english_v12 (download: 174.83 MiB, generated: 204.29 MiB, post-processed: Unknown size , total: 379.12 MiB) to ... Traceback (most recent call last): [315/390] File "/home/yisiang/lgtn/conll2012/run.py", line 86, in <module> train() File "/home/yisiang/lgtn/conll2012/run.py", line 65, in train trainer.fit(model, datamodule=dm) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 740, in fit self._call_and_handle_interrupt( File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 685, in _call_and_handle_inte rrupt return trainer_fn(*args, **kwargs) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 777, in _fit_impl self._run(model, ckpt_path=ckpt_path) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 1131, in _run self._data_connector.prepare_data() File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/trainer/connectors/data_connector.py", line 154, in pre pare_data self.trainer.datamodule.prepare_data() File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/pytorch_lightning/core/datamodule.py", line 474, in wrapped_fn fn(*args, **kwargs) File "/home/yisiang/lgtn/_abstract_task/data.py", line 43, in prepare_data raw_dsets = datasets.load_dataset(**load_dataset_kwargs) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/load.py", line 1687, in load_dataset builder_instance.download_and_prepare( File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/builder.py", line 605, in download_and_prepare self._download_and_prepare( File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/builder.py", line 1104, in _download_and_prepare super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) File "/home/yisiang/miniconda3/envs/ai/lib/python3.9/site-packages/datasets/builder.py", line 676, in _download_and_prepare verify_checksums( File "/home/yisiang/miniconda3/envs/ai/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://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/zmycy7t9h9-1.zip'] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 Hi @richarddwang, Indeed, we have recently updated the loading script of that dataset (and fixed that bug as well): - #4002 That fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by: - installing `datasets` from our GitHub repo: ```bash pip install git+https://github.com/huggingface/datasets#egg=datasets ``` - forcing the data files to be redownloaded ```python ds = load_dataset('conll2012_ontonotesv5', 'english_v4', split="test", download_mode="force_redownload") ``` Feel free to re-open this issue if the problem persists. Duplicate of: - #4031
[ -0.22269192337989807, 0.02988700568675995, -0.12257593870162964, 0.4105228781700134, 0.4203907251358032, -0.03449765592813492, 0.18258310854434967, 0.5437702536582947, 0.0015197880566120148, 0.37241148948669434, -0.14954107999801636, 0.02892947942018509, -0.055245183408260345, -0.032321590930223465, -0.3194606900215149, 0.20047849416732788, -0.18263673782348633, 0.11680033057928085, -0.259442001581192, -0.12094970047473907, -0.24310283362865448, 0.25331586599349976, -0.09755229204893112, -0.19475524127483368, -0.35883867740631104, -0.04420844465494156, 0.16941581666469574, 0.10209567099809647, -0.20713207125663757, -0.18798847496509552, 0.1988525092601776, -0.040517617017030716, -0.21708720922470093, 0.3333466649055481, -0.00011093859211541712, 0.21920518577098846, 0.09805525839328766, -0.08549154549837112, -0.25972452759742737, -0.07077181339263916, -0.08368906378746033, -0.275923490524292, 0.04177200794219971, -0.2957829236984253, -0.06443142145872116, 0.19795460999011993, -0.014344627037644386, 0.10459065437316895, 0.09335409104824066, 0.3239637315273285, 0.29061633348464966, 0.28454431891441345, -0.003394506871700287, -0.0794178918004036, 0.38149493932724, -0.07556971907615662, -0.1808645874261856, 0.12908728420734406, 0.18282023072242737, 0.00848965160548687, -0.36088451743125916, 0.25848835706710815, 0.02888370491564274, 0.19288483262062073, 0.029335102066397667, -0.17264634370803833, 0.2566951811313629, -0.2738614082336426, 0.3440200388431549, 0.2224164605140686, 0.14632177352905273, -0.101603202521801, 0.0010755336843430996, -0.22558045387268066, -0.14282332360744476, -0.06952857971191406, 0.25490427017211914, 0.23931698501110077, -0.3943997323513031, -0.0050723254680633545, -0.3714854419231415, 0.2630714476108551, -0.20973356068134308, 0.176100492477417, -0.017935652285814285, 0.2493508756160736, -0.022240523248910904, -0.039885908365249634, 0.0928364247083664, 0.05066752806305885, 0.215766042470932, -0.07907266169786453, -0.01937183365225792, 0.061007097363471985, -0.32740750908851624, -0.2932838797569275, 0.12414087355136871, -0.031091265380382538, 0.3859519064426422, 0.19617842137813568, -0.03981245681643486, 0.09572714567184448, 0.0948614552617073, -0.03168585151433945, 0.0814453512430191, 0.16564542055130005, -0.09495953470468521, 0.13662812113761902, 0.16475090384483337, 0.2981160879135132, -0.32128241658210754, 0.13759323954582214, -0.07265684753656387, -0.32256022095680237, 0.2015579491853714, 0.022201184183359146, 0.0481979101896286, -0.44289976358413696, -0.33562585711479187, 0.43131202459335327, -0.15225917100906372, 0.11318383365869522, 0.07640905678272247, 0.4884658455848694, -0.22209382057189941, 0.022191613912582397, 0.016522329300642014, -0.04470738768577576, -0.2046312391757965, -0.013830074109137058, -0.29652953147888184, 0.04993743449449539, -0.2204696089029312, -0.21480703353881836, 0.19005663692951202, -0.09144379198551178, 0.4471376836299896, -0.08663519471883774, 0.315355122089386, -0.1722801923751831, 0.25779715180397034, -0.13925795257091522, 0.16961339116096497, 0.37747612595558167, 0.007098197937011719, -0.03139232471585274, 0.24238309264183044, 0.012402869760990143, -0.07601532340049744, 0.2959705591201782, 0.02869182825088501, -0.3149036765098572, -0.03688228130340576, 0.34087780117988586, -0.21349389851093292, -0.0383981391787529, 0.36800244450569153, -0.06497815251350403, 0.4188898205757141, -0.08341197669506073, 0.15329910814762115, -0.09615331888198853, -0.34302985668182373, -0.24313132464885712, 0.029723050072789192, 0.1262815147638321, -0.10494385659694672, -0.13436302542686462, 0.35560786724090576, -0.18262800574302673, 0.18528729677200317, 0.12912936508655548, -0.2198931723833084, 0.0866730734705925, -0.20747822523117065, 0.08353865146636963, 0.527389407157898, -0.08566305041313171, -0.7071806788444519, 0.170585498213768, -0.19428162276744843, 0.29856356978416443, 0.04582102224230766, 0.17757077515125275, 0.2028978168964386, 0.09362249821424484, 0.1472199410200119, 0.18397925794124603, 0.08737482130527496, 0.14543616771697998, -0.5130667090415955, -0.22223711013793945, 0.17906227707862854, 0.17740941047668457, 0.20777538418769836, -0.17424818873405457, 0.18401342630386353, 0.06580520421266556, 0.3806888461112976, -0.08689931035041809, 0.022718163207173347, 0.23884356021881104, 0.11707215011119843, -0.01060456782579422, 0.012641523033380508, -0.31370753049850464, -0.2953479588031769, 0.181642085313797, -0.35319629311561584, 0.13741180300712585, -0.06564025580883026, -0.12866957485675812, -0.3406921327114105, -0.09646602720022202, -0.3388073146343231, -0.10752424597740173, 0.25560954213142395, 0.27804097533226013, 0.19860400259494781, -0.25438258051872253, 0.09516112506389618, 0.25154221057891846, -0.4160289168357849, 0.0965382531285286, -0.18959924578666687, 0.155318021774292, -0.1668630987405777, -0.0791337713599205, -0.1817357987165451, 0.20390379428863525, 0.07848826795816422, -0.003383251139894128, -0.2063578963279724, 0.2996941804885864, 0.18050263822078705, -0.160976842045784, -0.06613423675298691, 0.07993718236684799, -0.12079168111085892, 0.06934425234794617, -0.03494648635387421, 0.2853958308696747, 0.011849812231957912, -0.04770680516958237, -0.2721964120864868, 0.5654101967811584, 0.07581931352615356, 0.29621726274490356, 0.09926870465278625, -0.017885543406009674, 0.2228207290172577, -0.002701796591281891, -0.19661515951156616, -0.21077582240104675, 0.2590242624282837, 0.25780028104782104, 0.10418146848678589, 0.10420442372560501, -0.33481985330581665, -0.10959164053201675, 0.34452366828918457, -0.005543490871787071, 0.024714335799217224, 0.21752262115478516, -0.007033102214336395, -0.05158058553934097, -0.1341678947210312, 0.3329080045223236, 0.41931313276290894, 0.25024673342704773, 0.2586466372013092, 0.08842843770980835, -0.1536775529384613, -0.26498186588287354, 0.2109518051147461, 0.22517937421798706, 0.05228778347373009, 0.5927964448928833, 0.44903361797332764, -0.14130832254886627, -0.6295639276504517, -0.01239078864455223, -0.0013582687824964523, 0.19488482177257538, -0.1751072108745575, -0.0977465882897377, -0.1135714128613472, 0.052169449627399445, -0.3122226297855377, -0.38575470447540283, -0.17495134472846985, -0.23935756087303162, 0.28060466051101685, 0.2840169072151184, -0.14330312609672546, 0.33500856161117554, -0.5438655614852905, 0.07527993619441986, 0.13830441236495972, -0.18928487598896027, 0.05175768584012985, 0.05101580545306206, -0.12146609276533127, 0.19340640306472778, 0.27989956736564636, -0.06605959683656693, 0.37887394428253174, -0.28497737646102905, -0.12073173373937607, -0.18980279564857483, -0.5482019186019897, 0.0568835586309433, -0.03070879727602005, 0.04786323755979538, 0.2776586413383484, 0.1318109780550003, -0.05822412297129631, -0.1929078847169876, 0.22444504499435425, 0.055742695927619934, -0.4397481083869934, 0.1734691709280014, -0.13846197724342346, 0.08587805926799774, -0.21968665719032288, -0.43970736861228943, -0.04958418011665344, -0.37499406933784485, 0.09514830261468887, 0.28660818934440613, 0.19523534178733826, 0.49813947081565857, 0.19004490971565247, 0.16332802176475525, 0.08934646844863892, 0.5106738209724426, -0.33956629037857056, -0.45269304513931274, 0.5073164701461792, -0.07207202166318893, -0.1882830411195755, 0.07608908414840698, -0.20010940730571747, 0.18161074817180634, 0.22128161787986755, -0.666592538356781, -0.19227349758148193, -0.3122195899486542, 0.19511887431144714, 0.08962377905845642, -0.10472089052200317, 0.4284973442554474, 0.15142546594142914, -0.14026042819023132, -0.1458604484796524, -0.002523427829146385, 0.2033209502696991, -0.0502949133515358, 0.2773081958293915, -0.36971232295036316, 0.4358978867530823, 0.22068321704864502, 0.5628253817558289, 0.20111966133117676, 0.16848613321781158, 0.1117502748966217, -0.041292138397693634, 0.19705142080783844, -0.261243999004364, -0.09858190268278122, 0.2495739459991455, -0.12229564785957336, -0.17972223460674286, 0.2148866355419159, -0.05103066563606262, -0.11602617055177689, -0.03793264180421829, 0.17132557928562164, -0.14921608567237854, -0.25958454608917236, 0.09563189744949341, -0.0634327232837677, 0.10940535366535187, 0.1533910036087036, 0.3329332768917084, -0.1151619553565979, -0.030834577977657318, 0.04722830280661583, 0.026187390089035034, -0.21351861953735352, -0.24373218417167664, -0.24469596147537231, 0.07594925165176392, -0.32069140672683716, 0.15630947053432465, 0.1717364639043808, 0.11522947996854782, 0.014110628515481949, -0.42308950424194336, 0.14945320785045624, -0.1599799245595932, 0.483761727809906, 0.07447794079780579, 0.0687451958656311, 0.019641146063804626, -0.11392341554164886, -0.10218258947134018, -0.16760355234146118, -0.16843482851982117, -0.01431238278746605, 0.238459512591362, 0.2920122742652893, -0.3694953918457031, 0.01027744635939598, 0.40864330530166626, 0.24186864495277405, -0.0858289822936058, -0.12452665716409683, -0.3225924074649811, -0.36724093556404114, -0.4529097378253937, 0.20182837545871735, 0.11800181120634079, 0.4163975119590759, -0.07578269392251968, -0.1523662954568863, 0.055232174694538116, -0.07135707885026932, 0.12322533875703812, 0.10756419599056244, 0.2063228189945221, 0.14273914694786072, 0.39706942439079285, -0.0017414167523384094, 0.3402867317199707, 0.1334863007068634, 0.5378299355506897, -0.15521779656410217, -0.49448877573013306, 0.08323444426059723, -0.1703629344701767, -0.0412747785449028, 0.21899405121803284, -0.06822271645069122, -0.2958042323589325, 0.142015278339386, 0.07909958809614182, 0.32863956689834595, 0.35672175884246826, 0.2821778953075409, 0.026805654168128967, -0.14773453772068024, -0.30385106801986694, 0.08355851471424103, -0.050525031983852386, 0.11130441725254059, 0.132706880569458, -0.3811471462249756, -0.06960448622703552, -0.017115704715251923, 0.1639014482498169, 0.9516977667808533, 0.20258024334907532, 0.20472700893878937, 0.4348611831665039, -0.38342446088790894, -0.2070610523223877, -0.31604552268981934, 0.18647906184196472, -0.42270681262016296, -0.44079911708831787, 0.05657044053077698, -0.09029939770698547, -0.14466360211372375, 0.13783812522888184, -0.01732562854886055, 0.21899071335792542, -0.10535545647144318, 0.01651175320148468, -0.04824919253587723, -0.0625390112400055, -0.0750158429145813, -0.13566100597381592, -0.03657808527350426, 0.2059437483549118, 0.03991042077541351, 0.27149859070777893, -0.0881582498550415, 0.018117006868124008, 0.07838793098926544, -0.3157208561897278, -0.08178269863128662, 0.17275407910346985, -0.4982808828353882, 0.0819564163684845, 0.22978727519512177, -0.2610342502593994, -0.27497613430023193, 0.24739626049995422, -0.03106212615966797, 0.1656865030527115, -0.14959044754505157, 0.2629174292087555, 0.3121097683906555, 0.2079903483390808, 0.16471533477306366, 0.06658481061458588, 0.31842920184135437, -0.1415753960609436, -0.0927920788526535, 0.16834503412246704, -0.23550571501255035, -0.27714768052101135, 0.1341192126274109, -0.024135060608386993, 0.1285916268825531, -0.3626652657985687, -0.1812833994626999, -0.08789493143558502, -0.2517584264278412, -0.4520643949508667, 0.23389467597007751, -0.06221897900104523, -0.23447124660015106, 0.19341257214546204, 0.017834199592471123, -0.444350928068161, -0.14561766386032104, 0.38110238313674927, 0.15218088030815125, -0.2354666292667389, 0.404712051153183, 0.0600598119199276, -0.41923803091049194, -0.251865953207016, 0.0241103395819664, -0.11709795892238617, -0.32583072781562805, 0.033062826842069626, -0.02723371610045433, -0.05518459528684616, -0.12470720708370209, 0.6450507044792175, 0.027595125138759613, 0.28087058663368225, -0.14429806172847748, -0.17843762040138245, -0.635755181312561, 0.032917968928813934, 0.1588161140680313, 0.5096034407615662, -0.1357463300228119, 0.1392902284860611, -0.09844952821731567, -0.07896044850349426, -0.39304107427597046, 0.004543912131339312, -0.29877591133117676, 0.0369550846517086, -0.21768788993358612, -0.082274429500103, 0.10063416510820389, 0.26582375168800354, 0.22448918223381042, 0.2269306480884552, -0.07864939421415329, -0.3152368664741516, -0.16730672121047974, 0.10103777796030045, 0.026583222672343254, -0.029583508148789406, 0.004620863124728203, 0.11848901212215424, -0.18118484318256378, -0.23127730190753937, 0.16300958395004272, 0.20338290929794312, -0.08184964954853058, 0.09457690268754959, 0.07939419150352478, 0.06563247740268707, 0.07283606380224228, -0.027847789227962494, -0.0180012509226799, 0.0982462614774704, 0.06146344915032387, -0.045367635786533356, -0.20574764907360077, 0.022792406380176544, -0.027338910847902298, 0.1466960310935974, 0.19384309649467468, -0.03801795095205307, 0.16835828125476837, -0.2543054223060608, -0.2727210521697998, 0.4769415259361267, 0.28458571434020996, 0.3514326214790344, -0.17975689470767975, -0.013385411351919174, -0.0007187817245721817, 0.3858746886253357, -0.44716933369636536, -0.04299895837903023, 0.05536966025829315, -0.2369733452796936, 0.2480551302433014, 0.18373364210128784, -0.28296199440956116, -0.3242679834365845, 0.5608937740325928, 0.22530892491340637, -0.18343231081962585, -0.29098987579345703, 0.06931085884571075, 0.5290999412536621, -0.03712717071175575, -0.07054534554481506, 0.38827642798423767, -0.1642356961965561, 0.23776724934577942, 0.23975323140621185, -0.08560030907392502, 0.15579578280448914, -0.2776792645454407, -0.08152240514755249, -0.27110555768013, -0.10647448897361755, 0.11326657235622406, 0.30159223079681396, -0.05621883273124695, 0.012459766119718552, 0.15791478753089905, 0.20175346732139587, 0.1198791116476059, 0.009396283887326717, -0.38915860652923584, -0.06831932067871094, -0.3336808681488037, -0.032417938113212585, 0.06291158497333527, -0.27454495429992676, -0.16939884424209595, 0.24687552452087402, -0.1079336404800415, 0.04999280720949173, 0.225181445479393, -0.10838434100151062, -0.16163595020771027, -0.305216521024704, 0.06555511057376862, 0.10889134556055069, -0.004825621843338013, -0.5185577273368835, 0.3667992353439331, 0.2686764597892761, -0.0156644806265831, -0.05716654285788536, 0.1980947107076645, 0.2813417315483093, 0.30199694633483887, -0.10070419311523438, -0.04462560638785362, -0.009114248678088188, -0.07344765961170197, -0.3593587577342987, 0.4877189099788666, 0.1574830412864685, 0.04362722858786583, 0.45225077867507935, 0.20931626856327057, -0.3470477759838104, 0.29469534754753113, 0.05843289941549301, -0.16824178397655487, -0.23403024673461914, 0.22380788624286652, 0.12080643326044083, -0.14443473517894745, -0.19166702032089233, -0.08907873183488846, -0.3085777759552002, -0.265112966299057, -0.19672593474388123, 0.07697793841362, 0.2531207203865051, -0.06589104980230331, 0.12272483110427856, -0.19392971694469452, 0.2696147859096527, 0.15738868713378906, -0.14561402797698975, -0.37175604701042175, -0.25281018018722534, -0.487499475479126, 0.3683677613735199, 0.04358787462115288, 0.09191948920488358, -0.12352633476257324, 0.2053699642419815, 0.03554970398545265, 0.22110992670059204, 0.25582820177078247, -0.18237945437431335, -0.022373337298631668, 0.15729111433029175, -0.2101317048072815, -0.0014554187655448914, 0.202821284532547, -0.16566388309001923, 0.16254670917987823, -0.366889625787735, 0.014389485120773315, 0.10569322854280472, 0.1733156442642212, -0.13410897552967072, -0.142656147480011, -0.21255089342594147, 0.2423446625471115, 0.1918308138847351, 0.04756460338830948, 0.48329824209213257, -0.2961668074131012, -0.11799617111682892, 0.014168482273817062, -0.2595316171646118, -0.11786244064569473, 0.19539159536361694, 0.05686686933040619, 0.32468169927597046, 0.08344477415084839, 0.06275822222232819, -0.10707197338342667, 0.15995009243488312, 0.2755472660064697, -0.2236889749765396, -0.016430629417300224, 0.025352178141474724, -0.13141456246376038, 0.14934487640857697, -0.033872395753860474, 0.2725205719470978, 0.13761231303215027, 0.022109391167759895, -0.24676240980625153, -0.4145979583263397, 0.5384700298309326, 0.02712203934788704, -0.33486127853393555, -0.1555914282798767, 0.13512742519378662, -0.10712140053510666, -0.08792848140001297, -0.669350802898407, 0.1361846625804901, 0.3544444739818573, 0.04407443478703499, -0.23004664480686188, 0.254555344581604, -0.19138041138648987, 0.12587547302246094, -0.09229958802461624, 0.45497941970825195, 0.08674651384353638, -0.0884338766336441, -0.10327976942062378, -0.4401920437812805 ]
https://github.com/huggingface/datasets/issues/4075
Add CCAgT dataset
Awesome ! Let us know if you have questions or if we can help ;) I'm assigning you PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
## Adding a Dataset - **Name:** CCAgT dataset: Images of Cervical Cells with AgNOR Stain Technique - **Description:** The dataset contains 2540 images (1600x1200 where each pixel is 0.111μm×0.111μm) from three different slides, having at least one nucleus per image. These images are from fields belonging to a sample cervical slide, colored with silver-stained, a method known as Argyrophilic Nucleolar Organizer Regions (AgNOR). - **Paper:** https://doi.org/10.1109/cbms49503.2020.00110 - **Data:** https://arquivos.ufsc.br/d/373be2177a33426a9e6c/ or https://drive.google.com/drive/u/4/folders/1TBpYCv6S1ydASLauSzcsvO7Wc5O-WUw0 - **Motivation:** This is a unique dataset (because of the stain), for a major health problem, cervical cancer, with real data. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi, this is a public version of the dataset that I have been working on, soon we will have another version of this dataset. But until this new version goes out, I thought I would add this dataset here, if it makes sense for the repository. You can assign the task to me if possible
44
Add CCAgT dataset ## Adding a Dataset - **Name:** CCAgT dataset: Images of Cervical Cells with AgNOR Stain Technique - **Description:** The dataset contains 2540 images (1600x1200 where each pixel is 0.111μm×0.111μm) from three different slides, having at least one nucleus per image. These images are from fields belonging to a sample cervical slide, colored with silver-stained, a method known as Argyrophilic Nucleolar Organizer Regions (AgNOR). - **Paper:** https://doi.org/10.1109/cbms49503.2020.00110 - **Data:** https://arquivos.ufsc.br/d/373be2177a33426a9e6c/ or https://drive.google.com/drive/u/4/folders/1TBpYCv6S1ydASLauSzcsvO7Wc5O-WUw0 - **Motivation:** This is a unique dataset (because of the stain), for a major health problem, cervical cancer, with real data. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi, this is a public version of the dataset that I have been working on, soon we will have another version of this dataset. But until this new version goes out, I thought I would add this dataset here, if it makes sense for the repository. You can assign the task to me if possible Awesome ! Let us know if you have questions or if we can help ;) I'm assigning you PS: if possible, please try to not use Google Drive links in your dataset script, since Google Drive has download quotas and is not always reliable.
[ -0.13802476227283478, -0.05103494971990585, -0.15077641606330872, -0.1637348234653473, -0.2237449437379837, 0.026292160153388977, 0.33147498965263367, 0.23299340903759003, -0.38703805208206177, 0.2819751501083374, -0.11805064231157303, -0.14718332886695862, -0.049876317381858826, 0.3397231698036194, 0.3003418743610382, -0.03296834975481033, -0.10397159308195114, 0.22032739222049713, -0.08735622465610504, -0.038449086248874664, -0.09733422100543976, 0.11882203072309494, -0.02860315889120102, -0.25358808040618896, -0.3206315338611603, -0.12664227187633514, -0.19647911190986633, 0.23605424165725708, -0.13071133196353912, -0.15636755526065826, 0.008204935118556023, 0.19983863830566406, -0.12406369298696518, 0.20794248580932617, -0.00010341117740608752, -0.20444132387638092, -0.04000737518072128, -0.07383078336715698, 0.007330192252993584, 0.38024741411209106, -0.029852671548724174, -0.09270062297582626, -0.2222045361995697, -0.28350114822387695, -0.2468118965625763, -0.13281114399433136, -0.06573294848203659, 0.10338622331619263, 0.2964265048503876, 0.11013945192098618, 0.2894553244113922, -0.01946854032576084, -0.03929989039897919, -0.21357007324695587, 0.2178952991962433, -0.03289785981178284, -0.19141876697540283, 0.21324214339256287, 0.3935255706310272, 0.15189695358276367, 0.1616024374961853, 0.6390162110328674, 0.04497864842414856, -0.018120799213647842, 0.05280688405036926, 0.2569003403186798, 0.2506144940853119, -0.31136709451675415, 0.22472906112670898, 0.10425111651420593, 0.35797539353370667, -0.3413875102996826, -0.07222925871610641, -0.3202867805957794, 0.02364228665828705, -0.3381831645965576, -0.13493648171424866, 0.10070639103651047, -0.15569134056568146, 0.12289169430732727, -0.201049342751503, -0.054198089987039566, -0.31284090876579285, 0.05637507885694504, 0.025742411613464355, -0.26900020241737366, -0.19103609025478363, -0.061242833733558655, 0.10715407133102417, 0.1372215449810028, -0.46721285581588745, -0.031855545938014984, -0.04289242997765541, 0.029465563595294952, -0.18257424235343933, -0.290475070476532, 0.05167775601148605, 0.11885084211826324, 0.4720826745033264, 0.31553441286087036, 0.12070608139038086, -0.08078164607286453, -0.2615741789340973, 0.1133127510547638, -0.09672878682613373, -0.2061956524848938, -0.343763142824173, -0.30439355969429016, 0.08149286359548569, -0.1980530470609665, 0.09230564534664154, 0.03815291076898575, 0.17394132912158966, -0.3861851096153259, 0.12710070610046387, 0.029148589819669724, 0.09933619201183319, -0.2048470824956894, -0.10590428858995438, 0.0029419371858239174, 0.09164083749055862, 0.14283420145511627, -0.14661464095115662, 0.38787633180618286, 0.34392961859703064, 0.1491381824016571, 0.11041156947612762, -0.004828177392482758, -0.0716620683670044, -0.3670366108417511, -0.21827882528305054, 0.27866610884666443, -0.23384639620780945, 0.2523421049118042, 0.20238910615444183, 0.05769134685397148, -0.2155607044696808, -0.14359550178050995, 0.28374341130256653, 0.2574303150177002, 0.0234831515699625, -0.18425971269607544, 0.30277854204177856, 0.221404567360878, 0.10751499235630035, -0.052541546523571014, -0.06433624029159546, -0.20811167359352112, -0.12778684496879578, -0.1376238465309143, 0.08514384180307388, -0.1655886024236679, -0.18055368959903717, 0.21460820734500885, 0.24038659036159515, 0.10610491782426834, -0.31799447536468506, 0.3126077651977539, 0.016808167099952698, 0.09870168566703796, -0.0701415166258812, 0.007459867745637894, -0.22802703082561493, -0.24776104092597961, 0.2292773723602295, 0.5920804142951965, -0.2659537196159363, 0.1500510275363922, -0.14058005809783936, 0.015104218386113644, 0.047751534730196, 0.0342339426279068, 0.2562037408351898, -0.07881192117929459, -0.29450640082359314, -0.013799071311950684, -0.0758698359131813, 0.11842010915279388, -0.2441340982913971, -0.03652575612068176, -0.22108808159828186, -0.06768413633108139, -0.004303492605686188, 0.013353390619158745, 0.22385770082473755, -0.21314160525798798, -0.28941434621810913, 0.31639164686203003, -0.29225173592567444, 0.05164915323257446, -0.14985711872577667, -0.1348004788160324, -0.18564952909946442, 0.11019404232501984, 0.03296339511871338, -0.10138634592294693, 0.1487196385860443, -0.5123370289802551, 0.10113465040922165, -0.40255311131477356, 0.2741336524486542, -0.018947266042232513, 0.42644181847572327, -0.11472661793231964, -0.012442326173186302, -0.11159645766019821, -0.7041704058647156, -0.07056393474340439, -0.07838384062051773, 0.256472110748291, -0.33867329359054565, -0.14295680820941925, -0.22525307536125183, -0.31967368721961975, -0.044796328991651535, -0.16063201427459717, 0.20719744265079498, 0.478109747171402, 0.153032124042511, 0.06613491475582123, -0.05819311365485191, 0.35545337200164795, -0.19285693764686584, 0.0012692752061411738, -0.04799259826540947, 0.37497928738594055, -0.10084673017263412, -0.22223904728889465, 0.2656371593475342, 0.1456093192100525, -0.14153316617012024, -0.21015143394470215, 0.06561262905597687, 0.24478203058242798, -0.3351915776729584, 0.23018650710582733, 0.23311340808868408, 0.30929499864578247, 0.03508163243532181, -0.5618074536323547, -0.08692353218793869, -0.39072537422180176, 0.19081349670886993, 0.05947384238243103, -0.12433794885873795, 0.25910288095474243, 0.06966867297887802, -0.047566525638103485, -0.03794471547007561, 0.10567580908536911, 0.20373524725437164, -0.1443345546722412, 0.10594375431537628, -0.33509668707847595, 0.011973407119512558, 0.13063034415245056, 0.18990035355091095, -0.2973974645137787, -0.4261535406112671, 0.37232446670532227, -0.06868095695972443, -0.021203426644206047, 0.02882499247789383, 0.10827706754207611, -0.09936655312776566, 0.1634044349193573, -0.0019489694386720657, 0.1341537982225418, 0.08129264414310455, 0.3669297397136688, -0.25879162549972534, 0.04416065663099289, 0.015681229531764984, -0.05603373050689697, 0.033389292657375336, -0.0717831403017044, 0.06158514693379402, 0.13012510538101196, 0.1453285664319992, 0.10342630743980408, -0.4011777341365814, -0.2886844277381897, -0.03957455977797508, 0.18554182350635529, -0.04502670839428902, -0.02612496167421341, 0.14368659257888794, -0.29715830087661743, -0.03904574364423752, 0.2155127227306366, 0.23214542865753174, 0.048970140516757965, 0.13590572774410248, 0.03971670940518379, -0.2288147211074829, 0.16348384320735931, -0.3732827305793762, 0.5852182507514954, -0.07732890546321869, 0.016783332452178, -0.23922307789325714, 0.05582386255264282, 0.07095828652381897, 0.32073095440864563, 0.14808182418346405, 0.23665167391300201, 0.8399113416671753, -0.11945746839046478, 0.47927647829055786, -0.19428931176662445, -0.3960834741592407, 0.13954466581344604, -0.23359902203083038, -0.10504867881536484, -0.07457336783409119, 0.18443885445594788, -0.11684808135032654, -0.2238103151321411, 0.19076381623744965, -0.295057475566864, -0.09635044634342194, -0.08718957006931305, -0.2436767965555191, -0.18957847356796265, -0.24020147323608398, -0.34783872961997986, -0.292396605014801, -0.15923941135406494, -0.11696681380271912, 0.21271076798439026, 0.35790717601776123, 0.30531540513038635, 0.09359835088253021, 0.008850130252540112, -0.09202302992343903, 0.10268530249595642, -0.21539051830768585, -0.13300246000289917, 0.19934754073619843, -0.3680475652217865, -0.2585972547531128, -0.2038463056087494, -0.2861418128013611, -0.060587089508771896, 0.03575920686125755, -0.31302863359451294, -0.25303345918655396, -0.2827523648738861, -0.0844433456659317, 0.2620377540588379, -0.2407231479883194, 0.31914666295051575, -0.03751225024461746, -0.2943340837955475, -0.1600518375635147, -0.08828350156545639, -0.047845058143138885, 0.14001020789146423, -0.20552781224250793, 0.07020501792430878, -0.12497776001691818, 0.059536125510931015, 0.08637633919715881, 0.08883921802043915, -0.3393414616584778, 0.34075894951820374, -0.07771673053503036, 0.3603091835975647, -0.24198323488235474, -0.5415337085723877, 0.33649176359176636, 0.18600018322467804, 0.13267703354358673, 0.2683958411216736, 0.07557350397109985, -0.14884118735790253, -0.14604881405830383, 0.0330517552793026, -0.2837522327899933, -0.2718418836593628, 0.11117299646139145, 0.14424625039100647, 0.11452779173851013, -0.14762108027935028, -0.4631199538707733, -0.191811665892601, -0.07991115748882294, -0.03812591731548309, 0.5463327765464783, 0.06938790529966354, -0.12090259790420532, -0.4549035429954529, 0.3846522867679596, -0.5133812427520752, 0.35043391585350037, 0.1949419230222702, -0.1213548332452774, -0.3065403997898102, 0.15563461184501648, 0.07326234877109528, -0.0419054813683033, 0.35952526330947876, -0.5809482932090759, 0.0915953665971756, 0.37843993306159973, -0.11587303876876831, 0.13343966007232666, 0.25321346521377563, -0.21722456812858582, -0.21894794702529907, 0.3722730278968811, 0.13906168937683105, -0.3053247332572937, -0.062100041657686234, 0.3601025640964508, 0.26476991176605225, -0.07418947666883469, -0.02307051047682762, 0.07392685115337372, -0.19297629594802856, -0.261690229177475, 0.221858948469162, 0.08133457601070404, 0.22218920290470123, 0.27506664395332336, -0.26078587770462036, 0.04021952301263809, -0.18964368104934692, 0.23636096715927124, 0.25184980034828186, 0.13773876428604126, 0.30825111269950867, 0.19106638431549072, 0.2446155995130539, 0.5980607271194458, 0.18923334777355194, 0.22900904715061188, -0.23414209485054016, -0.02169305831193924, 0.23777812719345093, -0.23863078653812408, 0.2944050133228302, 0.3477054238319397, 0.21921376883983612, 0.029187195003032684, -0.18905538320541382, 0.18302133679389954, -0.1264491230249405, 0.29082968831062317, 0.1080888956785202, -0.12964168190956116, -0.24111340939998627, -0.40635398030281067, 0.24851852655410767, 0.05825752392411232, -0.14683693647384644, 0.30733007192611694, 0.3470625877380371, -0.11497444659471512, 0.08004997670650482, 0.04714582860469818, 1.1833386421203613, -0.23573313653469086, -0.11731898784637451, 0.13235771656036377, 0.184798926115036, 0.15733347833156586, 0.125575453042984, -0.055988118052482605, -0.16284607350826263, -0.025772664695978165, 0.04787196218967438, -0.20506130158901215, 0.08529643714427948, -0.06130421906709671, -0.1211184412240982, -0.06512507051229477, 0.28510117530822754, 0.19836091995239258, -0.0035202298313379288, 0.32448816299438477, 0.15290836989879608, -0.40941864252090454, 0.015810828655958176, 0.26884979009628296, 0.2200525999069214, 0.12656567990779877, 0.014891022816300392, -0.08989258110523224, -0.13857068121433258, -0.0878470242023468, -0.18382424116134644, 0.026923947036266327, -0.1956518143415451, -0.14637690782546997, -0.16005174815654755, -0.6328422427177429, 0.17280516028404236, 0.16901206970214844, 0.08002623915672302, -0.06615810096263885, -0.16980624198913574, 0.1571948081254959, -0.16166165471076965, 0.03767897188663483, -0.0655224621295929, -0.17380718886852264, 0.2126125544309616, -0.06804880499839783, -0.17886874079704285, 0.23788759112358093, 0.25177302956581116, -0.32728642225265503, -0.04761426895856857, 0.03183414414525032, 0.2676740884780884, -0.09872540086507797, -0.03505350649356842, 0.21539625525474548, -0.21676267683506012, -0.2222403883934021, 0.2431028187274933, 0.16114945709705353, 0.10550644248723984, 0.29415905475616455, 0.12238965928554535, -0.17784300446510315, -0.012237325310707092, -0.09091787785291672, 0.16385143995285034, 0.05875817686319351, 0.30909696221351624, 0.12414874136447906, -0.06647616624832153, -0.44866737723350525, -0.19131672382354736, 0.33294975757598877, -0.6433683633804321, 0.05477052554488182, 0.043897807598114014, 0.012772157788276672, 0.14372003078460693, 0.2673214375972748, 0.03969213739037514, 0.09759943187236786, 0.05768847092986107, -0.25976717472076416, -0.28586599230766296, 0.045848648995161057, -0.27493080496788025, 0.45403382182121277, 0.04700889438390732, 0.6345775127410889, -0.09759476780891418, 0.07980100810527802, -0.5245903730392456, 0.09978757053613663, -0.03953581675887108, 0.06424972414970398, 0.3228788375854492, -0.10050604492425919, 0.16639624536037445, -0.09494911134243011, 0.24865418672561646, 0.36440491676330566, -0.17545706033706665, -0.3016635477542877, 0.05048813298344612, 0.06887809187173843, -0.051089636981487274, -0.27859047055244446, 0.1667230725288391, 0.12785130739212036, -0.30522891879081726, -0.10709058493375778, 0.39438101649284363, -0.23583972454071045, -0.0032677724957466125, -0.31513944268226624, -0.24127845466136932, -0.14049646258354187, 0.048328742384910583, -0.08160681277513504, -0.03992023319005966, 0.15852195024490356, 0.2039996087551117, 0.03815508633852005, -0.18021830916404724, -0.253313273191452, 0.17286896705627441, 0.30931949615478516, 0.06477732956409454, -0.02066802978515625, -0.01474219560623169, 0.12004886567592621, -0.061668071895837784, 0.24782662093639374, 0.2617858052253723, -0.3562053143978119, -0.274519681930542, 0.15097399055957794, 0.20812422037124634, 0.3290046751499176, -0.2977997064590454, 0.20645025372505188, 0.022181525826454163, 0.0545775480568409, 0.28042086958885193, 0.19109243154525757, 0.31009700894355774, 0.05276279151439667, -0.2599547505378723, -0.03952670097351074, 0.31540828943252563, 0.06239689514040947, -0.14964239299297333, 0.3641567528247833, 0.22823606431484222, 0.08405180275440216, 0.23474420607089996, 0.4119803011417389, 0.07613173127174377, 0.1389581710100174, -0.32638752460479736, 0.053102850914001465, -0.17098930478096008, -0.026243116706609726, 0.1214742362499237, -0.2642742693424225, 0.19581317901611328, 0.5351847410202026, 0.1461140513420105, 0.24652475118637085, 0.1086658239364624, 0.33627304434776306, 0.2792017459869385, -0.1404736191034317, -0.17479825019836426, 0.2743934690952301, 0.13182666897773743, 0.20144109427928925, -0.2931216061115265, -0.2197926640510559, -0.2554781138896942, -0.04936704412102699, -0.08989426493644714, -0.3889848589897156, 0.33684179186820984, -0.07199478149414062, -0.07571755349636078, -0.15637513995170593, 0.1403025984764099, 0.07142990827560425, 0.32831233739852905, -0.04600299894809723, 0.2574593126773834, 0.4039236307144165, -0.07236561179161072, 0.18319380283355713, 0.33339881896972656, 0.3042260706424713, -0.035748764872550964, 0.29106318950653076, 0.15230080485343933, -0.20151399075984955, -0.11726370453834534, -0.019730495288968086, 0.019934089854359627, -0.05677056312561035, -0.2923920154571533, 0.27112314105033875, 0.23803991079330444, -0.2508755922317505, -0.21850617229938507, 0.34292513132095337, 0.2531803548336029, -0.07805612683296204, 0.03281868249177933, 0.014928532764315605, -0.054723504930734634, -0.41593489050865173, -0.026677139103412628, -0.17185702919960022, -0.15382951498031616, -0.03341799974441528, -0.24809233844280243, -0.03657349571585655, 0.03325152397155762, 0.12097547948360443, -0.07280920445919037, 0.310751348733902, 0.16496236622333527, 0.10651741921901703, -0.08702252805233002, -0.48970794677734375, -0.5134314298629761, 0.1573447734117508, -0.2637051045894623, -0.31576988101005554, -0.11614087224006653, 0.3855239152908325, 0.2705494165420532, 0.15316537022590637, 0.4337626099586487, 0.3337959945201874, 0.17626678943634033, 0.11460808664560318, -0.46878015995025635, 0.31321942806243896, 0.22659297287464142, 0.218014195561409, 0.06546371430158615, -0.28198522329330444, -0.011538084596395493, 0.06803435832262039, 0.243818998336792, -0.07444150745868683, 0.13466353714466095, -0.26639246940612793, -0.05815551429986954, 0.5262022018432617, 0.09535668790340424, 0.3875484764575958, -0.2538570463657379, -0.2756924033164978, -0.11057989299297333, -0.01922563835978508, -0.15794341266155243, 0.1518407166004181, 0.4202350974082947, 0.3806259036064148, 0.0031872382387518883, -0.0770004540681839, 0.07435119152069092, 0.3218861520290375, 0.07724103331565857, 0.029216229915618896, -0.02389116957783699, 0.22137929499149323, 0.05906020849943161, -0.03865852952003479, -0.11224374175071716, 0.09786347299814224, -0.11757571995258331, -0.01749478094279766, -0.21773402392864227, -0.43413007259368896, 0.4414486587047577, -0.021799828857183456, -0.13348150253295898, -0.058106984943151474, 0.3559035360813141, 0.24182391166687012, 0.2289087176322937, -0.1308080106973648, 0.15114519000053406, 0.06502154469490051, 0.2623722553253174, -0.164161816239357, 0.36629077792167664, 0.17459702491760254, -0.24301834404468536, -0.0383722297847271, 0.20007772743701935, 0.17167487740516663, -0.16127552092075348, -0.13613294064998627, -0.32839590311050415 ]
https://github.com/huggingface/datasets/issues/4075
Add CCAgT dataset
HI, I was waiting to come out in the second version to do the implementation. - Paper: https://dx.doi.org/10.2139/ssrn.4126881 - Data: [Data mendelay](http://doi.org/10.17632/wg4bpm33hj.2)
## Adding a Dataset - **Name:** CCAgT dataset: Images of Cervical Cells with AgNOR Stain Technique - **Description:** The dataset contains 2540 images (1600x1200 where each pixel is 0.111μm×0.111μm) from three different slides, having at least one nucleus per image. These images are from fields belonging to a sample cervical slide, colored with silver-stained, a method known as Argyrophilic Nucleolar Organizer Regions (AgNOR). - **Paper:** https://doi.org/10.1109/cbms49503.2020.00110 - **Data:** https://arquivos.ufsc.br/d/373be2177a33426a9e6c/ or https://drive.google.com/drive/u/4/folders/1TBpYCv6S1ydASLauSzcsvO7Wc5O-WUw0 - **Motivation:** This is a unique dataset (because of the stain), for a major health problem, cervical cancer, with real data. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi, this is a public version of the dataset that I have been working on, soon we will have another version of this dataset. But until this new version goes out, I thought I would add this dataset here, if it makes sense for the repository. You can assign the task to me if possible
22
Add CCAgT dataset ## Adding a Dataset - **Name:** CCAgT dataset: Images of Cervical Cells with AgNOR Stain Technique - **Description:** The dataset contains 2540 images (1600x1200 where each pixel is 0.111μm×0.111μm) from three different slides, having at least one nucleus per image. These images are from fields belonging to a sample cervical slide, colored with silver-stained, a method known as Argyrophilic Nucleolar Organizer Regions (AgNOR). - **Paper:** https://doi.org/10.1109/cbms49503.2020.00110 - **Data:** https://arquivos.ufsc.br/d/373be2177a33426a9e6c/ or https://drive.google.com/drive/u/4/folders/1TBpYCv6S1ydASLauSzcsvO7Wc5O-WUw0 - **Motivation:** This is a unique dataset (because of the stain), for a major health problem, cervical cancer, with real data. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi, this is a public version of the dataset that I have been working on, soon we will have another version of this dataset. But until this new version goes out, I thought I would add this dataset here, if it makes sense for the repository. You can assign the task to me if possible HI, I was waiting to come out in the second version to do the implementation. - Paper: https://dx.doi.org/10.2139/ssrn.4126881 - Data: [Data mendelay](http://doi.org/10.17632/wg4bpm33hj.2)
[ -0.10204190015792847, -0.11732438951730728, -0.13777680695056915, -0.19324363768100739, -0.2697647213935852, -0.09367009997367859, 0.36161136627197266, 0.21292153000831604, -0.41891178488731384, 0.28583812713623047, -0.1628483235836029, -0.10723774135112762, 0.02333083376288414, 0.26107320189476013, 0.2212924361228943, 0.03013298474252224, -0.18727543950080872, 0.2303101122379303, -0.11749930679798126, -0.07018075883388519, 0.005012053996324539, 0.15379266440868378, -0.05646596848964691, -0.17804180085659027, -0.25249242782592773, -0.15306735038757324, -0.1706547737121582, 0.22322410345077515, -0.18057525157928467, -0.0981367751955986, 0.035310812294483185, 0.15733473002910614, -0.22822779417037964, 0.1548396348953247, -0.00010275801469106227, -0.15485061705112457, -0.06025303155183792, -0.05352594330906868, 0.1005997508764267, 0.4384704828262329, -0.01855785958468914, -0.14482878148555756, -0.18997223675251007, -0.3300180733203888, -0.1946806013584137, -0.11044822633266449, -0.15329807996749878, 0.1226632297039032, 0.2990562915802002, 0.013278932310640812, 0.3124644160270691, 0.03174639865756035, 0.0032354630529880524, -0.18710903823375702, 0.1419932246208191, -0.13914531469345093, -0.18453329801559448, 0.22092799842357635, 0.37329035997390747, 0.18910503387451172, 0.07539573311805725, 0.6491426825523376, 0.0992322713136673, -0.011105220764875412, -0.013083122670650482, 0.21740280091762543, 0.31848981976509094, -0.2327629029750824, 0.15998385846614838, 0.056366730481386185, 0.3075650632381439, -0.24855414032936096, -0.08809821307659149, -0.2833734452724457, -0.03380889073014259, -0.2867366373538971, -0.110471211373806, 0.03493756800889969, -0.2098814994096756, 0.11086468398571014, -0.23032668232917786, -0.12232522666454315, -0.2707405686378479, 0.05460571497678757, -0.016582287847995758, -0.18714314699172974, -0.20289288461208344, -0.05194362998008728, 0.15257781744003296, 0.1354704648256302, -0.46071624755859375, 0.003167286515235901, -0.019112180918455124, 0.03578103333711624, -0.2404734343290329, -0.3168307840824127, 0.13542675971984863, 0.11342336982488632, 0.45591822266578674, 0.3035827875137329, 0.1316465139389038, -0.06816445291042328, -0.22579477727413177, 0.12321370840072632, -0.15840063989162445, -0.13720935583114624, -0.3739076852798462, -0.3501105010509491, 0.09026838839054108, -0.23676900565624237, 0.06029048189520836, 0.05285076051950455, 0.1723722219467163, -0.3891482651233673, 0.08432662487030029, 0.01171315461397171, 0.03491188958287239, -0.2243453711271286, -0.12037234008312225, 0.00008364580571651459, 0.05734632909297943, 0.17998471856117249, -0.08251345902681351, 0.33722707629203796, 0.37039223313331604, 0.14523077011108398, 0.10247005522251129, -0.09227205812931061, -0.10411041975021362, -0.3024974465370178, -0.2584967315196991, 0.268110990524292, -0.29384323954582214, 0.16043905913829803, 0.15397146344184875, 0.09114457666873932, -0.20068469643592834, -0.07813058793544769, 0.30393287539482117, 0.28908881545066833, -0.03555866330862045, -0.14841896295547485, 0.31698718667030334, 0.217530757188797, 0.02737792208790779, -0.008000426925718784, -0.0384916253387928, -0.1457616686820984, -0.10243809968233109, -0.1842118799686432, 0.08334889262914658, -0.19255700707435608, -0.11692601442337036, 0.2369815856218338, 0.3018776774406433, 0.15433430671691895, -0.25674527883529663, 0.2716727554798126, 0.08302953839302063, 0.11269557476043701, -0.0760694369673729, 0.0334150455892086, -0.19377374649047852, -0.18871377408504486, 0.24215254187583923, 0.501638650894165, -0.2804902195930481, 0.15280850231647491, -0.1305631697177887, 0.04547884315252304, 0.09974677860736847, 0.06922352313995361, 0.17203843593597412, -0.08788155764341354, -0.3061312437057495, 0.0019510239362716675, -0.05965026468038559, 0.1318371444940567, -0.31107622385025024, -0.024174733087420464, -0.2729545831680298, -0.033137477934360504, -0.006521433591842651, -0.05467664822936058, 0.17610180377960205, -0.21828757226467133, -0.2618757486343384, 0.24714292585849762, -0.21688410639762878, 0.057192616164684296, -0.19394797086715698, -0.16130004823207855, -0.1589992642402649, 0.04700630530714989, -0.000949520617723465, -0.09880856424570084, 0.16841450333595276, -0.45576179027557373, 0.08967330306768417, -0.3875928223133087, 0.2786986827850342, -0.03628711402416229, 0.40436244010925293, -0.1382012665271759, -0.019899902865290642, -0.059327684342861176, -0.5442032814025879, -0.05890344828367233, -0.09577271342277527, 0.3151014447212219, -0.2935217022895813, -0.16194286942481995, -0.2240733504295349, -0.3065529465675354, -0.0137464739382267, -0.15000444650650024, 0.2564620077610016, 0.4937887191772461, 0.14636754989624023, 0.006561458110809326, -0.03503524884581566, 0.39097023010253906, -0.22623293101787567, -0.059376060962677, -0.03518254682421684, 0.33242079615592957, -0.1745523363351822, -0.20665471255779266, 0.2227449119091034, 0.1689218282699585, -0.14792591333389282, -0.23751835525035858, 0.05172957107424736, 0.2535809576511383, -0.40732401609420776, 0.1861875057220459, 0.17045307159423828, 0.25616514682769775, 0.018568431958556175, -0.55991131067276, -0.13883456587791443, -0.3467133045196533, 0.22891806066036224, 0.11387068778276443, -0.07273382693529129, 0.2848314046859741, 0.14007453620433807, -0.05679652839899063, 0.04633382707834244, 0.07092927396297455, 0.2172514945268631, -0.13911274075508118, 0.09557923674583435, -0.32465413212776184, 0.02180112712085247, 0.1139231026172638, 0.21169765293598175, -0.2535446286201477, -0.47347792983055115, 0.37969887256622314, -0.03295925632119179, 0.06020696833729744, 0.015268232673406601, 0.09518197178840637, -0.010555148124694824, 0.11626536399126053, 0.014608304016292095, 0.11739198863506317, 0.10476694256067276, 0.37522611021995544, -0.2213531732559204, 0.0031844712793827057, -0.04571114480495453, -0.08487730473279953, 0.06092425808310509, -0.03031948208808899, 0.09437238425016403, 0.1304963380098343, 0.18650174140930176, 0.0992140993475914, -0.41459921002388, -0.3022555708885193, -0.010444323532283306, 0.16990435123443604, -0.09214062988758087, -0.011344845406711102, 0.0752221941947937, -0.3418770134449005, -0.022316619753837585, 0.16953127086162567, 0.221671000123024, 0.0036587119102478027, 0.1421300172805786, 0.013695977628231049, -0.2163076102733612, 0.1994117796421051, -0.35731062293052673, 0.557698667049408, -0.038849733769893646, 0.10618212074041367, -0.2633499801158905, 0.13107970356941223, 0.05805652216076851, 0.32189443707466125, 0.059985123574733734, 0.2155066877603531, 0.7741838097572327, -0.08668540418148041, 0.42999762296676636, -0.1170877143740654, -0.4672979414463043, 0.1656397581100464, -0.22702498733997345, -0.13958072662353516, -0.04928728938102722, 0.15417832136154175, -0.16946272552013397, -0.18716904520988464, 0.17916736006736755, -0.3185681700706482, -0.17215801775455475, -0.08753800392150879, -0.2405710518360138, -0.13916683197021484, -0.3096909523010254, -0.34165269136428833, -0.2892135977745056, -0.18571220338344574, -0.13281185925006866, 0.15289857983589172, 0.3643572926521301, 0.3685462176799774, 0.08204448223114014, 0.033111054450273514, -0.07612460106611252, 0.1815272867679596, -0.22960001230239868, -0.14928609132766724, 0.19285310804843903, -0.3933423161506653, -0.25091883540153503, -0.24884168803691864, -0.23185689747333527, 0.00048082321882247925, 0.020039845257997513, -0.25562164187431335, -0.27468428015708923, -0.2603168189525604, -0.13294292986392975, 0.24153870344161987, -0.23601163923740387, 0.31176650524139404, -0.09077365696430206, -0.3441893756389618, -0.2128032147884369, -0.04944191128015518, 0.039535705000162125, 0.06982478499412537, -0.19911688566207886, 0.01882081851363182, -0.1134144589304924, 0.10216358304023743, 0.08193839341402054, 0.0547148622572422, -0.3306894600391388, 0.35497477650642395, -0.054502956569194794, 0.39397478103637695, -0.2616415023803711, -0.4953027069568634, 0.3266974091529846, 0.18460342288017273, 0.16894949972629547, 0.2312055379152298, 0.05765156075358391, -0.20820355415344238, -0.1746579259634018, 0.03565415367484093, -0.1671111285686493, -0.26804259419441223, 0.04255673289299011, 0.18938381969928741, 0.11098259687423706, -0.08986310660839081, -0.4256919026374817, -0.1549796164035797, -0.0007515456527471542, -0.025571536272764206, 0.5248098969459534, 0.08012838661670685, -0.14060628414154053, -0.47959306836128235, 0.3893123269081116, -0.5107872486114502, 0.2926044464111328, 0.20031321048736572, -0.07187625020742416, -0.2629992663860321, 0.1181812658905983, 0.09193648397922516, -0.08614616096019745, 0.31860971450805664, -0.4758889079093933, 0.14716662466526031, 0.36048850417137146, -0.10150730609893799, 0.0922190397977829, 0.2680124044418335, -0.2091096043586731, -0.19847531616687775, 0.4973301291465759, 0.15965388715267181, -0.3865008056163788, -0.1028728187084198, 0.2922743856906891, 0.16655094921588898, -0.04188442975282669, 0.03875436261296272, 0.0780537873506546, -0.19443663954734802, -0.23719336092472076, 0.2411712408065796, 0.10339131206274033, 0.2796861231327057, 0.26011335849761963, -0.24382445216178894, 0.046659864485263824, -0.23442742228507996, 0.2237551212310791, 0.29415369033813477, 0.12438073754310608, 0.2638322114944458, 0.16352210938930511, 0.21536679565906525, 0.6336702108383179, 0.11691556125879288, 0.23686592280864716, -0.16478495299816132, 0.008175745606422424, 0.2319585680961609, -0.1990392804145813, 0.26063892245292664, 0.319796621799469, 0.1652759164571762, 0.04515993595123291, -0.19387967884540558, 0.1858295202255249, -0.02230145037174225, 0.3077775835990906, 0.06290782988071442, -0.08457452058792114, -0.164920374751091, -0.349157452583313, 0.17137517035007477, -0.017156915739178658, -0.18704910576343536, 0.28093209862709045, 0.3457239866256714, -0.15719085931777954, 0.06700390577316284, 0.06534121930599213, 1.141264796257019, -0.0529228150844574, -0.0997229665517807, 0.19694018363952637, 0.13240113854408264, 0.13004633784294128, 0.17818862199783325, -0.057602010667324066, -0.1265508383512497, -0.004648131318390369, 0.06739326566457748, -0.16778109967708588, 0.12910237908363342, -0.028721190989017487, -0.09756509214639664, -0.07653190940618515, 0.3156830072402954, 0.21253198385238647, -0.006473973393440247, 0.2322787642478943, 0.19656670093536377, -0.40372127294540405, -0.03589329868555069, 0.2794521450996399, 0.2675456404685974, 0.08029177784919739, -0.015888448804616928, -0.08717796951532364, -0.1421663463115692, -0.0819779559969902, -0.08433158695697784, 0.068051777780056, -0.2137681096792221, -0.07443361729383469, -0.12791672348976135, -0.5934009552001953, 0.16217046976089478, 0.09940535575151443, 0.06546110659837723, -0.09711353480815887, -0.1493077576160431, 0.18757642805576324, -0.08969397097826004, 0.0670861005783081, -0.01259137224406004, -0.15736670792102814, 0.2675592303276062, -0.07986870408058167, -0.12974971532821655, 0.25037479400634766, 0.16171978414058685, -0.3305020332336426, -0.023418739438056946, 0.04695502296090126, 0.306780070066452, -0.11155664920806885, 0.005359007976949215, 0.23633012175559998, -0.19223259389400482, -0.21724765002727509, 0.26022857427597046, 0.08699600398540497, 0.03346819430589676, 0.30868324637413025, 0.08632755279541016, -0.14699134230613708, 0.03013656847178936, -0.05526355654001236, 0.1702692210674286, 0.13986682891845703, 0.2680491507053375, 0.025419611483812332, -0.15307727456092834, -0.41346800327301025, -0.2859480082988739, 0.291046679019928, -0.6957043409347534, 0.029445502907037735, 0.014208776876330376, -0.060342952609062195, 0.1935584396123886, 0.2797062397003174, 0.036205653101205826, 0.13324984908103943, 0.003969721496105194, -0.26456254720687866, -0.3194531202316284, 0.006270319223403931, -0.36901992559432983, 0.44146573543548584, 0.10045094043016434, 0.6780285239219666, -0.12608623504638672, 0.08102993667125702, -0.5447442531585693, 0.07069053500890732, -0.05180109664797783, 0.11630714684724808, 0.2620060443878174, -0.1794281303882599, 0.16399487853050232, -0.053565651178359985, 0.2804177403450012, 0.4425742030143738, -0.15696632862091064, -0.32100221514701843, 0.07341854274272919, 0.0509861558675766, -0.023698288947343826, -0.32423481345176697, 0.2026282101869583, 0.13792553544044495, -0.4118187427520752, -0.0310935378074646, 0.38582754135131836, -0.26616907119750977, 0.017210856080055237, -0.3691179156303406, -0.2645988166332245, -0.13917475938796997, 0.03342133015394211, -0.13029903173446655, 0.045754991471767426, 0.09791893512010574, 0.19244681298732758, 0.03905445709824562, -0.24202586710453033, -0.2546404004096985, 0.15295784175395966, 0.31621623039245605, 0.04329243302345276, -0.020721983164548874, 0.05219512805342674, 0.1068466305732727, -0.0670255571603775, 0.20164605975151062, 0.3532582223415375, -0.3723096251487732, -0.2627023160457611, 0.07327605038881302, 0.19325315952301025, 0.35744577646255493, -0.3384094536304474, 0.19866321980953217, 0.011483553797006607, 0.07132703810930252, 0.2896149754524231, 0.1704525202512741, 0.3329852521419525, -0.012610487639904022, -0.2512438893318176, -0.01558315847069025, 0.28264471888542175, 0.06459720432758331, -0.24615424871444702, 0.4273662567138672, 0.14452746510505676, 0.07445670664310455, 0.3228166103363037, 0.3771955072879791, 0.12968958914279938, 0.192290261387825, -0.25302547216415405, 0.09332727640867233, -0.13540372252464294, -0.010778333991765976, 0.03505244478583336, -0.21910779178142548, 0.1534421741962433, 0.5153640508651733, 0.196100115776062, 0.270460844039917, 0.08578985929489136, 0.24859285354614258, 0.3211100101470947, -0.14464491605758667, -0.15181034803390503, 0.34682995080947876, 0.03676441311836243, 0.1624467968940735, -0.30654874444007874, -0.21777066588401794, -0.20791278779506683, -0.04720957949757576, -0.09097258746623993, -0.287630558013916, 0.3762138783931732, -0.1251274049282074, -0.036105185747146606, -0.21685977280139923, 0.07495762407779694, 0.03221701830625534, 0.37348341941833496, -0.032090164721012115, 0.33292287588119507, 0.4062687158584595, -0.10579957067966461, 0.17751623690128326, 0.36392298340797424, 0.2657037377357483, -0.019712265580892563, 0.36116477847099304, 0.08414653688669205, -0.11004121601581573, -0.1223301887512207, -0.08640876412391663, 0.03582356870174408, -0.005809858441352844, -0.24329198896884918, 0.3224790394306183, 0.23440995812416077, -0.28646355867385864, -0.1999102532863617, 0.37434661388397217, 0.27549445629119873, -0.08392038941383362, 0.05748497322201729, 0.010269325226545334, -0.07417123764753342, -0.3119831383228302, -0.025383077561855316, -0.13910529017448425, -0.16012637317180634, -0.07533292472362518, -0.25448065996170044, -0.03917107731103897, -0.021604035049676895, 0.12589366734027863, -0.07761122286319733, 0.3672521114349365, 0.08354853093624115, 0.041538774967193604, -0.040531713515520096, -0.5000959038734436, -0.5562721490859985, 0.19823333621025085, -0.1650928407907486, -0.3649516999721527, -0.11468234658241272, 0.3674124479293823, 0.2846054434776306, 0.11442387104034424, 0.4024021625518799, 0.29215946793556213, 0.27352795004844666, 0.07414306700229645, -0.47773733735084534, 0.3329215347766876, 0.16401167213916779, 0.14417758584022522, 0.09051834046840668, -0.3116317093372345, -0.04869627580046654, 0.07981903105974197, 0.2926391661167145, -0.018996115773916245, 0.12500403821468353, -0.26834940910339355, -0.03070846199989319, 0.5041121244430542, 0.12418457120656967, 0.3703126609325409, -0.2672886848449707, -0.27814438939094543, -0.08873344957828522, -0.03542840853333473, -0.2011566460132599, 0.15547016263008118, 0.37424442172050476, 0.38127607107162476, 0.04929506778717041, -0.02874460443854332, 0.0649353489279747, 0.26518404483795166, 0.13586729764938354, 0.0049148923717439175, -0.023615021258592606, 0.24591484665870667, -0.01642114669084549, -0.03615310788154602, -0.13878487050533295, 0.1273851990699768, -0.0874948501586914, -0.019754407927393913, -0.2531127631664276, -0.45100441575050354, 0.43152081966400146, -0.04061393812298775, -0.10203559696674347, -0.025133509188890457, 0.32671159505844116, 0.2503392696380615, 0.16449540853500366, -0.22329536080360413, 0.060366056859493256, 0.0826299861073494, 0.2257409691810608, -0.14839494228363037, 0.35510963201522827, 0.1755129098892212, -0.2637319266796112, -0.03517527878284454, 0.20462681353092194, 0.1876715123653412, -0.1740231215953827, -0.0914294570684433, -0.285764217376709 ]
https://github.com/huggingface/datasets/issues/4074
Error in google/xtreme_s dataset card
Hi @wranai, thanks for reporting. Please note that the information about language families and groups is taken form the original paper: [XTREME-S: Evaluating Cross-lingual Speech Representations](https://arxiv.org/abs/2203.10752). If that information is wrong, feel free to contact the paper's authors to suggest that correction. Just note that Hungarian language (contrary to their geographically surrounding neighbor languages) belongs to the Uralic (languages) family, together with (among others) Finnish, Estonian, some other languages in northern regions of Scandinavia...
**Link:** https://huggingface.co/datasets/google/xtreme_s Not a big deal but Hungarian is considered an Eastern European language, together with Serbian, Slovak, Slovenian (all correctly categorized; Slovenia is mostly to the West of Hungary, by the way).
74
Error in google/xtreme_s dataset card **Link:** https://huggingface.co/datasets/google/xtreme_s Not a big deal but Hungarian is considered an Eastern European language, together with Serbian, Slovak, Slovenian (all correctly categorized; Slovenia is mostly to the West of Hungary, by the way). Hi @wranai, thanks for reporting. Please note that the information about language families and groups is taken form the original paper: [XTREME-S: Evaluating Cross-lingual Speech Representations](https://arxiv.org/abs/2203.10752). If that information is wrong, feel free to contact the paper's authors to suggest that correction. Just note that Hungarian language (contrary to their geographically surrounding neighbor languages) belongs to the Uralic (languages) family, together with (among others) Finnish, Estonian, some other languages in northern regions of Scandinavia...
[ -0.05673408880829811, -0.46295520663261414, -0.06846465170383453, 0.010616257786750793, 0.2992709279060364, -0.04197973757982254, 0.20069658756256104, 0.04646819457411766, 0.18830686807632446, 0.022722885012626648, -0.19151824712753296, 0.14763176441192627, -0.19940344989299774, -0.30606210231781006, -0.14592912793159485, -0.01069493219256401, 0.38470175862312317, -0.24668601155281067, 0.30475229024887085, -0.3351905345916748, 0.0010559409856796265, 0.3198508620262146, -0.21553458273410797, 0.07375942915678024, -0.03898251801729202, 0.11105098575353622, 0.06580372899770737, -0.15412387251853943, -0.29896241426467896, -0.2490675002336502, 0.08848921209573746, -0.23007073998451233, -0.09628050774335861, 0.6058349013328552, -0.00010358106374042109, -0.15597952902317047, 0.19878065586090088, -0.1274918168783188, 0.09619654715061188, -0.26074689626693726, 0.20874133706092834, -0.04798657447099686, -0.30880993604660034, -0.13919878005981445, -0.08177539706230164, -0.32556360960006714, 0.031509190797805786, -0.27504539489746094, 0.09847696870565414, 0.2760697901248932, 0.23770202696323395, -0.021386124193668365, -0.15425051748752594, -0.002552460879087448, 0.4778096079826355, 0.27522069215774536, -0.008654221892356873, 0.23386360704898834, 0.4876841604709625, 0.24453794956207275, -0.0749102458357811, 0.23695099353790283, 0.01080395095050335, -0.15507005155086517, -0.06187548488378525, -0.08479440212249756, -0.2997770607471466, -0.33010053634643555, 0.006209477782249451, 0.354507178068161, 0.45052602887153625, -0.08582410961389542, -0.08288165181875229, 0.10270532220602036, -0.2170049399137497, 0.22190527617931366, 0.4266399145126343, 0.32478398084640503, -0.13074854016304016, 0.1129361242055893, 0.3258146345615387, 0.21380826830863953, 0.2077692747116089, 0.06755834817886353, -0.12158077210187912, 0.6447771787643433, -0.1701374650001526, 0.10738272219896317, 0.02787654846906662, -0.21402983367443085, 0.288429319858551, 0.04309948533773422, 0.07768164575099945, 0.26417744159698486, -0.6719086766242981, -0.0754837766289711, 0.10449717938899994, 0.06852548569440842, 0.09585414081811905, -0.28305697441101074, -0.12425537407398224, 0.02852637879550457, 0.06978178769350052, 0.21142998337745667, 0.06691841781139374, 0.11562386155128479, -0.10979386419057846, -0.1920836716890335, 0.10481245070695877, -0.20120562613010406, 0.18156485259532928, 0.032506223767995834, -0.2086135447025299, -0.5238330364227295, 0.042496826499700546, 0.3065260648727417, -0.15550877153873444, 0.01193106546998024, 0.015765013173222542, 0.1615697741508484, -0.3542952239513397, -0.09247057884931564, -0.041055139154195786, 0.06037038564682007, 0.09065860509872437, 0.3417491614818573, -0.20509986579418182, 0.17764496803283691, -0.141598641872406, -0.33182063698768616, 0.014725223183631897, 0.38735145330429077, -0.4097770154476166, -0.25368624925613403, 0.026197630912065506, 0.46675047278404236, 0.02813723497092724, 0.2532065510749817, 0.38487958908081055, 0.004950974136590958, -0.24236418306827545, -0.24320192635059357, 0.21349558234214783, 0.09916451573371887, -0.028658926486968994, 0.4117588698863983, 0.132112517952919, 0.17155374586582184, -0.2188936471939087, 0.2547498643398285, -0.5591270327568054, -0.24595318734645844, -0.13285113871097565, 0.21608205139636993, -0.09167596697807312, 0.21927250921726227, -0.37274426221847534, 0.1023404598236084, 0.18379315733909607, 0.19732514023780823, 0.37102171778678894, -0.20742978155612946, 0.16459867358207703, -0.04601634293794632, 0.08025059849023819, -0.11151143908500671, -0.35877546668052673, 0.1019710898399353, -0.44171813130378723, 0.07113835960626602, 0.44195836782455444, 0.497358500957489, -0.1456863433122635, 0.12107755243778229, -0.23399226367473602, 0.8719733953475952, 0.29357442259788513, 0.013504058122634888, -0.3539137542247772, -0.04296526685357094, -0.17030620574951172, 0.009499290958046913, -0.08295994251966476, -0.15238186717033386, 0.27407050132751465, 0.004214453045278788, 0.15746039152145386, -0.12276619672775269, 0.32612064480781555, 0.27395814657211304, -0.3235628604888916, -0.2131616175174713, 0.4994533658027649, 0.12946470081806183, 0.13140958547592163, -0.3435738980770111, 0.25220414996147156, 0.09523903578519821, 0.3518514037132263, -0.12715983390808105, -0.03998783975839615, 0.4571623206138611, 0.5285032987594604, -0.28361690044403076, 0.2297188937664032, 0.01862877607345581, 0.286500483751297, 0.07496684789657593, 0.09445495903491974, 0.35302215814590454, 0.04059242457151413, -0.1247357428073883, -0.17242875695228577, -0.23821459710597992, -0.1303829699754715, 0.11415378749370575, 0.26819053292274475, -0.0022296756505966187, -0.22175760567188263, -0.02668437361717224, 0.14329476654529572, 0.15585699677467346, -0.25830674171447754, -0.19564604759216309, -0.10087829828262329, 0.1803508996963501, -0.3214716613292694, -0.14672264456748962, -0.15040825307369232, -0.13293755054473877, 0.1954694390296936, -0.12346089631319046, -0.1999586522579193, 0.31103232502937317, 0.18821895122528076, 0.01814703643321991, 0.018587205559015274, 0.058929115533828735, 0.03443180024623871, -0.7326735854148865, 0.0869416892528534, -0.07075953483581543, 0.10941817611455917, 0.1914377212524414, 0.2409181296825409, -0.05848036706447601, 0.2079637348651886, -0.12647181749343872, -0.20980404317378998, 0.012970810756087303, 0.20591039955615997, 0.11600436270236969, -0.009971683844923973, 0.10204686224460602, 0.38500475883483887, 0.4069203734397888, -0.12622225284576416, 0.03403964638710022, -0.43117383122444153, 0.09959442168474197, 0.5276930928230286, -0.10018497705459595, 0.038064856082201004, 0.16476354002952576, -0.2500956058502197, -0.07913395017385483, 0.11807142943143845, 0.12324805557727814, 0.17549949884414673, 0.005321088247001171, 0.32063958048820496, -0.09130226075649261, 0.19920004904270172, -0.05732410028576851, -0.0007493048906326294, 0.1780511438846588, -0.1940915584564209, 0.056556444615125656, 0.1982073187828064, 0.12604492902755737, -0.3240170180797577, 0.17861448228359222, 0.11601840704679489, 0.03826894238591194, -0.43443700671195984, 0.004370380192995071, -0.138530895113945, 0.2748110592365265, -0.22227361798286438, -0.24057716131210327, -0.4742336869239807, -0.14018553495407104, 0.1857997328042984, -0.22386372089385986, 0.04178094491362572, 0.15193431079387665, 0.3720065653324127, 0.0571461021900177, -0.044319041073322296, 0.057365238666534424, -0.05058402940630913, -0.329236775636673, -0.031048215925693512, 0.17372755706310272, -0.19678600132465363, 0.2050183266401291, -0.09251733124256134, -0.43081051111221313, -0.10976505279541016, -0.08619676530361176, -0.2041490077972412, 0.23886843025684357, -0.4178209900856018, -0.07628577202558517, 0.08634257316589355, 0.07699410617351532, -0.39689338207244873, -0.10352567583322525, 0.22831128537654877, -0.14412333071231842, -0.13621529936790466, 0.26796582341194153, -0.1397881805896759, -0.3147567808628082, -0.19590771198272705, -0.19230970740318298, -0.598940908908844, -0.12955215573310852, -0.23631857335567474, -0.2199600785970688, 0.05758290737867355, -0.37498632073402405, -0.11327456682920456, -0.14622534811496735, -0.05779663845896721, 0.04051448404788971, -0.4364069104194641, -0.5088790059089661, 0.3715692460536957, -0.17694398760795593, -0.49480220675468445, 0.27741581201553345, 0.1839919090270996, 0.04663613438606262, 0.023355569690465927, -0.36432379484176636, -0.1275966912508011, 0.029421508312225342, -0.12466301023960114, 0.15815913677215576, 0.022337745875120163, 0.1962708979845047, -0.14701059460639954, -0.09861394017934799, -0.18936708569526672, 0.06502828001976013, -0.05174409598112106, 0.12336939573287964, 0.41465193033218384, -0.23130303621292114, -0.02719855308532715, 0.31611692905426025, 0.5360466837882996, 0.10707058012485504, 0.030070515349507332, 0.20295237004756927, 0.07277530431747437, 0.1372433304786682, -0.14144575595855713, -0.1552353948354721, 0.4829767048358917, -0.13655105233192444, -0.05486011505126953, 0.1994578242301941, -0.129533052444458, -0.05864811688661575, 0.08066490292549133, -0.008822701871395111, -0.13539475202560425, -0.27836138010025024, 0.26234540343284607, 0.14642482995986938, 0.3343704342842102, -0.03784099966287613, -0.13157087564468384, -0.2204868644475937, -0.03869067132472992, 0.42042776942253113, 0.23905523121356964, -0.1509810984134674, 0.053004175424575806, -0.1825721114873886, -0.3058907687664032, -0.18291881680488586, 0.100727878510952, 0.01788295805454254, 0.20251062512397766, -0.01513698324561119, -0.14345452189445496, 0.12388934195041656, -0.07375947386026382, 0.23536673188209534, -0.09436602890491486, 0.09781790524721146, 0.23841121792793274, 0.3646808862686157, -0.2432495653629303, -0.24374046921730042, -0.23582501709461212, -0.47312021255493164, 0.44385209679603577, -0.11601243913173676, -0.17061398923397064, -0.10405828803777695, -0.2366105318069458, 0.2713741660118103, -0.1779199242591858, -0.17723916471004486, -0.046310413628816605, 0.02212141454219818, -0.0936184674501419, -0.06548195332288742, 0.2350270003080368, -0.04052858054637909, -0.11355586349964142, 0.21455569565296173, 0.409809410572052, 0.15748468041419983, 0.18131180107593536, 0.05202265456318855, 0.4167962968349457, 0.023481929674744606, -0.2216453105211258, -0.11167800426483154, 0.4664830267429352, -0.016928648576140404, 0.5704010725021362, 0.12156613171100616, 0.10180395096540451, 0.19895213842391968, -0.46780329942703247, 0.12110292911529541, 0.06449476629495621, -0.17430558800697327, -0.02853912115097046, -0.04502319544553757, 0.14615628123283386, -0.01811571791768074, 0.26314404606819153, 0.4611555337905884, 0.2077753096818924, -0.005713046528398991, 0.08809029310941696, 0.16253608465194702, 0.23613257706165314, -0.21399444341659546, -0.0794658362865448, 0.3056722581386566, -0.10777042806148529, -0.0026952307671308517, 0.15454797446727753, 1.0275068283081055, 0.2806142568588257, -0.09135936200618744, -0.05160406231880188, 0.301841139793396, -0.2559989392757416, -0.37895214557647705, -0.12572987377643585, -0.11987785995006561, -0.13151118159294128, -0.155238077044487, 0.044500429183244705, 0.1694909632205963, 0.1803588718175888, -0.3310525417327881, -0.15158778429031372, -0.1847260445356369, 0.2844342291355133, -0.02960682101547718, -0.21832509338855743, -0.006900003179907799, -0.06214970722794533, 0.0569983571767807, 0.2848127782344818, -0.1063888818025589, 0.04871048033237457, 0.2085176408290863, 0.0759192705154419, -0.4597867429256439, -0.3077595829963684, -0.6915442943572998, 0.008495502173900604, -0.11811839789152145, -0.1932031512260437, -0.03296103700995445, -0.5424508452415466, 0.5319608449935913, -0.3846268355846405, 0.4838584065437317, 0.10331094264984131, -0.03782554715871811, 0.2168244868516922, 0.5544175505638123, 0.028205128386616707, 0.2909614145755768, -0.09684909880161285, -0.04431374371051788, -0.14784502983093262, -0.20898103713989258, 0.3138948082923889, -0.19676938652992249, 0.05454456806182861, -0.07081649452447891, -0.2737659215927124, 0.13484522700309753, -0.17714545130729675, -0.11800353229045868, 0.15698152780532837, 0.1629427671432495, -0.052631549537181854, 0.1870977133512497, -0.023354023694992065, -0.10446956753730774, 0.0924798771739006, -0.3019973337650299, -0.028295718133449554, -0.20476721227169037, 0.0016780421137809753, 0.17209714651107788, 0.2404555082321167, 0.1445448398590088, 0.21243314445018768, -0.2355192005634308, -0.24900570511817932, -0.07576282322406769, 0.24988697469234467, -0.3407699465751648, -0.33882635831832886, -0.5240169167518616, -0.17395393550395966, -0.05425463244318962, 0.19432708621025085, 0.3050651550292969, 0.11918902397155762, -0.19631502032279968, -0.4873107075691223, -0.013556797988712788, 0.04360088333487511, -0.1442551612854004, -0.2620464563369751, -0.011205779388546944, 0.06457266211509705, 0.16311483085155487, -0.25000128149986267, -0.3932229280471802, -0.06211736053228378, -0.11623747646808624, 0.3137422800064087, -0.0835142731666565, -0.04288437217473984, 0.14651577174663544, -0.22928102314472198, 0.17505128681659698, -0.046569935977458954, -0.009771419689059258, -0.24881398677825928, -0.020131532102823257, 0.08393306285142899, 0.23799830675125122, -0.14476151764392853, 0.34389740228652954, -0.08023910969495773, -0.2894626259803772, 0.07816486805677414, -0.01787598989903927, 0.09790956228971481, -0.10071298480033875, 0.3508915305137634, -0.29761022329330444, -0.4043833017349243, -0.09969495236873627, -0.09741872549057007, 0.1416623592376709, 0.1264030635356903, 0.026485558599233627, 0.11147823929786682, 0.2671191990375519, -0.08924034237861633, -0.38816502690315247, 0.3281431198120117, -0.18221409618854523, 0.2019406259059906, 0.12398884445428848, -0.25673341751098633, 0.2497166395187378, -0.04835474491119385, 0.3818817734718323, 0.20203782618045807, -0.2271539270877838, -0.09623308479785919, 0.2649141848087311, 0.22733977437019348, -0.3391273021697998, -0.09256717562675476, 0.1889808028936386, 0.12859922647476196, 0.1398785561323166, 0.06825216859579086, 0.36251911520957947, 0.0041305795311927795, 0.4078722596168518, -0.08054207265377045, 0.4551570415496826, 0.04110081493854523, 0.12104670703411102, 0.38628771901130676, 0.009006340056657791, 0.33593136072158813, 0.06963226944208145, -0.023321058601140976, 0.147602379322052, 0.22567860782146454, -0.10460347682237625, 0.25405746698379517, 0.3521769344806671, 0.15923543274402618, 0.15615804493427277, -0.2539310157299042, 0.20941808819770813, -0.028387397527694702, -0.08409540355205536, -0.028604760766029358, 0.1970539093017578, 0.06442758440971375, 0.013882730156183243, -0.41791677474975586, -0.12505203485488892, 0.28731757402420044, -0.12202060967683792, 0.06637191772460938, -0.003865499049425125, 0.06438513845205307, -0.27050450444221497, -0.11241213977336884, -0.019779909402132034, 0.040123648941516876, 0.1951509714126587, 0.1698319911956787, -0.019191019237041473, -0.19530756771564484, -0.3855348229408264, -0.0057038068771362305, -0.023158259689807892, -0.26178425550460815, 0.3156203329563141, 0.19179667532444, -0.2926437556743622, 0.19652515649795532, 0.2172250896692276, 0.29840487241744995, 0.3064911961555481, -0.10643795132637024, -0.10188829898834229, -0.15409539639949799, 0.020268505439162254, 0.21563683450222015, 0.10593924671411514, 0.20076331496238708, 0.08206191658973694, 0.36550629138946533, 0.1991460919380188, -0.22907865047454834, 0.04552715644240379, 0.22464627027511597, 0.3215612471103668, 0.08981260657310486, 0.10455948114395142, -0.2093847692012787, -0.024723045527935028, -0.555442214012146, 0.0024031102657318115, -0.5022168159484863, 0.28037410974502563, 0.2558123469352722, 0.2577545642852783, 0.11800498515367508, -0.36767083406448364, 0.1395769864320755, 0.10569892823696136, 0.49035152792930603, 0.24910075962543488, 0.16931205987930298, 0.1361997127532959, -0.3239681124687195, -0.4564923942089081, 0.3174136281013489, -0.08076128363609314, 0.1362411230802536, -0.1461014747619629, -0.10911682993173599, 0.4625867009162903, 0.2083171308040619, 0.5005554556846619, 0.2771909236907959, -0.6824944019317627, 0.28536051511764526, -0.1349414885044098, 0.05009836331009865, 0.12088973820209503, 0.15991564095020294, -0.1903674602508545, 0.07188734412193298, 0.18559670448303223, -0.12370730191469193, 0.13626256585121155, 0.05689524859189987, -0.3263356685638428, 0.038134243339300156, -0.27906534075737, 0.4189338982105255, -0.04620002955198288, 0.19399592280387878, -0.12478984147310257, 0.01834293268620968, 0.03647986799478531, 0.011308983899652958, -0.125165656208992, 0.09735174477100372, 0.2802525758743286, 0.2926165461540222, -0.10848244279623032, 0.04027741029858589, -0.22730804979801178, -0.09375181049108505, 0.03494095802307129, -0.328107088804245, -0.46451929211616516, 0.36577484011650085, -0.02998621016740799, 0.0482477992773056, 0.1195625513792038, 0.02765975333750248, 0.08570349216461182, 0.03463888168334961, -0.43648719787597656, -0.2544839084148407, 0.1389688402414322, -0.41920140385627747, -0.3327779769897461, -0.3688887059688568, -0.023886501789093018, -0.0851668044924736, -0.11672938615083694, -0.28299853205680847, -0.021149076521396637, 0.10019435733556747, 0.18015071749687195, -0.008165698498487473, -0.18108481168746948, 0.01662873476743698, 0.019855353981256485, -0.10236494243144989, 0.14951848983764648, 0.12729282677173615, -0.012986329384148121, -0.10624964535236359, -0.27714183926582336 ]
https://github.com/huggingface/datasets/issues/4071
Loading issue for xuyeliu/notebookCDG dataset
Hi @Jun-jie-Huang, As the error message says, ".pkl" data files are not supported. If you would like to share your dataset on the Hub, you would need: - either to create a Python loading script, that loads the data in any format - or to transform your data files to one of the supported formats (listed in the error message above: CSV, JSON, Parquet, TXT,...) You can find the details in our docs: - How to share a dataset: https://huggingface.co/docs/datasets/share - How to create a dataset loading script: https://huggingface.co/docs/datasets/dataset_script Feel free to re-open this issue and ping us if you need further assistance.
## Dataset viewer issue for '*xuyeliu/notebookCDG*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/xuyeliu/notebookCDG)* *Couldn't load the xuyeliu/notebookCDG with provided scripts: * ``` from datasets import load_dataset dataset = load_dataset("xuyeliu/notebookCDG/dataset_notebook.pkl") ``` I get an error message as follows: FileNotFoundError: Couldn't find a dataset script at /home/code_documentation/code/xuyeliu/notebookCDG/notebookCDG.py or any data file in the same directory. Couldn't find 'xuyeliu/notebookCDG' on the Hugging Face Hub either: FileNotFoundError: Unable to resolve any data file that matches ['**train*'] in dataset repository xuyeliu/notebookCDG with any supported extension ['csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'zip'] Am I the one who added this dataset ? No
103
Loading issue for xuyeliu/notebookCDG dataset ## Dataset viewer issue for '*xuyeliu/notebookCDG*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/xuyeliu/notebookCDG)* *Couldn't load the xuyeliu/notebookCDG with provided scripts: * ``` from datasets import load_dataset dataset = load_dataset("xuyeliu/notebookCDG/dataset_notebook.pkl") ``` I get an error message as follows: FileNotFoundError: Couldn't find a dataset script at /home/code_documentation/code/xuyeliu/notebookCDG/notebookCDG.py or any data file in the same directory. Couldn't find 'xuyeliu/notebookCDG' on the Hugging Face Hub either: FileNotFoundError: Unable to resolve any data file that matches ['**train*'] in dataset repository xuyeliu/notebookCDG with any supported extension ['csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'zip'] Am I the one who added this dataset ? No Hi @Jun-jie-Huang, As the error message says, ".pkl" data files are not supported. If you would like to share your dataset on the Hub, you would need: - either to create a Python loading script, that loads the data in any format - or to transform your data files to one of the supported formats (listed in the error message above: CSV, JSON, Parquet, TXT,...) You can find the details in our docs: - How to share a dataset: https://huggingface.co/docs/datasets/share - How to create a dataset loading script: https://huggingface.co/docs/datasets/dataset_script Feel free to re-open this issue and ping us if you need further assistance.
[ -0.10854843258857727, -0.3377099931240082, -0.02971304953098297, 0.30470943450927734, 0.3508042097091675, 0.2135736048221588, 0.0682772845029831, 0.2976684868335724, 0.09327112138271332, 0.04943937808275223, -0.31228023767471313, 0.015116238035261631, 0.035101085901260376, 0.21109804511070251, 0.16110268235206604, 0.12521328032016754, 0.07956664264202118, 0.22874195873737335, -0.18553951382637024, -0.14667633175849915, -0.3156709372997284, 0.11608602106571198, -0.04393317922949791, 0.19572389125823975, -0.2643355429172516, 0.1446409821510315, -0.14087916910648346, 0.2842535376548767, -0.24294351041316986, -0.4762791693210602, 0.38553693890571594, 0.15738387405872345, 0.25871580839157104, 0.4952472746372223, -0.00011559152335394174, 0.03847569227218628, 0.20643499493598938, -0.02349039725959301, -0.33555886149406433, -0.22164152562618256, 0.06731656193733215, -0.25094741582870483, 0.2178320288658142, -0.31143808364868164, -0.19472190737724304, -0.08822634071111679, 0.06552288681268692, -0.10959810018539429, 0.3647710680961609, 0.3798384666442871, 0.2160123884677887, 0.47663846611976624, -0.004689902067184448, -0.19038714468479156, 0.0012145638465881348, -0.10602940618991852, 0.003510875627398491, 0.31876060366630554, 0.4351975917816162, -0.1675134301185608, -0.16122013330459595, 0.1626301109790802, -0.042339690029621124, -0.10253280401229858, 0.42968297004699707, -0.1278449445962906, 0.0708988606929779, -0.4334719777107239, 0.31478655338287354, 0.16354453563690186, 0.46127790212631226, -0.2895442843437195, -0.28329408168792725, -0.17844921350479126, 0.131358802318573, 0.03836031258106232, 0.08020634949207306, 0.1425735354423523, -0.1712341159582138, 0.03050452284514904, -0.18384607136249542, -0.22821921110153198, -0.21068787574768066, 0.09028638154268265, -0.19778433442115784, 0.045145727694034576, -0.0706292912364006, -0.027351759374141693, 0.1641402244567871, -0.1128695011138916, 0.22849294543266296, 0.036230020225048065, -0.1340622752904892, 0.29438072443008423, -0.49509310722351074, 0.06703207641839981, 0.25045087933540344, 0.4693956673145294, 0.12394195050001144, 0.08154205232858658, 0.3452606499195099, 0.015547572635114193, 0.015378150157630444, 0.018902231007814407, 0.18096542358398438, 0.33483803272247314, 0.052759017795324326, 0.061347201466560364, 0.18892988562583923, 0.40669500827789307, 0.17677494883537292, -0.0824209675192833, -0.3206050992012024, -0.29046639800071716, -0.329615980386734, -0.11524196714162827, 0.3300411105155945, -0.1661445051431656, -0.5092275738716125, 0.06356585770845413, 0.4345678687095642, 0.1472245752811432, 0.2140849083662033, 0.6605386137962341, -0.1439339816570282, 0.09258414804935455, -0.036864228546619415, 0.20532549917697906, -0.23982277512550354, -0.26090556383132935, -0.2314056158065796, 0.07120408862829208, -0.1998308151960373, -0.1389339715242386, 0.20621158182621002, -0.2668209671974182, 0.13141220808029175, 0.005521626211702824, 0.2054676115512848, -0.04084638133645058, -0.1904735416173935, -0.03790841996669769, -0.052282534539699554, 0.11865483224391937, 0.014697715640068054, 0.010610396042466164, 0.2279021143913269, 0.002530127763748169, 0.006458587944507599, 0.1413930058479309, -0.20053458213806152, -0.23613813519477844, 0.12783442437648773, 0.1764550656080246, -0.20505397021770477, -0.007344502955675125, -0.160697340965271, -0.07316805422306061, -0.27054864168167114, -0.15050186216831207, -0.08362720161676407, -0.08478537201881409, 0.008408669382333755, -0.2557637393474579, 0.4287257194519043, 0.5233186483383179, -0.04386087507009506, -0.28642481565475464, -0.22516897320747375, -0.24290692806243896, -0.3045908510684967, 0.2551928162574768, -0.14022506773471832, 0.039185307919979095, -0.4929628074169159, -0.050062790513038635, 0.25657424330711365, -0.7323678135871887, -0.6302491426467896, 0.284880667924881, -0.15365898609161377, 0.45756375789642334, 0.10561049729585648, 0.15742236375808716, 0.15035854279994965, -0.19895879924297333, -0.20468497276306152, 0.09631054103374481, -0.04328237473964691, -0.16048380732536316, -0.041873134672641754, -0.15361995995044708, 0.30703049898147583, 0.39450347423553467, 0.21475137770175934, 0.08562934398651123, 0.23783189058303833, -0.036572329699993134, 0.4878823161125183, -0.18615737557411194, -0.0900752991437912, 0.16183866560459137, 0.21537233889102936, 0.1529872566461563, 0.03631509095430374, 0.22723180055618286, -0.5342481732368469, 0.3730945587158203, -0.07404355704784393, 0.04744849354028702, -0.29902660846710205, -0.14732792973518372, -0.38993674516677856, 0.07063334435224533, -0.44570282101631165, -0.2822968661785126, 0.08754347264766693, 0.04015769809484482, 0.06985391676425934, 0.16217593848705292, -0.11604410409927368, 0.4818499684333801, 0.03357861191034317, 0.27922743558883667, -0.4904068112373352, 0.2614690363407135, 0.01833217777311802, 0.14756986498832703, 0.19414769113063812, 0.39814329147338867, 0.07647012174129486, -0.1685897409915924, -0.05128932371735573, 0.3725129961967468, -0.21129931509494781, 0.3105073869228363, 0.07488851249217987, 0.03310166299343109, 0.30215024948120117, -0.5055256485939026, 0.11020214855670929, 0.19765901565551758, 0.14000384509563446, -0.025012195110321045, -0.01886555552482605, 0.18594050407409668, -0.14047476649284363, 0.1453917920589447, 0.30815404653549194, 0.10096708685159683, 0.12457892298698425, -0.008149378001689911, -0.10209812968969345, -0.1546051949262619, 0.3720901608467102, 0.0646580383181572, 0.7252616286277771, 0.07362087070941925, -0.28340792655944824, 0.011456109583377838, 0.01854517310857773, -0.11450189352035522, 0.016094904392957687, 0.00009644031524658203, -0.20433756709098816, 0.10213323682546616, 0.15901076793670654, 0.00990881398320198, 0.020092077553272247, 0.14106443524360657, -0.16014763712882996, 0.16959065198898315, -0.026559997349977493, -0.23870263993740082, -0.055486105382442474, -0.05667932331562042, 0.06515520811080933, 0.25307396054267883, -0.22181804478168488, -0.12460682541131973, -0.29822227358818054, -0.1567407101392746, 0.001266762614250183, 0.23669709265232086, -0.2271512746810913, -0.20937739312648773, -0.11915070563554764, -0.5877385139465332, 0.0751969963312149, -0.035800497978925705, -0.28156578540802, -0.24865326285362244, -0.20427539944648743, 0.14869843423366547, 0.04039217159152031, 0.120490163564682, -0.2176840752363205, 0.20474883913993835, 0.01423654519021511, 0.04819308966398239, -0.1473272144794464, -0.23606856167316437, -0.21988549828529358, 0.05110739544034004, 0.26171204447746277, -0.18369854986667633, 0.27084463834762573, -0.5761732459068298, 0.26482999324798584, -0.4901772141456604, -0.28196069598197937, 0.00015988200902938843, -0.1168731302022934, 0.1897108405828476, -0.12237340211868286, 0.292783260345459, 0.135287344455719, 0.025687575340270996, 0.3408921957015991, 0.0022319890558719635, -0.08461093157529831, 0.16042055189609528, 0.1606738120317459, -0.22690384089946747, 0.09129215776920319, -0.26547515392303467, -0.3465639054775238, -0.4159954786300659, 0.1497717648744583, -0.08593301475048065, 0.07072185724973679, 0.20300045609474182, -0.03463711962103844, -0.02977505326271057, 0.22351068258285522, 0.015520717948675156, -0.014338025823235512, -0.1744767278432846, 0.481080025434494, -0.24690940976142883, -0.5054333209991455, 0.0972767174243927, 0.1093248575925827, 0.2902012765407562, -0.10085746645927429, -0.5223485231399536, 0.19963699579238892, -0.07981620728969574, 0.2584485709667206, 0.16933375597000122, -0.26354390382766724, -0.18050506711006165, -0.09217718988656998, 0.1052553802728653, -0.10072207450866699, -0.004531502723693848, -0.15113192796707153, 0.0025980956852436066, 0.08083054423332214, -0.11813927441835403, 0.3547399044036865, 0.05654081329703331, 0.004657536745071411, 0.21074731647968292, 0.20871558785438538, 0.3613687753677368, -0.13396547734737396, 0.48315781354904175, -0.07037120312452316, -0.5671402215957642, 0.04611410200595856, -0.013732507824897766, -0.06631666421890259, 0.3374977707862854, 0.0918886587023735, 0.23485632240772247, -0.3983256220817566, -0.0583362802863121, -0.32812976837158203, -0.21593593060970306, -0.1819031536579132, -0.19196917116641998, 0.1310989260673523, 0.1021423488855362, 0.22185075283050537, 0.08762112259864807, -0.20239558815956116, 0.23868632316589355, 0.4059845209121704, 0.12311826646327972, 0.03652046620845795, -0.21005383133888245, -0.19193921983242035, -0.6575601696968079, 0.32771915197372437, -0.26386767625808716, 0.22507722675800323, -0.1563786417245865, 0.008464761078357697, 0.04386336728930473, 0.008886122144758701, 0.6836190223693848, -0.03592526167631149, 0.25661501288414, 0.06474356353282928, -0.3215481638908386, -0.4392697215080261, -0.008489955216646194, 0.0880083292722702, -0.05688934028148651, 0.042042866349220276, 0.413004070520401, -0.03405068814754486, -0.05570734292268753, 0.18003752827644348, 0.07567723095417023, -0.2181447595357895, -0.1558627486228943, -0.15500026941299438, -0.23298531770706177, -0.04570756107568741, -0.2523445785045624, -0.23829878866672516, 0.18129558861255646, -0.09617201238870621, 0.059175994247198105, -0.06371435523033142, -0.20951607823371887, 0.3284272253513336, 0.2570587396621704, 0.37138622999191284, 0.030710449442267418, 0.2355422079563141, 0.39982056617736816, 0.2856927514076233, 0.5721495747566223, 0.6266195178031921, -0.08497746288776398, -0.711592972278595, 0.0494464710354805, -0.18208082020282745, -0.13037076592445374, 0.3489314317703247, -0.034884557127952576, -0.09626660495996475, 0.15327338874340057, 0.1071496456861496, -0.26192620396614075, 0.11602841317653656, 0.26061517000198364, 0.18805810809135437, -0.5536988377571106, -0.39779040217399597, 0.30651718378067017, 0.13215309381484985, 0.01764725148677826, -0.11113342642784119, -0.012942545115947723, -0.2369469553232193, 0.04936636984348297, -0.10499510914087296, 0.7552280426025391, -0.1892940253019333, 0.19685344398021698, 0.584798276424408, -0.16968411207199097, 0.14846232533454895, -0.17775332927703857, 0.04720671474933624, -0.4555281102657318, -0.3697478473186493, -0.0881957933306694, 0.003800719976425171, 0.3110719919204712, 0.12261077761650085, -0.039812423288822174, 0.40195339918136597, -0.2579914927482605, 0.2550446093082428, 0.07131576538085938, 0.3057871162891388, -0.20178650319576263, 0.01088365726172924, -0.19810043275356293, 0.1402842253446579, 0.037520382553339005, 0.4244367182254791, -0.2740871012210846, -0.021135639399290085, -0.29022571444511414, -0.11991888284683228, -0.08380410075187683, 0.30626773834228516, -0.2641980051994324, 0.27122825384140015, -0.2232775092124939, -0.5023871064186096, -0.03009638749063015, 0.6815606355667114, 0.29738152027130127, -0.0036198310554027557, -0.30069229006767273, 0.37369096279144287, 0.025495652109384537, -0.21129685640335083, 0.08232572674751282, 0.1462080180644989, 0.24218469858169556, 0.007934805005788803, -0.10010506957769394, 0.13157784938812256, -0.032032500952482224, 0.01197439432144165, -0.01986582577228546, 0.07437826693058014, -0.005172178149223328, -0.18587782979011536, -0.39316004514694214, -0.33525940775871277, 0.06714712083339691, -0.18929117918014526, 0.10213987529277802, -0.1172129362821579, 0.05188216641545296, -0.18893000483512878, 0.037947192788124084, -0.30970120429992676, -0.10980387032032013, 0.25856494903564453, -0.16743934154510498, -0.3222006857395172, 0.47852808237075806, 0.19872990250587463, -0.15233197808265686, -0.16085666418075562, 0.007493533194065094, 0.577136754989624, -0.3465104103088379, -0.005255727097392082, 0.0959174856543541, 0.10399669408798218, -0.13624945282936096, 0.17653636634349823, 0.36533498764038086, -0.17508339881896973, -0.001236841082572937, -0.36581090092658997, -0.21857017278671265, 0.37536150217056274, 0.19391724467277527, 0.13801251351833344, 0.018921837210655212, -0.004188850522041321, 0.17340068519115448, -0.06629513949155807, -0.2786233425140381, 0.06938955932855606, -0.003990093246102333, -0.1224069744348526, 0.3485606014728546, 0.08685111999511719, 0.22831963002681732, -0.13468404114246368, 0.15532974898815155, -0.12250274419784546, -0.2075958102941513, -0.16405439376831055, 0.035915911197662354, 0.12459089607000351, 0.03242979571223259, -0.17751151323318481, -0.05825501307845116, -0.09621619433164597, 0.07386687397956848, -0.2513660788536072, 0.13363400101661682, 0.3723496198654175, 0.1904800832271576, -0.12143641710281372, 0.0527927465736866, 0.06323623657226562, -0.15346036851406097, 0.3264666199684143, -0.04519630968570709, 0.2297629714012146, 0.1286752074956894, 0.012728478759527206, -0.181443989276886, 0.00863233208656311, 0.03200142830610275, 0.1102718859910965, 0.01887374371290207, -0.16140678524971008, 0.35868099331855774, -0.3362104296684265, 0.5178726315498352, 0.24390403926372528, 0.34708747267723083, 0.2620747685432434, -0.32586631178855896, -0.07540499418973923, 0.13522198796272278, 0.18198946118354797, -0.37922796607017517, 0.014110434800386429, 0.08906629681587219, -0.027503106743097305, 0.05977010354399681, 0.1707909107208252, 0.061540525406599045, 0.026554428040981293, -0.037298962473869324, 0.00009327009320259094, 0.45181652903556824, 0.18446239829063416, 0.43721017241477966, 0.4728895425796509, 0.07490798830986023, 0.09941939264535904, 0.09997857362031937, 0.1857186257839203, 0.00007204711437225342, 0.43648290634155273, -0.4511150121688843, -0.10427100956439972, -0.015116635710000992, 0.3130958378314972, -0.11088963598012924, -0.5254804491996765, -0.20235449075698853, 0.03005792945623398, -0.3645215332508087, 0.0033194124698638916, -0.10522717237472534, 0.455910861492157, -0.10451912134885788, -0.2079123556613922, -0.23222969472408295, 0.15966537594795227, -0.23240342736244202, 0.15068446099758148, 0.17484807968139648, -0.23858249187469482, -0.22234076261520386, 0.10361030697822571, -0.11332491040229797, -0.3919100761413574, -0.2914593815803528, 0.05085980147123337, -0.28017181158065796, -0.1788313388824463, 0.16493350267410278, 0.29313668608665466, -0.08384174853563309, -0.13754470646381378, 0.21358264982700348, 0.16025812923908234, 0.09193339198827744, 0.3640550971031189, 0.24864615499973297, 0.3440900146961212, 0.3686143457889557, 0.016451910138130188, 0.18949399888515472, 0.01395528856664896, -0.1053449809551239, 0.052993930876255035, -0.05231863260269165, 0.08862962573766708, 0.3428836464881897, 0.2791379392147064, 0.17668651044368744, -0.12395340949296951, 0.06338588893413544, 0.04745277017354965, 0.2871522009372711, -0.2979123890399933, 0.26275187730789185, -0.35800454020500183, -0.20074445009231567, -0.1834893822669983, 0.04019937291741371, -0.5762979984283447, 0.015580824576318264, 0.1591612547636032, 0.09440501779317856, 0.043894924223423004, -0.08062146604061127, 0.07071368396282196, -0.022893026471138, 0.37045255303382874, 0.46796852350234985, 0.20844554901123047, -0.36584270000457764, -0.495674729347229, -0.8375540375709534, 0.07055112719535828, 0.0760711207985878, -0.3188164532184601, 0.27796101570129395, -0.09889709949493408, -0.12527912855148315, -0.19269493222236633, 0.36421260237693787, 0.024173319339752197, 0.10775258392095566, -0.07198768854141235, -0.20731666684150696, -0.0011262744665145874, -0.25664031505584717, 0.2824243903160095, -0.16276687383651733, -0.2592015564441681, 0.2410232573747635, -0.14057105779647827, 0.0027908310294151306, 0.146366685628891, 0.3039815425872803, -0.0828811302781105, -0.3916011154651642, 0.48850640654563904, -0.10973653197288513, 0.5265771746635437, 0.08572763204574585, -0.03702894598245621, -0.15259627997875214, -0.3366623818874359, 0.03322569280862808, 0.4617789387702942, 0.09211384505033493, 0.153284952044487, -0.11402759701013565, -0.3413412570953369, -0.1981881707906723, 0.25497815012931824, 0.1037018895149231, -0.23163338005542755, -0.19409319758415222, 0.06243136525154114, 0.1272803246974945, 0.028581827878952026, 0.25137051939964294, 0.24366751313209534, -0.052465036511421204, 0.17940986156463623, -0.037587348371744156, -0.33259522914886475, 0.5717867612838745, -0.2085377722978592, -0.04656344652175903, -0.12462275475263596, 0.30316102504730225, 0.11872295290231705, -0.20383800566196442, -0.3127712309360504, 0.09274215251207352, 0.21282626688480377, 0.08214356005191803, -0.19917206466197968, 0.17535153031349182, -0.27594509720802307, -0.006147108972072601, -0.04787212237715721, 0.2557840943336487, 0.12912966310977936, -0.25820192694664, 0.12751729786396027, -0.12289117276668549 ]
https://github.com/huggingface/datasets/issues/4062
Loading mozilla-foundation/common_voice_7_0 dataset failed
Hi @aapot, thanks for reporting. We are investigating the cause of this issue. We will keep you informed.
## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5
18
Loading mozilla-foundation/common_voice_7_0 dataset failed ## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5 Hi @aapot, thanks for reporting. We are investigating the cause of this issue. We will keep you informed.
[ -0.17519697546958923, -0.16184823215007782, -0.01651023142039776, 0.4844568371772766, 0.1696993112564087, -0.16959765553474426, 0.3660568296909332, 0.2703648507595062, 0.09576752781867981, 0.20071280002593994, -0.2335406243801117, 0.7396361827850342, 0.1339329481124878, -0.03389794006943703, -0.49815741181373596, -0.014100514352321625, -0.05656685680150986, 0.25375640392303467, 0.5223562121391296, -0.07576215267181396, -0.15330027043819427, 0.4438350796699524, -0.4333692193031311, 0.024107083678245544, -0.25638237595558167, -0.10849449783563614, 0.00424201600253582, 0.28697776794433594, 0.014083456248044968, -0.18530037999153137, 0.38327479362487793, -0.08025029301643372, 0.106022410094738, 0.5047561526298523, -0.00012608140241354704, 0.11236871778964996, 0.5733118653297424, -0.304517924785614, -0.41103342175483704, -0.39715731143951416, -0.5319541096687317, 0.05225786566734314, -0.19388535618782043, -0.19527432322502136, 0.01386278122663498, 0.010713430121541023, -0.26270100474357605, -0.5370029211044312, 0.4213542938232422, 0.3059816360473633, 0.06437352299690247, -0.2942487597465515, -0.14170299470424652, 0.39899352192878723, 0.25898152589797974, 0.3365604877471924, -0.03498895466327667, 0.2942298948764801, 0.2875884175300598, -0.05594223737716675, 0.019970856606960297, 0.23616217076778412, -0.1212271898984909, -0.10889588296413422, -0.17782911658287048, 0.06458175182342529, -0.17084935307502747, -0.4631035029888153, 0.31189867854118347, 0.1909283995628357, 0.3432522714138031, -0.034205950796604156, -0.360567182302475, -0.19193047285079956, 0.18172799050807953, -0.1701170802116394, 0.28902468085289, 0.25317370891571045, -0.30233728885650635, 0.2167758047580719, 0.2104204148054123, -0.12349863350391388, -0.03454255685210228, 0.15620321035385132, -0.30984386801719666, 0.8177628517150879, -0.09265425056219101, 0.0690387636423111, 0.06971174478530884, -0.07312128692865372, 0.25120946764945984, -0.06261513382196426, -0.33823004364967346, 0.07743258774280548, -0.07370834052562714, -0.03062664158642292, -0.2561521530151367, -0.3537360727787018, 0.1528184413909912, -0.24292542040348053, 0.16830338537693024, 0.047452956438064575, -0.2823125123977661, 0.1396792232990265, 0.3570430278778076, 0.29798269271850586, 0.30182966589927673, 0.15220651030540466, 0.3835258483886719, 0.3126688599586487, 0.05231700465083122, 0.1026887521147728, -0.2170577049255371, 0.1913958340883255, -0.15979553759098053, 0.14370396733283997, 0.22629116475582123, -0.3688647747039795, -0.48434990644454956, 0.010647445917129517, -0.5394700169563293, -0.22982822358608246, -0.0029890192672610283, 0.4961341321468353, -0.05819108709692955, 0.5016402006149292, -0.21879616379737854, 0.3897240161895752, -0.17626747488975525, -0.5105138421058655, 0.024111047387123108, 0.052211761474609375, -0.1494760513305664, -0.05753874033689499, 0.15932044386863708, -0.05752723291516304, 0.2940520942211151, -0.23058627545833588, 0.040141962468624115, -0.38791215419769287, -0.01730864681303501, -0.3002840280532837, -0.028010576963424683, 0.16197635233402252, 0.12875895202159882, 0.09682358801364899, 0.23234368860721588, -0.38580209016799927, -0.12342765927314758, 0.37822550535202026, -0.4058009684085846, -0.22187958657741547, -0.07071726769208908, 0.04707074537873268, -0.1863936334848404, -0.03938648849725723, -0.2719596326351166, 0.26672637462615967, 0.2987605333328247, -0.25347065925598145, 0.02169300615787506, -0.10832390189170837, -0.33601438999176025, -0.1283683180809021, 0.22858870029449463, 0.601514995098114, -0.3301182985305786, -0.2288457304239273, -0.13374124467372894, 0.21151526272296906, 0.3574313223361969, 0.115414097905159, -0.17049501836299896, 0.1265755593776703, -0.18783698976039886, 0.2938362956047058, 0.61262446641922, -0.2521319091320038, -0.5897320508956909, 0.43627890944480896, -0.06076720356941223, 0.342641144990921, 0.08794629573822021, -0.10229720920324326, -0.08504319936037064, 0.03454887494444847, 0.6114612817764282, 0.31443291902542114, -0.11017479002475739, 0.15919595956802368, -0.25815874338150024, -0.3673643171787262, 0.43328720331192017, 0.34230783581733704, 0.16642627120018005, -0.08175217360258102, 0.17275893688201904, -0.0941372662782669, 0.19590044021606445, -0.2402772605419159, -0.1780625283718109, 0.12666641175746918, 0.2968129515647888, -0.02621549367904663, 0.12957704067230225, 0.0699564665555954, -0.3531618118286133, 0.2276879847049713, -0.01307215541601181, 0.03346128761768341, -0.3829690217971802, -0.008652446791529655, -0.3216807246208191, 0.08872726559638977, -0.29638728499412537, -0.22207993268966675, -0.017450306564569473, 0.32312047481536865, -0.07469527423381805, 0.19732096791267395, -0.12903764843940735, 0.6577111482620239, 0.016852056607604027, -0.00021549704251810908, -0.33319661021232605, 0.41145819425582886, -0.11433086544275284, -0.27295437455177307, -0.08776017278432846, 0.23635342717170715, 0.16032996773719788, -0.08741039037704468, -0.3506898581981659, 0.08982229977846146, 0.4213448762893677, 0.014459073543548584, 0.10662432014942169, -0.3811300992965698, 0.32607680559158325, -0.17134825885295868, 0.24724864959716797, 0.3923109769821167, 0.19391581416130066, 0.014490246772766113, 0.19008174538612366, 0.43950241804122925, -0.009834811091423035, 0.08341004699468613, -0.03884085267782211, -0.17710401117801666, 0.34750714898109436, 0.042896632105112076, -0.006081066094338894, -0.16881677508354187, 0.22659066319465637, -0.2462988942861557, -0.0022355057299137115, 0.09777909517288208, -0.32125335931777954, -0.003261253237724304, 0.6736798882484436, -0.06580676138401031, 0.3395073115825653, 0.13153675198554993, -0.06572011858224869, -0.15047687292099, 0.22040317952632904, 0.009956683963537216, 0.4776389002799988, 0.11174806207418442, -0.1794634461402893, -0.05502597987651825, 0.2230033278465271, -0.10054682940244675, 0.22697412967681885, 0.04950860142707825, 0.26236850023269653, 0.41878965497016907, 0.1854909211397171, -0.022456850856542587, -0.16114158928394318, -0.6833887696266174, -0.029254471883177757, 0.2878881096839905, -0.28306445479393005, 0.1821848601102829, -0.2930603325366974, -0.04264019802212715, -0.016314581036567688, -0.0585859976708889, -0.21979784965515137, -0.29319310188293457, -0.025372900068759918, 0.18014785647392273, 0.0892217755317688, 0.051644355058670044, -0.3591062128543854, 0.19497480988502502, 0.06815668195486069, -0.07191994041204453, -0.3168775737285614, -0.27247855067253113, -0.47007107734680176, -0.1336495727300644, 0.3395412564277649, 0.11022096872329712, -0.2350599616765976, -0.43428343534469604, -0.2806105613708496, 0.28759142756462097, -0.1936107575893402, 0.26837629079818726, -0.14485907554626465, 0.15305089950561523, -0.21489596366882324, -0.01171451061964035, 0.07666721194982529, -0.2088644653558731, 0.07870317250490189, 0.19014213979244232, -0.34768810868263245, 0.3216950297355652, 0.1114216223359108, 0.10598757863044739, -0.1565353274345398, -0.36071908473968506, -0.32485800981521606, -0.4031400680541992, -0.043134428560733795, -0.3938179612159729, 0.04631257802248001, 0.08488643169403076, -0.00021686218678951263, 0.03316812962293625, -0.03179517015814781, 0.1845683455467224, -0.3048206567764282, 0.06727506220340729, 0.2734379768371582, 0.09424006193876266, -0.04534463211894035, 0.09628313779830933, -0.14350557327270508, 0.07951432466506958, -0.07819244265556335, -0.4404274821281433, -0.014948450028896332, -0.008766697719693184, 0.19577333331108093, -0.545333981513977, -0.16479869186878204, 0.09221987426280975, 0.24034415185451508, 0.2355385273694992, -0.10134107619524002, -0.18236149847507477, -0.12692365050315857, 0.1914260983467102, 0.21361984312534332, 0.04635853320360184, 0.2585151195526123, -0.07089023292064667, 0.5902408361434937, 0.2240222692489624, -0.00798296183347702, 0.2602725327014923, 0.05326578766107559, 0.05776002258062363, -0.0402413010597229, -0.3132263720035553, 0.0033074819948524237, 0.047339558601379395, -0.13254523277282715, 0.41179078817367554, -0.14528301358222961, -0.539018452167511, -0.37716883420944214, -0.3475438356399536, -0.3139491081237793, -0.206557959318161, 0.30851107835769653, -0.18435977399349213, -0.2106281816959381, -0.11025659739971161, 0.2975829541683197, 0.005203051492571831, 0.038981083780527115, -0.021562188863754272, 0.15455640852451324, -0.1205921545624733, -0.1406126171350479, 0.26966553926467896, -0.42248475551605225, -0.23038789629936218, 0.4002434015274048, 0.4483719766139984, 0.43075090646743774, -0.06884242594242096, -0.049302637577056885, 0.04479314759373665, -0.29501423239707947, 0.48502105474472046, -0.2411068230867386, 0.04474829137325287, 0.23086431622505188, 0.016365457326173782, -0.07071297615766525, -0.05640465021133423, -0.1779632419347763, 0.2567773759365082, 0.3393170237541199, 0.16430547833442688, -0.17685486376285553, -0.005305308848619461, 0.007917182520031929, 0.13517537713050842, -0.06851468235254288, -0.13049954175949097, -0.3793390095233917, -0.31112414598464966, -0.33718767762184143, 0.05105631425976753, -0.0805707797408104, 0.2274009883403778, -0.14841380715370178, -0.06498411297798157, 0.0875697135925293, -0.17295989394187927, 0.0037218257784843445, 0.4278794825077057, 0.1216009184718132, -0.16000042855739594, 0.09222067892551422, -0.05637161433696747, 0.20134671032428741, 0.36566096544265747, 0.8015766143798828, 0.42667657136917114, -0.4130863547325134, 0.10062400996685028, -0.15236471593379974, 0.17182457447052002, 0.31417059898376465, -0.012552850879728794, -0.3019680976867676, -0.0885179340839386, 0.1043282076716423, 0.1751483529806137, -0.05242105573415756, 0.20363132655620575, 0.02247036248445511, -0.5311116576194763, -0.13929609954357147, 0.026253100484609604, -0.07001838833093643, -0.039660919457674026, 0.3088882267475128, -0.1074446588754654, -0.26099881529808044, 0.35895001888275146, -0.1112653836607933, 1.13139808177948, 0.32529741525650024, 0.10319595038890839, 0.4080827534198761, 0.03631742298603058, 0.13395458459854126, -0.6340707540512085, 0.18177515268325806, -0.1757006198167801, -0.24839024245738983, -0.09190975874662399, -0.032663583755493164, 0.19277474284172058, 0.05501963570713997, -0.4069863557815552, 0.27627068758010864, -0.1384757161140442, -0.20867249369621277, 0.15749989449977875, 0.07390878349542618, -0.4140239953994751, -0.12638667225837708, -0.34637072682380676, -0.06743688136339188, -0.3450584411621094, 0.39947065711021423, 0.040510281920433044, -0.08957784622907639, -0.5995991826057434, -0.20668631792068481, -0.1667819321155548, 0.4781196415424347, -0.1057092621922493, 0.08334823697805405, -0.03189714625477791, -0.011854097247123718, 0.3167767822742462, 0.22889387607574463, 0.29524487257003784, 0.1782429814338684, -0.09271428734064102, 0.15974801778793335, 0.18933187425136566, 0.18133850395679474, 0.09090185165405273, -0.10181522369384766, 0.2091786414384842, 0.036091893911361694, -0.3394269347190857, 0.05581098794937134, -0.16554373502731323, -0.04946044087409973, 0.08942857384681702, 0.13507401943206787, -0.06642712652683258, -0.15703198313713074, -0.03671632334589958, 0.23378603160381317, 0.34882667660713196, -0.10526111721992493, 0.014220653101801872, 0.3045819401741028, -0.32515260577201843, -0.04236658662557602, -0.09765687584877014, -0.39568889141082764, -0.10145217180252075, 0.28396356105804443, 0.1580289751291275, 0.02551409602165222, 0.45644018054008484, -0.12903158366680145, -0.096866175532341, -0.19240206480026245, 0.10837473720312119, -0.07271275669336319, -0.41078734397888184, -0.0461324043571949, -0.20471243560314178, -0.25724542140960693, -0.2998632788658142, 0.42260193824768066, 0.06739307940006256, 0.33755359053611755, 0.0250786654651165, -0.5421701073646545, -0.1617407351732254, 0.25955069065093994, 0.12639789283275604, -0.049037251621484756, 0.1995353400707245, -0.2385660856962204, -0.18691489100456238, -0.10526548326015472, -0.13078585267066956, 0.08543530106544495, -0.2237636297941208, 0.04375544190406799, 0.12442868202924728, 0.004707753658294678, 0.29970136284828186, 0.008309463039040565, 0.033544525504112244, 0.09055202454328537, 0.23544861376285553, -0.06320884823799133, -0.15316252410411835, 0.22418999671936035, 0.024747934192419052, -0.03345832973718643, -0.18283173441886902, -0.241261288523674, -0.088350310921669, -0.12024654448032379, 0.18941698968410492, 0.08478114753961563, 0.13061991333961487, 0.1556294560432434, 0.058197494596242905, 0.2289412021636963, -0.23930494487285614, 0.4929627478122711, -0.09197668731212616, 0.3947739601135254, 0.07764337956905365, 0.4207169711589813, 0.12586525082588196, 0.14843697845935822, -0.16380521655082703, 0.051290180534124374, -0.22179503738880157, 0.42096152901649475, 0.3297467827796936, -0.42524993419647217, 0.33674561977386475, -0.023457061499357224, -0.07366517931222916, 0.29997462034225464, -0.17853711545467377, 0.0922861099243164, 0.19771897792816162, 0.03467298299074173, -0.21669861674308777, -0.18441878259181976, 0.5487858653068542, -0.12987181544303894, -0.05295676365494728, 0.5203568935394287, -0.16045396029949188, 0.1981622278690338, 0.16577214002609253, -0.10996890068054199, 0.09807735681533813, 0.48828238248825073, 0.26390448212623596, 0.23446811735630035, -0.1994370073080063, 0.17692580819129944, 0.011699005961418152, -0.1040339469909668, 0.290546178817749, 0.33436793088912964, -0.22490763664245605, 0.28656086325645447, 0.15645334124565125, 0.1971571445465088, 0.030827421694993973, -0.47818523645401, 0.1789991706609726, -0.06135079264640808, 0.004539690911769867, 0.08144931495189667, 0.09802296757698059, 0.15060430765151978, -0.3145488500595093, -0.09474243223667145, -0.1896892637014389, 0.10003727674484253, -0.21934127807617188, 0.07154616713523865, -0.11868511885404587, -0.18575675785541534, -0.4143644869327545, -0.007867619395256042, -0.03865278139710426, 0.10649802535772324, -0.0782325267791748, 0.3747827410697937, -0.39499014616012573, -0.17219920456409454, 0.05795837938785553, 0.25048691034317017, 0.13988372683525085, -0.26690906286239624, 0.5044804215431213, 0.023042701184749603, -0.23467814922332764, 0.11686119437217712, -0.03686005622148514, 0.4507049024105072, 0.3364996016025543, -0.28818440437316895, -0.13622339069843292, 0.31189343333244324, -0.13215135037899017, -0.10821327567100525, 0.2878701984882355, 0.27137506008148193, 0.3781431317329407, 0.3260469138622284, 0.040670715272426605, -0.07209920883178711, 0.08716385066509247, 0.3082647919654846, 0.2477109283208847, -0.09598475694656372, 0.19805368781089783, -0.23019754886627197, 0.2463148832321167, -0.2612815201282501, -0.08384016901254654, -0.482416033744812, 0.14138509333133698, -0.17735710740089417, 0.022060420364141464, 0.1417568027973175, -0.026850607246160507, -0.030918505042791367, -0.011056981980800629, 0.016871362924575806, 0.21333304047584534, 0.06589904427528381, -0.09116280823945999, 0.07347176969051361, -0.3752687871456146, 0.21881075203418732, 0.032710716128349304, -0.09668678790330887, -0.2285114824771881, -0.018997984007000923, 0.19589945673942566, 0.29297977685928345, 0.10339833050966263, 0.22639411687850952, 0.3165779113769531, 0.23325052857398987, -0.4197307825088501, -0.43725109100341797, 0.23319734632968903, 0.07000135630369186, -0.11042331159114838, -0.5097913146018982, -0.05116397514939308, -0.04513981565833092, -0.14607509970664978, 0.13461662828922272, -0.5007230043411255, -0.1408400535583496, -0.5425394773483276, 0.39529743790626526, 0.053273752331733704, 0.5423165559768677, 0.018480941653251648, -0.12498985975980759, 0.05275337025523186, -0.24846266210079193, 0.03704215586185455, 0.17613700032234192, 0.30437037348747253, 0.6286939382553101, -0.2470417618751526, 0.30517080426216125, -0.4024548828601837, 0.2693585753440857, -0.002433519810438156, 0.020657360553741455, -0.2890010476112366, 0.11029320955276489, -0.09481114149093628, -0.05125486105680466, -0.009607112035155296, 0.03442036360502243, -0.07769294083118439, 0.11314718425273895, -0.23678074777126312, 0.043964602053165436, 0.3486161231994629, -0.14505775272846222, -0.4393410086631775, -0.14647400379180908, 0.019598864018917084, 0.0932890996336937, 0.006479096598923206, -0.15735897421836853, 0.13317084312438965, 0.27888956665992737, -0.1554514467716217, -0.06194228306412697, -0.046050459146499634, 0.21790103614330292, -0.10963574051856995, -0.17502109706401825, 0.08784938603639603, 0.03479438275098801, 0.025920236483216286, 0.2666219174861908, -0.13914746046066284 ]
https://github.com/huggingface/datasets/issues/4062
Loading mozilla-foundation/common_voice_7_0 dataset failed
When making HTTP request from code line: ``` response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() ``` it cannot be decoded to JSON because it raises a 404 Not Found error. The request is fixed if removing the `/{use_cdn}` from the URL. Maybe there was a change in the Common Voice API? CC: @anton-l @patrickvonplaten @polinaeterna
## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5
52
Loading mozilla-foundation/common_voice_7_0 dataset failed ## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5 When making HTTP request from code line: ``` response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() ``` it cannot be decoded to JSON because it raises a 404 Not Found error. The request is fixed if removing the `/{use_cdn}` from the URL. Maybe there was a change in the Common Voice API? CC: @anton-l @patrickvonplaten @polinaeterna
[ -0.17519697546958923, -0.16184823215007782, -0.01651023142039776, 0.4844568371772766, 0.1696993112564087, -0.16959765553474426, 0.3660568296909332, 0.2703648507595062, 0.09576752781867981, 0.20071280002593994, -0.2335406243801117, 0.7396361827850342, 0.1339329481124878, -0.03389794006943703, -0.49815741181373596, -0.014100514352321625, -0.05656685680150986, 0.25375640392303467, 0.5223562121391296, -0.07576215267181396, -0.15330027043819427, 0.4438350796699524, -0.4333692193031311, 0.024107083678245544, -0.25638237595558167, -0.10849449783563614, 0.00424201600253582, 0.28697776794433594, 0.014083456248044968, -0.18530037999153137, 0.38327479362487793, -0.08025029301643372, 0.106022410094738, 0.5047561526298523, -0.00012608140241354704, 0.11236871778964996, 0.5733118653297424, -0.304517924785614, -0.41103342175483704, -0.39715731143951416, -0.5319541096687317, 0.05225786566734314, -0.19388535618782043, -0.19527432322502136, 0.01386278122663498, 0.010713430121541023, -0.26270100474357605, -0.5370029211044312, 0.4213542938232422, 0.3059816360473633, 0.06437352299690247, -0.2942487597465515, -0.14170299470424652, 0.39899352192878723, 0.25898152589797974, 0.3365604877471924, -0.03498895466327667, 0.2942298948764801, 0.2875884175300598, -0.05594223737716675, 0.019970856606960297, 0.23616217076778412, -0.1212271898984909, -0.10889588296413422, -0.17782911658287048, 0.06458175182342529, -0.17084935307502747, -0.4631035029888153, 0.31189867854118347, 0.1909283995628357, 0.3432522714138031, -0.034205950796604156, -0.360567182302475, -0.19193047285079956, 0.18172799050807953, -0.1701170802116394, 0.28902468085289, 0.25317370891571045, -0.30233728885650635, 0.2167758047580719, 0.2104204148054123, -0.12349863350391388, -0.03454255685210228, 0.15620321035385132, -0.30984386801719666, 0.8177628517150879, -0.09265425056219101, 0.0690387636423111, 0.06971174478530884, -0.07312128692865372, 0.25120946764945984, -0.06261513382196426, -0.33823004364967346, 0.07743258774280548, -0.07370834052562714, -0.03062664158642292, -0.2561521530151367, -0.3537360727787018, 0.1528184413909912, -0.24292542040348053, 0.16830338537693024, 0.047452956438064575, -0.2823125123977661, 0.1396792232990265, 0.3570430278778076, 0.29798269271850586, 0.30182966589927673, 0.15220651030540466, 0.3835258483886719, 0.3126688599586487, 0.05231700465083122, 0.1026887521147728, -0.2170577049255371, 0.1913958340883255, -0.15979553759098053, 0.14370396733283997, 0.22629116475582123, -0.3688647747039795, -0.48434990644454956, 0.010647445917129517, -0.5394700169563293, -0.22982822358608246, -0.0029890192672610283, 0.4961341321468353, -0.05819108709692955, 0.5016402006149292, -0.21879616379737854, 0.3897240161895752, -0.17626747488975525, -0.5105138421058655, 0.024111047387123108, 0.052211761474609375, -0.1494760513305664, -0.05753874033689499, 0.15932044386863708, -0.05752723291516304, 0.2940520942211151, -0.23058627545833588, 0.040141962468624115, -0.38791215419769287, -0.01730864681303501, -0.3002840280532837, -0.028010576963424683, 0.16197635233402252, 0.12875895202159882, 0.09682358801364899, 0.23234368860721588, -0.38580209016799927, -0.12342765927314758, 0.37822550535202026, -0.4058009684085846, -0.22187958657741547, -0.07071726769208908, 0.04707074537873268, -0.1863936334848404, -0.03938648849725723, -0.2719596326351166, 0.26672637462615967, 0.2987605333328247, -0.25347065925598145, 0.02169300615787506, -0.10832390189170837, -0.33601438999176025, -0.1283683180809021, 0.22858870029449463, 0.601514995098114, -0.3301182985305786, -0.2288457304239273, -0.13374124467372894, 0.21151526272296906, 0.3574313223361969, 0.115414097905159, -0.17049501836299896, 0.1265755593776703, -0.18783698976039886, 0.2938362956047058, 0.61262446641922, -0.2521319091320038, -0.5897320508956909, 0.43627890944480896, -0.06076720356941223, 0.342641144990921, 0.08794629573822021, -0.10229720920324326, -0.08504319936037064, 0.03454887494444847, 0.6114612817764282, 0.31443291902542114, -0.11017479002475739, 0.15919595956802368, -0.25815874338150024, -0.3673643171787262, 0.43328720331192017, 0.34230783581733704, 0.16642627120018005, -0.08175217360258102, 0.17275893688201904, -0.0941372662782669, 0.19590044021606445, -0.2402772605419159, -0.1780625283718109, 0.12666641175746918, 0.2968129515647888, -0.02621549367904663, 0.12957704067230225, 0.0699564665555954, -0.3531618118286133, 0.2276879847049713, -0.01307215541601181, 0.03346128761768341, -0.3829690217971802, -0.008652446791529655, -0.3216807246208191, 0.08872726559638977, -0.29638728499412537, -0.22207993268966675, -0.017450306564569473, 0.32312047481536865, -0.07469527423381805, 0.19732096791267395, -0.12903764843940735, 0.6577111482620239, 0.016852056607604027, -0.00021549704251810908, -0.33319661021232605, 0.41145819425582886, -0.11433086544275284, -0.27295437455177307, -0.08776017278432846, 0.23635342717170715, 0.16032996773719788, -0.08741039037704468, -0.3506898581981659, 0.08982229977846146, 0.4213448762893677, 0.014459073543548584, 0.10662432014942169, -0.3811300992965698, 0.32607680559158325, -0.17134825885295868, 0.24724864959716797, 0.3923109769821167, 0.19391581416130066, 0.014490246772766113, 0.19008174538612366, 0.43950241804122925, -0.009834811091423035, 0.08341004699468613, -0.03884085267782211, -0.17710401117801666, 0.34750714898109436, 0.042896632105112076, -0.006081066094338894, -0.16881677508354187, 0.22659066319465637, -0.2462988942861557, -0.0022355057299137115, 0.09777909517288208, -0.32125335931777954, -0.003261253237724304, 0.6736798882484436, -0.06580676138401031, 0.3395073115825653, 0.13153675198554993, -0.06572011858224869, -0.15047687292099, 0.22040317952632904, 0.009956683963537216, 0.4776389002799988, 0.11174806207418442, -0.1794634461402893, -0.05502597987651825, 0.2230033278465271, -0.10054682940244675, 0.22697412967681885, 0.04950860142707825, 0.26236850023269653, 0.41878965497016907, 0.1854909211397171, -0.022456850856542587, -0.16114158928394318, -0.6833887696266174, -0.029254471883177757, 0.2878881096839905, -0.28306445479393005, 0.1821848601102829, -0.2930603325366974, -0.04264019802212715, -0.016314581036567688, -0.0585859976708889, -0.21979784965515137, -0.29319310188293457, -0.025372900068759918, 0.18014785647392273, 0.0892217755317688, 0.051644355058670044, -0.3591062128543854, 0.19497480988502502, 0.06815668195486069, -0.07191994041204453, -0.3168775737285614, -0.27247855067253113, -0.47007107734680176, -0.1336495727300644, 0.3395412564277649, 0.11022096872329712, -0.2350599616765976, -0.43428343534469604, -0.2806105613708496, 0.28759142756462097, -0.1936107575893402, 0.26837629079818726, -0.14485907554626465, 0.15305089950561523, -0.21489596366882324, -0.01171451061964035, 0.07666721194982529, -0.2088644653558731, 0.07870317250490189, 0.19014213979244232, -0.34768810868263245, 0.3216950297355652, 0.1114216223359108, 0.10598757863044739, -0.1565353274345398, -0.36071908473968506, -0.32485800981521606, -0.4031400680541992, -0.043134428560733795, -0.3938179612159729, 0.04631257802248001, 0.08488643169403076, -0.00021686218678951263, 0.03316812962293625, -0.03179517015814781, 0.1845683455467224, -0.3048206567764282, 0.06727506220340729, 0.2734379768371582, 0.09424006193876266, -0.04534463211894035, 0.09628313779830933, -0.14350557327270508, 0.07951432466506958, -0.07819244265556335, -0.4404274821281433, -0.014948450028896332, -0.008766697719693184, 0.19577333331108093, -0.545333981513977, -0.16479869186878204, 0.09221987426280975, 0.24034415185451508, 0.2355385273694992, -0.10134107619524002, -0.18236149847507477, -0.12692365050315857, 0.1914260983467102, 0.21361984312534332, 0.04635853320360184, 0.2585151195526123, -0.07089023292064667, 0.5902408361434937, 0.2240222692489624, -0.00798296183347702, 0.2602725327014923, 0.05326578766107559, 0.05776002258062363, -0.0402413010597229, -0.3132263720035553, 0.0033074819948524237, 0.047339558601379395, -0.13254523277282715, 0.41179078817367554, -0.14528301358222961, -0.539018452167511, -0.37716883420944214, -0.3475438356399536, -0.3139491081237793, -0.206557959318161, 0.30851107835769653, -0.18435977399349213, -0.2106281816959381, -0.11025659739971161, 0.2975829541683197, 0.005203051492571831, 0.038981083780527115, -0.021562188863754272, 0.15455640852451324, -0.1205921545624733, -0.1406126171350479, 0.26966553926467896, -0.42248475551605225, -0.23038789629936218, 0.4002434015274048, 0.4483719766139984, 0.43075090646743774, -0.06884242594242096, -0.049302637577056885, 0.04479314759373665, -0.29501423239707947, 0.48502105474472046, -0.2411068230867386, 0.04474829137325287, 0.23086431622505188, 0.016365457326173782, -0.07071297615766525, -0.05640465021133423, -0.1779632419347763, 0.2567773759365082, 0.3393170237541199, 0.16430547833442688, -0.17685486376285553, -0.005305308848619461, 0.007917182520031929, 0.13517537713050842, -0.06851468235254288, -0.13049954175949097, -0.3793390095233917, -0.31112414598464966, -0.33718767762184143, 0.05105631425976753, -0.0805707797408104, 0.2274009883403778, -0.14841380715370178, -0.06498411297798157, 0.0875697135925293, -0.17295989394187927, 0.0037218257784843445, 0.4278794825077057, 0.1216009184718132, -0.16000042855739594, 0.09222067892551422, -0.05637161433696747, 0.20134671032428741, 0.36566096544265747, 0.8015766143798828, 0.42667657136917114, -0.4130863547325134, 0.10062400996685028, -0.15236471593379974, 0.17182457447052002, 0.31417059898376465, -0.012552850879728794, -0.3019680976867676, -0.0885179340839386, 0.1043282076716423, 0.1751483529806137, -0.05242105573415756, 0.20363132655620575, 0.02247036248445511, -0.5311116576194763, -0.13929609954357147, 0.026253100484609604, -0.07001838833093643, -0.039660919457674026, 0.3088882267475128, -0.1074446588754654, -0.26099881529808044, 0.35895001888275146, -0.1112653836607933, 1.13139808177948, 0.32529741525650024, 0.10319595038890839, 0.4080827534198761, 0.03631742298603058, 0.13395458459854126, -0.6340707540512085, 0.18177515268325806, -0.1757006198167801, -0.24839024245738983, -0.09190975874662399, -0.032663583755493164, 0.19277474284172058, 0.05501963570713997, -0.4069863557815552, 0.27627068758010864, -0.1384757161140442, -0.20867249369621277, 0.15749989449977875, 0.07390878349542618, -0.4140239953994751, -0.12638667225837708, -0.34637072682380676, -0.06743688136339188, -0.3450584411621094, 0.39947065711021423, 0.040510281920433044, -0.08957784622907639, -0.5995991826057434, -0.20668631792068481, -0.1667819321155548, 0.4781196415424347, -0.1057092621922493, 0.08334823697805405, -0.03189714625477791, -0.011854097247123718, 0.3167767822742462, 0.22889387607574463, 0.29524487257003784, 0.1782429814338684, -0.09271428734064102, 0.15974801778793335, 0.18933187425136566, 0.18133850395679474, 0.09090185165405273, -0.10181522369384766, 0.2091786414384842, 0.036091893911361694, -0.3394269347190857, 0.05581098794937134, -0.16554373502731323, -0.04946044087409973, 0.08942857384681702, 0.13507401943206787, -0.06642712652683258, -0.15703198313713074, -0.03671632334589958, 0.23378603160381317, 0.34882667660713196, -0.10526111721992493, 0.014220653101801872, 0.3045819401741028, -0.32515260577201843, -0.04236658662557602, -0.09765687584877014, -0.39568889141082764, -0.10145217180252075, 0.28396356105804443, 0.1580289751291275, 0.02551409602165222, 0.45644018054008484, -0.12903158366680145, -0.096866175532341, -0.19240206480026245, 0.10837473720312119, -0.07271275669336319, -0.41078734397888184, -0.0461324043571949, -0.20471243560314178, -0.25724542140960693, -0.2998632788658142, 0.42260193824768066, 0.06739307940006256, 0.33755359053611755, 0.0250786654651165, -0.5421701073646545, -0.1617407351732254, 0.25955069065093994, 0.12639789283275604, -0.049037251621484756, 0.1995353400707245, -0.2385660856962204, -0.18691489100456238, -0.10526548326015472, -0.13078585267066956, 0.08543530106544495, -0.2237636297941208, 0.04375544190406799, 0.12442868202924728, 0.004707753658294678, 0.29970136284828186, 0.008309463039040565, 0.033544525504112244, 0.09055202454328537, 0.23544861376285553, -0.06320884823799133, -0.15316252410411835, 0.22418999671936035, 0.024747934192419052, -0.03345832973718643, -0.18283173441886902, -0.241261288523674, -0.088350310921669, -0.12024654448032379, 0.18941698968410492, 0.08478114753961563, 0.13061991333961487, 0.1556294560432434, 0.058197494596242905, 0.2289412021636963, -0.23930494487285614, 0.4929627478122711, -0.09197668731212616, 0.3947739601135254, 0.07764337956905365, 0.4207169711589813, 0.12586525082588196, 0.14843697845935822, -0.16380521655082703, 0.051290180534124374, -0.22179503738880157, 0.42096152901649475, 0.3297467827796936, -0.42524993419647217, 0.33674561977386475, -0.023457061499357224, -0.07366517931222916, 0.29997462034225464, -0.17853711545467377, 0.0922861099243164, 0.19771897792816162, 0.03467298299074173, -0.21669861674308777, -0.18441878259181976, 0.5487858653068542, -0.12987181544303894, -0.05295676365494728, 0.5203568935394287, -0.16045396029949188, 0.1981622278690338, 0.16577214002609253, -0.10996890068054199, 0.09807735681533813, 0.48828238248825073, 0.26390448212623596, 0.23446811735630035, -0.1994370073080063, 0.17692580819129944, 0.011699005961418152, -0.1040339469909668, 0.290546178817749, 0.33436793088912964, -0.22490763664245605, 0.28656086325645447, 0.15645334124565125, 0.1971571445465088, 0.030827421694993973, -0.47818523645401, 0.1789991706609726, -0.06135079264640808, 0.004539690911769867, 0.08144931495189667, 0.09802296757698059, 0.15060430765151978, -0.3145488500595093, -0.09474243223667145, -0.1896892637014389, 0.10003727674484253, -0.21934127807617188, 0.07154616713523865, -0.11868511885404587, -0.18575675785541534, -0.4143644869327545, -0.007867619395256042, -0.03865278139710426, 0.10649802535772324, -0.0782325267791748, 0.3747827410697937, -0.39499014616012573, -0.17219920456409454, 0.05795837938785553, 0.25048691034317017, 0.13988372683525085, -0.26690906286239624, 0.5044804215431213, 0.023042701184749603, -0.23467814922332764, 0.11686119437217712, -0.03686005622148514, 0.4507049024105072, 0.3364996016025543, -0.28818440437316895, -0.13622339069843292, 0.31189343333244324, -0.13215135037899017, -0.10821327567100525, 0.2878701984882355, 0.27137506008148193, 0.3781431317329407, 0.3260469138622284, 0.040670715272426605, -0.07209920883178711, 0.08716385066509247, 0.3082647919654846, 0.2477109283208847, -0.09598475694656372, 0.19805368781089783, -0.23019754886627197, 0.2463148832321167, -0.2612815201282501, -0.08384016901254654, -0.482416033744812, 0.14138509333133698, -0.17735710740089417, 0.022060420364141464, 0.1417568027973175, -0.026850607246160507, -0.030918505042791367, -0.011056981980800629, 0.016871362924575806, 0.21333304047584534, 0.06589904427528381, -0.09116280823945999, 0.07347176969051361, -0.3752687871456146, 0.21881075203418732, 0.032710716128349304, -0.09668678790330887, -0.2285114824771881, -0.018997984007000923, 0.19589945673942566, 0.29297977685928345, 0.10339833050966263, 0.22639411687850952, 0.3165779113769531, 0.23325052857398987, -0.4197307825088501, -0.43725109100341797, 0.23319734632968903, 0.07000135630369186, -0.11042331159114838, -0.5097913146018982, -0.05116397514939308, -0.04513981565833092, -0.14607509970664978, 0.13461662828922272, -0.5007230043411255, -0.1408400535583496, -0.5425394773483276, 0.39529743790626526, 0.053273752331733704, 0.5423165559768677, 0.018480941653251648, -0.12498985975980759, 0.05275337025523186, -0.24846266210079193, 0.03704215586185455, 0.17613700032234192, 0.30437037348747253, 0.6286939382553101, -0.2470417618751526, 0.30517080426216125, -0.4024548828601837, 0.2693585753440857, -0.002433519810438156, 0.020657360553741455, -0.2890010476112366, 0.11029320955276489, -0.09481114149093628, -0.05125486105680466, -0.009607112035155296, 0.03442036360502243, -0.07769294083118439, 0.11314718425273895, -0.23678074777126312, 0.043964602053165436, 0.3486161231994629, -0.14505775272846222, -0.4393410086631775, -0.14647400379180908, 0.019598864018917084, 0.0932890996336937, 0.006479096598923206, -0.15735897421836853, 0.13317084312438965, 0.27888956665992737, -0.1554514467716217, -0.06194228306412697, -0.046050459146499634, 0.21790103614330292, -0.10963574051856995, -0.17502109706401825, 0.08784938603639603, 0.03479438275098801, 0.025920236483216286, 0.2666219174861908, -0.13914746046066284 ]
https://github.com/huggingface/datasets/issues/4062
Loading mozilla-foundation/common_voice_7_0 dataset failed
I have also made the hotfix for all the rest of Common Voice script versions: 8.0, 6.1, 6.0,..., 1.0
## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5
19
Loading mozilla-foundation/common_voice_7_0 dataset failed ## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5 I have also made the hotfix for all the rest of Common Voice script versions: 8.0, 6.1, 6.0,..., 1.0
[ -0.17519697546958923, -0.16184823215007782, -0.01651023142039776, 0.4844568371772766, 0.1696993112564087, -0.16959765553474426, 0.3660568296909332, 0.2703648507595062, 0.09576752781867981, 0.20071280002593994, -0.2335406243801117, 0.7396361827850342, 0.1339329481124878, -0.03389794006943703, -0.49815741181373596, -0.014100514352321625, -0.05656685680150986, 0.25375640392303467, 0.5223562121391296, -0.07576215267181396, -0.15330027043819427, 0.4438350796699524, -0.4333692193031311, 0.024107083678245544, -0.25638237595558167, -0.10849449783563614, 0.00424201600253582, 0.28697776794433594, 0.014083456248044968, -0.18530037999153137, 0.38327479362487793, -0.08025029301643372, 0.106022410094738, 0.5047561526298523, -0.00012608140241354704, 0.11236871778964996, 0.5733118653297424, -0.304517924785614, -0.41103342175483704, -0.39715731143951416, -0.5319541096687317, 0.05225786566734314, -0.19388535618782043, -0.19527432322502136, 0.01386278122663498, 0.010713430121541023, -0.26270100474357605, -0.5370029211044312, 0.4213542938232422, 0.3059816360473633, 0.06437352299690247, -0.2942487597465515, -0.14170299470424652, 0.39899352192878723, 0.25898152589797974, 0.3365604877471924, -0.03498895466327667, 0.2942298948764801, 0.2875884175300598, -0.05594223737716675, 0.019970856606960297, 0.23616217076778412, -0.1212271898984909, -0.10889588296413422, -0.17782911658287048, 0.06458175182342529, -0.17084935307502747, -0.4631035029888153, 0.31189867854118347, 0.1909283995628357, 0.3432522714138031, -0.034205950796604156, -0.360567182302475, -0.19193047285079956, 0.18172799050807953, -0.1701170802116394, 0.28902468085289, 0.25317370891571045, -0.30233728885650635, 0.2167758047580719, 0.2104204148054123, -0.12349863350391388, -0.03454255685210228, 0.15620321035385132, -0.30984386801719666, 0.8177628517150879, -0.09265425056219101, 0.0690387636423111, 0.06971174478530884, -0.07312128692865372, 0.25120946764945984, -0.06261513382196426, -0.33823004364967346, 0.07743258774280548, -0.07370834052562714, -0.03062664158642292, -0.2561521530151367, -0.3537360727787018, 0.1528184413909912, -0.24292542040348053, 0.16830338537693024, 0.047452956438064575, -0.2823125123977661, 0.1396792232990265, 0.3570430278778076, 0.29798269271850586, 0.30182966589927673, 0.15220651030540466, 0.3835258483886719, 0.3126688599586487, 0.05231700465083122, 0.1026887521147728, -0.2170577049255371, 0.1913958340883255, -0.15979553759098053, 0.14370396733283997, 0.22629116475582123, -0.3688647747039795, -0.48434990644454956, 0.010647445917129517, -0.5394700169563293, -0.22982822358608246, -0.0029890192672610283, 0.4961341321468353, -0.05819108709692955, 0.5016402006149292, -0.21879616379737854, 0.3897240161895752, -0.17626747488975525, -0.5105138421058655, 0.024111047387123108, 0.052211761474609375, -0.1494760513305664, -0.05753874033689499, 0.15932044386863708, -0.05752723291516304, 0.2940520942211151, -0.23058627545833588, 0.040141962468624115, -0.38791215419769287, -0.01730864681303501, -0.3002840280532837, -0.028010576963424683, 0.16197635233402252, 0.12875895202159882, 0.09682358801364899, 0.23234368860721588, -0.38580209016799927, -0.12342765927314758, 0.37822550535202026, -0.4058009684085846, -0.22187958657741547, -0.07071726769208908, 0.04707074537873268, -0.1863936334848404, -0.03938648849725723, -0.2719596326351166, 0.26672637462615967, 0.2987605333328247, -0.25347065925598145, 0.02169300615787506, -0.10832390189170837, -0.33601438999176025, -0.1283683180809021, 0.22858870029449463, 0.601514995098114, -0.3301182985305786, -0.2288457304239273, -0.13374124467372894, 0.21151526272296906, 0.3574313223361969, 0.115414097905159, -0.17049501836299896, 0.1265755593776703, -0.18783698976039886, 0.2938362956047058, 0.61262446641922, -0.2521319091320038, -0.5897320508956909, 0.43627890944480896, -0.06076720356941223, 0.342641144990921, 0.08794629573822021, -0.10229720920324326, -0.08504319936037064, 0.03454887494444847, 0.6114612817764282, 0.31443291902542114, -0.11017479002475739, 0.15919595956802368, -0.25815874338150024, -0.3673643171787262, 0.43328720331192017, 0.34230783581733704, 0.16642627120018005, -0.08175217360258102, 0.17275893688201904, -0.0941372662782669, 0.19590044021606445, -0.2402772605419159, -0.1780625283718109, 0.12666641175746918, 0.2968129515647888, -0.02621549367904663, 0.12957704067230225, 0.0699564665555954, -0.3531618118286133, 0.2276879847049713, -0.01307215541601181, 0.03346128761768341, -0.3829690217971802, -0.008652446791529655, -0.3216807246208191, 0.08872726559638977, -0.29638728499412537, -0.22207993268966675, -0.017450306564569473, 0.32312047481536865, -0.07469527423381805, 0.19732096791267395, -0.12903764843940735, 0.6577111482620239, 0.016852056607604027, -0.00021549704251810908, -0.33319661021232605, 0.41145819425582886, -0.11433086544275284, -0.27295437455177307, -0.08776017278432846, 0.23635342717170715, 0.16032996773719788, -0.08741039037704468, -0.3506898581981659, 0.08982229977846146, 0.4213448762893677, 0.014459073543548584, 0.10662432014942169, -0.3811300992965698, 0.32607680559158325, -0.17134825885295868, 0.24724864959716797, 0.3923109769821167, 0.19391581416130066, 0.014490246772766113, 0.19008174538612366, 0.43950241804122925, -0.009834811091423035, 0.08341004699468613, -0.03884085267782211, -0.17710401117801666, 0.34750714898109436, 0.042896632105112076, -0.006081066094338894, -0.16881677508354187, 0.22659066319465637, -0.2462988942861557, -0.0022355057299137115, 0.09777909517288208, -0.32125335931777954, -0.003261253237724304, 0.6736798882484436, -0.06580676138401031, 0.3395073115825653, 0.13153675198554993, -0.06572011858224869, -0.15047687292099, 0.22040317952632904, 0.009956683963537216, 0.4776389002799988, 0.11174806207418442, -0.1794634461402893, -0.05502597987651825, 0.2230033278465271, -0.10054682940244675, 0.22697412967681885, 0.04950860142707825, 0.26236850023269653, 0.41878965497016907, 0.1854909211397171, -0.022456850856542587, -0.16114158928394318, -0.6833887696266174, -0.029254471883177757, 0.2878881096839905, -0.28306445479393005, 0.1821848601102829, -0.2930603325366974, -0.04264019802212715, -0.016314581036567688, -0.0585859976708889, -0.21979784965515137, -0.29319310188293457, -0.025372900068759918, 0.18014785647392273, 0.0892217755317688, 0.051644355058670044, -0.3591062128543854, 0.19497480988502502, 0.06815668195486069, -0.07191994041204453, -0.3168775737285614, -0.27247855067253113, -0.47007107734680176, -0.1336495727300644, 0.3395412564277649, 0.11022096872329712, -0.2350599616765976, -0.43428343534469604, -0.2806105613708496, 0.28759142756462097, -0.1936107575893402, 0.26837629079818726, -0.14485907554626465, 0.15305089950561523, -0.21489596366882324, -0.01171451061964035, 0.07666721194982529, -0.2088644653558731, 0.07870317250490189, 0.19014213979244232, -0.34768810868263245, 0.3216950297355652, 0.1114216223359108, 0.10598757863044739, -0.1565353274345398, -0.36071908473968506, -0.32485800981521606, -0.4031400680541992, -0.043134428560733795, -0.3938179612159729, 0.04631257802248001, 0.08488643169403076, -0.00021686218678951263, 0.03316812962293625, -0.03179517015814781, 0.1845683455467224, -0.3048206567764282, 0.06727506220340729, 0.2734379768371582, 0.09424006193876266, -0.04534463211894035, 0.09628313779830933, -0.14350557327270508, 0.07951432466506958, -0.07819244265556335, -0.4404274821281433, -0.014948450028896332, -0.008766697719693184, 0.19577333331108093, -0.545333981513977, -0.16479869186878204, 0.09221987426280975, 0.24034415185451508, 0.2355385273694992, -0.10134107619524002, -0.18236149847507477, -0.12692365050315857, 0.1914260983467102, 0.21361984312534332, 0.04635853320360184, 0.2585151195526123, -0.07089023292064667, 0.5902408361434937, 0.2240222692489624, -0.00798296183347702, 0.2602725327014923, 0.05326578766107559, 0.05776002258062363, -0.0402413010597229, -0.3132263720035553, 0.0033074819948524237, 0.047339558601379395, -0.13254523277282715, 0.41179078817367554, -0.14528301358222961, -0.539018452167511, -0.37716883420944214, -0.3475438356399536, -0.3139491081237793, -0.206557959318161, 0.30851107835769653, -0.18435977399349213, -0.2106281816959381, -0.11025659739971161, 0.2975829541683197, 0.005203051492571831, 0.038981083780527115, -0.021562188863754272, 0.15455640852451324, -0.1205921545624733, -0.1406126171350479, 0.26966553926467896, -0.42248475551605225, -0.23038789629936218, 0.4002434015274048, 0.4483719766139984, 0.43075090646743774, -0.06884242594242096, -0.049302637577056885, 0.04479314759373665, -0.29501423239707947, 0.48502105474472046, -0.2411068230867386, 0.04474829137325287, 0.23086431622505188, 0.016365457326173782, -0.07071297615766525, -0.05640465021133423, -0.1779632419347763, 0.2567773759365082, 0.3393170237541199, 0.16430547833442688, -0.17685486376285553, -0.005305308848619461, 0.007917182520031929, 0.13517537713050842, -0.06851468235254288, -0.13049954175949097, -0.3793390095233917, -0.31112414598464966, -0.33718767762184143, 0.05105631425976753, -0.0805707797408104, 0.2274009883403778, -0.14841380715370178, -0.06498411297798157, 0.0875697135925293, -0.17295989394187927, 0.0037218257784843445, 0.4278794825077057, 0.1216009184718132, -0.16000042855739594, 0.09222067892551422, -0.05637161433696747, 0.20134671032428741, 0.36566096544265747, 0.8015766143798828, 0.42667657136917114, -0.4130863547325134, 0.10062400996685028, -0.15236471593379974, 0.17182457447052002, 0.31417059898376465, -0.012552850879728794, -0.3019680976867676, -0.0885179340839386, 0.1043282076716423, 0.1751483529806137, -0.05242105573415756, 0.20363132655620575, 0.02247036248445511, -0.5311116576194763, -0.13929609954357147, 0.026253100484609604, -0.07001838833093643, -0.039660919457674026, 0.3088882267475128, -0.1074446588754654, -0.26099881529808044, 0.35895001888275146, -0.1112653836607933, 1.13139808177948, 0.32529741525650024, 0.10319595038890839, 0.4080827534198761, 0.03631742298603058, 0.13395458459854126, -0.6340707540512085, 0.18177515268325806, -0.1757006198167801, -0.24839024245738983, -0.09190975874662399, -0.032663583755493164, 0.19277474284172058, 0.05501963570713997, -0.4069863557815552, 0.27627068758010864, -0.1384757161140442, -0.20867249369621277, 0.15749989449977875, 0.07390878349542618, -0.4140239953994751, -0.12638667225837708, -0.34637072682380676, -0.06743688136339188, -0.3450584411621094, 0.39947065711021423, 0.040510281920433044, -0.08957784622907639, -0.5995991826057434, -0.20668631792068481, -0.1667819321155548, 0.4781196415424347, -0.1057092621922493, 0.08334823697805405, -0.03189714625477791, -0.011854097247123718, 0.3167767822742462, 0.22889387607574463, 0.29524487257003784, 0.1782429814338684, -0.09271428734064102, 0.15974801778793335, 0.18933187425136566, 0.18133850395679474, 0.09090185165405273, -0.10181522369384766, 0.2091786414384842, 0.036091893911361694, -0.3394269347190857, 0.05581098794937134, -0.16554373502731323, -0.04946044087409973, 0.08942857384681702, 0.13507401943206787, -0.06642712652683258, -0.15703198313713074, -0.03671632334589958, 0.23378603160381317, 0.34882667660713196, -0.10526111721992493, 0.014220653101801872, 0.3045819401741028, -0.32515260577201843, -0.04236658662557602, -0.09765687584877014, -0.39568889141082764, -0.10145217180252075, 0.28396356105804443, 0.1580289751291275, 0.02551409602165222, 0.45644018054008484, -0.12903158366680145, -0.096866175532341, -0.19240206480026245, 0.10837473720312119, -0.07271275669336319, -0.41078734397888184, -0.0461324043571949, -0.20471243560314178, -0.25724542140960693, -0.2998632788658142, 0.42260193824768066, 0.06739307940006256, 0.33755359053611755, 0.0250786654651165, -0.5421701073646545, -0.1617407351732254, 0.25955069065093994, 0.12639789283275604, -0.049037251621484756, 0.1995353400707245, -0.2385660856962204, -0.18691489100456238, -0.10526548326015472, -0.13078585267066956, 0.08543530106544495, -0.2237636297941208, 0.04375544190406799, 0.12442868202924728, 0.004707753658294678, 0.29970136284828186, 0.008309463039040565, 0.033544525504112244, 0.09055202454328537, 0.23544861376285553, -0.06320884823799133, -0.15316252410411835, 0.22418999671936035, 0.024747934192419052, -0.03345832973718643, -0.18283173441886902, -0.241261288523674, -0.088350310921669, -0.12024654448032379, 0.18941698968410492, 0.08478114753961563, 0.13061991333961487, 0.1556294560432434, 0.058197494596242905, 0.2289412021636963, -0.23930494487285614, 0.4929627478122711, -0.09197668731212616, 0.3947739601135254, 0.07764337956905365, 0.4207169711589813, 0.12586525082588196, 0.14843697845935822, -0.16380521655082703, 0.051290180534124374, -0.22179503738880157, 0.42096152901649475, 0.3297467827796936, -0.42524993419647217, 0.33674561977386475, -0.023457061499357224, -0.07366517931222916, 0.29997462034225464, -0.17853711545467377, 0.0922861099243164, 0.19771897792816162, 0.03467298299074173, -0.21669861674308777, -0.18441878259181976, 0.5487858653068542, -0.12987181544303894, -0.05295676365494728, 0.5203568935394287, -0.16045396029949188, 0.1981622278690338, 0.16577214002609253, -0.10996890068054199, 0.09807735681533813, 0.48828238248825073, 0.26390448212623596, 0.23446811735630035, -0.1994370073080063, 0.17692580819129944, 0.011699005961418152, -0.1040339469909668, 0.290546178817749, 0.33436793088912964, -0.22490763664245605, 0.28656086325645447, 0.15645334124565125, 0.1971571445465088, 0.030827421694993973, -0.47818523645401, 0.1789991706609726, -0.06135079264640808, 0.004539690911769867, 0.08144931495189667, 0.09802296757698059, 0.15060430765151978, -0.3145488500595093, -0.09474243223667145, -0.1896892637014389, 0.10003727674484253, -0.21934127807617188, 0.07154616713523865, -0.11868511885404587, -0.18575675785541534, -0.4143644869327545, -0.007867619395256042, -0.03865278139710426, 0.10649802535772324, -0.0782325267791748, 0.3747827410697937, -0.39499014616012573, -0.17219920456409454, 0.05795837938785553, 0.25048691034317017, 0.13988372683525085, -0.26690906286239624, 0.5044804215431213, 0.023042701184749603, -0.23467814922332764, 0.11686119437217712, -0.03686005622148514, 0.4507049024105072, 0.3364996016025543, -0.28818440437316895, -0.13622339069843292, 0.31189343333244324, -0.13215135037899017, -0.10821327567100525, 0.2878701984882355, 0.27137506008148193, 0.3781431317329407, 0.3260469138622284, 0.040670715272426605, -0.07209920883178711, 0.08716385066509247, 0.3082647919654846, 0.2477109283208847, -0.09598475694656372, 0.19805368781089783, -0.23019754886627197, 0.2463148832321167, -0.2612815201282501, -0.08384016901254654, -0.482416033744812, 0.14138509333133698, -0.17735710740089417, 0.022060420364141464, 0.1417568027973175, -0.026850607246160507, -0.030918505042791367, -0.011056981980800629, 0.016871362924575806, 0.21333304047584534, 0.06589904427528381, -0.09116280823945999, 0.07347176969051361, -0.3752687871456146, 0.21881075203418732, 0.032710716128349304, -0.09668678790330887, -0.2285114824771881, -0.018997984007000923, 0.19589945673942566, 0.29297977685928345, 0.10339833050966263, 0.22639411687850952, 0.3165779113769531, 0.23325052857398987, -0.4197307825088501, -0.43725109100341797, 0.23319734632968903, 0.07000135630369186, -0.11042331159114838, -0.5097913146018982, -0.05116397514939308, -0.04513981565833092, -0.14607509970664978, 0.13461662828922272, -0.5007230043411255, -0.1408400535583496, -0.5425394773483276, 0.39529743790626526, 0.053273752331733704, 0.5423165559768677, 0.018480941653251648, -0.12498985975980759, 0.05275337025523186, -0.24846266210079193, 0.03704215586185455, 0.17613700032234192, 0.30437037348747253, 0.6286939382553101, -0.2470417618751526, 0.30517080426216125, -0.4024548828601837, 0.2693585753440857, -0.002433519810438156, 0.020657360553741455, -0.2890010476112366, 0.11029320955276489, -0.09481114149093628, -0.05125486105680466, -0.009607112035155296, 0.03442036360502243, -0.07769294083118439, 0.11314718425273895, -0.23678074777126312, 0.043964602053165436, 0.3486161231994629, -0.14505775272846222, -0.4393410086631775, -0.14647400379180908, 0.019598864018917084, 0.0932890996336937, 0.006479096598923206, -0.15735897421836853, 0.13317084312438965, 0.27888956665992737, -0.1554514467716217, -0.06194228306412697, -0.046050459146499634, 0.21790103614330292, -0.10963574051856995, -0.17502109706401825, 0.08784938603639603, 0.03479438275098801, 0.025920236483216286, 0.2666219174861908, -0.13914746046066284 ]
https://github.com/huggingface/datasets/issues/4062
Loading mozilla-foundation/common_voice_7_0 dataset failed
Hi @ngoquanghuy99! The dataset should load fine if you go through the following steps: 1. Go to https://huggingface.co/datasets/mozilla-foundation/common_voice_9_0 and click "Access repository" if you see a message about sharing your contact information with Mozilla Foundation at the top of the page. If you've already done that then skip to step 2. 2. Run the command `huggingface-cli login` in your terminal or notebook to authenticate your machine. 3. Load the dataset with `use_auth_token=True`: ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_9_0", "ab", use_auth_token=True) ```
## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5
83
Loading mozilla-foundation/common_voice_7_0 dataset failed ## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5 Hi @ngoquanghuy99! The dataset should load fine if you go through the following steps: 1. Go to https://huggingface.co/datasets/mozilla-foundation/common_voice_9_0 and click "Access repository" if you see a message about sharing your contact information with Mozilla Foundation at the top of the page. If you've already done that then skip to step 2. 2. Run the command `huggingface-cli login` in your terminal or notebook to authenticate your machine. 3. Load the dataset with `use_auth_token=True`: ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_9_0", "ab", use_auth_token=True) ```
[ -0.17519697546958923, -0.16184823215007782, -0.01651023142039776, 0.4844568371772766, 0.1696993112564087, -0.16959765553474426, 0.3660568296909332, 0.2703648507595062, 0.09576752781867981, 0.20071280002593994, -0.2335406243801117, 0.7396361827850342, 0.1339329481124878, -0.03389794006943703, -0.49815741181373596, -0.014100514352321625, -0.05656685680150986, 0.25375640392303467, 0.5223562121391296, -0.07576215267181396, -0.15330027043819427, 0.4438350796699524, -0.4333692193031311, 0.024107083678245544, -0.25638237595558167, -0.10849449783563614, 0.00424201600253582, 0.28697776794433594, 0.014083456248044968, -0.18530037999153137, 0.38327479362487793, -0.08025029301643372, 0.106022410094738, 0.5047561526298523, -0.00012608140241354704, 0.11236871778964996, 0.5733118653297424, -0.304517924785614, -0.41103342175483704, -0.39715731143951416, -0.5319541096687317, 0.05225786566734314, -0.19388535618782043, -0.19527432322502136, 0.01386278122663498, 0.010713430121541023, -0.26270100474357605, -0.5370029211044312, 0.4213542938232422, 0.3059816360473633, 0.06437352299690247, -0.2942487597465515, -0.14170299470424652, 0.39899352192878723, 0.25898152589797974, 0.3365604877471924, -0.03498895466327667, 0.2942298948764801, 0.2875884175300598, -0.05594223737716675, 0.019970856606960297, 0.23616217076778412, -0.1212271898984909, -0.10889588296413422, -0.17782911658287048, 0.06458175182342529, -0.17084935307502747, -0.4631035029888153, 0.31189867854118347, 0.1909283995628357, 0.3432522714138031, -0.034205950796604156, -0.360567182302475, -0.19193047285079956, 0.18172799050807953, -0.1701170802116394, 0.28902468085289, 0.25317370891571045, -0.30233728885650635, 0.2167758047580719, 0.2104204148054123, -0.12349863350391388, -0.03454255685210228, 0.15620321035385132, -0.30984386801719666, 0.8177628517150879, -0.09265425056219101, 0.0690387636423111, 0.06971174478530884, -0.07312128692865372, 0.25120946764945984, -0.06261513382196426, -0.33823004364967346, 0.07743258774280548, -0.07370834052562714, -0.03062664158642292, -0.2561521530151367, -0.3537360727787018, 0.1528184413909912, -0.24292542040348053, 0.16830338537693024, 0.047452956438064575, -0.2823125123977661, 0.1396792232990265, 0.3570430278778076, 0.29798269271850586, 0.30182966589927673, 0.15220651030540466, 0.3835258483886719, 0.3126688599586487, 0.05231700465083122, 0.1026887521147728, -0.2170577049255371, 0.1913958340883255, -0.15979553759098053, 0.14370396733283997, 0.22629116475582123, -0.3688647747039795, -0.48434990644454956, 0.010647445917129517, -0.5394700169563293, -0.22982822358608246, -0.0029890192672610283, 0.4961341321468353, -0.05819108709692955, 0.5016402006149292, -0.21879616379737854, 0.3897240161895752, -0.17626747488975525, -0.5105138421058655, 0.024111047387123108, 0.052211761474609375, -0.1494760513305664, -0.05753874033689499, 0.15932044386863708, -0.05752723291516304, 0.2940520942211151, -0.23058627545833588, 0.040141962468624115, -0.38791215419769287, -0.01730864681303501, -0.3002840280532837, -0.028010576963424683, 0.16197635233402252, 0.12875895202159882, 0.09682358801364899, 0.23234368860721588, -0.38580209016799927, -0.12342765927314758, 0.37822550535202026, -0.4058009684085846, -0.22187958657741547, -0.07071726769208908, 0.04707074537873268, -0.1863936334848404, -0.03938648849725723, -0.2719596326351166, 0.26672637462615967, 0.2987605333328247, -0.25347065925598145, 0.02169300615787506, -0.10832390189170837, -0.33601438999176025, -0.1283683180809021, 0.22858870029449463, 0.601514995098114, -0.3301182985305786, -0.2288457304239273, -0.13374124467372894, 0.21151526272296906, 0.3574313223361969, 0.115414097905159, -0.17049501836299896, 0.1265755593776703, -0.18783698976039886, 0.2938362956047058, 0.61262446641922, -0.2521319091320038, -0.5897320508956909, 0.43627890944480896, -0.06076720356941223, 0.342641144990921, 0.08794629573822021, -0.10229720920324326, -0.08504319936037064, 0.03454887494444847, 0.6114612817764282, 0.31443291902542114, -0.11017479002475739, 0.15919595956802368, -0.25815874338150024, -0.3673643171787262, 0.43328720331192017, 0.34230783581733704, 0.16642627120018005, -0.08175217360258102, 0.17275893688201904, -0.0941372662782669, 0.19590044021606445, -0.2402772605419159, -0.1780625283718109, 0.12666641175746918, 0.2968129515647888, -0.02621549367904663, 0.12957704067230225, 0.0699564665555954, -0.3531618118286133, 0.2276879847049713, -0.01307215541601181, 0.03346128761768341, -0.3829690217971802, -0.008652446791529655, -0.3216807246208191, 0.08872726559638977, -0.29638728499412537, -0.22207993268966675, -0.017450306564569473, 0.32312047481536865, -0.07469527423381805, 0.19732096791267395, -0.12903764843940735, 0.6577111482620239, 0.016852056607604027, -0.00021549704251810908, -0.33319661021232605, 0.41145819425582886, -0.11433086544275284, -0.27295437455177307, -0.08776017278432846, 0.23635342717170715, 0.16032996773719788, -0.08741039037704468, -0.3506898581981659, 0.08982229977846146, 0.4213448762893677, 0.014459073543548584, 0.10662432014942169, -0.3811300992965698, 0.32607680559158325, -0.17134825885295868, 0.24724864959716797, 0.3923109769821167, 0.19391581416130066, 0.014490246772766113, 0.19008174538612366, 0.43950241804122925, -0.009834811091423035, 0.08341004699468613, -0.03884085267782211, -0.17710401117801666, 0.34750714898109436, 0.042896632105112076, -0.006081066094338894, -0.16881677508354187, 0.22659066319465637, -0.2462988942861557, -0.0022355057299137115, 0.09777909517288208, -0.32125335931777954, -0.003261253237724304, 0.6736798882484436, -0.06580676138401031, 0.3395073115825653, 0.13153675198554993, -0.06572011858224869, -0.15047687292099, 0.22040317952632904, 0.009956683963537216, 0.4776389002799988, 0.11174806207418442, -0.1794634461402893, -0.05502597987651825, 0.2230033278465271, -0.10054682940244675, 0.22697412967681885, 0.04950860142707825, 0.26236850023269653, 0.41878965497016907, 0.1854909211397171, -0.022456850856542587, -0.16114158928394318, -0.6833887696266174, -0.029254471883177757, 0.2878881096839905, -0.28306445479393005, 0.1821848601102829, -0.2930603325366974, -0.04264019802212715, -0.016314581036567688, -0.0585859976708889, -0.21979784965515137, -0.29319310188293457, -0.025372900068759918, 0.18014785647392273, 0.0892217755317688, 0.051644355058670044, -0.3591062128543854, 0.19497480988502502, 0.06815668195486069, -0.07191994041204453, -0.3168775737285614, -0.27247855067253113, -0.47007107734680176, -0.1336495727300644, 0.3395412564277649, 0.11022096872329712, -0.2350599616765976, -0.43428343534469604, -0.2806105613708496, 0.28759142756462097, -0.1936107575893402, 0.26837629079818726, -0.14485907554626465, 0.15305089950561523, -0.21489596366882324, -0.01171451061964035, 0.07666721194982529, -0.2088644653558731, 0.07870317250490189, 0.19014213979244232, -0.34768810868263245, 0.3216950297355652, 0.1114216223359108, 0.10598757863044739, -0.1565353274345398, -0.36071908473968506, -0.32485800981521606, -0.4031400680541992, -0.043134428560733795, -0.3938179612159729, 0.04631257802248001, 0.08488643169403076, -0.00021686218678951263, 0.03316812962293625, -0.03179517015814781, 0.1845683455467224, -0.3048206567764282, 0.06727506220340729, 0.2734379768371582, 0.09424006193876266, -0.04534463211894035, 0.09628313779830933, -0.14350557327270508, 0.07951432466506958, -0.07819244265556335, -0.4404274821281433, -0.014948450028896332, -0.008766697719693184, 0.19577333331108093, -0.545333981513977, -0.16479869186878204, 0.09221987426280975, 0.24034415185451508, 0.2355385273694992, -0.10134107619524002, -0.18236149847507477, -0.12692365050315857, 0.1914260983467102, 0.21361984312534332, 0.04635853320360184, 0.2585151195526123, -0.07089023292064667, 0.5902408361434937, 0.2240222692489624, -0.00798296183347702, 0.2602725327014923, 0.05326578766107559, 0.05776002258062363, -0.0402413010597229, -0.3132263720035553, 0.0033074819948524237, 0.047339558601379395, -0.13254523277282715, 0.41179078817367554, -0.14528301358222961, -0.539018452167511, -0.37716883420944214, -0.3475438356399536, -0.3139491081237793, -0.206557959318161, 0.30851107835769653, -0.18435977399349213, -0.2106281816959381, -0.11025659739971161, 0.2975829541683197, 0.005203051492571831, 0.038981083780527115, -0.021562188863754272, 0.15455640852451324, -0.1205921545624733, -0.1406126171350479, 0.26966553926467896, -0.42248475551605225, -0.23038789629936218, 0.4002434015274048, 0.4483719766139984, 0.43075090646743774, -0.06884242594242096, -0.049302637577056885, 0.04479314759373665, -0.29501423239707947, 0.48502105474472046, -0.2411068230867386, 0.04474829137325287, 0.23086431622505188, 0.016365457326173782, -0.07071297615766525, -0.05640465021133423, -0.1779632419347763, 0.2567773759365082, 0.3393170237541199, 0.16430547833442688, -0.17685486376285553, -0.005305308848619461, 0.007917182520031929, 0.13517537713050842, -0.06851468235254288, -0.13049954175949097, -0.3793390095233917, -0.31112414598464966, -0.33718767762184143, 0.05105631425976753, -0.0805707797408104, 0.2274009883403778, -0.14841380715370178, -0.06498411297798157, 0.0875697135925293, -0.17295989394187927, 0.0037218257784843445, 0.4278794825077057, 0.1216009184718132, -0.16000042855739594, 0.09222067892551422, -0.05637161433696747, 0.20134671032428741, 0.36566096544265747, 0.8015766143798828, 0.42667657136917114, -0.4130863547325134, 0.10062400996685028, -0.15236471593379974, 0.17182457447052002, 0.31417059898376465, -0.012552850879728794, -0.3019680976867676, -0.0885179340839386, 0.1043282076716423, 0.1751483529806137, -0.05242105573415756, 0.20363132655620575, 0.02247036248445511, -0.5311116576194763, -0.13929609954357147, 0.026253100484609604, -0.07001838833093643, -0.039660919457674026, 0.3088882267475128, -0.1074446588754654, -0.26099881529808044, 0.35895001888275146, -0.1112653836607933, 1.13139808177948, 0.32529741525650024, 0.10319595038890839, 0.4080827534198761, 0.03631742298603058, 0.13395458459854126, -0.6340707540512085, 0.18177515268325806, -0.1757006198167801, -0.24839024245738983, -0.09190975874662399, -0.032663583755493164, 0.19277474284172058, 0.05501963570713997, -0.4069863557815552, 0.27627068758010864, -0.1384757161140442, -0.20867249369621277, 0.15749989449977875, 0.07390878349542618, -0.4140239953994751, -0.12638667225837708, -0.34637072682380676, -0.06743688136339188, -0.3450584411621094, 0.39947065711021423, 0.040510281920433044, -0.08957784622907639, -0.5995991826057434, -0.20668631792068481, -0.1667819321155548, 0.4781196415424347, -0.1057092621922493, 0.08334823697805405, -0.03189714625477791, -0.011854097247123718, 0.3167767822742462, 0.22889387607574463, 0.29524487257003784, 0.1782429814338684, -0.09271428734064102, 0.15974801778793335, 0.18933187425136566, 0.18133850395679474, 0.09090185165405273, -0.10181522369384766, 0.2091786414384842, 0.036091893911361694, -0.3394269347190857, 0.05581098794937134, -0.16554373502731323, -0.04946044087409973, 0.08942857384681702, 0.13507401943206787, -0.06642712652683258, -0.15703198313713074, -0.03671632334589958, 0.23378603160381317, 0.34882667660713196, -0.10526111721992493, 0.014220653101801872, 0.3045819401741028, -0.32515260577201843, -0.04236658662557602, -0.09765687584877014, -0.39568889141082764, -0.10145217180252075, 0.28396356105804443, 0.1580289751291275, 0.02551409602165222, 0.45644018054008484, -0.12903158366680145, -0.096866175532341, -0.19240206480026245, 0.10837473720312119, -0.07271275669336319, -0.41078734397888184, -0.0461324043571949, -0.20471243560314178, -0.25724542140960693, -0.2998632788658142, 0.42260193824768066, 0.06739307940006256, 0.33755359053611755, 0.0250786654651165, -0.5421701073646545, -0.1617407351732254, 0.25955069065093994, 0.12639789283275604, -0.049037251621484756, 0.1995353400707245, -0.2385660856962204, -0.18691489100456238, -0.10526548326015472, -0.13078585267066956, 0.08543530106544495, -0.2237636297941208, 0.04375544190406799, 0.12442868202924728, 0.004707753658294678, 0.29970136284828186, 0.008309463039040565, 0.033544525504112244, 0.09055202454328537, 0.23544861376285553, -0.06320884823799133, -0.15316252410411835, 0.22418999671936035, 0.024747934192419052, -0.03345832973718643, -0.18283173441886902, -0.241261288523674, -0.088350310921669, -0.12024654448032379, 0.18941698968410492, 0.08478114753961563, 0.13061991333961487, 0.1556294560432434, 0.058197494596242905, 0.2289412021636963, -0.23930494487285614, 0.4929627478122711, -0.09197668731212616, 0.3947739601135254, 0.07764337956905365, 0.4207169711589813, 0.12586525082588196, 0.14843697845935822, -0.16380521655082703, 0.051290180534124374, -0.22179503738880157, 0.42096152901649475, 0.3297467827796936, -0.42524993419647217, 0.33674561977386475, -0.023457061499357224, -0.07366517931222916, 0.29997462034225464, -0.17853711545467377, 0.0922861099243164, 0.19771897792816162, 0.03467298299074173, -0.21669861674308777, -0.18441878259181976, 0.5487858653068542, -0.12987181544303894, -0.05295676365494728, 0.5203568935394287, -0.16045396029949188, 0.1981622278690338, 0.16577214002609253, -0.10996890068054199, 0.09807735681533813, 0.48828238248825073, 0.26390448212623596, 0.23446811735630035, -0.1994370073080063, 0.17692580819129944, 0.011699005961418152, -0.1040339469909668, 0.290546178817749, 0.33436793088912964, -0.22490763664245605, 0.28656086325645447, 0.15645334124565125, 0.1971571445465088, 0.030827421694993973, -0.47818523645401, 0.1789991706609726, -0.06135079264640808, 0.004539690911769867, 0.08144931495189667, 0.09802296757698059, 0.15060430765151978, -0.3145488500595093, -0.09474243223667145, -0.1896892637014389, 0.10003727674484253, -0.21934127807617188, 0.07154616713523865, -0.11868511885404587, -0.18575675785541534, -0.4143644869327545, -0.007867619395256042, -0.03865278139710426, 0.10649802535772324, -0.0782325267791748, 0.3747827410697937, -0.39499014616012573, -0.17219920456409454, 0.05795837938785553, 0.25048691034317017, 0.13988372683525085, -0.26690906286239624, 0.5044804215431213, 0.023042701184749603, -0.23467814922332764, 0.11686119437217712, -0.03686005622148514, 0.4507049024105072, 0.3364996016025543, -0.28818440437316895, -0.13622339069843292, 0.31189343333244324, -0.13215135037899017, -0.10821327567100525, 0.2878701984882355, 0.27137506008148193, 0.3781431317329407, 0.3260469138622284, 0.040670715272426605, -0.07209920883178711, 0.08716385066509247, 0.3082647919654846, 0.2477109283208847, -0.09598475694656372, 0.19805368781089783, -0.23019754886627197, 0.2463148832321167, -0.2612815201282501, -0.08384016901254654, -0.482416033744812, 0.14138509333133698, -0.17735710740089417, 0.022060420364141464, 0.1417568027973175, -0.026850607246160507, -0.030918505042791367, -0.011056981980800629, 0.016871362924575806, 0.21333304047584534, 0.06589904427528381, -0.09116280823945999, 0.07347176969051361, -0.3752687871456146, 0.21881075203418732, 0.032710716128349304, -0.09668678790330887, -0.2285114824771881, -0.018997984007000923, 0.19589945673942566, 0.29297977685928345, 0.10339833050966263, 0.22639411687850952, 0.3165779113769531, 0.23325052857398987, -0.4197307825088501, -0.43725109100341797, 0.23319734632968903, 0.07000135630369186, -0.11042331159114838, -0.5097913146018982, -0.05116397514939308, -0.04513981565833092, -0.14607509970664978, 0.13461662828922272, -0.5007230043411255, -0.1408400535583496, -0.5425394773483276, 0.39529743790626526, 0.053273752331733704, 0.5423165559768677, 0.018480941653251648, -0.12498985975980759, 0.05275337025523186, -0.24846266210079193, 0.03704215586185455, 0.17613700032234192, 0.30437037348747253, 0.6286939382553101, -0.2470417618751526, 0.30517080426216125, -0.4024548828601837, 0.2693585753440857, -0.002433519810438156, 0.020657360553741455, -0.2890010476112366, 0.11029320955276489, -0.09481114149093628, -0.05125486105680466, -0.009607112035155296, 0.03442036360502243, -0.07769294083118439, 0.11314718425273895, -0.23678074777126312, 0.043964602053165436, 0.3486161231994629, -0.14505775272846222, -0.4393410086631775, -0.14647400379180908, 0.019598864018917084, 0.0932890996336937, 0.006479096598923206, -0.15735897421836853, 0.13317084312438965, 0.27888956665992737, -0.1554514467716217, -0.06194228306412697, -0.046050459146499634, 0.21790103614330292, -0.10963574051856995, -0.17502109706401825, 0.08784938603639603, 0.03479438275098801, 0.025920236483216286, 0.2666219174861908, -0.13914746046066284 ]
https://github.com/huggingface/datasets/issues/4062
Loading mozilla-foundation/common_voice_7_0 dataset failed
> Thanks @anton-l I could load the dataset now, but in another way. Thanks anyways! Can you share the "another way" please?
## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5
22
Loading mozilla-foundation/common_voice_7_0 dataset failed ## Describe the bug I wanted to load `mozilla-foundation/common_voice_7_0` dataset with `fi` language and `test` split from datasets on Colab/Kaggle notebook, but I am getting an error `JSONDecodeError: [Errno Expecting value] Not Found: 0` while loading it. The bug seems to affect other languages and splits too than just the `fi` and `test` split. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token="YOUR TOKEN") ``` ## Expected results load `mozilla-foundation/common_voice_7_0` dataset succesfully ## Actual results ``` JSONDecodeError Traceback (most recent call last) /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 909 try: --> 910 return complexjson.loads(self.text, **kwargs) 911 except JSONDecodeError as e: /opt/conda/lib/python3.7/site-packages/simplejson/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, use_decimal, **kw) 524 and not use_decimal and not kw): --> 525 return _default_decoder.decode(s) 526 if cls is None: /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in decode(self, s, _w, _PY3) 369 s = str(s, self.encoding) --> 370 obj, end = self.raw_decode(s) 371 end = _w(s, end).end() /opt/conda/lib/python3.7/site-packages/simplejson/decoder.py in raw_decode(self, s, idx, _w, _PY3) 399 idx += 3 --> 400 return self.scan_once(s, idx=_w(s, idx).end()) JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: JSONDecodeError Traceback (most recent call last) /tmp/ipykernel_358/370980805.py in <module> 1 # load Common Voice 7.0 dataset from Huggingface with Finnish "test" split ----> 2 test_dataset = load_dataset("mozilla-foundation/common_voice_7_0", "fi", split="test", use_auth_token=True) /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1690 ignore_verifications=ignore_verifications, 1691 try_from_hf_gcs=try_from_hf_gcs, -> 1692 use_auth_token=use_auth_token, 1693 ) 1694 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 670 split_dict = SplitDict(dataset_name=self.name) 671 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 672 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 673 674 # Checksums verification ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _split_generators(self, dl_manager) 151 152 self._log_download(self.config.name, bundle_version, hf_auth_token) --> 153 archive = dl_manager.download(self._get_bundle_url(self.config.name, bundle_url_template)) 154 155 if self.config.version < datasets.Version("5.0.0"): ~/.cache/huggingface/modules/datasets_modules/datasets/mozilla-foundation--common_voice_7_0/fe20cac47c166e25b1f096ab661832e3da7cf298ed4a91dcaa1343ad972d175b/common_voice_7_0.py in _get_bundle_url(self, locale, url_template) 130 path = urllib.parse.quote(path.encode("utf-8"), safe="~()*!.'") 131 use_cdn = self.config.size_bytes < 20 * 1024 * 1024 * 1024 --> 132 response = requests.get(f"{_API_URL}/bucket/dataset/{path}/{use_cdn}", timeout=10.0).json() 133 return response["url"] 134 /opt/conda/lib/python3.7/site-packages/requests/models.py in json(self, **kwargs) 915 raise RequestsJSONDecodeError(e.message) 916 else: --> 917 raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) 918 919 @property JSONDecodeError: [Errno Expecting value] Not Found: 0 ``` ## Environment info - `datasets` version: 2.0.0 - Platform: Linux-5.10.90+-x86_64-with-debian-bullseye-sid - Python version: 3.7.12 - PyArrow version: 5.0.0 - Pandas version: 1.3.5 > Thanks @anton-l I could load the dataset now, but in another way. Thanks anyways! Can you share the "another way" please?
[ -0.17519697546958923, -0.16184823215007782, -0.01651023142039776, 0.4844568371772766, 0.1696993112564087, -0.16959765553474426, 0.3660568296909332, 0.2703648507595062, 0.09576752781867981, 0.20071280002593994, -0.2335406243801117, 0.7396361827850342, 0.1339329481124878, -0.03389794006943703, -0.49815741181373596, -0.014100514352321625, -0.05656685680150986, 0.25375640392303467, 0.5223562121391296, -0.07576215267181396, -0.15330027043819427, 0.4438350796699524, -0.4333692193031311, 0.024107083678245544, -0.25638237595558167, -0.10849449783563614, 0.00424201600253582, 0.28697776794433594, 0.014083456248044968, -0.18530037999153137, 0.38327479362487793, -0.08025029301643372, 0.106022410094738, 0.5047561526298523, -0.00012608140241354704, 0.11236871778964996, 0.5733118653297424, -0.304517924785614, -0.41103342175483704, -0.39715731143951416, -0.5319541096687317, 0.05225786566734314, -0.19388535618782043, -0.19527432322502136, 0.01386278122663498, 0.010713430121541023, -0.26270100474357605, -0.5370029211044312, 0.4213542938232422, 0.3059816360473633, 0.06437352299690247, -0.2942487597465515, -0.14170299470424652, 0.39899352192878723, 0.25898152589797974, 0.3365604877471924, -0.03498895466327667, 0.2942298948764801, 0.2875884175300598, -0.05594223737716675, 0.019970856606960297, 0.23616217076778412, -0.1212271898984909, -0.10889588296413422, -0.17782911658287048, 0.06458175182342529, -0.17084935307502747, -0.4631035029888153, 0.31189867854118347, 0.1909283995628357, 0.3432522714138031, -0.034205950796604156, -0.360567182302475, -0.19193047285079956, 0.18172799050807953, -0.1701170802116394, 0.28902468085289, 0.25317370891571045, -0.30233728885650635, 0.2167758047580719, 0.2104204148054123, -0.12349863350391388, -0.03454255685210228, 0.15620321035385132, -0.30984386801719666, 0.8177628517150879, -0.09265425056219101, 0.0690387636423111, 0.06971174478530884, -0.07312128692865372, 0.25120946764945984, -0.06261513382196426, -0.33823004364967346, 0.07743258774280548, -0.07370834052562714, -0.03062664158642292, -0.2561521530151367, -0.3537360727787018, 0.1528184413909912, -0.24292542040348053, 0.16830338537693024, 0.047452956438064575, -0.2823125123977661, 0.1396792232990265, 0.3570430278778076, 0.29798269271850586, 0.30182966589927673, 0.15220651030540466, 0.3835258483886719, 0.3126688599586487, 0.05231700465083122, 0.1026887521147728, -0.2170577049255371, 0.1913958340883255, -0.15979553759098053, 0.14370396733283997, 0.22629116475582123, -0.3688647747039795, -0.48434990644454956, 0.010647445917129517, -0.5394700169563293, -0.22982822358608246, -0.0029890192672610283, 0.4961341321468353, -0.05819108709692955, 0.5016402006149292, -0.21879616379737854, 0.3897240161895752, -0.17626747488975525, -0.5105138421058655, 0.024111047387123108, 0.052211761474609375, -0.1494760513305664, -0.05753874033689499, 0.15932044386863708, -0.05752723291516304, 0.2940520942211151, -0.23058627545833588, 0.040141962468624115, -0.38791215419769287, -0.01730864681303501, -0.3002840280532837, -0.028010576963424683, 0.16197635233402252, 0.12875895202159882, 0.09682358801364899, 0.23234368860721588, -0.38580209016799927, -0.12342765927314758, 0.37822550535202026, -0.4058009684085846, -0.22187958657741547, -0.07071726769208908, 0.04707074537873268, -0.1863936334848404, -0.03938648849725723, -0.2719596326351166, 0.26672637462615967, 0.2987605333328247, -0.25347065925598145, 0.02169300615787506, -0.10832390189170837, -0.33601438999176025, -0.1283683180809021, 0.22858870029449463, 0.601514995098114, -0.3301182985305786, -0.2288457304239273, -0.13374124467372894, 0.21151526272296906, 0.3574313223361969, 0.115414097905159, -0.17049501836299896, 0.1265755593776703, -0.18783698976039886, 0.2938362956047058, 0.61262446641922, -0.2521319091320038, -0.5897320508956909, 0.43627890944480896, -0.06076720356941223, 0.342641144990921, 0.08794629573822021, -0.10229720920324326, -0.08504319936037064, 0.03454887494444847, 0.6114612817764282, 0.31443291902542114, -0.11017479002475739, 0.15919595956802368, -0.25815874338150024, -0.3673643171787262, 0.43328720331192017, 0.34230783581733704, 0.16642627120018005, -0.08175217360258102, 0.17275893688201904, -0.0941372662782669, 0.19590044021606445, -0.2402772605419159, -0.1780625283718109, 0.12666641175746918, 0.2968129515647888, -0.02621549367904663, 0.12957704067230225, 0.0699564665555954, -0.3531618118286133, 0.2276879847049713, -0.01307215541601181, 0.03346128761768341, -0.3829690217971802, -0.008652446791529655, -0.3216807246208191, 0.08872726559638977, -0.29638728499412537, -0.22207993268966675, -0.017450306564569473, 0.32312047481536865, -0.07469527423381805, 0.19732096791267395, -0.12903764843940735, 0.6577111482620239, 0.016852056607604027, -0.00021549704251810908, -0.33319661021232605, 0.41145819425582886, -0.11433086544275284, -0.27295437455177307, -0.08776017278432846, 0.23635342717170715, 0.16032996773719788, -0.08741039037704468, -0.3506898581981659, 0.08982229977846146, 0.4213448762893677, 0.014459073543548584, 0.10662432014942169, -0.3811300992965698, 0.32607680559158325, -0.17134825885295868, 0.24724864959716797, 0.3923109769821167, 0.19391581416130066, 0.014490246772766113, 0.19008174538612366, 0.43950241804122925, -0.009834811091423035, 0.08341004699468613, -0.03884085267782211, -0.17710401117801666, 0.34750714898109436, 0.042896632105112076, -0.006081066094338894, -0.16881677508354187, 0.22659066319465637, -0.2462988942861557, -0.0022355057299137115, 0.09777909517288208, -0.32125335931777954, -0.003261253237724304, 0.6736798882484436, -0.06580676138401031, 0.3395073115825653, 0.13153675198554993, -0.06572011858224869, -0.15047687292099, 0.22040317952632904, 0.009956683963537216, 0.4776389002799988, 0.11174806207418442, -0.1794634461402893, -0.05502597987651825, 0.2230033278465271, -0.10054682940244675, 0.22697412967681885, 0.04950860142707825, 0.26236850023269653, 0.41878965497016907, 0.1854909211397171, -0.022456850856542587, -0.16114158928394318, -0.6833887696266174, -0.029254471883177757, 0.2878881096839905, -0.28306445479393005, 0.1821848601102829, -0.2930603325366974, -0.04264019802212715, -0.016314581036567688, -0.0585859976708889, -0.21979784965515137, -0.29319310188293457, -0.025372900068759918, 0.18014785647392273, 0.0892217755317688, 0.051644355058670044, -0.3591062128543854, 0.19497480988502502, 0.06815668195486069, -0.07191994041204453, -0.3168775737285614, -0.27247855067253113, -0.47007107734680176, -0.1336495727300644, 0.3395412564277649, 0.11022096872329712, -0.2350599616765976, -0.43428343534469604, -0.2806105613708496, 0.28759142756462097, -0.1936107575893402, 0.26837629079818726, -0.14485907554626465, 0.15305089950561523, -0.21489596366882324, -0.01171451061964035, 0.07666721194982529, -0.2088644653558731, 0.07870317250490189, 0.19014213979244232, -0.34768810868263245, 0.3216950297355652, 0.1114216223359108, 0.10598757863044739, -0.1565353274345398, -0.36071908473968506, -0.32485800981521606, -0.4031400680541992, -0.043134428560733795, -0.3938179612159729, 0.04631257802248001, 0.08488643169403076, -0.00021686218678951263, 0.03316812962293625, -0.03179517015814781, 0.1845683455467224, -0.3048206567764282, 0.06727506220340729, 0.2734379768371582, 0.09424006193876266, -0.04534463211894035, 0.09628313779830933, -0.14350557327270508, 0.07951432466506958, -0.07819244265556335, -0.4404274821281433, -0.014948450028896332, -0.008766697719693184, 0.19577333331108093, -0.545333981513977, -0.16479869186878204, 0.09221987426280975, 0.24034415185451508, 0.2355385273694992, -0.10134107619524002, -0.18236149847507477, -0.12692365050315857, 0.1914260983467102, 0.21361984312534332, 0.04635853320360184, 0.2585151195526123, -0.07089023292064667, 0.5902408361434937, 0.2240222692489624, -0.00798296183347702, 0.2602725327014923, 0.05326578766107559, 0.05776002258062363, -0.0402413010597229, -0.3132263720035553, 0.0033074819948524237, 0.047339558601379395, -0.13254523277282715, 0.41179078817367554, -0.14528301358222961, -0.539018452167511, -0.37716883420944214, -0.3475438356399536, -0.3139491081237793, -0.206557959318161, 0.30851107835769653, -0.18435977399349213, -0.2106281816959381, -0.11025659739971161, 0.2975829541683197, 0.005203051492571831, 0.038981083780527115, -0.021562188863754272, 0.15455640852451324, -0.1205921545624733, -0.1406126171350479, 0.26966553926467896, -0.42248475551605225, -0.23038789629936218, 0.4002434015274048, 0.4483719766139984, 0.43075090646743774, -0.06884242594242096, -0.049302637577056885, 0.04479314759373665, -0.29501423239707947, 0.48502105474472046, -0.2411068230867386, 0.04474829137325287, 0.23086431622505188, 0.016365457326173782, -0.07071297615766525, -0.05640465021133423, -0.1779632419347763, 0.2567773759365082, 0.3393170237541199, 0.16430547833442688, -0.17685486376285553, -0.005305308848619461, 0.007917182520031929, 0.13517537713050842, -0.06851468235254288, -0.13049954175949097, -0.3793390095233917, -0.31112414598464966, -0.33718767762184143, 0.05105631425976753, -0.0805707797408104, 0.2274009883403778, -0.14841380715370178, -0.06498411297798157, 0.0875697135925293, -0.17295989394187927, 0.0037218257784843445, 0.4278794825077057, 0.1216009184718132, -0.16000042855739594, 0.09222067892551422, -0.05637161433696747, 0.20134671032428741, 0.36566096544265747, 0.8015766143798828, 0.42667657136917114, -0.4130863547325134, 0.10062400996685028, -0.15236471593379974, 0.17182457447052002, 0.31417059898376465, -0.012552850879728794, -0.3019680976867676, -0.0885179340839386, 0.1043282076716423, 0.1751483529806137, -0.05242105573415756, 0.20363132655620575, 0.02247036248445511, -0.5311116576194763, -0.13929609954357147, 0.026253100484609604, -0.07001838833093643, -0.039660919457674026, 0.3088882267475128, -0.1074446588754654, -0.26099881529808044, 0.35895001888275146, -0.1112653836607933, 1.13139808177948, 0.32529741525650024, 0.10319595038890839, 0.4080827534198761, 0.03631742298603058, 0.13395458459854126, -0.6340707540512085, 0.18177515268325806, -0.1757006198167801, -0.24839024245738983, -0.09190975874662399, -0.032663583755493164, 0.19277474284172058, 0.05501963570713997, -0.4069863557815552, 0.27627068758010864, -0.1384757161140442, -0.20867249369621277, 0.15749989449977875, 0.07390878349542618, -0.4140239953994751, -0.12638667225837708, -0.34637072682380676, -0.06743688136339188, -0.3450584411621094, 0.39947065711021423, 0.040510281920433044, -0.08957784622907639, -0.5995991826057434, -0.20668631792068481, -0.1667819321155548, 0.4781196415424347, -0.1057092621922493, 0.08334823697805405, -0.03189714625477791, -0.011854097247123718, 0.3167767822742462, 0.22889387607574463, 0.29524487257003784, 0.1782429814338684, -0.09271428734064102, 0.15974801778793335, 0.18933187425136566, 0.18133850395679474, 0.09090185165405273, -0.10181522369384766, 0.2091786414384842, 0.036091893911361694, -0.3394269347190857, 0.05581098794937134, -0.16554373502731323, -0.04946044087409973, 0.08942857384681702, 0.13507401943206787, -0.06642712652683258, -0.15703198313713074, -0.03671632334589958, 0.23378603160381317, 0.34882667660713196, -0.10526111721992493, 0.014220653101801872, 0.3045819401741028, -0.32515260577201843, -0.04236658662557602, -0.09765687584877014, -0.39568889141082764, -0.10145217180252075, 0.28396356105804443, 0.1580289751291275, 0.02551409602165222, 0.45644018054008484, -0.12903158366680145, -0.096866175532341, -0.19240206480026245, 0.10837473720312119, -0.07271275669336319, -0.41078734397888184, -0.0461324043571949, -0.20471243560314178, -0.25724542140960693, -0.2998632788658142, 0.42260193824768066, 0.06739307940006256, 0.33755359053611755, 0.0250786654651165, -0.5421701073646545, -0.1617407351732254, 0.25955069065093994, 0.12639789283275604, -0.049037251621484756, 0.1995353400707245, -0.2385660856962204, -0.18691489100456238, -0.10526548326015472, -0.13078585267066956, 0.08543530106544495, -0.2237636297941208, 0.04375544190406799, 0.12442868202924728, 0.004707753658294678, 0.29970136284828186, 0.008309463039040565, 0.033544525504112244, 0.09055202454328537, 0.23544861376285553, -0.06320884823799133, -0.15316252410411835, 0.22418999671936035, 0.024747934192419052, -0.03345832973718643, -0.18283173441886902, -0.241261288523674, -0.088350310921669, -0.12024654448032379, 0.18941698968410492, 0.08478114753961563, 0.13061991333961487, 0.1556294560432434, 0.058197494596242905, 0.2289412021636963, -0.23930494487285614, 0.4929627478122711, -0.09197668731212616, 0.3947739601135254, 0.07764337956905365, 0.4207169711589813, 0.12586525082588196, 0.14843697845935822, -0.16380521655082703, 0.051290180534124374, -0.22179503738880157, 0.42096152901649475, 0.3297467827796936, -0.42524993419647217, 0.33674561977386475, -0.023457061499357224, -0.07366517931222916, 0.29997462034225464, -0.17853711545467377, 0.0922861099243164, 0.19771897792816162, 0.03467298299074173, -0.21669861674308777, -0.18441878259181976, 0.5487858653068542, -0.12987181544303894, -0.05295676365494728, 0.5203568935394287, -0.16045396029949188, 0.1981622278690338, 0.16577214002609253, -0.10996890068054199, 0.09807735681533813, 0.48828238248825073, 0.26390448212623596, 0.23446811735630035, -0.1994370073080063, 0.17692580819129944, 0.011699005961418152, -0.1040339469909668, 0.290546178817749, 0.33436793088912964, -0.22490763664245605, 0.28656086325645447, 0.15645334124565125, 0.1971571445465088, 0.030827421694993973, -0.47818523645401, 0.1789991706609726, -0.06135079264640808, 0.004539690911769867, 0.08144931495189667, 0.09802296757698059, 0.15060430765151978, -0.3145488500595093, -0.09474243223667145, -0.1896892637014389, 0.10003727674484253, -0.21934127807617188, 0.07154616713523865, -0.11868511885404587, -0.18575675785541534, -0.4143644869327545, -0.007867619395256042, -0.03865278139710426, 0.10649802535772324, -0.0782325267791748, 0.3747827410697937, -0.39499014616012573, -0.17219920456409454, 0.05795837938785553, 0.25048691034317017, 0.13988372683525085, -0.26690906286239624, 0.5044804215431213, 0.023042701184749603, -0.23467814922332764, 0.11686119437217712, -0.03686005622148514, 0.4507049024105072, 0.3364996016025543, -0.28818440437316895, -0.13622339069843292, 0.31189343333244324, -0.13215135037899017, -0.10821327567100525, 0.2878701984882355, 0.27137506008148193, 0.3781431317329407, 0.3260469138622284, 0.040670715272426605, -0.07209920883178711, 0.08716385066509247, 0.3082647919654846, 0.2477109283208847, -0.09598475694656372, 0.19805368781089783, -0.23019754886627197, 0.2463148832321167, -0.2612815201282501, -0.08384016901254654, -0.482416033744812, 0.14138509333133698, -0.17735710740089417, 0.022060420364141464, 0.1417568027973175, -0.026850607246160507, -0.030918505042791367, -0.011056981980800629, 0.016871362924575806, 0.21333304047584534, 0.06589904427528381, -0.09116280823945999, 0.07347176969051361, -0.3752687871456146, 0.21881075203418732, 0.032710716128349304, -0.09668678790330887, -0.2285114824771881, -0.018997984007000923, 0.19589945673942566, 0.29297977685928345, 0.10339833050966263, 0.22639411687850952, 0.3165779113769531, 0.23325052857398987, -0.4197307825088501, -0.43725109100341797, 0.23319734632968903, 0.07000135630369186, -0.11042331159114838, -0.5097913146018982, -0.05116397514939308, -0.04513981565833092, -0.14607509970664978, 0.13461662828922272, -0.5007230043411255, -0.1408400535583496, -0.5425394773483276, 0.39529743790626526, 0.053273752331733704, 0.5423165559768677, 0.018480941653251648, -0.12498985975980759, 0.05275337025523186, -0.24846266210079193, 0.03704215586185455, 0.17613700032234192, 0.30437037348747253, 0.6286939382553101, -0.2470417618751526, 0.30517080426216125, -0.4024548828601837, 0.2693585753440857, -0.002433519810438156, 0.020657360553741455, -0.2890010476112366, 0.11029320955276489, -0.09481114149093628, -0.05125486105680466, -0.009607112035155296, 0.03442036360502243, -0.07769294083118439, 0.11314718425273895, -0.23678074777126312, 0.043964602053165436, 0.3486161231994629, -0.14505775272846222, -0.4393410086631775, -0.14647400379180908, 0.019598864018917084, 0.0932890996336937, 0.006479096598923206, -0.15735897421836853, 0.13317084312438965, 0.27888956665992737, -0.1554514467716217, -0.06194228306412697, -0.046050459146499634, 0.21790103614330292, -0.10963574051856995, -0.17502109706401825, 0.08784938603639603, 0.03479438275098801, 0.025920236483216286, 0.2666219174861908, -0.13914746046066284 ]
https://github.com/huggingface/datasets/issues/4061
Loading cnn_dailymail dataset failed
Hi @Arij-Aladel, thanks for reporting. This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it in our 2.0.0 release. See: - #3787 Please, update your `datasets` version: ``` pip install -U datasets ``` and retry loading the dataset by forcing its redownload: ```python dataset = load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload") ```
## Describe the bug I wanted to load cnn_dailymail dataset from huggingface datasets on jupyter lab, but I am getting an error ` NotADirectoryError:[Errno20] Not a directory ` while loading it. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` ## Expected results load `cnn_dailymail` dataset succesfully ## Actual results failed to load and get error > NotADirectoryError: [Errno 20] Not a directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` 1.8.0: - Platform: Ubuntu-20.04 - Python version: 3.9.10 - PyArrow version: 3.0.0
66
Loading cnn_dailymail dataset failed ## Describe the bug I wanted to load cnn_dailymail dataset from huggingface datasets on jupyter lab, but I am getting an error ` NotADirectoryError:[Errno20] Not a directory ` while loading it. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0') ``` ## Expected results load `cnn_dailymail` dataset succesfully ## Actual results failed to load and get error > NotADirectoryError: [Errno 20] Not a directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` 1.8.0: - Platform: Ubuntu-20.04 - Python version: 3.9.10 - PyArrow version: 3.0.0 Hi @Arij-Aladel, thanks for reporting. This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We have already fixed it in our 2.0.0 release. See: - #3787 Please, update your `datasets` version: ``` pip install -U datasets ``` and retry loading the dataset by forcing its redownload: ```python dataset = load_dataset("cnn_dailymail", "3.0.0", download_mode="force_redownload") ```
[ 0.07926221191883087, 0.04761520028114319, 0.06616324186325073, 0.2864683270454407, 0.21743857860565186, 0.022044450044631958, 0.6165335774421692, -0.0665949136018753, 0.08026498556137085, 0.3715788722038269, -0.18719516694545746, 0.037683140486478806, -0.3215869665145874, 0.14479435980319977, -0.06836432963609695, -0.0554603636264801, 0.0013137981295585632, 0.009666718542575836, 0.07161998748779297, -0.05115843191742897, -0.26540642976760864, 0.45384639501571655, -0.21079233288764954, 0.04632525146007538, -0.46017172932624817, 0.09378533065319061, -0.07211844623088837, 0.430727481842041, 0.046984437853097916, -0.17513975501060486, 0.2146833837032318, -0.09667891263961792, 0.2724711000919342, 0.7433498501777649, -0.0001288118219235912, 0.17180967330932617, 0.38444024324417114, -0.10723184049129486, -0.5553450584411621, -0.3558896780014038, 0.5129932165145874, -0.13963040709495544, 0.15615518391132355, -0.03971089422702789, -0.1102798581123352, -0.22612737119197845, 0.1346258670091629, 0.09683287143707275, 0.23929908871650696, 0.3685910701751709, 0.05569047853350639, 0.2344987988471985, 0.1311747133731842, 0.12994898855686188, -0.12025103718042374, 0.2837678790092468, -0.03636913374066353, 0.5489475727081299, -0.25003892183303833, 0.041028641164302826, 0.19431115686893463, 0.030000921338796616, -0.19931061565876007, 0.01043752022087574, 0.17363019287586212, 0.3090357482433319, 0.10157984495162964, -0.35522666573524475, 0.05732211098074913, 0.15387237071990967, 0.6179746389389038, -0.14411723613739014, -0.26644909381866455, -0.21179929375648499, 0.05812672898173332, -0.0311636533588171, 0.42325273156166077, 0.17874914407730103, -0.08535595238208771, 0.14752331376075745, -0.10620950162410736, -0.09571658819913864, -0.27038273215293884, 0.4773283004760742, -0.3337213099002838, 0.14361262321472168, -0.029319215565919876, 0.08590388298034668, 0.01129642128944397, -0.16372914612293243, 0.28488537669181824, -0.1661655753850937, 0.24730649590492249, 0.13194811344146729, 0.06547056883573532, 0.15277329087257385, 0.10753172636032104, -0.08444833010435104, 0.07165277749300003, 0.18202222883701324, 0.013740602880716324, -0.2322997748851776, -0.42810317873954773, 0.16714832186698914, 0.29913222789764404, 0.16749365627765656, -0.1970783770084381, 0.4427916407585144, 0.3913423418998718, 0.2613990008831024, -0.054258543998003006, -0.056456826627254486, -0.10290498286485672, -0.09402543306350708, -0.008705126121640205, -0.06455711275339127, 0.6314445734024048, -0.04845185950398445, -0.24897335469722748, 0.044105224311351776, -0.5565937161445618, 0.01265995018184185, 0.05552620813250542, 0.5300526022911072, -0.013035866431891918, -0.1444537341594696, 0.1963229775428772, 0.22498458623886108, 0.0636078491806984, 0.2203981727361679, -0.1745043247938156, 0.16210347414016724, -0.058866921812295914, 0.08892768621444702, 0.3542628586292267, -0.27075085043907166, 0.18975289165973663, -0.12404485046863556, 0.30602115392684937, -0.2865850329399109, -0.16573677957057953, 0.057032886892557144, -0.1380525827407837, 0.5223363041877747, -0.041402388364076614, 0.09706629067659378, 0.21223251521587372, -0.15949413180351257, -0.17413818836212158, 0.15725672245025635, -0.22644594311714172, -0.4764676094055176, 0.011927364394068718, -0.070607990026474, -0.16275078058242798, -0.1232614666223526, -0.17635154724121094, -0.07918091118335724, -0.269101619720459, -0.23257648944854736, 0.020751625299453735, 0.029529668390750885, -0.009617436677217484, -0.26343435049057007, 0.3591380715370178, 0.6304946541786194, -0.45358338952064514, -0.21839001774787903, -0.2690233588218689, -0.155538871884346, 0.19252032041549683, 0.34889763593673706, -0.09835150837898254, 0.2948675751686096, -0.3515779972076416, -0.12262431532144547, 0.07633598148822784, -0.2555388808250427, -0.5823035836219788, -0.09029410034418106, -0.23860785365104675, 0.19186358153820038, -0.045877762138843536, 0.10384015738964081, -0.3338247239589691, 0.12537243962287903, 0.09358949214220047, 0.5455529689788818, 0.11424107104539871, 0.12670619785785675, -0.23616378009319305, -0.1728004515171051, 0.1513075977563858, 0.3335748016834259, 0.40417444705963135, 0.14610417187213898, 0.09456554800271988, -0.27605101466178894, 0.0993272066116333, -0.26966291666030884, -0.3346726596355438, 0.35900068283081055, 0.20911355316638947, 0.1987956315279007, 0.2152865082025528, 0.203629732131958, -0.6355165243148804, 0.2882673442363739, -0.07089598476886749, 0.20001380145549774, -0.17148007452487946, 0.09297627210617065, -0.05132503807544708, 0.11202821880578995, -0.18908193707466125, -0.1760546863079071, -0.028396960347890854, 0.2306000143289566, -0.08235272020101547, 0.2741304636001587, -0.16053617000579834, 0.23557129502296448, 0.0630769208073616, 0.24241673946380615, -0.2760774791240692, 0.7524464130401611, -0.08191462606191635, -0.2056124359369278, -0.06858323514461517, 0.16592231392860413, 0.19755545258522034, -0.19136369228363037, -0.20501220226287842, 0.2331790030002594, -0.0767291933298111, 0.21868431568145752, 0.05727589502930641, -0.15814246237277985, 0.17839740216732025, -0.039303869009017944, 0.10835212469100952, 0.6130577325820923, -0.08637095242738724, 0.14245492219924927, -0.11995408684015274, 0.3930967450141907, -0.005916345864534378, 0.16466790437698364, 0.03607980161905289, 0.03313795477151871, 0.015986250713467598, -0.10120751708745956, -0.058242253959178925, 0.031203843653202057, 0.41869378089904785, -0.27105453610420227, 0.40069910883903503, -0.025584368035197258, -0.3659142851829529, -0.16080790758132935, -0.04154657945036888, -0.196111261844635, 0.1897723525762558, 0.3199442923069, -0.44272875785827637, -0.030521374195814133, -0.16819459199905396, 0.20025716722011566, 0.416131854057312, 0.09502892941236496, -0.16236557066440582, 0.04156135767698288, 0.08997295796871185, 0.03893619775772095, 0.1533781886100769, 0.273215115070343, 0.21298852562904358, 0.35887131094932556, 0.13483211398124695, 0.1144530400633812, -0.5129579305648804, -0.24437791109085083, -0.09358066320419312, 0.2542761564254761, -0.5207046270370483, 0.08319078385829926, -0.034117553383111954, -0.10828062146902084, 0.1283055543899536, -0.14597252011299133, -0.23754674196243286, -0.1490771323442459, -0.02943263202905655, 0.300001323223114, -0.01244940422475338, 0.06356370449066162, 0.263609915971756, 0.23582623898983002, 0.036193765699863434, -0.24914662539958954, -0.2522697448730469, 0.1826496422290802, -0.036495842039585114, -0.14722196757793427, 0.4567750096321106, -0.10324253886938095, 0.15481926500797272, -0.03723517060279846, -0.02330007031559944, -0.6837278008460999, -0.1721867471933365, 0.07393801212310791, -0.001567099243402481, 0.5924339890480042, 0.027392759919166565, 0.3595122694969177, 0.02468337118625641, -0.11517755687236786, 0.18859891593456268, -0.12292004376649857, -0.03915617614984512, 0.30385661125183105, -0.000635092263109982, 0.11397737264633179, -0.1057341992855072, -0.26791802048683167, -0.4713396728038788, -0.14589516818523407, 0.24361945688724518, 0.11069899797439575, 0.09334459900856018, 0.04897051304578781, 0.05744531378149986, 0.0662202537059784, 0.14321887493133545, -0.014114238321781158, -0.1548081785440445, -0.13285253942012787, 0.21777482330799103, -0.28027817606925964, -0.2570219039916992, -0.13669797778129578, 0.1525731086730957, -0.2342166006565094, -0.398460328578949, -0.44236117601394653, -0.4083746075630188, -0.00845799408853054, -0.07816220074892044, -0.08765347301959991, -0.2745097875595093, 0.1876668632030487, -0.0025418750010430813, 0.08832602202892303, 0.19707638025283813, -0.3397645354270935, -0.061798952519893646, 0.12941646575927734, 0.005318678915500641, 0.11178354918956757, 0.36933013796806335, -0.27526360750198364, 0.4287187457084656, -0.01959856040775776, -0.06408950686454773, 0.34357261657714844, -0.043897248804569244, 0.24183203279972076, -0.17800253629684448, -0.4340986907482147, -0.029533887282013893, 0.15846672654151917, -0.38601070642471313, 0.3634832501411438, 0.13260719180107117, -0.27232712507247925, -0.13228066265583038, -0.266367644071579, -0.3704836368560791, -0.122708261013031, 0.09501257538795471, 0.1960490643978119, -0.1689050793647766, -0.013476619496941566, -0.09784886240959167, -0.15680891275405884, -0.2154473066329956, -0.064280666410923, 0.46862703561782837, 0.37021303176879883, 0.029090985655784607, 0.041384775191545486, -0.19805693626403809, -0.5080875158309937, 0.2951849699020386, -0.14046834409236908, 0.018879275768995285, -0.1708141267299652, 0.20598137378692627, 0.2747112512588501, -0.11271316558122635, 0.7324311137199402, -0.2107313871383667, -0.020974770188331604, 0.12493211030960083, 0.1644469052553177, -0.5447664260864258, -0.27288252115249634, -0.10629139840602875, 0.15245497226715088, 0.19501926004886627, 0.5638488531112671, -0.23350867629051208, -0.158137708902359, 0.5298327207565308, 0.28447404503822327, -0.298676073551178, -0.5484113693237305, -0.4770651161670685, -0.3852730989456177, -0.49111291766166687, -0.17100515961647034, -0.20947009325027466, 0.1386832892894745, 0.11217150837182999, -0.1339828372001648, -0.010054603219032288, -0.09065620601177216, 0.06207047030329704, -0.19628922641277313, 0.40958452224731445, -0.12470360100269318, 0.044131744652986526, 0.3826543092727661, 0.177289217710495, 0.5049896836280823, 0.5611206293106079, -0.12137892842292786, 0.0071676671504974365, 0.24373626708984375, 0.05312114581465721, 0.0959242731332779, 0.476157009601593, -0.2611633837223053, -0.2400408685207367, -0.07717156410217285, 0.4198448061943054, -0.03228447958827019, -0.15441939234733582, 0.4594539403915405, -0.0010442067869007587, -0.36968523263931274, -0.04816818982362747, 0.6684794425964355, 0.09038287401199341, -0.034778788685798645, 0.15856578946113586, 0.27880221605300903, -0.1148725226521492, 0.4249477982521057, -0.08130864053964615, 1.0580519437789917, -0.13319119811058044, 0.16646811366081238, 0.6543013453483582, 0.3632465600967407, 0.3999623656272888, -0.36641794443130493, 0.05505704879760742, -0.35612696409225464, -0.335053950548172, -0.21368256211280823, -0.29548379778862, -0.1705341935157776, 0.17341220378875732, -0.05200479179620743, 0.3506941497325897, -0.39998841285705566, -0.025265831500291824, 0.10679410398006439, 0.3323907256126404, -0.12778690457344055, -0.01160641759634018, -0.11340567469596863, -0.0835714191198349, 0.03392093628644943, 0.5115855932235718, -0.1094541922211647, 0.10009448975324631, -0.23966912925243378, -0.13219889998435974, -0.3379359245300293, 0.09421055018901825, -0.20181243121623993, 0.1901559829711914, 0.20261138677597046, -0.25354111194610596, -0.3690960705280304, 0.48113346099853516, 0.25785890221595764, -0.04701804742217064, -0.18983297049999237, 0.01652539148926735, -0.3908597528934479, -0.12524102628231049, -0.22307801246643066, -0.17516958713531494, 0.3763596713542938, -0.08345293998718262, -0.28472957015037537, -0.19468718767166138, -0.14782339334487915, -0.4672434329986572, -0.09890936315059662, 0.11340829730033875, -0.17965242266654968, -0.1039998009800911, -0.40391042828559875, -0.05174130201339722, -0.02440044656395912, -0.16752107441425323, -0.013169921934604645, 0.09905090928077698, 0.05679968744516373, -0.026555143296718597, -0.03982486203312874, -0.3425719141960144, -0.13774125277996063, 0.2197284996509552, -0.2424694299697876, 0.01439502090215683, 0.5530117750167847, 0.342856764793396, -0.12815995514392853, -0.028129277750849724, 0.19294363260269165, 0.3590382933616638, -0.4375151991844177, 0.3698071241378784, 0.0509645938873291, 0.2630044221878052, -0.16322438418865204, 0.1694500595331192, 0.2370075136423111, -0.07115831226110458, -0.2912082076072693, -0.5209090709686279, 0.041367530822753906, 0.27125436067581177, -0.13875024020671844, 0.13426975905895233, 0.14124923944473267, -0.043198756873607635, 0.109406977891922, -0.42246729135513306, -0.1182335615158081, 0.3229008913040161, -0.2363317310810089, -0.28630295395851135, 0.48464709520339966, 0.06378713250160217, 0.5913463830947876, -0.11657281219959259, -0.0008641649037599564, -0.18325656652450562, 0.21006803214550018, -0.08140739053487778, -0.029308978468179703, 0.22006955742835999, 0.09947953373193741, 0.0252483319491148, -0.017231076955795288, 0.0069585032761096954, -0.10344861447811127, -0.0816633328795433, 0.14607535302639008, 0.2338722050189972, 0.030695892870426178, -0.13966423273086548, -0.08599579334259033, -0.035179659724235535, -0.20062796771526337, 0.12238369137048721, -0.0982605516910553, 0.2264508605003357, 0.16688476502895355, 0.2189987748861313, -0.01637747697532177, 0.01953980326652527, -0.4344734847545624, 0.04886976629495621, -0.10548928380012512, 0.1841878890991211, 0.2507074773311615, -0.3466747999191284, -0.07641847431659698, -0.21068455278873444, 0.32541775703430176, -0.00336359441280365, -0.5201866626739502, 0.1126454621553421, 0.24039360880851746, -0.04438794404268265, -0.1558811217546463, -0.25392669439315796, 0.23078837990760803, -0.1361890286207199, -0.088077612221241, 0.3008806109428406, -0.09709402918815613, 0.13100425899028778, -0.2931010127067566, 0.06700864434242249, 0.5105859041213989, 0.059308264404535294, -0.13642552495002747, 0.3251632750034332, -0.12366071343421936, 0.2645006477832794, 0.29190847277641296, 0.0825967937707901, 0.13609394431114197, 0.3519783020019531, -0.1639455258846283, -0.10071109235286713, -0.18628975749015808, -0.015199054032564163, 0.13309362530708313, -0.4697597026824951, 0.34533682465553284, 0.3136975169181824, -0.0432569682598114, 0.058413852006196976, -0.047773391008377075, 0.4750194549560547, -0.34292539954185486, 0.05231482908129692, -0.49139323830604553, 0.43009665608406067, -0.03725320100784302, 0.02706901729106903, 0.022330544888973236, -0.22209817171096802, -0.014989607036113739, 0.27581897377967834, -0.04021333530545235, -0.2895776629447937, -0.284580796957016, 0.4197734594345093, -0.23139815032482147, -0.13587714731693268, 0.23530864715576172, 0.23328033089637756, 0.040498822927474976, -0.13072723150253296, 0.08886957168579102, 0.07039034366607666, -0.057129546999931335, 0.00503859668970108, 0.34798166155815125, 0.5000137686729431, 0.14910605549812317, -0.02429758384823799, 0.11463601142168045, -0.22394053637981415, -0.056402333080768585, 0.11574757099151611, -0.02163102477788925, 0.08231518417596817, -0.12190365791320801, 0.11791199445724487, 0.04857753962278366, -0.10503657162189484, 0.10242835432291031, 0.2869267463684082, 0.4177592098712921, -0.1442781686782837, 0.25002869963645935, -0.32844847440719604, -0.10515959560871124, -0.16629621386528015, -0.24115771055221558, -0.3219117820262909, 0.036943502724170685, 0.10248269140720367, 0.08771562576293945, 0.09292851388454437, 0.0631188303232193, -0.020045539364218712, 0.06372581422328949, 0.21653352677822113, 0.5228308439254761, 0.35120508074760437, -0.32405224442481995, 0.07760106027126312, -0.7076662182807922, 0.2101576328277588, -0.06048254296183586, 0.15184013545513153, 0.03660135716199875, -0.12550602853298187, -0.19338762760162354, 0.06824181228876114, 0.3769768476486206, 0.2783316373825073, -0.06336020678281784, -0.027510829269886017, -0.30117174983024597, -0.13114048540592194, 0.30661892890930176, 0.2218521684408188, -0.11809439957141876, -0.31685972213745117, 0.03426351770758629, -0.6281006336212158, -0.14841976761817932, 0.08790569752454758, -0.0011280328035354614, -0.34213918447494507, 0.22123320400714874, 0.3962384760379791, 0.030077602714300156, 0.5459617376327515, -0.03170816972851753, -0.3657907247543335, -0.27934134006500244, -0.20495642721652985, -0.2752380073070526, 0.020805221050977707, -0.016407985240221024, 0.5446184873580933, -0.2521369159221649, -0.31377267837524414, -0.2893785536289215, 0.17731770873069763, -0.0129021555185318, -0.06911174207925797, -0.3498174250125885, 0.10732561349868774, -0.0033114105463027954, 0.20467625558376312, 0.13630887866020203, 0.015285748988389969, -0.048118531703948975, 0.22702397406101227, -0.20719727873802185, -0.1702491044998169, 0.624733567237854, -0.15686947107315063, -0.09875018894672394, 0.07754940539598465, 0.19843289256095886, 0.19489234685897827, 0.046860966831445694, -0.23307877779006958, 0.05526693910360336, 0.18331106007099152, 0.2949826717376709, -0.36876291036605835, -0.11951304972171783, 0.13503560423851013, -0.09522639214992523, -0.048058222979307175, 0.10826519131660461, 0.17367377877235413, -0.25875720381736755, 0.1800127774477005, -0.10286281257867813 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
Hi ! Could it be because you need to free the memory used by `tarfile` by emptying the tar `members` by any chance ? ```python yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} audio_tarfile.members = [] # free memory key += 1 ``` and then you can set `DEFAULT_WRITER_BATCH_SIZE` to whatever value makes more sense for your dataset. Let me know if the issue persists (which could happen, given that you managed to run your generator without RAM issues and using os.walk didn't solve the issue)
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
85
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 Hi ! Could it be because you need to free the memory used by `tarfile` by emptying the tar `members` by any chance ? ```python yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} audio_tarfile.members = [] # free memory key += 1 ``` and then you can set `DEFAULT_WRITER_BATCH_SIZE` to whatever value makes more sense for your dataset. Let me know if the issue persists (which could happen, given that you managed to run your generator without RAM issues and using os.walk didn't solve the issue)
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I also run out of memory when loading `mozilla-foundation/common_voice_8_0` that also uses `tarfile` via `dl_manager.iter_archive`. There seems to be some data files that stay in memory somewhere I don't have the issue with other compression formats like gzipped files
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
39
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I also run out of memory when loading `mozilla-foundation/common_voice_8_0` that also uses `tarfile` via `dl_manager.iter_archive`. There seems to be some data files that stay in memory somewhere I don't have the issue with other compression formats like gzipped files
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I'm facing a similar memory leak issue when loading cv8. As you said @lhoestq `load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True, writer_batch_size=1)` This issue is happening on a 32GB RAM machine. Any updates on how to fix this?
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
34
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I'm facing a similar memory leak issue when loading cv8. As you said @lhoestq `load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True, writer_batch_size=1)` This issue is happening on a 32GB RAM machine. Any updates on how to fix this?
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I've run a memory profiler to see where's the leak comes from: ![image](https://user-images.githubusercontent.com/5097052/165101712-e7060ae5-77b2-4f6a-92bd-2996dbd60b36.png) ... it seems that it's related to the tarfile lib buffer reader. But I don't know why it's only happening on the huggingface script
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
37
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I've run a memory profiler to see where's the leak comes from: ![image](https://user-images.githubusercontent.com/5097052/165101712-e7060ae5-77b2-4f6a-92bd-2996dbd60b36.png) ... it seems that it's related to the tarfile lib buffer reader. But I don't know why it's only happening on the huggingface script
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I have the same problem when loading video into numpy. ``` yield id,{ "video": imageio.v3.imread(video_path), "label": int(label) } ``` Since video files are heavy, it can only processes a dozen samples before OOM.
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
33
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I have the same problem when loading video into numpy. ``` yield id,{ "video": imageio.v3.imread(video_path), "label": int(label) } ``` Since video files are heavy, it can only processes a dozen samples before OOM.
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
For video datasets I think you can just define the max number of video that can stay in memory by adding this class attribute to your dataset builer: ```py DEFAULT_WRITER_BATCH_SIZE = 8 # only 8 videos at a time in memory before flushing the dataset writer ```
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
47
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 For video datasets I think you can just define the max number of video that can stay in memory by adding this class attribute to your dataset builer: ```py DEFAULT_WRITER_BATCH_SIZE = 8 # only 8 videos at a time in memory before flushing the dataset writer ```
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
same thing happens for me with `load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True, writer_batch_size=1)` on azure ml. seems to fill up `tmp` and not release that memory until OOM
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
25
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 same thing happens for me with `load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True, writer_batch_size=1)` on azure ml. seems to fill up `tmp` and not release that memory until OOM
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I'll add that I'm encountering the same issue with `load_dataset('wikipedia', 'ceb', runner='DirectRunner', split='train')`. Same for `'es'` in place of `'ceb'`.
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
20
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I'll add that I'm encountering the same issue with `load_dataset('wikipedia', 'ceb', runner='DirectRunner', split='train')`. Same for `'es'` in place of `'ceb'`.
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
> I'll add that I'm encountering the same issue with > load_dataset('wikipedia', 'ceb', runner='DirectRunner', split='train'). > Same for 'es' in place of 'ceb'. This is because the Apache Beam `DirectRunner` runs with the full data in memory unfortunately. Optimizing the `DirectRunner` is not in the scope of the `datasets` library, but rather in the Apache Beam project I believe. If you have memory issues with the `DirectRunner`, please consider switching to a machine with more RAM, or to distributed processing runtimes like Spark, Flink or DataFlow. There is a bit of documentation here: https://huggingface.co/docs/datasets/beam
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
94
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 > I'll add that I'm encountering the same issue with > load_dataset('wikipedia', 'ceb', runner='DirectRunner', split='train'). > Same for 'es' in place of 'ceb'. This is because the Apache Beam `DirectRunner` runs with the full data in memory unfortunately. Optimizing the `DirectRunner` is not in the scope of the `datasets` library, but rather in the Apache Beam project I believe. If you have memory issues with the `DirectRunner`, please consider switching to a machine with more RAM, or to distributed processing runtimes like Spark, Flink or DataFlow. There is a bit of documentation here: https://huggingface.co/docs/datasets/beam
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
> > I'll add that I'm encountering the same issue with > > `load_dataset('wikipedia', 'ceb', runner='DirectRunner', split='train')`. > > Same for `'es'` in place of `'ceb'`. > > This is because the Apache Beam `DirectRunner` runs with the full data in memory unfortunately. Optimizing the `DirectRunner` is not in the scope of the `datasets` library, but rather in the Apache Beam project I believe. If you have memory issues with the `DirectRunner`, please consider switching to a machine with more RAM, or to distributed processing runtimes like Spark, Flink or DataFlow. There is a bit of documentation here: https://huggingface.co/docs/datasets/beam Fair enough, but this line of code crashed an AWS instance with 1024GB of RAM! I have also tried with `Runner='Flink'` on an environment with 51GB of RAM, which also failed. Apache Beam has tons of open tickets already - is it worth submitting one to them over this?
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
148
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 > > I'll add that I'm encountering the same issue with > > `load_dataset('wikipedia', 'ceb', runner='DirectRunner', split='train')`. > > Same for `'es'` in place of `'ceb'`. > > This is because the Apache Beam `DirectRunner` runs with the full data in memory unfortunately. Optimizing the `DirectRunner` is not in the scope of the `datasets` library, but rather in the Apache Beam project I believe. If you have memory issues with the `DirectRunner`, please consider switching to a machine with more RAM, or to distributed processing runtimes like Spark, Flink or DataFlow. There is a bit of documentation here: https://huggingface.co/docs/datasets/beam Fair enough, but this line of code crashed an AWS instance with 1024GB of RAM! I have also tried with `Runner='Flink'` on an environment with 51GB of RAM, which also failed. Apache Beam has tons of open tickets already - is it worth submitting one to them over this?
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
> Fair enough, but this line of code crashed an AWS instance with 1024GB of RAM! What, wikipedia is not even bigger than 20GB cc @albertvillanova
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
26
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 > Fair enough, but this line of code crashed an AWS instance with 1024GB of RAM! What, wikipedia is not even bigger than 20GB cc @albertvillanova
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
> > Fair enough, but this line of code crashed an AWS instance with 1024GB of RAM! > > What, wikipedia is not even bigger than 20GB > > cc @albertvillanova Luckily, on Colab you can watch the call stack at the bottom of the screen - much of the time and space complexity seems to come from `_parse_and_clean_wikicode()` rather than the actual download process. As far as I can tell, the script is loading the full dataset and then cleaning it all at once, which is consuming a lot of memory.
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
92
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 > > Fair enough, but this line of code crashed an AWS instance with 1024GB of RAM! > > What, wikipedia is not even bigger than 20GB > > cc @albertvillanova Luckily, on Colab you can watch the call stack at the bottom of the screen - much of the time and space complexity seems to come from `_parse_and_clean_wikicode()` rather than the actual download process. As far as I can tell, the script is loading the full dataset and then cleaning it all at once, which is consuming a lot of memory.
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I think we are mixing many different bugs in this Issue page: - TAR archive with audio files - video file - distributed parsing of Wikipedia using Apache Beam @dan-the-meme-man may I ask you to open a separate Issue for your problem? Then I will address it. It is important to fix it because we are currently working on a Datasets enhancement to be able to provide all Wikipedias already preprocessed. On the other hand, I think we could keep this Issue page for the original problem: TAR archive with audio files. That is not fixed yet either.
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
98
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I think we are mixing many different bugs in this Issue page: - TAR archive with audio files - video file - distributed parsing of Wikipedia using Apache Beam @dan-the-meme-man may I ask you to open a separate Issue for your problem? Then I will address it. It is important to fix it because we are currently working on a Datasets enhancement to be able to provide all Wikipedias already preprocessed. On the other hand, I think we could keep this Issue page for the original problem: TAR archive with audio files. That is not fixed yet either.
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
Is there an update on the TAR archive issue with audio files? Happy to lend a hand in fixing this :)
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
21
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 Is there an update on the TAR archive issue with audio files? Happy to lend a hand in fixing this :)
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I found the issue with Common Voice 8 and opened a PR to fix it: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/discussions/2 Basically the `metadata` dict that contains the transcripts per audio file was continuously getting filled with bytes from `f.read()` because of this code: ```python result = metadata[path] result["audio"] = {"path": path, "bytes": f.read()} ``` copying the result with `result = dict(metadata[path])` fixes it: the bytes are no longer added to `metadata` I also opened PRs to the other CV datasets
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
76
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I found the issue with Common Voice 8 and opened a PR to fix it: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0/discussions/2 Basically the `metadata` dict that contains the transcripts per audio file was continuously getting filled with bytes from `f.read()` because of this code: ```python result = metadata[path] result["audio"] = {"path": path, "bytes": f.read()} ``` copying the result with `result = dict(metadata[path])` fixes it: the bytes are no longer added to `metadata` I also opened PRs to the other CV datasets
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4057
`load_dataset` consumes too much memory for audio + tar archives
I'm closing this one for now, but feel free to reopen if you encounter other memory issues with audio datasets
## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5
20
`load_dataset` consumes too much memory for audio + tar archives ## Description `load_dataset` consumes more and more memory until it's killed, even though it's made with a generator. I'm adding a loading script for a new dataset, made up of ~15s audio coming from a tar file. Tried setting `DEFAULT_WRITER_BATCH_SIZE = 1` as per the discussion in #741 but the problem persists. ## Steps to reproduce the bug Here's my implementation of `_generate_examples`: ```python class MyDatasetBuilder(datasets.GeneratorBasedBuilder): DEFAULT_WRITER_BATCH_SIZE = 1 ... def _split_generators(self, dl_manager): archive_path = dl_manager.download(_DL_URLS[self.config.name]) return [ datasets.SplitGenerator( name=datasets.Split.TRAIN, gen_kwargs={ "audio_tarfile_path": archive_path["audio_tarfile"] }, ), ] def _generate_examples(self, audio_tarfile_path): key = 0 with tarfile.open(audio_tarfile_path, mode="r|") as audio_tarfile: for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 ``` I then try to load via `ds = load_dataset('./datasets/my_new_dataset', writer_batch_size=1)`, and memory usage grows until all 8GB of my machine are taken and process is killed (`Killed`). Also tried an untarred version of this using `os.walk` but the same happened. I created a script to confirm that one can safely go through such a generator, which runs just fine with memory <500MB at all times. ```python import tarfile def generate_examples(): audio_tarfile = tarfile.open("audios.tar", mode="r|") key = 0 for audio_tarinfo in audio_tarfile: audio_name = audio_tarinfo.name audio_file_obj = audio_tarfile.extractfile(audio_tarinfo) yield key, {"audio": {"path": audio_name, "bytes": audio_file_obj.read()}} key += 1 if __name__ == "__main__": examples = generate_examples() for example in examples: pass ``` ## Expected results Memory consumption should be similar to the non-huggingface script. ## Actual results Process is killed after consuming too much memory. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-4.19.0-20-cloud-amd64-x86_64-with-debian-10.12 - Python version: 3.7.12 - PyArrow version: 6.0.1 - Pandas version: 1.3.5 I'm closing this one for now, but feel free to reopen if you encounter other memory issues with audio datasets
[ -0.5644341111183167, 0.22431257367134094, 0.09214182198047638, 0.5236534476280212, 0.2984389066696167, 0.012890949845314026, 0.11622106283903122, 0.11865827441215515, -0.02925436571240425, 0.25258004665374756, 0.12547436356544495, 0.34081774950027466, -0.3144560754299164, -0.18465158343315125, 0.0978010818362236, -0.24703195691108704, 0.04026671499013901, 0.08075405657291412, -0.1091475635766983, 0.14294691383838654, -0.3584202826023102, 0.23225820064544678, -0.1471729278564453, -0.18846170604228973, -0.16678129136562347, 0.11991077661514282, 0.19162878394126892, 0.24036604166030884, -0.1175476536154747, -0.3089771270751953, 0.015512457117438316, 0.09563145041465759, 0.16927193105220795, 0.5051646828651428, -0.00011845478729810566, -0.026878181844949722, 0.431834876537323, -0.02186606451869011, -0.3515644371509552, -0.1258435994386673, -0.16906890273094177, -0.001447846181690693, -0.20951083302497864, 0.04614224284887314, 0.1344616711139679, -0.2310679852962494, 0.07072878628969193, -0.5011856555938721, 0.2742086946964264, 0.3345271050930023, 0.13931865990161896, -0.04289485886693001, -0.005331996828317642, -0.031022947281599045, 0.345880389213562, 0.3045179545879364, -0.019542178139090538, -0.03496149554848671, 0.07632581144571304, -0.2827055752277374, -0.2855849862098694, 0.18783049285411835, -0.12789559364318848, 0.03870308771729469, 0.47443899512290955, -0.04423343390226364, -0.1576697826385498, -0.2196151316165924, 0.3871341049671173, 0.2147713005542755, 0.7213086485862732, -0.38996070623397827, -0.036614254117012024, -0.1567404568195343, -0.08801522850990295, -0.4176872670650482, 0.17735344171524048, 0.2884875237941742, -0.5887030363082886, -0.06120636686682701, -0.32558149099349976, -0.1640622317790985, -0.022810891270637512, -0.0200640931725502, 0.2757616937160492, -0.12149925529956818, -0.09739604592323303, 0.0487838089466095, 0.7136065363883972, 0.09892002493143082, 0.279047429561615, 0.04969669133424759, -0.31007862091064453, 0.14680446684360504, -0.5674623847007751, 0.09537778794765472, 0.20797288417816162, -0.1530187427997589, 0.41245728731155396, 0.06451970338821411, 0.19749589264392853, -0.11267782002687454, 0.31385537981987, 0.06341809034347534, 0.38783925771713257, 0.11993350088596344, -0.07952991873025894, -0.16433802247047424, 0.0812963992357254, 0.02286207303404808, 0.1910446286201477, -0.267129123210907, -0.18906879425048828, -0.23245564103126526, 0.46357667446136475, -0.23523718118667603, 0.034881338477134705, 0.028527136892080307, -0.3850555121898651, 0.12589812278747559, -0.02851528488099575, -0.12053998559713364, 0.04376865178346634, 0.24582034349441528, 0.130629763007164, 0.3334710896015167, 0.006640046834945679, 0.26577886939048767, -0.19700977206230164, -0.33034437894821167, -0.10772057622671127, -0.06251798570156097, -0.30750662088394165, 0.22243422269821167, 0.2638220489025116, 0.1296825259923935, 0.3806929886341095, 0.02031874656677246, -0.052312783896923065, -0.09795583784580231, 0.2761556804180145, -0.1859358847141266, -0.16551968455314636, 0.2847851514816284, 0.02878699079155922, 0.10142561793327332, -0.20361478626728058, 0.029479824006557465, -0.15313386917114258, 0.5438855886459351, -0.08181954175233841, -0.4310574233531952, 0.10786627978086472, 0.12673979997634888, -0.1748826652765274, 0.29361140727996826, -0.7533518671989441, 0.18471281230449677, 0.47080108523368835, -0.01283591240644455, -0.1958266794681549, -0.1134527176618576, -0.6036484837532043, -0.14446981251239777, 0.14909249544143677, 0.6064931750297546, -0.453817754983902, -0.05211355537176132, -0.62822425365448, -0.035062264651060104, 0.43669942021369934, 0.26865094900131226, -0.11460786312818527, 0.5720859169960022, -0.1726388931274414, -0.319313108921051, 0.42720186710357666, -0.05782780051231384, -0.5270571708679199, 0.2637728750705719, -0.13127636909484863, 0.2758482098579407, 0.4048934876918793, 0.07198775559663773, 0.20271192491054535, -0.18331637978553772, 0.36873409152030945, 0.3675009608268738, -0.18018637597560883, 0.24595800042152405, -0.20872315764427185, -0.411110520362854, -0.10778975486755371, 0.10395941138267517, 0.05904392898082733, -0.09819640964269638, -0.18062546849250793, 0.25315406918525696, 0.3050130605697632, 0.021463964134454727, 0.23876939713954926, 0.04934578016400337, -0.013003390282392502, -0.13432781398296356, -0.0798148438334465, 0.021418627351522446, -0.31914979219436646, 0.06983266025781631, -0.21281269192695618, -0.06758728623390198, 0.14874398708343506, -0.051413096487522125, -0.06115124374628067, 0.160469651222229, -0.12417498230934143, -0.11228911578655243, -0.014337558299303055, 0.09055309742689133, -0.06608659029006958, -0.1086336076259613, -0.04679769650101662, 0.07817532867193222, 0.17562329769134521, 0.014539439231157303, -0.5239706635475159, -0.20639069378376007, 0.10182824730873108, -0.07926002889871597, 0.13440099358558655, 0.11002299189567566, -0.03528560698032379, 0.134059876203537, -0.08367149531841278, 0.354552686214447, 0.22239086031913757, 0.09381468594074249, -0.5829517841339111, -0.04073883593082428, 0.034129440784454346, -0.01231389120221138, 0.296871542930603, 0.06464085727930069, 0.14649049937725067, -0.2071482539176941, 0.012278042733669281, -0.24515177309513092, 0.026315823197364807, 0.24698638916015625, -0.01943599432706833, -0.1565675437450409, -0.02729511260986328, 0.05659273639321327, 0.2734522223472595, -0.0633469820022583, 0.06357048451900482, 0.1694619059562683, 0.2397570163011551, 0.2824985682964325, 0.16746479272842407, -0.10403256863355637, 0.2083713263273239, -0.07561719417572021, -0.2824479937553406, 0.3893504738807678, -0.2967761158943176, -0.4036586582660675, -0.03129564970731735, 0.3965180516242981, 0.5317258238792419, 0.15013761818408966, 0.10639867186546326, -0.14052362740039825, 0.3561369776725769, -0.23363052308559418, 0.2460542619228363, 0.1715855598449707, 0.07804694771766663, 0.2868419587612152, 0.03836098685860634, -0.19504080712795258, -0.25611037015914917, -0.01268937811255455, 0.29379454255104065, 0.45143643021583557, -0.20772448182106018, 0.07810574769973755, -0.053869232535362244, -0.0050849467515945435, -0.08116309344768524, 0.33152350783348083, 0.09653851389884949, -0.15825212001800537, -0.0410834401845932, 0.49886593222618103, -0.05636090040206909, -0.06053595244884491, 0.2577938437461853, 0.1803855001926422, -0.04251822456717491, -0.1259952187538147, 0.01943381130695343, -0.18421217799186707, -0.17566123604774475, 0.022070694714784622, 0.4694150388240814, -0.27794092893600464, 0.2074914276599884, 0.007593311369419098, -0.20476572215557098, 0.23548048734664917, 0.17293965816497803, -0.04185281693935394, 0.08361344784498215, 0.28774192929267883, 0.018602408468723297, 0.14132873713970184, 0.2646872401237488, -0.33481791615486145, 0.045348599553108215, -0.02388058975338936, -0.025106707587838173, 0.2796821892261505, 0.03329695761203766, 0.16590696573257446, -0.1550367921590805, -0.18532904982566833, 0.07514385879039764, -0.4496842622756958, 0.1766921877861023, -0.01134064793586731, 0.1997351348400116, 0.3471115231513977, 0.1862245351076126, -0.20417732000350952, 0.22824224829673767, 0.03165021166205406, -0.2628289759159088, -0.44125649333000183, 0.16769374907016754, -0.0651644691824913, 0.028719021007418633, -0.09645682573318481, -0.041464634239673615, 0.453670859336853, 0.3899003863334656, -0.441200315952301, 0.31276455521583557, -0.34150177240371704, -0.06507425755262375, -0.1656230241060257, 0.19594918191432953, 0.07434222102165222, 0.3772161900997162, -0.033517785370349884, 0.0018392428755760193, 0.0916808545589447, 0.03560071438550949, -0.20898205041885376, 0.23330682516098022, 0.23582914471626282, 0.6193270683288574, -0.10397075116634369, 0.6013407111167908, 0.16007056832313538, 0.1426381915807724, 0.2244463413953781, 0.1384267359972, 0.3124503195285797, -0.29234960675239563, -0.06595916301012039, 0.1262173354625702, -0.18566563725471497, -0.22136707603931427, 0.0008269175887107849, 0.10052429139614105, -0.18397651612758636, 0.01654977723956108, -0.05274248868227005, 0.21257570385932922, -0.296798437833786, 0.38551878929138184, -0.2502576410770416, 0.007381640374660492, 0.11952610313892365, 0.1723637580871582, -0.1039687842130661, -0.26519033312797546, -0.0409809835255146, -0.10964277386665344, 0.17963892221450806, -0.11264275014400482, -0.2530463635921478, 0.310270220041275, -0.8022252917289734, -0.14607439935207367, -0.14435578882694244, 0.1329963058233261, -0.004780799150466919, 0.0012841150164604187, 0.04371243342757225, 0.07640790194272995, 0.5500948429107666, 0.04448774456977844, 0.03360338509082794, 0.09556365013122559, 0.07532442361116409, -0.040587376803159714, 0.11142890155315399, 0.03563181683421135, -0.02129938080906868, -0.1761939823627472, -0.12223905324935913, -0.17251932621002197, -0.12541835010051727, 0.11375096440315247, 0.5064228177070618, -0.1906200349330902, -0.18037474155426025, -0.22644318640232086, -0.3357015550136566, -0.17640019953250885, -0.07904800027608871, 0.09444877505302429, 0.22476886212825775, 0.012959495186805725, 0.07117252051830292, 0.1605069786310196, -0.08824764937162399, 0.3402246832847595, 0.035982534289360046, 0.3108155131340027, -0.11189795285463333, 0.29366743564605713, 0.14425620436668396, -0.7301208972930908, 0.2447739541530609, 0.4010571837425232, -0.18065033853054047, -0.01673581451177597, -0.07375369220972061, 0.0145424110814929, 0.2661941945552826, 0.17331920564174652, -0.21753181517124176, -0.0873400941491127, -0.2297494113445282, 0.03899058327078819, -0.49673593044281006, 0.24373722076416016, 0.23538647592067719, -0.20388352870941162, -0.1018495112657547, -0.8862299919128418, 0.3090798556804657, 0.3136019706726074, -0.08913569152355194, 0.6423519849777222, -0.265979528427124, -0.2693171203136444, 0.4417586326599121, 0.06929020583629608, 0.6817914247512817, -0.23465557396411896, 0.24085049331188202, 0.15499773621559143, 0.15375059843063354, 0.005845390260219574, -0.4339600205421448, 0.348985493183136, -0.09772846102714539, -0.17290790379047394, 0.2003210186958313, -0.05805570259690285, -0.13976320624351501, 0.3755965232849121, -0.0542169064283371, 0.23782193660736084, 0.004504993557929993, -0.19638079404830933, -0.020107002928853035, 0.31374916434288025, -0.21136710047721863, -0.38843104243278503, 0.0617767833173275, 0.08255266398191452, 0.060670386999845505, -0.023611392825841904, -0.0445549339056015, 0.06754700839519501, 0.2864018976688385, -0.3066163659095764, -0.36048829555511475, 0.07208581268787384, -0.18660253286361694, 0.028848664835095406, -0.20601710677146912, -0.29854702949523926, 0.2842082381248474, 0.33664077520370483, -0.25758522748947144, 0.41659054160118103, -0.07906441390514374, 0.08222861588001251, -0.12005548924207687, 0.24345435202121735, 0.053383808583021164, 0.0652000904083252, -0.08302421867847443, 0.07184858620166779, -0.21442881226539612, 0.14517900347709656, -0.06540045142173767, 0.02472037822008133, 0.03640232980251312, 0.002349957823753357, 0.1992582231760025, -0.20392245054244995, -0.20130053162574768, 0.0216616690158844, -0.038179587572813034, -0.07153691351413727, 0.07880599796772003, 0.21746985614299774, -0.1658441722393036, 0.27425649762153625, -0.5287726521492004, -0.16821709275245667, -0.03615335747599602, 0.28517282009124756, 0.1994038224220276, 0.02354387566447258, 0.38694053888320923, 0.09872651100158691, 0.0890192836523056, -0.1272071897983551, 0.1157509908080101, 0.32277175784111023, -0.5073640942573547, 0.18288402259349823, 0.05693274363875389, -0.13170219957828522, 0.030503135174512863, 0.007374737411737442, -0.25940781831741333, -0.1504896879196167, -0.02810121327638626, 0.014306783676147461, -0.6025382280349731, 0.08231496810913086, -0.047205496579408646, 0.2542823851108551, -0.03116019442677498, -0.4145182967185974, -0.13693685829639435, 0.21521466970443726, -0.1771102249622345, -0.06056608259677887, 0.22411081194877625, 0.11103476583957672, 0.06151377037167549, -0.05985737591981888, 0.2926323413848877, -0.1035129725933075, 0.0077352263033390045, -0.10870178043842316, -0.17208117246627808, -0.12344852089881897, -0.14556030929088593, 0.11741077899932861, -0.06414420902729034, -0.3281376361846924, 0.1271590143442154, -0.26350462436676025, -0.16821615397930145, -0.4077324867248535, 0.5567162036895752, 0.1773628294467926, -0.06292428076267242, -0.1184687614440918, 0.11555090546607971, 0.006505928933620453, 0.03115355223417282, 0.17104686796665192, -0.13755986094474792, 0.33062559366226196, 0.1360188126564026, 0.2668733596801758, 0.33239802718162537, -0.22861149907112122, -0.5243358016014099, 0.249874085187912, 0.22181512415409088, -0.12369132786989212, 0.22703740000724792, -0.14615805447101593, -0.11790682375431061, 0.0977608859539032, -0.03719069063663483, 0.5300471782684326, 0.051256515085697174, -0.0764431282877922, 0.07594142109155655, 0.1260405331850052, -0.033524662256240845, -0.20823468267917633, -0.3194270730018616, -0.04499596729874611, -0.045306120067834854, 0.33706554770469666, -0.1036805808544159, -0.5053501129150391, -0.14623038470745087, 0.08604767173528671, 0.45464712381362915, -0.0924518033862114, 0.06911198794841766, 0.4130006730556488, 0.043859999626874924, -0.021857012063264847, 0.08363933861255646, 0.06490740180015564, 0.45445600152015686, 0.38654130697250366, -0.11637521535158157, 0.23759444057941437, 0.12680858373641968, -0.001676902174949646, -0.2509981691837311, -0.6391177177429199, -0.2734544277191162, 0.5800750851631165, -0.037314385175704956, 0.29028332233428955, 0.1908259242773056, 0.23058784008026123, 0.17972879111766815, 0.02645091526210308, -0.14633117616176605, 0.0021333545446395874, -0.05319802463054657, -0.17577576637268066, 0.17181596159934998, -0.06056135147809982, -0.21357358992099762, 0.3163750469684601, -0.03264373168349266, -0.16134224832057953, 0.22385887801647186, -0.016298070549964905, -0.16251303255558014, 0.1126897856593132, 0.16677582263946533, 0.2848982512950897, -0.28702160716056824, -0.4028814136981964, 0.19381701946258545, 0.18322962522506714, -0.1121862530708313, 0.037818342447280884, 0.2774801552295685, 0.4776020050048828, 0.39070481061935425, 0.1262912154197693, 0.027470573782920837, -0.04081081598997116, 0.06728676706552505, -0.37784019112586975, 0.2898856997489929, -0.0196835920214653, 0.3257381021976471, 0.05137333646416664, -0.03894447535276413, -0.013693430460989475, -0.18951690196990967, 0.5422702431678772, -0.08161106705665588, -0.13211184740066528, 0.09871222078800201, -0.03384935110807419, -0.19784939289093018, -0.05712750554084778, 0.02954549342393875, -0.21030297875404358, -0.07719715684652328, 0.34225499629974365, -0.0474480576813221, 0.046593524515628815, -0.19243045151233673, 0.00860554538667202, -0.09713184833526611, 0.38566821813583374, -0.012459125369787216, -0.1953960657119751, -0.49569404125213623, -0.1922522485256195, -0.49855056405067444, -0.11477508395910263, -0.5657267570495605, 0.2892807722091675, -0.01582750678062439, 0.13611134886741638, -0.13736435770988464, 0.1816156804561615, -0.38345956802368164, 0.1405113786458969, -0.21403244137763977, 0.41185322403907776, -0.18453696370124817, -0.26292017102241516, 0.09008300304412842, 0.10294283181428909, -0.06057130545377731, -0.6006358861923218, 0.09522223472595215, -0.48100897669792175, -0.05705196410417557, -0.14311327040195465, 0.017994828522205353, 0.11393214762210846, 0.30159708857536316, 0.3283686935901642, 0.0622081384062767, 0.013732515275478363, -0.006237436085939407, -0.25452572107315063, -0.3483637869358063, 0.15412569046020508, -0.0929381400346756, -0.36085471510887146, 0.35438302159309387, 0.26860347390174866, -0.2814408540725708, 0.3954853415489197, -0.3956655263900757, 0.27692657709121704, -0.08433187007904053, 0.06967657059431076, -0.41745448112487793, 0.05591059476137161, -0.183884859085083, 0.34364649653434753, 0.18718589842319489, 0.02649381197988987, -0.10322067141532898, 0.05053064227104187, -0.3669845461845398, -0.08004827797412872, 0.20083588361740112, -0.10862470418214798, -0.2534756064414978, -0.23927026987075806, 0.18268722295761108, -0.09899868816137314, -0.17787110805511475, -0.35848742723464966, 0.3190793991088867, 0.023800957947969437, -0.08299755305051804, -0.27433690428733826, 0.20472723245620728, -0.042259883135557175, -0.033939432352781296, 0.01297806203365326, 0.29011115431785583, 0.09427334368228912, -0.2645425498485565, 0.20829224586486816, -0.25117409229278564 ]
https://github.com/huggingface/datasets/issues/4056
Unexpected behavior of _TempDirWithCustomCleanup
Hi ! Would setting TMPDIR at the beginning of your python script/session work ? I mean, even before importing transformers, datasets, etc. and using them ? I think this would be the most robust solution given any library that uses `tempfile`. I don't think we aim to support environment variables to be changed at run time
## Describe the bug This is not 100% a bug in `datasets`, but behavior that surprised me and I think this could be made more robust on the `datasets`side. When using `datasets.disable_caching()`, cache files are written to a temporary directory. This directory should be based on the environment variable TMPDIR. I want to set TMPDIR at runtime using os.ENVIRON["TMPDIR"] = something, but depending on other imported modules this can fail to take effect. ## Steps to reproduce the bug `_TempDirWithCustomCleanup` relies on `tempfile` to generate a path to a temporary directory. However, `tempfile` generates the path only once. This can be a problem when trying to set TMPDIR at runtime whenever other code imports `tempfile` first and does something unexpected. For example (after too much trial and error) I found out that a different part of the code base I work with defines a class `PatchedDataCollatorForLanguageModeling(transformers.DataCollatorForLanguageModeling)` based on a `transformers` class. This import is enough to trigger `tempfile` to generate `tempfile` to generate a temporary path and leading to the wrong path being cached in `tempfile.tempdir`. ## Suggestion: I could file this also as bug with `transformers`, but I think fixing this on the datasets would be much more robust: Datasets could recompute the temporary path once (technically possible via `tempfile._get_default_tempdir` or resetting the global variable `tempfile.tmpdir` to None) before setting its own global `_TEMP_DIR_FOR_TEMP_CACHE_FILES`.
56
Unexpected behavior of _TempDirWithCustomCleanup ## Describe the bug This is not 100% a bug in `datasets`, but behavior that surprised me and I think this could be made more robust on the `datasets`side. When using `datasets.disable_caching()`, cache files are written to a temporary directory. This directory should be based on the environment variable TMPDIR. I want to set TMPDIR at runtime using os.ENVIRON["TMPDIR"] = something, but depending on other imported modules this can fail to take effect. ## Steps to reproduce the bug `_TempDirWithCustomCleanup` relies on `tempfile` to generate a path to a temporary directory. However, `tempfile` generates the path only once. This can be a problem when trying to set TMPDIR at runtime whenever other code imports `tempfile` first and does something unexpected. For example (after too much trial and error) I found out that a different part of the code base I work with defines a class `PatchedDataCollatorForLanguageModeling(transformers.DataCollatorForLanguageModeling)` based on a `transformers` class. This import is enough to trigger `tempfile` to generate `tempfile` to generate a temporary path and leading to the wrong path being cached in `tempfile.tempdir`. ## Suggestion: I could file this also as bug with `transformers`, but I think fixing this on the datasets would be much more robust: Datasets could recompute the temporary path once (technically possible via `tempfile._get_default_tempdir` or resetting the global variable `tempfile.tmpdir` to None) before setting its own global `_TEMP_DIR_FOR_TEMP_CACHE_FILES`. Hi ! Would setting TMPDIR at the beginning of your python script/session work ? I mean, even before importing transformers, datasets, etc. and using them ? I think this would be the most robust solution given any library that uses `tempfile`. I don't think we aim to support environment variables to be changed at run time
[ -0.13824133574962616, 0.07323211431503296, 0.04447362944483757, 0.1359773427248001, 0.34792429208755493, -0.1434309035539627, 0.37005239725112915, 0.08965042233467102, 0.1531161069869995, 0.0932120829820633, 0.06710478663444519, 0.2713249623775482, -0.2865736186504364, -0.1255626231431961, 0.05993052199482918, 0.07334785163402557, 0.017044655978679657, 0.09819234907627106, -0.04479809105396271, 0.0776524543762207, -0.14871317148208618, 0.1583470106124878, -0.11970941722393036, -0.06569573283195496, -0.215582013130188, 0.00031076930463314056, -0.1643286496400833, 0.05140753090381622, 0.6092789769172668, -0.32828086614608765, 0.38669249415397644, 0.016495898365974426, 0.22577597200870514, 0.39413291215896606, -0.00012226619583088905, 0.13413134217262268, -0.03063049167394638, -0.05021977797150612, -0.19249866902828217, -0.021632865071296692, -0.23277810215950012, -0.15549197793006897, -0.02505384385585785, -0.3055881857872009, 0.048624396324157715, 0.06420885771512985, 0.09697882831096649, -0.8629725575447083, 0.1185978427529335, 0.21648602187633514, 0.09455987811088562, 0.33165010809898376, -0.5166404843330383, 0.373994916677475, 0.3155350387096405, 0.06851065158843994, -0.08556761592626572, -0.21435809135437012, 0.2190934717655182, -0.15984569489955902, -0.2526015341281891, 0.04224856197834015, -0.19959324598312378, 0.016499770805239677, 0.5596233010292053, 0.2874963581562042, 0.09470046311616898, -0.0954679548740387, -0.017105065286159515, 0.0344950407743454, 0.6313998699188232, -0.36632952094078064, -0.27047136425971985, -0.34595704078674316, -0.43212831020355225, -0.18521958589553833, 0.5203486084938049, -0.1263059377670288, 0.1780821979045868, 0.33171671628952026, 0.2802351415157318, 0.16020795702934265, -0.21820859611034393, 0.2463037222623825, -0.08563795685768127, 0.23399744927883148, -0.00886086281388998, -0.09933092445135117, -0.13706351816654205, 0.14961214363574982, 0.6325572729110718, -0.36254364252090454, -0.003898102790117264, 0.38443031907081604, 0.006139498203992844, 0.04029779136180878, 0.07539255917072296, 0.28529229760169983, -0.11516475677490234, -0.11106793582439423, 0.34118184447288513, -0.08861765265464783, -0.23670664429664612, -0.0047087594866752625, 0.11426489055156708, 0.405280202627182, -0.08049974590539932, 0.36640164256095886, 0.4712259769439697, -0.19114525616168976, 0.04577655717730522, 0.1850089430809021, 0.29154321551322937, -0.38967716693878174, 0.6471825242042542, 0.21432051062583923, 0.22032463550567627, -0.06802553683519363, -0.16070301830768585, 0.0332912877202034, -0.0897984728217125, -0.13068887591362, 0.01982823759317398, -0.07742727547883987, -0.04535744711756706, 0.32552847266197205, -0.009029949083924294, -0.09272434562444687, -0.2680242359638214, 0.1196526363492012, -0.15872786939144135, -0.06042744591832161, -0.2869325578212738, -0.010857170447707176, 0.1968870759010315, 0.11898373067378998, 0.14239168167114258, 0.12449076026678085, 0.07187272608280182, 0.05916161835193634, 0.23517349362373352, -0.19523130357265472, 0.18661269545555115, 0.15396054089069366, -0.323045939207077, 0.31978997588157654, -0.011844351887702942, -0.07974587380886078, -0.17614997923374176, 0.32514286041259766, -0.3492940068244934, -0.1834401786327362, 0.20924291014671326, 0.02225540578365326, -0.4471530318260193, 0.03800900653004646, 0.38945525884628296, -0.004541657865047455, 0.47409549355506897, -0.11811262369155884, 0.19247792661190033, -0.12560738623142242, -0.3512689769268036, -0.3124740719795227, 0.01632695458829403, 0.7306208610534668, -0.34387895464897156, 0.006780438125133514, 0.07717683911323547, 0.008939236402511597, 0.0030274540185928345, 0.11777949333190918, -0.18441134691238403, 0.45783358812332153, -0.44166627526283264, -0.19753456115722656, -0.0446300134062767, -0.46527889370918274, -0.27526646852493286, 0.02240421436727047, -0.24252398312091827, 0.3065882921218872, 0.24856802821159363, 0.2956538498401642, -0.12808524072170258, -0.2421015501022339, 0.0942339301109314, 0.5216513276100159, 0.15536727011203766, 0.1717791110277176, -0.4501481354236603, -0.050600938498973846, 0.23662391304969788, 0.021173328161239624, 0.10301505774259567, 0.23173144459724426, 0.07049766182899475, 0.18208667635917664, 0.20369228720664978, -0.08065435290336609, 0.08532223105430603, 0.34626680612564087, 0.314100980758667, 0.16411997377872467, 0.018033187836408615, 0.06528718024492264, -0.6053049564361572, 0.26045677065849304, 0.12021195888519287, -0.3094295263290405, -0.12507440149784088, -0.07386849820613861, 0.20491009950637817, 0.0017369408160448074, -0.20243801176548004, -0.10867071151733398, -0.0003935694694519043, 0.27428215742111206, 0.1454484909772873, -0.05523517727851868, -0.11810025572776794, 0.8604555130004883, 0.08628322184085846, 0.0036056358367204666, -0.429192453622818, 0.20437730848789215, 0.03287898749113083, -0.04298485070466995, -0.4474217891693115, 0.04478371888399124, -0.04268839210271835, -0.4182526767253876, -0.24321237206459045, 0.46490052342414856, 0.3506845235824585, 0.3006814420223236, -0.23913055658340454, 0.41532760858535767, 0.1859852373600006, 0.042075928300619125, 0.19924430549144745, 0.3048708140850067, -0.04310927167534828, 0.0007799416780471802, -0.17316681146621704, 0.4629340171813965, -0.47145864367485046, 0.19833970069885254, -0.22835522890090942, -0.19323688745498657, 0.07064254581928253, -0.14930766820907593, -0.23293156921863556, -0.1934788078069687, 0.10174058377742767, 0.23597897589206696, 0.4909026026725769, -0.07476094365119934, 0.0919312834739685, 0.21782082319259644, -0.22012236714363098, 0.08578535914421082, -0.054743848741054535, -0.04850408434867859, 0.04953642189502716, -0.05175349861383438, -0.052422620356082916, 0.43830767273902893, 0.6150476336479187, 0.07601623237133026, 0.1830510050058365, -0.06794031709432602, -0.159508615732193, -0.14642810821533203, 0.3480270802974701, 0.042505934834480286, -0.2672622799873352, 0.24665287137031555, 0.2790881097316742, 0.028127102181315422, -0.027230385690927505, -0.2466505467891693, -0.06711599230766296, 0.18158838152885437, -0.4375726580619812, 0.43041083216667175, -0.32264697551727295, -0.20952385663986206, -0.3607615828514099, 0.08393743634223938, 0.1420997530221939, -0.16742299497127533, -0.16519714891910553, 0.08095712959766388, -0.27448904514312744, 0.03058103285729885, 0.06481596827507019, 0.31361448764801025, -0.16583247482776642, -0.6667900085449219, -0.1473151445388794, -0.08028476685285568, -0.32425248622894287, -0.13185790181159973, 0.2298160046339035, -0.2547454833984375, 0.14071227610111237, -0.20573855936527252, -0.12786853313446045, -0.1628001481294632, -0.18733830749988556, 0.06217268109321594, 0.20041786134243011, 0.49067339301109314, 0.04621967673301697, 0.06597480922937393, 0.22681207954883575, 0.026709139347076416, 0.06610595434904099, 0.07205453515052795, 0.23091456294059753, -0.06295137852430344, 0.21807175874710083, 0.13134847581386566, -0.1689983457326889, -0.15955370664596558, -0.06644041836261749, -0.1934349238872528, -0.18459714949131012, -0.0346493124961853, 0.19996406137943268, 0.7269014120101929, 0.15500912070274353, 0.038332805037498474, 0.07737372070550919, -0.2104189097881317, 0.048071421682834625, -0.32984718680381775, 0.3939298093318939, 0.018152857199311256, -0.038184527307748795, -0.3343140780925751, -0.10426840931177139, 0.18888087570667267, 0.3690492510795593, -0.4201875329017639, -0.18707101047039032, -0.336313933134079, 0.6012744307518005, -0.2690957486629486, 0.27917057275772095, 0.32949215173721313, 0.07623182237148285, 0.08772898465394974, -0.32471489906311035, -0.10430754721164703, 0.16253270208835602, 0.1321009397506714, 0.11478731781244278, 0.08691440522670746, -0.07069434225559235, -0.09717169404029846, 0.5306581258773804, 0.012150201946496964, -0.15698948502540588, 0.2718312740325928, 0.13944308459758759, 0.5325291156768799, 0.155242457985878, -0.15084874629974365, -0.2787524163722992, -0.08367502689361572, -0.5534414052963257, 0.2561796009540558, 0.08621034771203995, 0.007343621458858252, -0.18095506727695465, -0.1262340098619461, 0.12037148326635361, -0.3793777525424957, 0.10294820368289948, -0.12087912857532501, 0.40551477670669556, 0.13662785291671753, -0.024224691092967987, -0.5372179746627808, -0.15781277418136597, 0.029409419745206833, 0.2795489430427551, 0.15347227454185486, 0.08861374109983444, -0.014869563281536102, 0.1416972428560257, -0.1060355082154274, -0.027559563517570496, -0.12691165506839752, 0.40598368644714355, 0.06036928668618202, -0.11184123903512955, 0.010706901550292969, -0.036117907613515854, 0.638948380947113, -0.1616092473268509, 0.3345128297805786, 0.1376919150352478, 0.13304577767848969, -0.16299301385879517, -0.1390514373779297, -0.08824419975280762, 0.1202397421002388, 0.1320769190788269, 0.31444236636161804, 0.053292207419872284, -0.09368009120225906, -0.31313109397888184, 0.37787503004074097, -0.10676328837871552, -0.015409998595714569, -0.17198093235492706, -0.003670763224363327, 0.11593791842460632, -0.13130459189414978, 0.10773501545190811, -0.11528471112251282, 0.41282638907432556, 0.1316055953502655, -0.10247355699539185, -0.25177255272865295, -0.10477881133556366, -0.06688883900642395, 0.212612122297287, -0.2603001296520233, 0.3837035894393921, 0.06874828040599823, -0.10318292677402496, -0.2332487404346466, 0.11304102092981339, -0.8090943694114685, -0.1822919249534607, 0.13490241765975952, -0.019746331498026848, 0.22383897006511688, 0.5519466400146484, -0.23874503374099731, -0.0002772212028503418, -0.3955346345901489, 0.0063831135630607605, -0.1475772261619568, 0.16990216076374054, 0.13712330162525177, 0.12036871165037155, 0.04004949331283569, -0.4993945062160492, 0.3429698944091797, 0.26420244574546814, -0.25127434730529785, 0.6438788175582886, 0.02848539501428604, -0.6433326005935669, 0.36379581689834595, 0.25877630710601807, 0.8201850056648254, 0.11014854907989502, 0.4138181209564209, 0.05815050005912781, -0.401203453540802, 0.16083970665931702, -0.26614242792129517, 0.14569810032844543, -0.12210783362388611, 0.07326561957597733, -0.009024441242218018, -0.25758227705955505, 0.19554385542869568, 0.04101476073265076, -0.3113946318626404, 0.18643426895141602, -0.21861888468265533, 0.3136664032936096, -0.014899950474500656, 0.057798177003860474, -0.12705369293689728, -0.37522923946380615, 0.28769710659980774, 0.06047578155994415, -0.11632771790027618, 0.32054027915000916, -0.1919446587562561, -0.026170965284109116, 0.02355862781405449, 0.01686878502368927, -0.07019972056150436, -0.09094734489917755, -0.43708106875419617, 0.16813521087169647, -0.1358397752046585, -0.402405321598053, 0.005758814513683319, 0.2985970377922058, 0.56198650598526, 0.14335685968399048, -0.11453203856945038, -0.0600367970764637, 0.028025511652231216, 0.2845606505870819, -0.022115375846624374, -0.12261158972978592, 0.19268016517162323, 0.22620859742164612, 0.11030036956071854, -0.179203063249588, -0.18883349001407623, -0.0917138010263443, -0.1386091113090515, 0.07186850905418396, 0.33629846572875977, -0.10389778763055801, 0.04563741758465767, 0.24845458567142487, 0.2122902274131775, -0.12059560418128967, 0.06531601399183273, 0.11092931032180786, 0.11625538766384125, 0.3100391626358032, -0.6647249460220337, -0.37222936749458313, -0.018036864697933197, 0.2848843038082123, 0.1446170210838318, -0.03973344713449478, 0.24981284141540527, -0.12309765815734863, -0.116390161216259, -0.15554773807525635, 0.4415305256843567, -0.4121507406234741, -0.2633320391178131, 0.22839468717575073, -0.1655164659023285, -0.10562050342559814, -0.05260899290442467, 0.023072175681591034, 0.03601178526878357, 0.03521459177136421, -0.12966099381446838, -0.27437806129455566, -0.32892003655433655, -0.11715741455554962, 0.17508724331855774, 0.310585618019104, -0.11951928585767746, 0.07279309630393982, -0.11391697824001312, -0.09187084436416626, -0.22758561372756958, -0.05908767879009247, 0.38334158062934875, 0.051503054797649384, 0.19890369474887848, 0.2804580330848694, 0.06034766882658005, -0.0496458001434803, -0.056862808763980865, -0.013256043195724487, -0.2597101628780365, -0.09942104667425156, -0.34791556000709534, 0.195224791765213, 0.05530097708106041, -0.12340006977319717, 0.07723589986562729, -0.434017539024353, 0.20048585534095764, -0.36873066425323486, 0.17267769575119019, 0.45113405585289, -0.10589765012264252, 0.27404847741127014, -0.02790825441479683, 0.12983353435993195, 0.07736127078533173, 0.05863551050424576, -0.17000117897987366, -0.21091826260089874, 0.05057824030518532, 0.39498934149742126, -0.20874974131584167, -0.04935503751039505, -0.31371891498565674, 0.016631267964839935, -0.11658860743045807, 0.2601873576641083, -0.09080275148153305, -0.12441249191761017, 0.01244213804602623, 0.002030464354902506, -0.22549860179424286, 0.06781257688999176, -0.22726717591285706, -0.2584245204925537, 0.25890815258026123, 0.06538309901952744, -0.17434868216514587, -0.26895734667778015, -0.22632381319999695, -0.07122635096311569, 0.1602814495563507, 0.5108343958854675, 0.2575976252555847, -0.10238587856292725, 0.32042932510375977, -0.06323681026697159, 0.5547515153884888, -0.035056259483098984, 0.16548791527748108, 0.728387176990509, 0.011074308305978775, 0.021944958716630936, 0.019116196781396866, 0.03900476545095444, 0.20702193677425385, 0.6078214049339294, 0.0997806191444397, 0.43706104159355164, -0.08555536717176437, -0.03519031032919884, -0.3393569588661194, -0.4043065309524536, 0.22400693595409393, -0.029663249850273132, 0.06929626315832138, 0.1162489801645279, 0.052816666662693024, 0.2945389747619629, -0.5149945020675659, 0.17688988149166107, -0.04940832406282425, 0.01701139286160469, 0.030979683622717857, -0.23888146877288818, 0.4712716341018677, -0.13685579597949982, -0.002377636730670929, -0.0015687532722949982, -0.08244776725769043, 0.10046878457069397, -0.05534392595291138, 0.037984851747751236, -0.06350909173488617, -0.017704615369439125, 0.27093204855918884, 0.028290940448641777, 0.08097635954618454, -0.14172223210334778, 0.18635721504688263, -0.3387260437011719, -0.11353901028633118, -0.1181860864162445, 0.045517079532146454, 0.05710778385400772, 0.28326594829559326, 0.028500637039542198, 0.005406539887189865, -0.17911511659622192, 0.10829596221446991, -0.05239122360944748, 0.18092945218086243, -0.5175291299819946, -0.16630037128925323, 0.20780815184116364, -0.03509727865457535, -0.09923799335956573, 0.012621903792023659, 0.13139083981513977, -0.14314843714237213, -0.30616626143455505, 0.40621042251586914, 0.11676205694675446, -0.06726248562335968, 0.16554558277130127, 0.01925620436668396, -0.050597839057445526, -0.170359805226326, 0.21448908746242523, -0.010527007281780243, 0.20910552144050598, 0.12909214198589325, 0.0014912933111190796, 0.01106417179107666, 0.3781302869319916, 0.1249687522649765, -0.10785200446844101, -0.37387171387672424, -0.02057024836540222, -0.7057849168777466, 0.2669619619846344, -0.19191786646842957, -0.13817299902439117, -0.2456951141357422, -0.1836998015642166, 0.006373412907123566, -0.008342698216438293, 0.09239687025547028, 0.35605350136756897, -0.05588134378194809, -0.019786477088928223, -0.2886713445186615, -0.2892656922340393, -0.1749841421842575, 0.08997813612222672, 0.05080432444810867, -0.4616979956626892, -0.11904288828372955, 0.33854395151138306, 0.06455803662538528, -0.2793731689453125, -0.12102383375167847, 0.09527464210987091, 0.06879402697086334, 0.598113477230072, 0.0673530101776123, -0.21324297785758972, 0.13991090655326843, 0.046724833548069, -0.5651698708534241, -0.05653838440775871, -0.16259463131427765, -0.3150891661643982, 0.1739930659532547, -0.019403131678700447, -0.6791373491287231, -0.3310694098472595, -0.44126152992248535, 0.11417865753173828, 0.2837008237838745, 0.10390143096446991, 0.00684315524995327, 0.15412774682044983, -0.20370078086853027, 0.4262356162071228, 0.11825093626976013, 0.37681785225868225, -0.0645633265376091, 0.3548187017440796, -0.45955586433410645, -0.21472391486167908, 0.3356674909591675, -0.2708202600479126, -0.26925912499427795, -0.01435899268835783, 0.3655238449573517, -0.21505945920944214, -0.1399894505739212, -0.3914993405342102, -0.12981729209423065, 0.243395134806633, -0.08433406054973602, -0.40334418416023254, 0.044621530920267105, 0.14774242043495178, 0.15266187489032745, -0.032074231654405594, 0.2768898606300354, 0.2246265411376953, 0.07487870007753372, 0.1358174830675125, -0.04983912780880928 ]
https://github.com/huggingface/datasets/issues/4056
Unexpected behavior of _TempDirWithCustomCleanup
Hi, yeah setting the environment variable before the imports / as environment variable outside is another way to fix this. I am just arguing that `datasets` already uses its own global variable to track temporary files: `_TEMP_DIR_FOR_TEMP_CACHE_FILES`, and the creation of this global variable should respect TMPDIR instead of relying on tempfile to do so.
## Describe the bug This is not 100% a bug in `datasets`, but behavior that surprised me and I think this could be made more robust on the `datasets`side. When using `datasets.disable_caching()`, cache files are written to a temporary directory. This directory should be based on the environment variable TMPDIR. I want to set TMPDIR at runtime using os.ENVIRON["TMPDIR"] = something, but depending on other imported modules this can fail to take effect. ## Steps to reproduce the bug `_TempDirWithCustomCleanup` relies on `tempfile` to generate a path to a temporary directory. However, `tempfile` generates the path only once. This can be a problem when trying to set TMPDIR at runtime whenever other code imports `tempfile` first and does something unexpected. For example (after too much trial and error) I found out that a different part of the code base I work with defines a class `PatchedDataCollatorForLanguageModeling(transformers.DataCollatorForLanguageModeling)` based on a `transformers` class. This import is enough to trigger `tempfile` to generate `tempfile` to generate a temporary path and leading to the wrong path being cached in `tempfile.tempdir`. ## Suggestion: I could file this also as bug with `transformers`, but I think fixing this on the datasets would be much more robust: Datasets could recompute the temporary path once (technically possible via `tempfile._get_default_tempdir` or resetting the global variable `tempfile.tmpdir` to None) before setting its own global `_TEMP_DIR_FOR_TEMP_CACHE_FILES`.
55
Unexpected behavior of _TempDirWithCustomCleanup ## Describe the bug This is not 100% a bug in `datasets`, but behavior that surprised me and I think this could be made more robust on the `datasets`side. When using `datasets.disable_caching()`, cache files are written to a temporary directory. This directory should be based on the environment variable TMPDIR. I want to set TMPDIR at runtime using os.ENVIRON["TMPDIR"] = something, but depending on other imported modules this can fail to take effect. ## Steps to reproduce the bug `_TempDirWithCustomCleanup` relies on `tempfile` to generate a path to a temporary directory. However, `tempfile` generates the path only once. This can be a problem when trying to set TMPDIR at runtime whenever other code imports `tempfile` first and does something unexpected. For example (after too much trial and error) I found out that a different part of the code base I work with defines a class `PatchedDataCollatorForLanguageModeling(transformers.DataCollatorForLanguageModeling)` based on a `transformers` class. This import is enough to trigger `tempfile` to generate `tempfile` to generate a temporary path and leading to the wrong path being cached in `tempfile.tempdir`. ## Suggestion: I could file this also as bug with `transformers`, but I think fixing this on the datasets would be much more robust: Datasets could recompute the temporary path once (technically possible via `tempfile._get_default_tempdir` or resetting the global variable `tempfile.tmpdir` to None) before setting its own global `_TEMP_DIR_FOR_TEMP_CACHE_FILES`. Hi, yeah setting the environment variable before the imports / as environment variable outside is another way to fix this. I am just arguing that `datasets` already uses its own global variable to track temporary files: `_TEMP_DIR_FOR_TEMP_CACHE_FILES`, and the creation of this global variable should respect TMPDIR instead of relying on tempfile to do so.
[ -0.1449769288301468, 0.10175195336341858, 0.04245131090283394, 0.2181852012872696, 0.37386757135391235, -0.1418621838092804, 0.3822782039642334, 0.08157408237457275, 0.1883886754512787, 0.11806182563304901, 0.05843815207481384, 0.30463308095932007, -0.28687310218811035, -0.14123845100402832, 0.06350214034318924, 0.15094314515590668, 0.09316796809434891, 0.10523038357496262, -0.03929261118173599, 0.04964928328990936, -0.15898874402046204, 0.20648346841335297, -0.1186182051897049, -0.043718382716178894, -0.25276288390159607, 0.01174871064722538, -0.14794860780239105, 0.004919935017824173, 0.5396661758422852, -0.2622168958187103, 0.36938855051994324, 0.06713176518678665, 0.2274114489555359, 0.38745439052581787, -0.00012382349814288318, 0.14259721338748932, 0.015901122242212296, -0.02908935956656933, -0.21370038390159607, -0.001610875129699707, -0.26858994364738464, -0.05524741858243942, -0.1084170863032341, -0.2961159944534302, 0.0879426822066307, 0.024156861007213593, 0.07902620732784271, -0.8962483406066895, 0.07137422263622284, 0.1921021044254303, 0.07882598042488098, 0.29328152537345886, -0.5382044911384583, 0.3236328065395355, 0.3635340929031372, 0.1443379819393158, -0.0873856395483017, -0.19817504286766052, 0.2533186972141266, -0.1765771359205246, -0.25918182730674744, 0.1210750937461853, -0.1219768226146698, -0.034478578716516495, 0.5438891053199768, 0.28801578283309937, 0.09112311154603958, -0.056179068982601166, 0.025745496153831482, 0.05501553416252136, 0.6527896523475647, -0.357683390378952, -0.25169333815574646, -0.3258020281791687, -0.38631492853164673, -0.13762013614177704, 0.5321052074432373, -0.129911869764328, 0.14080114662647247, 0.3440130352973938, 0.2667510509490967, 0.17889639735221863, -0.23594073951244354, 0.17494189739227295, -0.10404834151268005, 0.16152015328407288, -0.036139462143182755, -0.07380128651857376, -0.07862535119056702, 0.1726221740245819, 0.6788936853408813, -0.3699866533279419, -0.026164274662733078, 0.3638818562030792, -0.019373442977666855, 0.04846830666065216, 0.030681215226650238, 0.30681735277175903, -0.022368593141436577, -0.1595633327960968, 0.26121675968170166, -0.08120891451835632, -0.24040719866752625, -0.000046215951442718506, 0.15805551409721375, 0.4145326316356659, -0.03408188372850418, 0.44039174914360046, 0.4421185255050659, -0.13879992067813873, 0.030084278434515, 0.16906288266181946, 0.2616032660007477, -0.35145509243011475, 0.6093816757202148, 0.19501951336860657, 0.19036142528057098, -0.10890038311481476, -0.21574300527572632, 0.06475227326154709, -0.10924621671438217, -0.14687100052833557, 0.09547054022550583, -0.05363345891237259, 0.018001452088356018, 0.29733169078826904, -0.10934305191040039, -0.09911446273326874, -0.21543438732624054, 0.07451135665178299, -0.15543940663337708, -0.050016265362501144, -0.29859989881515503, 0.008338826708495617, 0.1767415851354599, 0.18731270730495453, 0.16482172906398773, 0.17931777238845825, 0.06194927543401718, 0.047209762036800385, 0.17936435341835022, -0.19923783838748932, 0.15873873233795166, 0.11210278421640396, -0.34752601385116577, 0.324466735124588, -0.03274555131793022, -0.1110653281211853, -0.1343809962272644, 0.2878173589706421, -0.35559844970703125, -0.20297054946422577, 0.20391128957271576, 0.008650214411318302, -0.4645411968231201, 0.04018786549568176, 0.423926442861557, 0.04857482761144638, 0.4059733748435974, -0.11752770841121674, 0.18395116925239563, -0.09635575115680695, -0.3681897819042206, -0.2783448398113251, 0.0009847991168498993, 0.7633584141731262, -0.388927698135376, 0.020210877060890198, -0.02580360509455204, -0.019843198359012604, 0.09075666964054108, 0.14946886897087097, -0.20561952888965607, 0.4660894572734833, -0.5189309120178223, -0.18345099687576294, -0.04353191703557968, -0.404293030500412, -0.3167613446712494, 0.015871915966272354, -0.2742413580417633, 0.3247334063053131, 0.2455117106437683, 0.3294087052345276, -0.1529574692249298, -0.2014961689710617, 0.0036598294973373413, 0.499193012714386, 0.12905478477478027, 0.10829990357160568, -0.39475250244140625, -0.033248163759708405, 0.2179643213748932, 0.019460570067167282, 0.08175770938396454, 0.24855399131774902, 0.12998095154762268, 0.21564091742038727, 0.19068750739097595, -0.0946955680847168, 0.1133049950003624, 0.3512542247772217, 0.34396669268608093, 0.14695775508880615, 0.036994531750679016, 0.0859832763671875, -0.6181581616401672, 0.29197192192077637, -0.0022470876574516296, -0.31582972407341003, -0.1626838892698288, -0.12870176136493683, 0.13625437021255493, 0.04060942679643631, -0.2281550019979477, -0.14429165422916412, -0.011906558647751808, 0.2640495300292969, 0.08133803308010101, -0.0944444090127945, -0.08780530095100403, 0.8349960446357727, 0.058702290058135986, -0.011323277838528156, -0.3962955176830292, 0.15860533714294434, -0.04641221463680267, -0.040283285081386566, -0.4506998360157013, 0.03972376883029938, -0.017969660460948944, -0.4468056559562683, -0.22192102670669556, 0.43067023158073425, 0.38582924008369446, 0.31103384494781494, -0.21977615356445312, 0.3570067584514618, 0.18418145179748535, -0.005766782909631729, 0.17939014732837677, 0.24434886872768402, 0.00741348322480917, -0.04463445395231247, -0.2711062431335449, 0.47318482398986816, -0.47193166613578796, 0.23609712719917297, -0.27780187129974365, -0.18438489735126495, 0.07456064969301224, -0.13736818730831146, -0.17560997605323792, -0.25411224365234375, 0.107029989361763, 0.2578236162662506, 0.481285035610199, -0.04662354290485382, 0.12211014330387115, 0.23090192675590515, -0.1257167011499405, 0.15354688465595245, -0.10222888737916946, -0.03519711643457413, 0.07459897547960281, -0.04025130346417427, -0.033178478479385376, 0.4752527177333832, 0.6269949078559875, 0.06804606318473816, 0.27048107981681824, -0.07548502087593079, -0.09898068755865097, -0.1363658457994461, 0.37376725673675537, 0.008637525141239166, -0.3199528455734253, 0.2281554937362671, 0.2302284985780716, -0.026364531368017197, -0.06309578567743301, -0.22044207155704498, -0.0008296174928545952, 0.18065880239009857, -0.39776894450187683, 0.413017600774765, -0.3748020827770233, -0.25668853521347046, -0.3954092860221863, 0.09881840646266937, 0.09589861333370209, -0.1347435712814331, -0.150801882147789, 0.07430478930473328, -0.2476804554462433, -0.007613565772771835, 0.15043194591999054, 0.3322291374206543, -0.19694237411022186, -0.650261402130127, -0.15942609310150146, -0.07921897619962692, -0.3176480531692505, -0.12704555690288544, 0.26297256350517273, -0.22960156202316284, 0.09119772166013718, -0.14607515931129456, -0.12490112334489822, -0.2400212287902832, -0.19393479824066162, 0.07797113060951233, 0.18172836303710938, 0.46300008893013, 0.06358693540096283, 0.018067069351673126, 0.1479487419128418, 0.06954140216112137, 0.04623616859316826, 0.04981333017349243, 0.16108472645282745, -0.05930048227310181, 0.16427667438983917, 0.1643170416355133, -0.19184112548828125, -0.11272730678319931, -0.01341056264936924, -0.1922861635684967, -0.14117680490016937, -0.11241915822029114, 0.23201319575309753, 0.7513973116874695, 0.13858622312545776, 0.07169238477945328, 0.07996058464050293, -0.29162850975990295, -0.02030397206544876, -0.383740097284317, 0.39399784803390503, 0.05453072488307953, -0.01829029619693756, -0.3052450716495514, -0.06958484649658203, 0.18093430995941162, 0.411016047000885, -0.4224625825881958, -0.1799435168504715, -0.2947658896446228, 0.604231059551239, -0.2300930619239807, 0.24399897456169128, 0.3851735591888428, 0.07907897233963013, 0.11276756227016449, -0.3319580852985382, -0.15150292217731476, 0.2047891616821289, 0.11781253665685654, 0.1787344515323639, 0.054439108818769455, -0.07481449097394943, -0.058540210127830505, 0.5207735300064087, 0.010548669844865799, -0.06702888011932373, 0.3218346834182739, 0.1670645773410797, 0.5975356101989746, 0.17893514037132263, -0.17718276381492615, -0.22221538424491882, -0.06426246464252472, -0.567900538444519, 0.2976101040840149, 0.06019978225231171, -0.04645172506570816, -0.14922687411308289, -0.1268090307712555, 0.1799394190311432, -0.3651915192604065, 0.1288677453994751, -0.1048772931098938, 0.3786032795906067, 0.1156066358089447, -0.03713853657245636, -0.5002796053886414, -0.10274811834096909, 0.07571285963058472, 0.22960422933101654, 0.1454487293958664, 0.12786908447742462, -0.035086702555418015, 0.11983776837587357, -0.01740638166666031, -0.030062124133110046, -0.13843700289726257, 0.43364259600639343, -0.0046957433223724365, 0.008071213960647583, 0.06848645210266113, -0.046125076711177826, 0.7201982140541077, -0.14990097284317017, 0.3382863998413086, 0.11555211246013641, 0.16956976056098938, -0.1683129519224167, -0.13767653703689575, -0.0785781666636467, 0.07209958881139755, 0.12230439484119415, 0.2645699381828308, 0.020062945783138275, -0.07615850865840912, -0.2952439785003662, 0.4142007529735565, -0.08450382947921753, -0.06644770503044128, -0.20088432729244232, 0.007916830480098724, 0.17865070700645447, -0.10722807794809341, 0.09229161590337753, -0.11101563274860382, 0.4547088146209717, 0.09956610202789307, -0.10714149475097656, -0.27085942029953003, -0.1209373027086258, -0.07507231831550598, 0.23853343725204468, -0.2700803875923157, 0.3229905366897583, 0.11707775294780731, -0.10031099617481232, -0.23006510734558105, 0.19085653126239777, -0.7882163524627686, -0.20382076501846313, 0.09135890752077103, -0.08711782842874527, 0.21690459549427032, 0.5520356297492981, -0.23579642176628113, -0.019480176270008087, -0.34595856070518494, -0.1393134444952011, -0.10203028470277786, 0.24772514402866364, 0.13903681933879852, 0.17812028527259827, 0.12462698668241501, -0.4597884714603424, 0.3000771999359131, 0.30223363637924194, -0.2578244209289551, 0.7088435888290405, 0.05846815183758736, -0.6300464272499084, 0.33004021644592285, 0.19026285409927368, 0.782318115234375, 0.16583356261253357, 0.30624473094940186, 0.002904888242483139, -0.44043707847595215, 0.14337481558322906, -0.2747921943664551, 0.16138266026973724, -0.09876957535743713, 0.0509883388876915, -0.00007170252501964569, -0.26200541853904724, 0.2148783802986145, 0.07219649851322174, -0.2745479345321655, 0.18780295550823212, -0.21277059614658356, 0.4021643400192261, 0.006789254490286112, 0.04771275818347931, -0.15402686595916748, -0.394011527299881, 0.4090932011604309, 0.042388059198856354, -0.15143215656280518, 0.32865387201309204, -0.2047148048877716, -0.07193130999803543, 0.004894886165857315, -0.005047474056482315, -0.07686123251914978, -0.08220641314983368, -0.44152000546455383, 0.15679073333740234, -0.17432722449302673, -0.3950592875480652, 0.03591122105717659, 0.2916404902935028, 0.5952259302139282, 0.09494774043560028, -0.12340421974658966, -0.013268634676933289, 0.04973181337118149, 0.33223211765289307, -0.05744573101401329, -0.2320619374513626, 0.1403525024652481, 0.2111646831035614, 0.10064149647951126, -0.17810091376304626, -0.14847435057163239, -0.09979797899723053, -0.1443636268377304, 0.11685322225093842, 0.3433764576911926, -0.016183150932192802, 0.12227252125740051, 0.24182772636413574, 0.21040011942386627, -0.14810101687908173, 0.05044576898217201, 0.11311718821525574, 0.06411120295524597, 0.33972787857055664, -0.7529249787330627, -0.3613259792327881, -0.012646675109863281, 0.2926960289478302, 0.14606663584709167, -0.025518275797367096, 0.21353307366371155, -0.18718694150447845, -0.08829495310783386, -0.15062884986400604, 0.45239824056625366, -0.37045422196388245, -0.2677001953125, 0.22750446200370789, -0.23574556410312653, -0.17917343974113464, -0.05219250172376633, -0.04088306799530983, 0.02556188777089119, 0.035175200551748276, -0.19144433736801147, -0.28338831663131714, -0.3620890974998474, -0.1871931105852127, 0.09606708586215973, 0.28736451268196106, -0.14191611111164093, 0.08958573639392853, -0.08750933408737183, -0.09366173297166824, -0.20808039605617523, -0.05166369676589966, 0.3383546769618988, 0.08919842541217804, 0.1423923373222351, 0.2353687286376953, 0.06863655894994736, -0.09493665397167206, -0.09000390768051147, -0.00498247891664505, -0.2317977398633957, -0.0618656724691391, -0.33751967549324036, 0.20823293924331665, 0.02660340629518032, 0.0022918935865163803, 0.08559151738882065, -0.4166285991668701, 0.18294082581996918, -0.37140801548957825, 0.20544016361236572, 0.44058161973953247, -0.06799308955669403, 0.25980281829833984, -0.029610197991132736, 0.15029531717300415, 0.02977963536977768, 0.026727991178631783, -0.15589502453804016, -0.16851066052913666, 0.04641658440232277, 0.37538522481918335, -0.16654041409492493, -0.06788130104541779, -0.3131009638309479, -0.0002397000789642334, -0.06454020738601685, 0.25728756189346313, -0.09962274879217148, -0.08784487843513489, -0.04841991886496544, 0.0721110850572586, -0.211748868227005, 0.08500548452138901, -0.19082996249198914, -0.29930487275123596, 0.2919277548789978, 0.0462883859872818, -0.19629748165607452, -0.3366228938102722, -0.20066729187965393, -0.05866627395153046, 0.1617264449596405, 0.5111392140388489, 0.32750219106674194, -0.1662949025630951, 0.3339154124259949, -0.06354299187660217, 0.5798438787460327, 0.007287831977009773, 0.1736879050731659, 0.7158324122428894, 0.03367728367447853, -0.006478119641542435, 0.10119165480136871, 0.05124280974268913, 0.21511685848236084, 0.7012872695922852, 0.029577549546957016, 0.42556869983673096, -0.04114250838756561, -0.018237624317407608, -0.24478751420974731, -0.3434947729110718, 0.17506897449493408, -0.00024147331714630127, 0.11384373903274536, 0.13994580507278442, 0.03031359612941742, 0.25183239579200745, -0.5134683847427368, 0.1323835253715515, -0.014326142147183418, -0.04090311750769615, -0.01916329935193062, -0.17671583592891693, 0.37670737504959106, -0.12661275267601013, -0.02646039053797722, 0.0013854838907718658, -0.046073924750089645, 0.13244479894638062, -0.05298183858394623, 0.011383749544620514, -0.11996093392372131, -0.039969153702259064, 0.1943555772304535, 0.08736510574817657, 0.07175115495920181, -0.21341562271118164, 0.1771085262298584, -0.30044448375701904, -0.15169988572597504, -0.07060307264328003, 0.05828655883669853, 0.014933161437511444, 0.2650091052055359, 0.0713018998503685, -0.0710708498954773, -0.1786695420742035, 0.097649484872818, -0.09442152082920074, 0.1562611162662506, -0.5991376638412476, -0.22205550968647003, 0.21750180423259735, -0.07382424920797348, -0.07597260177135468, -0.00979650765657425, 0.18931320309638977, -0.11382366716861725, -0.29552286863327026, 0.3100699782371521, 0.09570977836847305, -0.05341333895921707, 0.14411231875419617, 0.047933273017406464, -0.03898629546165466, -0.12982496619224548, 0.19380252063274384, -0.06524991989135742, 0.20141953229904175, 0.1072106659412384, -0.009102870710194111, -0.009877841919660568, 0.36717087030410767, 0.0605861097574234, -0.16365551948547363, -0.41765645146369934, -0.10294067859649658, -0.7427411675453186, 0.2638101577758789, -0.18738242983818054, -0.06940771639347076, -0.20935527980327606, -0.1400938630104065, 0.003653019666671753, -0.033594466745853424, 0.05296197533607483, 0.3512066602706909, -0.04387780651450157, 0.003750622272491455, -0.34272509813308716, -0.28116801381111145, -0.09735852479934692, 0.04882470518350601, 0.05038408935070038, -0.45923367142677307, -0.06777094304561615, 0.3210761547088623, 0.0424225851893425, -0.23617099225521088, -0.15479500591754913, 0.04728487506508827, 0.073138028383255, 0.5523963570594788, 0.06670229136943817, -0.25989413261413574, 0.13315579295158386, 0.06766550242900848, -0.5913597941398621, -0.01903262361884117, -0.19776512682437897, -0.2949511408805847, 0.24409759044647217, -0.03466029465198517, -0.6813004016876221, -0.29577288031578064, -0.4482429623603821, 0.13906903564929962, 0.3355206847190857, 0.155193030834198, -0.023422444239258766, 0.19735322892665863, -0.2656666040420532, 0.45268434286117554, 0.11087504774332047, 0.3257625699043274, -0.025183506309986115, 0.2872498035430908, -0.47210150957107544, -0.22833868861198425, 0.3570581078529358, -0.21749842166900635, -0.30995917320251465, 0.014205601997673512, 0.3727094531059265, -0.16798782348632812, -0.14989501237869263, -0.3438606858253479, -0.11524921655654907, 0.25541365146636963, -0.056609757244586945, -0.3646308481693268, 0.022468140348792076, 0.16496481001377106, 0.1921326071023941, -0.04207727313041687, 0.263927161693573, 0.2824711203575134, 0.08113130182027817, 0.2210102379322052, -0.08256292343139648 ]
https://github.com/huggingface/datasets/issues/4052
metric = metric_cls( TypeError: 'NoneType' object is not callable
Hi @klyuhang9, I'm sorry but I can't reproduce your problem: ```python In [2]: metric = load_metric('glue', 'rte') Downloading builder script: 5.76kB [00:00, 2.40MB/s] ``` Could you please, retry to load the metric? Sometimes there are temporary connectivity issues. Feel free to re-open this issue of the problem persists.
Hi, friend. I meet a problem. When I run the code: `metric = load_metric('glue', 'rte')` There is a problem raising: `metric = metric_cls( TypeError: 'NoneType' object is not callable ` I don't know why. Thanks for your help!
48
metric = metric_cls( TypeError: 'NoneType' object is not callable Hi, friend. I meet a problem. When I run the code: `metric = load_metric('glue', 'rte')` There is a problem raising: `metric = metric_cls( TypeError: 'NoneType' object is not callable ` I don't know why. Thanks for your help! Hi @klyuhang9, I'm sorry but I can't reproduce your problem: ```python In [2]: metric = load_metric('glue', 'rte') Downloading builder script: 5.76kB [00:00, 2.40MB/s] ``` Could you please, retry to load the metric? Sometimes there are temporary connectivity issues. Feel free to re-open this issue of the problem persists.
[ -0.3547108471393585, -0.28516823053359985, 0.06740279495716095, 0.43405967950820923, 0.5599151849746704, -0.12590579688549042, 0.17819228768348694, 0.0732802003622055, 0.5064229965209961, 0.38843846321105957, -0.09520968794822693, -0.03434041142463684, -0.2323550432920456, -0.009440286085009575, 0.013013627380132675, -0.21524131298065186, -0.31561556458473206, 0.20866119861602783, -0.14665278792381287, 0.022736623883247375, -0.6327371001243591, 0.10380179435014725, -0.22239269316196442, 0.06550703197717667, -0.11945059895515442, -0.009153267368674278, 0.2285580039024353, 0.20882633328437805, -0.4936308264732361, -0.24158234894275665, 0.033881500363349915, 0.06815425306558609, 0.22336803376674652, 0.672722339630127, -0.00011851095041492954, -0.19777381420135498, 0.5348932147026062, 0.045608870685100555, -0.047105222940444946, -0.41555315256118774, -0.031337156891822815, -0.3534178137779236, 0.25959452986717224, -0.29853910207748413, -0.1054040864109993, 0.13959892094135284, 0.05302722007036209, -0.17870789766311646, 0.23430395126342773, 0.36495813727378845, 0.19658303260803223, 0.569674015045166, 0.09067973494529724, -0.2971890866756439, -0.11950323730707169, -0.22731341421604156, -0.06831226497888565, 0.8404400944709778, 0.23978504538536072, 0.13587437570095062, 0.3216922879219055, 0.11286981403827667, -0.2686575949192047, 0.002416742965579033, 0.6846917271614075, -0.231178879737854, 0.5881205201148987, -0.21614259481430054, 0.02247500978410244, 0.1558224856853485, 0.3402266800403595, -0.2809393107891083, -0.006613077595829964, 0.32285988330841064, 0.076174296438694, -0.23045077919960022, 0.234549880027771, -0.17558176815509796, -0.0125090591609478, 0.03313809633255005, -0.2862852215766907, -0.28234609961509705, -0.19746637344360352, 0.32978320121765137, -0.20185299217700958, -0.11113977432250977, -0.1848137527704239, 0.18038783967494965, 0.16067923605442047, 0.1139334961771965, -0.17676086723804474, -0.1432705968618393, -0.04879951849579811, 0.22222620248794556, -0.08212518692016602, 0.07087678462266922, 0.024398408830165863, 0.19208216667175293, -0.0880674496293068, -0.09487089514732361, 0.132221981883049, 0.12485166639089584, 0.2889968454837799, 0.4460102915763855, 0.09755900502204895, 0.42888909578323364, 0.3848787844181061, 0.15096311271190643, 0.20480816066265106, 0.24586662650108337, -0.25313276052474976, -0.1446840763092041, -0.24572773277759552, -0.3169645667076111, 0.3175959885120392, 0.3544315695762634, 0.30048668384552, -0.02480202540755272, -0.2209065854549408, -0.0839819684624672, 0.10253158956766129, 0.058776192367076874, 0.40407899022102356, 0.28039824962615967, -0.18954060971736908, 0.20868757367134094, 0.3440242409706116, 0.19622482359409332, -0.07489792257547379, -0.23392237722873688, -0.12781359255313873, 0.235391765832901, -0.36125829815864563, -0.039349399507045746, -0.008892741054296494, -0.14244423806667328, -0.08978745341300964, -0.055744826793670654, 0.07350020110607147, -0.20331482589244843, 0.15242326259613037, -0.11618508398532867, -0.340694397687912, 0.12000010907649994, 0.160180926322937, 0.012827670201659203, 0.2287609726190567, -0.5455454587936401, -0.14408597350120544, 0.13602185249328613, -0.39325547218322754, -0.26604846119880676, -0.26254013180732727, 0.13789036870002747, -0.443237841129303, 0.2867882251739502, -0.03579660505056381, -0.18521641194820404, 0.020993143320083618, -0.1189558207988739, -0.12222381681203842, -0.07166104763746262, -0.2415827214717865, -0.3105049431324005, -0.036776382476091385, 0.19645047187805176, -0.17891044914722443, -0.388275146484375, -0.288217693567276, -0.055472370237112045, 0.28474903106689453, -0.18252582848072052, 0.02910376340150833, 0.3318323493003845, -0.12883172929286957, -0.38209521770477295, 1.0743091106414795, -0.7148328423500061, -0.1889733523130417, 0.28063270449638367, -0.15734267234802246, -0.23150013387203217, -0.0008277520537376404, 0.02626168541610241, 0.22191576659679413, 0.09834937006235123, 0.3431108295917511, 0.22617976367473602, 0.2056564837694168, -0.21500444412231445, -0.23175695538520813, -0.17103677988052368, 0.13026238977909088, 0.01471482589840889, 0.3682680130004883, 0.4426578879356384, 0.10099777579307556, -0.09052491188049316, -0.10837911814451218, 0.1370709240436554, -0.0677805244922638, 0.14119797945022583, 0.3759203255176544, -0.24274657666683197, 0.029831718653440475, -0.5835040211677551, -0.11352158337831497, 0.22968515753746033, -0.35337013006210327, 0.17373865842819214, 0.14333617687225342, -0.022289592772722244, -0.4704883396625519, 0.016777561977505684, 0.1275564283132553, 0.5287222862243652, 0.0828671008348465, -0.00048157572746276855, -0.1206691563129425, 0.050940949469804764, -0.2254079133272171, -0.19649598002433777, -0.27822351455688477, 0.12588287889957428, 0.21181440353393555, 0.23422925174236298, 0.0724976509809494, -0.3060060739517212, -0.051795367151498795, 0.24647942185401917, 0.455072283744812, -0.0004801573231816292, -0.08767993003129959, 0.39467257261276245, 0.014509964734315872, -0.15406520664691925, -0.1508239507675171, 0.13234210014343262, 0.06052686274051666, 0.003168158233165741, 0.13458727300167084, -0.0400688536465168, 0.21368607878684998, -0.23271089792251587, 0.5422107577323914, 0.39854103326797485, 0.5052578449249268, 0.32016605138778687, -0.10383971780538559, 0.30149412155151367, -0.3131430149078369, -0.07214275747537613, -0.1895182728767395, -0.25259265303611755, 0.32408490777015686, -0.01923856884241104, 0.1261942833662033, -0.03273279219865799, 0.32346341013908386, -0.1533202826976776, 0.5137218236923218, 0.04594988003373146, 0.298065721988678, -0.10252618044614792, -0.16085368394851685, 0.19225484132766724, -0.26487040519714355, -0.04794947803020477, 0.2964046597480774, -0.004464300349354744, -0.023752380162477493, 0.16303755342960358, -0.026739679276943207, -0.020238731056451797, -0.030517615377902985, 0.10546490550041199, -0.04326970875263214, 0.13675014674663544, -0.03735688328742981, -0.2451876550912857, -0.1654130518436432, 0.4577238857746124, 0.04219125956296921, 0.2376166433095932, -0.25861597061157227, 0.10267402976751328, -0.07094980031251907, 0.18148475885391235, 0.04596471041440964, -0.2430703192949295, -0.2367112636566162, -0.38080933690071106, -0.21293699741363525, 0.2234753966331482, 0.2669362723827362, 0.14016534388065338, 0.28768089413642883, 0.18392503261566162, -0.058297090232372284, 0.05724980682134628, 0.05441197752952576, -0.24541151523590088, -0.051489487290382385, -0.08331994712352753, 0.2778121829032898, 0.12084053456783295, 0.2595355808734894, -0.27762287855148315, 0.3161011338233948, 0.012680411338806152, -0.2460733950138092, -0.02403879165649414, 0.21738877892494202, 0.3881167769432068, 0.38370347023010254, 0.05386122688651085, 0.10826537013053894, 0.25116413831710815, 0.4825019836425781, -0.3092413544654846, 0.28988340497016907, 0.3363291025161743, -0.4795185625553131, -0.10736080259084702, -0.22244460880756378, 0.10958894342184067, -0.3469583988189697, -0.491979718208313, -0.005059249699115753, 0.30463650822639465, 0.046579256653785706, -0.11898297816514969, 0.16281840205192566, 0.32422035932540894, 0.11633123457431793, 0.22837527096271515, -0.17029361426830292, -0.3066222667694092, 0.1993267834186554, -0.18860378861427307, -0.27965033054351807, 0.23792535066604614, 0.17656955122947693, 0.4207240045070648, -0.039354357868433, -0.22085948288440704, -0.6448783278465271, -0.07395327091217041, 0.0032318532466888428, -0.020550981163978577, -0.11014094948768616, -0.009812012314796448, 0.01829081028699875, 0.018613474443554878, -0.1296052634716034, 0.10194423794746399, 0.06405225396156311, 0.2354552447795868, 0.10777799785137177, 0.1622539460659027, 0.3129822909832001, -0.17422372102737427, 0.014898441731929779, -0.011184808798134327, -0.19842399656772614, 0.29729968309402466, -0.07337075471878052, 0.49029576778411865, -0.04010560363531113, -0.27843064069747925, -0.005355390720069408, 0.2490270435810089, 0.03924553096294403, 0.05555136129260063, -0.014862515032291412, 0.04937618970870972, -0.47444799542427063, -0.1585090011358261, -0.11487826704978943, -0.176565021276474, -0.004051396623253822, 0.01492118090391159, -0.02523718774318695, 0.031470887362957, 0.20189502835273743, -0.5119376182556152, -0.044540926814079285, 0.2075231373310089, 0.3021887540817261, 0.3899978995323181, -0.11489671468734741, -0.1560295671224594, -0.19473271071910858, -0.2678390145301819, 0.4049786329269409, -0.11970929056406021, -0.04113900288939476, -0.2897808849811554, 0.23450613021850586, 0.1474248170852661, 0.07593202590942383, 0.3462875485420227, -0.22490239143371582, -0.03774549067020416, 0.40569382905960083, 0.17992450296878815, -0.6855913996696472, 0.06601150333881378, -0.05719770863652229, 0.38124993443489075, 0.1701871156692505, 0.4175984263420105, -0.4153425693511963, -0.0038606130983680487, 0.0706954151391983, 0.2210964858531952, -0.34457576274871826, -0.4781041741371155, -0.28505340218544006, -0.10455872863531113, -0.17274732887744904, -0.2310599982738495, -0.03412177786231041, 0.5141894221305847, 0.12637019157409668, -0.13753490149974823, -0.01447032205760479, -0.02758842520415783, 0.25324371457099915, -0.11805571615695953, 0.2811194658279419, -0.19431933760643005, -0.13682831823825836, 0.043924834579229355, -0.023144207894802094, -0.294683039188385, 0.09356812387704849, 0.06254079192876816, -0.3656228184700012, 0.23519307374954224, 0.12096308171749115, 0.29938384890556335, 0.2371804416179657, -0.11781617254018784, 0.05896274745464325, 0.11653153598308563, 0.39716070890426636, -0.2029769867658615, 0.04300268739461899, 0.3609810471534729, -0.045135147869586945, -0.23149141669273376, -0.23113058507442474, 0.34599271416664124, 0.1749279499053955, 0.03494103252887726, 0.29583531618118286, 0.09120670706033707, -0.12350744009017944, -0.05394343286752701, -0.033705808222293854, 1.258331537246704, -0.08171947300434113, -0.36427760124206543, 0.46186137199401855, -0.1425984501838684, 0.16256491839885712, -0.32722288370132446, -0.10824225842952728, -0.2363889217376709, -0.21314530074596405, -0.0836254358291626, -0.14900022745132446, 0.28546684980392456, -0.08331894874572754, -0.43806004524230957, 0.4369850158691406, -0.7358922362327576, 0.18216803669929504, -0.1980467438697815, 0.01837100088596344, -0.21967171132564545, 0.0253496915102005, 0.1200958639383316, 0.04858102649450302, -0.0928204357624054, 0.22520142793655396, -0.20699208974838257, -0.05634694546461105, 0.24498891830444336, -0.025014370679855347, -0.0850856602191925, -0.2899579405784607, -0.27863821387290955, -0.20208604633808136, -0.0012873820960521698, 0.1736706644296646, -0.15249477326869965, 0.1096903383731842, 0.2822192311286926, 0.0939272940158844, -0.3166322708129883, 0.33579543232917786, -0.11220521479845047, -0.1422281116247177, -0.02920774184167385, 0.17348439991474152, -0.09697920083999634, -0.15162119269371033, -0.34833815693855286, 0.31109485030174255, 0.031986821442842484, 0.1288948953151703, 0.162675678730011, -0.03663411736488342, 0.003986090421676636, -0.23256315290927887, -0.225361630320549, -0.14950178563594818, 0.15220631659030914, -0.14332154393196106, 0.1496575027704239, 0.015894390642642975, -0.08095700293779373, 0.08027470111846924, -0.08024100959300995, -0.2302272617816925, 0.05688607692718506, 0.5004342794418335, 0.3997519314289093, -0.1363043636083603, -0.08862525224685669, 0.12802019715309143, -0.2805922031402588, -0.21749365329742432, -0.05978366732597351, 0.09037890285253525, -0.1905347853899002, 0.45548856258392334, 0.41440317034721375, -0.09974271059036255, -0.055903274565935135, 0.31453171372413635, 0.1056177169084549, -0.06282702833414078, -0.2500167787075043, -0.19101855158805847, -0.164291650056839, 0.32217639684677124, 0.1456936001777649, -0.025726180523633957, -0.3997255265712738, 0.023630497977137566, 0.1509922295808792, 0.07695675641298294, -0.28198784589767456, -0.02555166184902191, -0.34059256315231323, -0.09212695807218552, 0.24556873738765717, -0.1144241914153099, 0.0765073224902153, 0.11119499802589417, 0.04864384979009628, -0.06657367944717407, -0.28356418013572693, -0.1298855096101761, -0.12526661157608032, 0.18422549962997437, 0.04959828406572342, 0.22478538751602173, 0.2573726773262024, -0.2516283392906189, -0.22915256023406982, -0.0781068205833435, -0.09966467320919037, 0.05624127388000488, -0.13933151960372925, -0.021258331835269928, -0.010948177427053452, 0.30388143658638, 0.17379631102085114, 0.3905557096004486, 0.09528942406177521, 0.5167623162269592, -0.24785567820072174, -0.09944303333759308, 0.1819065362215042, 0.03673366457223892, -0.1739221215248108, 0.0045555755496025085, 0.2187977135181427, -0.03538591414690018, 0.19299030303955078, 0.021884001791477203, -0.05949036404490471, -0.07754950225353241, 0.1655687391757965, -0.006637059152126312, -0.26263248920440674, 0.17775419354438782, -0.2914874255657196, 0.1477465182542801, -0.13051488995552063, -0.22341202199459076, 0.11369866132736206, -0.07918394356966019, 0.08215166628360748, 0.03179198503494263, -0.09094442427158356, 0.00039687007665634155, 0.0703645721077919, -0.09811270236968994, 0.42017868161201477, -0.23730988800525665, 0.02653494104743004, 0.11437270045280457, 0.03866560384631157, -0.03897592052817345, 0.3512868583202362, 0.2150612324476242, -0.03751782327890396, -0.027892589569091797, -0.3307033181190491, 0.023733356967568398, 0.022030852735042572, 0.16807188093662262, 0.11456526070833206, -0.13738363981246948, 0.18359257280826569, 0.47248637676239014, 0.09447929263114929, -0.06513417512178421, -0.30996835231781006, 0.41229671239852905, -0.5099132657051086, -0.0857318863272667, -0.4945853352546692, 0.08990143239498138, -0.04524227976799011, 0.11372838914394379, -0.3235631287097931, -0.06500311940908432, -0.34815704822540283, -0.21686972677707672, 0.22309215366840363, 0.006419077515602112, 0.03210798650979996, -0.015661828219890594, 0.1862173080444336, 0.04135200381278992, -0.5174173712730408, 0.27548888325691223, 0.01666901260614395, -0.3181522786617279, 0.10185473412275314, 0.11481885612010956, 0.4684518277645111, 0.09912486374378204, 0.393390417098999, 0.3402194380760193, 0.3877086043357849, -0.2240496277809143, -0.135765939950943, 0.10748051106929779, -0.28041085600852966, -0.07420478761196136, 0.1832723766565323, 0.021170631051063538, 0.12677665054798126, -0.04587757959961891, 0.14727500081062317, -0.28990158438682556, 0.15909554064273834, -0.2597317099571228, 0.12318150699138641, -0.07934083044528961, 0.5355056524276733, -0.37133052945137024, -0.01285729929804802, -0.3278413414955139, -0.1601303517818451, -0.6714290380477905, -0.012572123669087887, 0.22240795195102692, 0.10114779323339462, -0.00034301914274692535, -0.2992320954799652, 0.02861972153186798, -0.2680533528327942, 0.1489744931459427, -0.04809041693806648, 0.36221811175346375, -0.3310143053531647, -0.14870953559875488, -0.388740599155426, 0.4338749349117279, 0.12731508910655975, 0.0566040500998497, 0.17934513092041016, -0.15627054870128632, -0.32720455527305603, 0.02188078686594963, 0.10339449346065521, 0.4661038815975189, 0.2556454837322235, -0.15985475480556488, -0.5180952548980713, -0.14326149225234985, 0.03060828149318695, -0.2560395896434784, 0.015051960945129395, -0.2068902552127838, 0.11699491739273071, -0.4984734356403351, 0.0018137432634830475, -0.1288297474384308, -0.11525031924247742, 0.03958422318100929, 0.5338300466537476, 0.6890017986297607, 0.02123805694282055, 0.4618304967880249, -0.01113612949848175, -0.050943054258823395, 0.26850634813308716, -0.261880099773407, -0.0022291280329227448, -0.03581611067056656, 0.0070504602044820786, -0.06758050620555878, -0.10310932248830795, 0.27102747559547424, -0.31851646304130554, 0.2558973729610443, -0.11470657587051392, 0.03224366158246994, -0.1324978470802307, -0.05850838124752045, -0.37473708391189575, -0.02609134465456009, -0.011760249733924866, -0.03132866322994232, 0.2740740478038788, 0.11729098856449127, 0.06245243549346924, 0.11455623805522919, 0.8507437109947205, 0.1925879567861557, -0.3360934555530548, 0.14234308898448944, 0.2665635049343109, 0.10132584720849991, -0.15460388362407684, -0.6549245715141296, 0.033129625022411346, 0.35262319445610046, 0.10399360954761505, 0.06716512143611908, 0.37035447359085083, -0.21792811155319214, 0.15675486624240875, -0.057698845863342285, -0.3296707570552826, -0.07079612463712692, -0.05182992294430733, -0.012012572959065437, 0.06267526745796204 ]
https://github.com/huggingface/datasets/issues/4051
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py
Hi @klyuhang9, I'm sorry but I can't reproduce your problem: ```python In [4]: ds = load_dataset("glue", "sst2", download_mode="force_redownload") Downloading builder script: 28.8kB [00:00, 9.15MB/s] Downloading metadata: 28.7kB [00:00, 10.7MB/s] Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.78 MiB, post-processed: Unknown size, total: 11.88 MiB) to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.44M/7.44M [00:01<00:00, 4.12MB/s] Dataset glue downloaded and prepared to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad. Subsequent calls will reuse this data. 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1047.96it/s] In [5]: ds Out[5]: DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 872 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) }) ``` Please, note that sometimes GitHub has some temporary connectivity issues. Feel free to retry and re-open this issue if the problem persists.
Hi, I meet a problem. When I run the code: `dataset = load_dataset('glue','sst2')` There is a issue raising: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py I don't know why; it is ok when I use Google Chrome to view this url. Thanks for your help!
127
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py Hi, I meet a problem. When I run the code: `dataset = load_dataset('glue','sst2')` There is a issue raising: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py I don't know why; it is ok when I use Google Chrome to view this url. Thanks for your help! Hi @klyuhang9, I'm sorry but I can't reproduce your problem: ```python In [4]: ds = load_dataset("glue", "sst2", download_mode="force_redownload") Downloading builder script: 28.8kB [00:00, 9.15MB/s] Downloading metadata: 28.7kB [00:00, 10.7MB/s] Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.78 MiB, post-processed: Unknown size, total: 11.88 MiB) to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.44M/7.44M [00:01<00:00, 4.12MB/s] Dataset glue downloaded and prepared to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad. Subsequent calls will reuse this data. 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 1047.96it/s] In [5]: ds Out[5]: DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 872 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) }) ``` Please, note that sometimes GitHub has some temporary connectivity issues. Feel free to retry and re-open this issue if the problem persists.
[ -0.17830272018909454, -0.263933002948761, -0.07853773236274719, 0.2553514838218689, 0.4212651252746582, -0.13102148473262787, 0.08558642864227295, 0.17236210405826569, 0.11535206437110901, 0.07448436319828033, -0.18303722143173218, -0.29032644629478455, 0.235199436545372, 0.26081886887550354, 0.030878618359565735, -0.06049715727567673, -0.21820032596588135, -0.06516753137111664, -0.2639882564544678, 0.21237434446811676, -0.1319122314453125, 0.1665755957365036, -0.07539280503988266, 0.11146087944507599, -0.2106834053993225, 0.10575246810913086, 0.021482115611433983, 0.23012614250183105, -0.15956667065620422, -0.42006051540374756, 0.26174861192703247, 0.05864353105425835, 0.11060318350791931, 0.48891815543174744, -0.0001163825363619253, 0.2037033885717392, 0.4254956841468811, -0.036578163504600525, -0.33531227707862854, -0.2683173418045044, -0.21959322690963745, -0.06922007352113724, 0.1801111102104187, -0.11661846935749054, -0.2901066243648529, 0.21904154121875763, -0.013307059183716774, -0.30567389726638794, 0.5135436654090881, 0.1466747224330902, 0.24634496867656708, 0.32723650336265564, 0.41698405146598816, 0.010403217747807503, 0.13181275129318237, -0.23517940938472748, 0.04907534271478653, 0.5989787578582764, 0.08137686550617218, 0.07090342044830322, 0.10272541642189026, 0.21296948194503784, 0.1136450320482254, 0.21939365565776825, 0.24145996570587158, -0.1255636215209961, 0.015084117650985718, -0.30111274123191833, 0.28136196732521057, 0.08528383821249008, 0.2472662627696991, -0.2906409204006195, -0.3673577606678009, -0.08683431893587112, -0.119077168405056, 0.12230141460895538, 0.28151416778564453, 0.09431625157594681, -0.14172673225402832, 0.32432785630226135, -0.46839258074760437, -0.4362625181674957, -0.19354361295700073, 0.1478828489780426, 0.10088692605495453, 0.0033707991242408752, -0.24756449460983276, 0.30236750841140747, 0.1159733235836029, 0.014519382268190384, -0.12067542225122452, -0.07564742118120193, 0.1094307154417038, 0.1734146773815155, -0.2584308683872223, 0.17981474101543427, -0.14665678143501282, 0.17683635652065277, 0.1636122763156891, 0.16151119768619537, -0.024025455117225647, -0.03727012127637863, 0.11047591269016266, 0.18841871619224548, 0.14746354520320892, 0.2544991374015808, -0.06521593779325485, -0.07484019547700882, 0.4921470880508423, 0.310282826423645, -0.0812961608171463, -0.10420449823141098, -0.05053168907761574, -0.2760635316371918, -0.008282048627734184, 0.0003713499754667282, 0.5625049471855164, -0.017842184752225876, -0.2555692493915558, 0.05062218755483627, -0.14640192687511444, -0.030869795009493828, 0.04472779855132103, 0.330477774143219, -0.3456880450248718, -0.0452379509806633, 0.0893370509147644, 0.1509973555803299, -0.04350084438920021, -0.2052789181470871, -0.2502634823322296, -0.08861516416072845, -0.23597578704357147, 0.15037092566490173, 0.10080425441265106, -0.33510372042655945, 0.0998542532324791, -0.04902835190296173, -0.13450245559215546, -0.3825942277908325, -0.022185014560818672, -0.03208085894584656, -0.15193083882331848, 0.24498499929904938, 0.16108907759189606, 0.17599058151245117, 0.28389185667037964, -0.31307828426361084, 0.003657005727291107, -0.05043261498212814, -0.46220237016677856, -0.43826088309288025, -0.03749652951955795, 0.12574757635593414, -0.23071633279323578, 0.22269564867019653, -0.2280450463294983, -0.2523142099380493, 0.09446343779563904, 0.15818294882774353, -0.13992983102798462, -0.02690068632364273, -0.1817602664232254, -0.4266397953033447, 0.3624437749385834, 0.5832275152206421, -0.02240518480539322, -0.21560241281986237, 0.15680652856826782, -0.24871528148651123, -0.04891648143529892, 0.3370262384414673, -0.10970228910446167, 0.0050238072872161865, -0.4206877648830414, 0.00029990822076797485, 0.28967905044555664, -0.476561576128006, -0.6455836296081543, 0.6852661371231079, -0.3055611848831177, 0.08464866876602173, 0.10140525549650192, -0.009438286535441875, -0.005177854560315609, 0.01772243343293667, 0.20137132704257965, 0.16926781833171844, 0.0754898339509964, 0.00032322295010089874, -0.12935133278369904, -0.38056159019470215, 0.08369022607803345, -0.0498293973505497, -0.1389041692018509, 0.286914199590683, 0.22185853123664856, -0.2726912796497345, 0.2165502905845642, 0.118593230843544, 0.30967846512794495, 0.1987067461013794, 0.3040483891963959, 0.08996762335300446, -0.022302431985735893, 0.04692722111940384, -0.46637994050979614, 0.22426307201385498, -0.17609703540802002, 0.03420849144458771, -0.4568744897842407, -0.058158989995718, -0.4601205885410309, 0.08039013296365738, -0.21441324055194855, -0.1269550323486328, 0.08993368595838547, 0.21344563364982605, 0.3693736493587494, 0.2063199132680893, 0.10022051632404327, 0.38364267349243164, -0.02068745344877243, 0.18564611673355103, -0.4244610071182251, 0.5475794076919556, -0.1284991353750229, -0.0666326954960823, 0.09935642778873444, -0.0021620020270347595, 0.32046931982040405, -0.1854221373796463, -0.07125489413738251, 0.5396779775619507, -0.17868730425834656, 0.30067649483680725, 0.23804157972335815, 0.23719435930252075, 0.11748065054416656, -0.41672906279563904, 0.0268772691488266, 0.17042472958564758, 0.1165732592344284, -0.030011717230081558, 0.5235797762870789, 0.1196552962064743, -0.004488606005907059, 0.443108469247818, 0.17366336286067963, 0.12178126722574234, 0.17244262993335724, -0.06367513537406921, -0.12081602960824966, 0.014562465250492096, 0.10400550067424774, 0.05674095079302788, 0.3688749074935913, -0.18332043290138245, 0.050931140780448914, 0.033837005496025085, 0.07405227422714233, -0.0887238085269928, 0.12200959026813507, 0.22412821650505066, -0.22152748703956604, -0.07870030403137207, -0.09786622226238251, 0.44339147210121155, 0.20949772000312805, 0.010440253652632236, 0.033503130078315735, 0.40931233763694763, 0.0349370576441288, -0.14047986268997192, 0.1821354329586029, 0.07987604290246964, -0.014296655543148518, 0.06744186580181122, 0.030208278447389603, -0.14671753346920013, -0.07467396557331085, 0.07856491208076477, -0.01782163232564926, 0.27862608432769775, -0.4151069223880768, 0.09618911147117615, -0.1529175341129303, -0.17252716422080994, -0.1585673987865448, -0.10780786722898483, -0.3643389642238617, -0.2942693531513214, -0.27593570947647095, 0.2657617926597595, 0.1836213916540146, 0.025361113250255585, 0.0924520343542099, 0.09644772112369537, 0.16488967835903168, -0.18797673285007477, 0.0013223141431808472, -0.22016224265098572, -0.19369304180145264, 0.015312407165765762, 0.19027432799339294, -0.2090725153684616, 0.27119407057762146, -0.22424839437007904, 0.01353655755519867, -0.2775905132293701, -0.14510029554367065, 0.03269250690937042, 0.038754530251026154, 0.26897069811820984, 0.2173229157924652, 0.46772903203964233, 0.15075889229774475, -0.05819636210799217, 0.47047159075737, -0.10355038195848465, -0.07444581389427185, -0.07304728031158447, -0.06473975628614426, 0.07735760509967804, 0.10348354279994965, -0.0828588530421257, -0.2866322696208954, -0.3232952654361725, 0.32670116424560547, -0.1414976865053177, 0.1455203890800476, 0.014943094924092293, 0.060408350080251694, 0.08132874220609665, 0.07124229520559311, 0.16990025341510773, -0.3350793123245239, -0.5551699995994568, 0.1243065744638443, -0.1830407828092575, -0.36426952481269836, 0.11909657716751099, 0.2982366681098938, 0.18396320939064026, 0.062472037971019745, -0.7298917770385742, -0.4652330279350281, -0.22826217114925385, 0.081865593791008, 0.05739337578415871, 0.08148208260536194, 0.05088946595788002, -0.15133918821811676, -0.050378669053316116, 0.035859376192092896, -0.27495718002319336, 0.06102607399225235, -0.2507238984107971, 0.2980833649635315, 0.24698302149772644, 0.42185860872268677, 0.1609741598367691, 0.43812060356140137, 0.37397709488868713, -0.03375041112303734, 0.4095095694065094, -0.18318869173526764, 0.3658875524997711, -0.10951068252325058, -0.34921225905418396, -0.04336746037006378, -0.3170139491558075, 0.180160790681839, 0.14122426509857178, 0.18732485175132751, 0.3565806448459625, -0.533207893371582, -0.21875602006912231, -0.43790239095687866, -0.2972693145275116, -0.20273154973983765, 0.05390170216560364, 0.16237273812294006, 0.08360172808170319, -0.19074001908302307, -0.05326690152287483, -0.11923173815011978, 0.03434880077838898, 0.3500831723213196, 0.12378904223442078, 0.13643258810043335, -0.2567043900489807, -0.03504103049635887, -0.546599268913269, 0.4234117865562439, 0.13706794381141663, 0.3050859272480011, -0.16253633797168732, 0.08495805412530899, 0.2094976007938385, -0.055967044085264206, 0.8020204901695251, -0.23835329711437225, 0.36015552282333374, -0.06819068640470505, -0.12659358978271484, -0.5550575852394104, 0.06858718395233154, 0.08360855281352997, 0.21292045712471008, 0.5209938287734985, 0.23354844748973846, -0.442339152097702, 0.16891248524188995, 0.14966589212417603, 0.04412540793418884, -0.19905272126197815, -0.18080300092697144, -0.2889316976070404, -0.3080728352069855, -0.3494020998477936, -0.23443689942359924, -0.054462652653455734, 0.279346764087677, 0.1549924612045288, -0.05372636020183563, 0.16178469359874725, -0.35339218378067017, -0.040581464767456055, -0.0882977694272995, 0.1740994155406952, -0.024015730246901512, 0.09910011291503906, 0.345714807510376, 0.3223527669906616, -0.0006622839719057083, 0.7132623791694641, -0.018047571182250977, -0.21010494232177734, 0.13701435923576355, 0.35502856969833374, -0.05637197941541672, 0.32647866010665894, -0.024875234812498093, 0.2253427505493164, 0.21206998825073242, 0.3640795946121216, -0.3019157350063324, 0.11525009572505951, 0.32734212279319763, -0.029702141880989075, -0.33069783449172974, -0.360688179731369, 0.3339231610298157, -0.2836272418498993, -0.09231014549732208, 0.16316530108451843, 0.3154193162918091, -0.1807999461889267, -0.08624269813299179, -0.3852638602256775, 1.1652157306671143, -0.039992690086364746, -0.0630616545677185, 0.12037735432386398, -0.4595845937728882, 0.42763352394104004, -0.010274484753608704, -0.037002090364694595, -0.26342979073524475, -0.01899787038564682, 0.00848412699997425, -0.24196356534957886, 0.12022296339273453, -0.09483332931995392, -0.10523688793182373, 0.27020442485809326, -0.15047268569469452, 0.30988889932632446, 0.09039875864982605, 0.40143606066703796, -0.1821376234292984, 0.23696769773960114, -0.15793615579605103, 0.1159558892250061, -0.21339522302150726, 0.5536150932312012, -0.15681082010269165, -0.0971064493060112, 0.06208940967917442, -0.3774566650390625, -0.35535669326782227, 0.12078743427991867, -0.564147412776947, 0.3390389680862427, -0.004128485918045044, -0.21872733533382416, -0.14309978485107422, 0.09722955524921417, 0.2506590485572815, 0.10334987193346024, -0.4388076066970825, 0.16510629653930664, -0.11966956406831741, -0.15631568431854248, 0.09943187981843948, 0.15600913763046265, -0.07116611301898956, -0.12248485535383224, -0.34835734963417053, 0.26160725951194763, 0.1022849902510643, -0.4625908136367798, -0.06723438203334808, -0.04796858876943588, -0.007817111909389496, -0.29957666993141174, -0.07239700853824615, -0.2621370255947113, -0.08511941134929657, -0.14946340024471283, 0.06496580690145493, 0.04311869665980339, -0.1685592085123062, -0.11206776648759842, 0.17582878470420837, -0.35887351632118225, -0.08535218238830566, 0.703359842300415, 0.0638151615858078, -0.12334313243627548, 0.2827376127243042, 0.03773447498679161, -0.17741002142429352, -0.09777886420488358, -0.016935165971517563, 0.06989925354719162, -0.41191986203193665, 0.10618429630994797, -0.11781442165374756, 0.2925946116447449, -0.22387565672397614, -0.08244065940380096, 0.23240797221660614, 0.3760540783405304, 0.05010976269841194, -0.5751618146896362, -0.15193283557891846, 0.031632497906684875, 0.10336626321077347, 0.15831895172595978, 0.037897251546382904, 0.24430344998836517, 0.07093222439289093, 0.07267014682292938, -0.27519690990448, 0.1325085461139679, -0.12040363252162933, -0.08610307425260544, 0.5535398721694946, -0.2799515724182129, 0.39366087317466736, -0.004594750702381134, 0.09762115031480789, -0.060463979840278625, -0.4178873896598816, -0.14111873507499695, -0.08452749997377396, 0.1383468210697174, -0.01846703141927719, -0.3293581008911133, -0.147459477186203, -0.2925967574119568, 0.03900735825300217, 0.042487844824790955, 0.26066136360168457, 0.23693493008613586, -0.009744636714458466, -0.26291221380233765, 0.07570955902338028, -0.20110678672790527, -0.06234506890177727, 0.17385974526405334, -0.12480638921260834, 0.48935484886169434, 0.25395628809928894, 0.1196054071187973, -0.0994185209274292, -0.06867344677448273, -0.35158079862594604, 0.008193649351596832, 0.17180919647216797, 0.04721597954630852, 0.3514278829097748, -0.24951671063899994, -0.14090898633003235, -0.19499871134757996, 0.4364570081233978, 0.12547911703586578, -0.3027710020542145, 0.016322536394000053, 0.03618278726935387, 0.14172036945819855, -0.1150503009557724, 0.0017337496392428875, 0.2396785318851471, -0.10648602992296219, 0.009784683585166931, 0.06595928966999054, 0.18264491856098175, 0.183366596698761, 0.0011486038565635681, 0.0003863126039505005, 0.7324046492576599, 0.12768927216529846, -0.021453704684972763, 0.12673419713974, -0.019509077072143555, -0.03022412583231926, 0.08814115822315216, 0.1540631800889969, 0.032702356576919556, 0.022744975984096527, -0.2047116756439209, 0.08913326263427734, -0.1650049388408661, 0.1981656551361084, -0.08460427075624466, -0.23602133989334106, -0.03567076101899147, 0.26514217257499695, -0.3203776478767395, 0.046370670199394226, -0.27460989356040955, 0.4419648051261902, -0.1388682872056961, 0.10531215369701385, -0.2619861960411072, 0.3679816424846649, 0.11714823544025421, -0.39495137333869934, 0.1361936330795288, -0.17510941624641418, -0.2628840506076813, 0.0005595758557319641, 0.04285195469856262, -0.3898988366127014, 0.12867602705955505, -0.05455191433429718, -0.049974098801612854, -0.330013632774353, -0.292987197637558, 0.16029542684555054, 0.09228814393281937, -0.2314697504043579, 0.3100549876689911, 0.3037775754928589, 0.11850085854530334, 0.1591825783252716, 0.2746964693069458, 0.6554466485977173, 0.24832700192928314, -0.06810520589351654, 0.15031668543815613, 0.10874447226524353, -0.01400583516806364, -0.1101367250084877, 0.0789780467748642, 0.23740606009960175, -0.06060754135251045, 0.32426440715789795, 0.129593163728714, -0.12842108309268951, 0.10247460752725601, -0.059642139822244644, 0.3149363696575165, -0.1958858072757721, 0.3374727666378021, -0.42405080795288086, -0.06615529954433441, -0.3882836401462555, 0.12258563935756683, -0.6619564890861511, -0.02999170869588852, 0.21790418028831482, -0.33942100405693054, 0.19147929549217224, -0.23340319097042084, 0.05525348335504532, -0.2593771517276764, 0.5528261661529541, 0.42532995343208313, 0.3788646161556244, -0.20677709579467773, -0.3743460774421692, -0.48131540417671204, 0.3099448084831238, -0.20195986330509186, -0.03425788879394531, -0.10474251955747604, 0.11771693825721741, -0.3427330553531647, 0.2023664116859436, 0.05112747848033905, 0.18445439636707306, -0.1896967589855194, -0.07081572711467743, 0.05700359866023064, -0.09164933860301971, -0.060170724987983704, 0.13926830887794495, 0.09104704856872559, -0.36903616786003113, 0.4032037854194641, -0.1917155385017395, 0.016085661947727203, -0.0018722526729106903, 0.2986425459384918, -0.002209119498729706, -0.40950536727905273, 0.5413302183151245, 0.24238979816436768, 0.4578019082546234, 0.06458739191293716, -0.20177482068538666, -0.22516334056854248, -0.3540933430194855, -0.028595510870218277, 0.14470508694648743, 0.13745924830436707, 0.11222510039806366, -0.08774444460868835, -0.3672681152820587, -0.33115172386169434, 0.34473690390586853, -0.019584283232688904, 0.11536102741956711, 0.1262103170156479, -0.2758844196796417, 0.013623781502246857, 0.1847144365310669, 0.0993211641907692, -0.1061774417757988, -0.045242466032505035, 0.17524471879005432, -0.007995091378688812, -0.3097560703754425, 0.6502503156661987, -0.15634238719940186, -0.09655949473381042, 0.09872867912054062, 0.4012269675731659, -0.04219101369380951, -0.04808829724788666, -0.43407386541366577, 0.19084876775741577, 0.44833362102508545, 0.14878803491592407, -0.29287096858024597, 0.4132509231567383, -0.3402496576309204, 0.17432788014411926, 0.12239514291286469, -0.028657563030719757, 0.029261089861392975, -0.30144718289375305, 0.1271892786026001, -0.184691920876503 ]
https://github.com/huggingface/datasets/issues/4051
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py
> Are you able to access the URL in your web browser? Yes, with or without a VPN, we (people in China) can access the URL. And we can even use wget to download these files. We can download the pretrained language model automatically with the code. However, we CANNOT access glue.py & metric.py automatically. Every time, it will raise ConnectionError, and we have to download datasets manually (SQuAD is extremely hard to preprocess) and replace metric.py with scipy.metrics. If this problem is solved, many Chinese will save a lot of time.
Hi, I meet a problem. When I run the code: `dataset = load_dataset('glue','sst2')` There is a issue raising: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py I don't know why; it is ok when I use Google Chrome to view this url. Thanks for your help!
92
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py Hi, I meet a problem. When I run the code: `dataset = load_dataset('glue','sst2')` There is a issue raising: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py I don't know why; it is ok when I use Google Chrome to view this url. Thanks for your help! > Are you able to access the URL in your web browser? Yes, with or without a VPN, we (people in China) can access the URL. And we can even use wget to download these files. We can download the pretrained language model automatically with the code. However, we CANNOT access glue.py & metric.py automatically. Every time, it will raise ConnectionError, and we have to download datasets manually (SQuAD is extremely hard to preprocess) and replace metric.py with scipy.metrics. If this problem is solved, many Chinese will save a lot of time.
[ -0.08870896697044373, -0.08625385165214539, -0.05736236274242401, 0.15729214251041412, 0.44843369722366333, -0.182168647646904, 0.17125603556632996, 0.060096003115177155, 0.048233140259981155, 0.31027454137802124, -0.3809802532196045, -0.11393315345048904, 0.28842997550964355, 0.07812049239873886, 0.26316264271736145, -0.2650807797908783, -0.07751471549272537, -0.153437077999115, -0.08639313280582428, 0.10031379759311676, -0.15730097889900208, 0.023575009778141975, -0.23117496073246002, 0.4385192394256592, 0.023647796362638474, -0.11261946707963943, -0.025171741843223572, 0.17941518127918243, -0.24981020390987396, -0.42368370294570923, 0.3205529451370239, 0.05756375193595886, 0.2528095841407776, 0.37946149706840515, -0.00011989908671239391, 0.26439619064331055, 0.3738676905632019, -0.06403619050979614, -0.2650161385536194, -0.0981321930885315, -0.026456011459231377, -0.22246107459068298, 0.21785978972911835, -0.19457408785820007, -0.1554308831691742, 0.20203986763954163, 0.2912389934062958, -0.2204829901456833, 0.4876723885536194, 0.1898682862520218, 0.14743420481681824, 0.5676252841949463, 0.24760188162326813, -0.0003490037051960826, -0.1292920708656311, -0.47219377756118774, 0.012443913146853447, 0.7163779735565186, 0.17443998157978058, -0.07433333992958069, -0.04592650383710861, 0.15625688433647156, 0.3000164330005646, 0.05843082070350647, 0.05308258533477783, 0.11045987159013748, -0.03242024779319763, -0.4914139211177826, 0.10253837704658508, 0.19104072451591492, 0.04531320556998253, -0.23289433121681213, -0.4411119520664215, 0.0025762543082237244, -0.07743848115205765, 0.12528516352176666, 0.21677535772323608, 0.18117302656173706, -0.08538737893104553, 0.37813761830329895, -0.20617792010307312, -0.38746577501296997, -0.41445326805114746, 0.2965102791786194, 0.028360024094581604, 0.15641897916793823, -0.19472543895244598, 0.27487459778785706, -0.03951134905219078, -0.003702368587255478, -0.05151687562465668, -0.04158460348844528, 0.24370883405208588, 0.38103562593460083, -0.22213374078273773, 0.12295995652675629, -0.21044665575027466, -0.00014591962099075317, 0.1663891077041626, -0.1018780767917633, 0.10351624339818954, 0.045154716819524765, 0.14950379729270935, 0.2701404392719269, 0.10369303822517395, 0.11921674013137817, -0.02314440906047821, 0.14509500563144684, 0.5673314929008484, 0.23707285523414612, 0.07091061770915985, 0.023217638954520226, -0.2183680534362793, -0.4201057553291321, -0.18145184218883514, 0.08533623069524765, 0.3783966302871704, -0.059151094406843185, -0.18168658018112183, 0.08207833766937256, -0.22926506400108337, -0.11830241978168488, -0.01028874609619379, 0.24075210094451904, -0.39710915088653564, 0.09385495632886887, 0.04905257374048233, 0.39072275161743164, -0.20187167823314667, -0.2180524617433548, -0.1731858104467392, 0.24265560507774353, -0.2048148512840271, 0.14311213791370392, -0.01918831840157509, -0.025183051824569702, 0.03914375603199005, -0.19710950553417206, -0.020816951990127563, -0.26808398962020874, -0.01450205035507679, -0.14558528363704681, -0.21102845668792725, 0.15610699355602264, 0.2820481061935425, -0.021023530513048172, 0.11480589210987091, -0.5277349948883057, -0.060478776693344116, -0.17267104983329773, -0.46877074241638184, -0.28594332933425903, 0.04121845215559006, 0.08277890086174011, -0.34961116313934326, 0.09764474630355835, -0.12446320801973343, 0.1403389871120453, -0.0862906351685524, 0.07815141975879669, -0.09248881787061691, 0.014397626742720604, -0.045425672084093094, -0.35334837436676025, 0.396300345659256, 0.5053285360336304, -0.3032885789871216, -0.31842470169067383, 0.42064955830574036, -0.386861652135849, -0.0015820041298866272, 0.3270568549633026, -0.12713295221328735, 0.14110946655273438, -0.21660925447940826, 0.1104498952627182, 0.6721523404121399, -0.6007216572761536, -0.5728843808174133, 0.446824312210083, -0.28448837995529175, -0.08461715281009674, 0.009070523083209991, 0.013927077874541283, 0.0973384827375412, 0.10443246364593506, 0.2195875197649002, 0.38390636444091797, 0.03967946395277977, -0.2935603857040405, -0.16735415160655975, -0.43168962001800537, 0.18355828523635864, 0.11703889071941376, 0.1448424756526947, 0.1660405993461609, 0.4473966658115387, -0.24881739914417267, 0.20247763395309448, 0.045824017375707626, 0.16842764616012573, 0.26916342973709106, 0.03033161163330078, 0.16789332032203674, -0.08950784057378769, -0.13380612432956696, -0.3125018775463104, 0.2482108473777771, -0.3442498445510864, 0.275821328163147, -0.42809951305389404, 0.019171807914972305, -0.1839565634727478, -0.04315989464521408, -0.24088136851787567, 0.01581876538693905, 0.03040771186351776, 0.021200597286224365, 0.29070451855659485, 0.30918118357658386, -0.018159806728363037, 0.2169187068939209, -0.22979074716567993, 0.20137058198451996, -0.3989598751068115, 0.5256119966506958, -0.22023236751556396, 0.0991559624671936, 0.02285916358232498, 0.19101226329803467, 0.20635348558425903, -0.19933058321475983, -0.042663704603910446, 0.4185367822647095, -0.3776145577430725, 0.2707148492336273, 0.4653981029987335, 0.18104106187820435, 0.3652447462081909, -0.5142070055007935, -0.05773477256298065, -0.014071140438318253, 0.06654249131679535, 0.028439432382583618, 0.2955852746963501, 0.36014842987060547, 0.23515106737613678, 0.39722535014152527, 0.3011443018913269, 0.089286670088768, 0.33781248331069946, 0.08399742841720581, -0.4306727349758148, 0.09230417013168335, 0.020585190504789352, -0.01687193289399147, 0.35282859206199646, -0.17340828478336334, -0.32988372445106506, -0.0270693376660347, 0.28770458698272705, -0.1773136705160141, 0.20366674661636353, 0.1777988076210022, -0.07129702717065811, -0.09556176513433456, -0.15677326917648315, 0.15336641669273376, 0.1129082515835762, -0.008842158131301403, 0.04210900515317917, 0.3501686751842499, -0.15362247824668884, -0.12287501245737076, 0.04365546256303787, 0.17215558886528015, 0.01977347768843174, -0.057317301630973816, -0.030655955895781517, 0.044582344591617584, -0.052232325077056885, -0.024977393448352814, -0.12609484791755676, 0.10712166130542755, -0.4391244053840637, 0.14410901069641113, -0.13490144908428192, -0.21709483861923218, -0.08574095368385315, 0.019249476492404938, -0.2641006112098694, -0.20896022021770477, -0.3008257746696472, -0.2308601438999176, 0.042399387806653976, 0.1753462702035904, -0.044297341257333755, 0.30796152353286743, 0.17873838543891907, -0.1650584638118744, 0.26673567295074463, -0.22448988258838654, -0.24819284677505493, -0.025157207623124123, 0.0921001061797142, -0.11625681072473526, 0.153098925948143, -0.24125486612319946, 0.090037040412426, -0.12391390651464462, -0.22816970944404602, 0.12061361968517303, 0.10972818732261658, 0.475731760263443, 0.16863411664962769, 0.5376667380332947, 0.19145041704177856, -0.014061909168958664, 0.5549259185791016, -0.0839047059416771, 0.04360395669937134, 0.01256553828716278, -0.06848882883787155, -0.02167079783976078, 0.16561836004257202, -0.30867329239845276, -0.699388325214386, -0.25006866455078125, 0.22154882550239563, -0.20041537284851074, 0.13438443839550018, -0.006753060035407543, -0.011947192251682281, 0.2775484621524811, -0.026375195011496544, 0.06451089680194855, -0.13534504175186157, -0.6206929087638855, 0.3831101059913635, -0.15926627814769745, -0.489509254693985, 0.06558191776275635, 0.12119974195957184, 0.1245739609003067, -0.03205109015107155, -0.4467293620109558, -0.5055469870567322, -0.14401166141033173, 0.22279641032218933, 0.11143689602613449, 0.13543535768985748, 0.07282349467277527, -0.3888455033302307, 0.08159539848566055, 0.07015225291252136, -0.20941893756389618, 0.20432835817337036, -0.03342770040035248, 0.2799546718597412, 0.2869841456413269, 0.5952196717262268, 0.2235628366470337, 0.5907032489776611, 0.1519128680229187, 0.16221188008785248, 0.2713754177093506, -0.056311868131160736, 0.4179387092590332, 0.2313614785671234, -0.2544209659099579, 0.0627019852399826, -0.2880871593952179, 0.15504498779773712, 0.24265515804290771, 0.19148924946784973, 0.10066146403551102, -0.5596482753753662, -0.2070056051015854, -0.28696781396865845, -0.2619948387145996, -0.1726413518190384, 0.14593547582626343, 0.18128496408462524, 0.1225118637084961, -0.03799816220998764, -0.17069955170154572, -0.08377090841531754, 0.038298141211271286, 0.4182600975036621, 0.07268677651882172, 0.25299084186553955, -0.4774647653102875, -0.20062100887298584, -0.42979001998901367, 0.34953993558883667, 0.06950643658638, 0.5630592107772827, -0.13787122070789337, 0.04835853725671768, 0.2866073250770569, -0.07573029398918152, 0.5031323432922363, -0.16991731524467468, 0.20134249329566956, -0.14748705923557281, -0.08648885786533356, -0.5290476083755493, -0.005174014717340469, -0.08110164105892181, 0.14654198288917542, 0.6329646110534668, 0.2640470266342163, -0.3787360191345215, 0.027217289432883263, 0.10788170248270035, 0.03488258644938469, -0.30645468831062317, -0.013026776723563671, -0.3267059028148651, -0.2764962315559387, -0.14669060707092285, -0.06179239600896835, -0.012909021228551865, 0.3451097309589386, 0.2683883309364319, -0.03137999400496483, 0.2445131242275238, -0.25295889377593994, 0.012008555233478546, 0.14913402497768402, -0.1054345890879631, 0.058621928095817566, -0.1602424830198288, 0.38556569814682007, 0.26119494438171387, -0.21210774779319763, 0.5344281196594238, -0.26195594668388367, -0.42533886432647705, 0.20818987488746643, 0.0773506760597229, 0.22687970101833344, 0.4558700919151306, -0.09415052086114883, 0.23793929815292358, 0.42216500639915466, 0.2835312485694885, -0.24665820598602295, 0.12056006491184235, 0.3188329339027405, 0.1148882657289505, -0.3978636562824249, -0.37943798303604126, 0.2995663583278656, -0.2881525456905365, -0.09709309786558151, 0.15682722628116608, 0.3284682631492615, -0.20467640459537506, -0.0387691967189312, -0.23328548669815063, 1.2516345977783203, -0.14183960855007172, -0.04355359449982643, 0.22686558961868286, -0.37727946043014526, 0.47714748978614807, -0.2871585786342621, 0.08631203323602676, -0.07162842154502869, -0.09960605204105377, -0.13336199522018433, -0.24968548119068146, 0.3208993077278137, -0.07535205781459808, 0.01531011238694191, 0.40925541520118713, -0.13348855078220367, 0.28058338165283203, 0.31853124499320984, 0.44199541211128235, 0.05000615864992142, 0.07134376466274261, -0.2445249855518341, 0.029782243072986603, -0.14740309119224548, 0.31860455870628357, -0.20314952731132507, -0.2578369379043579, -0.0990627259016037, -0.19018451869487762, -0.15996049344539642, 0.13786575198173523, -0.5598450303077698, 0.36016273498535156, 0.06256406754255295, -0.18900978565216064, -0.15163667500019073, 0.2742041349411011, 0.2704351544380188, 0.08514527976512909, -0.35390645265579224, 0.16965647041797638, -0.2000354528427124, -0.07228435575962067, 0.1724068820476532, 0.20841200649738312, -0.06579522788524628, -0.21887525916099548, -0.3483434319496155, 0.3550078272819519, -0.0626484602689743, -0.4375000596046448, -0.21886450052261353, 0.032900620251894, -0.010171249508857727, 0.011087493970990181, -0.09946508705615997, -0.3583748936653137, -0.0458427332341671, -0.09996183961629868, 0.03875061497092247, 0.05253078415989876, -0.13987845182418823, -0.04777223616838455, 0.28609660267829895, -0.3380032777786255, -0.04837862774729729, 0.6270542144775391, -0.15050944685935974, 0.10941828787326813, 0.25851279497146606, 0.10608378052711487, -0.3194143772125244, -0.041835181415081024, 0.045996688306331635, 0.08544782549142838, -0.28518053889274597, -0.09125488996505737, -0.1772293746471405, 0.16533048450946808, -0.447680801153183, -0.16851894557476044, 0.3512382507324219, -0.027311623096466064, -0.03854922577738762, -0.6830911040306091, -0.11473892629146576, 0.09026965498924255, 0.12803900241851807, -0.06304971873760223, 0.09258251637220383, 0.3665696978569031, 0.12002815306186676, 0.07201553881168365, -0.22232308983802795, 0.006092042196542025, -0.45085465908050537, -0.09035024791955948, 0.46801623702049255, -0.12104540318250656, 0.31522807478904724, 0.0016786018386483192, -0.005145484581589699, -0.21305307745933533, -0.2613492012023926, -0.06290971487760544, -0.07088615000247955, 0.1527453064918518, -0.058087997138500214, -0.20804716646671295, 0.028494663536548615, -0.3132171630859375, 0.02819623053073883, 0.12803247570991516, 0.023552674800157547, 0.27262580394744873, 0.09536929428577423, -0.12894131243228912, -0.24045060575008392, 0.03890883922576904, -0.005012493580579758, 0.33550161123275757, -0.1360941082239151, 0.5147674083709717, 0.1208856999874115, 0.07070133090019226, 0.051823198795318604, -0.08042225241661072, -0.18227805197238922, -0.12321040779352188, 0.09359517693519592, -0.023032404482364655, 0.20268607139587402, -0.2654225826263428, 0.029252532869577408, -0.025669649243354797, 0.20956888794898987, 0.22619131207466125, -0.3496239185333252, 0.14554844796657562, 0.06828263401985168, 0.0665699765086174, -0.1895478069782257, 0.09336180984973907, 0.1674959808588028, -0.16703805327415466, -0.009520437568426132, 0.0436229333281517, 0.12505611777305603, 0.16027188301086426, 0.15338164567947388, 0.032332893460989, 0.6466149091720581, 0.22767195105552673, 0.16319824755191803, 0.16913962364196777, 0.07032158970832825, 0.18336308002471924, 0.04224567115306854, 0.12920118868350983, -0.04306749254465103, -0.08945170044898987, -0.24456200003623962, -0.08033953607082367, -0.07318942248821259, 0.344037264585495, -0.005836904048919678, -0.12992849946022034, -0.19834867119789124, 0.05560534447431564, -0.33942824602127075, -0.15651124715805054, -0.25999176502227783, 0.7384881973266602, -0.21932277083396912, -0.10037829726934433, -0.13864527642726898, 0.31640762090682983, 0.04182618856430054, -0.2961317300796509, -0.046388085931539536, -0.2437053620815277, -0.12067817896604538, -0.07119839638471603, 0.22310245037078857, -0.3410119414329529, -0.1041710376739502, 0.009730502963066101, -0.034137219190597534, -0.25506114959716797, -0.08406467735767365, 0.19374847412109375, 0.07014570385217667, -0.09940357506275177, 0.31987419724464417, 0.09201016277074814, 0.04350706562399864, 0.12841829657554626, 0.2825721502304077, 0.3051203191280365, 0.28852570056915283, -0.14633789658546448, 0.07332614064216614, 0.12361519038677216, -0.09616594761610031, 0.03140293434262276, -0.062296293675899506, 0.3223917782306671, -0.338598370552063, 0.4792589545249939, 0.0574321448802948, -0.11088268458843231, 0.17813503742218018, 0.03291448950767517, 0.18239045143127441, -0.23118141293525696, 0.37972143292427063, -0.39446914196014404, 0.07525711506605148, -0.2821101248264313, -0.06411360949277878, -0.7633005380630493, 0.20178094506263733, 0.1291183978319168, -0.4045180678367615, 0.2548025846481323, -0.32655012607574463, 0.0051443446427583694, -0.0764194130897522, 0.631195068359375, 0.492892324924469, 0.3861679136753082, -0.0981585830450058, -0.1254507154226303, -0.6702988147735596, 0.15019556879997253, -0.20861387252807617, -0.003816850483417511, -0.066562220454216, 0.21833869814872742, -0.32219892740249634, 0.28996509313583374, 0.10148633271455765, 0.2893514931201935, -0.14603210985660553, -0.13078977167606354, -0.2029995322227478, -0.05218353495001793, -0.0620189905166626, 0.28328391909599304, -0.06943711638450623, -0.30094674229621887, 0.4152742326259613, -0.24766847491264343, -0.047028668224811554, 0.15343794226646423, 0.16940924525260925, -0.14813485741615295, -0.279405415058136, 0.5921340584754944, 0.28499674797058105, 0.49512001872062683, 0.09182985872030258, 0.035130538046360016, -0.23708674311637878, -0.30800917744636536, 0.061254579573869705, 0.16191092133522034, 0.1093779057264328, 0.04208981245756149, -0.16246309876441956, -0.4802967607975006, -0.23225794732570648, 0.2947242558002472, -0.05780033767223358, 0.07291512191295624, 0.06668373942375183, -0.20473118126392365, 0.11599793285131454, 0.12464974075555801, 0.11129731684923172, -0.07238561660051346, -0.03187916427850723, 0.0939122661948204, 0.10299688577651978, -0.17774996161460876, 0.4394071698188782, -0.44251441955566406, -0.14171306788921356, -0.019589059054851532, 0.2870190143585205, 0.24736252427101135, 0.11271429806947708, -0.22733035683631897, 0.03735197335481644, 0.3985057771205902, 0.10346122086048126, -0.3101580739021301, 0.33033737540245056, -0.2872719466686249, 0.12164972722530365, 0.030446384102106094, -0.16591519117355347, -0.07804086059331894, -0.241340771317482, -0.06231852248311043, -0.29356473684310913 ]
https://github.com/huggingface/datasets/issues/4051
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py
> ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py > > I don't know why; it is ok when I use If you would query the question `ConnectionError: Couldn't reach` in www.baidu.com (Chinese Google, Google is banned and some people cannot access it), you will find that there are so many questions about accessing `https://raw.githubusercontent.com`. There are some solutions like adding `185.199.108.133 raw.githubusercontent.com` to `C:/windows/systen32/drives/etc/hosts`, but it is time-consuming, hard for green-hand, and invalid sometimes.
Hi, I meet a problem. When I run the code: `dataset = load_dataset('glue','sst2')` There is a issue raising: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py I don't know why; it is ok when I use Google Chrome to view this url. Thanks for your help!
71
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py Hi, I meet a problem. When I run the code: `dataset = load_dataset('glue','sst2')` There is a issue raising: ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py I don't know why; it is ok when I use Google Chrome to view this url. Thanks for your help! > ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/glue/glue.py > > I don't know why; it is ok when I use If you would query the question `ConnectionError: Couldn't reach` in www.baidu.com (Chinese Google, Google is banned and some people cannot access it), you will find that there are so many questions about accessing `https://raw.githubusercontent.com`. There are some solutions like adding `185.199.108.133 raw.githubusercontent.com` to `C:/windows/systen32/drives/etc/hosts`, but it is time-consuming, hard for green-hand, and invalid sometimes.
[ -0.12059760093688965, -0.1314038634300232, -0.09648497402667999, 0.14410661160945892, 0.30369192361831665, -0.2433214783668518, 0.30880218744277954, 0.02405308000743389, 0.08389529585838318, 0.21390268206596375, -0.1504199057817459, -0.4797520041465759, 0.345548540353775, 0.15671126544475555, 0.2045818418264389, -0.10821855068206787, -0.05119485408067703, -0.2484925389289856, -0.04354696720838547, 0.23218421638011932, -0.19325178861618042, 0.14660972356796265, -0.10893330723047256, 0.3204665780067444, -0.0029128994792699814, -0.05786625295877457, -0.005160024389624596, 0.3110511600971222, 0.029056549072265625, -0.35833171010017395, 0.24986271560192108, 0.05828271806240082, 0.24287399649620056, 0.48219355940818787, -0.00011529633775353432, 0.39292675256729126, 0.4764249920845032, 0.06082529574632645, -0.3691388666629791, -0.15950416028499603, -0.13738398253917694, -0.09272883087396622, 0.13448816537857056, -0.07978732138872147, -0.39978930354118347, 0.29283326864242554, 0.14733895659446716, -0.2360205352306366, 0.359330415725708, 0.3179592192173004, 0.1680828034877777, 0.4045940637588501, 0.21094103157520294, -0.00855624582618475, 0.1579386293888092, -0.37829267978668213, 0.054427921772003174, 0.6685702800750732, 0.00227915495634079, -0.12994763255119324, 0.17163968086242676, 0.02332475781440735, 0.14400489628314972, 0.009471279568970203, 0.014452815055847168, -0.03043127804994583, 0.07123749703168869, -0.4041464924812317, 0.18537238240242004, 0.008427903056144714, 0.12899339199066162, -0.16011017560958862, -0.39573967456817627, 0.0008236020803451538, -0.12207002937793732, 0.17545448243618011, 0.3714885711669922, 0.07125651836395264, -0.25909924507141113, 0.3504345715045929, -0.32241013646125793, -0.3575547933578491, -0.3036499321460724, 0.2204476296901703, -0.026402458548545837, 0.07796678692102432, -0.11114761233329773, 0.3805278539657593, 0.09261191636323929, -0.054200246930122375, -0.21509118378162384, -0.036376386880874634, 0.11555597186088562, 0.011505399830639362, -0.27534857392311096, 0.1886470466852188, -0.09553039819002151, -0.006608806550502777, 0.01877778396010399, 0.18819215893745422, -0.022852689027786255, -0.03500860929489136, 0.12744635343551636, 0.2732175588607788, 0.15328839421272278, 0.009867077693343163, -0.05458449572324753, 0.01676730439066887, 0.610604465007782, 0.1724518984556198, 0.07470954954624176, -0.010395154356956482, -0.25950735807418823, -0.4830184876918793, -0.3679967522621155, 0.09119512140750885, 0.48176103830337524, -0.06885267794132233, -0.24448634684085846, 0.022784579545259476, -0.10860398411750793, 0.039178598672151566, 0.0946783497929573, 0.4414220154285431, -0.33189657330513, -0.19548964500427246, -0.012950489297509193, 0.3419390916824341, -0.08598019182682037, -0.12591767311096191, -0.13077034056186676, -0.06111441180109978, -0.05907672643661499, 0.0859365239739418, 0.04574925824999809, -0.2809332311153412, 0.05198885500431061, -0.2053126096725464, -0.031234748661518097, -0.2259085774421692, -0.12011265754699707, -0.15325254201889038, -0.07591933757066727, 0.28420189023017883, 0.18159721791744232, 0.03150562196969986, 0.1477585732936859, -0.5251586437225342, -0.06824962794780731, -0.14338776469230652, -0.4410589933395386, -0.4444308280944824, -0.15194109082221985, 0.08326824009418488, -0.19033443927764893, 0.20033954083919525, -0.2739679515361786, -0.05590983107686043, -0.07263008505105972, 0.055248718708753586, -0.13165494799613953, -0.07067578285932541, 0.03279319033026695, -0.3861231505870819, 0.4842204749584198, 0.3136083781719208, -0.016045978292822838, -0.0658382773399353, 0.2014187127351761, -0.13051563501358032, -0.01213739812374115, 0.3564375340938568, -0.19095095992088318, 0.037890274077653885, -0.3923908472061157, 0.036892734467983246, 0.3318607211112976, -0.445991575717926, -0.5108283758163452, 0.5726489424705505, -0.4212098717689514, 0.047834254801273346, 0.04896233230829239, -0.05516367405653, 0.042425885796546936, -0.12495122849941254, 0.38238221406936646, 0.3016206622123718, 0.17889244854450226, -0.13241367042064667, -0.06764107942581177, -0.23127157986164093, 0.14099405705928802, 0.09073853492736816, -0.13376742601394653, 0.11213503777980804, 0.41340142488479614, -0.3446921110153198, 0.17923462390899658, 0.05620017647743225, 0.19116587936878204, 0.21293850243091583, 0.1472792625427246, 0.08472353965044022, -0.0529143251478672, 0.27873897552490234, -0.1677522361278534, 0.18139562010765076, -0.014852004125714302, 0.24916662275791168, -0.33970582485198975, -0.0012458562850952148, -0.2267601191997528, 0.06387947499752045, -0.08398135006427765, -0.06062806025147438, 0.05841613560914993, 0.3431839048862457, 0.274573415517807, 0.2433329075574875, 0.03205443546175957, 0.12309524416923523, -0.07142455130815506, 0.0990433394908905, -0.3365531861782074, 0.5605539083480835, -0.17181400954723358, 0.10437346249818802, 0.14044123888015747, 0.20240744948387146, 0.3432680368423462, -0.20702598989009857, 0.018658969551324844, 0.35415077209472656, -0.3559218943119049, 0.31761619448661804, 0.5371894836425781, 0.2572632133960724, 0.07676446437835693, -0.4755699038505554, -0.15128673613071442, 0.22177380323410034, 0.10847125202417374, 0.1783256232738495, 0.48147815465927124, 0.2614711821079254, 0.23053482174873352, 0.4777594208717346, 0.0905056893825531, 0.061675913631916046, 0.35833579301834106, 0.03399958834052086, -0.15503747761249542, 0.15849757194519043, 0.1036704033613205, 0.1979607492685318, 0.211187943816185, -0.21053917706012726, -0.17216627299785614, 0.14463205635547638, 0.014199193567037582, -0.17628972232341766, 0.150007963180542, 0.19005891680717468, -0.11600951105356216, -0.10658418387174606, 0.14084166288375854, 0.30640968680381775, 0.05174084007740021, 0.021543871611356735, 0.03083677776157856, 0.22048281133174896, 0.024071313440799713, -0.22047072649002075, 0.3263612985610962, 0.14249026775360107, -0.08719339221715927, -0.19641834497451782, 0.028723791241645813, -0.11688641458749771, 0.0978187844157219, -0.16733083128929138, -0.17037531733512878, 0.1536765843629837, -0.5403593182563782, 0.18498943746089935, -0.034355148673057556, -0.21499553322792053, -0.00963646825402975, -0.02199334278702736, -0.4285406172275543, -0.19909192621707916, -0.19053709506988525, 0.08001682162284851, -0.08551210910081863, 0.00795573741197586, -0.010818513110280037, 0.34610363841056824, 0.07448260486125946, -0.23844732344150543, 0.0939912348985672, -0.2100267857313156, -0.2135213315486908, 0.08405841886997223, 0.18946373462677002, -0.24076321721076965, 0.2499050498008728, -0.2426358461380005, -0.06717076897621155, -0.3421248197555542, -0.04789850860834122, -0.04249804466962814, -0.11079275608062744, 0.4767243564128876, 0.11376013606786728, 0.48348212242126465, 0.1829807609319687, -0.18535660207271576, 0.42238688468933105, 0.08132890611886978, 0.10259491950273514, 0.007035689428448677, 0.06154352426528931, -0.05956968292593956, 0.1571575254201889, -0.02992049604654312, -0.35796692967414856, -0.2891956567764282, 0.333030104637146, -0.1962399184703827, 0.18803101778030396, -0.1617768108844757, 0.023338638246059418, 0.10816895961761475, 0.1410067230463028, 0.1125793606042862, -0.15650945901870728, -0.729227602481842, 0.19504770636558533, -0.24064433574676514, -0.36085784435272217, 0.0419299341738224, 0.33685851097106934, 0.046756938099861145, 0.007085879798978567, -0.6267256140708923, -0.23244522511959076, -0.11877432465553284, 0.22581800818443298, 0.20187801122665405, 0.03224436193704605, -0.08833359181880951, -0.2290547788143158, -0.055343229323625565, 0.10161309689283371, -0.4092010259628296, 0.102971151471138, -0.0430387482047081, 0.3600868880748749, 0.5449861288070679, 0.41455918550491333, 0.028434041887521744, 0.49970537424087524, 0.11826811730861664, 0.09671276807785034, 0.31892648339271545, -0.28121283650398254, 0.3593968451023102, 0.08604267239570618, -0.3262025713920593, 0.21713240444660187, -0.1522344946861267, 0.01949850469827652, 0.27302098274230957, 0.128193199634552, 0.2292260229587555, -0.5636202096939087, -0.41808268427848816, -0.5241838097572327, -0.34046483039855957, -0.1133483499288559, -0.029595352709293365, 0.023798495531082153, -0.06857529282569885, -0.14684754610061646, -0.06012589484453201, -0.0695485770702362, 0.13904154300689697, 0.40721553564071655, 0.0638640746474266, 0.08224936574697495, -0.29168885946273804, -0.17638632655143738, -0.6225190162658691, 0.549297034740448, 0.06253235787153244, 0.4381752014160156, -0.26550644636154175, 0.043728478252887726, 0.12113654613494873, -0.07228808104991913, 0.6309078931808472, -0.2613873779773712, 0.4134473204612732, -0.07262715697288513, -0.19819465279579163, -0.4663991630077362, 0.03890552744269371, 0.02885274961590767, 0.3434522747993469, 0.3163878321647644, 0.1253771036863327, -0.3911213278770447, 0.07816841453313828, 0.12134073674678802, -0.06954571604728699, -0.25558042526245117, -0.022107001394033432, -0.31025171279907227, -0.368739515542984, -0.19069816172122955, -0.2088155746459961, -0.009504922665655613, 0.36153310537338257, 0.10738532990217209, -0.1310005486011505, 0.18917089700698853, -0.29951709508895874, 0.05026031285524368, 0.09505884349346161, 0.12089593708515167, 0.027445588260889053, -0.1141662746667862, 0.346789687871933, 0.3809429109096527, 0.14953452348709106, 0.6855955123901367, 0.006273727864027023, -0.34905800223350525, 0.27810004353523254, 0.23829029500484467, 0.20387610793113708, 0.43479910492897034, -0.07504004240036011, 0.24113860726356506, 0.3355769217014313, 0.3774265646934509, -0.3102332651615143, 0.1507134586572647, 0.29318153858184814, 0.07630377262830734, -0.4568469822406769, -0.28515002131462097, 0.22317612171173096, -0.49470528960227966, -0.1421767920255661, 0.1932447999715805, 0.39569175243377686, -0.2902783155441284, 0.07658527791500092, -0.32682693004608154, 1.2668081521987915, -0.06469324231147766, -0.07267436385154724, 0.12840154767036438, -0.3321830630302429, 0.48501232266426086, -0.0943666622042656, 0.03997420519590378, -0.1910630762577057, 0.03675900772213936, -0.047749318182468414, -0.22570830583572388, 0.09971010684967041, -0.20763270556926727, 0.013798821717500687, 0.3411136269569397, -0.07586084306240082, 0.29676553606987, 0.11978614330291748, 0.3054959177970886, 0.03306003287434578, 0.2617349922657013, -0.2915467321872711, 0.05707021802663803, -0.0358162522315979, 0.4151536226272583, -0.1873655915260315, -0.21249273419380188, -0.23767085373401642, -0.40071195363998413, -0.3278590738773346, 0.1518460214138031, -0.5519123077392578, 0.253920316696167, -0.04304968938231468, -0.23312681913375854, -0.261457234621048, 0.14471769332885742, 0.4169023633003235, 0.11456316709518433, -0.5002190470695496, 0.08738794922828674, -0.17791244387626648, -0.09509725123643875, 0.11965382099151611, 0.07841291278600693, -0.09631358087062836, -0.21609753370285034, -0.4458208680152893, 0.3348984718322754, -0.05372503027319908, -0.6073330640792847, -0.01344195008277893, -0.001622624695301056, -0.018007546663284302, -0.026732031255960464, 0.0039482032880187035, -0.34253907203674316, -0.09493044018745422, -0.1810626983642578, 0.068588025867939, -0.007591307163238525, -0.09824726730585098, -0.3419322967529297, 0.1628757119178772, -0.3425571322441101, -0.04892415180802345, 0.44240331649780273, -0.18993467092514038, 0.08811616897583008, 0.2853184640407562, 0.037433329969644547, -0.2548070549964905, -0.04667495936155319, 0.02088993787765503, 0.24200238287448883, -0.27337202429771423, -0.02214210480451584, -0.18665578961372375, 0.11203272640705109, -0.3434138298034668, 0.06434176117181778, 0.32219362258911133, 0.1350548267364502, -0.06480371952056885, -0.6187938451766968, 0.02794366143643856, 0.11991554498672485, 0.0034771673381328583, 0.0763917863368988, 0.19338193535804749, 0.21280518174171448, 0.1347723752260208, -0.15639866888523102, -0.2591514587402344, 0.04282154142856598, -0.36167457699775696, 0.006086505949497223, 0.2387925535440445, -0.07949074357748032, 0.44612443447113037, -0.0205673985183239, 0.08314534276723862, -0.35839152336120605, -0.26807019114494324, -0.10462397336959839, -0.051233213394880295, 0.172055184841156, -0.023274429142475128, -0.3532457649707794, -0.16123729944229126, -0.26228317618370056, 0.1562095582485199, 0.070900559425354, 0.15312454104423523, 0.19355520606040955, 0.02682465687394142, -0.3527701199054718, 0.10992564260959625, -0.10846497863531113, -0.2476651966571808, 0.3503713309764862, -0.16452307999134064, 0.6463014483451843, 0.08187244832515717, 0.13063812255859375, -0.188180074095726, -0.2028181254863739, 0.03149953484535217, 0.061697784811258316, 0.0824824646115303, 0.08049760013818741, 0.2829529047012329, -0.2143429070711136, -0.19139419496059418, -0.0802508294582367, 0.3449099063873291, 0.09950724244117737, -0.36874115467071533, 0.11316646635532379, 0.12353068590164185, 0.09345664083957672, -0.022540535777807236, 0.056982021778821945, 0.10566435754299164, -0.19830486178398132, -0.03837541118264198, 0.07537570595741272, 0.22534507513046265, 0.05332814157009125, -0.0796470046043396, -0.0858350321650505, 0.5571945309638977, 0.22531333565711975, -0.1316603720188141, 0.029966270551085472, -0.18895278871059418, 0.13825444877147675, -0.12493772059679031, -0.011872176080942154, 0.048914726823568344, -0.028426989912986755, -0.3190062642097473, -0.04170803725719452, 0.12230730801820755, 0.18159231543540955, 0.004533044993877411, -0.18950119614601135, 0.2513410151004791, 0.0573323592543602, -0.3799563944339752, -0.12929823994636536, -0.12295085191726685, 0.4330989718437195, -0.24489594995975494, 0.1497977375984192, -0.22318440675735474, 0.31289154291152954, 0.08230384439229965, -0.2600361406803131, -0.11016597598791122, -0.18607346713542938, -0.20019769668579102, -0.04743216931819916, 0.07851402461528778, -0.5277858972549438, 0.009698733687400818, -0.022659681737422943, -0.02779177576303482, -0.13302217423915863, -0.19756048917770386, 0.22825711965560913, 0.035046372562646866, -0.1608756184577942, 0.3026837408542633, 0.27605772018432617, 0.011213336139917374, 0.30370235443115234, 0.2876381278038025, 0.6941515207290649, 0.230702206492424, -0.1077333390712738, 0.06535787880420685, 0.2503294348716736, -0.08692802488803864, -0.07189138233661652, 0.06104424595832825, 0.11453869938850403, -0.02368653193116188, 0.48045602440834045, 0.1672033965587616, -0.0542396679520607, 0.1267852932214737, 0.014535244554281235, 0.1927068680524826, -0.1496623307466507, 0.3153761625289917, -0.4188838601112366, -0.06474000215530396, -0.31321147084236145, -0.0502476766705513, -0.5849365592002869, -0.05664540082216263, 0.26532116532325745, -0.4485940933227539, 0.24066129326820374, -0.16886617243289948, 0.04785275459289551, -0.16164113581180573, 0.681150496006012, 0.42703622579574585, 0.47343942523002625, -0.18351317942142487, -0.26820141077041626, -0.4054041802883148, 0.30360159277915955, -0.12379932403564453, -0.03852938860654831, -0.08671340346336365, 0.08070260286331177, -0.1717955768108368, 0.25567764043807983, -0.014724910259246826, 0.06757204979658127, -0.1314728856086731, -0.05023985356092453, -0.08451993763446808, 0.04882568120956421, -0.060375750064849854, 0.22236259281635284, 0.04414746165275574, -0.29110750555992126, 0.546299934387207, -0.28164777159690857, 0.005588818341493607, 0.16570894420146942, 0.29977500438690186, 0.04121030494570732, -0.5828045606613159, 0.7539541125297546, 0.30014070868492126, 0.4115171432495117, -0.048175547271966934, 0.03922431915998459, -0.1863066554069519, -0.3100804388523102, -0.02773391455411911, 0.2643737494945526, 0.0013736076653003693, 0.0048416852951049805, -0.04422741383314133, -0.29774442315101624, -0.22006624937057495, 0.2255319356918335, -0.027616295963525772, 0.24754764139652252, 0.22130565345287323, -0.37351229786872864, 0.09461044520139694, -0.013339278288185596, 0.04275310039520264, -0.2165776491165161, 0.07977019995450974, 0.024341637268662453, -0.015227608382701874, -0.2488795816898346, 0.5429798364639282, -0.3515344560146332, -0.06509412825107574, 0.10456791520118713, 0.39116498827934265, 0.1545671671628952, 0.12787598371505737, -0.254213809967041, 0.13564804196357727, 0.46250060200691223, 0.2860243320465088, -0.24853911995887756, 0.29378095269203186, -0.39402303099632263, 0.22998912632465363, 0.10204261541366577, -0.13780929148197174, -0.10716583579778671, -0.3598135709762573, 0.010019421577453613, -0.22356060147285461 ]
https://github.com/huggingface/datasets/issues/4048
Split size error on `amazon_us_reviews` / `PC_v1_00` dataset
Follow-up: I have confirmed there are no duplicate lines via `sort amazon_reviews_us_PC_v1_00.tsv | uniq -cd` after extracting the raw file.
## Describe the bug When downloading this subset as of 3-28-2022 you will encounter a split size error after the dataset is extracted. The extracted dataset has roughly ~6m rows while the split expects <1m. Upon digging a little deeper, I downloaded the raw files from `https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_PC_v1_00.tsv.gz` and extracted them. A line count via `wc -l` confirms the ~6m number that we see and the data looks valid at a glance (I did not check for duplicate rows). My guess is this file has either been updated in place or there is a bug in the dataset metadata. Happy to submit a PR and fix this up if turns out to be a metadata issue but wanted to get some other :eyes: on it first. ## Steps to reproduce the bug ```python load_dataset('amazon_us_reviews', 'PC_v1_00') ``` ## Expected results Dataset is downloaded and extracted successfully. ## Actual results An split size exception is thrown. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
20
Split size error on `amazon_us_reviews` / `PC_v1_00` dataset ## Describe the bug When downloading this subset as of 3-28-2022 you will encounter a split size error after the dataset is extracted. The extracted dataset has roughly ~6m rows while the split expects <1m. Upon digging a little deeper, I downloaded the raw files from `https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_PC_v1_00.tsv.gz` and extracted them. A line count via `wc -l` confirms the ~6m number that we see and the data looks valid at a glance (I did not check for duplicate rows). My guess is this file has either been updated in place or there is a bug in the dataset metadata. Happy to submit a PR and fix this up if turns out to be a metadata issue but wanted to get some other :eyes: on it first. ## Steps to reproduce the bug ```python load_dataset('amazon_us_reviews', 'PC_v1_00') ``` ## Expected results Dataset is downloaded and extracted successfully. ## Actual results An split size exception is thrown. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Follow-up: I have confirmed there are no duplicate lines via `sort amazon_reviews_us_PC_v1_00.tsv | uniq -cd` after extracting the raw file.
[ -0.2346809059381485, -0.2431967556476593, -0.05880086496472359, 0.34479570388793945, 0.11112399399280548, 0.1701885461807251, 0.24223589897155762, 0.33071720600128174, -0.12986907362937927, -0.10447052121162415, -0.03156566619873047, -0.09119503945112228, 0.04941593483090401, 0.3862026333808899, -0.1741274893283844, -0.2562994956970215, -0.033623866736888885, -0.0654812604188919, 0.09368997812271118, 0.2647368311882019, -0.31521469354629517, 0.2902466654777527, -0.296539306640625, -0.2185157686471939, -0.2026858925819397, -0.14767490327358246, -0.21161270141601562, 0.06378981471061707, -0.2073308527469635, -0.25332117080688477, 0.35697057843208313, -0.2282530665397644, 0.23215901851654053, 0.5967381596565247, -0.00010854152060346678, -0.2945597767829895, 0.3036094307899475, -0.1605655550956726, -0.08901694416999817, -0.20109929144382477, 0.011572055518627167, -0.17782609164714813, 0.0021106991916894913, -0.12469810992479324, 0.07486296445131302, -0.4086636006832123, -0.3656684458255768, -0.06884870678186417, 0.31516027450561523, 0.39861899614334106, 0.2614181339740753, 0.1676446497440338, 0.19814570248126984, -0.2687479853630066, 0.4772597849369049, 0.10514139384031296, -0.11585427820682526, -0.0042252931743860245, 0.112000972032547, 0.06459638476371765, 0.09852476418018341, 0.20030014216899872, 0.0106650460511446, 0.18189509212970734, 0.10765963047742844, 0.044473446905612946, -0.16746017336845398, -0.23702189326286316, 0.14759114384651184, 0.3200337290763855, 0.6077436208724976, -0.16242456436157227, -0.3154825270175934, -0.2654355764389038, 0.0716811791062355, -0.19081632792949677, -0.01967611163854599, 0.4939146041870117, 0.10344497859477997, 0.04159532114863396, -0.13447575271129608, 0.08238951116800308, -0.11451171338558197, 0.16940060257911682, -0.38695067167282104, 0.12792257964611053, -0.25247499346733093, 0.1514074057340622, 0.1849898397922516, 0.007964899763464928, 0.25185626745224, 0.10171741992235184, -0.1389762908220291, 0.043186005204916, -0.395029217004776, -0.17657962441444397, -0.03659015893936157, -0.10485344380140305, 0.011738907545804977, 0.12191716581583023, -0.020065929740667343, -0.3004128634929657, 0.25306957960128784, -0.009623028337955475, 0.5205069780349731, 0.10482756793498993, -0.14520138502120972, 0.40082624554634094, -0.13347174227237701, 0.21164223551750183, 0.14443857967853546, -0.05296013504266739, 0.09571302682161331, -0.2540821433067322, 0.004928275942802429, -0.10886243730783463, 0.0922112762928009, -0.26055818796157837, -0.46716973185539246, 0.15464985370635986, -0.18495222926139832, 0.09727432578802109, -0.15363062918186188, 0.15187907218933105, 0.027095802128314972, 0.21651548147201538, 0.17484383285045624, 0.28016501665115356, -0.2309805303812027, -0.08737470209598541, -0.1997142732143402, 0.17957526445388794, -0.10882629454135895, -0.15903405845165253, 0.04088706895709038, -0.07746376097202301, 0.059290774166584015, -0.054012052714824677, -0.014971405267715454, -0.3307231068611145, -0.10647673159837723, -0.20030082762241364, 0.0346701443195343, 0.44985753297805786, 0.3069745600223541, 0.033982597291469574, -0.004047360271215439, 0.2131766825914383, -0.10544158518314362, 0.31052905321121216, -0.19124391674995422, -0.2732992470264435, -0.3918813467025757, 0.2505713403224945, -0.3488960862159729, -0.0971708595752716, -0.01281873881816864, -0.058109719306230545, 0.4618939161300659, -0.08567219972610474, 0.012038804590702057, -0.20355574786663055, -0.251752644777298, -0.2724054455757141, 0.0003553498536348343, 0.3464108109474182, -0.39953386783599854, 0.20675736665725708, -0.5185062885284424, 0.03136436641216278, 0.3467062711715698, 0.4275088608264923, 0.04621125012636185, -0.027643419802188873, -0.12510070204734802, 0.458351731300354, 0.10355615615844727, 0.140456423163414, -0.40002208948135376, 0.7577636241912842, -0.19877856969833374, -0.1319386214017868, -0.01416867971420288, -0.14269289374351501, 0.2608044743537903, -0.09833408147096634, -0.0753934234380722, 0.17020702362060547, -0.33911770582199097, 0.02810480259358883, -0.4713778495788574, -0.4980931580066681, 0.16911333799362183, 0.02981671690940857, 0.42830824851989746, -0.25943681597709656, 0.13001495599746704, 0.14661046862602234, 0.4455336630344391, 0.2500171959400177, 0.04535028338432312, 0.2975325584411621, 0.24698494374752045, 0.11987584829330444, 0.14969322085380554, -0.38034263253211975, -0.3199061155319214, 0.11614938825368881, -0.12119553983211517, -0.0867035835981369, 0.03569304943084717, -0.221809983253479, -0.5834257006645203, -0.15433870255947113, 0.06464799493551254, -0.1567372828722, 0.08719027042388916, -0.2500006854534149, 0.10168638825416565, -0.10324336588382721, 0.09816613793373108, 0.03335434943437576, -0.04316116124391556, 0.13321919739246368, -0.16307418048381805, 0.25672852993011475, -0.04122422635555267, -0.10613223165273666, 0.1924181431531906, 0.040980663150548935, 0.2427898347377777, -0.127895325422287, -0.08890900015830994, 0.39978089928627014, 0.2592930793762207, 0.22179335355758667, -0.18485084176063538, -0.1934015303850174, 0.1632189154624939, 0.08002160489559174, 0.056340157985687256, 0.2103825956583023, 0.18396417796611786, 0.013431541621685028, -0.41710880398750305, 0.30793797969818115, -0.38947075605392456, -0.06600949913263321, -0.16475918889045715, 0.1297839879989624, 0.19485753774642944, -0.10620453953742981, 0.2260196954011917, -0.39223840832710266, 0.010827045887708664, -0.20181988179683685, -0.13357412815093994, -0.10056260228157043, 0.11212727427482605, 0.23907256126403809, 0.21614030003547668, 0.01511988416314125, 0.03550359606742859, 0.1469840705394745, 0.03771574795246124, -0.14878928661346436, 0.04193425923585892, 0.7168483734130859, 0.5380562543869019, 0.2564067542552948, 0.25866585969924927, 0.06352698802947998, 0.19364608824253082, -0.13748590648174286, 0.3369213044643402, 0.24742795526981354, -0.02593696303665638, 0.27804648876190186, 0.04226261004805565, 0.03975769132375717, -0.12369225919246674, 0.19055098295211792, 0.1871098279953003, 0.24741941690444946, -0.4395160377025604, -0.02079230174422264, -0.29747965931892395, -0.08587276935577393, -0.23012419044971466, 0.060186177492141724, -0.12489928305149078, -0.3722772002220154, 0.00011827051639556885, 0.08722148835659027, -0.1575537621974945, -0.1414739340543747, -0.1788787543773651, 0.012423127889633179, 0.07958082109689713, 0.19234856963157654, 0.2554776072502136, -0.10401902347803116, -0.13540905714035034, 0.1679399162530899, 0.2567731738090515, 0.10732696950435638, 0.3906683921813965, -0.05985473096370697, -0.02035251073539257, -0.019321030005812645, -0.3200110197067261, 0.04843601584434509, -0.11069999635219574, 0.009054702706634998, 0.2719588279724121, -0.04364365339279175, 0.11028681695461273, -0.09400992840528488, -0.1651270091533661, -0.06819930672645569, -0.07330793887376785, 0.11593680083751678, 0.14577408134937286, -0.07536455243825912, -0.2551605999469757, -0.5920947194099426, -0.1163482740521431, -0.33382442593574524, 0.23832930624485016, 0.06517566740512848, -0.06770303845405579, -0.3103797733783722, -0.015271974727511406, -0.03552072122693062, 0.10393059253692627, -0.27531901001930237, -0.3304874300956726, 0.03804268315434456, 0.25185686349868774, -0.1582324206829071, -0.39112454652786255, 0.24293699860572815, 0.13689610362052917, -0.10070624947547913, 0.25302326679229736, -0.4532009959220886, 0.2712848484516144, -0.21438702940940857, -0.09331995248794556, 0.006134144961833954, 0.013605144806206226, 0.3646295666694641, -0.22384658455848694, -0.04069894552230835, 0.01904486119747162, 0.21018631756305695, -0.12153206020593643, 0.20374521613121033, 0.36478695273399353, -0.46804171800613403, 0.2499915361404419, 0.2606010138988495, 0.4484103322029114, 0.3432876467704773, -0.01808338239789009, -0.0008258149027824402, -0.0764942392706871, 0.1929902583360672, -0.08151403814554214, -0.10767196863889694, 0.06656961143016815, -0.34887683391571045, -0.022525208070874214, 0.3432506322860718, 0.005090718157589436, -0.3070061206817627, -0.002883274108171463, 0.10039220750331879, -0.4284064471721649, -0.3241822421550751, 0.08677790313959122, 0.08671099692583084, 0.33828407526016235, -0.012587831355631351, 0.14711296558380127, 0.12882882356643677, -0.21762734651565552, -0.3340280055999756, -0.016506612300872803, -0.09377742558717728, -0.062179937958717346, 0.07795383036136627, 0.10601688176393509, -0.11762065440416336, 0.29575738310813904, 0.13136033713817596, 0.29418233036994934, 0.04825839772820473, -0.2983614206314087, 0.12217099219560623, -0.03684118762612343, 0.6415000557899475, -0.2488427311182022, -0.0913027971982956, 0.06694063544273376, 0.09216150641441345, -0.20380741357803345, -0.197737917304039, -0.3204383850097656, 0.31243717670440674, 0.3018503785133362, 0.06842359900474548, -0.3012930154800415, 0.16853520274162292, 0.4240223169326782, 0.19443416595458984, -0.06628990918397903, -0.15571869909763336, -0.04705938324332237, -0.35395509004592896, -0.0684402734041214, 0.23755866289138794, 0.40606600046157837, 0.16102609038352966, -0.3162952661514282, -0.005084507167339325, -0.0429566353559494, -0.2683778703212738, -0.031118884682655334, 0.044955600053071976, 0.3790745437145233, -0.16176266968250275, 0.35108476877212524, -0.09369412064552307, -0.1094210296869278, 0.27395209670066833, 0.7752288579940796, 0.0015606582164764404, -0.4414268732070923, 0.16986945271492004, -0.485522985458374, -0.010763883590698242, 0.47761955857276917, -0.14572735130786896, -0.0023481324315071106, -0.08320438861846924, 0.3378324508666992, -0.05336351320147514, -0.17230327427387238, 0.29227104783058167, -0.28684768080711365, -0.009806239977478981, -0.13642138242721558, 0.2790503203868866, -0.00792031642049551, 0.10670074820518494, 0.12552407383918762, 0.09325046092271805, -0.16839919984340668, 0.2332904040813446, -0.09074612706899643, 0.7894149422645569, 0.17821353673934937, -0.06771379709243774, 0.11798831820487976, -0.27490234375, 0.38751405477523804, -0.08952029794454575, -0.01266300119459629, -0.34217116236686707, -0.1115214079618454, -0.01372353732585907, 0.05013832822442055, 0.15141332149505615, 0.02183743566274643, -0.1810864806175232, 0.14288146793842316, -0.18018606305122375, -0.13887718319892883, -0.04039682447910309, 0.18611478805541992, -0.19859826564788818, -0.06606467068195343, -0.02629890665411949, 0.15186339616775513, 0.009467851370573044, 0.06033284589648247, 0.02834111452102661, 0.03776977211236954, -0.058918435126543045, -0.2469717562198639, -0.610798180103302, -0.001884452998638153, 0.013808760792016983, 0.21490278840065002, -0.05546921119093895, -0.34078681468963623, 0.402728796005249, -0.04672221466898918, -0.10513509809970856, 0.1904965490102768, -0.22969475388526917, 0.20555908977985382, 0.02785686030983925, 0.030517611652612686, 0.3069151043891907, -0.014894896186888218, 0.19491896033287048, 0.03133300691843033, -0.20462186634540558, -0.39482581615448, 0.06274449825286865, 0.21638451516628265, 0.05821031332015991, 0.25137245655059814, -0.2043350785970688, -0.6595025658607483, -0.4194009602069855, -0.041793838143348694, -0.08185134828090668, -0.30173632502555847, 0.16140073537826538, -0.004969887435436249, -0.15035441517829895, 0.2540450096130371, -0.11236388981342316, -0.26713666319847107, -0.2632090747356415, 0.5645070672035217, 0.16535645723342896, -0.07935059070587158, -0.040947072207927704, 0.38633185625076294, -0.2298271656036377, -0.3317539095878601, 0.3656039834022522, -0.30785754323005676, -0.5503516793251038, 0.2576671838760376, -0.2852869927883148, 0.08958767354488373, 0.1722121387720108, -0.03701687231659889, 0.2907000184059143, 0.15908196568489075, -0.058107540011405945, -0.4133492112159729, 0.3035692870616913, 0.20942431688308716, 0.14767268300056458, 0.12361696362495422, 0.040179505944252014, 0.08412550389766693, 0.14736026525497437, 0.10889680683612823, -0.2940010726451874, 0.49788880348205566, -0.02075953036546707, 0.07749444246292114, -0.18357546627521515, -0.20218083262443542, 0.21589592099189758, -0.2722259759902954, 0.12924297153949738, 0.30596673488616943, -0.042111415416002274, -0.2531683146953583, -0.22063438594341278, 0.09600777924060822, -0.02793794870376587, 0.01703387126326561, 0.06584608554840088, -0.08177807927131653, -0.3496367931365967, 0.05077255889773369, 0.2629886567592621, 0.13253682851791382, 0.08659154176712036, 0.11034389585256577, 0.25210806727409363, -0.14106735587120056, -0.182358518242836, 0.29430538415908813, -0.3071424067020416, 0.1429707407951355, 0.08315335214138031, 0.363125741481781, 0.25523841381073, 0.12814514338970184, -0.05206611007452011, -0.26236069202423096, -0.06673212349414825, -0.043622665107250214, 0.4369265139102936, -0.18338844180107117, 0.07475557923316956, 0.02484613098204136, 0.5694977045059204, 0.6403390765190125, 0.026561934500932693, -0.1567203253507614, 0.026395659893751144, 0.2527953088283539, -0.4541969299316406, -0.056615520268678665, -0.015369515866041183, 0.2901019752025604, -0.029507849365472794, 0.28395265340805054, 0.09923183917999268, 0.09146232903003693, -0.17681728303432465, 0.24683994054794312, 0.5775881409645081, -0.06311044096946716, 0.29598990082740784, 0.6553912162780762, -0.06573052704334259, 0.13776381313800812, 0.0591132715344429, -0.1750224381685257, 0.20531000196933746, 0.41754090785980225, 0.05597420036792755, 0.388215571641922, 0.09076250344514847, 0.2352922111749649, 0.03547399118542671, -0.4227568507194519, -0.05973082408308983, 0.05050785839557648, -0.13754449784755707, 0.09509304165840149, 0.1382368803024292, 0.4687819182872772, -0.21847881376743317, 0.0026078196242451668, -0.3263913094997406, -0.04662485048174858, -0.09196362644433975, 0.1114872395992279, 0.025074198842048645, -0.11994098871946335, -0.5028717517852783, -0.11918070912361145, -0.06640183925628662, -0.1995764821767807, 0.2168324887752533, 0.0891360491514206, -0.013019002974033356, -0.38945695757865906, -0.20254379510879517, -0.17768594622612, 0.16963379085063934, -0.5417044162750244, -0.1968262642621994, 0.16638217866420746, 0.015733540058135986, 0.07976480573415756, 0.035549815744161606, 0.5769884586334229, 0.033071134239435196, -0.26314443349838257, -0.16090726852416992, 0.0764109343290329, -0.015010997653007507, 0.08772347122430801, 0.07310072332620621, -0.0079493448138237, 0.26673686504364014, 0.43903017044067383, 0.15896685421466827, -0.18144972622394562, 0.34705662727355957, 0.1413174867630005, 0.04497504234313965, -0.409335196018219, 0.4498886466026306, -0.44611018896102905, -0.10773780196905136, -0.3350379467010498, -0.04107510298490524, -0.390040785074234, -0.04457579180598259, 0.24889163672924042, -0.11126632988452911, 0.19251316785812378, -0.006015333347022533, 0.09965835511684418, -0.029466994106769562, 0.4864543378353119, 0.1919456273317337, -0.1360015869140625, -0.08298606425523758, -0.0343218594789505, -0.4223906397819519, 0.07683709263801575, -0.2966325283050537, -0.04058775305747986, 0.22389796376228333, 0.4205687940120697, -0.19188955426216125, 0.1648269146680832, -0.009275093674659729, 0.3511747717857361, -0.16895556449890137, 0.44442495703697205, -0.2822553217411041, -0.1220853179693222, -0.12537802755832672, -0.1526561975479126, 0.03123365342617035, -0.2562354505062103, 0.1044774278998375, -0.11621606349945068, -0.07025276869535446, -0.17367251217365265, -0.36032864451408386, 0.2633729875087738, 0.17973828315734863, 0.05127708613872528, 0.025073306635022163, 0.3926965296268463, 0.014603439718484879, 0.012683911249041557, -0.4765954613685608, -0.25320935249328613, -0.24476729333400726, 0.5633825063705444, 0.23460207879543304, 0.2951423227787018, -0.18559592962265015, -0.13579262793064117, -0.07009372115135193, 0.16052107512950897, -0.11782461404800415, 0.13874419033527374, -0.20854729413986206, 0.06427041441202164, -0.1778336465358734, 0.16980335116386414, 0.29147663712501526, 0.29685717821121216, -0.21409019827842712, 0.013137174770236015, 0.051043227314949036, -0.5155940055847168, 0.26406437158584595, 0.09026911854743958, -0.004081707447767258, -0.1216142401099205, 0.2455083578824997, 0.2955542504787445, -0.23193210363388062, -0.26742926239967346, 0.1506791114807129, 0.22163374722003937, -0.12753313779830933, 0.05745408311486244, 0.1263485699892044, -0.1498175859451294, -0.23792032897472382, 0.017282869666814804, 0.30277979373931885, 0.1390126645565033, -0.2992788553237915, 0.18648850917816162, -0.18655143678188324 ]
https://github.com/huggingface/datasets/issues/4048
Split size error on `amazon_us_reviews` / `PC_v1_00` dataset
Hi @trentonstrong, thanks for reporting! I confirm that loading this dataset configuration throws a `NonMatchingSplitsSizesError`: ``` NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=350242049, num_examples=785730, dataset_name='amazon_us_reviews'), 'recorded': SplitInfo(name='train', num_bytes=3982712078, num_examples=6908554, dataset_name='amazon_us_reviews')}] ``` Also thank you for your offer to fix this. You can find information about how to update the metadata JSON file here: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#automatically-add-code-metadata ```shell datasets-cli test datasets/amazon_us_reviews --save_infos --all_configs ``` Please, feel free to open a PR with this fix. And do not hesitate to ping me if you need any help.
## Describe the bug When downloading this subset as of 3-28-2022 you will encounter a split size error after the dataset is extracted. The extracted dataset has roughly ~6m rows while the split expects <1m. Upon digging a little deeper, I downloaded the raw files from `https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_PC_v1_00.tsv.gz` and extracted them. A line count via `wc -l` confirms the ~6m number that we see and the data looks valid at a glance (I did not check for duplicate rows). My guess is this file has either been updated in place or there is a bug in the dataset metadata. Happy to submit a PR and fix this up if turns out to be a metadata issue but wanted to get some other :eyes: on it first. ## Steps to reproduce the bug ```python load_dataset('amazon_us_reviews', 'PC_v1_00') ``` ## Expected results Dataset is downloaded and extracted successfully. ## Actual results An split size exception is thrown. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
80
Split size error on `amazon_us_reviews` / `PC_v1_00` dataset ## Describe the bug When downloading this subset as of 3-28-2022 you will encounter a split size error after the dataset is extracted. The extracted dataset has roughly ~6m rows while the split expects <1m. Upon digging a little deeper, I downloaded the raw files from `https://s3.amazonaws.com/amazon-reviews-pds/tsv/amazon_reviews_us_PC_v1_00.tsv.gz` and extracted them. A line count via `wc -l` confirms the ~6m number that we see and the data looks valid at a glance (I did not check for duplicate rows). My guess is this file has either been updated in place or there is a bug in the dataset metadata. Happy to submit a PR and fix this up if turns out to be a metadata issue but wanted to get some other :eyes: on it first. ## Steps to reproduce the bug ```python load_dataset('amazon_us_reviews', 'PC_v1_00') ``` ## Expected results Dataset is downloaded and extracted successfully. ## Actual results An split size exception is thrown. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi @trentonstrong, thanks for reporting! I confirm that loading this dataset configuration throws a `NonMatchingSplitsSizesError`: ``` NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=350242049, num_examples=785730, dataset_name='amazon_us_reviews'), 'recorded': SplitInfo(name='train', num_bytes=3982712078, num_examples=6908554, dataset_name='amazon_us_reviews')}] ``` Also thank you for your offer to fix this. You can find information about how to update the metadata JSON file here: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md#automatically-add-code-metadata ```shell datasets-cli test datasets/amazon_us_reviews --save_infos --all_configs ``` Please, feel free to open a PR with this fix. And do not hesitate to ping me if you need any help.
[ -0.29263779520988464, -0.20570379495620728, -0.03276357054710388, 0.3231837749481201, 0.13129504024982452, 0.1685381829738617, 0.22974109649658203, 0.3269466161727905, -0.15444768965244293, -0.05123569071292877, -0.02190452441573143, -0.09025856852531433, -0.022625185549259186, 0.3637930154800415, -0.21309205889701843, -0.22912558913230896, -0.052908189594745636, -0.060039594769477844, 0.028189748525619507, 0.2847514748573303, -0.30581995844841003, 0.2952374219894409, -0.28463834524154663, -0.23617886006832123, -0.2780126929283142, -0.1615106612443924, -0.19069252908229828, 0.041416436433792114, -0.19205023348331451, -0.26466867327690125, 0.4324173331260681, -0.2592456638813019, 0.23852548003196716, 0.582415759563446, -0.0001100948138628155, -0.2398580014705658, 0.3413493037223816, -0.1912555992603302, -0.07736276090145111, -0.1774829477071762, -0.04139959067106247, -0.21272799372673035, 0.006585690658539534, -0.10325498878955841, 0.015191137790679932, -0.2937893271446228, -0.3175380527973175, -0.14425894618034363, 0.31507250666618347, 0.3969157636165619, 0.2519482374191284, 0.23512756824493408, 0.12229028344154358, -0.24248699843883514, 0.463630735874176, 0.05403544008731842, -0.1476793736219406, -0.07504962384700775, 0.08723054081201553, 0.014603640884160995, 0.028439000248908997, 0.20989921689033508, 0.03401539474725723, 0.14429837465286255, 0.12133685499429703, 0.05389887094497681, -0.11300992220640182, -0.26912686228752136, 0.11952349543571472, 0.3354036808013916, 0.6089745163917542, -0.1347966194152832, -0.31457963585853577, -0.34955599904060364, -0.010444986633956432, -0.19646736979484558, 0.045690469443798065, 0.45727813243865967, 0.09659132361412048, 0.031200863420963287, -0.13985814154148102, 0.10432815551757812, -0.12188534438610077, 0.1102447509765625, -0.33773452043533325, 0.17283794283866882, -0.21098795533180237, 0.13299337029457092, 0.2032316029071808, 0.01979590579867363, 0.29243627190589905, 0.09043316543102264, -0.07927334308624268, 0.07106664776802063, -0.434501051902771, -0.1695042848587036, -0.0087660551071167, -0.08875381201505661, 0.007764600217342377, 0.15884815156459808, -0.04730851948261261, -0.28554508090019226, 0.26646891236305237, -0.025079287588596344, 0.5083961486816406, 0.08496978878974915, -0.15809547901153564, 0.42609772086143494, -0.1685085892677307, 0.23574790358543396, 0.16448116302490234, -0.04864809662103653, 0.09925195574760437, -0.2630617916584015, -0.008305583149194717, -0.07955020666122437, 0.1070367693901062, -0.2546915113925934, -0.5403714776039124, 0.1495249718427658, -0.2461400330066681, 0.07256364077329636, -0.14256174862384796, 0.14494693279266357, 0.0005245981737971306, 0.2828672528266907, 0.12193970382213593, 0.23951098322868347, -0.26147136092185974, -0.05391109362244606, -0.2296760231256485, 0.17349350452423096, -0.13112536072731018, -0.10047215223312378, 0.00772567093372345, -0.06023406609892845, 0.06721706688404083, -0.07692752033472061, -0.012508563697338104, -0.2663766145706177, -0.09078769385814667, -0.2223135232925415, -0.019444681704044342, 0.43810898065567017, 0.2201649248600006, 0.05087333917617798, -0.03026481345295906, 0.21879924833774567, -0.14307720959186554, 0.29123684763908386, -0.12526541948318481, -0.3041060268878937, -0.3178838789463043, 0.24559931457042694, -0.3795170187950134, -0.1343754678964615, 0.02417205274105072, -0.0032177790999412537, 0.5022894740104675, -0.06740285456180573, -0.027872584760189056, -0.227619007229805, -0.25639432668685913, -0.22673015296459198, 0.00101521797478199, 0.4028453826904297, -0.38604259490966797, 0.1435791254043579, -0.40083810687065125, -0.006281685084104538, 0.4334549903869629, 0.423554390668869, 0.04552876949310303, -0.05135529488325119, -0.12298500537872314, 0.48288917541503906, 0.01538383960723877, 0.14563126862049103, -0.426540732383728, 0.7321003675460815, -0.21924512088298798, -0.03629811853170395, 0.08050699532032013, -0.12682870030403137, 0.2150709480047226, -0.07579822838306427, -0.09621170163154602, 0.2052827924489975, -0.3557013273239136, 0.021961310878396034, -0.5062142610549927, -0.5726428627967834, 0.29229116439819336, 0.06746567785739899, 0.47357505559921265, -0.28935444355010986, 0.0690610259771347, 0.2622693181037903, 0.45212167501449585, 0.2275698482990265, 0.06441235542297363, 0.2780705690383911, 0.20698308944702148, 0.14797529578208923, 0.12077299505472183, -0.3973507881164551, -0.3567712903022766, 0.13748684525489807, -0.1126210168004036, -0.07048811763525009, 0.03275570273399353, -0.19338259100914001, -0.5646152496337891, -0.18405179679393768, 0.0173550546169281, -0.19283215701580048, 0.06415014714002609, -0.2139057219028473, 0.15756720304489136, -0.10607132315635681, 0.0987628847360611, 0.11519528925418854, -0.028600886464118958, 0.1692771166563034, -0.26880189776420593, 0.27768903970718384, -0.04584304988384247, -0.13965058326721191, 0.17882123589515686, 0.05896034836769104, 0.26108020544052124, -0.15103018283843994, -0.12125100940465927, 0.4443073868751526, 0.25795164704322815, 0.21107250452041626, -0.24225911498069763, -0.1685151606798172, 0.20862475037574768, 0.0911286324262619, 0.034670762717723846, 0.23813726007938385, 0.15060587227344513, 0.003508269786834717, -0.39728182554244995, 0.31252166628837585, -0.4068467319011688, 0.033870771527290344, -0.16110017895698547, 0.10154413431882858, 0.16574735939502716, -0.08415237069129944, 0.17380771040916443, -0.3769529461860657, 0.015547771006822586, -0.19497929513454437, -0.1407824456691742, -0.087945856153965, 0.04555083066225052, 0.19811955094337463, 0.23440375924110413, 0.004255063831806183, -0.0508132129907608, 0.1426476538181305, 0.023086387664079666, -0.14854389429092407, 0.05771275609731674, 0.7351568341255188, 0.5466559529304504, 0.25787845253944397, 0.22752884030342102, 0.05516446381807327, 0.10693787038326263, -0.15568162500858307, 0.30419817566871643, 0.2760881781578064, 0.04457220435142517, 0.31556016206741333, 0.04155955836176872, 0.050369251519441605, -0.16668744385242462, 0.1348126232624054, 0.19229309260845184, 0.27018770575523376, -0.43519195914268494, -0.022183528169989586, -0.33042049407958984, -0.1410900056362152, -0.23932260274887085, 0.08678798377513885, -0.11516804993152618, -0.3946100175380707, -0.013073641806840897, 0.09439010918140411, -0.16736926138401031, -0.0725155770778656, -0.26087212562561035, 0.015095263719558716, 0.06836351752281189, 0.18576975166797638, 0.2344408631324768, -0.10000987350940704, -0.151932030916214, 0.16142244637012482, 0.26125410199165344, 0.054342109709978104, 0.3637634813785553, -0.0848892480134964, -0.06310201436281204, 0.04707618057727814, -0.3025771379470825, 0.029902564361691475, -0.13211075961589813, -0.020651033148169518, 0.2800057530403137, -0.07799901068210602, 0.15236306190490723, -0.11664935201406479, -0.115709587931633, -0.055616721510887146, -0.07593555003404617, 0.06034362316131592, 0.16713234782218933, 0.010272538289427757, -0.2368854135274887, -0.6124396920204163, -0.150343656539917, -0.3318825662136078, 0.21300838887691498, 0.08005887269973755, -0.04666481912136078, -0.3045182228088379, 0.008660432882606983, -0.005364071577787399, 0.10481835156679153, -0.2503316402435303, -0.3247893750667572, 0.025274153798818588, 0.2585708796977997, -0.09305628389120102, -0.3519029915332794, 0.18227706849575043, 0.11160135269165039, -0.10577701032161713, 0.26735377311706543, -0.47431641817092896, 0.24022309482097626, -0.26280921697616577, -0.1002277135848999, 0.01867491938173771, 0.028759362176060677, 0.4261769652366638, -0.19397680461406708, -0.013481867499649525, 0.0025922469794750214, 0.10541808605194092, -0.1067759171128273, 0.21265271306037903, 0.42818933725357056, -0.4532645046710968, 0.3298487961292267, 0.30798912048339844, 0.5684027671813965, 0.3418665826320648, -0.004911068826913834, -0.04004555940628052, -0.050451308488845825, 0.1938587874174118, -0.061402611434459686, -0.06318894028663635, 0.1259477734565735, -0.3503923714160919, -0.0495072603225708, 0.2929670214653015, -0.019657395780086517, -0.30567407608032227, 0.014802541583776474, 0.10698647797107697, -0.3596065938472748, -0.30198073387145996, 0.08796410262584686, 0.017812905833125114, 0.3464450538158417, 0.026527851819992065, 0.21555131673812866, 0.11904965341091156, -0.216425359249115, -0.32690778374671936, -0.04790014028549194, -0.05695600062608719, -0.10975410789251328, 0.06519466638565063, 0.15633514523506165, -0.20475947856903076, 0.2823837399482727, 0.14221012592315674, 0.33736029267311096, 0.054106708616018295, -0.37155336141586304, 0.11803566664457321, -0.06077995523810387, 0.6209020018577576, -0.26710155606269836, -0.11473347246646881, 0.07654759287834167, 0.043089210987091064, -0.26709598302841187, -0.2603130042552948, -0.3167993128299713, 0.2794187366962433, 0.30358144640922546, 0.15841463208198547, -0.339874804019928, 0.09382330626249313, 0.39638274908065796, 0.18419380486011505, -0.05696070194244385, -0.12545931339263916, -0.03019268624484539, -0.31616446375846863, -0.06973221898078918, 0.27360987663269043, 0.3779376745223999, 0.23108786344528198, -0.29781875014305115, -0.0033844299614429474, -0.031884171068668365, -0.25107741355895996, 0.010783903300762177, 0.03718007728457451, 0.3234061896800995, -0.13148967921733856, 0.37639108300209045, -0.010696742683649063, 0.0004205144941806793, 0.29334959387779236, 0.7570040225982666, 0.009108448401093483, -0.4004695415496826, 0.1972528100013733, -0.3914766311645508, -0.025037698447704315, 0.5383822917938232, -0.11239083856344223, -0.018495798110961914, -0.02944416180253029, 0.3196101784706116, -0.13367824256420135, -0.08648853003978729, 0.27875733375549316, -0.2919237017631531, -0.02804441563785076, -0.1883487105369568, 0.2722742259502411, 0.035993386059999466, 0.09805497527122498, 0.059661559760570526, 0.05547579377889633, -0.1843116134405136, 0.21757306158542633, -0.03193341940641403, 0.7888486981391907, 0.1783520132303238, -0.0525241456925869, 0.14304040372371674, -0.3016796112060547, 0.4409168064594269, -0.14362773299217224, 0.05352775380015373, -0.34918686747550964, -0.1547132432460785, -0.019707724452018738, 0.0001258254051208496, 0.16822469234466553, -0.02096032351255417, -0.13148386776447296, 0.18831543624401093, -0.16278891265392303, -0.05747991427779198, -0.05046422779560089, 0.18726672232151031, -0.2294042706489563, -0.11718010902404785, 0.026810381561517715, 0.1399150788784027, -0.003834005445241928, 0.11491936445236206, 0.04498286172747612, -0.004907364957034588, -0.08351077139377594, -0.22392742335796356, -0.6098498702049255, 0.07330908626317978, -0.06608019024133682, 0.20967072248458862, -0.05712371692061424, -0.3151123821735382, 0.3976500630378723, -0.035267334431409836, -0.11926952004432678, 0.1048050969839096, -0.23208877444267273, 0.22878633439540863, -0.007829718291759491, 0.04605897143483162, 0.3202449083328247, -0.027666877955198288, 0.1987159550189972, 0.050734855234622955, -0.1532384753227234, -0.3493729531764984, 0.006984218023717403, 0.1636343002319336, 0.04278650879859924, 0.18279334902763367, -0.143227219581604, -0.6654461622238159, -0.4015882909297943, -0.029941268265247345, -0.008009668439626694, -0.31042972207069397, 0.15508176386356354, -0.04696648567914963, -0.17550432682037354, 0.2902984917163849, -0.16071562469005585, -0.2402878850698471, -0.281284362077713, 0.5903107523918152, 0.16244786977767944, -0.0680779367685318, 0.05242932215332985, 0.3466469645500183, -0.24921682476997375, -0.3185313045978546, 0.3721584677696228, -0.2574753761291504, -0.5452854037284851, 0.24473890662193298, -0.3232263922691345, 0.05744071304798126, 0.19008272886276245, -0.033281419426202774, 0.3501553535461426, 0.12355856597423553, -0.07342830300331116, -0.39407670497894287, 0.24929781258106232, 0.1916872262954712, 0.09966082870960236, 0.17567072808742523, -0.02185221016407013, 0.15046322345733643, 0.06476001441478729, 0.093192458152771, -0.29403752088546753, 0.43480587005615234, -0.05081367492675781, 0.10748837888240814, -0.11508388817310333, -0.20867055654525757, 0.22859464585781097, -0.2378317415714264, 0.11081407964229584, 0.3357953429222107, -0.06323207914829254, -0.232803076505661, -0.2370474636554718, 0.09223336726427078, 0.023549336940050125, -0.03947076201438904, 0.05169810727238655, -0.03469470888376236, -0.344510942697525, 0.028165282681584358, 0.2323327362537384, 0.14403218030929565, 0.061525508761405945, 0.16350609064102173, 0.19279776513576508, -0.1405625343322754, -0.19442051649093628, 0.28292012214660645, -0.3013342320919037, 0.15402187407016754, 0.07830078899860382, 0.35793113708496094, 0.23813582956790924, 0.13576409220695496, -0.036263566464185715, -0.24324390292167664, -0.058402448892593384, 0.015107337385416031, 0.42022356390953064, -0.22032372653484344, 0.0342898927628994, 0.10414616763591766, 0.5303332805633545, 0.6995623707771301, 0.04122805595397949, -0.19763526320457458, 0.0857338160276413, 0.23976732790470123, -0.43760040402412415, -0.029771167784929276, 0.03862176835536957, 0.2653147876262665, -0.020783184096217155, 0.3127290904521942, 0.1365067958831787, 0.14598552882671356, -0.1792520135641098, 0.266373872756958, 0.5254336595535278, -0.06280118972063065, 0.35071104764938354, 0.7503330707550049, -0.0763799250125885, 0.13389959931373596, 0.1316344439983368, -0.18441855907440186, 0.24195972084999084, 0.4430693984031677, 0.04096013680100441, 0.4301322400569916, 0.07210353016853333, 0.27525395154953003, -0.04266595095396042, -0.41967856884002686, -0.1399959772825241, 0.07144288718700409, -0.14072413742542267, 0.09673123061656952, 0.11290185153484344, 0.5181093811988831, -0.2811172306537628, -0.029640167951583862, -0.31433653831481934, -0.07067804038524628, -0.11265677958726883, 0.0660179853439331, 0.02746402472257614, -0.13144613802433014, -0.49934491515159607, -0.0901985615491867, -0.08221504092216492, -0.1547326296567917, 0.26599177718162537, 0.00250311940908432, -0.02077547460794449, -0.37684863805770874, -0.22085848450660706, -0.1706908941268921, 0.18074077367782593, -0.5258846282958984, -0.1728222668170929, 0.09956668317317963, -0.02738383412361145, 0.054557375609874725, 0.05468693748116493, 0.5607933402061462, 0.0800326019525528, -0.33883535861968994, -0.17985807359218597, 0.1166510283946991, 0.03104539029300213, 0.10741887986660004, 0.1732940375804901, 0.01846427470445633, 0.18046794831752777, 0.4556998014450073, 0.1281120628118515, -0.17771629989147186, 0.37400758266448975, 0.11214210838079453, 0.04382597655057907, -0.38952916860580444, 0.4262865483760834, -0.40039268136024475, -0.01057833805680275, -0.2624967098236084, -0.0031309276819229126, -0.37927377223968506, -0.037526559084653854, 0.239230677485466, -0.11053717136383057, 0.24287617206573486, 0.055819787085056305, 0.08755338937044144, -0.07874919474124908, 0.4867004156112671, 0.21611733734607697, -0.23098111152648926, -0.11130791157484055, -0.00983845442533493, -0.41416287422180176, 0.01929895579814911, -0.297998309135437, -0.05410878360271454, 0.19843707978725433, 0.4796541631221771, -0.21146216988563538, 0.13457132875919342, -0.005454704165458679, 0.3554908037185669, -0.15249881148338318, 0.42966774106025696, -0.2656879127025604, -0.10460934042930603, -0.1276634782552719, -0.1641695648431778, 0.03874939680099487, -0.28316429257392883, 0.07245494425296783, -0.04580274224281311, -0.08436030149459839, -0.17056359350681305, -0.3601911664009094, 0.2003343105316162, 0.1597859263420105, 0.06892178952693939, 0.09330236911773682, 0.37430304288864136, 0.007460754364728928, -0.012775830924510956, -0.5155315399169922, -0.2928624451160431, -0.28219911456108093, 0.519722044467926, 0.2109435647726059, 0.3362334668636322, -0.19503922760486603, -0.038749370723962784, -0.11522433906793594, 0.1513967216014862, -0.07340537011623383, 0.10446973145008087, -0.22570614516735077, 0.0696902796626091, -0.20279207825660706, 0.1732167750597, 0.290871262550354, 0.34368395805358887, -0.18900524079799652, 0.042727187275886536, 0.012954838573932648, -0.4773625433444977, 0.2916106581687927, 0.1020422950387001, -0.03506022319197655, -0.1167798712849617, 0.1651063859462738, 0.40824440121650696, -0.1986159086227417, -0.2714587152004242, 0.1372072994709015, 0.20548900961875916, -0.13041874766349792, 0.032168883830308914, 0.07867565751075745, -0.11083894968032837, -0.28380611538887024, 0.0016086362302303314, 0.2216302454471588, 0.11166926473379135, -0.29212889075279236, 0.21903777122497559, -0.17958346009254456 ]
https://github.com/huggingface/datasets/issues/4047
Dataset.unique(column: str) -> ArrowNotImplementedError
Hi @orkenstein, thanks for reporting. Please note that for this case, our `datasets` library uses under the hood the Apache Arrow `unique` function: https://arrow.apache.org/docs/python/generated/pyarrow.compute.unique.html#pyarrow.compute.unique And currently the Apache Arrow `unique` function is only implemented for these input types (see info in their [docs](https://arrow.apache.org/docs/cpp/compute.html#array-wise-vector-functions)): Boolean, Null, Numeric, Temporal, Binary- and String-like. However, the data types of the `wikiann` dataset are all `list<item: string>` (see its [dataset card](https://huggingface.co/datasets/wikiann#data-fields)), and thus, not yet supported by the Apache Arrow `unique` function.
## Describe the bug I'm trying to use `unique()` function, but it fails ## Steps to reproduce the bug 1. Get dataset 2. Call `unique` 3. Error # Sample code to reproduce the bug ```python !pip show datasets from datasets import load_dataset dataset = load_dataset('wikiann', 'en') dataset['train'].column_names dataset['train'].unique(dataset['train'].column_names[0]) ``` ## Expected results It would be nice to actually see unique items ## Actual results Error: ```python --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) [<ipython-input-10-5e0de07ed42c>](https://s0qyv2vjaji-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20220324-060046-RC00_436956229#) in <module>() 6 7 dataset['train'].column_names ----> 8 dataset['train'].unique(dataset['train'].column_names[0]) 5 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: Function unique has no kernel matching input types (array[list<item: string>]) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Google Collab - Python version: 3.7.13 - PyArrow version: 6.0.1
77
Dataset.unique(column: str) -> ArrowNotImplementedError ## Describe the bug I'm trying to use `unique()` function, but it fails ## Steps to reproduce the bug 1. Get dataset 2. Call `unique` 3. Error # Sample code to reproduce the bug ```python !pip show datasets from datasets import load_dataset dataset = load_dataset('wikiann', 'en') dataset['train'].column_names dataset['train'].unique(dataset['train'].column_names[0]) ``` ## Expected results It would be nice to actually see unique items ## Actual results Error: ```python --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) [<ipython-input-10-5e0de07ed42c>](https://s0qyv2vjaji-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20220324-060046-RC00_436956229#) in <module>() 6 7 dataset['train'].column_names ----> 8 dataset['train'].unique(dataset['train'].column_names[0]) 5 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: Function unique has no kernel matching input types (array[list<item: string>]) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Google Collab - Python version: 3.7.13 - PyArrow version: 6.0.1 Hi @orkenstein, thanks for reporting. Please note that for this case, our `datasets` library uses under the hood the Apache Arrow `unique` function: https://arrow.apache.org/docs/python/generated/pyarrow.compute.unique.html#pyarrow.compute.unique And currently the Apache Arrow `unique` function is only implemented for these input types (see info in their [docs](https://arrow.apache.org/docs/cpp/compute.html#array-wise-vector-functions)): Boolean, Null, Numeric, Temporal, Binary- and String-like. However, the data types of the `wikiann` dataset are all `list<item: string>` (see its [dataset card](https://huggingface.co/datasets/wikiann#data-fields)), and thus, not yet supported by the Apache Arrow `unique` function.
[ 0.013289343565702438, -0.3006759583950043, 0.00463692843914032, 0.2457810938358307, 0.4343057870864868, -0.002381749451160431, 0.40166011452674866, 0.047039687633514404, -0.3094610571861267, 0.2648710012435913, 0.14357350766658783, 0.8505440354347229, -0.2576572895050049, -0.29997676610946655, 0.22207027673721313, -0.06875346601009369, -0.014587126672267914, 0.32604020833969116, -0.037016741931438446, -0.23939615488052368, -0.45495864748954773, 0.12739038467407227, -0.6131672263145447, 0.4581661820411682, -0.3592284023761749, -0.14949442446231842, 0.0909058004617691, 0.1343078315258026, 0.07467419654130936, -0.17304684221744537, 0.293621689081192, -0.25749701261520386, -0.21873793005943298, 0.3624116778373718, -0.00012263823009561747, 0.007631704211235046, 0.31073617935180664, 0.10155738890171051, -0.34110236167907715, -0.466244101524353, -0.1159309595823288, -0.13219304382801056, 0.14455477893352509, -0.35335400700569153, 0.09354620426893234, -0.4884101152420044, 0.11811678111553192, -0.14032593369483948, 0.24278512597084045, 0.09325271099805832, 0.17536035180091858, 0.24966523051261902, 0.27437853813171387, 0.11725462228059769, 0.38101401925086975, 0.4062322974205017, -0.1809137463569641, 0.21390168368816376, 0.15285822749137878, -0.06844829022884369, 0.24933576583862305, 0.3944322168827057, -0.03772076219320297, 0.25433090329170227, -0.031085975468158722, 0.11679781228303909, -0.4124094843864441, 0.1539546251296997, 0.16848456859588623, 0.39012569189071655, 0.05563763156533241, -0.4619521200656891, -0.21621569991111755, -0.00779135525226593, 0.15075036883354187, -0.6054981350898743, 0.19543078541755676, -0.029494045302271843, -0.361465185880661, -0.08089165389537811, -0.19022782146930695, 0.2811065912246704, -0.043263595551252365, 0.32366466522216797, 0.048319943249225616, 0.23608653247356415, 0.15585337579250336, 0.2750653922557831, 0.14270739257335663, -0.24238400161266327, -0.10058152675628662, 0.13254012167453766, 0.23711533844470978, 0.16081802546977997, -0.3368360698223114, 0.005935870110988617, -0.14807537198066711, 0.05547643452882767, 0.11034835129976273, -0.0008070841431617737, 0.3464921712875366, 0.04541730135679245, 0.19639550149440765, 0.23731234669685364, 0.013706800527870655, 0.37875938415527344, -0.22244489192962646, 0.30881208181381226, -0.0986020565032959, -0.10736484825611115, -0.3661162853240967, 0.04207386448979378, 0.04724282771348953, 0.0835777148604393, 0.49162405729293823, 0.20387643575668335, 0.5998110175132751, -0.0010893642902374268, -0.3507085144519806, 0.01036582887172699, -0.8762399554252625, -0.09503775089979172, -0.12288413196802139, 0.06460323929786682, 0.1260892152786255, -0.18906229734420776, -0.020651808008551598, -0.15788793563842773, -0.28577667474746704, -0.08727492392063141, -0.2077752649784088, 0.1610955148935318, -0.3432396948337555, -0.12716594338417053, -0.010526150465011597, -0.2740457057952881, 0.14864586293697357, 0.16337686777114868, 0.19652751088142395, -0.16579213738441467, 0.1310558319091797, -0.06044644117355347, -0.013017766177654266, -0.014492366462945938, -0.2441750168800354, 0.2411433905363083, 0.22215335071086884, -0.21580718457698822, -0.06669141352176666, 0.18848773837089539, -0.0558781698346138, -0.4912590980529785, -0.23569785058498383, 0.13370771706104279, 0.0025103744119405746, 0.10613880306482315, 0.09797461330890656, -0.34678757190704346, 0.05063100531697273, -0.34138020873069763, 0.17113438248634338, -0.08816877007484436, -0.1687874048948288, -0.3284457325935364, -0.24759426712989807, -0.007975369691848755, -0.30797240138053894, -0.040503472089767456, -0.33790168166160583, 0.1949017494916916, 0.1801757514476776, 0.09517316520214081, -0.28100067377090454, 0.17320306599140167, -0.1443038135766983, 0.19531922042369843, 0.5274994373321533, -0.2128896713256836, -0.4582483172416687, 0.0658336728811264, 0.020673401653766632, 0.22369472682476044, 0.016647949814796448, 0.0817706510424614, 0.12011085450649261, 0.19074521958827972, 0.11548526585102081, -0.0413593053817749, 0.04141232743859291, -0.27916455268859863, -0.24335169792175293, -0.33070889115333557, 0.014485185965895653, -0.030584964901208878, -0.011046573519706726, -0.01678910106420517, 0.40104368329048157, -0.23658888041973114, 0.2685662508010864, -0.2932714819908142, -0.05991671234369278, -0.16202203929424286, 0.4208316504955292, 0.012048404663801193, 0.13171808421611786, -0.3026653230190277, -0.5512992739677429, 0.21975114941596985, -0.19622167944908142, -0.056823328137397766, -0.25978225469589233, -0.20527540147304535, -0.22169959545135498, 0.2061784863471985, -0.1655896008014679, 0.04981236904859543, 0.09529177844524384, 0.1534891128540039, -0.040558893233537674, 0.06298145651817322, -0.2425074428319931, 0.14274674654006958, 0.053149186074733734, 0.11544570326805115, -0.38165003061294556, 0.1946118324995041, 0.04108626767992973, -0.29553166031837463, -0.4011445939540863, 0.15934759378433228, 0.24809861183166504, 0.20916302502155304, -0.23992303013801575, 0.1894928216934204, 0.025901690125465393, 0.12104655802249908, -0.574194610118866, -0.1470051258802414, -0.11957067996263504, -0.2187012881040573, -0.2709048390388489, 0.4589391350746155, 0.34418371319770813, 0.007742561399936676, -0.10592018812894821, 0.5347703099250793, -0.09945434331893921, 0.1460043340921402, -0.21196384727954865, 0.2636975944042206, 0.014826158061623573, -0.15494616329669952, -0.027634501457214355, -0.2662321925163269, 0.32456961274147034, -0.00875558890402317, 0.38547229766845703, 0.0591074638068676, -0.384971559047699, -0.28954070806503296, 0.15375420451164246, 0.006750520318746567, 0.4558253288269043, 0.07041068375110626, -0.10667017847299576, 0.12397775799036026, 0.3219127058982849, -0.047104235738515854, 0.535407304763794, 0.11054574698209763, -0.14125625789165497, 0.24323341250419617, -0.0979136973619461, 0.1759321689605713, 0.13581250607967377, 0.056228190660476685, 0.1270749419927597, 0.09762364625930786, 0.14564059674739838, -0.03937603905797005, -0.22524753212928772, -0.22458963096141815, -0.02216600999236107, 0.17413024604320526, -0.383768767118454, 0.1891128122806549, -0.5676199197769165, 0.19362476468086243, -0.1957794576883316, -0.4280086159706116, 0.20559577643871307, 0.08335684984922409, -0.004730843007564545, 0.4267675280570984, 0.20614704489707947, 0.4516688585281372, -0.006464341655373573, 0.12786288559436798, 0.0767291933298111, -0.2676909863948822, -0.14512847363948822, 0.012568812817335129, -0.30448925495147705, 0.06439432501792908, 0.12459145486354828, 0.019481919705867767, 0.12926068902015686, 0.13347454369068146, 0.1492137461900711, -0.38120728731155396, -0.4309372901916504, 0.1567656695842743, 0.0235368013381958, 0.12430728226900101, 0.25728052854537964, -0.4127649664878845, -0.38466042280197144, -0.19184048473834991, 0.2812158763408661, -0.10537804663181305, -0.35102078318595886, 0.3661758601665497, -0.22879058122634888, 0.13621146976947784, -0.13281360268592834, -0.25134795904159546, -0.04493746906518936, -0.19328266382217407, 0.2693541646003723, -0.056792788207530975, 0.2833085060119629, -0.04624566063284874, 0.2788023054599762, 0.09810575842857361, -0.0021019033156335354, -0.14052614569664001, -0.28366386890411377, 0.22304120659828186, 0.409774512052536, -0.04077799245715141, -0.22891248762607574, -0.18661104142665863, -0.42610663175582886, 0.07325118780136108, 0.46401846408843994, -0.15241208672523499, -0.5204148292541504, 0.0013258997350931168, 0.0700320154428482, -0.19039805233478546, 0.24279223382472992, 0.4409984052181244, 0.16349422931671143, -0.03283076360821724, -0.07821585983037949, -0.3252128064632416, -0.10920774191617966, 0.12766404449939728, 0.3021049201488495, 0.29917606711387634, 0.6274695992469788, 0.08007438480854034, 0.4215739369392395, 0.27895376086235046, -0.2637644410133362, 0.2742120027542114, -0.40183237195014954, 0.005057234317064285, 0.051128365099430084, -0.3846781849861145, -0.32956087589263916, -0.06593067944049835, -0.13082650303840637, 0.07158118486404419, -0.2032015025615692, -0.19538691639900208, 0.009440112859010696, 0.2627352774143219, -0.672522246837616, -0.1639576554298401, 0.20020420849323273, 0.16941750049591064, 0.07540537416934967, 0.053720828145742416, 0.021135956048965454, -0.16319192945957184, -0.16541513800621033, 0.05300343409180641, -0.04876665771007538, -0.01356855034828186, -0.06325440853834152, -0.05399493873119354, -0.28259754180908203, 0.3082634508609772, 0.39370447397232056, 0.3342256546020508, 0.2579209804534912, 0.17049045860767365, -0.1587451845407486, 0.3136402368545532, 0.09974171221256256, 0.4479730725288391, -0.16698548197746277, -0.046610914170742035, 0.19169147312641144, -0.025008970871567726, -0.4164055287837982, -0.06592439115047455, -0.20017898082733154, 0.04883195459842682, -0.19193418323993683, 0.10368794947862625, -0.15604063868522644, 0.12729354202747345, 0.33849403262138367, 0.12443360686302185, -0.23152439296245575, -0.3076574206352234, -0.29729148745536804, -0.20335179567337036, -0.35810205340385437, 0.016175568103790283, -0.2525026798248291, 0.1085495874285698, 0.3767434358596802, 0.09049661457538605, -0.49352070689201355, -0.0685289055109024, 0.2627719044685364, 0.10871483385562897, 0.17052742838859558, -0.21643127501010895, 0.062076617032289505, -0.031239047646522522, -0.10876564681529999, 0.06455585360527039, 0.5589171051979065, -0.03211086615920067, -0.2514885365962982, -0.07643158733844757, -0.10820280015468597, -0.06774947792291641, 0.1414232701063156, -0.24345766007900238, 0.09539053589105606, -0.13556668162345886, 0.08565863966941833, 0.07277034223079681, -0.14779385924339294, 0.3033645749092102, -0.04399978369474411, -0.1505945920944214, -0.04999314248561859, 0.48349541425704956, 0.05598844215273857, -0.2336244434118271, 0.5345487594604492, 0.4955907464027405, -0.17566083371639252, 0.3599114418029785, 0.009020477533340454, 1.0497632026672363, 0.10123421251773834, -0.02295195683836937, 0.18226167559623718, -0.23037280142307281, 0.14295601844787598, 0.38080668449401855, 0.14764222502708435, -0.285950630903244, 0.03413616865873337, -0.1747322380542755, -0.09277145564556122, 0.005666472017765045, 0.22887299954891205, -0.15212956070899963, 0.303189218044281, 0.19750364124774933, 0.2697114944458008, 0.20719696581363678, -0.22132033109664917, 0.10765156894922256, 0.1112983226776123, 0.041402559727430344, -0.006168704479932785, -0.01501462608575821, 0.3557763993740082, -0.03299896419048309, 0.10497844964265823, -0.15246734023094177, -0.4250372648239136, -0.09709935635328293, -0.1550540030002594, -0.2797124683856964, 0.3062487244606018, 0.31124451756477356, -0.6911930441856384, -0.01956726610660553, 0.04925166070461273, -0.11630912125110626, -0.18687304854393005, 0.06394486129283905, -0.18841280043125153, 0.693483293056488, 0.3175394833087921, -0.31218746304512024, -0.2377060353755951, 0.15218953788280487, -0.022261079400777817, 0.017304934561252594, 0.25292253494262695, 0.14632895588874817, -0.33014386892318726, 0.12189874053001404, 0.2523725628852844, 0.07360608875751495, -0.17638705670833588, 0.11844608187675476, -0.18005284667015076, 0.030839640647172928, -0.326130211353302, 0.013821661472320557, -0.20929165184497833, -0.04995352402329445, 0.4439127743244171, 0.04086316004395485, -0.1499178111553192, -0.056427355855703354, 0.11261351406574249, 0.417687326669693, -0.06496413052082062, 0.2950962781906128, -0.11411859095096588, -0.06103528290987015, -0.12328315526247025, 0.19361230731010437, 0.2071181833744049, -0.7867534756660461, 0.019820116460323334, -0.34834977984428406, 0.3456840515136719, -0.04522339627146721, 0.374677836894989, 0.3728553056716919, 0.5091699957847595, 0.12027028203010559, -0.2221483439207077, -0.21563012897968292, 0.370866060256958, 0.2156139463186264, 0.15707944333553314, -0.16977685689926147, -0.02843521162867546, -0.03633522242307663, 0.04270784556865692, -0.22565588355064392, 0.35608237981796265, 0.0006308667361736298, 0.07729530334472656, -0.028132226318120956, 0.1617906391620636, 0.18276596069335938, 0.23192577064037323, 0.2228097915649414, 0.255447119474411, -0.08940783143043518, -0.12970784306526184, -0.2321530431509018, 0.17820313572883606, 0.0721975713968277, 0.09885875135660172, -0.06650456041097641, 0.10182733833789825, 0.4010985493659973, -0.03051915392279625, 0.11027082800865173, 0.26284489035606384, -0.09908148646354675, 0.12651130557060242, 0.4017699062824249, -0.04693399369716644, -0.6055094599723816, -0.009054325520992279, -0.18547481298446655, 0.18428707122802734, 0.30093133449554443, 0.09094013273715973, 0.19544099271297455, 0.04273972660303116, -0.22619281709194183, -0.2607388198375702, 0.1241876557469368, -0.23923686146736145, 0.16640646755695343, -0.3521122336387634, -0.25608906149864197, -0.2316058874130249, 0.08682233095169067, 0.14974358677864075, -0.40270358324050903, -0.25160452723503113, 0.10420026630163193, 0.13349682092666626, -0.21074418723583221, -0.13940542936325073, 0.06337006390094757, 0.06469566375017166, 0.16219009459018707, 0.49895647168159485, -0.04024094343185425, -0.029873080551624298, -0.27480775117874146, -0.00588246900588274, -0.07880719006061554, -0.10608184337615967, -0.2608419358730316, 0.2054852992296219, -0.14470939338207245, -0.12035574018955231, 0.3726494312286377, 0.09236139059066772, 0.1878265142440796, 0.320071280002594, -0.23610499501228333, 0.3959220051765442, -0.009362168610095978, 0.33459606766700745, 0.2534496486186981, -0.24334314465522766, 0.3984116315841675, 0.09497611224651337, -0.14644595980644226, -0.08978041261434555, 0.058164626359939575, 0.12230575829744339, 0.16005921363830566, 0.22058787941932678, -0.2026553452014923, -0.13919608294963837, -0.10454533249139786, -0.027690287679433823, -0.14869901537895203, -0.3099499046802521, -0.1680261641740799, -0.17182350158691406, -0.11461977660655975, -0.09308606386184692, 0.729352593421936, 0.06478038430213928, -0.030102185904979706, -0.013723203912377357, -0.18784743547439575, 0.31928887963294983, 0.07079772651195526, -0.3875373899936676, 0.05120348930358887, 0.510334312915802, -0.03501053899526596, -0.04009886458516121, 0.18285873532295227, 0.534622311592102, 0.14302070438861847, -0.1416635364294052, -0.004781100898981094, -0.16402004659175873, -0.05738944560289383, 0.04589260369539261, 0.2582152485847473, 0.11289536207914352, 0.1437418907880783, -0.019607076421380043, 0.10713895410299301, -0.22875596582889557, 0.20523810386657715, -0.02448282018303871, 0.05507490038871765, -0.4241611659526825, 0.3976631164550781, -0.10299181938171387, -0.12364090979099274, 0.027188841253519058, 0.08749324828386307, -0.1751469373703003, 0.16711467504501343, 0.4492027461528778, 0.2742518484592438, 0.01808488368988037, 0.01525480579584837, 0.02117135375738144, -0.020604155957698822, -0.1289045214653015, 0.10507255792617798, 0.12641103565692902, -0.17610156536102295, -0.07367764413356781, -0.518714189529419, 0.6649747490882874, -0.4648188352584839, -0.07741764187812805, 0.10184695571660995, 0.18720032274723053, -0.04355562478303909, 0.270166277885437, 0.18738187849521637, -0.04080897942185402, -0.1510036587715149, 0.6361846923828125, -0.3110070526599884, -0.2099936157464981, 0.4144516587257385, -0.3665090501308441, 0.01604640483856201, -0.4641926884651184, -0.021808136254549026, -0.44830453395843506, 0.044217534363269806, -0.1129935085773468, -0.1513497680425644, 0.13184553384780884, 0.05423855036497116, 0.5543928146362305, 0.22195912897586823, 0.24990785121917725, 0.16305050253868103, -0.10583855956792831, 0.13641062378883362, 0.0618271566927433, -0.056216441094875336, 0.2910137176513672, 0.216915100812912, 0.35393214225769043, 0.14198823273181915, -0.10451281070709229, -0.14589473605155945, 0.2983063757419586, -0.08546692878007889, -0.2525849938392639, -0.09224255383014679, 0.29902541637420654, -0.21372553706169128, 0.15829329192638397, -0.12795932590961456, 0.22838854789733887, 0.13742029666900635, 0.3244304955005646, -0.19489771127700806, -0.5350674390792847, 0.720878005027771, -0.5434892773628235, -0.32185226678848267, -0.17530719935894012, 0.4602520763874054, -0.16792497038841248, -0.20667259395122528, -0.4690800607204437, -0.08175277709960938, 0.5058925151824951, -0.0882815569639206, 0.11205798387527466, -0.009680381044745445, -0.1620054394006729, 0.12985070049762726, -0.029496926814317703, 0.14938265085220337, -0.002173271030187607, -0.008812645450234413, 0.2706555128097534, -0.44997501373291016 ]
https://github.com/huggingface/datasets/issues/4047
Dataset.unique(column: str) -> ArrowNotImplementedError
As a workaround solution you can use pandas: ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en', split='train') df = dataset.to_pandas() unique_df = df[~df.tokens.apply(tuple).duplicated()] # from https://stackoverflow.com/a/46958336/17517845 ``` Note that pandas loads the dataset in memory (this one is small so it's fine).
## Describe the bug I'm trying to use `unique()` function, but it fails ## Steps to reproduce the bug 1. Get dataset 2. Call `unique` 3. Error # Sample code to reproduce the bug ```python !pip show datasets from datasets import load_dataset dataset = load_dataset('wikiann', 'en') dataset['train'].column_names dataset['train'].unique(dataset['train'].column_names[0]) ``` ## Expected results It would be nice to actually see unique items ## Actual results Error: ```python --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) [<ipython-input-10-5e0de07ed42c>](https://s0qyv2vjaji-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20220324-060046-RC00_436956229#) in <module>() 6 7 dataset['train'].column_names ----> 8 dataset['train'].unique(dataset['train'].column_names[0]) 5 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: Function unique has no kernel matching input types (array[list<item: string>]) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Google Collab - Python version: 3.7.13 - PyArrow version: 6.0.1
43
Dataset.unique(column: str) -> ArrowNotImplementedError ## Describe the bug I'm trying to use `unique()` function, but it fails ## Steps to reproduce the bug 1. Get dataset 2. Call `unique` 3. Error # Sample code to reproduce the bug ```python !pip show datasets from datasets import load_dataset dataset = load_dataset('wikiann', 'en') dataset['train'].column_names dataset['train'].unique(dataset['train'].column_names[0]) ``` ## Expected results It would be nice to actually see unique items ## Actual results Error: ```python --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) [<ipython-input-10-5e0de07ed42c>](https://s0qyv2vjaji-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20220324-060046-RC00_436956229#) in <module>() 6 7 dataset['train'].column_names ----> 8 dataset['train'].unique(dataset['train'].column_names[0]) 5 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: Function unique has no kernel matching input types (array[list<item: string>]) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Google Collab - Python version: 3.7.13 - PyArrow version: 6.0.1 As a workaround solution you can use pandas: ```python from datasets import load_dataset dataset = load_dataset('wikiann', 'en', split='train') df = dataset.to_pandas() unique_df = df[~df.tokens.apply(tuple).duplicated()] # from https://stackoverflow.com/a/46958336/17517845 ``` Note that pandas loads the dataset in memory (this one is small so it's fine).
[ 0.013289343565702438, -0.3006759583950043, 0.00463692843914032, 0.2457810938358307, 0.4343057870864868, -0.002381749451160431, 0.40166011452674866, 0.047039687633514404, -0.3094610571861267, 0.2648710012435913, 0.14357350766658783, 0.8505440354347229, -0.2576572895050049, -0.29997676610946655, 0.22207027673721313, -0.06875346601009369, -0.014587126672267914, 0.32604020833969116, -0.037016741931438446, -0.23939615488052368, -0.45495864748954773, 0.12739038467407227, -0.6131672263145447, 0.4581661820411682, -0.3592284023761749, -0.14949442446231842, 0.0909058004617691, 0.1343078315258026, 0.07467419654130936, -0.17304684221744537, 0.293621689081192, -0.25749701261520386, -0.21873793005943298, 0.3624116778373718, -0.00012263823009561747, 0.007631704211235046, 0.31073617935180664, 0.10155738890171051, -0.34110236167907715, -0.466244101524353, -0.1159309595823288, -0.13219304382801056, 0.14455477893352509, -0.35335400700569153, 0.09354620426893234, -0.4884101152420044, 0.11811678111553192, -0.14032593369483948, 0.24278512597084045, 0.09325271099805832, 0.17536035180091858, 0.24966523051261902, 0.27437853813171387, 0.11725462228059769, 0.38101401925086975, 0.4062322974205017, -0.1809137463569641, 0.21390168368816376, 0.15285822749137878, -0.06844829022884369, 0.24933576583862305, 0.3944322168827057, -0.03772076219320297, 0.25433090329170227, -0.031085975468158722, 0.11679781228303909, -0.4124094843864441, 0.1539546251296997, 0.16848456859588623, 0.39012569189071655, 0.05563763156533241, -0.4619521200656891, -0.21621569991111755, -0.00779135525226593, 0.15075036883354187, -0.6054981350898743, 0.19543078541755676, -0.029494045302271843, -0.361465185880661, -0.08089165389537811, -0.19022782146930695, 0.2811065912246704, -0.043263595551252365, 0.32366466522216797, 0.048319943249225616, 0.23608653247356415, 0.15585337579250336, 0.2750653922557831, 0.14270739257335663, -0.24238400161266327, -0.10058152675628662, 0.13254012167453766, 0.23711533844470978, 0.16081802546977997, -0.3368360698223114, 0.005935870110988617, -0.14807537198066711, 0.05547643452882767, 0.11034835129976273, -0.0008070841431617737, 0.3464921712875366, 0.04541730135679245, 0.19639550149440765, 0.23731234669685364, 0.013706800527870655, 0.37875938415527344, -0.22244489192962646, 0.30881208181381226, -0.0986020565032959, -0.10736484825611115, -0.3661162853240967, 0.04207386448979378, 0.04724282771348953, 0.0835777148604393, 0.49162405729293823, 0.20387643575668335, 0.5998110175132751, -0.0010893642902374268, -0.3507085144519806, 0.01036582887172699, -0.8762399554252625, -0.09503775089979172, -0.12288413196802139, 0.06460323929786682, 0.1260892152786255, -0.18906229734420776, -0.020651808008551598, -0.15788793563842773, -0.28577667474746704, -0.08727492392063141, -0.2077752649784088, 0.1610955148935318, -0.3432396948337555, -0.12716594338417053, -0.010526150465011597, -0.2740457057952881, 0.14864586293697357, 0.16337686777114868, 0.19652751088142395, -0.16579213738441467, 0.1310558319091797, -0.06044644117355347, -0.013017766177654266, -0.014492366462945938, -0.2441750168800354, 0.2411433905363083, 0.22215335071086884, -0.21580718457698822, -0.06669141352176666, 0.18848773837089539, -0.0558781698346138, -0.4912590980529785, -0.23569785058498383, 0.13370771706104279, 0.0025103744119405746, 0.10613880306482315, 0.09797461330890656, -0.34678757190704346, 0.05063100531697273, -0.34138020873069763, 0.17113438248634338, -0.08816877007484436, -0.1687874048948288, -0.3284457325935364, -0.24759426712989807, -0.007975369691848755, -0.30797240138053894, -0.040503472089767456, -0.33790168166160583, 0.1949017494916916, 0.1801757514476776, 0.09517316520214081, -0.28100067377090454, 0.17320306599140167, -0.1443038135766983, 0.19531922042369843, 0.5274994373321533, -0.2128896713256836, -0.4582483172416687, 0.0658336728811264, 0.020673401653766632, 0.22369472682476044, 0.016647949814796448, 0.0817706510424614, 0.12011085450649261, 0.19074521958827972, 0.11548526585102081, -0.0413593053817749, 0.04141232743859291, -0.27916455268859863, -0.24335169792175293, -0.33070889115333557, 0.014485185965895653, -0.030584964901208878, -0.011046573519706726, -0.01678910106420517, 0.40104368329048157, -0.23658888041973114, 0.2685662508010864, -0.2932714819908142, -0.05991671234369278, -0.16202203929424286, 0.4208316504955292, 0.012048404663801193, 0.13171808421611786, -0.3026653230190277, -0.5512992739677429, 0.21975114941596985, -0.19622167944908142, -0.056823328137397766, -0.25978225469589233, -0.20527540147304535, -0.22169959545135498, 0.2061784863471985, -0.1655896008014679, 0.04981236904859543, 0.09529177844524384, 0.1534891128540039, -0.040558893233537674, 0.06298145651817322, -0.2425074428319931, 0.14274674654006958, 0.053149186074733734, 0.11544570326805115, -0.38165003061294556, 0.1946118324995041, 0.04108626767992973, -0.29553166031837463, -0.4011445939540863, 0.15934759378433228, 0.24809861183166504, 0.20916302502155304, -0.23992303013801575, 0.1894928216934204, 0.025901690125465393, 0.12104655802249908, -0.574194610118866, -0.1470051258802414, -0.11957067996263504, -0.2187012881040573, -0.2709048390388489, 0.4589391350746155, 0.34418371319770813, 0.007742561399936676, -0.10592018812894821, 0.5347703099250793, -0.09945434331893921, 0.1460043340921402, -0.21196384727954865, 0.2636975944042206, 0.014826158061623573, -0.15494616329669952, -0.027634501457214355, -0.2662321925163269, 0.32456961274147034, -0.00875558890402317, 0.38547229766845703, 0.0591074638068676, -0.384971559047699, -0.28954070806503296, 0.15375420451164246, 0.006750520318746567, 0.4558253288269043, 0.07041068375110626, -0.10667017847299576, 0.12397775799036026, 0.3219127058982849, -0.047104235738515854, 0.535407304763794, 0.11054574698209763, -0.14125625789165497, 0.24323341250419617, -0.0979136973619461, 0.1759321689605713, 0.13581250607967377, 0.056228190660476685, 0.1270749419927597, 0.09762364625930786, 0.14564059674739838, -0.03937603905797005, -0.22524753212928772, -0.22458963096141815, -0.02216600999236107, 0.17413024604320526, -0.383768767118454, 0.1891128122806549, -0.5676199197769165, 0.19362476468086243, -0.1957794576883316, -0.4280086159706116, 0.20559577643871307, 0.08335684984922409, -0.004730843007564545, 0.4267675280570984, 0.20614704489707947, 0.4516688585281372, -0.006464341655373573, 0.12786288559436798, 0.0767291933298111, -0.2676909863948822, -0.14512847363948822, 0.012568812817335129, -0.30448925495147705, 0.06439432501792908, 0.12459145486354828, 0.019481919705867767, 0.12926068902015686, 0.13347454369068146, 0.1492137461900711, -0.38120728731155396, -0.4309372901916504, 0.1567656695842743, 0.0235368013381958, 0.12430728226900101, 0.25728052854537964, -0.4127649664878845, -0.38466042280197144, -0.19184048473834991, 0.2812158763408661, -0.10537804663181305, -0.35102078318595886, 0.3661758601665497, -0.22879058122634888, 0.13621146976947784, -0.13281360268592834, -0.25134795904159546, -0.04493746906518936, -0.19328266382217407, 0.2693541646003723, -0.056792788207530975, 0.2833085060119629, -0.04624566063284874, 0.2788023054599762, 0.09810575842857361, -0.0021019033156335354, -0.14052614569664001, -0.28366386890411377, 0.22304120659828186, 0.409774512052536, -0.04077799245715141, -0.22891248762607574, -0.18661104142665863, -0.42610663175582886, 0.07325118780136108, 0.46401846408843994, -0.15241208672523499, -0.5204148292541504, 0.0013258997350931168, 0.0700320154428482, -0.19039805233478546, 0.24279223382472992, 0.4409984052181244, 0.16349422931671143, -0.03283076360821724, -0.07821585983037949, -0.3252128064632416, -0.10920774191617966, 0.12766404449939728, 0.3021049201488495, 0.29917606711387634, 0.6274695992469788, 0.08007438480854034, 0.4215739369392395, 0.27895376086235046, -0.2637644410133362, 0.2742120027542114, -0.40183237195014954, 0.005057234317064285, 0.051128365099430084, -0.3846781849861145, -0.32956087589263916, -0.06593067944049835, -0.13082650303840637, 0.07158118486404419, -0.2032015025615692, -0.19538691639900208, 0.009440112859010696, 0.2627352774143219, -0.672522246837616, -0.1639576554298401, 0.20020420849323273, 0.16941750049591064, 0.07540537416934967, 0.053720828145742416, 0.021135956048965454, -0.16319192945957184, -0.16541513800621033, 0.05300343409180641, -0.04876665771007538, -0.01356855034828186, -0.06325440853834152, -0.05399493873119354, -0.28259754180908203, 0.3082634508609772, 0.39370447397232056, 0.3342256546020508, 0.2579209804534912, 0.17049045860767365, -0.1587451845407486, 0.3136402368545532, 0.09974171221256256, 0.4479730725288391, -0.16698548197746277, -0.046610914170742035, 0.19169147312641144, -0.025008970871567726, -0.4164055287837982, -0.06592439115047455, -0.20017898082733154, 0.04883195459842682, -0.19193418323993683, 0.10368794947862625, -0.15604063868522644, 0.12729354202747345, 0.33849403262138367, 0.12443360686302185, -0.23152439296245575, -0.3076574206352234, -0.29729148745536804, -0.20335179567337036, -0.35810205340385437, 0.016175568103790283, -0.2525026798248291, 0.1085495874285698, 0.3767434358596802, 0.09049661457538605, -0.49352070689201355, -0.0685289055109024, 0.2627719044685364, 0.10871483385562897, 0.17052742838859558, -0.21643127501010895, 0.062076617032289505, -0.031239047646522522, -0.10876564681529999, 0.06455585360527039, 0.5589171051979065, -0.03211086615920067, -0.2514885365962982, -0.07643158733844757, -0.10820280015468597, -0.06774947792291641, 0.1414232701063156, -0.24345766007900238, 0.09539053589105606, -0.13556668162345886, 0.08565863966941833, 0.07277034223079681, -0.14779385924339294, 0.3033645749092102, -0.04399978369474411, -0.1505945920944214, -0.04999314248561859, 0.48349541425704956, 0.05598844215273857, -0.2336244434118271, 0.5345487594604492, 0.4955907464027405, -0.17566083371639252, 0.3599114418029785, 0.009020477533340454, 1.0497632026672363, 0.10123421251773834, -0.02295195683836937, 0.18226167559623718, -0.23037280142307281, 0.14295601844787598, 0.38080668449401855, 0.14764222502708435, -0.285950630903244, 0.03413616865873337, -0.1747322380542755, -0.09277145564556122, 0.005666472017765045, 0.22887299954891205, -0.15212956070899963, 0.303189218044281, 0.19750364124774933, 0.2697114944458008, 0.20719696581363678, -0.22132033109664917, 0.10765156894922256, 0.1112983226776123, 0.041402559727430344, -0.006168704479932785, -0.01501462608575821, 0.3557763993740082, -0.03299896419048309, 0.10497844964265823, -0.15246734023094177, -0.4250372648239136, -0.09709935635328293, -0.1550540030002594, -0.2797124683856964, 0.3062487244606018, 0.31124451756477356, -0.6911930441856384, -0.01956726610660553, 0.04925166070461273, -0.11630912125110626, -0.18687304854393005, 0.06394486129283905, -0.18841280043125153, 0.693483293056488, 0.3175394833087921, -0.31218746304512024, -0.2377060353755951, 0.15218953788280487, -0.022261079400777817, 0.017304934561252594, 0.25292253494262695, 0.14632895588874817, -0.33014386892318726, 0.12189874053001404, 0.2523725628852844, 0.07360608875751495, -0.17638705670833588, 0.11844608187675476, -0.18005284667015076, 0.030839640647172928, -0.326130211353302, 0.013821661472320557, -0.20929165184497833, -0.04995352402329445, 0.4439127743244171, 0.04086316004395485, -0.1499178111553192, -0.056427355855703354, 0.11261351406574249, 0.417687326669693, -0.06496413052082062, 0.2950962781906128, -0.11411859095096588, -0.06103528290987015, -0.12328315526247025, 0.19361230731010437, 0.2071181833744049, -0.7867534756660461, 0.019820116460323334, -0.34834977984428406, 0.3456840515136719, -0.04522339627146721, 0.374677836894989, 0.3728553056716919, 0.5091699957847595, 0.12027028203010559, -0.2221483439207077, -0.21563012897968292, 0.370866060256958, 0.2156139463186264, 0.15707944333553314, -0.16977685689926147, -0.02843521162867546, -0.03633522242307663, 0.04270784556865692, -0.22565588355064392, 0.35608237981796265, 0.0006308667361736298, 0.07729530334472656, -0.028132226318120956, 0.1617906391620636, 0.18276596069335938, 0.23192577064037323, 0.2228097915649414, 0.255447119474411, -0.08940783143043518, -0.12970784306526184, -0.2321530431509018, 0.17820313572883606, 0.0721975713968277, 0.09885875135660172, -0.06650456041097641, 0.10182733833789825, 0.4010985493659973, -0.03051915392279625, 0.11027082800865173, 0.26284489035606384, -0.09908148646354675, 0.12651130557060242, 0.4017699062824249, -0.04693399369716644, -0.6055094599723816, -0.009054325520992279, -0.18547481298446655, 0.18428707122802734, 0.30093133449554443, 0.09094013273715973, 0.19544099271297455, 0.04273972660303116, -0.22619281709194183, -0.2607388198375702, 0.1241876557469368, -0.23923686146736145, 0.16640646755695343, -0.3521122336387634, -0.25608906149864197, -0.2316058874130249, 0.08682233095169067, 0.14974358677864075, -0.40270358324050903, -0.25160452723503113, 0.10420026630163193, 0.13349682092666626, -0.21074418723583221, -0.13940542936325073, 0.06337006390094757, 0.06469566375017166, 0.16219009459018707, 0.49895647168159485, -0.04024094343185425, -0.029873080551624298, -0.27480775117874146, -0.00588246900588274, -0.07880719006061554, -0.10608184337615967, -0.2608419358730316, 0.2054852992296219, -0.14470939338207245, -0.12035574018955231, 0.3726494312286377, 0.09236139059066772, 0.1878265142440796, 0.320071280002594, -0.23610499501228333, 0.3959220051765442, -0.009362168610095978, 0.33459606766700745, 0.2534496486186981, -0.24334314465522766, 0.3984116315841675, 0.09497611224651337, -0.14644595980644226, -0.08978041261434555, 0.058164626359939575, 0.12230575829744339, 0.16005921363830566, 0.22058787941932678, -0.2026553452014923, -0.13919608294963837, -0.10454533249139786, -0.027690287679433823, -0.14869901537895203, -0.3099499046802521, -0.1680261641740799, -0.17182350158691406, -0.11461977660655975, -0.09308606386184692, 0.729352593421936, 0.06478038430213928, -0.030102185904979706, -0.013723203912377357, -0.18784743547439575, 0.31928887963294983, 0.07079772651195526, -0.3875373899936676, 0.05120348930358887, 0.510334312915802, -0.03501053899526596, -0.04009886458516121, 0.18285873532295227, 0.534622311592102, 0.14302070438861847, -0.1416635364294052, -0.004781100898981094, -0.16402004659175873, -0.05738944560289383, 0.04589260369539261, 0.2582152485847473, 0.11289536207914352, 0.1437418907880783, -0.019607076421380043, 0.10713895410299301, -0.22875596582889557, 0.20523810386657715, -0.02448282018303871, 0.05507490038871765, -0.4241611659526825, 0.3976631164550781, -0.10299181938171387, -0.12364090979099274, 0.027188841253519058, 0.08749324828386307, -0.1751469373703003, 0.16711467504501343, 0.4492027461528778, 0.2742518484592438, 0.01808488368988037, 0.01525480579584837, 0.02117135375738144, -0.020604155957698822, -0.1289045214653015, 0.10507255792617798, 0.12641103565692902, -0.17610156536102295, -0.07367764413356781, -0.518714189529419, 0.6649747490882874, -0.4648188352584839, -0.07741764187812805, 0.10184695571660995, 0.18720032274723053, -0.04355562478303909, 0.270166277885437, 0.18738187849521637, -0.04080897942185402, -0.1510036587715149, 0.6361846923828125, -0.3110070526599884, -0.2099936157464981, 0.4144516587257385, -0.3665090501308441, 0.01604640483856201, -0.4641926884651184, -0.021808136254549026, -0.44830453395843506, 0.044217534363269806, -0.1129935085773468, -0.1513497680425644, 0.13184553384780884, 0.05423855036497116, 0.5543928146362305, 0.22195912897586823, 0.24990785121917725, 0.16305050253868103, -0.10583855956792831, 0.13641062378883362, 0.0618271566927433, -0.056216441094875336, 0.2910137176513672, 0.216915100812912, 0.35393214225769043, 0.14198823273181915, -0.10451281070709229, -0.14589473605155945, 0.2983063757419586, -0.08546692878007889, -0.2525849938392639, -0.09224255383014679, 0.29902541637420654, -0.21372553706169128, 0.15829329192638397, -0.12795932590961456, 0.22838854789733887, 0.13742029666900635, 0.3244304955005646, -0.19489771127700806, -0.5350674390792847, 0.720878005027771, -0.5434892773628235, -0.32185226678848267, -0.17530719935894012, 0.4602520763874054, -0.16792497038841248, -0.20667259395122528, -0.4690800607204437, -0.08175277709960938, 0.5058925151824951, -0.0882815569639206, 0.11205798387527466, -0.009680381044745445, -0.1620054394006729, 0.12985070049762726, -0.029496926814317703, 0.14938265085220337, -0.002173271030187607, -0.008812645450234413, 0.2706555128097534, -0.44997501373291016 ]
https://github.com/huggingface/datasets/issues/4041
Add support for IIIF in datasets
Hi! Thanks for the detailed analysis of adding IIIF support. I like the idea of "using IIIF through datasets scripts" due to its ease of use. Another approach that I like is yielding image ids and using the `piffle` library (which offers a bit more flexibility) + `map` to download + cache images. We can handle bad URLs in `map` by returning `None`. Plus, we can add a `Dataset Preprocessing` section with the code that explains this approach to the card of such datasets. WDYT? > currently, IIIF is mainly used by cultural heritage organizations (museums, archives etc.) The adoption of IIIF in this sector has been growing but it's possible that adoption won't be extended to other industries which may also be a source of image data for training ML models. This is why (currently) adding a new feature type would be overkill, IMO.
This is a feature request for support for IIIF in `datasets`. Apologies for the long issue. I have also used a different format to the usual feature request since I think that makes more sense but happy to use the standard template if preferred. ## What is [IIIF](https://iiif.io/)? IIIF (International Image Interoperability Framework) > is a set of open standards for delivering high-quality, attributed digital objects online at scale. It’s also an international community developing and implementing the IIIF APIs. IIIF is backed by a consortium of leading cultural institutions. The tl;dr is that IIIF provides various specifications for implementing useful functionality for: - Institutions to make available images for various use cases - Users to have a consistent way of interacting/requesting these images - For developers to have a common standard for developing tools for working with IIIF images that will work across all institutions that implement a particular IIIF standard (for example the image viewer for the BNF can also work for the Library of Congress if they both use IIIF). Some institutions that various levels of support IIF include: The British Library, Internet Archive, Library of Congress, Wikidata. There are also many smaller institutions that have IIIF support. An incomplete list can be found here: https://iiif.io/guides/finding_resources/ ## IIIF APIs IIIF consists of a number of APIs which could be integrated with datasets. I think the most obvious candidate for inclusion would be the [Image API](https://iiif.io/api/image/3.0/) ### IIIF Image API The Image API https://iiif.io/api/image/3.0/ is likely the most suitable first candidate for integration with datasets. The Image API offers a consistent protocol for requesting images via a URL: ```{scheme}://{server}{/prefix}/{identifier}/{region}/{size}/{rotation}/{quality}.{format}``` A concrete example of this: ```https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/full/0/default.jpg``` As you can see the scheme offers a number of options that can be specified in the URL, for example, size. Using the example URL we return: ![](https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/full/0/default.jpg) We can change the size to request a size of 250 by 250, this is done by changing the size from `full` to `250,250` i.e. switching the URL to `https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/250,250/0/default.jpg` ![](https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/250,250/0/default.jpg) We can also request the image with max width 250, max height 250 whilst maintaining the aspect ratio using `!w,h`. i.e. change the url to `https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/!250,250/0/default.jpg` ![](https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/!250,250/0/default.jpg) A full overview of the options for size can be found here: https://iiif.io/api/image/3.0/#42-size ## Why would/could this be useful for datasets? There are a few reasons why support for the IIIF Image API could be useful. Broadly the ability to have more control over how an image is returned from a server is useful for many ML workflows: - images can be requested in the right size, this prevents having to download/stream large images when the actual desired size is much smaller - can select a subset of an image: it is possible to select a sub-region of an image, this could be useful for example when you already have a bounding box for a subset of an image and then want to use this subset of an image for another task. For example, https://github.com/Living-with-machines/nnanno uses IIIF to request parts of a newspaper image that have been detected as 'photograph', 'illustration' etc for downstream use. - options for quality, rotation, the format can all be encoded in the URL request. These may become particularly useful when pre-training models on large image datasets where the cost of downloading images with 1600 pixel width when you actually want 240 has a larger impact. ## What could this look like in datasets? I think there are various ways in which support for IIIF could potentially be included in `datasets`. These suggestions aren't fully fleshed out but hopefully, give a sense of possible approaches that match existing `datasets` methods in their approach. ### Use through datasets scripts Loading images via URL is already supported. There are a few possible 'extras' that could be included when using IIIF. One option is to leverage the IIIF protocol in datasets scripts, i.e. the dataset script can expose the IIIF options via the dataset script: ```python ds = load_dataset("iiif_dataset", image_size="250,250", fmt="jpg") ``` This is already possible. The approach to parsing the IIIF URLs would be left to the person creating the dataset script. ### Support through dataset scripts (with some datasets support) This is similar to the above but `datasets` would offer some way of saying this is a iiif URL and then expose the options associated with IIIF images automatically. i.e. if you did something like: ```python features = {"label": ClassLabel(names=['dog','cat']), "url": datasets.IIIFURL()} ``` inside your loading script, you would automatically have exposed `size`, `fmt` etc. options when loading the dataset. ### Other possible integrations Some other possible pseudocode ways that a user could interact with IIIF URLs: The ability to cast to an `IIIFImage` feature type: ``` ds.cast_column('url', IIIFImage, download=False) ``` The ability to specify some options associated with IIIF urls. ``` ds = ds.set_iiif_options(column='url', size="250,250") ``` I think all of these would rely on having an `IIIFImage` feature type - this would be a little bit of a Frankenstein between a `string` and `datasets.Image`. I think most of the actual image behaviour would be exactly the same as `datasets.Image`, the difference would be that the underlying URL could be modified in various ways. ## prerequisite requirements There are a few pre-requisites that I can anticipate. This doesn't cover a full implementation of IIIF support which would have different requirements depending on the approach taken to implementing IIIF. Some of these features would be useful independently of adding IIIF support: ### support for handling failed images loaded via a URL (or a specific IIIFImage feature). Working with images via web requests will inevitably return the odd failed request. If these images are then requests and don't return it would be useful to have a `None` returned instead of an error. For example, when using `push_to_hub` `datasets` will try and include the image but currently fails with bad URLs. ```python from datasets import Dataset import datasets urls = ['https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/!250,250/0/default.jpg']*3 urls.append("badurl.com/image.jpg") data = {"url":urls} ds = Dataset.from_dict(data) ds = ds.cast_column('url', datasets.Image()) ds[3]['url'] ``` returns a `FileNotFoundError`, for streaming large datasets of images using their URLs it could be useful to have `None` returned instead. This has implications for the actual training loop i.e. you now need to somehow skip those examples because of this it might not be desirable to support this. ### Caching support Since IIIF requests images via a URL it would be great to have a way of not requesting the images multiple times. This is tracked in https://github.com/huggingface/datasets/issues/3142 and I think this would also be very desirable to have here particularly as one of the primary use cases of IIIF may be to do unsupervised pre-training on large datasets of IIIF URLs. ### Support for Parsing IIIF URLs This gets closer to the actual implementation. Here the requirement would be some way for `datasets` to parse a URL that the users specify is an IIIF URL. An example of a Python library that does this: https://github.com/Princeton-CDH/piffle. I also have a rough version that uses `dataclasses` which I can share. ## Why it might not be worthwhile/suitable for datasets There are some reasons that this might not be worth implementing: - currently, IIIF is mainly used by cultural heritage organizations (museums, archives etc.) The adoption of IIIF in this sector has been growing but it's possible that adoption won't be extended to other industries which may also be a source of image data for training ML models. - It may end up being better to leave this to the user. It would for example be possible for someone to write map functions to change an IIIF URL to the correct size etc. Adding direct support for IIIF in datasets may potentially not be worth the trouble. - The impact of different approaches to doing image scaling can impact the downstream model's performance, see: https://twitter.com/wightmanr/status/1479528581466243073?s=20. Since different IIIF image servers may implement different approaches to resizing images this could have a downstream impact on model performance. think this is something that could be flagged to the end-user in the documentation. This probably also falls into general "gotchas" that probably aren't the `datasets` libraries' role to protect users from. Some of the requirements outlined above would be useful for images anyway. These could be implemented prior to a final decision about whether IIIF support could/should be added to datasets. ## Suggested next steps: I realise this is a long and slightly open-ended issue. I am happy to clarify/answer questions on IIIF and possible integrations. If the prerequisite requirements seem worth exploring/are better explored in their own issues let me know and I can open new issues for those.
145
Add support for IIIF in datasets This is a feature request for support for IIIF in `datasets`. Apologies for the long issue. I have also used a different format to the usual feature request since I think that makes more sense but happy to use the standard template if preferred. ## What is [IIIF](https://iiif.io/)? IIIF (International Image Interoperability Framework) > is a set of open standards for delivering high-quality, attributed digital objects online at scale. It’s also an international community developing and implementing the IIIF APIs. IIIF is backed by a consortium of leading cultural institutions. The tl;dr is that IIIF provides various specifications for implementing useful functionality for: - Institutions to make available images for various use cases - Users to have a consistent way of interacting/requesting these images - For developers to have a common standard for developing tools for working with IIIF images that will work across all institutions that implement a particular IIIF standard (for example the image viewer for the BNF can also work for the Library of Congress if they both use IIIF). Some institutions that various levels of support IIF include: The British Library, Internet Archive, Library of Congress, Wikidata. There are also many smaller institutions that have IIIF support. An incomplete list can be found here: https://iiif.io/guides/finding_resources/ ## IIIF APIs IIIF consists of a number of APIs which could be integrated with datasets. I think the most obvious candidate for inclusion would be the [Image API](https://iiif.io/api/image/3.0/) ### IIIF Image API The Image API https://iiif.io/api/image/3.0/ is likely the most suitable first candidate for integration with datasets. The Image API offers a consistent protocol for requesting images via a URL: ```{scheme}://{server}{/prefix}/{identifier}/{region}/{size}/{rotation}/{quality}.{format}``` A concrete example of this: ```https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/full/0/default.jpg``` As you can see the scheme offers a number of options that can be specified in the URL, for example, size. Using the example URL we return: ![](https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/full/0/default.jpg) We can change the size to request a size of 250 by 250, this is done by changing the size from `full` to `250,250` i.e. switching the URL to `https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/250,250/0/default.jpg` ![](https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/250,250/0/default.jpg) We can also request the image with max width 250, max height 250 whilst maintaining the aspect ratio using `!w,h`. i.e. change the url to `https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/!250,250/0/default.jpg` ![](https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/!250,250/0/default.jpg) A full overview of the options for size can be found here: https://iiif.io/api/image/3.0/#42-size ## Why would/could this be useful for datasets? There are a few reasons why support for the IIIF Image API could be useful. Broadly the ability to have more control over how an image is returned from a server is useful for many ML workflows: - images can be requested in the right size, this prevents having to download/stream large images when the actual desired size is much smaller - can select a subset of an image: it is possible to select a sub-region of an image, this could be useful for example when you already have a bounding box for a subset of an image and then want to use this subset of an image for another task. For example, https://github.com/Living-with-machines/nnanno uses IIIF to request parts of a newspaper image that have been detected as 'photograph', 'illustration' etc for downstream use. - options for quality, rotation, the format can all be encoded in the URL request. These may become particularly useful when pre-training models on large image datasets where the cost of downloading images with 1600 pixel width when you actually want 240 has a larger impact. ## What could this look like in datasets? I think there are various ways in which support for IIIF could potentially be included in `datasets`. These suggestions aren't fully fleshed out but hopefully, give a sense of possible approaches that match existing `datasets` methods in their approach. ### Use through datasets scripts Loading images via URL is already supported. There are a few possible 'extras' that could be included when using IIIF. One option is to leverage the IIIF protocol in datasets scripts, i.e. the dataset script can expose the IIIF options via the dataset script: ```python ds = load_dataset("iiif_dataset", image_size="250,250", fmt="jpg") ``` This is already possible. The approach to parsing the IIIF URLs would be left to the person creating the dataset script. ### Support through dataset scripts (with some datasets support) This is similar to the above but `datasets` would offer some way of saying this is a iiif URL and then expose the options associated with IIIF images automatically. i.e. if you did something like: ```python features = {"label": ClassLabel(names=['dog','cat']), "url": datasets.IIIFURL()} ``` inside your loading script, you would automatically have exposed `size`, `fmt` etc. options when loading the dataset. ### Other possible integrations Some other possible pseudocode ways that a user could interact with IIIF URLs: The ability to cast to an `IIIFImage` feature type: ``` ds.cast_column('url', IIIFImage, download=False) ``` The ability to specify some options associated with IIIF urls. ``` ds = ds.set_iiif_options(column='url', size="250,250") ``` I think all of these would rely on having an `IIIFImage` feature type - this would be a little bit of a Frankenstein between a `string` and `datasets.Image`. I think most of the actual image behaviour would be exactly the same as `datasets.Image`, the difference would be that the underlying URL could be modified in various ways. ## prerequisite requirements There are a few pre-requisites that I can anticipate. This doesn't cover a full implementation of IIIF support which would have different requirements depending on the approach taken to implementing IIIF. Some of these features would be useful independently of adding IIIF support: ### support for handling failed images loaded via a URL (or a specific IIIFImage feature). Working with images via web requests will inevitably return the odd failed request. If these images are then requests and don't return it would be useful to have a `None` returned instead of an error. For example, when using `push_to_hub` `datasets` will try and include the image but currently fails with bad URLs. ```python from datasets import Dataset import datasets urls = ['https://stacks.stanford.edu/image/iiif/hg676jb4964%2F0380_796-44/full/!250,250/0/default.jpg']*3 urls.append("badurl.com/image.jpg") data = {"url":urls} ds = Dataset.from_dict(data) ds = ds.cast_column('url', datasets.Image()) ds[3]['url'] ``` returns a `FileNotFoundError`, for streaming large datasets of images using their URLs it could be useful to have `None` returned instead. This has implications for the actual training loop i.e. you now need to somehow skip those examples because of this it might not be desirable to support this. ### Caching support Since IIIF requests images via a URL it would be great to have a way of not requesting the images multiple times. This is tracked in https://github.com/huggingface/datasets/issues/3142 and I think this would also be very desirable to have here particularly as one of the primary use cases of IIIF may be to do unsupervised pre-training on large datasets of IIIF URLs. ### Support for Parsing IIIF URLs This gets closer to the actual implementation. Here the requirement would be some way for `datasets` to parse a URL that the users specify is an IIIF URL. An example of a Python library that does this: https://github.com/Princeton-CDH/piffle. I also have a rough version that uses `dataclasses` which I can share. ## Why it might not be worthwhile/suitable for datasets There are some reasons that this might not be worth implementing: - currently, IIIF is mainly used by cultural heritage organizations (museums, archives etc.) The adoption of IIIF in this sector has been growing but it's possible that adoption won't be extended to other industries which may also be a source of image data for training ML models. - It may end up being better to leave this to the user. It would for example be possible for someone to write map functions to change an IIIF URL to the correct size etc. Adding direct support for IIIF in datasets may potentially not be worth the trouble. - The impact of different approaches to doing image scaling can impact the downstream model's performance, see: https://twitter.com/wightmanr/status/1479528581466243073?s=20. Since different IIIF image servers may implement different approaches to resizing images this could have a downstream impact on model performance. think this is something that could be flagged to the end-user in the documentation. This probably also falls into general "gotchas" that probably aren't the `datasets` libraries' role to protect users from. Some of the requirements outlined above would be useful for images anyway. These could be implemented prior to a final decision about whether IIIF support could/should be added to datasets. ## Suggested next steps: I realise this is a long and slightly open-ended issue. I am happy to clarify/answer questions on IIIF and possible integrations. If the prerequisite requirements seem worth exploring/are better explored in their own issues let me know and I can open new issues for those. Hi! Thanks for the detailed analysis of adding IIIF support. I like the idea of "using IIIF through datasets scripts" due to its ease of use. Another approach that I like is yielding image ids and using the `piffle` library (which offers a bit more flexibility) + `map` to download + cache images. We can handle bad URLs in `map` by returning `None`. Plus, we can add a `Dataset Preprocessing` section with the code that explains this approach to the card of such datasets. WDYT? > currently, IIIF is mainly used by cultural heritage organizations (museums, archives etc.) The adoption of IIIF in this sector has been growing but it's possible that adoption won't be extended to other industries which may also be a source of image data for training ML models. This is why (currently) adding a new feature type would be overkill, IMO.
[ -0.10072214901447296, 0.1306869089603424, -0.24854068458080292, 0.07329125702381134, 0.06152263656258583, -0.06135033816099167, 0.31999215483665466, 0.24908927083015442, -0.09724611043930054, 0.21040762960910797, 0.21025589108467102, 0.33438679575920105, -0.04455976560711861, 0.18910731375217438, -0.2587096691131592, -0.12723420560359955, 0.05659858137369156, 0.21812011301517487, 0.24073100090026855, 0.11614276468753815, -0.09895707666873932, 0.09901892393827438, -0.07226014137268066, -0.08274340629577637, -0.2432483583688736, -0.010354554280638695, -0.14321480691432953, -0.02800024300813675, -0.4167383313179016, -0.23257234692573547, 0.17463284730911255, 0.3861021101474762, 0.004526466131210327, 0.11774396896362305, -0.00009455037070438266, -0.07749531418085098, 0.2585510015487671, 0.09390829503536224, -0.09308987855911255, -0.06698271632194519, -0.624484121799469, -0.24155329167842865, -0.1358240246772766, -0.27554237842559814, -0.1586170196533203, -0.03974607214331627, -0.16232462227344513, -0.19817578792572021, 0.10981640219688416, -0.08930151909589767, 0.3439352512359619, 0.10694700479507446, -0.06339704990386963, -0.11478254944086075, 0.09054075181484222, 0.597773551940918, -0.37769490480422974, 0.10499268770217896, 0.32113581895828247, 0.12450410425662994, 0.17698821425437927, 0.4333924651145935, -0.1429884284734726, 0.2585911452770233, 0.28491178154945374, -0.2085508406162262, -0.42888909578323364, -0.3329642117023468, -0.08647435158491135, 0.1100253015756607, 0.6084144115447998, -0.12556147575378418, -0.5418422818183899, -0.2684618830680847, 0.1694205105304718, -0.15430186688899994, -0.02891641855239868, -0.05458298325538635, 0.042600397020578384, 0.21463842689990997, -0.2524304687976837, -0.42620736360549927, -0.3339768946170807, 0.18137702345848083, -0.18172794580459595, 0.11992853879928589, -0.1468174159526825, 0.004350259900093079, -0.03702310100197792, -0.11444248259067535, 0.06979302316904068, 0.09952875971794128, 0.03906750679016113, -0.2662716805934906, -0.09697966277599335, -0.25795668363571167, 0.14462003111839294, 0.07083789259195328, 0.24646791815757751, 0.2692027688026428, -0.22764083743095398, 0.1666584312915802, -0.40781623125076294, 0.22518423199653625, -0.05078665539622307, -0.14035139977931976, 0.025979898869991302, -0.009540320374071598, 0.3891648054122925, 0.15824484825134277, 0.11830462515354156, -0.16522231698036194, 0.03588346391916275, -0.16163592040538788, -0.15998294949531555, 0.0005467627197504044, 0.209257572889328, -0.09550292044878006, -0.1303577423095703, -0.1718083620071411, 0.3022351562976837, -0.015002205967903137, -0.04374106973409653, 0.12090365588665009, 0.22343744337558746, 0.3392915725708008, -0.03488853573799133, 0.1582292765378952, 0.013309469446539879, -0.5059351921081543, -0.08193973451852798, -0.018306277692317963, -0.0707167312502861, 0.3146706223487854, 0.12426428496837616, 0.05274461954832077, 0.013327060267329216, -0.14099322259426117, 0.038212843239307404, 0.21357712149620056, 0.2447361946105957, -0.17736943066120148, 0.3158443868160248, 0.1472911834716797, -0.10313498973846436, -0.09575485438108444, 0.15750668942928314, 0.26474809646606445, -0.09463443607091904, 0.056490764021873474, -0.18325111269950867, -0.057143691927194595, -0.5985426902770996, 0.23676744103431702, -0.06783972680568695, -0.08019789308309555, -0.1407758891582489, 0.28138700127601624, -0.41024038195610046, -0.18453702330589294, 0.2728217542171478, 0.0065616220235824585, -0.277494877576828, -0.1669800877571106, 0.07550550252199173, 0.0842248797416687, -0.231890469789505, 0.08895435929298401, -0.590373158454895, -0.05955188348889351, -0.09671808034181595, 0.051914021372795105, -0.11286240816116333, 0.009921036660671234, -0.22074881196022034, 0.17205093801021576, 0.22398649156093597, -0.2553931176662445, -0.14428234100341797, 0.17159365117549896, 0.001703113317489624, -0.12781290709972382, -0.070915587246418, 0.2995377779006958, 0.240652933716774, 0.000978800468146801, -0.3717045485973358, 0.42821329832077026, -0.1609959453344345, 0.025892360135912895, 0.10125267505645752, -0.19102127850055695, -0.17250730097293854, 0.2169407457113266, 0.027990180999040604, -0.12315960973501205, 0.41834181547164917, -0.27440810203552246, -0.07692766934633255, -0.24270665645599365, 0.2851637303829193, 0.0757434144616127, 0.642474353313446, 0.3086099326610565, -0.050421833992004395, -0.2871694266796112, -0.20683804154396057, 0.24896222352981567, 0.265665739774704, 0.1070253849029541, -0.3392065167427063, -0.051111482083797455, -0.006933979690074921, 0.014491518959403038, -0.1408383846282959, 0.022588878870010376, 0.25187939405441284, 0.05955996364355087, -0.20176281034946442, 0.042530279606580734, -0.10938024520874023, 0.1724453717470169, -0.12560245394706726, 0.0072260657325387, -0.012500319629907608, 0.3585242033004761, -0.10681433230638504, 0.06337720155715942, 0.125137060880661, -0.08206800371408463, -0.09023856371641159, 0.05147221311926842, -0.05673883110284805, 0.26326125860214233, 0.22270360589027405, 0.235126793384552, 0.3511817157268524, 0.34870433807373047, 0.2906210422515869, -0.5349524617195129, 0.2607777714729309, -0.2872924208641052, 0.06687286496162415, 0.1679215133190155, -0.1662987768650055, 0.2862212359905243, -0.08174847066402435, 0.02629333734512329, -0.0973205640912056, 0.12775202095508575, 0.09611198306083679, -0.16974425315856934, -0.21245074272155762, -0.5140186548233032, -0.2674141824245453, -0.023331400007009506, -0.1693650782108307, -0.23447756469249725, -0.002627037465572357, -0.0013541057705879211, 0.3182736337184906, 0.18776953220367432, 0.1581611931324005, 0.39111435413360596, -0.02096094936132431, 0.1728677749633789, 0.29935330152511597, 0.15354353189468384, 0.31311577558517456, 0.3608986437320709, -0.04888707026839256, -0.19724023342132568, 0.12055955827236176, 0.03105781599879265, 0.19564151763916016, 0.11228550225496292, 0.45553940534591675, -0.020767629146575928, 0.22611692547798157, 0.11265623569488525, -0.11781487613916397, -0.4349500238895416, -0.049790672957897186, -0.027550658211112022, -0.11544232070446014, 0.04958675801753998, -0.2712189555168152, -0.47549545764923096, 0.20079855620861053, -0.17245936393737793, -0.24242565035820007, -0.23943372070789337, 0.00675041601061821, -0.053664419800043106, -0.05582205206155777, 0.17486360669136047, -0.39447689056396484, 0.36276882886886597, -0.07049506902694702, 0.07959092408418655, -0.2165093570947647, -0.015442367643117905, -0.09052539616823196, 0.2793058454990387, 0.133718803524971, -0.0026968694292008877, 0.6479566693305969, 0.09062069654464722, 0.2986398935317993, -0.6757420301437378, -0.5439626574516296, 0.30224308371543884, -0.15675091743469238, 0.24337999522686005, 0.265744686126709, 0.024355962872505188, 0.053149983286857605, 0.11986120045185089, 0.34800028800964355, -0.09820089489221573, -0.20305965840816498, -0.17859075963497162, -0.1788518726825714, -0.05036285147070885, -0.1512989103794098, 0.14596432447433472, -0.07614964991807938, -0.3268098831176758, 0.18397411704063416, -0.20721633732318878, 0.11578626185655594, 0.3073950409889221, 0.29250219464302063, -0.013122513890266418, 0.08381041139364243, 0.14873471856117249, -0.07872622460126877, -0.1771550476551056, 0.19828572869300842, -0.28547585010528564, -0.14599013328552246, 0.11802929639816284, 0.04316246509552002, 0.17940327525138855, 0.08959852159023285, -0.3526794910430908, -0.4079551696777344, -0.1833721250295639, 0.3160723149776459, 0.0783461183309555, 0.039818357676267624, 0.13547727465629578, 0.016549522057175636, -0.2959476113319397, -0.2593165934085846, -0.320686012506485, -0.25939705967903137, 0.1713322401046753, -0.014494523406028748, 0.23544153571128845, 0.08368055522441864, 0.3454277515411377, 0.13159306347370148, 0.1136532574892044, -0.2507307827472687, 0.5505383014678955, 0.15449994802474976, 0.41029876470565796, 0.03428145870566368, -0.3191406726837158, 0.10736306756734848, -0.09859246015548706, 0.12938746809959412, 0.19176584482192993, 0.113008514046669, -0.2557297646999359, -0.2959520220756531, -0.037489086389541626, -0.2720828652381897, -0.0067573487758636475, -0.1301308125257492, -0.11984264850616455, 0.5480288863182068, -0.144035205245018, -0.18442635238170624, -0.16572317481040955, 0.004845194518566132, 0.23064692318439484, 0.26685601472854614, 0.38049647212028503, -0.19656451046466827, -0.011990714818239212, 0.04597590118646622, -0.08568523079156876, 0.16818317770957947, 0.1188817024230957, 0.02489377185702324, -0.27837276458740234, 0.09372720867395401, -0.08971905708312988, 0.04889556020498276, 0.507797360420227, -0.6671996712684631, -0.3753209114074707, -0.010493806563317776, 0.06088174879550934, -0.0928206592798233, 0.2109161764383316, 0.03913496807217598, 0.021004853770136833, -0.0945906937122345, 0.35367539525032043, -0.09699024260044098, -0.20833636820316315, 0.23184293508529663, -0.13811254501342773, -0.10726608335971832, -0.40607795119285583, -0.031910836696624756, -0.014609379693865776, -0.45468127727508545, -0.17706993222236633, -0.07883507013320923, -0.27494803071022034, 0.15109409391880035, -0.29446107149124146, -0.1095016747713089, -0.05996984243392944, 0.05027448758482933, 0.09394052624702454, 0.04046693816781044, 0.3547733724117279, 0.05260009691119194, 0.07994436472654343, -0.02355409413576126, 0.27042147517204285, 0.33609500527381897, 0.06431196630001068, -0.19960686564445496, 0.08766341209411621, 0.037472814321517944, 0.3231164813041687, 0.33240681886672974, 0.20114736258983612, -0.12553206086158752, 0.1535138338804245, 0.1932794451713562, -0.39977529644966125, -0.015276892110705376, 0.25387653708457947, -0.2055118978023529, -0.03630649670958519, -0.18396615982055664, 0.2200922667980194, 0.035174284130334854, 0.012923084199428558, 0.044304490089416504, 0.5358371138572693, -0.0839761346578598, -0.030243871733546257, 0.6154332756996155, 0.7889233231544495, -0.00122050940990448, 0.019937662407755852, 0.18244674801826477, -0.32955604791641235, 0.4794183373451233, 0.20766867697238922, -0.006339099258184433, -0.08148489892482758, -0.29630061984062195, -0.12529730796813965, -0.0612214058637619, 0.24823766946792603, -0.03701087087392807, -0.09763842076063156, 0.053982771933078766, 0.3691859841346741, -0.18688927590847015, 0.07123350352048874, 0.3150949776172638, -0.1455691009759903, -0.43123331665992737, 0.06466574966907501, 0.3727327883243561, -0.11195671558380127, -0.05799023434519768, -0.15385666489601135, -0.24703069031238556, -0.01532261073589325, 0.16336163878440857, -0.3624204397201538, -0.12660259008407593, -0.15136615931987762, 0.11429261416196823, -0.18024975061416626, 0.0199245885014534, 0.44414204359054565, -0.05598174408078194, 0.11487427353858948, -0.06030714139342308, -0.263033002614975, 0.17341087758541107, 0.2762904763221741, 0.017004795372486115, -0.10917659103870392, -0.2774849534034729, 0.5050421357154846, -0.08493313193321228, -0.03922533243894577, 0.010320201516151428, 0.2807653248310089, -0.3319332003593445, 0.03471812605857849, -0.015910029411315918, 0.09688779711723328, -0.05560131371021271, -0.20417240262031555, 0.07830440998077393, 0.01744178682565689, -0.13210250437259674, 0.252760648727417, 0.09668232500553131, 0.2412775307893753, 0.18837998807430267, 0.03385604918003082, -0.03601768985390663, -0.14862845838069916, 0.11120972782373428, -0.2577953338623047, -0.14934223890304565, -0.04751419275999069, 0.2812892198562622, -0.21107333898544312, -0.25109177827835083, -0.005367901176214218, -0.1621580719947815, -0.1753477156162262, -0.10984070599079132, 0.04527902603149414, 0.005261465907096863, -0.004795702639967203, -0.09287665784358978, 0.17480458319187164, -0.2342972755432129, 0.08312776684761047, -0.21101155877113342, 0.04628802835941315, 0.09307103604078293, -0.38117802143096924, 0.25750091671943665, -0.3628399968147278, -0.11331826448440552, -0.03273122385144234, -0.18407833576202393, -0.4783337414264679, -0.001726637128740549, 0.12344222515821457, -0.09912367165088654, 0.0474623441696167, -0.0021592043340206146, -0.13340207934379578, -0.16235044598579407, 0.1931929886341095, -0.057326480746269226, -0.17632879316806793, -0.27363547682762146, -0.031514257192611694, 0.09467743337154388, 0.18172085285186768, -0.0868041142821312, 0.10561022162437439, -0.2619592547416687, -0.23810070753097534, -0.10526763647794724, -0.015547562390565872, 0.01431277021765709, -0.2542917728424072, 0.21148264408111572, -0.21633683145046234, -0.20323941111564636, 0.18569587171077728, 0.026081081479787827, 0.21010223031044006, 0.48184943199157715, 0.21479478478431702, 0.2316076010465622, 0.09359253197908401, 0.002298012375831604, -0.02383425645530224, 0.27539798617362976, 0.10005909949541092, -0.20172527432441711, 0.4330644905567169, 0.12889353930950165, -0.00821802020072937, 0.38636285066604614, 0.48226383328437805, -0.1593645215034485, -0.293765127658844, 0.09159986674785614, 0.13484805822372437, 0.42580634355545044, -0.17992693185806274, -0.0070408848114311695, -0.21886388957500458, -0.046461958438158035, 0.07748036086559296, 0.09053872525691986, 0.354057252407074, 0.298766553401947, -0.2116767317056656, 0.12573003768920898, 0.27129414677619934, -0.0961669459939003, -0.002670043148100376, -0.24572259187698364, 0.07172916829586029, 0.017766118049621582, 0.18050561845302582, 0.1504196971654892, 0.3405052125453949, 0.2941802740097046, 0.0021964088082313538, 0.34069350361824036, -0.16358870267868042, 0.39254826307296753, 0.26578444242477417, -0.2776173949241638, 0.3603720963001251, -0.07180023193359375, 0.14790078997612, 0.08095676451921463, 0.037055760622024536, -0.10673219710588455, 0.051627982407808304, -0.1560695469379425, -0.2779991626739502, 0.2578994035720825, 0.10891792178153992, 0.3407289981842041, -0.3419440686702728, -0.12288399040699005, -0.2276546061038971, 0.003926604986190796, -0.10610122978687286, -0.10895048081874847, 0.27553385496139526, 0.19079691171646118, -0.04831486940383911, -0.42835065722465515, 0.13775068521499634, 0.16387692093849182, 0.3193681836128235, -0.2687559723854065, 0.06462641805410385, 0.18356885015964508, -0.23458969593048096, 0.09698495268821716, 0.43981030583381653, 0.34370744228363037, 0.014952784404158592, 0.050584133714437485, 0.06435178965330124, -0.36518317461013794, -0.27694493532180786, -0.18015524744987488, 0.01521249022334814, -0.19313004612922668, 0.20470790565013885, 0.18030482530593872, 0.31726494431495667, -0.17825664579868317, -0.22250552475452423, -0.21860988438129425, 0.13358932733535767, -0.30854660272598267, 0.0008432567119598389, 0.03702634200453758, 0.10484635084867477, -0.025657828897237778, 0.13514533638954163, -0.4004037082195282, -0.08433938026428223, 0.30838340520858765, -0.2511958181858063, -0.06132400035858154, -0.04346287250518799, 0.15151286125183105, -0.1675426959991455, 0.11780160665512085, 0.32786431908607483, 0.07953041046857834, -0.12194559723138809, -0.40655988454818726, -0.4380929470062256, 0.0010644420981407166, 0.041669365018606186, -0.15274645388126373, 0.2961136996746063, 0.043940119445323944, 0.20966732501983643, 0.11936388909816742, 0.15397290885448456, -0.11427909135818481, 0.19782036542892456, 0.00992543250322342, -0.29793575406074524, 0.055579349398612976, 0.07089925557374954, 0.014592356979846954, -0.016610808670520782, 0.012667320668697357, 0.11448989063501358, -0.18050116300582886, 0.07035405188798904, -0.3040850758552551, -0.03153237700462341, 0.13742409646511078, 0.26025137305259705, 0.692488431930542, 0.3006296753883362, 0.17903690040111542, -0.3303539752960205, -0.19661444425582886, -0.07215909659862518, 0.05892667919397354, -0.045148469507694244, 0.27425578236579895, -0.08162236213684082, 0.45875200629234314, -0.06146185100078583, -0.19964012503623962, -0.22928829491138458, 0.09961124509572983, 0.013724379241466522, 0.10777750611305237, -0.25552621483802795, 0.18324625492095947, -0.1438804268836975, 0.01682659238576889, -0.11622613668441772, 0.08442464470863342, 0.1432935893535614, 0.029404649510979652, -0.2196560502052307, -0.39573144912719727, 0.28248822689056396, -0.17462515830993652, -0.1907317191362381, 0.034805577248334885, 0.06758756935596466, -0.1842721402645111, 0.11234927922487259, -0.1863311529159546, -0.027280688285827637, 0.2959681451320648, 0.2031012773513794, -0.1187223345041275, 0.4634464681148529, 0.27901962399482727, -0.03584795817732811, -0.05346629396080971, 0.3698853552341461, -0.12597805261611938, -0.1941867172718048, -0.0619816854596138, 0.1255088746547699 ]
https://github.com/huggingface/datasets/issues/4037
Error while building documentation
After some investigation, maybe the bug is in `doc-builder`. I've opened an issue there: - huggingface/doc-builder#160
## Describe the bug Documentation building is failing: - https://github.com/huggingface/datasets/runs/5716300989?check_suite_focus=true ``` ValueError: There was an error when converting ../datasets/docs/source/package_reference/main_classes.mdx to the MDX format. Unable to find datasets.filesystems.S3FileSystem in datasets. Make sure the path to that object is correct. ```
16
Error while building documentation ## Describe the bug Documentation building is failing: - https://github.com/huggingface/datasets/runs/5716300989?check_suite_focus=true ``` ValueError: There was an error when converting ../datasets/docs/source/package_reference/main_classes.mdx to the MDX format. Unable to find datasets.filesystems.S3FileSystem in datasets. Make sure the path to that object is correct. ``` After some investigation, maybe the bug is in `doc-builder`. I've opened an issue there: - huggingface/doc-builder#160
[ -0.20042207837104797, -0.2878025472164154, 0.04475155845284462, 0.39312654733657837, 0.2458142638206482, 0.21453243494033813, 0.09479432553052902, 0.32911619544029236, -0.29407787322998047, 0.11394289135932922, -0.02945832349359989, 0.3712484538555145, 0.01958369091153145, 0.14525192975997925, 0.22207011282444, 0.08119282871484756, 0.18436121940612793, 0.25580352544784546, -0.14851020276546478, 0.029480047523975372, -0.10584121197462082, 0.15008506178855896, -0.04055529832839966, -0.03446940332651138, -0.33969491720199585, 0.018330208957195282, 0.047177188098430634, 0.20892751216888428, -0.41849926114082336, -0.32521337270736694, 0.23558108508586884, 0.08332453668117523, -0.032630469650030136, 0.5401056408882141, -0.0001115491904783994, -0.11828160285949707, 0.40985822677612305, -0.04358943551778793, -0.18685710430145264, -0.11250434815883636, -0.30488836765289307, -0.13106557726860046, -0.11468666046857834, 0.053178571164608, -0.08527718484401703, -0.1066218763589859, -0.17167702317237854, -0.06478086113929749, 0.21385973691940308, 0.35827645659446716, 0.2762291729450226, 0.3647083342075348, 0.5307810306549072, -0.13250957429409027, 0.2867991328239441, 0.373924195766449, -0.3696618676185608, 0.47638270258903503, 0.12301450967788696, 0.2183743119239807, 0.20969513058662415, 0.4540884494781494, -0.05583197996020317, -0.26803016662597656, 0.5049782395362854, -0.06908130645751953, 0.020489510148763657, -0.12343820929527283, 0.08173352479934692, 0.2602134048938751, 0.757361888885498, -0.290202796459198, -0.4991386830806732, -0.18787717819213867, 0.015224011614918709, -0.0448559932410717, 0.23600861430168152, 0.14546750485897064, -0.09778033196926117, -0.10672016441822052, -0.23369097709655762, -0.3371664881706238, -0.18227916955947876, 0.08253928273916245, 0.3406847417354584, -0.04153336584568024, -0.39302191138267517, -0.1118546649813652, 0.3544231653213501, -0.17264410853385925, 0.11346054077148438, 0.03380095213651657, -0.18699978291988373, 0.10843934118747711, -0.046859126538038254, -0.1670074611902237, 0.0073881447315216064, 0.00518808513879776, 0.3644520342350006, -0.10215750336647034, -0.34754252433776855, -0.1390582025051117, 0.07092670351266861, 0.17684584856033325, 0.03940200433135033, 0.04279690235853195, 0.12756498157978058, 0.028945554047822952, 0.07633194327354431, 0.4493100643157959, -0.021334119141101837, -0.18305861949920654, -0.0837598368525505, -0.29075387120246887, -0.22518077492713928, -0.2875411808490753, 0.30812758207321167, -0.24966345727443695, 0.016522349789738655, 0.1235845535993576, -0.017748365178704262, 0.24975140392780304, 0.035232026129961014, 0.16988301277160645, 0.20420801639556885, -0.045841604471206665, 0.03792104870080948, 0.20496344566345215, -0.12966035306453705, 0.24273645877838135, -0.15677809715270996, 0.11276711523532867, -0.19709613919258118, 0.12991121411323547, -0.09090603142976761, -0.22348538041114807, 0.3366815745830536, 0.17720380425453186, 0.12724675238132477, -0.3310641050338745, -0.122185617685318, 0.1590133160352707, 0.09221439063549042, 0.2736431658267975, -0.22206375002861023, 0.10281886905431747, 0.0713692158460617, -0.013309977948665619, -0.016263261437416077, -0.303556352853775, -0.19498586654663086, -0.07574169337749481, -0.5105534195899963, 0.17729851603507996, 0.23706413805484772, 0.09450671076774597, -0.1811794638633728, -0.06691581010818481, 0.16721287369728088, -0.06842699646949768, 0.2439785599708557, 0.17486409842967987, -0.15711602568626404, 0.012890205718576908, 0.24221324920654297, 0.41139960289001465, 0.18168699741363525, -0.0016457587480545044, 0.14063028991222382, -0.00006738491356372833, -0.1904686987400055, 0.12704899907112122, -0.01645873486995697, 0.11829736828804016, -0.2709573209285736, 0.08058091998100281, -0.06247697025537491, -0.6528254747390747, -0.2802906632423401, 0.22785475850105286, -0.03522500395774841, -0.14806857705116272, 0.11793027818202972, -0.10276917368173599, -0.04051744565367699, -0.23993974924087524, -0.16952237486839294, -0.26297688484191895, -0.1703532338142395, 0.09903422743082047, -0.09793123602867126, -0.07395218312740326, -0.3545178174972534, -0.2658637762069702, -0.014696162194013596, 0.12172454595565796, 0.03140117600560188, 0.2628099322319031, 0.09853844344615936, -0.23490187525749207, -0.06291043758392334, 0.5648015737533569, 0.5090699791908264, -0.03254358470439911, 0.05733336880803108, -0.2695883512496948, -0.4897613525390625, 0.07215588539838791, 0.062091484665870667, 0.08317632973194122, 0.023449666798114777, -0.1686462014913559, -0.19960489869117737, -0.041266098618507385, -0.11768375337123871, -0.36427775025367737, 0.15781934559345245, 0.057290975004434586, 0.08084516227245331, 0.200931116938591, -0.11223052442073822, -0.1345682293176651, -0.2183915376663208, 0.3189133405685425, -0.2963314950466156, 0.05119342356920242, -0.017836609855294228, -0.09458911418914795, 0.18553400039672852, 0.14950445294380188, 0.13017502427101135, -0.03426606208086014, -0.17870187759399414, 0.37999850511550903, 0.19755126535892487, 0.3685556650161743, 0.11347448825836182, 0.23490500450134277, 0.07342374324798584, -0.3832271695137024, -0.009387249127030373, -0.15626877546310425, 0.09919263422489166, 0.09143198281526566, -0.06897274404764175, -0.14592550694942474, -0.18437810242176056, 0.10097482055425644, 0.15735553205013275, 0.16796615719795227, 0.10813719034194946, 0.04176389053463936, 0.025349000468850136, -0.34012749791145325, 0.06847937405109406, -0.06824260950088501, 0.27663469314575195, 0.03570440411567688, -0.2230936586856842, 0.16202041506767273, 0.3507061004638672, 0.06854882836341858, -0.0331050381064415, 0.23562297224998474, -0.2531929612159729, -0.037597689777612686, 0.06584260612726212, 0.11499403417110443, 0.18371354043483734, 0.014751171693205833, 0.09287996590137482, 0.34047749638557434, 0.01566310040652752, -0.07262928038835526, 0.31246501207351685, -0.047601088881492615, 0.11259817332029343, 0.24225720763206482, -0.18691086769104004, 0.12658758461475372, -0.3320717513561249, 0.3189845085144043, -0.2886419892311096, 0.04001700133085251, -0.3028359115123749, 0.09251860529184341, -0.0749453529715538, -0.27377206087112427, -0.49215781688690186, -0.13685931265354156, -0.2565297782421112, -0.07091110944747925, -0.06376469135284424, 0.24634920060634613, -0.04788541793823242, 0.1731964498758316, 0.08627590537071228, -0.012944862246513367, 0.025277135893702507, 0.3764193654060364, -0.18950459361076355, 0.07509014755487442, -0.10357563942670822, -0.01607082411646843, 0.2970432937145233, 0.121090367436409, 0.4249948561191559, -0.38280388712882996, 0.12518545985221863, -0.7852302193641663, -0.46459853649139404, 0.30298784375190735, -0.18821944296360016, 0.34566324949264526, 0.43434643745422363, -0.052033767104148865, 0.17525456845760345, -0.2119448482990265, 0.18804925680160522, -0.24517622590065002, -0.2971712648868561, -0.08338075131177902, -0.11979790776968002, -0.25149300694465637, -0.061862170696258545, -0.26065298914909363, 0.42146676778793335, -0.3448410630226135, 0.26994121074676514, -0.2784073054790497, -0.1317635029554367, 0.11453418433666229, 0.03191735967993736, 0.3787289559841156, -0.49010106921195984, 0.2936617434024811, -0.013533070683479309, -0.3037678897380829, -0.029375139623880386, -0.23799873888492584, -0.4084283113479614, 0.09833352267742157, 0.16270293295383453, 0.23030827939510345, -0.1824454963207245, -0.35346364974975586, 0.07469184696674347, -0.11580634117126465, -0.24926188588142395, -0.07803172618150711, 0.22488199174404144, 0.2080938071012497, -0.03611258417367935, -0.014496161602437496, -0.3494560420513153, -0.08438748866319656, -0.14184856414794922, -0.32339736819267273, 0.3346860706806183, -0.235788494348526, 0.31276607513427734, -0.09062528610229492, 0.25595706701278687, 0.5801585912704468, -0.07050077617168427, 0.24168944358825684, -0.06494833528995514, 0.6604223847389221, -0.20468345284461975, -0.4507749080657959, 0.27859771251678467, 0.08923867344856262, 0.09156111627817154, 0.32174527645111084, 0.19220462441444397, 0.04754399508237839, -0.008899468928575516, -0.22956369817256927, -0.1944267451763153, -0.3040006756782532, -0.20701952278614044, -0.19558145105838776, 0.2523534595966339, -0.013216860592365265, 0.09575843065977097, 0.22518809139728546, -0.04703373461961746, 0.28670957684516907, 0.40542471408843994, 0.2941763699054718, -0.024205787107348442, -0.10102622210979462, -0.04951205849647522, -0.432537317276001, 0.10263052582740784, 0.14545993506908417, 0.14544838666915894, -0.18807029724121094, 0.11902347952127457, -0.14542445540428162, -0.018832029774785042, 0.5787400007247925, -0.3230792284011841, -0.03103012591600418, 0.09968653321266174, -0.0023224428296089172, -0.3188914954662323, 0.14019456505775452, -0.09335998445749283, 0.20853787660598755, 0.12648409605026245, 0.7419596910476685, -0.25674208998680115, -0.2182045727968216, 0.2671365737915039, -0.0285351499915123, 0.15319371223449707, -0.19296276569366455, -0.17844033241271973, -0.15972837805747986, -0.14071795344352722, -0.008243411779403687, 0.03740875422954559, -0.032250452786684036, 0.1453331708908081, -0.233659565448761, 0.04586489498615265, 0.07935700565576553, -0.1377439945936203, 0.01145213469862938, 0.3069877326488495, -0.0616481751203537, 0.39576101303100586, 0.26849043369293213, 0.03350882977247238, 0.8145874738693237, 0.3126041293144226, -0.1489066481590271, -0.31936362385749817, -0.10605526715517044, -0.3691781461238861, 0.36733487248420715, 0.1917387992143631, -0.18232911825180054, -0.02127019315958023, -0.04669570177793503, 0.07401034235954285, -0.329250693321228, -0.19395749270915985, 0.6020328998565674, 0.2712855041027069, -0.1020481213927269, -0.06960473954677582, 0.31150591373443604, 0.044385600835084915, 0.11084556579589844, 0.21445102989673615, 0.4928320646286011, -0.29346296191215515, -0.2256138026714325, 0.3650738000869751, 0.833799421787262, -0.009897254407405853, 0.1473851054906845, 0.19142812490463257, -0.33708655834198, 0.5898526906967163, 0.05974242091178894, -0.12828780710697174, -0.44573429226875305, -0.22970080375671387, -0.0604875311255455, -0.2081224024295807, 0.20985877513885498, -0.16250132024288177, -0.1981578916311264, -0.047984398901462555, -0.27707576751708984, 0.3188912272453308, -0.06142406165599823, 0.08094660937786102, -0.2413153350353241, -0.24555903673171997, -0.32522863149642944, 0.15070755779743195, 0.08953514695167542, 0.06809699535369873, -0.21987593173980713, -0.059391774237155914, -0.03742366284132004, -0.2146199494600296, -0.5630910992622375, -0.0004995744675397873, 0.0873822495341301, -0.10356011986732483, 0.30568060278892517, -0.06779840588569641, 0.38995423913002014, 0.23288683593273163, 0.5055908560752869, 0.32760417461395264, -0.4843142032623291, -0.03135599568486214, -0.00030823051929473877, -0.2322472482919693, -0.013160006143152714, -0.07440977543592453, 0.3037026822566986, -0.15306884050369263, 0.13033851981163025, -0.29281267523765564, -0.0011375481262803078, 0.12220287322998047, 0.06661279499530792, -0.3419331908226013, -0.3255319595336914, -0.32782334089279175, -0.2153221219778061, -0.19984763860702515, 0.003866061568260193, -0.36815398931503296, 0.17300373315811157, -0.012775987386703491, -0.20823916792869568, -0.10153601318597794, 0.12434118986129761, -0.17710620164871216, 0.08403545618057251, 0.21368034183979034, -0.189346045255661, 0.08179812878370285, 0.12253007292747498, 0.20519523322582245, -0.29999101161956787, -0.2769312858581543, 0.16646942496299744, -0.01019598264247179, -0.3337511122226715, 0.2981894910335541, 0.1496230661869049, -0.06972316652536392, 0.020116129890084267, 0.18812893331050873, 0.1115216389298439, -0.31325334310531616, 0.008241582661867142, -0.21818721294403076, -0.13348731398582458, 0.21345852315425873, -0.25418612360954285, 0.2089470475912094, -0.059671491384506226, -0.04623502120375633, 0.11082373559474945, 0.00038353540003299713, -0.3255545496940613, 0.05119605362415314, -0.3920890688896179, 0.0038013625890016556, 0.2844283878803253, 0.018205072730779648, 0.0578690804541111, -0.2129364013671875, 0.03773081302642822, 0.14911460876464844, -0.21617737412452698, -0.17196935415267944, -0.3939847946166992, 0.046344831585884094, 0.043799981474876404, 0.06134771555662155, 0.5324678421020508, 0.018882915377616882, -0.38581499457359314, -0.24629119038581848, 0.08304335176944733, 0.053276821970939636, 0.02781514823436737, 0.04216840863227844, -0.1729881465435028, 0.061662495136260986, -0.06255387514829636, 0.21571527421474457, 0.003944411873817444, 0.08166126161813736, -0.14863508939743042, -0.06688240170478821, -0.26785415410995483, -0.08034945279359818, 0.11872348934412003, 0.226559579372406, 0.015413366258144379, 0.08586926013231277, 0.32165688276290894, -0.15979795157909393, 0.0991847813129425, 0.176857590675354, 0.47024643421173096, 0.2458803951740265, -0.08453679084777832, 0.15343409776687622, 0.17344018816947937, 0.18467220664024353, -0.12078098207712173, -0.3277096748352051, -0.009100988507270813, -0.27293798327445984, 0.02441997453570366, 0.0340077206492424, 0.2586382329463959, -0.15209975838661194, -0.13242574036121368, 0.09319286793470383, 0.051393769681453705, 0.09104635566473007, 0.17982842028141022, 0.20551379024982452, -0.011253390461206436, 0.157981738448143, 0.28373828530311584, 0.10976837575435638, 0.16360005736351013, 0.11787250638008118, 0.24082931876182556, 0.13098739087581635, -0.2269364297389984, 0.2635357975959778, 0.1804540753364563, -0.015383770689368248, 0.06237774342298508, -0.08505573868751526, -0.08210483193397522, -0.022909536957740784, -0.41361886262893677, 0.3434585630893707, 0.025969387963414192, -0.0919632613658905, -0.12553885579109192, 0.22735534608364105, -0.20426571369171143, -0.13254640996456146, 0.17509713768959045, -0.048848360776901245, 0.3165329098701477, -0.061607588082551956, -0.015105657279491425, -0.06286676228046417, 0.06546910852193832, -0.027133680880069733, 0.054992303252220154, -0.2486800104379654, 0.12825781106948853, 0.04142080619931221, 0.061166588217020035, -0.24485565721988678, 0.3249763250350952, -0.15972943603992462, 0.12920433282852173, -0.24629992246627808, 0.5710424184799194, 0.5922026038169861, 0.32776713371276855, 0.1280525177717209, -0.12941135466098785, -0.054349709302186966, 0.03363887965679169, 0.12062840163707733, 0.35537976026535034, 0.06856315582990646, 0.03697410598397255, 0.15696384012699127, 0.12290506064891815, -0.20690087974071503, -0.12877430021762848, -0.14991922676563263, 0.2095555067062378, 0.017304489389061928, -0.20668914914131165, -0.34382739663124084, 0.04674190282821655, -0.2826087176799774, 0.2498301863670349, -0.29109814763069153, 0.12943698465824127, 0.6350376009941101, 0.04923358932137489, 0.040957484394311905, -0.00420768978074193, 0.1154840737581253, 0.26719269156455994, 0.6310743093490601, 0.2502705454826355, 0.13656531274318695, -0.08342817425727844, -0.33740001916885376, -0.4110143482685089, 0.1789097934961319, 0.0518970750272274, -0.1445987969636917, 0.12299684435129166, 0.02974615804851055, 0.0153975710272789, -0.019343916326761246, 0.44197380542755127, 0.16160321235656738, -0.007565953768789768, -0.06197900325059891, -0.059684380888938904, -0.22122620046138763, -0.2153855413198471, -0.2572723925113678, 0.05846893787384033, -0.226156085729599, 0.12023209035396576, 0.017336666584014893, -0.04176040366292, 0.038599446415901184, 0.6072179079055786, -0.11534672975540161, -0.06630795449018478, 0.09323958307504654, -0.013771215453743935, 0.3028087615966797, -0.1603716015815735, -0.46697118878364563, -0.12381736934185028, -0.2628291845321655, -0.2232363373041153, 0.4383544921875, -0.028848063200712204, 0.20153184235095978, -0.3036154806613922, -0.10974094271659851, -0.49807485938072205, 0.27882927656173706, 0.3770620822906494, 0.06422851234674454, -0.36118635535240173, 0.36391904950141907, -0.10417165607213974, -0.11232274025678635, 0.5057881474494934, 0.23014920949935913, -0.2218109667301178, 0.13570961356163025, -0.16853481531143188, -0.5648502111434937, 0.5929758548736572, -0.23860222101211548, -0.19828225672245026, 0.19496700167655945, 0.19055214524269104, 0.19959020614624023, -0.49189403653144836, -0.8096041083335876, 0.18093353509902954, 0.20508112013339996, 0.12560123205184937, -0.30629462003707886, 0.10689109563827515, -0.07959862053394318, 0.17673048377037048, 0.047569144517183304, 0.6203891038894653, 0.09063045680522919, 0.04284760355949402, 0.36188459396362305, -0.209412083029747 ]
https://github.com/huggingface/datasets/issues/4031
Cannot load the dataset conll2012_ontonotesv5
Hi @cathyxl, thanks for reporting. Indeed, we have recently updated the loading script of that dataset (and fixed that bug as well): - #4002 That fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by: - installing `datasets` from our GitHub repo: ```bash pip install git+https://github.com/huggingface/datasets#egg=datasets ``` - forcing the data files to be redownloaded ```python ds = load_dataset('conll2012_ontonotesv5', 'english_v4', split="test", download_mode="force_redownload") ``` Feel free to re-open this issue if the problem persists.
## Describe the bug Cannot load the dataset conll2012_ontonotesv5 ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset dataset = load_dataset('conll2012_ontonotesv5', 'english_v4', split="test") print(dataset) ``` ## Expected results The datasets should be downloaded successfully ## Actual results raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/zmycy7t9h9-1.zip'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-5.4.0-88-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
82
Cannot load the dataset conll2012_ontonotesv5 ## Describe the bug Cannot load the dataset conll2012_ontonotesv5 ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset dataset = load_dataset('conll2012_ontonotesv5', 'english_v4', split="test") print(dataset) ``` ## Expected results The datasets should be downloaded successfully ## Actual results raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://md-datasets-cache-zipfiles-prod.s3.eu-west-1.amazonaws.com/zmycy7t9h9-1.zip'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Linux-5.4.0-88-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0 Hi @cathyxl, thanks for reporting. Indeed, we have recently updated the loading script of that dataset (and fixed that bug as well): - #4002 That fix will be available in our next `datasets` library release. In the meantime, you can incorporate that fix by: - installing `datasets` from our GitHub repo: ```bash pip install git+https://github.com/huggingface/datasets#egg=datasets ``` - forcing the data files to be redownloaded ```python ds = load_dataset('conll2012_ontonotesv5', 'english_v4', split="test", download_mode="force_redownload") ``` Feel free to re-open this issue if the problem persists.
[ -0.3611917197704315, 0.20477259159088135, -0.1006568968296051, 0.37934380769729614, 0.3481523394584656, 0.17649978399276733, 0.19722983241081238, 0.27906566858291626, 0.06898188591003418, 0.09481753408908844, -0.07863651216030121, 0.15202082693576813, 0.08770376443862915, 0.04576725512742996, -0.1818692684173584, 0.2106245756149292, -0.1176595464348793, -0.07298927009105682, -0.24362307786941528, -0.007385466247797012, -0.37404489517211914, 0.21790364384651184, -0.24435873329639435, -0.22327928245067596, -0.26517149806022644, 0.048483818769454956, 0.15624098479747772, 0.23227056860923767, -0.28656575083732605, -0.2429746389389038, 0.3730473816394806, 0.1362808346748352, 0.012875223532319069, 0.33623963594436646, -0.00010409999231342226, 0.06024782359600067, 0.40594130754470825, -0.10701361298561096, -0.3000822067260742, -0.20961551368236542, -0.118218794465065, -0.17702998220920563, -0.010090306401252747, -0.23255687952041626, 0.01748182252049446, 0.029815904796123505, -0.044508665800094604, -0.2733548581600189, 0.1355094611644745, 0.29020246863365173, 0.3446154296398163, 0.18223249912261963, 0.17918498814105988, -0.17487771809101105, 0.3008759021759033, -0.18435128033161163, -0.05925202742218971, 0.3463982343673706, 0.2268308699131012, -0.020207811146974564, -0.03414496034383774, 0.23242738842964172, -0.24273349344730377, 0.004189103841781616, 0.14091138541698456, -0.13085703551769257, 0.06218523159623146, -0.08873008191585541, 0.329685777425766, 0.19921645522117615, 0.6861979961395264, -0.2092246413230896, -0.2816700041294098, -0.0036652013659477234, -0.04239940270781517, -0.008103284984827042, 0.42935723066329956, 0.11324096471071243, -0.0903652161359787, 0.1330408900976181, -0.3559176027774811, 0.021723715588450432, -0.0174444317817688, 0.35705697536468506, -0.011081762611865997, 0.0872778445482254, -0.17478200793266296, -0.021589122712612152, 0.04437273368239403, -0.10674738883972168, 0.1260930895805359, 0.07177736610174179, -0.1376911848783493, 0.1170744076371193, -0.2989366054534912, 0.14510729908943176, 0.08428437262773514, -0.07081782072782516, 0.3885028064250946, 0.18812625110149384, 0.030125636607408524, 0.13259637355804443, -0.19015543162822723, 0.12621508538722992, 0.22699305415153503, 0.16324688494205475, 0.19078025221824646, 0.1652355194091797, 0.19784307479858398, 0.23371486365795135, -0.17722974717617035, -0.01013018935918808, -0.14356514811515808, -0.2392304539680481, 0.19009557366371155, 0.014067783951759338, 0.20548903942108154, -0.6585192680358887, -0.34966957569122314, 0.2830466628074646, -0.08756786584854126, -0.04128240793943405, 0.06946384906768799, 0.5508673191070557, -0.049288924783468246, 0.09597758948802948, 0.13563376665115356, 0.08684578537940979, -0.13874489068984985, 0.009635315276682377, -0.18907108902931213, -0.02972620725631714, -0.18710389733314514, -0.08878244459629059, 0.4144251048564911, -0.35445696115493774, 0.42763829231262207, -0.051652662456035614, 0.23870205879211426, -0.17988444864749908, 0.04866781830787659, 0.0045480383560061455, -0.03512146323919296, 0.21858865022659302, -0.04090505838394165, 0.1485406905412674, 0.2530364394187927, 0.023156560957431793, -0.07492969930171967, 0.18488295376300812, -0.13672363758087158, -0.1601865291595459, -0.08800918608903885, 0.31892499327659607, -0.34138745069503784, -0.14512768387794495, -0.1846311092376709, -0.183628648519516, 0.1766081154346466, -0.13131220638751984, 0.006754398345947266, -0.053322724997997284, -0.19254404306411743, -0.22791166603565216, 0.14793473482131958, 0.3391377925872803, -0.24964624643325806, -0.0772874504327774, 0.05286654084920883, -0.14426124095916748, 0.13632318377494812, 0.0714038759469986, -0.2735225260257721, -0.08581220358610153, -0.1405457705259323, -0.01467643678188324, 0.2802829146385193, -0.34625178575515747, -0.8103403449058533, 0.157623291015625, -0.0415734201669693, 0.13860146701335907, -0.019524484872817993, 0.001062665251083672, 0.16789816319942474, -0.05147710070014, -0.009912796318531036, 0.3322470784187317, 0.32433849573135376, 0.03551436960697174, -0.4386325478553772, -0.22783364355564117, 0.257709264755249, 0.29359734058380127, 0.045099884271621704, -0.06942912191152573, 0.29166102409362793, 0.17521753907203674, 0.15403416752815247, -0.12215040624141693, -0.04226046800613403, 0.27841365337371826, 0.21791012585163116, 0.16545537114143372, 0.17201386392116547, -0.43506601452827454, -0.4419751763343811, 0.2471202313899994, -0.1632489114999771, 0.034368500113487244, -0.05461554229259491, 0.02109163999557495, -0.443586528301239, -0.0800248384475708, -0.3042539954185486, -0.13397692143917084, 0.21446587145328522, 0.1564895659685135, 0.13239477574825287, -0.1267828643321991, 0.00180121511220932, 0.30336928367614746, -0.37235376238822937, -0.039241451770067215, -0.19420698285102844, 0.2962588965892792, -0.09520909190177917, -0.11465603858232498, 0.1439627856016159, 0.12804725766181946, 0.2285619080066681, 0.06477991491556168, -0.2477867305278778, 0.3860858678817749, 0.007904978469014168, -0.11508302390575409, -0.00567115843296051, 0.1752704530954361, -0.04017048329114914, -0.39058348536491394, 0.1920327991247177, 0.12747853994369507, 0.20858854055404663, 0.055856652557849884, -0.3419005870819092, 0.2844732999801636, -0.08544452488422394, 0.08192385733127594, -0.07589712738990784, 0.05363360047340393, 0.46616098284721375, -0.14159157872200012, -0.09344817698001862, -0.4118020534515381, 0.343280166387558, 0.21294717490673065, 0.2546553611755371, -0.02612837590277195, 0.04321970045566559, -0.0819154605269432, 0.21711349487304688, -0.0016718003898859024, 0.0911913514137268, 0.08407508581876755, -0.14517030119895935, 0.02453579753637314, -0.07580365240573883, 0.17726629972457886, 0.31407630443573, 0.2672274112701416, 0.05877736955881119, 0.07143743336200714, -0.13653884828090668, -0.12209168076515198, 0.17193228006362915, 0.04089438170194626, 0.13403040170669556, 0.32428354024887085, 0.24633871018886566, 0.03456917777657509, -0.4282405376434326, 0.1300559788942337, 0.0864010825753212, 0.18925003707408905, -0.3645295798778534, -0.0265211071819067, -0.28392013907432556, -0.003307424485683441, -0.10726667195558548, -0.3383937180042267, -0.315870463848114, -0.38086968660354614, 0.09608305245637894, 0.1410529613494873, 0.020947150886058807, 0.16049201786518097, -0.27899107336997986, 0.019582167267799377, 0.00022290274500846863, -0.15701501071453094, 0.052481457591056824, -0.2702101469039917, -0.1018010750412941, 0.15263855457305908, 0.35297009348869324, 0.3371097445487976, 0.46139904856681824, -0.16802489757537842, -0.12993475794792175, -0.4456215798854828, -0.39368534088134766, 0.05828019976615906, -0.12692829966545105, 0.4029538631439209, 0.17392930388450623, 0.14146864414215088, 0.005478549748659134, -0.20841634273529053, 0.2339826077222824, 0.012385083362460136, -0.2834226191043854, 0.215492844581604, -0.11719764024019241, -0.17241105437278748, -0.09965267777442932, -0.5060825347900391, -0.07641742378473282, -0.4498797357082367, 0.06734909862279892, 0.14747966825962067, 0.048672161996364594, 0.2634965777397156, 0.014706936664879322, 0.1963331550359726, 0.08046750724315643, 0.36877137422561646, -0.4757606089115143, -0.478931725025177, 0.44354990124702454, -0.18258103728294373, -0.31335684657096863, 0.1923215389251709, 0.24021489918231964, 0.02543410286307335, 0.21060658991336823, -0.49175989627838135, -0.09808177500963211, -0.20589430630207062, 0.2668292224407196, 0.19528374075889587, 0.03929530829191208, 0.3102708160877228, 0.07493077218532562, -0.04558410495519638, -0.2419118583202362, -0.11785048246383667, 0.03726935759186745, -0.17788651585578918, 0.21995005011558533, -0.18409952521324158, 0.24136927723884583, -0.030106320977211, 0.25266340374946594, 0.26834970712661743, 0.06819571554660797, 0.2672942280769348, 0.09543019533157349, 0.32294294238090515, -0.23162713646888733, -0.2491583228111267, 0.02371777966618538, -0.27488788962364197, -0.04891760274767876, 0.14121992886066437, 0.0542648546397686, -0.12807361781597137, -0.14197435975074768, 0.10363411903381348, -0.49625012278556824, -0.20979775488376617, -0.058151453733444214, -0.22465470433235168, 0.15121608972549438, 0.045489247888326645, 0.26024407148361206, -0.11242082715034485, -0.17743879556655884, 0.1851326823234558, 0.10760167241096497, -0.08641687780618668, -0.16135723888874054, -0.4801531434059143, 0.2979529798030853, -0.0981670543551445, 0.3007403612136841, -0.019732577726244926, 0.40170446038246155, -0.007766809314489365, -0.1939508020877838, 0.06339892745018005, -0.21735915541648865, 0.4974862337112427, -0.2914610207080841, 0.38661569356918335, 0.26564157009124756, 0.10369323194026947, -0.18927128612995148, -0.07081780582666397, -0.1543617993593216, 0.09165935963392258, 0.09152865409851074, 0.22784045338630676, -0.3067505359649658, 0.06735137104988098, 0.20281819999217987, 0.246026873588562, -0.11726841330528259, -0.2938768267631531, -0.30603736639022827, -0.28213122487068176, -0.4367331564426422, -0.20808455348014832, -0.0077745672315359116, 0.39213016629219055, -0.18225818872451782, 0.10364595055580139, -0.16894368827342987, -0.06027892976999283, 0.13731864094734192, -0.0007890453562140465, 0.3772067427635193, 0.07766946405172348, 0.40751421451568604, 0.16990520060062408, 0.012191887944936752, 0.2999098300933838, 0.7500542998313904, -0.18517735600471497, -0.534447968006134, 0.07081901282072067, -0.1345926821231842, -0.051308415830135345, 0.08859127759933472, -0.05912457033991814, -0.42266160249710083, 0.19639331102371216, -0.17475368082523346, 0.016240041702985764, 0.1289757490158081, 0.07778798788785934, 0.12303749471902847, -0.1908082515001297, -0.38796669244766235, 0.4585604667663574, 0.0926278829574585, 0.06905348598957062, 0.3188258707523346, -0.040044501423835754, -0.14504820108413696, 0.334606409072876, 0.18932166695594788, 0.8225324153900146, -0.16515454649925232, -0.0788518488407135, 0.11346960067749023, -0.09299726784229279, -0.01763124018907547, -0.10704534500837326, -0.12147724628448486, -0.31940600275993347, -0.6538965702056885, 0.03608722239732742, -0.06836453825235367, -0.031364113092422485, 0.12274087220430374, -0.11269976198673248, 0.19599464535713196, -0.17091932892799377, -0.06550100445747375, 0.14197061955928802, 0.06851444393396378, -0.042257264256477356, -0.23921141028404236, -0.4287339448928833, 0.256152480840683, 0.04622237756848335, 0.16016818583011627, -0.10526317358016968, 0.1083778515458107, 0.019986193627119064, -0.1920361965894699, -0.42072778940200806, 0.3762432336807251, -0.14610305428504944, 0.15439468622207642, 0.1016024649143219, -0.06298761814832687, -0.02140728197991848, 0.36846786737442017, 0.23452390730381012, 0.33964449167251587, -0.2872450649738312, 0.239773228764534, 0.1804417222738266, -0.06141965463757515, 0.2014320343732834, 0.13976414501667023, 0.38451293110847473, -0.16104763746261597, -0.18057781457901, 0.25407445430755615, -0.11559376120567322, -0.28870201110839844, 0.14892897009849548, -0.09417521953582764, -0.04697834700345993, -0.3220110237598419, -0.2063680738210678, 0.08053331077098846, 0.026585008949041367, -0.29566729068756104, 0.2409658133983612, 0.11270217597484589, -0.05833405628800392, 0.04987157881259918, 0.015529748052358627, -0.3156581521034241, -0.015821322798728943, 0.6379328966140747, -0.022274576127529144, -0.3461015224456787, 0.18887831270694733, 0.3355083763599396, -0.2972605228424072, -0.248043954372406, -0.082121841609478, -0.13533882796764374, -0.41430503129959106, -0.010027420707046986, 0.10449697822332382, 0.1150098592042923, -0.04104870930314064, 0.5500310063362122, 0.11750751733779907, -0.060269422829151154, 0.008849550038576126, -0.4368239939212799, -0.201931893825531, 0.15289165079593658, -0.06649026274681091, 0.17516513168811798, 0.056662529706954956, -0.1525404006242752, -0.08682741224765778, -0.07257421314716339, -0.436619371175766, 0.11409579962491989, -0.3096992075443268, -0.058402083814144135, 0.012907958589494228, -0.026194781064987183, 0.20208486914634705, -0.02747507207095623, 0.25460174679756165, 0.08680043369531631, -0.06423463672399521, -0.33915650844573975, -0.1138405054807663, 0.08644913882017136, 0.051143843680620193, -0.08714200556278229, 0.009562095627188683, -0.11190343648195267, -0.08747434616088867, -0.20724032819271088, 0.2575019896030426, 0.3878766596317291, -0.11508572101593018, 0.2820782959461212, 0.3405848741531372, 0.0929427519440651, -0.2318243831396103, 0.096990667283535, -0.09100830554962158, -0.010493241250514984, 0.026864398270845413, 0.026062989607453346, -0.06916064023971558, 0.10007606446743011, -0.1718014031648636, 0.14343616366386414, 0.17293238639831543, 0.08874717354774475, 0.4161953330039978, -0.28709524869918823, 0.04669330641627312, 0.648634672164917, 0.10310602933168411, 0.3637094497680664, -0.3108959496021271, 0.042374707758426666, 0.13013651967048645, 0.3448212742805481, -0.406434029340744, -0.1714220643043518, -0.06940151751041412, -0.1177227720618248, 0.05199993774294853, 0.05768663436174393, 0.05737346038222313, -0.4207996726036072, 0.309725821018219, 0.15015622973442078, 0.26933223009109497, -0.1815149337053299, 0.2371409386396408, 0.35521483421325684, 0.09903563559055328, -0.07625479996204376, 0.15319380164146423, -0.13623951375484467, -0.04101581126451492, 0.12383571267127991, 0.009254172444343567, 0.1721426248550415, -0.11554665118455887, 0.27112850546836853, -0.3595341742038727, -0.2630624771118164, 0.2138591855764389, 0.23655717074871063, 0.06993243843317032, 0.2065296471118927, -0.09356467425823212, 0.3032412827014923, 0.0809309110045433, 0.13960452377796173, -0.331801176071167, 0.037414129823446274, -0.15899094939231873, -0.06004578247666359, -0.15661337971687317, -0.23851227760314941, -0.18440477550029755, 0.08491665124893188, -0.2479993999004364, -0.1458788514137268, 0.27010273933410645, -0.00796864926815033, -0.27727872133255005, -0.5198110342025757, 0.0814557671546936, 0.10347151011228561, 0.09898508340120316, -0.39733651280403137, 0.3662619888782501, 0.09576738625764847, 0.0778515487909317, 0.2094704508781433, 0.14958716928958893, 0.35181674361228943, 0.25983065366744995, -0.035705339163541794, -0.013128113932907581, -0.06621807813644409, -0.05110634118318558, -0.09393241256475449, 0.5338185429573059, -0.034624047577381134, 0.13700547814369202, 0.332838773727417, 0.2688549757003784, -0.2412133663892746, 0.13038338720798492, -0.008510258048772812, 0.20409226417541504, -0.14732646942138672, -0.03283485025167465, 0.00672789104282856, 0.00004415959119796753, -0.15090572834014893, 0.09272447973489761, -0.4172966182231903, -0.2997048497200012, 0.09866909682750702, 0.17949709296226501, 0.16230681538581848, 0.03689298406243324, 0.16279175877571106, -0.03995192050933838, 0.39419466257095337, 0.3971598446369171, 0.09898675978183746, -0.2538023889064789, -0.2816581130027771, -0.689617395401001, 0.247340589761734, 0.02649840898811817, -0.06733052432537079, 0.1305614709854126, -0.01197552029043436, 0.27702781558036804, 0.3075859546661377, 0.0452568382024765, -0.02192642353475094, -0.10242607444524765, 0.10452775657176971, -0.3446146547794342, -0.13136422634124756, 0.28918883204460144, -0.03314358741044998, -0.06732320785522461, -0.3246711492538452, -0.1031130701303482, 0.0747799351811409, 0.09005013853311539, -0.15377363562583923, -0.20549173653125763, -0.06555525958538055, 0.058466605842113495, 0.31726527214050293, 0.0445747934281826, 0.5768052339553833, -0.17850801348686218, -0.269424170255661, -0.31312689185142517, -0.40804749727249146, 0.09060226380825043, 0.18149960041046143, -0.02141813188791275, 0.17551454901695251, -0.08736272156238556, 0.05407074838876724, -0.1536252349615097, 0.21431230008602142, -0.007248476147651672, -0.15489165484905243, -0.33551910519599915, -0.08024291694164276, -0.013648495078086853, 0.04509502649307251, -0.08188340067863464, 0.15951396524906158, 0.0056639909744262695, 0.23348389565944672, -0.1015113815665245, -0.34146860241889954, 0.3679542541503906, 0.032598912715911865, -0.04339107125997543, -0.0672541931271553, 0.22056427597999573, -0.09296803921461105, -0.06722689419984818, -0.7146452069282532, 0.19544345140457153, 0.39904674887657166, 0.1923903226852417, -0.19902268052101135, 0.26820865273475647, -0.11854439973831177, 0.17035067081451416, -0.11344863474369049, 0.3449530601501465, 0.05753112956881523, -0.06061195582151413, -0.06724086403846741, -0.30943548679351807 ]
https://github.com/huggingface/datasets/issues/4029
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold
Hi ! You can access the faiss index with ```python faiss_index = my_dataset.get_index("my_index_name").faiss_index ``` and then do whatever you want with it, e.g. query it using range_search: ```python threshold = 0.95 limits, distances, indices = faiss_index.range_search(x=xq, thresh=threshold) texts = dataset[indices] ```
**Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I would like to be able to repeat many different queries on the dataset quickly. **Describe the solution you'd like** dataset objects currently have the .get_nearest_examples() method for text retrieval via FAISS. But this only allows retrieving a specific number of K texts instead of everything above a specified similarity threshold. It would be great if HF Datasets would also support the FAISS method .range_search() for retrieving texts above a certain similarity threshold. see details here: https://github.com/facebookresearch/faiss/issues/1273 **Describe alternatives you've considered** I've considered using native FAISS, but doing this via HF datasets would be better. My assumption is that Dataset features like dataset streaming make it easier to work with large datasets **Additional context** The concrete use-case is: I have a large dataset (wikipedia) and I would like to retrieve all paragraphs which are similar to a query. I will use sentence-transformers for encoding the texts.
41
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold **Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I would like to be able to repeat many different queries on the dataset quickly. **Describe the solution you'd like** dataset objects currently have the .get_nearest_examples() method for text retrieval via FAISS. But this only allows retrieving a specific number of K texts instead of everything above a specified similarity threshold. It would be great if HF Datasets would also support the FAISS method .range_search() for retrieving texts above a certain similarity threshold. see details here: https://github.com/facebookresearch/faiss/issues/1273 **Describe alternatives you've considered** I've considered using native FAISS, but doing this via HF datasets would be better. My assumption is that Dataset features like dataset streaming make it easier to work with large datasets **Additional context** The concrete use-case is: I have a large dataset (wikipedia) and I would like to retrieve all paragraphs which are similar to a query. I will use sentence-transformers for encoding the texts. Hi ! You can access the faiss index with ```python faiss_index = my_dataset.get_index("my_index_name").faiss_index ``` and then do whatever you want with it, e.g. query it using range_search: ```python threshold = 0.95 limits, distances, indices = faiss_index.range_search(x=xq, thresh=threshold) texts = dataset[indices] ```
[ -0.26610028743743896, -0.40044817328453064, -0.07545088976621628, -0.1700698286294937, -0.1645522117614746, -0.13739687204360962, -0.10565361380577087, 0.4173576533794403, 0.28689664602279663, 0.10397949069738388, -0.609167218208313, -0.23527278006076813, 0.04547138512134552, -0.06354428082704544, -0.08422187715768814, -0.2311536967754364, 0.06685005128383636, -0.03591327369213104, 0.011858448386192322, 0.0294475257396698, -0.3104538917541504, -0.11451688408851624, 0.04961007833480835, -0.024007290601730347, -0.08999337255954742, 0.0815674439072609, -0.0897739976644516, 0.030018167570233345, 0.013482649810612202, -0.41159653663635254, -0.11249426752328873, 0.3844877779483795, 0.3687560558319092, 0.038477152585983276, -0.00011854531476274133, -0.1650819480419159, 0.08868145197629929, 0.002968568354845047, -0.16781902313232422, -0.07418377697467804, 0.06233648955821991, -0.030583469197154045, 0.07351814210414886, -0.18798375129699707, -0.1231435090303421, -0.13913002610206604, 0.06314731389284134, -0.4202806055545807, 0.08134052902460098, 0.4687301516532898, 0.10867156088352203, -0.2644435167312622, 0.1506659835577011, 0.03615013137459755, 0.37562990188598633, -0.10591091215610504, -0.24083662033081055, -0.17050237953662872, 0.680916428565979, 0.078142911195755, -0.1939609944820404, 0.48443466424942017, 0.03187050670385361, 0.10291390120983124, 0.2113555371761322, -0.031414348632097244, -0.12188007682561874, -0.13275165855884552, 0.0630914717912674, 0.3464943468570709, 0.23625001311302185, -0.31077349185943604, -0.5524609684944153, -0.41951724886894226, -0.15751782059669495, 0.04427040368318558, -0.1708528697490692, -0.2729610204696655, -0.38240644335746765, 0.25582754611968994, -0.21680930256843567, -0.4268060028553009, -0.3194957375526428, 0.1459311544895172, -0.04387618601322174, -0.10754081606864929, -0.032235510647296906, -0.21979162096977234, 0.39087939262390137, -0.3108261823654175, 0.02635018154978752, -0.18897540867328644, 0.26046285033226013, 0.32113388180732727, -0.7753568887710571, -0.23268640041351318, 0.36546415090560913, 0.02244836837053299, 0.5395259261131287, -0.053700581192970276, -0.12521344423294067, 0.18671277165412903, -0.42495086789131165, 0.03276688605546951, 0.18860913813114166, -0.2765801250934601, -0.08924854546785355, -0.2140815109014511, -0.05196661502122879, -0.030819272622466087, -0.2788054943084717, -0.11687960475683212, -0.016099991276860237, 0.07134340703487396, 0.012221895158290863, -0.24056807160377502, 0.15568387508392334, -0.5336604714393616, -0.15637922286987305, 0.08356186002492905, -0.30510213971138, 0.017699573189020157, 0.03052588924765587, 0.22930273413658142, 0.271100789308548, 0.027953287586569786, -0.005398847162723541, 0.16202054917812347, -0.0009437315165996552, -0.25458720326423645, -0.0824257954955101, 0.039723604917526245, 0.19863499701023102, 0.38589316606521606, 0.3444126844406128, -0.44980505108833313, -0.1321002095937729, -0.20645733177661896, 0.23941510915756226, 0.18158379197120667, 0.01997086964547634, -0.3007444739341736, 0.3848145604133606, -0.11544916033744812, -0.35741475224494934, -0.10319116711616516, 0.022967565804719925, 0.08484722673892975, -0.27878090739250183, 0.058968257158994675, 0.10274611413478851, -0.21945838630199432, 0.17507068812847137, 0.12897416949272156, -0.03443276882171631, -0.10717076063156128, -0.141950786113739, 0.7824451327323914, -0.33286088705062866, 0.25228050351142883, 0.05391811579465866, 0.07105527818202972, -0.2662545144557953, 0.016635216772556305, 0.09375803917646408, 0.5263972878456116, -0.3800625205039978, -0.09194926917552948, -0.20737840235233307, 0.2979579269886017, -0.18038979172706604, 0.2783984839916229, 0.0011178752174600959, 0.025905396789312363, -0.04342813789844513, 0.43412744998931885, 0.5000238418579102, -0.14273568987846375, -0.2207372933626175, 0.36718881130218506, 0.21360518038272858, 0.22095270454883575, 0.16219660639762878, -0.14956633746623993, 0.11977234482765198, 0.06445237249135971, 0.28800344467163086, 0.20837292075157166, -0.12825745344161987, -0.16688570380210876, -0.2897961735725403, -0.25298911333084106, 0.08214931935071945, 0.4293075501918793, 0.4088311493396759, -0.01443663239479065, 0.4431849718093872, -0.3039829432964325, 0.2937864363193512, -0.16795703768730164, 0.006639893166720867, 0.3059561252593994, 0.1865871697664261, 0.334183931350708, 0.22647419571876526, -0.7865740656852722, 0.40332674980163574, 0.10279715806245804, 0.20698177814483643, 0.04078155383467674, -0.02516801655292511, -0.10524260997772217, 0.040651652961969376, -0.06082858890295029, -0.10798633098602295, -0.0491127111017704, -0.012392455711960793, -0.26584941148757935, 0.06396827101707458, 0.0039357990026474, -0.11228226870298386, 0.4860287010669708, -0.19412262737751007, -0.08851401507854462, -0.23034878075122833, 0.48776429891586304, 0.014074141159653664, 0.22149406373500824, -0.09090454876422882, 0.2998848557472229, 0.07529096305370331, 0.09893949329853058, -0.12432309240102768, 0.012117169797420502, -0.048063360154628754, -0.2422250360250473, 0.15618613362312317, 0.35009831190109253, 0.1581360399723053, -0.2542631924152374, 0.2803611159324646, -0.23587270081043243, 0.0679057165980339, 0.15800878405570984, -0.00818631798028946, 0.11045140773057938, 0.30893564224243164, 0.36181211471557617, 0.1459161639213562, -0.19880612194538116, 0.2024313509464264, -0.09391148388385773, 0.1073056310415268, -0.04630996286869049, 0.22461439669132233, 0.003671415150165558, 0.18683665990829468, -0.24410082399845123, -0.3735727071762085, 0.41883140802383423, 0.1652986854314804, -0.0880516767501831, 0.1436765193939209, 0.34908363223075867, -0.003732062876224518, 0.021546252071857452, 0.012888262048363686, -0.2798772156238556, 0.27477598190307617, 0.34985604882240295, -0.21006837487220764, -0.0728795975446701, -0.04724400117993355, -0.027420109137892723, 0.17671984434127808, 0.060911793261766434, 0.15663854777812958, -0.06503401696681976, 0.26992884278297424, 0.031216271221637726, -0.2847364544868469, -0.6020767688751221, -0.13612627983093262, -0.04153677076101303, -0.13478752970695496, 0.130504310131073, -0.11899161338806152, -0.30753907561302185, -0.010816563852131367, 0.30693355202674866, -0.05446447804570198, 0.09757830202579498, 0.3426174521446228, 0.10741746425628662, -0.015158636495471, 0.10370883345603943, -0.34048742055892944, 0.4240199327468872, 0.2079210728406906, -0.16806958615779877, -0.1473323106765747, 0.012855172157287598, 0.02494112029671669, 0.10410276055335999, -0.2793286144733429, 0.12013787776231766, 0.21174876391887665, 0.34048277139663696, 0.26220184564590454, -0.6223127245903015, -0.22246310114860535, 0.056597888469696045, 0.016697203740477562, 0.18393352627754211, 0.053538285195827484, -0.13120239973068237, -0.0364418551325798, 0.09346897900104523, 0.011396121233701706, -0.0766228660941124, -0.20840835571289062, -0.08956602960824966, -0.016191810369491577, 0.09086386859416962, 0.2525548040866852, -0.09069383889436722, -0.08894500136375427, -0.512004554271698, 0.15572893619537354, -0.015306411311030388, 0.0882638543844223, 0.2311669886112213, -0.06686742603778839, 0.05071267485618591, -0.07493758201599121, 0.22699984908103943, -0.18795107305049896, 0.15385669469833374, 0.4214871823787689, 0.031235720962285995, -0.09149844944477081, -0.3943137526512146, -0.23996609449386597, -0.09970158338546753, 0.5445308089256287, -0.18666121363639832, -0.31154316663742065, -0.1581815630197525, 0.3039856255054474, -0.12910814583301544, 0.04326031729578972, 0.11152374744415283, 0.053306978195905685, -0.18162597715854645, 0.04934024065732956, -0.040122367441654205, 0.010884329676628113, -0.11780648678541183, 0.1282873898744583, 0.10548043251037598, 0.2202700972557068, 0.16346830129623413, 0.4778502583503723, 0.055954400449991226, 0.10343357920646667, 0.575763463973999, 0.29573342204093933, 0.20517098903656006, 0.13616067171096802, -0.41320955753326416, 0.2565518319606781, 0.031748563051223755, 0.07074455171823502, 0.35914039611816406, -0.007424037903547287, -0.09422034025192261, -0.02928050048649311, -0.559775173664093, 0.037052854895591736, -0.14036409556865692, -0.005965955555438995, -0.07313007861375809, 0.4444042146205902, -0.01635989546775818, 0.11898573487997055, -0.20981967449188232, -0.1340884566307068, 0.033006977289915085, 0.15495075285434723, 0.12163463234901428, 0.04977922514081001, 0.0529179684817791, -0.14699919521808624, -0.45961248874664307, 0.31131136417388916, 0.3390935957431793, 0.1133466586470604, -0.09944507479667664, -0.041362911462783813, -0.13292944431304932, 0.16660663485527039, 0.7772286534309387, -0.25858980417251587, -0.16768009960651398, -0.12511922419071198, -0.10058824717998505, -0.3971383571624756, 0.08600986003875732, -0.04903307184576988, -0.02408241294324398, 0.05652792751789093, 0.13466036319732666, -0.0379352942109108, -0.22317662835121155, 0.08192688226699829, 0.022565163671970367, 0.10087823867797852, -0.398240864276886, 0.14836396276950836, -0.0014270506799221039, -0.38499367237091064, 0.007405675947666168, 0.07571650296449661, 0.16543546319007874, -0.20758773386478424, -0.07756307721138, 0.040520235896110535, 0.14606353640556335, 0.0530351959168911, -0.07432177662849426, 0.14514613151550293, 0.031068474054336548, 0.2585506737232208, 0.2553292512893677, 0.21218007802963257, 0.21578997373580933, 0.16299524903297424, 0.061685703694820404, -0.2395421862602234, -0.2816743552684784, 0.260948121547699, 0.016196563839912415, 0.31068527698516846, 0.02489602193236351, 0.6684712767601013, 0.015755020081996918, 0.31302329897880554, -0.011493821628391743, 0.23732565343379974, -0.09965013712644577, 0.09262052923440933, -0.268849641084671, -0.3777863681316376, 0.6446307301521301, -0.14876896142959595, -0.18252170085906982, -0.08682745695114136, 0.4112030863761902, -0.4310274124145508, 0.3202561140060425, -0.12276255339384079, 0.730112612247467, 0.09272804856300354, 0.03438887000083923, -0.3830222189426422, 0.07864637672901154, 0.4639086127281189, -0.5752072334289551, 0.19177627563476562, -0.09755169600248337, -0.20333565771579742, -0.09188587963581085, -0.07030624151229858, 0.16339102387428284, 0.15347734093666077, -0.060237109661102295, 0.3195765018463135, 0.6594070196151733, -0.1542685329914093, 0.2744140625, 0.2716347873210907, -0.337635338306427, -0.26291313767433167, -0.178746297955513, 0.07153623551130295, -0.2379487305879593, 0.20176167786121368, 0.15570473670959473, -0.06812498718500137, 0.07232792675495148, -0.01673055812716484, -0.5313302278518677, 0.0026932507753372192, -0.2895623445510864, 0.17961637675762177, 0.20467239618301392, -0.0263671912252903, 0.5545035600662231, -0.589926540851593, 0.29526033997535706, 0.0031791329383850098, -0.5187195539474487, 0.11590752005577087, 0.06344199180603027, -0.15978151559829712, 0.20065271854400635, -0.31378328800201416, 0.4957779347896576, 0.13218975067138672, -0.4311944246292114, 0.11940521001815796, 0.3349069058895111, -0.35957932472229004, -0.3550334572792053, -0.1400335133075714, 0.18146416544914246, -0.13551127910614014, 0.04955144226551056, 0.04431956633925438, -0.13057491183280945, -0.15345782041549683, 0.062013596296310425, 0.11536920815706253, -0.11401523649692535, 0.20792964100837708, -0.06264623999595642, -0.07284842431545258, -0.25346776843070984, 0.28715571761131287, 0.02239661104977131, -0.030168332159519196, 0.3746485710144043, 0.3289088010787964, -0.22895105183124542, -0.0401737317442894, -0.3691779673099518, 0.3013109564781189, 0.06716079264879227, -0.041874729096889496, -0.09595726430416107, -0.07917052507400513, 0.0967371016740799, 0.08454802632331848, 0.06750039756298065, -0.4147806465625763, -0.09970749914646149, -0.17627495527267456, 0.0350375771522522, 0.12093712389469147, -0.2733360528945923, 0.21178963780403137, 0.04805489629507065, 0.18784254789352417, -0.09877083450555801, 0.03520795702934265, -0.24015681445598602, -0.017905225977301598, 0.05910950154066086, 0.10052615404129028, -0.1731724888086319, -0.09315802901983261, 0.014332604594528675, -0.15307652950286865, 0.021566329523921013, 0.18806123733520508, -0.17005214095115662, -0.18268495798110962, -0.12130333483219147, 0.1265464425086975, 0.011547241359949112, -0.25901100039482117, -0.32106995582580566, -0.1973876804113388, -0.11007994413375854, -0.19317293167114258, 0.015569817274808884, 0.20030614733695984, 0.11024105548858643, 0.10310015827417374, 0.13422413170337677, -0.6846489310264587, 0.16855737566947937, 0.19940002262592316, 0.20650026202201843, 0.5662469267845154, 0.08581553399562836, 0.3607531189918518, -0.05160334333777428, -0.11798860132694244, -0.1319425404071808, 0.3573506772518158, 0.28512656688690186, 0.07709993422031403, 0.14364469051361084, 0.10357744991779327, -0.45877179503440857, 0.3569440245628357, 0.38973525166511536, 0.234966441988945, -0.08270277082920074, -0.07484009116888046, 0.04620517045259476, 0.17743976414203644, -0.35048794746398926, -0.3519999086856842, 0.22464832663536072, -0.3127959966659546, 0.3105428218841553, 0.2997170686721802, 0.2098754644393921, 0.10135699808597565, 0.2180662900209427, 0.019503533840179443, 0.15759558975696564, 0.3200381398200989, -0.1842954158782959, -0.03641875460743904, 0.6581661701202393, -0.20001347362995148, 0.28265053033828735, 0.40245869755744934, 0.5778055787086487, 0.6937990784645081, -0.03100244700908661, 0.13757354021072388, -0.18120232224464417, 0.07850581407546997, 0.3326076865196228, -0.3211028575897217, 0.3335975706577301, -0.07362291216850281, -0.159246563911438, 0.08225275576114655, -0.1359156370162964, -0.1499636471271515, 0.3806293308734894, -0.26795604825019836, 0.07347635179758072, 0.012136347591876984, 0.12638919055461884, 0.05386734381318092, 0.4006802439689636, -0.3092788755893707, -0.24484212696552277, -0.02594400942325592, 0.026558125391602516, -0.3967812657356262, 0.08633646368980408, -0.03731252998113632, 0.4317582845687866, -0.3734704852104187, 0.376900851726532, 0.2636335492134094, 0.45803648233413696, -0.25489896535873413, -0.03499670326709747, 0.171796053647995, -0.2982454001903534, 0.4186425507068634, 0.08037291467189789, 0.16200509667396545, 0.14317896962165833, -0.23669764399528503, 0.273184597492218, -0.2328300029039383, -0.1557331383228302, -0.09609770774841309, -0.2157968282699585, -0.15404726564884186, -0.17971515655517578, 0.39097803831100464, 0.0025691837072372437, 0.031501151621341705, 0.10145904868841171, -0.049625519663095474, -0.22763927280902863, -0.6894397139549255, 0.15018141269683838, 0.33070656657218933, 0.026382222771644592, -0.16466322541236877, 0.05387517809867859, -0.41593819856643677, -0.18620207905769348, 0.5347623229026794, -0.23720000684261322, 0.039005719125270844, -0.1275661438703537, 0.0297444686293602, -0.1880773901939392, 0.19248515367507935, 0.5422491431236267, 0.5691887736320496, -0.4232977330684662, 0.0954076498746872, 0.018995679914951324, -0.08084390312433243, -0.24977442622184753, -0.04070724919438362, 0.45627468824386597, 0.3479725122451782, 0.009122885763645172, 0.08002951741218567, 0.20645809173583984, 0.1355258971452713, 0.041672561317682266, 0.08873210847377777, -0.3764131963253021, -0.3622676730155945, -0.0139336958527565, -0.006125360727310181, 0.007752139121294022, -0.24231413006782532, 0.27818071842193604, -0.15305647253990173, -0.038028113543987274, -0.1694715917110443, 0.10928934812545776, 0.3033696711063385, -0.36092182993888855, 0.04836215078830719, 0.10571668297052383, 0.028268933296203613, -0.11456087231636047, 0.08153004199266434, 0.02788224071264267, -0.06447724252939224, -0.2890433669090271, 0.04519631713628769, 0.01995237171649933, 0.07674084603786469, 0.008996061980724335, -0.6740776896476746, 0.02230929397046566, 0.3455294966697693, 0.07181195914745331, -0.24802401661872864, 0.028743227943778038, 0.03269750624895096, -0.2485896348953247, 0.07311543077230453, -0.1599525660276413, 0.19012734293937683, -0.140780508518219, 0.35098686814308167, 0.04569607973098755, -0.3061588704586029, 0.5083788633346558, -0.3315938711166382, -0.20932266116142273, -0.2180652916431427, 0.24156075716018677, 0.5766249299049377, -0.13386432826519012, -0.5302313566207886, -0.15034833550453186, 0.4999125003814697, 0.26451966166496277, 0.01058240607380867, 0.26019173860549927, 0.04819823428988457, -0.16108189523220062, -0.17550262808799744, -0.11768242716789246, 0.17320337891578674, 0.261579692363739, 0.0010203123092651367, -0.1614820957183838 ]
https://github.com/huggingface/datasets/issues/4029
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold
wow, that's great, thank you for the explanation. (if that's not already in the documentation, could be worth adding it) which type of faiss index is Datasets using? I looked into faiss recently and I understand that there are several different types of indexes and the choice is important, e.g. regarding which distance metric you use (euclidian vs. cosine/dot product), the size of my dataset etc. can I chose the type of index somehow as well?
**Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I would like to be able to repeat many different queries on the dataset quickly. **Describe the solution you'd like** dataset objects currently have the .get_nearest_examples() method for text retrieval via FAISS. But this only allows retrieving a specific number of K texts instead of everything above a specified similarity threshold. It would be great if HF Datasets would also support the FAISS method .range_search() for retrieving texts above a certain similarity threshold. see details here: https://github.com/facebookresearch/faiss/issues/1273 **Describe alternatives you've considered** I've considered using native FAISS, but doing this via HF datasets would be better. My assumption is that Dataset features like dataset streaming make it easier to work with large datasets **Additional context** The concrete use-case is: I have a large dataset (wikipedia) and I would like to retrieve all paragraphs which are similar to a query. I will use sentence-transformers for encoding the texts.
76
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold **Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I would like to be able to repeat many different queries on the dataset quickly. **Describe the solution you'd like** dataset objects currently have the .get_nearest_examples() method for text retrieval via FAISS. But this only allows retrieving a specific number of K texts instead of everything above a specified similarity threshold. It would be great if HF Datasets would also support the FAISS method .range_search() for retrieving texts above a certain similarity threshold. see details here: https://github.com/facebookresearch/faiss/issues/1273 **Describe alternatives you've considered** I've considered using native FAISS, but doing this via HF datasets would be better. My assumption is that Dataset features like dataset streaming make it easier to work with large datasets **Additional context** The concrete use-case is: I have a large dataset (wikipedia) and I would like to retrieve all paragraphs which are similar to a query. I will use sentence-transformers for encoding the texts. wow, that's great, thank you for the explanation. (if that's not already in the documentation, could be worth adding it) which type of faiss index is Datasets using? I looked into faiss recently and I understand that there are several different types of indexes and the choice is important, e.g. regarding which distance metric you use (euclidian vs. cosine/dot product), the size of my dataset etc. can I chose the type of index somehow as well?
[ -0.23902595043182373, -0.3951444923877716, -0.08582064509391785, -0.11253790557384491, -0.2033657282590866, -0.18909478187561035, -0.03227763995528221, 0.298953652381897, 0.3635898530483246, 0.1370905488729477, -0.6294348835945129, -0.3008573055267334, 0.10104850679636002, -0.043984293937683105, -0.1321895569562912, -0.12727776169776917, 0.11062232404947281, -0.03246930241584778, -0.05483521521091461, 0.006380870938301086, -0.37104934453964233, -0.11647258698940277, 0.01645367592573166, -0.04671353101730347, -0.14711441099643707, 0.07512983679771423, -0.11251718550920486, 0.03300982341170311, -0.09093067049980164, -0.39390110969543457, -0.04641231894493103, 0.3414669930934906, 0.4513694941997528, 0.10880784690380096, -0.00011984010052401572, -0.12962649762630463, 0.12197072803974152, 0.007533842697739601, -0.07162730395793915, -0.050948068499565125, -0.08377622067928314, 0.05447930842638016, 0.0903942883014679, -0.13774704933166504, -0.10127176344394684, -0.22474434971809387, 0.1262769252061844, -0.3524448275566101, -0.0025625526905059814, 0.5156641006469727, 0.08560128509998322, -0.3773452639579773, 0.19366160035133362, -0.034567054361104965, 0.38208839297294617, -0.1621103137731552, -0.2538994252681732, -0.21933907270431519, 0.6895753145217896, 0.22545020282268524, -0.21524503827095032, 0.39595502614974976, 0.059530071914196014, 0.10268479585647583, 0.2148728370666504, -0.07871231436729431, -0.08809646219015121, -0.14319223165512085, 0.14667324721813202, 0.3637913167476654, 0.3970453441143036, -0.1826690137386322, -0.5011427998542786, -0.3178730309009552, -0.14885129034519196, 0.1353922337293625, -0.06865546852350235, -0.3825376331806183, -0.25467875599861145, 0.29498013854026794, -0.27356410026550293, -0.4147863984107971, -0.3621599078178406, 0.16249054670333862, -0.04763408005237579, -0.1605958342552185, -0.07527840882539749, -0.23606887459754944, 0.3819441795349121, -0.3955150246620178, 0.0329083614051342, -0.22059990465641022, 0.28727367520332336, 0.25802579522132874, -0.7261609435081482, -0.185691699385643, 0.3572027087211609, -0.00004583597183227539, 0.5056025385856628, -0.022333793342113495, -0.2792501151561737, 0.20723029971122742, -0.4344409108161926, -0.0033804327249526978, 0.1406136453151703, -0.19905897974967957, 0.007204301655292511, -0.3488505780696869, -0.09449931979179382, -0.08149842917919159, -0.21388715505599976, -0.13694891333580017, -0.058767639100551605, 0.1089916005730629, -0.15289580821990967, -0.2653023600578308, 0.02342519909143448, -0.6161029934883118, -0.19184131920337677, 0.047123946249485016, -0.2133280634880066, -0.0298351738601923, 0.08117233216762543, 0.2646949887275696, 0.296700656414032, -0.04962502419948578, -0.14122235774993896, 0.1868733912706375, -0.034125007688999176, -0.21780277788639069, -0.06723389774560928, 0.05533144623041153, 0.23512354493141174, 0.41116952896118164, 0.3213299512863159, -0.4360596239566803, -0.14553989470005035, -0.11698022484779358, 0.06927715986967087, 0.27081525325775146, -0.04403117299079895, -0.332260400056839, 0.4035745859146118, -0.0780615359544754, -0.32186388969421387, -0.07739686965942383, -0.03728841617703438, 0.1327189952135086, -0.3137001097202301, 0.028143715113401413, 0.005360431969165802, -0.32853642106056213, 0.23169827461242676, 0.08741489052772522, -0.006517548114061356, -0.15482130646705627, -0.10727076977491379, 0.8641563057899475, -0.4006592333316803, 0.27449867129325867, 0.042352866381406784, 0.10055457055568695, -0.2724466621875763, -0.0012109298259019852, 0.02032354660332203, 0.4254130721092224, -0.42705267667770386, -0.09480337798595428, -0.23268172144889832, 0.2213890552520752, -0.15525013208389282, 0.3178052604198456, -0.030120205134153366, 0.029726281762123108, -0.009698768146336079, 0.46263253688812256, 0.5011149048805237, -0.12927815318107605, -0.19953042268753052, 0.3259260952472687, 0.2729131579399109, 0.07110179215669632, 0.20722219347953796, -0.13687542080879211, 0.10878829658031464, -0.012167654000222683, 0.30606311559677124, 0.1873224526643753, -0.14798036217689514, -0.23520657420158386, -0.22446729242801666, -0.37010619044303894, 0.09295937418937683, 0.44987115263938904, 0.33258703351020813, -0.07775584608316422, 0.41170942783355713, -0.43532484769821167, 0.06685861200094223, -0.1424781084060669, -0.08123768866062164, 0.3124169707298279, 0.18244454264640808, 0.34247303009033203, 0.2902072072029114, -0.6963450908660889, 0.3377370238304138, 0.1263693869113922, 0.1642783135175705, -0.014620721340179443, 0.059640754014253616, 0.003917142748832703, 0.1066650003194809, -0.08095473796129227, -0.05475962534546852, 0.0050574298948049545, -0.04502949118614197, -0.31045010685920715, 0.06033286824822426, -0.03903169184923172, -0.2023809552192688, 0.4351687431335449, -0.2075587958097458, -0.15160973370075226, -0.2269701361656189, 0.4497968554496765, -0.007028525695204735, 0.1943088322877884, -0.03024880588054657, 0.23171153664588928, 0.05736871808767319, 0.010282674804329872, -0.11519058793783188, 0.06438800692558289, 0.015127316117286682, -0.24461670219898224, 0.33288291096687317, 0.38718628883361816, 0.0883094072341919, -0.25961458683013916, 0.31787118315696716, -0.27131280303001404, 0.012642552144825459, 0.15346738696098328, -0.04275193810462952, 0.11267174035310745, 0.23288318514823914, 0.37137794494628906, 0.13441762328147888, -0.28700870275497437, 0.15684452652931213, -0.050277579575777054, 0.15621279180049896, -0.0801791399717331, 0.22449083626270294, -0.043032992631196976, 0.18080830574035645, -0.08738090842962265, -0.33163926005363464, 0.406648188829422, 0.18567994236946106, -0.14132297039031982, 0.159915030002594, 0.38519299030303955, -0.028952330350875854, -0.05704563856124878, 0.005585610866546631, -0.3411812484264374, 0.2752208411693573, 0.3219829797744751, -0.16322964429855347, -0.2444571852684021, -0.06678087264299393, -0.07334025204181671, 0.2045625001192093, 0.056149061769247055, 0.10792901366949081, -0.07800499349832535, 0.12486199289560318, -0.04835425689816475, -0.28020134568214417, -0.5136419534683228, -0.1560237556695938, -0.05517593026161194, -0.12602567672729492, 0.08211064338684082, -0.1571129858493805, -0.3318294584751129, -0.0019654063507914543, 0.25995302200317383, -0.10774222016334534, 0.14227382838726044, 0.38167911767959595, -0.004000712186098099, 0.0508335717022419, 0.13779900968074799, -0.37304675579071045, 0.4726375341415405, 0.1721499115228653, -0.16248413920402527, -0.11286336183547974, 0.059666894376277924, -0.0530487522482872, 0.0928950309753418, -0.2513134181499481, 0.14963334798812866, 0.2003970593214035, 0.269707053899765, 0.3305213451385498, -0.6039745211601257, -0.16482986509799957, 0.07890379428863525, 0.004751574248075485, 0.18919655680656433, 0.02426672726869583, -0.09527930617332458, -0.08605790138244629, 0.1712244302034378, 0.013818500563502312, -0.08125407248735428, -0.16744866967201233, -0.06690751016139984, -0.13861499726772308, 0.08060425519943237, 0.2795899510383606, -0.16603079438209534, -0.07509143650531769, -0.4386082887649536, 0.13294214010238647, -0.013705827295780182, 0.12284496426582336, 0.2134607434272766, -0.014284339733421803, 0.08691093325614929, -0.04709777608513832, 0.21305090188980103, -0.21551990509033203, 0.1308915764093399, 0.4495694637298584, 0.11016606539487839, -0.06991295516490936, -0.37256890535354614, -0.10149737447500229, -0.21395999193191528, 0.5699142813682556, -0.16485656797885895, -0.2847667932510376, -0.19959965348243713, 0.2848239839076996, -0.009877689182758331, 0.11327020078897476, 0.18652775883674622, -0.044266413897275925, -0.16984137892723083, -0.06515366584062576, -0.027724888175725937, 0.08985887467861176, -0.10072050243616104, 0.19510166347026825, 0.19913449883460999, 0.22927486896514893, 0.07225935161113739, 0.5099673271179199, 0.10280419886112213, 0.021047618240118027, 0.5395702719688416, 0.38835981488227844, 0.25630927085876465, 0.09587009996175766, -0.35061147809028625, 0.3828575015068054, 0.10065282881259918, 0.05144548416137695, 0.4050337076187134, 0.0025963885709643364, -0.13115932047367096, -0.06148083135485649, -0.5032591223716736, 0.04340989887714386, -0.04415164142847061, 0.06608313322067261, 0.021502980962395668, 0.4211937189102173, -0.1211460679769516, 0.13217654824256897, -0.262378454208374, -0.15600800514221191, 0.00232583936303854, 0.19277292490005493, 0.11641903221607208, 0.07150061428546906, 0.031283389776945114, -0.0994623601436615, -0.4507817029953003, 0.3771054744720459, 0.3484293818473816, 0.16960781812667847, -0.1871887892484665, 0.005893215537071228, -0.039590805768966675, 0.1619243025779724, 0.742152214050293, -0.29449331760406494, -0.23880751430988312, -0.11334781348705292, -0.008894186466932297, -0.4224255084991455, 0.1274755448102951, -0.07860547304153442, 0.05470097064971924, 0.06261216104030609, 0.135574609041214, -0.06676596403121948, -0.2903469502925873, -0.009621348232030869, -0.021712470799684525, 0.18279267847537994, -0.4171541631221771, 0.21566076576709747, 0.03627195209264755, -0.2515332102775574, 0.007680051028728485, 0.02472078613936901, 0.06841591745615005, -0.17733295261859894, -0.017838383093476295, 0.024545343592762947, 0.16933855414390564, 0.05119220167398453, -0.06640926003456116, 0.07192128896713257, -0.002146504819393158, 0.21978461742401123, 0.43096596002578735, 0.21513110399246216, 0.36186689138412476, 0.14315493404865265, 0.05529183894395828, -0.1204780787229538, -0.2098582684993744, 0.2476547360420227, -0.05187167972326279, 0.3177647888660431, 0.011707093566656113, 0.5901528596878052, 0.01878243498504162, 0.21594366431236267, 0.009229781106114388, 0.13040417432785034, -0.0007613319903612137, 0.03086439147591591, -0.3312472105026245, -0.3287146985530853, 0.7099673748016357, -0.12199604511260986, -0.25764644145965576, -0.09694185853004456, 0.4387299418449402, -0.4286694824695587, 0.2869794964790344, -0.047304667532444, 0.7067981362342834, 0.09184662252664566, -0.04256622865796089, -0.36546212434768677, 0.07494030892848969, 0.40945106744766235, -0.5398665070533752, 0.12080790847539902, -0.04624622315168381, -0.2333773970603943, -0.11110009253025055, -0.0805617943406105, 0.13834622502326965, 0.25578469038009644, -0.010920550674200058, 0.34086111187934875, 0.6439779996871948, -0.13110992312431335, 0.24389004707336426, 0.33497586846351624, -0.26064008474349976, -0.20865169167518616, -0.1076900064945221, 0.05834284424781799, -0.11064839363098145, 0.12982609868049622, 0.2029915452003479, -0.017289066687226295, 0.05660649761557579, 0.08011152595281601, -0.5044979453086853, -0.04942542687058449, -0.25230878591537476, 0.23616977035999298, 0.276241660118103, 0.0005026012659072876, 0.5826557278633118, -0.5906020998954773, 0.3046497106552124, -0.19820056855678558, -0.5844320058822632, 0.1489669382572174, 0.10154914110898972, -0.15778055787086487, 0.1791645586490631, -0.3345218300819397, 0.48315295577049255, 0.14549914002418518, -0.304013192653656, 0.04876326769590378, 0.32510191202163696, -0.34192442893981934, -0.4295702278614044, -0.22010712325572968, 0.06583091616630554, -0.18464291095733643, 0.019457153975963593, 0.01621798425912857, -0.011302396655082703, -0.021382873877882957, 0.03233969956636429, 0.12248304486274719, 0.03273890167474747, 0.3302457928657532, -0.1132594645023346, -0.02213709056377411, -0.2995886504650116, 0.24425259232521057, -0.011120229959487915, -0.043984685093164444, 0.29077160358428955, 0.35055264830589294, -0.336425244808197, -0.009085532277822495, -0.30993738770484924, 0.3663412034511566, 0.12347052246332169, -0.11173661053180695, -0.14353738725185394, -0.11385154724121094, 0.18687373399734497, 0.0961422398686409, 0.09552489966154099, -0.4799545407295227, -0.1612670123577118, -0.07409949600696564, 0.07249094545841217, 0.18137091398239136, -0.2639000415802002, 0.2729538679122925, -0.05078830197453499, 0.016718192026019096, -0.07170554995536804, -0.03341766446828842, -0.2042386531829834, 0.03717607259750366, 0.1030033752322197, 0.09663205593824387, -0.18834863603115082, -0.10119333118200302, 0.09292888641357422, -0.0869135707616806, -0.0563230887055397, -0.02545309066772461, -0.22215431928634644, -0.13526982069015503, -0.06556857377290726, 0.13828417658805847, 0.020123731344938278, -0.3473510444164276, -0.35724541544914246, -0.2986717224121094, -0.12287421524524689, -0.1676635593175888, -0.08504480123519897, 0.184814453125, 0.06311594694852829, 0.06578734517097473, 0.04842642694711685, -0.7248782515525818, 0.12759877741336823, 0.24261492490768433, 0.2626815736293793, 0.6427892446517944, 0.07874907553195953, 0.3812676668167114, -0.08058874309062958, -0.154221773147583, -0.12676924467086792, 0.4964756369590759, 0.338898241519928, 0.04959530010819435, 0.035319678485393524, 0.10054542124271393, -0.33947208523750305, 0.40514039993286133, 0.30391788482666016, 0.2759206295013428, -0.11470989882946014, -0.1534150391817093, -0.005795475095510483, 0.1273924857378006, -0.17875108122825623, -0.31861957907676697, 0.31044480204582214, -0.25436297059059143, 0.21772265434265137, 0.27822694182395935, 0.29378411173820496, 0.13340987265110016, 0.19928500056266785, -0.008441622368991375, 0.1484580934047699, 0.3714844584465027, -0.26028406620025635, -0.11055861413478851, 0.6376569867134094, -0.23726589977741241, 0.41289183497428894, 0.3941507339477539, 0.569259762763977, 0.8218154907226562, 0.025956399738788605, 0.16502942144870758, -0.09079792350530624, 0.09552028775215149, 0.2929098606109619, -0.3023112714290619, 0.3902984857559204, 0.052963219583034515, -0.1110716313123703, 0.0026804395020008087, -0.11449798941612244, -0.020157843828201294, 0.31146469712257385, -0.28945392370224, 0.00899265892803669, -0.06308874487876892, 0.1146901324391365, -0.028755366802215576, 0.3516952693462372, -0.3063790500164032, -0.24733756482601166, 0.031815338879823685, -0.04975910112261772, -0.28256726264953613, 0.02219119668006897, -0.037470750510692596, 0.3840184211730957, -0.3809560239315033, 0.4038674533367157, 0.2541764974594116, 0.47606414556503296, -0.16111597418785095, 0.09343741089105606, 0.07803279906511307, -0.2875343859195709, 0.47298356890678406, 0.08930979669094086, 0.12224064767360687, 0.08022697269916534, -0.32729265093803406, 0.19853433966636658, -0.18354113399982452, -0.20115438103675842, -0.06346981972455978, -0.13380537927150726, -0.21671181917190552, -0.256337434053421, 0.34758803248405457, 0.0013320185244083405, 0.04684118553996086, 0.08844725787639618, -0.12040248513221741, -0.17514818906784058, -0.6112297773361206, 0.0006152987480163574, 0.25388747453689575, 0.05986505746841431, -0.04812456667423248, -0.015006110072135925, -0.3379054665565491, -0.1473008543252945, 0.5136091113090515, -0.28327837586402893, 0.07941925525665283, -0.03092251718044281, 0.01709645986557007, -0.17703989148139954, 0.20791567862033844, 0.47901177406311035, 0.612605631351471, -0.320962518453598, 0.05434846878051758, 0.1057041734457016, -0.1253763735294342, -0.19536715745925903, 0.09057673811912537, 0.4549140930175781, 0.36418867111206055, -0.009206980466842651, 0.06811802089214325, 0.3057512640953064, 0.17198185622692108, 0.06866472959518433, 0.1170044094324112, -0.34442636370658875, -0.27952641248703003, -0.018267355859279633, 0.058529093861579895, -0.06635262817144394, -0.17138895392417908, 0.2159782499074936, -0.15348459780216217, -0.11345778405666351, -0.16391758620738983, 0.1110384464263916, 0.3366636335849762, -0.39841681718826294, 0.05244220793247223, 0.164661705493927, 0.050731465220451355, -0.07656529545783997, 0.12216269224882126, 0.03371587023139, -0.07075493782758713, -0.2212306559085846, 0.09958431869745255, -0.017499666661024094, 0.06450363248586655, -0.11518744379281998, -0.5909948945045471, 0.09653633087873459, 0.3846297562122345, 0.011948168277740479, -0.16640298068523407, 0.025061076506972313, 0.011699631810188293, -0.3213159143924713, -0.058072529733181, -0.1147092804312706, 0.18184497952461243, -0.12302045524120331, 0.353942334651947, 0.1262277364730835, -0.2131282240152359, 0.45683255791664124, -0.26995354890823364, -0.13190025091171265, -0.22424335777759552, 0.1620282381772995, 0.7144294381141663, -0.025292685255408287, -0.5277628898620605, -0.16348661482334137, 0.4410026967525482, 0.24397042393684387, -0.02762589603662491, 0.21035967767238617, 0.125936821103096, -0.21017055213451385, -0.25864750146865845, -0.11480838060379028, 0.193648099899292, 0.23123903572559357, -0.014932090416550636, -0.017361994832754135 ]
https://github.com/huggingface/datasets/issues/4029
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold
`Dataset.add_faiss_index` has a `string_factory` parameter, used to set the type of index (see the faiss documentation about [index factory](https://github.com/facebookresearch/faiss/wiki/The-index-factory)). Alternatively, you can pass an index you've defined yourself using faiss with the `custom_index` parameter of `Dataset.add_faiss_index` Here is the full documentation of `Dataset.add_faiss_index`: https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.Dataset.add_faiss_index
**Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I would like to be able to repeat many different queries on the dataset quickly. **Describe the solution you'd like** dataset objects currently have the .get_nearest_examples() method for text retrieval via FAISS. But this only allows retrieving a specific number of K texts instead of everything above a specified similarity threshold. It would be great if HF Datasets would also support the FAISS method .range_search() for retrieving texts above a certain similarity threshold. see details here: https://github.com/facebookresearch/faiss/issues/1273 **Describe alternatives you've considered** I've considered using native FAISS, but doing this via HF datasets would be better. My assumption is that Dataset features like dataset streaming make it easier to work with large datasets **Additional context** The concrete use-case is: I have a large dataset (wikipedia) and I would like to retrieve all paragraphs which are similar to a query. I will use sentence-transformers for encoding the texts.
44
Add FAISS .range_search() method for retrieving all texts from dataset above similarity threshold **Is your feature request related to a problem? Please describe.** I would like to retrieve all texts from a dataset, which are semantically similar to a specific input text (query), above a certain (cosine) similarity threshold. My dataset is very large (Wikipedia), so I need to use Datasets and FAISS for this. I would like to be able to repeat many different queries on the dataset quickly. **Describe the solution you'd like** dataset objects currently have the .get_nearest_examples() method for text retrieval via FAISS. But this only allows retrieving a specific number of K texts instead of everything above a specified similarity threshold. It would be great if HF Datasets would also support the FAISS method .range_search() for retrieving texts above a certain similarity threshold. see details here: https://github.com/facebookresearch/faiss/issues/1273 **Describe alternatives you've considered** I've considered using native FAISS, but doing this via HF datasets would be better. My assumption is that Dataset features like dataset streaming make it easier to work with large datasets **Additional context** The concrete use-case is: I have a large dataset (wikipedia) and I would like to retrieve all paragraphs which are similar to a query. I will use sentence-transformers for encoding the texts. `Dataset.add_faiss_index` has a `string_factory` parameter, used to set the type of index (see the faiss documentation about [index factory](https://github.com/facebookresearch/faiss/wiki/The-index-factory)). Alternatively, you can pass an index you've defined yourself using faiss with the `custom_index` parameter of `Dataset.add_faiss_index` Here is the full documentation of `Dataset.add_faiss_index`: https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.Dataset.add_faiss_index
[ -0.2393752932548523, -0.4297715127468109, -0.05574570596218109, -0.13598525524139404, -0.19099052250385284, -0.1674884408712387, -0.0928245484828949, 0.3763892352581024, 0.27264413237571716, 0.1312081217765808, -0.6072084307670593, -0.2813066244125366, 0.05412781238555908, 0.04952199012041092, -0.06679009646177292, -0.2007017433643341, 0.08921869844198227, -0.03149126470088959, 0.021988268941640854, 0.07913434505462646, -0.2975562512874603, -0.07779348641633987, 0.05807429552078247, -0.015174396336078644, -0.09562118351459503, 0.1341843605041504, -0.07912149280309677, 0.058054424822330475, -0.003212887793779373, -0.3826393485069275, -0.07991402596235275, 0.3641788363456726, 0.3667512536048889, 0.08234589546918869, -0.0001215562951983884, -0.163956418633461, 0.07068174332380295, 0.0015465598553419113, -0.1667524129152298, -0.0943269431591034, 0.08322260528802872, 0.03877665847539902, 0.05478207767009735, -0.13435576856136322, -0.14258113503456116, -0.07985660433769226, 0.05135176330804825, -0.37146320939064026, 0.11598646640777588, 0.41153445839881897, 0.07719626277685165, -0.2953481078147888, 0.1706131547689438, 0.029622934758663177, 0.35766053199768066, -0.07550118863582611, -0.24596360325813293, -0.1566673219203949, 0.6810164451599121, 0.1278693974018097, -0.19320142269134521, 0.4427551031112671, 0.11940544843673706, 0.09426696598529816, 0.2612612843513489, -0.019470475614070892, -0.1759011149406433, -0.13088276982307434, 0.06603575497865677, 0.3753107786178589, 0.2175789773464203, -0.28749075531959534, -0.5443273186683655, -0.42450791597366333, -0.1347523033618927, 0.031152011826634407, -0.09262370318174362, -0.32173970341682434, -0.35716089606285095, 0.2858261466026306, -0.23680992424488068, -0.390813946723938, -0.33225178718566895, 0.12191761285066605, -0.03737311065196991, -0.17642474174499512, -0.10996530205011368, -0.21125257015228271, 0.4567486345767975, -0.3707372546195984, -0.10297219455242157, -0.17909066379070282, 0.23011896014213562, 0.34593087434768677, -0.7369551658630371, -0.22230911254882812, 0.389566570520401, 0.047202784568071365, 0.5954681038856506, -0.03519570827484131, -0.17719994485378265, 0.17584839463233948, -0.4877275824546814, -0.011598825454711914, 0.18783338367938995, -0.2457100749015808, 0.004026629030704498, -0.2796395421028137, -0.04981079697608948, -0.004101520404219627, -0.21674253046512604, -0.10715886205434799, 0.03603455796837807, 0.06794260442256927, -0.11405935883522034, -0.26678332686424255, 0.12544241547584534, -0.5401080846786499, -0.1793985515832901, 0.04705558717250824, -0.2807285785675049, -0.01400180347263813, 0.07610582560300827, 0.2124069333076477, 0.3275899291038513, -0.01524985209107399, -0.022718342021107674, 0.17007319629192352, 0.014372950419783592, -0.30659225583076477, -0.07041805237531662, 0.0032252203673124313, 0.2051476538181305, 0.4730311930179596, 0.3221268951892853, -0.4716244637966156, -0.1577225625514984, -0.17925363779067993, 0.24414901435375214, 0.15183989703655243, -0.07340481132268906, -0.2778225839138031, 0.38114839792251587, -0.1181831955909729, -0.36978375911712646, -0.08970415592193604, -0.0014053061604499817, 0.0793515294790268, -0.2586160898208618, 0.0013251155614852905, 0.11887215077877045, -0.274588018655777, 0.20036004483699799, 0.08564778417348862, -0.02460434101521969, -0.03708390146493912, -0.2705560326576233, 0.8863793611526489, -0.4015747010707855, 0.24322018027305603, 0.08671258389949799, 0.14288745820522308, -0.3327256441116333, 0.05945378169417381, 0.11464851349592209, 0.5683507919311523, -0.3638506233692169, -0.14073795080184937, -0.16254815459251404, 0.2671727240085602, -0.2496609091758728, 0.2665127217769623, -0.042471744120121, -0.0022381171584129333, -0.08377499878406525, 0.46030116081237793, 0.5204256176948547, -0.08141037821769714, -0.2067115306854248, 0.3642066717147827, 0.1917692869901657, 0.16584350168704987, 0.15088403224945068, -0.19504624605178833, 0.059707071632146835, 0.009093858301639557, 0.25530481338500977, 0.21784234046936035, -0.1453198492527008, -0.1701221615076065, -0.217177614569664, -0.2874494791030884, 0.10317389667034149, 0.4201984703540802, 0.28941473364830017, -0.025666311383247375, 0.4467684030532837, -0.36510875821113586, 0.22574853897094727, -0.17550376057624817, -0.0145809855312109, 0.3222143054008484, 0.13992638885974884, 0.36981862783432007, 0.20870265364646912, -0.7582752108573914, 0.3106013238430023, 0.11812495440244675, 0.17496982216835022, 0.03391977399587631, 0.019409216940402985, -0.09358164668083191, 0.06242024898529053, -0.0815095454454422, -0.08985069394111633, -0.052263278514146805, -0.06728345900774002, -0.23685181140899658, 0.1118578165769577, -0.049160219728946686, -0.163614422082901, 0.43463605642318726, -0.23501229286193848, -0.08444613963365555, -0.3255522549152374, 0.4799967408180237, 0.016650155186653137, 0.21138712763786316, -0.13982132077217102, 0.287726491689682, 0.08198396116495132, 0.03254164010286331, -0.10154996067285538, 0.06141769140958786, -0.08189108967781067, -0.23055265843868256, 0.18509596586227417, 0.36988043785095215, 0.1868603378534317, -0.26867762207984924, 0.2123008668422699, -0.29512038826942444, 0.030906740576028824, 0.11187184602022171, 0.007161907851696014, 0.11068955063819885, 0.26797163486480713, 0.38028284907341003, 0.100858673453331, -0.25471964478492737, 0.14275914430618286, -0.0543210469186306, 0.10005328059196472, -0.0683697909116745, 0.2162306159734726, 0.028667835518717766, 0.12797953188419342, -0.1923123449087143, -0.3563539981842041, 0.4236922562122345, 0.18370212614536285, -0.1377359926700592, 0.13247403502464294, 0.4069989323616028, 0.009090237319469452, 0.0006939135491847992, -0.051139332354068756, -0.3145085573196411, 0.31019291281700134, 0.3093331754207611, -0.21905723214149475, -0.10785118490457535, 0.026018530130386353, -0.02533649653196335, 0.15894487500190735, 0.053505539894104004, 0.1837945282459259, -0.08967051655054092, 0.23034998774528503, 0.049859318882226944, -0.27175816893577576, -0.5784308910369873, -0.12285886704921722, -0.09207671880722046, -0.13464102149009705, 0.11062894016504288, -0.09363719820976257, -0.3195188045501709, -0.015454933978617191, 0.2686085104942322, -0.1281648576259613, 0.18239404261112213, 0.30615293979644775, 0.07321536540985107, -0.008477643132209778, 0.09851127117872238, -0.31915420293807983, 0.45544642210006714, 0.19876620173454285, -0.16951841115951538, -0.19186781346797943, 0.0844808891415596, 0.01917073503136635, 0.0641457587480545, -0.2494538128376007, 0.09186673164367676, 0.1583823561668396, 0.28968504071235657, 0.22803279757499695, -0.6101292967796326, -0.255065381526947, 0.09193356335163116, -0.002488914877176285, 0.19782951474189758, 0.10277964919805527, -0.13304807245731354, -0.06037016212940216, 0.1318533569574356, 0.027564994990825653, -0.09089751541614532, -0.246887668967247, -0.11262066662311554, -0.021557629108428955, 0.14764225482940674, 0.22624632716178894, -0.046592168509960175, -0.041063420474529266, -0.47889381647109985, 0.2200501561164856, -0.027845770120620728, 0.06149451062083244, 0.22356471419334412, -0.08638613671064377, 0.08450412005186081, -0.13445019721984863, 0.2473727911710739, -0.20434066653251648, 0.16809332370758057, 0.40890708565711975, 0.03469420224428177, -0.09386377036571503, -0.41488754749298096, -0.1927453726530075, -0.1996285319328308, 0.4786521792411804, -0.20027482509613037, -0.35500195622444153, -0.1570056527853012, 0.30496469140052795, -0.12740343809127808, 0.06059081107378006, 0.14043423533439636, 0.013872269541025162, -0.15170955657958984, 0.05186145007610321, -0.14849762618541718, 0.032980382442474365, -0.1002332791686058, 0.09546589851379395, 0.18016859889030457, 0.27618563175201416, 0.14614591002464294, 0.48674845695495605, 0.0662585198879242, 0.06744427978992462, 0.577489972114563, 0.26982879638671875, 0.25162404775619507, 0.08593884110450745, -0.3705374002456665, 0.32180526852607727, 0.07966608554124832, 0.10981723666191101, 0.35848385095596313, 0.011030111461877823, -0.0243214163929224, -0.03563714399933815, -0.5506519675254822, 0.07618957757949829, -0.12207189202308655, -0.011993950232863426, 0.011270809918642044, 0.4166647791862488, -0.04669234901666641, 0.10660240799188614, -0.1879664659500122, -0.13301974534988403, 0.04585370421409607, 0.16826054453849792, 0.15723171830177307, 0.10893787443637848, 0.031699132174253464, -0.08983001857995987, -0.45523589849472046, 0.3331625461578369, 0.39314156770706177, 0.06409092992544174, -0.1593196839094162, -0.043930359184741974, -0.1214129775762558, 0.1765614002943039, 0.8156044483184814, -0.18258929252624512, -0.11879323422908783, -0.16758765280246735, -0.162301704287529, -0.4080702066421509, 0.1134524941444397, 0.00026347115635871887, -0.007178119849413633, 0.11510984599590302, 0.21837246417999268, -0.10217355191707611, -0.27328017354011536, 0.09717374294996262, 0.014173673465847969, 0.17595918476581573, -0.38525786995887756, 0.15931560099124908, -0.0016883984208106995, -0.3532898426055908, 0.023912563920021057, 0.11492066830396652, 0.19510269165039062, -0.1846170723438263, -0.05717577785253525, 0.0829453244805336, 0.11059185117483139, 0.008884124457836151, -0.10443083941936493, 0.12125428766012192, 0.08319228142499924, 0.21072602272033691, 0.3510188162326813, 0.1612522006034851, 0.2119826376438141, 0.18999291956424713, 0.07352656126022339, -0.21704179048538208, -0.23211485147476196, 0.27869558334350586, -0.020655624568462372, 0.336905837059021, 0.03918743506073952, 0.6750361323356628, 0.08075544238090515, 0.28725993633270264, -0.026199158281087875, 0.19756481051445007, -0.09398597478866577, 0.07482598721981049, -0.24142712354660034, -0.3106239438056946, 0.6859314441680908, -0.16986574232578278, -0.17766353487968445, -0.048775799572467804, 0.4998275637626648, -0.41859543323516846, 0.23230069875717163, -0.12416120618581772, 0.7311686277389526, 0.10497528314590454, 0.03841095417737961, -0.3912239670753479, 0.11811552941799164, 0.4772769510746002, -0.5203253030776978, 0.17505672574043274, -0.10021951049566269, -0.24901001155376434, -0.12367227673530579, -0.10788916051387787, 0.1289646178483963, 0.18586768209934235, 0.007867425680160522, 0.34260785579681396, 0.7227451801300049, -0.11602930724620819, 0.2685599625110626, 0.26794859766960144, -0.3333061933517456, -0.24770274758338928, -0.22231237590312958, 0.05193529278039932, -0.18421857059001923, 0.23500682413578033, 0.1778739094734192, -0.09542427211999893, 0.12088474631309509, -0.019659044221043587, -0.5423792600631714, -0.02517026662826538, -0.35161253809928894, 0.1441197544336319, 0.3370399475097656, -0.023506321012973785, 0.6133503913879395, -0.5692212581634521, 0.3022013306617737, -0.101605623960495, -0.5282273292541504, 0.11369679868221283, 0.04191359877586365, -0.14243559539318085, 0.1941165030002594, -0.31164833903312683, 0.4854537546634674, 0.15411517024040222, -0.36992353200912476, 0.10938822478055954, 0.32329314947128296, -0.38709914684295654, -0.3198164701461792, -0.15184266865253448, 0.12826192378997803, -0.16009381413459778, 0.07045286893844604, 0.019959650933742523, -0.07503830641508102, -0.13031436502933502, 0.021569492295384407, 0.13228586316108704, -0.11518008261919022, 0.11241599917411804, -0.04694420471787453, -0.0890817791223526, -0.2476681023836136, 0.26612523198127747, -0.08789931982755661, -0.013613514602184296, 0.36624011397361755, 0.3699166774749756, -0.18897052109241486, 0.005618762224912643, -0.3271346688270569, 0.3913593888282776, 0.01905122399330139, -0.03116205707192421, -0.0440295971930027, -0.07991361618041992, 0.10334594547748566, 0.17774000763893127, 0.057227931916713715, -0.41293594241142273, -0.06602121144533157, -0.15836818516254425, 0.05401221662759781, 0.1189935952425003, -0.2794390618801117, 0.206973135471344, 0.08120335638523102, 0.13800515234470367, -0.0456475168466568, 0.0026716850697994232, -0.201125368475914, 0.014711389318108559, 0.05793093144893646, 0.07954880595207214, -0.1156018078327179, -0.07935727387666702, 0.06703347712755203, -0.10402873158454895, -0.04643629491329193, 0.19396384060382843, -0.19451333582401276, -0.13880586624145508, -0.11276966333389282, 0.14280004799365997, 0.002213127911090851, -0.3005387783050537, -0.36643168330192566, -0.21892094612121582, -0.11888578534126282, -0.20188838243484497, 0.03790782392024994, 0.14716225862503052, 0.12250769138336182, 0.05221407487988472, 0.07855971157550812, -0.698343813419342, 0.14667032659053802, 0.2032892107963562, 0.24773050844669342, 0.6338187456130981, 0.057899605482816696, 0.38674741983413696, -0.09443384408950806, -0.13906224071979523, -0.16207818686962128, 0.39966297149658203, 0.3144569993019104, 0.01653372123837471, 0.07834862172603607, 0.10300013422966003, -0.4780353605747223, 0.37886425852775574, 0.37786996364593506, 0.19850176572799683, -0.1330171376466751, -0.054942697286605835, 0.010717629455029964, 0.12892070412635803, -0.26308172941207886, -0.2903263568878174, 0.26472821831703186, -0.2678649425506592, 0.27513810992240906, 0.32090523838996887, 0.24515196681022644, 0.13005416095256805, 0.2260868400335312, 0.006001276895403862, 0.08985531330108643, 0.3660852909088135, -0.23141324520111084, -0.07317641377449036, 0.589521050453186, -0.1563493311405182, 0.4074375629425049, 0.41131719946861267, 0.6023088097572327, 0.643143355846405, -0.017133422195911407, 0.12217883765697479, -0.24465897679328918, 0.10283300280570984, 0.3559911251068115, -0.3678111732006073, 0.37035319209098816, -0.010749250650405884, -0.08864927291870117, 0.02467764914035797, -0.13783784210681915, -0.07210855931043625, 0.29098793864250183, -0.29929789900779724, 0.05678904056549072, 0.005650386214256287, 0.14872482419013977, 0.032952018082141876, 0.41547876596450806, -0.29517045617103577, -0.2586495876312256, 0.032663118094205856, 0.009811673313379288, -0.39562278985977173, 0.12169958651065826, -0.04725739359855652, 0.4237597584724426, -0.3915208876132965, 0.29746830463409424, 0.2681385576725006, 0.44683772325515747, -0.21109603345394135, 0.04602443426847458, 0.1510363519191742, -0.30417901277542114, 0.47870346903800964, 0.13213908672332764, 0.1352621614933014, 0.1132427528500557, -0.1844440996646881, 0.27713528275489807, -0.23540930449962616, -0.13054536283016205, -0.10250010341405869, -0.20662783086299896, -0.16985851526260376, -0.2365535944700241, 0.3785644769668579, -0.020703673362731934, 0.0662255585193634, 0.02724633924663067, -0.06118180230259895, -0.12337422370910645, -0.7353439927101135, 0.12112385034561157, 0.2353498637676239, 0.0685296580195427, -0.20682820677757263, 0.07209047675132751, -0.3362482488155365, -0.12073667347431183, 0.4822385907173157, -0.26782867312431335, 0.016800083220005035, -0.11988722532987595, 0.0018793325871229172, -0.10911588370800018, 0.1709154099225998, 0.5430558323860168, 0.5577342510223389, -0.3589593768119812, 0.07529827952384949, 0.06374172866344452, -0.12189645320177078, -0.12460717558860779, 0.025900086387991905, 0.48253750801086426, 0.33298492431640625, 0.0055807530879974365, 0.045002151280641556, 0.2865639328956604, 0.11262958496809006, 0.0724772959947586, 0.06984730809926987, -0.31700727343559265, -0.3389730751514435, -0.010878302156925201, 0.04172340780496597, -0.001685958355665207, -0.18479326367378235, 0.2871715724468231, -0.18950504064559937, -0.09193895757198334, -0.1528242528438568, 0.12245053052902222, 0.23089149594306946, -0.3862817585468292, 0.043780893087387085, 0.13385355472564697, -0.04729452729225159, -0.09510616958141327, 0.056494273245334625, 0.02407011389732361, -0.06636554002761841, -0.28790390491485596, 0.08770844340324402, -0.057617153972387314, 0.067278191447258, -0.047876790165901184, -0.6718834638595581, 0.00427851639688015, 0.3414321541786194, 0.08746953308582306, -0.22499285638332367, -0.005453137680888176, 0.01899944432079792, -0.3549012839794159, 0.01641947589814663, -0.055201660841703415, 0.2272714078426361, -0.1400967836380005, 0.35433530807495117, 0.04784500598907471, -0.2322193831205368, 0.5103306770324707, -0.3802407383918762, -0.15655644237995148, -0.204371839761734, 0.22044403851032257, 0.6790192723274231, -0.20879364013671875, -0.56749427318573, -0.12027422338724136, 0.4698373079299927, 0.2898470461368561, -0.01949676126241684, 0.2524752616882324, -0.0489199236035347, -0.17152248322963715, -0.20850390195846558, -0.08525639772415161, 0.20890644192695618, 0.28453779220581055, 0.06147601827979088, -0.11900148540735245 ]
https://github.com/huggingface/datasets/issues/4027
ElasticSearch Indexing example: TypeError: __init__() missing 1 required positional argument: 'scheme'
Hi, @MoritzLaurer, thanks for reporting. Normally this is due to a mismatch between the versions of your Elasticsearch client and server: - your ES client is passing only keyword arguments to your ES server - whereas your ES server expects a positional argument called 'scheme' In order to fix this, you should align the major versions of both Elasticsearch client and server. You can have more info: - on this other issue page: https://github.com/huggingface/datasets/issues/3956#issuecomment-1072115173 - Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility Feel free to re-open this issue if the problem persists. Duplicate of: - #3956
## Describe the bug I am following the example in the documentation for elastic search step by step (on google colab): https://huggingface.co/docs/datasets/faiss_es#elasticsearch ``` from datasets import load_dataset squad = load_dataset('crime_and_punish', split='train[:1000]') ``` When I run the line: `squad.add_elasticsearch_index("context", host="localhost", port="9200")` I get the error: `TypeError: __init__() missing 1 required positional argument: 'scheme'` ## Expected results No error message ## Actual results ``` TypeError Traceback (most recent call last) [<ipython-input-23-9205593edef3>](https://localhost:8080/#) in <module>() 1 import elasticsearch ----> 2 squad.add_elasticsearch_index("text", host="localhost", port="9200") 6 frames [/usr/local/lib/python3.7/dist-packages/elasticsearch/_sync/client/utils.py](https://localhost:8080/#) in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.2.0 - Platform: Linux, Google Colab - Python version: Google Colab (probably 3.7) - PyArrow version: ?
93
ElasticSearch Indexing example: TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug I am following the example in the documentation for elastic search step by step (on google colab): https://huggingface.co/docs/datasets/faiss_es#elasticsearch ``` from datasets import load_dataset squad = load_dataset('crime_and_punish', split='train[:1000]') ``` When I run the line: `squad.add_elasticsearch_index("context", host="localhost", port="9200")` I get the error: `TypeError: __init__() missing 1 required positional argument: 'scheme'` ## Expected results No error message ## Actual results ``` TypeError Traceback (most recent call last) [<ipython-input-23-9205593edef3>](https://localhost:8080/#) in <module>() 1 import elasticsearch ----> 2 squad.add_elasticsearch_index("text", host="localhost", port="9200") 6 frames [/usr/local/lib/python3.7/dist-packages/elasticsearch/_sync/client/utils.py](https://localhost:8080/#) in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.2.0 - Platform: Linux, Google Colab - Python version: Google Colab (probably 3.7) - PyArrow version: ? Hi, @MoritzLaurer, thanks for reporting. Normally this is due to a mismatch between the versions of your Elasticsearch client and server: - your ES client is passing only keyword arguments to your ES server - whereas your ES server expects a positional argument called 'scheme' In order to fix this, you should align the major versions of both Elasticsearch client and server. You can have more info: - on this other issue page: https://github.com/huggingface/datasets/issues/3956#issuecomment-1072115173 - Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility Feel free to re-open this issue if the problem persists. Duplicate of: - #3956
[ -0.01408759132027626, -0.20495694875717163, -0.028012992814183235, -0.21516425907611847, -0.047053635120391846, 0.20348817110061646, 0.3370678126811981, 0.04520611837506294, -0.027164697647094727, 0.2955164909362793, 0.18462663888931274, 0.3122885525226593, 0.08217792958021164, -0.2940436005592346, 0.17807023227214813, -0.16919200122356415, 0.09895189106464386, 0.09229319542646408, 0.3542940616607666, -0.004636745899915695, -0.26787087321281433, 0.2606114149093628, -0.3838886618614197, -0.34752601385116577, -0.14738355576992035, 0.1454893946647644, -0.3311671316623688, -0.06759312003850937, -0.05125557631254196, -0.5394167304039001, 0.5145987272262573, -0.30489665269851685, -0.017161322757601738, 0.3263522684574127, -0.00012484988837968558, 0.19553835690021515, 0.46409469842910767, -0.18871775269508362, -0.1119825541973114, -0.38691622018814087, -0.33334702253341675, -0.1590549200773239, 0.3932936489582062, -0.4302612245082855, -0.13810671865940094, 0.20506860315799713, 0.23107701539993286, -0.26444315910339355, 0.32550379633903503, 0.38429126143455505, 0.11530689895153046, -0.19904190301895142, -0.13483434915542603, -0.2737007737159729, 0.1497153341770172, 0.12795490026474, -0.1355699598789215, -0.0780596137046814, -0.04407671093940735, 0.49123817682266235, 0.30631497502326965, 0.17617276310920715, 0.04630451649427414, -0.1378241628408432, -0.12861749529838562, 0.17181672155857086, -0.010235391557216644, -0.26001787185668945, -0.15973368287086487, -0.13452067971229553, 0.24976268410682678, 0.008049704134464264, -0.36072027683258057, 0.07328856736421585, 0.22534669935703278, -0.0900437980890274, 0.26168379187583923, 0.17774774134159088, -0.1288902759552002, 0.1473071128129959, 0.36180466413497925, -0.15542316436767578, -0.16988426446914673, 0.4572398066520691, -0.04064098745584488, 0.2947213649749756, -0.07827910035848618, 0.02153516188263893, -0.01378590241074562, 0.019187146797776222, 0.108695849776268, 0.27414852380752563, 0.2770155966281891, 0.23393087089061737, -0.19734351336956024, 0.06646598130464554, 0.21258434653282166, -0.12742319703102112, -0.0883563756942749, -0.4891620874404907, 0.04064839705824852, -0.1776767075061798, 0.3306072950363159, 0.32525700330734253, -0.1676275134086609, 0.19160565733909607, 0.2760939300060272, 0.09856253117322922, 0.0027733594179153442, -0.27722135186195374, 0.20230641961097717, -0.11586257070302963, -0.021978948265314102, -0.21485668420791626, 0.1289791315793991, 0.11767115443944931, 0.34294795989990234, -0.12145014107227325, -0.19514994323253632, -0.09124761074781418, -0.5718756914138794, -0.028876887634396553, 0.018216393887996674, 0.15395627915859222, 0.2623201310634613, -0.3855198621749878, 0.4139161705970764, 0.23542189598083496, -0.17189601063728333, 0.014945878647267818, -0.2840617895126343, 0.17716966569423676, -0.040093548595905304, 0.0032817283645272255, 0.16335226595401764, -0.7050958871841431, 0.49085235595703125, 0.18129375576972961, -0.07309694588184357, 0.08936505019664764, 0.21065166592597961, -0.11640091240406036, -0.08068715780973434, 0.21303722262382507, 0.014963150024414062, -0.19029007852077484, 0.10100284218788147, 0.05294279009103775, -0.21913915872573853, 0.13106726109981537, -0.5586692094802856, -0.5888125896453857, -0.41396191716194153, 0.09727202355861664, -0.12851780652999878, 0.10590530186891556, -0.38659900426864624, 0.3018227219581604, 0.19778797030448914, -0.05485444888472557, -0.19444110989570618, -0.18361134827136993, -0.2616663873195648, 0.016808195039629936, 0.24177852272987366, 0.25446945428848267, 0.016624439507722855, -0.24958190321922302, -0.16224560141563416, 0.5664838552474976, 0.042989958077669144, 0.0839948058128357, -0.3489181697368622, 0.43146777153015137, -0.21467088162899017, 0.4575774669647217, 0.6768684983253479, -0.39397132396698, 0.10998169332742691, -0.23383522033691406, -0.19747766852378845, -0.2687280774116516, 0.0513073094189167, -0.07603210210800171, 0.08219421654939651, 0.180033877491951, 0.21791742742061615, 0.15690937638282776, 0.10008533298969269, 0.05971768498420715, -0.2817155420780182, 0.049145884811878204, -0.13220404088497162, 0.053648922592401505, -0.040716078132390976, 0.12303555756807327, 0.11341473460197449, -0.13880208134651184, -0.07138528674840927, 0.1592884361743927, 0.01647442951798439, 0.3886253237724304, 0.43680596351623535, 0.05460122972726822, 0.3389120101928711, -0.007994098588824272, -0.02157452702522278, 0.041705213487148285, 0.3164815902709961, 0.44583892822265625, -0.27332407236099243, -0.1782187521457672, -0.17678695917129517, -0.08834979683160782, -0.13067887723445892, 0.08687066286802292, -0.012537350878119469, -0.1745131015777588, -0.2260594516992569, 0.171965092420578, -0.19106046855449677, 0.05318395048379898, -0.17733930051326752, -0.14961229264736176, -0.38545334339141846, 0.3423106372356415, -0.28418728709220886, -0.24212300777435303, -0.27893921732902527, -0.31277766823768616, 0.19323840737342834, -0.25700104236602783, -0.2505936026573181, 0.245107501745224, 0.33049771189689636, -0.1742209643125534, 0.130560040473938, -0.15936310589313507, 0.19683533906936646, -0.5264204740524292, -0.2745041847229004, 0.1549554169178009, 0.0807788223028183, -0.08867108076810837, -0.16057151556015015, -0.0019831061363220215, 0.056058622896671295, 0.2487417459487915, -0.31398463249206543, -0.07207246869802475, 0.19720864295959473, 0.12756748497486115, -0.15852484107017517, -0.05530070886015892, 0.01624225825071335, 0.06928206980228424, -0.05896826833486557, -0.1135886013507843, -0.08859160542488098, -0.24402937293052673, -0.053761761635541916, 0.3116396367549896, 0.021891742944717407, 0.2878856956958771, 0.10985760390758514, -0.21370789408683777, 0.2092222273349762, -0.4638119339942932, 0.40650802850723267, 0.19236651062965393, -0.1401073932647705, 0.00266152061522007, 0.008812411688268185, -0.048432040959596634, 0.24823397397994995, 0.14740021526813507, 0.13966378569602966, -0.10620180517435074, 0.3250315189361572, 0.24337036907672882, -0.09912639856338501, -0.5482810139656067, 0.09443724900484085, 0.0961156114935875, -0.46535104513168335, 0.1609465330839157, -0.011863933876156807, 0.05149022489786148, -0.005279178731143475, 0.2132713943719864, 0.2558794915676117, -0.4162697196006775, -0.009879689663648605, 0.23700831830501556, -0.06706760823726654, 0.25852158665657043, -0.20571647584438324, 0.18870575726032257, 0.42671307921409607, -0.4668276607990265, -0.03636450320482254, 0.06973107904195786, -0.191557377576828, -0.05498052388429642, -0.23263207077980042, 0.3489534556865692, 0.08664188534021378, -0.37190303206443787, -0.03850406035780907, -0.10927828401327133, -0.5909207463264465, 0.2092445194721222, 0.11298384517431259, 0.4363518953323364, 0.3587816059589386, 0.10241435468196869, -0.8049812912940979, -0.33849021792411804, 0.23868155479431152, 0.271696537733078, -0.2504442632198334, -0.038117505609989166, -0.2124159038066864, 0.01283848937600851, -0.21053992211818695, -0.42891165614128113, -0.029253648594021797, -0.2843356728553772, -0.1035727709531784, -0.19217488169670105, 0.09969530254602432, 0.4015500247478485, 0.17780856788158417, 0.13762697577476501, -0.00556613365188241, 0.10912761092185974, -0.08818362653255463, -0.17966771125793457, 0.26600733399391174, -0.25228962302207947, -0.09287746250629425, -0.09052537381649017, -0.1966739445924759, -0.026936594396829605, 0.45405417680740356, -0.030655749142169952, -0.32234472036361694, 0.11505001038312912, 0.2820907235145569, -0.31139737367630005, 0.17399939894676208, 0.42001786828041077, -0.06802276521921158, 0.09964446723461151, -0.03472014144062996, -0.3330879509449005, 0.4974853992462158, 0.5690907835960388, 0.285260409116745, 0.010773085057735443, 0.3783835768699646, -0.011527486145496368, 0.5415951013565063, -0.0832362174987793, -0.1912868469953537, 0.43442097306251526, -0.14714600145816803, 0.16476275026798248, -0.2610693573951721, -0.24154096841812134, -0.21739067137241364, 0.4637214243412018, -0.4169574975967407, -0.06367339193820953, 0.041838906705379486, -0.3310038149356842, -0.14973777532577515, -0.34219110012054443, -0.20192083716392517, -0.17233829200267792, 0.0761541873216629, 0.26277777552604675, 0.42809662222862244, -0.12132705748081207, 0.007697500288486481, -0.24122536182403564, -0.07013344764709473, -0.20602858066558838, 0.2878921627998352, 0.1933700442314148, 0.22359579801559448, 0.11262406408786774, -0.30328643321990967, -0.2943882942199707, 0.1465829610824585, 0.2208106368780136, 0.23689863085746765, 0.13041724264621735, 0.17978757619857788, 0.0775790736079216, 0.35877567529678345, 0.3955466151237488, -0.293706476688385, -0.3027482032775879, -0.08269856870174408, 0.10851050913333893, -0.5308014750480652, -0.1472185105085373, -0.04522586986422539, 0.48175784945487976, 0.3414023518562317, 0.37607574462890625, -0.21860888600349426, 0.028513122349977493, 0.08224499970674515, -0.05119691789150238, 0.11303266882896423, -0.16926611959934235, -0.3642418682575226, -0.6185517907142639, 0.07055378705263138, 0.3608604371547699, 0.36860281229019165, 0.06932321935892105, 0.6448646783828735, 0.03990190103650093, -0.17482101917266846, 0.13508820533752441, -0.1298997849225998, 0.09211401641368866, 0.262422114610672, -0.05733765661716461, 0.007264561951160431, 0.1873982548713684, 0.06578458100557327, 0.3270631432533264, 0.15530288219451904, -0.08724680542945862, 0.1038522943854332, 0.06911684572696686, -0.19468578696250916, 0.3617571294307709, 0.19465026259422302, 0.015564885921776295, 0.039526522159576416, -0.4413895010948181, -0.03116772323846817, 0.20176658034324646, 0.08198732882738113, 0.42561277747154236, -0.06256818771362305, 0.018145907670259476, -0.3295038640499115, 0.49044349789619446, -0.27059003710746765, -0.11711879819631577, 0.23907342553138733, 0.5868911743164062, -0.5034991502761841, 0.857638418674469, 0.04137672483921051, 0.6131057739257812, 0.460016131401062, -0.08557195961475372, 0.43891292810440063, 0.5164861679077148, 0.4239632785320282, 0.32344311475753784, 0.38734203577041626, -0.03563394024968147, -0.1260494589805603, -0.019166741520166397, -0.23818275332450867, -0.06066795438528061, -0.05708499997854233, -0.4959148168563843, 0.29508188366889954, -0.4522404670715332, 0.2563917338848114, -0.020647836849093437, 0.18485060334205627, 0.0914570689201355, -0.0926518589258194, -0.188289612531662, 0.06956629455089569, 0.04156168922781944, 0.37516283988952637, 0.0753217488527298, -0.023770160973072052, -0.09465639293193817, -0.13109539449214935, -0.1550571173429489, 0.13515886664390564, -0.2697773575782776, 0.6709350347518921, -0.19171516597270966, 0.1499413251876831, 0.2686460018157959, 0.23488843441009521, 0.1353418231010437, 0.034327611327171326, -0.05201633274555206, 0.22898812592029572, 0.22716566920280457, -0.18576258420944214, 0.16803735494613647, -0.311384379863739, 0.12379424273967743, 0.03502919524908066, -0.18355877697467804, -0.1252502202987671, -0.1127319484949112, -0.45390838384628296, -0.07907480001449585, 0.04722261428833008, -0.492486834526062, -0.1255006492137909, -0.37319907546043396, 0.07930206507444382, -0.12618295848369598, -0.04480261728167534, 0.04188494011759758, 0.16355282068252563, -0.06334728002548218, 0.18570111691951752, 0.12762221693992615, -0.2715604603290558, 0.07797572016716003, 0.3935616910457611, 0.16940775513648987, -0.06313479691743851, 0.473827600479126, -0.2741076350212097, -0.19825167953968048, 0.0705065205693245, 0.0052980706095695496, 0.026662852615118027, -0.028592459857463837, 0.0659879595041275, -0.22526153922080994, 0.14532874524593353, 0.16497085988521576, 0.09610995650291443, 0.19568468630313873, 0.2208714783191681, -0.1535724550485611, -0.07484620064496994, 0.27601879835128784, 0.1892821490764618, 0.08584344387054443, -0.0006305091083049774, -0.33174434304237366, 0.16647790372371674, 0.12064674496650696, -0.420356810092926, -0.22997921705245972, 0.2189617156982422, -0.06528140604496002, 0.2132718712091446, -0.4053952991962433, 0.2268463373184204, 0.37421998381614685, -0.29291871190071106, 0.022962236776947975, -0.03834179788827896, 0.09019161760807037, -0.10048148036003113, -0.22227522730827332, 0.15784290432929993, -0.048933982849121094, 0.18237341940402985, 0.0706527978181839, -0.36673492193222046, -0.14651931822299957, -0.20998241007328033, -0.19835029542446136, 0.39579498767852783, 0.05004782974720001, -0.07238982617855072, 0.1790326088666916, -0.14602383971214294, 0.11142325401306152, 0.029011180624365807, -0.07276551425457001, -0.052680209279060364, -0.1387770026922226, 0.42217162251472473, -0.033244069665670395, 0.058358341455459595, 0.17494146525859833, 0.16355693340301514, -0.10336622595787048, 0.19630426168441772, 0.006681658327579498, -0.23780246078968048, -0.01798570156097412, -0.003073683939874172, -0.08857102692127228, 0.09438329190015793, -0.28083252906799316, -0.05994617938995361, -0.25812456011772156, 0.15679700672626495, -0.1660166084766388, 0.24747389554977417, 0.3641155958175659, 0.15694385766983032, 0.1433369368314743, 0.2504238188266754, 0.37406742572784424, 0.10235466063022614, -0.2459065169095993, 0.026280611753463745, 0.4414122998714447, 0.00351574644446373, 0.04378471523523331, -0.043722156435251236, -0.14939136803150177, 0.23142790794372559, 0.12127430737018585, 0.024208389222621918, 0.2294054925441742, 0.17049235105514526, -0.051572494208812714, 0.33645573258399963, 0.3449573516845703, -0.010366681963205338, 0.2188025414943695, 0.04518161341547966, 0.24503788352012634, 0.4288565218448639, 0.17226818203926086, -0.04970251023769379, 0.10216149687767029, 0.4429137110710144, -0.21068644523620605, 0.010916096158325672, -0.20718875527381897, -0.01541539654135704, -0.18936532735824585, 0.16826669871807098, -0.09207527339458466, -0.06498493254184723, -0.3754052221775055, -0.3389110267162323, 0.04656009376049042, 0.036322660744190216, -0.18663012981414795, 0.09122162312269211, -0.08169899880886078, 0.14027667045593262, -0.08470643311738968, 0.26090142130851746, 0.39319702982902527, -0.23732295632362366, 0.15065497159957886, 0.04374521225690842, -0.43570420145988464, 0.042641595005989075, 0.545116126537323, 0.3304438292980194, 0.28976258635520935, -0.04846278205513954, -0.05206332728266716, 0.17341679334640503, -0.16841955482959747, 0.20290620625019073, -0.17797298729419708, -0.07106952369213104, -0.19846417009830475, 0.013140033930540085, 0.06426946073770523, 0.009058578871190548, 0.14587774872779846, 0.021243419498205185, 0.41385969519615173, -0.009396178647875786, -0.18160772323608398, -0.36456382274627686, 0.12703955173492432, 0.28971433639526367, 0.059723805636167526, -0.152476966381073, -0.029449578374624252, 0.3661186695098877, 0.02190328761935234, -0.0452674925327301, 0.28815120458602905, 0.032245855778455734, -0.09553417563438416, 0.010379873216152191, 0.32208189368247986, -0.06892784684896469, -0.19436968863010406, -0.14263662695884705, -0.18301913142204285, 0.11500486731529236, -0.2683101296424866, -0.03998063504695892, 0.4594815969467163, 0.39436057209968567, -0.08430617302656174, 0.1706063449382782, -0.11568009853363037, -0.06309731304645538, -0.2656211853027344, -0.04493320733308792, -0.37651917338371277, -0.19481782615184784, 0.039019566029310226, -0.028637615963816643, -0.044375017285346985, -0.15056005120277405, -0.1648135483264923, -0.21987701952457428, 0.013287633657455444, -0.3373045325279236, -0.11036500334739685, 0.23124557733535767, -0.3370544910430908, 0.2366676926612854, -0.04650145024061203, 0.23123320937156677, -0.09606839716434479, 0.03802545368671417, 0.11796164512634277, -0.5372486710548401, -0.16845817863941193, 0.17645756900310516, 0.031412217766046524, 0.2774293124675751, -0.04517146944999695, -0.4745863378047943, -0.13367760181427002, 0.39141786098480225, -0.012751966714859009, -0.3492637872695923, -0.4485069811344147, 0.1860952526330948, -0.333055317401886, 0.18401533365249634, -0.22518491744995117, -0.09525648504495621, -0.13281401991844177, 0.15396438539028168, -0.10451466590166092, -0.5255805253982544, 0.5993944406509399, -0.26957041025161743, 0.020887300372123718, -0.294267475605011, 0.13699078559875488, 0.7128174901008606, 0.40318864583969116, -0.2666953504085541, -0.19865606725215912, 0.27999985218048096, -0.04805523902177811, -0.34353718161582947, 0.09813837707042694, 0.4198402464389801, 0.12018939852714539, -0.22188645601272583, -0.22075238823890686, -0.01710665598511696, 0.010462036356329918, -0.36729851365089417, -0.2338237315416336 ]
https://github.com/huggingface/datasets/issues/4027
ElasticSearch Indexing example: TypeError: __init__() missing 1 required positional argument: 'scheme'
1. Check elasticsearch version ``` import elasticsearch print(elasticsearch.__version__) ``` Ex: 7.9.1 2. Uninstall current elasticsearch package `pip uninstall elasticsearch` 3. Install elasticsearch 7.9.1 package `pip install elasticsearch==7.9.1`
## Describe the bug I am following the example in the documentation for elastic search step by step (on google colab): https://huggingface.co/docs/datasets/faiss_es#elasticsearch ``` from datasets import load_dataset squad = load_dataset('crime_and_punish', split='train[:1000]') ``` When I run the line: `squad.add_elasticsearch_index("context", host="localhost", port="9200")` I get the error: `TypeError: __init__() missing 1 required positional argument: 'scheme'` ## Expected results No error message ## Actual results ``` TypeError Traceback (most recent call last) [<ipython-input-23-9205593edef3>](https://localhost:8080/#) in <module>() 1 import elasticsearch ----> 2 squad.add_elasticsearch_index("text", host="localhost", port="9200") 6 frames [/usr/local/lib/python3.7/dist-packages/elasticsearch/_sync/client/utils.py](https://localhost:8080/#) in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.2.0 - Platform: Linux, Google Colab - Python version: Google Colab (probably 3.7) - PyArrow version: ?
27
ElasticSearch Indexing example: TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug I am following the example in the documentation for elastic search step by step (on google colab): https://huggingface.co/docs/datasets/faiss_es#elasticsearch ``` from datasets import load_dataset squad = load_dataset('crime_and_punish', split='train[:1000]') ``` When I run the line: `squad.add_elasticsearch_index("context", host="localhost", port="9200")` I get the error: `TypeError: __init__() missing 1 required positional argument: 'scheme'` ## Expected results No error message ## Actual results ``` TypeError Traceback (most recent call last) [<ipython-input-23-9205593edef3>](https://localhost:8080/#) in <module>() 1 import elasticsearch ----> 2 squad.add_elasticsearch_index("text", host="localhost", port="9200") 6 frames [/usr/local/lib/python3.7/dist-packages/elasticsearch/_sync/client/utils.py](https://localhost:8080/#) in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.2.0 - Platform: Linux, Google Colab - Python version: Google Colab (probably 3.7) - PyArrow version: ? 1. Check elasticsearch version ``` import elasticsearch print(elasticsearch.__version__) ``` Ex: 7.9.1 2. Uninstall current elasticsearch package `pip uninstall elasticsearch` 3. Install elasticsearch 7.9.1 package `pip install elasticsearch==7.9.1`
[ -0.010928452014923096, -0.20841486752033234, -0.030344847589731216, -0.21521975100040436, -0.049391381442546844, 0.19440409541130066, 0.3211391270160675, 0.05363651365041733, -0.030626265332102776, 0.2950674891471863, 0.16848495602607727, 0.3123597800731659, 0.07908841222524643, -0.29820719361305237, 0.17830483615398407, -0.16951818764209747, 0.0953662097454071, 0.08938314020633698, 0.3597414195537567, -0.0001341216266155243, -0.2681668996810913, 0.27072060108184814, -0.3808645009994507, -0.34263861179351807, -0.14528444409370422, 0.1483299732208252, -0.32850563526153564, -0.059799641370773315, -0.05637530982494354, -0.5401321053504944, 0.5056201815605164, -0.3077772557735443, -0.02797543630003929, 0.32380804419517517, -0.00012456497643142939, 0.20046962797641754, 0.4566853642463684, -0.18978603184223175, -0.1050042062997818, -0.38163143396377563, -0.32427912950515747, -0.14315040409564972, 0.38631683588027954, -0.42981022596359253, -0.14276188611984253, 0.2052716165781021, 0.22420434653759003, -0.2585539221763611, 0.322074830532074, 0.396012544631958, 0.11808799207210541, -0.19158783555030823, -0.12100480496883392, -0.2766067385673523, 0.16726654767990112, 0.11623971164226532, -0.13732516765594482, -0.06719663739204407, -0.04479318857192993, 0.48526474833488464, 0.30862170457839966, 0.17019504308700562, 0.04691319912672043, -0.14497004449367523, -0.14284348487854004, 0.16869674623012543, -0.004666313529014587, -0.24931710958480835, -0.16418731212615967, -0.13906601071357727, 0.23222556710243225, 0.01233256608247757, -0.3605784475803375, 0.0801224336028099, 0.22357632219791412, -0.08171841502189636, 0.26367270946502686, 0.1744334101676941, -0.1183011531829834, 0.1601189523935318, 0.3768143653869629, -0.15783201158046722, -0.16473782062530518, 0.458207905292511, -0.03649769350886345, 0.31522560119628906, -0.06966431438922882, 0.025914955884218216, -0.014894548803567886, 0.01012471504509449, 0.10407789051532745, 0.28699931502342224, 0.2680363655090332, 0.2227672040462494, -0.19869695603847504, 0.07008722424507141, 0.2123832404613495, -0.13715150952339172, -0.08211816847324371, -0.4896588921546936, 0.039224836975336075, -0.17449134588241577, 0.3402675986289978, 0.3235810101032257, -0.18395788967609406, 0.20026420056819916, 0.2683779299259186, 0.09292346239089966, 0.011740297079086304, -0.2699144184589386, 0.19392108917236328, -0.11707005649805069, -0.025719065219163895, -0.21884535253047943, 0.13839292526245117, 0.11304312944412231, 0.3492308259010315, -0.11318805813789368, -0.19494062662124634, -0.10493539273738861, -0.569733738899231, -0.025582661852240562, 0.02585747092962265, 0.16643957793712616, 0.25831514596939087, -0.3928649425506592, 0.41637247800827026, 0.23080343008041382, -0.16725575923919678, 0.015523393638432026, -0.28811824321746826, 0.17948997020721436, -0.03476756066083908, -0.0018361471593379974, 0.15899460017681122, -0.7074714303016663, 0.49152201414108276, 0.1758694052696228, -0.07723647356033325, 0.07398422062397003, 0.20970101654529572, -0.11644500494003296, -0.08791809529066086, 0.21511031687259674, 0.009352978318929672, -0.20252470672130585, 0.09957006573677063, 0.04558275640010834, -0.21417352557182312, 0.1238572746515274, -0.558539092540741, -0.5893306136131287, -0.4152390956878662, 0.10179930925369263, -0.11980390548706055, 0.10193957388401031, -0.3774004876613617, 0.3031483590602875, 0.20047280192375183, -0.05718749761581421, -0.18823853135108948, -0.18350829184055328, -0.26753363013267517, 0.015765270218253136, 0.24442163109779358, 0.24720844626426697, 0.02373340353369713, -0.23893386125564575, -0.154175266623497, 0.5674487948417664, 0.0456039160490036, 0.09019391238689423, -0.34142714738845825, 0.4384990930557251, -0.2175072580575943, 0.45839905738830566, 0.6863567233085632, -0.39916959404945374, 0.10891477763652802, -0.23894734680652618, -0.19319403171539307, -0.2675284743309021, 0.05255482345819473, -0.07933615148067474, 0.07785872370004654, 0.19436725974082947, 0.21908323466777802, 0.15555614233016968, 0.11354731023311615, 0.06637732684612274, -0.2863067388534546, 0.05035658925771713, -0.13665243983268738, 0.05116788670420647, -0.03676779940724373, 0.12168195098638535, 0.11961863934993744, -0.13656070828437805, -0.07763702422380447, 0.16400516033172607, 0.0188758447766304, 0.379952609539032, 0.44518229365348816, 0.05731178820133209, 0.34384551644325256, -0.017377272248268127, -0.013463303446769714, 0.04747243970632553, 0.2990871071815491, 0.4400058686733246, -0.28376299142837524, -0.1822521835565567, -0.1843368113040924, -0.08742986619472504, -0.11759604513645172, 0.08688133955001831, -0.007475830614566803, -0.17004457116127014, -0.21072842180728912, 0.17769749462604523, -0.18943698704242706, 0.03909657895565033, -0.17709913849830627, -0.14958319067955017, -0.37680646777153015, 0.3436671793460846, -0.29393264651298523, -0.2539626359939575, -0.2779606282711029, -0.31480929255485535, 0.19508057832717896, -0.2569488286972046, -0.2543984353542328, 0.2560513913631439, 0.32405850291252136, -0.17405779659748077, 0.1185082420706749, -0.16914473474025726, 0.18969866633415222, -0.5319897532463074, -0.2821078896522522, 0.15754900872707367, 0.07340618968009949, -0.08529435098171234, -0.15616652369499207, -0.007705807685852051, 0.060111381113529205, 0.24179691076278687, -0.3140512704849243, -0.07090765237808228, 0.21110489964485168, 0.12464472651481628, -0.1502995789051056, -0.05775108560919762, 0.014316771179437637, 0.0520448237657547, -0.05859488248825073, -0.1246238499879837, -0.08776240795850754, -0.24474641680717468, -0.04386511817574501, 0.31861358880996704, 0.03303845599293709, 0.28509965538978577, 0.12367415428161621, -0.21395236253738403, 0.19820182025432587, -0.47902435064315796, 0.39823001623153687, 0.19195152819156647, -0.14117085933685303, 0.0006983019411563873, 0.006751595996320248, -0.047537196427583694, 0.25172674655914307, 0.14111210405826569, 0.13325554132461548, -0.09914513677358627, 0.32430145144462585, 0.23561155796051025, -0.10713763535022736, -0.550537109375, 0.08542092889547348, 0.09665993601083755, -0.4638226628303528, 0.15454040467739105, -0.012058570981025696, 0.047320373356342316, -0.007906793616712093, 0.2164624035358429, 0.25339439511299133, -0.4021718502044678, -0.008955731987953186, 0.24460940062999725, -0.07187505066394806, 0.25837066769599915, -0.19901235401630402, 0.1896003931760788, 0.4354891777038574, -0.4717601239681244, -0.03890444338321686, 0.0723876953125, -0.18489736318588257, -0.05338454246520996, -0.23153644800186157, 0.35352733731269836, 0.08168520033359528, -0.37282973527908325, -0.04147999361157417, -0.10529301315546036, -0.5928092002868652, 0.20040228962898254, 0.11411131918430328, 0.4360398054122925, 0.35997670888900757, 0.09799879044294357, -0.8021895289421082, -0.33980676531791687, 0.24063479900360107, 0.25814253091812134, -0.2585468888282776, -0.04104502499103546, -0.21354781091213226, 0.01570267602801323, -0.21340452134609222, -0.422107070684433, -0.02615734376013279, -0.2938931882381439, -0.09984521567821503, -0.18080109357833862, 0.1079072654247284, 0.3970290720462799, 0.17741771042346954, 0.14146772027015686, -0.0025961515493690968, 0.12177791446447372, -0.08637399226427078, -0.1759278029203415, 0.25762036442756653, -0.25058260560035706, -0.09078766405582428, -0.08873681724071503, -0.19084908068180084, -0.02633718028664589, 0.44780904054641724, -0.03121190145611763, -0.32029786705970764, 0.11387992650270462, 0.27820512652397156, -0.30888330936431885, 0.16275829076766968, 0.4159121513366699, -0.06907492876052856, 0.0954597070813179, -0.037043578922748566, -0.33226293325424194, 0.5030547380447388, 0.5719079971313477, 0.2779764235019684, 0.015397336333990097, 0.3732733726501465, -0.005625557154417038, 0.5339950323104858, -0.08479884266853333, -0.1748379021883011, 0.43994733691215515, -0.1500915288925171, 0.15141718089580536, -0.2614225745201111, -0.24279260635375977, -0.21984277665615082, 0.4680899381637573, -0.40255028009414673, -0.06152999401092529, 0.0433691032230854, -0.330782949924469, -0.15258216857910156, -0.35252538323402405, -0.20354235172271729, -0.16248098015785217, 0.07502288371324539, 0.27252382040023804, 0.4154939651489258, -0.12212595343589783, 0.011219240725040436, -0.23485367000102997, -0.07171721756458282, -0.19554653763771057, 0.28053587675094604, 0.18033596873283386, 0.22334961593151093, 0.11098743975162506, -0.300335556268692, -0.2976891100406647, 0.1494196504354477, 0.22431665658950806, 0.23779191076755524, 0.13474129140377045, 0.17429813742637634, 0.0837712362408638, 0.35175666213035583, 0.40054088830947876, -0.2878906726837158, -0.29598861932754517, -0.08102864027023315, 0.10591614246368408, -0.5289979577064514, -0.15323708951473236, -0.046672459691762924, 0.4733538031578064, 0.3410273790359497, 0.3836984932422638, -0.2232561707496643, 0.03791723772883415, 0.08416548371315002, -0.05655496567487717, 0.11653472483158112, -0.16511300206184387, -0.37045997381210327, -0.6194791793823242, 0.07581135630607605, 0.3669869601726532, 0.3693476617336273, 0.07964850217103958, 0.6536073684692383, 0.034967709332704544, -0.1818818300962448, 0.12393202632665634, -0.13819767534732819, 0.0891956239938736, 0.2654869258403778, -0.053792472928762436, 0.0029794909060001373, 0.18250557780265808, 0.06214559078216553, 0.3195863664150238, 0.15813139081001282, -0.08934451639652252, 0.10259432345628738, 0.06578007340431213, -0.17861424386501312, 0.35132914781570435, 0.1928594708442688, 0.014242294244468212, 0.052406273782253265, -0.42823150753974915, -0.028416939079761505, 0.2092820405960083, 0.07996198534965515, 0.4277035892009735, -0.06707913428544998, 0.02697989158332348, -0.3183562457561493, 0.4819420278072357, -0.2741425335407257, -0.10948813706636429, 0.24367305636405945, 0.5742260813713074, -0.5082353949546814, 0.867393434047699, 0.03624406456947327, 0.6118295788764954, 0.4509044885635376, -0.09465570747852325, 0.4444328844547272, 0.514873206615448, 0.42917555570602417, 0.32095056772232056, 0.3946349024772644, -0.034830495715141296, -0.12952111661434174, -0.01129429042339325, -0.23741260170936584, -0.07334592193365097, -0.07007712870836258, -0.5053709745407104, 0.28941449522972107, -0.45002996921539307, 0.26807019114494324, -0.016259439289569855, 0.19939468801021576, 0.1023685410618782, -0.08756181597709656, -0.1850724071264267, 0.06886391341686249, 0.04277541860938072, 0.3693176507949829, 0.07799393683671951, -0.021411489695310593, -0.09443968534469604, -0.13541190326213837, -0.1526697278022766, 0.13550695776939392, -0.2621989846229553, 0.6779375672340393, -0.18894493579864502, 0.1510571539402008, 0.2588070333003998, 0.2205524444580078, 0.1244778037071228, 0.04239306598901749, -0.05625166743993759, 0.2343646138906479, 0.2337971329689026, -0.18697252869606018, 0.16467878222465515, -0.2992410361766815, 0.11879850178956985, 0.03337938338518143, -0.19338884949684143, -0.11415349692106247, -0.11143243312835693, -0.4657711386680603, -0.08014826476573944, 0.04868307709693909, -0.49525660276412964, -0.11531373113393784, -0.36714938282966614, 0.07149384915828705, -0.1283477395772934, -0.053495511412620544, 0.04630952328443527, 0.1624947190284729, -0.06091473251581192, 0.18006108701229095, 0.1424330174922943, -0.27842798829078674, 0.07290799915790558, 0.3976731300354004, 0.16182547807693481, -0.05368611589074135, 0.4670930802822113, -0.27402767539024353, -0.19698087871074677, 0.07043693959712982, 0.0014754831790924072, 0.012110617011785507, -0.032286517322063446, 0.0645972490310669, -0.22872306406497955, 0.14254795014858246, 0.16691561043262482, 0.09464900195598602, 0.20130787789821625, 0.2270841896533966, -0.15700331330299377, -0.0696142315864563, 0.2798471450805664, 0.18155184388160706, 0.08887121081352234, 0.0012872330844402313, -0.3334341049194336, 0.16739626228809357, 0.11540788412094116, -0.41399505734443665, -0.2338070273399353, 0.21165230870246887, -0.0747886374592781, 0.20390652120113373, -0.41684672236442566, 0.220235675573349, 0.37635061144828796, -0.2843310534954071, 0.02597157098352909, -0.029364224523305893, 0.09521263837814331, -0.10378610342741013, -0.22045744955539703, 0.15547044575214386, -0.05926617234945297, 0.1778501719236374, 0.06217527016997337, -0.3696458339691162, -0.14709167182445526, -0.21132521331310272, -0.20151427388191223, 0.39306843280792236, 0.0481606051325798, -0.075569748878479, 0.17300821840763092, -0.15998539328575134, 0.11727899312973022, 0.025544127449393272, -0.07229296863079071, -0.06873750686645508, -0.14031969010829926, 0.4253866374492645, -0.03612654283642769, 0.056394487619400024, 0.1806238889694214, 0.15568946301937103, -0.11081841588020325, 0.19847026467323303, 0.0090910904109478, -0.233059361577034, -0.03548445180058479, -0.0038558593951165676, -0.08720115572214127, 0.09869875013828278, -0.2751173675060272, -0.06017560511827469, -0.2518536150455475, 0.1592671424150467, -0.16093671321868896, 0.2426021695137024, 0.37118327617645264, 0.15755124390125275, 0.14723214507102966, 0.2525769770145416, 0.37029457092285156, 0.09335744380950928, -0.23873965442180634, 0.02937271073460579, 0.44610634446144104, 0.008596807718276978, 0.03168457746505737, -0.049430761486291885, -0.14280524849891663, 0.22234737873077393, 0.1280222237110138, 0.026091808453202248, 0.23924630880355835, 0.1740894317626953, -0.06169242411851883, 0.3238944411277771, 0.3237587809562683, -0.0049637965857982635, 0.22233295440673828, 0.056001435965299606, 0.2383686900138855, 0.4283214211463928, 0.16228464245796204, -0.04878988862037659, 0.10004545748233795, 0.44311872124671936, -0.20731237530708313, 0.006692136637866497, -0.20515009760856628, -0.00953175500035286, -0.18868884444236755, 0.16634449362754822, -0.09953081607818604, -0.06226076930761337, -0.3740912079811096, -0.34195640683174133, 0.04957369342446327, 0.03707220405340195, -0.19149884581565857, 0.0937582328915596, -0.08208175003528595, 0.14486059546470642, -0.08915243297815323, 0.24975621700286865, 0.39939266443252563, -0.2433656007051468, 0.15931908786296844, 0.05075246840715408, -0.43380114436149597, 0.042117614299058914, 0.5454824566841125, 0.32804542779922485, 0.29593566060066223, -0.05330872908234596, -0.04414450749754906, 0.16970743238925934, -0.1648647040128708, 0.19233979284763336, -0.1688975691795349, -0.06882666051387787, -0.19465649127960205, 0.014501849189400673, 0.06664270162582397, 0.0015165098011493683, 0.1332816332578659, 0.020488973706960678, 0.40890607237815857, -0.011485161259770393, -0.18609687685966492, -0.36208611726760864, 0.12709420919418335, 0.29234015941619873, 0.059703268110752106, -0.1545468270778656, -0.026356834918260574, 0.35818418860435486, 0.019023526459932327, -0.040114253759384155, 0.29117920994758606, 0.036030467599630356, -0.08979320526123047, 0.01239994540810585, 0.3201577365398407, -0.05433269590139389, -0.19236844778060913, -0.13980264961719513, -0.1732410192489624, 0.12310802936553955, -0.26578614115715027, -0.029886815696954727, 0.4565679430961609, 0.4089271128177643, -0.09847424179315567, 0.17206713557243347, -0.11387678980827332, -0.06836169213056564, -0.2613252103328705, -0.054991237819194794, -0.3742019534111023, -0.18300971388816833, 0.03987085819244385, -0.037396617233753204, -0.036619190126657486, -0.15535414218902588, -0.15904419124126434, -0.2350282073020935, 0.017579592764377594, -0.33729612827301025, -0.1266101598739624, 0.230049729347229, -0.3336644172668457, 0.2390841692686081, -0.04611770808696747, 0.227546826004982, -0.10276609659194946, 0.04978039115667343, 0.10988384485244751, -0.5435659885406494, -0.16568320989608765, 0.16833242774009705, 0.03437940776348114, 0.2774560749530792, -0.038307249546051025, -0.48163965344429016, -0.13262878358364105, 0.41142359375953674, -0.010922174900770187, -0.35755282640457153, -0.4356439709663391, 0.18233080208301544, -0.33727505803108215, 0.17506998777389526, -0.22690771520137787, -0.09816647320985794, -0.12670345604419708, 0.14330795407295227, -0.10631406307220459, -0.5361239314079285, 0.5958070158958435, -0.26858454942703247, 0.02351333200931549, -0.2978458106517792, 0.13982900977134705, 0.7178283929824829, 0.40568265318870544, -0.2604759931564331, -0.1969885230064392, 0.28045275807380676, -0.035956382751464844, -0.34320688247680664, 0.0938059538602829, 0.4132664203643799, 0.12904168665409088, -0.2157023847103119, -0.23484250903129578, -0.011699125170707703, 0.009717484936118126, -0.3667399287223816, -0.237077534198761 ]
https://github.com/huggingface/datasets/issues/4015
Can not correctly parse the classes with imagefolder
I found that the problem arises because the image files in my folder are actually symbolic links (for my own reasons). After modifications, the classes can now be correctly parsed. Therefore, I close this issue.
## Describe the bug I try to load my own image dataset with imagefolder, but the parsing of classes is incorrect. ## Steps to reproduce the bug I organized my dataset (ImageNet) in the following structure: ``` - imagenet/ - train/ - n01440764/ - ILSVRC2012_val_00000293.jpg - ...... - n01695060/ - ...... - val/ - n01440764/ - n01695060/ - ...... ``` At first, I followed the instructions from the Huggingface [example](https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification#using-your-own-data) to load my data as: ``` from datasets import load_dataset data_files = {'train': 'imagenet/train', 'val': 'imagenet/val'} ds = load_dataset("nateraw/image-folder", data_files=data_files, task="image-classification") ``` but it resulted following error (I mask my personal path as <PERSONAL_PATH>): ``` FileNotFoundError: Unable to find 'https://huggingface.co/datasets/nateraw/image-folder/resolve/main/imagenet/train' at <PERSONAL_PATH>/ImageNet/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` Next, I followed a recent issue #3960 to load data as: ``` from datasets import load_dataset data_files = {'train': ['imagenet/train/**'], 'val': ['imagenet/val/**']} ds = load_dataset("imagefolder", data_files=data_files, task="image-classification") ``` and the data can be loaded without error as: (I copy val folder to train folder for illustration) ``` >>> ds DatasetDict({ train: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) val: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) }) ``` However, the parsed classes is wrong (should be 1000 classes): ``` >>> ds["train"].features {'image': Image(decode=True, id=None), 'labels': ClassLabel(num_classes=1, names=['val'], id=None)} ``` ## Expected results I expect that the "labels" in ds["train"].features should contain 1000 classes. ## Actual results The "labels" in ds["train"].features contains only 1 wrong class. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Ubuntu 18.04 - Python version: Python 3.7.12 - PyArrow version: 7.0.0
35
Can not correctly parse the classes with imagefolder ## Describe the bug I try to load my own image dataset with imagefolder, but the parsing of classes is incorrect. ## Steps to reproduce the bug I organized my dataset (ImageNet) in the following structure: ``` - imagenet/ - train/ - n01440764/ - ILSVRC2012_val_00000293.jpg - ...... - n01695060/ - ...... - val/ - n01440764/ - n01695060/ - ...... ``` At first, I followed the instructions from the Huggingface [example](https://github.com/huggingface/transformers/tree/main/examples/pytorch/image-classification#using-your-own-data) to load my data as: ``` from datasets import load_dataset data_files = {'train': 'imagenet/train', 'val': 'imagenet/val'} ds = load_dataset("nateraw/image-folder", data_files=data_files, task="image-classification") ``` but it resulted following error (I mask my personal path as <PERSONAL_PATH>): ``` FileNotFoundError: Unable to find 'https://huggingface.co/datasets/nateraw/image-folder/resolve/main/imagenet/train' at <PERSONAL_PATH>/ImageNet/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` Next, I followed a recent issue #3960 to load data as: ``` from datasets import load_dataset data_files = {'train': ['imagenet/train/**'], 'val': ['imagenet/val/**']} ds = load_dataset("imagefolder", data_files=data_files, task="image-classification") ``` and the data can be loaded without error as: (I copy val folder to train folder for illustration) ``` >>> ds DatasetDict({ train: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) val: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) }) ``` However, the parsed classes is wrong (should be 1000 classes): ``` >>> ds["train"].features {'image': Image(decode=True, id=None), 'labels': ClassLabel(num_classes=1, names=['val'], id=None)} ``` ## Expected results I expect that the "labels" in ds["train"].features should contain 1000 classes. ## Actual results The "labels" in ds["train"].features contains only 1 wrong class. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Ubuntu 18.04 - Python version: Python 3.7.12 - PyArrow version: 7.0.0 I found that the problem arises because the image files in my folder are actually symbolic links (for my own reasons). After modifications, the classes can now be correctly parsed. Therefore, I close this issue.
[ -0.13223853707313538, -0.14140963554382324, 0.04661688581109047, 0.8640831112861633, 0.31230074167251587, -0.04051607847213745, 0.2753278315067291, -0.01283104345202446, 0.13330203294754028, 0.07212550193071365, -0.17457306385040283, 0.18386386334896088, -0.35394707322120667, 0.004239378497004509, -0.14088435471057892, -0.31934821605682373, -0.05763404816389084, -0.06263870000839233, -0.375285267829895, 0.04933091998100281, -0.396871417760849, 0.4236665964126587, -0.16283157467842102, 0.13551422953605652, -0.24513544142246246, -0.10608281940221786, -0.17440344393253326, 0.29570668935775757, -0.10198890417814255, -0.13235971331596375, 0.5622393488883972, 0.008934050798416138, 0.39010611176490784, 0.8275347352027893, -0.00011803230154328048, 0.16341133415699005, 0.10999073088169098, -0.1347706913948059, 0.017184561118483543, -0.24970223009586334, 0.11807698756456375, 0.06800924986600876, 0.21001887321472168, -0.23898574709892273, -0.3224075436592102, -0.17477603256702423, -0.07234487682580948, 0.1218605488538742, 0.4998849630355835, 0.20354807376861572, 0.18092301487922668, 0.12377060949802399, 0.07648153603076935, 0.09101131558418274, 0.0665232241153717, 0.382363498210907, -0.13012047111988068, 0.3820899426937103, -0.04860922694206238, -0.047807373106479645, -0.21271654963493347, 0.31426897644996643, -0.06140205264091492, -0.022020213305950165, 0.4221768379211426, 0.24474889039993286, -0.03541964292526245, -0.24396085739135742, -0.13866585493087769, 0.031188078224658966, 0.0555485375225544, 0.02630520984530449, -0.2873067855834961, -0.4161458909511566, -0.23189863562583923, -0.16871175169944763, 0.2363370954990387, 0.03798149526119232, 0.17427854239940643, 0.2720116674900055, -0.2600873112678528, 0.1873062252998352, -0.5587900876998901, 0.29837048053741455, -0.0861581489443779, 0.15166853368282318, -0.20498134195804596, 0.05027041211724281, 0.11726358532905579, -0.07816837728023529, 0.15275971591472626, -0.15057268738746643, 0.10199770331382751, 0.40518906712532043, 0.053096845746040344, 0.08052517473697662, -0.07283980399370193, 0.15705427527427673, -0.04386749863624573, 0.09363692998886108, -0.14559167623519897, 0.07757160067558289, -0.17657014727592468, 0.0362679585814476, 0.23720356822013855, 0.2678449749946594, 0.10364359617233276, 0.5111909508705139, -0.04007728397846222, 0.5022207498550415, -0.18667283654212952, -0.06631407141685486, -0.2967555820941925, -0.11881735920906067, -0.202683225274086, 0.037869423627853394, 0.07413236796855927, -0.07076981663703918, 0.028231700882315636, -0.17212793231010437, -0.008756797760725021, 0.06786127388477325, 0.38391444087028503, 0.36732497811317444, 0.08662433177232742, 0.3082095980644226, 0.4485188126564026, 0.2819308638572693, -0.2484189122915268, -0.037890948355197906, -0.22191625833511353, 0.08554825186729431, -0.26297521591186523, -0.06966079771518707, 0.0795401930809021, -0.16276420652866364, 0.1976708024740219, -0.13484130799770355, 0.21686650812625885, -0.3124444782733917, -0.18899686634540558, -0.06997319310903549, 0.07149960100650787, 0.06324826925992966, -0.2121705412864685, 0.08635004609823227, 0.20153957605361938, 0.08825047314167023, -0.12041933834552765, -0.020758740603923798, -0.6157007813453674, -0.2960348427295685, 0.17636753618717194, 0.11008027195930481, -0.12743675708770752, 0.04727540910243988, -0.45201823115348816, -0.09366744756698608, 0.10810296982526779, -0.07412904500961304, 0.04788261279463768, -0.36902666091918945, -0.31604212522506714, -0.14416705071926117, 0.18513081967830658, 0.26501190662384033, 0.04283253476023674, -0.2932661175727844, -0.1043812707066536, -0.14832337200641632, 0.31240034103393555, 0.3219222128391266, -0.23820136487483978, 0.22719085216522217, -0.4788304269313812, 0.12358963489532471, 0.012167185544967651, -0.47195208072662354, -0.3075123429298401, 0.14028148353099823, 0.09922854602336884, 0.2792259752750397, 0.08175703883171082, 0.177855983376503, 0.36543333530426025, -0.042957957834005356, -0.04995393753051758, 0.5126899480819702, 0.1469898372888565, 0.09742682427167892, -0.03635349124670029, -0.17061172425746918, 0.07113135606050491, 0.36920684576034546, 0.10148705542087555, 0.016020536422729492, 0.050500813871622086, 0.03406130149960518, 0.37541261315345764, -0.3885417878627777, -0.10542368143796921, 0.14911384880542755, 0.1797437071800232, 0.3693696856498718, 0.12019604444503784, -0.10153940320014954, -0.5812811255455017, 0.32393887639045715, -0.041526682674884796, -0.05258644372224808, -0.29464226961135864, 0.21172171831130981, -0.14608076214790344, -0.13788145780563354, -0.6189761757850647, -0.32834768295288086, 0.03547485172748566, -0.09436318278312683, 0.029356449842453003, -0.168214350938797, -0.05808759853243828, 0.48935410380363464, -0.45173823833465576, 0.4745851755142212, -0.28960931301116943, 0.3683066666126251, -0.0033168625086545944, -0.10291732102632523, -0.06103302165865898, 0.07586228847503662, 0.10389084368944168, -0.41474971175193787, 0.052061889320611954, 0.2684851586818695, 0.2785055637359619, 0.023883387446403503, -0.3176382780075073, -0.06942586600780487, 0.22633272409439087, -0.49705958366394043, -0.18615780770778656, -0.08387719094753265, 0.08605671674013138, 0.05193223059177399, -0.16157928109169006, 0.5766895413398743, -0.23065318167209625, 0.38960352540016174, -0.046206146478652954, -0.14485061168670654, 0.08039742708206177, -0.1945294588804245, 0.04434133321046829, -0.16493451595306396, 0.3212963938713074, -0.050184812396764755, 0.3207356035709381, 0.1924978643655777, -0.20937290787696838, -0.23964864015579224, -0.011817265301942825, -0.021479662507772446, 0.016108781099319458, 0.16769982874393463, -0.03443308174610138, 0.3631190359592438, -0.04433528333902359, 0.3564620614051819, 0.20927953720092773, 0.08220724016427994, -0.10502572357654572, 0.10030566900968552, -0.0848100408911705, 0.009147083386778831, 0.10104063153266907, 0.2661136984825134, 0.4310360848903656, 0.09737207740545273, 0.06047677993774414, 0.27146801352500916, -0.33609792590141296, -0.10096882283687592, -0.21734757721424103, 0.09805942326784134, -0.38473787903785706, 0.39510783553123474, -0.16667185723781586, -0.3746659755706787, -0.07695265114307404, 0.10468540340662003, -0.24122929573059082, -0.07984942197799683, -0.32023972272872925, 0.09124724566936493, -0.0896075963973999, -0.1257942020893097, -0.2163025140762329, 0.14492106437683105, 0.04124581813812256, -0.3993251323699951, -0.15660697221755981, 0.23533016443252563, -0.276254802942276, -0.04486175999045372, 0.29733774065971375, -0.34851938486099243, 0.00528615340590477, -0.13895779848098755, -0.025091271847486496, -0.16252866387367249, -0.510552167892456, 0.3185935914516449, -0.1676262766122818, 0.31789323687553406, 0.1768319457769394, 0.29029253125190735, 0.28388339281082153, -0.4374587833881378, 0.39304786920547485, -0.20789803564548492, -0.29597073793411255, 0.10173042118549347, 0.13014446198940277, 0.03035334311425686, -0.25192177295684814, -0.1796242892742157, -0.24430178105831146, -0.22937726974487305, 0.22785726189613342, 0.28682419657707214, 0.2473778873682022, 0.28162097930908203, 0.02886565402150154, -0.13752076029777527, -0.2233484387397766, 0.05623764544725418, 0.03272866830229759, -0.3677694797515869, 0.38050541281700134, -0.05408263951539993, -0.13074316084384918, -0.16156575083732605, -0.10668783634901047, 0.11041130125522614, 0.10810857266187668, -0.3605661988258362, -0.4399152398109436, -0.0750943049788475, 0.08867670595645905, 0.08049894869327545, -0.04223426431417465, 0.10029558837413788, -0.03311090171337128, 0.2180304378271103, -0.1288314014673233, -0.06563630700111389, 0.008829556405544281, 0.02301284670829773, 0.30577144026756287, 0.12108008563518524, 0.5508924722671509, 0.05198520049452782, 0.6703988909721375, 0.12507030367851257, -0.18162159621715546, 0.28644126653671265, -0.02811775542795658, 0.26622462272644043, -0.1590467095375061, -0.19213780760765076, 0.06116644665598869, -0.022699683904647827, -0.16022881865501404, 0.28302526473999023, 0.17325404286384583, -0.09603667259216309, -0.059800952672958374, -0.08131907880306244, -0.64784175157547, -0.22835126519203186, -0.017927037551999092, 0.4528791606426239, 0.18097534775733948, -0.2722184956073761, 0.08097448199987411, 0.08776962757110596, -0.166365385055542, 0.2569851279258728, 0.5020528435707092, 0.16851367056369781, 0.23315013945102692, 0.05470293387770653, 0.1804446578025818, -0.10030046850442886, 0.09135439246892929, -0.08971075713634491, 0.08408334851264954, 0.01062353327870369, 0.11352863162755966, 0.16301658749580383, -0.09147733449935913, 0.5763243436813354, 0.10020145028829575, 0.2257859855890274, -0.04066622257232666, -0.46670323610305786, -0.40651801228523254, -0.14729733765125275, -0.26339417695999146, -0.1220531091094017, 0.19431354105472565, 0.3665139079093933, -0.27384838461875916, -0.25867989659309387, 0.2818422019481659, -0.12333641946315765, -0.4163418114185333, -0.2475641369819641, -0.12134328484535217, -0.23476049304008484, -0.1272372007369995, -0.10170982033014297, 0.24596916139125824, 0.2035209834575653, 0.06087653338909149, 0.19808609783649445, -0.11272479593753815, -0.37683460116386414, 0.06674753129482269, -0.05440898239612579, 0.46527907252311707, -0.0463455431163311, 0.16035005450248718, 0.4257161021232605, 0.054656192660331726, 0.334722101688385, 0.7392348051071167, -0.14334051311016083, -0.4436213970184326, 0.15267127752304077, 0.052135273814201355, 0.21096977591514587, 0.1596546471118927, -0.2541998624801636, -0.23445755243301392, -0.00379323773086071, 0.11537710577249527, -0.5151001811027527, 0.19395579397678375, 0.38732197880744934, -0.076514333486557, -0.005564942955970764, -0.21016539633274078, 0.5767714381217957, 0.19843605160713196, -0.20832863450050354, -0.03323734551668167, 0.314826637506485, -0.5731452703475952, 0.22191978991031647, 0.11650197207927704, 0.6810309886932373, -0.004074804484844208, 0.29268553853034973, 0.22357812523841858, -0.09644030034542084, 0.352270245552063, 0.12489928305149078, 0.11719562113285065, -0.3104102313518524, -0.016457296907901764, -0.1045900508761406, -0.14632165431976318, 0.10475119948387146, 0.16587567329406738, 0.2008165419101715, 0.3220054805278778, -0.21686792373657227, -0.24901476502418518, -0.07466357201337814, 0.053850628435611725, 0.04514250159263611, -0.1899593025445938, -0.12872314453125, 0.10590119659900665, -0.11658895015716553, 0.4047870337963104, -0.11049438267946243, -0.10709140449762344, -0.2582770586013794, -0.11086424440145493, -0.07049086689949036, 0.29926326870918274, -0.2573155462741852, 0.09693536907434464, 0.35076504945755005, -0.2386029064655304, 0.20635733008384705, 0.331967830657959, 0.042864199727773666, -0.2929930090904236, -0.06273700296878815, 0.19105491042137146, -0.3711307942867279, 0.11417585611343384, -0.1001545637845993, -0.07130365073680878, 0.34721049666404724, 0.030144520103931427, 0.38749468326568604, -0.4780229330062866, -0.17409521341323853, -0.34057551622390747, -0.006966382265090942, 0.034378085285425186, 0.1492735743522644, -0.2446497678756714, -0.16025479137897491, -0.1627378612756729, 0.026673149317502975, -0.03810018301010132, 0.09454198181629181, 0.20384344458580017, -0.10148077458143234, -0.08936556428670883, 0.1604049950838089, -0.3361354470252991, 0.07782259583473206, 0.25235670804977417, 0.05915523320436478, -0.14202049374580383, 0.512014627456665, 0.24790780246257782, -0.1226322129368782, -0.046893246471881866, 0.15195176005363464, 0.4291706085205078, -0.4776730239391327, 0.14023885130882263, 0.05134497582912445, 0.060634806752204895, 0.1436142772436142, 0.0649101659655571, 0.48131299018859863, -0.43876999616622925, -0.08242690563201904, -0.3496365547180176, -0.24444636702537537, 0.28046247363090515, -0.24754469096660614, 0.2068687528371811, -0.10007378458976746, 0.031243152916431427, 0.1472093015909195, -0.08691234886646271, -0.24605926871299744, 0.12016059458255768, -0.07402253895998001, -0.09643925726413727, 0.3292190432548523, -0.009746674448251724, 0.19647496938705444, -0.12093208730220795, 0.023677198216319084, 0.11056516319513321, -0.0959753766655922, -0.008694374933838844, -0.4055229425430298, 0.13460129499435425, 0.1029215157032013, 0.07827790081501007, -0.024531081318855286, -0.08654768764972687, -0.03438881039619446, -0.06545998901128769, 0.09736627340316772, 0.11084116250276566, 0.12490612268447876, 0.1583394706249237, 0.18385057151317596, 0.09133400022983551, -0.13255350291728973, 0.164189875125885, -0.23079293966293335, 0.47173911333084106, 0.391699880361557, -0.169676274061203, -0.17845554649829865, -0.06541694700717926, 0.13930700719356537, -0.05094128102064133, 0.03223397955298424, -0.011879075318574905, 0.4026930630207062, -0.1964929848909378, 0.18247514963150024, 0.09071511775255203, 0.409828782081604, 0.16500172019004822, -0.21584521234035492, -0.14022290706634521, 0.15932047367095947, 0.1138928011059761, -0.13877630233764648, -0.08770652860403061, 0.05930732563138008, 0.08461695164442062, -0.12818998098373413, 0.2302960455417633, -0.22054427862167358, 0.30751529335975647, -0.1860530525445938, 0.020341165363788605, 0.6329742670059204, 0.13073056936264038, 0.38702157139778137, -0.09357775747776031, -0.318286657333374, 0.13635845482349396, 0.4680142402648926, -0.07808548212051392, 0.1399274319410324, 0.3929622173309326, -0.15820497274398804, 0.21071572601795197, -0.3165395259857178, 0.26982155442237854, 0.3717222809791565, -0.266318142414093, -0.4055016040802002, -0.05134481191635132, 0.07624751329421997, 0.15408936142921448, -0.3857666850090027, 0.4402000308036804, -0.18852116167545319, -0.15949001908302307, -0.15644873678684235, 0.28539085388183594, -0.18414196372032166, -0.11834892630577087, -0.4479171633720398, -0.20379602909088135, -0.12612268328666687, -0.011747956275939941, -0.1358959972858429, -0.5330600738525391, 0.07138533890247345, 0.15495872497558594, -0.22980360686779022, -0.20584437251091003, -0.48104679584503174, 0.15575021505355835, 0.16947610676288605, -0.17430010437965393, 0.6125579476356506, 0.20101076364517212, 0.04409037530422211, 0.2172035127878189, 0.22467000782489777, 0.2453632801771164, 0.23211424052715302, 0.09533862769603729, -0.3414255678653717, -0.049757685512304306, 0.04419080913066864, -0.07208354026079178, 0.15871094167232513, -0.18712428212165833, 0.12071996927261353, 0.3132726550102234, 0.1316443681716919, -0.21307876706123352, -0.017179694026708603, -0.01499270275235176, 0.30602791905403137, -0.01611800119280815, 0.4744759500026703, -0.3220439851284027, 0.046241551637649536, -0.14484649896621704, 0.06066133454442024, -0.3621712327003479, -0.028455782681703568, 0.13113249838352203, -0.0408439114689827, 0.1994997262954712, 0.4132188558578491, 0.013441663235425949, 0.3325183391571045, 0.3782995045185089, 0.43694597482681274, -0.05566961318254471, -0.2863025367259979, -0.1335691213607788, -0.6631584763526917, 0.11175046861171722, -0.0850427895784378, -0.09731901437044144, -0.09685587137937546, 0.06673464924097061, -0.001439318060874939, -0.07657946646213531, 0.26017722487449646, 0.04479905962944031, 0.36563393473625183, -0.07603847980499268, -0.2991330921649933, 0.051070358604192734, 0.12414310872554779, 0.04129433259367943, 0.04006867855787277, -0.21023160219192505, 0.021724533289670944, -0.18017777800559998, -0.06538257002830505, 0.2604258060455322, 0.15425388514995575, -0.3545006513595581, -0.1548791527748108, 0.24103018641471863, 0.13427166640758514, 0.20766982436180115, 0.029262736439704895, -0.006490375846624374, -0.09191510081291199, -0.4576447308063507, -0.031899549067020416, 0.21634206175804138, -0.17666561901569366, 0.6116760969161987, -0.2181013822555542, -0.4106282591819763, -0.42850813269615173, -0.28415828943252563, 0.0529586523771286, -0.20426179468631744, -0.5572023391723633, 0.4008084535598755, -0.24878153204917908, 0.08436412364244461, 0.15418919920921326, 0.3579745590686798, 0.017562098801136017, -0.15553762018680573, -0.2982479929924011, -0.5293306112289429, 0.4397165775299072, -0.5488792061805725, -0.21226610243320465, 0.1925349086523056, 0.08056361228227615, 0.097337506711483, 0.1874992847442627, -0.2476593255996704, 0.04339679330587387, 0.3047334849834442, -0.10974591225385666, -0.08180788159370422, -0.0053369104862213135, -0.005194729194045067, -0.16129794716835022, -0.015544392168521881, 0.18621021509170532, 0.20534834265708923, -0.33690547943115234, 0.08175309002399445, -0.0264291875064373 ]
https://github.com/huggingface/datasets/issues/4013
Cannot preview "hazal/Turkish-Biomedical-corpus-trM"
Hi @hazalturkmen, thanks for reporting. Note that your dataset repository does not contain any loading script; it only contains a data file named `tr_article_2`. When there is no loading script but only data files, the `datasets` library tries to infer how to load the data by looking at the data file extensions. However, your data file does not have any extension. Note that current supported data file extensions are: 'csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'zip'. You have more info on our docs: [How to share a dataset](https://huggingface.co/docs/datasets/share).
## Dataset viewer issue for '*hazal/Turkish-Biomedical-corpus-trM' **Link:** *https://huggingface.co/datasets/hazal/Turkish-Biomedical-corpus-trM* *I cannot see the dataset preview.* ``` Server Error Status code: 400 Exception: HTTPError Message: 403 Client Error: Forbidden for url: https://huggingface.co/api/datasets/hazal/Turkish-Biomedical-corpus-trM?full=true ``` Am I the one who added this dataset ? Yes
151
Cannot preview "hazal/Turkish-Biomedical-corpus-trM" ## Dataset viewer issue for '*hazal/Turkish-Biomedical-corpus-trM' **Link:** *https://huggingface.co/datasets/hazal/Turkish-Biomedical-corpus-trM* *I cannot see the dataset preview.* ``` Server Error Status code: 400 Exception: HTTPError Message: 403 Client Error: Forbidden for url: https://huggingface.co/api/datasets/hazal/Turkish-Biomedical-corpus-trM?full=true ``` Am I the one who added this dataset ? Yes Hi @hazalturkmen, thanks for reporting. Note that your dataset repository does not contain any loading script; it only contains a data file named `tr_article_2`. When there is no loading script but only data files, the `datasets` library tries to infer how to load the data by looking at the data file extensions. However, your data file does not have any extension. Note that current supported data file extensions are: 'csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'zip'. You have more info on our docs: [How to share a dataset](https://huggingface.co/docs/datasets/share).
[ -0.17143796384334564, -0.4351091980934143, -0.02009645104408264, 0.13867028057575226, -0.08358165621757507, 0.2694072127342224, -0.15794435143470764, 0.5032233595848083, -0.08764326572418213, 0.08632459491491318, -0.35436439514160156, 0.036135923117399216, 0.1225203350186348, -0.1530090719461441, 0.10786953568458557, -0.11990435421466827, 0.0038382932543754578, 0.03614480048418045, -0.13996173441410065, 0.07100526988506317, -0.2456895112991333, 0.332543283700943, -0.08209556341171265, 0.1515820175409317, 0.05505698546767235, -0.08294551074504852, -0.004702148959040642, -0.03195759654045105, -0.2882300615310669, -0.39797282218933105, -0.0874670073390007, -0.09689050912857056, 0.253061980009079, 0.45528388023376465, -0.00011702439223881811, 0.0658000260591507, 0.3780227303504944, 0.15272125601768494, -0.17172086238861084, -0.5476216077804565, 0.11783119291067123, -0.2963295578956604, 0.043912164866924286, -0.21386349201202393, -0.23268017172813416, -0.1765720248222351, -0.032284416258335114, -0.303011417388916, 0.35676753520965576, 0.23566050827503204, 0.16593873500823975, 0.1420711725950241, -0.1663823276758194, -0.3766244053840637, 0.10229440033435822, -0.1366947740316391, -0.38759222626686096, -0.044806960970163345, 0.23560237884521484, 0.18217192590236664, -0.028060398995876312, 0.2556832730770111, -0.08902888000011444, 0.10460695624351501, 0.17089928686618805, -0.21549703180789948, -0.014288626611232758, -0.5387803316116333, 0.4127105176448822, 0.2647814154624939, 0.9902451634407043, -0.23615938425064087, -0.23894824087619781, 0.3372608423233032, 0.028009083122015, 0.0864674523472786, 0.1508772075176239, 0.423983633518219, -0.05545772239565849, 0.3203224539756775, -0.1907716542482376, -0.2178698480129242, -0.20402680337429047, 0.33033066987991333, -0.03048575669527054, 0.022026188671588898, -0.09993740171194077, 0.10307928919792175, 0.01720011606812477, -0.031113527715206146, 0.195645272731781, -0.10648566484451294, 0.08036166429519653, 0.27364709973335266, 0.039675645530223846, 0.06888624280691147, -0.0024960264563560486, 0.08425115793943405, 0.16617244482040405, 0.13724073767662048, 0.41049984097480774, 0.37047791481018066, -0.05509123578667641, 0.20250314474105835, -0.0412939228117466, -0.00335485115647316, 0.1911047399044037, -0.11243929713964462, 0.4137188196182251, 0.4091572165489197, 0.4289247691631317, -0.04227191209793091, -0.11305469274520874, 0.07360006868839264, -0.41689595580101013, -0.2897295355796814, 0.3662623167037964, -0.06905154138803482, -0.032882075756788254, 0.19091883301734924, -0.04930158331990242, -0.043990883976221085, -0.10504169017076492, 0.5905348658561707, -0.30863261222839355, -0.3351893723011017, 0.20866453647613525, 0.166872039437294, -0.21272404491901398, -0.356272429227829, -0.12295366823673248, 0.0011884123086929321, -0.19198071956634521, 0.18080684542655945, 0.33596736192703247, -0.1668214052915573, -0.08234123885631561, -0.15552611649036407, 0.27616679668426514, -0.00255521759390831, 0.16900992393493652, 0.03888390213251114, 0.23999276757240295, 0.37061363458633423, 0.44658783078193665, 0.22883781790733337, 0.33764931559562683, -0.02456827089190483, 0.013791076838970184, 0.3827953040599823, -0.39788371324539185, -0.24175208806991577, -0.16723375022411346, 0.07405156642198563, -0.24485790729522705, 0.18505650758743286, -0.22353997826576233, 0.16941572725772858, -0.022750355303287506, -0.10975892841815948, -0.03779097646474838, 0.24260000884532928, -0.20426638424396515, -0.07815073430538177, 0.21516916155815125, 0.3847423791885376, -0.1318015158176422, -0.17859163880348206, -0.3144286870956421, -0.12165579199790955, -0.08450476080179214, 0.4576480984687805, -0.08470506221055984, -0.04654908925294876, -0.3588094115257263, 0.326224684715271, 0.5460480451583862, -0.26464220881462097, -0.4204023778438568, 0.07448847591876984, -0.1490941047668457, 0.17967946827411652, -0.008312053978443146, 0.046553779393434525, 0.23409537971019745, -0.20172305405139923, -0.013815201818943024, 0.05890775844454765, 0.4262320399284363, -0.06864980608224869, -0.10776855796575546, -0.13306090235710144, 0.3290538787841797, -0.06124825030565262, -0.012514960020780563, 0.09589091688394547, 0.20682492852210999, -0.3576793670654297, 0.47809913754463196, 0.13405372202396393, 0.21061044931411743, 0.12536466121673584, 0.10720548033714294, 0.05805100500583649, 0.17249064147472382, -0.10652301460504532, -0.1338321566581726, 0.0911143347620964, -0.24655385315418243, 0.3271544277667999, -0.258337140083313, -0.21489594876766205, -0.23330283164978027, 0.11627411097288132, -0.23533998429775238, 0.015904460102319717, 0.10051204264163971, -0.059175893664360046, -0.01839909330010414, 0.1787399798631668, 0.08277566730976105, 0.03374246880412102, 0.03657069802284241, 0.0021578678861260414, -0.48382967710494995, 0.37976503372192383, -0.18515217304229736, 0.2876981496810913, 0.25534486770629883, 0.030371591448783875, 0.38294628262519836, -0.0916350856423378, -0.09625114500522614, 0.23853516578674316, -0.1615435928106308, 0.16515953838825226, 0.044127654284238815, 0.16673016548156738, 0.14431056380271912, -0.7005674839019775, 0.29010698199272156, -0.10155954957008362, -0.028064850717782974, 0.09628071635961533, 0.007085025310516357, 0.06214478239417076, 0.27282917499542236, -0.015345476567745209, 0.061176419258117676, 0.23302793502807617, 0.14103272557258606, 0.014335040003061295, -0.3727721869945526, -0.30369293689727783, 0.41067904233932495, -0.24038027226924896, -0.07369538396596909, -0.2838817834854126, -0.0011673346161842346, -0.0652143582701683, 0.09840784966945648, -0.20386235415935516, -0.011276639997959137, 0.09356498718261719, -0.22044482827186584, 0.007754810154438019, 0.22533707320690155, -0.2229471653699875, 0.05332084745168686, 0.1436222344636917, 0.012260321527719498, 0.15656326711177826, 0.001109621487557888, -0.20635271072387695, 0.11925829201936722, 0.18614916503429413, 0.031676486134529114, 0.20702964067459106, 0.08425850421190262, 0.0742124393582344, -0.36262786388397217, -0.0051683224737644196, 0.17674140632152557, 0.1846959888935089, -0.26386651396751404, -0.07014396041631699, -0.5075753331184387, -0.3274044394493103, 0.15421047806739807, -0.3483310639858246, -0.17964185774326324, -0.20423205196857452, 0.1254267394542694, 0.014258485287427902, 0.11011391878128052, 0.3307622969150543, -0.24860842525959015, 0.24248413741588593, -0.0010925009846687317, -0.0038158781826496124, -0.39598554372787476, 0.2982558310031891, -0.10478184372186661, 0.03867964819073677, 0.2578200101852417, -0.05336274951696396, 0.4454396069049835, -0.08839409798383713, 0.22762615978717804, -0.6628850102424622, -0.3219253122806549, 0.16136127710342407, -0.15423832833766937, 0.019659478217363358, -0.08030270040035248, 0.3574365973472595, 0.050597235560417175, 0.10051028430461884, 0.27395063638687134, -0.10601610690355301, -0.1377214789390564, 0.05606810003519058, -0.05629211664199829, -0.3092096447944641, 0.004567630589008331, -0.3839755952358246, -0.20545214414596558, -0.5236718058586121, -0.042754314839839935, -0.08864277601242065, 0.10454609245061874, 0.09520798176527023, 0.04174121096730232, -0.029294520616531372, 0.15614861249923706, 0.031847044825553894, -0.32395705580711365, -0.2311280220746994, 0.5149089097976685, -0.5530571341514587, -0.592250406742096, 0.2719510495662689, 0.1494753211736679, 0.2930576801300049, 0.06951934099197388, -0.5945207476615906, -0.029964961111545563, 0.10225967317819595, 0.0439220629632473, -0.06603685021400452, -0.22989599406719208, 0.21411558985710144, -0.05257287248969078, 0.0037828702479600906, -0.10209466516971588, -0.15446898341178894, -0.3289191424846649, -0.3317207992076874, 0.1132379025220871, 0.00017267465591430664, 0.3113398849964142, 0.23277387022972107, 0.4423087239265442, 0.31925293803215027, 0.15907619893550873, 0.4879363179206848, -0.053532831370830536, 0.38742631673812866, 0.04536288604140282, -0.2358216494321823, -0.24219964444637299, 0.012631982564926147, 0.13467976450920105, 0.33912035822868347, 0.11705563217401505, -0.3009037375450134, -0.2398885190486908, -0.1537967026233673, -0.30694499611854553, -0.11069853603839874, -0.008279509842395782, -0.11285290122032166, 0.26798075437545776, 0.09635190665721893, 0.054254740476608276, -0.2425168752670288, -0.26910749077796936, 0.15126195549964905, 0.5286877155303955, 0.05201352387666702, 0.24038544297218323, -0.3016553223133087, -0.1511736959218979, -0.5837579965591431, 0.5552610754966736, 0.03455349802970886, 0.223305344581604, -0.2138901799917221, 0.015857283025979996, 0.304672509431839, -0.07471862435340881, 0.6734213829040527, -0.35973358154296875, 0.10255125910043716, 0.0953022688627243, -0.24080723524093628, -0.2745179533958435, 0.021956268697977066, 0.26298806071281433, 0.42689231038093567, 0.1022636741399765, 0.6321499347686768, 0.10436604171991348, -0.15711718797683716, -0.01938532665371895, -0.17725543677806854, -0.15296082198619843, -0.44195443391799927, -0.18034781515598297, -0.3771243691444397, -0.4003293812274933, -0.3487800657749176, 0.15952003002166748, 0.10172951966524124, 0.008873676881194115, -0.28575173020362854, 0.25088977813720703, -0.032939448952674866, 0.12499798089265823, 0.19619546830654144, 0.013814091682434082, 0.2081686407327652, 0.21018391847610474, 0.35387560725212097, 0.23350563645362854, 0.4129714071750641, 0.5182571411132812, -0.06655722856521606, -0.4930458068847656, 0.08272215723991394, 0.13921098411083221, -0.12014999240636826, 0.2116960883140564, 0.09745656698942184, 0.09266462922096252, 0.3318846821784973, 0.21247340738773346, -0.06711413711309433, -0.08338209986686707, 0.38669249415397644, -0.2549336552619934, -0.9220881462097168, -0.2490338385105133, 0.5743721127510071, 0.09036765992641449, 0.0034073442220687866, 0.3137759566307068, 0.13163870573043823, 0.03573612868785858, -0.09837202727794647, 0.07467585802078247, 1.0557013750076294, -0.3681104779243469, 0.08896656334400177, 0.14986619353294373, 0.020575203001499176, 0.18604372441768646, -0.597588837146759, 0.09704660624265671, -0.2327631711959839, -0.35738447308540344, -0.31309109926223755, -0.1340876817703247, 0.4264243245124817, -0.10297422111034393, -0.17395716905593872, -0.1481441855430603, 0.04310860484838486, 0.23081040382385254, -0.0258938055485487, 0.27346691489219666, -0.20869149267673492, -0.12309107184410095, -0.25063708424568176, 0.1870570331811905, -0.022472448647022247, 0.2545349597930908, -0.052542198449373245, -0.014596235007047653, -0.3607655167579651, -0.17664141952991486, -0.2691022753715515, 0.16363191604614258, -0.25289952754974365, 0.053208623081445694, -0.08368106186389923, -0.36019766330718994, 0.3825618326663971, 0.44852495193481445, -0.17260290682315826, 0.2977500855922699, -0.43947115540504456, 0.30166369676589966, -0.18076232075691223, -0.4499761760234833, -0.26999667286872864, -0.04853937774896622, 0.14493289589881897, -0.22725284099578857, -0.14838442206382751, 0.4005298912525177, 0.14758802950382233, 0.0270901620388031, 0.024139806628227234, 0.07650946825742722, 0.0858272835612297, -0.24041056632995605, -0.15044890344142914, -0.20601168274879456, 0.0038745664060115814, 0.009064063429832458, 0.06077267974615097, -0.0307428240776062, -0.10150593519210815, -0.19980406761169434, 0.33455517888069153, -0.21644394099712372, -0.08412174880504608, 0.5983086824417114, -0.013570975512266159, -0.22514168918132782, 0.42491045594215393, 0.30243659019470215, -0.27300408482551575, -0.10053353011608124, -0.2531675398349762, 0.2038002461194992, -0.3340744078159332, -0.12334590405225754, 0.1510106921195984, 0.21419022977352142, -0.1630042940378189, 0.3316681981086731, -0.007160011678934097, -0.1993001103401184, -0.061064112931489944, -0.3852556347846985, 0.05128636956214905, 0.2602959871292114, 0.0457344651222229, 0.21101292967796326, 0.10026312619447708, 0.2907063663005829, 0.036070115864276886, 0.0863141193985939, -0.2442251294851303, 0.03908448666334152, 0.15384063124656677, -0.12986649572849274, 0.07972269505262375, 0.16416442394256592, 0.13747791945934296, -0.02700859308242798, -0.012800384312868118, 0.28036820888519287, -0.47946110367774963, -0.15268877148628235, -0.012694286182522774, 0.1893397718667984, 0.17009404301643372, -0.24660249054431915, -0.14238932728767395, -0.4554154872894287, -0.01140214130282402, -0.12126703560352325, -0.08460627496242523, 0.23578181862831116, 0.13053272664546967, -0.28632381558418274, 0.2023676484823227, -0.28624939918518066, -0.017982006072998047, 0.19544415175914764, 0.07382632791996002, 0.3562381863594055, 0.010838059708476067, -0.08304403722286224, -0.1615341454744339, 0.04572972655296326, -0.3923589289188385, 0.02127331867814064, 0.3992729187011719, -0.08893519639968872, 0.3918967843055725, -0.16674615442752838, 0.29956793785095215, 0.26080483198165894, 0.1611548215150833, 0.0856044590473175, -0.358645498752594, -0.0957714319229126, 0.20575883984565735, 0.04512690752744675, -0.3381883203983307, -0.22252157330513, 0.14089079201221466, -0.1247045174241066, -0.1267222762107849, 0.043496787548065186, 0.07227805256843567, 0.0734994113445282, 0.1129380613565445, 0.05595490336418152, 0.6642840504646301, -0.07521030306816101, 0.20750893652439117, -0.022885587066411972, -0.3080448806285858, 0.19666394591331482, 0.02199709229171276, 0.21263767778873444, 0.021188944578170776, 0.07506609708070755, -0.17862269282341003, -0.030820699408650398, 0.24505776166915894, 0.21192032098770142, -0.16264957189559937, -0.5051233172416687, 0.06251747906208038, 0.04300853610038757, 0.17084844410419464, 0.1392064094543457, 0.17433913052082062, 0.22134530544281006, 0.2298036366701126, 0.11561550945043564, -0.38651782274246216, 0.3157794773578644, 0.11633069068193436, 0.2448211908340454, -0.19779442250728607, -0.13539662957191467, -0.022185467183589935, -0.08653511106967926, 0.00019694119691848755, -0.25859683752059937, -0.09003971517086029, 0.1319713592529297, -0.2425997406244278, -0.06803220510482788, 0.14257779717445374, 0.06462333351373672, -0.05295645445585251, -0.20903709530830383, 0.17495012283325195, 0.210405170917511, 0.0416850820183754, 0.22334547340869904, -0.12897875905036926, 0.5628859400749207, 0.09712421894073486, 0.1814083456993103, 0.09359388798475266, -0.1697925329208374, -0.16343383491039276, 0.21341785788536072, 0.3624274730682373, 0.51967453956604, 0.03977636620402336, 0.19394436478614807, 0.030360812321305275, -0.1304006427526474, 0.23172491788864136, -0.02653556689620018, 0.42231765389442444, -0.02612045779824257, 0.18573834002017975, -0.6068779230117798, -0.2353227734565735, -0.21284447610378265, -0.23263579607009888, -0.3680078983306885, 0.2994089424610138, 0.318778932094574, -0.13281844556331635, -0.04303669556975365, -0.3371225893497467, 0.023005302995443344, 0.01961359567940235, 0.28430190682411194, 0.4796236455440521, 0.23165887594223022, -0.008915903978049755, -0.3752938508987427, -0.5415126085281372, 0.2898872494697571, -0.12773717939853668, 0.07739066332578659, 0.05998570844531059, -0.1263415813446045, 0.24936476349830627, 0.11335790157318115, 0.3338981866836548, -0.1185893788933754, -0.03835012763738632, 0.308439165353775, -0.023226561024785042, -0.05649132654070854, -0.027078159153461456, 0.3066757619380951, -0.19237472116947174, -0.14937549829483032, 0.11482427269220352, 0.10057733952999115, -0.10764771699905396, -0.35004955530166626, -0.02986665442585945, -0.15289387106895447, -0.34992361068725586, 0.6268972754478455, 0.2315666824579239, 0.3692283034324646, -0.17749115824699402, -0.1566932052373886, -0.206566721200943, -0.15325604379177094, 0.08156327903270721, 0.2688537836074829, 0.3351965844631195, 0.18723785877227783, -0.039612777531147, -0.39227643609046936, 0.010209834203124046, 0.2689860463142395, -0.15904593467712402, 0.2474900335073471, -0.18699221312999725, -0.03667183965444565, -0.1866782307624817, -0.0034275955986231565, 0.19395115971565247, 0.13068383932113647, 0.11532601714134216, 0.1525292992591858, -0.0954340472817421, -0.389177143573761, 0.7155343294143677, -0.602317214012146, -0.19689060747623444, 0.2158929705619812, 0.0710553303360939, -0.18703240156173706, -0.14996027946472168, -0.3526759147644043, 0.057265736162662506, 0.38304901123046875, -0.022890601307153702, 0.09143933653831482, 0.4129750728607178, -0.2942062020301819, -0.031299181282520294, -0.22649715840816498, 0.7428717613220215, 0.18942183256149292, -0.20845545828342438, 0.1772926151752472, -0.1672644466161728 ]
https://github.com/huggingface/datasets/issues/4007
set_format does not work with multi dimension tensor
Hi! Use the `ArrayXD` feature type (where X is the number of dimensions) to get correctly formated tensors. So in your case, define the dataset as follows : ```python ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}, features=Features({"A": Array2D(shape=(2, 2), dtype="float32")})) ```
## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result ds = ds.with_format("torch") print(ds[0]) ``` ## Expected results ``` {'A': [tensor([[0.6689, 0.1516], [0.1403, 0.5567]])]} ``` ## Actual results ``` {'A': [tensor([0.6689, 0.1516]), tensor([0.1403, 0.5567])]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - datasets version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0
39
set_format does not work with multi dimension tensor ## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result ds = ds.with_format("torch") print(ds[0]) ``` ## Expected results ``` {'A': [tensor([[0.6689, 0.1516], [0.1403, 0.5567]])]} ``` ## Actual results ``` {'A': [tensor([0.6689, 0.1516]), tensor([0.1403, 0.5567])]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - datasets version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi! Use the `ArrayXD` feature type (where X is the number of dimensions) to get correctly formated tensors. So in your case, define the dataset as follows : ```python ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}, features=Features({"A": Array2D(shape=(2, 2), dtype="float32")})) ```
[ -0.3587709963321686, -0.5875425338745117, -0.10628223419189453, 0.11355601251125336, 0.3834378719329834, 0.01902271807193756, 0.737145185470581, 0.44638657569885254, -0.108559250831604, 0.17748533189296722, -0.00601071584969759, 0.3397403061389923, -0.02235085517168045, 0.03648366034030914, 0.03633391857147217, -0.4106319546699524, -0.01009281724691391, 0.2078685462474823, 0.03404323384165764, -0.09843231737613678, -0.10107706487178802, -0.0896361768245697, -0.3252333700656891, -0.17000524699687958, -0.34931203722953796, -0.14251230657100677, -0.11490008234977722, -0.0454508438706398, -0.024709979072213173, -0.20161321759223938, 0.0773644670844078, -0.036995697766542435, 0.0542832687497139, 0.4565679728984833, -0.00009999678150052205, 0.07054963707923889, 0.10756577551364899, -0.049795351922512054, 0.10184675455093384, -0.18216101825237274, 0.057299911975860596, -0.4288560450077057, 0.03861851990222931, -0.40646931529045105, -0.21695464849472046, -0.2851483225822449, -0.17906421422958374, -0.2899407148361206, 0.13771355152130127, 0.41542837023735046, 0.3269331753253937, 0.3227420151233673, 0.31563711166381836, 0.00616881437599659, 0.13858559727668762, -0.02091556042432785, -0.058390043675899506, 0.038077883422374725, -0.16389591991901398, 0.28154367208480835, 0.11340153217315674, 0.24769729375839233, -0.35922467708587646, 0.2116873413324356, 0.10027948021888733, 0.2461560070514679, -0.07143478840589523, -0.09796451032161713, -0.14645597338676453, 0.46356189250946045, 0.4107896685600281, -0.31198298931121826, -0.2300780862569809, -0.050438620150089264, -0.1699274629354477, -0.39986297488212585, -0.07628493756055832, 0.3830808401107788, 0.00460369698703289, -0.010703396052122116, -0.0697878822684288, 0.27492064237594604, -0.22783048450946808, 0.17975589632987976, -0.18892699480056763, 0.2347501665353775, -0.02300156280398369, 0.12781894207000732, -0.15050093829631805, -0.022348880767822266, 0.16860681772232056, 0.039759933948516846, 0.19596345722675323, -0.19183439016342163, -0.24315138161182404, -0.07990778982639313, -0.09819946438074112, -0.4352357089519501, -0.09000636637210846, -0.17847973108291626, 0.31080716848373413, 0.2811741232872009, -0.016111668199300766, 0.2799641489982605, -0.1224307119846344, 0.31678828597068787, -0.17663490772247314, 0.13774347305297852, 0.1561698317527771, -0.221169576048851, 0.2532631754875183, 0.0547143928706646, 0.16742557287216187, -0.4269939363002777, 0.15539883077144623, 0.20129191875457764, 0.11397255957126617, 0.09427481889724731, -0.32312119007110596, -0.046504393219947815, -0.3701814115047455, -0.0536922849714756, -0.15480279922485352, 0.2075156271457672, -0.23805508017539978, 0.26438263058662415, 0.1107359528541565, 0.16922222077846527, -0.17426446080207825, 0.14011426270008087, -0.27896952629089355, 0.1357874721288681, -0.10063184797763824, -0.173245370388031, 0.06467381119728088, 0.1749604046344757, 0.23046545684337616, 0.18264703452587128, 0.10851826518774033, 0.04256664961576462, 0.10190686583518982, -0.18604139983654022, 0.4247971177101135, 0.20561927556991577, 0.024393070489168167, 0.1771135777235031, 0.1104051023721695, -0.12278006225824356, -0.1440962255001068, 0.1537408083677292, -0.23874825239181519, 0.060124848037958145, -0.25440549850463867, 0.2662251591682434, -0.043620765209198, 0.03635450825095177, 0.10214798152446747, 0.08887042105197906, 0.3970513343811035, 0.11861918866634369, 0.14639456570148468, -0.28283149003982544, -0.2003091275691986, -0.37867268919944763, 0.2423762083053589, -0.04032626748085022, -0.3030295968055725, 0.024344198405742645, 0.4568158984184265, 0.24081197381019592, 0.37775522470474243, 0.2086453139781952, -0.026328451931476593, -0.02505481243133545, -0.11179803311824799, 0.12155909836292267, 0.3320634961128235, -0.19644321501255035, -0.12186992168426514, -0.15139663219451904, -0.13468168675899506, -0.025535594671964645, 0.10418333113193512, 0.05354420840740204, 0.07298526912927628, 0.18673649430274963, 0.1379113346338272, 0.21792632341384888, 0.026390893384814262, 0.1936989575624466, -0.26974210143089294, 0.01788645051419735, 0.4049168825149536, 0.12233856320381165, 0.009220033884048462, -0.26833558082580566, -0.11737889796495438, 0.16298693418502808, 0.30923306941986084, -0.09856070578098297, -0.0509384348988533, 0.0878528505563736, 0.0453278049826622, -0.16317953169345856, 0.1088346391916275, -0.17068368196487427, -0.2556798458099365, -0.0038838274776935577, 0.1697281450033188, 0.0458555668592453, 0.00045230984687805176, -0.0761854276061058, -0.13009342551231384, -0.1509634554386139, -0.20845623314380646, -0.13389737904071808, 0.289215087890625, 0.06609700620174408, -0.021294400095939636, 0.05817199870944023, -0.033942848443984985, -0.089573934674263, 0.22793208062648773, -0.02770588919520378, -0.14910852909088135, 0.17729099094867706, -0.115286685526371, -0.2779410481452942, -0.07603806257247925, 0.2845253050327301, 0.24546021223068237, -0.07693322747945786, -0.18856129050254822, 0.48526686429977417, -0.05436857417225838, -0.1732165366411209, -0.6250509023666382, 0.1892056167125702, 0.17962773144245148, -0.1706981360912323, -0.00702984444797039, 0.2697022259235382, 0.013534837402403355, -0.1031467616558075, -0.46285226941108704, 0.5290514230728149, -0.019120480865240097, -0.03984040766954422, -0.39449775218963623, 0.18891935050487518, 0.1297660619020462, -0.06547243893146515, -0.02446896582841873, -0.2291942536830902, -0.061174217611551285, -0.010754309594631195, -0.0552489310503006, -0.06459178775548935, -0.5970447659492493, 0.11920955777168274, 0.5741473436355591, 0.08408357203006744, 0.2937658727169037, -0.09999654442071915, -0.1165875568985939, 0.025665968656539917, 0.16807810962200165, -0.272452712059021, 0.15859989821910858, 0.22668029367923737, 0.032855551689863205, 0.03561665117740631, -0.06650862842798233, -0.2657167911529541, 0.11839496344327927, -0.0735345333814621, 0.16584771871566772, 0.10021179169416428, 0.30044183135032654, -0.2305576503276825, -0.04851667582988739, 0.09967672824859619, -0.040362514555454254, 0.09742175042629242, -0.24132218956947327, 0.16054612398147583, -0.3637154698371887, 0.14444619417190552, -0.41245803236961365, -0.35389459133148193, -0.10132797062397003, -0.039118692278862, -0.046328648924827576, 0.07057859003543854, 0.017735052853822708, 0.25186866521835327, 0.3504945933818817, -0.1672699898481369, 0.5409902930259705, -0.1491980105638504, -0.045568421483039856, 0.034386858344078064, -0.14117392897605896, 0.18923994898796082, -0.1513841301202774, -0.12469429522752762, 0.2214449793100357, 0.054031774401664734, -0.1420227438211441, -0.044404253363609314, -0.19838592410087585, 0.052716612815856934, -0.26540249586105347, -0.16411086916923523, 0.425517737865448, 0.1330948919057846, -0.061302028596401215, 0.011534075252711773, 0.4074327349662781, 0.005798187106847763, 0.16616545617580414, 0.2768928110599518, -0.11053691059350967, -0.03535618633031845, -0.30183178186416626, -0.4739525020122528, 0.02530001290142536, -0.21792136132717133, 0.1674160659313202, -0.16419577598571777, 0.20904895663261414, 0.06362990289926529, 0.3023196756839752, 0.1212911456823349, 0.13050588965415955, 0.16449308395385742, -0.09371695667505264, -0.16200187802314758, 0.3484717607498169, -0.30233466625213623, -0.313470721244812, -0.08252552151679993, -0.0312596820294857, 0.1712201088666916, 0.308815598487854, -0.1383921056985855, -0.30097663402557373, -0.08963917195796967, 0.1449025571346283, -0.08343817293643951, 0.041245490312576294, 0.35603076219558716, 0.017283009365200996, -0.21569344401359558, -0.1326683759689331, 0.06622882187366486, 0.1605404168367386, -0.009247951209545135, 0.12889601290225983, 0.07671892642974854, 0.27881237864494324, 0.3115265667438507, 0.19612275063991547, -0.003804633393883705, -0.40916821360588074, 0.07501532882452011, -0.2951706051826477, 0.05212680250406265, -0.07416798919439316, -0.2394133061170578, 0.2757723331451416, 0.03188493847846985, -0.020227747038006783, -0.0893988162279129, -0.17046821117401123, -0.24600903689861298, 0.004364393651485443, 0.24443528056144714, -0.26345106959342957, -0.026049630716443062, 0.09696823358535767, 0.07404930889606476, 0.14907902479171753, -0.11275723576545715, 0.3561057150363922, -0.13304434716701508, -0.21393218636512756, 0.06637915968894958, -0.03247427940368652, -0.1072801873087883, -0.017961371690034866, -0.26906293630599976, -0.14163072407245636, -0.27600160241127014, 0.3058543801307678, 0.20122122764587402, 0.41042864322662354, 0.09055082499980927, 0.004746373742818832, 0.07963504642248154, 0.0228597279638052, 0.6333681344985962, -0.04983498156070709, -0.025214381515979767, 0.17100214958190918, -0.01504860632121563, -0.7569905519485474, -0.2783626914024353, -0.25033316016197205, 0.10293348133563995, 0.16331247985363007, 0.2609991431236267, -0.25917741656303406, -0.2425953596830368, 0.13857534527778625, 0.19091477990150452, -0.15047131478786469, -0.014209969900548458, -0.15876930952072144, -0.18621349334716797, -0.18037758767604828, 0.026631705462932587, -0.08186526596546173, 0.2658732533454895, 0.018698157742619514, -0.4080655574798584, -0.13641051948070526, -0.26514554023742676, 0.03573707491159439, -0.04877893626689911, 0.4003828465938568, 0.22789642214775085, -0.184688538312912, 0.1265241801738739, 0.2885940968990326, 0.18737798929214478, -0.01509883999824524, -0.11926989257335663, 0.1668473780155182, 0.02623092755675316, -0.2522924542427063, 0.09159346669912338, 0.04702308028936386, -0.13514043390750885, -0.039102695882320404, -0.3457837700843811, 0.35698097944259644, -0.21525995433330536, 0.3794248700141907, 0.25456318259239197, 0.11564341932535172, -0.14749525487422943, -0.4540219306945801, 0.22428825497627258, 0.07071065902709961, 0.2083352953195572, 0.22042416036128998, -0.2895117402076721, -0.21600711345672607, 0.3511080741882324, 0.4136967062950134, 0.587937593460083, -0.05021947622299194, 0.12336716055870056, 0.3852722942829132, -0.05869220197200775, 0.14922821521759033, -0.3554816246032715, 0.3573983311653137, -0.3687746822834015, -0.1314016431570053, -0.11939243227243423, -0.1449962705373764, -0.05268944799900055, -0.027760393917560577, -0.3291913568973541, 0.05188855528831482, -0.1076689064502716, 0.028025275096297264, -0.06026020646095276, 0.04274628311395645, 0.2566787600517273, -0.32449209690093994, 0.025891752913594246, 0.1895616054534912, -0.21975864470005035, -0.15445153415203094, 0.12920358777046204, -0.07041192054748535, -0.1816200613975525, -0.1316440999507904, -0.17394262552261353, -0.022148169577121735, -0.38954460620880127, 0.17626047134399414, -0.20863580703735352, -0.6572095155715942, -0.16344298422336578, 0.43976670503616333, 0.2753714323043823, 0.16249634325504303, 0.013648835942149162, 0.023648494854569435, 0.07855509966611862, 0.17528654634952545, -0.05870957672595978, -0.2495671808719635, 0.3623998165130615, 0.007330607622861862, -0.12887831032276154, 0.11625498533248901, 0.04816931486129761, 0.09685145318508148, -0.16450625658035278, 0.08409074693918228, 0.08800941705703735, -0.2553578317165375, 0.10049210488796234, -0.18737953901290894, 0.19353647530078888, -0.16551777720451355, 0.2358742207288742, 0.08570992201566696, -0.024425536394119263, 0.4103063642978668, -0.03511246666312218, -0.20707136392593384, -0.05334358289837837, 0.3707064688205719, 0.23300644755363464, 0.12306271493434906, 0.30308228731155396, 0.3013138771057129, -0.1839372217655182, -0.25178849697113037, 0.03962302207946777, 0.053078196942806244, 0.014003656804561615, 0.391842246055603, -0.21769587695598602, -0.003398403525352478, -0.16504253447055817, 0.31840723752975464, -0.2288551777601242, 0.30933085083961487, -0.184613898396492, -0.06744291633367538, -0.239654541015625, -0.2507244348526001, 0.1070486456155777, 0.3402976095676422, 0.18157830834388733, 0.27981987595558167, -0.023254983127117157, -0.02287960983812809, -0.44436755776405334, -0.018175242468714714, 0.13341237604618073, 0.2548685669898987, -0.18208160996437073, -0.04327332228422165, 0.20147766172885895, -0.1338428109884262, 0.26808854937553406, 0.21865783631801605, 0.010400508530437946, -0.3974204957485199, -0.24094121158123016, -0.005508258938789368, -0.19566437602043152, -0.18090222775936127, 0.13906462490558624, -0.043538980185985565, -0.27204668521881104, -0.30822470784187317, 0.40026259422302246, 0.22314316034317017, -0.06923174858093262, 0.4736888110637665, -0.06094670668244362, 0.06310511380434036, 0.10940232872962952, -0.4504331350326538, -0.14400885999202728, -0.036014437675476074, 0.11036281287670135, 0.17131835222244263, -0.020919442176818848, -0.11961205303668976, -0.21939867734909058, -0.06547219306230545, -0.12491598725318909, -0.053293757140636444, 0.12095721065998077, -0.272524356842041, -0.2832859754562378, -0.12906992435455322, 0.5359811782836914, -0.15141268074512482, -0.22249512374401093, -0.04646989703178406, -0.049736592918634415, 0.3922071158885956, -0.12345452606678009, -0.04460100457072258, 0.08881929516792297, 0.25656959414482117, 0.24488332867622375, 0.22950664162635803, 0.14995552599430084, -0.025951974093914032, -0.41474205255508423, 0.152255117893219, 0.03703935444355011, -0.2172566056251526, 0.0673065185546875, 0.18579941987991333, -0.1040148138999939, 0.006782550364732742, 0.19200429320335388, -0.1948746144771576, 0.26603367924690247, 0.4049304723739624, 0.34143152832984924, 0.5736492872238159, 0.40768274664878845, -0.10096006095409393, 0.005922570824623108, -0.09250490367412567, -0.01914196088910103, -0.2622680366039276, 0.08081276714801788, 0.17172515392303467, 0.20764286816120148, 0.3782743811607361, -0.16622129082679749, -0.26839885115623474, -0.11235719919204712, 0.06138838082551956, -0.27988019585609436, 0.042306166142225266, -0.07370807230472565, 0.10345043987035751, -0.017698541283607483, -0.09289588034152985, 0.05327582359313965, 0.03342803567647934, 0.2759316861629486, 0.14846599102020264, -0.04583156108856201, 0.03554677590727806, 0.062272265553474426, 0.15786948800086975, 0.11021124571561813, -0.16008257865905762, -0.02426358126103878, 0.4003254175186157, -0.2365984320640564, -0.3117663860321045, 0.17474299669265747, 0.3295247256755829, 0.13743513822555542, -0.12337891757488251, 0.01879681646823883, -0.1011900007724762, -0.07749360799789429, 0.03962142765522003, -0.04346609115600586, 0.1199512705206871, 0.06474794447422028, 0.22587738931179047, 0.2885470986366272, -0.2651429772377014, 0.280454158782959, 0.0273265577852726, 0.2123614102602005, -0.04830874130129814, -0.0897383913397789, 0.03536655008792877, -0.15853622555732727, -0.23835057020187378, -0.3306470811367035, -0.2923697233200073, -0.24695013463497162, 0.4516872465610504, 0.1595732718706131, 0.08379563689231873, -0.11615056544542313, 0.1339016705751419, 0.11046461760997772, 0.34740951657295227, -0.09291793406009674, 0.26422595977783203, -0.012353927828371525, 0.03136590123176575, -0.04291649907827377, 0.3053966164588928, 0.0601813904941082, 0.09112759679555893, 0.10758218169212341, 0.29898199439048767, -0.058069534599781036, -0.032420530915260315, 0.10508808493614197, -0.16496768593788147, 0.29460620880126953, 0.4543883502483368, -0.3620404601097107, 0.05978032201528549, -0.35477685928344727, -0.07747706025838852, 0.2284020483493805, -0.24141517281532288, 0.11754316836595535, -0.12833714485168457, 0.2670932412147522, -0.42211973667144775, 0.08120359480381012, 0.001575760543346405, 0.07648114860057831, 0.5128406286239624, 0.052122652530670166, 0.11043627560138702, -0.27169787883758545, 0.002420637756586075, -0.18387916684150696, 0.2062489241361618, -0.3758266270160675, 0.1977178454399109, -0.022796638309955597, 0.5786011219024658, 0.043133124709129333, -0.1628061681985855, -0.22337785363197327, 0.5133687853813171, 0.09295487403869629, -0.28184205293655396, 0.02241903357207775, 0.28996801376342773, -0.05861290544271469, -0.17530040442943573, 0.08279993385076523, 0.326915979385376, 0.05303988233208656, 0.19122286140918732, -0.32902243733406067, -0.5348243713378906, 0.5094724297523499, -0.1940649300813675, -0.21449977159500122, -0.18074265122413635, -0.009180724620819092, 0.03204084187746048, 0.22962568700313568, -0.6374087333679199, -0.16406621038913727, 0.2605538070201874, -0.03627248853445053, -0.41014450788497925, 0.11221952736377716, 0.13388529419898987, 0.004838019609451294, -0.10302355885505676, 0.26897603273391724, 0.039024628698825836, -0.3623061180114746, -0.2739368975162506, -0.2726064920425415 ]
https://github.com/huggingface/datasets/issues/4007
set_format does not work with multi dimension tensor
Hi @mariosasko I'm facing the same issue and the only work around I've found so far is to convert my `DatasetDict` to a dictionary and then create new objects with `Dataset.from_dict`. ``` dataset = load_dataset("my_dataset.py") dataset = dataset.map(lambda example: blabla(example)) dict_dataset_test = dataset["test"].to_dict() ... dataset_test = Dataset.from_dict(dict_dataset_test, features=Features(features)) ``` However, converting a `Dataset` object to a dict takes quite a lot of time and memory... Is there a way to directly create an `Array2D` without having to transform the original `Dataset` to a dict?
## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result ds = ds.with_format("torch") print(ds[0]) ``` ## Expected results ``` {'A': [tensor([[0.6689, 0.1516], [0.1403, 0.5567]])]} ``` ## Actual results ``` {'A': [tensor([0.6689, 0.1516]), tensor([0.1403, 0.5567])]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - datasets version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0
84
set_format does not work with multi dimension tensor ## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result ds = ds.with_format("torch") print(ds[0]) ``` ## Expected results ``` {'A': [tensor([[0.6689, 0.1516], [0.1403, 0.5567]])]} ``` ## Actual results ``` {'A': [tensor([0.6689, 0.1516]), tensor([0.1403, 0.5567])]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - datasets version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi @mariosasko I'm facing the same issue and the only work around I've found so far is to convert my `DatasetDict` to a dictionary and then create new objects with `Dataset.from_dict`. ``` dataset = load_dataset("my_dataset.py") dataset = dataset.map(lambda example: blabla(example)) dict_dataset_test = dataset["test"].to_dict() ... dataset_test = Dataset.from_dict(dict_dataset_test, features=Features(features)) ``` However, converting a `Dataset` object to a dict takes quite a lot of time and memory... Is there a way to directly create an `Array2D` without having to transform the original `Dataset` to a dict?
[ -0.29989445209503174, -0.3101810812950134, -0.004203749820590019, 0.17216458916664124, 0.3681079149246216, 0.10392598062753677, 0.7871424555778503, 0.3923228681087494, 0.07250215113162994, -0.042565032839775085, -0.00915653444826603, 0.4055371582508087, -0.30832481384277344, 0.21986910700798035, 0.13412050902843475, -0.19966068863868713, 0.2455977201461792, 0.1359008252620697, -0.07837095856666565, 0.08726808428764343, -0.05433422699570656, -0.20676636695861816, -0.2546618580818176, -0.4553484320640564, -0.4200068712234497, -0.04933420568704605, -0.09593717008829117, 0.05859633535146713, -0.035458795726299286, -0.1891482025384903, 0.423254132270813, 0.08025820553302765, 0.041568152606487274, 0.3647556006908417, -0.00011838292994070798, 0.10305105149745941, 0.03880421817302704, -0.07192911952733994, -0.058251116424798965, -0.09176084399223328, 0.0078732930123806, -0.4954221248626709, 0.23431895673274994, -0.40164244174957275, -0.12736491858959198, -0.20811983942985535, -0.3406108319759369, -0.5464802980422974, 0.3621429204940796, 0.3116821348667145, 0.11790034174919128, 0.1441812664270401, 0.49084603786468506, -0.14722689986228943, -0.12805676460266113, 0.288773775100708, -0.1539311408996582, -0.003290785476565361, -0.11389289796352386, 0.3927707076072693, 0.14030957221984863, 0.044545240700244904, -0.5653526782989502, 0.24473345279693604, 0.2714519798755646, 0.12405578792095184, -0.3813854455947876, -0.0381769984960556, -0.14286449551582336, 0.3931467831134796, 0.5566267967224121, -0.5205787420272827, -0.40740498900413513, -0.17273998260498047, -0.05829491838812828, -0.2899858355522156, -0.1090608611702919, 0.13560405373573303, 0.060321610420942307, 0.09483422338962555, -0.177547425031662, -0.06812328845262527, -0.3073607087135315, 0.12951017916202545, -0.24460023641586304, -0.07308466732501984, 0.0989452376961708, 0.13105443120002747, -0.09955911338329315, 0.022658316418528557, 0.15481308102607727, 0.10903167724609375, 0.0640157163143158, -0.20678025484085083, -0.24180282652378082, -0.14623290300369263, -0.1243128851056099, -0.702650249004364, 0.020976349711418152, -0.31416386365890503, 0.20223507285118103, 0.25960326194763184, -0.13587038218975067, 0.10634388029575348, -0.127198725938797, 0.26628783345222473, -0.17768436670303345, 0.05190877616405487, 0.08055460453033447, -0.40687188506126404, 0.254012793302536, 0.10136520117521286, 0.04595707356929779, -0.2484613060951233, 0.1788480579853058, 0.0821896493434906, 0.27240270376205444, 0.13557323813438416, -0.23296640813350677, -0.030622169375419617, -0.4300169348716736, 0.0612834170460701, -0.09496844559907913, 0.11406171321868896, -0.01962532475590706, 0.39444026350975037, 0.13195213675498962, 0.2450086623430252, -0.24054209887981415, 0.06026609614491463, -0.07456671446561813, 0.12018273770809174, -0.043271079659461975, -0.15798833966255188, 0.25593361258506775, 0.41402027010917664, 0.08628667145967484, 0.11874478310346603, 0.15733931958675385, 0.08369733393192291, 0.07620219141244888, -0.13945861160755157, 0.4856286942958832, 0.1970568299293518, 0.05614279583096504, 0.34062460064888, 0.10468071699142456, -0.19506406784057617, -0.052363358438014984, 0.1956515610218048, -0.1680024266242981, 0.027709785848855972, -0.4178101122379303, 0.05526885762810707, -0.09936857223510742, 0.10598921775817871, -0.1800525188446045, 0.1340429186820984, 0.40887030959129333, -0.010493148118257523, 0.021252430975437164, -0.36376166343688965, -0.256306529045105, -0.4496004283428192, 0.30730313062667847, 0.135900616645813, -0.6017695665359497, 0.13613411784172058, 0.37876906991004944, 0.23507355153560638, 0.24729087948799133, 0.2050020694732666, 0.023370204493403435, 0.1016947403550148, -0.1292007714509964, -0.1812778115272522, 0.2785591781139374, -0.3042546808719635, -0.14274410903453827, -0.14178955554962158, -0.16823527216911316, 0.10667607933282852, 0.19171643257141113, 0.27981576323509216, 0.19656594097614288, 0.06807514280080795, 0.06554554402828217, 0.27585864067077637, 0.04833899810910225, 0.16475948691368103, -0.10222489386796951, -0.003407025709748268, 0.5283472537994385, 0.06668224930763245, 0.05567871779203415, -0.1779005527496338, -0.16840121150016785, 0.5152650475502014, 0.20375004410743713, -0.24507826566696167, 0.07197779417037964, 0.06233320012688637, 0.09032932668924332, -0.1902397722005844, 0.10102172195911407, -0.12948240339756012, -0.5076837539672852, 0.09207970649003983, 0.378692626953125, -0.06136128306388855, 0.020958364009857178, 0.06031262129545212, -0.13218429684638977, -0.05747498571872711, -0.2561921179294586, -0.199203759431839, 0.05953563004732132, -0.19628775119781494, 0.07492698729038239, -0.003280898556113243, -0.11110691726207733, 0.13161522150039673, 0.2702736556529999, 0.08254795521497726, -0.3264696002006531, 0.052693501114845276, 0.13465195894241333, -0.26014944911003113, -0.19633015990257263, 0.4301595389842987, 0.12057231366634369, -0.1480513960123062, -0.1401718556880951, 0.3988824784755707, 0.25119298696517944, -0.2633901834487915, -0.5608355402946472, 0.37374359369277954, 0.19395336508750916, -0.10046955943107605, 0.09816987067461014, 0.203907772898674, 0.036467574536800385, -0.30315062403678894, -0.6140391826629639, 0.44494467973709106, 0.08805800974369049, 0.1426103562116623, -0.5082728862762451, 0.3476652204990387, 0.2786191701889038, 0.07282280921936035, -0.003586186096072197, -0.3368304371833801, -0.2354937046766281, -0.1191016137599945, 0.10742953419685364, -0.05435347557067871, -0.28637972474098206, 0.20585747063159943, 0.3202071487903595, 0.17967933416366577, 0.28492432832717896, -0.06276275962591171, -0.04550507664680481, -0.06799089908599854, 0.06416946649551392, -0.06272508949041367, 0.22187194228172302, 0.09789952635765076, -0.020564619451761246, 0.17136307060718536, -0.0033165011554956436, -0.2366008758544922, 0.14521390199661255, -0.06583994626998901, 0.2883564829826355, -0.1345096230506897, 0.3506563901901245, -0.10842378437519073, 0.08046140521764755, 0.06912173330783844, 0.09144219756126404, 0.025124557316303253, -0.28684771060943604, -0.05098696053028107, -0.3983536958694458, 0.09117820113897324, -0.319551944732666, -0.21485655009746552, 0.14381706714630127, 0.019403425976634026, -0.22957296669483185, 0.15076209604740143, 0.02868461236357689, 0.13487093150615692, 0.26298126578330994, -0.2685750126838684, 0.4098828434944153, -0.3069906234741211, 0.07941016554832458, -0.12827350199222565, 0.044599272310733795, 0.016677625477313995, 0.10503405332565308, -0.15537911653518677, 0.34971103072166443, 0.14453651010990143, -0.07906347513198853, -0.17598414421081543, -0.18930929899215698, -0.022395886480808258, -0.038971707224845886, -0.1728956699371338, 0.4515314996242523, -0.00962664932012558, -0.10500606894493103, -0.015899598598480225, 0.24969786405563354, 0.19180504977703094, 0.09530942142009735, 0.3372296094894409, -0.15096648037433624, -0.013330703601241112, -0.2634161710739136, -0.4636003077030182, 0.07242774218320847, -0.14913150668144226, 0.16696986556053162, -0.2357281893491745, 0.2056511491537094, 0.05672748014330864, 0.2675277888774872, 0.13409556448459625, 0.2927478849887848, 0.13563911616802216, 0.03973359614610672, 0.002407591789960861, 0.3253348171710968, -0.28621405363082886, -0.3015814423561096, -0.2505245506763458, -0.04957261309027672, 0.1746528297662735, 0.5346687436103821, -0.10671985149383545, -0.21560494601726532, -0.14544184505939484, 0.06591400504112244, -0.10270810127258301, -0.03761801868677139, 0.43689125776290894, 0.08437507599592209, -0.07479371875524521, -0.09661667793989182, -0.021701905876398087, 0.2662900686264038, -0.01748001202940941, 0.03533117473125458, 0.13702431321144104, 0.5116719007492065, 0.31274011731147766, 0.2480870485305786, 0.14405709505081177, -0.27480819821357727, 0.004614509642124176, -0.12810580432415009, 0.11136963963508606, -0.28782984614372253, -0.35380882024765015, 0.2528308928012848, -0.04394175112247467, -0.15372370183467865, -0.17000360786914825, -0.13599234819412231, -0.3020339906215668, -0.03200092166662216, 0.3007828891277313, -0.29736223816871643, -0.05376693606376648, 0.02067965641617775, -0.3092966079711914, 0.16269223392009735, -0.04364293813705444, 0.4198864698410034, -0.10270197689533234, -0.15614750981330872, -0.034223802387714386, -0.2633066177368164, 0.06658332049846649, -0.05971573293209076, -0.481952428817749, -0.26217785477638245, -0.3348388969898224, 0.17303627729415894, 0.08885020762681961, 0.7698144912719727, 0.09349849820137024, 0.061742596328258514, 0.05879352241754532, 0.02386981062591076, 0.9581420421600342, 0.08741266280412674, -0.171823650598526, 0.2539207935333252, -0.016732120886445045, -0.8874931335449219, -0.2416960895061493, -0.10136672854423523, 0.42990508675575256, 0.09258905053138733, 0.16131839156150818, -0.23585107922554016, -0.16694651544094086, 0.14081932604312897, 0.34790852665901184, -0.1995227336883545, 0.14578039944171906, 0.033922914415597916, -0.3171999752521515, -0.11137527972459793, -0.05310820788145065, -0.01687442883849144, 0.3204411268234253, 0.16260883212089539, -0.32503223419189453, -0.2370971292257309, -0.20241424441337585, 0.07677377760410309, -0.12412261962890625, 0.36248382925987244, 0.34299877285957336, 0.14104607701301575, 0.216315358877182, 0.13572314381599426, 0.21388192474842072, 0.016524329781532288, -0.02782532572746277, 0.04130278155207634, 0.041834574192762375, -0.16583405435085297, 0.3168860077857971, 0.047756604850292206, -0.16539651155471802, -0.020061932504177094, -0.3278105854988098, 0.0745629221200943, -0.2674688696861267, 0.23651519417762756, 0.2522047460079193, -0.08917953819036484, -0.4164448082447052, -0.6880823373794556, 0.1889055073261261, 0.1539834886789322, 0.21423442661762238, 0.3022294342517853, -0.2519571781158447, -0.28012651205062866, 0.5552857518196106, 0.43860745429992676, 0.3751482367515564, -0.21252717077732086, 0.2904524505138397, 0.27272874116897583, -0.2221173197031021, 0.2691936194896698, -0.25231510400772095, 0.2619035542011261, -0.31875208020210266, 0.04950786381959915, -0.07068327814340591, -0.18465416133403778, 0.013712562620639801, 0.13912203907966614, -0.1436799317598343, 0.10789360105991364, -0.1695229411125183, 0.023931710049510002, -0.03604956716299057, 0.054645225405693054, 0.3049902617931366, -0.44615474343299866, 0.1180654764175415, 0.0701582059264183, -0.1772310584783554, -0.4057117700576782, 0.08932836353778839, -0.027988702058792114, -0.10094594955444336, -0.06332346051931381, -0.4684838652610779, -0.1287234127521515, -0.3150976896286011, 0.32331812381744385, -0.094057098031044, -0.6460619568824768, 0.022920925170183182, 0.6170648336410522, 0.44058144092559814, 0.2067101150751114, -0.055372677743434906, -0.03228027746081352, -0.09360606223344803, 0.40662285685539246, 0.09617067873477936, -0.3777235746383667, 0.4216027855873108, 0.20882755517959595, 0.12810948491096497, -0.003962382674217224, -0.007616641465574503, 0.048374734818935394, -0.18246424198150635, 0.11285209655761719, 0.19737498462200165, -0.2763235569000244, -0.01667170599102974, -0.040798887610435486, 0.19079361855983734, -0.2961587607860565, 0.04456498846411705, 0.19971205294132233, -0.06469214707612991, 0.6414163112640381, -0.22117860615253448, -0.12014373391866684, 0.08923681825399399, 0.41152989864349365, 0.26837921142578125, 0.017079457640647888, 0.36679887771606445, 0.2804362177848816, -0.0844232439994812, -0.12245746701955795, 0.308968186378479, 0.0904780924320221, -0.019608020782470703, 0.47755929827690125, -0.009476261213421822, -0.07354794442653656, -0.19924502074718475, 0.05816926434636116, -0.3589053750038147, 0.2915023863315582, -0.14368176460266113, -0.09647184610366821, -0.1981772482395172, -0.11749297380447388, 0.19712381064891815, 0.24456699192523956, 0.2249886691570282, 0.22574007511138916, -0.20280025899410248, -0.06992916762828827, -0.21102848649024963, -0.027447620406746864, 0.2407720983028412, 0.1733406037092209, -0.28075382113456726, 0.05803300067782402, 0.06180232763290405, -0.275175005197525, 0.08019006997346878, 0.003276536241173744, 0.029118100181221962, -0.19548320770263672, -0.2686915099620819, 0.08107035607099533, -0.1870061457157135, -0.10912831127643585, 0.13112396001815796, -0.24374157190322876, -0.3111690878868103, -0.36897939443588257, 0.375091016292572, 0.5640628337860107, -0.05804155766963959, 0.3581574857234955, -0.03688482567667961, 0.09224551171064377, 0.12498728930950165, -0.2635624408721924, -0.1794915497303009, -0.04478831589221954, 0.1161305159330368, 0.2466210573911667, 0.07526122033596039, -0.10103081166744232, -0.1577223241329193, -0.004321619868278503, -0.16609157621860504, -0.2558867037296295, 0.12878379225730896, -0.3876553773880005, -0.25334280729293823, 0.03318861126899719, 0.612917423248291, -0.03042449802160263, -0.1604633331298828, 0.02470823936164379, 0.13226650655269623, 0.14885103702545166, -0.060338251292705536, -0.12449786812067032, 0.3700377345085144, 0.06412352621555328, -0.04878924787044525, 0.31452810764312744, 0.22276148200035095, -0.051623474806547165, -0.5368331670761108, 0.0701650008559227, 0.12947297096252441, -0.24977357685565948, 0.13390366733074188, 0.14794400334358215, -0.13075928390026093, -0.060669463127851486, 0.007794594392180443, -0.14250795543193817, 0.2741618752479553, 0.7601377367973328, 0.4869872033596039, 0.7613641023635864, 0.5562974810600281, 0.07750512659549713, 0.04680858179926872, -0.12701380252838135, -0.002551443874835968, -0.23776793479919434, -0.007260724902153015, 0.2099369764328003, 0.02489127591252327, 0.4689290523529053, -0.27431344985961914, -0.3924208879470825, -0.07048285752534866, 0.0005461797118186951, -0.26392003893852234, 0.03570489212870598, 0.053479574620723724, 0.04853842407464981, 0.1337919980287552, -0.0660056546330452, -0.15012378990650177, -0.14740483462810516, 0.14684684574604034, 0.05271175876259804, 0.017809294164180756, 0.03542071580886841, 0.23527884483337402, 0.04905468970537186, 0.07440413534641266, -0.1628110408782959, -0.06528723984956741, 0.4353623390197754, -0.20945367217063904, -0.31433871388435364, 0.30814486742019653, 0.3003907799720764, 0.3156912326812744, -0.1455114781856537, -0.12388689070940018, -0.07881833612918854, -0.11018707603216171, -0.0202350914478302, 0.10020187497138977, -0.06169059872627258, -0.07028323411941528, 0.09994372725486755, 0.008366843685507774, -0.04959573596715927, 0.14403487741947174, 0.22701118886470795, 0.12847547233104706, -0.15811805427074432, 0.004941098392009735, -0.0943174809217453, -0.1922639012336731, 0.00879622995853424, -0.019446708261966705, -0.30384719371795654, -0.5629644393920898, 0.5869078636169434, 0.04866091161966324, 0.06224331259727478, -0.0005547765176743269, 0.032421257346868515, 0.14530108869075775, 0.3733516335487366, -0.13285137712955475, 0.26735469698905945, -0.05216905474662781, 0.0347888320684433, -0.1556035876274109, 0.10473144054412842, -0.054839055985212326, 0.2595371901988983, 0.07266052812337875, 0.31094276905059814, 0.05808902531862259, 0.05902235582470894, 0.012070007622241974, -0.0959649384021759, 0.1424395591020584, 0.5378477573394775, -0.19138698279857635, -0.012160122394561768, -0.3281022310256958, 0.006939650513231754, 0.10033933818340302, -0.3356921672821045, 0.2345416098833084, 0.07305506616830826, 0.017219245433807373, -0.3048187494277954, 0.22927340865135193, 0.04873746261000633, 0.11315363645553589, 0.3746674060821533, 0.1895918846130371, 0.15776647627353668, -0.1145608127117157, -0.03971487656235695, -0.17402510344982147, 0.16338834166526794, -0.2592940926551819, 0.24858570098876953, -0.0997692346572876, 0.5940648317337036, -0.19281409680843353, -0.0429801382124424, -0.029312729835510254, 0.4688698649406433, -0.03380798548460007, -0.29003146290779114, -0.23162412643432617, 0.3759687840938568, -0.24467149376869202, -0.024771537631750107, 0.028619468212127686, 0.28335699439048767, -0.12394101917743683, 0.2966826558113098, -0.20771849155426025, -0.4202534556388855, 0.4402981400489807, -0.06487970799207687, -0.15602953732013702, -0.18228746950626373, 0.04713962972164154, -0.09080033749341965, 0.19677110016345978, -0.38045087456703186, -0.15802356600761414, 0.1948532909154892, -0.11986873298883438, -0.2549338936805725, 0.3049143850803375, 0.07122956961393356, -0.15596076846122742, -0.1821136772632599, 0.27427610754966736, -0.19199445843696594, -0.36957553029060364, -0.19467546045780182, -0.2336406111717224 ]
https://github.com/huggingface/datasets/issues/4007
set_format does not work with multi dimension tensor
Hi! Yes, you can directly pass the `Features` dictionary as `features` in `map` to cast the column to `Array2D`: ```python dataset = dataset.map(lambda example: blabla(example), features=Features(features)) ``` Or you can use `cast` after `map` to do that: ```python dataset = dataset.map(lambda example: blabla(example)) dataset = dataset.cast(Features(features)) ```
## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result ds = ds.with_format("torch") print(ds[0]) ``` ## Expected results ``` {'A': [tensor([[0.6689, 0.1516], [0.1403, 0.5567]])]} ``` ## Actual results ``` {'A': [tensor([0.6689, 0.1516]), tensor([0.1403, 0.5567])]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - datasets version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0
47
set_format does not work with multi dimension tensor ## Describe the bug set_format only transforms the last dimension of a multi-dimension list to tensor ## Steps to reproduce the bug ```python import torch from datasets import Dataset ds = Dataset.from_dict({"A": [torch.rand((2, 2))]}) # ds = Dataset.from_dict({"A": [np.random.rand(2, 2)]}) # => same result ds = ds.with_format("torch") print(ds[0]) ``` ## Expected results ``` {'A': [tensor([[0.6689, 0.1516], [0.1403, 0.5567]])]} ``` ## Actual results ``` {'A': [tensor([0.6689, 0.1516]), tensor([0.1403, 0.5567])]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - datasets version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi! Yes, you can directly pass the `Features` dictionary as `features` in `map` to cast the column to `Array2D`: ```python dataset = dataset.map(lambda example: blabla(example), features=Features(features)) ``` Or you can use `cast` after `map` to do that: ```python dataset = dataset.map(lambda example: blabla(example)) dataset = dataset.cast(Features(features)) ```
[ -0.2981499433517456, -0.552294135093689, -0.0851084440946579, 0.06532986462116241, 0.4656409025192261, 0.0859980508685112, 0.7949094176292419, 0.4860951602458954, 0.02254784107208252, -0.012723922729492188, -0.02882932685315609, 0.4424654543399811, -0.14308370649814606, 0.2112058848142624, 0.027966992929577827, -0.3929630517959595, 0.11229394376277924, 0.13941112160682678, -0.060113340616226196, 0.027289025485515594, -0.15140318870544434, -0.09785029292106628, -0.37839603424072266, -0.21260927617549896, -0.2984617352485657, -0.06900737434625626, -0.0898890495300293, 0.012036919593811035, 0.03142252936959267, -0.10732404887676239, 0.13078220188617706, -0.04922563210129738, 0.09101184457540512, 0.2862333357334137, -0.00010784478217829019, 0.06234300136566162, 0.06149783730506897, -0.08650679141283035, 0.12583020329475403, -0.1769229620695114, 0.004693415015935898, -0.4612664580345154, 0.0926804468035698, -0.5077941417694092, -0.18887466192245483, -0.33399808406829834, -0.2899530529975891, -0.42997080087661743, 0.06277349591255188, 0.4227616786956787, 0.23918066918849945, 0.2704353928565979, 0.39034131169319153, -0.017782993614673615, 0.010647311806678772, 0.07793664187192917, -0.08774483948945999, -0.08629338443279266, -0.07302264869213104, 0.41851428151130676, 0.1011509969830513, 0.28802454471588135, -0.48563167452812195, 0.24538365006446838, 0.1595362424850464, 0.2805975079536438, -0.1532193124294281, -0.0428941547870636, -0.04338429123163223, 0.4162063002586365, 0.5301895141601562, -0.3511504828929901, -0.21011307835578918, -0.007507599890232086, -0.12493415921926498, -0.37098750472068787, -0.056438811123371124, 0.27342039346694946, 0.04606083780527115, 0.07927034050226212, -0.18558667600154877, 0.17509375512599945, -0.17703628540039062, 0.16240887343883514, -0.2736082077026367, 0.24957092106342316, -0.007611170411109924, 0.12404558062553406, -0.1638721525669098, -0.03538142144680023, 0.08866681158542633, 0.11310449987649918, 0.14892494678497314, -0.17510481178760529, -0.2126559466123581, -0.1604200303554535, -0.09431044012308121, -0.5740483403205872, -0.13475841283798218, -0.29777246713638306, 0.13409698009490967, 0.28442463278770447, -0.09020044654607773, 0.2716381251811981, -0.04986100271344185, 0.1914139837026596, -0.15301379561424255, 0.17150618135929108, 0.09013406187295914, -0.27638399600982666, 0.2281486690044403, 0.06332278251647949, 0.22131289541721344, -0.3300513029098511, 0.21292461454868317, 0.20423582196235657, 0.28356456756591797, 0.05208965018391609, -0.24916651844978333, -0.02278139442205429, -0.3658277094364166, -0.06756662577390671, -0.14424826204776764, 0.2590582072734833, -0.09212157875299454, 0.33036306500434875, 0.11479383707046509, 0.17842936515808105, -0.0971604734659195, 0.07259590178728104, -0.1764586716890335, 0.1572905331850052, 0.032577674835920334, -0.27496927976608276, 0.09332668781280518, 0.3225744664669037, 0.24621522426605225, 0.12152186781167984, 0.15187013149261475, 0.07168063521385193, -0.05458323657512665, -0.137084499001503, 0.4439857602119446, 0.23054958879947662, 0.06409360468387604, 0.23681993782520294, 0.14428281784057617, -0.08574217557907104, -0.18921753764152527, 0.2546811103820801, -0.29153531789779663, 0.09741328656673431, -0.3632901608943939, 0.18458040058612823, -0.05901410058140755, 0.0476638600230217, -0.02156630903482437, 0.11317186057567596, 0.43669113516807556, 0.008921734988689423, 0.17700743675231934, -0.31084203720092773, -0.23152941465377808, -0.42014995217323303, 0.16150730848312378, -0.13309268653392792, -0.3900402784347534, 0.0996805727481842, 0.5315006971359253, 0.23385272920131683, 0.28558263182640076, 0.18119914829730988, -0.02858549915254116, -0.06241283565759659, -0.08914665877819061, 0.08723653852939606, 0.4511389434337616, -0.19563554227352142, -0.08561296761035919, -0.1799582540988922, -0.11698500066995621, 0.009512929245829582, 0.18210729956626892, 0.0894622728228569, 0.1701788753271103, 0.14439992606639862, 0.09682435542345047, 0.309051513671875, 0.07088753581047058, 0.3027053773403168, -0.14705558121204376, 0.09344722330570221, 0.5197035670280457, 0.045342642813920975, 0.011357259005308151, -0.16944390535354614, -0.11917843669652939, 0.3876902759075165, 0.2818293869495392, -0.13294848799705505, 0.026495523750782013, 0.028512174263596535, -0.006861928850412369, -0.18980173766613007, 0.15103664994239807, -0.2329809069633484, -0.3934711217880249, -0.02753128670156002, 0.37534090876579285, -0.10456177592277527, -0.04623858630657196, -0.06448632478713989, -0.18965250253677368, -0.13717731833457947, -0.22969816625118256, -0.15638557076454163, 0.18059289455413818, -0.05763353407382965, -0.012180419638752937, 0.010386914014816284, -0.13024461269378662, -0.0399586483836174, 0.23317502439022064, -0.029155762866139412, -0.21945923566818237, 0.11288772523403168, -0.03644938766956329, -0.32748696208000183, -0.16824454069137573, 0.3328385353088379, 0.20019575953483582, -0.057426709681749344, -0.21729794144630432, 0.4454168379306793, -0.04139810428023338, -0.17154930531978607, -0.6318693161010742, 0.33306968212127686, 0.13057231903076172, -0.18177682161331177, 0.015479084104299545, 0.23847879469394684, 0.08503052592277527, -0.18632325530052185, -0.6432258486747742, 0.5491039752960205, 0.008318088948726654, 0.03468547761440277, -0.46268635988235474, 0.28226950764656067, 0.26340800523757935, 0.003977615386247635, -0.016293521970510483, -0.2876339852809906, -0.17431798577308655, -0.13277220726013184, -0.14363515377044678, -0.059782639145851135, -0.465668261051178, 0.21591264009475708, 0.5695896148681641, 0.13136546313762665, 0.30877554416656494, -0.07479477673768997, -0.009762607514858246, -0.016180146485567093, 0.17249763011932373, -0.32610785961151123, 0.22619149088859558, 0.13897721469402313, 0.04714956134557724, 0.0584806427359581, -0.0411318764090538, -0.2343185991048813, 0.1565031111240387, -0.14891158044338226, 0.12491293996572495, -0.055401384830474854, 0.3252812325954437, -0.21523216366767883, 0.04348620027303696, 0.11753876507282257, 0.10314390063285828, 0.11254286766052246, -0.3488337993621826, 0.10938369482755661, -0.4347797632217407, 0.10006172209978104, -0.2807216942310333, -0.25057411193847656, 0.11526982486248016, 0.011648638173937798, -0.1474558562040329, 0.17427626252174377, -0.01351771131157875, 0.1469794362783432, 0.19447997212409973, -0.3528444170951843, 0.5359169840812683, -0.23645754158496857, 0.008932173252105713, -0.038237135857343674, 0.023157726973295212, 0.11880546808242798, -0.05951842665672302, -0.1034262552857399, 0.22490350902080536, 0.168397918343544, -0.2043604999780655, -0.11688756197690964, -0.1603400707244873, 0.001446254551410675, -0.1964360475540161, -0.2843864858150482, 0.4421095550060272, 0.13622170686721802, -0.13829106092453003, 0.008494374342262745, 0.3367719054222107, 0.12370322644710541, 0.09920068085193634, 0.3657227158546448, -0.109011709690094, -0.0639791414141655, -0.2756558358669281, -0.5181693434715271, 0.06961763650178909, -0.23690229654312134, 0.1376340091228485, -0.2800131142139435, 0.25773197412490845, -0.1554555594921112, 0.3204120695590973, 0.11220139265060425, 0.16482819616794586, 0.18317975103855133, -0.04450780525803566, 0.07614628970623016, 0.37064409255981445, -0.28897562623023987, -0.25521862506866455, -0.13168247044086456, -0.008396336808800697, 0.11771951615810394, 0.4046875834465027, -0.020367030054330826, -0.3151378929615021, -0.08715815097093582, 0.18840450048446655, -0.04680352658033371, -0.018734289333224297, 0.45968565344810486, 0.044081948697566986, -0.1646585762500763, -0.06627602875232697, 0.057677384465932846, 0.1173059269785881, 0.11552581191062927, 0.04041293263435364, 0.1934199035167694, 0.41847527027130127, 0.3127138912677765, 0.05444243550300598, 0.06500217318534851, -0.3441449999809265, 0.1377582997083664, -0.2354223132133484, 0.01396847516298294, -0.16916930675506592, -0.3050026297569275, 0.24545395374298096, -0.0731550008058548, -0.03668549656867981, -0.0950971245765686, -0.19206324219703674, -0.37046298384666443, 0.021181635558605194, 0.28475409746170044, -0.36959195137023926, -0.03209594637155533, 0.12669844925403595, -0.01275705173611641, 0.15932556986808777, -0.09784358739852905, 0.371142715215683, -0.15034706890583038, -0.21574300527572632, 0.06061496213078499, -0.11449936032295227, -0.0895397886633873, -0.09627754986286163, -0.40973860025405884, -0.25998368859291077, -0.2589784860610962, 0.2852473855018616, 0.19608795642852783, 0.5468744039535522, 0.03481997922062874, -0.005445081740617752, 0.10009597986936569, -0.013993427157402039, 0.783636212348938, -0.03353127837181091, -0.03891632705926895, 0.2137918323278427, 0.057530477643013, -0.759873628616333, -0.290355384349823, -0.24280336499214172, 0.17668472230434418, 0.1988409161567688, 0.35660070180892944, -0.2020082175731659, -0.1839018166065216, 0.2193819284439087, 0.15084713697433472, -0.2088015377521515, 0.038866668939590454, -0.014753766357898712, -0.27278414368629456, -0.1677914559841156, 0.01941026747226715, 0.061905935406684875, 0.35654938220977783, 0.06546150892972946, -0.3740510642528534, -0.10261235386133194, -0.2815387547016144, 0.023344330489635468, -0.02667400613427162, 0.3897150158882141, 0.29291078448295593, -0.13746735453605652, 0.06026782467961311, 0.13457031548023224, -0.029069913551211357, 0.06619960069656372, -0.05742179974913597, 0.13194052875041962, 0.07160278409719467, -0.2840510308742523, 0.26653939485549927, 0.08565263450145721, -0.19146130979061127, 0.027067270129919052, -0.42713093757629395, 0.20955978333950043, -0.2136908918619156, 0.2495085746049881, 0.3117128014564514, 0.027860894799232483, -0.12237155437469482, -0.5679475665092468, 0.2525632977485657, 0.1028219610452652, 0.18410809338092804, 0.1920989602804184, -0.24602846801280975, -0.2671278715133667, 0.5057569146156311, 0.4263056218624115, 0.4751424193382263, -0.12283068895339966, 0.12072263658046722, 0.3385924696922302, -0.13539953529834747, 0.192713662981987, -0.3511677384376526, 0.2653404474258423, -0.3234642744064331, -0.09326401352882385, -0.1519879400730133, -0.08593416213989258, -0.009656473994255066, 0.06558690220117569, -0.33426254987716675, 0.08532059192657471, -0.14289644360542297, 0.06628884375095367, 0.026225367560982704, -0.10291179269552231, 0.3463645875453949, -0.42176055908203125, -0.0397879034280777, 0.10833904147148132, -0.2145511358976364, -0.3353826105594635, 0.16176864504814148, -0.06488464772701263, -0.08827738463878632, -0.16001594066619873, -0.3055400848388672, -0.08012939244508743, -0.2231587916612625, 0.200796440243721, -0.1332474648952484, -0.5316928029060364, -0.061823610216379166, 0.5697117447853088, 0.3310314416885376, 0.11509060859680176, -0.007737739011645317, -0.020834945142269135, 0.11165748536586761, 0.335507869720459, 0.024957457557320595, -0.22565039992332458, 0.3919750154018402, 0.04951687157154083, -0.032464511692523956, 0.17694950103759766, 0.025927521288394928, 0.01635029911994934, -0.15999898314476013, 0.09474730491638184, 0.0977788046002388, -0.3801455795764923, -0.040210530161857605, -0.1779857873916626, 0.1922909915447235, -0.25123757123947144, 0.14854532480239868, 0.05093734711408615, -0.06267386674880981, 0.6144882440567017, -0.1161155104637146, -0.22385220229625702, 0.05344850569963455, 0.45384860038757324, 0.2736954092979431, 0.10024562478065491, 0.21786144375801086, 0.35230210423469543, -0.1895764321088791, -0.18836867809295654, 0.101629339158535, 0.03888268396258354, 0.028131477534770966, 0.4013691842556, -0.113948293030262, -0.10434456169605255, -0.22233815491199493, 0.2688628137111664, -0.33584558963775635, 0.3536984920501709, -0.24212703108787537, -0.14068682491779327, -0.19518907368183136, -0.07906940579414368, 0.2426171451807022, 0.2723945081233978, 0.2621963918209076, 0.2194652557373047, -0.15379300713539124, 0.0014718621969223022, -0.35582435131073, -0.0653672143816948, 0.17768247425556183, 0.2882016599178314, -0.07180268317461014, 0.05431390553712845, 0.11049169301986694, -0.15183159708976746, 0.20624366402626038, 0.19065295159816742, 0.053310804069042206, -0.332173615694046, -0.23009157180786133, 0.023902758955955505, -0.20544427633285522, -0.09166953712701797, 0.06077421084046364, -0.14116115868091583, -0.3502826988697052, -0.37011152505874634, 0.38794100284576416, 0.34375280141830444, 0.008583523333072662, 0.4557287096977234, -0.05496099218726158, 0.010578569024801254, 0.10407590866088867, -0.3500095307826996, -0.2567426264286041, -0.1557825654745102, 0.06275226175785065, 0.2645539939403534, -0.029055673629045486, -0.06741589307785034, -0.24647636711597443, -0.08800327032804489, -0.18017129600048065, -0.15293577313423157, 0.2026556432247162, -0.27216893434524536, -0.25077760219573975, -0.06192026287317276, 0.5481173992156982, -0.15729746222496033, -0.24528531730175018, -0.020954469218850136, -0.001554042100906372, 0.2930127680301666, -0.1429705023765564, -0.15630066394805908, 0.2600555121898651, 0.2551814615726471, 0.11868695914745331, 0.28563687205314636, 0.24338370561599731, -0.07972688227891922, -0.3248939514160156, 0.08015714585781097, 0.0684220939874649, -0.28752726316452026, 0.0523814931511879, 0.26517683267593384, -0.09194666147232056, -0.007729891687631607, 0.1270247995853424, -0.1275525689125061, 0.318000465631485, 0.5184857845306396, 0.48024478554725647, 0.5531883239746094, 0.4969242513179779, 0.06093091145157814, -0.005722567439079285, -0.12805905938148499, 0.08579686284065247, -0.3124004304409027, 0.027919046580791473, 0.2647756040096283, 0.21010559797286987, 0.35401904582977295, -0.1923639327287674, -0.31745821237564087, -0.07796881347894669, 0.07455439865589142, -0.31112736463546753, 0.010410044342279434, 0.04830656200647354, 0.08994398266077042, -0.06011788547039032, -0.08754488825798035, -0.09688568115234375, 0.04719827324151993, 0.34255456924438477, 0.0989883691072464, 0.018951207399368286, 0.0754505842924118, 0.11670751869678497, 0.04301680624485016, 0.15506944060325623, -0.2127189040184021, -0.032922983169555664, 0.331149160861969, -0.18880480527877808, -0.22188696265220642, 0.19983533024787903, 0.3029176592826843, 0.18894800543785095, -0.08803439140319824, -0.1086348220705986, -0.12459444999694824, -0.14411155879497528, 0.024951882660388947, -0.03043227642774582, 0.06751333922147751, 0.047624725848436356, 0.1277429759502411, 0.17651432752609253, -0.1743408739566803, 0.29359573125839233, 0.060489870607852936, 0.25643017888069153, 0.0055944472551345825, -0.010939277708530426, 0.06385037302970886, -0.2824917733669281, -0.03246263414621353, -0.3257542550563812, -0.304503858089447, -0.44911444187164307, 0.41721802949905396, 0.0553017184138298, 0.15719455480575562, -0.010892326012253761, 0.10595530271530151, 0.25175535678863525, 0.25428107380867004, -0.172268807888031, 0.12765273451805115, -0.024431630969047546, 0.07940056920051575, -0.07655289769172668, 0.25224265456199646, 0.03354034945368767, 0.09783177077770233, 0.19901986420154572, 0.3604794144630432, 0.0275181345641613, 0.017852922901511192, 0.01201988011598587, -0.2820693850517273, 0.2486726939678192, 0.6378445625305176, -0.2204015552997589, -0.052925955504179, -0.2569430470466614, -0.008669828996062279, 0.09495934098958969, -0.27455413341522217, 0.26493868231773376, -0.028836563229560852, 0.1924768090248108, -0.48210054636001587, 0.07345637679100037, 0.013973746448755264, 0.008780110627412796, 0.40909844636917114, 0.013262567110359669, 0.1476154774427414, -0.22977784276008606, 0.0016827546060085297, -0.17199459671974182, 0.24508684873580933, -0.31188783049583435, 0.18391519784927368, -0.032428573817014694, 0.6210216283798218, -0.022806281223893166, -0.055921051651239395, -0.10593586415052414, 0.5185075402259827, -0.05476817488670349, -0.314491868019104, -0.04110942780971527, 0.3393141031265259, -0.17701691389083862, -0.14052711427211761, 0.05035720393061638, 0.2765921652317047, -0.011667974293231964, 0.25103864073753357, -0.2691061496734619, -0.5638752579689026, 0.4958988428115845, -0.08896046131849289, -0.2299525886774063, -0.20786358416080475, 0.025157123804092407, -0.0005893483757972717, 0.2788521647453308, -0.6094117164611816, -0.25326478481292725, 0.20673294365406036, -0.03314027935266495, -0.26938989758491516, 0.21888594329357147, 0.15629862248897552, 0.007252909243106842, -0.20696763694286346, 0.22506438195705414, -0.1040927842259407, -0.35328277945518494, -0.3638962209224701, -0.2952725887298584 ]
https://github.com/huggingface/datasets/issues/4005
Yelp not working
I don't think it's an issue with the dataset-viewer. Maybe @lhoestq or @albertvillanova could confirm. ```python >>> from datasets import load_dataset, DownloadMode >>> import itertools >>> # without streaming >>> dataset = load_dataset("yelp_review_full", name="yelp_review_full", split="train", download_mode=DownloadMode.FORCE_REDOWNLOAD) Downloading builder script: 4.39kB [00:00, 5.97MB/s] Downloading metadata: 2.13kB [00:00, 3.14MB/s] Downloading and preparing dataset yelp_review_full/yelp_review_full (download: 187.06 MiB, generated: 496.94 MiB, post-processed: Unknown size, total: 684.00 MiB) to /home/slesage/.cache/huggingface/datasets/yelp_review_full/yelp_review_full/1.0.0/13c31a618ba62568ec8572a222a283dfc29a6517776a3ac5945fb508877dde43... Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.10k/1.10k [00:00<00:00, 1.39MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets/src/datasets/load.py", line 1687, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets/src/datasets/builder.py", line 605, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1104, in _download_and_prepare super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) File "/home/slesage/hf/datasets/src/datasets/builder.py", line 676, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets/src/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=0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0'] >>> # with streaming >>> dataset = load_dataset("yelp_review_full", name="yelp_review_full", split="train", download_mode=DownloadMode.FORCE_REDOWNLOAD, streaming=True) Downloading builder script: 4.39kB [00:00, 5.53MB/s] Downloading metadata: 2.13kB [00:00, 3.14MB/s] Traceback (most recent call last): File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 375, in _info await _file_info( File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 736, in _file_info r.raise_for_status() File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://doc-0g-bs-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/gklhpdq1arj8v15qrg7ces34a8c3413d/1648144575000/07511006523564980941/*/0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0?e=download') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets/src/datasets/load.py", line 1677, in load_dataset return builder_instance.as_streaming_dataset( File "/home/slesage/hf/datasets/src/datasets/builder.py", line 906, in as_streaming_dataset splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)} File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/yelp_review_full/13c31a618ba62568ec8572a222a283dfc29a6517776a3ac5945fb508877dde43/yelp_review_full.py", line 102, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 800, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 778, in extract urlpaths = map_nested(self._extract, path_or_paths, map_tuple=True) File "/home/slesage/hf/datasets/src/datasets/utils/py_utils.py", line 306, in map_nested return function(data_struct) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 783, in _extract protocol = _get_extraction_protocol(urlpath, use_auth_token=self.download_config.use_auth_token) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 372, in _get_extraction_protocol with fsspec.open(urlpath, **kwargs) as f: File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/core.py", line 102, in __enter__ f = self.fs.open(self.path, mode=mode) File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/spec.py", line 978, in open f = self._open( File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 335, in _open size = size or self.info(path, **kwargs)["size"] File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/asyn.py", line 88, in wrapper return sync(self.loop, func, *args, **kwargs) File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/asyn.py", line 69, in sync raise result[0] File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/asyn.py", line 25, in _runner result[0] = await coro File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 388, in _info raise FileNotFoundError(url) from exc FileNotFoundError: https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0&confirm=t ``` And this is before even trying to access the rows with ```python >>> rows = list(itertools.islice(dataset, 100)) >>> rows = list(dataset.take(100)) ```
## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads.
383
Yelp not working ## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads. I don't think it's an issue with the dataset-viewer. Maybe @lhoestq or @albertvillanova could confirm. ```python >>> from datasets import load_dataset, DownloadMode >>> import itertools >>> # without streaming >>> dataset = load_dataset("yelp_review_full", name="yelp_review_full", split="train", download_mode=DownloadMode.FORCE_REDOWNLOAD) Downloading builder script: 4.39kB [00:00, 5.97MB/s] Downloading metadata: 2.13kB [00:00, 3.14MB/s] Downloading and preparing dataset yelp_review_full/yelp_review_full (download: 187.06 MiB, generated: 496.94 MiB, post-processed: Unknown size, total: 684.00 MiB) to /home/slesage/.cache/huggingface/datasets/yelp_review_full/yelp_review_full/1.0.0/13c31a618ba62568ec8572a222a283dfc29a6517776a3ac5945fb508877dde43... Downloading data: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.10k/1.10k [00:00<00:00, 1.39MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets/src/datasets/load.py", line 1687, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets/src/datasets/builder.py", line 605, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets/src/datasets/builder.py", line 1104, in _download_and_prepare super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) File "/home/slesage/hf/datasets/src/datasets/builder.py", line 676, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets/src/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=0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0'] >>> # with streaming >>> dataset = load_dataset("yelp_review_full", name="yelp_review_full", split="train", download_mode=DownloadMode.FORCE_REDOWNLOAD, streaming=True) Downloading builder script: 4.39kB [00:00, 5.53MB/s] Downloading metadata: 2.13kB [00:00, 3.14MB/s] Traceback (most recent call last): File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 375, in _info await _file_info( File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 736, in _file_info r.raise_for_status() File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://doc-0g-bs-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/gklhpdq1arj8v15qrg7ces34a8c3413d/1648144575000/07511006523564980941/*/0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0?e=download') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets/src/datasets/load.py", line 1677, in load_dataset return builder_instance.as_streaming_dataset( File "/home/slesage/hf/datasets/src/datasets/builder.py", line 906, in as_streaming_dataset splits_generators = {sg.name: sg for sg in self._split_generators(dl_manager)} File "/home/slesage/.cache/huggingface/modules/datasets_modules/datasets/yelp_review_full/13c31a618ba62568ec8572a222a283dfc29a6517776a3ac5945fb508877dde43/yelp_review_full.py", line 102, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 800, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 778, in extract urlpaths = map_nested(self._extract, path_or_paths, map_tuple=True) File "/home/slesage/hf/datasets/src/datasets/utils/py_utils.py", line 306, in map_nested return function(data_struct) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 783, in _extract protocol = _get_extraction_protocol(urlpath, use_auth_token=self.download_config.use_auth_token) File "/home/slesage/hf/datasets/src/datasets/utils/streaming_download_manager.py", line 372, in _get_extraction_protocol with fsspec.open(urlpath, **kwargs) as f: File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/core.py", line 102, in __enter__ f = self.fs.open(self.path, mode=mode) File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/spec.py", line 978, in open f = self._open( File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 335, in _open size = size or self.info(path, **kwargs)["size"] File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/asyn.py", line 88, in wrapper return sync(self.loop, func, *args, **kwargs) File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/asyn.py", line 69, in sync raise result[0] File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/asyn.py", line 25, in _runner result[0] = await coro File "/home/slesage/.pyenv/versions/datasets/lib/python3.8/site-packages/fsspec/implementations/http.py", line 388, in _info raise FileNotFoundError(url) from exc FileNotFoundError: https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbZlU4dXhHTFhZQU0&confirm=t ``` And this is before even trying to access the rows with ```python >>> rows = list(itertools.islice(dataset, 100)) >>> rows = list(dataset.take(100)) ```
[ -0.2684919238090515, -0.10004523396492004, 0.009269997477531433, 0.27532029151916504, 0.2252160906791687, 0.2547468841075897, 0.20146574079990387, 0.14407864212989807, 0.07250514626502991, -0.16813193261623383, -0.0814419835805893, 0.05561187118291855, -0.2537716031074524, 0.16023565828800201, 0.42272651195526123, 0.2531448304653168, 0.010885484516620636, 0.046812981367111206, -0.15585054457187653, -0.0012662112712860107, -0.21886278688907623, 0.11906608194112778, 0.03759373724460602, 0.013565696775913239, -0.4412781298160553, 0.3284856379032135, 0.051583074033260345, 0.12222985923290253, -0.18494032323360443, -0.5374954342842102, 0.2643105089664459, 0.11958315968513489, -0.06822365522384644, 0.7894922494888306, -0.00012005079042864963, 0.17256291210651398, 0.40853726863861084, 0.025041168555617332, -0.4103168845176697, -0.34022974967956543, -0.25544866919517517, -0.3583255112171173, 0.19643089175224304, -0.1306217908859253, -0.042577508836984634, -0.2755352556705475, -0.10162393748760223, -0.2759522795677185, -0.0014203712344169617, 0.5188542604446411, 0.1657373607158661, 0.19037586450576782, 0.05435726419091225, -0.08913438022136688, 0.13044849038124084, 0.12864644825458527, -0.15256337821483612, 0.2744516134262085, 0.11644792556762695, 0.06273794174194336, 0.05068483576178551, 0.130358025431633, -0.0013014692813158035, -0.10819023847579956, 0.5808555483818054, -0.1871146261692047, 0.2017536759376526, -0.16756635904312134, 0.34457841515541077, 0.47714343667030334, 0.4806584417819977, -0.24015942215919495, -0.23376759886741638, -0.22906377911567688, 0.13144128024578094, -0.2700912654399872, 0.31401166319847107, 0.19861537218093872, -0.15444988012313843, 0.17677316069602966, -0.5858662128448486, -0.2749737501144409, -0.043946318328380585, 0.15759827196598053, -0.08648750185966492, 0.445852130651474, 0.009999983012676239, 0.08143199235200882, 0.12182673811912537, 0.12436609715223312, 0.20366410911083221, -0.20653818547725677, -0.11149799823760986, 0.1463289111852646, -0.22782929241657257, -0.06671389937400818, 0.21159708499908447, 0.22485294938087463, 0.17853939533233643, 0.25985297560691833, 0.08092250674962997, 0.21971803903579712, 0.09295592457056046, 0.007714234292507172, 0.3808722496032715, 0.16784028708934784, 0.05526357889175415, 0.1554325819015503, 0.30201321840286255, 0.3957509696483612, 0.1254674345254898, 0.017193643376231194, 0.033723849803209305, -0.05382252484560013, -0.1066204309463501, -0.27938154339790344, 0.3210955262184143, 0.03411838784813881, -0.3510686755180359, 0.2444608211517334, -0.6254947781562805, -0.1044369786977768, 0.3001572787761688, 0.41298896074295044, -0.015351644717156887, 0.47740086913108826, 0.09985139966011047, 0.024588726460933685, -0.012487590312957764, -0.34193578362464905, -0.11222083866596222, 0.01592714712023735, -0.01587393507361412, 0.08575128763914108, 0.09233471751213074, -0.18205910921096802, 0.30279436707496643, -0.3132687509059906, -0.2716563940048218, -0.24543534219264984, 0.043314382433891296, -0.12857685983181, -0.12976890802383423, 0.014185640960931778, 0.04514145478606224, 0.2857959270477295, 0.0076228901743888855, -0.234172061085701, -0.024388782680034637, 0.30840736627578735, -0.1832961142063141, -0.30983853340148926, -0.17304667830467224, 0.18885745108127594, -0.21468275785446167, -0.07246521860361099, -0.03413791209459305, 0.16996102035045624, -0.021823927760124207, -0.061413273215293884, 0.09725958853960037, -0.08838189393281937, -0.18549135327339172, 0.016952089965343475, 0.299891859292984, 0.6725934147834778, -0.6834864616394043, -0.3785717785358429, -0.5448852777481079, -0.1854344606399536, -0.2295215129852295, 0.15161199867725372, -0.15311697125434875, 0.38336247205734253, -0.03517676517367363, 0.0025500506162643433, 0.49032682180404663, -0.008599728345870972, -0.36839723587036133, 0.1529872864484787, -0.11977603286504745, 0.2172965407371521, -0.18535354733467102, 0.17583884298801422, -0.04918339103460312, 0.029347620904445648, 0.07717178016901016, -0.22788406908512115, -0.011406639590859413, -0.02570510096848011, -0.27523374557495117, -0.20939216017723083, 0.04944823682308197, 0.011019986122846603, 0.21719282865524292, 0.05311935767531395, -0.004972018301486969, -0.14836661517620087, 0.3408311605453491, 0.011801861226558685, 0.33478453755378723, 0.4101395010948181, 0.690532922744751, 0.7163313031196594, -0.061346348375082016, 0.003484770655632019, -0.2823196351528168, 0.10284136980772018, -0.07202030718326569, 0.06704582273960114, -0.07556089758872986, -0.07204875349998474, -0.5117972493171692, 0.18430408835411072, -0.3809196650981903, -0.49088355898857117, 0.04593082517385483, 0.23738713562488556, -0.13714832067489624, 0.1564653217792511, -0.3463320732116699, 0.1919991374015808, -0.26645442843437195, 0.09521149098873138, 0.08696940541267395, 0.15586519241333008, 0.0029485709965229034, 0.06942395120859146, -0.12127179652452469, 0.25820645689964294, 0.3218848705291748, -0.1114797368645668, 0.029292333871126175, 0.5233083367347717, -0.30660542845726013, 0.07945151627063751, 0.07022042572498322, -0.27842259407043457, 0.1937353014945984, -0.3979879319667816, -0.05534429848194122, 0.17182619869709015, 0.2309740036725998, -0.11118923127651215, -0.21451395750045776, -0.012735322117805481, 0.104474738240242, 0.08965882658958435, -0.07446321099996567, 0.22109656035900116, -0.004520336166024208, -0.028139710426330566, 0.03406381607055664, -0.13822001218795776, 0.40731194615364075, -0.2525378167629242, 0.5470173954963684, -0.1148790717124939, -0.16916847229003906, -0.21979904174804688, 0.014855992048978806, -0.07246363162994385, 0.10476026684045792, 0.15112674236297607, -0.3696993589401245, -0.08784741163253784, 0.08831393718719482, 0.2841794788837433, 0.23538145422935486, 0.09456339478492737, 0.04410015791654587, 0.10040468722581863, 0.043980348855257034, -0.19198749959468842, 0.2230936735868454, 0.18717306852340698, -0.008039666339755058, 0.13573360443115234, 0.11138518899679184, -0.17180445790290833, -0.24334275722503662, 0.018766336143016815, 0.1055808737874031, 0.3162648379802704, -0.4842633008956909, -0.06330756098031998, -0.11044645309448242, -0.12687693536281586, -0.13627050817012787, -0.04982505738735199, -0.08325064182281494, -0.522680938243866, -0.09838885068893433, 0.0844789445400238, -0.20193332433700562, 0.29035043716430664, -0.324137419462204, 0.06030084192752838, -0.1057257354259491, -0.1492394655942917, -0.17817530035972595, -0.1661462038755417, -0.1808154582977295, 0.05613655969500542, 0.32042980194091797, -0.19302400946617126, 0.11955301463603973, -0.10093741863965988, -0.08074267208576202, -0.39433982968330383, -0.16952389478683472, 0.08156895637512207, -0.17543910443782806, 0.2660122513771057, -0.003099389374256134, 0.38374972343444824, -0.19176271557807922, 0.09865940362215042, 0.35768717527389526, -0.13992378115653992, -0.027942031621932983, -0.1520601361989975, 0.1804986447095871, 0.1135871484875679, -0.01774469017982483, -0.06103650480508804, -0.009403863921761513, -0.2826566994190216, 0.1923801153898239, 0.0404646135866642, 0.06237838789820671, -0.01936013251543045, 0.003968976438045502, 0.43349528312683105, 0.03565724939107895, -0.11743631958961487, -0.04097144305706024, -0.16774578392505646, 0.5934725999832153, -0.20308399200439453, -0.27985450625419617, 0.32542669773101807, 0.19930632412433624, 0.14665664732456207, 0.06381072103977203, -0.6741437911987305, -0.015676699578762054, 0.07571962475776672, 0.15925587713718414, -0.014538642019033432, -0.3215984106063843, 0.1755973845720291, 0.03744136914610863, -0.025479644536972046, -0.08806494623422623, -0.12442329525947571, -0.16591736674308777, -0.16552582383155823, 0.28127044439315796, -0.07660064846277237, 0.44562873244285583, -0.02351018600165844, 0.5885209441184998, 0.4861961007118225, 0.17942768335342407, 0.49144724011421204, -0.12741561233997345, 0.5195826888084412, -0.10482601076364517, -0.31288203597068787, -0.22856761515140533, -0.021510720252990723, 0.2706960439682007, 0.2421698123216629, 0.14919158816337585, -0.12137613445520401, -0.39867907762527466, 0.035164739936590195, -0.3530949056148529, -0.1349741816520691, -0.12531673908233643, -0.22185233235359192, 0.22105446457862854, -0.0691535472869873, 0.20995482802391052, 0.02152593433856964, -0.3829244077205658, -0.01196774747222662, 0.26744768023490906, -0.18368157744407654, -0.03931363672018051, -0.39897358417510986, 0.0708099976181984, -0.33245301246643066, 0.3345763683319092, 0.04204758629202843, 0.16320888698101044, -0.13551349937915802, 0.029420897364616394, 0.18962480127811432, -0.05958027020096779, 0.8461196422576904, 0.05065182223916054, -0.008964631706476212, 0.019287239760160446, 0.0701691210269928, -0.46787700057029724, 0.1400613933801651, 0.03988414630293846, 0.16173572838306427, 0.2710946500301361, 0.005470924079418182, -0.39076974987983704, -0.025490641593933105, 0.49009037017822266, -0.0005115338135510683, -0.0686066523194313, -0.024828625842928886, -0.031940799206495285, -0.28417184948921204, 0.1404656618833542, -0.3500169515609741, -0.07940942794084549, 0.2967073321342468, 0.17892901599407196, 0.06480908393859863, 0.24326595664024353, -0.16131579875946045, 0.2867717146873474, -0.17070429027080536, 0.3600707948207855, 0.0809570923447609, 0.17721712589263916, 0.22177653014659882, 0.23946568369865417, 0.20850630104541779, 0.7041487693786621, -0.02294819802045822, -0.3479147255420685, 0.11587786674499512, 0.11643002927303314, 0.1730949878692627, 0.626645565032959, 0.12832877039909363, -0.023832514882087708, 0.20133870840072632, 0.21483030915260315, 0.023313408717513084, 0.1600731909275055, 0.4079679548740387, -0.033992599695920944, -0.46202972531318665, -0.5348413586616516, 0.3424883782863617, -0.06743703782558441, 0.18235443532466888, 0.2032591849565506, 0.4522160291671753, -0.2856505513191223, -0.21456420421600342, -0.11297274380922318, 1.0211201906204224, 0.00788150355219841, 0.0909254252910614, 0.1632123589515686, -0.09691417217254639, 0.44567346572875977, -0.5005224347114563, 0.023511290550231934, -0.08231429010629654, 0.384504109621048, -0.16189108788967133, 0.02307501807808876, 0.2989000082015991, 0.017361775040626526, 0.03532126918435097, 0.27200910449028015, 0.12452572584152222, 0.10059141367673874, 0.08839323371648788, 0.337929904460907, -0.3691641092300415, 0.17826709151268005, 0.1707959771156311, 0.2049289494752884, -0.11113789677619934, 0.10481694340705872, -0.1269836127758026, -0.088470958173275, -0.423472136259079, -0.030332578346133232, -0.49439185857772827, -0.1822410225868225, -0.44318512082099915, 0.17665539681911469, 0.0585489496588707, -0.613795280456543, 0.1303175538778305, 0.11139538139104843, -0.1362137347459793, 0.15896284580230713, -0.49687933921813965, 0.4608709216117859, -0.20920470356941223, 0.03515378385782242, 0.019571036100387573, 0.09847254306077957, 0.15370674431324005, -0.04728895053267479, -0.3204265832901001, 0.2622273862361908, -0.18236225843429565, -0.2698325514793396, -0.0926557257771492, 0.1422635018825531, 0.1436077058315277, -0.327530175447464, -0.12589819729328156, -0.015079297125339508, -0.0420246459543705, -0.24662275612354279, 0.08315512537956238, -0.017400532960891724, -0.06462109833955765, -0.23589441180229187, 0.014970246702432632, -0.21533578634262085, -0.2897716462612152, 0.4963947832584381, -0.1522117257118225, 0.12704125046730042, 0.7142388820648193, 0.11131179332733154, -0.29374730587005615, -0.149866983294487, 0.23142221570014954, 0.11284337192773819, -0.4540533721446991, -0.20339272916316986, -0.08108370751142502, 0.1321871131658554, -0.19738666713237762, 0.07146866619586945, 0.027624202892184258, 0.27031221985816956, -0.053286779671907425, -0.13007473945617676, -0.14190427958965302, -0.0030921250581741333, 0.2833765149116516, 0.17906852066516876, -0.2623456120491028, 0.39829933643341064, 0.4297524094581604, -0.06067560613155365, -0.24279531836509705, 0.12387468665838242, -0.13453805446624756, -0.0009785592555999756, 0.2733691930770874, 0.09975743293762207, 0.30521276593208313, -0.277484267950058, 0.0880231186747551, 0.18022063374519348, -0.1523417979478836, -0.10246577858924866, -0.04655671864748001, 0.1664133071899414, 0.12461195141077042, -0.4899860918521881, -0.11593785881996155, -0.07976926118135452, -0.09563492238521576, -0.06772589683532715, -0.023654494434595108, 0.24548554420471191, 0.04600302875041962, -0.07838163524866104, 0.18711921572685242, -0.16486546397209167, -0.274895578622818, 0.02160714566707611, 0.08687569200992584, 0.25836843252182007, -0.05743478983640671, 0.05516814440488815, 0.42137280106544495, 0.13456077873706818, -0.22722044587135315, 0.24940142035484314, 0.009742408990859985, -0.08648212254047394, 0.4100126326084137, -0.3452851176261902, 0.05634698644280434, 0.28254497051239014, 0.3053583800792694, 0.6896882653236389, -0.3638354241847992, -0.05623038858175278, 0.4445066452026367, 0.07301937788724899, -0.17990951240062714, 0.23036837577819824, 0.119779571890831, -0.10066820681095123, 0.08183108270168304, -0.10811459273099899, -0.17952272295951843, -0.11778782308101654, -0.19088800251483917, 0.3195120692253113, 0.45883986353874207, -0.014999579638242722, 0.3673681318759918, 0.08030819892883301, -0.06419911235570908, 0.1700141280889511, 0.046401940286159515, 0.3037863075733185, -0.06939671188592911, 0.37869274616241455, -0.0812811329960823, 0.100537970662117, -0.43747568130493164, -0.05949940159916878, -0.057025112211704254, -0.26355496048927307, 0.08961188793182373, 0.1402425915002823, -0.4255455732345581, 0.004374168813228607, 0.021821126341819763, 0.6207191944122314, -0.36707520484924316, 0.019368141889572144, -0.24246251583099365, 0.13220767676830292, -0.18889856338500977, 0.1242268830537796, -0.26108214259147644, -0.3094410300254822, -0.22468484938144684, 0.04038418456912041, 0.0919538140296936, -0.23922716081142426, -0.18562746047973633, 0.04435921460390091, -0.36128848791122437, -0.2527245879173279, 0.09626337885856628, -0.03518693149089813, 0.2811514735221863, -0.24438098073005676, -0.08680395036935806, 0.2618744969367981, -0.06683669984340668, 0.11804209649562836, 0.23911871016025543, 0.1445765346288681, 0.1473694145679474, 0.15883515775203705, 0.07535489648580551, 0.004240245558321476, -0.2064267098903656, 0.047615379095077515, 0.19188010692596436, 0.3685029447078705, -0.17882750928401947, 0.11670039594173431, 0.05578555911779404, -0.19627472758293152, 0.21533210575580597, 0.08516593277454376, 0.511538565158844, -0.5920975804328918, 0.32499971985816956, -0.6322647333145142, -0.28443437814712524, -0.28399553894996643, -0.2636183500289917, -0.18974816799163818, 0.053014542907476425, 0.16613095998764038, -0.13644352555274963, 0.018064364790916443, -0.4201815128326416, 0.04555453360080719, 0.13025467097759247, 0.3375336825847626, 0.48419126868247986, -0.4461616575717926, -0.1673676073551178, -0.3500868082046509, -0.7655287981033325, 0.05397659167647362, -0.2500728666782379, 0.180857852101326, -0.17611902952194214, -0.015327156521379948, -0.2077084481716156, 0.12283062934875488, 0.12058204412460327, 0.19582338631153107, -0.1325516700744629, -0.1169792115688324, -0.10643517971038818, -0.26676154136657715, -0.05562783032655716, 0.17414510250091553, 0.11364239454269409, -0.14328667521476746, 0.2875140607357025, -0.4435720443725586, -0.06455560773611069, 0.1578235626220703, -0.12363964319229126, 0.02845419943332672, 0.11192986369132996, 0.26833468675613403, -0.10653539001941681, 0.4639771580696106, 0.025876197963953018, -0.03546173498034477, -0.23236805200576782, -0.240395650267601, -0.007800305262207985, 0.291210800409317, 0.008955536410212517, 0.1963018774986267, -0.026013288646936417, -0.49339327216148376, -0.10872487723827362, 0.4501339793205261, -0.07343938201665878, 0.13749799132347107, -0.10204534977674484, -0.2410435974597931, -0.20745816826820374, 0.020910069346427917, 0.3012765944004059, -0.05854925513267517, -0.06524809449911118, 0.03803786635398865, -0.3081290125846863, -0.2622634470462799, 0.48192209005355835, -0.3005276918411255, 0.0488426499068737, -0.2554764449596405, 0.26601552963256836, 0.15840846300125122, -0.19579815864562988, -0.53409743309021, -0.11003023386001587, 0.45820945501327515, 0.22458583116531372, -0.25638097524642944, 0.23537589609622955, -0.4138575494289398, -0.08324656635522842, -0.01956837624311447, 0.2827533483505249, 0.1280815154314041, -0.15504783391952515, 0.25994229316711426, -0.027289243414998055 ]
https://github.com/huggingface/datasets/issues/4005
Yelp not working
Yet another issue related to google drive not being nice. Most likely your IP has been banned from using their API programmatically. Do you know if we are allowed to host and redistribute the data ourselves ?
## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads.
37
Yelp not working ## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads. Yet another issue related to google drive not being nice. Most likely your IP has been banned from using their API programmatically. Do you know if we are allowed to host and redistribute the data ourselves ?
[ -0.10308288037776947, 0.078957200050354, -0.029037391766905785, 0.20698553323745728, 0.23674149811267853, 0.25668656826019287, 0.1672256588935852, 0.09024367481470108, 0.2104642391204834, -0.18449391424655914, -0.15458285808563232, -0.04030400142073631, -0.14190267026424408, 0.46068093180656433, 0.2723682224750519, 0.21460530161857605, 0.06474591791629791, -0.11035323143005371, -0.008840322494506836, -0.05134088546037674, -0.10436171293258667, 0.09724488854408264, 0.03315860778093338, 0.023790467530488968, -0.41964444518089294, 0.13022111356258392, 0.01495521329343319, 0.034282758831977844, -0.30387750267982483, -0.3747078776359558, 0.05697442591190338, 0.23317061364650726, 0.04320249333977699, 0.7015219330787659, -0.0001100264344131574, 0.16845941543579102, 0.38557660579681396, 0.0496719628572464, -0.324177086353302, -0.3880718946456909, -0.13628055155277252, -0.17845557630062103, 0.1532340794801712, 0.04528207331895828, -0.1685555875301361, -0.5090377926826477, -0.08166714012622833, -0.10352478921413422, 0.18312646448612213, 0.36634770035743713, 0.22725948691368103, 0.04507434368133545, -0.04262532666325569, -0.18382565677165985, 0.15324944257736206, 0.2792813181877136, -0.1499578207731247, 0.17687295377254486, 0.1716935932636261, -0.001207476481795311, -0.00699952244758606, -0.005994383245706558, 0.06213202327489853, -0.07318761944770813, 0.4675306975841522, -0.12168262153863907, -0.08904597908258438, -0.18971244990825653, 0.3059525489807129, 0.4425593912601471, 0.5132421255111694, -0.1159432902932167, -0.26312455534935, -0.11421239376068115, 0.06514234840869904, -0.16057902574539185, 0.3634631037712097, 0.25589969754219055, -0.0007783062756061554, 0.2509414255619049, -0.6054773330688477, -0.21198219060897827, -0.04840657487511635, 0.20466670393943787, -0.03447122499346733, 0.3527205288410187, -0.056230708956718445, 0.05293884128332138, 0.08277178555727005, 0.052565328776836395, 0.10224063694477081, -0.07720372080802917, -0.13225442171096802, 0.004100365098565817, -0.11847220361232758, -0.10154439508914948, 0.29263806343078613, 0.39860999584198, 0.15533605217933655, 0.3835415244102478, 0.07673908025026321, 0.24801209568977356, -0.016664545983076096, 0.009191516786813736, 0.40937620401382446, 0.2053108662366867, 0.09336702525615692, 0.16928541660308838, 0.4178822636604309, 0.3575027883052826, 0.18256773054599762, 0.015808992087841034, 0.11061885952949524, 0.015557774342596531, -0.30544522404670715, -0.2592172920703888, 0.2933112382888794, -0.14586804807186127, -0.3234082758426666, 0.011185861192643642, -0.47493481636047363, -0.16823363304138184, 0.3128211796283722, 0.447797030210495, -0.019382018595933914, 0.08788174390792847, -0.006264746189117432, 0.11099295318126678, 0.00804523192346096, -0.12789298593997955, -0.18696625530719757, 0.11538766324520111, -0.10690513998270035, 0.1557350605726242, 0.1750325709581375, -0.16788899898529053, 0.3026539087295532, -0.23431460559368134, -0.18784372508525848, -0.24018177390098572, -0.009683942422270775, -0.09671545028686523, -0.18120834231376648, -0.0196785070002079, 0.17498184740543365, 0.20944738388061523, -0.11495867371559143, -0.12124141305685043, -0.07933145761489868, 0.1317637860774994, -0.2962754964828491, -0.3100500702857971, -0.1531335413455963, 0.2254728525876999, -0.267966628074646, -0.16470959782600403, -0.1331208348274231, 0.22017210721969604, -0.18890026211738586, -0.0966464951634407, -0.021918900310993195, 0.18178099393844604, 0.03622206673026085, -0.03095134347677231, 0.23830091953277588, 0.423941433429718, -0.4821396470069885, -0.26430463790893555, -0.32098183035850525, -0.1542481631040573, -0.22499215602874756, 0.3230186700820923, -0.09544404596090317, 0.28762269020080566, -0.1477775126695633, 0.097887322306633, 0.4886176884174347, 0.028258707374334335, -0.32952654361724854, -0.09079430252313614, -0.19239501655101776, -0.15394702553749084, -0.2533848285675049, 0.014615729451179504, 0.13042323291301727, -0.059799060225486755, 0.028406020253896713, 0.12576770782470703, 0.1305626630783081, -0.006241051480174065, -0.26636260747909546, -0.3863459527492523, -0.06751283258199692, 0.11368055641651154, 0.0629349797964096, 0.15631338953971863, 0.20519199967384338, -0.435960978269577, 0.17218902707099915, -0.024712305516004562, 0.2652864158153534, 0.4086001515388489, 0.7191639542579651, 0.6201655268669128, -0.04304927587509155, 0.12415748089551926, -0.3164401948451996, 0.05740153044462204, -0.15609110891819, 0.052052464336156845, -0.03266662359237671, -0.1528671532869339, -0.37499159574508667, -0.028095293790102005, -0.30872514843940735, -0.28447386622428894, 0.15524476766586304, 0.129115492105484, 0.029047824442386627, 0.21958349645137787, -0.24133557081222534, -0.12215013056993484, -0.19171632826328278, 0.04016781225800514, 0.15635834634304047, 0.35143741965293884, -0.14664921164512634, 0.059145424515008926, 0.03644673526287079, 0.18474699556827545, 0.29467010498046875, -0.045308057218790054, 0.10448550432920456, 0.2975122928619385, -0.3389836847782135, 0.3708043098449707, 0.24560284614562988, -0.014743253588676453, 0.21805952489376068, -0.3441500961780548, 0.09466682374477386, 0.06605061888694763, 0.08335000276565552, -0.09914333373308182, -0.4412393271923065, 0.10840830206871033, 0.10444585978984833, 0.056962985545396805, -0.09600517898797989, 0.40433797240257263, 0.10878680646419525, -0.07879721373319626, 0.10029318928718567, -0.2577938139438629, 0.32139500975608826, -0.06154472753405571, 0.4901730418205261, -0.14264163374900818, -0.18337781727313995, 0.010157965123653412, 0.1198354959487915, 0.004883065819740295, 0.1610754132270813, 0.17625096440315247, -0.24948173761367798, -0.24936670064926147, 0.15353485941886902, 0.2080063670873642, 0.045966990292072296, 0.1846897453069687, 0.08835753798484802, 0.10705894976854324, 0.16826258599758148, -0.24370308220386505, 0.07379698008298874, 0.042738448828458786, -0.06674788892269135, 0.11995969712734222, 0.26206400990486145, -0.10503435134887695, -0.2071249783039093, 0.12502020597457886, 0.1453990340232849, 0.2601653039455414, -0.42583706974983215, -0.11033526808023453, -0.19534170627593994, 0.0064537413418293, -0.04841591790318489, -0.1110755130648613, -0.20114357769489288, -0.4875732958316803, 0.05544516444206238, 0.1101420521736145, -0.3286157548427582, 0.20514927804470062, -0.06449957937002182, 0.3379160165786743, -0.18546952307224274, -0.014461582526564598, -0.334743857383728, -0.2191334068775177, -0.19885674118995667, 0.15927590429782867, 0.36148831248283386, -0.04628518968820572, 0.23177407681941986, 0.00862947665154934, 0.0600336492061615, -0.6825616359710693, -0.19287718832492828, 0.13447561860084534, -0.2995395064353943, 0.37763190269470215, -0.13526387512683868, 0.39181989431381226, -0.2036774754524231, 0.1195525974035263, 0.244012251496315, -0.08486498892307281, -0.09434027224779129, -0.15240797400474548, 0.1380547434091568, 0.06229320913553238, 0.007584601640701294, -0.06590712815523148, -0.07136448472738266, -0.27953609824180603, 0.303497314453125, 0.13433638215065002, 0.006673015654087067, -0.1274092197418213, 0.03156982362270355, 0.31502994894981384, 0.05601787939667702, -0.15261125564575195, -0.1631801873445511, -0.19442403316497803, 0.5704277753829956, -0.33393508195877075, -0.379948228597641, 0.2948320806026459, 0.3403770923614502, -0.011219952255487442, 0.055579379200935364, -0.661429226398468, -0.2656782269477844, 0.0442047119140625, 0.12838956713676453, 0.16956827044487, -0.32217279076576233, 0.33256959915161133, 0.015199942514300346, -0.09071118384599686, 0.019513510167598724, -0.3369482159614563, -0.09676960855722427, 0.18199428915977478, 0.16819846630096436, -0.02534007653594017, 0.32845163345336914, -0.0884736180305481, 0.6594016551971436, 0.3051189184188843, 0.13962164521217346, 0.5808137655258179, -0.026768071576952934, 0.4212500751018524, -0.08434998244047165, -0.20408952236175537, -0.10399334877729416, 0.06292878836393356, 0.16704103350639343, 0.2407175749540329, 0.200405091047287, -0.15208180248737335, -0.43796709179878235, 0.031437452882528305, -0.4692856967449188, -0.11174085736274719, -0.223590686917305, -0.17182840406894684, 0.13365453481674194, -0.04200286418199539, 0.1592809557914734, 0.10711011290550232, -0.5392923951148987, 0.12900026142597198, 0.1879976987838745, -0.12030226737260818, -0.019438309594988823, -0.4199778139591217, 0.007930397987365723, -0.32157060503959656, 0.40728479623794556, -0.17273268103599548, 0.009808702394366264, -0.27237364649772644, -0.04005061462521553, 0.3010275363922119, -0.11887823790311813, 0.7226874232292175, -0.030384955927729607, -0.00032150745391845703, -0.19759583473205566, 0.23633214831352234, -0.1902541071176529, 0.06870858371257782, -0.07682106643915176, 0.0703328400850296, 0.05961185693740845, 0.17454811930656433, -0.3053482472896576, -0.05024421215057373, 0.4320616126060486, -0.11484168469905853, -0.049221474677324295, 0.037608981132507324, -0.02154051512479782, -0.36532488465309143, -0.0533456951379776, -0.34431004524230957, -0.059679292142391205, 0.16196103394031525, 0.025363856926560402, -0.011878922581672668, 0.2990476191043854, -0.07009389996528625, 0.12063253670930862, -0.10891659557819366, 0.3906160891056061, 0.08365759253501892, -0.02624594420194626, 0.3017732799053192, 0.29068732261657715, 0.2091623693704605, 0.6970918774604797, 0.0022533759474754333, -0.2502611577510834, 0.1753949224948883, 0.017028771340847015, 0.013752199709415436, 0.6318782567977905, 0.2282787710428238, 0.040248554199934006, 0.27070626616477966, 0.23496370017528534, -0.17169290781021118, 0.018403885886073112, 0.36608824133872986, -0.09033407270908356, -0.4359778165817261, -0.2936810851097107, 0.42170554399490356, 0.027604002505540848, 0.03276456892490387, 0.24874192476272583, 0.6096370816230774, -0.2628011405467987, 0.03270832076668739, 0.058049846440553665, 1.1673680543899536, -0.07434321939945221, 0.016710471361875534, 0.1296328455209732, -0.11649660766124725, 0.3157218396663666, -0.3811267614364624, 0.06977741420269012, -0.1182563379406929, 0.45477598905563354, -0.20915010571479797, 0.05620473995804787, 0.08495453745126724, -0.017136909067630768, -0.03205149248242378, 0.24756185710430145, 0.16774728894233704, 0.1968018114566803, -0.011880001053214073, 0.35527947545051575, -0.3624592125415802, 0.12441791594028473, 0.1655018925666809, 0.2595919668674469, -0.10971274971961975, 0.22929750382900238, -0.13288742303848267, -0.1262703835964203, -0.3967331349849701, -0.026387110352516174, -0.5579953193664551, -0.1770491600036621, -0.32904940843582153, 0.18981418013572693, 0.058293409645557404, -0.6169894933700562, 0.051998790353536606, 0.024683723226189613, 0.005277618765830994, 0.1835237592458725, -0.6530535817146301, 0.2820102274417877, -0.31689661741256714, -0.0018383418209850788, -0.0892600491642952, -0.062104351818561554, 0.14507834613323212, -0.07594732940196991, -0.3023974299430847, 0.06462190300226212, -0.023452673107385635, -0.3230600953102112, -0.4095160663127899, 0.16449466347694397, -0.1979413777589798, -0.33958402276039124, -0.05440405383706093, 0.0036969631910324097, -0.11389736831188202, -0.18806035816669464, 0.16799841821193695, -0.002431727945804596, 0.1620078682899475, -0.20767799019813538, 0.2260635942220688, -0.09109856933355331, -0.2920846939086914, 0.504527747631073, -0.08659172058105469, -0.08942367881536484, 0.6221301555633545, 0.18156996369361877, -0.2739793062210083, -0.17095768451690674, 0.10345182567834854, 0.1540697067975998, -0.2569899260997772, -0.18309913575649261, -0.24395208060741425, 0.061563119292259216, -0.15477444231510162, 0.08530274033546448, 0.06342582404613495, 0.35696786642074585, 0.028709862381219864, -0.22669987380504608, -0.043082479387521744, 0.2184109389781952, 0.08851736783981323, 0.0904901996254921, -0.3377281427383423, 0.2617764472961426, 0.418335497379303, -0.1407625824213028, -0.35160592198371887, 0.2125592678785324, -0.140779048204422, 0.016472700983285904, 0.22410458326339722, -0.051376476883888245, 0.2018725723028183, -0.14959390461444855, 0.09624219685792923, -0.008971232920885086, -0.29248183965682983, -0.15791979432106018, 0.15214844048023224, 0.09818985313177109, 0.18466243147850037, -0.3498544692993164, -0.29570096731185913, -0.1246563121676445, -0.06410734355449677, 0.03158949315547943, 0.02018069103360176, 0.19483992457389832, 0.08901971578598022, -0.257244735956192, 0.13640710711479187, -0.2066919207572937, -0.06862249970436096, -0.01831929385662079, 0.08381479233503342, 0.10182570666074753, -0.07956653833389282, 0.05808008089661598, 0.4275214970111847, 0.07821305096149445, -0.17412404716014862, 0.20167559385299683, 0.1597837209701538, 0.083640456199646, 0.3642999827861786, -0.09889714419841766, 0.06576438248157501, 0.25408080220222473, 0.30514219403266907, 0.5419095754623413, -0.34714463353157043, -0.009847903624176979, 0.48346298933029175, 0.1767328828573227, -0.07496853917837143, 0.1720292568206787, 0.1494322121143341, -0.12595786154270172, 0.04892551526427269, -0.16136562824249268, 0.03253982588648796, 0.06470516324043274, -0.21511290967464447, 0.325130432844162, 0.5501185655593872, -0.11404260993003845, 0.26799362897872925, -0.20385676622390747, -0.22335907816886902, 0.05205141007900238, 0.09567563980817795, 0.18429651856422424, -0.07650620490312576, 0.13168975710868835, -0.047745831310749054, 0.11381141096353531, -0.38962188363075256, 0.03895551711320877, 0.08116251975297928, -0.4121021628379822, 0.1732548326253891, 0.03085005283355713, -0.4057575464248657, -0.026473157107830048, 0.016545355319976807, 0.5826868414878845, -0.48171189427375793, -0.07118045538663864, -0.3929552137851715, 0.1577928066253662, -0.1970076560974121, 0.20855048298835754, -0.25228965282440186, -0.4473414719104767, -0.1333436369895935, 0.06300102174282074, 0.09329210221767426, -0.2564007043838501, -0.26252883672714233, 0.015457779169082642, -0.39420604705810547, -0.22383219003677368, 0.13805848360061646, -0.011277563869953156, 0.35243815183639526, -0.14548330008983612, -0.06574159115552902, 0.04990740492939949, -0.09038466215133667, 0.05157218500971794, 0.4163312315940857, 0.17549069225788116, 0.07550369948148727, 0.03581000864505768, 0.10613587498664856, -0.017095528542995453, -0.250042587518692, 0.030452072620391846, 0.35171496868133545, 0.4016789197921753, -0.3430795967578888, 0.07685518264770508, 0.19847382605075836, -0.21656830608844757, 0.21543166041374207, -0.07280007004737854, 0.5228897333145142, -0.3668336272239685, 0.13746319711208344, -0.4297332167625427, -0.33623623847961426, -0.22339525818824768, -0.4518725574016571, -0.2734890282154083, -0.07117381691932678, 0.10471726953983307, -0.24625568091869354, 0.09790778160095215, -0.4625280499458313, 0.09831809997558594, 0.19470630586147308, 0.48151716589927673, 0.6671448945999146, -0.25142765045166016, -0.058458663523197174, -0.2653525471687317, -0.4635806083679199, 0.1798292100429535, -0.13480797410011292, 0.4058309495449066, -0.3798573911190033, 0.00828324444591999, -0.19424712657928467, 0.09485678374767303, 0.03768133372068405, 0.38061901926994324, -0.21569594740867615, -0.1697702258825302, -0.19137024879455566, -0.04570281133055687, -0.03649468719959259, 0.19006885588169098, -0.02134195901453495, 0.03454798460006714, 0.32880356907844543, -0.1693134754896164, -0.018620595335960388, 0.09314487129449844, 0.029982909560203552, -0.14821383357048035, -0.03832021355628967, 0.3088451325893402, 0.008486771956086159, 0.29284393787384033, -0.004604944959282875, 0.047021202743053436, -0.39402055740356445, -0.3668675124645233, -0.011406702920794487, 0.1478125900030136, -0.011750828474760056, 0.06948458403348923, 0.10959012806415558, -0.5519779920578003, -0.11603537201881409, 0.367781400680542, -0.16966333985328674, 0.28254231810569763, 0.00991605594754219, -0.3251405954360962, -0.10478823632001877, -0.06821070611476898, 0.35283613204956055, -0.11758773773908615, 0.05823350325226784, -0.1399659365415573, -0.28208470344543457, -0.20942674577236176, 0.3583536446094513, -0.1556534767150879, 0.08559337258338928, -0.12674304842948914, 0.29726284742355347, 0.18079212307929993, -0.20549657940864563, -0.453311026096344, -0.03177979588508606, 0.30334633588790894, 0.05336660146713257, -0.08304744958877563, 0.32408565282821655, -0.27055594325065613, -0.1059064120054245, -0.055208053439855576, 0.23743978142738342, 0.1661210060119629, -0.14919212460517883, 0.26309269666671753, 0.05860888957977295 ]
https://github.com/huggingface/datasets/issues/4005
Yelp not working
Hi, Facing the same issue while loading the dataset: `Error: {NonMatchingChecksumError}Checksums didn't match for dataset source files` Thanks
## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads.
18
Yelp not working ## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads. Hi, Facing the same issue while loading the dataset: `Error: {NonMatchingChecksumError}Checksums didn't match for dataset source files` Thanks
[ -0.24336117506027222, -0.06275134533643723, -0.024332046508789062, 0.30657997727394104, 0.16360563039779663, 0.23145195841789246, 0.08171804994344711, 0.14034266769886017, 0.23674070835113525, -0.12649580836296082, -0.15590611100196838, 0.048369601368904114, -0.11220546811819077, 0.3317650556564331, 0.3222804367542267, 0.31354963779449463, 0.12676917016506195, 0.10672572255134583, -0.20092779397964478, -0.0875718891620636, -0.22532320022583008, 0.19961580634117126, 0.003079518675804138, 0.03221326321363449, -0.4576978087425232, 0.30519893765449524, 0.0406978577375412, 0.13890619575977325, -0.23513920605182648, -0.38181114196777344, 0.3507685363292694, 0.1414712816476822, -0.09370892494916916, 0.7807414531707764, -0.00012139143655076623, 0.14755059778690338, 0.3313445448875427, -0.06359687447547913, -0.20084218680858612, -0.34688007831573486, -0.45384904742240906, -0.27822932600975037, 0.11903966218233109, -0.06272019445896149, -0.07237763702869415, -0.2472720891237259, -0.047374024987220764, -0.14058928191661835, -0.029019206762313843, 0.3250117301940918, 0.1403760462999344, 0.18160533905029297, 0.10757647454738617, -0.09550102055072784, 0.16719596087932587, 0.18754911422729492, -0.09614429622888565, 0.202244833111763, 0.19457927346229553, 0.06702755391597748, -0.04067801684141159, 0.11982457339763641, 0.08366772532463074, -0.08997173607349396, 0.5913295149803162, -0.2648668587207794, 0.12066110968589783, -0.18590565025806427, 0.29210779070854187, 0.5704023838043213, 0.5003555417060852, -0.09822193533182144, -0.2209445834159851, -0.05030374974012375, 0.0233084037899971, -0.16497348248958588, 0.41439056396484375, 0.15551212430000305, -0.10793136060237885, 0.1910308450460434, -0.681586742401123, -0.246069073677063, 0.001812167465686798, 0.19370943307876587, 0.043303027749061584, 0.40031224489212036, -0.005675363354384899, 0.017969723790884018, 0.09412796050310135, 0.10790465027093887, 0.16118702292442322, -0.18201546370983124, -0.19026769697666168, 0.13177771866321564, -0.282470703125, -0.09594503045082092, 0.10465814918279648, 0.4834337830543518, 0.22313189506530762, 0.39484351873397827, -0.027353979647159576, 0.3738496005535126, -0.045877039432525635, 0.06853378564119339, 0.36094892024993896, 0.16899368166923523, 0.07521117478609085, 0.1508965790271759, 0.3390504717826843, 0.422669380903244, 0.10461057722568512, 0.01005527563393116, 0.07254139333963394, -0.11191043257713318, -0.13849599659442902, -0.28729477524757385, 0.23404143750667572, -0.20682281255722046, -0.3080899715423584, 0.17124776542186737, -0.37486031651496887, -0.19272460043430328, 0.3154425621032715, 0.5251681804656982, -0.08424703776836395, 0.4105473756790161, 0.0037582479417324066, 0.03793168440461159, -0.0544762909412384, -0.30889254808425903, -0.15319480001926422, 0.029598334804177284, -0.10013412684202194, 0.06490937620401382, 0.051917266100645065, -0.2711467444896698, 0.42108526825904846, -0.30627599358558655, -0.11465056240558624, -0.2251669317483902, -0.02636580541729927, -0.124204620718956, -0.2398063838481903, 0.003236241638660431, 0.10494790971279144, 0.19593402743339539, 0.018816599622368813, -0.10853631794452667, 0.021597571671009064, 0.22041398286819458, -0.37026166915893555, -0.32486316561698914, -0.17851217091083527, 0.1668868064880371, -0.2747729420661926, -0.17369669675827026, -0.08212660998106003, 0.0279361791908741, 0.015581659972667694, -0.11563354730606079, 0.0017978399991989136, 0.03818243741989136, -0.1144254207611084, 0.011970886029303074, 0.17111019790172577, 0.4949457049369812, -0.610069215297699, -0.3761201798915863, -0.37455132603645325, -0.27824515104293823, -0.159868985414505, 0.262134850025177, -0.1886909008026123, 0.2748708128929138, -0.07973985373973846, 0.02350655198097229, 0.6946550607681274, 0.010159935802221298, -0.3786187767982483, 0.05653879791498184, -0.050084661692380905, 0.07077591121196747, -0.1728944182395935, 0.16400498151779175, 0.03155843913555145, 0.07051066309213638, 0.010231666266918182, -0.18563373386859894, 0.09406793117523193, 0.00021914951503276825, -0.19242054224014282, -0.26091268658638, 0.13021749258041382, 0.05868469551205635, 0.17865875363349915, 0.0972575843334198, 0.12294480204582214, -0.32194066047668457, 0.3161040246486664, -0.06047894433140755, 0.24582050740718842, 0.42184263467788696, 0.6777473092079163, 0.7191042304039001, 0.028011199086904526, 0.009399909526109695, -0.23486626148223877, 0.04613760858774185, -0.24678795039653778, -0.00771857425570488, 0.030480965971946716, -0.11657596379518509, -0.5107473731040955, -0.032473884522914886, -0.4753960072994232, -0.3283989429473877, -0.010774718597531319, 0.20903004705905914, -0.07978220283985138, 0.03281860426068306, -0.39040595293045044, 0.10281175374984741, -0.2904818654060364, 0.10915618389844894, 0.0692484974861145, 0.21002911031246185, -0.08369749784469604, 0.12933066487312317, -0.010454293340444565, 0.25438064336776733, 0.2944357097148895, -0.2028287649154663, -0.040369827300310135, 0.4624056816101074, -0.21877707540988922, 0.23020702600479126, 0.1702195405960083, -0.2057785540819168, 0.13774022459983826, -0.4486023187637329, -0.09508060663938522, 0.09553545713424683, 0.18907342851161957, -0.13722598552703857, -0.1696147918701172, 0.09081774204969406, 0.08742015063762665, 0.025617562234401703, -0.09377418458461761, 0.2500073313713074, 0.1479356735944748, -0.14545151591300964, 0.1219097152352333, -0.21109116077423096, 0.4475109279155731, -0.24681033194065094, 0.48335951566696167, -0.02877899818122387, -0.21781980991363525, -0.2328222095966339, 0.12918725609779358, 0.004426058381795883, 0.1241777092218399, 0.08330333232879639, -0.22309309244155884, -0.11303023993968964, 0.1449570506811142, 0.28435081243515015, 0.18002218008041382, 0.11216049641370773, -0.024977434426546097, 0.07030067592859268, 0.05734044685959816, -0.18416333198547363, 0.18046315014362335, 0.07888344675302505, 0.12291301041841507, 0.23602712154388428, 0.00867176242172718, -0.1907130628824234, -0.2754575312137604, 0.14344006776809692, 0.16316232085227966, 0.3025414049625397, -0.49070319533348083, -0.12983129918575287, -0.16737216711044312, -0.138201043009758, -0.13545925915241241, -0.05932479724287987, -0.1812090128660202, -0.5227459669113159, -0.057121552526950836, 0.0692436620593071, -0.11551207304000854, 0.25905928015708923, -0.3280974328517914, 0.14916010200977325, -0.21062107384204865, 0.04824202507734299, -0.20097370445728302, -0.12094508111476898, -0.1621074378490448, 0.0609465129673481, 0.3803519010543823, -0.056506745517253876, 0.11585956811904907, -0.18407055735588074, 0.06242428719997406, -0.5215700268745422, -0.12370344996452332, 0.12934726476669312, -0.23163674771785736, 0.2242431640625, 0.07835434377193451, 0.40544837713241577, -0.1698361486196518, 0.0793946236371994, 0.31200718879699707, -0.07627834379673004, -0.15990829467773438, -0.18508125841617584, 0.07263673096895218, 0.004690220579504967, 0.04763636365532875, -0.05086902529001236, 0.018359849229454994, -0.21262094378471375, 0.1189645305275917, 0.06680773198604584, 0.11471466720104218, -0.18298470973968506, -0.10331584513187408, 0.3502098023891449, 0.01369432918727398, 0.06935771554708481, -0.09656421840190887, -0.3206869065761566, 0.6487639546394348, -0.16746066510677338, -0.2769525945186615, 0.36469435691833496, 0.264363169670105, 0.17018374800682068, -0.031861450523138046, -0.6423963904380798, -0.11187995225191116, 0.05750451982021332, 0.059450361877679825, 0.14323335886001587, -0.3285439610481262, 0.25917696952819824, -0.032907310873270035, -0.0012673549354076385, -0.0886540338397026, -0.19201964139938354, -0.12846434116363525, -0.19151946902275085, 0.500817596912384, -0.1402551531791687, 0.40901362895965576, -0.13546521961688995, 0.6681075692176819, 0.4744219183921814, 0.147013857960701, 0.45318692922592163, -0.025152059271931648, 0.5411329865455627, -0.04302876442670822, -0.2887381315231323, -0.24740222096443176, -0.019358277320861816, 0.35586053133010864, 0.1698475033044815, 0.1381048560142517, -0.10137565433979034, -0.44172778725624084, -0.046611376106739044, -0.39659032225608826, -0.0032311677932739258, -0.31951799988746643, -0.2115548551082611, 0.19832807779312134, -0.05178253725171089, 0.17395436763763428, 0.07902111113071442, -0.5097594857215881, 0.14295019209384918, 0.3869379162788391, -0.19185161590576172, -0.1141357421875, -0.5199811458587646, -0.002894527278840542, -0.1200466975569725, 0.46437573432922363, -0.02219143509864807, 0.12011274695396423, -0.13540521264076233, 0.018801230937242508, 0.19612160325050354, -0.12630049884319305, 0.942763090133667, -0.06644678860902786, -0.008117228746414185, -0.1746903359889984, 0.12754365801811218, -0.24181504547595978, 0.10235098004341125, 0.08111262321472168, 0.16823208332061768, 0.21007558703422546, 0.14324848353862762, -0.2792452573776245, -0.10767950862646103, 0.48792603611946106, -0.0820128470659256, -0.1681043952703476, -0.07155772298574448, -0.11498002707958221, -0.1362628936767578, 0.052687905728816986, -0.3892015814781189, -0.2534656226634979, 0.24348469078540802, 0.1517776995897293, -0.02693861909210682, 0.2667492628097534, -0.061970073729753494, 0.3191015422344208, -0.08864341676235199, 0.43774983286857605, 0.07903915643692017, 0.10036823153495789, 0.2300872653722763, 0.36101043224334717, 0.27427902817726135, 0.7375097870826721, -0.11127667129039764, -0.4201045036315918, 0.13698703050613403, -0.04000401496887207, 0.1731175184249878, 0.5272380113601685, 0.20592154562473297, 0.05776131898164749, 0.38957080245018005, 0.09549064189195633, 0.07157303392887115, 0.01829695887863636, 0.36769330501556396, 0.11316227167844772, -0.5119929909706116, -0.3498331904411316, 0.19851726293563843, -0.06634876132011414, 0.12496165931224823, 0.2175970822572708, 0.4078821539878845, -0.20993691682815552, -0.21154512465000153, 0.023030251264572144, 1.1012877225875854, 0.010815437883138657, 0.08409711718559265, 0.0340837799012661, -0.07731372117996216, 0.33328598737716675, -0.473191499710083, -0.08717843890190125, -0.1615976095199585, 0.30285289883613586, -0.3093719184398651, -0.083143450319767, 0.2790212333202362, -0.03328121453523636, 0.03716814145445824, 0.3733229339122772, 0.17426781356334686, 0.19081996381282806, -0.023579737171530724, 0.2743724584579468, -0.21249894797801971, 0.15863542258739471, 0.25956493616104126, 0.15253451466560364, -0.12161751091480255, 0.229608952999115, -0.20346155762672424, -0.10235133022069931, -0.38777241110801697, 0.030955001711845398, -0.4653458595275879, -0.07463911175727844, -0.35238587856292725, 0.2235381156206131, 0.2883564531803131, -0.4902799129486084, 0.13688954710960388, 0.1638023853302002, 0.042878519743680954, 0.11393120884895325, -0.4842919707298279, 0.422019362449646, 0.0052758753299713135, 0.06140287220478058, -0.08593900501728058, 0.10635668784379959, 0.11612783372402191, -0.11671467125415802, -0.3338465988636017, 0.18769708275794983, -0.19950884580612183, -0.4250984787940979, -0.14789921045303345, 0.057009704411029816, 0.025038477033376694, -0.354292631149292, -0.1737898290157318, -0.0015902668237686157, 0.036958593875169754, -0.28977370262145996, 0.06963095813989639, 0.04367542266845703, -0.05427849292755127, -0.13336384296417236, 0.286060094833374, -0.2551848590373993, -0.2544473707675934, 0.5360026359558105, -0.06819355487823486, -0.031426042318344116, 0.6928387880325317, 0.05591914430260658, -0.3679012060165405, -0.16360411047935486, 0.21471253037452698, 0.15770652890205383, -0.4671842157840729, -0.31785115599632263, -0.14918945729732513, 0.06492090225219727, -0.11138387024402618, 0.27715805172920227, 0.21428924798965454, 0.36847561597824097, 0.012663960456848145, -0.266499400138855, -0.11108115315437317, 0.04954185336828232, 0.2495126873254776, 0.19032208621501923, -0.31578266620635986, 0.31432977318763733, 0.39767295122146606, -0.055675044655799866, -0.22710594534873962, 0.16494092345237732, -0.17098112404346466, -0.00027055665850639343, 0.20673075318336487, 0.14475437998771667, 0.1961239129304886, -0.2719328701496124, 0.03401969373226166, 0.10902199149131775, -0.2415173351764679, -0.07245786488056183, 0.03967931494116783, 0.1770768016576767, 0.0880827009677887, -0.47486698627471924, -0.1718595176935196, -0.0939733162522316, -0.09746184945106506, 0.07527972757816315, -0.05193962901830673, 0.1804494857788086, 0.053809210658073425, -0.15527907013893127, 0.2650780975818634, -0.37455374002456665, -0.333995521068573, -0.035542309284210205, 0.04946671053767204, 0.12979911267757416, -0.11293059587478638, -0.09512984752655029, 0.3172041177749634, 0.04155480116605759, -0.0617358535528183, 0.26402875781059265, 0.11432921886444092, -0.06931556761264801, 0.3414553701877594, -0.3104228973388672, 0.11167782545089722, 0.38821953535079956, 0.28001999855041504, 0.6010738015174866, -0.3752199709415436, 0.03719612956047058, 0.441351979970932, 0.06330641359090805, -0.22628238797187805, 0.1520182341337204, 0.23061580955982208, -0.08421594649553299, -0.0330330953001976, -0.17902681231498718, -0.02337486483156681, -0.07828414440155029, 0.038442954421043396, 0.28474631905555725, 0.31621891260147095, -0.12903481721878052, 0.492615282535553, -0.025798674672842026, -0.16760557889938354, 0.1702413111925125, 0.15888284146785736, 0.23045948147773743, -0.2532573342323303, 0.2201092392206192, 0.010084331035614014, 0.09623775631189346, -0.456773579120636, 0.09010583907365799, -0.07587491720914841, -0.3727308213710785, 0.29839199781417847, 0.0732576921582222, -0.4673151969909668, -0.10499433428049088, 0.11468752473592758, 0.748498260974884, -0.2875184714794159, 0.018103068694472313, -0.4089142680168152, 0.15678171813488007, -0.24993383884429932, 0.12072068452835083, -0.3506707549095154, -0.4319971799850464, -0.09846876561641693, 0.05564543232321739, 0.10225052386522293, -0.12154246866703033, -0.25025516748428345, 0.01899343729019165, -0.35625404119491577, -0.21010881662368774, 0.13976776599884033, -0.0789194405078888, 0.28419309854507446, -0.19906465709209442, 0.00943293422460556, 0.1432950347661972, -0.0854663997888565, 0.18615032732486725, 0.3773021697998047, 0.1113259345293045, 0.14368873834609985, 0.2130596786737442, -0.046646762639284134, 0.07344267517328262, -0.15331529080867767, 0.15454591810703278, 0.32521852850914, 0.36821919679641724, -0.35117265582084656, 0.13901253044605255, 0.047374896705150604, -0.14736074209213257, 0.29636120796203613, -0.04540856555104256, 0.5146387815475464, -0.411850243806839, 0.29454490542411804, -0.5502293109893799, -0.21069121360778809, -0.28936895728111267, -0.206159770488739, -0.25697335600852966, -0.0023710113018751144, 0.1927754282951355, -0.1901729702949524, -0.026912782341241837, -0.3377513587474823, 0.047690875828266144, 0.18584436178207397, 0.39533019065856934, 0.5629894137382507, -0.4420056641101837, -0.11411290615797043, -0.4243636131286621, -0.7368703484535217, 0.20005959272384644, -0.1209830641746521, 0.3171956539154053, -0.18855035305023193, -0.019797567278146744, -0.13607221841812134, 0.03126887232065201, 0.28564295172691345, 0.17130032181739807, -0.12087620049715042, -0.1983325183391571, -0.1397746056318283, -0.14853842556476593, -0.07438482344150543, 0.18958018720149994, 0.03837934881448746, -0.07546527683734894, 0.3548418879508972, -0.14326010644435883, -0.11101200431585312, 0.17437885701656342, -0.03848224878311157, -0.1565859019756317, 0.042401548475027084, 0.0991961881518364, -0.1883450448513031, 0.5878951549530029, 0.045441657304763794, 0.05925460904836655, -0.061556119471788406, -0.39172613620758057, 0.017890918999910355, 0.4227524995803833, -0.006843049079179764, 0.19268596172332764, 0.036488138139247894, -0.5012941360473633, -0.11692380905151367, 0.33413800597190857, -0.08921069651842117, 0.08706571161746979, -0.09841429442167282, -0.23142030835151672, -0.149025559425354, -0.1502303034067154, 0.4472960829734802, -0.12910667061805725, 0.0009529031813144684, -0.06670010834932327, -0.23836436867713928, -0.10206299275159836, 0.479899525642395, -0.16746290028095245, 0.10531723499298096, -0.32478681206703186, 0.24560971558094025, 0.10584132373332977, -0.32120975852012634, -0.577114999294281, -0.11073910444974899, 0.422458291053772, 0.18078598380088806, -0.0971580445766449, 0.3205310106277466, -0.45753756165504456, 0.043397825211286545, -0.06293106079101562, 0.22524964809417725, 0.12894269824028015, -0.1806904524564743, 0.1817028820514679, -0.047632716596126556 ]
https://github.com/huggingface/datasets/issues/4005
Yelp not working
> Facing the same issue while loading the dataset: > > Error: {NonMatchingChecksumError}Checksums didn't match for dataset source files Thanks for reporting. I think this is the same issue. Feel free to try again later, once Google Drive stopped blocking you. You can retry by passing `download_mode="force_redownload"` to `load_dataset`
## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads.
49
Yelp not working ## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads. > Facing the same issue while loading the dataset: > > Error: {NonMatchingChecksumError}Checksums didn't match for dataset source files Thanks for reporting. I think this is the same issue. Feel free to try again later, once Google Drive stopped blocking you. You can retry by passing `download_mode="force_redownload"` to `load_dataset`
[ -0.26018720865249634, 0.09298376739025116, -0.013289705850183964, 0.22357390820980072, 0.17565801739692688, 0.3243188261985779, 0.2636047601699829, 0.0949091762304306, 0.24531933665275574, -0.1416163593530655, -0.04354999214410782, -0.05660998076200485, -0.13228479027748108, 0.45217135548591614, 0.2629018723964691, 0.26521286368370056, 0.06262168288230896, 0.015733487904071808, 0.014734379947185516, -0.008085127919912338, -0.30711600184440613, 0.2519168555736542, 0.0013283118605613708, -0.03674566000699997, -0.4576379060745239, 0.188320592045784, 0.09610296785831451, 0.10359218716621399, -0.28075462579727173, -0.33101096749305725, 0.11369149386882782, 0.20378652215003967, -0.003012539818882942, 0.7307507395744324, -0.00012234326277393848, 0.1588013470172882, 0.4611097574234009, 0.029891086742281914, -0.28030604124069214, -0.43854808807373047, -0.24469423294067383, -0.19627904891967773, 0.14253558218479156, 0.012044928967952728, -0.02780412882566452, -0.3256171643733978, -0.031059307977557182, -0.09649594128131866, -0.0133027583360672, 0.3656128942966461, 0.11304323375225067, 0.08216746896505356, 0.12809786200523376, -0.02944120392203331, 0.16556423902511597, 0.09969796985387802, -0.09964601695537567, 0.26736152172088623, 0.10680970549583435, -0.03776510804891586, 0.02654135972261429, 0.013162347488105297, 0.07128576189279556, -0.09584484994411469, 0.5382192134857178, -0.14227056503295898, 0.05087580159306526, -0.18385593593120575, 0.35789182782173157, 0.5130475759506226, 0.5266311168670654, -0.1302703619003296, -0.2758774757385254, -0.1435948759317398, 0.11074991524219513, -0.1448044627904892, 0.5603546500205994, 0.2746778130531311, -0.0833054631948471, 0.13517966866493225, -0.7670035362243652, -0.24610264599323273, 0.006291128695011139, 0.1330573707818985, -0.1152636781334877, 0.4013097286224365, 0.03753478452563286, 0.051710888743400574, 0.2558666169643402, 0.10800854116678238, 0.23370683193206787, -0.2271752953529358, -0.19821152091026306, 0.06343071907758713, -0.2506205141544342, -0.0970163643360138, 0.16535985469818115, 0.424791157245636, 0.1559380292892456, 0.2997428774833679, -0.07461180537939072, 0.2853546440601349, -0.02190578170120716, 0.06361278146505356, 0.48135268688201904, 0.20719091594219208, 0.09247668832540512, 0.1384771466255188, 0.41128474473953247, 0.3996292054653168, 0.2160550355911255, 0.025999603793025017, 0.052579350769519806, -0.21735979616641998, -0.21304017305374146, -0.19634705781936646, 0.23838455975055695, -0.08434812724590302, -0.3912048637866974, 0.14490242302417755, -0.5568616390228271, -0.21604770421981812, 0.2829962372779846, 0.4002522826194763, 0.04646783322095871, 0.10814693570137024, -0.005913488566875458, 0.08265760540962219, 0.037557587027549744, -0.10707235336303711, -0.09318426996469498, 0.11868377029895782, -0.1300545334815979, 0.1261001080274582, 0.16346082091331482, -0.2528735101222992, 0.3475770354270935, -0.2599695026874542, -0.2304394394159317, -0.202532559633255, -0.03883618116378784, -0.19137483835220337, -0.3226098418235779, -0.008976373821496964, 0.18767809867858887, 0.13916461169719696, -0.08550146222114563, -0.28255128860473633, -0.014494046568870544, 0.3002399802207947, -0.2758534550666809, -0.1942935436964035, -0.1319856345653534, 0.11947911232709885, -0.3357073664665222, -0.12425404787063599, -0.24946364760398865, 0.10089969635009766, -0.18239325284957886, -0.0978054627776146, -0.07526472955942154, 0.038710229098796844, -0.07033715397119522, 0.011715667322278023, 0.24200725555419922, 0.5011186003684998, -0.6557464599609375, -0.2842130661010742, -0.47547683119773865, -0.19551602005958557, -0.27790558338165283, 0.2958192825317383, -0.09883960336446762, 0.30234575271606445, -0.23388151824474335, 0.16368569433689117, 0.442990779876709, 0.07089993357658386, -0.32157468795776367, 0.058162372559309006, -0.16992688179016113, -0.06261143088340759, -0.2939572334289551, 0.07741507142782211, 0.05527511239051819, 0.08187106251716614, 0.09995684027671814, 0.007940942421555519, 0.04675793647766113, -0.041036929935216904, -0.15799076855182648, -0.290179044008255, 0.047162678092718124, 0.10851064324378967, 0.1583147794008255, 0.17795893549919128, 0.2727065980434418, -0.481240838766098, 0.14316055178642273, -0.0221562422811985, 0.2051725536584854, 0.5626324415206909, 0.7634744048118591, 0.5497053265571594, -0.002393753733485937, 0.1265452802181244, -0.49890345335006714, 0.1266532838344574, -0.10241114348173141, -0.018306143581867218, -0.19251997768878937, -0.026175759732723236, -0.407306045293808, -0.0016088709235191345, -0.33264636993408203, -0.2918488085269928, 0.00199253112077713, 0.1477200835943222, -0.07339924573898315, 0.1660730093717575, -0.19054843485355377, -0.09367606788873672, -0.24531105160713196, 0.013116610236465931, 0.11896336078643799, 0.38749372959136963, -0.10465940088033676, -0.009918519295752048, 0.08766567707061768, 0.2014612853527069, 0.2760158181190491, -0.16186003386974335, 0.013576546683907509, 0.3948550522327423, -0.2526283264160156, 0.3895863890647888, 0.1869049370288849, -0.017291486263275146, 0.17593170702457428, -0.42591357231140137, -0.008548730984330177, 0.0496814027428627, 0.15398380160331726, -0.12361028045415878, -0.4141726791858673, 0.14919154345989227, -0.0369974710047245, 0.05432543903589249, -0.06759320944547653, 0.3348309397697449, 0.08893868327140808, -0.13165536522865295, 0.17639164626598358, -0.18460285663604736, 0.37378567457199097, -0.006707794964313507, 0.5986496806144714, -0.0947006493806839, -0.15540820360183716, -0.12620669603347778, 0.23719921708106995, 0.004550796002149582, 0.03456582874059677, 0.10228422284126282, -0.28568679094314575, -0.17528888583183289, 0.11549121886491776, 0.45180824398994446, 0.13580156862735748, 0.13727867603302002, -0.014880981296300888, 0.04895951598882675, 0.1213008388876915, -0.2336583137512207, 0.1658560186624527, 0.025860007852315903, -0.0414855070412159, 0.25557106733322144, 0.13072606921195984, -0.2300546020269394, -0.20443794131278992, 0.11392238736152649, 0.264768123626709, 0.3341060280799866, -0.4632599651813507, -0.11214415729045868, -0.09853489696979523, -0.007926452904939651, -0.0733240619301796, 0.05506739020347595, -0.21193759143352509, -0.5165354013442993, -0.04912981390953064, 0.26856720447540283, -0.16738998889923096, 0.2315717339515686, -0.04967683553695679, 0.15469501912593842, -0.14634127914905548, -0.2161901593208313, -0.2164490967988968, -0.1851745843887329, -0.1505647897720337, 0.071180060505867, 0.45873019099235535, -0.08073355257511139, 0.0735289454460144, -0.06792297959327698, 0.049495816230773926, -0.8184698820114136, -0.13058339059352875, 0.11203064024448395, -0.42955172061920166, 0.4114309549331665, -0.07332099974155426, 0.4362949728965759, -0.23412871360778809, 0.09042590856552124, 0.1804998219013214, -0.06965184211730957, -0.10692638903856277, -0.17905887961387634, 0.12831613421440125, 0.020073145627975464, 0.003348410129547119, -0.03374689817428589, 0.08780746161937714, -0.16320595145225525, 0.22898876667022705, 0.059003714472055435, 0.02789989858865738, -0.21866288781166077, 0.02444426342844963, 0.3629510998725891, 0.2390255331993103, -0.2490091621875763, -0.034165143966674805, -0.20340269804000854, 0.6476499438285828, -0.1342434138059616, -0.3007274270057678, 0.3835854232311249, 0.248599573969841, -0.021554458886384964, 0.10020367056131363, -0.6597939729690552, -0.15227623283863068, -0.017553074285387993, 0.181730255484581, 0.12519370019435883, -0.3912043571472168, 0.36914724111557007, 0.07308091223239899, 0.025207748636603355, -0.02669496089220047, -0.3449306786060333, -0.06477189809083939, 0.13535615801811218, 0.33917418122291565, 0.04348673298954964, 0.46285033226013184, -0.14624902606010437, 0.6264403462409973, 0.28773802518844604, 0.1553061604499817, 0.4832022190093994, -0.03395138680934906, 0.45462313294410706, -0.02851458638906479, -0.12084611505270004, -0.14205582439899445, -0.007938310503959656, 0.16723421216011047, 0.2569164037704468, 0.10486538708209991, -0.2380896359682083, -0.3609115183353424, -0.05159004405140877, -0.4492521584033966, -0.02788478136062622, -0.26557183265686035, -0.16536246240139008, 0.1906365156173706, -0.07823719084262848, 0.11432041972875595, 0.11325474083423615, -0.5699781775474548, 0.10830050706863403, 0.2510001063346863, -0.009212926030158997, -0.0348348431289196, -0.36268433928489685, -0.09020647406578064, -0.2700481712818146, 0.4044584631919861, -0.049497414380311966, 0.07107332348823547, -0.2572542130947113, 0.13721251487731934, 0.23509636521339417, -0.161446675658226, 0.8596386313438416, -0.14178715646266937, 0.1590452492237091, -0.13676610589027405, 0.19425852596759796, -0.08887879550457001, -0.004959531128406525, -0.07047303766012192, 0.040175653994083405, 0.14828340709209442, 0.20418228209018707, -0.35626116394996643, -0.06282220780849457, 0.43189409375190735, -0.017318692058324814, -0.02751520834863186, -0.03227423503994942, -0.016947217285633087, -0.19645237922668457, -0.010612226091325283, -0.32825347781181335, -0.07078774273395538, 0.19163861870765686, -0.016415461897850037, 0.035102907568216324, 0.32500335574150085, -0.2556004822254181, 0.1361689269542694, -0.17977261543273926, 0.45064812898635864, 0.05319346860051155, 0.021966081112623215, 0.3309183120727539, 0.22430647909641266, 0.29961204528808594, 0.7359774112701416, -0.02522701397538185, -0.21065548062324524, 0.3217085897922516, -0.14277154207229614, 0.04059857130050659, 0.5407107472419739, 0.17662054300308228, 0.015616253018379211, 0.3089449405670166, 0.1305449903011322, -0.04289828613400459, -0.067503921687603, 0.3638699948787689, 0.15093937516212463, -0.37858903408050537, -0.2186025232076645, 0.2834268808364868, 0.00833420641720295, 0.11174975335597992, 0.21421484649181366, 0.6410006284713745, -0.2903786897659302, -0.08445144444704056, 0.04486062005162239, 1.018784761428833, -0.1254207193851471, -0.021250125020742416, 0.045025669038295746, -0.07674442231655121, 0.22977273166179657, -0.4774344563484192, 0.05346162989735603, -0.12811003625392914, 0.3131673336029053, -0.2831457257270813, -0.0805305689573288, 0.11340413987636566, 0.0598866231739521, 0.0069769807159900665, 0.3319389522075653, 0.11597071588039398, 0.12470187246799469, 0.017779825255274773, 0.347499817609787, -0.30278879404067993, 0.22852666676044464, 0.3597704768180847, 0.12770786881446838, -0.032509028911590576, 0.22159898281097412, -0.16727450489997864, -0.07948432117700577, -0.3036727011203766, -0.03136476129293442, -0.6643215417861938, -0.10152853280305862, -0.3414996862411499, 0.12487515807151794, 0.11327026784420013, -0.6164599657058716, 0.1973763108253479, 0.19646765291690826, 0.135878786444664, 0.17600314319133759, -0.6405094265937805, 0.4056980609893799, -0.21314701437950134, -0.02316451445221901, -0.15946954488754272, 0.021604888141155243, 0.08826973289251328, -0.07954573631286621, -0.31388965249061584, 0.0815693587064743, -0.172430157661438, -0.4894888401031494, -0.29094886779785156, 0.09022447466850281, -0.32540929317474365, -0.20491495728492737, -0.15801972150802612, -0.12817558646202087, -0.14265306293964386, -0.20438246428966522, 0.061370600014925, -0.03289719671010971, 0.1696794629096985, -0.23338547348976135, 0.24984075129032135, -0.1947460174560547, -0.2443697303533554, 0.4517105221748352, -0.1823732554912567, -0.08453083038330078, 0.7750744819641113, 0.20075403153896332, -0.29309505224227905, -0.14552649855613708, 0.07746944576501846, 0.17760120332241058, -0.19737085700035095, -0.2303357720375061, -0.2627568542957306, 0.14636851847171783, -0.13801907002925873, 0.18774031102657318, 0.1112191304564476, 0.445346474647522, 0.06448343396186829, -0.3508129417896271, 0.03162103146314621, 0.14350683987140656, -0.011820085346698761, 0.17027312517166138, -0.31019505858421326, 0.30801889300346375, 0.45372146368026733, -0.15170025825500488, -0.21935272216796875, 0.2861078381538391, -0.26664894819259644, 0.0060425326228141785, 0.29566389322280884, 0.041873469948768616, 0.2706947922706604, -0.28892186284065247, 0.05117355287075043, -0.039836734533309937, -0.2107270210981369, -0.042511746287345886, 0.12080943584442139, 0.14622554183006287, 0.15417173504829407, -0.4001871943473816, -0.1414572298526764, -0.1616920381784439, -0.12529143691062927, 0.0595046803355217, 0.03555994853377342, 0.12099163979291916, 0.024590443819761276, -0.2830433249473572, 0.20991207659244537, -0.262174516916275, -0.2909296154975891, -0.11141057312488556, -0.019001193344593048, 0.12845994532108307, -0.1052074208855629, 0.07341700792312622, 0.47856128215789795, 0.1736730933189392, -0.21309122443199158, 0.17292079329490662, 0.08835501968860626, 0.07673250138759613, 0.32339364290237427, -0.2348230630159378, 0.025921907275915146, 0.17949748039245605, 0.3028971254825592, 0.47985005378723145, -0.3930075764656067, -0.014983396977186203, 0.47827965021133423, 0.07817123830318451, -0.13890619575977325, 0.09316892176866531, 0.10247093439102173, -0.17465461790561676, 0.058419015258550644, -0.17592990398406982, 0.03702300414443016, 0.020353473722934723, -0.14977599680423737, 0.30444347858428955, 0.5559085011482239, -0.207670658826828, 0.3275911211967468, -0.1222105324268341, -0.13194909691810608, 0.11421304196119308, 0.11478809267282486, 0.16905827820301056, -0.2184092104434967, 0.19524770975112915, -0.07228625565767288, -0.08463824540376663, -0.36375460028648376, 0.14033593237400055, -0.012713000178337097, -0.40492889285087585, 0.27452072501182556, 0.11905154585838318, -0.45895421504974365, -0.1316794753074646, 0.11205864697694778, 0.5550569891929626, -0.3579103648662567, 0.06952233612537384, -0.42669782042503357, 0.14672276377677917, -0.18648475408554077, 0.17468221485614777, -0.23445479571819305, -0.4549347758293152, -0.13530020415782928, 0.2396780550479889, 0.10668116062879562, -0.17311084270477295, -0.2884087860584259, 0.08901132643222809, -0.3217102289199829, -0.06048619747161865, 0.21787038445472717, -0.01060342788696289, 0.2673996090888977, -0.2197888344526291, -0.006150370463728905, 0.015986308455467224, -0.11437973380088806, 0.0994691252708435, 0.3219766318798065, 0.10470396280288696, 0.10330868512392044, 0.07303263247013092, -0.06102462485432625, -0.00854952447116375, -0.1931222677230835, 0.18855644762516022, 0.35384324193000793, 0.3753470480442047, -0.3973793089389801, 0.049385059624910355, 0.09323854744434357, -0.0972166657447815, 0.30412647128105164, -0.06674280762672424, 0.432913213968277, -0.40709662437438965, 0.16375426948070526, -0.38690078258514404, -0.2662676274776459, -0.22439360618591309, -0.37722551822662354, -0.11435249447822571, -0.07984954863786697, 0.13675352931022644, -0.15940190851688385, -0.010347111150622368, -0.2819328010082245, 0.03678108751773834, 0.2226114124059677, 0.3318498134613037, 0.6381393671035767, -0.2050732970237732, -0.18557319045066833, -0.38069379329681396, -0.5882331132888794, 0.10062476992607117, -0.12723465263843536, 0.44953653216362, -0.1471036970615387, -0.03291536495089531, -0.25812840461730957, 0.07602857798337936, 0.2488880604505539, 0.4249328076839447, -0.1964215785264969, -0.22173213958740234, -0.1768893003463745, -0.15073978900909424, 0.04805012047290802, 0.19368988275527954, -0.13583138585090637, 0.04808212071657181, 0.2927095890045166, -0.20511509478092194, -0.11615820974111557, 0.10203404724597931, 0.10452309250831604, -0.17210201919078827, 0.08731820434331894, 0.16055086255073547, -0.06842474639415741, 0.5907275676727295, 0.021603725850582123, 0.02685024030506611, -0.27585843205451965, -0.3160444498062134, -0.0037787891924381256, 0.16482725739479065, 0.021108802407979965, 0.17373454570770264, 0.0590653195977211, -0.4859616458415985, -0.16888172924518585, 0.4198417067527771, -0.1571313589811325, 0.2849521040916443, -0.10224711149930954, -0.25325122475624084, -0.15667131543159485, -0.0008704786887392402, 0.34550121426582336, -0.14491692185401917, 0.1211886927485466, -0.09975854307413101, -0.3014139235019684, -0.11308225989341736, 0.3292796015739441, -0.07018788158893585, 0.08918961882591248, -0.13979293406009674, 0.22328901290893555, 0.18652741611003876, -0.2041315883398056, -0.5017362236976624, -0.08649393916130066, 0.30153676867485046, 0.19385764002799988, -0.1853211522102356, 0.25567448139190674, -0.20782266557216644, -0.02872426062822342, -0.00949425995349884, 0.09045301377773285, 0.16880685091018677, -0.13593579828739166, 0.10658656060695648, -0.0012035667896270752 ]
https://github.com/huggingface/datasets/issues/4005
Yelp not working
I noticed that FastAI hosts the Yelp dataset at https://s3.amazonaws.com/fast-ai-nlp/yelp_review_full_csv.tgz (from their catalog [here](https://course.fast.ai/datasets)) Let's update the yelp dataset script to download from there instead of Google Drive
## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads.
28
Yelp not working ## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads. I noticed that FastAI hosts the Yelp dataset at https://s3.amazonaws.com/fast-ai-nlp/yelp_review_full_csv.tgz (from their catalog [here](https://course.fast.ai/datasets)) Let's update the yelp dataset script to download from there instead of Google Drive
[ -0.16045299172401428, 0.03512677550315857, -0.007131209596991539, 0.20987199246883392, 0.11634846031665802, 0.29428961873054504, 0.3275653123855591, 0.14117980003356934, 0.16289085149765015, -0.17223002016544342, -0.13060256838798523, 0.006532730534672737, -0.0765039399266243, 0.2644132673740387, 0.42517906427383423, 0.39691558480262756, 0.16445891559123993, 0.00612766295671463, 0.014550283551216125, -0.038482263684272766, -0.2802269458770752, 0.16060060262680054, 0.07753922045230865, 0.08631707727909088, -0.3782450556755066, 0.17121541500091553, -0.004824841395020485, 0.05327531322836876, -0.10892661660909653, -0.3849093019962311, 0.309055358171463, 0.14951805770397186, 0.0684889554977417, 0.7653359770774841, -0.00012058381253154948, 0.1197613775730133, 0.3774760961532593, -0.010843138210475445, -0.21303676068782806, -0.1562492996454239, -0.3852011561393738, -0.19611918926239014, 0.041229456663131714, -0.16185599565505981, -0.08078543841838837, -0.30249881744384766, 0.025854188948869705, -0.4038861095905304, -0.07786394655704498, 0.48262929916381836, 0.11117810010910034, 0.13427422940731049, -0.02533419243991375, -0.11076764762401581, 0.2847636044025421, 0.05306702107191086, -0.1665704995393753, 0.150357186794281, 0.06180974096059799, -0.0764150321483612, -0.01765403151512146, 0.11024226248264313, -0.09895025193691254, -0.14195427298545837, 0.6452001333236694, -0.09076754003763199, 0.18154707551002502, -0.21506884694099426, 0.372639924287796, 0.48859676718711853, 0.3695129156112671, -0.19200202822685242, -0.2604166567325592, -0.13031600415706635, 0.22444035112857819, -0.18187811970710754, 0.31393930315971375, 0.22835765779018402, -0.01857077330350876, 0.2328295111656189, -0.5804992318153381, -0.3613334000110626, -0.10257311165332794, 0.13885685801506042, -0.008569367229938507, 0.6045187711715698, 0.023535825312137604, 0.05912939831614494, 0.09482420980930328, -0.0037672631442546844, 0.3231172561645508, -0.19628289341926575, -0.1379769891500473, 0.1253495067358017, -0.22142289578914642, -0.08279446512460709, 0.21706414222717285, 0.37032613158226013, 0.15485188364982605, 0.18647566437721252, 0.044436339288949966, 0.19087785482406616, -0.015118737705051899, 0.04278336837887764, 0.3619147539138794, 0.14692501723766327, 0.059603527188301086, 0.11237990856170654, 0.41168051958084106, 0.4096480906009674, 0.3203280568122864, 0.05064679682254791, -0.008949030190706253, -0.08348122239112854, -0.2009015679359436, -0.1730133593082428, 0.25288480520248413, 0.03364582732319832, -0.4086121916770935, 0.13076454401016235, -0.5080311894416809, -0.15070590376853943, 0.1383691132068634, 0.4412599205970764, -0.12386735528707504, 0.319305956363678, -0.00045238807797431946, 0.11691974103450775, -0.045895978808403015, -0.31211644411087036, -0.057339105755090714, 0.12597382068634033, 0.06476990878582001, 0.07157085835933685, 0.042457882314920425, -0.04636882618069649, 0.3858218491077423, -0.4106493592262268, -0.24568451941013336, -0.21464380621910095, -0.11890353262424469, -0.0847422182559967, -0.19282791018486023, -0.0062597692012786865, 0.2112489938735962, 0.17176224291324615, -0.126267671585083, -0.27298206090927124, -0.061101436614990234, 0.3446749150753021, -0.22309115529060364, -0.3396673798561096, -0.15400029718875885, 0.14564652740955353, -0.22251594066619873, -0.2893356382846832, -0.18061116337776184, 0.1794370412826538, -0.016148090362548828, -0.06126042455434799, 0.052624933421611786, 0.06911586225032806, -0.18865083158016205, -0.04208129644393921, 0.23555999994277954, 0.6661275029182434, -0.6427967548370361, -0.2199396938085556, -0.6263487339019775, -0.06322239339351654, -0.29819750785827637, 0.2677578330039978, -0.11813515424728394, 0.3891616463661194, -0.13072893023490906, 0.016588769853115082, 0.4463546872138977, -0.014613350853323936, -0.3251063823699951, 0.04697496443986893, -0.1721719354391098, -0.05061189830303192, -0.0822267010807991, 0.2866264283657074, -0.03402043506503105, -0.05137258395552635, 0.008545070886611938, -0.0024754684418439865, -0.03145404905080795, -0.06592534482479095, -0.15161661803722382, -0.31385284662246704, 0.033512286841869354, 0.11972872912883759, 0.21744303405284882, 0.1699800342321396, 0.10045978426933289, -0.4337003529071808, 0.32659584283828735, -0.01605844870209694, 0.2538638114929199, 0.40542900562286377, 0.6568332314491272, 0.5961984992027283, -0.08772626519203186, 0.14664095640182495, -0.40471214056015015, 0.02288205176591873, -0.141463503241539, 0.022288724780082703, -0.27001601457595825, -0.1593032330274582, -0.4182458519935608, 0.10817386955022812, -0.3473511338233948, -0.35611245036125183, -0.012561764568090439, 0.15302929282188416, -0.11495840549468994, 0.12859538197517395, -0.2859216034412384, 0.020853357389569283, -0.20978952944278717, 0.02217365801334381, -0.004874847829341888, 0.12012133002281189, -0.07164757698774338, 0.2428896427154541, 0.030218571424484253, 0.16352245211601257, 0.21558144688606262, -0.16174103319644928, 0.02722637727856636, 0.4796540439128876, -0.4122346341609955, 0.4094043970108032, 0.20323392748832703, -0.025392696261405945, 0.21889545023441315, -0.3853515386581421, 0.03877568244934082, 0.12592437863349915, 0.19105982780456543, -0.09635661542415619, -0.32296016812324524, 0.24458330869674683, 0.00609087198972702, 0.1010567918419838, -0.10152484476566315, 0.25133898854255676, 0.1832500845193863, -0.061957262456417084, 0.1846548616886139, -0.153655007481575, 0.2490641176700592, -0.02033752202987671, 0.5211372971534729, -0.14169125258922577, -0.19129148125648499, -0.09923308342695236, 0.06841256469488144, -0.02402007207274437, 0.10960447788238525, 0.07937930524349213, -0.2853710949420929, -0.13061150908470154, 0.145578071475029, 0.47327837347984314, 0.13941127061843872, 0.12877611815929413, -0.05591399595141411, 0.053174033761024475, 0.15422649681568146, -0.26203057169914246, 0.2412087619304657, 0.2112439125776291, 0.13655105233192444, 0.019611764699220657, 0.12802322208881378, -0.11492028087377548, -0.1600538194179535, -0.03521345555782318, 0.2025918811559677, 0.30099570751190186, -0.4657212793827057, -0.04637704789638519, 0.018937429413199425, -0.21661987900733948, -0.15701010823249817, 0.049323733896017075, -0.030939199030399323, -0.4847858250141144, 0.018504101783037186, 0.10783076286315918, -0.2511481046676636, 0.2834376096725464, -0.25535905361175537, 0.18617498874664307, -0.182257279753685, -0.06122098118066788, -0.21632088720798492, -0.2281038910150528, -0.16731476783752441, 0.054027047008275986, 0.3731663227081299, -0.1476646065711975, 0.039840929210186005, -0.11223829537630081, 0.14919550716876984, -0.7321401238441467, -0.09903007000684738, -0.019484438002109528, -0.3105893135070801, 0.28599849343299866, -0.0482201874256134, 0.43590664863586426, -0.15634161233901978, 0.13532233238220215, 0.19008533656597137, -0.13034245371818542, 0.04178053140640259, -0.2448665052652359, 0.11368250101804733, -0.085151307284832, 0.05376308783888817, -0.12354757636785507, 0.12006216496229172, -0.2476709932088852, 0.08045393973588943, 0.00208234041929245, 0.08213330060243607, -0.22421132028102875, 0.012071221135556698, 0.39255255460739136, 0.1415552794933319, -0.18907774984836578, 0.05483902245759964, -0.25350701808929443, 0.6770550012588501, -0.18425333499908447, -0.22516749799251556, 0.3770003318786621, 0.2619680166244507, 0.12239868938922882, -0.008903509005904198, -0.6827843189239502, -0.11862821131944656, 0.10532629489898682, 0.19966259598731995, 0.17525778710842133, -0.3282774090766907, 0.36661720275878906, -0.03189878910779953, -0.01572362333536148, -0.08538387715816498, -0.34305647015571594, -0.07388801127672195, -0.1116691306233406, 0.2992735207080841, 0.08621636033058167, 0.5046442747116089, -0.08439379930496216, 0.6982080340385437, 0.30589717626571655, 0.06711474061012268, 0.42888376116752625, -0.12410581856966019, 0.5080921053886414, 0.08561151474714279, -0.18246795237064362, -0.36603692173957825, 0.04070303589105606, 0.14765691757202148, 0.3386555314064026, 0.019792789593338966, -0.24340374767780304, -0.37523409724235535, 0.02703583985567093, -0.3299972414970398, -0.03439314663410187, -0.25222843885421753, -0.29212746024131775, 0.14315210282802582, -0.0414382629096508, 0.1708199679851532, -0.03898748755455017, -0.39322254061698914, 0.1478506624698639, 0.17352542281150818, -0.0931418165564537, 0.0034167016856372356, -0.41591206192970276, -0.10108133405447006, -0.34799936413764954, 0.5402299165725708, -0.011231880635023117, 0.22059191763401031, -0.09077634662389755, -0.005433307960629463, 0.2192031741142273, -0.19034050405025482, 0.8495725989341736, -0.042994387447834015, -0.026027396321296692, -0.13671384751796722, 0.3198692798614502, -0.24123544991016388, 0.09338253736495972, 0.05715019628405571, 0.1377091109752655, 0.2786235213279724, 0.031440943479537964, -0.30088746547698975, -0.04616037383675575, 0.4732189476490021, -0.1752154529094696, -0.057219937443733215, 0.06352937966585159, -0.027597354725003242, -0.37814584374427795, 0.180738165974617, -0.29747217893600464, -0.01686142198741436, 0.11998147517442703, 0.23114509880542755, 0.1196579784154892, 0.25188687443733215, -0.15712371468544006, 0.13729342818260193, -0.17063145339488983, 0.3271130621433258, 0.1934584379196167, 0.08970209956169128, 0.1663229763507843, 0.2434457391500473, 0.09720329195261002, 0.781997561454773, -0.08331020176410675, -0.37241730093955994, 0.05557811260223389, 0.09664621204137802, 0.2960987687110901, 0.6049103736877441, 0.20511624217033386, -0.06099551171064377, 0.42034590244293213, 0.17483994364738464, 0.10750357806682587, 0.06398963183164597, 0.41019129753112793, -0.03705468401312828, -0.41845545172691345, -0.489756315946579, 0.4436454772949219, -0.007691538892686367, 0.11756666004657745, 0.06052524596452713, 0.43252116441726685, -0.2857343554496765, -0.10909070074558258, 0.10408245027065277, 1.1017316579818726, -0.08309733867645264, 0.14816296100616455, 0.13355892896652222, -0.11818314343690872, 0.3970746397972107, -0.525506854057312, 0.034750498831272125, -0.13919787108898163, 0.4452863335609436, -0.2915109694004059, 0.04511011764407158, 0.12548895180225372, -0.03999055176973343, 0.08605647087097168, 0.4287901520729065, 0.27250760793685913, 0.11000372469425201, 0.08325842022895813, 0.38572755455970764, -0.31741300225257874, 0.1140730082988739, 0.21929404139518738, 0.10146836936473846, -0.03458358347415924, 0.10112498700618744, -0.1499009132385254, -0.16218876838684082, -0.35248005390167236, 0.026508867740631104, -0.5273457169532776, -0.03475278615951538, -0.4544121325016022, 0.19076824188232422, -0.05377872660756111, -0.5880747437477112, 0.11088745296001434, 0.17987510561943054, 0.0422549843788147, 0.10809911787509918, -0.5117213726043701, 0.5036600232124329, -0.09809669107198715, 0.03439158573746681, 0.0490768738090992, 0.0014358852058649063, 0.13625991344451904, -0.06924095749855042, -0.2116306722164154, 0.17539793252944946, -0.17508497834205627, -0.3935880661010742, -0.33785098791122437, 0.11095884442329407, 0.08520808815956116, -0.16954849660396576, -0.1416727900505066, 0.04096393287181854, -0.12204441428184509, -0.21471111476421356, 0.047897227108478546, -0.04220113903284073, 0.14003536105155945, -0.24619093537330627, 0.04731792211532593, -0.26323139667510986, -0.3493671715259552, 0.49610283970832825, -0.05754604935646057, 0.10624772310256958, 0.6791665554046631, 0.2599501609802246, -0.23402918875217438, -0.1504749357700348, 0.03132149577140808, 0.08193006366491318, -0.36168748140335083, -0.2838227450847626, -0.26209425926208496, 0.11945848166942596, -0.14241167902946472, 0.04300139471888542, 0.07289823889732361, 0.2070004642009735, 0.01778569445014, -0.20931613445281982, -0.04166344553232193, 0.08475714176893234, 0.13352470099925995, 0.17128178477287292, -0.10761645436286926, 0.2723914682865143, 0.3904459774494171, -0.10926929116249084, -0.20836922526359558, 0.1783495396375656, -0.10724497586488724, -0.01024140790104866, 0.2842443287372589, 0.2503677010536194, 0.3049759566783905, -0.16973179578781128, 0.007709546014666557, 0.013151414692401886, -0.16545067727565765, -0.05111149698495865, 0.10634557902812958, 0.1895918995141983, 0.1229870617389679, -0.4159996509552002, -0.16786392033100128, -0.21100465953350067, -0.18221479654312134, 0.031391844153404236, 0.007471432909369469, 0.18171089887619019, 0.00009072571992874146, -0.193852961063385, 0.09810663759708405, -0.27818819880485535, -0.2572646737098694, -0.10220696032047272, 0.10667763650417328, 0.13919387757778168, -0.11193080991506577, 0.12525826692581177, 0.4098598062992096, 0.03414633125066757, -0.09052043408155441, 0.1995416134595871, 0.06977719068527222, 0.04363202303647995, 0.46333080530166626, -0.28260284662246704, 0.043230291455984116, 0.30984795093536377, 0.19024014472961426, 0.5702215433120728, -0.3420946002006531, -0.03849621117115021, 0.5463501214981079, 0.0494522750377655, -0.2675779461860657, 0.19756938517093658, 0.03148700296878815, -0.11510742455720901, -0.034211479127407074, -0.06027247756719589, -0.06418546289205551, 0.041964635252952576, -0.1345776617527008, 0.3653308153152466, 0.5211149454116821, -0.165394589304924, 0.39646756649017334, -0.2418360710144043, -0.0900665819644928, 0.15026648342609406, 0.10295429825782776, 0.2981937825679779, -0.15145480632781982, 0.40710699558258057, 0.0010704249143600464, 0.1901947259902954, -0.30969154834747314, 0.018337566405534744, 0.005819551646709442, -0.35438457131385803, 0.1451902836561203, 0.1064126044511795, -0.5594003796577454, 0.017503216862678528, 0.2236918956041336, 0.8173105716705322, -0.35737520456314087, 0.11395485699176788, -0.4255351126194, 0.140909805893898, -0.16531509160995483, 0.17103321850299835, -0.1646067202091217, -0.3628684878349304, -0.08007868379354477, 0.11963362991809845, 0.17057129740715027, -0.20974962413311005, -0.1367984414100647, 0.06223838031291962, -0.3192748427391052, -0.17038705945014954, 0.09331867098808289, -0.09920681267976761, 0.39024344086647034, -0.29523399472236633, -0.08023837953805923, 0.12167859077453613, -0.2300364077091217, 0.05968911945819855, 0.2958943247795105, 0.1829499751329422, 0.09907215088605881, 0.1194935142993927, 0.04759800806641579, -0.003904283046722412, -0.20448236167430878, 0.1260528266429901, 0.13905185461044312, 0.37681764364242554, -0.2859986424446106, 0.05492797866463661, 0.04759766906499863, -0.09856022894382477, 0.41140496730804443, 0.0300473403185606, 0.4881890118122101, -0.4537065327167511, 0.2709195613861084, -0.5818568468093872, -0.46057191491127014, -0.37306076288223267, -0.21955981850624084, -0.18305152654647827, 0.0021513416431844234, 0.14540676772594452, -0.30034416913986206, -0.0034478511661291122, -0.42210033535957336, 0.031402427703142166, 0.2013063281774521, 0.4094090163707733, 0.6246591210365295, -0.41289451718330383, -0.21063096821308136, -0.2776266932487488, -0.6501420736312866, 0.14278124272823334, -0.1315327286720276, 0.33181121945381165, -0.29154688119888306, 0.008621670305728912, -0.17604795098304749, -0.018521662801504135, 0.12421717494726181, 0.11863923072814941, -0.2073526531457901, -0.11242994666099548, -0.1936369091272354, -0.11179013550281525, -0.23662714660167694, 0.23892423510551453, 0.047230541706085205, -0.040838442742824554, 0.2851598858833313, -0.3240497410297394, -0.12979021668434143, 0.08093557506799698, 0.004846595227718353, 0.029286108911037445, 0.008180834352970123, 0.20309291779994965, -0.168644979596138, 0.406002014875412, -0.0031188763678073883, 0.004953507333993912, -0.38774895668029785, -0.24860627949237823, -0.1351863294839859, 0.19494128227233887, 0.06861168891191483, 0.1636422574520111, -0.023185718804597855, -0.43752044439315796, -0.07258741557598114, 0.30331334471702576, -0.17593792080879211, 0.22260773181915283, -0.06081760674715042, -0.22868229448795319, -0.31168240308761597, 0.06488063186407089, 0.3830939829349518, -0.110781230032444, 0.04078197479248047, -0.061703696846961975, -0.34088775515556335, -0.17515072226524353, 0.3373572826385498, -0.3003583550453186, 0.05672641471028328, -0.20185711979866028, 0.3486093282699585, 0.09163425117731094, -0.17275400459766388, -0.5022960901260376, -0.06663660705089569, 0.308657169342041, 0.24065712094306946, -0.15609054267406464, 0.3171716630458832, -0.28737080097198486, -0.06222062557935715, -0.03391680866479874, 0.27640581130981445, 0.14165405929088593, -0.2759972810745239, 0.11776363849639893, -0.11419811844825745 ]
https://github.com/huggingface/datasets/issues/4005
Yelp not working
I updated the link to not use Google Drive anymore, we will do a release early next week with the updated download url of the dataset :)
## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads.
27
Yelp not working ## Dataset viewer issue for '*name of the dataset*' **Link:** https://huggingface.co/datasets/yelp_review_full/viewer/yelp_review_full/train Doesn't work: ``` Server error Status code: 400 Exception: Error Message: line contains NULL ``` Am I the one who added this dataset ? No A seamingly copy of the dataset: https://huggingface.co/datasets/SetFit/yelp_review_full works . The original one: https://huggingface.co/datasets/yelp_review_full has > 20K downloads. I updated the link to not use Google Drive anymore, we will do a release early next week with the updated download url of the dataset :)
[ -0.1579105406999588, -0.061500005424022675, -0.0020499862730503082, 0.2565928101539612, 0.15855655074119568, 0.2892259657382965, 0.24863122403621674, 0.06019692122936249, 0.13817010819911957, -0.14958690106868744, -0.07119713723659515, 0.0036797143984586, -0.24793337285518646, 0.3354058265686035, 0.431904137134552, 0.21492838859558105, 0.10208751261234283, -0.00009328871965408325, -0.0839477926492691, -0.03827808424830437, -0.29185405373573303, 0.21597661077976227, 0.01652625948190689, 0.04765406996011734, -0.49327734112739563, 0.2399832010269165, 0.01006544940173626, 0.08816412091255188, -0.23388049006462097, -0.3900930881500244, 0.1874263882637024, 0.13575859367847443, -0.09360066056251526, 0.7655342817306519, -0.00011975563393207267, 0.152986079454422, 0.3559415340423584, 0.008586151525378227, -0.24553100764751434, -0.3166689872741699, -0.31180670857429504, -0.2055436223745346, 0.1553858518600464, -0.02866295725107193, -0.07616103440523148, -0.321165531873703, -0.026168247684836388, -0.1400861144065857, -0.058271363377571106, 0.3868337869644165, 0.1440596878528595, 0.09121455997228622, 0.010729622095823288, -0.15546821057796478, 0.16725921630859375, 0.19484931230545044, -0.1646820306777954, 0.20443233847618103, 0.1154603436589241, 0.06498901546001434, 0.07150893658399582, 0.1567433476448059, 0.11188170313835144, -0.11218291521072388, 0.6022884845733643, -0.13351422548294067, 0.018709979951381683, -0.15638840198516846, 0.29535701870918274, 0.5142982602119446, 0.49952590465545654, -0.10066380351781845, -0.1826668679714203, -0.08991724997758865, 0.0627100020647049, -0.20450188219547272, 0.43194472789764404, 0.17734268307685852, -0.05471827834844589, 0.2167263925075531, -0.6183225512504578, -0.40146470069885254, -0.013943176716566086, 0.15614056587219238, -0.05616418644785881, 0.40320250391960144, -0.010921456851065159, 0.039464086294174194, 0.17694632709026337, 0.15167438983917236, 0.12448637932538986, -0.12280464172363281, -0.1801067441701889, 0.050096653401851654, -0.16811564564704895, -0.1402525156736374, 0.19275900721549988, 0.399955153465271, 0.14746877551078796, 0.24896688759326935, -0.03350452706217766, 0.22673505544662476, 0.041950635612010956, 0.0359015092253685, 0.3882899284362793, 0.17972199618816376, 0.06400909274816513, 0.14219212532043457, 0.396131694316864, 0.34846949577331543, 0.25260689854621887, 0.01697484217584133, 0.09133506566286087, -0.07677208632230759, -0.29753100872039795, -0.2876894474029541, 0.2768439054489136, -0.02583504095673561, -0.3481314778327942, 0.14577338099479675, -0.514380693435669, -0.1563502550125122, 0.2878988981246948, 0.45966678857803345, -0.023920860141515732, 0.2672308385372162, 0.08760145306587219, 0.04257487505674362, -0.03035823255777359, -0.2847193479537964, -0.09367203712463379, 0.076509989798069, -0.06917799264192581, 0.07512970268726349, 0.05661338195204735, -0.18788482248783112, 0.313022643327713, -0.2991717457771301, -0.19550462067127228, -0.25352543592453003, -0.11737026274204254, -0.11333481967449188, -0.27304139733314514, -0.09450314939022064, 0.0863247662782669, 0.18783128261566162, -0.04381997510790825, -0.19608433544635773, -0.00435870885848999, 0.24231502413749695, -0.32756808400154114, -0.3103276789188385, -0.27187198400497437, 0.15553319454193115, -0.25317221879959106, -0.1888473629951477, -0.07842648774385452, 0.26787033677101135, -0.1010640487074852, -0.039058368653059006, 0.073141910135746, 0.15335100889205933, -0.12426131963729858, 0.04205784946680069, 0.19604288041591644, 0.5120466351509094, -0.6439040303230286, -0.3526059091091156, -0.46241867542266846, -0.16851180791854858, -0.3010096549987793, 0.2471771240234375, -0.13386352360248566, 0.33684393763542175, -0.12371139228343964, 0.058556169271469116, 0.6299479603767395, 0.08004269003868103, -0.32607632875442505, 0.025106804445385933, -0.13487929105758667, -0.09651928395032883, -0.2375471591949463, 0.1321086287498474, 0.047669462859630585, 0.033371828496456146, 0.033954717218875885, -0.13506126403808594, 0.06358806788921356, -0.02900199592113495, -0.2529628276824951, -0.3106326460838318, 0.06972365081310272, 0.04425956681370735, 0.15873359143733978, 0.12437434494495392, 0.12990665435791016, -0.31127262115478516, 0.23646241426467896, -0.017344895750284195, 0.26600411534309387, 0.42352885007858276, 0.7170472741127014, 0.6832457184791565, 0.02713080868124962, 0.05981634557247162, -0.33165666460990906, 0.002628784626722336, -0.10874255001544952, 0.04900601506233215, -0.06954210996627808, -0.1454775482416153, -0.5091007351875305, 0.028363803401589394, -0.40796685218811035, -0.42033499479293823, 0.006941717118024826, 0.1317189335823059, -0.17070205509662628, 0.15625055134296417, -0.3701446056365967, -0.032605238258838654, -0.19918441772460938, 0.056130677461624146, 0.133366659283638, 0.2520221471786499, -0.0752691701054573, 0.14074768126010895, -0.055492524057626724, 0.2595255374908447, 0.25179675221443176, -0.156483992934227, 0.04036585986614227, 0.4450165331363678, -0.3226993978023529, 0.217000350356102, 0.22406843304634094, -0.22760646045207977, 0.18829117715358734, -0.48183003067970276, -0.02862287126481533, 0.07692945003509521, 0.15361613035202026, -0.09884117543697357, -0.3238598108291626, 0.013483010232448578, 0.11184088885784149, 0.04072869196534157, -0.18216511607170105, 0.36653485894203186, 0.06990938633680344, -0.10595852136611938, 0.15323443710803986, -0.19884757697582245, 0.42117026448249817, -0.15339885652065277, 0.5254548192024231, -0.14137263596057892, -0.2528066635131836, -0.17846789956092834, 0.1536874771118164, 0.021296076476573944, 0.16470956802368164, 0.15504492819309235, -0.3089762032032013, -0.1480810046195984, 0.11622285097837448, 0.25516390800476074, 0.12820668518543243, 0.13127467036247253, -0.019654568284749985, 0.11649195104837418, 0.09122339636087418, -0.1914919763803482, 0.19339630007743835, 0.09632047265768051, 0.0069391848519444466, 0.09999832510948181, 0.09366840869188309, -0.2190108597278595, -0.26979681849479675, 0.11560322344303131, 0.18065208196640015, 0.30690211057662964, -0.46421295404434204, -0.06312025338411331, -0.09235955774784088, -0.12052451074123383, -0.06562246382236481, -0.041726842522621155, -0.18198689818382263, -0.5357885956764221, -0.005686841905117035, 0.05376919358968735, -0.18594826757907867, 0.23842933773994446, -0.19952897727489471, 0.27369803190231323, -0.18919408321380615, -0.022262224927544594, -0.23346062004566193, -0.17493726313114166, -0.18507954478263855, 0.09872911870479584, 0.31351393461227417, -0.1504811942577362, 0.08025037497282028, -0.08477476984262466, 0.06856341660022736, -0.5505322813987732, -0.14540821313858032, 0.12259567528963089, -0.30637484788894653, 0.3221185505390167, 0.02181302011013031, 0.3988208770751953, -0.21851374208927155, 0.11390400677919388, 0.3104686141014099, -0.07670294493436813, -0.09834838658571243, -0.22370639443397522, 0.1692095398902893, 0.08013853430747986, -0.01596245914697647, -0.0669141635298729, 0.05020705610513687, -0.18408817052841187, 0.2158370465040207, -0.00017067790031433105, 0.0655827522277832, -0.1315620243549347, -0.05052133649587631, 0.4080795347690582, 0.029607513919472694, -0.1927056759595871, -0.09927868098020554, -0.2158370018005371, 0.5900478363037109, -0.2207370549440384, -0.2529415190219879, 0.35467010736465454, 0.26142418384552, 0.09231612086296082, -0.04772157594561577, -0.7110188603401184, -0.12319699674844742, 0.0902789756655693, 0.13109178841114044, 0.08073142915964127, -0.396746426820755, 0.27398526668548584, 0.033708758652210236, -0.01984941028058529, -0.09190315008163452, -0.23643940687179565, -0.1433633267879486, -0.06314980983734131, 0.4132477045059204, -0.05639632046222687, 0.4384769797325134, -0.0485873818397522, 0.6250644326210022, 0.39416825771331787, 0.1836700141429901, 0.5045766234397888, -0.1117996796965599, 0.5267631411552429, -0.05306831747293472, -0.27519723773002625, -0.14376947283744812, 0.05648178607225418, 0.23969797790050507, 0.24978412687778473, 0.18184354901313782, -0.10980472713708878, -0.45972582697868347, 0.042029742151498795, -0.3586269021034241, -0.04661881923675537, -0.2929302155971527, -0.23300978541374207, 0.12305545806884766, -0.10281047224998474, 0.19108614325523376, 0.09581717848777771, -0.4747738242149353, 0.13710424304008484, 0.33105963468551636, -0.11567551642656326, -0.03205815330147743, -0.37081193923950195, 0.03903770074248314, -0.28511348366737366, 0.4165138602256775, -0.0633125752210617, 0.07138312608003616, -0.21657879650592804, 0.07683876901865005, 0.2538236975669861, -0.09275353699922562, 0.9339174628257751, -0.045802295207977295, -0.04782043397426605, -0.13405315577983856, 0.20658354461193085, -0.2825343608856201, 0.16409504413604736, 0.04655532166361809, 0.12094306200742722, 0.1980946660041809, 0.12092961370944977, -0.2915268838405609, -0.07279538363218307, 0.6017403602600098, -0.15006095170974731, -0.10602079331874847, -0.06301800906658173, -0.0206313356757164, -0.21848666667938232, 0.13474754989147186, -0.3646842837333679, -0.12230851501226425, 0.23586194217205048, 0.23493635654449463, 0.002134118229150772, 0.29957765340805054, -0.16189885139465332, 0.2041727900505066, -0.14956410229206085, 0.3905992805957794, 0.0810842216014862, -0.002033976837992668, 0.3089968264102936, 0.32948899269104004, 0.19893783330917358, 0.6487123370170593, -0.04510067030787468, -0.3018449544906616, 0.20418530702590942, 0.0032797446474432945, 0.22827091813087463, 0.5660333633422852, 0.13747987151145935, 0.07164806872606277, 0.2677059769630432, 0.18746529519557953, -0.013874196447432041, 0.06280957162380219, 0.422639399766922, 0.0519808866083622, -0.4614450931549072, -0.35812273621559143, 0.3619876205921173, -0.02235420048236847, 0.1339036077260971, 0.23802566528320312, 0.5015340447425842, -0.2770775854587555, -0.19611003994941711, -0.023474685847759247, 1.1136771440505981, -0.009140662848949432, 0.08213752508163452, 0.10611379891633987, -0.11871962249279022, 0.4436931014060974, -0.467898428440094, 0.02668898180127144, -0.05053815618157387, 0.425052285194397, -0.30681315064430237, -0.011194266378879547, 0.2311120331287384, -0.05744555592536926, -0.013045456260442734, 0.30859288573265076, 0.11758288741111755, 0.1877257376909256, 0.007242455612868071, 0.28860050439834595, -0.2937600016593933, 0.1667277216911316, 0.22082246840000153, 0.1671004742383957, -0.10730911791324615, 0.18872034549713135, -0.19585740566253662, -0.09784548729658127, -0.3922904133796692, 0.01124192401766777, -0.5081720948219299, -0.15318265557289124, -0.37030595541000366, 0.17770035564899445, 0.09633977711200714, -0.6148827075958252, 0.2016766369342804, 0.14741642773151398, 0.037596821784973145, 0.12701182067394257, -0.5951337218284607, 0.4614028036594391, -0.23428726196289062, 0.038462892174720764, -0.09492114186286926, 0.04057740420103073, 0.06816524267196655, -0.07985734939575195, -0.3143044710159302, 0.13181529939174652, -0.11884898692369461, -0.4425428509712219, -0.2620317339897156, 0.1293996423482895, -0.04355970025062561, -0.2787837088108063, -0.021225646138191223, 0.046588730067014694, -0.010735023766756058, -0.24558350443840027, 0.07411977648735046, -0.02777017652988434, 0.06636764109134674, -0.20256727933883667, 0.1990901678800583, -0.23090000450611115, -0.2687312066555023, 0.45502179861068726, -0.11455709487199783, -0.03642900288105011, 0.6597145795822144, 0.14482438564300537, -0.3514336943626404, -0.1700892150402069, 0.28185558319091797, 0.17613637447357178, -0.39711281657218933, -0.23020067811012268, -0.19204972684383392, 0.14137877523899078, -0.12869466841220856, 0.19516392052173615, 0.07752930372953415, 0.35199642181396484, 0.014156263321638107, -0.19816523790359497, -0.13783703744411469, 0.10673655569553375, 0.09102693945169449, 0.158463716506958, -0.3063258230686188, 0.3974348306655884, 0.5014572143554688, -0.10898192226886749, -0.23900742828845978, 0.19251900911331177, -0.14208568632602692, -0.009677406400442123, 0.25505685806274414, 0.11139661818742752, 0.3135146498680115, -0.24812199175357819, 0.03444352000951767, 0.06807601451873779, -0.23639671504497528, -0.0620894618332386, 0.05527057126164436, 0.15516303479671478, 0.09170522540807724, -0.4621352255344391, -0.18802188336849213, -0.07469938695430756, -0.12086857855319977, 0.11072582006454468, -0.03030746802687645, 0.2146228551864624, 0.07716986536979675, -0.1733088195323944, 0.2165125459432602, -0.33438482880592346, -0.21341755986213684, -0.10028882324695587, 0.1513582170009613, 0.22686240077018738, -0.058468155562877655, 0.0021242015063762665, 0.42109936475753784, 0.0851421058177948, -0.13911429047584534, 0.30262523889541626, 0.07771165668964386, -0.035898514091968536, 0.300691694021225, -0.31220871210098267, 0.08927913010120392, 0.25975868105888367, 0.2934942841529846, 0.570540189743042, -0.37967777252197266, -0.0420832559466362, 0.5237550735473633, 0.0670839175581932, -0.15242594480514526, 0.20010805130004883, 0.15494675934314728, -0.02339794486761093, 0.006463054567575455, -0.18251317739486694, -0.0599786713719368, 0.013738207519054413, -0.19071240723133087, 0.3099967837333679, 0.41054075956344604, -0.10833445191383362, 0.44095611572265625, -0.10642489790916443, -0.22034072875976562, 0.17197507619857788, 0.18252845108509064, 0.27556753158569336, -0.1746124029159546, 0.32822924852371216, 0.009346574544906616, 0.028648123145103455, -0.31405898928642273, 0.03489294648170471, 0.0408468097448349, -0.2672615349292755, 0.17520703375339508, 0.0641741082072258, -0.4886350631713867, -0.10483642667531967, 0.10116086155176163, 0.7245191335678101, -0.39571237564086914, -0.012172767892479897, -0.32373952865600586, 0.1359943151473999, -0.21484550833702087, 0.16391396522521973, -0.2953861951828003, -0.40955567359924316, -0.15838533639907837, 0.0671243816614151, 0.1252748966217041, -0.24002887308597565, -0.19911512732505798, 0.03027605265378952, -0.33128106594085693, -0.2028997391462326, 0.1616491675376892, 0.011297009885311127, 0.33008861541748047, -0.2240949273109436, -0.07548746466636658, 0.07091347873210907, -0.0747898519039154, 0.19135338068008423, 0.39765962958335876, 0.0788915604352951, 0.05963259935379028, 0.15750493109226227, -0.0477076880633831, -0.04870728775858879, -0.1727810651063919, 0.13917261362075806, 0.2215220332145691, 0.43164578080177307, -0.30687516927719116, 0.0960274338722229, 0.05606381595134735, -0.14712774753570557, 0.37418633699417114, -0.01883934810757637, 0.5972368121147156, -0.5094219446182251, 0.22008530795574188, -0.6256799697875977, -0.30466991662979126, -0.3055378198623657, -0.3055078983306885, -0.1885325014591217, 0.019449148327112198, 0.18089622259140015, -0.21143552660942078, 0.009846499189734459, -0.3840790390968323, 0.03920598700642586, 0.24297349154949188, 0.36425551772117615, 0.5927622318267822, -0.3606415092945099, -0.10947491973638535, -0.39885586500167847, -0.5845009684562683, 0.1330260932445526, -0.10831531882286072, 0.4344245195388794, -0.24030210077762604, -0.035041533410549164, -0.18354946374893188, 0.06775478273630142, 0.22950226068496704, 0.3375333249568939, -0.14840927720069885, -0.20448711514472961, -0.16766060888767242, -0.11999207735061646, -0.05301891267299652, 0.24144990742206573, 0.035869844257831573, 0.029198363423347473, 0.32927602529525757, -0.26599180698394775, -0.11678624153137207, 0.11541663110256195, -0.01708964630961418, -0.13547781109809875, 0.035722170025110245, 0.23094603419303894, -0.09377899020910263, 0.412768691778183, 0.037337929010391235, 0.012069294229149818, -0.24142885208129883, -0.39053642749786377, -0.0354643389582634, 0.23276832699775696, 0.04027579352259636, 0.09349648654460907, 0.010470731183886528, -0.5217240452766418, -0.10462602972984314, 0.40260395407676697, -0.1201082244515419, 0.24732288718223572, -0.046142369508743286, -0.2613354027271271, -0.13902132213115692, -0.08189480751752853, 0.39730045199394226, -0.12285681813955307, -0.005036655813455582, -0.08794418722391129, -0.2639514207839966, -0.153814896941185, 0.4121387004852295, -0.121598981320858, 0.07477040588855743, -0.23496530950069427, 0.2851331830024719, 0.23711201548576355, -0.2862841784954071, -0.551103949546814, -0.211360901594162, 0.39256685972213745, 0.22069361805915833, -0.12720085680484772, 0.27807170152664185, -0.34881749749183655, -0.05529354512691498, -0.023217204958200455, 0.2523089647293091, 0.15670561790466309, -0.15927748382091522, 0.22290682792663574, -0.04242214933037758 ]
https://github.com/huggingface/datasets/issues/4003
ASSIN2 dataset checksum bug
Using latest code, I am still facing the issue. ```python (base) vimos@vimosmu ➜ ~ ipython Python 3.6.7 | packaged by conda-forge | (default, Nov 6 2019, 16:19:42) Type 'copyright', 'credits' or 'license' for more information IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help. In [1]: from datasets import load_dataset In [2]: load_dataset("assin2") Downloading builder script: 4.24kB [00:00, 244kB/s] Downloading metadata: 2.58kB [00:00, 2.19MB/s] Using custom data configuration default Downloading and preparing dataset assin2/default (download: 2.02 MiB, generated: 1.21 MiB, post-processed: Unknown size, total: 3.23 MiB) to /home/vimos/.cache/huggingface/datasets/assin2/default/1.0.0/8467f7acbda82f62ab960ca869dc1e96350e0e103a1ef7eaa43bbee530b80061... Downloading data: 1.51MB [00:00, 102MB/s] Downloading data: 116kB [00:00, 63.6MB/s] Downloading data: 493kB [00:00, 95.8MB/s] Downloading data files: 100%|██████████████████████████████████████████| 3/3 [00:00<00:00, 8.27it/s] --------------------------------------------------------------------------- ExpectedMoreDownloadedFiles Traceback (most recent call last) <ipython-input-2-b367d1ffd68e> in <module> ----> 1 load_dataset("assin2") ~/anaconda3/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1694 ignore_verifications=ignore_verifications, 1695 try_from_hf_gcs=try_from_hf_gcs, -> 1696 use_auth_token=use_auth_token, 1697 ) 1698 ~/anaconda3/lib/python3.6/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info ~/anaconda3/lib/python3.6/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: ~/anaconda3/lib/python3.6/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 675 if verify_infos: 676 verify_checksums( --> 677 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 678 ) 679 ~/anaconda3/lib/python3.6/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'https://drive.google.com/u/0/uc?id=1kb7xq6Mb3eaqe9cOAo70BaG9ypwkIqEU&export=download', 'https://drive.google.com/u/0/uc?id=1J3FpQaHxpM-FDfBUyooh-sZF-B-bM_lU&export=download', 'https://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'} ```
## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1
264
ASSIN2 dataset checksum bug ## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1 Using latest code, I am still facing the issue. ```python (base) vimos@vimosmu ➜ ~ ipython Python 3.6.7 | packaged by conda-forge | (default, Nov 6 2019, 16:19:42) Type 'copyright', 'credits' or 'license' for more information IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help. In [1]: from datasets import load_dataset In [2]: load_dataset("assin2") Downloading builder script: 4.24kB [00:00, 244kB/s] Downloading metadata: 2.58kB [00:00, 2.19MB/s] Using custom data configuration default Downloading and preparing dataset assin2/default (download: 2.02 MiB, generated: 1.21 MiB, post-processed: Unknown size, total: 3.23 MiB) to /home/vimos/.cache/huggingface/datasets/assin2/default/1.0.0/8467f7acbda82f62ab960ca869dc1e96350e0e103a1ef7eaa43bbee530b80061... Downloading data: 1.51MB [00:00, 102MB/s] Downloading data: 116kB [00:00, 63.6MB/s] Downloading data: 493kB [00:00, 95.8MB/s] Downloading data files: 100%|██████████████████████████████████████████| 3/3 [00:00<00:00, 8.27it/s] --------------------------------------------------------------------------- ExpectedMoreDownloadedFiles Traceback (most recent call last) <ipython-input-2-b367d1ffd68e> in <module> ----> 1 load_dataset("assin2") ~/anaconda3/lib/python3.6/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1694 ignore_verifications=ignore_verifications, 1695 try_from_hf_gcs=try_from_hf_gcs, -> 1696 use_auth_token=use_auth_token, 1697 ) 1698 ~/anaconda3/lib/python3.6/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 604 if not downloaded_from_gcs: 605 self._download_and_prepare( --> 606 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 607 ) 608 # Sync info ~/anaconda3/lib/python3.6/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 1102 1103 def _download_and_prepare(self, dl_manager, verify_infos): -> 1104 super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos) 1105 1106 def _get_examples_iterable_for_split(self, split_generator: SplitGenerator) -> ExamplesIterable: ~/anaconda3/lib/python3.6/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 675 if verify_infos: 676 verify_checksums( --> 677 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 678 ) 679 ~/anaconda3/lib/python3.6/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 31 return 32 if len(set(expected_checksums) - set(recorded_checksums)) > 0: ---> 33 raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) 34 if len(set(recorded_checksums) - set(expected_checksums)) > 0: 35 raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) ExpectedMoreDownloadedFiles: {'https://drive.google.com/u/0/uc?id=1kb7xq6Mb3eaqe9cOAo70BaG9ypwkIqEU&export=download', 'https://drive.google.com/u/0/uc?id=1J3FpQaHxpM-FDfBUyooh-sZF-B-bM_lU&export=download', 'https://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'} ```
[ -0.16043469309806824, 0.13614869117736816, -0.04458185285329819, 0.34855663776397705, 0.12330152094364166, 0.14757734537124634, 0.23576845228672028, 0.3987540006637573, 0.2274777591228485, 0.1705751121044159, -0.08641508221626282, -0.04827161878347397, 0.15661078691482544, -0.006212417036294937, -0.0911366194486618, 0.2126842439174652, -0.0068694353103637695, -0.06879086792469025, -0.3707771897315979, 0.14795473217964172, -0.21566461026668549, 0.14720867574214935, -0.16001570224761963, -0.232186958193779, 0.053712621331214905, 0.35271480679512024, 0.1744881123304367, 0.17002223432064056, -0.11699997633695602, -0.2912389636039734, 0.4999035596847534, 0.009774141013622284, -0.0069916583597660065, 0.29786184430122375, -0.00011023473052773625, 0.11775422096252441, 0.43597930669784546, 0.051225170493125916, -0.36247000098228455, 0.10981528460979462, -0.5854852199554443, -0.13242807984352112, -0.11807603389024734, -0.16451847553253174, 0.046304598450660706, 0.3925803303718567, -0.07090049982070923, -0.2182527333498001, -0.061127811670303345, 0.07550206035375595, 0.24680030345916748, 0.35080093145370483, 0.07517094910144806, -0.026460442692041397, 0.17142769694328308, -0.021326348185539246, -0.13964904844760895, 0.09272050857543945, 0.06215880811214447, -0.012022837996482849, -0.12847211956977844, 0.20802147686481476, -0.28895968198776245, 0.2532753646373749, 0.1393754780292511, 0.05991259217262268, 0.08236921578645706, -0.028807051479816437, 0.09965772926807404, 0.19704675674438477, 0.11561000347137451, -0.34225642681121826, -0.3630943298339844, -0.25713884830474854, -0.02464553341269493, -0.277351438999176, 0.42645570635795593, 0.01862901821732521, -0.0919884443283081, 0.05666755884885788, -0.40000608563423157, 0.372242271900177, -0.026278972625732422, -0.061417341232299805, 0.06924830377101898, 0.05053571239113808, 0.04447392746806145, 0.011117752641439438, 0.012894518673419952, -0.1473572701215744, 0.036818135529756546, -0.13427777588367462, -0.2632746398448944, 0.016211286187171936, -0.4780634045600891, -0.10282880067825317, 0.04790002107620239, 0.37453389167785645, 0.4013577699661255, 0.3890807032585144, -0.118619903922081, 0.07249781489372253, 0.007039646618068218, 0.10274107754230499, 0.02496926859021187, 0.08113637566566467, 0.10481713712215424, 0.16041505336761475, 0.2983686625957489, 0.26215192675590515, -0.050339847803115845, 0.186015784740448, 0.061170078814029694, -0.2655917704105377, 0.7207058072090149, 0.13100950419902802, 0.2885502576828003, -0.5591681599617004, -0.3844878673553467, 0.3097098767757416, -0.05268799513578415, -0.06218317896127701, 0.22507919371128082, 0.2973693311214447, -0.24985812604427338, 0.0127507783472538, -0.08192159235477448, -0.08850575238466263, -0.11915796995162964, -0.08039841800928116, -0.2665680944919586, -0.07452690601348877, -0.08687712997198105, 0.14575237035751343, 0.2807624936103821, -0.18961739540100098, 0.32628169655799866, -0.008844554424285889, 0.38697582483291626, -0.028264706954360008, 0.3564755618572235, -0.07900406420230865, 0.016395345330238342, 0.3935372829437256, -0.11411142349243164, 0.12303344160318375, 0.0857287049293518, 0.012732364237308502, -0.09579242020845413, -0.021552912890911102, -0.20868873596191406, -0.20592959225177765, -0.12239524722099304, 0.2785402536392212, -0.4135289192199707, -0.13171689212322235, -0.03289095312356949, -0.4809674620628357, 0.3279176652431488, -0.3114384114742279, 0.05695579573512077, -0.27463918924331665, -0.39033108949661255, -0.14210909605026245, 0.2923666536808014, 0.25935208797454834, 0.1939791440963745, 0.024242714047431946, 0.0022977725602686405, -0.0931624323129654, 0.06310169398784637, 0.18811294436454773, -0.00679094297811389, -0.11268431693315506, -0.3210263252258301, -0.06620899587869644, -0.059514112770557404, -0.31992775201797485, -0.5529394149780273, -0.09000801295042038, 0.10857172310352325, 0.45544174313545227, 0.18893927335739136, 0.11304895579814911, -0.00981283187866211, -0.15953318774700165, 0.36414477229118347, 0.19685383141040802, -0.010492345318198204, 0.08732587099075317, -0.2553120255470276, -0.267734169960022, 0.24188748002052307, 0.13089224696159363, 0.05806181952357292, -0.03527217358350754, 0.0979253277182579, -0.22591504454612732, 0.2521161437034607, -0.058268073946237564, -0.08015958219766617, 0.023351289331912994, 0.3837167024612427, -0.012340560555458069, 0.08008179813623428, -0.29858461022377014, -0.46413660049438477, 0.3735250234603882, -0.025608008727431297, 0.01808537170290947, -0.14146898686885834, -0.12402957677841187, -0.34082353115081787, -0.11147165298461914, -0.15261690318584442, 0.00878649577498436, 0.15330128371715546, 0.34254521131515503, 0.22040390968322754, -0.1123572587966919, -0.10313771665096283, 0.3838712275028229, -0.3459358513355255, 0.07074049860239029, -0.4630640745162964, 0.252187043428421, 0.05697710067033768, -0.08426553010940552, 0.026458628475666046, 0.16876108944416046, 0.11144726723432541, 0.059356220066547394, -0.13123944401741028, 0.4714233875274658, 0.3456690013408661, -0.04785968363285065, -0.054400451481342316, 0.45631253719329834, 0.02546059899032116, -0.17398078739643097, -0.11285539716482162, 0.267191618680954, 0.18243609368801117, -0.004904832690954208, -0.11043467372655869, 0.4683769941329956, -0.1761026531457901, 0.1636897623538971, 0.04060567170381546, -0.04064854979515076, 0.24238023161888123, -0.18251220881938934, -0.2581920921802521, -0.33065953850746155, 0.04563991352915764, -0.011607509106397629, -0.11895440518856049, 0.1020653024315834, -0.015689358115196228, 0.037580519914627075, 0.3149496018886566, -0.0006601493805646896, -0.04459957033395767, -0.0007366091012954712, 0.06036030501127243, 0.005064573138952255, 0.020878147333860397, 0.4157186448574066, 0.417194128036499, 0.17978285253047943, 0.030141394585371017, 0.09130848944187164, -0.20932184159755707, 0.03791526332497597, 0.1532784104347229, -0.044530995190143585, 0.09277307987213135, 0.4124937653541565, 0.19118282198905945, 0.0012364992871880531, -0.1826702356338501, -0.23761969804763794, -0.10154463350772858, 0.22129105031490326, -0.4639391601085663, -0.10524997860193253, -0.15238894522190094, -0.1491224765777588, -0.3535281717777252, -0.26894453167915344, -0.1569860875606537, -0.294127881526947, -0.11240828037261963, 0.4061495363712311, -0.18887543678283691, 0.20598798990249634, -0.6534873247146606, -0.015128672122955322, 0.11081328988075256, -0.11993039399385452, 0.12660427391529083, 0.17349644005298615, 0.10921856015920639, 0.02259764075279236, 0.5444901585578918, 0.051893431693315506, 0.4860110282897949, -0.30056002736091614, -0.09451611340045929, -0.3559528589248657, -0.3856131434440613, 0.09277771413326263, -0.021894704550504684, 0.24261339008808136, 0.31262490153312683, 0.05473974347114563, 0.08758915960788727, -0.3918153941631317, 0.24740344285964966, -0.0070160795003175735, -0.42441970109939575, 0.2736136019229889, -0.11033947765827179, -0.011163300834596157, 0.05363411828875542, -0.2144118845462799, 0.0978810042142868, -0.18404904007911682, -0.14220941066741943, 0.1190701574087143, 0.05528702959418297, 0.3201071321964264, -0.15239666402339935, 0.254085898399353, 0.02367899753153324, 0.48682308197021484, -0.2360309511423111, -0.5782948136329651, 0.38530105352401733, -0.00479355501011014, -0.22660399973392487, -0.09703902900218964, -0.07828345894813538, 0.05326606705784798, 0.15448856353759766, -0.35131752490997314, -0.45408543944358826, -0.3249568045139313, 0.12285852432250977, 0.10714390873908997, -0.091236911714077, 0.10045818239450455, 0.07233522832393646, -0.09731581807136536, -0.18502631783485413, -0.5065735578536987, 0.1478314995765686, -0.08814352005720139, 0.2295030951499939, -0.300024151802063, 0.22087180614471436, -0.11309172213077545, 0.25427180528640747, 0.4631985127925873, 0.03693421930074692, -0.0626082718372345, 0.11106541752815247, 0.24314860999584198, -0.2700335383415222, -0.25125277042388916, -0.08247169852256775, 0.007723554968833923, -0.23794560134410858, 0.014110080897808075, 0.019469866529107094, -0.13021042943000793, -0.048075903207063675, -0.08386904001235962, -0.21389582753181458, -0.2864218056201935, -0.10923673212528229, -0.1263437718153, 0.20728546380996704, 0.05996014550328255, 0.00734248012304306, -0.15046444535255432, -0.12127726525068283, 0.23320043087005615, 0.18520131707191467, -0.07039167732000351, -0.14532971382141113, -0.3716788589954376, -0.10240134596824646, 0.03653552383184433, 0.20548033714294434, 0.2864384353160858, 0.5274891257286072, 0.1448143571615219, -0.5239361524581909, -0.12533514201641083, -0.09287206828594208, 0.2265194207429886, -0.3729906380176544, 0.34506481885910034, 0.15355119109153748, -0.144622802734375, -0.1469278335571289, -0.10371892154216766, -0.0591670498251915, -0.09895256161689758, 0.4049947261810303, 0.200486421585083, -0.3043409287929535, -0.0065855178982019424, 0.5640462636947632, 0.3197783827781677, -0.13766145706176758, -0.23399171233177185, -0.4166043698787689, -0.13147304952144623, -0.2011798918247223, 0.07485266774892807, -0.07711070030927658, 0.22431756556034088, 0.05596253275871277, -0.08273345232009888, -0.21744191646575928, -0.02764996327459812, 0.2253051996231079, 0.2396891862154007, 0.21425819396972656, 0.10203834623098373, 0.5871538519859314, 0.012653032317757607, 0.11545276641845703, 0.23397640883922577, 0.5784367918968201, -0.19949378073215485, -0.27283963561058044, 0.0010130535811185837, -0.06089312583208084, -0.016083084046840668, 0.06616554409265518, -0.11680331081151962, -0.021136611700057983, 0.2652045786380768, -0.022508054971694946, -0.16087710857391357, -0.22663994133472443, 0.0576711967587471, 0.21640348434448242, -0.35720187425613403, -0.26124125719070435, -0.05052586644887924, -0.11084797978401184, -0.03076624497771263, 0.5282765626907349, 0.12782159447669983, -0.10898295789957047, 0.154016375541687, 0.15953388810157776, 0.6838839650154114, 0.22390921413898468, -0.07439881563186646, 0.22403869032859802, -0.27596378326416016, -0.1593940109014511, 0.3480636477470398, 0.055578749626874924, -0.4502966105937958, -0.46462199091911316, 0.10320308804512024, -0.23230403661727905, 0.13676288723945618, -0.43487548828125, 0.005684208124876022, 0.13144563138484955, -0.00445479154586792, 0.2994242012500763, -0.037437088787555695, 0.02040485292673111, -0.25121381878852844, -0.10339689254760742, -0.10512003302574158, 0.20358030498027802, 0.027814295142889023, 0.03653135895729065, -0.08111975342035294, 0.022387024015188217, 0.07071562111377716, -0.1196889728307724, -0.2227441370487213, 0.1630641520023346, 0.0411035381257534, 0.24493923783302307, 0.3956477642059326, 0.10907517373561859, -0.22630108892917633, 0.005262020975351334, 0.44108790159225464, 0.15091510117053986, -0.15055949985980988, -0.017336826771497726, 0.10825232416391373, 0.3001057207584381, 0.14515025913715363, -0.2610457241535187, 0.4518338143825531, -0.010774359107017517, -0.14486002922058105, -0.029246248304843903, 0.05466196686029434, -0.3356930613517761, 0.28121402859687805, -0.21722348034381866, -0.020129099488258362, -0.41371557116508484, -0.09272913634777069, 0.003994747996330261, 0.1986875683069229, -0.318398118019104, 0.20778168737888336, 0.25222623348236084, -0.1937427818775177, 0.18209078907966614, -0.04619422182440758, -0.4252878427505493, -0.07746165990829468, 0.48640769720077515, 0.05128592252731323, -0.16063956916332245, 0.3474636375904083, -0.07809781283140182, -0.14808186888694763, -0.19974616169929504, 0.01412239670753479, -0.12872521579265594, -0.3377084732055664, 0.07584147155284882, -0.17165955901145935, 0.21853603422641754, 0.014197907410562038, 0.25998157262802124, 0.2655850648880005, -0.023237444460392, 0.06411752104759216, -0.53829425573349, -0.17074622213840485, 0.11057762801647186, 0.1515725553035736, 0.37769225239753723, -0.37693750858306885, -0.037582967430353165, -0.23812130093574524, -0.1655329316854477, -0.3819057047367096, -0.10696477442979813, -0.268791526556015, -0.003420919179916382, -0.11024312674999237, 0.05954659357666969, 0.1909659057855606, -0.06767983734607697, 0.23988547921180725, -0.024393968284130096, -0.2198338657617569, -0.19698166847229004, -0.2761543393135071, 0.0886693224310875, -0.09307301789522171, -0.01918816938996315, 0.05934308096766472, -0.0432237908244133, -0.08719664812088013, -0.18292146921157837, 0.14686265587806702, 0.29751428961753845, -0.07357005774974823, 0.09681109338998795, 0.1302872747182846, -0.09695977717638016, -0.022608257830142975, -0.003413889557123184, -0.28060346841812134, -0.27399981021881104, 0.11080601066350937, 0.11745096743106842, -0.36799803376197815, 0.07052163779735565, 0.4564502239227295, 0.15636157989501953, -0.10128337144851685, -0.04609899967908859, 0.3590339124202728, -0.12290783226490021, -0.2883680760860443, 0.4908956289291382, 0.27594995498657227, 0.3331809937953949, -0.3108537197113037, -0.07003926485776901, -0.005674848333001137, 0.3391745388507843, -0.2674175798892975, 0.11118672788143158, 0.21361273527145386, -0.12344152480363846, 0.06189911440014839, 0.19507887959480286, -0.029856542125344276, -0.3066757321357727, 0.4951625466346741, 0.12133318930864334, 0.17091290652751923, -0.3261246681213379, 0.19003519415855408, 0.28926408290863037, -0.08307872712612152, -0.2520151734352112, 0.21584685146808624, -0.26428908109664917, 0.18738724291324615, 0.021465256810188293, 0.07219067215919495, 0.4156484007835388, -0.3092454969882965, 0.24658185243606567, -0.251274049282074, -0.2438567578792572, 0.3928709924221039, 0.27279937267303467, -0.07645617425441742, -0.05716449022293091, 0.13643266260623932, 0.2691204845905304, -0.04588288813829422, 0.2258920967578888, -0.580162525177002, -0.11373260617256165, -0.04650874435901642, -0.1383698731660843, -0.20982803404331207, -0.35658499598503113, 0.050814613699913025, 0.20383885502815247, 0.05702521651983261, 0.18605296313762665, 0.41312065720558167, 0.0887017548084259, -0.1763894408941269, -0.5158361792564392, -0.04307477921247482, 0.22971904277801514, 0.10043176263570786, -0.28209686279296875, 0.07360485941171646, 0.410944402217865, -0.12237970530986786, 0.0030612871050834656, 0.46742576360702515, 0.413286954164505, 0.2687174379825592, 0.19000621140003204, -0.1325172632932663, 0.03342432156205177, 0.09420688450336456, -0.23517686128616333, 0.7826801538467407, -0.18733054399490356, -0.0706423670053482, 0.30082523822784424, 0.2391851246356964, -0.22740773856639862, 0.029153384268283844, -0.22521041333675385, -0.23146237432956696, -0.17505604028701782, 0.4191073477268219, -0.02955038845539093, 0.23915690183639526, -0.046415820717811584, 0.23300915956497192, -0.21934276819229126, -0.32149410247802734, 0.35047388076782227, 0.007885759696364403, 0.14991068840026855, 0.08693203330039978, 0.11714169383049011, -0.09667912125587463, 0.32182440161705017, 0.128220796585083, -0.14376139640808105, -0.14840202033519745, -0.257306843996048, -0.6486017107963562, 0.24645093083381653, 0.05458866059780121, -0.0012429691851139069, 0.08087889105081558, 0.27812039852142334, -0.08203911036252975, 0.11903107166290283, 0.1718376725912094, -0.025768695399165154, -0.16076818108558655, -0.04270477592945099, -0.20795245468616486, 0.004009578377008438, 0.04901237040758133, -0.2514982223510742, -0.044542744755744934, -0.3726629316806793, 0.10163060575723648, 0.09170496463775635, 0.1682257056236267, 0.04599010944366455, -0.08919656276702881, 0.0074409618973731995, 0.16780352592468262, 0.2601189613342285, 0.24128040671348572, 0.5270306468009949, -0.07397317886352539, -0.108849436044693, -0.14833812415599823, -0.3385455012321472, -0.048809729516506195, 0.3255714774131775, -0.038650546222925186, 0.3745357096195221, 0.08269324898719788, -0.08890053629875183, -0.10893914103507996, 0.3895132541656494, 0.11410069465637207, -0.4120946228504181, -0.3098467290401459, 0.20933286845684052, -0.21590524911880493, 0.19409561157226562, -0.23163031041622162, 0.05341672524809837, 0.16212618350982666, 0.361308753490448, -0.06142766773700714, -0.3341143727302551, 0.46475037932395935, -0.1813894361257553, -0.1756453663110733, -0.19221916794776917, 0.44818437099456787, -0.25581875443458557, -0.25296711921691895, -0.7822976112365723, 0.13658693432807922, 0.3473396599292755, 0.10697470605373383, -0.1717979609966278, 0.3788102865219116, -0.15936928987503052, 0.3337376117706299, 0.0037271976470947266, 0.26363664865493774, 0.027954118326306343, -0.20655573904514313, 0.04355206713080406, -0.021566953510046005 ]
https://github.com/huggingface/datasets/issues/4003
ASSIN2 dataset checksum bug
That's true. Steps to reproduce the bug on Google Colab: ``` git clone https://github.com/huggingface/datasets.git cd datasets pip install -e . python -c "from datasets import load_dataset; print(load_dataset('assin2')['train'][0])" ``` However the dataset will load without any problems if you just install version 2.0.0: ``` pip install datasets python -c "from datasets import load_dataset; print(load_dataset('assin2')['train'][0])" ``` Any thoughts @lhoestq ?
## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1
58
ASSIN2 dataset checksum bug ## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1 That's true. Steps to reproduce the bug on Google Colab: ``` git clone https://github.com/huggingface/datasets.git cd datasets pip install -e . python -c "from datasets import load_dataset; print(load_dataset('assin2')['train'][0])" ``` However the dataset will load without any problems if you just install version 2.0.0: ``` pip install datasets python -c "from datasets import load_dataset; print(load_dataset('assin2')['train'][0])" ``` Any thoughts @lhoestq ?
[ -0.16043469309806824, 0.13614869117736816, -0.04458185285329819, 0.34855663776397705, 0.12330152094364166, 0.14757734537124634, 0.23576845228672028, 0.3987540006637573, 0.2274777591228485, 0.1705751121044159, -0.08641508221626282, -0.04827161878347397, 0.15661078691482544, -0.006212417036294937, -0.0911366194486618, 0.2126842439174652, -0.0068694353103637695, -0.06879086792469025, -0.3707771897315979, 0.14795473217964172, -0.21566461026668549, 0.14720867574214935, -0.16001570224761963, -0.232186958193779, 0.053712621331214905, 0.35271480679512024, 0.1744881123304367, 0.17002223432064056, -0.11699997633695602, -0.2912389636039734, 0.4999035596847534, 0.009774141013622284, -0.0069916583597660065, 0.29786184430122375, -0.00011023473052773625, 0.11775422096252441, 0.43597930669784546, 0.051225170493125916, -0.36247000098228455, 0.10981528460979462, -0.5854852199554443, -0.13242807984352112, -0.11807603389024734, -0.16451847553253174, 0.046304598450660706, 0.3925803303718567, -0.07090049982070923, -0.2182527333498001, -0.061127811670303345, 0.07550206035375595, 0.24680030345916748, 0.35080093145370483, 0.07517094910144806, -0.026460442692041397, 0.17142769694328308, -0.021326348185539246, -0.13964904844760895, 0.09272050857543945, 0.06215880811214447, -0.012022837996482849, -0.12847211956977844, 0.20802147686481476, -0.28895968198776245, 0.2532753646373749, 0.1393754780292511, 0.05991259217262268, 0.08236921578645706, -0.028807051479816437, 0.09965772926807404, 0.19704675674438477, 0.11561000347137451, -0.34225642681121826, -0.3630943298339844, -0.25713884830474854, -0.02464553341269493, -0.277351438999176, 0.42645570635795593, 0.01862901821732521, -0.0919884443283081, 0.05666755884885788, -0.40000608563423157, 0.372242271900177, -0.026278972625732422, -0.061417341232299805, 0.06924830377101898, 0.05053571239113808, 0.04447392746806145, 0.011117752641439438, 0.012894518673419952, -0.1473572701215744, 0.036818135529756546, -0.13427777588367462, -0.2632746398448944, 0.016211286187171936, -0.4780634045600891, -0.10282880067825317, 0.04790002107620239, 0.37453389167785645, 0.4013577699661255, 0.3890807032585144, -0.118619903922081, 0.07249781489372253, 0.007039646618068218, 0.10274107754230499, 0.02496926859021187, 0.08113637566566467, 0.10481713712215424, 0.16041505336761475, 0.2983686625957489, 0.26215192675590515, -0.050339847803115845, 0.186015784740448, 0.061170078814029694, -0.2655917704105377, 0.7207058072090149, 0.13100950419902802, 0.2885502576828003, -0.5591681599617004, -0.3844878673553467, 0.3097098767757416, -0.05268799513578415, -0.06218317896127701, 0.22507919371128082, 0.2973693311214447, -0.24985812604427338, 0.0127507783472538, -0.08192159235477448, -0.08850575238466263, -0.11915796995162964, -0.08039841800928116, -0.2665680944919586, -0.07452690601348877, -0.08687712997198105, 0.14575237035751343, 0.2807624936103821, -0.18961739540100098, 0.32628169655799866, -0.008844554424285889, 0.38697582483291626, -0.028264706954360008, 0.3564755618572235, -0.07900406420230865, 0.016395345330238342, 0.3935372829437256, -0.11411142349243164, 0.12303344160318375, 0.0857287049293518, 0.012732364237308502, -0.09579242020845413, -0.021552912890911102, -0.20868873596191406, -0.20592959225177765, -0.12239524722099304, 0.2785402536392212, -0.4135289192199707, -0.13171689212322235, -0.03289095312356949, -0.4809674620628357, 0.3279176652431488, -0.3114384114742279, 0.05695579573512077, -0.27463918924331665, -0.39033108949661255, -0.14210909605026245, 0.2923666536808014, 0.25935208797454834, 0.1939791440963745, 0.024242714047431946, 0.0022977725602686405, -0.0931624323129654, 0.06310169398784637, 0.18811294436454773, -0.00679094297811389, -0.11268431693315506, -0.3210263252258301, -0.06620899587869644, -0.059514112770557404, -0.31992775201797485, -0.5529394149780273, -0.09000801295042038, 0.10857172310352325, 0.45544174313545227, 0.18893927335739136, 0.11304895579814911, -0.00981283187866211, -0.15953318774700165, 0.36414477229118347, 0.19685383141040802, -0.010492345318198204, 0.08732587099075317, -0.2553120255470276, -0.267734169960022, 0.24188748002052307, 0.13089224696159363, 0.05806181952357292, -0.03527217358350754, 0.0979253277182579, -0.22591504454612732, 0.2521161437034607, -0.058268073946237564, -0.08015958219766617, 0.023351289331912994, 0.3837167024612427, -0.012340560555458069, 0.08008179813623428, -0.29858461022377014, -0.46413660049438477, 0.3735250234603882, -0.025608008727431297, 0.01808537170290947, -0.14146898686885834, -0.12402957677841187, -0.34082353115081787, -0.11147165298461914, -0.15261690318584442, 0.00878649577498436, 0.15330128371715546, 0.34254521131515503, 0.22040390968322754, -0.1123572587966919, -0.10313771665096283, 0.3838712275028229, -0.3459358513355255, 0.07074049860239029, -0.4630640745162964, 0.252187043428421, 0.05697710067033768, -0.08426553010940552, 0.026458628475666046, 0.16876108944416046, 0.11144726723432541, 0.059356220066547394, -0.13123944401741028, 0.4714233875274658, 0.3456690013408661, -0.04785968363285065, -0.054400451481342316, 0.45631253719329834, 0.02546059899032116, -0.17398078739643097, -0.11285539716482162, 0.267191618680954, 0.18243609368801117, -0.004904832690954208, -0.11043467372655869, 0.4683769941329956, -0.1761026531457901, 0.1636897623538971, 0.04060567170381546, -0.04064854979515076, 0.24238023161888123, -0.18251220881938934, -0.2581920921802521, -0.33065953850746155, 0.04563991352915764, -0.011607509106397629, -0.11895440518856049, 0.1020653024315834, -0.015689358115196228, 0.037580519914627075, 0.3149496018886566, -0.0006601493805646896, -0.04459957033395767, -0.0007366091012954712, 0.06036030501127243, 0.005064573138952255, 0.020878147333860397, 0.4157186448574066, 0.417194128036499, 0.17978285253047943, 0.030141394585371017, 0.09130848944187164, -0.20932184159755707, 0.03791526332497597, 0.1532784104347229, -0.044530995190143585, 0.09277307987213135, 0.4124937653541565, 0.19118282198905945, 0.0012364992871880531, -0.1826702356338501, -0.23761969804763794, -0.10154463350772858, 0.22129105031490326, -0.4639391601085663, -0.10524997860193253, -0.15238894522190094, -0.1491224765777588, -0.3535281717777252, -0.26894453167915344, -0.1569860875606537, -0.294127881526947, -0.11240828037261963, 0.4061495363712311, -0.18887543678283691, 0.20598798990249634, -0.6534873247146606, -0.015128672122955322, 0.11081328988075256, -0.11993039399385452, 0.12660427391529083, 0.17349644005298615, 0.10921856015920639, 0.02259764075279236, 0.5444901585578918, 0.051893431693315506, 0.4860110282897949, -0.30056002736091614, -0.09451611340045929, -0.3559528589248657, -0.3856131434440613, 0.09277771413326263, -0.021894704550504684, 0.24261339008808136, 0.31262490153312683, 0.05473974347114563, 0.08758915960788727, -0.3918153941631317, 0.24740344285964966, -0.0070160795003175735, -0.42441970109939575, 0.2736136019229889, -0.11033947765827179, -0.011163300834596157, 0.05363411828875542, -0.2144118845462799, 0.0978810042142868, -0.18404904007911682, -0.14220941066741943, 0.1190701574087143, 0.05528702959418297, 0.3201071321964264, -0.15239666402339935, 0.254085898399353, 0.02367899753153324, 0.48682308197021484, -0.2360309511423111, -0.5782948136329651, 0.38530105352401733, -0.00479355501011014, -0.22660399973392487, -0.09703902900218964, -0.07828345894813538, 0.05326606705784798, 0.15448856353759766, -0.35131752490997314, -0.45408543944358826, -0.3249568045139313, 0.12285852432250977, 0.10714390873908997, -0.091236911714077, 0.10045818239450455, 0.07233522832393646, -0.09731581807136536, -0.18502631783485413, -0.5065735578536987, 0.1478314995765686, -0.08814352005720139, 0.2295030951499939, -0.300024151802063, 0.22087180614471436, -0.11309172213077545, 0.25427180528640747, 0.4631985127925873, 0.03693421930074692, -0.0626082718372345, 0.11106541752815247, 0.24314860999584198, -0.2700335383415222, -0.25125277042388916, -0.08247169852256775, 0.007723554968833923, -0.23794560134410858, 0.014110080897808075, 0.019469866529107094, -0.13021042943000793, -0.048075903207063675, -0.08386904001235962, -0.21389582753181458, -0.2864218056201935, -0.10923673212528229, -0.1263437718153, 0.20728546380996704, 0.05996014550328255, 0.00734248012304306, -0.15046444535255432, -0.12127726525068283, 0.23320043087005615, 0.18520131707191467, -0.07039167732000351, -0.14532971382141113, -0.3716788589954376, -0.10240134596824646, 0.03653552383184433, 0.20548033714294434, 0.2864384353160858, 0.5274891257286072, 0.1448143571615219, -0.5239361524581909, -0.12533514201641083, -0.09287206828594208, 0.2265194207429886, -0.3729906380176544, 0.34506481885910034, 0.15355119109153748, -0.144622802734375, -0.1469278335571289, -0.10371892154216766, -0.0591670498251915, -0.09895256161689758, 0.4049947261810303, 0.200486421585083, -0.3043409287929535, -0.0065855178982019424, 0.5640462636947632, 0.3197783827781677, -0.13766145706176758, -0.23399171233177185, -0.4166043698787689, -0.13147304952144623, -0.2011798918247223, 0.07485266774892807, -0.07711070030927658, 0.22431756556034088, 0.05596253275871277, -0.08273345232009888, -0.21744191646575928, -0.02764996327459812, 0.2253051996231079, 0.2396891862154007, 0.21425819396972656, 0.10203834623098373, 0.5871538519859314, 0.012653032317757607, 0.11545276641845703, 0.23397640883922577, 0.5784367918968201, -0.19949378073215485, -0.27283963561058044, 0.0010130535811185837, -0.06089312583208084, -0.016083084046840668, 0.06616554409265518, -0.11680331081151962, -0.021136611700057983, 0.2652045786380768, -0.022508054971694946, -0.16087710857391357, -0.22663994133472443, 0.0576711967587471, 0.21640348434448242, -0.35720187425613403, -0.26124125719070435, -0.05052586644887924, -0.11084797978401184, -0.03076624497771263, 0.5282765626907349, 0.12782159447669983, -0.10898295789957047, 0.154016375541687, 0.15953388810157776, 0.6838839650154114, 0.22390921413898468, -0.07439881563186646, 0.22403869032859802, -0.27596378326416016, -0.1593940109014511, 0.3480636477470398, 0.055578749626874924, -0.4502966105937958, -0.46462199091911316, 0.10320308804512024, -0.23230403661727905, 0.13676288723945618, -0.43487548828125, 0.005684208124876022, 0.13144563138484955, -0.00445479154586792, 0.2994242012500763, -0.037437088787555695, 0.02040485292673111, -0.25121381878852844, -0.10339689254760742, -0.10512003302574158, 0.20358030498027802, 0.027814295142889023, 0.03653135895729065, -0.08111975342035294, 0.022387024015188217, 0.07071562111377716, -0.1196889728307724, -0.2227441370487213, 0.1630641520023346, 0.0411035381257534, 0.24493923783302307, 0.3956477642059326, 0.10907517373561859, -0.22630108892917633, 0.005262020975351334, 0.44108790159225464, 0.15091510117053986, -0.15055949985980988, -0.017336826771497726, 0.10825232416391373, 0.3001057207584381, 0.14515025913715363, -0.2610457241535187, 0.4518338143825531, -0.010774359107017517, -0.14486002922058105, -0.029246248304843903, 0.05466196686029434, -0.3356930613517761, 0.28121402859687805, -0.21722348034381866, -0.020129099488258362, -0.41371557116508484, -0.09272913634777069, 0.003994747996330261, 0.1986875683069229, -0.318398118019104, 0.20778168737888336, 0.25222623348236084, -0.1937427818775177, 0.18209078907966614, -0.04619422182440758, -0.4252878427505493, -0.07746165990829468, 0.48640769720077515, 0.05128592252731323, -0.16063956916332245, 0.3474636375904083, -0.07809781283140182, -0.14808186888694763, -0.19974616169929504, 0.01412239670753479, -0.12872521579265594, -0.3377084732055664, 0.07584147155284882, -0.17165955901145935, 0.21853603422641754, 0.014197907410562038, 0.25998157262802124, 0.2655850648880005, -0.023237444460392, 0.06411752104759216, -0.53829425573349, -0.17074622213840485, 0.11057762801647186, 0.1515725553035736, 0.37769225239753723, -0.37693750858306885, -0.037582967430353165, -0.23812130093574524, -0.1655329316854477, -0.3819057047367096, -0.10696477442979813, -0.268791526556015, -0.003420919179916382, -0.11024312674999237, 0.05954659357666969, 0.1909659057855606, -0.06767983734607697, 0.23988547921180725, -0.024393968284130096, -0.2198338657617569, -0.19698166847229004, -0.2761543393135071, 0.0886693224310875, -0.09307301789522171, -0.01918816938996315, 0.05934308096766472, -0.0432237908244133, -0.08719664812088013, -0.18292146921157837, 0.14686265587806702, 0.29751428961753845, -0.07357005774974823, 0.09681109338998795, 0.1302872747182846, -0.09695977717638016, -0.022608257830142975, -0.003413889557123184, -0.28060346841812134, -0.27399981021881104, 0.11080601066350937, 0.11745096743106842, -0.36799803376197815, 0.07052163779735565, 0.4564502239227295, 0.15636157989501953, -0.10128337144851685, -0.04609899967908859, 0.3590339124202728, -0.12290783226490021, -0.2883680760860443, 0.4908956289291382, 0.27594995498657227, 0.3331809937953949, -0.3108537197113037, -0.07003926485776901, -0.005674848333001137, 0.3391745388507843, -0.2674175798892975, 0.11118672788143158, 0.21361273527145386, -0.12344152480363846, 0.06189911440014839, 0.19507887959480286, -0.029856542125344276, -0.3066757321357727, 0.4951625466346741, 0.12133318930864334, 0.17091290652751923, -0.3261246681213379, 0.19003519415855408, 0.28926408290863037, -0.08307872712612152, -0.2520151734352112, 0.21584685146808624, -0.26428908109664917, 0.18738724291324615, 0.021465256810188293, 0.07219067215919495, 0.4156484007835388, -0.3092454969882965, 0.24658185243606567, -0.251274049282074, -0.2438567578792572, 0.3928709924221039, 0.27279937267303467, -0.07645617425441742, -0.05716449022293091, 0.13643266260623932, 0.2691204845905304, -0.04588288813829422, 0.2258920967578888, -0.580162525177002, -0.11373260617256165, -0.04650874435901642, -0.1383698731660843, -0.20982803404331207, -0.35658499598503113, 0.050814613699913025, 0.20383885502815247, 0.05702521651983261, 0.18605296313762665, 0.41312065720558167, 0.0887017548084259, -0.1763894408941269, -0.5158361792564392, -0.04307477921247482, 0.22971904277801514, 0.10043176263570786, -0.28209686279296875, 0.07360485941171646, 0.410944402217865, -0.12237970530986786, 0.0030612871050834656, 0.46742576360702515, 0.413286954164505, 0.2687174379825592, 0.19000621140003204, -0.1325172632932663, 0.03342432156205177, 0.09420688450336456, -0.23517686128616333, 0.7826801538467407, -0.18733054399490356, -0.0706423670053482, 0.30082523822784424, 0.2391851246356964, -0.22740773856639862, 0.029153384268283844, -0.22521041333675385, -0.23146237432956696, -0.17505604028701782, 0.4191073477268219, -0.02955038845539093, 0.23915690183639526, -0.046415820717811584, 0.23300915956497192, -0.21934276819229126, -0.32149410247802734, 0.35047388076782227, 0.007885759696364403, 0.14991068840026855, 0.08693203330039978, 0.11714169383049011, -0.09667912125587463, 0.32182440161705017, 0.128220796585083, -0.14376139640808105, -0.14840202033519745, -0.257306843996048, -0.6486017107963562, 0.24645093083381653, 0.05458866059780121, -0.0012429691851139069, 0.08087889105081558, 0.27812039852142334, -0.08203911036252975, 0.11903107166290283, 0.1718376725912094, -0.025768695399165154, -0.16076818108558655, -0.04270477592945099, -0.20795245468616486, 0.004009578377008438, 0.04901237040758133, -0.2514982223510742, -0.044542744755744934, -0.3726629316806793, 0.10163060575723648, 0.09170496463775635, 0.1682257056236267, 0.04599010944366455, -0.08919656276702881, 0.0074409618973731995, 0.16780352592468262, 0.2601189613342285, 0.24128040671348572, 0.5270306468009949, -0.07397317886352539, -0.108849436044693, -0.14833812415599823, -0.3385455012321472, -0.048809729516506195, 0.3255714774131775, -0.038650546222925186, 0.3745357096195221, 0.08269324898719788, -0.08890053629875183, -0.10893914103507996, 0.3895132541656494, 0.11410069465637207, -0.4120946228504181, -0.3098467290401459, 0.20933286845684052, -0.21590524911880493, 0.19409561157226562, -0.23163031041622162, 0.05341672524809837, 0.16212618350982666, 0.361308753490448, -0.06142766773700714, -0.3341143727302551, 0.46475037932395935, -0.1813894361257553, -0.1756453663110733, -0.19221916794776917, 0.44818437099456787, -0.25581875443458557, -0.25296711921691895, -0.7822976112365723, 0.13658693432807922, 0.3473396599292755, 0.10697470605373383, -0.1717979609966278, 0.3788102865219116, -0.15936928987503052, 0.3337376117706299, 0.0037271976470947266, 0.26363664865493774, 0.027954118326306343, -0.20655573904514313, 0.04355206713080406, -0.021566953510046005 ]
https://github.com/huggingface/datasets/issues/4003
ASSIN2 dataset checksum bug
Right indeed ! Let me open a PR to fix this. The dataset_infos.json file that stores some metadata about the dataset to download (and is used to verify it was correctly downloaded) hasn't been updated correctly
## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1
36
ASSIN2 dataset checksum bug ## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1 Right indeed ! Let me open a PR to fix this. The dataset_infos.json file that stores some metadata about the dataset to download (and is used to verify it was correctly downloaded) hasn't been updated correctly
[ -0.16043469309806824, 0.13614869117736816, -0.04458185285329819, 0.34855663776397705, 0.12330152094364166, 0.14757734537124634, 0.23576845228672028, 0.3987540006637573, 0.2274777591228485, 0.1705751121044159, -0.08641508221626282, -0.04827161878347397, 0.15661078691482544, -0.006212417036294937, -0.0911366194486618, 0.2126842439174652, -0.0068694353103637695, -0.06879086792469025, -0.3707771897315979, 0.14795473217964172, -0.21566461026668549, 0.14720867574214935, -0.16001570224761963, -0.232186958193779, 0.053712621331214905, 0.35271480679512024, 0.1744881123304367, 0.17002223432064056, -0.11699997633695602, -0.2912389636039734, 0.4999035596847534, 0.009774141013622284, -0.0069916583597660065, 0.29786184430122375, -0.00011023473052773625, 0.11775422096252441, 0.43597930669784546, 0.051225170493125916, -0.36247000098228455, 0.10981528460979462, -0.5854852199554443, -0.13242807984352112, -0.11807603389024734, -0.16451847553253174, 0.046304598450660706, 0.3925803303718567, -0.07090049982070923, -0.2182527333498001, -0.061127811670303345, 0.07550206035375595, 0.24680030345916748, 0.35080093145370483, 0.07517094910144806, -0.026460442692041397, 0.17142769694328308, -0.021326348185539246, -0.13964904844760895, 0.09272050857543945, 0.06215880811214447, -0.012022837996482849, -0.12847211956977844, 0.20802147686481476, -0.28895968198776245, 0.2532753646373749, 0.1393754780292511, 0.05991259217262268, 0.08236921578645706, -0.028807051479816437, 0.09965772926807404, 0.19704675674438477, 0.11561000347137451, -0.34225642681121826, -0.3630943298339844, -0.25713884830474854, -0.02464553341269493, -0.277351438999176, 0.42645570635795593, 0.01862901821732521, -0.0919884443283081, 0.05666755884885788, -0.40000608563423157, 0.372242271900177, -0.026278972625732422, -0.061417341232299805, 0.06924830377101898, 0.05053571239113808, 0.04447392746806145, 0.011117752641439438, 0.012894518673419952, -0.1473572701215744, 0.036818135529756546, -0.13427777588367462, -0.2632746398448944, 0.016211286187171936, -0.4780634045600891, -0.10282880067825317, 0.04790002107620239, 0.37453389167785645, 0.4013577699661255, 0.3890807032585144, -0.118619903922081, 0.07249781489372253, 0.007039646618068218, 0.10274107754230499, 0.02496926859021187, 0.08113637566566467, 0.10481713712215424, 0.16041505336761475, 0.2983686625957489, 0.26215192675590515, -0.050339847803115845, 0.186015784740448, 0.061170078814029694, -0.2655917704105377, 0.7207058072090149, 0.13100950419902802, 0.2885502576828003, -0.5591681599617004, -0.3844878673553467, 0.3097098767757416, -0.05268799513578415, -0.06218317896127701, 0.22507919371128082, 0.2973693311214447, -0.24985812604427338, 0.0127507783472538, -0.08192159235477448, -0.08850575238466263, -0.11915796995162964, -0.08039841800928116, -0.2665680944919586, -0.07452690601348877, -0.08687712997198105, 0.14575237035751343, 0.2807624936103821, -0.18961739540100098, 0.32628169655799866, -0.008844554424285889, 0.38697582483291626, -0.028264706954360008, 0.3564755618572235, -0.07900406420230865, 0.016395345330238342, 0.3935372829437256, -0.11411142349243164, 0.12303344160318375, 0.0857287049293518, 0.012732364237308502, -0.09579242020845413, -0.021552912890911102, -0.20868873596191406, -0.20592959225177765, -0.12239524722099304, 0.2785402536392212, -0.4135289192199707, -0.13171689212322235, -0.03289095312356949, -0.4809674620628357, 0.3279176652431488, -0.3114384114742279, 0.05695579573512077, -0.27463918924331665, -0.39033108949661255, -0.14210909605026245, 0.2923666536808014, 0.25935208797454834, 0.1939791440963745, 0.024242714047431946, 0.0022977725602686405, -0.0931624323129654, 0.06310169398784637, 0.18811294436454773, -0.00679094297811389, -0.11268431693315506, -0.3210263252258301, -0.06620899587869644, -0.059514112770557404, -0.31992775201797485, -0.5529394149780273, -0.09000801295042038, 0.10857172310352325, 0.45544174313545227, 0.18893927335739136, 0.11304895579814911, -0.00981283187866211, -0.15953318774700165, 0.36414477229118347, 0.19685383141040802, -0.010492345318198204, 0.08732587099075317, -0.2553120255470276, -0.267734169960022, 0.24188748002052307, 0.13089224696159363, 0.05806181952357292, -0.03527217358350754, 0.0979253277182579, -0.22591504454612732, 0.2521161437034607, -0.058268073946237564, -0.08015958219766617, 0.023351289331912994, 0.3837167024612427, -0.012340560555458069, 0.08008179813623428, -0.29858461022377014, -0.46413660049438477, 0.3735250234603882, -0.025608008727431297, 0.01808537170290947, -0.14146898686885834, -0.12402957677841187, -0.34082353115081787, -0.11147165298461914, -0.15261690318584442, 0.00878649577498436, 0.15330128371715546, 0.34254521131515503, 0.22040390968322754, -0.1123572587966919, -0.10313771665096283, 0.3838712275028229, -0.3459358513355255, 0.07074049860239029, -0.4630640745162964, 0.252187043428421, 0.05697710067033768, -0.08426553010940552, 0.026458628475666046, 0.16876108944416046, 0.11144726723432541, 0.059356220066547394, -0.13123944401741028, 0.4714233875274658, 0.3456690013408661, -0.04785968363285065, -0.054400451481342316, 0.45631253719329834, 0.02546059899032116, -0.17398078739643097, -0.11285539716482162, 0.267191618680954, 0.18243609368801117, -0.004904832690954208, -0.11043467372655869, 0.4683769941329956, -0.1761026531457901, 0.1636897623538971, 0.04060567170381546, -0.04064854979515076, 0.24238023161888123, -0.18251220881938934, -0.2581920921802521, -0.33065953850746155, 0.04563991352915764, -0.011607509106397629, -0.11895440518856049, 0.1020653024315834, -0.015689358115196228, 0.037580519914627075, 0.3149496018886566, -0.0006601493805646896, -0.04459957033395767, -0.0007366091012954712, 0.06036030501127243, 0.005064573138952255, 0.020878147333860397, 0.4157186448574066, 0.417194128036499, 0.17978285253047943, 0.030141394585371017, 0.09130848944187164, -0.20932184159755707, 0.03791526332497597, 0.1532784104347229, -0.044530995190143585, 0.09277307987213135, 0.4124937653541565, 0.19118282198905945, 0.0012364992871880531, -0.1826702356338501, -0.23761969804763794, -0.10154463350772858, 0.22129105031490326, -0.4639391601085663, -0.10524997860193253, -0.15238894522190094, -0.1491224765777588, -0.3535281717777252, -0.26894453167915344, -0.1569860875606537, -0.294127881526947, -0.11240828037261963, 0.4061495363712311, -0.18887543678283691, 0.20598798990249634, -0.6534873247146606, -0.015128672122955322, 0.11081328988075256, -0.11993039399385452, 0.12660427391529083, 0.17349644005298615, 0.10921856015920639, 0.02259764075279236, 0.5444901585578918, 0.051893431693315506, 0.4860110282897949, -0.30056002736091614, -0.09451611340045929, -0.3559528589248657, -0.3856131434440613, 0.09277771413326263, -0.021894704550504684, 0.24261339008808136, 0.31262490153312683, 0.05473974347114563, 0.08758915960788727, -0.3918153941631317, 0.24740344285964966, -0.0070160795003175735, -0.42441970109939575, 0.2736136019229889, -0.11033947765827179, -0.011163300834596157, 0.05363411828875542, -0.2144118845462799, 0.0978810042142868, -0.18404904007911682, -0.14220941066741943, 0.1190701574087143, 0.05528702959418297, 0.3201071321964264, -0.15239666402339935, 0.254085898399353, 0.02367899753153324, 0.48682308197021484, -0.2360309511423111, -0.5782948136329651, 0.38530105352401733, -0.00479355501011014, -0.22660399973392487, -0.09703902900218964, -0.07828345894813538, 0.05326606705784798, 0.15448856353759766, -0.35131752490997314, -0.45408543944358826, -0.3249568045139313, 0.12285852432250977, 0.10714390873908997, -0.091236911714077, 0.10045818239450455, 0.07233522832393646, -0.09731581807136536, -0.18502631783485413, -0.5065735578536987, 0.1478314995765686, -0.08814352005720139, 0.2295030951499939, -0.300024151802063, 0.22087180614471436, -0.11309172213077545, 0.25427180528640747, 0.4631985127925873, 0.03693421930074692, -0.0626082718372345, 0.11106541752815247, 0.24314860999584198, -0.2700335383415222, -0.25125277042388916, -0.08247169852256775, 0.007723554968833923, -0.23794560134410858, 0.014110080897808075, 0.019469866529107094, -0.13021042943000793, -0.048075903207063675, -0.08386904001235962, -0.21389582753181458, -0.2864218056201935, -0.10923673212528229, -0.1263437718153, 0.20728546380996704, 0.05996014550328255, 0.00734248012304306, -0.15046444535255432, -0.12127726525068283, 0.23320043087005615, 0.18520131707191467, -0.07039167732000351, -0.14532971382141113, -0.3716788589954376, -0.10240134596824646, 0.03653552383184433, 0.20548033714294434, 0.2864384353160858, 0.5274891257286072, 0.1448143571615219, -0.5239361524581909, -0.12533514201641083, -0.09287206828594208, 0.2265194207429886, -0.3729906380176544, 0.34506481885910034, 0.15355119109153748, -0.144622802734375, -0.1469278335571289, -0.10371892154216766, -0.0591670498251915, -0.09895256161689758, 0.4049947261810303, 0.200486421585083, -0.3043409287929535, -0.0065855178982019424, 0.5640462636947632, 0.3197783827781677, -0.13766145706176758, -0.23399171233177185, -0.4166043698787689, -0.13147304952144623, -0.2011798918247223, 0.07485266774892807, -0.07711070030927658, 0.22431756556034088, 0.05596253275871277, -0.08273345232009888, -0.21744191646575928, -0.02764996327459812, 0.2253051996231079, 0.2396891862154007, 0.21425819396972656, 0.10203834623098373, 0.5871538519859314, 0.012653032317757607, 0.11545276641845703, 0.23397640883922577, 0.5784367918968201, -0.19949378073215485, -0.27283963561058044, 0.0010130535811185837, -0.06089312583208084, -0.016083084046840668, 0.06616554409265518, -0.11680331081151962, -0.021136611700057983, 0.2652045786380768, -0.022508054971694946, -0.16087710857391357, -0.22663994133472443, 0.0576711967587471, 0.21640348434448242, -0.35720187425613403, -0.26124125719070435, -0.05052586644887924, -0.11084797978401184, -0.03076624497771263, 0.5282765626907349, 0.12782159447669983, -0.10898295789957047, 0.154016375541687, 0.15953388810157776, 0.6838839650154114, 0.22390921413898468, -0.07439881563186646, 0.22403869032859802, -0.27596378326416016, -0.1593940109014511, 0.3480636477470398, 0.055578749626874924, -0.4502966105937958, -0.46462199091911316, 0.10320308804512024, -0.23230403661727905, 0.13676288723945618, -0.43487548828125, 0.005684208124876022, 0.13144563138484955, -0.00445479154586792, 0.2994242012500763, -0.037437088787555695, 0.02040485292673111, -0.25121381878852844, -0.10339689254760742, -0.10512003302574158, 0.20358030498027802, 0.027814295142889023, 0.03653135895729065, -0.08111975342035294, 0.022387024015188217, 0.07071562111377716, -0.1196889728307724, -0.2227441370487213, 0.1630641520023346, 0.0411035381257534, 0.24493923783302307, 0.3956477642059326, 0.10907517373561859, -0.22630108892917633, 0.005262020975351334, 0.44108790159225464, 0.15091510117053986, -0.15055949985980988, -0.017336826771497726, 0.10825232416391373, 0.3001057207584381, 0.14515025913715363, -0.2610457241535187, 0.4518338143825531, -0.010774359107017517, -0.14486002922058105, -0.029246248304843903, 0.05466196686029434, -0.3356930613517761, 0.28121402859687805, -0.21722348034381866, -0.020129099488258362, -0.41371557116508484, -0.09272913634777069, 0.003994747996330261, 0.1986875683069229, -0.318398118019104, 0.20778168737888336, 0.25222623348236084, -0.1937427818775177, 0.18209078907966614, -0.04619422182440758, -0.4252878427505493, -0.07746165990829468, 0.48640769720077515, 0.05128592252731323, -0.16063956916332245, 0.3474636375904083, -0.07809781283140182, -0.14808186888694763, -0.19974616169929504, 0.01412239670753479, -0.12872521579265594, -0.3377084732055664, 0.07584147155284882, -0.17165955901145935, 0.21853603422641754, 0.014197907410562038, 0.25998157262802124, 0.2655850648880005, -0.023237444460392, 0.06411752104759216, -0.53829425573349, -0.17074622213840485, 0.11057762801647186, 0.1515725553035736, 0.37769225239753723, -0.37693750858306885, -0.037582967430353165, -0.23812130093574524, -0.1655329316854477, -0.3819057047367096, -0.10696477442979813, -0.268791526556015, -0.003420919179916382, -0.11024312674999237, 0.05954659357666969, 0.1909659057855606, -0.06767983734607697, 0.23988547921180725, -0.024393968284130096, -0.2198338657617569, -0.19698166847229004, -0.2761543393135071, 0.0886693224310875, -0.09307301789522171, -0.01918816938996315, 0.05934308096766472, -0.0432237908244133, -0.08719664812088013, -0.18292146921157837, 0.14686265587806702, 0.29751428961753845, -0.07357005774974823, 0.09681109338998795, 0.1302872747182846, -0.09695977717638016, -0.022608257830142975, -0.003413889557123184, -0.28060346841812134, -0.27399981021881104, 0.11080601066350937, 0.11745096743106842, -0.36799803376197815, 0.07052163779735565, 0.4564502239227295, 0.15636157989501953, -0.10128337144851685, -0.04609899967908859, 0.3590339124202728, -0.12290783226490021, -0.2883680760860443, 0.4908956289291382, 0.27594995498657227, 0.3331809937953949, -0.3108537197113037, -0.07003926485776901, -0.005674848333001137, 0.3391745388507843, -0.2674175798892975, 0.11118672788143158, 0.21361273527145386, -0.12344152480363846, 0.06189911440014839, 0.19507887959480286, -0.029856542125344276, -0.3066757321357727, 0.4951625466346741, 0.12133318930864334, 0.17091290652751923, -0.3261246681213379, 0.19003519415855408, 0.28926408290863037, -0.08307872712612152, -0.2520151734352112, 0.21584685146808624, -0.26428908109664917, 0.18738724291324615, 0.021465256810188293, 0.07219067215919495, 0.4156484007835388, -0.3092454969882965, 0.24658185243606567, -0.251274049282074, -0.2438567578792572, 0.3928709924221039, 0.27279937267303467, -0.07645617425441742, -0.05716449022293091, 0.13643266260623932, 0.2691204845905304, -0.04588288813829422, 0.2258920967578888, -0.580162525177002, -0.11373260617256165, -0.04650874435901642, -0.1383698731660843, -0.20982803404331207, -0.35658499598503113, 0.050814613699913025, 0.20383885502815247, 0.05702521651983261, 0.18605296313762665, 0.41312065720558167, 0.0887017548084259, -0.1763894408941269, -0.5158361792564392, -0.04307477921247482, 0.22971904277801514, 0.10043176263570786, -0.28209686279296875, 0.07360485941171646, 0.410944402217865, -0.12237970530986786, 0.0030612871050834656, 0.46742576360702515, 0.413286954164505, 0.2687174379825592, 0.19000621140003204, -0.1325172632932663, 0.03342432156205177, 0.09420688450336456, -0.23517686128616333, 0.7826801538467407, -0.18733054399490356, -0.0706423670053482, 0.30082523822784424, 0.2391851246356964, -0.22740773856639862, 0.029153384268283844, -0.22521041333675385, -0.23146237432956696, -0.17505604028701782, 0.4191073477268219, -0.02955038845539093, 0.23915690183639526, -0.046415820717811584, 0.23300915956497192, -0.21934276819229126, -0.32149410247802734, 0.35047388076782227, 0.007885759696364403, 0.14991068840026855, 0.08693203330039978, 0.11714169383049011, -0.09667912125587463, 0.32182440161705017, 0.128220796585083, -0.14376139640808105, -0.14840202033519745, -0.257306843996048, -0.6486017107963562, 0.24645093083381653, 0.05458866059780121, -0.0012429691851139069, 0.08087889105081558, 0.27812039852142334, -0.08203911036252975, 0.11903107166290283, 0.1718376725912094, -0.025768695399165154, -0.16076818108558655, -0.04270477592945099, -0.20795245468616486, 0.004009578377008438, 0.04901237040758133, -0.2514982223510742, -0.044542744755744934, -0.3726629316806793, 0.10163060575723648, 0.09170496463775635, 0.1682257056236267, 0.04599010944366455, -0.08919656276702881, 0.0074409618973731995, 0.16780352592468262, 0.2601189613342285, 0.24128040671348572, 0.5270306468009949, -0.07397317886352539, -0.108849436044693, -0.14833812415599823, -0.3385455012321472, -0.048809729516506195, 0.3255714774131775, -0.038650546222925186, 0.3745357096195221, 0.08269324898719788, -0.08890053629875183, -0.10893914103507996, 0.3895132541656494, 0.11410069465637207, -0.4120946228504181, -0.3098467290401459, 0.20933286845684052, -0.21590524911880493, 0.19409561157226562, -0.23163031041622162, 0.05341672524809837, 0.16212618350982666, 0.361308753490448, -0.06142766773700714, -0.3341143727302551, 0.46475037932395935, -0.1813894361257553, -0.1756453663110733, -0.19221916794776917, 0.44818437099456787, -0.25581875443458557, -0.25296711921691895, -0.7822976112365723, 0.13658693432807922, 0.3473396599292755, 0.10697470605373383, -0.1717979609966278, 0.3788102865219116, -0.15936928987503052, 0.3337376117706299, 0.0037271976470947266, 0.26363664865493774, 0.027954118326306343, -0.20655573904514313, 0.04355206713080406, -0.021566953510046005 ]
https://github.com/huggingface/datasets/issues/4003
ASSIN2 dataset checksum bug
Not sure what the status of this is, but personally I am still getting this error, with glue.
## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1
18
ASSIN2 dataset checksum bug ## Describe the bug Checksum error after trying to load the [ASSIN 2 dataset](https://huggingface.co/datasets/assin2). `NonMatchingChecksumError` triggered by calling `load_dataset("assin2")`. Similar to #3952 , #3942 , #3941 , etc. ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-13-c664a92ad5e7>](https://localhost:8080/#) in <module>() ----> 1 load_dataset('assin2') 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://drive.google.com/u/0/uc?id=1Q9j1a83CuKzsHCGaNulSkNxBm7Dkn7Ln&export=download'] ``` ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("assin2") ``` ## Expected results Load the dataset. ## Actual results The dataset won't load. ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Google Colab - Python version: 3.7.12 - PyArrow version: 6.0.1 Not sure what the status of this is, but personally I am still getting this error, with glue.
[ -0.16043469309806824, 0.13614869117736816, -0.04458185285329819, 0.34855663776397705, 0.12330152094364166, 0.14757734537124634, 0.23576845228672028, 0.3987540006637573, 0.2274777591228485, 0.1705751121044159, -0.08641508221626282, -0.04827161878347397, 0.15661078691482544, -0.006212417036294937, -0.0911366194486618, 0.2126842439174652, -0.0068694353103637695, -0.06879086792469025, -0.3707771897315979, 0.14795473217964172, -0.21566461026668549, 0.14720867574214935, -0.16001570224761963, -0.232186958193779, 0.053712621331214905, 0.35271480679512024, 0.1744881123304367, 0.17002223432064056, -0.11699997633695602, -0.2912389636039734, 0.4999035596847534, 0.009774141013622284, -0.0069916583597660065, 0.29786184430122375, -0.00011023473052773625, 0.11775422096252441, 0.43597930669784546, 0.051225170493125916, -0.36247000098228455, 0.10981528460979462, -0.5854852199554443, -0.13242807984352112, -0.11807603389024734, -0.16451847553253174, 0.046304598450660706, 0.3925803303718567, -0.07090049982070923, -0.2182527333498001, -0.061127811670303345, 0.07550206035375595, 0.24680030345916748, 0.35080093145370483, 0.07517094910144806, -0.026460442692041397, 0.17142769694328308, -0.021326348185539246, -0.13964904844760895, 0.09272050857543945, 0.06215880811214447, -0.012022837996482849, -0.12847211956977844, 0.20802147686481476, -0.28895968198776245, 0.2532753646373749, 0.1393754780292511, 0.05991259217262268, 0.08236921578645706, -0.028807051479816437, 0.09965772926807404, 0.19704675674438477, 0.11561000347137451, -0.34225642681121826, -0.3630943298339844, -0.25713884830474854, -0.02464553341269493, -0.277351438999176, 0.42645570635795593, 0.01862901821732521, -0.0919884443283081, 0.05666755884885788, -0.40000608563423157, 0.372242271900177, -0.026278972625732422, -0.061417341232299805, 0.06924830377101898, 0.05053571239113808, 0.04447392746806145, 0.011117752641439438, 0.012894518673419952, -0.1473572701215744, 0.036818135529756546, -0.13427777588367462, -0.2632746398448944, 0.016211286187171936, -0.4780634045600891, -0.10282880067825317, 0.04790002107620239, 0.37453389167785645, 0.4013577699661255, 0.3890807032585144, -0.118619903922081, 0.07249781489372253, 0.007039646618068218, 0.10274107754230499, 0.02496926859021187, 0.08113637566566467, 0.10481713712215424, 0.16041505336761475, 0.2983686625957489, 0.26215192675590515, -0.050339847803115845, 0.186015784740448, 0.061170078814029694, -0.2655917704105377, 0.7207058072090149, 0.13100950419902802, 0.2885502576828003, -0.5591681599617004, -0.3844878673553467, 0.3097098767757416, -0.05268799513578415, -0.06218317896127701, 0.22507919371128082, 0.2973693311214447, -0.24985812604427338, 0.0127507783472538, -0.08192159235477448, -0.08850575238466263, -0.11915796995162964, -0.08039841800928116, -0.2665680944919586, -0.07452690601348877, -0.08687712997198105, 0.14575237035751343, 0.2807624936103821, -0.18961739540100098, 0.32628169655799866, -0.008844554424285889, 0.38697582483291626, -0.028264706954360008, 0.3564755618572235, -0.07900406420230865, 0.016395345330238342, 0.3935372829437256, -0.11411142349243164, 0.12303344160318375, 0.0857287049293518, 0.012732364237308502, -0.09579242020845413, -0.021552912890911102, -0.20868873596191406, -0.20592959225177765, -0.12239524722099304, 0.2785402536392212, -0.4135289192199707, -0.13171689212322235, -0.03289095312356949, -0.4809674620628357, 0.3279176652431488, -0.3114384114742279, 0.05695579573512077, -0.27463918924331665, -0.39033108949661255, -0.14210909605026245, 0.2923666536808014, 0.25935208797454834, 0.1939791440963745, 0.024242714047431946, 0.0022977725602686405, -0.0931624323129654, 0.06310169398784637, 0.18811294436454773, -0.00679094297811389, -0.11268431693315506, -0.3210263252258301, -0.06620899587869644, -0.059514112770557404, -0.31992775201797485, -0.5529394149780273, -0.09000801295042038, 0.10857172310352325, 0.45544174313545227, 0.18893927335739136, 0.11304895579814911, -0.00981283187866211, -0.15953318774700165, 0.36414477229118347, 0.19685383141040802, -0.010492345318198204, 0.08732587099075317, -0.2553120255470276, -0.267734169960022, 0.24188748002052307, 0.13089224696159363, 0.05806181952357292, -0.03527217358350754, 0.0979253277182579, -0.22591504454612732, 0.2521161437034607, -0.058268073946237564, -0.08015958219766617, 0.023351289331912994, 0.3837167024612427, -0.012340560555458069, 0.08008179813623428, -0.29858461022377014, -0.46413660049438477, 0.3735250234603882, -0.025608008727431297, 0.01808537170290947, -0.14146898686885834, -0.12402957677841187, -0.34082353115081787, -0.11147165298461914, -0.15261690318584442, 0.00878649577498436, 0.15330128371715546, 0.34254521131515503, 0.22040390968322754, -0.1123572587966919, -0.10313771665096283, 0.3838712275028229, -0.3459358513355255, 0.07074049860239029, -0.4630640745162964, 0.252187043428421, 0.05697710067033768, -0.08426553010940552, 0.026458628475666046, 0.16876108944416046, 0.11144726723432541, 0.059356220066547394, -0.13123944401741028, 0.4714233875274658, 0.3456690013408661, -0.04785968363285065, -0.054400451481342316, 0.45631253719329834, 0.02546059899032116, -0.17398078739643097, -0.11285539716482162, 0.267191618680954, 0.18243609368801117, -0.004904832690954208, -0.11043467372655869, 0.4683769941329956, -0.1761026531457901, 0.1636897623538971, 0.04060567170381546, -0.04064854979515076, 0.24238023161888123, -0.18251220881938934, -0.2581920921802521, -0.33065953850746155, 0.04563991352915764, -0.011607509106397629, -0.11895440518856049, 0.1020653024315834, -0.015689358115196228, 0.037580519914627075, 0.3149496018886566, -0.0006601493805646896, -0.04459957033395767, -0.0007366091012954712, 0.06036030501127243, 0.005064573138952255, 0.020878147333860397, 0.4157186448574066, 0.417194128036499, 0.17978285253047943, 0.030141394585371017, 0.09130848944187164, -0.20932184159755707, 0.03791526332497597, 0.1532784104347229, -0.044530995190143585, 0.09277307987213135, 0.4124937653541565, 0.19118282198905945, 0.0012364992871880531, -0.1826702356338501, -0.23761969804763794, -0.10154463350772858, 0.22129105031490326, -0.4639391601085663, -0.10524997860193253, -0.15238894522190094, -0.1491224765777588, -0.3535281717777252, -0.26894453167915344, -0.1569860875606537, -0.294127881526947, -0.11240828037261963, 0.4061495363712311, -0.18887543678283691, 0.20598798990249634, -0.6534873247146606, -0.015128672122955322, 0.11081328988075256, -0.11993039399385452, 0.12660427391529083, 0.17349644005298615, 0.10921856015920639, 0.02259764075279236, 0.5444901585578918, 0.051893431693315506, 0.4860110282897949, -0.30056002736091614, -0.09451611340045929, -0.3559528589248657, -0.3856131434440613, 0.09277771413326263, -0.021894704550504684, 0.24261339008808136, 0.31262490153312683, 0.05473974347114563, 0.08758915960788727, -0.3918153941631317, 0.24740344285964966, -0.0070160795003175735, -0.42441970109939575, 0.2736136019229889, -0.11033947765827179, -0.011163300834596157, 0.05363411828875542, -0.2144118845462799, 0.0978810042142868, -0.18404904007911682, -0.14220941066741943, 0.1190701574087143, 0.05528702959418297, 0.3201071321964264, -0.15239666402339935, 0.254085898399353, 0.02367899753153324, 0.48682308197021484, -0.2360309511423111, -0.5782948136329651, 0.38530105352401733, -0.00479355501011014, -0.22660399973392487, -0.09703902900218964, -0.07828345894813538, 0.05326606705784798, 0.15448856353759766, -0.35131752490997314, -0.45408543944358826, -0.3249568045139313, 0.12285852432250977, 0.10714390873908997, -0.091236911714077, 0.10045818239450455, 0.07233522832393646, -0.09731581807136536, -0.18502631783485413, -0.5065735578536987, 0.1478314995765686, -0.08814352005720139, 0.2295030951499939, -0.300024151802063, 0.22087180614471436, -0.11309172213077545, 0.25427180528640747, 0.4631985127925873, 0.03693421930074692, -0.0626082718372345, 0.11106541752815247, 0.24314860999584198, -0.2700335383415222, -0.25125277042388916, -0.08247169852256775, 0.007723554968833923, -0.23794560134410858, 0.014110080897808075, 0.019469866529107094, -0.13021042943000793, -0.048075903207063675, -0.08386904001235962, -0.21389582753181458, -0.2864218056201935, -0.10923673212528229, -0.1263437718153, 0.20728546380996704, 0.05996014550328255, 0.00734248012304306, -0.15046444535255432, -0.12127726525068283, 0.23320043087005615, 0.18520131707191467, -0.07039167732000351, -0.14532971382141113, -0.3716788589954376, -0.10240134596824646, 0.03653552383184433, 0.20548033714294434, 0.2864384353160858, 0.5274891257286072, 0.1448143571615219, -0.5239361524581909, -0.12533514201641083, -0.09287206828594208, 0.2265194207429886, -0.3729906380176544, 0.34506481885910034, 0.15355119109153748, -0.144622802734375, -0.1469278335571289, -0.10371892154216766, -0.0591670498251915, -0.09895256161689758, 0.4049947261810303, 0.200486421585083, -0.3043409287929535, -0.0065855178982019424, 0.5640462636947632, 0.3197783827781677, -0.13766145706176758, -0.23399171233177185, -0.4166043698787689, -0.13147304952144623, -0.2011798918247223, 0.07485266774892807, -0.07711070030927658, 0.22431756556034088, 0.05596253275871277, -0.08273345232009888, -0.21744191646575928, -0.02764996327459812, 0.2253051996231079, 0.2396891862154007, 0.21425819396972656, 0.10203834623098373, 0.5871538519859314, 0.012653032317757607, 0.11545276641845703, 0.23397640883922577, 0.5784367918968201, -0.19949378073215485, -0.27283963561058044, 0.0010130535811185837, -0.06089312583208084, -0.016083084046840668, 0.06616554409265518, -0.11680331081151962, -0.021136611700057983, 0.2652045786380768, -0.022508054971694946, -0.16087710857391357, -0.22663994133472443, 0.0576711967587471, 0.21640348434448242, -0.35720187425613403, -0.26124125719070435, -0.05052586644887924, -0.11084797978401184, -0.03076624497771263, 0.5282765626907349, 0.12782159447669983, -0.10898295789957047, 0.154016375541687, 0.15953388810157776, 0.6838839650154114, 0.22390921413898468, -0.07439881563186646, 0.22403869032859802, -0.27596378326416016, -0.1593940109014511, 0.3480636477470398, 0.055578749626874924, -0.4502966105937958, -0.46462199091911316, 0.10320308804512024, -0.23230403661727905, 0.13676288723945618, -0.43487548828125, 0.005684208124876022, 0.13144563138484955, -0.00445479154586792, 0.2994242012500763, -0.037437088787555695, 0.02040485292673111, -0.25121381878852844, -0.10339689254760742, -0.10512003302574158, 0.20358030498027802, 0.027814295142889023, 0.03653135895729065, -0.08111975342035294, 0.022387024015188217, 0.07071562111377716, -0.1196889728307724, -0.2227441370487213, 0.1630641520023346, 0.0411035381257534, 0.24493923783302307, 0.3956477642059326, 0.10907517373561859, -0.22630108892917633, 0.005262020975351334, 0.44108790159225464, 0.15091510117053986, -0.15055949985980988, -0.017336826771497726, 0.10825232416391373, 0.3001057207584381, 0.14515025913715363, -0.2610457241535187, 0.4518338143825531, -0.010774359107017517, -0.14486002922058105, -0.029246248304843903, 0.05466196686029434, -0.3356930613517761, 0.28121402859687805, -0.21722348034381866, -0.020129099488258362, -0.41371557116508484, -0.09272913634777069, 0.003994747996330261, 0.1986875683069229, -0.318398118019104, 0.20778168737888336, 0.25222623348236084, -0.1937427818775177, 0.18209078907966614, -0.04619422182440758, -0.4252878427505493, -0.07746165990829468, 0.48640769720077515, 0.05128592252731323, -0.16063956916332245, 0.3474636375904083, -0.07809781283140182, -0.14808186888694763, -0.19974616169929504, 0.01412239670753479, -0.12872521579265594, -0.3377084732055664, 0.07584147155284882, -0.17165955901145935, 0.21853603422641754, 0.014197907410562038, 0.25998157262802124, 0.2655850648880005, -0.023237444460392, 0.06411752104759216, -0.53829425573349, -0.17074622213840485, 0.11057762801647186, 0.1515725553035736, 0.37769225239753723, -0.37693750858306885, -0.037582967430353165, -0.23812130093574524, -0.1655329316854477, -0.3819057047367096, -0.10696477442979813, -0.268791526556015, -0.003420919179916382, -0.11024312674999237, 0.05954659357666969, 0.1909659057855606, -0.06767983734607697, 0.23988547921180725, -0.024393968284130096, -0.2198338657617569, -0.19698166847229004, -0.2761543393135071, 0.0886693224310875, -0.09307301789522171, -0.01918816938996315, 0.05934308096766472, -0.0432237908244133, -0.08719664812088013, -0.18292146921157837, 0.14686265587806702, 0.29751428961753845, -0.07357005774974823, 0.09681109338998795, 0.1302872747182846, -0.09695977717638016, -0.022608257830142975, -0.003413889557123184, -0.28060346841812134, -0.27399981021881104, 0.11080601066350937, 0.11745096743106842, -0.36799803376197815, 0.07052163779735565, 0.4564502239227295, 0.15636157989501953, -0.10128337144851685, -0.04609899967908859, 0.3590339124202728, -0.12290783226490021, -0.2883680760860443, 0.4908956289291382, 0.27594995498657227, 0.3331809937953949, -0.3108537197113037, -0.07003926485776901, -0.005674848333001137, 0.3391745388507843, -0.2674175798892975, 0.11118672788143158, 0.21361273527145386, -0.12344152480363846, 0.06189911440014839, 0.19507887959480286, -0.029856542125344276, -0.3066757321357727, 0.4951625466346741, 0.12133318930864334, 0.17091290652751923, -0.3261246681213379, 0.19003519415855408, 0.28926408290863037, -0.08307872712612152, -0.2520151734352112, 0.21584685146808624, -0.26428908109664917, 0.18738724291324615, 0.021465256810188293, 0.07219067215919495, 0.4156484007835388, -0.3092454969882965, 0.24658185243606567, -0.251274049282074, -0.2438567578792572, 0.3928709924221039, 0.27279937267303467, -0.07645617425441742, -0.05716449022293091, 0.13643266260623932, 0.2691204845905304, -0.04588288813829422, 0.2258920967578888, -0.580162525177002, -0.11373260617256165, -0.04650874435901642, -0.1383698731660843, -0.20982803404331207, -0.35658499598503113, 0.050814613699913025, 0.20383885502815247, 0.05702521651983261, 0.18605296313762665, 0.41312065720558167, 0.0887017548084259, -0.1763894408941269, -0.5158361792564392, -0.04307477921247482, 0.22971904277801514, 0.10043176263570786, -0.28209686279296875, 0.07360485941171646, 0.410944402217865, -0.12237970530986786, 0.0030612871050834656, 0.46742576360702515, 0.413286954164505, 0.2687174379825592, 0.19000621140003204, -0.1325172632932663, 0.03342432156205177, 0.09420688450336456, -0.23517686128616333, 0.7826801538467407, -0.18733054399490356, -0.0706423670053482, 0.30082523822784424, 0.2391851246356964, -0.22740773856639862, 0.029153384268283844, -0.22521041333675385, -0.23146237432956696, -0.17505604028701782, 0.4191073477268219, -0.02955038845539093, 0.23915690183639526, -0.046415820717811584, 0.23300915956497192, -0.21934276819229126, -0.32149410247802734, 0.35047388076782227, 0.007885759696364403, 0.14991068840026855, 0.08693203330039978, 0.11714169383049011, -0.09667912125587463, 0.32182440161705017, 0.128220796585083, -0.14376139640808105, -0.14840202033519745, -0.257306843996048, -0.6486017107963562, 0.24645093083381653, 0.05458866059780121, -0.0012429691851139069, 0.08087889105081558, 0.27812039852142334, -0.08203911036252975, 0.11903107166290283, 0.1718376725912094, -0.025768695399165154, -0.16076818108558655, -0.04270477592945099, -0.20795245468616486, 0.004009578377008438, 0.04901237040758133, -0.2514982223510742, -0.044542744755744934, -0.3726629316806793, 0.10163060575723648, 0.09170496463775635, 0.1682257056236267, 0.04599010944366455, -0.08919656276702881, 0.0074409618973731995, 0.16780352592468262, 0.2601189613342285, 0.24128040671348572, 0.5270306468009949, -0.07397317886352539, -0.108849436044693, -0.14833812415599823, -0.3385455012321472, -0.048809729516506195, 0.3255714774131775, -0.038650546222925186, 0.3745357096195221, 0.08269324898719788, -0.08890053629875183, -0.10893914103507996, 0.3895132541656494, 0.11410069465637207, -0.4120946228504181, -0.3098467290401459, 0.20933286845684052, -0.21590524911880493, 0.19409561157226562, -0.23163031041622162, 0.05341672524809837, 0.16212618350982666, 0.361308753490448, -0.06142766773700714, -0.3341143727302551, 0.46475037932395935, -0.1813894361257553, -0.1756453663110733, -0.19221916794776917, 0.44818437099456787, -0.25581875443458557, -0.25296711921691895, -0.7822976112365723, 0.13658693432807922, 0.3473396599292755, 0.10697470605373383, -0.1717979609966278, 0.3788102865219116, -0.15936928987503052, 0.3337376117706299, 0.0037271976470947266, 0.26363664865493774, 0.027954118326306343, -0.20655573904514313, 0.04355206713080406, -0.021566953510046005 ]
https://github.com/huggingface/datasets/issues/4001
How to use generate this multitask dataset for SQUAD? I am getting a value error.
Hi! Replacing `nlp.<obj>` with `datasets.<obj>` in the script should fix the problem. `nlp` has been renamed to `datasets` more than a year ago, so please use `datasets` instead to avoid weird issues.
## Dataset viewer issue for 'squad_multitask*' **Link:** https://huggingface.co/datasets/vershasaxena91/squad_multitask *short description of the issue* I am trying to generate the multitask dataset for squad dataset. However, gives the error in dataset explorer as well as my local machine. I tried the command: dataset = load_dataset("vershasaxena91/squad_multitask", 'highlight_qg_format') Error: Status code: 400 Exception: TypeError Message: argument of type 'Value' is not iterable Kindly advice.
32
How to use generate this multitask dataset for SQUAD? I am getting a value error. ## Dataset viewer issue for 'squad_multitask*' **Link:** https://huggingface.co/datasets/vershasaxena91/squad_multitask *short description of the issue* I am trying to generate the multitask dataset for squad dataset. However, gives the error in dataset explorer as well as my local machine. I tried the command: dataset = load_dataset("vershasaxena91/squad_multitask", 'highlight_qg_format') Error: Status code: 400 Exception: TypeError Message: argument of type 'Value' is not iterable Kindly advice. Hi! Replacing `nlp.<obj>` with `datasets.<obj>` in the script should fix the problem. `nlp` has been renamed to `datasets` more than a year ago, so please use `datasets` instead to avoid weird issues.
[ -0.29366788268089294, -0.22755146026611328, 0.00014985539019107819, 0.3350783586502075, 0.14657258987426758, 0.08903687447309494, 0.47464367747306824, 0.002676684409379959, 0.009888719767332077, 0.36095356941223145, 0.039585813879966736, 0.7048641443252563, -0.12789209187030792, 0.1743517816066742, -0.11566878855228424, -0.09380218386650085, -0.01347726583480835, -0.03286643326282501, 0.023349162191152573, 0.08341602981090546, -0.3121962547302246, 0.15434451401233673, -0.3828532099723816, 0.10406020283699036, -0.35313326120376587, -0.24050652980804443, -0.04412611573934555, 0.07928311824798584, -0.12912659347057343, -0.3544315993785858, 0.25729453563690186, 0.02774697169661522, 0.3563975691795349, 0.4186546802520752, -0.00012728385627269745, 0.011405110359191895, 0.20515702664852142, -0.1362215280532837, -0.09895424544811249, -0.19251413643360138, 0.08184000104665756, 0.022090954706072807, 0.029871033504605293, -0.4495931565761566, -0.09789703041315079, 0.1740197241306305, 0.09775551408529282, -0.5448476672172546, 0.23042133450508118, 0.25552111864089966, 0.026098018512129784, 0.2240268588066101, 0.12344010174274445, -0.16720254719257355, -0.14373308420181274, 0.06108415126800537, -0.1212652325630188, 0.2166045755147934, 0.29362010955810547, 0.1360032856464386, 0.17893323302268982, 0.08475777506828308, 0.024300413206219673, 0.11560507118701935, 0.2185293734073639, 0.13061721622943878, -0.014264509081840515, -0.49829134345054626, 0.3138881325721741, 0.18281275033950806, 0.48443982005119324, -0.20059648156166077, -0.12403925508260727, 0.1479620635509491, 0.15595875680446625, 0.16504287719726562, 0.2602621018886566, 0.4030720293521881, -0.07595063745975494, 0.08752650022506714, 0.03868188336491585, -0.08032400161027908, -0.4292612671852112, 0.042136870324611664, 0.28530487418174744, 0.02644309401512146, -0.08503173291683197, 0.3676700294017792, 0.16511830687522888, -0.07696923613548279, 0.1199316456913948, -0.09768112003803253, 0.12727147340774536, 0.2399509996175766, -0.5925098657608032, -0.13193261623382568, -0.14094534516334534, -0.18627598881721497, 0.14603805541992188, -0.29817456007003784, 0.2000957429409027, -0.1573348343372345, 0.04104418680071831, 0.39195752143859863, 0.26617416739463806, -0.464017778635025, 0.23307374119758606, 0.031011033803224564, -0.03229773789644241, -0.2525808811187744, 0.12378247082233429, -0.07430265098810196, -0.39858826994895935, -0.4638539254665375, 0.18308265507221222, 0.2775140404701233, 0.3413848876953125, 0.014068689197301865, -0.24195998907089233, -0.06045260280370712, -0.4952040910720825, -0.0869884118437767, 0.11724092811346054, 0.02998393028974533, 0.125196173787117, 0.21942758560180664, -0.08959290385246277, 0.5771214962005615, 0.06737107783555984, -0.31146347522735596, 0.06635227054357529, 0.1806274950504303, -0.20466569066047668, -0.010393127799034119, 0.36308804154396057, -0.10994954407215118, -0.07671709358692169, 0.17865438759326935, -0.07843482494354248, -0.45814621448516846, 0.43758437037467957, -0.2258521169424057, -0.17441809177398682, 0.0162418894469738, 0.34177711606025696, -0.03841448575258255, 0.06333605945110321, -0.0461963415145874, 0.03480226546525955, 0.38712361454963684, -0.12553784251213074, -0.270037442445755, -0.3475731313228607, -0.01720120757818222, -0.0015958361327648163, -0.045710280537605286, -0.4616692364215851, 0.2554490566253662, 0.235215961933136, 0.049204085022211075, 0.032731860876083374, 0.11970674991607666, -0.18603076040744781, -0.26270103454589844, 0.10874167829751968, 0.4226989150047302, -0.6989601850509644, 0.07781714200973511, -0.033796295523643494, -0.21962594985961914, -0.08732282370328903, 0.24369512498378754, -0.1729438602924347, 0.39434632658958435, -0.14336340129375458, 0.022843539714813232, 0.5012027025222778, -0.6384308338165283, -0.08483767509460449, 0.31525030732154846, -0.37505292892456055, -0.4722047448158264, 0.34840136766433716, 0.09825967997312546, 0.19392387568950653, -0.16736766695976257, -0.0878136157989502, 0.3370840549468994, -0.30526086688041687, -0.007525164633989334, -0.01504315435886383, -0.14643511176109314, 0.3090265393257141, 0.048906225711107254, 0.13101960718631744, 0.24226224422454834, 0.15340936183929443, -0.09540306031703949, 0.08566641062498093, -0.11097988486289978, 0.2632905840873718, -0.09281830489635468, 0.2843017578125, 0.11673714220523834, 0.09872020035982132, -0.17063459753990173, -0.4464799761772156, 0.18685460090637207, -0.12135089188814163, -0.16218343377113342, 0.14666810631752014, -0.2703840732574463, -0.1584864854812622, -0.0016374625265598297, -0.18125015497207642, 0.06694267690181732, 0.012782294303178787, 0.01725476235151291, -0.12860217690467834, -0.3862479627132416, -0.17666378617286682, 0.09658343344926834, -0.0008749440312385559, -0.06802773475646973, -0.2032524198293686, 0.3312963545322418, -0.20417429506778717, -0.06159523129463196, 0.2305888533592224, -0.06345538049936295, 0.3737049996852875, -0.11570408195257187, -0.06560484319925308, 0.4240560829639435, 0.11047478765249252, 0.16182120144367218, 0.35254305601119995, -0.1657276600599289, 0.16040028631687164, -0.2557657063007355, 0.32541605830192566, 0.05698695033788681, 0.18951869010925293, -0.22985684871673584, -0.24360182881355286, 0.16567818820476532, -0.25666695833206177, 0.26819097995758057, -0.35064172744750977, 0.3681582510471344, 0.22532111406326294, -0.006786569952964783, 0.15928564965724945, 0.10288667678833008, -0.21496902406215668, 0.0710478127002716, 0.09274986386299133, -0.18212836980819702, -0.4065895676612854, 0.31215786933898926, 0.0778481736779213, -0.16948316991329193, 0.23369431495666504, 0.00680948793888092, 0.24765297770500183, -0.17695730924606323, -0.16450035572052002, 0.051742445677518845, 0.45894765853881836, -0.13910578191280365, 0.030728334560990334, -0.030870812013745308, -0.15250574052333832, -0.017670588567852974, 0.09755916148424149, -0.13776473701000214, 0.6224909424781799, 0.41774800419807434, -0.18626993894577026, -0.06637178361415863, 0.053152747452259064, -0.12405242025852203, 0.4681556224822998, 0.319932758808136, -0.2940088212490082, 0.0022416822612285614, -0.15396341681480408, -0.07595232874155045, -0.12427438795566559, 0.21981436014175415, 0.021425798535346985, -0.1914270520210266, -0.11621424555778503, 0.34629425406455994, 0.3498039245605469, 0.15033017098903656, 0.22270654141902924, 0.48842567205429077, 0.2729249596595764, 0.19339081645011902, 0.05285158008337021, -0.31962642073631287, -0.2618720233440399, -0.11771391332149506, 0.07539153099060059, 0.31568610668182373, 0.24068015813827515, -0.09513824433088303, 0.09411882609128952, -0.5302059650421143, -0.015306424349546432, 0.11306580156087875, 0.08938642591238022, 0.26793766021728516, 0.2141488492488861, 0.14514431357383728, -0.01974605582654476, -0.06815315783023834, 0.28354600071907043, -0.1860620081424713, -0.12058714032173157, 0.2056715488433838, -0.27962642908096313, -0.18835636973381042, 0.11318279802799225, -0.4592910706996918, -0.3187616467475891, -0.12221907079219818, 0.03485789895057678, -0.21792452037334442, 0.2546757459640503, -0.038759563118219376, 0.07884401828050613, 0.20739232003688812, 0.18218615651130676, -0.26487022638320923, -0.3303932845592499, -0.29160773754119873, 0.19879180192947388, -0.5859208703041077, -0.4515911340713501, 0.2777253985404968, -0.018228154629468918, 0.16491302847862244, 0.067703977227211, -0.07953780889511108, -0.21459099650382996, 0.2655099034309387, -0.10504986345767975, -0.31609734892845154, 0.07630682736635208, 0.1307288557291031, -0.11046747118234634, 0.19377875328063965, -0.23531675338745117, -0.47586947679519653, 0.40589091181755066, 0.07263727486133575, 0.2680988907814026, 0.28588590025901794, 0.4112009108066559, 0.0601518340408802, 0.41039901971817017, 0.5636101365089417, 0.19357755780220032, 0.14342722296714783, -0.20642957091331482, 0.07848747074604034, 0.2515752613544464, -0.4386378526687622, 0.49376529455184937, 0.02353750169277191, 0.05275116115808487, 0.006933435797691345, -0.08195656538009644, -0.30415892601013184, -0.11126267910003662, -0.005840284749865532, -0.46028539538383484, -0.28194111585617065, 0.05200200527906418, -0.03919801861047745, 0.32143908739089966, -0.2234606146812439, -0.007513459771871567, -0.4131694734096527, -0.1807469129562378, -0.034890662878751755, 0.33301836252212524, 0.12106698006391525, 0.10313637554645538, -0.5360828042030334, 0.12689700722694397, -0.03584539145231247, 0.2519415616989136, -0.08181493729352951, 0.7141113877296448, 0.04383103922009468, 0.43873322010040283, 0.28591522574424744, -0.017809603363275528, 0.9422724843025208, -0.5240564942359924, 0.3834047317504883, 0.10263688862323761, 0.1817428320646286, -0.33101606369018555, -0.15447576344013214, -0.4046480357646942, 0.5401044487953186, 0.16504500806331635, 0.18416783213615417, -0.2551270127296448, -0.3042893707752228, 0.4403388500213623, -0.11774677038192749, -0.20383605360984802, -0.3584877550601959, 0.019973021000623703, -0.05173853412270546, -0.3705494701862335, -0.13173985481262207, 0.04848048835992813, 0.35492512583732605, 0.1092253178358078, 0.07236853241920471, -0.018105817958712578, 0.1460166871547699, -0.09527739882469177, -0.04381687939167023, 0.07514915615320206, 0.24314451217651367, 0.13248254358768463, 0.39329299330711365, -0.3018697202205658, 0.02975866198539734, 0.1949595808982849, 0.2064768224954605, -0.11661908030509949, 0.3041950464248657, -0.33045634627342224, 0.4321019649505615, 0.21713431179523468, -0.24541844427585602, -0.0455588772892952, -0.04808961600065231, -0.0522303581237793, -0.11500713974237442, -0.20817622542381287, 0.5014564394950867, -0.1432071030139923, -0.15111535787582397, -0.32214823365211487, 0.1666952669620514, 0.12541456520557404, -0.09970590472221375, 0.17718473076820374, -0.1870923489332199, -0.08924148976802826, -0.0037995409220457077, 0.4209369719028473, 0.6218339204788208, -0.31856411695480347, -0.13824531435966492, 0.09594947099685669, -0.1021195650100708, 0.3118506073951721, -0.3144379258155823, 0.07426325976848602, -0.5470120906829834, 0.0348232202231884, -0.06496646255254745, -0.2362358123064041, 0.23908382654190063, 0.7454133033752441, -0.38660967350006104, 0.1891249418258667, -0.012668848037719727, 0.31548261642456055, -0.05093032866716385, 0.49371469020843506, -0.2958293557167053, -0.2703840136528015, 0.14187106490135193, 0.02154531329870224, -0.41773200035095215, -0.053910452872514725, -0.0845278948545456, -0.11055047810077667, 0.20842942595481873, -0.09074243903160095, -0.5053549408912659, 0.022858932614326477, -0.37443628907203674, 0.24383462965488434, 0.24356213212013245, -0.2726643681526184, 0.31675511598587036, 0.4008443057537079, 0.3513333797454834, 0.15311874449253082, 0.03804245591163635, -0.18823400139808655, -0.15490388870239258, -0.3344401717185974, -0.09113115817308426, 0.1288333535194397, 0.1601828932762146, -0.0428076833486557, -0.6049671173095703, 0.049997903406620026, 0.32950636744499207, -0.10616050660610199, 0.05067320168018341, -0.00514182448387146, -0.10327106714248657, 0.019551223143935204, -0.17933227121829987, 0.02721267193555832, -0.24549096822738647, 0.0762435793876648, -0.039450839161872864, 0.3507843613624573, -0.25171852111816406, 0.2878979444503784, -0.053143519908189774, -0.047930553555488586, 0.2237066924571991, 0.11952482163906097, -0.07207223773002625, -0.15947607159614563, 0.09978706389665604, 0.3752741515636444, -0.04350830242037773, -0.21623575687408447, 0.42841118574142456, -0.2806410789489746, -0.10259074717760086, 0.036304399371147156, 0.08711232244968414, -0.04139726608991623, 0.08200623095035553, 0.12979280948638916, 0.17322011291980743, 0.21214038133621216, 0.039650026708841324, -0.7125651240348816, -0.06768133491277695, -0.048311010003089905, -0.11710841953754425, -0.0271482951939106, 0.016332466155290604, -0.08672551810741425, 0.33241260051727295, 0.1439104527235031, -0.13621185719966888, 0.1374807208776474, -0.22457274794578552, 0.2125605046749115, 0.1580180525779724, -0.25117868185043335, -0.056625448167324066, -0.07357364892959595, -0.11837941408157349, -0.07989044487476349, -0.1823829561471939, 0.0038315951824188232, -0.10368780791759491, 0.21171358227729797, 0.07185979187488556, 0.06793172657489777, -0.05433763191103935, -0.5572093725204468, -0.50108402967453, 0.04505462571978569, -0.08892802894115448, 0.29062598943710327, -0.07919934391975403, 0.37730756402015686, -0.13378149271011353, -0.12747308611869812, -0.17496906220912933, -0.12218376994132996, 0.13765087723731995, 0.05006227269768715, -0.1680639237165451, 0.2206524759531021, 0.3182465732097626, -0.21853530406951904, -0.22637663781642914, 0.15003611147403717, -0.08305840194225311, 0.25006887316703796, 0.14406397938728333, -0.4867660403251648, 0.1721440702676773, 0.044008754193782806, 0.05520547181367874, 0.3574565351009369, -0.1440354734659195, 0.15368036925792694, 0.21201732754707336, -0.03278309106826782, -0.18224741518497467, -0.02026068978011608, 0.4850344657897949, 0.002889320719987154, 0.03895803168416023, 0.479721337556839, -0.0797392949461937, 0.09688946604728699, -0.11882254481315613, 0.09949199855327606, 0.29265347123146057, -0.40472567081451416, 0.0057997750118374825, -0.10082095861434937, -0.20244890451431274, 0.14055369794368744, 0.3143048584461212, 0.4627114236354828, 0.03675837069749832, 0.10360369086265564, 0.1333865225315094, 0.012523766607046127, 0.09572644531726837, 0.026493392884731293, 0.5773866176605225, -0.08047661185264587, -0.10674835741519928, 0.14083297550678253, -0.25841012597084045, -0.013413742184638977, -0.12382839620113373, 0.47427812218666077, -0.35969653725624084, -0.09807252138853073, -0.35938096046447754, -0.0023191869258880615, -0.1429680585861206, 0.1402205377817154, -0.4743119180202484, -0.08157020807266235, -0.20236723124980927, -0.09555931389331818, 0.05348089337348938, -0.02513238787651062, 0.4118083417415619, 0.20525306463241577, 0.08430825918912888, -0.23238131403923035, 0.20333504676818848, 0.2850615978240967, -0.008665047585964203, -0.13914497196674347, 0.137569397687912, -0.11912281811237335, 0.18502947688102722, 0.13681557774543762, 0.5001726746559143, 0.17264755070209503, 0.5288866758346558, -0.39084792137145996, 0.1094818040728569, -0.03326436132192612, -0.09610013663768768, 0.2980242371559143, 0.04749806597828865, 0.19378656148910522, -0.32381153106689453, 0.30557987093925476, -0.14215286076068878, 0.11588239669799805, 0.11598898470401764, 0.4418410062789917, 0.08183789253234863, -0.10313351452350616, 0.04945643991231918, -0.11451661586761475, -0.05407536029815674, 0.02239242196083069, 0.08675020188093185, -0.47015443444252014, -0.2771402597427368, 0.3296850025653839, 0.0031216160859912634, 0.13687118887901306, -0.21640436351299286, -0.011524610221385956, 0.052171215415000916, 0.36572879552841187, 0.1255740523338318, 0.014636162668466568, -0.3639300465583801, 0.08205676078796387, -0.641160249710083, 0.0036454051733016968, 0.057504914700984955, 0.010306509211659431, 0.162906214594841, 0.337406188249588, 0.014519087970256805, 0.6744985580444336, 0.5004051327705383, -0.13628867268562317, 0.08871685713529587, 0.5870276689529419, -0.28996503353118896, -0.34469884634017944, 0.36018282175064087, 0.2511005103588104, 0.04065550118684769, -0.3892594873905182, 0.23086099326610565, -0.01138307899236679, -0.09460175037384033, -0.24771426618099213, -0.24786368012428284, -0.011866843327879906, -0.44396233558654785, -0.042167164385318756, 0.08556210994720459, 0.4327952563762665, 0.10121911019086838, 0.13643456995487213, -0.0014471523463726044, 0.08633098006248474, -0.16584445536136627, 0.2125319540500641, 0.31720370054244995, 0.11840076744556427, -0.2983643710613251, 0.08138932287693024, -0.27053096890449524, -0.11817656457424164, -0.039941295981407166, 0.12043356895446777, -0.4683936834335327, 0.3207947015762329, -0.08082301169633865, 0.05616752430796623, -0.007072520442306995, 0.13629385828971863, -0.10368901491165161, 0.5506234169006348, -0.26822856068611145, -0.14042584598064423, 0.4060955047607422, -0.4383872151374817, -0.5236281752586365, -0.2323179394006729, 0.3043493926525116, 0.08507693558931351, -0.014968188479542732, -0.11672750860452652, 0.15375101566314697, 0.19059830904006958, -0.14077520370483398, -0.08254940062761307, -0.055247265845537186, -0.15300823748111725, -0.05153171345591545, 0.042979512363672256, 0.016703959554433823, -0.05707219988107681, 0.0860852524638176, -0.1590413600206375, -0.24516963958740234 ]
https://github.com/huggingface/datasets/issues/4001
How to use generate this multitask dataset for SQUAD? I am getting a value error.
But I request you to please fix the same in the dataset hub explorer as well...
## Dataset viewer issue for 'squad_multitask*' **Link:** https://huggingface.co/datasets/vershasaxena91/squad_multitask *short description of the issue* I am trying to generate the multitask dataset for squad dataset. However, gives the error in dataset explorer as well as my local machine. I tried the command: dataset = load_dataset("vershasaxena91/squad_multitask", 'highlight_qg_format') Error: Status code: 400 Exception: TypeError Message: argument of type 'Value' is not iterable Kindly advice.
16
How to use generate this multitask dataset for SQUAD? I am getting a value error. ## Dataset viewer issue for 'squad_multitask*' **Link:** https://huggingface.co/datasets/vershasaxena91/squad_multitask *short description of the issue* I am trying to generate the multitask dataset for squad dataset. However, gives the error in dataset explorer as well as my local machine. I tried the command: dataset = load_dataset("vershasaxena91/squad_multitask", 'highlight_qg_format') Error: Status code: 400 Exception: TypeError Message: argument of type 'Value' is not iterable Kindly advice. But I request you to please fix the same in the dataset hub explorer as well...
[ -0.3296909034252167, -0.32301878929138184, -0.03323550149798393, 0.4044610857963562, 0.15319624543190002, 0.10481361299753189, 0.46196460723876953, -0.07535317540168762, 0.0021962933242321014, 0.39276355504989624, -0.06930453330278397, 0.691989541053772, -0.05195074528455734, 0.22683434188365936, -0.22239765524864197, -0.11976131796836853, -0.0032791420817375183, -0.0445735901594162, 0.029502585530281067, 0.0575057715177536, -0.2890862226486206, 0.10518401861190796, -0.3991636633872986, 0.12665042281150818, -0.4402148425579071, -0.23920366168022156, -0.032745618373155594, 0.07055385410785675, -0.13687284290790558, -0.34462398290634155, 0.352655291557312, 0.05813918262720108, 0.3173489570617676, 0.4472935199737549, -0.0001276745751965791, 0.05345875769853592, 0.22474980354309082, -0.11647190153598785, -0.06390924751758575, -0.12348224222660065, -0.02674001082777977, 0.10522150993347168, 0.0053659165278077126, -0.42583897709846497, -0.14457285404205322, 0.2321109175682068, -0.0020040329545736313, -0.49317118525505066, 0.18547414243221283, 0.25768721103668213, 0.030363529920578003, 0.22290165722370148, 0.1532203108072281, -0.19797226786613464, -0.1678529977798462, 0.053496867418289185, -0.1304028332233429, 0.245296910405159, 0.3321526050567627, 0.2501724660396576, 0.1690230667591095, 0.12667930126190186, 0.10222342610359192, 0.1810789853334427, 0.25410908460617065, 0.08469666540622711, -0.055077143013477325, -0.5150599479675293, 0.3184431493282318, 0.2200271487236023, 0.5345953106880188, -0.16785264015197754, -0.1423736959695816, 0.18046945333480835, 0.12160475552082062, 0.23733122646808624, 0.31331920623779297, 0.39635252952575684, -0.09183713793754578, 0.11810626089572906, 0.03543730452656746, -0.1762791872024536, -0.46687284111976624, -0.0545545294880867, 0.2060261070728302, 0.013468921184539795, -0.09189882129430771, 0.32696086168289185, 0.06857073307037354, -0.06414739042520523, 0.26546719670295715, -0.15813221037387848, 0.04804260656237602, 0.15775622427463531, -0.6210795640945435, -0.13362401723861694, -0.16089171171188354, -0.05970557779073715, 0.10454054921865463, -0.3050113320350647, 0.16632504761219025, -0.127061665058136, 0.022974878549575806, 0.36818602681159973, 0.24886156618595123, -0.4621237516403198, 0.28146812319755554, 0.09097105264663696, 0.0336553230881691, -0.25877609848976135, 0.08842013776302338, -0.0905597135424614, -0.39140281081199646, -0.4328826367855072, 0.1734410673379898, 0.2614493668079376, 0.32243651151657104, -0.008769094944000244, -0.2567281126976013, -0.0777040645480156, -0.40024757385253906, -0.0036415262147784233, 0.16267798840999603, 0.01233595609664917, 0.12442515790462494, 0.19689813256263733, -0.19557350873947144, 0.5314444303512573, 0.0784589946269989, -0.27460214495658875, 0.04349595308303833, 0.1891055703163147, -0.13350321352481842, 0.026996325701475143, 0.2796524465084076, -0.19628268480300903, -0.05550768971443176, 0.1814790517091751, -0.011117234826087952, -0.45189017057418823, 0.3963334262371063, -0.28938770294189453, -0.2213817536830902, 0.043463461101055145, 0.31606507301330566, -0.03322041779756546, 0.01570754684507847, 0.02644084393978119, 0.04587080329656601, 0.3616873323917389, -0.16642507910728455, -0.3213236927986145, -0.37918126583099365, -0.015121194534003735, -0.03282042220234871, 0.016210157424211502, -0.5422494411468506, 0.2237558662891388, 0.15081268548965454, 0.14555540680885315, 0.023759499192237854, 0.1577579379081726, -0.18085645139217377, -0.2379264086484909, 0.12489084154367447, 0.35365748405456543, -0.6474516987800598, 0.09453639388084412, -0.003320762887597084, -0.21326079964637756, -0.17282578349113464, 0.24003654718399048, -0.21019653975963593, 0.48294398188591003, -0.16128897666931152, 0.09535306692123413, 0.47347256541252136, -0.7411120533943176, -0.16153420507907867, 0.19953295588493347, -0.32400524616241455, -0.5082980394363403, 0.29813385009765625, 0.05325332656502724, 0.25206050276756287, -0.14809009432792664, -0.10005506873130798, 0.31568771600723267, -0.2599412798881531, 0.03533778339624405, -0.0043134018778800964, -0.17241160571575165, 0.2023918479681015, 0.05835277959704399, 0.18497496843338013, 0.25971177220344543, 0.20915357768535614, -0.02732009068131447, 0.030574187636375427, -0.11459892988204956, 0.2655271291732788, -0.0388404056429863, 0.2872328758239746, 0.09544718265533447, 0.12171494960784912, -0.176603764295578, -0.39424222707748413, 0.24214929342269897, -0.10993122309446335, -0.10766865313053131, 0.1282026469707489, -0.2752513885498047, -0.20878133177757263, -0.030873332172632217, -0.27164924144744873, 0.06792651116847992, 0.022654954344034195, -0.04069770127534866, -0.0749533399939537, -0.4148615598678589, -0.1251300871372223, 0.1614970862865448, -0.011507222428917885, -0.07539287954568863, -0.14437203109264374, 0.44686830043792725, -0.1491481065750122, -0.05469578504562378, 0.20303410291671753, -0.1345703899860382, 0.38180631399154663, -0.06662937998771667, -0.12011539191007614, 0.4168435335159302, 0.11868160218000412, 0.2459629625082016, 0.37804433703422546, -0.20916475355625153, 0.20260211825370789, -0.3024306893348694, 0.3275601863861084, -0.015546053647994995, 0.1914830505847931, -0.1724952757358551, -0.1991540491580963, 0.09510974586009979, -0.30404046177864075, 0.19752758741378784, -0.3484472632408142, 0.3395741581916809, 0.2193129062652588, 0.02163812145590782, 0.19405236840248108, 0.11426115036010742, -0.2923433184623718, 0.08404292166233063, 0.13675163686275482, -0.1649535447359085, -0.28670212626457214, 0.29600146412849426, 0.0694776326417923, -0.11713279783725739, 0.2507719099521637, -0.043245114386081696, 0.16277608275413513, -0.14320212602615356, -0.07297083735466003, 0.019808653742074966, 0.443809449672699, -0.16231779754161835, 0.06175224110484123, -0.00899350456893444, -0.13320879638195038, 0.01289626769721508, 0.13281846046447754, -0.08152198791503906, 0.6491409540176392, 0.4325551688671112, -0.22362536191940308, -0.10126893222332001, 0.015410229563713074, -0.08271041512489319, 0.5324389338493347, 0.27189815044403076, -0.2739807963371277, -0.13180342316627502, -0.11468971520662308, 0.002198748290538788, -0.07663609832525253, 0.15516534447669983, 0.03614262491464615, -0.18191367387771606, -0.09986688196659088, 0.3527337312698364, 0.36519238352775574, 0.1183442547917366, 0.22282570600509644, 0.4718306064605713, 0.3098638653755188, 0.25435420870780945, 0.02364218235015869, -0.2650621831417084, -0.22202199697494507, -0.11650702357292175, 0.033751752227544785, 0.40235719084739685, 0.214830219745636, -0.16244903206825256, 0.18133041262626648, -0.5979758501052856, 0.023169711232185364, 0.18041281402111053, 0.17646276950836182, 0.29040294885635376, 0.18574464321136475, 0.14169663190841675, -0.042173221707344055, -0.02073405124247074, 0.2946041226387024, -0.12699595093727112, -0.11678735911846161, 0.14065049588680267, -0.2888485789299011, -0.15071916580200195, 0.20193719863891602, -0.3954361379146576, -0.383402943611145, -0.1175142377614975, -0.013723649084568024, -0.2885206341743469, 0.20786899328231812, -0.13591064512729645, 0.002925993874669075, 0.17855092883110046, 0.17011840641498566, -0.30122998356819153, -0.3381422460079193, -0.39977964758872986, 0.19495657086372375, -0.603056013584137, -0.4089222550392151, 0.2817920744419098, 0.007705166935920715, 0.1728200614452362, 0.031003428623080254, -0.047025665640830994, -0.24860475957393646, 0.2323714643716812, -0.059970706701278687, -0.27120068669319153, 0.06144511699676514, 0.10735305398702621, -0.10744168609380722, 0.20767216384410858, -0.2309158742427826, -0.43153518438339233, 0.3913794457912445, 0.14624278247356415, 0.1881609410047531, 0.2531047761440277, 0.3030964136123657, 0.04129026457667351, 0.3376582860946655, 0.5808677673339844, 0.2566877007484436, 0.1673373281955719, -0.1971389204263687, 0.10980011522769928, 0.21802666783332825, -0.4119662046432495, 0.47662588953971863, 0.05473542958498001, 0.052958227694034576, -0.019316837191581726, -0.008161181584000587, -0.20066632330417633, -0.0922505110502243, -0.17237749695777893, -0.41281193494796753, -0.32204967737197876, -0.07158907502889633, -0.05919061601161957, 0.31220120191574097, -0.25362589955329895, 0.017209194600582123, -0.3883410394191742, -0.16329210996627808, 0.06878083944320679, 0.336283415555954, 0.08177255839109421, 0.09559430181980133, -0.5116987824440002, 0.08264211565256119, 0.014284305274486542, 0.20243722200393677, -0.03972660005092621, 0.6755989193916321, 0.08538313210010529, 0.5082992911338806, 0.25974053144454956, 0.04373422637581825, 0.9282882213592529, -0.6106776595115662, 0.42358309030532837, 0.011120211333036423, 0.16288411617279053, -0.28464439511299133, -0.2058137208223343, -0.38121747970581055, 0.5232148766517639, -0.01478302851319313, 0.2830626368522644, -0.20533403754234314, -0.3099498748779297, 0.38146722316741943, -0.12079297751188278, -0.1791353076696396, -0.3457745909690857, 0.06830191612243652, -0.04300287365913391, -0.3267737030982971, -0.08410736173391342, 0.052535995841026306, 0.332668274641037, 0.07366543263196945, -0.02338116243481636, -0.060324981808662415, 0.16755810379981995, -0.10493530333042145, 0.001526104286313057, 0.13873112201690674, 0.19095708429813385, 0.15048766136169434, 0.4291931688785553, -0.3235606849193573, 0.1290753334760666, 0.2017129510641098, 0.19581057131290436, -0.15271896123886108, 0.3219229578971863, -0.3730548918247223, 0.27503323554992676, 0.18553206324577332, -0.2538814842700958, -0.002508819103240967, -0.0765942931175232, -0.05297994613647461, -0.14671431481838226, -0.1576797217130661, 0.42539456486701965, -0.05731722712516785, -0.14693611860275269, -0.23227559030056, 0.17506995797157288, 0.1335182934999466, -0.13303670287132263, 0.2028588056564331, -0.08549313247203827, -0.12145166099071503, -0.09254034608602524, 0.4546646773815155, 0.547285795211792, -0.26097118854522705, -0.2020438015460968, 0.04147086292505264, -0.13994485139846802, 0.28098002076148987, -0.2919310927391052, 0.055844370275735855, -0.5239178538322449, -0.037682101130485535, -0.07732921838760376, -0.210205078125, 0.27680689096450806, 0.6899455785751343, -0.37326833605766296, 0.21466748416423798, -0.053691744804382324, 0.4435994327068329, -0.10706047713756561, 0.4363132119178772, -0.37478744983673096, -0.2519403398036957, 0.1482662558555603, 0.032784778624773026, -0.3612402081489563, -0.013766337186098099, -0.07588350772857666, -0.05386873334646225, 0.1661181002855301, -0.053791165351867676, -0.4692556858062744, -0.013401023112237453, -0.34586185216903687, 0.2907595634460449, 0.16523413360118866, -0.24277836084365845, 0.3018772602081299, 0.37064677476882935, 0.4431579113006592, 0.11942636966705322, -0.0036507844924926758, -0.12789756059646606, -0.12544596195220947, -0.28443238139152527, -0.07989315688610077, 0.12798060476779938, 0.11893931031227112, -0.05566505342721939, -0.6462715268135071, 0.08534540235996246, 0.2896675765514374, -0.12000446021556854, 0.004616692662239075, -0.04458269476890564, -0.10895979404449463, 0.009205607697367668, -0.12690125405788422, -0.045980557799339294, -0.20458967983722687, 0.07816125452518463, -0.039433594793081284, 0.3123645782470703, -0.2638580799102783, 0.38143491744995117, -0.04481091722846031, -0.08075053989887238, 0.2277936190366745, 0.12729881703853607, -0.012990891933441162, -0.1884947270154953, 0.08081461489200592, 0.26168403029441833, -0.07374300807714462, -0.21298900246620178, 0.49297064542770386, -0.22208444774150848, -0.07650645822286606, 0.061456672847270966, 0.010234002955257893, -0.042478375136852264, 0.060466814786195755, 0.17435650527477264, 0.17837941646575928, 0.19115982949733734, -0.028612108901143074, -0.6680654883384705, -0.04016595333814621, -0.009359784424304962, -0.1194060742855072, 0.013947416096925735, -0.036580491811037064, -0.11258968710899353, 0.3309360444545746, 0.09921509027481079, -0.1336168497800827, 0.19963747262954712, -0.29472672939300537, 0.20530261099338531, -0.014340754598379135, -0.1947169005870819, -0.0500919446349144, -0.11099536716938019, -0.12797312438488007, -0.08397781848907471, -0.19708596169948578, 0.018396440893411636, -0.08937054872512817, 0.19931654632091522, 0.06930229812860489, 0.09380374103784561, -0.06499473005533218, -0.595029354095459, -0.4917701184749603, 0.08689213544130325, -0.008378914557397366, 0.3281920850276947, -0.0872444212436676, 0.2826756238937378, -0.017170477658510208, -0.1665371060371399, -0.23889879882335663, -0.058203428983688354, 0.22631973028182983, 0.05002068728208542, -0.22184106707572937, 0.2178085297346115, 0.304681658744812, -0.21092022955417633, -0.11038147658109665, 0.18251486122608185, -0.05140113830566406, 0.1908060610294342, 0.10212491452693939, -0.4801698923110962, 0.22590681910514832, 0.0880710780620575, 0.05825837701559067, 0.31519615650177, -0.13867272436618805, 0.10997128486633301, 0.17293769121170044, -0.01509796641767025, -0.15823400020599365, -0.10513818264007568, 0.4519762098789215, -0.0839242935180664, 0.05286995694041252, 0.43710869550704956, -0.019575275480747223, 0.15787000954151154, -0.16269023716449738, 0.13244888186454773, 0.33508434891700745, -0.3456730246543884, 0.020521076396107674, -0.009933758527040482, -0.24077637493610382, 0.1883741021156311, 0.40603670477867126, 0.42659950256347656, 0.01701340824365616, 0.21594594419002533, 0.15678918361663818, 0.05946243554353714, 0.09766287356615067, 0.04808409884572029, 0.6683781743049622, -0.06711837649345398, -0.08880557119846344, 0.0322532132267952, -0.2775585651397705, -0.08833525329828262, -0.14939408004283905, 0.3758980631828308, -0.4351014494895935, -0.12474360316991806, -0.4156349301338196, -0.04581711068749428, -0.19294393062591553, 0.16493582725524902, -0.43440496921539307, -0.14812591671943665, -0.15105286240577698, -0.07738251984119415, 0.06887100636959076, -0.03571666032075882, 0.40738335251808167, 0.14985790848731995, 0.07409018278121948, -0.1018412858247757, 0.16549700498580933, 0.33407196402549744, -0.012022502720355988, -0.1268673539161682, 0.13270515203475952, -0.1345813125371933, 0.1669691950082779, 0.15201225876808167, 0.5181285738945007, 0.08712900429964066, 0.5063859224319458, -0.39566394686698914, 0.07741805166006088, 0.08021530508995056, -0.10404552519321442, 0.35174670815467834, -0.0002826657146215439, 0.18804430961608887, -0.34075814485549927, 0.27552276849746704, -0.13199414312839508, 0.10354221612215042, 0.07278377562761307, 0.3529086709022522, 0.15275982022285461, -0.11759138107299805, 0.04863473027944565, -0.11894451081752777, -0.08066494762897491, 0.06638360023498535, 0.0687256008386612, -0.427537739276886, -0.26369646191596985, 0.37553155422210693, -0.07246320694684982, 0.09699507802724838, -0.20942363142967224, -0.013584371656179428, 0.028468076139688492, 0.3732075095176697, 0.1294744908809662, 0.010020140558481216, -0.34189027547836304, 0.045746639370918274, -0.5982303619384766, 0.017743468284606934, 0.11942422389984131, 0.02397618629038334, 0.21672751009464264, 0.2618752121925354, -0.01765122264623642, 0.6496469974517822, 0.5325610041618347, -0.13814692199230194, 0.10461334139108658, 0.554742157459259, -0.3034763038158417, -0.32504627108573914, 0.38601207733154297, 0.2327287495136261, 0.02826080471277237, -0.44799667596817017, 0.3457946181297302, 0.056199606508016586, -0.11156497150659561, -0.2132885605096817, -0.18917718529701233, 0.06993673741817474, -0.6278477907180786, -0.010436154901981354, 0.020378412678837776, 0.46205469965934753, 0.12587273120880127, 0.20743276178836823, 0.0765923261642456, 0.04230184853076935, -0.17150597274303436, 0.12114384770393372, 0.2893519103527069, 0.11040978133678436, -0.2415512055158615, 0.011527767404913902, -0.2647250294685364, -0.16013287007808685, -0.01608242280781269, 0.2345614731311798, -0.42858216166496277, 0.30883556604385376, -0.09482330083847046, 0.025189025327563286, 0.04289133846759796, 0.08484246581792831, -0.07797691226005554, 0.5107389688491821, -0.23604504764080048, -0.16177810728549957, 0.4590628147125244, -0.36142706871032715, -0.5362683534622192, -0.30340781807899475, 0.3019796907901764, 0.11950896680355072, -0.09951716661453247, -0.08360641449689865, 0.1636926233768463, 0.2059561014175415, -0.14820274710655212, -0.07249751687049866, -0.03050929307937622, -0.03644893690943718, 0.046308811753988266, 0.01133253425359726, 0.005382269620895386, -0.11676176637411118, 0.11634017527103424, -0.2148616462945938, -0.20975062251091003 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
Hi @i-am-neo, The audio support is an extra feature of `datasets` and therefore it must be installed as an additional optional dependency: ```shell pip install datasets[audio] ``` Additionally, for specific MP3 support (which is not the case for AMI dataset, that contains WAV audio files), there is another third-party dependency on `torchaudio`. You have all the information in our docs: https://huggingface.co/docs/datasets/audio_process#installation
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
61
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 Hi @i-am-neo, The audio support is an extra feature of `datasets` and therefore it must be installed as an additional optional dependency: ```shell pip install datasets[audio] ``` Additionally, for specific MP3 support (which is not the case for AMI dataset, that contains WAV audio files), there is another third-party dependency on `torchaudio`. You have all the information in our docs: https://huggingface.co/docs/datasets/audio_process#installation
[ -0.17908994853496552, -0.2704020142555237, -0.043067142367362976, 0.2871553301811218, 0.13970214128494263, -0.11794378608465195, 0.35235902667045593, 0.017088059335947037, 0.010731182992458344, 0.3843066096305847, -0.13333319127559662, 0.21345598995685577, 0.04716600850224495, 0.40751931071281433, 0.00832704734057188, 0.10307833552360535, 0.04074977710843086, 0.24462342262268066, 0.3290000557899475, 0.004969976842403412, -0.12485431879758835, 0.3498246371746063, -0.32425394654273987, -0.08556126058101654, -0.22500042617321014, -0.032368600368499756, -0.029567787423729897, 0.2735975980758667, -0.21733513474464417, -0.4320845305919647, 0.37543708086013794, -0.034343596547842026, -0.0005724523216485977, 0.3536970019340515, -0.00011029867164324969, 0.07564413547515869, 0.48437297344207764, -0.05241256579756737, -0.28109419345855713, -0.37548017501831055, -0.2990477383136749, 0.17079322040081024, 0.05564039200544357, -0.12729766964912415, -0.0896703228354454, -0.09879887104034424, -0.02114632911980152, -0.30692344903945923, 0.38571202754974365, 0.4192141592502594, 0.20165157318115234, 0.4719242751598358, 0.0024841688573360443, -0.3136753737926483, 0.39185336232185364, 0.22359518706798553, -0.14307846128940582, -0.015759311616420746, 0.024340186268091202, -0.01557018794119358, 0.17119303345680237, 0.40051180124282837, -0.02104184404015541, 0.18130359053611755, 0.2981662154197693, 0.019906863570213318, -0.04737591743469238, -0.2547491788864136, 0.20329278707504272, 0.22570499777793884, 0.45801541209220886, -0.0715908482670784, -0.3287923336029053, -0.007041852921247482, -0.015797290951013565, -0.26287221908569336, 0.13575215637683868, 0.0014609657227993011, -0.09577043354511261, -0.06823402643203735, -0.1837201565504074, -0.014700653962790966, 0.02612347900867462, 0.22061000764369965, -0.25631994009017944, 0.03353936970233917, -0.27284231781959534, 0.11222199350595474, 0.2719634473323822, 0.05406402051448822, 0.10837801545858383, 0.18004144728183746, 0.15206646919250488, 0.15127889811992645, -0.40314269065856934, 0.15351030230522156, 0.3604499101638794, -0.39670681953430176, 0.26390886306762695, 0.19832710921764374, -0.1928645223379135, -0.07722325623035431, -0.3029695451259613, 0.21310323476791382, 0.05344804376363754, -0.3638854920864105, -0.10548468679189682, -0.06628553569316864, 0.2241828888654709, 0.5549807548522949, 0.08793872594833374, -0.06542181223630905, -0.19850501418113708, -0.3651026785373688, 0.04726218059659004, 0.060963500291109085, 0.3458978533744812, -0.5050414204597473, -0.22421973943710327, 0.07461078464984894, -0.2025143802165985, 0.024073854088783264, -0.05953183397650719, 0.38877078890800476, 0.027543339878320694, 0.1846710741519928, 0.23820854723453522, 0.2061215192079544, -0.28859758377075195, 0.04045412316918373, -0.2543729543685913, 0.1079113781452179, -0.26767927408218384, 0.021623842418193817, 0.4254853129386902, -0.25474628806114197, 0.3628546893596649, -0.11480601131916046, 0.1227862611413002, -0.26971298456192017, 0.16159787774085999, -0.1530236303806305, 0.10144128650426865, 0.3675162196159363, 0.19298072159290314, 0.15936894714832306, -0.0706942081451416, 0.016791827976703644, -0.1436113566160202, -0.014977917075157166, -0.2849145829677582, -0.09055665880441666, -0.1537298560142517, 0.21514946222305298, 0.12774793803691864, 0.027852531522512436, 0.043363723903894424, -0.25121647119522095, 0.37224307656288147, -0.26436305046081543, -0.14173254370689392, -0.23409928381443024, -0.5231900215148926, -0.20244909822940826, 0.48601391911506653, 0.4526612162590027, -0.18094630539417267, -0.11750958859920502, -0.09732146561145782, -0.1824043095111847, 0.05565446615219116, 0.3241596817970276, -0.17936819791793823, -0.030729271471500397, -0.296332985162735, 0.27535390853881836, 0.08751697838306427, -0.43669068813323975, -0.4876019060611725, -0.1819707155227661, -0.06062457710504532, 0.0602048859000206, 0.11856576800346375, 0.0384039431810379, -0.10047569125890732, 0.021984834223985672, 0.253945529460907, 0.5031268000602722, -0.010713940486311913, -0.03289155289530754, -0.14543484151363373, -0.42632928490638733, -0.17369921505451202, 0.3224984109401703, 0.15061309933662415, -0.11537554115056992, 0.28067082166671753, -0.08707929402589798, 0.26244011521339417, -0.09733298420906067, 0.06307291239500046, 0.19091343879699707, 0.2295556366443634, -0.08014734089374542, 0.11842965334653854, -0.3240864872932434, -0.43570125102996826, 0.2677154541015625, -0.09489891678094864, 0.031699854880571365, -0.24208657443523407, -0.2039841264486313, -0.35265347361564636, -0.1650344878435135, -0.33218079805374146, -0.006500646471977234, 0.11427901685237885, 0.49850738048553467, 0.21771441400051117, 0.14496169984340668, -0.18971920013427734, 0.06387302279472351, 0.028919467702507973, -0.06468730419874191, -0.7150557637214661, 0.2665308713912964, -0.1898220181465149, -0.10719431191682816, 0.23951378464698792, 0.1517520546913147, 0.05491820350289345, 0.0787089541554451, -0.11842107027769089, 0.3453003764152527, 0.20225843787193298, 0.058391619473695755, -0.35182490944862366, -0.0001872926950454712, -0.004053907468914986, -0.323738157749176, 0.04360728710889816, -0.11927339434623718, -0.00441596657037735, -0.07722023129463196, -0.3086916506290436, 0.1236216202378273, -0.13075818121433258, 0.09514554589986801, 0.18231777846813202, -0.11569139361381531, 0.3125925660133362, -0.07350517064332962, 0.053158193826675415, -0.12732523679733276, -0.00991152599453926, -0.12059731781482697, 0.12049432098865509, -0.07258012145757675, -0.1821901500225067, -0.18929404020309448, 0.5792743563652039, 0.22026902437210083, -0.03934062272310257, -0.0393126904964447, -0.1610347330570221, -0.009344184771180153, 0.011630835942924023, 0.47164586186408997, 0.4803255796432495, 0.17797911167144775, 0.07911664247512817, -0.05154795944690704, 0.004868391901254654, -0.2172180414199829, 0.1703789383172989, 0.14710089564323425, 0.4880066215991974, 0.37805166840553284, 0.14792703092098236, 0.184689000248909, -0.3074479401111603, -0.32450127601623535, 0.0013329684734344482, 0.04570417478680611, -0.44134458899497986, 0.08144862949848175, -0.28384673595428467, -0.3137006163597107, -0.09449143707752228, 0.03615964204072952, -0.10591709613800049, 0.04145389050245285, -0.0931561291217804, 0.1386878341436386, 0.0960858017206192, 0.04659748822450638, 0.009004991501569748, 0.16650837659835815, 0.014105187729001045, -0.07537371665239334, -0.09714862704277039, 0.22705692052841187, -0.22960475087165833, 0.05411956086754799, 0.37134066224098206, 0.1780456304550171, 0.3578680455684662, -0.21452848613262177, -0.20056051015853882, -0.15037675201892853, -0.07083342224359512, 0.034140970557928085, 0.18609675765037537, 0.12924721837043762, 0.33669382333755493, 0.15004856884479523, -0.0667332336306572, -0.0899740681052208, 0.27958443760871887, -0.04817310720682144, -0.285025417804718, 0.11362342536449432, 0.06508643180131912, -0.13853725790977478, -0.358580619096756, -0.5579127669334412, -0.3380125164985657, -0.3663235306739807, -0.04986990988254547, 0.04040440544486046, 0.16943326592445374, 0.47324490547180176, 0.08876674622297287, 0.15245874226093292, 0.14451614022254944, 0.25557902455329895, -0.2897176444530487, -0.09814359247684479, 0.19305585324764252, -0.30115994811058044, -0.3549559414386749, -0.04832368716597557, 0.12165676057338715, 0.4563899636268616, 0.2100287675857544, -0.43649083375930786, -0.11724080890417099, -0.04702415317296982, -0.08850383758544922, -0.24994000792503357, 0.23601533472537994, 0.4074500799179077, 0.1290813535451889, -0.12429268658161163, -0.12000704556703568, -0.23995289206504822, 0.006245024502277374, -0.15665584802627563, 0.30837178230285645, -0.14988157153129578, 0.3840337097644806, 0.09507158398628235, 0.5298096537590027, 0.23536378145217896, -0.3481452167034149, 0.5521647930145264, -0.06838172674179077, 0.02109358087182045, -0.2291105091571808, -0.21412421762943268, 0.07813012599945068, -0.12700441479682922, 0.01881258562207222, 0.025776758790016174, -0.01333966851234436, -0.18516972661018372, -0.184875950217247, -0.06135556101799011, -0.2753080427646637, -0.08177059888839722, -0.10145344585180283, 0.2882515788078308, 0.3262507915496826, -0.027466505765914917, 0.06301071494817734, 0.2790857255458832, 0.10471151769161224, 0.24526453018188477, 0.21800684928894043, -0.000582575798034668, -0.04859934747219086, -0.3567245602607727, -0.06643606722354889, -0.16630995273590088, 0.17611642181873322, -0.03684520721435547, 0.2587992250919342, -0.0662168338894844, 0.07914301007986069, 0.16430288553237915, -0.33803653717041016, 0.8213408589363098, -0.2613058090209961, 0.24187025427818298, 0.3697148561477661, 0.2420525848865509, -0.2258998155593872, -0.1541520357131958, -0.3346180021762848, 0.15799547731876373, 0.03213239088654518, 0.4422744810581207, -0.16207194328308105, -0.1345662921667099, 0.3193739950656891, 0.2225748598575592, -0.06888992339372635, -0.05477391183376312, -0.3993506133556366, -0.3454325199127197, -0.5314345359802246, 0.13557745516300201, -0.07104160636663437, 0.31987956166267395, 0.026867737993597984, -0.28864723443984985, 0.08119310438632965, 0.02452913671731949, -0.03452911972999573, 0.2724258005619049, 0.32937803864479065, 0.3629221022129059, 0.37341994047164917, 0.15347443521022797, 0.21690486371517181, 0.5727987289428711, 0.6904041171073914, -0.005570884793996811, -0.3426516652107239, 0.05324988067150116, -0.04863759130239487, 0.28211668133735657, 0.20719528198242188, -0.0273321270942688, 0.047668226063251495, 0.31386491656303406, 0.09259603917598724, 0.015425405465066433, 0.06002958491444588, 0.4105706512928009, -0.11769388616085052, -0.1394832283258438, -0.3072565197944641, 0.34184834361076355, 0.034263405948877335, 0.07025489211082458, 0.1426355242729187, 0.1649596393108368, -0.10444379597902298, 0.34206998348236084, 0.0719515010714531, 0.7941672801971436, -0.06136499345302582, 0.054496075958013535, 0.3006097078323364, -0.21657367050647736, 0.5357986092567444, 0.012266639620065689, -0.026353120803833008, -0.31463053822517395, -0.0331084281206131, 0.08179529756307602, -0.16893865168094635, -0.12169020622968674, -0.04357258230447769, -0.2277173399925232, 0.09812814742326736, 0.09942159056663513, -0.6368506550788879, -0.019697898998856544, 0.48220276832580566, 0.26941266655921936, -0.3180781900882721, 0.18985390663146973, 0.09037359058856964, -0.11356815695762634, 0.34259986877441406, 0.003337634727358818, -0.06131190061569214, -0.029915953055024147, -0.1697576344013214, -0.17120611667633057, 0.3080235719680786, -0.25012311339378357, 0.19815152883529663, 0.18261203169822693, -0.036283351480960846, 0.37607821822166443, -0.04245037958025932, 0.07032608985900879, 0.2589297294616699, -0.24365368485450745, 0.15125298500061035, 0.01916755735874176, 0.008591927587985992, 0.06460526585578918, -0.19259557127952576, 0.3855217397212982, -0.17817723751068115, -0.37789225578308105, -0.05355074256658554, 0.005143514834344387, 0.024153970181941986, 0.2977987825870514, -0.03705424815416336, 0.3488351106643677, -0.1993160843849182, -0.32706889510154724, -0.06848447024822235, 0.08658106625080109, -0.24456070363521576, 0.1859181672334671, 0.1036599650979042, -0.09192854911088943, 0.15812352299690247, -0.09649364650249481, -0.09898796677589417, 0.09364806115627289, 0.5139011740684509, -0.05214746296405792, -0.24072480201721191, 0.3571926951408386, 0.37647515535354614, -0.16750508546829224, -0.2569650411605835, -0.291570246219635, -0.05670067295432091, -0.41395172476768494, 0.1468435376882553, 0.1565704494714737, 0.006051287055015564, -0.023062247782945633, 0.16970784962177277, 0.011372189968824387, -0.06281306594610214, 0.03324153646826744, -0.42653903365135193, -0.020904166623950005, 0.1503373384475708, -0.023737583309412003, 0.28819194436073303, 0.22515645623207092, -0.2516818642616272, 0.09118238091468811, 0.1103963628411293, -0.3268141746520996, 0.11208384484052658, -0.2939629554748535, 0.1811271607875824, -0.048035234212875366, -0.09346918016672134, 0.07678097486495972, -0.2518734335899353, 0.16525274515151978, 0.05621936917304993, -0.2075745314359665, -0.2605428695678711, -0.19407221674919128, 0.11586364358663559, -0.012515183538198471, -0.0428057461977005, 0.31275656819343567, -0.14282357692718506, -0.32092028856277466, -0.056805260479450226, 0.09060899913311005, 0.11433815211057663, -0.13015730679035187, 0.20404504239559174, 0.016967352479696274, -0.057570554316043854, -0.1385836899280548, 0.15755674242973328, -0.1011483371257782, -0.2803789973258972, -0.044598981738090515, 0.2606079578399658, -0.07896572351455688, -0.178538978099823, -0.22758221626281738, -0.06718512624502182, 0.047004301100969315, 0.03422576189041138, 0.07841126620769501, -0.32201582193374634, -0.3887525796890259, 0.06946194916963577, 0.3194076120853424, 0.3167323172092438, -0.32014980912208557, 0.1803250014781952, 0.14025196433067322, 0.2861284613609314, -0.3268760144710541, -0.1249859482049942, 0.06597542762756348, -0.06991555541753769, -0.035739727318286896, 0.14006932079792023, -0.009457428008317947, -0.2825186848640442, 0.08974187076091766, 0.13924843072891235, 0.1462799459695816, -0.1761910617351532, 0.011984959244728088, 0.03921090066432953, -0.0369507297873497, -0.024063613265752792, -0.019227297976613045, -0.2650320827960968, 0.17730918526649475, 0.5816264152526855, -0.1695874035358429, 0.14396876096725464, 0.10067054629325867, 0.2517462968826294, 0.015415579080581665, -0.34484490752220154, 0.042124830186367035, 0.010789379477500916, -0.17572423815727234, 0.09778261184692383, 0.0104752779006958, 0.2789306640625, 0.04406000301241875, -0.23008760809898376, -0.2636857330799103, 0.23127231001853943, -0.10657007247209549, -0.061630479991436005, -0.35554149746894836, -0.02660975232720375, -0.2263423502445221, 0.09384700655937195, 0.0063364580273628235, -0.0007111877202987671, 0.14839665591716766, 0.21813592314720154, -0.27424156665802, -0.14264941215515137, -0.19952911138534546, 0.12033434212207794, 0.19997572898864746, -0.3994296193122864, 0.3342706561088562, 0.21594871580600739, -0.11087983846664429, -0.0578104667365551, 0.255978524684906, 0.4459254741668701, 0.2802334427833557, 0.18585698306560516, 0.0712096095085144, 0.035455167293548584, -0.032570865005254745, 0.005647899582982063, 0.08224628120660782, 0.08669238537549973, 0.3283849358558655, 0.29142090678215027, 0.1601269394159317, -0.2376895546913147, -0.20405888557434082, 0.03162633627653122, 0.07972587645053864, -0.3758753538131714, 0.09870963543653488, -0.4445277452468872, -0.09356521815061569, -0.2680281400680542, 0.34572330117225647, -0.6255671381950378, 0.04970187321305275, 0.49530571699142456, 0.1604815125465393, 0.17925605177879333, -0.11266258358955383, 0.10161876678466797, -0.16635608673095703, 0.392347514629364, 0.3734779357910156, 0.2953830659389496, -0.24908241629600525, -0.1365756094455719, -0.8782833218574524, 0.21246176958084106, -0.06014886125922203, -0.14133335649967194, 0.008640515618026257, 0.4021163284778595, -0.158982515335083, -0.05696163326501846, 0.03873206675052643, 0.18297941982746124, 0.27975407242774963, 0.38658684492111206, -0.3127536475658417, 0.017484474927186966, -0.20167814195156097, -0.21430934965610504, 0.07669605314731598, -0.56822669506073, 0.055412210524082184, -0.3495190739631653, -0.026251761242747307, -0.11491814255714417, -0.16887617111206055, 0.0431208498775959, 0.10540200769901276, 0.7171451449394226, -0.10324905067682266, 0.3438671827316284, -0.33760586380958557, -0.22439688444137573, -0.32354918122291565, 0.1438738852739334, -0.11757247895002365, 0.42968180775642395, 0.15894238650798798, 0.7069984674453735, -0.05997893959283829, 0.29786160588264465, -0.2578023076057434, 0.25269901752471924, -0.10738280415534973, -0.09516775608062744, -0.1830519437789917, 0.1367325484752655, -0.02603071555495262, 0.3013846278190613, 0.12572716176509857, -0.034572117030620575, -0.1449996829032898, -0.17563670873641968, -0.5247730612754822, -0.5696104168891907, 0.5045586824417114, -0.08771023899316788, -0.10270987451076508, -0.32374265789985657, 0.4879237413406372, -0.2086920142173767, -0.12166581302881241, -0.590143620967865, 0.17068058252334595, 0.24194419384002686, 0.07760153710842133, -0.4300966262817383, 0.3080763816833496, 0.028877638280391693, -0.12481191754341125, -0.06242536008358002, 0.09060847014188766, 0.17266055941581726, -0.2636617124080658, 0.16279122233390808, -0.39467674493789673 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
Thanks @albertvillanova . Unfortunately the error persists after installing ```datasets[audio]```. Can you direct towards a solution? ``` pip3 install datasets[audio] ``` ### log Requirement already satisfied: datasets[audio] in ./.virtualenvs/hubert/lib/python3.7/site-packages (1.18.3) Requirement already satisfied: numpy>=1.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.21.5) Requirement already satisfied: xxhash in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.0.0) Requirement already satisfied: fsspec[http]>=2021.05.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2022.2.0) Requirement already satisfied: dill in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.3.4) Requirement already satisfied: pandas in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.3.5) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.4.0) Requirement already satisfied: packaging in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (21.3) Requirement already satisfied: multiprocess in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.70.12.2) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (7.0.0) Requirement already satisfied: tqdm>=4.62.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.63.1) Requirement already satisfied: aiohttp in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.8.1) Requirement already satisfied: importlib-metadata in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.11.3) Requirement already satisfied: requests>=2.19.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2.27.1) Requirement already satisfied: librosa in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.9.1) Requirement already satisfied: pyyaml in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (6.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (4.1.1) Requirement already satisfied: filelock in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (3.6.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from packaging->datasets[audio]) (3.0.7) Requirement already satisfied: idna<4,>=2.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (3.3) Requirement already satisfied: certifi>=2017.4.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (1.26.9) Requirement already satisfied: attrs>=17.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (21.4.0) Requirement already satisfied: frozenlist>=1.1.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.3.0) Requirement already satisfied: aiosignal>=1.1.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.2.0) Requirement already satisfied: yarl<2.0,>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.7.2) Requirement already satisfied: asynctest==0.13.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (0.13.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (6.0.2) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (4.0.2) Requirement already satisfied: zipp>=0.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from importlib-metadata->datasets[audio]) (3.7.0) Requirement already satisfied: decorator>=4.0.10 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (5.1.1) Requirement already satisfied: soundfile>=0.10.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.55.1) Requirement already satisfied: pooch>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.6.0) Requirement already satisfied: resampy>=0.2.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.2.2) Requirement already satisfied: audioread>=2.1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (2.1.9) Requirement already satisfied: joblib>=0.14 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.1.0) Requirement already satisfied: scipy>=1.2.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.7.3) Requirement already satisfied: scikit-learn>=0.19.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.0.2) Requirement already satisfied: python-dateutil>=2.7.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2.8.2) Requirement already satisfied: pytz>=2017.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2022.1) Requirement already satisfied: setuptools in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (0.38.0) Requirement already satisfied: appdirs>=1.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa->datasets[audio]) (1.4.4) Requirement already satisfied: six>=1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets[audio]) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa->datasets[audio]) (3.1.0) Requirement already satisfied: cffi>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa->datasets[audio]) (1.15.0) Requirement already satisfied: pycparser in ./.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa->datasets[audio]) (2.21) ### reload ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### log Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 33542.59it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:06<00:00, 22.28it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 21558.39it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2996.41it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 23431.87it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ### just to double-check as per your docs ``` pip3 install librosa torchaudio ``` ### logs Requirement already satisfied: librosa in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.9.1) Requirement already satisfied: torchaudio in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.11.0+cu113) Requirement already satisfied: audioread>=2.1.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (2.1.9) Requirement already satisfied: joblib>=0.14 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.1.0) Requirement already satisfied: packaging>=20.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (21.3) Requirement already satisfied: scikit-learn>=0.19.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.0.2) Requirement already satisfied: scipy>=1.2.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.7.3) Requirement already satisfied: decorator>=4.0.10 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (5.1.1) Requirement already satisfied: resampy>=0.2.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.2.2) Requirement already satisfied: pooch>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.6.0) Requirement already satisfied: numpy>=1.17.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.21.5) Requirement already satisfied: soundfile>=0.10.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.55.1) Requirement already satisfied: torch==1.11.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torchaudio) (1.11.0+cu113) Requirement already satisfied: typing-extensions in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torch==1.11.0->torchaudio) (4.1.1) Requirement already satisfied: setuptools in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (0.38.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from packaging>=20.0->librosa) (3.0.7) Requirement already satisfied: requests>=2.19.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (2.27.1) Requirement already satisfied: appdirs>=1.3.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (1.4.4) Requirement already satisfied: six>=1.3 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from resampy>=0.2.2->librosa) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa) (3.1.0) Requirement already satisfied: cffi>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa) (1.15.0) Requirement already satisfied: pycparser in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa) (2.21) Requirement already satisfied: charset-normalizer~=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2.0.12) Requirement already satisfied: certifi>=2017.4.17 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (1.26.9) Requirement already satisfied: idna<4,>=2.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (3.3) ### try loading again ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### same error Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 33542.59it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:06<00:00, 22.28it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 21558.39it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2996.41it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 23431.87it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
969
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 Thanks @albertvillanova . Unfortunately the error persists after installing ```datasets[audio]```. Can you direct towards a solution? ``` pip3 install datasets[audio] ``` ### log Requirement already satisfied: datasets[audio] in ./.virtualenvs/hubert/lib/python3.7/site-packages (1.18.3) Requirement already satisfied: numpy>=1.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.21.5) Requirement already satisfied: xxhash in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.0.0) Requirement already satisfied: fsspec[http]>=2021.05.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2022.2.0) Requirement already satisfied: dill in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.3.4) Requirement already satisfied: pandas in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (1.3.5) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.4.0) Requirement already satisfied: packaging in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (21.3) Requirement already satisfied: multiprocess in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.70.12.2) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (7.0.0) Requirement already satisfied: tqdm>=4.62.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.63.1) Requirement already satisfied: aiohttp in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (3.8.1) Requirement already satisfied: importlib-metadata in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (4.11.3) Requirement already satisfied: requests>=2.19.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (2.27.1) Requirement already satisfied: librosa in ./.virtualenvs/hubert/lib/python3.7/site-packages (from datasets[audio]) (0.9.1) Requirement already satisfied: pyyaml in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (6.0) Requirement already satisfied: typing-extensions>=3.7.4.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (4.1.1) Requirement already satisfied: filelock in ./.virtualenvs/hubert/lib/python3.7/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets[audio]) (3.6.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from packaging->datasets[audio]) (3.0.7) Requirement already satisfied: idna<4,>=2.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (3.3) Requirement already satisfied: certifi>=2017.4.17 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (2.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->datasets[audio]) (1.26.9) Requirement already satisfied: attrs>=17.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (21.4.0) Requirement already satisfied: frozenlist>=1.1.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.3.0) Requirement already satisfied: aiosignal>=1.1.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.2.0) Requirement already satisfied: yarl<2.0,>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (1.7.2) Requirement already satisfied: asynctest==0.13.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (0.13.0) Requirement already satisfied: multidict<7.0,>=4.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (6.0.2) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from aiohttp->datasets[audio]) (4.0.2) Requirement already satisfied: zipp>=0.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from importlib-metadata->datasets[audio]) (3.7.0) Requirement already satisfied: decorator>=4.0.10 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (5.1.1) Requirement already satisfied: soundfile>=0.10.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.55.1) Requirement already satisfied: pooch>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.6.0) Requirement already satisfied: resampy>=0.2.2 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (0.2.2) Requirement already satisfied: audioread>=2.1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (2.1.9) Requirement already satisfied: joblib>=0.14 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.1.0) Requirement already satisfied: scipy>=1.2.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.7.3) Requirement already satisfied: scikit-learn>=0.19.1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from librosa->datasets[audio]) (1.0.2) Requirement already satisfied: python-dateutil>=2.7.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2.8.2) Requirement already satisfied: pytz>=2017.3 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pandas->datasets[audio]) (2022.1) Requirement already satisfied: setuptools in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa->datasets[audio]) (0.38.0) Requirement already satisfied: appdirs>=1.3.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa->datasets[audio]) (1.4.4) Requirement already satisfied: six>=1.5 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets[audio]) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa->datasets[audio]) (3.1.0) Requirement already satisfied: cffi>=1.0 in ./.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa->datasets[audio]) (1.15.0) Requirement already satisfied: pycparser in ./.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa->datasets[audio]) (2.21) ### reload ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### log Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 33542.59it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:06<00:00, 22.28it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 21558.39it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2996.41it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 23431.87it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ### just to double-check as per your docs ``` pip3 install librosa torchaudio ``` ### logs Requirement already satisfied: librosa in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.9.1) Requirement already satisfied: torchaudio in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (0.11.0+cu113) Requirement already satisfied: audioread>=2.1.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (2.1.9) Requirement already satisfied: joblib>=0.14 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.1.0) Requirement already satisfied: packaging>=20.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (21.3) Requirement already satisfied: scikit-learn>=0.19.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.0.2) Requirement already satisfied: scipy>=1.2.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.7.3) Requirement already satisfied: decorator>=4.0.10 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (5.1.1) Requirement already satisfied: resampy>=0.2.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.2.2) Requirement already satisfied: pooch>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.6.0) Requirement already satisfied: numpy>=1.17.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (1.21.5) Requirement already satisfied: soundfile>=0.10.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.10.3.post1) Requirement already satisfied: numba>=0.45.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from librosa) (0.55.1) Requirement already satisfied: torch==1.11.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torchaudio) (1.11.0+cu113) Requirement already satisfied: typing-extensions in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from torch==1.11.0->torchaudio) (4.1.1) Requirement already satisfied: setuptools in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (60.10.0) Requirement already satisfied: llvmlite<0.39,>=0.38.0rc1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from numba>=0.45.1->librosa) (0.38.0) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from packaging>=20.0->librosa) (3.0.7) Requirement already satisfied: requests>=2.19.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (2.27.1) Requirement already satisfied: appdirs>=1.3.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from pooch>=1.0->librosa) (1.4.4) Requirement already satisfied: six>=1.3 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from resampy>=0.2.2->librosa) (1.16.0) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from scikit-learn>=0.19.1->librosa) (3.1.0) Requirement already satisfied: cffi>=1.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from soundfile>=0.10.2->librosa) (1.15.0) Requirement already satisfied: pycparser in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa) (2.21) Requirement already satisfied: charset-normalizer~=2.0.0 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2.0.12) Requirement already satisfied: certifi>=2017.4.17 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (1.26.9) Requirement already satisfied: idna<4,>=2.5 in /home/neo/.virtualenvs/hubert/lib/python3.7/site-packages (from requests>=2.19.0->pooch>=1.0->librosa) (3.3) ### try loading again ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ### same error Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 33542.59it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:06<00:00, 22.28it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 21558.39it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2996.41it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 23431.87it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2697.52it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found
[ -0.17908994853496552, -0.2704020142555237, -0.043067142367362976, 0.2871553301811218, 0.13970214128494263, -0.11794378608465195, 0.35235902667045593, 0.017088059335947037, 0.010731182992458344, 0.3843066096305847, -0.13333319127559662, 0.21345598995685577, 0.04716600850224495, 0.40751931071281433, 0.00832704734057188, 0.10307833552360535, 0.04074977710843086, 0.24462342262268066, 0.3290000557899475, 0.004969976842403412, -0.12485431879758835, 0.3498246371746063, -0.32425394654273987, -0.08556126058101654, -0.22500042617321014, -0.032368600368499756, -0.029567787423729897, 0.2735975980758667, -0.21733513474464417, -0.4320845305919647, 0.37543708086013794, -0.034343596547842026, -0.0005724523216485977, 0.3536970019340515, -0.00011029867164324969, 0.07564413547515869, 0.48437297344207764, -0.05241256579756737, -0.28109419345855713, -0.37548017501831055, -0.2990477383136749, 0.17079322040081024, 0.05564039200544357, -0.12729766964912415, -0.0896703228354454, -0.09879887104034424, -0.02114632911980152, -0.30692344903945923, 0.38571202754974365, 0.4192141592502594, 0.20165157318115234, 0.4719242751598358, 0.0024841688573360443, -0.3136753737926483, 0.39185336232185364, 0.22359518706798553, -0.14307846128940582, -0.015759311616420746, 0.024340186268091202, -0.01557018794119358, 0.17119303345680237, 0.40051180124282837, -0.02104184404015541, 0.18130359053611755, 0.2981662154197693, 0.019906863570213318, -0.04737591743469238, -0.2547491788864136, 0.20329278707504272, 0.22570499777793884, 0.45801541209220886, -0.0715908482670784, -0.3287923336029053, -0.007041852921247482, -0.015797290951013565, -0.26287221908569336, 0.13575215637683868, 0.0014609657227993011, -0.09577043354511261, -0.06823402643203735, -0.1837201565504074, -0.014700653962790966, 0.02612347900867462, 0.22061000764369965, -0.25631994009017944, 0.03353936970233917, -0.27284231781959534, 0.11222199350595474, 0.2719634473323822, 0.05406402051448822, 0.10837801545858383, 0.18004144728183746, 0.15206646919250488, 0.15127889811992645, -0.40314269065856934, 0.15351030230522156, 0.3604499101638794, -0.39670681953430176, 0.26390886306762695, 0.19832710921764374, -0.1928645223379135, -0.07722325623035431, -0.3029695451259613, 0.21310323476791382, 0.05344804376363754, -0.3638854920864105, -0.10548468679189682, -0.06628553569316864, 0.2241828888654709, 0.5549807548522949, 0.08793872594833374, -0.06542181223630905, -0.19850501418113708, -0.3651026785373688, 0.04726218059659004, 0.060963500291109085, 0.3458978533744812, -0.5050414204597473, -0.22421973943710327, 0.07461078464984894, -0.2025143802165985, 0.024073854088783264, -0.05953183397650719, 0.38877078890800476, 0.027543339878320694, 0.1846710741519928, 0.23820854723453522, 0.2061215192079544, -0.28859758377075195, 0.04045412316918373, -0.2543729543685913, 0.1079113781452179, -0.26767927408218384, 0.021623842418193817, 0.4254853129386902, -0.25474628806114197, 0.3628546893596649, -0.11480601131916046, 0.1227862611413002, -0.26971298456192017, 0.16159787774085999, -0.1530236303806305, 0.10144128650426865, 0.3675162196159363, 0.19298072159290314, 0.15936894714832306, -0.0706942081451416, 0.016791827976703644, -0.1436113566160202, -0.014977917075157166, -0.2849145829677582, -0.09055665880441666, -0.1537298560142517, 0.21514946222305298, 0.12774793803691864, 0.027852531522512436, 0.043363723903894424, -0.25121647119522095, 0.37224307656288147, -0.26436305046081543, -0.14173254370689392, -0.23409928381443024, -0.5231900215148926, -0.20244909822940826, 0.48601391911506653, 0.4526612162590027, -0.18094630539417267, -0.11750958859920502, -0.09732146561145782, -0.1824043095111847, 0.05565446615219116, 0.3241596817970276, -0.17936819791793823, -0.030729271471500397, -0.296332985162735, 0.27535390853881836, 0.08751697838306427, -0.43669068813323975, -0.4876019060611725, -0.1819707155227661, -0.06062457710504532, 0.0602048859000206, 0.11856576800346375, 0.0384039431810379, -0.10047569125890732, 0.021984834223985672, 0.253945529460907, 0.5031268000602722, -0.010713940486311913, -0.03289155289530754, -0.14543484151363373, -0.42632928490638733, -0.17369921505451202, 0.3224984109401703, 0.15061309933662415, -0.11537554115056992, 0.28067082166671753, -0.08707929402589798, 0.26244011521339417, -0.09733298420906067, 0.06307291239500046, 0.19091343879699707, 0.2295556366443634, -0.08014734089374542, 0.11842965334653854, -0.3240864872932434, -0.43570125102996826, 0.2677154541015625, -0.09489891678094864, 0.031699854880571365, -0.24208657443523407, -0.2039841264486313, -0.35265347361564636, -0.1650344878435135, -0.33218079805374146, -0.006500646471977234, 0.11427901685237885, 0.49850738048553467, 0.21771441400051117, 0.14496169984340668, -0.18971920013427734, 0.06387302279472351, 0.028919467702507973, -0.06468730419874191, -0.7150557637214661, 0.2665308713912964, -0.1898220181465149, -0.10719431191682816, 0.23951378464698792, 0.1517520546913147, 0.05491820350289345, 0.0787089541554451, -0.11842107027769089, 0.3453003764152527, 0.20225843787193298, 0.058391619473695755, -0.35182490944862366, -0.0001872926950454712, -0.004053907468914986, -0.323738157749176, 0.04360728710889816, -0.11927339434623718, -0.00441596657037735, -0.07722023129463196, -0.3086916506290436, 0.1236216202378273, -0.13075818121433258, 0.09514554589986801, 0.18231777846813202, -0.11569139361381531, 0.3125925660133362, -0.07350517064332962, 0.053158193826675415, -0.12732523679733276, -0.00991152599453926, -0.12059731781482697, 0.12049432098865509, -0.07258012145757675, -0.1821901500225067, -0.18929404020309448, 0.5792743563652039, 0.22026902437210083, -0.03934062272310257, -0.0393126904964447, -0.1610347330570221, -0.009344184771180153, 0.011630835942924023, 0.47164586186408997, 0.4803255796432495, 0.17797911167144775, 0.07911664247512817, -0.05154795944690704, 0.004868391901254654, -0.2172180414199829, 0.1703789383172989, 0.14710089564323425, 0.4880066215991974, 0.37805166840553284, 0.14792703092098236, 0.184689000248909, -0.3074479401111603, -0.32450127601623535, 0.0013329684734344482, 0.04570417478680611, -0.44134458899497986, 0.08144862949848175, -0.28384673595428467, -0.3137006163597107, -0.09449143707752228, 0.03615964204072952, -0.10591709613800049, 0.04145389050245285, -0.0931561291217804, 0.1386878341436386, 0.0960858017206192, 0.04659748822450638, 0.009004991501569748, 0.16650837659835815, 0.014105187729001045, -0.07537371665239334, -0.09714862704277039, 0.22705692052841187, -0.22960475087165833, 0.05411956086754799, 0.37134066224098206, 0.1780456304550171, 0.3578680455684662, -0.21452848613262177, -0.20056051015853882, -0.15037675201892853, -0.07083342224359512, 0.034140970557928085, 0.18609675765037537, 0.12924721837043762, 0.33669382333755493, 0.15004856884479523, -0.0667332336306572, -0.0899740681052208, 0.27958443760871887, -0.04817310720682144, -0.285025417804718, 0.11362342536449432, 0.06508643180131912, -0.13853725790977478, -0.358580619096756, -0.5579127669334412, -0.3380125164985657, -0.3663235306739807, -0.04986990988254547, 0.04040440544486046, 0.16943326592445374, 0.47324490547180176, 0.08876674622297287, 0.15245874226093292, 0.14451614022254944, 0.25557902455329895, -0.2897176444530487, -0.09814359247684479, 0.19305585324764252, -0.30115994811058044, -0.3549559414386749, -0.04832368716597557, 0.12165676057338715, 0.4563899636268616, 0.2100287675857544, -0.43649083375930786, -0.11724080890417099, -0.04702415317296982, -0.08850383758544922, -0.24994000792503357, 0.23601533472537994, 0.4074500799179077, 0.1290813535451889, -0.12429268658161163, -0.12000704556703568, -0.23995289206504822, 0.006245024502277374, -0.15665584802627563, 0.30837178230285645, -0.14988157153129578, 0.3840337097644806, 0.09507158398628235, 0.5298096537590027, 0.23536378145217896, -0.3481452167034149, 0.5521647930145264, -0.06838172674179077, 0.02109358087182045, -0.2291105091571808, -0.21412421762943268, 0.07813012599945068, -0.12700441479682922, 0.01881258562207222, 0.025776758790016174, -0.01333966851234436, -0.18516972661018372, -0.184875950217247, -0.06135556101799011, -0.2753080427646637, -0.08177059888839722, -0.10145344585180283, 0.2882515788078308, 0.3262507915496826, -0.027466505765914917, 0.06301071494817734, 0.2790857255458832, 0.10471151769161224, 0.24526453018188477, 0.21800684928894043, -0.000582575798034668, -0.04859934747219086, -0.3567245602607727, -0.06643606722354889, -0.16630995273590088, 0.17611642181873322, -0.03684520721435547, 0.2587992250919342, -0.0662168338894844, 0.07914301007986069, 0.16430288553237915, -0.33803653717041016, 0.8213408589363098, -0.2613058090209961, 0.24187025427818298, 0.3697148561477661, 0.2420525848865509, -0.2258998155593872, -0.1541520357131958, -0.3346180021762848, 0.15799547731876373, 0.03213239088654518, 0.4422744810581207, -0.16207194328308105, -0.1345662921667099, 0.3193739950656891, 0.2225748598575592, -0.06888992339372635, -0.05477391183376312, -0.3993506133556366, -0.3454325199127197, -0.5314345359802246, 0.13557745516300201, -0.07104160636663437, 0.31987956166267395, 0.026867737993597984, -0.28864723443984985, 0.08119310438632965, 0.02452913671731949, -0.03452911972999573, 0.2724258005619049, 0.32937803864479065, 0.3629221022129059, 0.37341994047164917, 0.15347443521022797, 0.21690486371517181, 0.5727987289428711, 0.6904041171073914, -0.005570884793996811, -0.3426516652107239, 0.05324988067150116, -0.04863759130239487, 0.28211668133735657, 0.20719528198242188, -0.0273321270942688, 0.047668226063251495, 0.31386491656303406, 0.09259603917598724, 0.015425405465066433, 0.06002958491444588, 0.4105706512928009, -0.11769388616085052, -0.1394832283258438, -0.3072565197944641, 0.34184834361076355, 0.034263405948877335, 0.07025489211082458, 0.1426355242729187, 0.1649596393108368, -0.10444379597902298, 0.34206998348236084, 0.0719515010714531, 0.7941672801971436, -0.06136499345302582, 0.054496075958013535, 0.3006097078323364, -0.21657367050647736, 0.5357986092567444, 0.012266639620065689, -0.026353120803833008, -0.31463053822517395, -0.0331084281206131, 0.08179529756307602, -0.16893865168094635, -0.12169020622968674, -0.04357258230447769, -0.2277173399925232, 0.09812814742326736, 0.09942159056663513, -0.6368506550788879, -0.019697898998856544, 0.48220276832580566, 0.26941266655921936, -0.3180781900882721, 0.18985390663146973, 0.09037359058856964, -0.11356815695762634, 0.34259986877441406, 0.003337634727358818, -0.06131190061569214, -0.029915953055024147, -0.1697576344013214, -0.17120611667633057, 0.3080235719680786, -0.25012311339378357, 0.19815152883529663, 0.18261203169822693, -0.036283351480960846, 0.37607821822166443, -0.04245037958025932, 0.07032608985900879, 0.2589297294616699, -0.24365368485450745, 0.15125298500061035, 0.01916755735874176, 0.008591927587985992, 0.06460526585578918, -0.19259557127952576, 0.3855217397212982, -0.17817723751068115, -0.37789225578308105, -0.05355074256658554, 0.005143514834344387, 0.024153970181941986, 0.2977987825870514, -0.03705424815416336, 0.3488351106643677, -0.1993160843849182, -0.32706889510154724, -0.06848447024822235, 0.08658106625080109, -0.24456070363521576, 0.1859181672334671, 0.1036599650979042, -0.09192854911088943, 0.15812352299690247, -0.09649364650249481, -0.09898796677589417, 0.09364806115627289, 0.5139011740684509, -0.05214746296405792, -0.24072480201721191, 0.3571926951408386, 0.37647515535354614, -0.16750508546829224, -0.2569650411605835, -0.291570246219635, -0.05670067295432091, -0.41395172476768494, 0.1468435376882553, 0.1565704494714737, 0.006051287055015564, -0.023062247782945633, 0.16970784962177277, 0.011372189968824387, -0.06281306594610214, 0.03324153646826744, -0.42653903365135193, -0.020904166623950005, 0.1503373384475708, -0.023737583309412003, 0.28819194436073303, 0.22515645623207092, -0.2516818642616272, 0.09118238091468811, 0.1103963628411293, -0.3268141746520996, 0.11208384484052658, -0.2939629554748535, 0.1811271607875824, -0.048035234212875366, -0.09346918016672134, 0.07678097486495972, -0.2518734335899353, 0.16525274515151978, 0.05621936917304993, -0.2075745314359665, -0.2605428695678711, -0.19407221674919128, 0.11586364358663559, -0.012515183538198471, -0.0428057461977005, 0.31275656819343567, -0.14282357692718506, -0.32092028856277466, -0.056805260479450226, 0.09060899913311005, 0.11433815211057663, -0.13015730679035187, 0.20404504239559174, 0.016967352479696274, -0.057570554316043854, -0.1385836899280548, 0.15755674242973328, -0.1011483371257782, -0.2803789973258972, -0.044598981738090515, 0.2606079578399658, -0.07896572351455688, -0.178538978099823, -0.22758221626281738, -0.06718512624502182, 0.047004301100969315, 0.03422576189041138, 0.07841126620769501, -0.32201582193374634, -0.3887525796890259, 0.06946194916963577, 0.3194076120853424, 0.3167323172092438, -0.32014980912208557, 0.1803250014781952, 0.14025196433067322, 0.2861284613609314, -0.3268760144710541, -0.1249859482049942, 0.06597542762756348, -0.06991555541753769, -0.035739727318286896, 0.14006932079792023, -0.009457428008317947, -0.2825186848640442, 0.08974187076091766, 0.13924843072891235, 0.1462799459695816, -0.1761910617351532, 0.011984959244728088, 0.03921090066432953, -0.0369507297873497, -0.024063613265752792, -0.019227297976613045, -0.2650320827960968, 0.17730918526649475, 0.5816264152526855, -0.1695874035358429, 0.14396876096725464, 0.10067054629325867, 0.2517462968826294, 0.015415579080581665, -0.34484490752220154, 0.042124830186367035, 0.010789379477500916, -0.17572423815727234, 0.09778261184692383, 0.0104752779006958, 0.2789306640625, 0.04406000301241875, -0.23008760809898376, -0.2636857330799103, 0.23127231001853943, -0.10657007247209549, -0.061630479991436005, -0.35554149746894836, -0.02660975232720375, -0.2263423502445221, 0.09384700655937195, 0.0063364580273628235, -0.0007111877202987671, 0.14839665591716766, 0.21813592314720154, -0.27424156665802, -0.14264941215515137, -0.19952911138534546, 0.12033434212207794, 0.19997572898864746, -0.3994296193122864, 0.3342706561088562, 0.21594871580600739, -0.11087983846664429, -0.0578104667365551, 0.255978524684906, 0.4459254741668701, 0.2802334427833557, 0.18585698306560516, 0.0712096095085144, 0.035455167293548584, -0.032570865005254745, 0.005647899582982063, 0.08224628120660782, 0.08669238537549973, 0.3283849358558655, 0.29142090678215027, 0.1601269394159317, -0.2376895546913147, -0.20405888557434082, 0.03162633627653122, 0.07972587645053864, -0.3758753538131714, 0.09870963543653488, -0.4445277452468872, -0.09356521815061569, -0.2680281400680542, 0.34572330117225647, -0.6255671381950378, 0.04970187321305275, 0.49530571699142456, 0.1604815125465393, 0.17925605177879333, -0.11266258358955383, 0.10161876678466797, -0.16635608673095703, 0.392347514629364, 0.3734779357910156, 0.2953830659389496, -0.24908241629600525, -0.1365756094455719, -0.8782833218574524, 0.21246176958084106, -0.06014886125922203, -0.14133335649967194, 0.008640515618026257, 0.4021163284778595, -0.158982515335083, -0.05696163326501846, 0.03873206675052643, 0.18297941982746124, 0.27975407242774963, 0.38658684492111206, -0.3127536475658417, 0.017484474927186966, -0.20167814195156097, -0.21430934965610504, 0.07669605314731598, -0.56822669506073, 0.055412210524082184, -0.3495190739631653, -0.026251761242747307, -0.11491814255714417, -0.16887617111206055, 0.0431208498775959, 0.10540200769901276, 0.7171451449394226, -0.10324905067682266, 0.3438671827316284, -0.33760586380958557, -0.22439688444137573, -0.32354918122291565, 0.1438738852739334, -0.11757247895002365, 0.42968180775642395, 0.15894238650798798, 0.7069984674453735, -0.05997893959283829, 0.29786160588264465, -0.2578023076057434, 0.25269901752471924, -0.10738280415534973, -0.09516775608062744, -0.1830519437789917, 0.1367325484752655, -0.02603071555495262, 0.3013846278190613, 0.12572716176509857, -0.034572117030620575, -0.1449996829032898, -0.17563670873641968, -0.5247730612754822, -0.5696104168891907, 0.5045586824417114, -0.08771023899316788, -0.10270987451076508, -0.32374265789985657, 0.4879237413406372, -0.2086920142173767, -0.12166581302881241, -0.590143620967865, 0.17068058252334595, 0.24194419384002686, 0.07760153710842133, -0.4300966262817383, 0.3080763816833496, 0.028877638280391693, -0.12481191754341125, -0.06242536008358002, 0.09060847014188766, 0.17266055941581726, -0.2636617124080658, 0.16279122233390808, -0.39467674493789673 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
Hi @i-am-neo, thanks again for your detailed report. Our `datasets` library support for audio relies on a third-party Python library called `librosa`, which is installed when you do: ```shell pip install datasets[audio] ``` However, the `librosa` library has a dependency on `soundfile`; and `soundfile` depends on a non-Python package called `sndfile`. On Linux (which is your case), this must be installed manually using your operating system package manager, for example: ```shell sudo apt-get install libsndfile1 ``` Please, let me know if this works and if so, I will update our docs with all this information.
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
95
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 Hi @i-am-neo, thanks again for your detailed report. Our `datasets` library support for audio relies on a third-party Python library called `librosa`, which is installed when you do: ```shell pip install datasets[audio] ``` However, the `librosa` library has a dependency on `soundfile`; and `soundfile` depends on a non-Python package called `sndfile`. On Linux (which is your case), this must be installed manually using your operating system package manager, for example: ```shell sudo apt-get install libsndfile1 ``` Please, let me know if this works and if so, I will update our docs with all this information.
[ -0.17908994853496552, -0.2704020142555237, -0.043067142367362976, 0.2871553301811218, 0.13970214128494263, -0.11794378608465195, 0.35235902667045593, 0.017088059335947037, 0.010731182992458344, 0.3843066096305847, -0.13333319127559662, 0.21345598995685577, 0.04716600850224495, 0.40751931071281433, 0.00832704734057188, 0.10307833552360535, 0.04074977710843086, 0.24462342262268066, 0.3290000557899475, 0.004969976842403412, -0.12485431879758835, 0.3498246371746063, -0.32425394654273987, -0.08556126058101654, -0.22500042617321014, -0.032368600368499756, -0.029567787423729897, 0.2735975980758667, -0.21733513474464417, -0.4320845305919647, 0.37543708086013794, -0.034343596547842026, -0.0005724523216485977, 0.3536970019340515, -0.00011029867164324969, 0.07564413547515869, 0.48437297344207764, -0.05241256579756737, -0.28109419345855713, -0.37548017501831055, -0.2990477383136749, 0.17079322040081024, 0.05564039200544357, -0.12729766964912415, -0.0896703228354454, -0.09879887104034424, -0.02114632911980152, -0.30692344903945923, 0.38571202754974365, 0.4192141592502594, 0.20165157318115234, 0.4719242751598358, 0.0024841688573360443, -0.3136753737926483, 0.39185336232185364, 0.22359518706798553, -0.14307846128940582, -0.015759311616420746, 0.024340186268091202, -0.01557018794119358, 0.17119303345680237, 0.40051180124282837, -0.02104184404015541, 0.18130359053611755, 0.2981662154197693, 0.019906863570213318, -0.04737591743469238, -0.2547491788864136, 0.20329278707504272, 0.22570499777793884, 0.45801541209220886, -0.0715908482670784, -0.3287923336029053, -0.007041852921247482, -0.015797290951013565, -0.26287221908569336, 0.13575215637683868, 0.0014609657227993011, -0.09577043354511261, -0.06823402643203735, -0.1837201565504074, -0.014700653962790966, 0.02612347900867462, 0.22061000764369965, -0.25631994009017944, 0.03353936970233917, -0.27284231781959534, 0.11222199350595474, 0.2719634473323822, 0.05406402051448822, 0.10837801545858383, 0.18004144728183746, 0.15206646919250488, 0.15127889811992645, -0.40314269065856934, 0.15351030230522156, 0.3604499101638794, -0.39670681953430176, 0.26390886306762695, 0.19832710921764374, -0.1928645223379135, -0.07722325623035431, -0.3029695451259613, 0.21310323476791382, 0.05344804376363754, -0.3638854920864105, -0.10548468679189682, -0.06628553569316864, 0.2241828888654709, 0.5549807548522949, 0.08793872594833374, -0.06542181223630905, -0.19850501418113708, -0.3651026785373688, 0.04726218059659004, 0.060963500291109085, 0.3458978533744812, -0.5050414204597473, -0.22421973943710327, 0.07461078464984894, -0.2025143802165985, 0.024073854088783264, -0.05953183397650719, 0.38877078890800476, 0.027543339878320694, 0.1846710741519928, 0.23820854723453522, 0.2061215192079544, -0.28859758377075195, 0.04045412316918373, -0.2543729543685913, 0.1079113781452179, -0.26767927408218384, 0.021623842418193817, 0.4254853129386902, -0.25474628806114197, 0.3628546893596649, -0.11480601131916046, 0.1227862611413002, -0.26971298456192017, 0.16159787774085999, -0.1530236303806305, 0.10144128650426865, 0.3675162196159363, 0.19298072159290314, 0.15936894714832306, -0.0706942081451416, 0.016791827976703644, -0.1436113566160202, -0.014977917075157166, -0.2849145829677582, -0.09055665880441666, -0.1537298560142517, 0.21514946222305298, 0.12774793803691864, 0.027852531522512436, 0.043363723903894424, -0.25121647119522095, 0.37224307656288147, -0.26436305046081543, -0.14173254370689392, -0.23409928381443024, -0.5231900215148926, -0.20244909822940826, 0.48601391911506653, 0.4526612162590027, -0.18094630539417267, -0.11750958859920502, -0.09732146561145782, -0.1824043095111847, 0.05565446615219116, 0.3241596817970276, -0.17936819791793823, -0.030729271471500397, -0.296332985162735, 0.27535390853881836, 0.08751697838306427, -0.43669068813323975, -0.4876019060611725, -0.1819707155227661, -0.06062457710504532, 0.0602048859000206, 0.11856576800346375, 0.0384039431810379, -0.10047569125890732, 0.021984834223985672, 0.253945529460907, 0.5031268000602722, -0.010713940486311913, -0.03289155289530754, -0.14543484151363373, -0.42632928490638733, -0.17369921505451202, 0.3224984109401703, 0.15061309933662415, -0.11537554115056992, 0.28067082166671753, -0.08707929402589798, 0.26244011521339417, -0.09733298420906067, 0.06307291239500046, 0.19091343879699707, 0.2295556366443634, -0.08014734089374542, 0.11842965334653854, -0.3240864872932434, -0.43570125102996826, 0.2677154541015625, -0.09489891678094864, 0.031699854880571365, -0.24208657443523407, -0.2039841264486313, -0.35265347361564636, -0.1650344878435135, -0.33218079805374146, -0.006500646471977234, 0.11427901685237885, 0.49850738048553467, 0.21771441400051117, 0.14496169984340668, -0.18971920013427734, 0.06387302279472351, 0.028919467702507973, -0.06468730419874191, -0.7150557637214661, 0.2665308713912964, -0.1898220181465149, -0.10719431191682816, 0.23951378464698792, 0.1517520546913147, 0.05491820350289345, 0.0787089541554451, -0.11842107027769089, 0.3453003764152527, 0.20225843787193298, 0.058391619473695755, -0.35182490944862366, -0.0001872926950454712, -0.004053907468914986, -0.323738157749176, 0.04360728710889816, -0.11927339434623718, -0.00441596657037735, -0.07722023129463196, -0.3086916506290436, 0.1236216202378273, -0.13075818121433258, 0.09514554589986801, 0.18231777846813202, -0.11569139361381531, 0.3125925660133362, -0.07350517064332962, 0.053158193826675415, -0.12732523679733276, -0.00991152599453926, -0.12059731781482697, 0.12049432098865509, -0.07258012145757675, -0.1821901500225067, -0.18929404020309448, 0.5792743563652039, 0.22026902437210083, -0.03934062272310257, -0.0393126904964447, -0.1610347330570221, -0.009344184771180153, 0.011630835942924023, 0.47164586186408997, 0.4803255796432495, 0.17797911167144775, 0.07911664247512817, -0.05154795944690704, 0.004868391901254654, -0.2172180414199829, 0.1703789383172989, 0.14710089564323425, 0.4880066215991974, 0.37805166840553284, 0.14792703092098236, 0.184689000248909, -0.3074479401111603, -0.32450127601623535, 0.0013329684734344482, 0.04570417478680611, -0.44134458899497986, 0.08144862949848175, -0.28384673595428467, -0.3137006163597107, -0.09449143707752228, 0.03615964204072952, -0.10591709613800049, 0.04145389050245285, -0.0931561291217804, 0.1386878341436386, 0.0960858017206192, 0.04659748822450638, 0.009004991501569748, 0.16650837659835815, 0.014105187729001045, -0.07537371665239334, -0.09714862704277039, 0.22705692052841187, -0.22960475087165833, 0.05411956086754799, 0.37134066224098206, 0.1780456304550171, 0.3578680455684662, -0.21452848613262177, -0.20056051015853882, -0.15037675201892853, -0.07083342224359512, 0.034140970557928085, 0.18609675765037537, 0.12924721837043762, 0.33669382333755493, 0.15004856884479523, -0.0667332336306572, -0.0899740681052208, 0.27958443760871887, -0.04817310720682144, -0.285025417804718, 0.11362342536449432, 0.06508643180131912, -0.13853725790977478, -0.358580619096756, -0.5579127669334412, -0.3380125164985657, -0.3663235306739807, -0.04986990988254547, 0.04040440544486046, 0.16943326592445374, 0.47324490547180176, 0.08876674622297287, 0.15245874226093292, 0.14451614022254944, 0.25557902455329895, -0.2897176444530487, -0.09814359247684479, 0.19305585324764252, -0.30115994811058044, -0.3549559414386749, -0.04832368716597557, 0.12165676057338715, 0.4563899636268616, 0.2100287675857544, -0.43649083375930786, -0.11724080890417099, -0.04702415317296982, -0.08850383758544922, -0.24994000792503357, 0.23601533472537994, 0.4074500799179077, 0.1290813535451889, -0.12429268658161163, -0.12000704556703568, -0.23995289206504822, 0.006245024502277374, -0.15665584802627563, 0.30837178230285645, -0.14988157153129578, 0.3840337097644806, 0.09507158398628235, 0.5298096537590027, 0.23536378145217896, -0.3481452167034149, 0.5521647930145264, -0.06838172674179077, 0.02109358087182045, -0.2291105091571808, -0.21412421762943268, 0.07813012599945068, -0.12700441479682922, 0.01881258562207222, 0.025776758790016174, -0.01333966851234436, -0.18516972661018372, -0.184875950217247, -0.06135556101799011, -0.2753080427646637, -0.08177059888839722, -0.10145344585180283, 0.2882515788078308, 0.3262507915496826, -0.027466505765914917, 0.06301071494817734, 0.2790857255458832, 0.10471151769161224, 0.24526453018188477, 0.21800684928894043, -0.000582575798034668, -0.04859934747219086, -0.3567245602607727, -0.06643606722354889, -0.16630995273590088, 0.17611642181873322, -0.03684520721435547, 0.2587992250919342, -0.0662168338894844, 0.07914301007986069, 0.16430288553237915, -0.33803653717041016, 0.8213408589363098, -0.2613058090209961, 0.24187025427818298, 0.3697148561477661, 0.2420525848865509, -0.2258998155593872, -0.1541520357131958, -0.3346180021762848, 0.15799547731876373, 0.03213239088654518, 0.4422744810581207, -0.16207194328308105, -0.1345662921667099, 0.3193739950656891, 0.2225748598575592, -0.06888992339372635, -0.05477391183376312, -0.3993506133556366, -0.3454325199127197, -0.5314345359802246, 0.13557745516300201, -0.07104160636663437, 0.31987956166267395, 0.026867737993597984, -0.28864723443984985, 0.08119310438632965, 0.02452913671731949, -0.03452911972999573, 0.2724258005619049, 0.32937803864479065, 0.3629221022129059, 0.37341994047164917, 0.15347443521022797, 0.21690486371517181, 0.5727987289428711, 0.6904041171073914, -0.005570884793996811, -0.3426516652107239, 0.05324988067150116, -0.04863759130239487, 0.28211668133735657, 0.20719528198242188, -0.0273321270942688, 0.047668226063251495, 0.31386491656303406, 0.09259603917598724, 0.015425405465066433, 0.06002958491444588, 0.4105706512928009, -0.11769388616085052, -0.1394832283258438, -0.3072565197944641, 0.34184834361076355, 0.034263405948877335, 0.07025489211082458, 0.1426355242729187, 0.1649596393108368, -0.10444379597902298, 0.34206998348236084, 0.0719515010714531, 0.7941672801971436, -0.06136499345302582, 0.054496075958013535, 0.3006097078323364, -0.21657367050647736, 0.5357986092567444, 0.012266639620065689, -0.026353120803833008, -0.31463053822517395, -0.0331084281206131, 0.08179529756307602, -0.16893865168094635, -0.12169020622968674, -0.04357258230447769, -0.2277173399925232, 0.09812814742326736, 0.09942159056663513, -0.6368506550788879, -0.019697898998856544, 0.48220276832580566, 0.26941266655921936, -0.3180781900882721, 0.18985390663146973, 0.09037359058856964, -0.11356815695762634, 0.34259986877441406, 0.003337634727358818, -0.06131190061569214, -0.029915953055024147, -0.1697576344013214, -0.17120611667633057, 0.3080235719680786, -0.25012311339378357, 0.19815152883529663, 0.18261203169822693, -0.036283351480960846, 0.37607821822166443, -0.04245037958025932, 0.07032608985900879, 0.2589297294616699, -0.24365368485450745, 0.15125298500061035, 0.01916755735874176, 0.008591927587985992, 0.06460526585578918, -0.19259557127952576, 0.3855217397212982, -0.17817723751068115, -0.37789225578308105, -0.05355074256658554, 0.005143514834344387, 0.024153970181941986, 0.2977987825870514, -0.03705424815416336, 0.3488351106643677, -0.1993160843849182, -0.32706889510154724, -0.06848447024822235, 0.08658106625080109, -0.24456070363521576, 0.1859181672334671, 0.1036599650979042, -0.09192854911088943, 0.15812352299690247, -0.09649364650249481, -0.09898796677589417, 0.09364806115627289, 0.5139011740684509, -0.05214746296405792, -0.24072480201721191, 0.3571926951408386, 0.37647515535354614, -0.16750508546829224, -0.2569650411605835, -0.291570246219635, -0.05670067295432091, -0.41395172476768494, 0.1468435376882553, 0.1565704494714737, 0.006051287055015564, -0.023062247782945633, 0.16970784962177277, 0.011372189968824387, -0.06281306594610214, 0.03324153646826744, -0.42653903365135193, -0.020904166623950005, 0.1503373384475708, -0.023737583309412003, 0.28819194436073303, 0.22515645623207092, -0.2516818642616272, 0.09118238091468811, 0.1103963628411293, -0.3268141746520996, 0.11208384484052658, -0.2939629554748535, 0.1811271607875824, -0.048035234212875366, -0.09346918016672134, 0.07678097486495972, -0.2518734335899353, 0.16525274515151978, 0.05621936917304993, -0.2075745314359665, -0.2605428695678711, -0.19407221674919128, 0.11586364358663559, -0.012515183538198471, -0.0428057461977005, 0.31275656819343567, -0.14282357692718506, -0.32092028856277466, -0.056805260479450226, 0.09060899913311005, 0.11433815211057663, -0.13015730679035187, 0.20404504239559174, 0.016967352479696274, -0.057570554316043854, -0.1385836899280548, 0.15755674242973328, -0.1011483371257782, -0.2803789973258972, -0.044598981738090515, 0.2606079578399658, -0.07896572351455688, -0.178538978099823, -0.22758221626281738, -0.06718512624502182, 0.047004301100969315, 0.03422576189041138, 0.07841126620769501, -0.32201582193374634, -0.3887525796890259, 0.06946194916963577, 0.3194076120853424, 0.3167323172092438, -0.32014980912208557, 0.1803250014781952, 0.14025196433067322, 0.2861284613609314, -0.3268760144710541, -0.1249859482049942, 0.06597542762756348, -0.06991555541753769, -0.035739727318286896, 0.14006932079792023, -0.009457428008317947, -0.2825186848640442, 0.08974187076091766, 0.13924843072891235, 0.1462799459695816, -0.1761910617351532, 0.011984959244728088, 0.03921090066432953, -0.0369507297873497, -0.024063613265752792, -0.019227297976613045, -0.2650320827960968, 0.17730918526649475, 0.5816264152526855, -0.1695874035358429, 0.14396876096725464, 0.10067054629325867, 0.2517462968826294, 0.015415579080581665, -0.34484490752220154, 0.042124830186367035, 0.010789379477500916, -0.17572423815727234, 0.09778261184692383, 0.0104752779006958, 0.2789306640625, 0.04406000301241875, -0.23008760809898376, -0.2636857330799103, 0.23127231001853943, -0.10657007247209549, -0.061630479991436005, -0.35554149746894836, -0.02660975232720375, -0.2263423502445221, 0.09384700655937195, 0.0063364580273628235, -0.0007111877202987671, 0.14839665591716766, 0.21813592314720154, -0.27424156665802, -0.14264941215515137, -0.19952911138534546, 0.12033434212207794, 0.19997572898864746, -0.3994296193122864, 0.3342706561088562, 0.21594871580600739, -0.11087983846664429, -0.0578104667365551, 0.255978524684906, 0.4459254741668701, 0.2802334427833557, 0.18585698306560516, 0.0712096095085144, 0.035455167293548584, -0.032570865005254745, 0.005647899582982063, 0.08224628120660782, 0.08669238537549973, 0.3283849358558655, 0.29142090678215027, 0.1601269394159317, -0.2376895546913147, -0.20405888557434082, 0.03162633627653122, 0.07972587645053864, -0.3758753538131714, 0.09870963543653488, -0.4445277452468872, -0.09356521815061569, -0.2680281400680542, 0.34572330117225647, -0.6255671381950378, 0.04970187321305275, 0.49530571699142456, 0.1604815125465393, 0.17925605177879333, -0.11266258358955383, 0.10161876678466797, -0.16635608673095703, 0.392347514629364, 0.3734779357910156, 0.2953830659389496, -0.24908241629600525, -0.1365756094455719, -0.8782833218574524, 0.21246176958084106, -0.06014886125922203, -0.14133335649967194, 0.008640515618026257, 0.4021163284778595, -0.158982515335083, -0.05696163326501846, 0.03873206675052643, 0.18297941982746124, 0.27975407242774963, 0.38658684492111206, -0.3127536475658417, 0.017484474927186966, -0.20167814195156097, -0.21430934965610504, 0.07669605314731598, -0.56822669506073, 0.055412210524082184, -0.3495190739631653, -0.026251761242747307, -0.11491814255714417, -0.16887617111206055, 0.0431208498775959, 0.10540200769901276, 0.7171451449394226, -0.10324905067682266, 0.3438671827316284, -0.33760586380958557, -0.22439688444137573, -0.32354918122291565, 0.1438738852739334, -0.11757247895002365, 0.42968180775642395, 0.15894238650798798, 0.7069984674453735, -0.05997893959283829, 0.29786160588264465, -0.2578023076057434, 0.25269901752471924, -0.10738280415534973, -0.09516775608062744, -0.1830519437789917, 0.1367325484752655, -0.02603071555495262, 0.3013846278190613, 0.12572716176509857, -0.034572117030620575, -0.1449996829032898, -0.17563670873641968, -0.5247730612754822, -0.5696104168891907, 0.5045586824417114, -0.08771023899316788, -0.10270987451076508, -0.32374265789985657, 0.4879237413406372, -0.2086920142173767, -0.12166581302881241, -0.590143620967865, 0.17068058252334595, 0.24194419384002686, 0.07760153710842133, -0.4300966262817383, 0.3080763816833496, 0.028877638280391693, -0.12481191754341125, -0.06242536008358002, 0.09060847014188766, 0.17266055941581726, -0.2636617124080658, 0.16279122233390808, -0.39467674493789673 ]
https://github.com/huggingface/datasets/issues/4000
load_dataset error: sndfile library not found
@albertvillanova thanks, all good. The key is ```libsndfile1``` - it may help others to note that in your docs. I had installed libsndfile previously.
## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0
24
load_dataset error: sndfile library not found ## Describe the bug Can't load ami dataset ## Steps to reproduce the bug ``` python3 -c "from datasets import load_dataset; print(load_dataset('ami', 'headset-single', split='validation')[0])" ``` ## Expected results ## Actual results Downloading and preparing dataset ami/headset-single (download: 10.71 GiB, generated: 49.99 MiB, post-processed: Unknown size, total: 10.76 GiB) to /home/neo/.cache/huggingface/datasets/ami/headset-single/1.6.2/2accdf810f7c0585f78f4bcfa47684fbb980e35d29ecf126e6906dbecb872d9e... AMI corpus cannot be downloaded using multi-processing. Setting number of downloaded processes `num_proc` to 1. 100%|██████████████████████████████████████████████████████| 136/136 [00:00<00:00, 36004.88it/s] 100%|█████████████████████████████████████████████████████████| 136/136 [00:01<00:00, 79.10it/s] 100%|████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 25343.23it/s] 100%|█████████████████████████████████████████████████████████| 18/18 [00:00<00:00, 2874.78it/s] 100%|████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 27950.38it/s] 100%|█████████████████████████████████████████████████████████| 16/16 [00:00<00:00, 2892.25it/s] Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/load.py", line 1707, in load_dataset use_auth_token=use_auth_token, File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 595, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/neo/.virtualenvs/hubert/lib/python3.7/site-packages/datasets/builder.py", line 690, in _download_and_prepare ) from None OSError: Cannot find data file. Original error: sndfile library not found ## 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-debian-10.11 - Python version: 3.7.3 - PyArrow version: 7.0.0 @albertvillanova thanks, all good. The key is ```libsndfile1``` - it may help others to note that in your docs. I had installed libsndfile previously.
[ -0.17908994853496552, -0.2704020142555237, -0.043067142367362976, 0.2871553301811218, 0.13970214128494263, -0.11794378608465195, 0.35235902667045593, 0.017088059335947037, 0.010731182992458344, 0.3843066096305847, -0.13333319127559662, 0.21345598995685577, 0.04716600850224495, 0.40751931071281433, 0.00832704734057188, 0.10307833552360535, 0.04074977710843086, 0.24462342262268066, 0.3290000557899475, 0.004969976842403412, -0.12485431879758835, 0.3498246371746063, -0.32425394654273987, -0.08556126058101654, -0.22500042617321014, -0.032368600368499756, -0.029567787423729897, 0.2735975980758667, -0.21733513474464417, -0.4320845305919647, 0.37543708086013794, -0.034343596547842026, -0.0005724523216485977, 0.3536970019340515, -0.00011029867164324969, 0.07564413547515869, 0.48437297344207764, -0.05241256579756737, -0.28109419345855713, -0.37548017501831055, -0.2990477383136749, 0.17079322040081024, 0.05564039200544357, -0.12729766964912415, -0.0896703228354454, -0.09879887104034424, -0.02114632911980152, -0.30692344903945923, 0.38571202754974365, 0.4192141592502594, 0.20165157318115234, 0.4719242751598358, 0.0024841688573360443, -0.3136753737926483, 0.39185336232185364, 0.22359518706798553, -0.14307846128940582, -0.015759311616420746, 0.024340186268091202, -0.01557018794119358, 0.17119303345680237, 0.40051180124282837, -0.02104184404015541, 0.18130359053611755, 0.2981662154197693, 0.019906863570213318, -0.04737591743469238, -0.2547491788864136, 0.20329278707504272, 0.22570499777793884, 0.45801541209220886, -0.0715908482670784, -0.3287923336029053, -0.007041852921247482, -0.015797290951013565, -0.26287221908569336, 0.13575215637683868, 0.0014609657227993011, -0.09577043354511261, -0.06823402643203735, -0.1837201565504074, -0.014700653962790966, 0.02612347900867462, 0.22061000764369965, -0.25631994009017944, 0.03353936970233917, -0.27284231781959534, 0.11222199350595474, 0.2719634473323822, 0.05406402051448822, 0.10837801545858383, 0.18004144728183746, 0.15206646919250488, 0.15127889811992645, -0.40314269065856934, 0.15351030230522156, 0.3604499101638794, -0.39670681953430176, 0.26390886306762695, 0.19832710921764374, -0.1928645223379135, -0.07722325623035431, -0.3029695451259613, 0.21310323476791382, 0.05344804376363754, -0.3638854920864105, -0.10548468679189682, -0.06628553569316864, 0.2241828888654709, 0.5549807548522949, 0.08793872594833374, -0.06542181223630905, -0.19850501418113708, -0.3651026785373688, 0.04726218059659004, 0.060963500291109085, 0.3458978533744812, -0.5050414204597473, -0.22421973943710327, 0.07461078464984894, -0.2025143802165985, 0.024073854088783264, -0.05953183397650719, 0.38877078890800476, 0.027543339878320694, 0.1846710741519928, 0.23820854723453522, 0.2061215192079544, -0.28859758377075195, 0.04045412316918373, -0.2543729543685913, 0.1079113781452179, -0.26767927408218384, 0.021623842418193817, 0.4254853129386902, -0.25474628806114197, 0.3628546893596649, -0.11480601131916046, 0.1227862611413002, -0.26971298456192017, 0.16159787774085999, -0.1530236303806305, 0.10144128650426865, 0.3675162196159363, 0.19298072159290314, 0.15936894714832306, -0.0706942081451416, 0.016791827976703644, -0.1436113566160202, -0.014977917075157166, -0.2849145829677582, -0.09055665880441666, -0.1537298560142517, 0.21514946222305298, 0.12774793803691864, 0.027852531522512436, 0.043363723903894424, -0.25121647119522095, 0.37224307656288147, -0.26436305046081543, -0.14173254370689392, -0.23409928381443024, -0.5231900215148926, -0.20244909822940826, 0.48601391911506653, 0.4526612162590027, -0.18094630539417267, -0.11750958859920502, -0.09732146561145782, -0.1824043095111847, 0.05565446615219116, 0.3241596817970276, -0.17936819791793823, -0.030729271471500397, -0.296332985162735, 0.27535390853881836, 0.08751697838306427, -0.43669068813323975, -0.4876019060611725, -0.1819707155227661, -0.06062457710504532, 0.0602048859000206, 0.11856576800346375, 0.0384039431810379, -0.10047569125890732, 0.021984834223985672, 0.253945529460907, 0.5031268000602722, -0.010713940486311913, -0.03289155289530754, -0.14543484151363373, -0.42632928490638733, -0.17369921505451202, 0.3224984109401703, 0.15061309933662415, -0.11537554115056992, 0.28067082166671753, -0.08707929402589798, 0.26244011521339417, -0.09733298420906067, 0.06307291239500046, 0.19091343879699707, 0.2295556366443634, -0.08014734089374542, 0.11842965334653854, -0.3240864872932434, -0.43570125102996826, 0.2677154541015625, -0.09489891678094864, 0.031699854880571365, -0.24208657443523407, -0.2039841264486313, -0.35265347361564636, -0.1650344878435135, -0.33218079805374146, -0.006500646471977234, 0.11427901685237885, 0.49850738048553467, 0.21771441400051117, 0.14496169984340668, -0.18971920013427734, 0.06387302279472351, 0.028919467702507973, -0.06468730419874191, -0.7150557637214661, 0.2665308713912964, -0.1898220181465149, -0.10719431191682816, 0.23951378464698792, 0.1517520546913147, 0.05491820350289345, 0.0787089541554451, -0.11842107027769089, 0.3453003764152527, 0.20225843787193298, 0.058391619473695755, -0.35182490944862366, -0.0001872926950454712, -0.004053907468914986, -0.323738157749176, 0.04360728710889816, -0.11927339434623718, -0.00441596657037735, -0.07722023129463196, -0.3086916506290436, 0.1236216202378273, -0.13075818121433258, 0.09514554589986801, 0.18231777846813202, -0.11569139361381531, 0.3125925660133362, -0.07350517064332962, 0.053158193826675415, -0.12732523679733276, -0.00991152599453926, -0.12059731781482697, 0.12049432098865509, -0.07258012145757675, -0.1821901500225067, -0.18929404020309448, 0.5792743563652039, 0.22026902437210083, -0.03934062272310257, -0.0393126904964447, -0.1610347330570221, -0.009344184771180153, 0.011630835942924023, 0.47164586186408997, 0.4803255796432495, 0.17797911167144775, 0.07911664247512817, -0.05154795944690704, 0.004868391901254654, -0.2172180414199829, 0.1703789383172989, 0.14710089564323425, 0.4880066215991974, 0.37805166840553284, 0.14792703092098236, 0.184689000248909, -0.3074479401111603, -0.32450127601623535, 0.0013329684734344482, 0.04570417478680611, -0.44134458899497986, 0.08144862949848175, -0.28384673595428467, -0.3137006163597107, -0.09449143707752228, 0.03615964204072952, -0.10591709613800049, 0.04145389050245285, -0.0931561291217804, 0.1386878341436386, 0.0960858017206192, 0.04659748822450638, 0.009004991501569748, 0.16650837659835815, 0.014105187729001045, -0.07537371665239334, -0.09714862704277039, 0.22705692052841187, -0.22960475087165833, 0.05411956086754799, 0.37134066224098206, 0.1780456304550171, 0.3578680455684662, -0.21452848613262177, -0.20056051015853882, -0.15037675201892853, -0.07083342224359512, 0.034140970557928085, 0.18609675765037537, 0.12924721837043762, 0.33669382333755493, 0.15004856884479523, -0.0667332336306572, -0.0899740681052208, 0.27958443760871887, -0.04817310720682144, -0.285025417804718, 0.11362342536449432, 0.06508643180131912, -0.13853725790977478, -0.358580619096756, -0.5579127669334412, -0.3380125164985657, -0.3663235306739807, -0.04986990988254547, 0.04040440544486046, 0.16943326592445374, 0.47324490547180176, 0.08876674622297287, 0.15245874226093292, 0.14451614022254944, 0.25557902455329895, -0.2897176444530487, -0.09814359247684479, 0.19305585324764252, -0.30115994811058044, -0.3549559414386749, -0.04832368716597557, 0.12165676057338715, 0.4563899636268616, 0.2100287675857544, -0.43649083375930786, -0.11724080890417099, -0.04702415317296982, -0.08850383758544922, -0.24994000792503357, 0.23601533472537994, 0.4074500799179077, 0.1290813535451889, -0.12429268658161163, -0.12000704556703568, -0.23995289206504822, 0.006245024502277374, -0.15665584802627563, 0.30837178230285645, -0.14988157153129578, 0.3840337097644806, 0.09507158398628235, 0.5298096537590027, 0.23536378145217896, -0.3481452167034149, 0.5521647930145264, -0.06838172674179077, 0.02109358087182045, -0.2291105091571808, -0.21412421762943268, 0.07813012599945068, -0.12700441479682922, 0.01881258562207222, 0.025776758790016174, -0.01333966851234436, -0.18516972661018372, -0.184875950217247, -0.06135556101799011, -0.2753080427646637, -0.08177059888839722, -0.10145344585180283, 0.2882515788078308, 0.3262507915496826, -0.027466505765914917, 0.06301071494817734, 0.2790857255458832, 0.10471151769161224, 0.24526453018188477, 0.21800684928894043, -0.000582575798034668, -0.04859934747219086, -0.3567245602607727, -0.06643606722354889, -0.16630995273590088, 0.17611642181873322, -0.03684520721435547, 0.2587992250919342, -0.0662168338894844, 0.07914301007986069, 0.16430288553237915, -0.33803653717041016, 0.8213408589363098, -0.2613058090209961, 0.24187025427818298, 0.3697148561477661, 0.2420525848865509, -0.2258998155593872, -0.1541520357131958, -0.3346180021762848, 0.15799547731876373, 0.03213239088654518, 0.4422744810581207, -0.16207194328308105, -0.1345662921667099, 0.3193739950656891, 0.2225748598575592, -0.06888992339372635, -0.05477391183376312, -0.3993506133556366, -0.3454325199127197, -0.5314345359802246, 0.13557745516300201, -0.07104160636663437, 0.31987956166267395, 0.026867737993597984, -0.28864723443984985, 0.08119310438632965, 0.02452913671731949, -0.03452911972999573, 0.2724258005619049, 0.32937803864479065, 0.3629221022129059, 0.37341994047164917, 0.15347443521022797, 0.21690486371517181, 0.5727987289428711, 0.6904041171073914, -0.005570884793996811, -0.3426516652107239, 0.05324988067150116, -0.04863759130239487, 0.28211668133735657, 0.20719528198242188, -0.0273321270942688, 0.047668226063251495, 0.31386491656303406, 0.09259603917598724, 0.015425405465066433, 0.06002958491444588, 0.4105706512928009, -0.11769388616085052, -0.1394832283258438, -0.3072565197944641, 0.34184834361076355, 0.034263405948877335, 0.07025489211082458, 0.1426355242729187, 0.1649596393108368, -0.10444379597902298, 0.34206998348236084, 0.0719515010714531, 0.7941672801971436, -0.06136499345302582, 0.054496075958013535, 0.3006097078323364, -0.21657367050647736, 0.5357986092567444, 0.012266639620065689, -0.026353120803833008, -0.31463053822517395, -0.0331084281206131, 0.08179529756307602, -0.16893865168094635, -0.12169020622968674, -0.04357258230447769, -0.2277173399925232, 0.09812814742326736, 0.09942159056663513, -0.6368506550788879, -0.019697898998856544, 0.48220276832580566, 0.26941266655921936, -0.3180781900882721, 0.18985390663146973, 0.09037359058856964, -0.11356815695762634, 0.34259986877441406, 0.003337634727358818, -0.06131190061569214, -0.029915953055024147, -0.1697576344013214, -0.17120611667633057, 0.3080235719680786, -0.25012311339378357, 0.19815152883529663, 0.18261203169822693, -0.036283351480960846, 0.37607821822166443, -0.04245037958025932, 0.07032608985900879, 0.2589297294616699, -0.24365368485450745, 0.15125298500061035, 0.01916755735874176, 0.008591927587985992, 0.06460526585578918, -0.19259557127952576, 0.3855217397212982, -0.17817723751068115, -0.37789225578308105, -0.05355074256658554, 0.005143514834344387, 0.024153970181941986, 0.2977987825870514, -0.03705424815416336, 0.3488351106643677, -0.1993160843849182, -0.32706889510154724, -0.06848447024822235, 0.08658106625080109, -0.24456070363521576, 0.1859181672334671, 0.1036599650979042, -0.09192854911088943, 0.15812352299690247, -0.09649364650249481, -0.09898796677589417, 0.09364806115627289, 0.5139011740684509, -0.05214746296405792, -0.24072480201721191, 0.3571926951408386, 0.37647515535354614, -0.16750508546829224, -0.2569650411605835, -0.291570246219635, -0.05670067295432091, -0.41395172476768494, 0.1468435376882553, 0.1565704494714737, 0.006051287055015564, -0.023062247782945633, 0.16970784962177277, 0.011372189968824387, -0.06281306594610214, 0.03324153646826744, -0.42653903365135193, -0.020904166623950005, 0.1503373384475708, -0.023737583309412003, 0.28819194436073303, 0.22515645623207092, -0.2516818642616272, 0.09118238091468811, 0.1103963628411293, -0.3268141746520996, 0.11208384484052658, -0.2939629554748535, 0.1811271607875824, -0.048035234212875366, -0.09346918016672134, 0.07678097486495972, -0.2518734335899353, 0.16525274515151978, 0.05621936917304993, -0.2075745314359665, -0.2605428695678711, -0.19407221674919128, 0.11586364358663559, -0.012515183538198471, -0.0428057461977005, 0.31275656819343567, -0.14282357692718506, -0.32092028856277466, -0.056805260479450226, 0.09060899913311005, 0.11433815211057663, -0.13015730679035187, 0.20404504239559174, 0.016967352479696274, -0.057570554316043854, -0.1385836899280548, 0.15755674242973328, -0.1011483371257782, -0.2803789973258972, -0.044598981738090515, 0.2606079578399658, -0.07896572351455688, -0.178538978099823, -0.22758221626281738, -0.06718512624502182, 0.047004301100969315, 0.03422576189041138, 0.07841126620769501, -0.32201582193374634, -0.3887525796890259, 0.06946194916963577, 0.3194076120853424, 0.3167323172092438, -0.32014980912208557, 0.1803250014781952, 0.14025196433067322, 0.2861284613609314, -0.3268760144710541, -0.1249859482049942, 0.06597542762756348, -0.06991555541753769, -0.035739727318286896, 0.14006932079792023, -0.009457428008317947, -0.2825186848640442, 0.08974187076091766, 0.13924843072891235, 0.1462799459695816, -0.1761910617351532, 0.011984959244728088, 0.03921090066432953, -0.0369507297873497, -0.024063613265752792, -0.019227297976613045, -0.2650320827960968, 0.17730918526649475, 0.5816264152526855, -0.1695874035358429, 0.14396876096725464, 0.10067054629325867, 0.2517462968826294, 0.015415579080581665, -0.34484490752220154, 0.042124830186367035, 0.010789379477500916, -0.17572423815727234, 0.09778261184692383, 0.0104752779006958, 0.2789306640625, 0.04406000301241875, -0.23008760809898376, -0.2636857330799103, 0.23127231001853943, -0.10657007247209549, -0.061630479991436005, -0.35554149746894836, -0.02660975232720375, -0.2263423502445221, 0.09384700655937195, 0.0063364580273628235, -0.0007111877202987671, 0.14839665591716766, 0.21813592314720154, -0.27424156665802, -0.14264941215515137, -0.19952911138534546, 0.12033434212207794, 0.19997572898864746, -0.3994296193122864, 0.3342706561088562, 0.21594871580600739, -0.11087983846664429, -0.0578104667365551, 0.255978524684906, 0.4459254741668701, 0.2802334427833557, 0.18585698306560516, 0.0712096095085144, 0.035455167293548584, -0.032570865005254745, 0.005647899582982063, 0.08224628120660782, 0.08669238537549973, 0.3283849358558655, 0.29142090678215027, 0.1601269394159317, -0.2376895546913147, -0.20405888557434082, 0.03162633627653122, 0.07972587645053864, -0.3758753538131714, 0.09870963543653488, -0.4445277452468872, -0.09356521815061569, -0.2680281400680542, 0.34572330117225647, -0.6255671381950378, 0.04970187321305275, 0.49530571699142456, 0.1604815125465393, 0.17925605177879333, -0.11266258358955383, 0.10161876678466797, -0.16635608673095703, 0.392347514629364, 0.3734779357910156, 0.2953830659389496, -0.24908241629600525, -0.1365756094455719, -0.8782833218574524, 0.21246176958084106, -0.06014886125922203, -0.14133335649967194, 0.008640515618026257, 0.4021163284778595, -0.158982515335083, -0.05696163326501846, 0.03873206675052643, 0.18297941982746124, 0.27975407242774963, 0.38658684492111206, -0.3127536475658417, 0.017484474927186966, -0.20167814195156097, -0.21430934965610504, 0.07669605314731598, -0.56822669506073, 0.055412210524082184, -0.3495190739631653, -0.026251761242747307, -0.11491814255714417, -0.16887617111206055, 0.0431208498775959, 0.10540200769901276, 0.7171451449394226, -0.10324905067682266, 0.3438671827316284, -0.33760586380958557, -0.22439688444137573, -0.32354918122291565, 0.1438738852739334, -0.11757247895002365, 0.42968180775642395, 0.15894238650798798, 0.7069984674453735, -0.05997893959283829, 0.29786160588264465, -0.2578023076057434, 0.25269901752471924, -0.10738280415534973, -0.09516775608062744, -0.1830519437789917, 0.1367325484752655, -0.02603071555495262, 0.3013846278190613, 0.12572716176509857, -0.034572117030620575, -0.1449996829032898, -0.17563670873641968, -0.5247730612754822, -0.5696104168891907, 0.5045586824417114, -0.08771023899316788, -0.10270987451076508, -0.32374265789985657, 0.4879237413406372, -0.2086920142173767, -0.12166581302881241, -0.590143620967865, 0.17068058252334595, 0.24194419384002686, 0.07760153710842133, -0.4300966262817383, 0.3080763816833496, 0.028877638280391693, -0.12481191754341125, -0.06242536008358002, 0.09060847014188766, 0.17266055941581726, -0.2636617124080658, 0.16279122233390808, -0.39467674493789673 ]
https://github.com/huggingface/datasets/issues/3996
Audio.encode_example() throws an error when writing example from array
Thanks @polinaeterna for reporting this issue. In relation to the decoding of MP3 audio files without torchaudio, I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. But yes, nice to give an alternative to non-torchaudio users (with a big warning on performance).
## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? 🤗
57
Audio.encode_example() throws an error when writing example from array ## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? 🤗 Thanks @polinaeterna for reporting this issue. In relation to the decoding of MP3 audio files without torchaudio, I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. But yes, nice to give an alternative to non-torchaudio users (with a big warning on performance).
[ 0.12180823087692261, -0.3153699040412903, -0.025126606225967407, 0.22081954777240753, 0.49100983142852783, -0.12690553069114685, 0.36224645376205444, 0.06903745234012604, -0.06979646533727646, 0.4098414182662964, -0.12194308638572693, 0.2596229314804077, -0.18401435017585754, 0.18375784158706665, 0.0004701036959886551, -0.18546949326992035, 0.13992640376091003, 0.30478715896606445, -0.03321237862110138, 0.012240521609783173, -0.05598415806889534, 0.2753951847553253, -0.297770231962204, 0.12256351113319397, -0.14762845635414124, 0.03262855112552643, -0.1087772473692894, 0.24426645040512085, -0.37606966495513916, -0.2263278067111969, 0.1469540297985077, -0.3730884790420532, 0.03528275713324547, 0.20896518230438232, -0.00011066936713177711, -0.23028993606567383, 0.2500789761543274, -0.32997265458106995, -0.33608895540237427, -0.2955343723297119, -0.13379567861557007, 0.07789172232151031, -0.15357114374637604, -0.19147434830665588, 0.06324786692857742, -0.22263363003730774, -0.04596178978681564, -0.39979884028434753, 0.44155770540237427, 0.23560601472854614, 0.23872187733650208, 0.18793316185474396, 0.3045259118080139, -0.17471851408481598, 0.07128393650054932, 0.46774786710739136, -0.04648962616920471, 0.3073353171348572, 0.08854642510414124, 0.2884359061717987, 0.30687007308006287, 0.22655171155929565, -0.1636429727077484, 0.10057717561721802, 0.20817187428474426, 0.10910456627607346, -0.20389661192893982, -0.06768860667943954, 0.03352781757712364, 0.3791518807411194, 0.24108752608299255, -0.4096507132053375, -0.5086686015129089, 0.05544981360435486, -0.08242328464984894, -0.30402234196662903, 0.1220308244228363, 0.33269569277763367, -0.10678741335868835, 0.24353577196598053, -0.28188374638557434, 0.29335615038871765, -0.10901109129190445, 0.23386116325855255, 0.5219508409500122, -0.27485811710357666, -0.4490923285484314, 0.02871539071202278, 0.38187649846076965, -0.27883684635162354, -0.15785463154315948, -0.1685667783021927, -0.016566868871450424, 0.30287662148475647, 0.03241636976599693, -0.0854921042919159, -0.34151867032051086, -0.21152222156524658, 0.13881471753120422, -0.14342455565929413, 0.1140647605061531, 0.09296810626983643, -0.015558978542685509, 0.3471778929233551, -0.053362008184194565, 0.2396455556154251, 0.18495264649391174, -0.16219548881053925, -0.028434716165065765, 0.2236260622739792, 0.32307589054107666, -0.13054072856903076, -0.19934383034706116, 0.04571561515331268, 0.06738197803497314, 0.053808316588401794, 0.17902666330337524, -0.1509431004524231, -0.3317885994911194, 0.08167104423046112, -0.5892868638038635, -0.08355186879634857, 0.06717287003993988, 0.3148787319660187, 0.23093129694461823, -0.1440933644771576, 0.10738638043403625, 0.46006739139556885, -0.09977731108665466, 0.1100563332438469, -0.07217113673686981, 0.1662949025630951, -0.031628936529159546, 0.08399972319602966, 0.14466014504432678, 0.03572790324687958, 0.5193279981613159, 0.07692558318376541, 0.20928436517715454, -0.3351914584636688, 0.09830597788095474, -0.013025489635765553, 0.34930798411369324, 0.08105820417404175, 0.09280319511890411, 0.24367572367191315, 0.05346974357962608, 0.07732933759689331, -0.17054849863052368, 0.04157710447907448, -0.20834708213806152, -0.18102234601974487, -0.15556927025318146, 0.21609392762184143, -0.22039389610290527, 0.2011285424232483, -0.033569060266017914, -0.22077886760234833, 0.254732221364975, -0.5286765694618225, -0.034288279712200165, -0.03557102382183075, -0.18407577276229858, -0.19283688068389893, 0.4238458275794983, 0.14075499773025513, 0.07559236884117126, 0.0048322901129722595, 0.03452722355723381, 0.09793898463249207, 0.3284038305282593, 0.17426133155822754, -0.04313120245933533, 0.09800545871257782, -0.2051171213388443, 0.4213636517524719, 0.17075781524181366, -0.19174440205097198, -0.21947099268436432, 0.14282935857772827, 0.1458832025527954, 0.1055014505982399, 0.2473067045211792, 0.09455079585313797, 0.1255229413509369, -0.026878144592046738, 0.04409550130367279, 0.36066460609436035, 0.07625599950551987, 0.08193974196910858, -0.12392650544643402, -0.4092184603214264, -0.16258907318115234, -0.10670585930347443, -0.6740275621414185, 0.02671007066965103, 0.010981425642967224, 0.24530886113643646, 0.2561410367488861, -0.36377355456352234, 0.12065955251455307, 0.26281529664993286, 0.3651750087738037, -0.24536459147930145, 0.025971636176109314, -0.3658708333969116, 0.1783522218465805, -0.17122605443000793, -0.10967185348272324, -0.08074578642845154, -0.1965280920267105, -0.20243127644062042, -0.1425851285457611, -0.12276118248701096, -0.35218971967697144, -0.18070116639137268, 0.10419188439846039, 0.267712265253067, 0.05898027494549751, -0.03753294795751572, -0.1289239227771759, -0.15515799820423126, 0.03656301647424698, -0.08210529386997223, -0.5538231730461121, -0.03758200630545616, -0.1610381007194519, -0.3899345397949219, 0.029638968408107758, 0.23339000344276428, 0.11090702563524246, -0.05794531852006912, -0.3029184341430664, 0.5065861940383911, 0.083440862596035, 0.26276203989982605, -0.4672824442386627, -0.017157062888145447, 0.05511598289012909, -0.2094910442829132, 0.28993770480155945, 0.36476802825927734, 0.2582545280456543, -0.013560909777879715, -0.23013338446617126, 0.5189659595489502, 0.07967767119407654, 0.156034916639328, 0.20468489825725555, -0.0782814472913742, 0.060116514563560486, 0.28298628330230713, -0.20817936956882477, -0.10310279577970505, 0.10385265201330185, -0.24632428586483002, 0.18740743398666382, -0.11556346714496613, -0.18478919565677643, -0.2285652756690979, 0.5576852560043335, -0.10055415332317352, 0.08574660867452621, 0.006924629211425781, -0.153946191072464, -0.1212804988026619, 0.09540719538927078, -0.13117194175720215, 0.3550002872943878, 0.11857961863279343, 0.08225587010383606, 0.009448716416954994, 0.03287534788250923, -0.09874419867992401, 0.25287699699401855, -0.03087952733039856, 0.041550420224666595, 0.1012948751449585, -0.04100475087761879, -0.013728239573538303, -0.3948880136013031, -0.1583189070224762, -0.2758231461048126, 0.007071401923894882, -0.36627674102783203, 0.10480355471372604, -0.3056855797767639, -0.04412916302680969, -0.5253922343254089, -0.39480963349342346, 0.08586002886295319, 0.06648693233728409, -0.15963512659072876, 0.3136153817176819, -0.2209746241569519, 0.1382654905319214, 0.5042650699615479, -0.11462344229221344, 0.13337014615535736, 0.24383868277072906, 0.1451636105775833, 0.3574589192867279, -0.11027400940656662, 0.06720182299613953, 0.24821294844150543, 0.12409605085849762, -0.0194032434374094, -0.05984075367450714, -0.1654975861310959, 0.0072794109582901, -0.07321005314588547, 0.02610177919268608, 0.16122949123382568, 0.2876838743686676, 0.12926937639713287, 0.12757840752601624, -0.08118660748004913, -0.5579063296318054, 0.3090573251247406, -0.11943821609020233, -0.2441386729478836, 0.3095247447490692, 0.18519659340381622, -0.06603170931339264, -0.500734269618988, -0.34393036365509033, -0.13765102624893188, -0.2415705770254135, 0.2942238450050354, -0.3354041576385498, 0.3330838680267334, 0.25183773040771484, 0.2653980851173401, 0.3332059383392334, -0.17529304325580597, 0.18492887914180756, -0.19053936004638672, -0.10471498966217041, 0.14401797950267792, -0.260104775428772, -0.29953083395957947, -0.07892369478940964, -0.03745270520448685, 0.09710568189620972, 0.0700358897447586, 0.2139168530702591, -0.3253251016139984, -0.10683898627758026, -0.3951169550418854, -0.20599022507667542, 0.2482340931892395, 0.06473763287067413, -0.02782572992146015, 0.004443334415555, -0.15088482201099396, -0.21351946890354156, 0.29471704363822937, -0.0426410436630249, 0.056101780384778976, 0.024517590180039406, 0.5369031429290771, 0.004094012081623077, 0.15444548428058624, 0.3967120051383972, 0.08983621001243591, 0.32591405510902405, -0.0999680832028389, 0.09960168600082397, -0.2350815236568451, -0.13467055559158325, 0.16424264013767242, 0.00903390347957611, -0.28500205278396606, 0.0600544735789299, 0.05218733847141266, 0.14491115510463715, 0.14600497484207153, 0.24440070986747742, -0.17413005232810974, -0.08582007884979248, 0.12016639858484268, 0.12444619834423065, 0.09120680391788483, -0.1609354466199875, 0.28952842950820923, 0.13342899084091187, 0.1700609028339386, -0.2252696305513382, 0.08926816284656525, 0.19016340374946594, 0.04764391854405403, -0.3796045184135437, -0.438077449798584, -0.05282951146364212, 0.29187971353530884, 0.32240039110183716, 0.6408430337905884, -0.15368297696113586, -0.12658172845840454, 0.09102699160575867, 0.12466499954462051, 0.40629756450653076, 0.08814800530672073, -0.21070770919322968, -0.1136975884437561, 0.324786514043808, -0.3538900315761566, -0.12325002253055573, -0.3087654411792755, 0.3145838975906372, 0.055955030024051666, 0.13188165426254272, -0.19145411252975464, 0.07627663016319275, 0.30829891562461853, 0.3927289545536041, 0.14252953231334686, 0.04533924534916878, -0.13231559097766876, -0.4751458466053009, -0.5912303924560547, -0.08606871217489243, 0.06746344268321991, 0.23872151970863342, 0.06504139304161072, -0.0534299872815609, 0.31664034724235535, 0.12267637997865677, 0.28155964612960815, -0.07772080600261688, 0.5459548830986023, -0.10579493641853333, -0.03499466925859451, -0.0216287262737751, -0.09292276203632355, 0.19940759241580963, 0.19430121779441833, 0.23549909889698029, 0.20089606940746307, 0.1316884607076645, -0.2983616292476654, 0.2535743713378906, 0.34923115372657776, 0.06005473434925079, 0.053668491542339325, 0.3580780327320099, -0.09408028423786163, -0.11572413891553879, -0.07268082350492477, 0.5044254660606384, -0.04956808313727379, -0.08721667528152466, -0.3546782433986664, 0.3251669108867645, -0.019996976479887962, 0.13884034752845764, 0.213034525513649, 0.1271076649427414, -0.13492219150066376, 0.30518853664398193, -0.15477254986763, 0.8499872088432312, 0.03789767622947693, 0.14336435496807098, 0.49312466382980347, -0.23627899587154388, -0.1389589160680771, 0.2695140242576599, 0.16438056528568268, -0.11378674954175949, 0.0020051049068570137, 0.062146179378032684, -0.1258871853351593, 0.28320977091789246, 0.059952978044748306, -0.4243088662624359, 0.14273594319820404, -0.18105626106262207, 0.3606696128845215, -0.03028574399650097, -0.06567688286304474, -0.6879404187202454, -0.29759278893470764, -0.3547007441520691, 0.09935711324214935, 0.19742070138454437, -0.03703511878848076, 0.218423992395401, -0.49450623989105225, -0.16813763976097107, -0.350911021232605, -0.1148112565279007, 0.23985043168067932, -0.2527295649051666, -0.09130366146564484, -0.06765463948249817, -0.20057626068592072, 0.07477563619613647, 0.010129611939191818, 0.11357879638671875, 0.24753592908382416, -0.07497049868106842, -0.3024786412715912, -0.25343218445777893, 0.33496713638305664, -0.19025081396102905, -0.019949082285165787, 0.050402864813804626, -0.12664629518985748, -0.18026819825172424, 0.08179359883069992, 0.08590944111347198, 0.03129379451274872, -0.0444302037358284, -0.09071299433708191, 0.02141321450471878, -0.3645024597644806, -0.5255662798881531, -0.16309304535388947, -0.11876809597015381, -0.17254231870174408, 0.1802332103252411, 0.1277468502521515, -0.6301133036613464, 0.10464788228273392, -0.032905105501413345, -0.02003401517868042, -0.0813768208026886, 0.3146170377731323, 0.14850002527236938, 0.024284258484840393, 0.6454490423202515, -0.19788646697998047, 0.029179781675338745, -0.15008790791034698, 0.18263110518455505, 0.0783948302268982, -0.3819465637207031, 0.036500658839941025, -0.04580891877412796, -0.14384667575359344, -0.08504603058099747, 0.06785812228918076, -0.14628815650939941, 0.2408922016620636, -0.21801137924194336, -0.17207437753677368, -0.28186488151550293, 0.25657469034194946, 0.164784774184227, 0.2669833302497864, -0.15965399146080017, 0.050977569073438644, -0.09496989846229553, -0.21577508747577667, -0.31984925270080566, 0.16462908685207367, -0.04507075995206833, 0.33677440881729126, -0.10024666041135788, 0.04853883385658264, 0.17443625628948212, -0.14316082000732422, 0.18866026401519775, 0.21741192042827606, -0.3829726576805115, -0.11371463537216187, 0.0018715504556894302, 0.1176692321896553, -0.048184141516685486, -0.3058466911315918, -0.010056113824248314, 0.035949353128671646, -0.15157721936702728, -0.281177282333374, 0.0054377783089876175, 0.08779758960008621, -0.014779515564441681, 0.09782596677541733, -0.24227334558963776, 0.30053168535232544, 0.13972792029380798, -0.2745327055454254, -0.2428879737854004, 0.01223907619714737, -0.02545030787587166, -0.06855238229036331, -0.17084623873233795, -0.10590091347694397, -0.037102699279785156, 0.07767508178949356, -0.028596341609954834, -0.06731773167848587, 0.1855233907699585, -0.2676125168800354, 0.08063362538814545, 0.06742686033248901, 0.5945366621017456, 0.0405876561999321, -0.2567140460014343, 0.053158797323703766, 0.0788833349943161, 0.25073176622390747, 0.15502597391605377, 0.19303175806999207, 0.06661754101514816, -0.40558725595474243, -0.15457646548748016, 0.26090213656425476, 0.16777904331684113, -0.057871263474226, 0.22842147946357727, -0.15676960349082947, 0.2704318165779114, 0.08941693603992462, 0.09899605810642242, 0.32744860649108887, -0.23261262476444244, 0.17884071171283722, -0.16750279068946838, -0.23616740107536316, 0.4896131753921509, 0.22028037905693054, -0.4780781865119934, 0.6226850152015686, 0.13316333293914795, -0.13349300622940063, 0.2241213619709015, -0.3880477249622345, -0.22537778317928314, 0.06695098429918289, 0.3199886381626129, 0.4373656213283539, 0.16704684495925903, 0.4606550335884094, -0.8908779621124268, -0.19603508710861206, 0.0030250996351242065, -0.017865091562271118, -0.10599132627248764, -0.05885598063468933, 0.10461534559726715, -0.038384273648262024, -0.24142614006996155, -0.18605473637580872, -0.06612570583820343, 0.21517005562782288, 0.04981493577361107, -0.055949822068214417, 0.04156777635216713, -0.044130854308605194, -0.15919709205627441, 0.14241808652877808, 0.25483402609825134, -0.3441069424152374, 0.22892364859580994, 0.4074862599372864, -0.07493257522583008, -0.006950438022613525, 0.3395501971244812, 0.6201726198196411, 0.37076523900032043, 0.14795537292957306, 0.30416491627693176, -0.2396519035100937, -0.11584893614053726, 0.13268524408340454, 0.0976051390171051, 0.2938636541366577, 0.13650961220264435, 0.08358737826347351, 0.17290745675563812, -0.14305536448955536, -0.000851798802614212, 0.3146737813949585, 0.28879010677337646, -0.29601043462753296, 0.060810912400484085, -0.5431630611419678, 0.050188615918159485, -0.22547399997711182, -0.20883136987686157, -0.5357286334037781, 0.16212719678878784, 0.0945083349943161, 0.08348832279443741, 0.09950057417154312, 0.18823565542697906, 0.06461647897958755, -0.02672119066119194, 0.19890861213207245, 0.349752277135849, 0.062627874314785, -0.1306116282939911, -0.09865113347768784, -0.357476145029068, 0.0009948685765266418, 0.03145958110690117, 0.2862075865268707, -0.05712330341339111, 0.02668333612382412, 0.14353083074092865, -0.0593012198805809, 0.04255589842796326, -0.0766802579164505, -0.019356584176421165, 0.1502918154001236, -0.16950002312660217, -0.23422430455684662, 0.2073594629764557, -0.05407725274562836, 0.05676060914993286, -0.5042083263397217, 0.13744112849235535, -0.3806077837944031, 0.12637320160865784, -0.0471939742565155, 0.15779553353786469, -0.5429626107215881, -0.19452255964279175, 0.1125839501619339, 0.16042160987854004, 0.14802514016628265, -0.29535728693008423, -0.4412279725074768, -0.06195076182484627, 0.05647745728492737, 0.10055624693632126, -0.002501174807548523, -0.03812279924750328, 0.7926676273345947, 0.026585334911942482, 0.05192643404006958, -0.42094871401786804, 0.6156343817710876, -0.13914671540260315, -0.18469969928264618, -0.24497874081134796, 0.29694661498069763, -0.4812518358230591, -0.03938809037208557, 0.04412142559885979, -0.02848246693611145, -0.027059167623519897, 0.31056150794029236, -0.28540587425231934, -0.0550219863653183, 0.5836778879165649, 0.07090496271848679, -0.1253315508365631, 0.021945379674434662, 0.293349027633667, 0.07981635630130768, 0.025771796703338623, -0.8609779477119446, 0.14443805813789368, 0.0631551742553711, -0.04539300501346588, -0.0369478240609169, 0.26675742864608765, -0.12959910929203033, -0.14665281772613525, 0.08741973340511322, 0.2568252682685852, 0.18578851222991943, -0.32269108295440674, 0.3364757299423218, -0.37617915868759155 ]
https://github.com/huggingface/datasets/issues/3996
Audio.encode_example() throws an error when writing example from array
> I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. Yeah, I know, but as far as I understand, some users just categorically don't want to have torchaudio in their environment. Anyway, it's just a more or less random example, they can use any library they like following the same logic (I'm just not a big expert in decoding utils so if you can give me some presentation / resources about that I would really appreciate it 🤗)
## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? 🤗
93
Audio.encode_example() throws an error when writing example from array ## Describe the bug When trying to do `Audio().encode_example()` with preexisting array (see [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L73)), `sf.write()` throws you an error: `TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7f4218c0db30>` ## Steps to reproduce the bug ### Sample code to reproduce the bug ```python # download sample file !wget https://huggingface.co/datasets/polinaeterna/test_encode_example/resolve/main/common_voice_vi_21824030.mp3 arr, sr = librosa.load("common_voice_vi_21824030.mp3") Audio().encode_example({ "path": "common_voice_vi_21824030.mp3", "array": arr, "sampling_rate":sr }) ``` ## Expected results An encoded example (`{"bytes": b'....', "path": 'path'}`) ## Actual results ```python TypeError Traceback (most recent call last) Input In [3], in <module> 1 arr, sr = librosa.load("common_voice_vi_21824030.mp3") ----> 3 Audio().encode_example({ 4 "path": "common_voice_vi_21824030.mp3", 5 "array": arr, 6 "sampling_rate":sr 7 }) File ~/workspace/datasets/src/datasets/features/audio.py:75, in Audio.encode_example(self, value) 73 elif isinstance(value, dict) and "array" in value: 74 buffer = BytesIO() ---> 75 sf.write(buffer, value["array"], value["sampling_rate"]) 76 return {"bytes": buffer.getvalue(), "path": value.get("path")} 77 elif value.get("bytes") is not None or value.get("path") is not None: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:314, in write(file, data, samplerate, subtype, endian, format, closefd) 312 else: 313 channels = data.shape[1] --> 314 with SoundFile(file, 'w', samplerate, channels, 315 subtype, endian, format, closefd) as f: 316 f.write(data) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:627, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 625 mode_int = _check_mode(mode) 626 self._mode = mode --> 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1416, in _create_info_struct(file, mode, samplerate, channels, format, subtype, endian) 1414 original_format = format 1415 if format is None: -> 1416 format = _get_format_from_filename(file, mode) 1417 assert isinstance(format, (_unicode, str)) 1418 else: File ~/miniconda3/envs/datasets/lib/python3.8/site-packages/soundfile.py:1457, in _get_format_from_filename(file, mode) 1455 pass 1456 if format.upper() not in _formats and 'r' not in mode: -> 1457 raise TypeError("No format specified and unable to get format from " 1458 "file extension: {0!r}".format(file)) 1459 return format TypeError: No format specified and unable to get format from file extension: <_io.BytesIO object at 0x7fd8daf88180> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets master - Platform: Ubuntu 20.04 - Python version: python 3.8.12 - PyArrow version: 6.0.1 ## Solution I guess we just need to add `format` arg in [this line](https://github.com/huggingface/datasets/blob/master/src/datasets/features/audio.py#L75) like this: ```python sf.write(buffer, value["array"], value["sampling_rate"], format="wav") ``` BTW discovered this when trying to decode audio in mp3 format without torchaudio (would be useful for TensorFlow users), like this: ```python from datasets import load_dataset, Features, Audio ds = load_dataset("common_voice", "vi", split="test") ds = ds.remove_columns("audio") ds.select(range(3)) # 3 samples just for testing def load_mp3_with_librosa(example): arr, sr = librosa.load(example["path"]) example["audio"] = { "path": example["path"], "array": arr, "sampling_rate": sr } return example updated_dataset = ds.map(lambda example: load_mp3_with_librosa(example), features=Features( {"audio": Audio(decode=False)} )) ``` @lhoestq @mariosasko @albertvillanova am I right in my logic? do we agree that we can set wav as the format? 🤗 > I remember Patrick made some tests and these had quite bad performance. That is why he proposed to support MP3 files only with torchaudio. Yeah, I know, but as far as I understand, some users just categorically don't want to have torchaudio in their environment. Anyway, it's just a more or less random example, they can use any library they like following the same logic (I'm just not a big expert in decoding utils so if you can give me some presentation / resources about that I would really appreciate it 🤗)
[ 0.12180823087692261, -0.3153699040412903, -0.025126606225967407, 0.22081954777240753, 0.49100983142852783, -0.12690553069114685, 0.36224645376205444, 0.06903745234012604, -0.06979646533727646, 0.4098414182662964, -0.12194308638572693, 0.2596229314804077, -0.18401435017585754, 0.18375784158706665, 0.0004701036959886551, -0.18546949326992035, 0.13992640376091003, 0.30478715896606445, -0.03321237862110138, 0.012240521609783173, -0.05598415806889534, 0.2753951847553253, -0.297770231962204, 0.12256351113319397, -0.14762845635414124, 0.03262855112552643, -0.1087772473692894, 0.24426645040512085, -0.37606966495513916, -0.2263278067111969, 0.1469540297985077, -0.3730884790420532, 0.03528275713324547, 0.20896518230438232, -0.00011066936713177711, -0.23028993606567383, 0.2500789761543274, -0.32997265458106995, -0.33608895540237427, -0.2955343723297119, -0.13379567861557007, 0.07789172232151031, -0.15357114374637604, -0.19147434830665588, 0.06324786692857742, -0.22263363003730774, -0.04596178978681564, -0.39979884028434753, 0.44155770540237427, 0.23560601472854614, 0.23872187733650208, 0.18793316185474396, 0.3045259118080139, -0.17471851408481598, 0.07128393650054932, 0.46774786710739136, -0.04648962616920471, 0.3073353171348572, 0.08854642510414124, 0.2884359061717987, 0.30687007308006287, 0.22655171155929565, -0.1636429727077484, 0.10057717561721802, 0.20817187428474426, 0.10910456627607346, -0.20389661192893982, -0.06768860667943954, 0.03352781757712364, 0.3791518807411194, 0.24108752608299255, -0.4096507132053375, -0.5086686015129089, 0.05544981360435486, -0.08242328464984894, -0.30402234196662903, 0.1220308244228363, 0.33269569277763367, -0.10678741335868835, 0.24353577196598053, -0.28188374638557434, 0.29335615038871765, -0.10901109129190445, 0.23386116325855255, 0.5219508409500122, -0.27485811710357666, -0.4490923285484314, 0.02871539071202278, 0.38187649846076965, -0.27883684635162354, -0.15785463154315948, -0.1685667783021927, -0.016566868871450424, 0.30287662148475647, 0.03241636976599693, -0.0854921042919159, -0.34151867032051086, -0.21152222156524658, 0.13881471753120422, -0.14342455565929413, 0.1140647605061531, 0.09296810626983643, -0.015558978542685509, 0.3471778929233551, -0.053362008184194565, 0.2396455556154251, 0.18495264649391174, -0.16219548881053925, -0.028434716165065765, 0.2236260622739792, 0.32307589054107666, -0.13054072856903076, -0.19934383034706116, 0.04571561515331268, 0.06738197803497314, 0.053808316588401794, 0.17902666330337524, -0.1509431004524231, -0.3317885994911194, 0.08167104423046112, -0.5892868638038635, -0.08355186879634857, 0.06717287003993988, 0.3148787319660187, 0.23093129694461823, -0.1440933644771576, 0.10738638043403625, 0.46006739139556885, -0.09977731108665466, 0.1100563332438469, -0.07217113673686981, 0.1662949025630951, -0.031628936529159546, 0.08399972319602966, 0.14466014504432678, 0.03572790324687958, 0.5193279981613159, 0.07692558318376541, 0.20928436517715454, -0.3351914584636688, 0.09830597788095474, -0.013025489635765553, 0.34930798411369324, 0.08105820417404175, 0.09280319511890411, 0.24367572367191315, 0.05346974357962608, 0.07732933759689331, -0.17054849863052368, 0.04157710447907448, -0.20834708213806152, -0.18102234601974487, -0.15556927025318146, 0.21609392762184143, -0.22039389610290527, 0.2011285424232483, -0.033569060266017914, -0.22077886760234833, 0.254732221364975, -0.5286765694618225, -0.034288279712200165, -0.03557102382183075, -0.18407577276229858, -0.19283688068389893, 0.4238458275794983, 0.14075499773025513, 0.07559236884117126, 0.0048322901129722595, 0.03452722355723381, 0.09793898463249207, 0.3284038305282593, 0.17426133155822754, -0.04313120245933533, 0.09800545871257782, -0.2051171213388443, 0.4213636517524719, 0.17075781524181366, -0.19174440205097198, -0.21947099268436432, 0.14282935857772827, 0.1458832025527954, 0.1055014505982399, 0.2473067045211792, 0.09455079585313797, 0.1255229413509369, -0.026878144592046738, 0.04409550130367279, 0.36066460609436035, 0.07625599950551987, 0.08193974196910858, -0.12392650544643402, -0.4092184603214264, -0.16258907318115234, -0.10670585930347443, -0.6740275621414185, 0.02671007066965103, 0.010981425642967224, 0.24530886113643646, 0.2561410367488861, -0.36377355456352234, 0.12065955251455307, 0.26281529664993286, 0.3651750087738037, -0.24536459147930145, 0.025971636176109314, -0.3658708333969116, 0.1783522218465805, -0.17122605443000793, -0.10967185348272324, -0.08074578642845154, -0.1965280920267105, -0.20243127644062042, -0.1425851285457611, -0.12276118248701096, -0.35218971967697144, -0.18070116639137268, 0.10419188439846039, 0.267712265253067, 0.05898027494549751, -0.03753294795751572, -0.1289239227771759, -0.15515799820423126, 0.03656301647424698, -0.08210529386997223, -0.5538231730461121, -0.03758200630545616, -0.1610381007194519, -0.3899345397949219, 0.029638968408107758, 0.23339000344276428, 0.11090702563524246, -0.05794531852006912, -0.3029184341430664, 0.5065861940383911, 0.083440862596035, 0.26276203989982605, -0.4672824442386627, -0.017157062888145447, 0.05511598289012909, -0.2094910442829132, 0.28993770480155945, 0.36476802825927734, 0.2582545280456543, -0.013560909777879715, -0.23013338446617126, 0.5189659595489502, 0.07967767119407654, 0.156034916639328, 0.20468489825725555, -0.0782814472913742, 0.060116514563560486, 0.28298628330230713, -0.20817936956882477, -0.10310279577970505, 0.10385265201330185, -0.24632428586483002, 0.18740743398666382, -0.11556346714496613, -0.18478919565677643, -0.2285652756690979, 0.5576852560043335, -0.10055415332317352, 0.08574660867452621, 0.006924629211425781, -0.153946191072464, -0.1212804988026619, 0.09540719538927078, -0.13117194175720215, 0.3550002872943878, 0.11857961863279343, 0.08225587010383606, 0.009448716416954994, 0.03287534788250923, -0.09874419867992401, 0.25287699699401855, -0.03087952733039856, 0.041550420224666595, 0.1012948751449585, -0.04100475087761879, -0.013728239573538303, -0.3948880136013031, -0.1583189070224762, -0.2758231461048126, 0.007071401923894882, -0.36627674102783203, 0.10480355471372604, -0.3056855797767639, -0.04412916302680969, -0.5253922343254089, -0.39480963349342346, 0.08586002886295319, 0.06648693233728409, -0.15963512659072876, 0.3136153817176819, -0.2209746241569519, 0.1382654905319214, 0.5042650699615479, -0.11462344229221344, 0.13337014615535736, 0.24383868277072906, 0.1451636105775833, 0.3574589192867279, -0.11027400940656662, 0.06720182299613953, 0.24821294844150543, 0.12409605085849762, -0.0194032434374094, -0.05984075367450714, -0.1654975861310959, 0.0072794109582901, -0.07321005314588547, 0.02610177919268608, 0.16122949123382568, 0.2876838743686676, 0.12926937639713287, 0.12757840752601624, -0.08118660748004913, -0.5579063296318054, 0.3090573251247406, -0.11943821609020233, -0.2441386729478836, 0.3095247447490692, 0.18519659340381622, -0.06603170931339264, -0.500734269618988, -0.34393036365509033, -0.13765102624893188, -0.2415705770254135, 0.2942238450050354, -0.3354041576385498, 0.3330838680267334, 0.25183773040771484, 0.2653980851173401, 0.3332059383392334, -0.17529304325580597, 0.18492887914180756, -0.19053936004638672, -0.10471498966217041, 0.14401797950267792, -0.260104775428772, -0.29953083395957947, -0.07892369478940964, -0.03745270520448685, 0.09710568189620972, 0.0700358897447586, 0.2139168530702591, -0.3253251016139984, -0.10683898627758026, -0.3951169550418854, -0.20599022507667542, 0.2482340931892395, 0.06473763287067413, -0.02782572992146015, 0.004443334415555, -0.15088482201099396, -0.21351946890354156, 0.29471704363822937, -0.0426410436630249, 0.056101780384778976, 0.024517590180039406, 0.5369031429290771, 0.004094012081623077, 0.15444548428058624, 0.3967120051383972, 0.08983621001243591, 0.32591405510902405, -0.0999680832028389, 0.09960168600082397, -0.2350815236568451, -0.13467055559158325, 0.16424264013767242, 0.00903390347957611, -0.28500205278396606, 0.0600544735789299, 0.05218733847141266, 0.14491115510463715, 0.14600497484207153, 0.24440070986747742, -0.17413005232810974, -0.08582007884979248, 0.12016639858484268, 0.12444619834423065, 0.09120680391788483, -0.1609354466199875, 0.28952842950820923, 0.13342899084091187, 0.1700609028339386, -0.2252696305513382, 0.08926816284656525, 0.19016340374946594, 0.04764391854405403, -0.3796045184135437, -0.438077449798584, -0.05282951146364212, 0.29187971353530884, 0.32240039110183716, 0.6408430337905884, -0.15368297696113586, -0.12658172845840454, 0.09102699160575867, 0.12466499954462051, 0.40629756450653076, 0.08814800530672073, -0.21070770919322968, -0.1136975884437561, 0.324786514043808, -0.3538900315761566, -0.12325002253055573, -0.3087654411792755, 0.3145838975906372, 0.055955030024051666, 0.13188165426254272, -0.19145411252975464, 0.07627663016319275, 0.30829891562461853, 0.3927289545536041, 0.14252953231334686, 0.04533924534916878, -0.13231559097766876, -0.4751458466053009, -0.5912303924560547, -0.08606871217489243, 0.06746344268321991, 0.23872151970863342, 0.06504139304161072, -0.0534299872815609, 0.31664034724235535, 0.12267637997865677, 0.28155964612960815, -0.07772080600261688, 0.5459548830986023, -0.10579493641853333, -0.03499466925859451, -0.0216287262737751, -0.09292276203632355, 0.19940759241580963, 0.19430121779441833, 0.23549909889698029, 0.20089606940746307, 0.1316884607076645, -0.2983616292476654, 0.2535743713378906, 0.34923115372657776, 0.06005473434925079, 0.053668491542339325, 0.3580780327320099, -0.09408028423786163, -0.11572413891553879, -0.07268082350492477, 0.5044254660606384, -0.04956808313727379, -0.08721667528152466, -0.3546782433986664, 0.3251669108867645, -0.019996976479887962, 0.13884034752845764, 0.213034525513649, 0.1271076649427414, -0.13492219150066376, 0.30518853664398193, -0.15477254986763, 0.8499872088432312, 0.03789767622947693, 0.14336435496807098, 0.49312466382980347, -0.23627899587154388, -0.1389589160680771, 0.2695140242576599, 0.16438056528568268, -0.11378674954175949, 0.0020051049068570137, 0.062146179378032684, -0.1258871853351593, 0.28320977091789246, 0.059952978044748306, -0.4243088662624359, 0.14273594319820404, -0.18105626106262207, 0.3606696128845215, -0.03028574399650097, -0.06567688286304474, -0.6879404187202454, -0.29759278893470764, -0.3547007441520691, 0.09935711324214935, 0.19742070138454437, -0.03703511878848076, 0.218423992395401, -0.49450623989105225, -0.16813763976097107, -0.350911021232605, -0.1148112565279007, 0.23985043168067932, -0.2527295649051666, -0.09130366146564484, -0.06765463948249817, -0.20057626068592072, 0.07477563619613647, 0.010129611939191818, 0.11357879638671875, 0.24753592908382416, -0.07497049868106842, -0.3024786412715912, -0.25343218445777893, 0.33496713638305664, -0.19025081396102905, -0.019949082285165787, 0.050402864813804626, -0.12664629518985748, -0.18026819825172424, 0.08179359883069992, 0.08590944111347198, 0.03129379451274872, -0.0444302037358284, -0.09071299433708191, 0.02141321450471878, -0.3645024597644806, -0.5255662798881531, -0.16309304535388947, -0.11876809597015381, -0.17254231870174408, 0.1802332103252411, 0.1277468502521515, -0.6301133036613464, 0.10464788228273392, -0.032905105501413345, -0.02003401517868042, -0.0813768208026886, 0.3146170377731323, 0.14850002527236938, 0.024284258484840393, 0.6454490423202515, -0.19788646697998047, 0.029179781675338745, -0.15008790791034698, 0.18263110518455505, 0.0783948302268982, -0.3819465637207031, 0.036500658839941025, -0.04580891877412796, -0.14384667575359344, -0.08504603058099747, 0.06785812228918076, -0.14628815650939941, 0.2408922016620636, -0.21801137924194336, -0.17207437753677368, -0.28186488151550293, 0.25657469034194946, 0.164784774184227, 0.2669833302497864, -0.15965399146080017, 0.050977569073438644, -0.09496989846229553, -0.21577508747577667, -0.31984925270080566, 0.16462908685207367, -0.04507075995206833, 0.33677440881729126, -0.10024666041135788, 0.04853883385658264, 0.17443625628948212, -0.14316082000732422, 0.18866026401519775, 0.21741192042827606, -0.3829726576805115, -0.11371463537216187, 0.0018715504556894302, 0.1176692321896553, -0.048184141516685486, -0.3058466911315918, -0.010056113824248314, 0.035949353128671646, -0.15157721936702728, -0.281177282333374, 0.0054377783089876175, 0.08779758960008621, -0.014779515564441681, 0.09782596677541733, -0.24227334558963776, 0.30053168535232544, 0.13972792029380798, -0.2745327055454254, -0.2428879737854004, 0.01223907619714737, -0.02545030787587166, -0.06855238229036331, -0.17084623873233795, -0.10590091347694397, -0.037102699279785156, 0.07767508178949356, -0.028596341609954834, -0.06731773167848587, 0.1855233907699585, -0.2676125168800354, 0.08063362538814545, 0.06742686033248901, 0.5945366621017456, 0.0405876561999321, -0.2567140460014343, 0.053158797323703766, 0.0788833349943161, 0.25073176622390747, 0.15502597391605377, 0.19303175806999207, 0.06661754101514816, -0.40558725595474243, -0.15457646548748016, 0.26090213656425476, 0.16777904331684113, -0.057871263474226, 0.22842147946357727, -0.15676960349082947, 0.2704318165779114, 0.08941693603992462, 0.09899605810642242, 0.32744860649108887, -0.23261262476444244, 0.17884071171283722, -0.16750279068946838, -0.23616740107536316, 0.4896131753921509, 0.22028037905693054, -0.4780781865119934, 0.6226850152015686, 0.13316333293914795, -0.13349300622940063, 0.2241213619709015, -0.3880477249622345, -0.22537778317928314, 0.06695098429918289, 0.3199886381626129, 0.4373656213283539, 0.16704684495925903, 0.4606550335884094, -0.8908779621124268, -0.19603508710861206, 0.0030250996351242065, -0.017865091562271118, -0.10599132627248764, -0.05885598063468933, 0.10461534559726715, -0.038384273648262024, -0.24142614006996155, -0.18605473637580872, -0.06612570583820343, 0.21517005562782288, 0.04981493577361107, -0.055949822068214417, 0.04156777635216713, -0.044130854308605194, -0.15919709205627441, 0.14241808652877808, 0.25483402609825134, -0.3441069424152374, 0.22892364859580994, 0.4074862599372864, -0.07493257522583008, -0.006950438022613525, 0.3395501971244812, 0.6201726198196411, 0.37076523900032043, 0.14795537292957306, 0.30416491627693176, -0.2396519035100937, -0.11584893614053726, 0.13268524408340454, 0.0976051390171051, 0.2938636541366577, 0.13650961220264435, 0.08358737826347351, 0.17290745675563812, -0.14305536448955536, -0.000851798802614212, 0.3146737813949585, 0.28879010677337646, -0.29601043462753296, 0.060810912400484085, -0.5431630611419678, 0.050188615918159485, -0.22547399997711182, -0.20883136987686157, -0.5357286334037781, 0.16212719678878784, 0.0945083349943161, 0.08348832279443741, 0.09950057417154312, 0.18823565542697906, 0.06461647897958755, -0.02672119066119194, 0.19890861213207245, 0.349752277135849, 0.062627874314785, -0.1306116282939911, -0.09865113347768784, -0.357476145029068, 0.0009948685765266418, 0.03145958110690117, 0.2862075865268707, -0.05712330341339111, 0.02668333612382412, 0.14353083074092865, -0.0593012198805809, 0.04255589842796326, -0.0766802579164505, -0.019356584176421165, 0.1502918154001236, -0.16950002312660217, -0.23422430455684662, 0.2073594629764557, -0.05407725274562836, 0.05676060914993286, -0.5042083263397217, 0.13744112849235535, -0.3806077837944031, 0.12637320160865784, -0.0471939742565155, 0.15779553353786469, -0.5429626107215881, -0.19452255964279175, 0.1125839501619339, 0.16042160987854004, 0.14802514016628265, -0.29535728693008423, -0.4412279725074768, -0.06195076182484627, 0.05647745728492737, 0.10055624693632126, -0.002501174807548523, -0.03812279924750328, 0.7926676273345947, 0.026585334911942482, 0.05192643404006958, -0.42094871401786804, 0.6156343817710876, -0.13914671540260315, -0.18469969928264618, -0.24497874081134796, 0.29694661498069763, -0.4812518358230591, -0.03938809037208557, 0.04412142559885979, -0.02848246693611145, -0.027059167623519897, 0.31056150794029236, -0.28540587425231934, -0.0550219863653183, 0.5836778879165649, 0.07090496271848679, -0.1253315508365631, 0.021945379674434662, 0.293349027633667, 0.07981635630130768, 0.025771796703338623, -0.8609779477119446, 0.14443805813789368, 0.0631551742553711, -0.04539300501346588, -0.0369478240609169, 0.26675742864608765, -0.12959910929203033, -0.14665281772613525, 0.08741973340511322, 0.2568252682685852, 0.18578851222991943, -0.32269108295440674, 0.3364757299423218, -0.37617915868759155 ]
https://github.com/huggingface/datasets/issues/3993
Streaming dataset + interleave + DataLoader hangs with multiple workers
Hi ! Thanks for reporting, could this be related to https://github.com/huggingface/datasets/issues/3950 ? Currently streaming datasets only works in single process, but we're working on having in work in distributed setups as well :) (EDIT: done)
## Describe the bug Interleaving multiple iterable datasets that use `load_dataset` on streaming mode hangs when passed to `torch.utils.data.DataLoader` with multiple workers. ## Steps to reproduce the bug ```python from datasets import interleave_datasets, load_dataset from torch.utils.data import DataLoader en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) fr_dataset = load_dataset('oscar', "unshuffled_deduplicated_fr", split='train', streaming=True) it_dataset = load_dataset('oscar', "unshuffled_deduplicated_it", split='train', streaming=True) de_dataset = load_dataset('oscar', "unshuffled_deduplicated_de", split='train', streaming=True) multilingual_dataset = interleave_datasets([en_dataset, fr_dataset, de_dataset, it_dataset]) multilingual_dataset = multilingual_dataset.with_format('torch') next(iter(multilingual_dataset)) # works fairly fast dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=4) for batch in dataloader: print(len(batch)) # prints nothing after 30 min of waiting dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=0) for batch in dataloader: print(len(batch)) # prints right away ``` ## Expected results It should be able to iterate the dataset with multiple workers. ## Actual results Prints with results with `next(iter(multilingual_dataset)) ` and `num_workers=0` but it prints nothing with `num_workers=4` or any number above 0. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.1.dev0 - `pytorch` version: 1.10.0+cu113 - Python version: 3.7 - PyArrow version: 6.0.1
35
Streaming dataset + interleave + DataLoader hangs with multiple workers ## Describe the bug Interleaving multiple iterable datasets that use `load_dataset` on streaming mode hangs when passed to `torch.utils.data.DataLoader` with multiple workers. ## Steps to reproduce the bug ```python from datasets import interleave_datasets, load_dataset from torch.utils.data import DataLoader en_dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) fr_dataset = load_dataset('oscar', "unshuffled_deduplicated_fr", split='train', streaming=True) it_dataset = load_dataset('oscar', "unshuffled_deduplicated_it", split='train', streaming=True) de_dataset = load_dataset('oscar', "unshuffled_deduplicated_de", split='train', streaming=True) multilingual_dataset = interleave_datasets([en_dataset, fr_dataset, de_dataset, it_dataset]) multilingual_dataset = multilingual_dataset.with_format('torch') next(iter(multilingual_dataset)) # works fairly fast dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=4) for batch in dataloader: print(len(batch)) # prints nothing after 30 min of waiting dataloader = DataLoader(multilingual_dataset, batch_size=8, num_workers=0) for batch in dataloader: print(len(batch)) # prints right away ``` ## Expected results It should be able to iterate the dataset with multiple workers. ## Actual results Prints with results with `next(iter(multilingual_dataset)) ` and `num_workers=0` but it prints nothing with `num_workers=4` or any number above 0. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.1.dev0 - `pytorch` version: 1.10.0+cu113 - Python version: 3.7 - PyArrow version: 6.0.1 Hi ! Thanks for reporting, could this be related to https://github.com/huggingface/datasets/issues/3950 ? Currently streaming datasets only works in single process, but we're working on having in work in distributed setups as well :) (EDIT: done)
[ -0.3555939197540283, -0.21973511576652527, -0.14469002187252045, 0.2996627390384674, 0.10886438190937042, -0.053614530712366104, 0.6818822622299194, 0.16813091933727264, 0.15180939435958862, 0.2881133556365967, -0.074872687458992, 0.24411641061306, -0.03519728407263756, -0.2144632190465927, -0.2273014932870865, -0.1399880200624466, 0.03661591559648514, -0.03175881505012512, -0.07489807903766632, 0.06264536827802658, -0.047908224165439606, 0.04435982182621956, -0.04353531450033188, -0.19146288931369781, -0.2948992848396301, 0.11694832146167755, -0.11792344599962234, 0.06864412873983383, 0.2101738452911377, -0.061327628791332245, 0.3103604018688202, 0.34423959255218506, 0.1036442220211029, 0.6017299294471741, -0.00011011669994331896, 0.01466505229473114, 0.3275206685066223, 0.1109994649887085, -0.4509076476097107, -0.38623863458633423, -0.16335752606391907, -0.11934182047843933, 0.05479002743959427, -0.04735752195119858, -0.22112372517585754, 0.03809382766485214, -0.029174810275435448, -0.6962127685546875, 0.16899314522743225, 0.08263964205980301, 0.17096617817878723, 0.4673813581466675, -0.28186213970184326, -0.05437793210148811, 0.05104164034128189, -0.21429531276226044, 0.041370704770088196, 0.21885216236114502, 0.4648146629333496, -0.09312301129102707, -0.28462380170822144, 0.2917741537094116, 0.032942041754722595, -0.01443634182214737, -0.021337442100048065, -0.2548258602619171, -0.17072710394859314, -0.4361051917076111, 0.09395875036716461, 0.3064226508140564, 0.3039129376411438, -0.06483270972967148, -0.23185625672340393, -0.23247501254081726, 0.05066012963652611, -0.2415568232536316, 0.14103031158447266, 0.21267153322696686, -0.05660241097211838, -0.1791277676820755, 0.0894799456000328, 0.19553491473197937, -0.05034705623984337, 0.08977829664945602, -0.11809350550174713, 0.43358248472213745, -0.07825934141874313, 0.19383645057678223, 0.27781522274017334, -0.046431779861450195, 0.4499903917312622, -0.05217863619327545, 0.09855303168296814, -0.12683998048305511, -0.5907090902328491, 0.1893610805273056, 0.17793497443199158, 0.01824120432138443, -0.1569008231163025, 0.10574518144130707, 0.01779693365097046, 0.1376209259033203, 0.25361695885658264, 0.055041976273059845, 0.4589819312095642, -0.3183934688568115, -0.10878223925828934, -0.17291058599948883, 0.244995579123497, 0.08091238886117935, -0.04260272905230522, -0.11337205022573471, 0.06375334411859512, -0.5267934799194336, -0.14321933686733246, 0.09672221541404724, 0.2501463294029236, -0.014259234070777893, -0.33560630679130554, -0.0652274414896965, -0.3926198482513428, -0.12224870175123215, 0.11758848279714584, 0.3623330593109131, -0.202206552028656, 0.5516577959060669, 0.0085492804646492, 0.07511422038078308, -0.16239973902702332, -0.2986530065536499, -0.1439601629972458, -0.0772470086812973, -0.14835478365421295, -0.015218976885080338, 0.10894244909286499, -0.5669417381286621, 0.11425550282001495, 0.1711033582687378, 0.3558904528617859, -0.11278209090232849, 0.2802707850933075, -0.33538931608200073, 0.21470826864242554, -0.13778962194919586, 0.35861149430274963, 0.27897074818611145, -0.07951562106609344, 0.07442145049571991, -0.0640462189912796, -0.13499245047569275, -0.1031133159995079, -0.16005074977874756, -0.25914549827575684, 0.21316495537757874, -0.08332487940788269, 0.057694993913173676, 0.006957508623600006, -0.1939622163772583, 0.31565767526626587, -0.08506307005882263, 0.15798667073249817, -0.2852029800415039, 0.12957744300365448, -0.09123649448156357, 0.12483873218297958, 0.48820698261260986, 0.12682099640369415, 0.013003244996070862, 0.0899457260966301, 0.05094052106142044, 0.26349711418151855, 0.1871577501296997, -0.09786215424537659, -0.06767448037862778, -0.27695974707603455, -0.0630258172750473, 0.12508729100227356, -0.3466637432575226, -0.15960997343063354, 0.7216664552688599, 0.008429020643234253, 0.4391191601753235, 0.3753015995025635, 0.144078329205513, 0.3157523572444916, -0.23058414459228516, 0.25194668769836426, 0.5603943467140198, -0.284095823764801, 0.210285946726799, -0.22902746498584747, 0.17101530730724335, 0.2628222107887268, 0.3264387547969818, 0.11029597371816635, -0.34168270230293274, -0.08822832256555557, 0.054341353476047516, 0.3968740403652191, -0.13245134055614471, 0.050443798303604126, 0.12522530555725098, -0.032149795442819595, 0.3070199489593506, -0.050890084356069565, -0.037602171301841736, -0.34808510541915894, 0.1755199432373047, 0.4643339514732361, -0.09470300376415253, 0.21707522869110107, 0.03576406091451645, 0.13429421186447144, -0.016285326331853867, -0.5007012486457825, -0.1971416175365448, 0.05532290041446686, 0.45162612199783325, -0.14054983854293823, -0.1492661088705063, -0.054778579622507095, 0.5384520292282104, -0.14940907061100006, -0.23080477118492126, -0.6708422899246216, 0.3416261672973633, -0.04532988369464874, -0.1777506023645401, 0.06186218559741974, 0.2822544574737549, -0.03111596405506134, -0.24004928767681122, -0.05680713802576065, 0.31279370188713074, -0.22533848881721497, 0.3780369162559509, -0.024209164083003998, -0.04241003096103668, 0.260952889919281, -0.2975846827030182, 0.08031188696622849, 0.17741039395332336, 0.015913408249616623, -0.1744731366634369, 0.0939285159111023, 0.2073909193277359, -0.09882616996765137, 0.5323571562767029, 0.03888389468193054, 0.04603322595357895, 0.13833105564117432, 0.1501515954732895, -0.32064130902290344, 0.14135527610778809, 0.4868219196796417, -0.41458234190940857, 0.5537267327308655, -0.0905304029583931, -0.5546481013298035, 0.20789584517478943, 0.36075472831726074, 0.18015369772911072, -0.16439521312713623, -0.07943827658891678, -0.021879874169826508, 0.010882221162319183, 0.1113908588886261, -0.3244872987270355, 0.26301950216293335, 0.13030406832695007, 0.14448338747024536, -0.40140336751937866, 0.09306756407022476, -0.3110407292842865, 0.04937540739774704, 0.001893468201160431, 0.03449518606066704, 0.29976335167884827, 0.036935750395059586, -0.034371234476566315, -0.07581816613674164, -0.4735887050628662, -0.17081420123577118, 0.01963857188820839, -0.0919044017791748, 0.2147531360387802, -0.11750416457653046, -0.045166533440351486, -0.23084382712841034, -0.49689972400665283, -0.23856601119041443, -0.4013832211494446, -0.3228117823600769, 0.5414469242095947, -0.03207989037036896, 0.2611173391342163, 0.036904338747262955, -0.11462007462978363, 0.26377812027931213, 0.07207377254962921, -0.22391952574253082, -0.1377023160457611, -0.14268550276756287, 0.0279214009642601, 0.40295499563217163, -0.15514996647834778, 0.40279126167297363, 0.10353249311447144, -0.3425667881965637, -0.4209598898887634, 0.13230955600738525, 0.10610876977443695, -0.08357740193605423, 0.2081802934408188, 0.18692052364349365, 0.16363024711608887, 0.2173268347978592, -0.2507634460926056, 0.14034372568130493, -0.03702281787991524, 0.12366227805614471, 0.12744779884815216, -0.10787151753902435, 0.25353923439979553, 0.13701291382312775, -0.3670019507408142, -0.280493825674057, -0.5737884044647217, 0.03721088543534279, -0.314576119184494, -0.165745347738266, -0.126292884349823, 0.31908029317855835, -0.04094790294766426, 0.3590501844882965, -0.07835232466459274, -0.1659754365682602, -0.5308602452278137, 0.16900990903377533, -0.14477495849132538, -0.27494990825653076, -0.20604349672794342, 0.02727900817990303, 0.19439645111560822, 0.19921356439590454, -0.3442413806915283, 0.2497888058423996, -0.21316330134868622, 0.17205747961997986, -0.10015447437763214, 0.04218816012144089, 0.11158579587936401, 0.0297258161008358, -0.03654500097036362, -0.08464105427265167, 0.04592711851000786, -0.12936195731163025, -0.036994367837905884, 0.25637108087539673, 0.03030458278954029, 0.4400654733181, 0.028097104281187057, 0.5979783535003662, 0.30360063910484314, -0.12526820600032806, 0.2400013953447342, 0.21507002413272858, 0.3155679404735565, 0.08325008302927017, -0.46729138493537903, 0.21919673681259155, -0.09840793907642365, 0.14867429435253143, 0.15416084229946136, -0.31937891244888306, -0.41068434715270996, -0.1533486694097519, -0.09860724210739136, -0.03596072271466255, -0.2290053367614746, 0.40903180837631226, -0.5180924534797668, 0.17338737845420837, -0.18347646296024323, 0.09935855120420456, -0.1177806407213211, -0.14895081520080566, -0.019072994589805603, 0.10064911842346191, 0.13931791484355927, -0.04298194870352745, 0.22914083302021027, -0.06843886524438858, -0.4147857129573822, 0.043307386338710785, 0.2089092880487442, 0.5289241075515747, 0.2390633374452591, -0.13026025891304016, -0.008873909711837769, -0.2102157324552536, 0.5460904836654663, -0.2168993353843689, -0.12248410284519196, 0.24813401699066162, -0.11975327879190445, -0.2262832075357437, -0.13841675221920013, -0.18933410942554474, 0.3384048044681549, 0.3664725124835968, 0.07989213615655899, -0.24884966015815735, -0.5288245677947998, 0.2791984975337982, 0.06030421704053879, -0.09170223772525787, -0.2477782666683197, -0.41827890276908875, -0.08481839299201965, -0.181126669049263, 0.2648971378803253, -0.05884077399969101, 0.20329907536506653, -0.43986067175865173, -0.12919524312019348, -0.09790624678134918, -0.12088379263877869, 0.16654308140277863, 0.07871171832084656, -0.009228752925992012, -0.15398123860359192, 0.30662837624549866, 0.18982848525047302, 0.2435561716556549, 0.31604838371276855, 0.2977924346923828, -0.09908662736415863, -0.30275365710258484, 0.4845293164253235, -0.16564951837062836, 0.37258636951446533, 0.39020079374313354, -0.021092552691698074, 0.0016116499900817871, 0.026309974491596222, 0.27812492847442627, -0.0013709897175431252, 0.24812905490398407, 0.3127352297306061, 0.21520209312438965, -0.570470929145813, -0.37381941080093384, 0.019084960222244263, 0.14771437644958496, 0.1678353101015091, 0.4883321225643158, -0.3869033455848694, -0.13095511496067047, 0.14647339284420013, 0.10791462659835815, 0.7136847972869873, 0.13667331635951996, 0.17172788083553314, 0.1947733759880066, -0.06752387434244156, 0.14871083199977875, -0.4291364550590515, 0.21151010692119598, -0.2590496242046356, -0.4845869243144989, 0.1678224354982376, -0.11699523031711578, 0.04583814740180969, -0.159248486161232, -0.11391277611255646, 0.19839121401309967, -0.034314386546611786, 0.24037927389144897, -0.08113579452037811, 0.2986227571964264, -0.5023857355117798, -0.31122609972953796, -0.19106437265872955, 0.12591072916984558, -0.034107327461242676, -0.02269313484430313, -0.23628246784210205, -0.18601608276367188, 0.30471286177635193, -0.08585265278816223, -0.16693681478500366, 0.14934810996055603, -0.07860605418682098, 0.10997550189495087, -0.20434486865997314, -0.4349502921104431, 0.20752355456352234, 0.10426986217498779, 0.07094290107488632, -0.23486854135990143, 0.0844954401254654, 0.04955613985657692, 0.07350722700357437, -0.16818617284297943, -0.03951317071914673, -0.07811904698610306, 0.33586588501930237, 0.006874829530715942, -0.2111119031906128, 0.17176617681980133, 0.1217179149389267, -0.2523837089538574, -0.16674920916557312, 0.3990224003791809, 0.048982106149196625, -0.1276003122329712, -0.03582358360290527, 0.22050978243350983, -0.133742094039917, -0.23848293721675873, 0.1460694819688797, 0.013819169253110886, -0.2554711699485779, 0.17227956652641296, -0.24016563594341278, -0.1468711793422699, -0.23356391489505768, 0.40967804193496704, 0.06998313218355179, -0.0033079981803894043, 0.3911914527416229, 0.4190596640110016, -0.26551446318626404, -0.22267034649848938, -0.08866164088249207, 0.29417189955711365, -0.35914331674575806, 0.1596287339925766, -0.17987453937530518, 0.039244696497917175, -0.06046029180288315, -0.1263340711593628, -0.0875009298324585, 0.02616134285926819, -0.050311531871557236, -0.28029826283454895, -0.013455556705594063, -0.0817263126373291, -0.020250815898180008, 0.277810662984848, -0.19972169399261475, 0.15481476485729218, 0.08598874509334564, 0.13800612092018127, -0.33053192496299744, -0.15820097923278809, -0.42210468649864197, 0.1324036717414856, 0.32978394627571106, -0.2659399211406708, 0.14878226816654205, 0.0772794634103775, 0.09956684708595276, 0.176119863986969, -0.01428457535803318, -0.2631761431694031, -0.09682618081569672, 0.08167169988155365, -0.09711577743291855, 0.03556220978498459, -0.03818438947200775, -0.16610217094421387, 0.08642455190420151, -0.27751198410987854, 0.25931429862976074, -0.001747727394104004, -0.12137506902217865, -0.023930702358484268, 0.13113519549369812, 0.38076451420783997, -0.006828729063272476, 0.16714349389076233, 0.16237851977348328, -0.10263001918792725, -0.09315882623195648, 0.1869477778673172, 0.1810150146484375, -0.05108371376991272, 0.03315006569027901, -0.0034196600317955017, 0.5133016109466553, 0.31282860040664673, 0.15123434364795685, -0.2349376231431961, 0.06092065945267677, 0.13942915201187134, 0.2831028401851654, 0.6794842481613159, -0.039479948580265045, -0.16926926374435425, 0.09364063292741776, 0.1896706372499466, 0.006318259984254837, 0.016288375481963158, -0.04095747321844101, -0.08107460290193558, 0.15867100656032562, 0.21340805292129517, 0.07543884217739105, -0.2591465413570404, 0.17382150888442993, 0.21676000952720642, -0.019751541316509247, -0.37961238622665405, -0.03356344997882843, 0.0643574446439743, 0.05269787833094597, -0.02691693976521492, 0.08394554257392883, 0.012102257460355759, 0.07071056962013245, 0.20187543332576752, -0.014807209372520447, 0.6086347699165344, 0.2540815770626068, -0.11631488800048828, 0.10282428562641144, -0.3527193069458008, -0.2841011881828308, -0.03694102168083191, -0.1394003927707672, 0.12542401254177094, -0.1184646338224411, 0.3774726688861847, -0.26680052280426025, -0.16778980195522308, -0.1309542953968048, 0.13242290914058685, -0.08825273811817169, 0.07208745181560516, 0.08417617529630661, -0.019383355975151062, -0.2662060856819153, -0.02023119479417801, 0.09005342423915863, 0.1443740427494049, 0.24729439616203308, 0.3306849002838135, 0.024279311299324036, -0.4061639904975891, -0.10383497923612595, 0.05033049359917641, 0.07009147107601166, -0.20040392875671387, 0.04759203642606735, 0.25467365980148315, -0.12300752103328705, -0.27151161432266235, 0.09884357452392578, 0.4051929712295532, 0.3669312000274658, -0.304470032453537, 0.14969314634799957, 0.08392907679080963, -0.0475136861205101, -0.03091214783489704, 0.1409972906112671, -0.08186736702919006, -0.15305618941783905, 0.3277866244316101, 0.19669044017791748, -0.18509408831596375, 0.10917928814888, 0.19058673083782196, 0.005659266375005245, -0.24277836084365845, -0.21297475695610046, -0.1025056540966034, 0.023227281868457794, -0.238252192735672, -0.007122807204723358, -0.6021066308021545, -0.021714091300964355, 0.2477208822965622, -0.09802935272455215, 0.05566513538360596, -0.11842482537031174, 0.0877910926938057, 0.024263249710202217, 0.5296982526779175, 0.3075284957885742, 0.38806483149528503, -0.3028615415096283, -0.3123132586479187, -0.3422721326351166, 0.10936173051595688, -0.09229116141796112, 0.18129724264144897, -0.23232214152812958, 0.6262579560279846, 0.03727744147181511, -0.06379678845405579, 0.06536220759153366, -0.04834853112697601, 0.25990429520606995, 0.45329055190086365, -0.41612139344215393, -0.20918568968772888, -0.07265198230743408, 0.07435179501771927, 0.15601013600826263, -0.1800946295261383, -0.08900605142116547, -0.031183332204818726, 0.15901190042495728, -0.09817063808441162, -0.4023670256137848, 0.1505967527627945, 0.03407856076955795, 0.1404879093170166, 0.06368393450975418, 0.22092944383621216, -0.00761120580136776, -0.23100875318050385, -0.3436695337295532, -0.11868637800216675, 0.00553178321570158, 0.11923640966415405, 0.24754689633846283, 0.1992131918668747, -0.0682239979505539, 0.017872581258416176, -0.46768510341644287, 0.4312356412410736, 0.07570943236351013, 0.18807072937488556, -0.21777978539466858, 0.004342338070273399, 0.01953887939453125, 0.35520416498184204, -0.12597398459911346, 0.43782615661621094, -0.044961169362068176, 0.169363334774971, -0.41867566108703613, -0.3761247396469116, 0.29523998498916626, -0.3174701929092407, -0.4214570224285126, -0.32385683059692383, 0.22265198826789856, 0.3154909610748291, 0.3059093952178955, -0.3343667685985565, 0.2135821282863617, 0.14414478838443756, 0.023174382746219635, -0.09150250256061554, 0.11029499769210815, 0.3029445707798004, 0.23857976496219635, -0.12317030131816864, -0.10953018069267273, 0.24209120869636536, -0.09115224331617355, 0.3504405915737152, -0.2450474202632904 ]
https://github.com/huggingface/datasets/issues/3992
Image column is not decoded in map when using with with_transform
Hi! This behavior stems from this line: https://github.com/huggingface/datasets/blob/799b817d97590ddc97cbd38d07469403e030de8c/src/datasets/arrow_dataset.py#L1919 Basically, the `Image`/`Audio` columns are decoded only if the `format_type` attribute is `None` (`set_format`/`with_format` and `set_transform`/`with_transform` assign a non-`None` value to it) and the `input_columns` param is not specified (see https://github.com/huggingface/datasets/issues/3756). We will remove these limitations soon.
## Describe the bug Image column is not _decoded_ in **map** when using with `with_transform` ## Steps to reproduce the bug ```python from datasets import Image, Dataset def add_C(batch): batch["C"] = batch["A"] return batch ds = Dataset.from_dict({"A": ["image.png"]}).cast_column("A", Image()) ds = ds.with_transform(lambda x: x) # <= This line causes the problem ds = ds.map(add_C, batched=True) print(ds[0]) ``` ## Expected results ``` {'C': <PIL.PngImagePlugin.PngImageFile>, ...} ``` ## Actual results ``` {'C': {'bytes': None, 'path': 'image.png'}, ...} ``` If we remove the `with_transform` line, we get the expected result. ## Environment info - `datasets` version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0
45
Image column is not decoded in map when using with with_transform ## Describe the bug Image column is not _decoded_ in **map** when using with `with_transform` ## Steps to reproduce the bug ```python from datasets import Image, Dataset def add_C(batch): batch["C"] = batch["A"] return batch ds = Dataset.from_dict({"A": ["image.png"]}).cast_column("A", Image()) ds = ds.with_transform(lambda x: x) # <= This line causes the problem ds = ds.map(add_C, batched=True) print(ds[0]) ``` ## Expected results ``` {'C': <PIL.PngImagePlugin.PngImageFile>, ...} ``` ## Actual results ``` {'C': {'bytes': None, 'path': 'image.png'}, ...} ``` If we remove the `with_transform` line, we get the expected result. ## Environment info - `datasets` version: 2.0.0 - Platform: Mac OSX - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi! This behavior stems from this line: https://github.com/huggingface/datasets/blob/799b817d97590ddc97cbd38d07469403e030de8c/src/datasets/arrow_dataset.py#L1919 Basically, the `Image`/`Audio` columns are decoded only if the `format_type` attribute is `None` (`set_format`/`with_format` and `set_transform`/`with_transform` assign a non-`None` value to it) and the `input_columns` param is not specified (see https://github.com/huggingface/datasets/issues/3756). We will remove these limitations soon.
[ -0.14673832058906555, -0.16224581003189087, 0.04135290905833244, 0.30567577481269836, 0.6214096546173096, 0.12093072384595871, 0.18931055068969727, 0.255818247795105, 0.33033737540245056, 0.01171787828207016, -0.24015967547893524, 0.7651689052581787, -0.0390632301568985, -0.1923350691795349, -0.16481605172157288, -0.20664748549461365, 0.22598445415496826, 0.13444073498249054, -0.3847178816795349, 0.0640423595905304, -0.4407154321670532, 0.07810202986001968, -0.4031553864479065, -0.02041129767894745, -0.13236859440803528, 0.1330416202545166, -0.20857776701450348, -0.08592575043439865, -0.1459350883960724, -0.10884220153093338, -0.024277321994304657, -0.13850188255310059, -0.06106807291507721, 0.5268478989601135, -0.00011676119902404025, 0.3529261350631714, 0.3630216717720032, -0.031175589188933372, 0.0159791000187397, -0.24758927524089813, -0.45177897810935974, -0.27920085191726685, -0.2631656527519226, -0.21964490413665771, -0.024941030889749527, -0.3695705831050873, 0.06999089568853378, -0.2596253752708435, 0.28348803520202637, 0.14497964084148407, 0.16619814932346344, 0.1256086528301239, 0.15082548558712006, 0.2744568884372711, 0.08612651377916336, 0.12424710392951965, -0.08449806272983551, -0.10246552526950836, 0.1790410429239273, 0.11442466080188751, -0.2415975034236908, 0.33604466915130615, -0.2850145995616913, -0.09443926811218262, 0.02912227436900139, 0.3723781704902649, 0.005971230566501617, -0.31406596302986145, -0.12092002481222153, 0.05934586003422737, 0.20155510306358337, -0.12547126412391663, -0.31286880373954773, 0.036052338778972626, -0.05152776464819908, 0.023751595988869667, 0.2270907461643219, 0.005211937706917524, 0.008905716240406036, 0.08519169688224792, -0.44486284255981445, 0.1854136735200882, -0.15082260966300964, 0.15299585461616516, -0.19669707119464874, -0.055628180503845215, -0.13040734827518463, 0.18441921472549438, 0.021503020077943802, -0.016731660813093185, -0.2047359198331833, -0.2315954864025116, -0.07628166675567627, 0.29507219791412354, -0.1810152530670166, 0.011674433946609497, -0.1183680072426796, 0.0935203954577446, 0.08359317481517792, -0.151483952999115, -0.19617372751235962, -0.0001902170479297638, 0.038290854543447495, 0.4727175831794739, 0.10454680025577545, 0.018773725256323814, -0.32112637162208557, 0.5645455718040466, 0.3122345209121704, 0.09754569828510284, -0.04492767155170441, -0.2017885446548462, -0.017846301198005676, -0.17004109919071198, 0.08103898167610168, -0.011233441531658173, 0.30267971754074097, 0.05574527010321617, 0.07527916878461838, -0.15098507702350616, -0.12639310956001282, -0.03638845682144165, -0.1983794867992401, 0.12794847786426544, 0.35309869050979614, 0.21211275458335876, 0.3075128197669983, 0.3942486047744751, -0.06701754778623581, -0.06011959910392761, -0.21393197774887085, -0.21615727245807648, -0.3181029260158539, -0.056099630892276764, -0.1279454529285431, 0.3320193886756897, 0.08799349516630173, 0.2763930559158325, 0.13606223464012146, 0.04299721121788025, -0.2982150912284851, -0.2341124266386032, 0.38340288400650024, 0.36484166979789734, -0.09045866131782532, 0.07833138108253479, 0.0716606006026268, -0.14235998690128326, -0.04224458709359169, 0.4081786870956421, -0.46398186683654785, -0.012650638818740845, -0.11864307522773743, 0.10397610813379288, -0.11797458678483963, -0.08216197043657303, -0.5160192251205444, 0.08565518260002136, 0.18444481492042542, -0.3654153048992157, 0.07251940667629242, -0.2053438276052475, -0.37055304646492004, -0.2592577636241913, 0.11034674197435379, 0.18260757625102997, -0.4020445942878723, 0.18398486077785492, 0.24946384131908417, -0.15828761458396912, 0.33102360367774963, 0.3867715895175934, -0.028812067583203316, -0.21954798698425293, -0.19810828566551208, 0.1734979897737503, 0.2711234986782074, -0.3192254304885864, -0.47907304763793945, 0.33839982748031616, 0.0874599814414978, 0.1728200912475586, -0.0368352010846138, 0.025411153212189674, 0.25339972972869873, -0.12243251502513885, -0.43379834294319153, 0.3249760866165161, 0.008604876697063446, 0.3329049348831177, -0.1335335522890091, -0.22294937074184418, 0.12347738444805145, 0.03816467151045799, -0.17948642373085022, 0.26981985569000244, 0.09883152693510056, -0.20047730207443237, 0.22044843435287476, 0.09970058500766754, 0.2495882511138916, 0.15541750192642212, 0.2863108217716217, -0.12725304067134857, 0.2156967967748642, -0.13686060905456543, -0.159927099943161, 0.13570711016654968, 0.3024495244026184, -0.01828448474407196, -0.6747264862060547, -0.2961071729660034, -0.032582640647888184, -0.15256401896476746, -0.3940667510032654, 0.0016156286001205444, 0.08879873901605606, -0.0799822062253952, 0.054466020315885544, -0.05711016058921814, -0.14421631395816803, 0.012828478589653969, 0.12716341018676758, 0.11193429678678513, -0.21888723969459534, 0.12429013848304749, -0.14542382955551147, -0.20124273002147675, -0.19918492436408997, 0.1463014781475067, 0.13305377960205078, 0.01370026171207428, -0.18793028593063354, 0.30371004343032837, 0.09818854928016663, 0.517399251461029, -0.6269654035568237, -0.02652667462825775, 0.273903489112854, -0.3033285439014435, -0.10327809303998947, -0.10135786235332489, 0.30260851979255676, 0.11794421821832657, -0.17022666335105896, 0.01790779083967209, 0.17600294947624207, 0.34340494871139526, -0.010170910507440567, 0.04923119395971298, 0.13056479394435883, -0.21648071706295013, 0.03563019633293152, -0.3535352349281311, -0.4461381137371063, -0.15883338451385498, -0.055722013115882874, -0.024113817140460014, 0.27298808097839355, -0.0579400435090065, 0.6194270849227905, -0.025549571961164474, -0.014313913881778717, 0.03628542274236679, -0.28412994742393494, 0.17885011434555054, 0.12979604303836823, 0.0644526332616806, 0.4223514199256897, 0.16840369999408722, -0.21278971433639526, -0.154536172747612, -0.05640415847301483, 0.12045226991176605, 0.3314383625984192, 0.3493826389312744, 0.10461783409118652, 0.029333636164665222, 0.3237183094024658, 0.10925682634115219, -0.25330671668052673, -0.2773838937282562, 0.25522753596305847, -0.004346610978245735, -0.3308740258216858, 0.1191907450556755, -0.466859370470047, -0.20876285433769226, -0.08373065292835236, 0.2024492472410202, 0.21129097044467926, -0.35144540667533875, -0.18334820866584778, 0.06938011199235916, -0.18585291504859924, 0.21020212769508362, -0.09092436730861664, -0.15876154601573944, 0.11395026743412018, -0.49832481145858765, -0.36783480644226074, -0.05202300474047661, -0.08976653963327408, 0.031859785318374634, 0.1076626181602478, -0.47987714409828186, 0.08100792020559311, 0.19539184868335724, 0.02715636044740677, -0.07091280817985535, -0.33265045285224915, 0.24542957544326782, -0.42667555809020996, 0.13189376890659332, -0.050168126821517944, 0.19428130984306335, -0.1981784850358963, -0.10652665048837662, 0.5025519132614136, -0.09965524822473526, -0.3976353704929352, 0.24824228882789612, 0.07457101345062256, -0.08355141431093216, -0.298352986574173, -0.03406595438718796, 0.09080692380666733, -0.33448120951652527, -0.017711907625198364, -0.16263453662395477, 0.07173961400985718, 0.14504790306091309, 0.2494678795337677, 0.014149107970297337, -0.0027100243605673313, -0.011524530127644539, -0.24578417837619781, -0.07662426680326462, 0.5029644966125488, -0.06720520555973053, -0.21726565062999725, -0.004250653088092804, -0.09140008687973022, 0.013357523828744888, 0.42801183462142944, -0.238106831908226, -0.1615111380815506, -0.34517693519592285, 0.2589970827102661, -0.06794822961091995, 0.25022000074386597, 0.07901282608509064, 0.2630448639392853, -0.008022764697670937, -0.3268403708934784, -0.06662104278802872, -0.1171744093298912, 0.29544973373413086, 0.19245266914367676, 0.2950100302696228, 0.5460869073867798, 0.07400350272655487, 0.08936087787151337, 0.12364991009235382, -0.13776002824306488, 0.3111897110939026, -0.38598015904426575, 0.12190794199705124, 0.021550409495830536, -0.04465858265757561, 0.043898653239011765, 0.007386013865470886, 0.1739443689584732, -0.16413725912570953, 0.05613820254802704, -0.3797844648361206, 0.01352381706237793, 0.211752787232399, -0.48840197920799255, -0.13547734916210175, 0.16675734519958496, 0.05171731859445572, 0.059979937970638275, -0.016824007034301758, 0.1230257973074913, 0.09466710686683655, -0.24367406964302063, 0.0011623147875070572, -0.05197380483150482, 0.5654392838478088, -0.11506927758455276, 0.1535661518573761, -0.28306350111961365, -0.316175639629364, 0.15978488326072693, 0.05229005962610245, 0.325074166059494, -0.03326971456408501, -0.0247893538326025, 0.21570444107055664, 0.165445014834404, 0.8171386122703552, -0.35965874791145325, -0.12113167345523834, 0.1155983954668045, 0.11549754440784454, -0.33448338508605957, 0.061561014503240585, -0.27278655767440796, -0.20560884475708008, -0.04782776162028313, 0.8106673955917358, -0.07913825660943985, -0.014431980438530445, 0.21035532653331757, 0.1095520630478859, -0.03562699258327484, -0.2570800185203552, -0.304097980260849, -0.37818557024002075, -0.30535584688186646, -0.04714331775903702, 0.33921799063682556, 0.18589133024215698, 0.07934951037168503, -0.24938425421714783, -0.02852519042789936, -0.04948753863573074, 0.028285495936870575, 0.08374030888080597, 0.32043540477752686, 0.1991601139307022, 0.1842995136976242, 0.1855975091457367, 0.11054813861846924, 0.08990471810102463, 0.5427937507629395, -0.20207884907722473, -0.2474065124988556, -0.01167629286646843, -0.21891474723815918, 0.3060041069984436, 0.15206065773963928, -0.042391981929540634, 0.10231013596057892, -0.154480442404747, 0.13271670043468475, -0.4368523061275482, -0.2213386744260788, 0.5516975522041321, 0.03435690328478813, -0.07193025946617126, -0.20484556257724762, 0.610813558101654, 0.26309043169021606, -0.025956831872463226, 0.32001742720603943, 0.30904293060302734, -0.2870001196861267, 0.7411366701126099, 0.1191549301147461, 0.7751120328903198, 0.013919379562139511, -0.0020012371242046356, 0.3175216019153595, -0.3554590940475464, 0.31432008743286133, 0.11900238692760468, 0.13546672463417053, 0.04020220413804054, -0.25722646713256836, -0.13306182622909546, 0.051328402012586594, 0.13499347865581512, 0.29659444093704224, -0.41199588775634766, 0.11827687919139862, -0.2077152281999588, 0.346082866191864, 0.1451377421617508, -0.33294984698295593, -0.07019732892513275, -0.29692354798316956, -0.07821287214756012, 0.12295708060264587, 0.027499590069055557, -0.0028355009853839874, 0.30016428232192993, -0.091571144759655, -0.310437947511673, 0.00404144823551178, -0.14485090970993042, 0.052194103598594666, -0.2651105523109436, 0.18257048726081848, -0.11268754303455353, -0.29388031363487244, 0.37157681584358215, 0.27228039503097534, -0.16807416081428528, 0.002815496176481247, -0.001270480453968048, 0.11375661194324493, 0.494894415140152, 0.44441431760787964, 0.1323351114988327, -0.09366647899150848, 0.22357504069805145, 0.18464192748069763, -0.2866658568382263, -0.04562603682279587, 0.009886537678539753, 0.0019633062183856964, -0.16700990498065948, 0.2117130309343338, 0.060405392199754715, -0.2854357361793518, -0.31745800375938416, -0.21164163947105408, 0.1101636290550232, -0.02468871884047985, 0.09624983370304108, -0.14301861822605133, -0.04971625655889511, 0.613007128238678, 0.0015222914516925812, -0.2637939453125, 0.14816388487815857, 0.5180672407150269, -0.03417808562517166, -0.004355069249868393, 0.22666960954666138, -0.19679664075374603, -0.2773420810699463, -0.08001696318387985, 0.046311475336551666, 0.09204597026109695, -0.5069895386695862, 0.0032074060291051865, 0.08689980953931808, 0.15176840126514435, -0.12276791781187057, -0.12293584644794464, -0.2603098154067993, -0.15569305419921875, -0.21687889099121094, -0.4414590299129486, -0.38771623373031616, 0.37543267011642456, 0.0900515615940094, 0.13900282979011536, -0.1323387175798416, 0.19815538823604584, 0.00901934877038002, -0.014131339266896248, -0.27568385004997253, 0.21279869973659515, 0.07363783568143845, 0.21696746349334717, 0.22645625472068787, 0.3008570373058319, 0.31866025924682617, -0.39786702394485474, 0.10779786109924316, 0.5168724656105042, -0.004696810618042946, -0.08193659037351608, -0.2559613883495331, 0.13127601146697998, 0.001061873510479927, -0.1810237616300583, -0.18317188322544098, -0.23999285697937012, -0.16857799887657166, -0.12489180266857147, 0.259067177772522, 0.28292837738990784, 0.0006522238254547119, 0.0651627853512764, -0.1595066636800766, -0.03236541897058487, 0.11044137179851532, -0.04334767162799835, -0.29926177859306335, 0.24365101754665375, 0.2567245066165924, 0.14396676421165466, 0.10621163249015808, 0.11050081253051758, -0.05125291645526886, -0.19709643721580505, -0.16151241958141327, 0.02155589498579502, 0.8044279217720032, -0.10645164549350739, 0.11108508706092834, 0.13424496352672577, 0.2836865782737732, -0.0992027074098587, -0.2972746193408966, -0.2827211320400238, 0.04695088043808937, 0.16735561192035675, -0.2326609343290329, -0.022476540878415108, 0.13493004441261292, 0.17828674614429474, 0.15995106101036072, 0.19786503911018372, -0.25952813029289246, -0.03637262433767319, -0.3072326183319092, -0.027794279158115387, 0.5875517129898071, -0.1479429304599762, 0.06673077493906021, 0.5899360179901123, -0.05660314857959747, 0.15302206575870514, 0.1954825520515442, 0.1795361042022705, 0.06666426360607147, 0.49152958393096924, -0.026364438235759735, 0.09715629369020462, 0.08311506360769272, 0.16458231210708618, 0.11737151443958282, -0.22674542665481567, 0.1923423856496811, 0.27171340584754944, -0.22073805332183838, 0.2644856870174408, 0.08569097518920898, -0.07254182547330856, -0.20403295755386353, -0.08294951170682907, 0.15434744954109192, 0.208538219332695, -0.06956683844327927, 0.023540493100881577, -0.1576962172985077, 0.003486916422843933, -0.26118940114974976, -0.07219415158033371, 0.03280063718557358, -0.24000899493694305, 0.43537870049476624, 0.22663870453834534, 0.09886263310909271, 0.07107052206993103, -0.2786559760570526, 0.13592198491096497, 0.5420194268226624, -0.2273898422718048, 0.3139544427394867, 0.2737700343132019, 0.20192646980285645, 0.43193426728248596, 0.26164937019348145, 0.49014750123023987, 0.13803957402706146, 0.03155039995908737, 0.2488996535539627, -0.011299066245555878, -0.33322736620903015, 0.025617584586143494, 0.506197988986969, 0.10027624666690826, 0.0716644749045372, 0.20211699604988098, 0.11362496018409729, -0.162708580493927, -0.26913315057754517, 0.10898274183273315, 0.4462457597255707, 0.03435937315225601, 0.6749499440193176, -0.22020789980888367, -0.3921356201171875, 0.0197447519749403, -0.620720624923706, -0.1235450804233551, -0.22902382910251617, 0.21757331490516663, -0.24621929228305817, 0.24460387229919434, 0.15513648092746735, 0.036881498992443085, 0.07453776895999908, 0.033660754561424255, 0.48170486092567444, -0.26454272866249084, -0.18795491755008698, -0.1338970810174942, -0.33211198449134827, -0.014743216335773468, -0.052978549152612686, -0.2319154590368271, -0.15106727182865143, 0.04049330949783325, 0.12077813595533371, -0.0005295909941196442, 0.18648505210876465, -0.12127768248319626, 0.1785292774438858, 0.42302921414375305, 0.030545640736818314, -0.32849225401878357, -0.08240516483783722, -0.06934325397014618, -0.12111694365739822, -0.3715839385986328, 0.2344539314508438, 0.2260652333498001, 0.0991402193903923, -0.30572497844696045, 0.10565300285816193, -0.20586343109607697, -0.23056378960609436, 0.3818659782409668, 0.32919737696647644, 0.4185762405395508, -0.32158973813056946, -0.08229199796915054, -0.0057938434183597565, -0.06770539283752441, -0.2601280212402344, 0.041649553924798965, -0.032407667487859726, 0.4628956913948059, 0.016958678141236305, -0.25884395837783813, -0.259248286485672, -0.04097812622785568, -0.099071204662323, -0.10973767936229706, -0.48771777749061584, 0.2102644294500351, -0.22216865420341492, -0.26998385787010193, -0.04828101024031639, 0.11746466159820557, 0.11855338513851166, 0.10011202096939087, -0.13247913122177124, -0.670343816280365, 0.41973012685775757, -0.6944069266319275, -0.361576646566391, 0.33461877703666687, 0.08755450695753098, -0.43791288137435913, 0.18282145261764526, -0.5258363485336304, -0.08571009337902069, 0.211739644408226, -0.24645140767097473, -0.05360224097967148, 0.18926745653152466, 0.15777607262134552, 0.15971721708774567, -0.10880696773529053, 0.3789195120334625, 0.1676158607006073, -0.11417245864868164, 0.036520425230264664, -0.1507711410522461 ]
https://github.com/huggingface/datasets/issues/3990
Improve AutomaticSpeechRecognition task template
There is an open PR to do that: #3364. I just haven't had time to finish it...
**Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature.
17
Improve AutomaticSpeechRecognition task template **Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature. There is an open PR to do that: #3364. I just haven't had time to finish it...
[ -0.21498799324035645, -0.34678322076797485, -0.017444655299186707, -0.10449722409248352, 0.23595662415027618, -0.22555872797966003, 0.31238681077957153, 0.18227431178092957, 0.0016584359109401703, 0.28565874695777893, -0.07095949351787567, 0.3695850372314453, -0.19841407239437103, 0.1915428191423416, -0.061669521033763885, -0.32925674319267273, -0.0029949694871902466, 0.08266352117061615, 0.18834592401981354, -0.06534443795681, -0.41832640767097473, 0.23436667025089264, -0.235356405377388, 0.25003641843795776, -0.2449755221605301, -0.12085139006376266, 0.13343606889247894, -0.011242210865020752, -0.05347565561532974, -0.1596304476261139, -0.20595045387744904, 0.0831240713596344, 0.03845257684588432, 0.20280379056930542, -0.00009780059917829931, -0.24226553738117218, 0.4023903012275696, -0.048657238483428955, -0.2969120442867279, -0.21812133491039276, -0.3166019320487976, -0.017342424020171165, -0.13039660453796387, -0.16048471629619598, -0.22445493936538696, 0.0435829758644104, 0.14778539538383484, 0.22279301285743713, 0.38496530055999756, 0.3770553469657898, 0.3490595519542694, 0.1038101315498352, -0.0713496208190918, 0.019987819716334343, 0.24104800820350647, 0.17456406354904175, -0.2263510674238205, -0.031965870410203934, 0.3085455298423767, -0.29011252522468567, 0.05526666343212128, 0.4171874225139618, 0.0048588234931230545, -0.05529806390404701, 0.34413570165634155, -0.05502001941204071, -0.05487266927957535, -0.28819286823272705, 0.09193368256092072, 0.180408775806427, 0.36379116773605347, -0.2780382037162781, -0.10608107596635818, -0.32110872864723206, 0.1001882255077362, -0.4158458113670349, 0.13958755135536194, -0.1434563249349594, -0.24184498190879822, 0.24727298319339752, 0.11160489916801453, -0.2661689519882202, -0.07718633115291595, -0.18783576786518097, 0.072076216340065, -0.14099499583244324, -0.1387755125761032, -0.2821487784385681, 0.2504006028175354, -0.3091309666633606, -0.32023435831069946, 0.30666670203208923, 0.01743716187775135, 0.23875577747821808, -0.35444486141204834, -0.2793829143047333, 0.1541258543729782, -0.0002984926104545593, 0.00028740614652633667, 0.20933200418949127, 0.21007736027240753, 0.23793870210647583, -0.1611679196357727, 0.1559775471687317, -0.09351322054862976, 0.3464471995830536, 0.09258239716291428, -0.2859382927417755, 0.0668233335018158, 0.42740440368652344, -0.05675309896469116, -0.08452367037534714, -0.07709476351737976, -0.16931845247745514, -0.052133068442344666, 0.1772671937942505, 0.2511059641838074, -0.1841752678155899, -0.2144256830215454, -0.11664924770593643, 0.15970885753631592, -0.05041113495826721, 0.1044604703783989, 0.3871077299118042, -0.13615594804286957, 0.07942046225070953, 0.026122860610485077, 0.1547003537416458, -0.1334407925605774, 0.017621763050556183, -0.05055907741189003, 0.05441995710134506, -0.14654001593589783, 0.19736750423908234, 0.03979277238249779, 0.19687773287296295, 0.37369826436042786, -0.0945928692817688, 0.022893350571393967, -0.060308828949928284, -0.05638807266950607, 0.10552516579627991, -0.13841059803962708, -0.10850875079631805, -0.2528313100337982, 0.030788445845246315, -0.16867920756340027, 0.10423959791660309, -0.0493222139775753, -0.10436143726110458, -0.2904775142669678, -0.22505411505699158, 0.015090631321072578, 0.25016823410987854, 0.019057519733905792, -0.1387413591146469, 0.010169640183448792, 0.2936832010746002, -0.11822674423456192, -0.24253249168395996, 0.0016939863562583923, -0.07445334643125534, -0.27446505427360535, -0.03689682483673096, 0.0474594309926033, 0.0599471852183342, 0.2816145122051239, -0.16300641000270844, -0.032052893191576004, -0.034092243760824203, 0.23344281315803528, 0.4770340323448181, 0.06931822746992111, 0.13054347038269043, -0.05650242418050766, 0.5322832465171814, 0.10588368773460388, -0.30052056908607483, -0.09602774679660797, 0.06858416646718979, -0.2513023614883423, 0.13731732964515686, 0.09139969944953918, -0.17403356730937958, 0.20615515112876892, -0.2661590278148651, 0.18400217592716217, 0.18064789474010468, 0.23749907314777374, -0.03797005116939545, -0.33872872591018677, -0.24083298444747925, -0.05839580297470093, 0.07429519295692444, -0.16283561289310455, -0.005351141095161438, -0.2077234387397766, -0.004646647721529007, 0.37466371059417725, -0.19125689566135406, -0.0071748849004507065, 0.10272030532360077, 0.6944013833999634, 0.14208677411079407, 0.06479533016681671, -0.35211288928985596, 0.1121596246957779, -0.056520216166973114, -0.1812751442193985, 0.13624125719070435, -0.2884870171546936, -0.2558935582637787, -0.14508506655693054, -0.1251162737607956, -0.21394507586956024, 0.07215848565101624, 0.2681296467781067, 0.09657204151153564, -0.09627145528793335, -0.2506011128425598, -0.0549837201833725, 0.23087891936302185, -0.27952879667282104, -0.041306834667921066, -0.09578351676464081, -0.04996480047702789, -0.035527728497982025, 0.03965263068675995, 0.24339625239372253, 0.25257429480552673, 0.17138615250587463, 0.14464102685451508, -0.07460657507181168, 0.3479607105255127, 0.19122198224067688, 0.43503761291503906, -0.245647132396698, 0.21221770346164703, 0.029922274872660637, -0.22572048008441925, 0.08736113458871841, 0.13552403450012207, 0.06836472451686859, -0.002732563763856888, -0.13516142964363098, 0.11489074677228928, 0.28423136472702026, 0.3015115261077881, 0.31400227546691895, 0.02454131655395031, 0.23470944166183472, -0.11574973165988922, -0.29590368270874023, 0.09290827810764313, 0.006695777177810669, -0.21833504736423492, -0.032759975641965866, -0.02213672362267971, -0.6638223528862, 0.06604200601577759, 0.4666072130203247, -0.036849912256002426, 0.13078448176383972, 0.251417875289917, -0.1947535276412964, -0.25202280282974243, 0.02153732441365719, -0.006816532462835312, 0.019948668777942657, 0.3320983350276947, 0.05808884650468826, 0.06879904121160507, -0.2640107572078705, -0.12857380509376526, 0.16382211446762085, 0.07293182611465454, -0.08209162950515747, 0.1363610178232193, 0.1575649529695511, -0.07180329412221909, -0.49286550283432007, -0.12308293581008911, -0.17048577964305878, 0.11824531108140945, -0.31872817873954773, -0.33279484510421753, -0.16004027426242828, -0.4361516237258911, -0.28942808508872986, 0.03580935299396515, 0.010701384395360947, 0.00759161077439785, 0.3561316132545471, 0.2471948117017746, -0.2044847458600998, 0.30777454376220703, 0.28160005807876587, 0.25072234869003296, -0.20560671389102936, -0.17229385673999786, -0.13300150632858276, -0.01255061849951744, -0.04280295968055725, 0.22098980844020844, 0.13060899078845978, 0.2182476967573166, 0.068022720515728, -0.07210773229598999, -0.01835731416940689, -0.31530439853668213, -0.12073060870170593, -0.0179697647690773, -0.02332437038421631, 0.07672742009162903, 0.08602309226989746, 0.3379268944263458, -0.0342491939663887, -0.32254889607429504, 0.17158684134483337, 0.046246036887168884, -0.2566767632961273, -0.11125863343477249, -0.004278830252587795, 0.0757814422249794, -0.16922685503959656, -0.3831634521484375, -0.09379485994577408, -0.39890116453170776, 0.5438477396965027, -0.0032124072313308716, 0.18260344862937927, 0.5762656927108765, -0.09107324481010437, -0.03335694596171379, -0.2665211260318756, 0.29194530844688416, -0.13316458463668823, -0.10384701192378998, 0.20397137105464935, -0.11985467374324799, -0.21451188623905182, -0.2849750220775604, -0.04425261542201042, 0.22501134872436523, -0.01612408086657524, 0.11969634890556335, -0.4458323121070862, -0.2258514016866684, 0.053862038999795914, -0.0616413876414299, 0.0717303603887558, 0.31413644552230835, 0.236857071518898, -0.20272037386894226, 0.003017876297235489, -0.16741834580898285, 0.2343170940876007, 0.4886428713798523, 0.47091975808143616, 0.17934200167655945, 0.087061807513237, -0.22428138554096222, 0.7547683119773865, 0.22734434902668, 0.09072297811508179, 0.25682157278060913, -0.15491105616092682, -0.017132949084043503, -0.22961995005607605, -0.129788339138031, 0.3187505304813385, -0.005284920334815979, -0.17036207020282745, 0.4355170726776123, 0.26506832242012024, -0.0749189481139183, 0.1128278374671936, -0.394319087266922, -0.2745912969112396, -0.22065939009189606, 0.09847120940685272, 0.13419020175933838, 0.3184356987476349, 0.11127525568008423, 0.07309732586145401, -0.22951795160770416, 0.013075083494186401, 0.42273616790771484, 0.30875176191329956, 0.26356422901153564, -0.20717856287956238, -0.16102813184261322, -0.13198180496692657, -0.3256995975971222, 0.06051535904407501, 0.07948724925518036, 0.2542593777179718, -0.1721877008676529, -0.3001222610473633, -0.04352942109107971, 0.09654682129621506, 0.1574683040380478, -0.18149487674236298, -0.06395503133535385, -0.024737732484936714, 0.39065152406692505, 0.3270970582962036, 0.0522632859647274, -0.16184264421463013, -0.20022006332874298, 0.07144296914339066, 0.4585857093334198, 0.06169760972261429, -0.09552519768476486, -0.11007305979728699, 0.15055282413959503, -0.04861508682370186, 0.16392557322978973, 0.04870089516043663, -0.3705674111843109, -0.059981100261211395, 0.2054341733455658, 0.32274681329727173, 0.05262321978807449, 0.10257214307785034, -0.07688526809215546, 0.18287134170532227, -0.05945561081171036, 0.21900059282779694, 0.20941469073295593, 0.25358590483665466, 0.012986836954951286, 0.28947025537490845, 0.05619696527719498, 0.27520430088043213, -0.028660984709858894, 0.11234690248966217, -0.3362623453140259, -0.2627358138561249, -0.34026458859443665, -0.183797687292099, 0.4324145019054413, 0.34442922472953796, -0.07729775458574295, 0.32313427329063416, -0.019284147769212723, 0.27651968598365784, -0.45623788237571716, 0.06122535839676857, 0.5761844515800476, 0.28056055307388306, -0.05164654180407524, -0.4501219689846039, 0.32323959469795227, -0.031343553215265274, -0.3236130177974701, 0.11046438664197922, -0.02597910910844803, -0.16110488772392273, 0.36440300941467285, -0.2648303806781769, 0.9510226249694824, 0.24230532348155975, 0.008201289921998978, 0.3130403459072113, -0.17399871349334717, -0.12435252219438553, -0.25048598647117615, 0.25269174575805664, -0.10420861840248108, -0.1914595514535904, 0.020829034969210625, 0.19808530807495117, 0.08507475256919861, 0.18112735450267792, -0.29234614968299866, 0.19956326484680176, 0.15627515316009521, 0.041721075773239136, 0.051302261650562286, 0.30531778931617737, -0.06419255584478378, -0.33300966024398804, -0.23401203751564026, 0.21404224634170532, 0.3112008571624756, 0.267397940158844, 0.12553676962852478, -0.3065585494041443, 0.3721928298473358, -0.19634538888931274, -0.20547211170196533, 0.008065003901720047, -0.33656787872314453, -0.3207318186759949, 0.07967565208673477, -0.013024099171161652, 0.2553377151489258, -0.11544772982597351, 0.044599927961826324, 0.2812635898590088, -0.32916149497032166, 0.21924158930778503, 0.19944512844085693, 0.2194272130727768, -0.11631770431995392, 0.09725774824619293, 0.2526867687702179, -0.19642946124076843, -0.10888073593378067, -0.12246834486722946, -0.0061489795334637165, -0.022828465327620506, -0.2100902497768402, -0.3211761713027954, 0.2191765010356903, -0.05473719909787178, -0.11319243907928467, 0.02158939838409424, -0.02505626156926155, -0.25873684883117676, 0.26670920848846436, -0.10343317687511444, -0.17858920991420746, 0.307903528213501, 0.13865873217582703, 0.054729968309402466, -0.053037408739328384, 0.13265204429626465, -0.024644482880830765, -0.14552144706249237, 0.4588237404823303, -0.047714583575725555, -0.13680581748485565, -0.4249826669692993, -0.14198841154575348, -0.1305353194475174, -0.2357483208179474, 0.02063378132879734, 0.3226962685585022, -0.178511381149292, 0.020754950121045113, 0.3639272153377533, 0.05455276742577553, -0.09390579909086227, -0.49517330527305603, -0.08206723630428314, -0.36004549264907837, 0.12279807031154633, -0.09404297173023224, 0.17052212357521057, -0.23170921206474304, 0.10891377925872803, 0.23779454827308655, -0.21446451544761658, -0.5269115567207336, -0.05183041840791702, -0.11138584464788437, 0.13027560710906982, 0.35532182455062866, -0.016649074852466583, 0.28662651777267456, 0.030931837856769562, 0.24965998530387878, 0.1236758828163147, -0.066896952688694, -0.3082888722419739, -0.16216042637825012, 0.12687891721725464, -0.015055831521749496, 0.19104409217834473, 0.11942519247531891, -0.03667547553777695, -0.183884859085083, -0.15359735488891602, -0.08419562131166458, 0.12757453322410583, 0.0477234348654747, 0.298854798078537, -0.11442647874355316, -0.06704900413751602, 0.24197335541248322, 0.008825177326798439, -0.032930076122283936, 0.05206079035997391, -0.05304751545190811, -0.17239828407764435, -0.12089639902114868, -0.04268677160143852, 0.11021199822425842, 0.21417966485023499, 0.0376739501953125, -0.1096489354968071, 0.04012584313750267, 0.20812393724918365, -0.27062833309173584, 0.013514012098312378, 0.2717463970184326, 0.05573385953903198, -0.005178140942007303, -0.1741902232170105, 0.5599614381790161, 0.3968870937824249, -0.3992980718612671, 0.007314987480640411, -0.08072428405284882, -0.37286674976348877, 0.22881796956062317, 0.21114562451839447, 0.12121757864952087, -0.038629475980997086, 0.09957529604434967, 0.002509528771042824, 0.04535806179046631, -0.38370198011398315, -0.054683975875377655, 0.22592374682426453, 0.3363761901855469, -0.2367761880159378, 0.33352532982826233, -0.06078147515654564, 0.27926987409591675, 0.35748744010925293, -0.21785998344421387, -0.004627887159585953, 0.10780080407857895, 0.24256296455860138, 0.15425938367843628, -0.054558537900447845, -0.19692014157772064, 0.08500255644321442, -0.14868351817131042, 0.12465418130159378, 0.05728374421596527, 0.6785815954208374, -0.013787216506898403, -0.05290292203426361, -0.11222168058156967, 0.26531490683555603, -0.16043394804000854, -0.37459397315979004, -0.004213277250528336, -0.1688815951347351, -0.164983332157135, -0.3704729676246643, 0.15882432460784912, 0.3021014332771301, 0.17909814417362213, -0.2620352506637573, 0.1577056646347046, 0.05600976198911667, -0.1538899540901184, -0.035358160734176636, 0.4825003743171692, -0.12299850583076477, 0.1688666194677353, -0.26488906145095825, -0.06522221863269806, 0.30925875902175903, 0.3263780474662781, 0.29446154832839966, 0.0400596521794796, -0.06856575608253479, 0.0673605278134346, -0.20292584598064423, -0.016288377344608307, -0.04640957713127136, 0.1906929463148117, 0.0026070624589920044, 0.18296240270137787, 0.3152431547641754, 0.20548701286315918, -0.293079674243927, 0.19655610620975494, -0.07723605632781982, -0.1899784803390503, -0.23729129135608673, 0.6066159605979919, 0.10385729372501373, -0.09086091071367264, -0.47017499804496765, -0.26248863339424133, -0.5270686745643616, -0.14168646931648254, 0.2502836585044861, 0.011399001814424992, 0.08231465518474579, -0.09071134030818939, 0.1597609519958496, -0.23804211616516113, 0.20618289709091187, 0.40914610028266907, -0.16636359691619873, 0.09862791001796722, -0.13520610332489014, -0.6821534037590027, -0.0751199945807457, 0.08745245635509491, -0.1764216423034668, 0.036389242857694626, -0.11143898963928223, 0.06832076609134674, -0.07566382735967636, 0.12828150391578674, -0.0071195620112121105, -0.1541023999452591, 0.09023858606815338, -0.2957782447338104, 0.33670416474342346, 0.09481405466794968, 0.17975661158561707, 0.1564490646123886, -0.11682767421007156, 0.06781569123268127, 0.28752923011779785, 0.15613630414009094, -0.12688884139060974, 0.309951514005661, -0.2621733248233795, -0.2858406603336334, 0.28078585863113403, -0.08987061679363251, 0.04256433621048927, -0.4192925691604614, -0.022361189126968384, -0.03115173801779747, 0.042389582842588425, -0.15620781481266022, -0.18062090873718262, 0.0887405127286911, 0.5161408185958862, 0.16537325084209442, 0.09358374029397964, -0.22298790514469147, -0.08679243177175522, 0.19882352650165558, -0.21635578572750092, -0.2455953061580658, 0.28258374333381653, -0.10723108053207397, -0.07000261545181274, -0.01162826269865036, 0.030696874484419823, -0.06456779688596725, -0.21927523612976074, -0.3891908526420593, -0.620907187461853, 0.6795047521591187, -0.06405267864465714, -0.3472348153591156, -0.09583373367786407, 0.5747525095939636, -0.19637787342071533, 0.05176325887441635, -0.8849998116493225, -0.08838295191526413, 0.08311977237462997, 0.12045855075120926, 0.0646463930606842, 0.22746598720550537, -0.1078672856092453, -0.020558442920446396, -0.08317636698484421, -0.03669126331806183, 0.1474379599094391, 0.10545295476913452, -0.05357443168759346, -0.39491039514541626 ]
https://github.com/huggingface/datasets/issues/3990
Improve AutomaticSpeechRecognition task template
> There is an open PR to do that: #3364. I just haven't had time to finish it... 😬 thanks...
**Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature.
20
Improve AutomaticSpeechRecognition task template **Is your feature request related to a problem? Please describe.** [AutomaticSpeechRecognition task template](https://github.com/huggingface/datasets/blob/master/src/datasets/tasks/automatic_speech_recognition.py) is outdated as it uses path to audiofile as an audio column instead of a Audio feature itself (I guess it's because Audio feature didn't exist at the time this template was created). **Describe the solution you'd like** Change audio columns from string path to Audio feature. > There is an open PR to do that: #3364. I just haven't had time to finish it... 😬 thanks...
[ -0.19852890074253082, -0.3698558211326599, -0.007338713854551315, -0.08667407929897308, 0.2447383850812912, -0.21593859791755676, 0.29793354868888855, 0.18088066577911377, 0.00783294066786766, 0.23916120827198029, -0.0635342225432396, 0.37600600719451904, -0.19434155523777008, 0.19963884353637695, -0.06809310615062714, -0.3678838908672333, 0.012394875288009644, 0.08351254463195801, 0.19723358750343323, -0.061394382268190384, -0.44748231768608093, 0.2391318678855896, -0.2420191466808319, 0.26707297563552856, -0.23387041687965393, -0.12064199894666672, 0.09859132766723633, -0.01717057079076767, -0.07202750444412231, -0.15476712584495544, -0.1945839375257492, 0.07413594424724579, 0.05464758723974228, 0.18269628286361694, -0.00010010936239268631, -0.26647835969924927, 0.4109765291213989, -0.027525117620825768, -0.2662692666053772, -0.23296113312244415, -0.3487450182437897, -0.03319927304983139, -0.13282978534698486, -0.1649189591407776, -0.2112879753112793, 0.05978812649846077, 0.12500515580177307, 0.2470460832118988, 0.39372414350509644, 0.39075273275375366, 0.32855960726737976, 0.08595861494541168, -0.056974299252033234, 0.010130173526704311, 0.24401327967643738, 0.19312691688537598, -0.24464364349842072, -0.014714103192090988, 0.3480490744113922, -0.29656848311424255, 0.09033671021461487, 0.44202786684036255, -0.0002620536834001541, -0.08593195676803589, 0.40227413177490234, -0.07138517498970032, -0.03531306982040405, -0.2944989800453186, 0.0862400084733963, 0.1678401380777359, 0.38909703493118286, -0.2774452567100525, -0.08499500900506973, -0.29414597153663635, 0.10497132688760757, -0.4292166829109192, 0.1471354365348816, -0.16568830609321594, -0.20751430094242096, 0.25924551486968994, 0.11201399564743042, -0.2904386520385742, -0.09167454391717911, -0.194231316447258, 0.09421703219413757, -0.15877842903137207, -0.11925221979618073, -0.2706264853477478, 0.2165413796901703, -0.29738420248031616, -0.30763009190559387, 0.3112633526325226, 0.011672578752040863, 0.24749790132045746, -0.3633112907409668, -0.2954034209251404, 0.13469532132148743, -0.0074777305126190186, -0.007466742768883705, 0.24768130481243134, 0.2192496806383133, 0.21531608700752258, -0.1571619063615799, 0.1507142186164856, -0.10815013945102692, 0.364501953125, 0.10234042257070541, -0.29659342765808105, 0.03948184475302696, 0.44952401518821716, -0.05880289524793625, -0.10407113283872604, -0.07745248824357986, -0.17709532380104065, -0.03600113466382027, 0.19711649417877197, 0.27243393659591675, -0.20875369012355804, -0.19762857258319855, -0.10315489023923874, 0.16865238547325134, -0.05472448095679283, 0.11929385364055634, 0.3958241641521454, -0.14862000942230225, 0.09672001749277115, 0.04049579054117203, 0.1465550661087036, -0.09770912677049637, 0.021797001361846924, -0.011752260848879814, 0.06850491464138031, -0.1528811901807785, 0.19712375104427338, 0.025540735572576523, 0.18556952476501465, 0.3558119535446167, -0.10368431359529495, 0.04428922384977341, -0.06677468866109848, -0.07407207787036896, 0.09300844371318817, -0.13833582401275635, -0.11945140361785889, -0.3019867241382599, 0.047297894954681396, -0.17222332954406738, 0.1285754293203354, -0.052918437868356705, -0.09866929799318314, -0.34146320819854736, -0.2588516175746918, 0.015100307762622833, 0.2184062898159027, 0.018652822822332382, -0.134078711271286, -0.01844359189271927, 0.28701066970825195, -0.12476072460412979, -0.2390829622745514, 0.02378801256418228, -0.08404526859521866, -0.2754172086715698, -0.045850060880184174, 0.0499948114156723, 0.05251313000917435, 0.2950277030467987, -0.14560553431510925, -0.04900917038321495, -0.01854720339179039, 0.24337834119796753, 0.50468909740448, 0.10046711564064026, 0.1293376386165619, -0.049886565655469894, 0.5266278386116028, 0.11672402918338776, -0.2932024300098419, -0.07824479788541794, 0.07532859593629837, -0.23242804408073425, 0.15905332565307617, 0.08298324048519135, -0.1742294579744339, 0.20502245426177979, -0.28288593888282776, 0.16469353437423706, 0.18337340652942657, 0.26315540075302124, -0.056113436818122864, -0.3686782121658325, -0.25114190578460693, -0.0231432244181633, 0.04271252825856209, -0.1495543271303177, 0.010930992662906647, -0.2162083089351654, 0.00020358897745609283, 0.379059761762619, -0.1823519915342331, -0.02768629416823387, 0.09693960100412369, 0.7384147644042969, 0.15152621269226074, 0.07458963245153427, -0.3556460738182068, 0.10533380508422852, -0.05374958738684654, -0.2088024765253067, 0.10939882695674896, -0.28585201501846313, -0.2453213632106781, -0.1451411247253418, -0.10113077610731125, -0.21392400562763214, 0.05856817960739136, 0.23462989926338196, 0.06596583873033524, -0.09676675498485565, -0.273969829082489, -0.0685320571064949, 0.242417111992836, -0.31970733404159546, -0.04715510457754135, -0.08892351388931274, -0.03851412236690521, -0.00874030776321888, 0.05736581236124039, 0.22053587436676025, 0.2489829957485199, 0.1911454200744629, 0.13989047706127167, -0.08256998658180237, 0.3419342339038849, 0.19032955169677734, 0.45073962211608887, -0.24301359057426453, 0.2196800708770752, 0.031093839555978775, -0.2482568472623825, 0.11168165504932404, 0.1289876401424408, 0.05941089987754822, -0.003454744815826416, -0.1383366882801056, 0.12056382745504379, 0.2802116274833679, 0.3228561580181122, 0.29749345779418945, 0.03632855415344238, 0.20079751312732697, -0.1041877269744873, -0.3053768575191498, 0.12105000019073486, 0.0038924366235733032, -0.2290400117635727, -0.03571256622672081, -0.022405462339520454, -0.6677454113960266, 0.0697430744767189, 0.4717341959476471, -0.04832126200199127, 0.10138426721096039, 0.27047696709632874, -0.17775532603263855, -0.29194027185440063, 0.006713441573083401, -0.025648042559623718, 0.026221521198749542, 0.30302825570106506, 0.027147237211465836, 0.10387816280126572, -0.25438082218170166, -0.11884808540344238, 0.19466255605220795, 0.06577230244874954, -0.08338681608438492, 0.11623087525367737, 0.1658567190170288, -0.0409429632127285, -0.4511706531047821, -0.1193254292011261, -0.15708260238170624, 0.1405191868543625, -0.3433186411857605, -0.34718355536460876, -0.1435742974281311, -0.45173928141593933, -0.30661657452583313, 0.018025429919362068, -0.0013382136821746826, 0.005931582301855087, 0.3464046120643616, 0.236451655626297, -0.16942182183265686, 0.3171041011810303, 0.29902201890945435, 0.26715847849845886, -0.23492926359176636, -0.18394963443279266, -0.17523552477359772, 0.011090036481618881, -0.032026588916778564, 0.19062694907188416, 0.14311710000038147, 0.2316237986087799, 0.05603913962841034, -0.09219208359718323, -0.018072575330734253, -0.35399797558784485, -0.13635686039924622, -0.03627011924982071, -0.01759742572903633, 0.07649297267198563, 0.08920654654502869, 0.3457399606704712, -0.04249634966254234, -0.31130293011665344, 0.18564672768115997, 0.04870970547199249, -0.23063711822032928, -0.1123887225985527, -0.009396305307745934, 0.10117706656455994, -0.13695836067199707, -0.38502922654151917, -0.10027673840522766, -0.3833264708518982, 0.5643163919448853, -0.020537514239549637, 0.2064475417137146, 0.5951750874519348, -0.07665887475013733, -0.04986727237701416, -0.26845329999923706, 0.2876591682434082, -0.11389724165201187, -0.12030564248561859, 0.21633395552635193, -0.09826861321926117, -0.2108781486749649, -0.274437814950943, -0.01752457022666931, 0.22593869268894196, -0.008544020354747772, 0.13176047801971436, -0.4600704610347748, -0.23450003564357758, 0.05059045925736427, -0.07084275782108307, 0.054157715290784836, 0.3332332968711853, 0.2141459584236145, -0.17727898061275482, 0.03250100463628769, -0.1643451750278473, 0.2130897343158722, 0.5207008719444275, 0.518208384513855, 0.20670461654663086, 0.10570521652698517, -0.23264402151107788, 0.7799147963523865, 0.2368333637714386, 0.08427190780639648, 0.23617300391197205, -0.13680993020534515, -0.035356078296899796, -0.23836269974708557, -0.1613824963569641, 0.3477592170238495, -0.024428725242614746, -0.17690682411193848, 0.42302221059799194, 0.2867506444454193, -0.07813537120819092, 0.11177460849285126, -0.4309730529785156, -0.2657095491886139, -0.20212525129318237, 0.13263075053691864, 0.12734709680080414, 0.3503130078315735, 0.14077633619308472, 0.07043110579252243, -0.2509844899177551, -0.0034806649200618267, 0.454713374376297, 0.35722947120666504, 0.26967138051986694, -0.1929926723241806, -0.14596708118915558, -0.1362229436635971, -0.31830307841300964, 0.06420424580574036, 0.07221224159002304, 0.28117454051971436, -0.15449805557727814, -0.28403738141059875, -0.009581610560417175, 0.09635042399168015, 0.14734207093715668, -0.19046248495578766, -0.0804825872182846, -0.02578037418425083, 0.39789247512817383, 0.37599119544029236, 0.023756030946969986, -0.14461855590343475, -0.19208690524101257, 0.07389071583747864, 0.5030251741409302, 0.11274360865354538, -0.1382044404745102, -0.11773809790611267, 0.14881393313407898, -0.058854419738054276, 0.17840270698070526, 0.05345684662461281, -0.3692821264266968, -0.031701553612947464, 0.21633312106132507, 0.3191632032394409, 0.05045291781425476, 0.11632958054542542, -0.06644781678915024, 0.16932156682014465, -0.04108317568898201, 0.21126320958137512, 0.20448629558086395, 0.23936882615089417, 0.0021947198547422886, 0.2823152542114258, 0.028814736753702164, 0.2818518579006195, -0.051536500453948975, 0.07891245186328888, -0.36548346281051636, -0.2767713665962219, -0.3697766959667206, -0.19157421588897705, 0.4453747272491455, 0.3622489869594574, -0.10236509144306183, 0.33885398507118225, -0.025881178677082062, 0.2862783670425415, -0.47255080938339233, 0.02568579837679863, 0.6024839878082275, 0.29146242141723633, -0.06824333965778351, -0.4844224154949188, 0.33174869418144226, -0.02203197404742241, -0.33293020725250244, 0.09613911062479019, -0.03025493025779724, -0.1540243923664093, 0.3636515736579895, -0.23217767477035522, 0.992734968662262, 0.24383383989334106, -0.005914118140935898, 0.3122609257698059, -0.18372921645641327, -0.1163458377122879, -0.261746883392334, 0.25329771637916565, -0.11449502408504486, -0.21810634434223175, 0.002818359062075615, 0.19454325735569, 0.12896162271499634, 0.168900728225708, -0.290610134601593, 0.22751972079277039, 0.1618904322385788, 0.062347136437892914, 0.06323720514774323, 0.3062919080257416, -0.04829294979572296, -0.3177352547645569, -0.2290404587984085, 0.18903782963752747, 0.3020041584968567, 0.2828049063682556, 0.10834406316280365, -0.31837403774261475, 0.38057127594947815, -0.20566284656524658, -0.2324911653995514, -0.003518950194120407, -0.328825980424881, -0.33107995986938477, 0.09499875456094742, -0.03105485811829567, 0.29041653871536255, -0.13134953379631042, 0.04721750319004059, 0.2686818540096283, -0.3325708210468292, 0.22160616517066956, 0.2121267318725586, 0.20705679059028625, -0.09793729335069656, 0.09100731462240219, 0.25403210520744324, -0.20191341638565063, -0.08758466690778732, -0.11613426357507706, -0.015922224149107933, -0.044877372682094574, -0.23497051000595093, -0.3539033532142639, 0.24940821528434753, -0.03202267736196518, -0.15407931804656982, 0.02701146900653839, -0.009986095130443573, -0.25045159459114075, 0.2463804930448532, -0.09186156094074249, -0.18804475665092468, 0.33708682656288147, 0.11904175579547882, 0.04638752341270447, -0.0365547351539135, 0.10916709154844284, -0.05478353798389435, -0.16855216026306152, 0.46161338686943054, -0.03640368580818176, -0.13632071018218994, -0.41479673981666565, -0.12233074754476547, -0.1441698670387268, -0.2648404836654663, 0.006038988940417767, 0.32372695207595825, -0.14148196578025818, 0.0016022217459976673, 0.381802499294281, 0.08731165528297424, -0.09066105633974075, -0.4935707151889801, -0.10759080946445465, -0.37054872512817383, 0.1289723962545395, -0.10972237586975098, 0.15074357390403748, -0.258240282535553, 0.1009223610162735, 0.2712195813655853, -0.22594860196113586, -0.506192684173584, -0.0171247199177742, -0.09166020154953003, 0.12226616591215134, 0.35815298557281494, 0.01066950336098671, 0.2689912021160126, 0.015208512544631958, 0.21845512092113495, 0.1108255460858345, -0.0533970445394516, -0.27813565731048584, -0.1692766547203064, 0.14019131660461426, -0.020006153732538223, 0.21556176245212555, 0.1147598847746849, -0.05527812987565994, -0.18272985517978668, -0.14532849192619324, -0.1253873109817505, 0.12718462944030762, 0.04902128130197525, 0.3115368187427521, -0.12668977677822113, -0.07317493110895157, 0.22715015709400177, 0.037098802626132965, -0.03056253492832184, 0.06279722601175308, -0.049323584884405136, -0.15817177295684814, -0.12243757396936417, -0.04436897858977318, 0.08968410640954971, 0.21885353326797485, 0.00971444696187973, -0.11535287648439407, 0.04755048081278801, 0.21500638127326965, -0.24983175098896027, -0.01432793028652668, 0.24007537961006165, 0.06869906187057495, -0.007376519963145256, -0.17923246324062347, 0.5899153351783752, 0.36004728078842163, -0.391085684299469, 0.014825101010501385, -0.09581206738948822, -0.36302024126052856, 0.16440020501613617, 0.21480754017829895, 0.1550084948539734, -0.037999920547008514, 0.08870106935501099, -0.00048755109310150146, 0.06182422488927841, -0.3954493999481201, -0.06924843788146973, 0.22897103428840637, 0.37158849835395813, -0.22629089653491974, 0.3352717161178589, -0.057769548147916794, 0.2508891522884369, 0.3446202874183655, -0.22311466932296753, -0.037470489740371704, 0.11856642365455627, 0.2689216732978821, 0.14993369579315186, -0.049422234296798706, -0.21271593868732452, 0.09832124412059784, -0.15645167231559753, 0.14435717463493347, 0.04702013358473778, 0.7137873768806458, 0.015514552593231201, -0.0679151713848114, -0.10235731303691864, 0.27885374426841736, -0.12469274550676346, -0.39431890845298767, -0.006865758448839188, -0.17006471753120422, -0.18910148739814758, -0.3774614930152893, 0.13704819977283478, 0.30435001850128174, 0.21033433079719543, -0.2592189311981201, 0.14483141899108887, 0.06400609761476517, -0.16952773928642273, -0.026117458939552307, 0.4720170199871063, -0.13538269698619843, 0.16140301525592804, -0.2852054238319397, -0.055841684341430664, 0.32182708382606506, 0.3332323729991913, 0.2890205383300781, 0.05396346002817154, -0.05326616391539574, 0.06024788320064545, -0.18937847018241882, -0.003162536770105362, 0.018461458384990692, 0.18757514655590057, 0.006826408207416534, 0.1693069189786911, 0.2948129177093506, 0.17793923616409302, -0.26682743430137634, 0.21177738904953003, -0.08798202872276306, -0.16936273872852325, -0.2569844722747803, 0.6530594229698181, 0.13139617443084717, -0.10964858531951904, -0.46473756432533264, -0.2598184645175934, -0.5370676517486572, -0.13351671397686005, 0.24920804798603058, 0.03506498038768768, 0.07500279694795609, -0.06792380660772324, 0.14629602432250977, -0.2502497732639313, 0.19978320598602295, 0.4241505265235901, -0.19328853487968445, 0.09296902269124985, -0.14030081033706665, -0.7007661461830139, -0.10222048312425613, 0.10450412333011627, -0.16493640840053558, 0.07223013043403625, -0.1331220120191574, 0.04332081601023674, -0.0821511372923851, 0.16205506026744843, 0.0069410293363034725, -0.16027666628360748, 0.12869545817375183, -0.29163989424705505, 0.36352160573005676, 0.1216556578874588, 0.21825900673866272, 0.14206823706626892, -0.10312411934137344, 0.07186366617679596, 0.3293169140815735, 0.11385155469179153, -0.14886589348316193, 0.3162771165370941, -0.25532081723213196, -0.28214719891548157, 0.297555148601532, -0.08923882991075516, 0.010947354137897491, -0.3971536159515381, -0.014606173150241375, -0.03139210864901543, 0.043554678559303284, -0.1423737108707428, -0.1437104046344757, 0.08938580751419067, 0.5023288726806641, 0.16400864720344543, 0.08156712353229523, -0.24065320193767548, -0.09940896928310394, 0.17011864483356476, -0.2570999562740326, -0.28714412450790405, 0.27371010184288025, -0.1125703901052475, -0.06343098729848862, -0.00704966252669692, 0.016614709049463272, -0.06549742072820663, -0.21800296008586884, -0.42006826400756836, -0.6038338541984558, 0.6975605487823486, -0.06654378771781921, -0.3603757917881012, -0.08431962132453918, 0.5774388909339905, -0.20240679383277893, 0.06721796840429306, -0.9164292812347412, -0.12750011682510376, 0.07754933089017868, 0.13873440027236938, 0.07797811925411224, 0.2248130738735199, -0.11278034746646881, -0.006851717829704285, -0.08334755152463913, -0.04155544936656952, 0.12115292996168137, 0.11505722999572754, -0.06656266748905182, -0.39927369356155396 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi ! I didn't managed to reproduce the issue. When you kill the process, is there any stacktrace that shows at what point in the code python is hanging ?
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
30
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No Hi ! I didn't managed to reproduce the issue. When you kill the process, is there any stacktrace that shows at what point in the code python is hanging ?
[ -0.13052263855934143, -0.017079301178455353, 0.07597944140434265, 0.19710089266300201, 0.23935110867023468, 0.12498069554567337, 0.35195180773735046, 0.029304873198270798, 0.3356303572654724, -0.15894125401973724, -0.24298885464668274, 0.20900148153305054, -0.13766060769557953, -0.18502604961395264, 0.06453966349363327, 0.12833404541015625, -0.08860477060079575, 0.06680507957935333, -0.5255341529846191, 0.10195709764957428, -0.1630270779132843, 0.3697197437286377, 0.1454886943101883, -0.03614882379770279, -0.34875059127807617, 0.11713233590126038, 0.07093780487775803, 0.32487544417381287, 0.28484076261520386, -0.4033544063568115, 0.5639553666114807, 0.37677595019340515, -0.015135664492845535, 0.8255628347396851, -0.00012140478065703064, 0.19544793665409088, 0.20538996160030365, 0.0017627757042646408, -0.4395938515663147, -0.2337893396615982, -0.13464781641960144, 0.22025936841964722, 0.13871507346630096, 0.12328808754682541, -0.13842742145061493, 0.15951292216777802, -0.2997704744338989, -0.5241689085960388, 0.3007486164569855, -0.011688184924423695, 0.06578749418258667, 0.011592306196689606, -0.4470212757587433, -0.017190512269735336, 0.013857841491699219, 0.3224892318248749, -0.0880427211523056, 0.1964544653892517, -0.04708772897720337, -0.26278916001319885, -0.29866886138916016, 0.10673870146274567, 0.053715214133262634, 0.11754663288593292, 0.5483435392379761, -0.20979765057563782, -0.21828162670135498, -0.11284206807613373, 0.3412291705608368, 0.3434644341468811, 0.45958149433135986, -0.24463221430778503, -0.3263522982597351, -0.25606080889701843, -0.1411266028881073, -0.14920105040073395, 0.4811566174030304, 0.08404778689146042, -0.12074747681617737, 0.13940447568893433, -0.19680741429328918, -0.1649778038263321, -0.1814967393875122, 0.028250019997358322, -0.15761098265647888, -0.12775962054729462, -0.21680845320224762, 0.11480605602264404, 0.08704032003879547, -0.022087600082159042, 0.07782524824142456, -0.21150338649749756, -0.11799938976764679, 0.1512603461742401, -0.3537852168083191, 0.25735822319984436, 0.07935433089733124, 0.21779298782348633, 0.14930450916290283, 0.020269770175218582, 0.06809885054826736, 0.28256574273109436, -0.1908014863729477, -0.18025851249694824, 0.24301724135875702, 0.31629252433776855, -0.11576198786497116, -0.03164777159690857, 0.22000999748706818, 0.3941178321838379, -0.21984140574932098, 0.12186276912689209, 0.025652803480625153, -0.15324094891548157, 0.006541121751070023, -0.2546766996383667, 0.08812781423330307, -0.2044023871421814, 0.13126088678836823, 0.07640507817268372, 0.28678885102272034, 0.17874714732170105, 0.18427929282188416, 0.6079393625259399, -0.14407353103160858, 0.15421393513679504, -0.08586996793746948, -0.01790900155901909, -0.2161123901605606, 0.24331235885620117, -0.07599972933530807, -0.21261712908744812, -0.2573898434638977, 0.15536688268184662, 0.3877047300338745, -0.13460388779640198, 0.10198743641376495, 0.14655430614948273, 0.28165680170059204, -0.05593789368867874, -0.054752953350543976, 0.07435835897922516, 0.28320562839508057, 0.31017550826072693, -0.39515402913093567, 0.4864349067211151, 0.18926823139190674, 0.07057660818099976, -0.239471435546875, 0.0016310028731822968, -0.03892849385738373, -0.35278841853141785, 0.17861859500408173, 0.02450896054506302, -0.23706404864788055, 0.19310712814331055, -0.16847610473632812, -0.22084151208400726, 0.040286097675561905, 0.07323247194290161, 0.20997878909111023, -0.1485815942287445, -0.17697545886039734, -0.12257753312587738, 0.21692121028900146, 0.9498234987258911, -0.12167493999004364, -0.12632104754447937, -0.05996393784880638, -0.04460841044783592, -0.2922508716583252, 0.2930452227592468, -0.21154317259788513, 0.07044035941362381, -0.4798472225666046, -0.2935525178909302, -0.06583277136087418, -0.24697868525981903, -0.5121552348136902, 0.3591553568840027, -0.14076116681098938, 0.4206981658935547, 0.00887899100780487, 0.042363062500953674, -0.10945446044206619, -0.10492268204689026, 0.2273189276456833, 0.391873836517334, 0.23283468186855316, -0.015432770363986492, -0.1703709214925766, -0.21875740587711334, -0.13988734781742096, 0.2466059774160385, -0.12074533104896545, 0.24428528547286987, -0.09165830165147781, 0.21676690876483917, 0.1755947768688202, -0.04449525848031044, -0.01664913073182106, 0.6591691374778748, 0.09032794833183289, 0.3805583715438843, 0.1469765305519104, 0.011421877890825272, -0.8068040609359741, 0.36933326721191406, -0.2015695571899414, -0.1619609147310257, -0.28197789192199707, -0.026234185323119164, -0.27268701791763306, 0.14809754490852356, -0.4376360774040222, -0.24877816438674927, -0.05908486247062683, 0.0697098895907402, 0.09947218000888824, -0.05635938048362732, -0.09800679981708527, 0.7305579781532288, 0.1339225322008133, 0.14441078901290894, -0.38988977670669556, 0.1285337656736374, 0.20083889365196228, 0.07989877462387085, -0.12710952758789062, 0.3194999396800995, 0.07511050254106522, -0.5050867199897766, -0.25425341725349426, 0.39486372470855713, 0.050891950726509094, 0.48641884326934814, -0.11776795238256454, 0.10732704401016235, 0.19979628920555115, -0.09207814186811447, 0.14431142807006836, 0.05509015545248985, -0.02562449872493744, -0.12666000425815582, -0.25238803029060364, 0.10936645418405533, -0.5087055563926697, 0.4081336557865143, -0.012458249926567078, -0.2308519035577774, 0.1800682246685028, -0.12308266758918762, -0.0276811383664608, -0.1276397407054901, 0.3353099524974823, -0.03183339908719063, 0.7870131731033325, 0.21621176600456238, 0.08755627274513245, 0.09245532006025314, 0.034566476941108704, 0.012029584497213364, -0.09011257439851761, 0.13664697110652924, -0.19675299525260925, -0.08417703211307526, -0.022193660959601402, 0.23426233232021332, 0.32515668869018555, -0.021854035556316376, -0.007565002888441086, 0.07997265458106995, -0.018612027168273926, -0.06645962595939636, 0.0378570631146431, -0.16160626709461212, -0.018536852672696114, 0.2964584231376648, 0.22627724707126617, -0.005097557790577412, -0.22557517886161804, -0.2095835655927658, -0.12059416621923447, 0.026414018124341965, -0.31826141476631165, 0.2000207006931305, -0.32992374897003174, 0.12201403826475143, -0.0595962256193161, -0.1875290721654892, -0.23387303948402405, -0.166355699300766, -0.32436466217041016, 0.31813955307006836, -0.01209813728928566, 0.08313236385583878, 0.02739190310239792, 0.08391399681568146, 0.07798538357019424, -0.6237425208091736, -0.4418584108352661, -0.1814073920249939, -0.1416035294532776, -0.23484596610069275, 0.1944313645362854, -0.18883004784584045, -0.16009633243083954, 0.008530223742127419, -0.20289841294288635, -0.31535032391548157, -0.18542411923408508, 0.10361401736736298, 0.10776913166046143, 0.45960578322410583, 0.17362001538276672, 0.3005414605140686, 0.30200010538101196, 0.08832181245088577, 0.24838194251060486, -0.1640893667936325, 0.16439656913280487, 0.27834275364875793, -0.04455981031060219, 0.2051130086183548, -0.22531555593013763, -0.09442933648824692, -0.0427980050444603, -0.41787147521972656, 0.23663020133972168, -0.21040396392345428, -0.012257866561412811, 0.3359174430370331, 0.09777331352233887, 0.07258648425340652, -0.2288157194852829, -0.10218382626771927, -0.21132178604602814, -0.33021968603134155, 0.3547579050064087, -0.10113198310136795, -0.17733745276927948, -0.2069161981344223, -0.23118071258068085, 0.1812756061553955, 0.060577187687158585, -0.6444156169891357, 0.14702589809894562, -0.40785449743270874, 0.3474581837654114, -0.28879326581954956, -0.19173702597618103, 0.26881951093673706, 0.11371029913425446, 0.08870761841535568, -0.10813871026039124, -0.2930823862552643, 0.09002800285816193, -0.03217228502035141, 0.06615958362817764, 0.003594454377889633, 0.27610325813293457, -0.09407516568899155, 0.6626375913619995, 0.07871384918689728, 0.011900033801794052, 0.38899871706962585, 0.05156533420085907, 0.5719009041786194, -0.33017298579216003, -0.2870437204837799, -0.18809190392494202, -0.0738210380077362, -0.23505818843841553, 0.09915336966514587, 0.1411222517490387, 0.114079050719738, 0.09055459499359131, -0.06795865297317505, 0.13308551907539368, -0.35788750648498535, 0.0481070950627327, -0.1934201717376709, 0.15661780536174774, 0.2233896404504776, 0.06167970597743988, -0.22446630895137787, -0.1251526176929474, 0.2731548845767975, 0.3852524757385254, 0.00580248236656189, 0.1834826022386551, -0.15120024979114532, 0.22850944101810455, -0.21768814325332642, -0.04676486551761627, -0.17739050090312958, 0.1736539602279663, -0.20198765397071838, 0.1512925624847412, -0.08343331515789032, -0.16562910377979279, 0.7700791954994202, 0.09331332892179489, 0.4446447491645813, 0.13162337243556976, -0.19268178939819336, -0.5198280215263367, -0.045932039618492126, 0.321500301361084, 0.13463181257247925, 0.166792631149292, 0.4837481677532196, -0.12293955683708191, -0.39338645339012146, -0.13474929332733154, 0.360548198223114, -0.17294320464134216, -0.28886011242866516, -0.12698951363563538, -0.1851266622543335, -0.049954500049352646, -0.08569646626710892, -0.2328859120607376, -0.16653090715408325, 0.12970180809497833, -0.1383281946182251, -0.012184260413050652, -0.04950527474284172, 0.059573836624622345, 0.1700795292854309, 0.22953638434410095, -0.14223787188529968, 0.2899217903614044, 0.20117266476154327, -0.23868206143379211, 0.13913671672344208, 0.5795518755912781, -0.20276129245758057, 0.017972633242607117, 0.1931152045726776, 0.009500649757683277, -0.2020719051361084, 0.4298553764820099, -0.05381492152810097, 0.012030161917209625, -0.0395987443625927, 0.3624829053878784, -0.3489118814468384, 0.20268899202346802, -0.014930324628949165, 0.16419225931167603, -0.08139850199222565, -0.2914857566356659, 0.5887516140937805, -0.0003854949027299881, -0.1984991431236267, 0.3374209702014923, 0.29783523082733154, -0.2333904206752777, 0.4287286400794983, -0.1433904469013214, 0.5358007550239563, -0.08475962281227112, 0.2781194746494293, 0.15800857543945312, -0.3518626093864441, 0.2277248054742813, -0.20052939653396606, 0.0006388835608959198, -0.2629261016845703, -0.04335866868495941, 0.017155682668089867, -0.34458449482917786, 0.12654703855514526, 0.2057868242263794, -0.05165352672338486, 0.3397006392478943, -0.2776758074760437, 0.15738575160503387, -0.05700615793466568, 0.1723962128162384, -0.17923708260059357, -0.44095543026924133, -0.2281835526227951, 0.10793675482273102, -0.20768485963344574, 0.5127376914024353, -0.06498536467552185, 0.06542189419269562, -0.023181743919849396, 0.1333327740430832, -0.191676527261734, 0.14244773983955383, -0.20560768246650696, -0.019015919417142868, 0.06405716389417648, -0.16772693395614624, 0.30539700388908386, 0.12111498415470123, 0.24972108006477356, 0.18319912254810333, -0.16548170149326324, 0.23777717351913452, -0.17613226175308228, 0.14779150485992432, -0.0856715738773346, 0.04667593166232109, 0.011682223528623581, 0.1783214807510376, 0.043435849249362946, -0.3020639419555664, -0.36808520555496216, -0.06329698860645294, 0.07807137072086334, 0.011357538402080536, -0.0828317403793335, -0.2589149475097656, -0.23327651619911194, -0.013008162379264832, 0.23252731561660767, -0.03855528682470322, 0.034283287823200226, 0.0729518011212349, 0.007234266959130764, 0.16715054214000702, -0.2390594631433487, -0.45689937472343445, -0.15472948551177979, 0.4233967065811157, -0.2755562663078308, -0.1281435191631317, 0.704708456993103, 0.138066366314888, 0.037508681416511536, -0.14656271040439606, -0.01751835271716118, 0.1783904731273651, -0.6224485635757446, 0.12428737431764603, -0.025500353425741196, -0.21032929420471191, 0.07604670524597168, -0.12626637518405914, 0.19717934727668762, -0.09285759180784225, -0.037566427141427994, -0.17934538424015045, -0.37002474069595337, -0.06879870593547821, -0.2767612636089325, 0.18736353516578674, 0.14036443829536438, -0.13616502285003662, 0.06804873049259186, 0.2571336627006531, -0.1587614268064499, 0.22399017214775085, -0.20438161492347717, -0.09141946583986282, 0.18820171058177948, -0.18601733446121216, 0.24678300321102142, -0.31074267625808716, -0.01924532651901245, -0.004371386021375656, -0.35885295271873474, -0.11993760615587234, -0.339839905500412, 0.14461399614810944, -0.14490929245948792, 0.14707832038402557, -0.13220104575157166, -0.18195456266403198, 0.23496180772781372, -0.2244153916835785, 0.477193146944046, 0.3037218749523163, -0.06197038292884827, -0.03215348348021507, 0.014573711901903152, 0.06249142810702324, -0.22566042840480804, 0.060085229575634, 0.013332128524780273, -0.06538034975528717, 0.2858356833457947, 0.023737335577607155, -0.3684059679508209, -0.02314341440796852, -0.302325576543808, 0.05841916427016258, 0.04756992682814598, 0.008871162310242653, 0.3669113516807556, -0.3021147847175598, 0.10157112777233124, 0.12106509506702423, 0.12652409076690674, 0.2139822393655777, -0.0996432900428772, -0.31374484300613403, 0.1251669079065323, 0.06485289335250854, 0.08823322504758835, -0.09548105299472809, 0.12101100385189056, -0.06237929314374924, 0.024028073996305466, 0.2588593661785126, 0.30174192786216736, -0.16906346380710602, 0.3920373320579529, 0.22434532642364502, 0.721077024936676, -0.12386119365692139, 0.13122141361236572, 0.2824808657169342, -0.2342367023229599, 0.08560013025999069, 0.41948479413986206, 0.33622419834136963, 0.07541034370660782, 0.5063923001289368, 0.2491413950920105, 0.11573003232479095, -0.22594618797302246, 0.3680345118045807, 0.07430341094732285, -0.6350297927856445, -0.11549249291419983, 0.0932231917977333, 0.0363452285528183, 0.3147943317890167, -0.11516273021697998, 0.3819347321987152, -0.5003918409347534, -0.2156364470720291, -0.021739671006798744, 0.023108096793293953, -0.07315922528505325, -0.3077050745487213, 0.47278350591659546, -0.057673465460538864, 0.06096768379211426, 0.08474279940128326, -0.06826016306877136, -0.2254706472158432, 0.26481735706329346, 0.0816713497042656, 0.08557909727096558, -0.18135732412338257, 0.014504827558994293, 0.07839217036962509, -0.03371217101812363, 0.026260409504175186, 0.3455773591995239, 0.15604427456855774, -0.24004676938056946, 0.07988990843296051, 0.05024467408657074, 0.19544638693332672, 0.19963131844997406, -0.18036018311977386, 0.25264936685562134, 0.05503959208726883, -0.009059004485607147, -0.03567838296294212, 0.042136840522289276, -0.20916453003883362, -0.00025134533643722534, 0.18577855825424194, 0.08564205467700958, -0.10970818996429443, -0.04851527139544487, -0.12284567952156067, 0.5743908882141113, -0.33067700266838074, 0.4036704897880554, 0.06318533420562744, 0.007062368094921112, 0.07639545202255249, 0.04720507562160492, -0.3255836069583893, 0.06824076175689697, 0.4605390429496765, -0.08408262580633163, -0.011017989367246628, -0.0459628701210022, 0.02157711610198021, 0.18600499629974365, 0.6756531000137329, 0.18090328574180603, 0.0688856914639473, -0.17533385753631592, -0.09224794059991837, -0.7202569842338562, 0.004839539527893066, -0.15381622314453125, 0.06820464879274368, 0.18330101668834686, 0.025497769936919212, -0.033525675535202026, -0.1361493468284607, 0.1343493014574051, 0.03640667721629143, 0.08562663197517395, 0.08049476146697998, -0.2730599343776703, 0.0851767510175705, -0.1839795857667923, 0.16729815304279327, -0.06666911393404007, -0.38127410411834717, 0.005537118762731552, 0.4040564298629761, -0.033012665808200836, 0.08364960551261902, 0.016826868057250977, 0.06032487377524376, -0.0656191036105156, 0.22110557556152344, 0.004555758088827133, -0.33146703243255615, 0.266888827085495, -0.29873526096343994, -0.4420071244239807, -0.17871583998203278, 0.22373363375663757, -0.3295326232910156, 0.02615402638912201, 0.31596073508262634, -0.37461525201797485, -0.35900285840034485, -0.46973150968551636, 0.0518302321434021, 0.18919724225997925, 0.1528865396976471, 0.04896325618028641, 0.2164817899465561, -0.1843089759349823, 0.38071075081825256, 0.24266578257083893, 0.5996033549308777, 0.14251647889614105, 0.34259700775146484, -0.18816448748111725, -0.14593784511089325, 0.5672606229782104, -0.33317649364471436, -0.5053150057792664, 0.28557807207107544, 0.21994787454605103, -0.09735425561666489, -0.4509097933769226, -0.23510602116584778, 0.12370339781045914, 0.0580432265996933, -0.04608670622110367, -0.13829456269741058, 0.032272350043058395, -0.3811512291431427, 0.031432751566171646, -0.18135276436805725, 0.37757211923599243, 0.26853951811790466, -0.006570832803845406, -0.04064871743321419, 0.0667336955666542 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @lhoestq , I've traced the issue back to file locking. It's similar to this thread, using Lustre filesystem as well. https://github.com/huggingface/datasets/issues/329 . In this case the user was able to modify and add -o flock option while mounting and it solved the problem. However in other cases such as mine, we do not have the permissions to modify the commands while mounting. I'm still trying to figure out a workaround. Any ideas how can we use a mounted Lustre filesystem with no flock option?
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
85
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No Hi @lhoestq , I've traced the issue back to file locking. It's similar to this thread, using Lustre filesystem as well. https://github.com/huggingface/datasets/issues/329 . In this case the user was able to modify and add -o flock option while mounting and it solved the problem. However in other cases such as mine, we do not have the permissions to modify the commands while mounting. I'm still trying to figure out a workaround. Any ideas how can we use a mounted Lustre filesystem with no flock option?
[ -0.13052263855934143, -0.017079301178455353, 0.07597944140434265, 0.19710089266300201, 0.23935110867023468, 0.12498069554567337, 0.35195180773735046, 0.029304873198270798, 0.3356303572654724, -0.15894125401973724, -0.24298885464668274, 0.20900148153305054, -0.13766060769557953, -0.18502604961395264, 0.06453966349363327, 0.12833404541015625, -0.08860477060079575, 0.06680507957935333, -0.5255341529846191, 0.10195709764957428, -0.1630270779132843, 0.3697197437286377, 0.1454886943101883, -0.03614882379770279, -0.34875059127807617, 0.11713233590126038, 0.07093780487775803, 0.32487544417381287, 0.28484076261520386, -0.4033544063568115, 0.5639553666114807, 0.37677595019340515, -0.015135664492845535, 0.8255628347396851, -0.00012140478065703064, 0.19544793665409088, 0.20538996160030365, 0.0017627757042646408, -0.4395938515663147, -0.2337893396615982, -0.13464781641960144, 0.22025936841964722, 0.13871507346630096, 0.12328808754682541, -0.13842742145061493, 0.15951292216777802, -0.2997704744338989, -0.5241689085960388, 0.3007486164569855, -0.011688184924423695, 0.06578749418258667, 0.011592306196689606, -0.4470212757587433, -0.017190512269735336, 0.013857841491699219, 0.3224892318248749, -0.0880427211523056, 0.1964544653892517, -0.04708772897720337, -0.26278916001319885, -0.29866886138916016, 0.10673870146274567, 0.053715214133262634, 0.11754663288593292, 0.5483435392379761, -0.20979765057563782, -0.21828162670135498, -0.11284206807613373, 0.3412291705608368, 0.3434644341468811, 0.45958149433135986, -0.24463221430778503, -0.3263522982597351, -0.25606080889701843, -0.1411266028881073, -0.14920105040073395, 0.4811566174030304, 0.08404778689146042, -0.12074747681617737, 0.13940447568893433, -0.19680741429328918, -0.1649778038263321, -0.1814967393875122, 0.028250019997358322, -0.15761098265647888, -0.12775962054729462, -0.21680845320224762, 0.11480605602264404, 0.08704032003879547, -0.022087600082159042, 0.07782524824142456, -0.21150338649749756, -0.11799938976764679, 0.1512603461742401, -0.3537852168083191, 0.25735822319984436, 0.07935433089733124, 0.21779298782348633, 0.14930450916290283, 0.020269770175218582, 0.06809885054826736, 0.28256574273109436, -0.1908014863729477, -0.18025851249694824, 0.24301724135875702, 0.31629252433776855, -0.11576198786497116, -0.03164777159690857, 0.22000999748706818, 0.3941178321838379, -0.21984140574932098, 0.12186276912689209, 0.025652803480625153, -0.15324094891548157, 0.006541121751070023, -0.2546766996383667, 0.08812781423330307, -0.2044023871421814, 0.13126088678836823, 0.07640507817268372, 0.28678885102272034, 0.17874714732170105, 0.18427929282188416, 0.6079393625259399, -0.14407353103160858, 0.15421393513679504, -0.08586996793746948, -0.01790900155901909, -0.2161123901605606, 0.24331235885620117, -0.07599972933530807, -0.21261712908744812, -0.2573898434638977, 0.15536688268184662, 0.3877047300338745, -0.13460388779640198, 0.10198743641376495, 0.14655430614948273, 0.28165680170059204, -0.05593789368867874, -0.054752953350543976, 0.07435835897922516, 0.28320562839508057, 0.31017550826072693, -0.39515402913093567, 0.4864349067211151, 0.18926823139190674, 0.07057660818099976, -0.239471435546875, 0.0016310028731822968, -0.03892849385738373, -0.35278841853141785, 0.17861859500408173, 0.02450896054506302, -0.23706404864788055, 0.19310712814331055, -0.16847610473632812, -0.22084151208400726, 0.040286097675561905, 0.07323247194290161, 0.20997878909111023, -0.1485815942287445, -0.17697545886039734, -0.12257753312587738, 0.21692121028900146, 0.9498234987258911, -0.12167493999004364, -0.12632104754447937, -0.05996393784880638, -0.04460841044783592, -0.2922508716583252, 0.2930452227592468, -0.21154317259788513, 0.07044035941362381, -0.4798472225666046, -0.2935525178909302, -0.06583277136087418, -0.24697868525981903, -0.5121552348136902, 0.3591553568840027, -0.14076116681098938, 0.4206981658935547, 0.00887899100780487, 0.042363062500953674, -0.10945446044206619, -0.10492268204689026, 0.2273189276456833, 0.391873836517334, 0.23283468186855316, -0.015432770363986492, -0.1703709214925766, -0.21875740587711334, -0.13988734781742096, 0.2466059774160385, -0.12074533104896545, 0.24428528547286987, -0.09165830165147781, 0.21676690876483917, 0.1755947768688202, -0.04449525848031044, -0.01664913073182106, 0.6591691374778748, 0.09032794833183289, 0.3805583715438843, 0.1469765305519104, 0.011421877890825272, -0.8068040609359741, 0.36933326721191406, -0.2015695571899414, -0.1619609147310257, -0.28197789192199707, -0.026234185323119164, -0.27268701791763306, 0.14809754490852356, -0.4376360774040222, -0.24877816438674927, -0.05908486247062683, 0.0697098895907402, 0.09947218000888824, -0.05635938048362732, -0.09800679981708527, 0.7305579781532288, 0.1339225322008133, 0.14441078901290894, -0.38988977670669556, 0.1285337656736374, 0.20083889365196228, 0.07989877462387085, -0.12710952758789062, 0.3194999396800995, 0.07511050254106522, -0.5050867199897766, -0.25425341725349426, 0.39486372470855713, 0.050891950726509094, 0.48641884326934814, -0.11776795238256454, 0.10732704401016235, 0.19979628920555115, -0.09207814186811447, 0.14431142807006836, 0.05509015545248985, -0.02562449872493744, -0.12666000425815582, -0.25238803029060364, 0.10936645418405533, -0.5087055563926697, 0.4081336557865143, -0.012458249926567078, -0.2308519035577774, 0.1800682246685028, -0.12308266758918762, -0.0276811383664608, -0.1276397407054901, 0.3353099524974823, -0.03183339908719063, 0.7870131731033325, 0.21621176600456238, 0.08755627274513245, 0.09245532006025314, 0.034566476941108704, 0.012029584497213364, -0.09011257439851761, 0.13664697110652924, -0.19675299525260925, -0.08417703211307526, -0.022193660959601402, 0.23426233232021332, 0.32515668869018555, -0.021854035556316376, -0.007565002888441086, 0.07997265458106995, -0.018612027168273926, -0.06645962595939636, 0.0378570631146431, -0.16160626709461212, -0.018536852672696114, 0.2964584231376648, 0.22627724707126617, -0.005097557790577412, -0.22557517886161804, -0.2095835655927658, -0.12059416621923447, 0.026414018124341965, -0.31826141476631165, 0.2000207006931305, -0.32992374897003174, 0.12201403826475143, -0.0595962256193161, -0.1875290721654892, -0.23387303948402405, -0.166355699300766, -0.32436466217041016, 0.31813955307006836, -0.01209813728928566, 0.08313236385583878, 0.02739190310239792, 0.08391399681568146, 0.07798538357019424, -0.6237425208091736, -0.4418584108352661, -0.1814073920249939, -0.1416035294532776, -0.23484596610069275, 0.1944313645362854, -0.18883004784584045, -0.16009633243083954, 0.008530223742127419, -0.20289841294288635, -0.31535032391548157, -0.18542411923408508, 0.10361401736736298, 0.10776913166046143, 0.45960578322410583, 0.17362001538276672, 0.3005414605140686, 0.30200010538101196, 0.08832181245088577, 0.24838194251060486, -0.1640893667936325, 0.16439656913280487, 0.27834275364875793, -0.04455981031060219, 0.2051130086183548, -0.22531555593013763, -0.09442933648824692, -0.0427980050444603, -0.41787147521972656, 0.23663020133972168, -0.21040396392345428, -0.012257866561412811, 0.3359174430370331, 0.09777331352233887, 0.07258648425340652, -0.2288157194852829, -0.10218382626771927, -0.21132178604602814, -0.33021968603134155, 0.3547579050064087, -0.10113198310136795, -0.17733745276927948, -0.2069161981344223, -0.23118071258068085, 0.1812756061553955, 0.060577187687158585, -0.6444156169891357, 0.14702589809894562, -0.40785449743270874, 0.3474581837654114, -0.28879326581954956, -0.19173702597618103, 0.26881951093673706, 0.11371029913425446, 0.08870761841535568, -0.10813871026039124, -0.2930823862552643, 0.09002800285816193, -0.03217228502035141, 0.06615958362817764, 0.003594454377889633, 0.27610325813293457, -0.09407516568899155, 0.6626375913619995, 0.07871384918689728, 0.011900033801794052, 0.38899871706962585, 0.05156533420085907, 0.5719009041786194, -0.33017298579216003, -0.2870437204837799, -0.18809190392494202, -0.0738210380077362, -0.23505818843841553, 0.09915336966514587, 0.1411222517490387, 0.114079050719738, 0.09055459499359131, -0.06795865297317505, 0.13308551907539368, -0.35788750648498535, 0.0481070950627327, -0.1934201717376709, 0.15661780536174774, 0.2233896404504776, 0.06167970597743988, -0.22446630895137787, -0.1251526176929474, 0.2731548845767975, 0.3852524757385254, 0.00580248236656189, 0.1834826022386551, -0.15120024979114532, 0.22850944101810455, -0.21768814325332642, -0.04676486551761627, -0.17739050090312958, 0.1736539602279663, -0.20198765397071838, 0.1512925624847412, -0.08343331515789032, -0.16562910377979279, 0.7700791954994202, 0.09331332892179489, 0.4446447491645813, 0.13162337243556976, -0.19268178939819336, -0.5198280215263367, -0.045932039618492126, 0.321500301361084, 0.13463181257247925, 0.166792631149292, 0.4837481677532196, -0.12293955683708191, -0.39338645339012146, -0.13474929332733154, 0.360548198223114, -0.17294320464134216, -0.28886011242866516, -0.12698951363563538, -0.1851266622543335, -0.049954500049352646, -0.08569646626710892, -0.2328859120607376, -0.16653090715408325, 0.12970180809497833, -0.1383281946182251, -0.012184260413050652, -0.04950527474284172, 0.059573836624622345, 0.1700795292854309, 0.22953638434410095, -0.14223787188529968, 0.2899217903614044, 0.20117266476154327, -0.23868206143379211, 0.13913671672344208, 0.5795518755912781, -0.20276129245758057, 0.017972633242607117, 0.1931152045726776, 0.009500649757683277, -0.2020719051361084, 0.4298553764820099, -0.05381492152810097, 0.012030161917209625, -0.0395987443625927, 0.3624829053878784, -0.3489118814468384, 0.20268899202346802, -0.014930324628949165, 0.16419225931167603, -0.08139850199222565, -0.2914857566356659, 0.5887516140937805, -0.0003854949027299881, -0.1984991431236267, 0.3374209702014923, 0.29783523082733154, -0.2333904206752777, 0.4287286400794983, -0.1433904469013214, 0.5358007550239563, -0.08475962281227112, 0.2781194746494293, 0.15800857543945312, -0.3518626093864441, 0.2277248054742813, -0.20052939653396606, 0.0006388835608959198, -0.2629261016845703, -0.04335866868495941, 0.017155682668089867, -0.34458449482917786, 0.12654703855514526, 0.2057868242263794, -0.05165352672338486, 0.3397006392478943, -0.2776758074760437, 0.15738575160503387, -0.05700615793466568, 0.1723962128162384, -0.17923708260059357, -0.44095543026924133, -0.2281835526227951, 0.10793675482273102, -0.20768485963344574, 0.5127376914024353, -0.06498536467552185, 0.06542189419269562, -0.023181743919849396, 0.1333327740430832, -0.191676527261734, 0.14244773983955383, -0.20560768246650696, -0.019015919417142868, 0.06405716389417648, -0.16772693395614624, 0.30539700388908386, 0.12111498415470123, 0.24972108006477356, 0.18319912254810333, -0.16548170149326324, 0.23777717351913452, -0.17613226175308228, 0.14779150485992432, -0.0856715738773346, 0.04667593166232109, 0.011682223528623581, 0.1783214807510376, 0.043435849249362946, -0.3020639419555664, -0.36808520555496216, -0.06329698860645294, 0.07807137072086334, 0.011357538402080536, -0.0828317403793335, -0.2589149475097656, -0.23327651619911194, -0.013008162379264832, 0.23252731561660767, -0.03855528682470322, 0.034283287823200226, 0.0729518011212349, 0.007234266959130764, 0.16715054214000702, -0.2390594631433487, -0.45689937472343445, -0.15472948551177979, 0.4233967065811157, -0.2755562663078308, -0.1281435191631317, 0.704708456993103, 0.138066366314888, 0.037508681416511536, -0.14656271040439606, -0.01751835271716118, 0.1783904731273651, -0.6224485635757446, 0.12428737431764603, -0.025500353425741196, -0.21032929420471191, 0.07604670524597168, -0.12626637518405914, 0.19717934727668762, -0.09285759180784225, -0.037566427141427994, -0.17934538424015045, -0.37002474069595337, -0.06879870593547821, -0.2767612636089325, 0.18736353516578674, 0.14036443829536438, -0.13616502285003662, 0.06804873049259186, 0.2571336627006531, -0.1587614268064499, 0.22399017214775085, -0.20438161492347717, -0.09141946583986282, 0.18820171058177948, -0.18601733446121216, 0.24678300321102142, -0.31074267625808716, -0.01924532651901245, -0.004371386021375656, -0.35885295271873474, -0.11993760615587234, -0.339839905500412, 0.14461399614810944, -0.14490929245948792, 0.14707832038402557, -0.13220104575157166, -0.18195456266403198, 0.23496180772781372, -0.2244153916835785, 0.477193146944046, 0.3037218749523163, -0.06197038292884827, -0.03215348348021507, 0.014573711901903152, 0.06249142810702324, -0.22566042840480804, 0.060085229575634, 0.013332128524780273, -0.06538034975528717, 0.2858356833457947, 0.023737335577607155, -0.3684059679508209, -0.02314341440796852, -0.302325576543808, 0.05841916427016258, 0.04756992682814598, 0.008871162310242653, 0.3669113516807556, -0.3021147847175598, 0.10157112777233124, 0.12106509506702423, 0.12652409076690674, 0.2139822393655777, -0.0996432900428772, -0.31374484300613403, 0.1251669079065323, 0.06485289335250854, 0.08823322504758835, -0.09548105299472809, 0.12101100385189056, -0.06237929314374924, 0.024028073996305466, 0.2588593661785126, 0.30174192786216736, -0.16906346380710602, 0.3920373320579529, 0.22434532642364502, 0.721077024936676, -0.12386119365692139, 0.13122141361236572, 0.2824808657169342, -0.2342367023229599, 0.08560013025999069, 0.41948479413986206, 0.33622419834136963, 0.07541034370660782, 0.5063923001289368, 0.2491413950920105, 0.11573003232479095, -0.22594618797302246, 0.3680345118045807, 0.07430341094732285, -0.6350297927856445, -0.11549249291419983, 0.0932231917977333, 0.0363452285528183, 0.3147943317890167, -0.11516273021697998, 0.3819347321987152, -0.5003918409347534, -0.2156364470720291, -0.021739671006798744, 0.023108096793293953, -0.07315922528505325, -0.3077050745487213, 0.47278350591659546, -0.057673465460538864, 0.06096768379211426, 0.08474279940128326, -0.06826016306877136, -0.2254706472158432, 0.26481735706329346, 0.0816713497042656, 0.08557909727096558, -0.18135732412338257, 0.014504827558994293, 0.07839217036962509, -0.03371217101812363, 0.026260409504175186, 0.3455773591995239, 0.15604427456855774, -0.24004676938056946, 0.07988990843296051, 0.05024467408657074, 0.19544638693332672, 0.19963131844997406, -0.18036018311977386, 0.25264936685562134, 0.05503959208726883, -0.009059004485607147, -0.03567838296294212, 0.042136840522289276, -0.20916453003883362, -0.00025134533643722534, 0.18577855825424194, 0.08564205467700958, -0.10970818996429443, -0.04851527139544487, -0.12284567952156067, 0.5743908882141113, -0.33067700266838074, 0.4036704897880554, 0.06318533420562744, 0.007062368094921112, 0.07639545202255249, 0.04720507562160492, -0.3255836069583893, 0.06824076175689697, 0.4605390429496765, -0.08408262580633163, -0.011017989367246628, -0.0459628701210022, 0.02157711610198021, 0.18600499629974365, 0.6756531000137329, 0.18090328574180603, 0.0688856914639473, -0.17533385753631592, -0.09224794059991837, -0.7202569842338562, 0.004839539527893066, -0.15381622314453125, 0.06820464879274368, 0.18330101668834686, 0.025497769936919212, -0.033525675535202026, -0.1361493468284607, 0.1343493014574051, 0.03640667721629143, 0.08562663197517395, 0.08049476146697998, -0.2730599343776703, 0.0851767510175705, -0.1839795857667923, 0.16729815304279327, -0.06666911393404007, -0.38127410411834717, 0.005537118762731552, 0.4040564298629761, -0.033012665808200836, 0.08364960551261902, 0.016826868057250977, 0.06032487377524376, -0.0656191036105156, 0.22110557556152344, 0.004555758088827133, -0.33146703243255615, 0.266888827085495, -0.29873526096343994, -0.4420071244239807, -0.17871583998203278, 0.22373363375663757, -0.3295326232910156, 0.02615402638912201, 0.31596073508262634, -0.37461525201797485, -0.35900285840034485, -0.46973150968551636, 0.0518302321434021, 0.18919724225997925, 0.1528865396976471, 0.04896325618028641, 0.2164817899465561, -0.1843089759349823, 0.38071075081825256, 0.24266578257083893, 0.5996033549308777, 0.14251647889614105, 0.34259700775146484, -0.18816448748111725, -0.14593784511089325, 0.5672606229782104, -0.33317649364471436, -0.5053150057792664, 0.28557807207107544, 0.21994787454605103, -0.09735425561666489, -0.4509097933769226, -0.23510602116584778, 0.12370339781045914, 0.0580432265996933, -0.04608670622110367, -0.13829456269741058, 0.032272350043058395, -0.3811512291431427, 0.031432751566171646, -0.18135276436805725, 0.37757211923599243, 0.26853951811790466, -0.006570832803845406, -0.04064871743321419, 0.0667336955666542 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @kelvinAI , I've had this issue on our institution's system which uses Lustre (in addition to our compute nodes being siloed off from external network access). The workaround I made for downloading/loading datasets was to set the `$HFHOME` environment variable to a location on the node's local storage (SSD), effectively a location that gets cleared regularly and sometimes gets used for temporary or cached files which is pretty common, e.g. "scratch" storage. Maybe your sysadmins, if you have them, could point you to subdirectories on a node that aren't linked to the Lustre filesystem. After downloading to scratch I found that the transformers, modules, and metrics cached folders were fine to move to my user drives on the Lustre filesystem but cached datasets that had fingerprints still had some issues with filelock, so it would help to use the function `my_dataset.save_to_disk('path/on/lustre_fs')` and static class function `Dataset.load_from_disk('path/on/lustre_fs')`. In rough steps: 1. Initially download to scratch storage with `ds = datasets.load_dataset(dataset_name)` 2. Call `ds.save_to_disk(my_path_on_lustre)` with a path in your user space on the Lustre filesystem 3. Load datasets with `from datasets import Dataset; new_ds = Dataset.load_from_disk(my_path_on_lustre)` Obviously this hinges on there existing scratch storage on the nodes you're using. Fingers crossed.
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
200
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No Hi @kelvinAI , I've had this issue on our institution's system which uses Lustre (in addition to our compute nodes being siloed off from external network access). The workaround I made for downloading/loading datasets was to set the `$HFHOME` environment variable to a location on the node's local storage (SSD), effectively a location that gets cleared regularly and sometimes gets used for temporary or cached files which is pretty common, e.g. "scratch" storage. Maybe your sysadmins, if you have them, could point you to subdirectories on a node that aren't linked to the Lustre filesystem. After downloading to scratch I found that the transformers, modules, and metrics cached folders were fine to move to my user drives on the Lustre filesystem but cached datasets that had fingerprints still had some issues with filelock, so it would help to use the function `my_dataset.save_to_disk('path/on/lustre_fs')` and static class function `Dataset.load_from_disk('path/on/lustre_fs')`. In rough steps: 1. Initially download to scratch storage with `ds = datasets.load_dataset(dataset_name)` 2. Call `ds.save_to_disk(my_path_on_lustre)` with a path in your user space on the Lustre filesystem 3. Load datasets with `from datasets import Dataset; new_ds = Dataset.load_from_disk(my_path_on_lustre)` Obviously this hinges on there existing scratch storage on the nodes you're using. Fingers crossed.
[ -0.13052263855934143, -0.017079301178455353, 0.07597944140434265, 0.19710089266300201, 0.23935110867023468, 0.12498069554567337, 0.35195180773735046, 0.029304873198270798, 0.3356303572654724, -0.15894125401973724, -0.24298885464668274, 0.20900148153305054, -0.13766060769557953, -0.18502604961395264, 0.06453966349363327, 0.12833404541015625, -0.08860477060079575, 0.06680507957935333, -0.5255341529846191, 0.10195709764957428, -0.1630270779132843, 0.3697197437286377, 0.1454886943101883, -0.03614882379770279, -0.34875059127807617, 0.11713233590126038, 0.07093780487775803, 0.32487544417381287, 0.28484076261520386, -0.4033544063568115, 0.5639553666114807, 0.37677595019340515, -0.015135664492845535, 0.8255628347396851, -0.00012140478065703064, 0.19544793665409088, 0.20538996160030365, 0.0017627757042646408, -0.4395938515663147, -0.2337893396615982, -0.13464781641960144, 0.22025936841964722, 0.13871507346630096, 0.12328808754682541, -0.13842742145061493, 0.15951292216777802, -0.2997704744338989, -0.5241689085960388, 0.3007486164569855, -0.011688184924423695, 0.06578749418258667, 0.011592306196689606, -0.4470212757587433, -0.017190512269735336, 0.013857841491699219, 0.3224892318248749, -0.0880427211523056, 0.1964544653892517, -0.04708772897720337, -0.26278916001319885, -0.29866886138916016, 0.10673870146274567, 0.053715214133262634, 0.11754663288593292, 0.5483435392379761, -0.20979765057563782, -0.21828162670135498, -0.11284206807613373, 0.3412291705608368, 0.3434644341468811, 0.45958149433135986, -0.24463221430778503, -0.3263522982597351, -0.25606080889701843, -0.1411266028881073, -0.14920105040073395, 0.4811566174030304, 0.08404778689146042, -0.12074747681617737, 0.13940447568893433, -0.19680741429328918, -0.1649778038263321, -0.1814967393875122, 0.028250019997358322, -0.15761098265647888, -0.12775962054729462, -0.21680845320224762, 0.11480605602264404, 0.08704032003879547, -0.022087600082159042, 0.07782524824142456, -0.21150338649749756, -0.11799938976764679, 0.1512603461742401, -0.3537852168083191, 0.25735822319984436, 0.07935433089733124, 0.21779298782348633, 0.14930450916290283, 0.020269770175218582, 0.06809885054826736, 0.28256574273109436, -0.1908014863729477, -0.18025851249694824, 0.24301724135875702, 0.31629252433776855, -0.11576198786497116, -0.03164777159690857, 0.22000999748706818, 0.3941178321838379, -0.21984140574932098, 0.12186276912689209, 0.025652803480625153, -0.15324094891548157, 0.006541121751070023, -0.2546766996383667, 0.08812781423330307, -0.2044023871421814, 0.13126088678836823, 0.07640507817268372, 0.28678885102272034, 0.17874714732170105, 0.18427929282188416, 0.6079393625259399, -0.14407353103160858, 0.15421393513679504, -0.08586996793746948, -0.01790900155901909, -0.2161123901605606, 0.24331235885620117, -0.07599972933530807, -0.21261712908744812, -0.2573898434638977, 0.15536688268184662, 0.3877047300338745, -0.13460388779640198, 0.10198743641376495, 0.14655430614948273, 0.28165680170059204, -0.05593789368867874, -0.054752953350543976, 0.07435835897922516, 0.28320562839508057, 0.31017550826072693, -0.39515402913093567, 0.4864349067211151, 0.18926823139190674, 0.07057660818099976, -0.239471435546875, 0.0016310028731822968, -0.03892849385738373, -0.35278841853141785, 0.17861859500408173, 0.02450896054506302, -0.23706404864788055, 0.19310712814331055, -0.16847610473632812, -0.22084151208400726, 0.040286097675561905, 0.07323247194290161, 0.20997878909111023, -0.1485815942287445, -0.17697545886039734, -0.12257753312587738, 0.21692121028900146, 0.9498234987258911, -0.12167493999004364, -0.12632104754447937, -0.05996393784880638, -0.04460841044783592, -0.2922508716583252, 0.2930452227592468, -0.21154317259788513, 0.07044035941362381, -0.4798472225666046, -0.2935525178909302, -0.06583277136087418, -0.24697868525981903, -0.5121552348136902, 0.3591553568840027, -0.14076116681098938, 0.4206981658935547, 0.00887899100780487, 0.042363062500953674, -0.10945446044206619, -0.10492268204689026, 0.2273189276456833, 0.391873836517334, 0.23283468186855316, -0.015432770363986492, -0.1703709214925766, -0.21875740587711334, -0.13988734781742096, 0.2466059774160385, -0.12074533104896545, 0.24428528547286987, -0.09165830165147781, 0.21676690876483917, 0.1755947768688202, -0.04449525848031044, -0.01664913073182106, 0.6591691374778748, 0.09032794833183289, 0.3805583715438843, 0.1469765305519104, 0.011421877890825272, -0.8068040609359741, 0.36933326721191406, -0.2015695571899414, -0.1619609147310257, -0.28197789192199707, -0.026234185323119164, -0.27268701791763306, 0.14809754490852356, -0.4376360774040222, -0.24877816438674927, -0.05908486247062683, 0.0697098895907402, 0.09947218000888824, -0.05635938048362732, -0.09800679981708527, 0.7305579781532288, 0.1339225322008133, 0.14441078901290894, -0.38988977670669556, 0.1285337656736374, 0.20083889365196228, 0.07989877462387085, -0.12710952758789062, 0.3194999396800995, 0.07511050254106522, -0.5050867199897766, -0.25425341725349426, 0.39486372470855713, 0.050891950726509094, 0.48641884326934814, -0.11776795238256454, 0.10732704401016235, 0.19979628920555115, -0.09207814186811447, 0.14431142807006836, 0.05509015545248985, -0.02562449872493744, -0.12666000425815582, -0.25238803029060364, 0.10936645418405533, -0.5087055563926697, 0.4081336557865143, -0.012458249926567078, -0.2308519035577774, 0.1800682246685028, -0.12308266758918762, -0.0276811383664608, -0.1276397407054901, 0.3353099524974823, -0.03183339908719063, 0.7870131731033325, 0.21621176600456238, 0.08755627274513245, 0.09245532006025314, 0.034566476941108704, 0.012029584497213364, -0.09011257439851761, 0.13664697110652924, -0.19675299525260925, -0.08417703211307526, -0.022193660959601402, 0.23426233232021332, 0.32515668869018555, -0.021854035556316376, -0.007565002888441086, 0.07997265458106995, -0.018612027168273926, -0.06645962595939636, 0.0378570631146431, -0.16160626709461212, -0.018536852672696114, 0.2964584231376648, 0.22627724707126617, -0.005097557790577412, -0.22557517886161804, -0.2095835655927658, -0.12059416621923447, 0.026414018124341965, -0.31826141476631165, 0.2000207006931305, -0.32992374897003174, 0.12201403826475143, -0.0595962256193161, -0.1875290721654892, -0.23387303948402405, -0.166355699300766, -0.32436466217041016, 0.31813955307006836, -0.01209813728928566, 0.08313236385583878, 0.02739190310239792, 0.08391399681568146, 0.07798538357019424, -0.6237425208091736, -0.4418584108352661, -0.1814073920249939, -0.1416035294532776, -0.23484596610069275, 0.1944313645362854, -0.18883004784584045, -0.16009633243083954, 0.008530223742127419, -0.20289841294288635, -0.31535032391548157, -0.18542411923408508, 0.10361401736736298, 0.10776913166046143, 0.45960578322410583, 0.17362001538276672, 0.3005414605140686, 0.30200010538101196, 0.08832181245088577, 0.24838194251060486, -0.1640893667936325, 0.16439656913280487, 0.27834275364875793, -0.04455981031060219, 0.2051130086183548, -0.22531555593013763, -0.09442933648824692, -0.0427980050444603, -0.41787147521972656, 0.23663020133972168, -0.21040396392345428, -0.012257866561412811, 0.3359174430370331, 0.09777331352233887, 0.07258648425340652, -0.2288157194852829, -0.10218382626771927, -0.21132178604602814, -0.33021968603134155, 0.3547579050064087, -0.10113198310136795, -0.17733745276927948, -0.2069161981344223, -0.23118071258068085, 0.1812756061553955, 0.060577187687158585, -0.6444156169891357, 0.14702589809894562, -0.40785449743270874, 0.3474581837654114, -0.28879326581954956, -0.19173702597618103, 0.26881951093673706, 0.11371029913425446, 0.08870761841535568, -0.10813871026039124, -0.2930823862552643, 0.09002800285816193, -0.03217228502035141, 0.06615958362817764, 0.003594454377889633, 0.27610325813293457, -0.09407516568899155, 0.6626375913619995, 0.07871384918689728, 0.011900033801794052, 0.38899871706962585, 0.05156533420085907, 0.5719009041786194, -0.33017298579216003, -0.2870437204837799, -0.18809190392494202, -0.0738210380077362, -0.23505818843841553, 0.09915336966514587, 0.1411222517490387, 0.114079050719738, 0.09055459499359131, -0.06795865297317505, 0.13308551907539368, -0.35788750648498535, 0.0481070950627327, -0.1934201717376709, 0.15661780536174774, 0.2233896404504776, 0.06167970597743988, -0.22446630895137787, -0.1251526176929474, 0.2731548845767975, 0.3852524757385254, 0.00580248236656189, 0.1834826022386551, -0.15120024979114532, 0.22850944101810455, -0.21768814325332642, -0.04676486551761627, -0.17739050090312958, 0.1736539602279663, -0.20198765397071838, 0.1512925624847412, -0.08343331515789032, -0.16562910377979279, 0.7700791954994202, 0.09331332892179489, 0.4446447491645813, 0.13162337243556976, -0.19268178939819336, -0.5198280215263367, -0.045932039618492126, 0.321500301361084, 0.13463181257247925, 0.166792631149292, 0.4837481677532196, -0.12293955683708191, -0.39338645339012146, -0.13474929332733154, 0.360548198223114, -0.17294320464134216, -0.28886011242866516, -0.12698951363563538, -0.1851266622543335, -0.049954500049352646, -0.08569646626710892, -0.2328859120607376, -0.16653090715408325, 0.12970180809497833, -0.1383281946182251, -0.012184260413050652, -0.04950527474284172, 0.059573836624622345, 0.1700795292854309, 0.22953638434410095, -0.14223787188529968, 0.2899217903614044, 0.20117266476154327, -0.23868206143379211, 0.13913671672344208, 0.5795518755912781, -0.20276129245758057, 0.017972633242607117, 0.1931152045726776, 0.009500649757683277, -0.2020719051361084, 0.4298553764820099, -0.05381492152810097, 0.012030161917209625, -0.0395987443625927, 0.3624829053878784, -0.3489118814468384, 0.20268899202346802, -0.014930324628949165, 0.16419225931167603, -0.08139850199222565, -0.2914857566356659, 0.5887516140937805, -0.0003854949027299881, -0.1984991431236267, 0.3374209702014923, 0.29783523082733154, -0.2333904206752777, 0.4287286400794983, -0.1433904469013214, 0.5358007550239563, -0.08475962281227112, 0.2781194746494293, 0.15800857543945312, -0.3518626093864441, 0.2277248054742813, -0.20052939653396606, 0.0006388835608959198, -0.2629261016845703, -0.04335866868495941, 0.017155682668089867, -0.34458449482917786, 0.12654703855514526, 0.2057868242263794, -0.05165352672338486, 0.3397006392478943, -0.2776758074760437, 0.15738575160503387, -0.05700615793466568, 0.1723962128162384, -0.17923708260059357, -0.44095543026924133, -0.2281835526227951, 0.10793675482273102, -0.20768485963344574, 0.5127376914024353, -0.06498536467552185, 0.06542189419269562, -0.023181743919849396, 0.1333327740430832, -0.191676527261734, 0.14244773983955383, -0.20560768246650696, -0.019015919417142868, 0.06405716389417648, -0.16772693395614624, 0.30539700388908386, 0.12111498415470123, 0.24972108006477356, 0.18319912254810333, -0.16548170149326324, 0.23777717351913452, -0.17613226175308228, 0.14779150485992432, -0.0856715738773346, 0.04667593166232109, 0.011682223528623581, 0.1783214807510376, 0.043435849249362946, -0.3020639419555664, -0.36808520555496216, -0.06329698860645294, 0.07807137072086334, 0.011357538402080536, -0.0828317403793335, -0.2589149475097656, -0.23327651619911194, -0.013008162379264832, 0.23252731561660767, -0.03855528682470322, 0.034283287823200226, 0.0729518011212349, 0.007234266959130764, 0.16715054214000702, -0.2390594631433487, -0.45689937472343445, -0.15472948551177979, 0.4233967065811157, -0.2755562663078308, -0.1281435191631317, 0.704708456993103, 0.138066366314888, 0.037508681416511536, -0.14656271040439606, -0.01751835271716118, 0.1783904731273651, -0.6224485635757446, 0.12428737431764603, -0.025500353425741196, -0.21032929420471191, 0.07604670524597168, -0.12626637518405914, 0.19717934727668762, -0.09285759180784225, -0.037566427141427994, -0.17934538424015045, -0.37002474069595337, -0.06879870593547821, -0.2767612636089325, 0.18736353516578674, 0.14036443829536438, -0.13616502285003662, 0.06804873049259186, 0.2571336627006531, -0.1587614268064499, 0.22399017214775085, -0.20438161492347717, -0.09141946583986282, 0.18820171058177948, -0.18601733446121216, 0.24678300321102142, -0.31074267625808716, -0.01924532651901245, -0.004371386021375656, -0.35885295271873474, -0.11993760615587234, -0.339839905500412, 0.14461399614810944, -0.14490929245948792, 0.14707832038402557, -0.13220104575157166, -0.18195456266403198, 0.23496180772781372, -0.2244153916835785, 0.477193146944046, 0.3037218749523163, -0.06197038292884827, -0.03215348348021507, 0.014573711901903152, 0.06249142810702324, -0.22566042840480804, 0.060085229575634, 0.013332128524780273, -0.06538034975528717, 0.2858356833457947, 0.023737335577607155, -0.3684059679508209, -0.02314341440796852, -0.302325576543808, 0.05841916427016258, 0.04756992682814598, 0.008871162310242653, 0.3669113516807556, -0.3021147847175598, 0.10157112777233124, 0.12106509506702423, 0.12652409076690674, 0.2139822393655777, -0.0996432900428772, -0.31374484300613403, 0.1251669079065323, 0.06485289335250854, 0.08823322504758835, -0.09548105299472809, 0.12101100385189056, -0.06237929314374924, 0.024028073996305466, 0.2588593661785126, 0.30174192786216736, -0.16906346380710602, 0.3920373320579529, 0.22434532642364502, 0.721077024936676, -0.12386119365692139, 0.13122141361236572, 0.2824808657169342, -0.2342367023229599, 0.08560013025999069, 0.41948479413986206, 0.33622419834136963, 0.07541034370660782, 0.5063923001289368, 0.2491413950920105, 0.11573003232479095, -0.22594618797302246, 0.3680345118045807, 0.07430341094732285, -0.6350297927856445, -0.11549249291419983, 0.0932231917977333, 0.0363452285528183, 0.3147943317890167, -0.11516273021697998, 0.3819347321987152, -0.5003918409347534, -0.2156364470720291, -0.021739671006798744, 0.023108096793293953, -0.07315922528505325, -0.3077050745487213, 0.47278350591659546, -0.057673465460538864, 0.06096768379211426, 0.08474279940128326, -0.06826016306877136, -0.2254706472158432, 0.26481735706329346, 0.0816713497042656, 0.08557909727096558, -0.18135732412338257, 0.014504827558994293, 0.07839217036962509, -0.03371217101812363, 0.026260409504175186, 0.3455773591995239, 0.15604427456855774, -0.24004676938056946, 0.07988990843296051, 0.05024467408657074, 0.19544638693332672, 0.19963131844997406, -0.18036018311977386, 0.25264936685562134, 0.05503959208726883, -0.009059004485607147, -0.03567838296294212, 0.042136840522289276, -0.20916453003883362, -0.00025134533643722534, 0.18577855825424194, 0.08564205467700958, -0.10970818996429443, -0.04851527139544487, -0.12284567952156067, 0.5743908882141113, -0.33067700266838074, 0.4036704897880554, 0.06318533420562744, 0.007062368094921112, 0.07639545202255249, 0.04720507562160492, -0.3255836069583893, 0.06824076175689697, 0.4605390429496765, -0.08408262580633163, -0.011017989367246628, -0.0459628701210022, 0.02157711610198021, 0.18600499629974365, 0.6756531000137329, 0.18090328574180603, 0.0688856914639473, -0.17533385753631592, -0.09224794059991837, -0.7202569842338562, 0.004839539527893066, -0.15381622314453125, 0.06820464879274368, 0.18330101668834686, 0.025497769936919212, -0.033525675535202026, -0.1361493468284607, 0.1343493014574051, 0.03640667721629143, 0.08562663197517395, 0.08049476146697998, -0.2730599343776703, 0.0851767510175705, -0.1839795857667923, 0.16729815304279327, -0.06666911393404007, -0.38127410411834717, 0.005537118762731552, 0.4040564298629761, -0.033012665808200836, 0.08364960551261902, 0.016826868057250977, 0.06032487377524376, -0.0656191036105156, 0.22110557556152344, 0.004555758088827133, -0.33146703243255615, 0.266888827085495, -0.29873526096343994, -0.4420071244239807, -0.17871583998203278, 0.22373363375663757, -0.3295326232910156, 0.02615402638912201, 0.31596073508262634, -0.37461525201797485, -0.35900285840034485, -0.46973150968551636, 0.0518302321434021, 0.18919724225997925, 0.1528865396976471, 0.04896325618028641, 0.2164817899465561, -0.1843089759349823, 0.38071075081825256, 0.24266578257083893, 0.5996033549308777, 0.14251647889614105, 0.34259700775146484, -0.18816448748111725, -0.14593784511089325, 0.5672606229782104, -0.33317649364471436, -0.5053150057792664, 0.28557807207107544, 0.21994787454605103, -0.09735425561666489, -0.4509097933769226, -0.23510602116584778, 0.12370339781045914, 0.0580432265996933, -0.04608670622110367, -0.13829456269741058, 0.032272350043058395, -0.3811512291431427, 0.031432751566171646, -0.18135276436805725, 0.37757211923599243, 0.26853951811790466, -0.006570832803845406, -0.04064871743321419, 0.0667336955666542 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
Hi @jpmcd , thanks for sharing your experience. For my case, the Lustre filesystem (with more storage space) is the scratch storage like the one you've mentioned. We have a local storage for each user but unfortunately there's not enough space in it to 'cache' huge datasets, hence that is why I tried changing HF_HOME to point to the scratch disk with more space and encountered the flock issue. Unfortunately I'm not aware of any viable solution to this for now so I simply fall back to using torch dataset.
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
90
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No Hi @jpmcd , thanks for sharing your experience. For my case, the Lustre filesystem (with more storage space) is the scratch storage like the one you've mentioned. We have a local storage for each user but unfortunately there's not enough space in it to 'cache' huge datasets, hence that is why I tried changing HF_HOME to point to the scratch disk with more space and encountered the flock issue. Unfortunately I'm not aware of any viable solution to this for now so I simply fall back to using torch dataset.
[ -0.13052263855934143, -0.017079301178455353, 0.07597944140434265, 0.19710089266300201, 0.23935110867023468, 0.12498069554567337, 0.35195180773735046, 0.029304873198270798, 0.3356303572654724, -0.15894125401973724, -0.24298885464668274, 0.20900148153305054, -0.13766060769557953, -0.18502604961395264, 0.06453966349363327, 0.12833404541015625, -0.08860477060079575, 0.06680507957935333, -0.5255341529846191, 0.10195709764957428, -0.1630270779132843, 0.3697197437286377, 0.1454886943101883, -0.03614882379770279, -0.34875059127807617, 0.11713233590126038, 0.07093780487775803, 0.32487544417381287, 0.28484076261520386, -0.4033544063568115, 0.5639553666114807, 0.37677595019340515, -0.015135664492845535, 0.8255628347396851, -0.00012140478065703064, 0.19544793665409088, 0.20538996160030365, 0.0017627757042646408, -0.4395938515663147, -0.2337893396615982, -0.13464781641960144, 0.22025936841964722, 0.13871507346630096, 0.12328808754682541, -0.13842742145061493, 0.15951292216777802, -0.2997704744338989, -0.5241689085960388, 0.3007486164569855, -0.011688184924423695, 0.06578749418258667, 0.011592306196689606, -0.4470212757587433, -0.017190512269735336, 0.013857841491699219, 0.3224892318248749, -0.0880427211523056, 0.1964544653892517, -0.04708772897720337, -0.26278916001319885, -0.29866886138916016, 0.10673870146274567, 0.053715214133262634, 0.11754663288593292, 0.5483435392379761, -0.20979765057563782, -0.21828162670135498, -0.11284206807613373, 0.3412291705608368, 0.3434644341468811, 0.45958149433135986, -0.24463221430778503, -0.3263522982597351, -0.25606080889701843, -0.1411266028881073, -0.14920105040073395, 0.4811566174030304, 0.08404778689146042, -0.12074747681617737, 0.13940447568893433, -0.19680741429328918, -0.1649778038263321, -0.1814967393875122, 0.028250019997358322, -0.15761098265647888, -0.12775962054729462, -0.21680845320224762, 0.11480605602264404, 0.08704032003879547, -0.022087600082159042, 0.07782524824142456, -0.21150338649749756, -0.11799938976764679, 0.1512603461742401, -0.3537852168083191, 0.25735822319984436, 0.07935433089733124, 0.21779298782348633, 0.14930450916290283, 0.020269770175218582, 0.06809885054826736, 0.28256574273109436, -0.1908014863729477, -0.18025851249694824, 0.24301724135875702, 0.31629252433776855, -0.11576198786497116, -0.03164777159690857, 0.22000999748706818, 0.3941178321838379, -0.21984140574932098, 0.12186276912689209, 0.025652803480625153, -0.15324094891548157, 0.006541121751070023, -0.2546766996383667, 0.08812781423330307, -0.2044023871421814, 0.13126088678836823, 0.07640507817268372, 0.28678885102272034, 0.17874714732170105, 0.18427929282188416, 0.6079393625259399, -0.14407353103160858, 0.15421393513679504, -0.08586996793746948, -0.01790900155901909, -0.2161123901605606, 0.24331235885620117, -0.07599972933530807, -0.21261712908744812, -0.2573898434638977, 0.15536688268184662, 0.3877047300338745, -0.13460388779640198, 0.10198743641376495, 0.14655430614948273, 0.28165680170059204, -0.05593789368867874, -0.054752953350543976, 0.07435835897922516, 0.28320562839508057, 0.31017550826072693, -0.39515402913093567, 0.4864349067211151, 0.18926823139190674, 0.07057660818099976, -0.239471435546875, 0.0016310028731822968, -0.03892849385738373, -0.35278841853141785, 0.17861859500408173, 0.02450896054506302, -0.23706404864788055, 0.19310712814331055, -0.16847610473632812, -0.22084151208400726, 0.040286097675561905, 0.07323247194290161, 0.20997878909111023, -0.1485815942287445, -0.17697545886039734, -0.12257753312587738, 0.21692121028900146, 0.9498234987258911, -0.12167493999004364, -0.12632104754447937, -0.05996393784880638, -0.04460841044783592, -0.2922508716583252, 0.2930452227592468, -0.21154317259788513, 0.07044035941362381, -0.4798472225666046, -0.2935525178909302, -0.06583277136087418, -0.24697868525981903, -0.5121552348136902, 0.3591553568840027, -0.14076116681098938, 0.4206981658935547, 0.00887899100780487, 0.042363062500953674, -0.10945446044206619, -0.10492268204689026, 0.2273189276456833, 0.391873836517334, 0.23283468186855316, -0.015432770363986492, -0.1703709214925766, -0.21875740587711334, -0.13988734781742096, 0.2466059774160385, -0.12074533104896545, 0.24428528547286987, -0.09165830165147781, 0.21676690876483917, 0.1755947768688202, -0.04449525848031044, -0.01664913073182106, 0.6591691374778748, 0.09032794833183289, 0.3805583715438843, 0.1469765305519104, 0.011421877890825272, -0.8068040609359741, 0.36933326721191406, -0.2015695571899414, -0.1619609147310257, -0.28197789192199707, -0.026234185323119164, -0.27268701791763306, 0.14809754490852356, -0.4376360774040222, -0.24877816438674927, -0.05908486247062683, 0.0697098895907402, 0.09947218000888824, -0.05635938048362732, -0.09800679981708527, 0.7305579781532288, 0.1339225322008133, 0.14441078901290894, -0.38988977670669556, 0.1285337656736374, 0.20083889365196228, 0.07989877462387085, -0.12710952758789062, 0.3194999396800995, 0.07511050254106522, -0.5050867199897766, -0.25425341725349426, 0.39486372470855713, 0.050891950726509094, 0.48641884326934814, -0.11776795238256454, 0.10732704401016235, 0.19979628920555115, -0.09207814186811447, 0.14431142807006836, 0.05509015545248985, -0.02562449872493744, -0.12666000425815582, -0.25238803029060364, 0.10936645418405533, -0.5087055563926697, 0.4081336557865143, -0.012458249926567078, -0.2308519035577774, 0.1800682246685028, -0.12308266758918762, -0.0276811383664608, -0.1276397407054901, 0.3353099524974823, -0.03183339908719063, 0.7870131731033325, 0.21621176600456238, 0.08755627274513245, 0.09245532006025314, 0.034566476941108704, 0.012029584497213364, -0.09011257439851761, 0.13664697110652924, -0.19675299525260925, -0.08417703211307526, -0.022193660959601402, 0.23426233232021332, 0.32515668869018555, -0.021854035556316376, -0.007565002888441086, 0.07997265458106995, -0.018612027168273926, -0.06645962595939636, 0.0378570631146431, -0.16160626709461212, -0.018536852672696114, 0.2964584231376648, 0.22627724707126617, -0.005097557790577412, -0.22557517886161804, -0.2095835655927658, -0.12059416621923447, 0.026414018124341965, -0.31826141476631165, 0.2000207006931305, -0.32992374897003174, 0.12201403826475143, -0.0595962256193161, -0.1875290721654892, -0.23387303948402405, -0.166355699300766, -0.32436466217041016, 0.31813955307006836, -0.01209813728928566, 0.08313236385583878, 0.02739190310239792, 0.08391399681568146, 0.07798538357019424, -0.6237425208091736, -0.4418584108352661, -0.1814073920249939, -0.1416035294532776, -0.23484596610069275, 0.1944313645362854, -0.18883004784584045, -0.16009633243083954, 0.008530223742127419, -0.20289841294288635, -0.31535032391548157, -0.18542411923408508, 0.10361401736736298, 0.10776913166046143, 0.45960578322410583, 0.17362001538276672, 0.3005414605140686, 0.30200010538101196, 0.08832181245088577, 0.24838194251060486, -0.1640893667936325, 0.16439656913280487, 0.27834275364875793, -0.04455981031060219, 0.2051130086183548, -0.22531555593013763, -0.09442933648824692, -0.0427980050444603, -0.41787147521972656, 0.23663020133972168, -0.21040396392345428, -0.012257866561412811, 0.3359174430370331, 0.09777331352233887, 0.07258648425340652, -0.2288157194852829, -0.10218382626771927, -0.21132178604602814, -0.33021968603134155, 0.3547579050064087, -0.10113198310136795, -0.17733745276927948, -0.2069161981344223, -0.23118071258068085, 0.1812756061553955, 0.060577187687158585, -0.6444156169891357, 0.14702589809894562, -0.40785449743270874, 0.3474581837654114, -0.28879326581954956, -0.19173702597618103, 0.26881951093673706, 0.11371029913425446, 0.08870761841535568, -0.10813871026039124, -0.2930823862552643, 0.09002800285816193, -0.03217228502035141, 0.06615958362817764, 0.003594454377889633, 0.27610325813293457, -0.09407516568899155, 0.6626375913619995, 0.07871384918689728, 0.011900033801794052, 0.38899871706962585, 0.05156533420085907, 0.5719009041786194, -0.33017298579216003, -0.2870437204837799, -0.18809190392494202, -0.0738210380077362, -0.23505818843841553, 0.09915336966514587, 0.1411222517490387, 0.114079050719738, 0.09055459499359131, -0.06795865297317505, 0.13308551907539368, -0.35788750648498535, 0.0481070950627327, -0.1934201717376709, 0.15661780536174774, 0.2233896404504776, 0.06167970597743988, -0.22446630895137787, -0.1251526176929474, 0.2731548845767975, 0.3852524757385254, 0.00580248236656189, 0.1834826022386551, -0.15120024979114532, 0.22850944101810455, -0.21768814325332642, -0.04676486551761627, -0.17739050090312958, 0.1736539602279663, -0.20198765397071838, 0.1512925624847412, -0.08343331515789032, -0.16562910377979279, 0.7700791954994202, 0.09331332892179489, 0.4446447491645813, 0.13162337243556976, -0.19268178939819336, -0.5198280215263367, -0.045932039618492126, 0.321500301361084, 0.13463181257247925, 0.166792631149292, 0.4837481677532196, -0.12293955683708191, -0.39338645339012146, -0.13474929332733154, 0.360548198223114, -0.17294320464134216, -0.28886011242866516, -0.12698951363563538, -0.1851266622543335, -0.049954500049352646, -0.08569646626710892, -0.2328859120607376, -0.16653090715408325, 0.12970180809497833, -0.1383281946182251, -0.012184260413050652, -0.04950527474284172, 0.059573836624622345, 0.1700795292854309, 0.22953638434410095, -0.14223787188529968, 0.2899217903614044, 0.20117266476154327, -0.23868206143379211, 0.13913671672344208, 0.5795518755912781, -0.20276129245758057, 0.017972633242607117, 0.1931152045726776, 0.009500649757683277, -0.2020719051361084, 0.4298553764820099, -0.05381492152810097, 0.012030161917209625, -0.0395987443625927, 0.3624829053878784, -0.3489118814468384, 0.20268899202346802, -0.014930324628949165, 0.16419225931167603, -0.08139850199222565, -0.2914857566356659, 0.5887516140937805, -0.0003854949027299881, -0.1984991431236267, 0.3374209702014923, 0.29783523082733154, -0.2333904206752777, 0.4287286400794983, -0.1433904469013214, 0.5358007550239563, -0.08475962281227112, 0.2781194746494293, 0.15800857543945312, -0.3518626093864441, 0.2277248054742813, -0.20052939653396606, 0.0006388835608959198, -0.2629261016845703, -0.04335866868495941, 0.017155682668089867, -0.34458449482917786, 0.12654703855514526, 0.2057868242263794, -0.05165352672338486, 0.3397006392478943, -0.2776758074760437, 0.15738575160503387, -0.05700615793466568, 0.1723962128162384, -0.17923708260059357, -0.44095543026924133, -0.2281835526227951, 0.10793675482273102, -0.20768485963344574, 0.5127376914024353, -0.06498536467552185, 0.06542189419269562, -0.023181743919849396, 0.1333327740430832, -0.191676527261734, 0.14244773983955383, -0.20560768246650696, -0.019015919417142868, 0.06405716389417648, -0.16772693395614624, 0.30539700388908386, 0.12111498415470123, 0.24972108006477356, 0.18319912254810333, -0.16548170149326324, 0.23777717351913452, -0.17613226175308228, 0.14779150485992432, -0.0856715738773346, 0.04667593166232109, 0.011682223528623581, 0.1783214807510376, 0.043435849249362946, -0.3020639419555664, -0.36808520555496216, -0.06329698860645294, 0.07807137072086334, 0.011357538402080536, -0.0828317403793335, -0.2589149475097656, -0.23327651619911194, -0.013008162379264832, 0.23252731561660767, -0.03855528682470322, 0.034283287823200226, 0.0729518011212349, 0.007234266959130764, 0.16715054214000702, -0.2390594631433487, -0.45689937472343445, -0.15472948551177979, 0.4233967065811157, -0.2755562663078308, -0.1281435191631317, 0.704708456993103, 0.138066366314888, 0.037508681416511536, -0.14656271040439606, -0.01751835271716118, 0.1783904731273651, -0.6224485635757446, 0.12428737431764603, -0.025500353425741196, -0.21032929420471191, 0.07604670524597168, -0.12626637518405914, 0.19717934727668762, -0.09285759180784225, -0.037566427141427994, -0.17934538424015045, -0.37002474069595337, -0.06879870593547821, -0.2767612636089325, 0.18736353516578674, 0.14036443829536438, -0.13616502285003662, 0.06804873049259186, 0.2571336627006531, -0.1587614268064499, 0.22399017214775085, -0.20438161492347717, -0.09141946583986282, 0.18820171058177948, -0.18601733446121216, 0.24678300321102142, -0.31074267625808716, -0.01924532651901245, -0.004371386021375656, -0.35885295271873474, -0.11993760615587234, -0.339839905500412, 0.14461399614810944, -0.14490929245948792, 0.14707832038402557, -0.13220104575157166, -0.18195456266403198, 0.23496180772781372, -0.2244153916835785, 0.477193146944046, 0.3037218749523163, -0.06197038292884827, -0.03215348348021507, 0.014573711901903152, 0.06249142810702324, -0.22566042840480804, 0.060085229575634, 0.013332128524780273, -0.06538034975528717, 0.2858356833457947, 0.023737335577607155, -0.3684059679508209, -0.02314341440796852, -0.302325576543808, 0.05841916427016258, 0.04756992682814598, 0.008871162310242653, 0.3669113516807556, -0.3021147847175598, 0.10157112777233124, 0.12106509506702423, 0.12652409076690674, 0.2139822393655777, -0.0996432900428772, -0.31374484300613403, 0.1251669079065323, 0.06485289335250854, 0.08823322504758835, -0.09548105299472809, 0.12101100385189056, -0.06237929314374924, 0.024028073996305466, 0.2588593661785126, 0.30174192786216736, -0.16906346380710602, 0.3920373320579529, 0.22434532642364502, 0.721077024936676, -0.12386119365692139, 0.13122141361236572, 0.2824808657169342, -0.2342367023229599, 0.08560013025999069, 0.41948479413986206, 0.33622419834136963, 0.07541034370660782, 0.5063923001289368, 0.2491413950920105, 0.11573003232479095, -0.22594618797302246, 0.3680345118045807, 0.07430341094732285, -0.6350297927856445, -0.11549249291419983, 0.0932231917977333, 0.0363452285528183, 0.3147943317890167, -0.11516273021697998, 0.3819347321987152, -0.5003918409347534, -0.2156364470720291, -0.021739671006798744, 0.023108096793293953, -0.07315922528505325, -0.3077050745487213, 0.47278350591659546, -0.057673465460538864, 0.06096768379211426, 0.08474279940128326, -0.06826016306877136, -0.2254706472158432, 0.26481735706329346, 0.0816713497042656, 0.08557909727096558, -0.18135732412338257, 0.014504827558994293, 0.07839217036962509, -0.03371217101812363, 0.026260409504175186, 0.3455773591995239, 0.15604427456855774, -0.24004676938056946, 0.07988990843296051, 0.05024467408657074, 0.19544638693332672, 0.19963131844997406, -0.18036018311977386, 0.25264936685562134, 0.05503959208726883, -0.009059004485607147, -0.03567838296294212, 0.042136840522289276, -0.20916453003883362, -0.00025134533643722534, 0.18577855825424194, 0.08564205467700958, -0.10970818996429443, -0.04851527139544487, -0.12284567952156067, 0.5743908882141113, -0.33067700266838074, 0.4036704897880554, 0.06318533420562744, 0.007062368094921112, 0.07639545202255249, 0.04720507562160492, -0.3255836069583893, 0.06824076175689697, 0.4605390429496765, -0.08408262580633163, -0.011017989367246628, -0.0459628701210022, 0.02157711610198021, 0.18600499629974365, 0.6756531000137329, 0.18090328574180603, 0.0688856914639473, -0.17533385753631592, -0.09224794059991837, -0.7202569842338562, 0.004839539527893066, -0.15381622314453125, 0.06820464879274368, 0.18330101668834686, 0.025497769936919212, -0.033525675535202026, -0.1361493468284607, 0.1343493014574051, 0.03640667721629143, 0.08562663197517395, 0.08049476146697998, -0.2730599343776703, 0.0851767510175705, -0.1839795857667923, 0.16729815304279327, -0.06666911393404007, -0.38127410411834717, 0.005537118762731552, 0.4040564298629761, -0.033012665808200836, 0.08364960551261902, 0.016826868057250977, 0.06032487377524376, -0.0656191036105156, 0.22110557556152344, 0.004555758088827133, -0.33146703243255615, 0.266888827085495, -0.29873526096343994, -0.4420071244239807, -0.17871583998203278, 0.22373363375663757, -0.3295326232910156, 0.02615402638912201, 0.31596073508262634, -0.37461525201797485, -0.35900285840034485, -0.46973150968551636, 0.0518302321434021, 0.18919724225997925, 0.1528865396976471, 0.04896325618028641, 0.2164817899465561, -0.1843089759349823, 0.38071075081825256, 0.24266578257083893, 0.5996033549308777, 0.14251647889614105, 0.34259700775146484, -0.18816448748111725, -0.14593784511089325, 0.5672606229782104, -0.33317649364471436, -0.5053150057792664, 0.28557807207107544, 0.21994787454605103, -0.09735425561666489, -0.4509097933769226, -0.23510602116584778, 0.12370339781045914, 0.0580432265996933, -0.04608670622110367, -0.13829456269741058, 0.032272350043058395, -0.3811512291431427, 0.031432751566171646, -0.18135276436805725, 0.37757211923599243, 0.26853951811790466, -0.006570832803845406, -0.04064871743321419, 0.0667336955666542 ]
https://github.com/huggingface/datasets/issues/3986
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface)
@jpmcd your comment saved me from pulling my hair out in frustration. Setting `HF_HOME` to a directory that's not on Lustre works like a charm. ✨
## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No
26
Dataset loads indefinitely after modifying default cache path (~/.cache/huggingface) ## Describe the bug Dataset loads indefinitely after modifying cache path (~/.cache/huggingface) If none of the environment variables are set, this custom dataset loads fine ( json-based dataset with custom dataset load script) ** Update: Transformer modules faces the same issue as well during loading ## A clear and concise description of what the bug is. Issue: - Dataset loading stalls / freezes indefinitely when HF_HOME is changed to a custom directory - No error code, had to terminate the process - There are some files created in the cache directory: ``` custom_cache_dir | -- modules | -- __init__.py | -- datasets_modules | -- __init__.py | -- datasets | -- __init__.py | -- script.py (Dataset loading script) | -- script.lock ``` There's no error nor any logs thrown so I'm out of ideas of how to to debug this. The custom dataset works fine if the default ~/.cache dir is used, but unfortunately it's out of space and we do not have permissions to modify the disk. ## Steps to reproduce the bug What I've tried: - Modifying HF_HOME (https://github.com/huggingface/transformers/issues/8703) - Modifying HF_DATASETS_CACHE (https://huggingface.co/docs/datasets/v1.12.0/cache.html) - Modifying cache_dir param during runtime ```python >>> from datasets import load_dataset >>> dataset = load_dataset('test_dataset', cache_dir='/path/to/new/cache') ``` - Disabling dataset cache ```python >>> from datasets import set_caching_enabled >>> set_caching_enabled(False) ``` ## Expected results Datasets should load / cache as usual with the only exception that cache directory is different ## Actual results Any actions taken above to change the cache directory results in loading indefinitely without terminating. ## Environment info - `transformers` version: 4.18.0.dev0 - Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - Huggingface_hub version: 0.4.0 - PyTorch version (GPU?): 1.8.1+cu102 (True) - Tensorflow version (GPU?): 2.4.1 (False) - Flax version (CPU?/GPU?/TPU?): not installed (NA) - Jax version: not installed - JaxLib version: not installed - Using GPU in script?: Yes - Using distributed or parallel set-up in script?: No @jpmcd your comment saved me from pulling my hair out in frustration. Setting `HF_HOME` to a directory that's not on Lustre works like a charm. ✨
[ -0.13052263855934143, -0.017079301178455353, 0.07597944140434265, 0.19710089266300201, 0.23935110867023468, 0.12498069554567337, 0.35195180773735046, 0.029304873198270798, 0.3356303572654724, -0.15894125401973724, -0.24298885464668274, 0.20900148153305054, -0.13766060769557953, -0.18502604961395264, 0.06453966349363327, 0.12833404541015625, -0.08860477060079575, 0.06680507957935333, -0.5255341529846191, 0.10195709764957428, -0.1630270779132843, 0.3697197437286377, 0.1454886943101883, -0.03614882379770279, -0.34875059127807617, 0.11713233590126038, 0.07093780487775803, 0.32487544417381287, 0.28484076261520386, -0.4033544063568115, 0.5639553666114807, 0.37677595019340515, -0.015135664492845535, 0.8255628347396851, -0.00012140478065703064, 0.19544793665409088, 0.20538996160030365, 0.0017627757042646408, -0.4395938515663147, -0.2337893396615982, -0.13464781641960144, 0.22025936841964722, 0.13871507346630096, 0.12328808754682541, -0.13842742145061493, 0.15951292216777802, -0.2997704744338989, -0.5241689085960388, 0.3007486164569855, -0.011688184924423695, 0.06578749418258667, 0.011592306196689606, -0.4470212757587433, -0.017190512269735336, 0.013857841491699219, 0.3224892318248749, -0.0880427211523056, 0.1964544653892517, -0.04708772897720337, -0.26278916001319885, -0.29866886138916016, 0.10673870146274567, 0.053715214133262634, 0.11754663288593292, 0.5483435392379761, -0.20979765057563782, -0.21828162670135498, -0.11284206807613373, 0.3412291705608368, 0.3434644341468811, 0.45958149433135986, -0.24463221430778503, -0.3263522982597351, -0.25606080889701843, -0.1411266028881073, -0.14920105040073395, 0.4811566174030304, 0.08404778689146042, -0.12074747681617737, 0.13940447568893433, -0.19680741429328918, -0.1649778038263321, -0.1814967393875122, 0.028250019997358322, -0.15761098265647888, -0.12775962054729462, -0.21680845320224762, 0.11480605602264404, 0.08704032003879547, -0.022087600082159042, 0.07782524824142456, -0.21150338649749756, -0.11799938976764679, 0.1512603461742401, -0.3537852168083191, 0.25735822319984436, 0.07935433089733124, 0.21779298782348633, 0.14930450916290283, 0.020269770175218582, 0.06809885054826736, 0.28256574273109436, -0.1908014863729477, -0.18025851249694824, 0.24301724135875702, 0.31629252433776855, -0.11576198786497116, -0.03164777159690857, 0.22000999748706818, 0.3941178321838379, -0.21984140574932098, 0.12186276912689209, 0.025652803480625153, -0.15324094891548157, 0.006541121751070023, -0.2546766996383667, 0.08812781423330307, -0.2044023871421814, 0.13126088678836823, 0.07640507817268372, 0.28678885102272034, 0.17874714732170105, 0.18427929282188416, 0.6079393625259399, -0.14407353103160858, 0.15421393513679504, -0.08586996793746948, -0.01790900155901909, -0.2161123901605606, 0.24331235885620117, -0.07599972933530807, -0.21261712908744812, -0.2573898434638977, 0.15536688268184662, 0.3877047300338745, -0.13460388779640198, 0.10198743641376495, 0.14655430614948273, 0.28165680170059204, -0.05593789368867874, -0.054752953350543976, 0.07435835897922516, 0.28320562839508057, 0.31017550826072693, -0.39515402913093567, 0.4864349067211151, 0.18926823139190674, 0.07057660818099976, -0.239471435546875, 0.0016310028731822968, -0.03892849385738373, -0.35278841853141785, 0.17861859500408173, 0.02450896054506302, -0.23706404864788055, 0.19310712814331055, -0.16847610473632812, -0.22084151208400726, 0.040286097675561905, 0.07323247194290161, 0.20997878909111023, -0.1485815942287445, -0.17697545886039734, -0.12257753312587738, 0.21692121028900146, 0.9498234987258911, -0.12167493999004364, -0.12632104754447937, -0.05996393784880638, -0.04460841044783592, -0.2922508716583252, 0.2930452227592468, -0.21154317259788513, 0.07044035941362381, -0.4798472225666046, -0.2935525178909302, -0.06583277136087418, -0.24697868525981903, -0.5121552348136902, 0.3591553568840027, -0.14076116681098938, 0.4206981658935547, 0.00887899100780487, 0.042363062500953674, -0.10945446044206619, -0.10492268204689026, 0.2273189276456833, 0.391873836517334, 0.23283468186855316, -0.015432770363986492, -0.1703709214925766, -0.21875740587711334, -0.13988734781742096, 0.2466059774160385, -0.12074533104896545, 0.24428528547286987, -0.09165830165147781, 0.21676690876483917, 0.1755947768688202, -0.04449525848031044, -0.01664913073182106, 0.6591691374778748, 0.09032794833183289, 0.3805583715438843, 0.1469765305519104, 0.011421877890825272, -0.8068040609359741, 0.36933326721191406, -0.2015695571899414, -0.1619609147310257, -0.28197789192199707, -0.026234185323119164, -0.27268701791763306, 0.14809754490852356, -0.4376360774040222, -0.24877816438674927, -0.05908486247062683, 0.0697098895907402, 0.09947218000888824, -0.05635938048362732, -0.09800679981708527, 0.7305579781532288, 0.1339225322008133, 0.14441078901290894, -0.38988977670669556, 0.1285337656736374, 0.20083889365196228, 0.07989877462387085, -0.12710952758789062, 0.3194999396800995, 0.07511050254106522, -0.5050867199897766, -0.25425341725349426, 0.39486372470855713, 0.050891950726509094, 0.48641884326934814, -0.11776795238256454, 0.10732704401016235, 0.19979628920555115, -0.09207814186811447, 0.14431142807006836, 0.05509015545248985, -0.02562449872493744, -0.12666000425815582, -0.25238803029060364, 0.10936645418405533, -0.5087055563926697, 0.4081336557865143, -0.012458249926567078, -0.2308519035577774, 0.1800682246685028, -0.12308266758918762, -0.0276811383664608, -0.1276397407054901, 0.3353099524974823, -0.03183339908719063, 0.7870131731033325, 0.21621176600456238, 0.08755627274513245, 0.09245532006025314, 0.034566476941108704, 0.012029584497213364, -0.09011257439851761, 0.13664697110652924, -0.19675299525260925, -0.08417703211307526, -0.022193660959601402, 0.23426233232021332, 0.32515668869018555, -0.021854035556316376, -0.007565002888441086, 0.07997265458106995, -0.018612027168273926, -0.06645962595939636, 0.0378570631146431, -0.16160626709461212, -0.018536852672696114, 0.2964584231376648, 0.22627724707126617, -0.005097557790577412, -0.22557517886161804, -0.2095835655927658, -0.12059416621923447, 0.026414018124341965, -0.31826141476631165, 0.2000207006931305, -0.32992374897003174, 0.12201403826475143, -0.0595962256193161, -0.1875290721654892, -0.23387303948402405, -0.166355699300766, -0.32436466217041016, 0.31813955307006836, -0.01209813728928566, 0.08313236385583878, 0.02739190310239792, 0.08391399681568146, 0.07798538357019424, -0.6237425208091736, -0.4418584108352661, -0.1814073920249939, -0.1416035294532776, -0.23484596610069275, 0.1944313645362854, -0.18883004784584045, -0.16009633243083954, 0.008530223742127419, -0.20289841294288635, -0.31535032391548157, -0.18542411923408508, 0.10361401736736298, 0.10776913166046143, 0.45960578322410583, 0.17362001538276672, 0.3005414605140686, 0.30200010538101196, 0.08832181245088577, 0.24838194251060486, -0.1640893667936325, 0.16439656913280487, 0.27834275364875793, -0.04455981031060219, 0.2051130086183548, -0.22531555593013763, -0.09442933648824692, -0.0427980050444603, -0.41787147521972656, 0.23663020133972168, -0.21040396392345428, -0.012257866561412811, 0.3359174430370331, 0.09777331352233887, 0.07258648425340652, -0.2288157194852829, -0.10218382626771927, -0.21132178604602814, -0.33021968603134155, 0.3547579050064087, -0.10113198310136795, -0.17733745276927948, -0.2069161981344223, -0.23118071258068085, 0.1812756061553955, 0.060577187687158585, -0.6444156169891357, 0.14702589809894562, -0.40785449743270874, 0.3474581837654114, -0.28879326581954956, -0.19173702597618103, 0.26881951093673706, 0.11371029913425446, 0.08870761841535568, -0.10813871026039124, -0.2930823862552643, 0.09002800285816193, -0.03217228502035141, 0.06615958362817764, 0.003594454377889633, 0.27610325813293457, -0.09407516568899155, 0.6626375913619995, 0.07871384918689728, 0.011900033801794052, 0.38899871706962585, 0.05156533420085907, 0.5719009041786194, -0.33017298579216003, -0.2870437204837799, -0.18809190392494202, -0.0738210380077362, -0.23505818843841553, 0.09915336966514587, 0.1411222517490387, 0.114079050719738, 0.09055459499359131, -0.06795865297317505, 0.13308551907539368, -0.35788750648498535, 0.0481070950627327, -0.1934201717376709, 0.15661780536174774, 0.2233896404504776, 0.06167970597743988, -0.22446630895137787, -0.1251526176929474, 0.2731548845767975, 0.3852524757385254, 0.00580248236656189, 0.1834826022386551, -0.15120024979114532, 0.22850944101810455, -0.21768814325332642, -0.04676486551761627, -0.17739050090312958, 0.1736539602279663, -0.20198765397071838, 0.1512925624847412, -0.08343331515789032, -0.16562910377979279, 0.7700791954994202, 0.09331332892179489, 0.4446447491645813, 0.13162337243556976, -0.19268178939819336, -0.5198280215263367, -0.045932039618492126, 0.321500301361084, 0.13463181257247925, 0.166792631149292, 0.4837481677532196, -0.12293955683708191, -0.39338645339012146, -0.13474929332733154, 0.360548198223114, -0.17294320464134216, -0.28886011242866516, -0.12698951363563538, -0.1851266622543335, -0.049954500049352646, -0.08569646626710892, -0.2328859120607376, -0.16653090715408325, 0.12970180809497833, -0.1383281946182251, -0.012184260413050652, -0.04950527474284172, 0.059573836624622345, 0.1700795292854309, 0.22953638434410095, -0.14223787188529968, 0.2899217903614044, 0.20117266476154327, -0.23868206143379211, 0.13913671672344208, 0.5795518755912781, -0.20276129245758057, 0.017972633242607117, 0.1931152045726776, 0.009500649757683277, -0.2020719051361084, 0.4298553764820099, -0.05381492152810097, 0.012030161917209625, -0.0395987443625927, 0.3624829053878784, -0.3489118814468384, 0.20268899202346802, -0.014930324628949165, 0.16419225931167603, -0.08139850199222565, -0.2914857566356659, 0.5887516140937805, -0.0003854949027299881, -0.1984991431236267, 0.3374209702014923, 0.29783523082733154, -0.2333904206752777, 0.4287286400794983, -0.1433904469013214, 0.5358007550239563, -0.08475962281227112, 0.2781194746494293, 0.15800857543945312, -0.3518626093864441, 0.2277248054742813, -0.20052939653396606, 0.0006388835608959198, -0.2629261016845703, -0.04335866868495941, 0.017155682668089867, -0.34458449482917786, 0.12654703855514526, 0.2057868242263794, -0.05165352672338486, 0.3397006392478943, -0.2776758074760437, 0.15738575160503387, -0.05700615793466568, 0.1723962128162384, -0.17923708260059357, -0.44095543026924133, -0.2281835526227951, 0.10793675482273102, -0.20768485963344574, 0.5127376914024353, -0.06498536467552185, 0.06542189419269562, -0.023181743919849396, 0.1333327740430832, -0.191676527261734, 0.14244773983955383, -0.20560768246650696, -0.019015919417142868, 0.06405716389417648, -0.16772693395614624, 0.30539700388908386, 0.12111498415470123, 0.24972108006477356, 0.18319912254810333, -0.16548170149326324, 0.23777717351913452, -0.17613226175308228, 0.14779150485992432, -0.0856715738773346, 0.04667593166232109, 0.011682223528623581, 0.1783214807510376, 0.043435849249362946, -0.3020639419555664, -0.36808520555496216, -0.06329698860645294, 0.07807137072086334, 0.011357538402080536, -0.0828317403793335, -0.2589149475097656, -0.23327651619911194, -0.013008162379264832, 0.23252731561660767, -0.03855528682470322, 0.034283287823200226, 0.0729518011212349, 0.007234266959130764, 0.16715054214000702, -0.2390594631433487, -0.45689937472343445, -0.15472948551177979, 0.4233967065811157, -0.2755562663078308, -0.1281435191631317, 0.704708456993103, 0.138066366314888, 0.037508681416511536, -0.14656271040439606, -0.01751835271716118, 0.1783904731273651, -0.6224485635757446, 0.12428737431764603, -0.025500353425741196, -0.21032929420471191, 0.07604670524597168, -0.12626637518405914, 0.19717934727668762, -0.09285759180784225, -0.037566427141427994, -0.17934538424015045, -0.37002474069595337, -0.06879870593547821, -0.2767612636089325, 0.18736353516578674, 0.14036443829536438, -0.13616502285003662, 0.06804873049259186, 0.2571336627006531, -0.1587614268064499, 0.22399017214775085, -0.20438161492347717, -0.09141946583986282, 0.18820171058177948, -0.18601733446121216, 0.24678300321102142, -0.31074267625808716, -0.01924532651901245, -0.004371386021375656, -0.35885295271873474, -0.11993760615587234, -0.339839905500412, 0.14461399614810944, -0.14490929245948792, 0.14707832038402557, -0.13220104575157166, -0.18195456266403198, 0.23496180772781372, -0.2244153916835785, 0.477193146944046, 0.3037218749523163, -0.06197038292884827, -0.03215348348021507, 0.014573711901903152, 0.06249142810702324, -0.22566042840480804, 0.060085229575634, 0.013332128524780273, -0.06538034975528717, 0.2858356833457947, 0.023737335577607155, -0.3684059679508209, -0.02314341440796852, -0.302325576543808, 0.05841916427016258, 0.04756992682814598, 0.008871162310242653, 0.3669113516807556, -0.3021147847175598, 0.10157112777233124, 0.12106509506702423, 0.12652409076690674, 0.2139822393655777, -0.0996432900428772, -0.31374484300613403, 0.1251669079065323, 0.06485289335250854, 0.08823322504758835, -0.09548105299472809, 0.12101100385189056, -0.06237929314374924, 0.024028073996305466, 0.2588593661785126, 0.30174192786216736, -0.16906346380710602, 0.3920373320579529, 0.22434532642364502, 0.721077024936676, -0.12386119365692139, 0.13122141361236572, 0.2824808657169342, -0.2342367023229599, 0.08560013025999069, 0.41948479413986206, 0.33622419834136963, 0.07541034370660782, 0.5063923001289368, 0.2491413950920105, 0.11573003232479095, -0.22594618797302246, 0.3680345118045807, 0.07430341094732285, -0.6350297927856445, -0.11549249291419983, 0.0932231917977333, 0.0363452285528183, 0.3147943317890167, -0.11516273021697998, 0.3819347321987152, -0.5003918409347534, -0.2156364470720291, -0.021739671006798744, 0.023108096793293953, -0.07315922528505325, -0.3077050745487213, 0.47278350591659546, -0.057673465460538864, 0.06096768379211426, 0.08474279940128326, -0.06826016306877136, -0.2254706472158432, 0.26481735706329346, 0.0816713497042656, 0.08557909727096558, -0.18135732412338257, 0.014504827558994293, 0.07839217036962509, -0.03371217101812363, 0.026260409504175186, 0.3455773591995239, 0.15604427456855774, -0.24004676938056946, 0.07988990843296051, 0.05024467408657074, 0.19544638693332672, 0.19963131844997406, -0.18036018311977386, 0.25264936685562134, 0.05503959208726883, -0.009059004485607147, -0.03567838296294212, 0.042136840522289276, -0.20916453003883362, -0.00025134533643722534, 0.18577855825424194, 0.08564205467700958, -0.10970818996429443, -0.04851527139544487, -0.12284567952156067, 0.5743908882141113, -0.33067700266838074, 0.4036704897880554, 0.06318533420562744, 0.007062368094921112, 0.07639545202255249, 0.04720507562160492, -0.3255836069583893, 0.06824076175689697, 0.4605390429496765, -0.08408262580633163, -0.011017989367246628, -0.0459628701210022, 0.02157711610198021, 0.18600499629974365, 0.6756531000137329, 0.18090328574180603, 0.0688856914639473, -0.17533385753631592, -0.09224794059991837, -0.7202569842338562, 0.004839539527893066, -0.15381622314453125, 0.06820464879274368, 0.18330101668834686, 0.025497769936919212, -0.033525675535202026, -0.1361493468284607, 0.1343493014574051, 0.03640667721629143, 0.08562663197517395, 0.08049476146697998, -0.2730599343776703, 0.0851767510175705, -0.1839795857667923, 0.16729815304279327, -0.06666911393404007, -0.38127410411834717, 0.005537118762731552, 0.4040564298629761, -0.033012665808200836, 0.08364960551261902, 0.016826868057250977, 0.06032487377524376, -0.0656191036105156, 0.22110557556152344, 0.004555758088827133, -0.33146703243255615, 0.266888827085495, -0.29873526096343994, -0.4420071244239807, -0.17871583998203278, 0.22373363375663757, -0.3295326232910156, 0.02615402638912201, 0.31596073508262634, -0.37461525201797485, -0.35900285840034485, -0.46973150968551636, 0.0518302321434021, 0.18919724225997925, 0.1528865396976471, 0.04896325618028641, 0.2164817899465561, -0.1843089759349823, 0.38071075081825256, 0.24266578257083893, 0.5996033549308777, 0.14251647889614105, 0.34259700775146484, -0.18816448748111725, -0.14593784511089325, 0.5672606229782104, -0.33317649364471436, -0.5053150057792664, 0.28557807207107544, 0.21994787454605103, -0.09735425561666489, -0.4509097933769226, -0.23510602116584778, 0.12370339781045914, 0.0580432265996933, -0.04608670622110367, -0.13829456269741058, 0.032272350043058395, -0.3811512291431427, 0.031432751566171646, -0.18135276436805725, 0.37757211923599243, 0.26853951811790466, -0.006570832803845406, -0.04064871743321419, 0.0667336955666542 ]
https://github.com/huggingface/datasets/issues/3984
Local and automatic tests fail
Hi ! To be able to run the tests, you need to install all the test dependencies and additional ones with ``` pip install -e .[tests] pip install -r additional-tests-requirements.txt --no-deps ``` In particular, you probably need to `sacrebleu`. It looks like it wasn't able to instantiate `sacrebleu.TER` properly.
## Describe the bug Running the tests from CircleCI on a PR or locally fails, even with no changes. Tests seem to fail on `test_metric_common.py` ## Steps to reproduce the bug ```shell git clone https://huggingface/datasets.git cd datasets ``` ```python python -m pip install -e . pytest ``` ## Expected results All tests passing ## Actual results ``` tests/test_metric_common.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../.pyenv/versions/3.8.5/lib/python3.8/doctest.py:1336: in __run exec(compile(example.source, filename, "single", <doctest datasets_modules.metrics.ter.c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155.ter.Ter[3]>:1: in <module> ??? ../datasets/src/datasets/metric.py:430: in compute output = self._compute(**inputs, **compute_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Metric(name: "ter", features: {'predictions': Value(dtype='string', id='sequence'), 'references': Sequence(feature=Val...ences=references) >>> print(results) {'score': 0.0, 'num_edits': 0, 'ref_length': 6.5} """, stored examples: 0) predictions = ['hello there general kenobi', 'foo bar foobar'] references = [['hello there general kenobi', 'hello there !'], ['foo bar foobar', 'foo bar foobar']] normalized = False, no_punct = False, asian_support = False, case_sensitive = False def _compute( self, predictions, references, normalized: bool = False, no_punct: bool = False, asian_support: bool = False, case_sensitive: bool = False, ): references_per_prediction = len(references[0]) if any(len(refs) != references_per_prediction for refs in references): raise ValueError("Sacrebleu requires the same number of references for each prediction") transformed_references = [[refs[i] for refs in references] for i in range(references_per_prediction)] > sb_ter = TER(normalized, no_punct, asian_support, case_sensitive) E TypeError: __init__() takes 2 positional arguments but 5 were given /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/metrics/ter/c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155/ter.py:130: TypeError ------------------------------ Captured stdout call ------------------------------- Trying: predictions = ["hello there general kenobi", "foo bar foobar"] Expecting nothing ok Trying: references = [["hello there general kenobi", "hello there !"], ["foo bar foobar", "foo bar foobar"]] Expecting nothing ok Trying: ter = datasets.load_metric("ter") Expecting nothing ok Trying: results = ter.compute(predictions=predictions, references=references) Expecting nothing ================================ warnings summary ================================= ../.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15 /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses from imp import load_source ../datasets/src/datasets/commands/test.py:35 /home/markussagen/datasets/src/datasets/commands/test.py:35: PytestCollectionWarning: cannot collect test class 'TestCommand' because it has a __init__ constructor (from: tests/commands/test_test.py) class TestCommand(BaseDatasetsCLICommand): tests/commands/test_test.py:33 /home/markussagen/mydataset/tests/commands/test_test.py:33: PytestCollectionWarning: cannot collect test class 'TestCommandArgs' because it has a __new__ constructor (from: tests/commands/test_test.py) class TestCommandArgs: tests/test_arrow_dataset.py: 760 warnings tests/test_formatting.py: 60 warnings tests/test_search.py: 31 warnings tests/features/test_array_xd.py: 117 warnings /home/markussagen/datasets/src/datasets/formatting/formatting.py:197: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations (isinstance(x, np.ndarray) and (x.dtype == np.object or x.shape != array[0].shape)) tests/test_arrow_dataset.py: 154 warnings tests/features/test_array_xd.py: 1 warning /home/markussagen/datasets/src/datasets/formatting/formatting.py:201: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations return np.array(array, copy=False, **{**self.np_array_kwargs, "dtype": np.object}) tests/test_arrow_dataset.py: 60 warnings /home/markussagen/datasets/src/datasets/arrow_dataset.py:3105: DeprecationWarning: `np.str` is a deprecated alias for the builtin `str`. To silence this warning, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations elif np.issubdtype(values.dtype, np.str): tests/test_arrow_dataset.py: 138 warnings tests/test_formatting.py: 21 warnings /home/markussagen/datasets/src/datasets/formatting/tf_formatter.py:69: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations data_struct.dtype == np.object tests/test_arrow_dataset.py: 240 warnings tests/test_formatting.py: 20 warnings /home/markussagen/datasets/src/datasets/formatting/torch_formatter.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # pytorch tensors cannot be instantied from an array of objects tests/test_arrow_dataset.py: 12 warnings tests/test_search.py: 2 warnings tests/features/test_array_xd.py: 6 warnings tests/features/test_image.py: 4 warnings /home/markussagen/datasets/src/datasets/features/features.py:1129: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations [0] + [len(arr) for arr in l_arr], dtype=np.object tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_banking77 /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/banking77/aec0289529599d4572d76ab00c8944cb84f88410ad0c9e7da26189d31f62a55b/banking77.py:24: DeprecationWarning: invalid escape sequence \~ _CITATION = """\ tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_universal_dependencies /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/universal_dependencies/065e728dfe9a8371434a6e87132c2386a6eacab1a076d3a12aa417b994e6ef7d/universal_dependencies.py:6: DeprecationWarning: invalid escape sequence \= _CITATION = """\ tests/test_filesystem.py: 105 warnings /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/responses/__init__.py:398: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly warn( tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs /home/markussagen/datasets/src/datasets/formatting/jax_formatter.py:57: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # jax arrays cannot be instantied from an array of objects tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py:3567: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.int64'> requested in array is not available, and will be truncated to dtype int32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more. lax._check_user_dtype_supported(dtype, "array") tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html if obj.zone == 'local': tests/test_upstream_hub.py::TestPushToHub::test_push_dataset_to_hub_custom_features _audio /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype=np.complex, tests/features/test_array_xd.py::test_array_xd_with_none /home/markussagen/mydataset/tests/features/test_array_xd.py:338: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations assert isinstance(arr, np.ndarray) and arr.dtype == np.object and arr.shape == (3,) -- Docs: https://docs.pytest.org/en/stable/warnings.html ============================= short test summary info ============================= FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_bleurt - I... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_chrf - Att... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_code_eval FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_comet - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_competition_math FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_coval - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_perplexity FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_ter - Type... ``` ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-5.16.11-76051611-generic-x86_64-with-glibc2.33 - Python version: 3.8.5 - PyArrow version: 5.0.0
49
Local and automatic tests fail ## Describe the bug Running the tests from CircleCI on a PR or locally fails, even with no changes. Tests seem to fail on `test_metric_common.py` ## Steps to reproduce the bug ```shell git clone https://huggingface/datasets.git cd datasets ``` ```python python -m pip install -e . pytest ``` ## Expected results All tests passing ## Actual results ``` tests/test_metric_common.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../.pyenv/versions/3.8.5/lib/python3.8/doctest.py:1336: in __run exec(compile(example.source, filename, "single", <doctest datasets_modules.metrics.ter.c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155.ter.Ter[3]>:1: in <module> ??? ../datasets/src/datasets/metric.py:430: in compute output = self._compute(**inputs, **compute_kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Metric(name: "ter", features: {'predictions': Value(dtype='string', id='sequence'), 'references': Sequence(feature=Val...ences=references) >>> print(results) {'score': 0.0, 'num_edits': 0, 'ref_length': 6.5} """, stored examples: 0) predictions = ['hello there general kenobi', 'foo bar foobar'] references = [['hello there general kenobi', 'hello there !'], ['foo bar foobar', 'foo bar foobar']] normalized = False, no_punct = False, asian_support = False, case_sensitive = False def _compute( self, predictions, references, normalized: bool = False, no_punct: bool = False, asian_support: bool = False, case_sensitive: bool = False, ): references_per_prediction = len(references[0]) if any(len(refs) != references_per_prediction for refs in references): raise ValueError("Sacrebleu requires the same number of references for each prediction") transformed_references = [[refs[i] for refs in references] for i in range(references_per_prediction)] > sb_ter = TER(normalized, no_punct, asian_support, case_sensitive) E TypeError: __init__() takes 2 positional arguments but 5 were given /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/metrics/ter/c0cfb5adedac7eb15ffa47bba6a70fabd80f3eb906ee508abf5e1906285d1155/ter.py:130: TypeError ------------------------------ Captured stdout call ------------------------------- Trying: predictions = ["hello there general kenobi", "foo bar foobar"] Expecting nothing ok Trying: references = [["hello there general kenobi", "hello there !"], ["foo bar foobar", "foo bar foobar"]] Expecting nothing ok Trying: ter = datasets.load_metric("ter") Expecting nothing ok Trying: results = ter.compute(predictions=predictions, references=references) Expecting nothing ================================ warnings summary ================================= ../.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15 /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/hdfs/config.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses from imp import load_source ../datasets/src/datasets/commands/test.py:35 /home/markussagen/datasets/src/datasets/commands/test.py:35: PytestCollectionWarning: cannot collect test class 'TestCommand' because it has a __init__ constructor (from: tests/commands/test_test.py) class TestCommand(BaseDatasetsCLICommand): tests/commands/test_test.py:33 /home/markussagen/mydataset/tests/commands/test_test.py:33: PytestCollectionWarning: cannot collect test class 'TestCommandArgs' because it has a __new__ constructor (from: tests/commands/test_test.py) class TestCommandArgs: tests/test_arrow_dataset.py: 760 warnings tests/test_formatting.py: 60 warnings tests/test_search.py: 31 warnings tests/features/test_array_xd.py: 117 warnings /home/markussagen/datasets/src/datasets/formatting/formatting.py:197: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations (isinstance(x, np.ndarray) and (x.dtype == np.object or x.shape != array[0].shape)) tests/test_arrow_dataset.py: 154 warnings tests/features/test_array_xd.py: 1 warning /home/markussagen/datasets/src/datasets/formatting/formatting.py:201: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations return np.array(array, copy=False, **{**self.np_array_kwargs, "dtype": np.object}) tests/test_arrow_dataset.py: 60 warnings /home/markussagen/datasets/src/datasets/arrow_dataset.py:3105: DeprecationWarning: `np.str` is a deprecated alias for the builtin `str`. To silence this warning, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations elif np.issubdtype(values.dtype, np.str): tests/test_arrow_dataset.py: 138 warnings tests/test_formatting.py: 21 warnings /home/markussagen/datasets/src/datasets/formatting/tf_formatter.py:69: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations data_struct.dtype == np.object tests/test_arrow_dataset.py: 240 warnings tests/test_formatting.py: 20 warnings /home/markussagen/datasets/src/datasets/formatting/torch_formatter.py:49: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # pytorch tensors cannot be instantied from an array of objects tests/test_arrow_dataset.py: 12 warnings tests/test_search.py: 2 warnings tests/features/test_array_xd.py: 6 warnings tests/features/test_image.py: 4 warnings /home/markussagen/datasets/src/datasets/features/features.py:1129: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations [0] + [len(arr) for arr in l_arr], dtype=np.object tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_banking77 /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/banking77/aec0289529599d4572d76ab00c8944cb84f88410ad0c9e7da26189d31f62a55b/banking77.py:24: DeprecationWarning: invalid escape sequence \~ _CITATION = """\ tests/test_dataset_common.py::LocalDatasetTest::test_builder_class_universal_dependencies /tmp/pytest-of-markussagen/pytest-1/cache/modules/datasets_modules/datasets/universal_dependencies/065e728dfe9a8371434a6e87132c2386a6eacab1a076d3a12aa417b994e6ef7d/universal_dependencies.py:6: DeprecationWarning: invalid escape sequence \= _CITATION = """\ tests/test_filesystem.py: 105 warnings /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/responses/__init__.py:398: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly warn( tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs tests/test_formatting.py::FormatterTest::test_jax_formatter_np_array_kwargs /home/markussagen/datasets/src/datasets/formatting/jax_formatter.py:57: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data_struct.dtype == np.object: # jax arrays cannot be instantied from an array of objects tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter tests/test_formatting.py::FormatterTest::test_jax_formatter /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py:3567: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.int64'> requested in array is not available, and will be truncated to dtype int32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more. lax._check_user_dtype_supported(dtype, "array") tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/apscheduler/util.py:95: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html if obj.zone == 'local': tests/test_upstream_hub.py::TestPushToHub::test_push_dataset_to_hub_custom_features _audio /home/markussagen/.pyenv/versions/3.8.5/envs/huggingface/lib/python3.8/site-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations dtype=np.complex, tests/features/test_array_xd.py::test_array_xd_with_none /home/markussagen/mydataset/tests/features/test_array_xd.py:338: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations assert isinstance(arr, np.ndarray) and arr.dtype == np.object and arr.shape == (3,) -- Docs: https://docs.pytest.org/en/stable/warnings.html ============================= short test summary info ============================= FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_bleurt - I... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_chrf - Att... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_code_eval FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_comet - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_competition_math FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_coval - Im... FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_frugalscore FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_perplexity FAILED tests/test_metric_common.py::LocalMetricTest::test_load_metric_ter - Type... ``` ## Environment info - `datasets` version: 2.0.1.dev0 - Platform: Linux-5.16.11-76051611-generic-x86_64-with-glibc2.33 - Python version: 3.8.5 - PyArrow version: 5.0.0 Hi ! To be able to run the tests, you need to install all the test dependencies and additional ones with ``` pip install -e .[tests] pip install -r additional-tests-requirements.txt --no-deps ``` In particular, you probably need to `sacrebleu`. It looks like it wasn't able to instantiate `sacrebleu.TER` properly.
[ -0.11178280413150787, -0.2659801244735718, -0.01610993593931198, 0.18423286080360413, 0.13711313903331757, -0.05685305595397949, 0.12387998402118683, 0.3405487537384033, 0.14958922564983368, 0.34217268228530884, 0.04628872126340866, 0.30763205885887146, -0.16629762947559357, 0.22987063229084015, -0.03899199143052101, -0.2192203402519226, -0.1309422254562378, 0.09682822972536087, 0.14603900909423828, 0.027800634503364563, -0.3403891623020172, 0.1960446536540985, -0.0316949337720871, 0.06482011824846268, -0.0361587218940258, -0.1340273767709732, -0.2758753299713135, 0.05040525272488594, -0.012451471760869026, -0.4531472325325012, 0.45017749071121216, 0.09891451895236969, -0.15565751492977142, 0.570776104927063, -0.00011594142415560782, -0.038449205458164215, 0.2932113707065582, 0.07019650936126709, -0.05840114876627922, -0.21959547698497772, 0.1554090976715088, -0.09767194092273712, 0.2539590001106262, -0.24692991375923157, 0.04261872172355652, 0.20355898141860962, -0.3367873430252075, -0.4106752574443817, 0.06590303033590317, 0.45973771810531616, 0.21567487716674805, 0.6754708290100098, -0.1171891912817955, -0.19127117097377777, -0.154975026845932, 0.0669054388999939, -0.1981370747089386, 0.5585275292396545, 0.08413176238536835, -0.1405891627073288, 0.016003772616386414, -0.04831584170460701, -0.12207765132188797, 0.20499958097934723, 0.2133195400238037, -0.05412346124649048, 0.16575047373771667, -0.26256370544433594, 0.20926785469055176, -0.06941420584917068, 0.13407951593399048, -0.6006871461868286, -0.1354278028011322, 0.21060135960578918, -0.015901967883110046, -0.5591036677360535, 0.22655093669891357, -0.1152382493019104, -0.3385135531425476, 0.11050385236740112, -0.4063827693462372, 0.07688160240650177, -0.22399409115314484, 0.12315928190946579, -0.44516706466674805, -0.056564390659332275, 0.07400641590356827, 0.08999611437320709, -0.010923121124505997, 0.05566030740737915, -0.10946768522262573, -0.06316231191158295, -0.045814398676157, 0.13861502707004547, -0.13541832566261292, -0.20553985238075256, 0.17381587624549866, 0.2380693554878235, 0.3196878135204315, 0.2967393398284912, -0.05539806932210922, -0.018028561025857925, 0.11993810534477234, 0.26340097188949585, -0.112025186419487, 0.4166598916053772, 0.19602054357528687, 0.45610082149505615, 0.3786030411720276, 0.27730855345726013, -0.2229229360818863, 0.12404473125934601, 0.46323496103286743, -0.3278057873249054, 0.27789753675460815, 0.03277759253978729, 0.2851971983909607, -0.27953824400901794, -0.32148846983909607, 0.4264310598373413, -0.2735039293766022, 0.13289612531661987, 0.21252714097499847, 0.34401872754096985, -0.0957011803984642, 0.32348665595054626, -0.08464772999286652, 0.43151605129241943, -0.17277613282203674, 0.3996868133544922, -0.237571120262146, 0.10967522859573364, 0.017023693770170212, 0.3382450342178345, 0.3698625862598419, -0.08004483580589294, 0.2883628010749817, 0.11178620159626007, 0.3321646451950073, -0.30148038268089294, 0.07124059647321701, -0.36172857880592346, 0.03635311871767044, 0.39950573444366455, -0.05237957090139389, 0.08946523070335388, 0.14411084353923798, -0.08232725411653519, -0.19729343056678772, 0.15508988499641418, -0.10077474266290665, -0.24188899993896484, 0.31281426548957825, 0.22525936365127563, -0.29936450719833374, -0.08911946415901184, 0.21246583759784698, -0.08828236162662506, 0.1053038015961647, -0.10899628698825836, 0.09905696660280228, -0.2900271415710449, -0.3266668915748596, -0.0384531170129776, 0.4411217272281647, 0.4156911373138428, -0.1361057311296463, 0.16294804215431213, 0.09574931859970093, 0.0910605788230896, 0.20360058546066284, 0.21653874218463898, 0.06866152584552765, 0.27091363072395325, -0.16987344622612, -0.2038005292415619, 0.1570267379283905, -0.641910970211029, -0.17379198968410492, 0.075010746717453, 0.027969948947429657, 0.030663026496767998, -0.11429836601018906, -0.41827693581581116, 0.029350077733397484, 0.11993502825498581, 0.2898660898208618, -0.16868983209133148, -0.15003837645053864, 0.11382780224084854, -0.44841453433036804, -0.20920555293560028, 0.017217570915818214, 0.004612751305103302, 0.4162262976169586, -0.014251820743083954, 0.16260583698749542, -0.31820979714393616, 0.14005261659622192, -0.019843172281980515, -0.19403129816055298, 0.2181534320116043, 0.5581358075141907, -0.30673742294311523, 0.16303378343582153, -0.39386311173439026, -0.0995182916522026, 0.4994529187679291, -0.317807674407959, 0.11658740043640137, -0.07905599474906921, -0.04990562051534653, -0.6530840396881104, 0.1803426593542099, -0.18462032079696655, -0.271750271320343, 0.097709521651268, 0.1849781721830368, 0.1459771990776062, 0.22731690108776093, -0.2784323990345001, -0.2882576584815979, -0.1563524454832077, -0.0007098099449649453, 0.3621283769607544, 0.11010302603244781, -0.16766543686389923, -0.2823256552219391, -0.19468697905540466, 0.22460240125656128, 0.2315848469734192, -0.04679000377655029, -0.2814887464046478, 0.3349469006061554, 0.12858109176158905, 0.07973039895296097, 0.0653296411037445, -0.062182649970054626, 0.24679410457611084, -0.3498295545578003, -0.15898582339286804, 0.02564939484000206, 0.05862013250589371, 0.05420209467411041, -0.1714320182800293, 0.25819772481918335, 0.09005483984947205, 0.1572282463312149, -0.13139674067497253, -0.0011831000447273254, 0.18797548115253448, -0.08315481245517731, 0.07053998857736588, -0.1346343755722046, 0.2974136471748352, -0.02084992453455925, 0.5891729593276978, -0.14479005336761475, -0.17907389998435974, -0.05648163706064224, 0.05386708676815033, -0.08220619708299637, 0.024425208568572998, 0.13114887475967407, 0.12655119597911835, 0.06395924091339111, -0.01922442577779293, -0.018465708941221237, 0.5500509738922119, 0.017249949276447296, 0.15124399960041046, 0.4228765666484833, -0.2707675099372864, -0.2778632938861847, 0.13216657936573029, 0.038702283054590225, -0.20294074714183807, 0.48935019969940186, 0.4481946527957916, 0.14316719770431519, -0.3087473213672638, -0.0709918811917305, -0.09512821584939957, 0.2990788221359253, -0.34142041206359863, 0.15421944856643677, -0.0934375673532486, 0.26263248920440674, -0.12005050480365753, 0.10984485596418381, -0.009779408574104309, -0.21401435136795044, 0.09025394916534424, 0.17917568981647491, -0.08514918386936188, 0.17956750094890594, 0.16973069310188293, 0.47845470905303955, 0.06735941767692566, -0.361887127161026, -0.26347023248672485, -0.23345449566841125, -0.1452942192554474, 0.05761875584721565, 0.24351631104946136, -0.14734727144241333, 0.40518254041671753, -0.3689786493778229, -0.3197575807571411, -0.15885032713413239, -0.4063989222049713, 0.18684446811676025, 0.12933948636054993, 0.6690483689308167, 0.026328742504119873, -0.02206965535879135, -0.12632542848587036, -0.18075191974639893, 0.3363374173641205, -0.24185964465141296, -0.09378466755151749, 0.09456688165664673, 0.024474460631608963, 0.023997565731406212, -0.5175495743751526, -0.40918126702308655, -0.15902212262153625, -0.25569140911102295, 0.20870541036128998, 0.15420351922512054, 0.03828851133584976, 0.21699567139148712, 0.14658503234386444, 0.22586554288864136, 0.0009900759905576706, 0.19716598093509674, -0.010405724868178368, -0.18948523700237274, 0.07613396644592285, -0.2080230414867401, -0.36384254693984985, -0.20554673671722412, 0.002373514696955681, 0.3455752730369568, 0.04019604250788689, -0.5079802870750427, -0.5698786973953247, -0.07544513046741486, 0.6463388204574585, 0.0002467595040798187, 0.027107132598757744, 0.20812049508094788, 0.027996638789772987, -0.013558859936892986, -0.08242277801036835, -0.06136566400527954, 0.0709085613489151, 0.14232519268989563, -0.17181673645973206, -0.0709107518196106, 0.14911791682243347, 0.038147132843732834, 0.6200243830680847, 0.24692535400390625, 0.08678151667118073, 0.3573969602584839, -0.06945208460092545, 0.42732319235801697, -0.35297152400016785, -0.351410448551178, 0.1253531128168106, -0.07037967443466187, -0.48054778575897217, -0.023700326681137085, -0.05736251175403595, -0.31884682178497314, -0.1827870011329651, 0.055051710456609726, -0.03663284331560135, -0.18164396286010742, -0.13819487392902374, -0.22565925121307373, 0.5033536553382874, 0.026268165558576584, 0.19067075848579407, -0.16087278723716736, -0.008550918661057949, 0.2471160888671875, 0.2289356142282486, -0.18011286854743958, -0.046762559562921524, -0.3331475257873535, -0.12477006018161774, -0.3147519528865814, 0.28118598461151123, 0.15499290823936462, 0.42695337533950806, -0.30529841780662537, -0.016985928639769554, 0.027041561901569366, -0.2507065534591675, 0.09519870579242706, -0.1394634246826172, 0.12658238410949707, 0.2879202961921692, -0.3036428391933441, -0.2697407603263855, 0.001423817127943039, -0.23242267966270447, -0.13060374557971954, -0.180084690451622, 0.7990360260009766, -0.035948071628808975, -0.1069362610578537, 0.15263792872428894, 0.2903693616390228, -0.013252351433038712, -0.09134228527545929, -0.2689487636089325, -0.45749807357788086, -0.19891518354415894, 0.31272923946380615, -0.04100356996059418, 0.3027319312095642, -0.4041001796722412, 0.038400549441576004, 0.04626768082380295, -0.17951875925064087, -0.021575532853603363, 0.26789766550064087, 0.29996615648269653, -0.280135840177536, 0.2568696141242981, 0.016503406688570976, -0.38022056221961975, 0.050044141709804535, 0.20211844146251678, -0.2663043737411499, -0.2912311255931854, 0.0986894816160202, -0.00039687007665634155, 0.25860658288002014, 0.3781077265739441, -0.19539760053157806, -0.02555166184902191, -0.21248124539852142, 0.06602508574724197, -0.16107703745365143, 0.28300631046295166, 0.2520887851715088, 0.0619775727391243, 0.1590716540813446, -0.0007424894720315933, -0.003587193787097931, 0.32487744092941284, -0.12154054641723633, 0.2752377986907959, -0.08695882558822632, -0.14415127038955688, 0.21542911231517792, 0.02988138049840927, 0.6548761129379272, 0.13739752769470215, -0.09414650499820709, 0.4806257486343384, -0.1372220814228058, -0.08806964755058289, 0.045965440571308136, 0.012164179235696793, -0.3867964446544647, 0.031111419200897217, 0.14275610446929932, -0.20904161036014557, 0.3355264365673065, -0.4757677912712097, -0.1638800948858261, 0.1463148593902588, -0.1296004056930542, -0.04713362827897072, 0.23680587112903595, -0.08588650077581406, -0.2694050669670105, 0.07091686129570007, -0.08722216635942459, 0.1698516458272934, 0.01312565803527832, 0.33325788378715515, -0.1795681118965149, 0.12970253825187683, 0.06575454771518707, -0.3725873827934265, -0.22040864825248718, -0.13610249757766724, -0.39882156252861023, 0.05348130688071251, 0.2632778286933899, -0.39032554626464844, -0.27257034182548523, 0.24064670503139496, 0.5081049799919128, 0.2821466028690338, -0.31076666712760925, 0.01695513166487217, -0.1405724585056305, 0.28705859184265137, 0.40649649500846863, 0.07925911247730255, 0.13998961448669434, -0.2517516613006592, -0.392217218875885, 0.013490907847881317, -0.21511517465114594, -0.08181110769510269, 0.1457616090774536, 0.057814858853816986, 0.05557390674948692, -0.004359635524451733, 0.08605490624904633, -0.34607571363449097, 0.11695800721645355, -0.2342456728219986, 0.1760006695985794, -0.1307470053434372, -0.07466928660869598, 0.29034772515296936, -0.22801701724529266, -0.27630287408828735, -0.07027021050453186, 0.1392040252685547, -0.20530667901039124, -0.05175811052322388, 0.12490146607160568, -0.16510385274887085, -0.027037136256694794, -0.2339375913143158, 0.24733242392539978, -0.20827361941337585, -0.21439003944396973, 0.2384546995162964, -0.04342128708958626, -0.1426703929901123, -0.01072386559098959, 0.6182682514190674, 0.22894881665706635, -0.14293751120567322, -0.04013046622276306, -0.398057222366333, -0.2963370084762573, 0.06444576382637024, 0.2653590738773346, 0.16972583532333374, 0.22291362285614014, 0.33591729402542114, -0.07081044465303421, 0.06207197904586792, -0.2874387502670288, -0.059408947825431824, -0.42189523577690125, 0.013639675453305244, -0.26124340295791626, -0.14497441053390503, 0.12369842827320099, -0.07291316986083984, 0.10612547397613525, 0.029784874990582466, -0.16224302351474762, -0.2865357995033264, -0.17238037288188934, 0.10480638593435287, -0.048933759331703186, -0.04643973708152771, 0.03264380246400833, -0.001611664891242981, 0.22997808456420898, -0.09071213752031326, 0.11124785244464874, 0.12186742573976517, -0.22618700563907623, 0.10148176550865173, -0.12302286922931671, 0.43324506282806396, -0.012453129515051842, 0.06859323382377625, 0.011342830955982208, -0.03634968400001526, -0.08190853893756866, 0.035479139536619186, -0.17766474187374115, -0.02804645523428917, 0.30444446206092834, 0.009847760200500488, 0.046522896736860275, 0.1391914188861847, 0.1793588250875473, -0.20886336266994476, -0.12353157997131348, -0.02811581827700138, 0.1959361881017685, 0.2127256542444229, -0.25830909609794617, 0.08514299243688583, 0.08139155060052872, 0.2426644265651703, -0.22453288733959198, -0.13977009057998657, -0.02478952333331108, 0.1256050169467926, 0.24253588914871216, 0.21271002292633057, 0.3661426901817322, -0.5041454434394836, 0.3083018958568573, 0.18343207240104675, 0.5069273710250854, -0.14212140440940857, -0.003980938345193863, 0.036093663424253464, -0.07603104412555695, 0.28125816583633423, -0.08011987060308456, -0.12466380000114441, 0.06918130815029144, -0.0270339697599411, -0.13425809144973755, 0.2226518988609314, -0.2853282392024994, 0.12687772512435913, 0.26285067200660706, -0.0140302125364542, 0.3657432794570923, -0.5431711077690125, 0.05999365821480751, -0.13638335466384888, -0.11400829255580902, 0.40638020634651184, -0.5215762257575989, -0.33897411823272705, -0.07128240913152695, -0.10521632432937622, -0.11429900676012039, 0.06315489113330841, -0.3824951648712158, -0.19065552949905396, 0.12859059870243073, -0.10563430190086365, 0.0839085802435875, 0.2509521543979645, 0.3567030429840088, 0.03103772923350334, -0.2163495272397995, -0.18353022634983063, -0.31358134746551514, 0.2732643187046051, 0.25692272186279297, -0.0605635866522789, 0.4377906918525696, 0.24934066832065582, -0.20905300974845886, -0.41056597232818604, 0.47294455766677856, 0.39212676882743835, 0.29217779636383057, -0.18011905252933502, -0.14732736349105835, -0.28072589635849, 0.012308532372117043, -0.04608334228396416, -0.008223537355661392, -0.09265504777431488, -0.2002660632133484, 0.21537840366363525, 0.20643684267997742, -0.19953909516334534, 0.25099077820777893, 0.027131419628858566, 0.062382008880376816, -0.4839839041233063, 0.31275713443756104, 0.0513157956302166, 0.0356694757938385, 0.16657282412052155, -0.026764221489429474, -0.1883535385131836, 0.40262770652770996, 0.2507704496383667, 0.15187221765518188, 0.07151417434215546, -0.02570173144340515, 0.10471471399068832, 0.2047746181488037, 0.323257714509964, 0.22628802061080933, -0.015688970685005188, -0.4532219469547272, -0.06507222354412079, -0.523358941078186, 0.4157930910587311, 0.1434279829263687, 0.24537310004234314, 0.1703636199235916, -0.149254709482193, -0.06553561240434647, 0.047023382037878036, 0.0292985737323761, 0.20811748504638672, -0.035547591745853424, -0.09309707581996918, -0.5842673778533936, -0.0366859994828701, -0.3594207167625427, -0.3539204001426697, 0.06666961312294006, -0.3728698194026947, 0.2957375943660736, -0.4341222643852234, 0.045325346291065216, 0.12863561511039734, -0.26231902837753296, 0.2074277698993683, 0.21961970627307892, 0.15260598063468933, 0.2698270380496979, 0.5485750436782837, -0.0024751462042331696, 0.0034919772297143936, -0.1776343137025833, -0.24551193416118622, 0.06962806731462479, 0.09673451632261276, -0.2590163052082062, 0.08386734873056412, -0.029189232736825943, -0.43144649267196655, -0.08934970945119858, 0.32672470808029175, 0.28761690855026245, -0.32480916380882263, 0.18656592071056366, -0.011689633131027222, 0.12074726074934006, -0.014469391666352749, 0.10982723534107208, 0.4687909185886383, -0.022828765213489532, 0.2826639711856842, -0.25229132175445557, -0.30897220969200134, 0.6089744567871094, -0.11519812792539597, -0.2582969069480896, -0.18611611425876617, 0.321776419878006, -0.02570435404777527, -0.24637743830680847, -0.2995792031288147, -0.18929755687713623, 0.18825821578502655, -0.17334559559822083, -0.31568267941474915, 0.2111368030309677, 0.09316636621952057, 0.010267946869134903, -0.01958271861076355, 0.3811168670654297, 0.03640804439783096, 0.11702251434326172, 0.20988082885742188, -0.19876204431056976 ]
https://github.com/huggingface/datasets/issues/3983
Infinitely attempting lock
Hi ! Thanks for reporting. We're using filelock` as our locking mechanism. Can you try deleting the .lock file mentioned in the logs and try again ? Make sure that no other process is generating the `cnn_dailymail` dataset. If it doesn't work, could you try to set up a lock using the latest version of filelock` and see if it works ? ``` pip install filelock ``` here is a code example from the `filelock` documentation that you can try: ```python from filelock import FileLock lock = FileLock("test.txt.lock") with lock: with open("test.txt", "a") as f: f.write("foo") ```
I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this?
97
Infinitely attempting lock I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this? Hi ! Thanks for reporting. We're using filelock` as our locking mechanism. Can you try deleting the .lock file mentioned in the logs and try again ? Make sure that no other process is generating the `cnn_dailymail` dataset. If it doesn't work, could you try to set up a lock using the latest version of filelock` and see if it works ? ``` pip install filelock ``` here is a code example from the `filelock` documentation that you can try: ```python from filelock import FileLock lock = FileLock("test.txt.lock") with lock: with open("test.txt", "a") as f: f.write("foo") ```
[ -0.3298415541648865, 0.20496174693107605, -0.022750629112124443, 0.15265598893165588, 0.3330145478248596, 0.053330935537815094, 0.43074479699134827, 0.23334263265132904, 0.1402670294046402, 0.009987883269786835, -0.03705335408449173, 0.04263195022940636, -0.10390257090330124, -0.3476852476596832, -0.18421651422977448, 0.1177704930305481, -0.08776820451021194, -0.019821874797344208, -0.27994009852409363, 0.06293156743049622, -0.08515578508377075, 0.11510898917913437, -0.14504951238632202, -0.11712510883808136, -0.7962336540222168, -0.20284047722816467, 0.04330729693174362, 0.155391126871109, -0.09763489663600922, 0.013371159322559834, 0.1585732102394104, 0.3052719831466675, 0.009041855111718178, 0.9299718737602234, -0.00011918733798665926, 0.00044665485620498657, 0.3150668144226074, 0.012630989775061607, -0.5669071674346924, -0.12235952913761139, -0.028846917673945427, -0.29260408878326416, -0.05523013323545456, -0.28116756677627563, 0.15190184116363525, 0.022982284426689148, 0.17648935317993164, -0.25263264775276184, 0.47895270586013794, 0.0963917225599289, 0.12834514677524567, 0.3988611698150635, 0.1800810843706131, -0.34886348247528076, 0.13688421249389648, 0.12999312579631805, -0.25112637877464294, 0.10695628821849823, 0.3477577269077301, -0.26798897981643677, -0.13163438439369202, 0.3083174228668213, -0.28286346793174744, -0.004268834367394447, 0.02762049250304699, -0.050037775188684464, -0.21839863061904907, -0.11809605360031128, 0.16330917179584503, 0.12145975232124329, 0.36295372247695923, -0.18427908420562744, -0.6428249478340149, -0.29552486538887024, 0.14256900548934937, 0.03718002140522003, 0.05433196574449539, 0.06929592788219452, -0.27076905965805054, 0.3191729485988617, -0.40237319469451904, 0.07815825939178467, 0.02066931128501892, 0.10988233983516693, -0.059706758707761765, 0.22667314112186432, 0.04006858170032501, 0.19012051820755005, 0.3340247571468353, -0.100653275847435, 0.32204389572143555, -0.07471860945224762, 0.005602780729532242, 0.061718735843896866, -0.45687246322631836, 0.0881093442440033, 0.09161980450153351, 0.07365847378969193, 0.02051636204123497, 0.059573739767074585, -0.20282799005508423, 0.11516972631216049, 0.15012387931346893, 0.12291273474693298, 0.06128301844000816, 0.13223116099834442, 0.020066596567630768, 0.4104298949241638, 0.3102089762687683, 0.14481289684772491, -0.2280578464269638, 0.20348197221755981, -0.07521161437034607, -0.13014742732048035, 0.3084663450717926, -0.1692630648612976, 0.12100747227668762, 0.08273127675056458, 0.09836002439260483, 0.3246399164199829, -0.19175943732261658, -0.012662055902183056, 0.25047212839126587, 0.21014395356178284, 0.30133891105651855, -0.11200640350580215, 0.3008494973182678, -0.09818823635578156, -0.311404287815094, 0.08382577449083328, -0.2997344136238098, 0.035951755940914154, -0.4847245216369629, 0.14593838155269623, 0.23877884447574615, 0.16671626269817352, 0.10243792086839676, 0.06983646750450134, 0.19910775125026703, -0.11482957005500793, 0.2619994282722473, -0.09330326318740845, -0.08720313757658005, 0.5230209231376648, -0.18232367932796478, 0.13182662427425385, 0.11469517648220062, -0.05636153742671013, 0.10089129954576492, 0.20973125100135803, 0.2752993404865265, -0.16515931487083435, 0.1792679876089096, 0.12042524665594101, -0.2924603223800659, 0.16924071311950684, 0.04632151126861572, -0.03109455481171608, 0.17468851804733276, 0.06313107907772064, 0.1407449096441269, -0.21174144744873047, 0.2318175733089447, 0.13239023089408875, -0.04264485463500023, 0.7179317474365234, -0.14479224383831024, 0.10309584438800812, -0.02142302319407463, 0.006923597306013107, -0.06260671466588974, 0.23938831686973572, -0.29225480556488037, 0.11420604586601257, -0.13347963988780975, 0.09295375645160675, 0.13810141384601593, -0.14195097982883453, -0.7052145600318909, 0.3468116819858551, -0.2805711627006531, -0.18529503047466278, 0.2469991147518158, 0.32873672246932983, 0.14577564597129822, 0.0635998472571373, 0.17034102976322174, -0.06607268005609512, -0.05604329705238342, -0.1308034062385559, -0.09540170431137085, -0.23972921073436737, -0.17234258353710175, 0.25673526525497437, 0.30856651067733765, 0.0647057443857193, 0.04424232617020607, 0.7330672740936279, 0.19362570345401764, 0.04972992092370987, -0.05635937303304672, 0.47118085622787476, 0.14832869172096252, 0.12124545872211456, -0.10420405864715576, -0.3040812015533447, -0.5598876476287842, 0.4960918128490448, 0.21751242876052856, -0.15327081084251404, -0.25647497177124023, -0.23842279613018036, -0.053445667028427124, 0.26301106810569763, -0.040407273918390274, -0.02605588361620903, 0.06741460412740707, 0.10263556241989136, -0.09480096399784088, -0.40415140986442566, -0.16267137229442596, 0.3588074743747711, 0.07601287215948105, 0.07151805609464645, -0.19055961072444916, 0.052514247596263885, -0.09081922471523285, -0.4515400230884552, -0.23408664762973785, 0.03685905039310455, 0.07767622172832489, -0.20186610519886017, -0.03463636711239815, 0.16079258918762207, 0.2771879732608795, 0.10808675736188889, 0.26658129692077637, 0.30660101771354675, -0.05643973499536514, 0.25849923491477966, -0.11634663492441177, -0.0741632729768753, 0.0296587236225605, -0.007118534296751022, -0.005370922386646271, 0.17265093326568604, 0.041231732815504074, 0.046200767159461975, -0.10556616634130478, 0.08302721381187439, 0.2325127124786377, -0.1400756537914276, -0.04708230495452881, -0.06990878283977509, 0.2751990854740143, 0.3642914295196533, 0.10836556553840637, 0.14430515468120575, -0.042192332446575165, 0.016406044363975525, 0.3040952980518341, -0.2539140284061432, 0.13246020674705505, -0.12044624239206314, -0.02732720971107483, 0.18272048234939575, -0.05750582367181778, 0.38708674907684326, 0.3265511095523834, 0.1303875595331192, 0.23773933947086334, -0.06295497715473175, -0.0265091210603714, -0.29892784357070923, 0.01772383600473404, 0.2440013885498047, -0.009234599769115448, 0.31669244170188904, 0.11804308742284775, -0.1663392335176468, -0.29636749625205994, -0.41936179995536804, 0.1669657677412033, 0.2838843762874603, 0.022055987268686295, 0.24550046026706696, -0.29266542196273804, 0.19646349549293518, 0.06519010663032532, -0.09234629571437836, -0.15217554569244385, -0.39217957854270935, -0.016286585479974747, 0.669169008731842, -0.039482057094573975, 0.25236576795578003, -0.3066674768924713, -0.02274516224861145, 0.19122588634490967, -0.02685786597430706, -0.03793400526046753, -0.15485931932926178, -0.1800377070903778, -0.08993944525718689, 0.29328855872154236, -0.35713741183280945, 0.18238526582717896, 0.19250324368476868, -0.17277595400810242, -0.4929661750793457, -0.18078209459781647, 0.002166707068681717, -0.3139699101448059, 0.3161468207836151, 0.14860303699970245, 0.16558387875556946, -0.15707428753376007, -0.026840228587388992, -0.08732142299413681, -0.0031313393265008926, -0.05593707412481308, 0.25264307856559753, -0.017110008746385574, -0.1866946518421173, -0.2099345475435257, 0.0841222032904625, -0.1339217573404312, -0.40416523814201355, 0.30094242095947266, -0.30451536178588867, -0.07297098636627197, 0.09176938980817795, -0.005632088053971529, 0.4490486681461334, 0.016279391944408417, -0.022698724642395973, -0.15117713809013367, -0.030507424846291542, 0.3649395704269409, 0.2239817976951599, -0.20951928198337555, 0.0007258765399456024, -0.11423385143280029, -0.33969712257385254, 0.27862459421157837, -0.42844581604003906, -0.22421269118785858, -0.4051952660083771, 0.05560831353068352, -0.24999544024467468, 0.08075711131095886, 0.4011630415916443, -0.19024862349033356, -0.18434569239616394, -0.18462160229682922, -0.12695719301700592, 0.08325601369142532, -0.08957541733980179, 0.10650099813938141, -0.3710117042064667, 0.2627330720424652, 0.2673962116241455, 0.498868465423584, 0.28842610120773315, -0.02742883190512657, -0.04787978529930115, -0.01745191402733326, 0.1629684865474701, -0.084993876516819, -0.2828543186187744, -0.39113715291023254, 0.10428176820278168, -0.5105001330375671, -0.040276750922203064, -0.06751818209886551, -0.018913356587290764, 0.09457045793533325, 0.000367090106010437, -0.14410623908042908, -0.5093679428100586, -0.025793610140681267, -0.00513477623462677, 0.20964020490646362, 0.05095616355538368, 0.399962455034256, 0.112621009349823, 0.08934585750102997, -0.13160814344882965, 0.3289106488227844, -0.046340085566043854, 0.03968235105276108, -0.02829943783581257, 0.15161575376987457, -0.1516740620136261, 0.24043399095535278, -0.24661336839199066, 0.4611184597015381, -0.18701837956905365, -0.10060925781726837, 0.0789080411195755, -0.10475996881723404, 0.7617738842964172, 0.26129472255706787, 0.1803593933582306, 0.2404872179031372, -0.3923034369945526, -0.1124153584241867, -0.22379417717456818, -0.4798318147659302, 0.19044294953346252, 0.29569119215011597, 0.4993787705898285, -0.2686319351196289, -0.048753466457128525, -0.0026956647634506226, 0.09394918382167816, -0.15165215730667114, -0.3616785407066345, 0.08939830958843231, -0.24667030572891235, -0.5159496665000916, 0.1803586184978485, 0.1892169713973999, -0.10534145683050156, 0.10359316319227219, -0.2285420447587967, -0.11873209476470947, -0.2584249675273895, 0.3663311004638672, -0.024405796080827713, 0.017749611288309097, -0.013122942298650742, 0.27435845136642456, 0.13689473271369934, -0.3791845440864563, 0.26222866773605347, 0.3432236611843109, 0.19088466465473175, 0.08888433873653412, 0.34965780377388, -0.14556889235973358, -0.09948123246431351, 0.6703099012374878, -0.24208104610443115, -0.13153377175331116, 0.17190703749656677, 0.19379283487796783, -0.061113882809877396, -0.06891746073961258, 0.2693524658679962, 0.24263212084770203, -0.12441609799861908, -0.12262582778930664, 0.2950456738471985, 0.03839181736111641, -0.2457589954137802, 0.1156172826886177, 0.04198073968291283, -0.09904666990041733, 0.39757615327835083, 0.019792914390563965, 1.0183528661727905, -0.29273927211761475, 0.2523345649242401, 0.009983120486140251, 0.14850744605064392, 0.3657849431037903, -0.19054453074932098, 0.17968623340129852, -0.24830235540866852, -0.3729199767112732, -0.01792755350470543, -0.25506943464279175, 0.03832230344414711, 0.08747248351573944, 0.0036098435521125793, 0.08413343131542206, -0.42846977710723877, 0.04138918220996857, 0.06612029671669006, -0.0003930702805519104, -0.5783007740974426, -0.15558187663555145, 0.09294480830430984, 0.17834238708019257, -0.09132826328277588, 0.30911293625831604, -0.19077807664871216, -0.031025845557451248, -0.1888784021139145, -0.037291597574949265, -0.6020591855049133, 0.20560508966445923, -0.06735572963953018, 0.35615217685699463, -0.13384586572647095, 0.1697855442762375, -0.08852533996105194, -0.03557821735739708, 0.1324373185634613, 0.46395957469940186, -0.2376190721988678, 0.11856870353221893, 0.03074738010764122, -0.125531867146492, -0.11634223163127899, -0.03732563927769661, 0.5538380146026611, 0.17138263583183289, -0.18551698327064514, -0.22251960635185242, 0.16299578547477722, -0.13106092810630798, -0.08439113199710846, -0.02856689691543579, 0.06225131079554558, -0.17708007991313934, -0.2293132245540619, 0.07895439863204956, -0.394419401884079, -0.1642884761095047, 0.09468869864940643, 0.09886957705020905, -0.22554299235343933, 0.06175968423485756, -0.10106642544269562, -0.308692991733551, 0.028459856286644936, 0.5793576836585999, 0.00015978515148162842, -0.3032965660095215, 0.6266489028930664, 0.31851425766944885, -0.3612619638442993, -0.37519869208335876, -0.14361554384231567, -0.010656388476490974, -0.2840620279312134, 0.16353337466716766, -0.18372412025928497, -0.20480424165725708, 0.24173402786254883, -0.06559377908706665, 0.4959203004837036, -0.28383737802505493, -0.20706214010715485, -0.41948041319847107, -0.37675368785858154, 0.10731042921543121, 0.17197760939598083, 0.40625396370887756, -0.060840386897325516, 0.07949794828891754, -0.1906377077102661, 0.02676091156899929, -0.26408493518829346, 0.05104123055934906, -0.32498371601104736, -0.0041179656982421875, 0.1803741455078125, -0.3338366746902466, 0.17062629759311676, -0.09461508691310883, 0.09511812031269073, 0.266959011554718, -0.39676105976104736, -0.19360068440437317, -0.28392207622528076, 0.17274069786071777, 0.18319088220596313, 0.18756675720214844, -0.036208342760801315, -0.4819292426109314, 0.1517738550901413, -0.127548947930336, 0.15635716915130615, 0.44300803542137146, 0.0996926873922348, 0.020197272300720215, 0.4922066032886505, 0.5121808648109436, -0.06153862178325653, -0.1663069725036621, 0.008560985326766968, -0.12275220453739166, 0.22759920358657837, 0.1465129554271698, 0.2697596848011017, 0.06080251932144165, -0.7063053250312805, 0.0952751412987709, -0.03369732201099396, 0.5002015233039856, 0.20838922262191772, -0.12451964616775513, 0.08176393806934357, 0.3356989920139313, 0.46954146027565, 0.09958921372890472, 0.08515480160713196, -0.4312776029109955, 0.07507247477769852, 0.21809975802898407, -0.1949428766965866, -0.2206796258687973, 0.05165281891822815, 0.027115073055028915, -0.009740754961967468, 0.25918158888816833, -0.0777464285492897, 0.07370723783969879, -0.14737102389335632, 0.09249420464038849, 0.3873281180858612, -0.19362054765224457, 0.28834640979766846, 0.4341549873352051, 0.006440389901399612, 0.021056771278381348, 0.4357023239135742, 0.1177089661359787, 0.15134498476982117, 0.3645498752593994, -0.3053932785987854, 0.2817716598510742, -0.16553780436515808, 0.13070470094680786, 0.026897165924310684, -0.34749937057495117, 0.10958665609359741, -0.06994554400444031, 0.37575164437294006, 0.14821255207061768, -0.4365254044532776, 0.04763372614979744, -0.3430118262767792, 0.35079246759414673, -0.09708154201507568, 0.19282080233097076, -0.18154892325401306, -0.14729538559913635, 0.4035937190055847, -0.11540857702493668, -0.22098949551582336, -0.14903123676776886, 0.026910450309515, 0.1895441859960556, 0.25511878728866577, 0.26742327213287354, 0.04733280837535858, -0.3425484299659729, 0.09560147672891617, -0.06160390377044678, 0.0014914870262145996, -0.4026842713356018, -0.036229394376277924, 0.16471590101718903, 0.1490718424320221, -0.04355463758111, 0.124539814889431, 0.11213989555835724, 0.21083208918571472, -0.10667328536510468, 0.3312613070011139, -0.11399294435977936, -0.017727676779031754, -0.3874354362487793, 0.4767230153083801, -0.21760845184326172, 0.13500483334064484, 0.10295085608959198, 0.05916966497898102, -0.2822970151901245, -0.05055881664156914, -0.004426542669534683, -0.14005093276500702, -0.028199611231684685, 0.7831404805183411, 0.23012323677539825, -0.23022675514221191, 0.09802937507629395, 0.25833752751350403, -0.3196389377117157, -0.12276878952980042, 0.5342128276824951, -0.321211040019989, 0.16025879979133606, -0.064612478017807, 0.046947598457336426, -0.1708560734987259, 0.3581724166870117, 0.2508336305618286, 0.10359753668308258, -0.33410584926605225, 0.3696287274360657, -0.4050323963165283, 0.168560191988945, -0.08895166218280792, -0.12676097452640533, 0.10951986908912659, 0.1299389749765396, 0.035642463713884354, -0.10805688798427582, 0.1481337547302246, -0.3699207305908203, -0.24034397304058075, 0.22118300199508667, -0.19358904659748077, -0.0771981030702591, 0.19402989745140076, -0.2089422047138214, -0.048248715698719025, -0.3809467554092407, 0.12352786958217621, 0.014546764083206654, 0.03296515345573425, -0.19842197000980377, -0.33471789956092834, 0.3243952989578247, 0.10128229856491089, 0.19353796541690826, 0.03764864802360535, 0.27978211641311646, -0.004229715093970299, -0.03204600140452385, -0.4217541217803955, -0.10951939225196838, -0.09482932835817337, -0.29874929785728455, 0.09083229303359985, 0.41532909870147705, -0.4375174641609192, -0.07950776815414429, -0.25251054763793945, 0.11782058328390121, -0.20087379217147827, -0.2907449007034302, -0.2061677724123001, 0.13756442070007324, -0.3852887451648712, 0.24447506666183472, 0.20871219038963318, 0.6392320394515991, 0.2174149751663208, 0.45197439193725586, -0.3081021308898926, -0.3786522150039673, 0.6055178642272949, -0.42980241775512695, -0.6699886918067932, 0.03460124507546425, 0.10236045718193054, 0.13859879970550537, -0.1439063549041748, -0.4980720281600952, 0.15303120017051697, 0.14059464633464813, -0.26323848962783813, -0.29286932945251465, 0.30457955598831177, 0.004643728956580162, -0.15607790648937225, -0.08573201298713684, 0.5018907785415649, 0.07631288468837738, -0.1687096506357193, -0.14812827110290527, 0.016917236149311066 ]
https://github.com/huggingface/datasets/issues/3983
Infinitely attempting lock
I ran into this problem on my school server as well? Any update on how we can solve it? Thanks!
I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this?
20
Infinitely attempting lock I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this? I ran into this problem on my school server as well? Any update on how we can solve it? Thanks!
[ -0.3298415541648865, 0.20496174693107605, -0.022750629112124443, 0.15265598893165588, 0.3330145478248596, 0.053330935537815094, 0.43074479699134827, 0.23334263265132904, 0.1402670294046402, 0.009987883269786835, -0.03705335408449173, 0.04263195022940636, -0.10390257090330124, -0.3476852476596832, -0.18421651422977448, 0.1177704930305481, -0.08776820451021194, -0.019821874797344208, -0.27994009852409363, 0.06293156743049622, -0.08515578508377075, 0.11510898917913437, -0.14504951238632202, -0.11712510883808136, -0.7962336540222168, -0.20284047722816467, 0.04330729693174362, 0.155391126871109, -0.09763489663600922, 0.013371159322559834, 0.1585732102394104, 0.3052719831466675, 0.009041855111718178, 0.9299718737602234, -0.00011918733798665926, 0.00044665485620498657, 0.3150668144226074, 0.012630989775061607, -0.5669071674346924, -0.12235952913761139, -0.028846917673945427, -0.29260408878326416, -0.05523013323545456, -0.28116756677627563, 0.15190184116363525, 0.022982284426689148, 0.17648935317993164, -0.25263264775276184, 0.47895270586013794, 0.0963917225599289, 0.12834514677524567, 0.3988611698150635, 0.1800810843706131, -0.34886348247528076, 0.13688421249389648, 0.12999312579631805, -0.25112637877464294, 0.10695628821849823, 0.3477577269077301, -0.26798897981643677, -0.13163438439369202, 0.3083174228668213, -0.28286346793174744, -0.004268834367394447, 0.02762049250304699, -0.050037775188684464, -0.21839863061904907, -0.11809605360031128, 0.16330917179584503, 0.12145975232124329, 0.36295372247695923, -0.18427908420562744, -0.6428249478340149, -0.29552486538887024, 0.14256900548934937, 0.03718002140522003, 0.05433196574449539, 0.06929592788219452, -0.27076905965805054, 0.3191729485988617, -0.40237319469451904, 0.07815825939178467, 0.02066931128501892, 0.10988233983516693, -0.059706758707761765, 0.22667314112186432, 0.04006858170032501, 0.19012051820755005, 0.3340247571468353, -0.100653275847435, 0.32204389572143555, -0.07471860945224762, 0.005602780729532242, 0.061718735843896866, -0.45687246322631836, 0.0881093442440033, 0.09161980450153351, 0.07365847378969193, 0.02051636204123497, 0.059573739767074585, -0.20282799005508423, 0.11516972631216049, 0.15012387931346893, 0.12291273474693298, 0.06128301844000816, 0.13223116099834442, 0.020066596567630768, 0.4104298949241638, 0.3102089762687683, 0.14481289684772491, -0.2280578464269638, 0.20348197221755981, -0.07521161437034607, -0.13014742732048035, 0.3084663450717926, -0.1692630648612976, 0.12100747227668762, 0.08273127675056458, 0.09836002439260483, 0.3246399164199829, -0.19175943732261658, -0.012662055902183056, 0.25047212839126587, 0.21014395356178284, 0.30133891105651855, -0.11200640350580215, 0.3008494973182678, -0.09818823635578156, -0.311404287815094, 0.08382577449083328, -0.2997344136238098, 0.035951755940914154, -0.4847245216369629, 0.14593838155269623, 0.23877884447574615, 0.16671626269817352, 0.10243792086839676, 0.06983646750450134, 0.19910775125026703, -0.11482957005500793, 0.2619994282722473, -0.09330326318740845, -0.08720313757658005, 0.5230209231376648, -0.18232367932796478, 0.13182662427425385, 0.11469517648220062, -0.05636153742671013, 0.10089129954576492, 0.20973125100135803, 0.2752993404865265, -0.16515931487083435, 0.1792679876089096, 0.12042524665594101, -0.2924603223800659, 0.16924071311950684, 0.04632151126861572, -0.03109455481171608, 0.17468851804733276, 0.06313107907772064, 0.1407449096441269, -0.21174144744873047, 0.2318175733089447, 0.13239023089408875, -0.04264485463500023, 0.7179317474365234, -0.14479224383831024, 0.10309584438800812, -0.02142302319407463, 0.006923597306013107, -0.06260671466588974, 0.23938831686973572, -0.29225480556488037, 0.11420604586601257, -0.13347963988780975, 0.09295375645160675, 0.13810141384601593, -0.14195097982883453, -0.7052145600318909, 0.3468116819858551, -0.2805711627006531, -0.18529503047466278, 0.2469991147518158, 0.32873672246932983, 0.14577564597129822, 0.0635998472571373, 0.17034102976322174, -0.06607268005609512, -0.05604329705238342, -0.1308034062385559, -0.09540170431137085, -0.23972921073436737, -0.17234258353710175, 0.25673526525497437, 0.30856651067733765, 0.0647057443857193, 0.04424232617020607, 0.7330672740936279, 0.19362570345401764, 0.04972992092370987, -0.05635937303304672, 0.47118085622787476, 0.14832869172096252, 0.12124545872211456, -0.10420405864715576, -0.3040812015533447, -0.5598876476287842, 0.4960918128490448, 0.21751242876052856, -0.15327081084251404, -0.25647497177124023, -0.23842279613018036, -0.053445667028427124, 0.26301106810569763, -0.040407273918390274, -0.02605588361620903, 0.06741460412740707, 0.10263556241989136, -0.09480096399784088, -0.40415140986442566, -0.16267137229442596, 0.3588074743747711, 0.07601287215948105, 0.07151805609464645, -0.19055961072444916, 0.052514247596263885, -0.09081922471523285, -0.4515400230884552, -0.23408664762973785, 0.03685905039310455, 0.07767622172832489, -0.20186610519886017, -0.03463636711239815, 0.16079258918762207, 0.2771879732608795, 0.10808675736188889, 0.26658129692077637, 0.30660101771354675, -0.05643973499536514, 0.25849923491477966, -0.11634663492441177, -0.0741632729768753, 0.0296587236225605, -0.007118534296751022, -0.005370922386646271, 0.17265093326568604, 0.041231732815504074, 0.046200767159461975, -0.10556616634130478, 0.08302721381187439, 0.2325127124786377, -0.1400756537914276, -0.04708230495452881, -0.06990878283977509, 0.2751990854740143, 0.3642914295196533, 0.10836556553840637, 0.14430515468120575, -0.042192332446575165, 0.016406044363975525, 0.3040952980518341, -0.2539140284061432, 0.13246020674705505, -0.12044624239206314, -0.02732720971107483, 0.18272048234939575, -0.05750582367181778, 0.38708674907684326, 0.3265511095523834, 0.1303875595331192, 0.23773933947086334, -0.06295497715473175, -0.0265091210603714, -0.29892784357070923, 0.01772383600473404, 0.2440013885498047, -0.009234599769115448, 0.31669244170188904, 0.11804308742284775, -0.1663392335176468, -0.29636749625205994, -0.41936179995536804, 0.1669657677412033, 0.2838843762874603, 0.022055987268686295, 0.24550046026706696, -0.29266542196273804, 0.19646349549293518, 0.06519010663032532, -0.09234629571437836, -0.15217554569244385, -0.39217957854270935, -0.016286585479974747, 0.669169008731842, -0.039482057094573975, 0.25236576795578003, -0.3066674768924713, -0.02274516224861145, 0.19122588634490967, -0.02685786597430706, -0.03793400526046753, -0.15485931932926178, -0.1800377070903778, -0.08993944525718689, 0.29328855872154236, -0.35713741183280945, 0.18238526582717896, 0.19250324368476868, -0.17277595400810242, -0.4929661750793457, -0.18078209459781647, 0.002166707068681717, -0.3139699101448059, 0.3161468207836151, 0.14860303699970245, 0.16558387875556946, -0.15707428753376007, -0.026840228587388992, -0.08732142299413681, -0.0031313393265008926, -0.05593707412481308, 0.25264307856559753, -0.017110008746385574, -0.1866946518421173, -0.2099345475435257, 0.0841222032904625, -0.1339217573404312, -0.40416523814201355, 0.30094242095947266, -0.30451536178588867, -0.07297098636627197, 0.09176938980817795, -0.005632088053971529, 0.4490486681461334, 0.016279391944408417, -0.022698724642395973, -0.15117713809013367, -0.030507424846291542, 0.3649395704269409, 0.2239817976951599, -0.20951928198337555, 0.0007258765399456024, -0.11423385143280029, -0.33969712257385254, 0.27862459421157837, -0.42844581604003906, -0.22421269118785858, -0.4051952660083771, 0.05560831353068352, -0.24999544024467468, 0.08075711131095886, 0.4011630415916443, -0.19024862349033356, -0.18434569239616394, -0.18462160229682922, -0.12695719301700592, 0.08325601369142532, -0.08957541733980179, 0.10650099813938141, -0.3710117042064667, 0.2627330720424652, 0.2673962116241455, 0.498868465423584, 0.28842610120773315, -0.02742883190512657, -0.04787978529930115, -0.01745191402733326, 0.1629684865474701, -0.084993876516819, -0.2828543186187744, -0.39113715291023254, 0.10428176820278168, -0.5105001330375671, -0.040276750922203064, -0.06751818209886551, -0.018913356587290764, 0.09457045793533325, 0.000367090106010437, -0.14410623908042908, -0.5093679428100586, -0.025793610140681267, -0.00513477623462677, 0.20964020490646362, 0.05095616355538368, 0.399962455034256, 0.112621009349823, 0.08934585750102997, -0.13160814344882965, 0.3289106488227844, -0.046340085566043854, 0.03968235105276108, -0.02829943783581257, 0.15161575376987457, -0.1516740620136261, 0.24043399095535278, -0.24661336839199066, 0.4611184597015381, -0.18701837956905365, -0.10060925781726837, 0.0789080411195755, -0.10475996881723404, 0.7617738842964172, 0.26129472255706787, 0.1803593933582306, 0.2404872179031372, -0.3923034369945526, -0.1124153584241867, -0.22379417717456818, -0.4798318147659302, 0.19044294953346252, 0.29569119215011597, 0.4993787705898285, -0.2686319351196289, -0.048753466457128525, -0.0026956647634506226, 0.09394918382167816, -0.15165215730667114, -0.3616785407066345, 0.08939830958843231, -0.24667030572891235, -0.5159496665000916, 0.1803586184978485, 0.1892169713973999, -0.10534145683050156, 0.10359316319227219, -0.2285420447587967, -0.11873209476470947, -0.2584249675273895, 0.3663311004638672, -0.024405796080827713, 0.017749611288309097, -0.013122942298650742, 0.27435845136642456, 0.13689473271369934, -0.3791845440864563, 0.26222866773605347, 0.3432236611843109, 0.19088466465473175, 0.08888433873653412, 0.34965780377388, -0.14556889235973358, -0.09948123246431351, 0.6703099012374878, -0.24208104610443115, -0.13153377175331116, 0.17190703749656677, 0.19379283487796783, -0.061113882809877396, -0.06891746073961258, 0.2693524658679962, 0.24263212084770203, -0.12441609799861908, -0.12262582778930664, 0.2950456738471985, 0.03839181736111641, -0.2457589954137802, 0.1156172826886177, 0.04198073968291283, -0.09904666990041733, 0.39757615327835083, 0.019792914390563965, 1.0183528661727905, -0.29273927211761475, 0.2523345649242401, 0.009983120486140251, 0.14850744605064392, 0.3657849431037903, -0.19054453074932098, 0.17968623340129852, -0.24830235540866852, -0.3729199767112732, -0.01792755350470543, -0.25506943464279175, 0.03832230344414711, 0.08747248351573944, 0.0036098435521125793, 0.08413343131542206, -0.42846977710723877, 0.04138918220996857, 0.06612029671669006, -0.0003930702805519104, -0.5783007740974426, -0.15558187663555145, 0.09294480830430984, 0.17834238708019257, -0.09132826328277588, 0.30911293625831604, -0.19077807664871216, -0.031025845557451248, -0.1888784021139145, -0.037291597574949265, -0.6020591855049133, 0.20560508966445923, -0.06735572963953018, 0.35615217685699463, -0.13384586572647095, 0.1697855442762375, -0.08852533996105194, -0.03557821735739708, 0.1324373185634613, 0.46395957469940186, -0.2376190721988678, 0.11856870353221893, 0.03074738010764122, -0.125531867146492, -0.11634223163127899, -0.03732563927769661, 0.5538380146026611, 0.17138263583183289, -0.18551698327064514, -0.22251960635185242, 0.16299578547477722, -0.13106092810630798, -0.08439113199710846, -0.02856689691543579, 0.06225131079554558, -0.17708007991313934, -0.2293132245540619, 0.07895439863204956, -0.394419401884079, -0.1642884761095047, 0.09468869864940643, 0.09886957705020905, -0.22554299235343933, 0.06175968423485756, -0.10106642544269562, -0.308692991733551, 0.028459856286644936, 0.5793576836585999, 0.00015978515148162842, -0.3032965660095215, 0.6266489028930664, 0.31851425766944885, -0.3612619638442993, -0.37519869208335876, -0.14361554384231567, -0.010656388476490974, -0.2840620279312134, 0.16353337466716766, -0.18372412025928497, -0.20480424165725708, 0.24173402786254883, -0.06559377908706665, 0.4959203004837036, -0.28383737802505493, -0.20706214010715485, -0.41948041319847107, -0.37675368785858154, 0.10731042921543121, 0.17197760939598083, 0.40625396370887756, -0.060840386897325516, 0.07949794828891754, -0.1906377077102661, 0.02676091156899929, -0.26408493518829346, 0.05104123055934906, -0.32498371601104736, -0.0041179656982421875, 0.1803741455078125, -0.3338366746902466, 0.17062629759311676, -0.09461508691310883, 0.09511812031269073, 0.266959011554718, -0.39676105976104736, -0.19360068440437317, -0.28392207622528076, 0.17274069786071777, 0.18319088220596313, 0.18756675720214844, -0.036208342760801315, -0.4819292426109314, 0.1517738550901413, -0.127548947930336, 0.15635716915130615, 0.44300803542137146, 0.0996926873922348, 0.020197272300720215, 0.4922066032886505, 0.5121808648109436, -0.06153862178325653, -0.1663069725036621, 0.008560985326766968, -0.12275220453739166, 0.22759920358657837, 0.1465129554271698, 0.2697596848011017, 0.06080251932144165, -0.7063053250312805, 0.0952751412987709, -0.03369732201099396, 0.5002015233039856, 0.20838922262191772, -0.12451964616775513, 0.08176393806934357, 0.3356989920139313, 0.46954146027565, 0.09958921372890472, 0.08515480160713196, -0.4312776029109955, 0.07507247477769852, 0.21809975802898407, -0.1949428766965866, -0.2206796258687973, 0.05165281891822815, 0.027115073055028915, -0.009740754961967468, 0.25918158888816833, -0.0777464285492897, 0.07370723783969879, -0.14737102389335632, 0.09249420464038849, 0.3873281180858612, -0.19362054765224457, 0.28834640979766846, 0.4341549873352051, 0.006440389901399612, 0.021056771278381348, 0.4357023239135742, 0.1177089661359787, 0.15134498476982117, 0.3645498752593994, -0.3053932785987854, 0.2817716598510742, -0.16553780436515808, 0.13070470094680786, 0.026897165924310684, -0.34749937057495117, 0.10958665609359741, -0.06994554400444031, 0.37575164437294006, 0.14821255207061768, -0.4365254044532776, 0.04763372614979744, -0.3430118262767792, 0.35079246759414673, -0.09708154201507568, 0.19282080233097076, -0.18154892325401306, -0.14729538559913635, 0.4035937190055847, -0.11540857702493668, -0.22098949551582336, -0.14903123676776886, 0.026910450309515, 0.1895441859960556, 0.25511878728866577, 0.26742327213287354, 0.04733280837535858, -0.3425484299659729, 0.09560147672891617, -0.06160390377044678, 0.0014914870262145996, -0.4026842713356018, -0.036229394376277924, 0.16471590101718903, 0.1490718424320221, -0.04355463758111, 0.124539814889431, 0.11213989555835724, 0.21083208918571472, -0.10667328536510468, 0.3312613070011139, -0.11399294435977936, -0.017727676779031754, -0.3874354362487793, 0.4767230153083801, -0.21760845184326172, 0.13500483334064484, 0.10295085608959198, 0.05916966497898102, -0.2822970151901245, -0.05055881664156914, -0.004426542669534683, -0.14005093276500702, -0.028199611231684685, 0.7831404805183411, 0.23012323677539825, -0.23022675514221191, 0.09802937507629395, 0.25833752751350403, -0.3196389377117157, -0.12276878952980042, 0.5342128276824951, -0.321211040019989, 0.16025879979133606, -0.064612478017807, 0.046947598457336426, -0.1708560734987259, 0.3581724166870117, 0.2508336305618286, 0.10359753668308258, -0.33410584926605225, 0.3696287274360657, -0.4050323963165283, 0.168560191988945, -0.08895166218280792, -0.12676097452640533, 0.10951986908912659, 0.1299389749765396, 0.035642463713884354, -0.10805688798427582, 0.1481337547302246, -0.3699207305908203, -0.24034397304058075, 0.22118300199508667, -0.19358904659748077, -0.0771981030702591, 0.19402989745140076, -0.2089422047138214, -0.048248715698719025, -0.3809467554092407, 0.12352786958217621, 0.014546764083206654, 0.03296515345573425, -0.19842197000980377, -0.33471789956092834, 0.3243952989578247, 0.10128229856491089, 0.19353796541690826, 0.03764864802360535, 0.27978211641311646, -0.004229715093970299, -0.03204600140452385, -0.4217541217803955, -0.10951939225196838, -0.09482932835817337, -0.29874929785728455, 0.09083229303359985, 0.41532909870147705, -0.4375174641609192, -0.07950776815414429, -0.25251054763793945, 0.11782058328390121, -0.20087379217147827, -0.2907449007034302, -0.2061677724123001, 0.13756442070007324, -0.3852887451648712, 0.24447506666183472, 0.20871219038963318, 0.6392320394515991, 0.2174149751663208, 0.45197439193725586, -0.3081021308898926, -0.3786522150039673, 0.6055178642272949, -0.42980241775512695, -0.6699886918067932, 0.03460124507546425, 0.10236045718193054, 0.13859879970550537, -0.1439063549041748, -0.4980720281600952, 0.15303120017051697, 0.14059464633464813, -0.26323848962783813, -0.29286932945251465, 0.30457955598831177, 0.004643728956580162, -0.15607790648937225, -0.08573201298713684, 0.5018907785415649, 0.07631288468837738, -0.1687096506357193, -0.14812827110290527, 0.016917236149311066 ]
https://github.com/huggingface/datasets/issues/3983
Infinitely attempting lock
Have you tried running the code above to check if FileLock works in your setup ? You may also be interested in checking the https://github.com/tox-dev/filelock repository for issues
I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this?
28
Infinitely attempting lock I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this? Have you tried running the code above to check if FileLock works in your setup ? You may also be interested in checking the https://github.com/tox-dev/filelock repository for issues
[ -0.3298415541648865, 0.20496174693107605, -0.022750629112124443, 0.15265598893165588, 0.3330145478248596, 0.053330935537815094, 0.43074479699134827, 0.23334263265132904, 0.1402670294046402, 0.009987883269786835, -0.03705335408449173, 0.04263195022940636, -0.10390257090330124, -0.3476852476596832, -0.18421651422977448, 0.1177704930305481, -0.08776820451021194, -0.019821874797344208, -0.27994009852409363, 0.06293156743049622, -0.08515578508377075, 0.11510898917913437, -0.14504951238632202, -0.11712510883808136, -0.7962336540222168, -0.20284047722816467, 0.04330729693174362, 0.155391126871109, -0.09763489663600922, 0.013371159322559834, 0.1585732102394104, 0.3052719831466675, 0.009041855111718178, 0.9299718737602234, -0.00011918733798665926, 0.00044665485620498657, 0.3150668144226074, 0.012630989775061607, -0.5669071674346924, -0.12235952913761139, -0.028846917673945427, -0.29260408878326416, -0.05523013323545456, -0.28116756677627563, 0.15190184116363525, 0.022982284426689148, 0.17648935317993164, -0.25263264775276184, 0.47895270586013794, 0.0963917225599289, 0.12834514677524567, 0.3988611698150635, 0.1800810843706131, -0.34886348247528076, 0.13688421249389648, 0.12999312579631805, -0.25112637877464294, 0.10695628821849823, 0.3477577269077301, -0.26798897981643677, -0.13163438439369202, 0.3083174228668213, -0.28286346793174744, -0.004268834367394447, 0.02762049250304699, -0.050037775188684464, -0.21839863061904907, -0.11809605360031128, 0.16330917179584503, 0.12145975232124329, 0.36295372247695923, -0.18427908420562744, -0.6428249478340149, -0.29552486538887024, 0.14256900548934937, 0.03718002140522003, 0.05433196574449539, 0.06929592788219452, -0.27076905965805054, 0.3191729485988617, -0.40237319469451904, 0.07815825939178467, 0.02066931128501892, 0.10988233983516693, -0.059706758707761765, 0.22667314112186432, 0.04006858170032501, 0.19012051820755005, 0.3340247571468353, -0.100653275847435, 0.32204389572143555, -0.07471860945224762, 0.005602780729532242, 0.061718735843896866, -0.45687246322631836, 0.0881093442440033, 0.09161980450153351, 0.07365847378969193, 0.02051636204123497, 0.059573739767074585, -0.20282799005508423, 0.11516972631216049, 0.15012387931346893, 0.12291273474693298, 0.06128301844000816, 0.13223116099834442, 0.020066596567630768, 0.4104298949241638, 0.3102089762687683, 0.14481289684772491, -0.2280578464269638, 0.20348197221755981, -0.07521161437034607, -0.13014742732048035, 0.3084663450717926, -0.1692630648612976, 0.12100747227668762, 0.08273127675056458, 0.09836002439260483, 0.3246399164199829, -0.19175943732261658, -0.012662055902183056, 0.25047212839126587, 0.21014395356178284, 0.30133891105651855, -0.11200640350580215, 0.3008494973182678, -0.09818823635578156, -0.311404287815094, 0.08382577449083328, -0.2997344136238098, 0.035951755940914154, -0.4847245216369629, 0.14593838155269623, 0.23877884447574615, 0.16671626269817352, 0.10243792086839676, 0.06983646750450134, 0.19910775125026703, -0.11482957005500793, 0.2619994282722473, -0.09330326318740845, -0.08720313757658005, 0.5230209231376648, -0.18232367932796478, 0.13182662427425385, 0.11469517648220062, -0.05636153742671013, 0.10089129954576492, 0.20973125100135803, 0.2752993404865265, -0.16515931487083435, 0.1792679876089096, 0.12042524665594101, -0.2924603223800659, 0.16924071311950684, 0.04632151126861572, -0.03109455481171608, 0.17468851804733276, 0.06313107907772064, 0.1407449096441269, -0.21174144744873047, 0.2318175733089447, 0.13239023089408875, -0.04264485463500023, 0.7179317474365234, -0.14479224383831024, 0.10309584438800812, -0.02142302319407463, 0.006923597306013107, -0.06260671466588974, 0.23938831686973572, -0.29225480556488037, 0.11420604586601257, -0.13347963988780975, 0.09295375645160675, 0.13810141384601593, -0.14195097982883453, -0.7052145600318909, 0.3468116819858551, -0.2805711627006531, -0.18529503047466278, 0.2469991147518158, 0.32873672246932983, 0.14577564597129822, 0.0635998472571373, 0.17034102976322174, -0.06607268005609512, -0.05604329705238342, -0.1308034062385559, -0.09540170431137085, -0.23972921073436737, -0.17234258353710175, 0.25673526525497437, 0.30856651067733765, 0.0647057443857193, 0.04424232617020607, 0.7330672740936279, 0.19362570345401764, 0.04972992092370987, -0.05635937303304672, 0.47118085622787476, 0.14832869172096252, 0.12124545872211456, -0.10420405864715576, -0.3040812015533447, -0.5598876476287842, 0.4960918128490448, 0.21751242876052856, -0.15327081084251404, -0.25647497177124023, -0.23842279613018036, -0.053445667028427124, 0.26301106810569763, -0.040407273918390274, -0.02605588361620903, 0.06741460412740707, 0.10263556241989136, -0.09480096399784088, -0.40415140986442566, -0.16267137229442596, 0.3588074743747711, 0.07601287215948105, 0.07151805609464645, -0.19055961072444916, 0.052514247596263885, -0.09081922471523285, -0.4515400230884552, -0.23408664762973785, 0.03685905039310455, 0.07767622172832489, -0.20186610519886017, -0.03463636711239815, 0.16079258918762207, 0.2771879732608795, 0.10808675736188889, 0.26658129692077637, 0.30660101771354675, -0.05643973499536514, 0.25849923491477966, -0.11634663492441177, -0.0741632729768753, 0.0296587236225605, -0.007118534296751022, -0.005370922386646271, 0.17265093326568604, 0.041231732815504074, 0.046200767159461975, -0.10556616634130478, 0.08302721381187439, 0.2325127124786377, -0.1400756537914276, -0.04708230495452881, -0.06990878283977509, 0.2751990854740143, 0.3642914295196533, 0.10836556553840637, 0.14430515468120575, -0.042192332446575165, 0.016406044363975525, 0.3040952980518341, -0.2539140284061432, 0.13246020674705505, -0.12044624239206314, -0.02732720971107483, 0.18272048234939575, -0.05750582367181778, 0.38708674907684326, 0.3265511095523834, 0.1303875595331192, 0.23773933947086334, -0.06295497715473175, -0.0265091210603714, -0.29892784357070923, 0.01772383600473404, 0.2440013885498047, -0.009234599769115448, 0.31669244170188904, 0.11804308742284775, -0.1663392335176468, -0.29636749625205994, -0.41936179995536804, 0.1669657677412033, 0.2838843762874603, 0.022055987268686295, 0.24550046026706696, -0.29266542196273804, 0.19646349549293518, 0.06519010663032532, -0.09234629571437836, -0.15217554569244385, -0.39217957854270935, -0.016286585479974747, 0.669169008731842, -0.039482057094573975, 0.25236576795578003, -0.3066674768924713, -0.02274516224861145, 0.19122588634490967, -0.02685786597430706, -0.03793400526046753, -0.15485931932926178, -0.1800377070903778, -0.08993944525718689, 0.29328855872154236, -0.35713741183280945, 0.18238526582717896, 0.19250324368476868, -0.17277595400810242, -0.4929661750793457, -0.18078209459781647, 0.002166707068681717, -0.3139699101448059, 0.3161468207836151, 0.14860303699970245, 0.16558387875556946, -0.15707428753376007, -0.026840228587388992, -0.08732142299413681, -0.0031313393265008926, -0.05593707412481308, 0.25264307856559753, -0.017110008746385574, -0.1866946518421173, -0.2099345475435257, 0.0841222032904625, -0.1339217573404312, -0.40416523814201355, 0.30094242095947266, -0.30451536178588867, -0.07297098636627197, 0.09176938980817795, -0.005632088053971529, 0.4490486681461334, 0.016279391944408417, -0.022698724642395973, -0.15117713809013367, -0.030507424846291542, 0.3649395704269409, 0.2239817976951599, -0.20951928198337555, 0.0007258765399456024, -0.11423385143280029, -0.33969712257385254, 0.27862459421157837, -0.42844581604003906, -0.22421269118785858, -0.4051952660083771, 0.05560831353068352, -0.24999544024467468, 0.08075711131095886, 0.4011630415916443, -0.19024862349033356, -0.18434569239616394, -0.18462160229682922, -0.12695719301700592, 0.08325601369142532, -0.08957541733980179, 0.10650099813938141, -0.3710117042064667, 0.2627330720424652, 0.2673962116241455, 0.498868465423584, 0.28842610120773315, -0.02742883190512657, -0.04787978529930115, -0.01745191402733326, 0.1629684865474701, -0.084993876516819, -0.2828543186187744, -0.39113715291023254, 0.10428176820278168, -0.5105001330375671, -0.040276750922203064, -0.06751818209886551, -0.018913356587290764, 0.09457045793533325, 0.000367090106010437, -0.14410623908042908, -0.5093679428100586, -0.025793610140681267, -0.00513477623462677, 0.20964020490646362, 0.05095616355538368, 0.399962455034256, 0.112621009349823, 0.08934585750102997, -0.13160814344882965, 0.3289106488227844, -0.046340085566043854, 0.03968235105276108, -0.02829943783581257, 0.15161575376987457, -0.1516740620136261, 0.24043399095535278, -0.24661336839199066, 0.4611184597015381, -0.18701837956905365, -0.10060925781726837, 0.0789080411195755, -0.10475996881723404, 0.7617738842964172, 0.26129472255706787, 0.1803593933582306, 0.2404872179031372, -0.3923034369945526, -0.1124153584241867, -0.22379417717456818, -0.4798318147659302, 0.19044294953346252, 0.29569119215011597, 0.4993787705898285, -0.2686319351196289, -0.048753466457128525, -0.0026956647634506226, 0.09394918382167816, -0.15165215730667114, -0.3616785407066345, 0.08939830958843231, -0.24667030572891235, -0.5159496665000916, 0.1803586184978485, 0.1892169713973999, -0.10534145683050156, 0.10359316319227219, -0.2285420447587967, -0.11873209476470947, -0.2584249675273895, 0.3663311004638672, -0.024405796080827713, 0.017749611288309097, -0.013122942298650742, 0.27435845136642456, 0.13689473271369934, -0.3791845440864563, 0.26222866773605347, 0.3432236611843109, 0.19088466465473175, 0.08888433873653412, 0.34965780377388, -0.14556889235973358, -0.09948123246431351, 0.6703099012374878, -0.24208104610443115, -0.13153377175331116, 0.17190703749656677, 0.19379283487796783, -0.061113882809877396, -0.06891746073961258, 0.2693524658679962, 0.24263212084770203, -0.12441609799861908, -0.12262582778930664, 0.2950456738471985, 0.03839181736111641, -0.2457589954137802, 0.1156172826886177, 0.04198073968291283, -0.09904666990041733, 0.39757615327835083, 0.019792914390563965, 1.0183528661727905, -0.29273927211761475, 0.2523345649242401, 0.009983120486140251, 0.14850744605064392, 0.3657849431037903, -0.19054453074932098, 0.17968623340129852, -0.24830235540866852, -0.3729199767112732, -0.01792755350470543, -0.25506943464279175, 0.03832230344414711, 0.08747248351573944, 0.0036098435521125793, 0.08413343131542206, -0.42846977710723877, 0.04138918220996857, 0.06612029671669006, -0.0003930702805519104, -0.5783007740974426, -0.15558187663555145, 0.09294480830430984, 0.17834238708019257, -0.09132826328277588, 0.30911293625831604, -0.19077807664871216, -0.031025845557451248, -0.1888784021139145, -0.037291597574949265, -0.6020591855049133, 0.20560508966445923, -0.06735572963953018, 0.35615217685699463, -0.13384586572647095, 0.1697855442762375, -0.08852533996105194, -0.03557821735739708, 0.1324373185634613, 0.46395957469940186, -0.2376190721988678, 0.11856870353221893, 0.03074738010764122, -0.125531867146492, -0.11634223163127899, -0.03732563927769661, 0.5538380146026611, 0.17138263583183289, -0.18551698327064514, -0.22251960635185242, 0.16299578547477722, -0.13106092810630798, -0.08439113199710846, -0.02856689691543579, 0.06225131079554558, -0.17708007991313934, -0.2293132245540619, 0.07895439863204956, -0.394419401884079, -0.1642884761095047, 0.09468869864940643, 0.09886957705020905, -0.22554299235343933, 0.06175968423485756, -0.10106642544269562, -0.308692991733551, 0.028459856286644936, 0.5793576836585999, 0.00015978515148162842, -0.3032965660095215, 0.6266489028930664, 0.31851425766944885, -0.3612619638442993, -0.37519869208335876, -0.14361554384231567, -0.010656388476490974, -0.2840620279312134, 0.16353337466716766, -0.18372412025928497, -0.20480424165725708, 0.24173402786254883, -0.06559377908706665, 0.4959203004837036, -0.28383737802505493, -0.20706214010715485, -0.41948041319847107, -0.37675368785858154, 0.10731042921543121, 0.17197760939598083, 0.40625396370887756, -0.060840386897325516, 0.07949794828891754, -0.1906377077102661, 0.02676091156899929, -0.26408493518829346, 0.05104123055934906, -0.32498371601104736, -0.0041179656982421875, 0.1803741455078125, -0.3338366746902466, 0.17062629759311676, -0.09461508691310883, 0.09511812031269073, 0.266959011554718, -0.39676105976104736, -0.19360068440437317, -0.28392207622528076, 0.17274069786071777, 0.18319088220596313, 0.18756675720214844, -0.036208342760801315, -0.4819292426109314, 0.1517738550901413, -0.127548947930336, 0.15635716915130615, 0.44300803542137146, 0.0996926873922348, 0.020197272300720215, 0.4922066032886505, 0.5121808648109436, -0.06153862178325653, -0.1663069725036621, 0.008560985326766968, -0.12275220453739166, 0.22759920358657837, 0.1465129554271698, 0.2697596848011017, 0.06080251932144165, -0.7063053250312805, 0.0952751412987709, -0.03369732201099396, 0.5002015233039856, 0.20838922262191772, -0.12451964616775513, 0.08176393806934357, 0.3356989920139313, 0.46954146027565, 0.09958921372890472, 0.08515480160713196, -0.4312776029109955, 0.07507247477769852, 0.21809975802898407, -0.1949428766965866, -0.2206796258687973, 0.05165281891822815, 0.027115073055028915, -0.009740754961967468, 0.25918158888816833, -0.0777464285492897, 0.07370723783969879, -0.14737102389335632, 0.09249420464038849, 0.3873281180858612, -0.19362054765224457, 0.28834640979766846, 0.4341549873352051, 0.006440389901399612, 0.021056771278381348, 0.4357023239135742, 0.1177089661359787, 0.15134498476982117, 0.3645498752593994, -0.3053932785987854, 0.2817716598510742, -0.16553780436515808, 0.13070470094680786, 0.026897165924310684, -0.34749937057495117, 0.10958665609359741, -0.06994554400444031, 0.37575164437294006, 0.14821255207061768, -0.4365254044532776, 0.04763372614979744, -0.3430118262767792, 0.35079246759414673, -0.09708154201507568, 0.19282080233097076, -0.18154892325401306, -0.14729538559913635, 0.4035937190055847, -0.11540857702493668, -0.22098949551582336, -0.14903123676776886, 0.026910450309515, 0.1895441859960556, 0.25511878728866577, 0.26742327213287354, 0.04733280837535858, -0.3425484299659729, 0.09560147672891617, -0.06160390377044678, 0.0014914870262145996, -0.4026842713356018, -0.036229394376277924, 0.16471590101718903, 0.1490718424320221, -0.04355463758111, 0.124539814889431, 0.11213989555835724, 0.21083208918571472, -0.10667328536510468, 0.3312613070011139, -0.11399294435977936, -0.017727676779031754, -0.3874354362487793, 0.4767230153083801, -0.21760845184326172, 0.13500483334064484, 0.10295085608959198, 0.05916966497898102, -0.2822970151901245, -0.05055881664156914, -0.004426542669534683, -0.14005093276500702, -0.028199611231684685, 0.7831404805183411, 0.23012323677539825, -0.23022675514221191, 0.09802937507629395, 0.25833752751350403, -0.3196389377117157, -0.12276878952980042, 0.5342128276824951, -0.321211040019989, 0.16025879979133606, -0.064612478017807, 0.046947598457336426, -0.1708560734987259, 0.3581724166870117, 0.2508336305618286, 0.10359753668308258, -0.33410584926605225, 0.3696287274360657, -0.4050323963165283, 0.168560191988945, -0.08895166218280792, -0.12676097452640533, 0.10951986908912659, 0.1299389749765396, 0.035642463713884354, -0.10805688798427582, 0.1481337547302246, -0.3699207305908203, -0.24034397304058075, 0.22118300199508667, -0.19358904659748077, -0.0771981030702591, 0.19402989745140076, -0.2089422047138214, -0.048248715698719025, -0.3809467554092407, 0.12352786958217621, 0.014546764083206654, 0.03296515345573425, -0.19842197000980377, -0.33471789956092834, 0.3243952989578247, 0.10128229856491089, 0.19353796541690826, 0.03764864802360535, 0.27978211641311646, -0.004229715093970299, -0.03204600140452385, -0.4217541217803955, -0.10951939225196838, -0.09482932835817337, -0.29874929785728455, 0.09083229303359985, 0.41532909870147705, -0.4375174641609192, -0.07950776815414429, -0.25251054763793945, 0.11782058328390121, -0.20087379217147827, -0.2907449007034302, -0.2061677724123001, 0.13756442070007324, -0.3852887451648712, 0.24447506666183472, 0.20871219038963318, 0.6392320394515991, 0.2174149751663208, 0.45197439193725586, -0.3081021308898926, -0.3786522150039673, 0.6055178642272949, -0.42980241775512695, -0.6699886918067932, 0.03460124507546425, 0.10236045718193054, 0.13859879970550537, -0.1439063549041748, -0.4980720281600952, 0.15303120017051697, 0.14059464633464813, -0.26323848962783813, -0.29286932945251465, 0.30457955598831177, 0.004643728956580162, -0.15607790648937225, -0.08573201298713684, 0.5018907785415649, 0.07631288468837738, -0.1687096506357193, -0.14812827110290527, 0.016917236149311066 ]
https://github.com/huggingface/datasets/issues/3983
Infinitely attempting lock
Can you try using a different cache directory ? Maybe there are permissions issues with the default one. You can do so by passing `cache_dir=...` to load_dataset()
I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this?
27
Infinitely attempting lock I am trying to run one of the examples of the `transformers` repo, which makes use of `datasets`. Important to note is that I am trying to run this via a Databricks notebook, and all the files reside in the Databricks Filesystem (DBFS). ``` %sh python /dbfs/transformers/examples/pytorch/summarization/run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /dbfs/transformers/tmp/tst-summarization \ --per_device_train_batch_size=4 \ --per_device_eval_batch_size=4 \ --overwrite_output_dir \ --predict_with_generate \ --log_level debug \ --cache_dir /dbfs/transformers/cache ``` All goes well until acquiring a lock -- ``` 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:19 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Attempting to acquire lock 140386484514192 on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock 03/21/2022 17:53:20 - DEBUG - datasets.utils.filelock - Lock 140386484514192 not acquired on /dbfs/transformers/cache/_dbfs_transformers_cache_cnn_dailymail_3.0.0_3.0.0_3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234.lock, waiting 0.05 seconds ... ``` and so on. I imagine this has to do with DBFS -- is there a way to tackle this? Can you try using a different cache directory ? Maybe there are permissions issues with the default one. You can do so by passing `cache_dir=...` to load_dataset()
[ -0.3298415541648865, 0.20496174693107605, -0.022750629112124443, 0.15265598893165588, 0.3330145478248596, 0.053330935537815094, 0.43074479699134827, 0.23334263265132904, 0.1402670294046402, 0.009987883269786835, -0.03705335408449173, 0.04263195022940636, -0.10390257090330124, -0.3476852476596832, -0.18421651422977448, 0.1177704930305481, -0.08776820451021194, -0.019821874797344208, -0.27994009852409363, 0.06293156743049622, -0.08515578508377075, 0.11510898917913437, -0.14504951238632202, -0.11712510883808136, -0.7962336540222168, -0.20284047722816467, 0.04330729693174362, 0.155391126871109, -0.09763489663600922, 0.013371159322559834, 0.1585732102394104, 0.3052719831466675, 0.009041855111718178, 0.9299718737602234, -0.00011918733798665926, 0.00044665485620498657, 0.3150668144226074, 0.012630989775061607, -0.5669071674346924, -0.12235952913761139, -0.028846917673945427, -0.29260408878326416, -0.05523013323545456, -0.28116756677627563, 0.15190184116363525, 0.022982284426689148, 0.17648935317993164, -0.25263264775276184, 0.47895270586013794, 0.0963917225599289, 0.12834514677524567, 0.3988611698150635, 0.1800810843706131, -0.34886348247528076, 0.13688421249389648, 0.12999312579631805, -0.25112637877464294, 0.10695628821849823, 0.3477577269077301, -0.26798897981643677, -0.13163438439369202, 0.3083174228668213, -0.28286346793174744, -0.004268834367394447, 0.02762049250304699, -0.050037775188684464, -0.21839863061904907, -0.11809605360031128, 0.16330917179584503, 0.12145975232124329, 0.36295372247695923, -0.18427908420562744, -0.6428249478340149, -0.29552486538887024, 0.14256900548934937, 0.03718002140522003, 0.05433196574449539, 0.06929592788219452, -0.27076905965805054, 0.3191729485988617, -0.40237319469451904, 0.07815825939178467, 0.02066931128501892, 0.10988233983516693, -0.059706758707761765, 0.22667314112186432, 0.04006858170032501, 0.19012051820755005, 0.3340247571468353, -0.100653275847435, 0.32204389572143555, -0.07471860945224762, 0.005602780729532242, 0.061718735843896866, -0.45687246322631836, 0.0881093442440033, 0.09161980450153351, 0.07365847378969193, 0.02051636204123497, 0.059573739767074585, -0.20282799005508423, 0.11516972631216049, 0.15012387931346893, 0.12291273474693298, 0.06128301844000816, 0.13223116099834442, 0.020066596567630768, 0.4104298949241638, 0.3102089762687683, 0.14481289684772491, -0.2280578464269638, 0.20348197221755981, -0.07521161437034607, -0.13014742732048035, 0.3084663450717926, -0.1692630648612976, 0.12100747227668762, 0.08273127675056458, 0.09836002439260483, 0.3246399164199829, -0.19175943732261658, -0.012662055902183056, 0.25047212839126587, 0.21014395356178284, 0.30133891105651855, -0.11200640350580215, 0.3008494973182678, -0.09818823635578156, -0.311404287815094, 0.08382577449083328, -0.2997344136238098, 0.035951755940914154, -0.4847245216369629, 0.14593838155269623, 0.23877884447574615, 0.16671626269817352, 0.10243792086839676, 0.06983646750450134, 0.19910775125026703, -0.11482957005500793, 0.2619994282722473, -0.09330326318740845, -0.08720313757658005, 0.5230209231376648, -0.18232367932796478, 0.13182662427425385, 0.11469517648220062, -0.05636153742671013, 0.10089129954576492, 0.20973125100135803, 0.2752993404865265, -0.16515931487083435, 0.1792679876089096, 0.12042524665594101, -0.2924603223800659, 0.16924071311950684, 0.04632151126861572, -0.03109455481171608, 0.17468851804733276, 0.06313107907772064, 0.1407449096441269, -0.21174144744873047, 0.2318175733089447, 0.13239023089408875, -0.04264485463500023, 0.7179317474365234, -0.14479224383831024, 0.10309584438800812, -0.02142302319407463, 0.006923597306013107, -0.06260671466588974, 0.23938831686973572, -0.29225480556488037, 0.11420604586601257, -0.13347963988780975, 0.09295375645160675, 0.13810141384601593, -0.14195097982883453, -0.7052145600318909, 0.3468116819858551, -0.2805711627006531, -0.18529503047466278, 0.2469991147518158, 0.32873672246932983, 0.14577564597129822, 0.0635998472571373, 0.17034102976322174, -0.06607268005609512, -0.05604329705238342, -0.1308034062385559, -0.09540170431137085, -0.23972921073436737, -0.17234258353710175, 0.25673526525497437, 0.30856651067733765, 0.0647057443857193, 0.04424232617020607, 0.7330672740936279, 0.19362570345401764, 0.04972992092370987, -0.05635937303304672, 0.47118085622787476, 0.14832869172096252, 0.12124545872211456, -0.10420405864715576, -0.3040812015533447, -0.5598876476287842, 0.4960918128490448, 0.21751242876052856, -0.15327081084251404, -0.25647497177124023, -0.23842279613018036, -0.053445667028427124, 0.26301106810569763, -0.040407273918390274, -0.02605588361620903, 0.06741460412740707, 0.10263556241989136, -0.09480096399784088, -0.40415140986442566, -0.16267137229442596, 0.3588074743747711, 0.07601287215948105, 0.07151805609464645, -0.19055961072444916, 0.052514247596263885, -0.09081922471523285, -0.4515400230884552, -0.23408664762973785, 0.03685905039310455, 0.07767622172832489, -0.20186610519886017, -0.03463636711239815, 0.16079258918762207, 0.2771879732608795, 0.10808675736188889, 0.26658129692077637, 0.30660101771354675, -0.05643973499536514, 0.25849923491477966, -0.11634663492441177, -0.0741632729768753, 0.0296587236225605, -0.007118534296751022, -0.005370922386646271, 0.17265093326568604, 0.041231732815504074, 0.046200767159461975, -0.10556616634130478, 0.08302721381187439, 0.2325127124786377, -0.1400756537914276, -0.04708230495452881, -0.06990878283977509, 0.2751990854740143, 0.3642914295196533, 0.10836556553840637, 0.14430515468120575, -0.042192332446575165, 0.016406044363975525, 0.3040952980518341, -0.2539140284061432, 0.13246020674705505, -0.12044624239206314, -0.02732720971107483, 0.18272048234939575, -0.05750582367181778, 0.38708674907684326, 0.3265511095523834, 0.1303875595331192, 0.23773933947086334, -0.06295497715473175, -0.0265091210603714, -0.29892784357070923, 0.01772383600473404, 0.2440013885498047, -0.009234599769115448, 0.31669244170188904, 0.11804308742284775, -0.1663392335176468, -0.29636749625205994, -0.41936179995536804, 0.1669657677412033, 0.2838843762874603, 0.022055987268686295, 0.24550046026706696, -0.29266542196273804, 0.19646349549293518, 0.06519010663032532, -0.09234629571437836, -0.15217554569244385, -0.39217957854270935, -0.016286585479974747, 0.669169008731842, -0.039482057094573975, 0.25236576795578003, -0.3066674768924713, -0.02274516224861145, 0.19122588634490967, -0.02685786597430706, -0.03793400526046753, -0.15485931932926178, -0.1800377070903778, -0.08993944525718689, 0.29328855872154236, -0.35713741183280945, 0.18238526582717896, 0.19250324368476868, -0.17277595400810242, -0.4929661750793457, -0.18078209459781647, 0.002166707068681717, -0.3139699101448059, 0.3161468207836151, 0.14860303699970245, 0.16558387875556946, -0.15707428753376007, -0.026840228587388992, -0.08732142299413681, -0.0031313393265008926, -0.05593707412481308, 0.25264307856559753, -0.017110008746385574, -0.1866946518421173, -0.2099345475435257, 0.0841222032904625, -0.1339217573404312, -0.40416523814201355, 0.30094242095947266, -0.30451536178588867, -0.07297098636627197, 0.09176938980817795, -0.005632088053971529, 0.4490486681461334, 0.016279391944408417, -0.022698724642395973, -0.15117713809013367, -0.030507424846291542, 0.3649395704269409, 0.2239817976951599, -0.20951928198337555, 0.0007258765399456024, -0.11423385143280029, -0.33969712257385254, 0.27862459421157837, -0.42844581604003906, -0.22421269118785858, -0.4051952660083771, 0.05560831353068352, -0.24999544024467468, 0.08075711131095886, 0.4011630415916443, -0.19024862349033356, -0.18434569239616394, -0.18462160229682922, -0.12695719301700592, 0.08325601369142532, -0.08957541733980179, 0.10650099813938141, -0.3710117042064667, 0.2627330720424652, 0.2673962116241455, 0.498868465423584, 0.28842610120773315, -0.02742883190512657, -0.04787978529930115, -0.01745191402733326, 0.1629684865474701, -0.084993876516819, -0.2828543186187744, -0.39113715291023254, 0.10428176820278168, -0.5105001330375671, -0.040276750922203064, -0.06751818209886551, -0.018913356587290764, 0.09457045793533325, 0.000367090106010437, -0.14410623908042908, -0.5093679428100586, -0.025793610140681267, -0.00513477623462677, 0.20964020490646362, 0.05095616355538368, 0.399962455034256, 0.112621009349823, 0.08934585750102997, -0.13160814344882965, 0.3289106488227844, -0.046340085566043854, 0.03968235105276108, -0.02829943783581257, 0.15161575376987457, -0.1516740620136261, 0.24043399095535278, -0.24661336839199066, 0.4611184597015381, -0.18701837956905365, -0.10060925781726837, 0.0789080411195755, -0.10475996881723404, 0.7617738842964172, 0.26129472255706787, 0.1803593933582306, 0.2404872179031372, -0.3923034369945526, -0.1124153584241867, -0.22379417717456818, -0.4798318147659302, 0.19044294953346252, 0.29569119215011597, 0.4993787705898285, -0.2686319351196289, -0.048753466457128525, -0.0026956647634506226, 0.09394918382167816, -0.15165215730667114, -0.3616785407066345, 0.08939830958843231, -0.24667030572891235, -0.5159496665000916, 0.1803586184978485, 0.1892169713973999, -0.10534145683050156, 0.10359316319227219, -0.2285420447587967, -0.11873209476470947, -0.2584249675273895, 0.3663311004638672, -0.024405796080827713, 0.017749611288309097, -0.013122942298650742, 0.27435845136642456, 0.13689473271369934, -0.3791845440864563, 0.26222866773605347, 0.3432236611843109, 0.19088466465473175, 0.08888433873653412, 0.34965780377388, -0.14556889235973358, -0.09948123246431351, 0.6703099012374878, -0.24208104610443115, -0.13153377175331116, 0.17190703749656677, 0.19379283487796783, -0.061113882809877396, -0.06891746073961258, 0.2693524658679962, 0.24263212084770203, -0.12441609799861908, -0.12262582778930664, 0.2950456738471985, 0.03839181736111641, -0.2457589954137802, 0.1156172826886177, 0.04198073968291283, -0.09904666990041733, 0.39757615327835083, 0.019792914390563965, 1.0183528661727905, -0.29273927211761475, 0.2523345649242401, 0.009983120486140251, 0.14850744605064392, 0.3657849431037903, -0.19054453074932098, 0.17968623340129852, -0.24830235540866852, -0.3729199767112732, -0.01792755350470543, -0.25506943464279175, 0.03832230344414711, 0.08747248351573944, 0.0036098435521125793, 0.08413343131542206, -0.42846977710723877, 0.04138918220996857, 0.06612029671669006, -0.0003930702805519104, -0.5783007740974426, -0.15558187663555145, 0.09294480830430984, 0.17834238708019257, -0.09132826328277588, 0.30911293625831604, -0.19077807664871216, -0.031025845557451248, -0.1888784021139145, -0.037291597574949265, -0.6020591855049133, 0.20560508966445923, -0.06735572963953018, 0.35615217685699463, -0.13384586572647095, 0.1697855442762375, -0.08852533996105194, -0.03557821735739708, 0.1324373185634613, 0.46395957469940186, -0.2376190721988678, 0.11856870353221893, 0.03074738010764122, -0.125531867146492, -0.11634223163127899, -0.03732563927769661, 0.5538380146026611, 0.17138263583183289, -0.18551698327064514, -0.22251960635185242, 0.16299578547477722, -0.13106092810630798, -0.08439113199710846, -0.02856689691543579, 0.06225131079554558, -0.17708007991313934, -0.2293132245540619, 0.07895439863204956, -0.394419401884079, -0.1642884761095047, 0.09468869864940643, 0.09886957705020905, -0.22554299235343933, 0.06175968423485756, -0.10106642544269562, -0.308692991733551, 0.028459856286644936, 0.5793576836585999, 0.00015978515148162842, -0.3032965660095215, 0.6266489028930664, 0.31851425766944885, -0.3612619638442993, -0.37519869208335876, -0.14361554384231567, -0.010656388476490974, -0.2840620279312134, 0.16353337466716766, -0.18372412025928497, -0.20480424165725708, 0.24173402786254883, -0.06559377908706665, 0.4959203004837036, -0.28383737802505493, -0.20706214010715485, -0.41948041319847107, -0.37675368785858154, 0.10731042921543121, 0.17197760939598083, 0.40625396370887756, -0.060840386897325516, 0.07949794828891754, -0.1906377077102661, 0.02676091156899929, -0.26408493518829346, 0.05104123055934906, -0.32498371601104736, -0.0041179656982421875, 0.1803741455078125, -0.3338366746902466, 0.17062629759311676, -0.09461508691310883, 0.09511812031269073, 0.266959011554718, -0.39676105976104736, -0.19360068440437317, -0.28392207622528076, 0.17274069786071777, 0.18319088220596313, 0.18756675720214844, -0.036208342760801315, -0.4819292426109314, 0.1517738550901413, -0.127548947930336, 0.15635716915130615, 0.44300803542137146, 0.0996926873922348, 0.020197272300720215, 0.4922066032886505, 0.5121808648109436, -0.06153862178325653, -0.1663069725036621, 0.008560985326766968, -0.12275220453739166, 0.22759920358657837, 0.1465129554271698, 0.2697596848011017, 0.06080251932144165, -0.7063053250312805, 0.0952751412987709, -0.03369732201099396, 0.5002015233039856, 0.20838922262191772, -0.12451964616775513, 0.08176393806934357, 0.3356989920139313, 0.46954146027565, 0.09958921372890472, 0.08515480160713196, -0.4312776029109955, 0.07507247477769852, 0.21809975802898407, -0.1949428766965866, -0.2206796258687973, 0.05165281891822815, 0.027115073055028915, -0.009740754961967468, 0.25918158888816833, -0.0777464285492897, 0.07370723783969879, -0.14737102389335632, 0.09249420464038849, 0.3873281180858612, -0.19362054765224457, 0.28834640979766846, 0.4341549873352051, 0.006440389901399612, 0.021056771278381348, 0.4357023239135742, 0.1177089661359787, 0.15134498476982117, 0.3645498752593994, -0.3053932785987854, 0.2817716598510742, -0.16553780436515808, 0.13070470094680786, 0.026897165924310684, -0.34749937057495117, 0.10958665609359741, -0.06994554400444031, 0.37575164437294006, 0.14821255207061768, -0.4365254044532776, 0.04763372614979744, -0.3430118262767792, 0.35079246759414673, -0.09708154201507568, 0.19282080233097076, -0.18154892325401306, -0.14729538559913635, 0.4035937190055847, -0.11540857702493668, -0.22098949551582336, -0.14903123676776886, 0.026910450309515, 0.1895441859960556, 0.25511878728866577, 0.26742327213287354, 0.04733280837535858, -0.3425484299659729, 0.09560147672891617, -0.06160390377044678, 0.0014914870262145996, -0.4026842713356018, -0.036229394376277924, 0.16471590101718903, 0.1490718424320221, -0.04355463758111, 0.124539814889431, 0.11213989555835724, 0.21083208918571472, -0.10667328536510468, 0.3312613070011139, -0.11399294435977936, -0.017727676779031754, -0.3874354362487793, 0.4767230153083801, -0.21760845184326172, 0.13500483334064484, 0.10295085608959198, 0.05916966497898102, -0.2822970151901245, -0.05055881664156914, -0.004426542669534683, -0.14005093276500702, -0.028199611231684685, 0.7831404805183411, 0.23012323677539825, -0.23022675514221191, 0.09802937507629395, 0.25833752751350403, -0.3196389377117157, -0.12276878952980042, 0.5342128276824951, -0.321211040019989, 0.16025879979133606, -0.064612478017807, 0.046947598457336426, -0.1708560734987259, 0.3581724166870117, 0.2508336305618286, 0.10359753668308258, -0.33410584926605225, 0.3696287274360657, -0.4050323963165283, 0.168560191988945, -0.08895166218280792, -0.12676097452640533, 0.10951986908912659, 0.1299389749765396, 0.035642463713884354, -0.10805688798427582, 0.1481337547302246, -0.3699207305908203, -0.24034397304058075, 0.22118300199508667, -0.19358904659748077, -0.0771981030702591, 0.19402989745140076, -0.2089422047138214, -0.048248715698719025, -0.3809467554092407, 0.12352786958217621, 0.014546764083206654, 0.03296515345573425, -0.19842197000980377, -0.33471789956092834, 0.3243952989578247, 0.10128229856491089, 0.19353796541690826, 0.03764864802360535, 0.27978211641311646, -0.004229715093970299, -0.03204600140452385, -0.4217541217803955, -0.10951939225196838, -0.09482932835817337, -0.29874929785728455, 0.09083229303359985, 0.41532909870147705, -0.4375174641609192, -0.07950776815414429, -0.25251054763793945, 0.11782058328390121, -0.20087379217147827, -0.2907449007034302, -0.2061677724123001, 0.13756442070007324, -0.3852887451648712, 0.24447506666183472, 0.20871219038963318, 0.6392320394515991, 0.2174149751663208, 0.45197439193725586, -0.3081021308898926, -0.3786522150039673, 0.6055178642272949, -0.42980241775512695, -0.6699886918067932, 0.03460124507546425, 0.10236045718193054, 0.13859879970550537, -0.1439063549041748, -0.4980720281600952, 0.15303120017051697, 0.14059464633464813, -0.26323848962783813, -0.29286932945251465, 0.30457955598831177, 0.004643728956580162, -0.15607790648937225, -0.08573201298713684, 0.5018907785415649, 0.07631288468837738, -0.1687096506357193, -0.14812827110290527, 0.016917236149311066 ]
https://github.com/huggingface/datasets/issues/3978
I can't view HFcallback dataset for ASR Space
the dataset viewer is working on this dataset. I imagine the issue is that we would expect to be able to listen to the audio files in the `Please Record Your Voice file` column, right? maybe @lhoestq or @albertvillanova could help <img width="1019" alt="Capture d’écran 2022-03-24 à 17 36 20" src="https://user-images.githubusercontent.com/1676121/159966006-57dcf8f7-b65f-4200-ac8c-66859318a8bb.png">
## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes
51
I can't view HFcallback dataset for ASR Space ## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes the dataset viewer is working on this dataset. I imagine the issue is that we would expect to be able to listen to the audio files in the `Please Record Your Voice file` column, right? maybe @lhoestq or @albertvillanova could help <img width="1019" alt="Capture d’écran 2022-03-24 à 17 36 20" src="https://user-images.githubusercontent.com/1676121/159966006-57dcf8f7-b65f-4200-ac8c-66859318a8bb.png">
[ -0.2916872501373291, -0.14214424788951874, -0.03837377205491066, 0.30713239312171936, 0.0016789622604846954, 0.377657026052475, -0.11794814467430115, 0.2751254737377167, -0.38314664363861084, 0.3440394699573517, -0.1850821077823639, -0.1555975377559662, -0.2009933441877365, -0.08778704702854156, 0.14658622443675995, 0.33812543749809265, -0.08526083081960678, 0.19489051401615143, 0.12290140986442566, -0.16527903079986572, -0.346781462430954, 0.0005135666579008102, -0.3551323413848877, 0.13866549730300903, -0.11431388556957245, -0.14721153676509857, -0.15594762563705444, -0.06014562398195267, -0.23686446249485016, -0.6190578937530518, -0.03537532687187195, 0.11943763494491577, 0.33217915892601013, 0.3191588222980499, -0.00012344334390945733, -0.00953267514705658, 0.22448989748954773, 0.027466239407658577, -0.3563435673713684, 0.008765175938606262, -0.5114047527313232, 0.11793994903564453, -0.06801953911781311, -0.05442951247096062, -0.14017796516418457, 0.02745772898197174, 0.3343566954135895, -0.4557540714740753, 0.0826505571603775, 0.4541826546192169, 0.09080228954553604, 0.06921014934778214, -0.050505198538303375, 0.21098464727401733, 0.18404844403266907, 0.3531142473220825, 0.06336004287004471, -0.07798135280609131, 0.1152389645576477, 0.1275230348110199, -0.43909752368927, 0.19854210317134857, -0.031993865966796875, 0.037943944334983826, 0.06025117263197899, -0.10341475158929825, -0.367629736661911, -0.5624574422836304, 0.24862772226333618, 0.29628944396972656, 0.8365826606750488, -0.2792365550994873, -0.044023096561431885, 0.0857582613825798, -0.08387263864278793, -0.43968191742897034, -0.04391103982925415, 0.43045079708099365, -0.160787433385849, 0.31953877210617065, 0.1560296267271042, -0.16237470507621765, -0.43224403262138367, 0.2988373339176178, -0.022235102951526642, 0.07090459764003754, -0.3488632142543793, 0.12114713340997696, 0.012789960950613022, 0.07335232198238373, 0.44248223304748535, 0.023326192051172256, -0.10656560957431793, 0.360075443983078, -0.27210965752601624, -0.026104163378477097, 0.09112268686294556, 0.27340346574783325, 0.19540926814079285, -0.23447664082050323, 0.03880598768591881, 0.2303290069103241, -0.26040223240852356, 0.18382593989372253, -0.03174798563122749, 0.09058745205402374, 0.22528022527694702, 0.3502037823200226, 0.6207142472267151, 0.10186237096786499, 0.17077943682670593, -0.09900151938199997, -0.20558083057403564, -0.1351667195558548, -0.15169261395931244, -0.39434704184532166, 0.3613753318786621, -0.4040418565273285, -0.3736782670021057, 0.15144775807857513, 0.0707390159368515, -0.2933034598827362, -0.08634386956691742, 0.44442060589790344, 0.164996936917305, -0.12380660325288773, 0.014198355376720428, 0.04491079971194267, 0.06315359473228455, -0.6492155194282532, -0.06384695321321487, -0.08301898837089539, -0.14003224670886993, 0.20545032620429993, 0.20230618119239807, 0.0017469488084316254, -0.1121673583984375, 0.13438190519809723, 0.30347174406051636, 0.17613941431045532, 0.019223889335989952, -0.2539525032043457, -0.035617895424366, 0.26037144660949707, 0.2929380238056183, 0.25442731380462646, -0.021222088485956192, 0.31698882579803467, -0.09247660636901855, 0.24578097462654114, -0.04254854470491409, -0.028223950415849686, 0.003364989534020424, 0.10722031444311142, -0.2537650465965271, -0.02196437120437622, -0.4892820417881012, 0.2051583081483841, -0.02602051943540573, -0.39122700691223145, -0.022731877863407135, 0.13172711431980133, -0.2962189316749573, -0.16788557171821594, -0.25517308712005615, 0.5339460968971252, -0.5944226384162903, 0.16801409423351288, -0.19656187295913696, -0.04175562784075737, 0.24721407890319824, -0.2175559550523758, -0.1094721332192421, 0.02912159636616707, -0.6343236565589905, -0.060760147869586945, 0.6820701956748962, -0.3576027452945709, -0.6072972416877747, 0.12450753152370453, 0.08107808232307434, -0.026743797585368156, 0.18012338876724243, -0.009973698295652866, 0.5641454458236694, -0.07923109829425812, -0.12892863154411316, 0.019179819151759148, 0.10478416830301285, -0.07457473129034042, -0.23030515015125275, -0.10494131594896317, 0.26083439588546753, 0.32389405369758606, 0.2146284431219101, 0.3388623297214508, 0.29211947321891785, -0.2695748507976532, 0.5986286997795105, 0.05928225442767143, 0.3063243627548218, 0.10233099013566971, 0.07148510217666626, 0.0697009265422821, 0.09740470349788666, -0.22284242510795593, -0.11335296183824539, -0.18748661875724792, 0.03187239542603493, 0.10976721346378326, -0.012083619832992554, -0.1772005558013916, -0.1848699450492859, -0.24509836733341217, -0.43165653944015503, 0.10709558427333832, 0.05153633654117584, 0.5161710977554321, -0.09161604195833206, 0.017082400619983673, -0.3136962354183197, 0.5988960862159729, -0.049552250653505325, 0.0871749296784401, 0.014312603510916233, 0.347773939371109, 0.06828601658344269, 0.17381352186203003, 0.3372878432273865, 0.13193613290786743, 0.26738378405570984, -0.059558626264333725, -0.1579134464263916, 0.17705097794532776, -0.02718963287770748, 0.005885303020477295, -0.062022097408771515, 0.12008853256702423, 0.19250735640525818, -0.7026788592338562, 0.3654133379459381, 0.1574627161026001, 0.07982301712036133, -0.16964565217494965, 0.04387642443180084, -0.09183833003044128, 0.13324524462223053, 0.2574356496334076, 0.1457730531692505, 0.16627256572246552, 0.051391176879405975, 0.032691385596990585, -0.18133123219013214, 0.06502915918827057, 0.2539041340351105, -0.3643348813056946, 0.15779432654380798, 0.03424018621444702, -0.2677187919616699, 0.0917135700583458, 0.5683009624481201, -0.0615328885614872, 0.10249147564172745, 0.5207378268241882, -0.3271576762199402, 0.005696404725313187, 0.250731498003006, 0.1482849419116974, 0.11822816729545593, 0.22250482439994812, -0.279481440782547, 0.039268627762794495, 0.0874459445476532, 0.030533332377672195, -0.14381539821624756, 0.21051202714443207, -0.061000049114227295, 0.09037644416093826, 0.2520313560962677, -0.10540693998336792, -0.34500885009765625, -0.3485002815723419, 0.1866256594657898, 0.41989991068840027, -0.2961275279521942, -0.1845773458480835, -0.01658148318529129, -0.3281153738498688, 0.15095137059688568, -0.17487773299217224, 0.21559664607048035, -0.3368273377418518, -0.06074633449316025, -0.05633744224905968, 0.28606781363487244, -0.12956297397613525, -0.5599012970924377, 0.3354698419570923, -0.0628436803817749, 0.13043835759162903, -0.16611164808273315, 0.21961256861686707, -0.401103138923645, 0.08324213325977325, 0.3209812045097351, 0.12214018404483795, 0.3675049841403961, -0.1001935824751854, 0.10601547360420227, -0.3260740041732788, -0.09542162716388702, 0.14309948682785034, -0.09562641382217407, -0.13607756793498993, -0.25909364223480225, 0.21927626430988312, -0.1674114167690277, -0.023740222677588463, -0.13859868049621582, 0.33923575282096863, -0.16078117489814758, 0.20023031532764435, -0.1915917694568634, -0.06743549555540085, 0.2531319558620453, -0.12437816709280014, -0.37610626220703125, -0.5444590449333191, 0.02636440098285675, -0.05408726632595062, 0.2580614984035492, -0.02723817527294159, -0.33111125230789185, 0.11502158641815186, 0.02062825672328472, 0.0903497263789177, -0.15938237309455872, -0.2536050081253052, 0.3554017245769501, -0.3027783930301666, -0.30225878953933716, 0.2597794234752655, -0.059355419129133224, 0.3205859065055847, -0.2193455696105957, -0.5375497341156006, -0.07920876145362854, -0.23227153718471527, 0.2543562948703766, -0.15885718166828156, -0.07910198718309402, 0.16356341540813446, -0.0018748873844742775, 0.19734810292720795, -0.0063992999494075775, -0.27713799476623535, -0.06731338053941727, -0.10021690279245377, 0.07344931364059448, 0.09034846723079681, 0.2162025272846222, -0.28609347343444824, 0.11495014280080795, 0.3674962520599365, 0.17935553193092346, 0.4045572280883789, -0.20146894454956055, 0.20861440896987915, -0.033134594559669495, -0.27610257267951965, 0.2627815008163452, 0.041521646082401276, -0.05159749463200569, 0.17773762345314026, -0.07244066148996353, -0.1278717964887619, -0.013283144682645798, -0.22554993629455566, -0.41562846302986145, -0.05217919871211052, -0.2677205502986908, -0.20524728298187256, 0.24276849627494812, 0.1231950968503952, -0.27132636308670044, 0.2132774293422699, -0.37787026166915894, 0.12302267551422119, 0.48736125230789185, 0.23857471346855164, -0.031895268708467484, -0.33946239948272705, 0.02899807132780552, -0.12218037992715836, 0.31388774514198303, -0.1915757805109024, 0.30451470613479614, -0.30465346574783325, 0.09379125386476517, 0.3540220856666565, 0.18256522715091705, 0.720663845539093, -0.015170937404036522, 0.08683040738105774, 0.09629902243614197, 0.2177545428276062, -0.08190685510635376, 0.15529963374137878, -0.04151300713419914, -0.11748772114515305, -0.2999919056892395, -0.07357259094715118, 0.04787271469831467, 0.13214480876922607, 0.20478488504886627, 0.034358490258455276, -0.03477057069540024, -0.0663585513830185, -0.04300471767783165, -0.15110847353935242, -0.029225392267107964, -0.23895058035850525, -0.1274758279323578, -0.055125605314970016, -0.007189048454165459, 0.05855831131339073, 0.004024749621748924, -0.10885496437549591, 0.38220298290252686, 0.2973257005214691, 0.2891879975795746, 0.018856512382626534, 0.028604019433259964, 0.41640809178352356, -0.11814753711223602, 0.5476628541946411, 0.6138077974319458, -0.11933518946170807, -0.5710573196411133, 0.45892417430877686, -0.14470241963863373, 0.40985745191574097, 0.18106183409690857, -0.08544347435235977, 0.32728469371795654, -0.10664284229278564, 0.09572406113147736, -0.4221111536026001, 0.09362876415252686, 0.24696972966194153, 0.12075208872556686, -0.33280667662620544, -0.4241970479488373, 0.4813687801361084, -0.03591049835085869, -0.17620211839675903, 0.11462143063545227, 0.6317070722579956, -0.10479911416769028, 0.5344866514205933, -0.3997360169887543, 1.019410490989685, 0.060480210930109024, 0.15338321030139923, 0.10530447214841843, -0.3526492714881897, -0.05586545169353485, -0.6347510814666748, -0.025759391486644745, -0.17776501178741455, 0.07979884743690491, -0.1672350913286209, -0.037223491817712784, 0.09204018115997314, 0.12452404946088791, -0.39545589685440063, 0.1418771892786026, -0.02465534582734108, -0.007916443049907684, 0.00933469645678997, 0.07160903513431549, -0.1771627813577652, -0.022369369864463806, -0.12356989085674286, 0.118861123919487, -0.2418508380651474, 0.3161526024341583, 0.18162718415260315, -0.034597963094711304, 0.08471375703811646, -0.044417135417461395, -0.34402257204055786, 0.06366971880197525, -0.08671333640813828, -0.4106321334838867, -0.21590059995651245, -0.07619103789329529, 0.5776904225349426, 0.21474117040634155, 0.3627282381057739, 0.26278233528137207, -0.1246413141489029, 0.01764659211039543, 0.12538564205169678, 0.29998958110809326, -0.09583510458469391, 0.3563137352466583, 0.030120454728603363, -0.08141246438026428, -0.20684194564819336, 0.609570324420929, 0.08292267471551895, -0.09197580814361572, -0.3206574022769928, 0.2174147665500641, 0.2203321009874344, -0.32601550221443176, -0.03573223203420639, -0.1112118810415268, 0.020378965884447098, -0.18066416680812836, 0.07854321599006653, 0.07862913608551025, -0.23339121043682098, 0.0562271848320961, 0.19530422985553741, -0.12888869643211365, 0.07413014769554138, 0.2610568404197693, 0.21913117170333862, 0.06374712288379669, 0.4973224401473999, 0.13028772175312042, -0.24839532375335693, -0.14998996257781982, -0.051510415971279144, 0.11554337292909622, -0.09541217982769012, -0.07433171570301056, 0.21540968120098114, 0.3878117799758911, -0.18239639699459076, -0.02970682457089424, -0.03915546089410782, 0.001082487404346466, -0.37345439195632935, -0.4259035885334015, -0.45660197734832764, 0.004695333540439606, -0.2481694370508194, 0.107221320271492, 0.028890296816825867, -0.12560294568538666, 0.10631804168224335, 0.0707801952958107, -0.24515782296657562, 0.051275186240673065, -0.020611455664038658, 0.02212134376168251, 0.3890455365180969, 0.10471236705780029, 0.14857880771160126, -0.06920424848794937, 0.014818130061030388, 0.27935269474983215, -0.011855633929371834, -0.02757231518626213, 0.20061342418193817, 0.18550047278404236, 0.19597676396369934, -0.006324008107185364, 0.04009920358657837, -0.33218806982040405, -0.1583646684885025, 0.23175042867660522, 0.12867683172225952, 0.23424369096755981, 0.09005820006132126, 0.15811210870742798, 0.047543782740831375, -0.4792344272136688, 0.18596354126930237, 0.24435485899448395, 0.05200272798538208, 0.07499364018440247, 0.13532623648643494, 0.12891393899917603, -0.10825887322425842, -0.07926975190639496, -0.04574432224035263, 0.2622435688972473, 0.13173696398735046, -0.3797205686569214, 0.3713507056236267, -0.4721401333808899, 0.5202054977416992, 0.12296159565448761, 0.1331372857093811, 0.05072706937789917, -0.07753737270832062, -0.13476526737213135, 0.27519896626472473, 0.033648114651441574, -0.3279130458831787, -0.16684643924236298, -0.03232305124402046, -0.06737569719552994, 0.13100053369998932, 0.047203175723552704, -0.06960451602935791, -0.13568980991840363, 0.16714242100715637, 0.03523947671055794, 0.4224967062473297, -0.08768708258867264, -0.02011912129819393, 0.5511724948883057, -0.2130865454673767, 0.09316245466470718, 0.27188971638679504, 0.35259780287742615, -0.17435944080352783, 0.4761697053909302, -0.32026025652885437, 0.049674324691295624, -0.1320001482963562, 0.010753482580184937, 0.219974547624588, -0.6977473497390747, 0.10936535894870758, 0.37232986092567444, -0.13620668649673462, -0.09088893979787827, -0.056430742144584656, 0.28110265731811523, 0.5319433212280273, 0.06325375288724899, 0.07329151034355164, -0.18825982511043549, 0.04458124563097954, 0.26821163296699524, 0.014638464897871017, -0.21494191884994507, -0.17126215994358063, -0.15093635022640228, 0.1267280876636505, -0.3185129165649414, -0.024367794394493103, -0.0024178549647331238, -0.15994243323802948, 0.14179490506649017, 0.06775058805942535, 0.17175006866455078, -0.060471393167972565, 0.057772260159254074, 0.29188716411590576, -0.061204418540000916, 0.09281760454177856, 0.2782668173313141, 0.2981140911579132, 0.2824326157569885, 0.15734903514385223, 0.19708190858364105, 0.1496196687221527, -0.1460607349872589, -0.22724410891532898, 0.07666151970624924, 0.2855295240879059, 0.18284904956817627, 0.015565469861030579, -0.009289519861340523, -0.004393371753394604, 0.01518403459340334, 0.2734377086162567, -0.2141423374414444, 0.17023628950119019, 0.033188946545124054, -0.07878231257200241, -0.11424915492534637, -0.17723365128040314, -0.2514294385910034, -0.466523677110672, -0.45274901390075684, -0.32535722851753235, 0.5831753015518188, -0.26489540934562683, -0.0023754574358463287, -0.18264317512512207, -0.019873641431331635, -0.24413737654685974, -0.09146606922149658, 0.741710364818573, -0.0723869726061821, -0.09707096964120865, -0.320620059967041, -0.4597216844558716, 0.2772250175476074, -0.11643737554550171, -0.2338499128818512, -0.008547069504857063, -0.0775209367275238, 0.2028857171535492, -0.1456747055053711, 0.3552369177341461, -0.0388561487197876, -0.20548677444458008, 0.3046802878379822, -0.04505123943090439, 0.06618740409612656, 0.025482837110757828, 0.2505016326904297, -0.4876551330089569, -0.3365563452243805, 0.31009161472320557, 0.282248854637146, -0.12900811433792114, 0.010001825168728828, 0.2215270698070526, -0.1625884473323822, -0.4670168459415436, 0.064300037920475, -0.09867078810930252, 0.5088022351264954, -0.15958711504936218, 0.20834943652153015, -0.10197445750236511, -0.005704856943339109, -0.15333595871925354, -0.13864180445671082, 0.1375732570886612, 0.41637617349624634, 0.07300350815057755, -0.3186670243740082, -0.08157927542924881, -0.04439562186598778, -0.20228292047977448, -0.1594071388244629, -0.08541031926870346, 0.2016529142856598, -0.20783564448356628, 0.24924322962760925, 0.39776965975761414, -0.3133954405784607, 0.1829511523246765, -0.2140389233827591, -0.33137354254722595, -0.2071743756532669, 0.4530531167984009, -0.39752456545829773, -0.30329179763793945, 0.18838663399219513, 0.39584630727767944, -0.027254752814769745, -0.4276711642742157, -0.38059699535369873, -0.10720914602279663, 0.4674953520298004, -0.024942241609096527, 0.208050936460495, 0.3405704200267792, -0.0350307896733284, 0.20755697786808014, -0.0024289749562740326, 0.26123690605163574, 0.13374684751033783, 0.050983674824237823, -0.13685236871242523, -0.3908817768096924 ]
https://github.com/huggingface/datasets/issues/3978
I can't view HFcallback dataset for ASR Space
The structure of the dataset is not supported. Only the CSV file is parsed and the audio files are ignored. We're working on supporting audio datasets with a specific structure in #3963
## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes
32
I can't view HFcallback dataset for ASR Space ## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes The structure of the dataset is not supported. Only the CSV file is parsed and the audio files are ignored. We're working on supporting audio datasets with a specific structure in #3963
[ -0.3399888277053833, -0.1958574652671814, -0.05082947760820389, 0.2812016010284424, -0.03153752535581589, 0.3359983265399933, -0.13354772329330444, 0.2814232110977173, -0.34380003809928894, 0.3145844042301178, -0.12042275816202164, -0.11392498761415482, -0.25036242604255676, 0.015525506809353828, 0.17612798511981964, 0.30541419982910156, -0.10724092274904251, 0.2273610681295395, 0.15798872709274292, -0.09515789151191711, -0.3737172782421112, 0.04942549765110016, -0.2703893780708313, 0.06973028182983398, -0.004340411629527807, -0.10442199558019638, -0.22993160784244537, -0.0900094136595726, -0.2116854041814804, -0.6428133249282837, 0.026328755542635918, 0.1487983614206314, 0.3796956539154053, 0.28003737330436707, -0.00012261696974746883, 0.013680391013622284, 0.2233397662639618, 0.014533864334225655, -0.31679490208625793, 0.044741272926330566, -0.4784299433231354, 0.05510137975215912, -0.008360844105482101, -0.01043509691953659, -0.18962988257408142, 0.02883186563849449, 0.24570401012897491, -0.3764948546886444, 0.07892544567584991, 0.4076651632785797, 0.11143617331981659, 0.12602278590202332, -0.017379477620124817, 0.08744145929813385, 0.10169786959886551, 0.3417503833770752, 0.052102863788604736, -0.025689207017421722, 0.11671654880046844, 0.16724495589733124, -0.4562681317329407, 0.09609392285346985, -0.016772957518696785, 0.07913275063037872, 0.09551995247602463, -0.2125367373228073, -0.31294506788253784, -0.5615538358688354, 0.2264099419116974, 0.3413156270980835, 0.8157069087028503, -0.2016538381576538, -0.07464971393346786, 0.14526152610778809, -0.10883001238107681, -0.45776939392089844, -0.098262257874012, 0.46970313787460327, -0.06139609217643738, 0.3176857531070709, 0.20729565620422363, -0.20379914343357086, -0.39569568634033203, 0.3083367645740509, 0.054768092930316925, 0.1634593904018402, -0.3672466278076172, 0.1375015676021576, 0.01365620642900467, 0.033847466111183167, 0.43914687633514404, -0.0299997441470623, -0.10845862329006195, 0.29498887062072754, -0.1849655658006668, 0.0011492334306240082, 0.10480937361717224, 0.21401849389076233, 0.2599571645259857, -0.2186867743730545, 0.009642476215958595, 0.31474971771240234, -0.21561361849308014, 0.1796175241470337, -0.09554299712181091, 0.0921643078327179, 0.218673974275589, 0.3432731032371521, 0.6323126554489136, 0.17272524535655975, 0.22526854276657104, -0.053743429481983185, -0.27379941940307617, -0.13202351331710815, -0.30343934893608093, -0.3613593876361847, 0.41078758239746094, -0.3405129909515381, -0.42725870013237, 0.08003804832696915, 0.13979282975196838, -0.24970567226409912, -0.06888841837644577, 0.4852370023727417, 0.20006227493286133, -0.13905933499336243, -0.02302379161119461, 0.05030455440282822, 0.04425651580095291, -0.5887702107429504, -0.05558975785970688, -0.08454495668411255, -0.1827237755060196, 0.18385612964630127, 0.15124103426933289, -0.039613690227270126, -0.12306692451238632, 0.14358267188072205, 0.2752891182899475, 0.21585413813591003, -0.05420782417058945, -0.2010503113269806, 0.0030211135745048523, 0.3269919157028198, 0.2807270586490631, 0.24883340299129486, -0.0047098807990550995, 0.35413628816604614, -0.16375049948692322, 0.23571881651878357, -0.15932568907737732, -0.08945214003324509, -0.12587247788906097, 0.12064669281244278, -0.25774267315864563, -0.019538093358278275, -0.5019347071647644, 0.23701639473438263, -0.028857164084911346, -0.35534989833831787, -0.03191981464624405, 0.15009841322898865, -0.33933785557746887, -0.23634113371372223, -0.23947469890117645, 0.569857120513916, -0.626680850982666, 0.12600168585777283, -0.22200103104114532, -0.05577505752444267, 0.27008703351020813, -0.14483793079853058, -0.12224476784467697, -0.03684893995523453, -0.7095807790756226, -0.17620500922203064, 0.6966351270675659, -0.33730635046958923, -0.5361365079879761, 0.14750774204730988, 0.11206205189228058, -0.05878213047981262, 0.21122875809669495, -0.03752194717526436, 0.5473412275314331, -0.09507562220096588, -0.14034591615200043, 0.04336285591125488, 0.15452328324317932, -0.06118109077215195, -0.22275061905384064, -0.12400925159454346, 0.27337396144866943, 0.23346148431301117, 0.32182615995407104, 0.37694311141967773, 0.28406742215156555, -0.33810314536094666, 0.5731975436210632, 0.07980392873287201, 0.34311535954475403, 0.16658931970596313, 0.1659812182188034, 0.08560274541378021, 0.17159664630889893, -0.2903832793235779, -0.14320668578147888, -0.1028592512011528, 0.09634421765804291, 0.1746971756219864, 0.06575682759284973, -0.1757316291332245, -0.18809297680854797, -0.2594722807407379, -0.4385034143924713, 0.024441741406917572, 0.048545315861701965, 0.5265994668006897, -0.020820118486881256, -0.024692341685295105, -0.3038269877433777, 0.5025758147239685, -0.04654325917363167, 0.1389998346567154, 0.007302960380911827, 0.4462563693523407, 0.06510903686285019, 0.12704020738601685, 0.40558794140815735, 0.18699601292610168, 0.26553478837013245, -0.11759573221206665, -0.09796597063541412, 0.14372879266738892, 0.030240563675761223, -0.10191486775875092, -0.0392615869641304, 0.10042575746774673, 0.17775221168994904, -0.6715276837348938, 0.3424564003944397, 0.2504189610481262, 0.07349710166454315, -0.1489107608795166, 0.039262086153030396, 0.07494475692510605, 0.159014031291008, 0.26315754652023315, 0.19427557289600372, 0.22949495911598206, 0.12747050821781158, 0.021503429859876633, -0.1637433022260666, -0.06343648582696915, 0.246249258518219, -0.39456644654273987, 0.15369828045368195, 0.02384413406252861, -0.28469789028167725, 0.10001039505004883, 0.559563398361206, 0.010597828775644302, 0.09680131077766418, 0.5580289363861084, -0.35172584652900696, 0.06756184995174408, 0.2532397210597992, 0.1655953824520111, 0.06879343092441559, 0.2491007149219513, -0.38096800446510315, 0.0437440350651741, 0.10275498032569885, 0.0025171879678964615, -0.08971940726041794, 0.10795769095420837, -0.010323822498321533, 0.08441406488418579, 0.2784484624862671, -0.07277282327413559, -0.3396933972835541, -0.39063143730163574, 0.10455777496099472, 0.4102881848812103, -0.3530693054199219, -0.15171276032924652, -0.062210068106651306, -0.3684966564178467, 0.08411738276481628, -0.18196387588977814, 0.19832198321819305, -0.35185524821281433, -0.09389755129814148, -0.0492694191634655, 0.26465529203414917, -0.09968796372413635, -0.4657268524169922, 0.2654082179069519, -0.009428750723600388, 0.13770785927772522, -0.1385802924633026, 0.2011018991470337, -0.34396350383758545, 0.09550312161445618, 0.2785818576812744, 0.11277236044406891, 0.3653855621814728, -0.14379090070724487, 0.15471956133842468, -0.3940393924713135, -0.15676644444465637, 0.20576025545597076, -0.11341598629951477, -0.10904313623905182, -0.17486882209777832, 0.21263471245765686, -0.19048276543617249, -0.08652675896883011, -0.09186653792858124, 0.24599745869636536, -0.1655186414718628, 0.30321845412254333, -0.15177282691001892, -0.13463883101940155, 0.19298629462718964, -0.12697625160217285, -0.3392402231693268, -0.568435549736023, 0.021706953644752502, -0.026118535548448563, 0.2567107379436493, 0.004221722483634949, -0.2688611149787903, 0.13287809491157532, 0.060037579387426376, -0.011329947039484978, -0.08899576961994171, -0.23027141392230988, 0.3959753215312958, -0.3629836142063141, -0.36729708313941956, 0.2680688500404358, -0.07750892639160156, 0.23940744996070862, -0.1900825798511505, -0.4131782054901123, -0.054300036281347275, -0.2708626985549927, 0.24436110258102417, -0.13291019201278687, -0.04004968702793121, 0.23138222098350525, 0.02618321031332016, 0.1841268539428711, -0.0629546046257019, -0.2774278223514557, -0.12531784176826477, -0.14512234926223755, -0.013447962701320648, 0.0823560357093811, 0.22349673509597778, -0.24740982055664062, 0.213175430893898, 0.3265719413757324, 0.09339471161365509, 0.4687970280647278, -0.18156269192695618, 0.29182371497154236, -0.056792475283145905, -0.278757780790329, 0.18457546830177307, 0.09377293288707733, -0.023253891617059708, 0.2313706874847412, -0.07972725480794907, -0.11099479347467422, -0.006264731287956238, -0.22346200048923492, -0.4078095555305481, -0.0627814307808876, -0.3234281837940216, -0.241631418466568, 0.2575283646583557, 0.0712849497795105, -0.30858415365219116, 0.24907803535461426, -0.3941102623939514, 0.11777549982070923, 0.6114870309829712, 0.19114238023757935, -0.007730637211352587, -0.4412975609302521, 0.043086614459753036, -0.13898593187332153, 0.3600258231163025, -0.1989956796169281, 0.3190200626850128, -0.2596692144870758, 0.11173885315656662, 0.3049030005931854, 0.175106942653656, 0.6992759704589844, -0.041852787137031555, 0.12304061651229858, 0.12157438695430756, 0.17080360651016235, -0.13038523495197296, 0.0757007747888565, -0.08325609564781189, 0.004423907492309809, -0.2933747470378876, -0.05491840839385986, 0.09458544105291367, 0.042075660079717636, 0.1672184318304062, 0.0330456867814064, -0.05367334187030792, -0.058260537683963776, -0.15784351527690887, -0.16575224697589874, -0.10953954607248306, -0.2532615661621094, -0.11985650658607483, -0.06082041934132576, -0.014178204350173473, -0.01444629393517971, -0.1176777333021164, -0.19763079285621643, 0.34942567348480225, 0.24545173346996307, 0.3303880989551544, 0.02312677539885044, -0.045174092054367065, 0.29883038997650146, -0.12871412932872772, 0.6747408509254456, 0.5579636096954346, -0.1230563223361969, -0.676439642906189, 0.5349211096763611, -0.0953635722398758, 0.4404415786266327, 0.11247961968183517, -0.10439927875995636, 0.29817578196525574, -0.11013780534267426, 0.09642153233289719, -0.4689686596393585, 0.019921505823731422, 0.22112037241458893, 0.03919406235218048, -0.4753320813179016, -0.40653476119041443, 0.38815709948539734, -0.04507074132561684, -0.18347245454788208, 0.10685937106609344, 0.7113676071166992, -0.14750967919826508, 0.5031135082244873, -0.35448530316352844, 0.9482865929603577, -0.045034512877464294, 0.11377249658107758, 0.1375616490840912, -0.3213079571723938, 0.07168439030647278, -0.5290580987930298, 0.01017097570002079, -0.2534007132053375, 0.07043404132127762, -0.17956221103668213, -0.05730128288269043, 0.18090465664863586, 0.15180224180221558, -0.4339156746864319, 0.3074108362197876, -0.08586698770523071, 0.13557946681976318, -0.005161816254258156, 0.11388921737670898, -0.18632635474205017, 0.028984785079956055, -0.22201429307460785, 0.1224866509437561, -0.309418261051178, 0.2841700613498688, 0.09866150468587875, -0.07205435633659363, 0.1385839581489563, -0.08274632692337036, -0.4289283752441406, 0.046186141669750214, -0.062231019139289856, -0.35563910007476807, -0.17319750785827637, -0.09944552183151245, 0.6113002300262451, 0.1587771326303482, 0.3868432641029358, 0.2559297978878021, -0.13043217360973358, -0.04905911162495613, -0.030388101935386658, 0.18434053659439087, -0.1918669193983078, 0.3222614526748657, 0.017632870003581047, -0.03073287568986416, -0.17544078826904297, 0.5443469882011414, 0.10416434705257416, -0.07524854689836502, -0.21872282028198242, 0.18927530944347382, 0.1149732917547226, -0.3357192575931549, -0.043492697179317474, -0.14314307272434235, 0.017688319087028503, -0.19812418520450592, 0.08371596038341522, 0.00744059681892395, -0.20835310220718384, -0.06480810791254044, 0.3065955638885498, -0.10697384923696518, 0.0473506897687912, 0.2375391125679016, 0.2743570804595947, 0.04362194985151291, 0.4214889705181122, 0.14953331649303436, -0.27545034885406494, -0.15172185003757477, -0.044003307819366455, 0.12602394819259644, -0.047002360224723816, 0.014597224071621895, 0.1974615901708603, 0.35921525955200195, -0.08794914186000824, -0.01050775870680809, -0.06276454776525497, 0.0784701555967331, -0.33427900075912476, -0.5091570019721985, -0.34272876381874084, 0.045731015503406525, -0.3757241666316986, 0.034074850380420685, 0.06676261126995087, -0.10464522242546082, 0.1529891937971115, 0.019395042210817337, -0.25443097949028015, 0.07742610573768616, -0.012137405574321747, -0.017199866473674774, 0.3700798451900482, 0.15972784161567688, 0.08635631203651428, -0.09755456447601318, -0.04305040091276169, 0.20218773186206818, -0.04791637882590294, -0.03459518775343895, 0.20381149649620056, 0.17908026278018951, 0.13832592964172363, 0.0703209713101387, 0.029533512890338898, -0.34500402212142944, -0.14870817959308624, 0.19942127168178558, 0.17271360754966736, 0.2470816671848297, 0.022796224802732468, 0.21487805247306824, 0.08615893125534058, -0.4702191650867462, 0.18309050798416138, 0.20928418636322021, -0.01959257572889328, 0.11082512140274048, 0.1758449524641037, 0.11189144104719162, -0.07076167315244675, -0.04999431222677231, -0.03836740553379059, 0.27801278233528137, 0.16004545986652374, -0.3298245370388031, 0.38627180457115173, -0.4814186096191406, 0.5035585761070251, 0.07385837286710739, 0.13185153901576996, 0.11634862422943115, -0.036383818835020065, -0.12431756407022476, 0.34169071912765503, 0.03552116081118584, -0.3782466948032379, -0.1495642066001892, -0.005987802520394325, -0.014182780869305134, 0.11380317807197571, 0.09814661741256714, 0.032893192023038864, -0.2140459269285202, 0.20171377062797546, 0.0700792446732521, 0.4975323975086212, -0.04322953522205353, 0.07967473566532135, 0.5489254593849182, -0.14878231287002563, 0.14993806183338165, 0.28409066796302795, 0.32301566004753113, -0.13850659132003784, 0.42500633001327515, -0.2219117283821106, 0.11979252845048904, 0.0032088719308376312, 0.012653205543756485, 0.2773527204990387, -0.721137523651123, 0.07863937318325043, 0.31404587626457214, -0.07396017014980316, -0.14005780220031738, -0.027710862457752228, 0.3364144265651703, 0.5340933203697205, 0.07823530584573746, 0.052422039210796356, -0.17595165967941284, -0.004732497036457062, 0.27207595109939575, 0.03856797516345978, -0.19034257531166077, -0.13047349452972412, -0.1375233680009842, 0.11144688725471497, -0.23273421823978424, 0.024871960282325745, -0.07311449944972992, -0.08314166963100433, 0.08640104532241821, 0.2482781708240509, 0.1805727779865265, -0.04163462668657303, 0.04826753959059715, 0.2632686495780945, -0.07830846309661865, 0.07895202189683914, 0.17470532655715942, 0.25819072127342224, 0.3081252872943878, 0.20565401017665863, 0.1470097154378891, 0.06609021872282028, -0.17146962881088257, -0.2214258909225464, 0.08801695704460144, 0.3000178039073944, 0.2042388916015625, -0.04475247487425804, -0.030683297663927078, -0.001112181693315506, 0.009397021494805813, 0.3035494089126587, -0.2268306165933609, 0.16261662542819977, 0.032165370881557465, -0.09372899681329727, -0.1059197336435318, -0.12422840297222137, -0.17435665428638458, -0.42774656414985657, -0.42258408665657043, -0.3132924437522888, 0.6229592561721802, -0.25026988983154297, -0.02343175932765007, -0.1826205998659134, -0.01317276805639267, -0.16733196377754211, -0.021805640310049057, 0.7315736413002014, -0.06743685156106949, -0.06261509656906128, -0.3205389976501465, -0.42601490020751953, 0.2606405019760132, -0.11978253722190857, -0.1626890003681183, -0.06432776898145676, -0.07724981009960175, 0.18159762024879456, -0.1257009357213974, 0.28413456678390503, -0.009008239954710007, -0.14765988290309906, 0.23749954998493195, -0.020358575507998466, 0.06953877210617065, -0.05784383416175842, 0.17484572529792786, -0.4800833761692047, -0.31656414270401, 0.22471265494823456, 0.22044190764427185, -0.13914194703102112, -0.05813632160425186, 0.20942488312721252, -0.15714450180530548, -0.45635053515434265, 0.09505324065685272, -0.033940188586711884, 0.5322588682174683, -0.15858814120292664, 0.1947089433670044, -0.13753004372119904, -0.10207255929708481, -0.06536775827407837, 0.02783874422311783, 0.1407206803560257, 0.3025628924369812, -0.0003527076914906502, -0.34003791213035583, -0.12662740051746368, 0.013909164816141129, -0.16140839457511902, -0.07180868089199066, -0.10637802630662918, 0.2687179446220398, -0.23858466744422913, 0.21526727080345154, 0.40838783979415894, -0.25848907232284546, 0.1617826521396637, -0.2320139855146408, -0.270266056060791, -0.23851294815540314, 0.3689095377922058, -0.3682691156864166, -0.3796035349369049, 0.15527062118053436, 0.36276960372924805, 0.018564004451036453, -0.40886208415031433, -0.38858962059020996, -0.10258708149194717, 0.44138139486312866, 0.0018163882195949554, 0.15938982367515564, 0.3703289031982422, -0.046117521822452545, 0.12411421537399292, 0.0009456202387809753, 0.20836150646209717, 0.16164618730545044, 0.004344305023550987, -0.19888222217559814, -0.39633965492248535 ]
https://github.com/huggingface/datasets/issues/3978
I can't view HFcallback dataset for ASR Space
Current error: ``` Error code: StreamingRowsError Exception: LibsndfileError Message: Error opening <File-like object HfFileSystem, datasets/kingabzpro/Urdu-ASR-flags@6a8878cfe3a41343fa86ec8b4254209fe56a0f0d/Please Record Your Voice/0.wav>: Format not recognised. Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/utils.py", line 263, in get_rows_or_raise return get_rows( File "/src/services/worker/src/worker/utils.py", line 204, in decorator return func(*args, **kwargs) File "/src/services/worker/src/worker/utils.py", line 241, in get_rows rows_plus_one = list(itertools.islice(ds, rows_max_number + 1)) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1357, in __iter__ example = _apply_feature_types_on_example( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1051, in _apply_feature_types_on_example decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1902, in decode_example return { File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1903, in <dictcomp> column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1325, in decode_nested_example return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/audio.py", line 187, in decode_example array, sampling_rate = sf.read(f) File "/src/services/worker/.venv/lib/python3.9/site-packages/soundfile.py", line 285, in read with SoundFile(file, 'r', samplerate, channels, File "/src/services/worker/.venv/lib/python3.9/site-packages/soundfile.py", line 658, in __init__ self._file = self._open(file, mode_int, closefd) File "/src/services/worker/.venv/lib/python3.9/site-packages/soundfile.py", line 1216, in _open raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening <File-like object HfFileSystem, datasets/kingabzpro/Urdu-ASR-flags@6a8878cfe3a41343fa86ec8b4254209fe56a0f0d/Please Record Your Voice/0.wav>: Format not recognised. ``` Maybe switch to a discussion here? https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags/discussions. cc @albertvillanova
## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes
169
I can't view HFcallback dataset for ASR Space ## Dataset viewer issue for '*Urdu-ASR-flags*' **Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags)* *I think dataset should show some thing and if you want me to add script, please show me the documentation. I thought this was suppose to be automatic task.* Am I the one who added this dataset ? Yes Current error: ``` Error code: StreamingRowsError Exception: LibsndfileError Message: Error opening <File-like object HfFileSystem, datasets/kingabzpro/Urdu-ASR-flags@6a8878cfe3a41343fa86ec8b4254209fe56a0f0d/Please Record Your Voice/0.wav>: Format not recognised. Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/utils.py", line 263, in get_rows_or_raise return get_rows( File "/src/services/worker/src/worker/utils.py", line 204, in decorator return func(*args, **kwargs) File "/src/services/worker/src/worker/utils.py", line 241, in get_rows rows_plus_one = list(itertools.islice(ds, rows_max_number + 1)) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1357, in __iter__ example = _apply_feature_types_on_example( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1051, in _apply_feature_types_on_example decoded_example = features.decode_example(encoded_example, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1902, in decode_example return { File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1903, in <dictcomp> column_name: decode_nested_example(feature, value, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1325, in decode_nested_example return schema.decode_example(obj, token_per_repo_id=token_per_repo_id) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/audio.py", line 187, in decode_example array, sampling_rate = sf.read(f) File "/src/services/worker/.venv/lib/python3.9/site-packages/soundfile.py", line 285, in read with SoundFile(file, 'r', samplerate, channels, File "/src/services/worker/.venv/lib/python3.9/site-packages/soundfile.py", line 658, in __init__ self._file = self._open(file, mode_int, closefd) File "/src/services/worker/.venv/lib/python3.9/site-packages/soundfile.py", line 1216, in _open raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening <File-like object HfFileSystem, datasets/kingabzpro/Urdu-ASR-flags@6a8878cfe3a41343fa86ec8b4254209fe56a0f0d/Please Record Your Voice/0.wav>: Format not recognised. ``` Maybe switch to a discussion here? https://huggingface.co/datasets/kingabzpro/Urdu-ASR-flags/discussions. cc @albertvillanova
[ -0.3493629992008209, -0.28385215997695923, -0.0034875907003879547, 0.3012472987174988, 0.035953156650066376, 0.2371683120727539, -0.17648769915103912, 0.37999817728996277, -0.5007169246673584, 0.21873793005943298, -0.1066216230392456, -0.10532714426517487, -0.2949771285057068, 0.09007347375154495, 0.14323167502880096, 0.27917057275772095, -0.08403360098600388, 0.2929219603538513, 0.2634769082069397, -0.03898618370294571, -0.35241714119911194, 0.14244860410690308, -0.2663356065750122, 0.10810543596744537, -0.12935714423656464, -0.07755023241043091, -0.21351642906665802, -0.06798318773508072, -0.30263301730155945, -0.7455481290817261, -0.04552225023508072, 0.09132833778858185, 0.4363034665584564, 0.40296193957328796, -0.00012777016672771424, -0.023519083857536316, 0.20371101796627045, -0.031747255474328995, -0.3879458010196686, 0.05696142464876175, -0.324195921421051, -0.11833978444337845, 0.032153621315956116, -0.12986786663532257, -0.16893616318702698, -0.0662902221083641, 0.25572916865348816, -0.4232451915740967, 0.03773918002843857, 0.45544472336769104, 0.09143213927745819, 0.12873558700084686, 0.08982481062412262, 0.20793545246124268, 0.16368113458156586, 0.29742681980133057, 0.0016785431653261185, 0.1316157728433609, 0.10742184519767761, 0.10893812030553818, -0.4032529592514038, 0.2281573861837387, -0.11723758280277252, -0.006121106445789337, 0.1328447312116623, -0.1540175825357437, -0.21785491704940796, -0.4918319880962372, 0.1274372637271881, 0.315181165933609, 0.6440231204032898, -0.38839179277420044, -0.12176696956157684, 0.0701950415968895, -0.15202921628952026, -0.5672845840454102, -0.1665421426296234, 0.531281054019928, -0.12260691821575165, 0.3375302255153656, 0.17416216433048248, -0.16114090383052826, -0.4297441840171814, 0.3324540853500366, 0.016822941601276398, 0.22359918057918549, -0.33457279205322266, 0.07068528234958649, 0.010390158742666245, 0.09564739465713501, 0.48463374376296997, -0.025181207805871964, -0.07472822070121765, 0.24820519983768463, -0.25956737995147705, -0.016252655535936356, 0.13222895562648773, 0.26544082164764404, 0.19930127263069153, -0.1441621333360672, 0.049622826278209686, 0.2088671326637268, -0.2140342742204666, 0.1011415496468544, -0.11510467529296875, 0.2622835338115692, 0.26412078738212585, 0.41575029492378235, 0.4744465947151184, 0.24122735857963562, 0.22912520170211792, -0.07317116856575012, -0.2306741327047348, -0.13152824342250824, -0.2137904018163681, -0.2976159453392029, 0.501082718372345, -0.38301414251327515, -0.40029463171958923, 0.1152891293168068, 0.0826995000243187, -0.18275406956672668, -0.010618220083415508, 0.4831516444683075, 0.08750736713409424, 0.016630832105875015, 0.04114503413438797, 0.017962470650672913, 0.000037185847759246826, -0.49909642338752747, -0.07795831561088562, -0.006376646459102631, -0.18600068986415863, 0.1531635820865631, 0.04329473897814751, -0.19000163674354553, -0.06155458837747574, -0.002962023951113224, 0.27622947096824646, 0.19145572185516357, -0.03452641889452934, -0.28971633315086365, 0.07275789976119995, 0.16163481771945953, 0.1493425965309143, 0.18437781929969788, 0.10299231112003326, 0.24610723555088043, -0.1232096254825592, 0.16544699668884277, -0.09220094233751297, -0.2092428356409073, -0.18458521366119385, 0.1195044070482254, -0.13142989575862885, 0.05516514927148819, -0.32535991072654724, 0.11765258014202118, 0.06518261134624481, -0.3809853196144104, -0.09611260145902634, 0.01847938448190689, -0.18259891867637634, -0.3348850905895233, -0.17473731935024261, 0.509943962097168, -0.6538222432136536, 0.14153970777988434, -0.164838507771492, -0.03803055360913277, 0.43692904710769653, -0.05586272105574608, -0.054832879453897476, -0.10919024795293808, -0.7106718420982361, -0.10628356039524078, 0.6980595588684082, -0.3871610164642334, -0.6281287670135498, 0.3481826186180115, 0.05692443251609802, 0.07300768792629242, 0.31290701031684875, -0.02433803305029869, 0.6177479028701782, -0.18185532093048096, -0.06954269111156464, 0.08677637577056885, 0.17053279280662537, -0.02001616172492504, -0.3777937591075897, -0.15809056162834167, 0.2821720838546753, 0.22738634049892426, 0.24900248646736145, 0.2992202043533325, 0.25199198722839355, -0.20597144961357117, 0.682259202003479, -0.0424373634159565, 0.30753087997436523, 0.1555338203907013, 0.2050432413816452, 0.14802029728889465, 0.11083004623651505, -0.2189916968345642, -0.1255248785018921, -0.13025546073913574, 0.027829188853502274, 0.11502626538276672, -0.11964267492294312, -0.19853352010250092, -0.20522260665893555, -0.20175740122795105, -0.5060902833938599, 0.05563729628920555, 0.08255408704280853, 0.5349605083465576, -0.04088924452662468, 0.005516998469829559, -0.2809114158153534, 0.4682562053203583, -0.1585197150707245, 0.13713587820529938, -0.07114247977733612, 0.38809460401535034, 0.08647354692220688, 0.00788889080286026, 0.3486412465572357, 0.2678563892841339, 0.27868419885635376, -0.09540966898202896, -0.19108793139457703, 0.21025827527046204, -0.006933105643838644, -0.04648783802986145, -0.12962985038757324, 0.12448899447917938, 0.18568171560764313, -0.6370580792427063, 0.32975634932518005, 0.2865310609340668, 0.11881080269813538, -0.11810111254453659, 0.14095929265022278, 0.10358120501041412, 0.15640413761138916, 0.20910966396331787, 0.18197746574878693, 0.216258242726326, 0.06916161626577377, 0.05560222640633583, -0.14117930829524994, -0.14431309700012207, 0.32305315136909485, -0.34825319051742554, 0.0772046148777008, -0.03370097279548645, -0.2057744711637497, 0.0546780526638031, 0.5769422054290771, -0.03653375059366226, 0.1006508618593216, 0.5190377831459045, -0.3820960521697998, -0.02030707150697708, 0.20691455900669098, 0.1632050722837448, 0.20524147152900696, 0.16585542261600494, -0.28238582611083984, 0.08784571290016174, 0.14407506585121155, -0.019381504505872726, 0.043614618480205536, 0.12412123382091522, 0.03211943805217743, 0.19262155890464783, 0.17533069849014282, -0.14205484092235565, -0.2607160210609436, -0.527206540107727, 0.03317302465438843, 0.47914180159568787, -0.34763067960739136, -0.10536996275186539, -0.13352063298225403, -0.27765628695487976, 0.011930872686207294, -0.31882721185684204, 0.1776900738477707, -0.3630688488483429, -0.20071040093898773, -0.012061458081007004, 0.358119934797287, -0.09268298745155334, -0.500952422618866, 0.12109095603227615, 0.004027480259537697, 0.0721762627363205, -0.07813900709152222, 0.10232937335968018, -0.38409537076950073, 0.04970960691571236, 0.29812783002853394, -0.04218617454171181, 0.44661834836006165, -0.18013565242290497, 0.10108451545238495, -0.4801657199859619, -0.14401477575302124, 0.11577009409666061, -0.115362748503685, -0.07210429757833481, -0.027515217661857605, 0.25542452931404114, -0.11820167303085327, -0.05352560803294182, -0.07421033829450607, 0.2951965630054474, -0.11651521176099777, 0.2575385868549347, -0.2582397758960724, -0.07630199939012527, 0.180513396859169, -0.05464259535074234, -0.4336846172809601, -0.5741819143295288, 0.037256576120853424, 0.07011491060256958, 0.29301297664642334, -0.09413537383079529, -0.3218744695186615, 0.23242610692977905, 0.1458439826965332, 0.09283532947301865, -0.105978824198246, -0.15635833144187927, 0.3571608066558838, -0.30284154415130615, -0.2932339608669281, 0.26538917422294617, -0.07467128336429596, 0.22069300711154938, -0.07938624918460846, -0.49833834171295166, -0.2051525115966797, -0.20094448328018188, 0.21892514824867249, -0.1050400584936142, -0.017529333010315895, 0.12615644931793213, 0.07207892835140228, 0.2603509724140167, -0.048063091933727264, -0.25694000720977783, -0.25444933772087097, -0.12598726153373718, 0.1452898234128952, 0.11033615469932556, 0.29793304204940796, -0.15027697384357452, 0.14130693674087524, 0.42367956042289734, 0.08673426508903503, 0.4861694574356079, -0.24175724387168884, 0.1774320751428604, -0.053952135145664215, -0.31821852922439575, 0.2531867027282715, 0.00895780324935913, -0.009626755490899086, 0.20277005434036255, -0.1279638707637787, -0.07952956855297089, 0.03450500965118408, -0.21470226347446442, -0.4393971264362335, -0.0016400031745433807, -0.2267688363790512, -0.2750736176967621, 0.34736356139183044, 0.02780105173587799, -0.26167798042297363, 0.2017565220594406, -0.3742149770259857, 0.05533990636467934, 0.6237825155258179, 0.08948947489261627, 0.050166115164756775, -0.27173349261283875, -0.09104564785957336, -0.21709734201431274, 0.41660821437835693, -0.138240247964859, 0.32846513390541077, -0.18684320151805878, 0.13916730880737305, 0.33592692017555237, 0.11686277389526367, 0.7176370620727539, -0.007394686341285706, -0.02433914691209793, 0.03404086083173752, 0.1423080861568451, -0.1456110030412674, -0.0053130872547626495, -0.04080905020236969, -0.04879942908883095, -0.32885587215423584, -0.046866945922374725, -0.039837684482336044, 0.06078454852104187, 0.211044579744339, 0.135348379611969, -0.04862068220973015, 0.05721648409962654, -0.20274272561073303, -0.324156254529953, -0.164837047457695, -0.31960344314575195, -0.1790381669998169, 0.0542449988424778, 0.022327987477183342, 0.10464879870414734, -0.10090895742177963, -0.09558410197496414, 0.3814142346382141, 0.24638955295085907, 0.47422051429748535, -0.006591402925550938, -0.15417402982711792, 0.2676003575325012, 0.05935586988925934, 0.5515184998512268, 0.547509491443634, -0.028309546411037445, -0.6347804665565491, 0.3945002257823944, -0.03095420077443123, 0.43933364748954773, 0.1764877438545227, -0.15680080652236938, 0.27170392870903015, -0.06235305219888687, 0.18930268287658691, -0.3419515788555145, 0.060523565858602524, 0.3508087992668152, -0.025293540209531784, -0.42306509613990784, -0.5300447344779968, 0.37819743156433105, 0.03679987043142319, -0.1180262565612793, 0.13692253828048706, 0.49775075912475586, -0.13042457401752472, 0.6486164927482605, -0.3024045526981354, 1.1169836521148682, 0.09023621678352356, 0.23554378747940063, 0.33164581656455994, -0.33141034841537476, 0.059958942234516144, -0.5134031772613525, 0.058818329125642776, -0.40067076683044434, -0.002677280455827713, -0.17417673766613007, -0.037614986300468445, 0.17787565290927887, 0.0007436498999595642, -0.5779332518577576, 0.2984353005886078, -0.07532579451799393, -0.008932523429393768, -0.06722265481948853, 0.10759130120277405, -0.20409388840198517, 0.020780954509973526, -0.317303329706192, 0.08017301559448242, -0.4138995409011841, 0.23955631256103516, 0.07240059971809387, -0.1079338788986206, 0.10320134460926056, -0.1032135933637619, -0.3740761876106262, 0.07651140540838242, -0.18534007668495178, -0.1770067811012268, -0.2985098958015442, -0.14262722432613373, 0.40563657879829407, 0.16319039463996887, 0.3093376159667969, 0.19637273252010345, -0.0780554711818695, -0.08654199540615082, 0.14470210671424866, 0.22054700553417206, -0.0947604849934578, 0.27309173345565796, 0.08037575334310532, -0.09438551962375641, -0.18255481123924255, 0.640377402305603, 0.14959974586963654, -0.08559179306030273, -0.17321667075157166, 0.13818848133087158, 0.27593982219696045, -0.3712868094444275, -0.13866497576236725, -0.16227217018604279, -0.0965275764465332, -0.1494259089231491, 0.0509415864944458, 0.07520146667957306, -0.31159868836402893, 0.05214846134185791, 0.2186604142189026, -0.18336063623428345, -0.0038397498428821564, 0.18379352986812592, 0.3006524443626404, 0.10530222952365875, 0.537056028842926, 0.15976868569850922, -0.35286593437194824, -0.11410989612340927, -0.0753905400633812, -0.00862680934369564, -0.15350723266601562, 0.013624432496726513, 0.26067858934402466, 0.32880884408950806, -0.09575405716896057, -0.032624151557683945, 0.038782697170972824, 0.10387374460697174, -0.40165457129478455, -0.5227915644645691, -0.32013338804244995, 0.00046471506357192993, -0.32068562507629395, 0.22331540286540985, 0.020587675273418427, -0.03171065077185631, 0.04005085676908493, 0.03907836973667145, -0.23782280087471008, 0.0807650238275528, 0.05351322889328003, 0.041307274252176285, 0.28670817613601685, 0.1793367862701416, 0.16692963242530823, -0.03488796204328537, -0.016577808186411858, 0.30910658836364746, -0.050923801958560944, -0.0012839008122682571, 0.12153363227844238, 0.20017240941524506, 0.14589393138885498, -0.025624345988035202, -0.03618452325463295, -0.20102712512016296, -0.10862362384796143, 0.1291002780199051, 0.20449389517307281, 0.19140243530273438, 0.029735378921031952, 0.2882692217826843, 0.07519081979990005, -0.5130377411842346, 0.1885397583246231, 0.170895054936409, 0.004627704620361328, 0.19700223207473755, 0.26937878131866455, 0.18523672223091125, -0.11869242042303085, -0.08024816960096359, -0.060867492109537125, 0.18857383728027344, 0.16635039448738098, -0.26137518882751465, 0.40658247470855713, -0.46194928884506226, 0.385366290807724, 0.05725790560245514, 0.14785043895244598, 0.08510307222604752, -0.05762367695569992, -0.20493772625923157, 0.33578354120254517, -0.017286451533436775, -0.3691748380661011, -0.10630520433187485, 0.134662926197052, -0.07626156508922577, 0.09594862163066864, 0.12774664163589478, -0.08744075894355774, -0.1550164818763733, 0.02905789017677307, 0.042336247861385345, 0.3392788767814636, -0.05541355907917023, 0.05523751303553581, 0.5406074523925781, -0.06489447504281998, 0.13434988260269165, 0.2357274889945984, 0.2852906286716461, -0.08796488493680954, 0.4093502163887024, -0.3218604326248169, 0.056535325944423676, -0.21238115429878235, -0.025834064930677414, 0.18691162765026093, -0.6914803385734558, 0.012114506214857101, 0.32839274406433105, -0.11747531592845917, 0.0323321707546711, -0.03826109319925308, 0.32647019624710083, 0.38052693009376526, 0.08131357282400131, -0.0033553875982761383, -0.0368790440261364, 0.004001252353191376, 0.2518571615219116, 0.046561963856220245, -0.08385059237480164, -0.20278103649616241, -0.13681305944919586, 0.15295296907424927, -0.21594928205013275, -0.003957003355026245, 0.11861825734376907, -0.07985010743141174, 0.17333655059337616, 0.22414466738700867, 0.16857552528381348, 0.09501222521066666, -0.060303088277578354, 0.20448918640613556, 0.004419595003128052, 0.22672614455223083, 0.019196325913071632, 0.2676803767681122, 0.34990254044532776, 0.28570273518562317, 0.10297051072120667, 0.04860593378543854, -0.09786371886730194, -0.18280857801437378, 0.10626938194036484, 0.23884235322475433, 0.18612346053123474, 0.07432444393634796, 0.05508025363087654, -0.029559336602687836, 0.022841166704893112, 0.3219000995159149, -0.20534415543079376, 0.04613061994314194, 0.058699507266283035, 0.10212425887584686, -0.08481622487306595, -0.22573840618133545, -0.1687188595533371, -0.3657340109348297, -0.5279079079627991, -0.3090047836303711, 0.6657078266143799, -0.1589634269475937, 0.049752652645111084, -0.21019700169563293, -0.03024083375930786, -0.1125718355178833, 0.03367344290018082, 0.7399811744689941, -0.04923999309539795, -0.1577991098165512, -0.3082244396209717, -0.4635069668292999, 0.35770535469055176, -0.17119555175304413, -0.315395712852478, -0.003464784473180771, -0.040579259395599365, 0.14911025762557983, -0.12321381270885468, 0.21824875473976135, -0.06677781045436859, -0.17749664187431335, 0.29195964336395264, -0.054536473006010056, -0.020018279552459717, 0.04995851591229439, 0.17943525314331055, -0.4426227807998657, -0.3942548334598541, 0.23585805296897888, 0.029837310314178467, -0.11769084632396698, -0.0656399056315422, 0.24427399039268494, -0.06499813497066498, -0.48287829756736755, 0.13833004236221313, 0.0008149966597557068, 0.5144490003585815, -0.1902044713497162, 0.08249545097351074, -0.14245600998401642, 0.03749675303697586, -0.11696001142263412, 0.05810250714421272, 0.1749570220708847, 0.5028207302093506, 0.08083269745111465, -0.375637024641037, -0.19816242158412933, 0.2096131443977356, -0.0876249372959137, -0.2846274673938751, 0.0010820766910910606, 0.2679504156112671, -0.22382307052612305, 0.2129494994878769, 0.3954549729824066, -0.08660256117582321, 0.1298133134841919, -0.06451468914747238, -0.25964462757110596, -0.3339221775531769, 0.46299058198928833, -0.3813430070877075, -0.27199819684028625, 0.26116427779197693, 0.3355019688606262, 0.07914135605096817, -0.3771018087863922, -0.3357042670249939, -0.03407140076160431, 0.4571720063686371, 0.05143095925450325, 0.1575467437505722, 0.3858700394630432, -0.049766894429922104, 0.15303227305412292, 0.0010979175567626953, 0.1220213770866394, 0.06445986032485962, -0.08971378952264786, -0.12366855144500732, -0.34051835536956787 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
Hi ! You can download the `oscar.py` file from this repository at `/datasets/oscar/oscar.py`. Then you can load the dataset by passing the local path to `oscar.py` to `load_dataset`: ```python load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it") ```
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
32
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? Hi ! You can download the `oscar.py` file from this repository at `/datasets/oscar/oscar.py`. Then you can load the dataset by passing the local path to `oscar.py` to `load_dataset`: ```python load_dataset("path/to/oscar.py", "unshuffled_deduplicated_it") ```
[ -0.5248149633407593, 0.040523141622543335, -0.12303261458873749, 0.07250326871871948, 0.30416011810302734, -0.08617375046014786, 0.3794281780719757, 0.3197903633117676, 0.16575418412685394, 0.12612494826316833, -0.03680258244276047, 0.15446390211582184, 0.029570039361715317, 0.2415485829114914, -0.08041774481534958, 0.011800624430179596, 0.021549388766288757, 0.21211330592632294, -0.2936365604400635, 0.1434447318315506, -0.1580766886472702, 0.05971314758062363, -0.1213337704539299, 0.06289366632699966, 0.026416918262839317, -0.09188656508922577, 0.06359519809484482, 0.0924893319606781, -0.2721809148788452, -0.584722638130188, 0.335066020488739, 0.054401058703660965, 0.16396315395832062, 0.33371710777282715, -0.0001032296204357408, 0.16075119376182556, 0.38302290439605713, 0.022593876346945763, -0.44388383626937866, -0.07536187767982483, -0.26004165410995483, -0.16993080079555511, 0.1725027859210968, -0.25095129013061523, -0.12711602449417114, -0.1427581012248993, 0.013318212702870369, -0.1045699268579483, 0.4266459345817566, 0.5949546098709106, 0.30871081352233887, 0.23504742980003357, 0.2211330384016037, -0.22608186304569244, -0.09386838227510452, -0.052860140800476074, -0.04942180588841438, 0.3206467628479004, -0.1541193574666977, -0.05261262506246567, -0.02112741768360138, 0.14842848479747772, -0.03307441994547844, 0.13176921010017395, 0.18531396985054016, -0.13622337579727173, 0.21925851702690125, -0.23437988758087158, 0.27890169620513916, 0.13475880026817322, 0.3769879937171936, -0.2704373598098755, -0.19390399754047394, -0.06638984382152557, 0.01339737605303526, -0.11530476063489914, 0.2672588527202606, -0.022716669365763664, -0.25617730617523193, 0.131523996591568, 0.11522999405860901, -0.04203109070658684, -0.2920095920562744, 0.12141962349414825, -0.24739685654640198, 0.3689368963241577, -0.1031118631362915, 0.13387876749038696, 0.1406414806842804, -0.2849050760269165, 0.37635621428489685, -0.2655765414237976, -0.06308223307132721, -0.024963125586509705, -0.36521056294441223, -0.01724846288561821, 0.061082713305950165, -0.18502819538116455, 0.017942719161510468, 0.2507583200931549, -0.1675678938627243, 0.0015169233083724976, 0.25561314821243286, 0.09414097666740417, 0.18764640390872955, -0.019130637869238853, -0.06842096894979477, 0.20506125688552856, 0.2798161506652832, 0.47944095730781555, -0.004610344767570496, -0.019334465265274048, 0.0774073600769043, -0.34519264101982117, 0.1494957059621811, 0.22174745798110962, 0.567645251750946, -0.04979636147618294, -0.3642166554927826, 0.08154668658971786, -0.07191116362810135, -0.06260807812213898, 0.10490117222070694, 0.5125088095664978, -0.17629531025886536, -0.020824700593948364, 0.08714088797569275, 0.025726713240146637, -0.1565680056810379, 0.03338560089468956, -0.26562216877937317, 0.02180519327521324, -0.017768844962120056, -0.06000291556119919, 0.12332065403461456, -0.21670275926589966, 0.08781304955482483, 0.024798564612865448, 0.03633837401866913, -0.013287167996168137, 0.17873923480510712, -0.22464551031589508, -0.03371722251176834, 0.36837372183799744, 0.07902899384498596, 0.12337412685155869, 0.18658331036567688, -0.3182583451271057, 0.005379058420658112, -0.021535731852054596, -0.1364102065563202, -0.3689146339893341, -0.29776912927627563, 0.35262781381607056, -0.09924278408288956, -0.025575101375579834, 0.12243421375751495, -0.1396498829126358, 0.11180750280618668, -0.18430888652801514, -0.006695009768009186, -0.3930794596672058, -0.014000914990901947, -0.23882554471492767, 0.4356186091899872, 0.5765902400016785, -0.2544671297073364, -0.019434671849012375, -0.10868406295776367, -0.3297649621963501, 0.1433624029159546, -0.0008666142821311951, -0.12094148993492126, 0.19599804282188416, -0.28333717584609985, 0.014080338180065155, 0.49333417415618896, -0.2732447683811188, -0.474529504776001, 0.27039727568626404, -0.07740749418735504, -0.06755497306585312, 0.14885017275810242, 0.02512665092945099, 0.17179274559020996, 0.1925433874130249, 0.21845458447933197, 0.09758360683917999, -0.13200554251670837, 0.013885846361517906, -0.11037731170654297, -0.28114446997642517, 0.08656047284603119, 0.2148655652999878, 0.09649267792701721, 0.037033047527074814, 0.2573038935661316, -0.00184605922549963, 0.2437434196472168, -0.07023587822914124, 0.0848950520157814, 0.11082535982131958, 0.24028468132019043, 0.22898128628730774, -0.08909215033054352, -0.09850538522005081, -0.36183515191078186, 0.16673895716667175, 0.0708521157503128, 0.27039164304733276, -0.2953435778617859, -0.006860436871647835, -0.33240023255348206, 0.022502923384308815, -0.31728580594062805, -0.23565977811813354, 0.32028260827064514, 0.31726884841918945, 0.08730931580066681, 0.1541065126657486, -0.16394288837909698, 0.3611122965812683, -0.08989561349153519, 0.1543644368648529, -0.3304591774940491, 0.3856510519981384, -0.3553180992603302, -0.19742940366268158, 0.16650941967964172, -0.045564793050289154, 0.28143274784088135, -0.1167604923248291, -0.18327581882476807, 0.2978259325027466, -0.10574948042631149, 0.1631053388118744, -0.06319212913513184, -0.08459518849849701, 0.024938391521573067, -0.24076853692531586, 0.10892955958843231, 0.16193987429141998, 0.2229107916355133, -0.016544997692108154, 0.0845857635140419, 0.3176095485687256, -0.044892970472574234, 0.2343650460243225, 0.1467713564634323, 0.13887624442577362, 0.4060240089893341, -0.01164884865283966, -0.05899541825056076, 0.022523418068885803, 0.05436503514647484, -0.15736283361911774, 0.24382849037647247, -0.2047213912010193, -0.15477782487869263, 0.10122086852788925, 0.2893354296684265, -0.032520271837711334, 0.11590393632650375, -0.035967543721199036, -0.1878465712070465, -0.021985270082950592, 0.11583959311246872, 0.3814058303833008, 0.45932918787002563, 0.09408609569072723, -0.13134706020355225, 0.2244415432214737, 0.011680632829666138, -0.09990620613098145, 0.3175111413002014, -0.025184661149978638, 0.024713071063160896, 0.22168231010437012, -0.008690577000379562, -0.0564422644674778, -0.3081168532371521, -0.42793428897857666, -0.2288101613521576, 0.38446250557899475, -0.2976519465446472, 0.1923934668302536, -0.10809343308210373, -0.40973860025405884, -0.12331992387771606, 0.16382671892642975, -0.17467229068279266, -0.27843406796455383, -0.2045120894908905, 0.2484969198703766, -0.05882059782743454, 0.19519250094890594, -0.3050101399421692, 0.005367591977119446, 0.20326417684555054, -0.06821650266647339, -0.05734206736087799, -0.11062809079885483, -0.06929831951856613, 0.1607012301683426, 0.16190719604492188, 0.08984002470970154, 0.4566486179828644, -0.1733340471982956, 0.008640380576252937, -0.2272704839706421, -0.180241197347641, 0.02042831853032112, 0.07066190242767334, 0.09588895738124847, 0.4718349277973175, 0.40233659744262695, 0.12964175641536713, -0.41608598828315735, 0.33165156841278076, -0.11554189026355743, -0.09533380717039108, 0.04980969429016113, -0.10124868154525757, 0.05745996907353401, -0.017537793144583702, -0.47790756821632385, -0.4305971562862396, -0.417904794216156, 0.04958360642194748, 0.09444697201251984, 0.16381670534610748, 0.15722064673900604, 0.0943632423877716, 0.24086521565914154, -0.029409391805529594, 0.049974918365478516, -0.19508130848407745, -0.2628127634525299, 0.20030711591243744, -0.1548718810081482, -0.38773366808891296, 0.10665526986122131, -0.022867638617753983, 0.19818280637264252, -0.24593068659305573, -0.5698670744895935, -0.3658425807952881, -0.1819877028465271, 0.3429219722747803, -0.06426743417978287, -0.09800422191619873, 0.2897352874279022, 0.10942770540714264, -0.15102149546146393, -0.0023643821477890015, -0.36758020520210266, -0.035495735704898834, 0.033393144607543945, 0.0989801362156868, -0.07440481334924698, 0.5484480261802673, -0.14929209649562836, 0.4120691418647766, 0.2601547837257385, -0.024745773524045944, 0.2816317081451416, -0.19542762637138367, 0.2761998176574707, -0.10086288303136826, -0.4945629835128784, 0.11307155340909958, 0.04321661591529846, 0.022199183702468872, 0.07547593116760254, -0.1758335530757904, -0.010104279965162277, -0.29609423875808716, -0.005741080269217491, -0.19989478588104248, -0.21228250861167908, 0.023286091163754463, -0.17517401278018951, 0.029130931943655014, -0.07884710282087326, 0.011278778314590454, -0.2012251317501068, 0.034038688987493515, -0.07094015181064606, 0.3898422122001648, -0.09143074601888657, -0.041496921330690384, -0.3715040385723114, -0.07634564489126205, -0.4782915711402893, 0.23800428211688995, -0.01079943310469389, 0.3943248689174652, -0.2544143795967102, -0.056836627423763275, 0.05750706419348717, -0.15795692801475525, 0.27253299951553345, -0.18893681466579437, 0.07362455129623413, 0.25908249616622925, 0.11488988995552063, -0.23266500234603882, -0.09543201327323914, -0.1666531264781952, 0.21304595470428467, 0.2680742144584656, 0.1405576467514038, -0.2034698724746704, -0.09085135161876678, 0.2623945474624634, 0.05321227386593819, -0.2037949115037918, 0.026601672172546387, -0.2134416252374649, -0.4743490219116211, -0.28185147047042847, -0.02044013887643814, -0.19123739004135132, 0.13356685638427734, 0.054986581206321716, 0.028545182198286057, -0.02058611623942852, -0.027279898524284363, -0.04097677767276764, 0.20942392945289612, -0.06918802857398987, -0.13099405169487, 0.33587828278541565, 0.1157035306096077, 0.14828768372535706, 0.4378654360771179, 0.6769539713859558, -0.06942479312419891, -0.6899101734161377, -0.08096132427453995, 0.05186156928539276, -0.04518838971853256, 0.060945361852645874, -0.12791433930397034, 0.08608309179544449, 0.0432819239795208, 0.369365394115448, -0.1242099180817604, 0.13195709884166718, 0.3456195890903473, 0.0634787529706955, -0.47484567761421204, -0.4151923656463623, -0.027486585080623627, -0.22988884150981903, -0.08218257129192352, -0.03614019602537155, 0.10754436999559402, -0.19860099256038666, 0.3165297508239746, -0.324916273355484, 0.7054336071014404, 0.23484815657138824, -0.07464157044887543, 0.3237813115119934, -0.1675439476966858, 0.5478764176368713, -0.204676553606987, 0.04348379373550415, -0.2822026312351227, -0.13224294781684875, 0.04542713612318039, -0.13459350168704987, 0.3515821397304535, -0.2074664682149887, -0.32456880807876587, 0.2710912227630615, -0.051980067044496536, 0.06324523687362671, -0.04643743485212326, 0.22152206301689148, -0.25270164012908936, 0.07965713739395142, -0.26683786511421204, 0.31411391496658325, -0.11928783357143402, 0.3367063105106354, -0.049405716359615326, -0.21087081730365753, 0.04482939466834068, -0.39890432357788086, -0.18250590562820435, 0.12532156705856323, -0.3104631006717682, 0.13671359419822693, -0.028299149125814438, -0.18662846088409424, 0.016066230833530426, 0.03173941373825073, 0.2939416766166687, -0.10412974655628204, -0.07512735575437546, 0.16903477907180786, -0.07051654905080795, 0.012376765720546246, -0.05345279350876808, -0.02535068243741989, 0.16553659737110138, -0.20674949884414673, -0.37196776270866394, 0.2592321038246155, 0.03252951800823212, -0.3715866804122925, 0.2193281054496765, 0.11767765879631042, 0.12852130830287933, -0.3902324438095093, 0.16905826330184937, -0.24468758702278137, -0.061654232442379, -0.2952107787132263, 0.2518807053565979, 0.003918066620826721, -0.07925836741924286, 0.1976795196533203, 0.02413090132176876, -0.16659428179264069, -0.09168544411659241, 0.4564933776855469, -0.0018758662045001984, 0.036348529160022736, 0.46829551458358765, -0.022668736055493355, -0.2191784381866455, -0.3535013198852539, 0.036690376698970795, -0.10183554887771606, -0.36004289984703064, 0.0033633513376116753, -0.07206699997186661, 0.12979911267757416, 0.07709703594446182, 0.009586744010448456, 0.13004373013973236, 0.1391843557357788, 0.009385205805301666, -0.5026987195014954, -0.281522661447525, -0.11566789448261261, 0.02741304598748684, 0.20440642535686493, 0.10248570889234543, 0.26554808020591736, -0.08447431772947311, -0.04026050865650177, -0.43074676394462585, 0.07768478244543076, -0.3320925831794739, 0.13614238798618317, 0.23702400922775269, -0.18191343545913696, 0.16685888171195984, -0.08885900676250458, 0.30694693326950073, -0.09228302538394928, -0.2236817479133606, -0.3488816022872925, 0.05398629978299141, 0.06806686520576477, -0.002536127343773842, -0.3869313895702362, -0.2209596186876297, -0.13488373160362244, -0.09172537922859192, 0.06153876706957817, 0.12691131234169006, 0.07088462263345718, -0.1991495043039322, 0.08131840825080872, -0.04681245610117912, 0.06579265743494034, -0.06458502262830734, 0.28256869316101074, -0.1248583048582077, 0.3672303557395935, -0.10082460939884186, 0.3301144540309906, -0.2541356086730957, -0.09607874602079391, -0.0724378377199173, 0.18560457229614258, -0.023695282638072968, 0.06271940469741821, 0.4409429728984833, -0.1987115889787674, -0.16622811555862427, -0.0558096207678318, 0.2913615107536316, 0.4696551263332367, -0.3229622542858124, 0.1365726739168167, 0.04498291015625, 0.35542094707489014, -0.19389335811138153, -0.015036260709166527, 0.16635127365589142, 0.003953883890062571, 0.1663465052843094, 0.010652832686901093, -0.11713787913322449, -0.168007493019104, 0.05114069953560829, 0.11510490626096725, 0.45473161339759827, 0.03746774047613144, 0.24979352951049805, 0.5506367683410645, -0.07583983987569809, -0.07649138569831848, 0.21843625605106354, 0.0582549162209034, 0.14172376692295074, 0.5635432004928589, -0.281453937292099, 0.3456496298313141, 0.015260770916938782, -0.0004700608551502228, 0.1758257895708084, -0.32204917073249817, 0.13624697923660278, 0.026183314621448517, -0.3334971070289612, -0.26328688859939575, 0.06703495234251022, 0.1029893085360527, -0.25067195296287537, -0.131000354886055, -0.25231286883354187, 0.06610699743032455, -0.15473401546478271, -0.01915663480758667, -0.0078113991767168045, -0.09203285723924637, -0.061468496918678284, -0.10292892158031464, 0.24075086414813995, -0.07614491879940033, 0.14706170558929443, 0.0810859203338623, -0.13731543719768524, -0.18899278342723846, -0.18141362071037292, 0.1730409860610962, 0.043196823447942734, -0.1138739138841629, 0.11608976125717163, 0.4162253737449646, 0.01144273579120636, -0.05170862004160881, 0.4485643208026886, 0.702462375164032, 0.2506975531578064, -0.018002774566411972, 0.2781977653503418, 0.06516459584236145, -0.17157018184661865, -0.12165689468383789, -0.046233952045440674, -0.09360131621360779, 0.0901762843132019, 0.3595931828022003, 0.3441754877567291, -0.22940677404403687, 0.1580887883901596, -0.07402712106704712, -0.0738184005022049, -0.1520429104566574, 0.14567066729068756, -0.12481145560741425, -0.07204680144786835, -0.2353319227695465, 0.04140959307551384, -0.3682883679866791, -0.20324689149856567, 0.2662021517753601, -0.11191675066947937, 0.3393988311290741, -0.21849390864372253, 0.13208314776420593, -0.20510709285736084, 0.5254537463188171, 0.08565986156463623, 0.24236181378364563, -0.15193188190460205, -0.11827370524406433, -0.4373200833797455, 0.09705429524183273, -0.07055534422397614, -0.06502677500247955, -0.2627158463001251, 0.18110208213329315, -0.2009328007698059, 0.17786867916584015, 0.25175827741622925, 0.15699288249015808, 0.13090211153030396, 0.18345515429973602, -0.1841634213924408, -0.20234894752502441, 0.05178641527891159, -0.06125926226377487, -0.0073996782302856445, -0.3829692006111145, 0.32222309708595276, -0.25583821535110474, 0.18965771794319153, -0.0419958159327507, -0.1358308345079422, 0.11959818005561829, -0.07493247091770172, 0.5592901706695557, 0.2914411127567291, 0.6465470790863037, -0.11118610203266144, -0.142621710896492, -0.056199345737695694, -0.2643938660621643, -0.03560900315642357, 0.18495780229568481, 0.22059057652950287, 0.21219471096992493, 0.07592111825942993, -0.10848771035671234, -0.27053719758987427, 0.44412949681282043, -0.06700029224157333, -0.011239816434681416, -0.2124057114124298, 0.10696424543857574, -0.037700191140174866, 0.1096092015504837, -0.09198852628469467, -0.16684117913246155, -0.002439212054014206, 0.08738158643245697, -0.27115491032600403, -0.3653767704963684, 0.39064985513687134, -0.11452458798885345, -0.058703694492578506, -0.27430975437164307, 0.31200873851776123, -0.1287277638912201, 0.20381605625152588, -0.5106652975082397, 0.2680850625038147, 0.3385544419288635, -0.11100383847951889, -0.2565121352672577, 0.2415071278810501, -0.06120073422789574, 0.1871722936630249, 0.042391423135995865, 0.24523118138313293, -0.00020064227283000946, -0.1311194747686386, 0.1252480298280716, -0.08632243424654007 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
it works,but another error occurs. ``` ConnectionError: Couldn't reach https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (SSLError(MaxRetryError("HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` I can access `https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt` and `https://aws.amazon.com/cn/s3/` directly, so why it reports a SSLError, should I need tomodify the host file?
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
49
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? it works,but another error occurs. ``` ConnectionError: Couldn't reach https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (SSLError(MaxRetryError("HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` I can access `https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/it/it_sha256.txt` and `https://aws.amazon.com/cn/s3/` directly, so why it reports a SSLError, should I need tomodify the host file?
[ -0.5248149633407593, 0.040523141622543335, -0.12303261458873749, 0.07250326871871948, 0.30416011810302734, -0.08617375046014786, 0.3794281780719757, 0.3197903633117676, 0.16575418412685394, 0.12612494826316833, -0.03680258244276047, 0.15446390211582184, 0.029570039361715317, 0.2415485829114914, -0.08041774481534958, 0.011800624430179596, 0.021549388766288757, 0.21211330592632294, -0.2936365604400635, 0.1434447318315506, -0.1580766886472702, 0.05971314758062363, -0.1213337704539299, 0.06289366632699966, 0.026416918262839317, -0.09188656508922577, 0.06359519809484482, 0.0924893319606781, -0.2721809148788452, -0.584722638130188, 0.335066020488739, 0.054401058703660965, 0.16396315395832062, 0.33371710777282715, -0.0001032296204357408, 0.16075119376182556, 0.38302290439605713, 0.022593876346945763, -0.44388383626937866, -0.07536187767982483, -0.26004165410995483, -0.16993080079555511, 0.1725027859210968, -0.25095129013061523, -0.12711602449417114, -0.1427581012248993, 0.013318212702870369, -0.1045699268579483, 0.4266459345817566, 0.5949546098709106, 0.30871081352233887, 0.23504742980003357, 0.2211330384016037, -0.22608186304569244, -0.09386838227510452, -0.052860140800476074, -0.04942180588841438, 0.3206467628479004, -0.1541193574666977, -0.05261262506246567, -0.02112741768360138, 0.14842848479747772, -0.03307441994547844, 0.13176921010017395, 0.18531396985054016, -0.13622337579727173, 0.21925851702690125, -0.23437988758087158, 0.27890169620513916, 0.13475880026817322, 0.3769879937171936, -0.2704373598098755, -0.19390399754047394, -0.06638984382152557, 0.01339737605303526, -0.11530476063489914, 0.2672588527202606, -0.022716669365763664, -0.25617730617523193, 0.131523996591568, 0.11522999405860901, -0.04203109070658684, -0.2920095920562744, 0.12141962349414825, -0.24739685654640198, 0.3689368963241577, -0.1031118631362915, 0.13387876749038696, 0.1406414806842804, -0.2849050760269165, 0.37635621428489685, -0.2655765414237976, -0.06308223307132721, -0.024963125586509705, -0.36521056294441223, -0.01724846288561821, 0.061082713305950165, -0.18502819538116455, 0.017942719161510468, 0.2507583200931549, -0.1675678938627243, 0.0015169233083724976, 0.25561314821243286, 0.09414097666740417, 0.18764640390872955, -0.019130637869238853, -0.06842096894979477, 0.20506125688552856, 0.2798161506652832, 0.47944095730781555, -0.004610344767570496, -0.019334465265274048, 0.0774073600769043, -0.34519264101982117, 0.1494957059621811, 0.22174745798110962, 0.567645251750946, -0.04979636147618294, -0.3642166554927826, 0.08154668658971786, -0.07191116362810135, -0.06260807812213898, 0.10490117222070694, 0.5125088095664978, -0.17629531025886536, -0.020824700593948364, 0.08714088797569275, 0.025726713240146637, -0.1565680056810379, 0.03338560089468956, -0.26562216877937317, 0.02180519327521324, -0.017768844962120056, -0.06000291556119919, 0.12332065403461456, -0.21670275926589966, 0.08781304955482483, 0.024798564612865448, 0.03633837401866913, -0.013287167996168137, 0.17873923480510712, -0.22464551031589508, -0.03371722251176834, 0.36837372183799744, 0.07902899384498596, 0.12337412685155869, 0.18658331036567688, -0.3182583451271057, 0.005379058420658112, -0.021535731852054596, -0.1364102065563202, -0.3689146339893341, -0.29776912927627563, 0.35262781381607056, -0.09924278408288956, -0.025575101375579834, 0.12243421375751495, -0.1396498829126358, 0.11180750280618668, -0.18430888652801514, -0.006695009768009186, -0.3930794596672058, -0.014000914990901947, -0.23882554471492767, 0.4356186091899872, 0.5765902400016785, -0.2544671297073364, -0.019434671849012375, -0.10868406295776367, -0.3297649621963501, 0.1433624029159546, -0.0008666142821311951, -0.12094148993492126, 0.19599804282188416, -0.28333717584609985, 0.014080338180065155, 0.49333417415618896, -0.2732447683811188, -0.474529504776001, 0.27039727568626404, -0.07740749418735504, -0.06755497306585312, 0.14885017275810242, 0.02512665092945099, 0.17179274559020996, 0.1925433874130249, 0.21845458447933197, 0.09758360683917999, -0.13200554251670837, 0.013885846361517906, -0.11037731170654297, -0.28114446997642517, 0.08656047284603119, 0.2148655652999878, 0.09649267792701721, 0.037033047527074814, 0.2573038935661316, -0.00184605922549963, 0.2437434196472168, -0.07023587822914124, 0.0848950520157814, 0.11082535982131958, 0.24028468132019043, 0.22898128628730774, -0.08909215033054352, -0.09850538522005081, -0.36183515191078186, 0.16673895716667175, 0.0708521157503128, 0.27039164304733276, -0.2953435778617859, -0.006860436871647835, -0.33240023255348206, 0.022502923384308815, -0.31728580594062805, -0.23565977811813354, 0.32028260827064514, 0.31726884841918945, 0.08730931580066681, 0.1541065126657486, -0.16394288837909698, 0.3611122965812683, -0.08989561349153519, 0.1543644368648529, -0.3304591774940491, 0.3856510519981384, -0.3553180992603302, -0.19742940366268158, 0.16650941967964172, -0.045564793050289154, 0.28143274784088135, -0.1167604923248291, -0.18327581882476807, 0.2978259325027466, -0.10574948042631149, 0.1631053388118744, -0.06319212913513184, -0.08459518849849701, 0.024938391521573067, -0.24076853692531586, 0.10892955958843231, 0.16193987429141998, 0.2229107916355133, -0.016544997692108154, 0.0845857635140419, 0.3176095485687256, -0.044892970472574234, 0.2343650460243225, 0.1467713564634323, 0.13887624442577362, 0.4060240089893341, -0.01164884865283966, -0.05899541825056076, 0.022523418068885803, 0.05436503514647484, -0.15736283361911774, 0.24382849037647247, -0.2047213912010193, -0.15477782487869263, 0.10122086852788925, 0.2893354296684265, -0.032520271837711334, 0.11590393632650375, -0.035967543721199036, -0.1878465712070465, -0.021985270082950592, 0.11583959311246872, 0.3814058303833008, 0.45932918787002563, 0.09408609569072723, -0.13134706020355225, 0.2244415432214737, 0.011680632829666138, -0.09990620613098145, 0.3175111413002014, -0.025184661149978638, 0.024713071063160896, 0.22168231010437012, -0.008690577000379562, -0.0564422644674778, -0.3081168532371521, -0.42793428897857666, -0.2288101613521576, 0.38446250557899475, -0.2976519465446472, 0.1923934668302536, -0.10809343308210373, -0.40973860025405884, -0.12331992387771606, 0.16382671892642975, -0.17467229068279266, -0.27843406796455383, -0.2045120894908905, 0.2484969198703766, -0.05882059782743454, 0.19519250094890594, -0.3050101399421692, 0.005367591977119446, 0.20326417684555054, -0.06821650266647339, -0.05734206736087799, -0.11062809079885483, -0.06929831951856613, 0.1607012301683426, 0.16190719604492188, 0.08984002470970154, 0.4566486179828644, -0.1733340471982956, 0.008640380576252937, -0.2272704839706421, -0.180241197347641, 0.02042831853032112, 0.07066190242767334, 0.09588895738124847, 0.4718349277973175, 0.40233659744262695, 0.12964175641536713, -0.41608598828315735, 0.33165156841278076, -0.11554189026355743, -0.09533380717039108, 0.04980969429016113, -0.10124868154525757, 0.05745996907353401, -0.017537793144583702, -0.47790756821632385, -0.4305971562862396, -0.417904794216156, 0.04958360642194748, 0.09444697201251984, 0.16381670534610748, 0.15722064673900604, 0.0943632423877716, 0.24086521565914154, -0.029409391805529594, 0.049974918365478516, -0.19508130848407745, -0.2628127634525299, 0.20030711591243744, -0.1548718810081482, -0.38773366808891296, 0.10665526986122131, -0.022867638617753983, 0.19818280637264252, -0.24593068659305573, -0.5698670744895935, -0.3658425807952881, -0.1819877028465271, 0.3429219722747803, -0.06426743417978287, -0.09800422191619873, 0.2897352874279022, 0.10942770540714264, -0.15102149546146393, -0.0023643821477890015, -0.36758020520210266, -0.035495735704898834, 0.033393144607543945, 0.0989801362156868, -0.07440481334924698, 0.5484480261802673, -0.14929209649562836, 0.4120691418647766, 0.2601547837257385, -0.024745773524045944, 0.2816317081451416, -0.19542762637138367, 0.2761998176574707, -0.10086288303136826, -0.4945629835128784, 0.11307155340909958, 0.04321661591529846, 0.022199183702468872, 0.07547593116760254, -0.1758335530757904, -0.010104279965162277, -0.29609423875808716, -0.005741080269217491, -0.19989478588104248, -0.21228250861167908, 0.023286091163754463, -0.17517401278018951, 0.029130931943655014, -0.07884710282087326, 0.011278778314590454, -0.2012251317501068, 0.034038688987493515, -0.07094015181064606, 0.3898422122001648, -0.09143074601888657, -0.041496921330690384, -0.3715040385723114, -0.07634564489126205, -0.4782915711402893, 0.23800428211688995, -0.01079943310469389, 0.3943248689174652, -0.2544143795967102, -0.056836627423763275, 0.05750706419348717, -0.15795692801475525, 0.27253299951553345, -0.18893681466579437, 0.07362455129623413, 0.25908249616622925, 0.11488988995552063, -0.23266500234603882, -0.09543201327323914, -0.1666531264781952, 0.21304595470428467, 0.2680742144584656, 0.1405576467514038, -0.2034698724746704, -0.09085135161876678, 0.2623945474624634, 0.05321227386593819, -0.2037949115037918, 0.026601672172546387, -0.2134416252374649, -0.4743490219116211, -0.28185147047042847, -0.02044013887643814, -0.19123739004135132, 0.13356685638427734, 0.054986581206321716, 0.028545182198286057, -0.02058611623942852, -0.027279898524284363, -0.04097677767276764, 0.20942392945289612, -0.06918802857398987, -0.13099405169487, 0.33587828278541565, 0.1157035306096077, 0.14828768372535706, 0.4378654360771179, 0.6769539713859558, -0.06942479312419891, -0.6899101734161377, -0.08096132427453995, 0.05186156928539276, -0.04518838971853256, 0.060945361852645874, -0.12791433930397034, 0.08608309179544449, 0.0432819239795208, 0.369365394115448, -0.1242099180817604, 0.13195709884166718, 0.3456195890903473, 0.0634787529706955, -0.47484567761421204, -0.4151923656463623, -0.027486585080623627, -0.22988884150981903, -0.08218257129192352, -0.03614019602537155, 0.10754436999559402, -0.19860099256038666, 0.3165297508239746, -0.324916273355484, 0.7054336071014404, 0.23484815657138824, -0.07464157044887543, 0.3237813115119934, -0.1675439476966858, 0.5478764176368713, -0.204676553606987, 0.04348379373550415, -0.2822026312351227, -0.13224294781684875, 0.04542713612318039, -0.13459350168704987, 0.3515821397304535, -0.2074664682149887, -0.32456880807876587, 0.2710912227630615, -0.051980067044496536, 0.06324523687362671, -0.04643743485212326, 0.22152206301689148, -0.25270164012908936, 0.07965713739395142, -0.26683786511421204, 0.31411391496658325, -0.11928783357143402, 0.3367063105106354, -0.049405716359615326, -0.21087081730365753, 0.04482939466834068, -0.39890432357788086, -0.18250590562820435, 0.12532156705856323, -0.3104631006717682, 0.13671359419822693, -0.028299149125814438, -0.18662846088409424, 0.016066230833530426, 0.03173941373825073, 0.2939416766166687, -0.10412974655628204, -0.07512735575437546, 0.16903477907180786, -0.07051654905080795, 0.012376765720546246, -0.05345279350876808, -0.02535068243741989, 0.16553659737110138, -0.20674949884414673, -0.37196776270866394, 0.2592321038246155, 0.03252951800823212, -0.3715866804122925, 0.2193281054496765, 0.11767765879631042, 0.12852130830287933, -0.3902324438095093, 0.16905826330184937, -0.24468758702278137, -0.061654232442379, -0.2952107787132263, 0.2518807053565979, 0.003918066620826721, -0.07925836741924286, 0.1976795196533203, 0.02413090132176876, -0.16659428179264069, -0.09168544411659241, 0.4564933776855469, -0.0018758662045001984, 0.036348529160022736, 0.46829551458358765, -0.022668736055493355, -0.2191784381866455, -0.3535013198852539, 0.036690376698970795, -0.10183554887771606, -0.36004289984703064, 0.0033633513376116753, -0.07206699997186661, 0.12979911267757416, 0.07709703594446182, 0.009586744010448456, 0.13004373013973236, 0.1391843557357788, 0.009385205805301666, -0.5026987195014954, -0.281522661447525, -0.11566789448261261, 0.02741304598748684, 0.20440642535686493, 0.10248570889234543, 0.26554808020591736, -0.08447431772947311, -0.04026050865650177, -0.43074676394462585, 0.07768478244543076, -0.3320925831794739, 0.13614238798618317, 0.23702400922775269, -0.18191343545913696, 0.16685888171195984, -0.08885900676250458, 0.30694693326950073, -0.09228302538394928, -0.2236817479133606, -0.3488816022872925, 0.05398629978299141, 0.06806686520576477, -0.002536127343773842, -0.3869313895702362, -0.2209596186876297, -0.13488373160362244, -0.09172537922859192, 0.06153876706957817, 0.12691131234169006, 0.07088462263345718, -0.1991495043039322, 0.08131840825080872, -0.04681245610117912, 0.06579265743494034, -0.06458502262830734, 0.28256869316101074, -0.1248583048582077, 0.3672303557395935, -0.10082460939884186, 0.3301144540309906, -0.2541356086730957, -0.09607874602079391, -0.0724378377199173, 0.18560457229614258, -0.023695282638072968, 0.06271940469741821, 0.4409429728984833, -0.1987115889787674, -0.16622811555862427, -0.0558096207678318, 0.2913615107536316, 0.4696551263332367, -0.3229622542858124, 0.1365726739168167, 0.04498291015625, 0.35542094707489014, -0.19389335811138153, -0.015036260709166527, 0.16635127365589142, 0.003953883890062571, 0.1663465052843094, 0.010652832686901093, -0.11713787913322449, -0.168007493019104, 0.05114069953560829, 0.11510490626096725, 0.45473161339759827, 0.03746774047613144, 0.24979352951049805, 0.5506367683410645, -0.07583983987569809, -0.07649138569831848, 0.21843625605106354, 0.0582549162209034, 0.14172376692295074, 0.5635432004928589, -0.281453937292099, 0.3456496298313141, 0.015260770916938782, -0.0004700608551502228, 0.1758257895708084, -0.32204917073249817, 0.13624697923660278, 0.026183314621448517, -0.3334971070289612, -0.26328688859939575, 0.06703495234251022, 0.1029893085360527, -0.25067195296287537, -0.131000354886055, -0.25231286883354187, 0.06610699743032455, -0.15473401546478271, -0.01915663480758667, -0.0078113991767168045, -0.09203285723924637, -0.061468496918678284, -0.10292892158031464, 0.24075086414813995, -0.07614491879940033, 0.14706170558929443, 0.0810859203338623, -0.13731543719768524, -0.18899278342723846, -0.18141362071037292, 0.1730409860610962, 0.043196823447942734, -0.1138739138841629, 0.11608976125717163, 0.4162253737449646, 0.01144273579120636, -0.05170862004160881, 0.4485643208026886, 0.702462375164032, 0.2506975531578064, -0.018002774566411972, 0.2781977653503418, 0.06516459584236145, -0.17157018184661865, -0.12165689468383789, -0.046233952045440674, -0.09360131621360779, 0.0901762843132019, 0.3595931828022003, 0.3441754877567291, -0.22940677404403687, 0.1580887883901596, -0.07402712106704712, -0.0738184005022049, -0.1520429104566574, 0.14567066729068756, -0.12481145560741425, -0.07204680144786835, -0.2353319227695465, 0.04140959307551384, -0.3682883679866791, -0.20324689149856567, 0.2662021517753601, -0.11191675066947937, 0.3393988311290741, -0.21849390864372253, 0.13208314776420593, -0.20510709285736084, 0.5254537463188171, 0.08565986156463623, 0.24236181378364563, -0.15193188190460205, -0.11827370524406433, -0.4373200833797455, 0.09705429524183273, -0.07055534422397614, -0.06502677500247955, -0.2627158463001251, 0.18110208213329315, -0.2009328007698059, 0.17786867916584015, 0.25175827741622925, 0.15699288249015808, 0.13090211153030396, 0.18345515429973602, -0.1841634213924408, -0.20234894752502441, 0.05178641527891159, -0.06125926226377487, -0.0073996782302856445, -0.3829692006111145, 0.32222309708595276, -0.25583821535110474, 0.18965771794319153, -0.0419958159327507, -0.1358308345079422, 0.11959818005561829, -0.07493247091770172, 0.5592901706695557, 0.2914411127567291, 0.6465470790863037, -0.11118610203266144, -0.142621710896492, -0.056199345737695694, -0.2643938660621643, -0.03560900315642357, 0.18495780229568481, 0.22059057652950287, 0.21219471096992493, 0.07592111825942993, -0.10848771035671234, -0.27053719758987427, 0.44412949681282043, -0.06700029224157333, -0.011239816434681416, -0.2124057114124298, 0.10696424543857574, -0.037700191140174866, 0.1096092015504837, -0.09198852628469467, -0.16684117913246155, -0.002439212054014206, 0.08738158643245697, -0.27115491032600403, -0.3653767704963684, 0.39064985513687134, -0.11452458798885345, -0.058703694492578506, -0.27430975437164307, 0.31200873851776123, -0.1287277638912201, 0.20381605625152588, -0.5106652975082397, 0.2680850625038147, 0.3385544419288635, -0.11100383847951889, -0.2565121352672577, 0.2415071278810501, -0.06120073422789574, 0.1871722936630249, 0.042391423135995865, 0.24523118138313293, -0.00020064227283000946, -0.1311194747686386, 0.1252480298280716, -0.08632243424654007 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
you are so wise! it report [ConnectionError] in python 3.9.7 and works well in python 3.8.12 I need you help again: how can I specify the path for download files? the data is too large and my C hardware is not enough
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
42
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? you are so wise! it report [ConnectionError] in python 3.9.7 and works well in python 3.8.12 I need you help again: how can I specify the path for download files? the data is too large and my C hardware is not enough
[ -0.5248149633407593, 0.040523141622543335, -0.12303261458873749, 0.07250326871871948, 0.30416011810302734, -0.08617375046014786, 0.3794281780719757, 0.3197903633117676, 0.16575418412685394, 0.12612494826316833, -0.03680258244276047, 0.15446390211582184, 0.029570039361715317, 0.2415485829114914, -0.08041774481534958, 0.011800624430179596, 0.021549388766288757, 0.21211330592632294, -0.2936365604400635, 0.1434447318315506, -0.1580766886472702, 0.05971314758062363, -0.1213337704539299, 0.06289366632699966, 0.026416918262839317, -0.09188656508922577, 0.06359519809484482, 0.0924893319606781, -0.2721809148788452, -0.584722638130188, 0.335066020488739, 0.054401058703660965, 0.16396315395832062, 0.33371710777282715, -0.0001032296204357408, 0.16075119376182556, 0.38302290439605713, 0.022593876346945763, -0.44388383626937866, -0.07536187767982483, -0.26004165410995483, -0.16993080079555511, 0.1725027859210968, -0.25095129013061523, -0.12711602449417114, -0.1427581012248993, 0.013318212702870369, -0.1045699268579483, 0.4266459345817566, 0.5949546098709106, 0.30871081352233887, 0.23504742980003357, 0.2211330384016037, -0.22608186304569244, -0.09386838227510452, -0.052860140800476074, -0.04942180588841438, 0.3206467628479004, -0.1541193574666977, -0.05261262506246567, -0.02112741768360138, 0.14842848479747772, -0.03307441994547844, 0.13176921010017395, 0.18531396985054016, -0.13622337579727173, 0.21925851702690125, -0.23437988758087158, 0.27890169620513916, 0.13475880026817322, 0.3769879937171936, -0.2704373598098755, -0.19390399754047394, -0.06638984382152557, 0.01339737605303526, -0.11530476063489914, 0.2672588527202606, -0.022716669365763664, -0.25617730617523193, 0.131523996591568, 0.11522999405860901, -0.04203109070658684, -0.2920095920562744, 0.12141962349414825, -0.24739685654640198, 0.3689368963241577, -0.1031118631362915, 0.13387876749038696, 0.1406414806842804, -0.2849050760269165, 0.37635621428489685, -0.2655765414237976, -0.06308223307132721, -0.024963125586509705, -0.36521056294441223, -0.01724846288561821, 0.061082713305950165, -0.18502819538116455, 0.017942719161510468, 0.2507583200931549, -0.1675678938627243, 0.0015169233083724976, 0.25561314821243286, 0.09414097666740417, 0.18764640390872955, -0.019130637869238853, -0.06842096894979477, 0.20506125688552856, 0.2798161506652832, 0.47944095730781555, -0.004610344767570496, -0.019334465265274048, 0.0774073600769043, -0.34519264101982117, 0.1494957059621811, 0.22174745798110962, 0.567645251750946, -0.04979636147618294, -0.3642166554927826, 0.08154668658971786, -0.07191116362810135, -0.06260807812213898, 0.10490117222070694, 0.5125088095664978, -0.17629531025886536, -0.020824700593948364, 0.08714088797569275, 0.025726713240146637, -0.1565680056810379, 0.03338560089468956, -0.26562216877937317, 0.02180519327521324, -0.017768844962120056, -0.06000291556119919, 0.12332065403461456, -0.21670275926589966, 0.08781304955482483, 0.024798564612865448, 0.03633837401866913, -0.013287167996168137, 0.17873923480510712, -0.22464551031589508, -0.03371722251176834, 0.36837372183799744, 0.07902899384498596, 0.12337412685155869, 0.18658331036567688, -0.3182583451271057, 0.005379058420658112, -0.021535731852054596, -0.1364102065563202, -0.3689146339893341, -0.29776912927627563, 0.35262781381607056, -0.09924278408288956, -0.025575101375579834, 0.12243421375751495, -0.1396498829126358, 0.11180750280618668, -0.18430888652801514, -0.006695009768009186, -0.3930794596672058, -0.014000914990901947, -0.23882554471492767, 0.4356186091899872, 0.5765902400016785, -0.2544671297073364, -0.019434671849012375, -0.10868406295776367, -0.3297649621963501, 0.1433624029159546, -0.0008666142821311951, -0.12094148993492126, 0.19599804282188416, -0.28333717584609985, 0.014080338180065155, 0.49333417415618896, -0.2732447683811188, -0.474529504776001, 0.27039727568626404, -0.07740749418735504, -0.06755497306585312, 0.14885017275810242, 0.02512665092945099, 0.17179274559020996, 0.1925433874130249, 0.21845458447933197, 0.09758360683917999, -0.13200554251670837, 0.013885846361517906, -0.11037731170654297, -0.28114446997642517, 0.08656047284603119, 0.2148655652999878, 0.09649267792701721, 0.037033047527074814, 0.2573038935661316, -0.00184605922549963, 0.2437434196472168, -0.07023587822914124, 0.0848950520157814, 0.11082535982131958, 0.24028468132019043, 0.22898128628730774, -0.08909215033054352, -0.09850538522005081, -0.36183515191078186, 0.16673895716667175, 0.0708521157503128, 0.27039164304733276, -0.2953435778617859, -0.006860436871647835, -0.33240023255348206, 0.022502923384308815, -0.31728580594062805, -0.23565977811813354, 0.32028260827064514, 0.31726884841918945, 0.08730931580066681, 0.1541065126657486, -0.16394288837909698, 0.3611122965812683, -0.08989561349153519, 0.1543644368648529, -0.3304591774940491, 0.3856510519981384, -0.3553180992603302, -0.19742940366268158, 0.16650941967964172, -0.045564793050289154, 0.28143274784088135, -0.1167604923248291, -0.18327581882476807, 0.2978259325027466, -0.10574948042631149, 0.1631053388118744, -0.06319212913513184, -0.08459518849849701, 0.024938391521573067, -0.24076853692531586, 0.10892955958843231, 0.16193987429141998, 0.2229107916355133, -0.016544997692108154, 0.0845857635140419, 0.3176095485687256, -0.044892970472574234, 0.2343650460243225, 0.1467713564634323, 0.13887624442577362, 0.4060240089893341, -0.01164884865283966, -0.05899541825056076, 0.022523418068885803, 0.05436503514647484, -0.15736283361911774, 0.24382849037647247, -0.2047213912010193, -0.15477782487869263, 0.10122086852788925, 0.2893354296684265, -0.032520271837711334, 0.11590393632650375, -0.035967543721199036, -0.1878465712070465, -0.021985270082950592, 0.11583959311246872, 0.3814058303833008, 0.45932918787002563, 0.09408609569072723, -0.13134706020355225, 0.2244415432214737, 0.011680632829666138, -0.09990620613098145, 0.3175111413002014, -0.025184661149978638, 0.024713071063160896, 0.22168231010437012, -0.008690577000379562, -0.0564422644674778, -0.3081168532371521, -0.42793428897857666, -0.2288101613521576, 0.38446250557899475, -0.2976519465446472, 0.1923934668302536, -0.10809343308210373, -0.40973860025405884, -0.12331992387771606, 0.16382671892642975, -0.17467229068279266, -0.27843406796455383, -0.2045120894908905, 0.2484969198703766, -0.05882059782743454, 0.19519250094890594, -0.3050101399421692, 0.005367591977119446, 0.20326417684555054, -0.06821650266647339, -0.05734206736087799, -0.11062809079885483, -0.06929831951856613, 0.1607012301683426, 0.16190719604492188, 0.08984002470970154, 0.4566486179828644, -0.1733340471982956, 0.008640380576252937, -0.2272704839706421, -0.180241197347641, 0.02042831853032112, 0.07066190242767334, 0.09588895738124847, 0.4718349277973175, 0.40233659744262695, 0.12964175641536713, -0.41608598828315735, 0.33165156841278076, -0.11554189026355743, -0.09533380717039108, 0.04980969429016113, -0.10124868154525757, 0.05745996907353401, -0.017537793144583702, -0.47790756821632385, -0.4305971562862396, -0.417904794216156, 0.04958360642194748, 0.09444697201251984, 0.16381670534610748, 0.15722064673900604, 0.0943632423877716, 0.24086521565914154, -0.029409391805529594, 0.049974918365478516, -0.19508130848407745, -0.2628127634525299, 0.20030711591243744, -0.1548718810081482, -0.38773366808891296, 0.10665526986122131, -0.022867638617753983, 0.19818280637264252, -0.24593068659305573, -0.5698670744895935, -0.3658425807952881, -0.1819877028465271, 0.3429219722747803, -0.06426743417978287, -0.09800422191619873, 0.2897352874279022, 0.10942770540714264, -0.15102149546146393, -0.0023643821477890015, -0.36758020520210266, -0.035495735704898834, 0.033393144607543945, 0.0989801362156868, -0.07440481334924698, 0.5484480261802673, -0.14929209649562836, 0.4120691418647766, 0.2601547837257385, -0.024745773524045944, 0.2816317081451416, -0.19542762637138367, 0.2761998176574707, -0.10086288303136826, -0.4945629835128784, 0.11307155340909958, 0.04321661591529846, 0.022199183702468872, 0.07547593116760254, -0.1758335530757904, -0.010104279965162277, -0.29609423875808716, -0.005741080269217491, -0.19989478588104248, -0.21228250861167908, 0.023286091163754463, -0.17517401278018951, 0.029130931943655014, -0.07884710282087326, 0.011278778314590454, -0.2012251317501068, 0.034038688987493515, -0.07094015181064606, 0.3898422122001648, -0.09143074601888657, -0.041496921330690384, -0.3715040385723114, -0.07634564489126205, -0.4782915711402893, 0.23800428211688995, -0.01079943310469389, 0.3943248689174652, -0.2544143795967102, -0.056836627423763275, 0.05750706419348717, -0.15795692801475525, 0.27253299951553345, -0.18893681466579437, 0.07362455129623413, 0.25908249616622925, 0.11488988995552063, -0.23266500234603882, -0.09543201327323914, -0.1666531264781952, 0.21304595470428467, 0.2680742144584656, 0.1405576467514038, -0.2034698724746704, -0.09085135161876678, 0.2623945474624634, 0.05321227386593819, -0.2037949115037918, 0.026601672172546387, -0.2134416252374649, -0.4743490219116211, -0.28185147047042847, -0.02044013887643814, -0.19123739004135132, 0.13356685638427734, 0.054986581206321716, 0.028545182198286057, -0.02058611623942852, -0.027279898524284363, -0.04097677767276764, 0.20942392945289612, -0.06918802857398987, -0.13099405169487, 0.33587828278541565, 0.1157035306096077, 0.14828768372535706, 0.4378654360771179, 0.6769539713859558, -0.06942479312419891, -0.6899101734161377, -0.08096132427453995, 0.05186156928539276, -0.04518838971853256, 0.060945361852645874, -0.12791433930397034, 0.08608309179544449, 0.0432819239795208, 0.369365394115448, -0.1242099180817604, 0.13195709884166718, 0.3456195890903473, 0.0634787529706955, -0.47484567761421204, -0.4151923656463623, -0.027486585080623627, -0.22988884150981903, -0.08218257129192352, -0.03614019602537155, 0.10754436999559402, -0.19860099256038666, 0.3165297508239746, -0.324916273355484, 0.7054336071014404, 0.23484815657138824, -0.07464157044887543, 0.3237813115119934, -0.1675439476966858, 0.5478764176368713, -0.204676553606987, 0.04348379373550415, -0.2822026312351227, -0.13224294781684875, 0.04542713612318039, -0.13459350168704987, 0.3515821397304535, -0.2074664682149887, -0.32456880807876587, 0.2710912227630615, -0.051980067044496536, 0.06324523687362671, -0.04643743485212326, 0.22152206301689148, -0.25270164012908936, 0.07965713739395142, -0.26683786511421204, 0.31411391496658325, -0.11928783357143402, 0.3367063105106354, -0.049405716359615326, -0.21087081730365753, 0.04482939466834068, -0.39890432357788086, -0.18250590562820435, 0.12532156705856323, -0.3104631006717682, 0.13671359419822693, -0.028299149125814438, -0.18662846088409424, 0.016066230833530426, 0.03173941373825073, 0.2939416766166687, -0.10412974655628204, -0.07512735575437546, 0.16903477907180786, -0.07051654905080795, 0.012376765720546246, -0.05345279350876808, -0.02535068243741989, 0.16553659737110138, -0.20674949884414673, -0.37196776270866394, 0.2592321038246155, 0.03252951800823212, -0.3715866804122925, 0.2193281054496765, 0.11767765879631042, 0.12852130830287933, -0.3902324438095093, 0.16905826330184937, -0.24468758702278137, -0.061654232442379, -0.2952107787132263, 0.2518807053565979, 0.003918066620826721, -0.07925836741924286, 0.1976795196533203, 0.02413090132176876, -0.16659428179264069, -0.09168544411659241, 0.4564933776855469, -0.0018758662045001984, 0.036348529160022736, 0.46829551458358765, -0.022668736055493355, -0.2191784381866455, -0.3535013198852539, 0.036690376698970795, -0.10183554887771606, -0.36004289984703064, 0.0033633513376116753, -0.07206699997186661, 0.12979911267757416, 0.07709703594446182, 0.009586744010448456, 0.13004373013973236, 0.1391843557357788, 0.009385205805301666, -0.5026987195014954, -0.281522661447525, -0.11566789448261261, 0.02741304598748684, 0.20440642535686493, 0.10248570889234543, 0.26554808020591736, -0.08447431772947311, -0.04026050865650177, -0.43074676394462585, 0.07768478244543076, -0.3320925831794739, 0.13614238798618317, 0.23702400922775269, -0.18191343545913696, 0.16685888171195984, -0.08885900676250458, 0.30694693326950073, -0.09228302538394928, -0.2236817479133606, -0.3488816022872925, 0.05398629978299141, 0.06806686520576477, -0.002536127343773842, -0.3869313895702362, -0.2209596186876297, -0.13488373160362244, -0.09172537922859192, 0.06153876706957817, 0.12691131234169006, 0.07088462263345718, -0.1991495043039322, 0.08131840825080872, -0.04681245610117912, 0.06579265743494034, -0.06458502262830734, 0.28256869316101074, -0.1248583048582077, 0.3672303557395935, -0.10082460939884186, 0.3301144540309906, -0.2541356086730957, -0.09607874602079391, -0.0724378377199173, 0.18560457229614258, -0.023695282638072968, 0.06271940469741821, 0.4409429728984833, -0.1987115889787674, -0.16622811555862427, -0.0558096207678318, 0.2913615107536316, 0.4696551263332367, -0.3229622542858124, 0.1365726739168167, 0.04498291015625, 0.35542094707489014, -0.19389335811138153, -0.015036260709166527, 0.16635127365589142, 0.003953883890062571, 0.1663465052843094, 0.010652832686901093, -0.11713787913322449, -0.168007493019104, 0.05114069953560829, 0.11510490626096725, 0.45473161339759827, 0.03746774047613144, 0.24979352951049805, 0.5506367683410645, -0.07583983987569809, -0.07649138569831848, 0.21843625605106354, 0.0582549162209034, 0.14172376692295074, 0.5635432004928589, -0.281453937292099, 0.3456496298313141, 0.015260770916938782, -0.0004700608551502228, 0.1758257895708084, -0.32204917073249817, 0.13624697923660278, 0.026183314621448517, -0.3334971070289612, -0.26328688859939575, 0.06703495234251022, 0.1029893085360527, -0.25067195296287537, -0.131000354886055, -0.25231286883354187, 0.06610699743032455, -0.15473401546478271, -0.01915663480758667, -0.0078113991767168045, -0.09203285723924637, -0.061468496918678284, -0.10292892158031464, 0.24075086414813995, -0.07614491879940033, 0.14706170558929443, 0.0810859203338623, -0.13731543719768524, -0.18899278342723846, -0.18141362071037292, 0.1730409860610962, 0.043196823447942734, -0.1138739138841629, 0.11608976125717163, 0.4162253737449646, 0.01144273579120636, -0.05170862004160881, 0.4485643208026886, 0.702462375164032, 0.2506975531578064, -0.018002774566411972, 0.2781977653503418, 0.06516459584236145, -0.17157018184661865, -0.12165689468383789, -0.046233952045440674, -0.09360131621360779, 0.0901762843132019, 0.3595931828022003, 0.3441754877567291, -0.22940677404403687, 0.1580887883901596, -0.07402712106704712, -0.0738184005022049, -0.1520429104566574, 0.14567066729068756, -0.12481145560741425, -0.07204680144786835, -0.2353319227695465, 0.04140959307551384, -0.3682883679866791, -0.20324689149856567, 0.2662021517753601, -0.11191675066947937, 0.3393988311290741, -0.21849390864372253, 0.13208314776420593, -0.20510709285736084, 0.5254537463188171, 0.08565986156463623, 0.24236181378364563, -0.15193188190460205, -0.11827370524406433, -0.4373200833797455, 0.09705429524183273, -0.07055534422397614, -0.06502677500247955, -0.2627158463001251, 0.18110208213329315, -0.2009328007698059, 0.17786867916584015, 0.25175827741622925, 0.15699288249015808, 0.13090211153030396, 0.18345515429973602, -0.1841634213924408, -0.20234894752502441, 0.05178641527891159, -0.06125926226377487, -0.0073996782302856445, -0.3829692006111145, 0.32222309708595276, -0.25583821535110474, 0.18965771794319153, -0.0419958159327507, -0.1358308345079422, 0.11959818005561829, -0.07493247091770172, 0.5592901706695557, 0.2914411127567291, 0.6465470790863037, -0.11118610203266144, -0.142621710896492, -0.056199345737695694, -0.2643938660621643, -0.03560900315642357, 0.18495780229568481, 0.22059057652950287, 0.21219471096992493, 0.07592111825942993, -0.10848771035671234, -0.27053719758987427, 0.44412949681282043, -0.06700029224157333, -0.011239816434681416, -0.2124057114124298, 0.10696424543857574, -0.037700191140174866, 0.1096092015504837, -0.09198852628469467, -0.16684117913246155, -0.002439212054014206, 0.08738158643245697, -0.27115491032600403, -0.3653767704963684, 0.39064985513687134, -0.11452458798885345, -0.058703694492578506, -0.27430975437164307, 0.31200873851776123, -0.1287277638912201, 0.20381605625152588, -0.5106652975082397, 0.2680850625038147, 0.3385544419288635, -0.11100383847951889, -0.2565121352672577, 0.2415071278810501, -0.06120073422789574, 0.1871722936630249, 0.042391423135995865, 0.24523118138313293, -0.00020064227283000946, -0.1311194747686386, 0.1252480298280716, -0.08632243424654007 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
Cool ! And you can specify the path for download files with to the `cache_dir` parameter: ```python from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it', cache_dir='path/to/directory')
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
26
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? Cool ! And you can specify the path for download files with to the `cache_dir` parameter: ```python from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it', cache_dir='path/to/directory')
[ -0.5248149633407593, 0.040523141622543335, -0.12303261458873749, 0.07250326871871948, 0.30416011810302734, -0.08617375046014786, 0.3794281780719757, 0.3197903633117676, 0.16575418412685394, 0.12612494826316833, -0.03680258244276047, 0.15446390211582184, 0.029570039361715317, 0.2415485829114914, -0.08041774481534958, 0.011800624430179596, 0.021549388766288757, 0.21211330592632294, -0.2936365604400635, 0.1434447318315506, -0.1580766886472702, 0.05971314758062363, -0.1213337704539299, 0.06289366632699966, 0.026416918262839317, -0.09188656508922577, 0.06359519809484482, 0.0924893319606781, -0.2721809148788452, -0.584722638130188, 0.335066020488739, 0.054401058703660965, 0.16396315395832062, 0.33371710777282715, -0.0001032296204357408, 0.16075119376182556, 0.38302290439605713, 0.022593876346945763, -0.44388383626937866, -0.07536187767982483, -0.26004165410995483, -0.16993080079555511, 0.1725027859210968, -0.25095129013061523, -0.12711602449417114, -0.1427581012248993, 0.013318212702870369, -0.1045699268579483, 0.4266459345817566, 0.5949546098709106, 0.30871081352233887, 0.23504742980003357, 0.2211330384016037, -0.22608186304569244, -0.09386838227510452, -0.052860140800476074, -0.04942180588841438, 0.3206467628479004, -0.1541193574666977, -0.05261262506246567, -0.02112741768360138, 0.14842848479747772, -0.03307441994547844, 0.13176921010017395, 0.18531396985054016, -0.13622337579727173, 0.21925851702690125, -0.23437988758087158, 0.27890169620513916, 0.13475880026817322, 0.3769879937171936, -0.2704373598098755, -0.19390399754047394, -0.06638984382152557, 0.01339737605303526, -0.11530476063489914, 0.2672588527202606, -0.022716669365763664, -0.25617730617523193, 0.131523996591568, 0.11522999405860901, -0.04203109070658684, -0.2920095920562744, 0.12141962349414825, -0.24739685654640198, 0.3689368963241577, -0.1031118631362915, 0.13387876749038696, 0.1406414806842804, -0.2849050760269165, 0.37635621428489685, -0.2655765414237976, -0.06308223307132721, -0.024963125586509705, -0.36521056294441223, -0.01724846288561821, 0.061082713305950165, -0.18502819538116455, 0.017942719161510468, 0.2507583200931549, -0.1675678938627243, 0.0015169233083724976, 0.25561314821243286, 0.09414097666740417, 0.18764640390872955, -0.019130637869238853, -0.06842096894979477, 0.20506125688552856, 0.2798161506652832, 0.47944095730781555, -0.004610344767570496, -0.019334465265274048, 0.0774073600769043, -0.34519264101982117, 0.1494957059621811, 0.22174745798110962, 0.567645251750946, -0.04979636147618294, -0.3642166554927826, 0.08154668658971786, -0.07191116362810135, -0.06260807812213898, 0.10490117222070694, 0.5125088095664978, -0.17629531025886536, -0.020824700593948364, 0.08714088797569275, 0.025726713240146637, -0.1565680056810379, 0.03338560089468956, -0.26562216877937317, 0.02180519327521324, -0.017768844962120056, -0.06000291556119919, 0.12332065403461456, -0.21670275926589966, 0.08781304955482483, 0.024798564612865448, 0.03633837401866913, -0.013287167996168137, 0.17873923480510712, -0.22464551031589508, -0.03371722251176834, 0.36837372183799744, 0.07902899384498596, 0.12337412685155869, 0.18658331036567688, -0.3182583451271057, 0.005379058420658112, -0.021535731852054596, -0.1364102065563202, -0.3689146339893341, -0.29776912927627563, 0.35262781381607056, -0.09924278408288956, -0.025575101375579834, 0.12243421375751495, -0.1396498829126358, 0.11180750280618668, -0.18430888652801514, -0.006695009768009186, -0.3930794596672058, -0.014000914990901947, -0.23882554471492767, 0.4356186091899872, 0.5765902400016785, -0.2544671297073364, -0.019434671849012375, -0.10868406295776367, -0.3297649621963501, 0.1433624029159546, -0.0008666142821311951, -0.12094148993492126, 0.19599804282188416, -0.28333717584609985, 0.014080338180065155, 0.49333417415618896, -0.2732447683811188, -0.474529504776001, 0.27039727568626404, -0.07740749418735504, -0.06755497306585312, 0.14885017275810242, 0.02512665092945099, 0.17179274559020996, 0.1925433874130249, 0.21845458447933197, 0.09758360683917999, -0.13200554251670837, 0.013885846361517906, -0.11037731170654297, -0.28114446997642517, 0.08656047284603119, 0.2148655652999878, 0.09649267792701721, 0.037033047527074814, 0.2573038935661316, -0.00184605922549963, 0.2437434196472168, -0.07023587822914124, 0.0848950520157814, 0.11082535982131958, 0.24028468132019043, 0.22898128628730774, -0.08909215033054352, -0.09850538522005081, -0.36183515191078186, 0.16673895716667175, 0.0708521157503128, 0.27039164304733276, -0.2953435778617859, -0.006860436871647835, -0.33240023255348206, 0.022502923384308815, -0.31728580594062805, -0.23565977811813354, 0.32028260827064514, 0.31726884841918945, 0.08730931580066681, 0.1541065126657486, -0.16394288837909698, 0.3611122965812683, -0.08989561349153519, 0.1543644368648529, -0.3304591774940491, 0.3856510519981384, -0.3553180992603302, -0.19742940366268158, 0.16650941967964172, -0.045564793050289154, 0.28143274784088135, -0.1167604923248291, -0.18327581882476807, 0.2978259325027466, -0.10574948042631149, 0.1631053388118744, -0.06319212913513184, -0.08459518849849701, 0.024938391521573067, -0.24076853692531586, 0.10892955958843231, 0.16193987429141998, 0.2229107916355133, -0.016544997692108154, 0.0845857635140419, 0.3176095485687256, -0.044892970472574234, 0.2343650460243225, 0.1467713564634323, 0.13887624442577362, 0.4060240089893341, -0.01164884865283966, -0.05899541825056076, 0.022523418068885803, 0.05436503514647484, -0.15736283361911774, 0.24382849037647247, -0.2047213912010193, -0.15477782487869263, 0.10122086852788925, 0.2893354296684265, -0.032520271837711334, 0.11590393632650375, -0.035967543721199036, -0.1878465712070465, -0.021985270082950592, 0.11583959311246872, 0.3814058303833008, 0.45932918787002563, 0.09408609569072723, -0.13134706020355225, 0.2244415432214737, 0.011680632829666138, -0.09990620613098145, 0.3175111413002014, -0.025184661149978638, 0.024713071063160896, 0.22168231010437012, -0.008690577000379562, -0.0564422644674778, -0.3081168532371521, -0.42793428897857666, -0.2288101613521576, 0.38446250557899475, -0.2976519465446472, 0.1923934668302536, -0.10809343308210373, -0.40973860025405884, -0.12331992387771606, 0.16382671892642975, -0.17467229068279266, -0.27843406796455383, -0.2045120894908905, 0.2484969198703766, -0.05882059782743454, 0.19519250094890594, -0.3050101399421692, 0.005367591977119446, 0.20326417684555054, -0.06821650266647339, -0.05734206736087799, -0.11062809079885483, -0.06929831951856613, 0.1607012301683426, 0.16190719604492188, 0.08984002470970154, 0.4566486179828644, -0.1733340471982956, 0.008640380576252937, -0.2272704839706421, -0.180241197347641, 0.02042831853032112, 0.07066190242767334, 0.09588895738124847, 0.4718349277973175, 0.40233659744262695, 0.12964175641536713, -0.41608598828315735, 0.33165156841278076, -0.11554189026355743, -0.09533380717039108, 0.04980969429016113, -0.10124868154525757, 0.05745996907353401, -0.017537793144583702, -0.47790756821632385, -0.4305971562862396, -0.417904794216156, 0.04958360642194748, 0.09444697201251984, 0.16381670534610748, 0.15722064673900604, 0.0943632423877716, 0.24086521565914154, -0.029409391805529594, 0.049974918365478516, -0.19508130848407745, -0.2628127634525299, 0.20030711591243744, -0.1548718810081482, -0.38773366808891296, 0.10665526986122131, -0.022867638617753983, 0.19818280637264252, -0.24593068659305573, -0.5698670744895935, -0.3658425807952881, -0.1819877028465271, 0.3429219722747803, -0.06426743417978287, -0.09800422191619873, 0.2897352874279022, 0.10942770540714264, -0.15102149546146393, -0.0023643821477890015, -0.36758020520210266, -0.035495735704898834, 0.033393144607543945, 0.0989801362156868, -0.07440481334924698, 0.5484480261802673, -0.14929209649562836, 0.4120691418647766, 0.2601547837257385, -0.024745773524045944, 0.2816317081451416, -0.19542762637138367, 0.2761998176574707, -0.10086288303136826, -0.4945629835128784, 0.11307155340909958, 0.04321661591529846, 0.022199183702468872, 0.07547593116760254, -0.1758335530757904, -0.010104279965162277, -0.29609423875808716, -0.005741080269217491, -0.19989478588104248, -0.21228250861167908, 0.023286091163754463, -0.17517401278018951, 0.029130931943655014, -0.07884710282087326, 0.011278778314590454, -0.2012251317501068, 0.034038688987493515, -0.07094015181064606, 0.3898422122001648, -0.09143074601888657, -0.041496921330690384, -0.3715040385723114, -0.07634564489126205, -0.4782915711402893, 0.23800428211688995, -0.01079943310469389, 0.3943248689174652, -0.2544143795967102, -0.056836627423763275, 0.05750706419348717, -0.15795692801475525, 0.27253299951553345, -0.18893681466579437, 0.07362455129623413, 0.25908249616622925, 0.11488988995552063, -0.23266500234603882, -0.09543201327323914, -0.1666531264781952, 0.21304595470428467, 0.2680742144584656, 0.1405576467514038, -0.2034698724746704, -0.09085135161876678, 0.2623945474624634, 0.05321227386593819, -0.2037949115037918, 0.026601672172546387, -0.2134416252374649, -0.4743490219116211, -0.28185147047042847, -0.02044013887643814, -0.19123739004135132, 0.13356685638427734, 0.054986581206321716, 0.028545182198286057, -0.02058611623942852, -0.027279898524284363, -0.04097677767276764, 0.20942392945289612, -0.06918802857398987, -0.13099405169487, 0.33587828278541565, 0.1157035306096077, 0.14828768372535706, 0.4378654360771179, 0.6769539713859558, -0.06942479312419891, -0.6899101734161377, -0.08096132427453995, 0.05186156928539276, -0.04518838971853256, 0.060945361852645874, -0.12791433930397034, 0.08608309179544449, 0.0432819239795208, 0.369365394115448, -0.1242099180817604, 0.13195709884166718, 0.3456195890903473, 0.0634787529706955, -0.47484567761421204, -0.4151923656463623, -0.027486585080623627, -0.22988884150981903, -0.08218257129192352, -0.03614019602537155, 0.10754436999559402, -0.19860099256038666, 0.3165297508239746, -0.324916273355484, 0.7054336071014404, 0.23484815657138824, -0.07464157044887543, 0.3237813115119934, -0.1675439476966858, 0.5478764176368713, -0.204676553606987, 0.04348379373550415, -0.2822026312351227, -0.13224294781684875, 0.04542713612318039, -0.13459350168704987, 0.3515821397304535, -0.2074664682149887, -0.32456880807876587, 0.2710912227630615, -0.051980067044496536, 0.06324523687362671, -0.04643743485212326, 0.22152206301689148, -0.25270164012908936, 0.07965713739395142, -0.26683786511421204, 0.31411391496658325, -0.11928783357143402, 0.3367063105106354, -0.049405716359615326, -0.21087081730365753, 0.04482939466834068, -0.39890432357788086, -0.18250590562820435, 0.12532156705856323, -0.3104631006717682, 0.13671359419822693, -0.028299149125814438, -0.18662846088409424, 0.016066230833530426, 0.03173941373825073, 0.2939416766166687, -0.10412974655628204, -0.07512735575437546, 0.16903477907180786, -0.07051654905080795, 0.012376765720546246, -0.05345279350876808, -0.02535068243741989, 0.16553659737110138, -0.20674949884414673, -0.37196776270866394, 0.2592321038246155, 0.03252951800823212, -0.3715866804122925, 0.2193281054496765, 0.11767765879631042, 0.12852130830287933, -0.3902324438095093, 0.16905826330184937, -0.24468758702278137, -0.061654232442379, -0.2952107787132263, 0.2518807053565979, 0.003918066620826721, -0.07925836741924286, 0.1976795196533203, 0.02413090132176876, -0.16659428179264069, -0.09168544411659241, 0.4564933776855469, -0.0018758662045001984, 0.036348529160022736, 0.46829551458358765, -0.022668736055493355, -0.2191784381866455, -0.3535013198852539, 0.036690376698970795, -0.10183554887771606, -0.36004289984703064, 0.0033633513376116753, -0.07206699997186661, 0.12979911267757416, 0.07709703594446182, 0.009586744010448456, 0.13004373013973236, 0.1391843557357788, 0.009385205805301666, -0.5026987195014954, -0.281522661447525, -0.11566789448261261, 0.02741304598748684, 0.20440642535686493, 0.10248570889234543, 0.26554808020591736, -0.08447431772947311, -0.04026050865650177, -0.43074676394462585, 0.07768478244543076, -0.3320925831794739, 0.13614238798618317, 0.23702400922775269, -0.18191343545913696, 0.16685888171195984, -0.08885900676250458, 0.30694693326950073, -0.09228302538394928, -0.2236817479133606, -0.3488816022872925, 0.05398629978299141, 0.06806686520576477, -0.002536127343773842, -0.3869313895702362, -0.2209596186876297, -0.13488373160362244, -0.09172537922859192, 0.06153876706957817, 0.12691131234169006, 0.07088462263345718, -0.1991495043039322, 0.08131840825080872, -0.04681245610117912, 0.06579265743494034, -0.06458502262830734, 0.28256869316101074, -0.1248583048582077, 0.3672303557395935, -0.10082460939884186, 0.3301144540309906, -0.2541356086730957, -0.09607874602079391, -0.0724378377199173, 0.18560457229614258, -0.023695282638072968, 0.06271940469741821, 0.4409429728984833, -0.1987115889787674, -0.16622811555862427, -0.0558096207678318, 0.2913615107536316, 0.4696551263332367, -0.3229622542858124, 0.1365726739168167, 0.04498291015625, 0.35542094707489014, -0.19389335811138153, -0.015036260709166527, 0.16635127365589142, 0.003953883890062571, 0.1663465052843094, 0.010652832686901093, -0.11713787913322449, -0.168007493019104, 0.05114069953560829, 0.11510490626096725, 0.45473161339759827, 0.03746774047613144, 0.24979352951049805, 0.5506367683410645, -0.07583983987569809, -0.07649138569831848, 0.21843625605106354, 0.0582549162209034, 0.14172376692295074, 0.5635432004928589, -0.281453937292099, 0.3456496298313141, 0.015260770916938782, -0.0004700608551502228, 0.1758257895708084, -0.32204917073249817, 0.13624697923660278, 0.026183314621448517, -0.3334971070289612, -0.26328688859939575, 0.06703495234251022, 0.1029893085360527, -0.25067195296287537, -0.131000354886055, -0.25231286883354187, 0.06610699743032455, -0.15473401546478271, -0.01915663480758667, -0.0078113991767168045, -0.09203285723924637, -0.061468496918678284, -0.10292892158031464, 0.24075086414813995, -0.07614491879940033, 0.14706170558929443, 0.0810859203338623, -0.13731543719768524, -0.18899278342723846, -0.18141362071037292, 0.1730409860610962, 0.043196823447942734, -0.1138739138841629, 0.11608976125717163, 0.4162253737449646, 0.01144273579120636, -0.05170862004160881, 0.4485643208026886, 0.702462375164032, 0.2506975531578064, -0.018002774566411972, 0.2781977653503418, 0.06516459584236145, -0.17157018184661865, -0.12165689468383789, -0.046233952045440674, -0.09360131621360779, 0.0901762843132019, 0.3595931828022003, 0.3441754877567291, -0.22940677404403687, 0.1580887883901596, -0.07402712106704712, -0.0738184005022049, -0.1520429104566574, 0.14567066729068756, -0.12481145560741425, -0.07204680144786835, -0.2353319227695465, 0.04140959307551384, -0.3682883679866791, -0.20324689149856567, 0.2662021517753601, -0.11191675066947937, 0.3393988311290741, -0.21849390864372253, 0.13208314776420593, -0.20510709285736084, 0.5254537463188171, 0.08565986156463623, 0.24236181378364563, -0.15193188190460205, -0.11827370524406433, -0.4373200833797455, 0.09705429524183273, -0.07055534422397614, -0.06502677500247955, -0.2627158463001251, 0.18110208213329315, -0.2009328007698059, 0.17786867916584015, 0.25175827741622925, 0.15699288249015808, 0.13090211153030396, 0.18345515429973602, -0.1841634213924408, -0.20234894752502441, 0.05178641527891159, -0.06125926226377487, -0.0073996782302856445, -0.3829692006111145, 0.32222309708595276, -0.25583821535110474, 0.18965771794319153, -0.0419958159327507, -0.1358308345079422, 0.11959818005561829, -0.07493247091770172, 0.5592901706695557, 0.2914411127567291, 0.6465470790863037, -0.11118610203266144, -0.142621710896492, -0.056199345737695694, -0.2643938660621643, -0.03560900315642357, 0.18495780229568481, 0.22059057652950287, 0.21219471096992493, 0.07592111825942993, -0.10848771035671234, -0.27053719758987427, 0.44412949681282043, -0.06700029224157333, -0.011239816434681416, -0.2124057114124298, 0.10696424543857574, -0.037700191140174866, 0.1096092015504837, -0.09198852628469467, -0.16684117913246155, -0.002439212054014206, 0.08738158643245697, -0.27115491032600403, -0.3653767704963684, 0.39064985513687134, -0.11452458798885345, -0.058703694492578506, -0.27430975437164307, 0.31200873851776123, -0.1287277638912201, 0.20381605625152588, -0.5106652975082397, 0.2680850625038147, 0.3385544419288635, -0.11100383847951889, -0.2565121352672577, 0.2415071278810501, -0.06120073422789574, 0.1871722936630249, 0.042391423135995865, 0.24523118138313293, -0.00020064227283000946, -0.1311194747686386, 0.1252480298280716, -0.08632243424654007 ]
https://github.com/huggingface/datasets/issues/3973
ConnectionError and SSLError
It takes me some days to download data completely, Despise sometimes it occurs again, change py version is feasible way to avoid this ConnectionEror. parameter `cache_dir` works well, thanks for your kindness again!
code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually?
33
ConnectionError and SSLError code ``` from datasets import load_dataset dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') ``` bug report ``` --------------------------------------------------------------------------- ConnectionError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_29788/2615425180.py in <module> ----> 1 dataset = load_dataset('oscar', 'unshuffled_deduplicated_it') D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs) 1658 1659 # Create a dataset builder -> 1660 builder_instance = load_dataset_builder( 1661 path=path, 1662 name=name, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, **config_kwargs) 1484 download_config = download_config.copy() if download_config else DownloadConfig() 1485 download_config.use_auth_token = use_auth_token -> 1486 dataset_module = dataset_module_factory( 1487 path, 1488 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1236 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" 1237 ) from None -> 1238 raise e1 from None 1239 else: 1240 raise FileNotFoundError( D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_dir, data_files, **download_kwargs) 1173 if path.count("/") == 0: # even though the dataset is on the Hub, we get it from GitHub for now 1174 # TODO(QL): use a Hub dataset module factory instead of GitHub -> 1175 return GithubDatasetModuleFactory( 1176 path, 1177 revision=revision, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in get_module(self) 531 revision = self.revision 532 try: --> 533 local_path = self.download_loading_script(revision) 534 except FileNotFoundError: 535 if revision is not None or os.getenv("HF_SCRIPTS_VERSION", None) is not None: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\load.py in download_loading_script(self, revision) 511 if download_config.download_desc is None: 512 download_config.download_desc = "Downloading builder script" --> 513 return cached_path(file_path, download_config=download_config) 514 515 def download_dataset_infos_file(self, revision: Optional[str]) -> str: D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 232 if is_remote_url(url_or_filename): 233 # URL, so get it from the cache (downloading if necessary) --> 234 output_path = get_from_cache( 235 url_or_filename, 236 cache_dir=cache_dir, D:\DataScience\PythonSet\IDES\anaconda\lib\site-packages\datasets\utils\file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params, download_desc) 580 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 581 if head_error is not None: --> 582 raise ConnectionError(f"Couldn't reach {url} ({repr(head_error)})") 583 elif response is not None: 584 raise ConnectionError(f"Couldn't reach {url} (error {response.status_code})") ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.0.0/datasets/oscar/oscar.py (SSLError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.0.0/datasets/oscar/oscar.py (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))"))) ``` It may be caused by Caused by SSLError(in China?) because it works well on google colab. So how can I download this dataset manually? It takes me some days to download data completely, Despise sometimes it occurs again, change py version is feasible way to avoid this ConnectionEror. parameter `cache_dir` works well, thanks for your kindness again!
[ -0.5248149633407593, 0.040523141622543335, -0.12303261458873749, 0.07250326871871948, 0.30416011810302734, -0.08617375046014786, 0.3794281780719757, 0.3197903633117676, 0.16575418412685394, 0.12612494826316833, -0.03680258244276047, 0.15446390211582184, 0.029570039361715317, 0.2415485829114914, -0.08041774481534958, 0.011800624430179596, 0.021549388766288757, 0.21211330592632294, -0.2936365604400635, 0.1434447318315506, -0.1580766886472702, 0.05971314758062363, -0.1213337704539299, 0.06289366632699966, 0.026416918262839317, -0.09188656508922577, 0.06359519809484482, 0.0924893319606781, -0.2721809148788452, -0.584722638130188, 0.335066020488739, 0.054401058703660965, 0.16396315395832062, 0.33371710777282715, -0.0001032296204357408, 0.16075119376182556, 0.38302290439605713, 0.022593876346945763, -0.44388383626937866, -0.07536187767982483, -0.26004165410995483, -0.16993080079555511, 0.1725027859210968, -0.25095129013061523, -0.12711602449417114, -0.1427581012248993, 0.013318212702870369, -0.1045699268579483, 0.4266459345817566, 0.5949546098709106, 0.30871081352233887, 0.23504742980003357, 0.2211330384016037, -0.22608186304569244, -0.09386838227510452, -0.052860140800476074, -0.04942180588841438, 0.3206467628479004, -0.1541193574666977, -0.05261262506246567, -0.02112741768360138, 0.14842848479747772, -0.03307441994547844, 0.13176921010017395, 0.18531396985054016, -0.13622337579727173, 0.21925851702690125, -0.23437988758087158, 0.27890169620513916, 0.13475880026817322, 0.3769879937171936, -0.2704373598098755, -0.19390399754047394, -0.06638984382152557, 0.01339737605303526, -0.11530476063489914, 0.2672588527202606, -0.022716669365763664, -0.25617730617523193, 0.131523996591568, 0.11522999405860901, -0.04203109070658684, -0.2920095920562744, 0.12141962349414825, -0.24739685654640198, 0.3689368963241577, -0.1031118631362915, 0.13387876749038696, 0.1406414806842804, -0.2849050760269165, 0.37635621428489685, -0.2655765414237976, -0.06308223307132721, -0.024963125586509705, -0.36521056294441223, -0.01724846288561821, 0.061082713305950165, -0.18502819538116455, 0.017942719161510468, 0.2507583200931549, -0.1675678938627243, 0.0015169233083724976, 0.25561314821243286, 0.09414097666740417, 0.18764640390872955, -0.019130637869238853, -0.06842096894979477, 0.20506125688552856, 0.2798161506652832, 0.47944095730781555, -0.004610344767570496, -0.019334465265274048, 0.0774073600769043, -0.34519264101982117, 0.1494957059621811, 0.22174745798110962, 0.567645251750946, -0.04979636147618294, -0.3642166554927826, 0.08154668658971786, -0.07191116362810135, -0.06260807812213898, 0.10490117222070694, 0.5125088095664978, -0.17629531025886536, -0.020824700593948364, 0.08714088797569275, 0.025726713240146637, -0.1565680056810379, 0.03338560089468956, -0.26562216877937317, 0.02180519327521324, -0.017768844962120056, -0.06000291556119919, 0.12332065403461456, -0.21670275926589966, 0.08781304955482483, 0.024798564612865448, 0.03633837401866913, -0.013287167996168137, 0.17873923480510712, -0.22464551031589508, -0.03371722251176834, 0.36837372183799744, 0.07902899384498596, 0.12337412685155869, 0.18658331036567688, -0.3182583451271057, 0.005379058420658112, -0.021535731852054596, -0.1364102065563202, -0.3689146339893341, -0.29776912927627563, 0.35262781381607056, -0.09924278408288956, -0.025575101375579834, 0.12243421375751495, -0.1396498829126358, 0.11180750280618668, -0.18430888652801514, -0.006695009768009186, -0.3930794596672058, -0.014000914990901947, -0.23882554471492767, 0.4356186091899872, 0.5765902400016785, -0.2544671297073364, -0.019434671849012375, -0.10868406295776367, -0.3297649621963501, 0.1433624029159546, -0.0008666142821311951, -0.12094148993492126, 0.19599804282188416, -0.28333717584609985, 0.014080338180065155, 0.49333417415618896, -0.2732447683811188, -0.474529504776001, 0.27039727568626404, -0.07740749418735504, -0.06755497306585312, 0.14885017275810242, 0.02512665092945099, 0.17179274559020996, 0.1925433874130249, 0.21845458447933197, 0.09758360683917999, -0.13200554251670837, 0.013885846361517906, -0.11037731170654297, -0.28114446997642517, 0.08656047284603119, 0.2148655652999878, 0.09649267792701721, 0.037033047527074814, 0.2573038935661316, -0.00184605922549963, 0.2437434196472168, -0.07023587822914124, 0.0848950520157814, 0.11082535982131958, 0.24028468132019043, 0.22898128628730774, -0.08909215033054352, -0.09850538522005081, -0.36183515191078186, 0.16673895716667175, 0.0708521157503128, 0.27039164304733276, -0.2953435778617859, -0.006860436871647835, -0.33240023255348206, 0.022502923384308815, -0.31728580594062805, -0.23565977811813354, 0.32028260827064514, 0.31726884841918945, 0.08730931580066681, 0.1541065126657486, -0.16394288837909698, 0.3611122965812683, -0.08989561349153519, 0.1543644368648529, -0.3304591774940491, 0.3856510519981384, -0.3553180992603302, -0.19742940366268158, 0.16650941967964172, -0.045564793050289154, 0.28143274784088135, -0.1167604923248291, -0.18327581882476807, 0.2978259325027466, -0.10574948042631149, 0.1631053388118744, -0.06319212913513184, -0.08459518849849701, 0.024938391521573067, -0.24076853692531586, 0.10892955958843231, 0.16193987429141998, 0.2229107916355133, -0.016544997692108154, 0.0845857635140419, 0.3176095485687256, -0.044892970472574234, 0.2343650460243225, 0.1467713564634323, 0.13887624442577362, 0.4060240089893341, -0.01164884865283966, -0.05899541825056076, 0.022523418068885803, 0.05436503514647484, -0.15736283361911774, 0.24382849037647247, -0.2047213912010193, -0.15477782487869263, 0.10122086852788925, 0.2893354296684265, -0.032520271837711334, 0.11590393632650375, -0.035967543721199036, -0.1878465712070465, -0.021985270082950592, 0.11583959311246872, 0.3814058303833008, 0.45932918787002563, 0.09408609569072723, -0.13134706020355225, 0.2244415432214737, 0.011680632829666138, -0.09990620613098145, 0.3175111413002014, -0.025184661149978638, 0.024713071063160896, 0.22168231010437012, -0.008690577000379562, -0.0564422644674778, -0.3081168532371521, -0.42793428897857666, -0.2288101613521576, 0.38446250557899475, -0.2976519465446472, 0.1923934668302536, -0.10809343308210373, -0.40973860025405884, -0.12331992387771606, 0.16382671892642975, -0.17467229068279266, -0.27843406796455383, -0.2045120894908905, 0.2484969198703766, -0.05882059782743454, 0.19519250094890594, -0.3050101399421692, 0.005367591977119446, 0.20326417684555054, -0.06821650266647339, -0.05734206736087799, -0.11062809079885483, -0.06929831951856613, 0.1607012301683426, 0.16190719604492188, 0.08984002470970154, 0.4566486179828644, -0.1733340471982956, 0.008640380576252937, -0.2272704839706421, -0.180241197347641, 0.02042831853032112, 0.07066190242767334, 0.09588895738124847, 0.4718349277973175, 0.40233659744262695, 0.12964175641536713, -0.41608598828315735, 0.33165156841278076, -0.11554189026355743, -0.09533380717039108, 0.04980969429016113, -0.10124868154525757, 0.05745996907353401, -0.017537793144583702, -0.47790756821632385, -0.4305971562862396, -0.417904794216156, 0.04958360642194748, 0.09444697201251984, 0.16381670534610748, 0.15722064673900604, 0.0943632423877716, 0.24086521565914154, -0.029409391805529594, 0.049974918365478516, -0.19508130848407745, -0.2628127634525299, 0.20030711591243744, -0.1548718810081482, -0.38773366808891296, 0.10665526986122131, -0.022867638617753983, 0.19818280637264252, -0.24593068659305573, -0.5698670744895935, -0.3658425807952881, -0.1819877028465271, 0.3429219722747803, -0.06426743417978287, -0.09800422191619873, 0.2897352874279022, 0.10942770540714264, -0.15102149546146393, -0.0023643821477890015, -0.36758020520210266, -0.035495735704898834, 0.033393144607543945, 0.0989801362156868, -0.07440481334924698, 0.5484480261802673, -0.14929209649562836, 0.4120691418647766, 0.2601547837257385, -0.024745773524045944, 0.2816317081451416, -0.19542762637138367, 0.2761998176574707, -0.10086288303136826, -0.4945629835128784, 0.11307155340909958, 0.04321661591529846, 0.022199183702468872, 0.07547593116760254, -0.1758335530757904, -0.010104279965162277, -0.29609423875808716, -0.005741080269217491, -0.19989478588104248, -0.21228250861167908, 0.023286091163754463, -0.17517401278018951, 0.029130931943655014, -0.07884710282087326, 0.011278778314590454, -0.2012251317501068, 0.034038688987493515, -0.07094015181064606, 0.3898422122001648, -0.09143074601888657, -0.041496921330690384, -0.3715040385723114, -0.07634564489126205, -0.4782915711402893, 0.23800428211688995, -0.01079943310469389, 0.3943248689174652, -0.2544143795967102, -0.056836627423763275, 0.05750706419348717, -0.15795692801475525, 0.27253299951553345, -0.18893681466579437, 0.07362455129623413, 0.25908249616622925, 0.11488988995552063, -0.23266500234603882, -0.09543201327323914, -0.1666531264781952, 0.21304595470428467, 0.2680742144584656, 0.1405576467514038, -0.2034698724746704, -0.09085135161876678, 0.2623945474624634, 0.05321227386593819, -0.2037949115037918, 0.026601672172546387, -0.2134416252374649, -0.4743490219116211, -0.28185147047042847, -0.02044013887643814, -0.19123739004135132, 0.13356685638427734, 0.054986581206321716, 0.028545182198286057, -0.02058611623942852, -0.027279898524284363, -0.04097677767276764, 0.20942392945289612, -0.06918802857398987, -0.13099405169487, 0.33587828278541565, 0.1157035306096077, 0.14828768372535706, 0.4378654360771179, 0.6769539713859558, -0.06942479312419891, -0.6899101734161377, -0.08096132427453995, 0.05186156928539276, -0.04518838971853256, 0.060945361852645874, -0.12791433930397034, 0.08608309179544449, 0.0432819239795208, 0.369365394115448, -0.1242099180817604, 0.13195709884166718, 0.3456195890903473, 0.0634787529706955, -0.47484567761421204, -0.4151923656463623, -0.027486585080623627, -0.22988884150981903, -0.08218257129192352, -0.03614019602537155, 0.10754436999559402, -0.19860099256038666, 0.3165297508239746, -0.324916273355484, 0.7054336071014404, 0.23484815657138824, -0.07464157044887543, 0.3237813115119934, -0.1675439476966858, 0.5478764176368713, -0.204676553606987, 0.04348379373550415, -0.2822026312351227, -0.13224294781684875, 0.04542713612318039, -0.13459350168704987, 0.3515821397304535, -0.2074664682149887, -0.32456880807876587, 0.2710912227630615, -0.051980067044496536, 0.06324523687362671, -0.04643743485212326, 0.22152206301689148, -0.25270164012908936, 0.07965713739395142, -0.26683786511421204, 0.31411391496658325, -0.11928783357143402, 0.3367063105106354, -0.049405716359615326, -0.21087081730365753, 0.04482939466834068, -0.39890432357788086, -0.18250590562820435, 0.12532156705856323, -0.3104631006717682, 0.13671359419822693, -0.028299149125814438, -0.18662846088409424, 0.016066230833530426, 0.03173941373825073, 0.2939416766166687, -0.10412974655628204, -0.07512735575437546, 0.16903477907180786, -0.07051654905080795, 0.012376765720546246, -0.05345279350876808, -0.02535068243741989, 0.16553659737110138, -0.20674949884414673, -0.37196776270866394, 0.2592321038246155, 0.03252951800823212, -0.3715866804122925, 0.2193281054496765, 0.11767765879631042, 0.12852130830287933, -0.3902324438095093, 0.16905826330184937, -0.24468758702278137, -0.061654232442379, -0.2952107787132263, 0.2518807053565979, 0.003918066620826721, -0.07925836741924286, 0.1976795196533203, 0.02413090132176876, -0.16659428179264069, -0.09168544411659241, 0.4564933776855469, -0.0018758662045001984, 0.036348529160022736, 0.46829551458358765, -0.022668736055493355, -0.2191784381866455, -0.3535013198852539, 0.036690376698970795, -0.10183554887771606, -0.36004289984703064, 0.0033633513376116753, -0.07206699997186661, 0.12979911267757416, 0.07709703594446182, 0.009586744010448456, 0.13004373013973236, 0.1391843557357788, 0.009385205805301666, -0.5026987195014954, -0.281522661447525, -0.11566789448261261, 0.02741304598748684, 0.20440642535686493, 0.10248570889234543, 0.26554808020591736, -0.08447431772947311, -0.04026050865650177, -0.43074676394462585, 0.07768478244543076, -0.3320925831794739, 0.13614238798618317, 0.23702400922775269, -0.18191343545913696, 0.16685888171195984, -0.08885900676250458, 0.30694693326950073, -0.09228302538394928, -0.2236817479133606, -0.3488816022872925, 0.05398629978299141, 0.06806686520576477, -0.002536127343773842, -0.3869313895702362, -0.2209596186876297, -0.13488373160362244, -0.09172537922859192, 0.06153876706957817, 0.12691131234169006, 0.07088462263345718, -0.1991495043039322, 0.08131840825080872, -0.04681245610117912, 0.06579265743494034, -0.06458502262830734, 0.28256869316101074, -0.1248583048582077, 0.3672303557395935, -0.10082460939884186, 0.3301144540309906, -0.2541356086730957, -0.09607874602079391, -0.0724378377199173, 0.18560457229614258, -0.023695282638072968, 0.06271940469741821, 0.4409429728984833, -0.1987115889787674, -0.16622811555862427, -0.0558096207678318, 0.2913615107536316, 0.4696551263332367, -0.3229622542858124, 0.1365726739168167, 0.04498291015625, 0.35542094707489014, -0.19389335811138153, -0.015036260709166527, 0.16635127365589142, 0.003953883890062571, 0.1663465052843094, 0.010652832686901093, -0.11713787913322449, -0.168007493019104, 0.05114069953560829, 0.11510490626096725, 0.45473161339759827, 0.03746774047613144, 0.24979352951049805, 0.5506367683410645, -0.07583983987569809, -0.07649138569831848, 0.21843625605106354, 0.0582549162209034, 0.14172376692295074, 0.5635432004928589, -0.281453937292099, 0.3456496298313141, 0.015260770916938782, -0.0004700608551502228, 0.1758257895708084, -0.32204917073249817, 0.13624697923660278, 0.026183314621448517, -0.3334971070289612, -0.26328688859939575, 0.06703495234251022, 0.1029893085360527, -0.25067195296287537, -0.131000354886055, -0.25231286883354187, 0.06610699743032455, -0.15473401546478271, -0.01915663480758667, -0.0078113991767168045, -0.09203285723924637, -0.061468496918678284, -0.10292892158031464, 0.24075086414813995, -0.07614491879940033, 0.14706170558929443, 0.0810859203338623, -0.13731543719768524, -0.18899278342723846, -0.18141362071037292, 0.1730409860610962, 0.043196823447942734, -0.1138739138841629, 0.11608976125717163, 0.4162253737449646, 0.01144273579120636, -0.05170862004160881, 0.4485643208026886, 0.702462375164032, 0.2506975531578064, -0.018002774566411972, 0.2781977653503418, 0.06516459584236145, -0.17157018184661865, -0.12165689468383789, -0.046233952045440674, -0.09360131621360779, 0.0901762843132019, 0.3595931828022003, 0.3441754877567291, -0.22940677404403687, 0.1580887883901596, -0.07402712106704712, -0.0738184005022049, -0.1520429104566574, 0.14567066729068756, -0.12481145560741425, -0.07204680144786835, -0.2353319227695465, 0.04140959307551384, -0.3682883679866791, -0.20324689149856567, 0.2662021517753601, -0.11191675066947937, 0.3393988311290741, -0.21849390864372253, 0.13208314776420593, -0.20510709285736084, 0.5254537463188171, 0.08565986156463623, 0.24236181378364563, -0.15193188190460205, -0.11827370524406433, -0.4373200833797455, 0.09705429524183273, -0.07055534422397614, -0.06502677500247955, -0.2627158463001251, 0.18110208213329315, -0.2009328007698059, 0.17786867916584015, 0.25175827741622925, 0.15699288249015808, 0.13090211153030396, 0.18345515429973602, -0.1841634213924408, -0.20234894752502441, 0.05178641527891159, -0.06125926226377487, -0.0073996782302856445, -0.3829692006111145, 0.32222309708595276, -0.25583821535110474, 0.18965771794319153, -0.0419958159327507, -0.1358308345079422, 0.11959818005561829, -0.07493247091770172, 0.5592901706695557, 0.2914411127567291, 0.6465470790863037, -0.11118610203266144, -0.142621710896492, -0.056199345737695694, -0.2643938660621643, -0.03560900315642357, 0.18495780229568481, 0.22059057652950287, 0.21219471096992493, 0.07592111825942993, -0.10848771035671234, -0.27053719758987427, 0.44412949681282043, -0.06700029224157333, -0.011239816434681416, -0.2124057114124298, 0.10696424543857574, -0.037700191140174866, 0.1096092015504837, -0.09198852628469467, -0.16684117913246155, -0.002439212054014206, 0.08738158643245697, -0.27115491032600403, -0.3653767704963684, 0.39064985513687134, -0.11452458798885345, -0.058703694492578506, -0.27430975437164307, 0.31200873851776123, -0.1287277638912201, 0.20381605625152588, -0.5106652975082397, 0.2680850625038147, 0.3385544419288635, -0.11100383847951889, -0.2565121352672577, 0.2415071278810501, -0.06120073422789574, 0.1871722936630249, 0.042391423135995865, 0.24523118138313293, -0.00020064227283000946, -0.1311194747686386, 0.1252480298280716, -0.08632243424654007 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
I guess the cache got corrupted due to a previous issue with Google Drive service. The cache should be regenerated, e.g. by passing `download_mode="force_redownload"`. CC: @severo
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
26
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No I guess the cache got corrupted due to a previous issue with Google Drive service. The cache should be regenerated, e.g. by passing `download_mode="force_redownload"`. CC: @severo
[ -0.3001445531845093, 0.10037173330783844, -0.02951088361442089, 0.2527269124984741, -0.036571308970451355, 0.4788869321346283, 0.3518632650375366, 0.1342160701751709, -0.10761050879955292, 0.08160555362701416, 0.018579868599772453, -0.06810785830020905, -0.12971898913383484, 0.1330219805240631, -0.054589562118053436, -0.05317722260951996, 0.03629808872938156, 0.012672804296016693, 0.06453855335712433, 0.15209965407848358, -0.32870522141456604, 0.15236346423625946, -0.12585553526878357, -0.16252745687961578, -0.18896308541297913, -0.24083974957466125, 0.05094079673290253, -0.07644545286893845, -0.24108318984508514, -0.24812135100364685, 0.02585492469370365, 0.09169422090053558, 0.07612895965576172, 0.28625187277793884, -0.00011086770246038213, 0.14601096510887146, 0.5770376920700073, 0.09522824734449387, -0.40963155031204224, -0.17812152206897736, 0.11098403483629227, -0.06402184814214706, 0.06561700999736786, -0.04704020917415619, -0.2066574990749359, -0.1666979193687439, 0.05640765652060509, -0.23848623037338257, 0.25633907318115234, 0.26552754640579224, 0.23972676694393158, 0.24728071689605713, 0.029273461550474167, -0.29634249210357666, -0.1173272654414177, -0.1658608615398407, -0.28524234890937805, 0.2716923654079437, -0.24654534459114075, 0.1303911954164505, 0.12967340648174286, 0.19656866788864136, 0.04843097925186157, 0.015030959621071815, -0.09183410555124283, 0.10512292385101318, -0.1604437530040741, -0.37156596779823303, 0.1897886097431183, -0.006721809506416321, 0.5617846250534058, -0.011014599353075027, -0.2454855889081955, 0.176600843667984, 0.23445959389209747, -0.17537596821784973, 0.2967876195907593, 0.18444229662418365, 0.14044862985610962, 0.2778818905353546, -0.40473634004592896, -0.19894689321517944, -0.063266322016716, 0.31832846999168396, -0.16039283573627472, 0.008987799286842346, -0.14158305525779724, 0.12230707705020905, -0.021287333220243454, -0.1049778163433075, 0.5157184600830078, -0.1721925288438797, -0.06392663717269897, 0.04988452419638634, -0.011733274906873703, -0.1290302574634552, 0.04330362007021904, 0.09844877570867538, -0.04370534420013428, 0.11613262444734573, -0.11338068544864655, -0.07214558869600296, -0.06356249004602432, 0.010656926780939102, 0.1103334128856659, 0.2751217186450958, 0.08133742958307266, 0.2554911971092224, 0.3578920364379883, 0.16529245674610138, 0.35961663722991943, -0.053910113871097565, -0.14042863249778748, 0.10712513327598572, -0.09322759509086609, -0.0819682776927948, 0.45109623670578003, -0.04023329168558121, -0.24181251227855682, 0.1712121218442917, -0.2220129370689392, -0.032124731689691544, -0.07127930223941803, 0.3751700818538666, -0.18750447034835815, -0.3492172062397003, -0.049913641065359116, 0.18139797449111938, 0.06450863927602768, -0.15907280147075653, -0.30805283784866333, -0.04391075298190117, -0.15577243268489838, 0.2528358995914459, 0.3908681869506836, -0.2719051241874695, 0.11195186525583267, -0.035432517528533936, 0.11774736642837524, -0.08825366199016571, -0.11072532087564468, 0.027716252952814102, -0.22581574320793152, 0.21853555738925934, 0.04105249419808388, 0.3443532884120941, 0.11775340139865875, 0.1806512176990509, 0.10352668911218643, 0.20601198077201843, -0.1977185308933258, -0.45571011304855347, 0.003416145220398903, 0.15467268228530884, -0.4183008074760437, -0.11218394339084625, -0.07049248367547989, 0.16042108833789825, -0.20961052179336548, -0.08341223001480103, -0.2386016845703125, 0.2705118954181671, -0.09683620184659958, -0.11735206842422485, 0.07677679508924484, 0.3635947108268738, -0.3849913775920868, 0.04759075492620468, -0.46737971901893616, -0.4734213650226593, 0.1199677512049675, 0.30184993147850037, -0.099810890853405, -0.14508184790611267, -0.3228721618652344, 0.05018472671508789, 0.1767573207616806, -0.005486026406288147, -0.8023154139518738, -0.03684639558196068, -0.14211678504943848, -0.008049268275499344, -0.07560356706380844, 0.11611340939998627, 0.0739755928516388, -0.14421513676643372, -0.14138993620872498, 0.4141315221786499, 0.043042585253715515, -0.02661324292421341, -0.2092331498861313, -0.3023833930492401, 0.2087438553571701, 0.17868320643901825, 0.27699604630470276, 0.2069009393453598, 0.10313480347394943, -0.24164865911006927, -0.0761634036898613, 0.19544193148612976, 0.01439250074326992, 0.18255633115768433, 0.09074276685714722, -0.15027454495429993, 0.13585440814495087, 0.1372162103652954, -0.5679868459701538, 0.07187189161777496, 0.17805889248847961, 0.028181828558444977, -0.15041901171207428, -0.12918594479560852, -0.262602835893631, 0.07017937302589417, -0.13776884973049164, -0.1789962351322174, 0.2244572937488556, 0.10236037522554398, -0.12493924796581268, 0.2711907625198364, 0.03092772886157036, 0.04895598441362381, -0.04389485716819763, -0.10871736705303192, -0.11792126297950745, 0.3618578016757965, -0.09350483119487762, -0.040986351668834686, 0.2035873979330063, -0.07740890234708786, 0.2939365804195404, -0.08377959579229355, -0.26641082763671875, 0.10353139042854309, -0.13083264231681824, 0.29182934761047363, 0.2929289638996124, 0.06931731104850769, 0.0885813981294632, -0.3968084454536438, 0.1386915147304535, 0.2722700238227844, -0.16875328123569489, -0.035843126475811005, -0.2935987710952759, 0.043827496469020844, 0.17480942606925964, -0.14225751161575317, -0.13141874969005585, 0.08864492177963257, 0.12718462944030762, 0.0016824491322040558, 0.16772280633449554, -0.23451797664165497, 0.1830429583787918, 0.012051299214363098, 0.5338987708091736, -0.16293399035930634, -0.22103628516197205, 0.1191416010260582, 0.2057209461927414, -0.21123455464839935, 0.03315535932779312, 0.11120688170194626, -0.41032734513282776, -0.27308210730552673, -0.24259057641029358, 0.27422067523002625, 0.2535567879676819, 0.07385376840829849, 0.25004616379737854, 0.2354702353477478, 0.18095922470092773, -0.13708806037902832, 0.11023713648319244, 0.07101747393608093, 0.04201321303844452, 0.12305565923452377, 0.26082736253738403, -0.026797249913215637, -0.48917725682258606, 0.26325803995132446, 0.4685598313808441, 0.41922545433044434, -0.1656617373228073, -0.09135326743125916, -0.17885258793830872, -0.086912602186203, 0.23012681305408478, -0.25405627489089966, -0.1784054934978485, -0.3257436752319336, 0.15542107820510864, 0.22707012295722961, 0.01267450675368309, 0.13482823967933655, 0.12195506691932678, 0.47951650619506836, 0.30652883648872375, 0.017577489838004112, -0.2787470817565918, -0.0005128444172441959, -0.08043703436851501, 0.13688154518604279, 0.36023736000061035, -0.2678503394126892, 0.27132341265678406, 0.06906934827566147, 0.05957436561584473, -0.7089739441871643, -0.28685134649276733, 0.04342902451753616, 0.03612706810235977, 0.6266728639602661, -0.18803924322128296, 0.33933165669441223, 0.16180537641048431, 0.10486803948879242, -0.04178288206458092, -0.21101044118404388, -0.2959505617618561, -0.0863000676035881, -0.11450643092393875, -0.08881746232509613, 0.002782754600048065, -0.3537243604660034, -0.2696407735347748, -0.20924179255962372, 0.17426732182502747, -0.19657999277114868, -0.06429473310709, 0.0015738708898425102, -0.04160590469837189, -0.1231507882475853, 0.19432884454727173, -0.11025945842266083, -0.5379711389541626, -0.3815452754497528, 0.41163793206214905, -0.5738166570663452, -0.5965695381164551, 0.25649121403694153, 0.11056135594844818, -0.15077804028987885, -0.10518325865268707, -0.5431583523750305, -0.2485460638999939, -0.10453025996685028, -0.20737719535827637, 0.04923291876912117, -0.5171292424201965, 0.08079864829778671, -0.10114181041717529, -0.06286699324846268, -0.06498141586780548, -0.329325407743454, -0.1781773567199707, -0.12953606247901917, 0.08452824503183365, -0.10596952587366104, 0.4432547092437744, -0.037822920829057693, 0.5717324018478394, 0.27857840061187744, 0.0316254124045372, 0.17055493593215942, -0.19061489403247833, 0.37313762307167053, -0.022705644369125366, -0.28905540704727173, -0.01331951655447483, 0.13089019060134888, -0.1853356957435608, 0.34920552372932434, -0.01488184928894043, -0.7280057072639465, -0.04402128607034683, -0.2733843922615051, -0.39657947421073914, -0.006763532757759094, -0.04797782748937607, 0.22301888465881348, 0.23208963871002197, 0.26986196637153625, 0.054219506680965424, -0.08428718149662018, -0.46559205651283264, 0.06242864951491356, 0.2920864224433899, 0.10222481191158295, 0.12926897406578064, 0.33095359802246094, 0.07909823954105377, -0.4765010476112366, 0.3582943081855774, -0.2448003590106964, 0.3861543536186218, -0.2327156364917755, 0.23135259747505188, 0.26779991388320923, -0.02713974192738533, 0.4921705722808838, -0.4117201864719391, 0.08366313576698303, 0.0568167008459568, 0.15896110236644745, -0.0017536729574203491, -0.21347706019878387, -0.21075770258903503, 0.19037367403507233, 0.08444905281066895, 0.5196394324302673, 0.18315386772155762, -0.1916303038597107, 0.6251744031906128, -0.04888339713215828, -0.2038532793521881, -0.3586031198501587, -0.06834014505147934, -0.09720464050769806, -0.14311407506465912, -0.20208591222763062, -0.26189881563186646, 0.09298979490995407, -0.0860559269785881, -0.052575383335351944, -0.12812760472297668, -0.006330590695142746, -0.12399695813655853, 0.012944571673870087, 0.29843205213546753, 0.18018357455730438, 0.3636232614517212, 0.5598951578140259, -0.035561077296733856, 0.2699556052684784, 0.5644018650054932, 0.19700773060321808, -0.13950124382972717, 0.3660873770713806, 0.01999320089817047, -0.23489391803741455, 0.3721756935119629, -0.30477967858314514, -0.12188798934221268, -0.0016203727573156357, 0.28850439190864563, -0.09550037235021591, 0.10178155452013016, 0.5060559511184692, -0.12304945290088654, -0.6048086881637573, -0.1517389714717865, 0.5762455463409424, 0.09904745221138, -0.027987800538539886, 0.2678116261959076, -0.1136501282453537, 0.11342386156320572, -0.013911623507738113, -0.07091119140386581, 0.7619307637214661, -0.004516109824180603, -0.16536089777946472, 0.29250094294548035, 0.19666741788387299, 0.1914348155260086, -0.2597794234752655, 0.1361602544784546, -0.12632891535758972, -0.4885149300098419, -0.16790257394313812, -0.07254719734191895, 0.15451177954673767, 0.17895692586898804, -0.03952554613351822, 0.011645692400634289, -0.07054609805345535, 0.20809492468833923, -0.022100621834397316, 0.25903019309043884, -0.05071786046028137, 0.11667130887508392, 0.27286896109580994, 0.22948992252349854, -0.1043204814195633, 0.21399223804473877, -0.16350945830345154, -0.07873553782701492, 0.017975155264139175, -0.02581704780459404, -0.5983508825302124, 0.0695403516292572, -0.09145399183034897, 0.279330849647522, -0.15053732693195343, -0.24063166975975037, 0.05545258894562721, 0.0719652771949768, 0.22770005464553833, 0.1766556352376938, -0.4308982193470001, 0.28587764501571655, -0.3468961715698242, -0.29857227206230164, -0.38661569356918335, 0.02319100871682167, 0.19521375000476837, -0.13961338996887207, -0.19236226379871368, 0.009878594428300858, 0.030463583767414093, -0.14327669143676758, -0.33076053857803345, -0.04358351230621338, -0.24552251398563385, -0.08283313363790512, -0.19220590591430664, -0.06368909776210785, -0.1051933765411377, -0.1155836284160614, 0.15332534909248352, 0.038898780941963196, 0.15330372750759125, -0.03625793755054474, 0.0676589161157608, -0.19924816489219666, -0.16185609996318817, 0.3508848547935486, 0.0616413839161396, -0.42058873176574707, 0.47505420446395874, 0.12602177262306213, -0.3094172477722168, -0.13342708349227905, 0.07495179027318954, 0.01428036205470562, -0.13109464943408966, 0.1192287728190422, -0.1663331687450409, 0.4167335629463196, 0.1055615246295929, 0.2135992795228958, 0.1316343992948532, 0.06313800066709518, -0.12214559316635132, -0.5720621943473816, 0.018561067059636116, 0.04812052100896835, -0.25917795300483704, 0.34820297360420227, -0.12174064666032791, -0.006486555561423302, 0.18075941503047943, 0.030261486768722534, -0.3195415437221527, 0.23705945909023285, -0.11978848278522491, -0.14859594404697418, 0.27498525381088257, 0.025503721088171005, 0.534071683883667, -0.05498654767870903, 0.12140008807182312, -0.0013443343341350555, -0.3521379828453064, -0.2571369409561157, 0.045005012303590775, 0.1128094345331192, 0.0507960319519043, 0.036498069763183594, 0.054323818534612656, -0.13304486870765686, -0.09655243158340454, 0.11947426944971085, 0.19993174076080322, 0.020653847604990005, 0.09076102077960968, -0.28230008482933044, 0.09908770024776459, -0.1440468430519104, 0.08833129703998566, 0.012428872287273407, 0.03347320109605789, 0.4316862225532532, -0.03483333811163902, 0.20729747414588928, 0.13366058468818665, 0.0811915248632431, -0.029673704877495766, -0.12252982705831528, -0.02395027130842209, 0.17375749349594116, 0.19402948021888733, -0.34910762310028076, 0.16848500072956085, 0.17637716233730316, 0.20074984431266785, 0.00832604244351387, -0.3800148367881775, -0.0615888312458992, 0.30897730588912964, 0.22145721316337585, -0.3259369134902954, -0.10629700124263763, 0.29881352186203003, 0.012796923518180847, -0.042465921491384506, -0.13141599297523499, 0.12083864212036133, 0.3864598870277405, -0.010820098221302032, 0.13934820890426636, 0.5568742752075195, -0.03534381464123726, 0.3280089497566223, 0.015717152506113052, -0.1115056574344635, 0.022285275161266327, 0.26632827520370483, 0.08666744828224182, -0.12600073218345642, 0.5893325805664062, -0.04200460761785507, -0.06793969869613647, 0.11625774204730988, 0.24676311016082764, 0.11265779286623001, -0.49510595202445984, 0.32425791025161743, 0.08210916817188263, -0.23751863837242126, 0.24997830390930176, 0.021375596523284912, 0.09402026981115341, -0.027506519109010696, 0.15366151928901672, -0.5776537656784058, 0.3209691643714905, 0.028521345928311348, 0.17539292573928833, 0.18482407927513123, -0.19281922280788422, 0.02454623579978943, 0.3231422007083893, 0.1619197130203247, -0.2717520594596863, 0.06999292224645615, 0.32220274209976196, -0.3757033944129944, -0.0028607305139303207, 0.11830099672079086, 0.17747759819030762, 0.06946912407875061, -0.275980681180954, 0.21845820546150208, -0.05424705147743225, -0.013278521597385406, -0.017256982624530792, 0.4541378319263458, 0.2783801257610321, 0.10871876031160355, 0.11615210771560669, 0.17440907657146454, 0.02890542335808277, -0.21444253623485565, 0.11680474877357483, 0.22333306074142456, 0.4892679452896118, -0.1139347106218338, 0.035132065415382385, 0.16042253375053406, -0.1953127235174179, 0.36800119280815125, 0.03390593081712723, 0.25347059965133667, -0.14430111646652222, 0.03295406699180603, -0.38923537731170654, -0.010910961776971817, -0.20065352320671082, -0.3953433632850647, -0.33238789439201355, -0.04519244283437729, 0.39139771461486816, -0.003733176039531827, 0.10735566169023514, -0.15036268532276154, 0.08456044644117355, 0.040012821555137634, 0.49855566024780273, 0.2868838608264923, 0.25807681679725647, -0.16264458000659943, -0.3849976062774658, -0.4396677613258362, 0.27616092562675476, -0.042647507041692734, 0.48793068528175354, 0.08618530631065369, -0.06231191009283066, -0.1452435553073883, 0.23470084369182587, 0.42381995916366577, 0.33104845881462097, -0.0749213695526123, 0.27676230669021606, -0.27636852860450745, 0.08493548631668091, 0.3989919424057007, -0.14173313975334167, -0.14888665080070496, -0.19531360268592834, 0.13610008358955383, -0.2522141635417938, -0.011161301285028458, -0.18486246466636658, 0.07435178756713867, -0.26905351877212524, 0.0888555571436882, 0.5317472219467163, 0.202576145529747, 0.5348266959190369, 0.08905826508998871, -0.054086796939373016, -0.540985643863678, -0.33219417929649353, -0.07953425496816635, 0.06274238228797913, 0.19146838784217834, 0.25052201747894287, -0.0370393842458725, -0.39028891921043396, -0.11488484591245651, -0.015110073611140251, -0.12319895625114441, 0.14209333062171936, -0.3997487425804138, 0.0017642639577388763, -0.2176513671875, 0.09136426448822021, 0.21867060661315918, 0.11269979178905487, 0.06839408725500107, 0.012210352346301079, -0.16636472940444946, -0.23588940501213074, 0.2702258229255676, -0.40131694078445435, -0.16123174130916595, 0.1810166835784912, -0.027798205614089966, 0.059298399835824966, -0.10855347663164139, -0.44493934512138367, 0.15977096557617188, 0.2665718197822571, -0.07126609236001968, 0.05699217692017555, 0.28011879324913025, 0.13354583084583282, -0.061022043228149414, 0.014026723802089691, 0.5735371112823486, 0.31553006172180176, -0.18632560968399048, 0.09554898738861084, -0.17455743253231049 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Note that the dataset preview uses its own cache, not `datasets`' cache. So `download_mode="force_redownload"` doesn't help. But yes indeed the cache must be refreshed. The CNN Dailymail dataste is currently hosted on Google Drive, which is an unreliable host and we've had many issues with it. Unless we found another most reliable host for the data, we will keep running into issues from time to time. At Hugging Face we're not allowed to host the CNN Dailymail data by ourselves AFAIK
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
81
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Note that the dataset preview uses its own cache, not `datasets`' cache. So `download_mode="force_redownload"` doesn't help. But yes indeed the cache must be refreshed. The CNN Dailymail dataste is currently hosted on Google Drive, which is an unreliable host and we've had many issues with it. Unless we found another most reliable host for the data, we will keep running into issues from time to time. At Hugging Face we're not allowed to host the CNN Dailymail data by ourselves AFAIK
[ -0.28775128722190857, -0.07821327447891235, 0.025702621787786484, 0.19938838481903076, -0.051407456398010254, 0.40687084197998047, 0.21872003376483917, 0.0937289148569107, -0.014024986885488033, -0.09562815725803375, -0.07784461230039597, 0.009628725238144398, -0.15789379179477692, 0.10014068335294724, -0.05305495858192444, 0.11212129890918732, 0.05010676756501198, -0.00004947185516357422, -0.06946572661399841, 0.07641570270061493, -0.33274951577186584, 0.08367864042520523, -0.16716480255126953, -0.19432123005390167, -0.19411908090114594, -0.13631927967071533, -0.002439809963107109, -0.06272715330123901, -0.10077250003814697, -0.34476184844970703, 0.1500149369239807, 0.10576483607292175, 0.05427815765142441, 0.2984201908111572, -0.00011038743832614273, 0.17199476063251495, 0.5493026375770569, 0.16668079793453217, -0.4551246464252472, -0.2572416663169861, 0.16596460342407227, -0.18033413589000702, 0.07729388028383255, 0.011038757860660553, -0.24301499128341675, -0.1408826857805252, -0.019723428413271904, -0.2719181478023529, 0.42131996154785156, 0.2056943029165268, 0.24834664165973663, 0.3528939187526703, -0.03460635244846344, -0.2374885380268097, -0.34716933965682983, -0.025158517062664032, -0.263245165348053, 0.23560597002506256, -0.31248390674591064, 0.1292857825756073, 0.15946868062019348, 0.3620127737522125, 0.02141082100570202, -0.05702022835612297, 0.0008672960102558136, -0.11138582974672318, -0.17171910405158997, -0.3720816671848297, 0.15056681632995605, 0.06284943222999573, 0.4738237261772156, -0.017615005373954773, -0.3095625638961792, 0.08022847026586533, 0.18240730464458466, -0.0644042044878006, 0.19013279676437378, 0.12512390315532684, 0.03245018050074577, 0.3181777000427246, -0.3445433974266052, -0.3315848708152771, -0.03586288541555405, 0.32060104608535767, -0.10234969109296799, 0.06360048055648804, -0.13431653380393982, 0.1716400533914566, 0.014144431799650192, -0.09746935963630676, 0.4572312533855438, -0.1492505818605423, 0.072707399725914, 0.009020982310175896, -0.00321376696228981, -0.04450037702918053, 0.059755243360996246, 0.027455009520053864, -0.10216669738292694, 0.10061182081699371, -0.12927523255348206, 0.0482039749622345, 0.028599221259355545, -0.002737749367952347, 0.13557089865207672, 0.2047310620546341, 0.22288522124290466, 0.3411672115325928, 0.3380826711654663, 0.23009680211544037, 0.28613731265068054, -0.11204864829778671, -0.19179022312164307, 0.1263725757598877, -0.09507834911346436, -0.24932792782783508, 0.4818762540817261, -0.08790914714336395, -0.28238561749458313, 0.2598664462566376, -0.2596723139286041, 0.05290292203426361, 0.02680068649351597, 0.4836394190788269, -0.26629161834716797, -0.16271623969078064, 0.0052899084985256195, 0.10545358806848526, -0.04144769906997681, -0.2572663426399231, -0.28629881143569946, -0.1986089050769806, -0.19745109975337982, 0.3780371844768524, 0.3128701150417328, -0.2929092347621918, 0.16347989439964294, 0.04340379685163498, 0.2740854024887085, -0.16768357157707214, -0.22024407982826233, 0.18222872912883759, -0.13925385475158691, 0.24922913312911987, -0.17690300941467285, 0.4302390217781067, 0.1456276774406433, 0.20449064671993256, 0.11747627705335617, 0.2618274986743927, -0.15022119879722595, -0.502464234828949, 0.06189486384391785, 0.13318347930908203, -0.44082629680633545, -0.11962372064590454, 0.07555187493562698, 0.12702998518943787, -0.1462690234184265, -0.027063317596912384, -0.1607544720172882, 0.18225587904453278, -0.11335393786430359, -0.051553212106227875, 0.13921356201171875, 0.5039596557617188, -0.370514452457428, -0.02941669151186943, -0.3770177662372589, -0.39586251974105835, 0.07341630756855011, 0.22471454739570618, -0.23053720593452454, -0.2819024920463562, -0.17888392508029938, -0.0669209212064743, 0.1264968365430832, -0.02413850836455822, -0.7376983165740967, -0.025527382269501686, -0.11851680278778076, 0.19604210555553436, -0.13222607970237732, 0.1991739720106125, -0.1293008178472519, -0.1861761212348938, -0.28484925627708435, 0.34238582849502563, 0.07578865438699722, -0.036654531955718994, -0.3420327305793762, -0.22452639043331146, 0.18768297135829926, 0.14337418973445892, 0.17095954716205597, 0.19918981194496155, 0.010209836065769196, -0.01339160930365324, 0.01680908352136612, 0.28148555755615234, -0.04957854002714157, 0.09827712923288345, 0.0687616616487503, 0.0006530433893203735, 0.05857383832335472, 0.1526642143726349, -0.5277035236358643, 0.042361266911029816, 0.22811251878738403, 0.05156206339597702, -0.09425581991672516, -0.1854325383901596, -0.3599238395690918, 0.15807904303073883, -0.2655128538608551, -0.32893115282058716, 0.161079540848732, 0.09940148890018463, -0.14152826368808746, 0.21912316977977753, -0.12677982449531555, 0.20917057991027832, -0.13683077692985535, -0.00656530074775219, -0.16462458670139313, 0.25536981225013733, 0.0011428836733102798, 0.06867848336696625, 0.13661247491836548, 0.07332893460988998, 0.3332344591617584, 0.01513636577874422, -0.21008196473121643, 0.29073062539100647, -0.1601075530052185, 0.17764094471931458, 0.21591705083847046, -0.09152631461620331, 0.14129142463207245, -0.40800076723098755, 0.18462181091308594, 0.2687523066997528, -0.14489313960075378, -0.039575859904289246, -0.10252190381288528, 0.11135078221559525, 0.14943598210811615, -0.048583097755908966, -0.0942939817905426, 0.0726320669054985, 0.041673868894577026, 0.07747557759284973, 0.0232893917709589, -0.28660011291503906, 0.17375676333904266, -0.23343603312969208, 0.47704392671585083, -0.12314163148403168, -0.27282437682151794, 0.10301341116428375, 0.03334642946720123, -0.16878758370876312, 0.017225004732608795, 0.20300430059432983, -0.4265902042388916, -0.25803327560424805, -0.2828125059604645, 0.17278426885604858, 0.1857227385044098, 0.01934349164366722, 0.1866767257452011, 0.3260332942008972, 0.11299601197242737, -0.1216050386428833, 0.10453877598047256, 0.08473747968673706, 0.061703477054834366, 0.036956191062927246, 0.22115488350391388, -0.04652755334973335, -0.5038295388221741, 0.29970988631248474, 0.3491114377975464, 0.3608790636062622, -0.2468426674604416, -0.04431407153606415, -0.27662336826324463, -0.18308156728744507, 0.17104651033878326, -0.36255234479904175, -0.2547198534011841, -0.404934287071228, 0.16553710401058197, 0.225637748837471, 0.02272140234708786, 0.18289531767368317, 0.030897192656993866, 0.5402102470397949, 0.2558996081352234, 0.13639125227928162, -0.22349974513053894, -0.012082865461707115, -0.21819597482681274, 0.0789751410484314, 0.3119773864746094, -0.2791770100593567, 0.29967615008354187, 0.08594717085361481, 0.04840608686208725, -0.5225775241851807, -0.3438037037849426, -0.04781639575958252, 0.12794984877109528, 0.6148025393486023, -0.20532113313674927, 0.35921621322631836, 0.13877937197685242, 0.12344972789287567, 0.06471658498048782, -0.18370579183101654, -0.16589879989624023, -0.040784768760204315, -0.015242227353155613, -0.061889756470918655, 0.06964458525180817, -0.3044247329235077, -0.3373871147632599, -0.26831960678100586, 0.1082465648651123, -0.31394413113594055, -0.06923124194145203, 0.17949610948562622, -0.04724087566137314, -0.22515533864498138, -0.10408665984869003, -0.061396874487400055, -0.5110851526260376, -0.45109644532203674, 0.36388513445854187, -0.5858356356620789, -0.6207177639007568, 0.20020782947540283, 0.19037924706935883, -0.05630756542086601, -0.25510507822036743, -0.6508640646934509, -0.26091626286506653, -0.09141450375318527, -0.27897122502326965, 0.09229272603988647, -0.4481835961341858, -0.06438334286212921, -0.17973513901233673, -0.08295723050832748, -0.09294465184211731, -0.30872640013694763, -0.1359533965587616, -0.30595505237579346, 0.12417618185281754, -0.14313888549804688, 0.3880225419998169, 0.11675812304019928, 0.5172449946403503, 0.4319860339164734, -0.06535208225250244, 0.21873480081558228, -0.1563253104686737, 0.4585845470428467, -0.0025783106684684753, -0.4618527293205261, -0.08828026056289673, 0.1585664600133896, -0.09943410754203796, 0.34274768829345703, 0.05721895396709442, -0.5873071551322937, -0.14158236980438232, -0.2146253138780594, -0.29037725925445557, -0.09398314356803894, -0.0670444443821907, 0.17216134071350098, 0.177638977766037, 0.34098389744758606, 0.13693839311599731, -0.07088033109903336, -0.47272905707359314, 0.0013748733326792717, 0.32449525594711304, 0.09510603547096252, 0.031175386160612106, 0.3404238820075989, 0.0752687081694603, -0.3754805326461792, 0.27794796228408813, -0.2880605459213257, 0.5858142375946045, -0.1576937586069107, 0.059421949088573456, 0.2824227809906006, 0.14383921027183533, 0.5374307036399841, -0.21222463250160217, -0.008803937584161758, -0.0022833142429590225, 0.02051280438899994, -0.18219506740570068, -0.1548263281583786, 0.08174438774585724, 0.22085298597812653, 0.05942128971219063, 0.47328513860702515, 0.15488481521606445, -0.22292715311050415, 0.5409234762191772, -0.009414113126695156, -0.24129359424114227, -0.5220701694488525, -0.07504201680421829, -0.02566889114677906, -0.1523910015821457, -0.10590875893831253, -0.30322131514549255, 0.058280009776353836, -0.019762573763728142, -0.04438525438308716, -0.05460887402296066, 0.02052537351846695, -0.08207263052463531, 0.06129533424973488, 0.1894126534461975, 0.2426694631576538, 0.4306088387966156, 0.599463939666748, -0.04182454198598862, 0.31650951504707336, 0.5480151176452637, 0.13851866126060486, -0.20843946933746338, 0.09996668249368668, 0.20433397591114044, -0.18806597590446472, 0.48035290837287903, -0.26289305090904236, -0.2075832486152649, 0.09198658168315887, 0.27469301223754883, -0.12327124923467636, 0.11528288573026657, 0.4886677861213684, -0.11227186769247055, -0.7001447081565857, -0.335502564907074, 0.592803955078125, 0.019085731357336044, 0.08082698285579681, 0.19226600229740143, -0.13737942278385162, 0.2131531834602356, -0.060566797852516174, -0.09910435229539871, 0.8416473269462585, 0.016572270542383194, -0.13686862587928772, 0.2904662787914276, 0.22759006917476654, 0.30445754528045654, -0.27320003509521484, 0.06701093912124634, -0.1028870940208435, -0.48107898235321045, -0.11021529138088226, 0.011387776583433151, 0.22182148694992065, 0.16395558416843414, 0.10895363986492157, 0.018226919695734978, -0.02336738631129265, 0.1283436417579651, 0.0008781068027019501, 0.22416332364082336, -0.06170741468667984, 0.07929648458957672, 0.16877104341983795, 0.21160255372524261, -0.08787935972213745, 0.31211721897125244, -0.11465411633253098, -0.11523722112178802, 0.07933475077152252, -0.016154343262314796, -0.589693546295166, 0.08593231439590454, -0.05350254476070404, 0.1759657859802246, -0.15462110936641693, -0.08935970813035965, 0.12252557277679443, 0.008199859410524368, 0.12466716766357422, 0.1897468864917755, -0.3577543795108795, 0.29722777009010315, -0.24433249235153198, -0.26583409309387207, -0.3055379092693329, 0.003758743405342102, 0.2632022798061371, -0.1702374517917633, -0.17835544049739838, 0.0006396248936653137, 0.07622940838336945, -0.08715718984603882, -0.27018147706985474, 0.021432053297758102, 0.008752431720495224, -0.18276071548461914, -0.16544313728809357, 0.06201756000518799, 0.011522028595209122, -0.21767960488796234, 0.15494561195373535, 0.007408648729324341, 0.05859116092324257, -0.06503771990537643, 0.09656788408756256, -0.2603408694267273, -0.17334605753421783, 0.46823620796203613, -0.05921151489019394, -0.4365993142127991, 0.43227753043174744, 0.2327132374048233, -0.41401636600494385, -0.1288445144891739, 0.1383778154850006, 0.09162700176239014, -0.23978641629219055, 0.1365402638912201, -0.07926836609840393, 0.48938822746276855, 0.11605111509561539, 0.2636307179927826, 0.059752918779850006, -0.06305501610040665, -0.15462450683116913, -0.5599329471588135, 0.0510866641998291, 0.008118599653244019, -0.1083565503358841, 0.32355502247810364, -0.1743135154247284, 0.10758979618549347, 0.09765980392694473, 0.11072513461112976, -0.3139709234237671, 0.10881198942661285, 0.056069545447826385, -0.12508630752563477, 0.11307132989168167, 0.11324029415845871, 0.5803636312484741, -0.060233693569898605, 0.08851921558380127, 0.029565926641225815, -0.3415306508541107, -0.23732030391693115, 0.06595438718795776, 0.16708776354789734, 0.08549278974533081, 0.015461585484445095, 0.04366626217961311, -0.11993253976106644, -0.08154340088367462, 0.07822047919034958, 0.12829086184501648, 0.09374264627695084, 0.012469034641981125, -0.19355662167072296, 0.1469036340713501, -0.06525164097547531, 0.179726704955101, 0.007107485085725784, -0.009570904076099396, 0.5081233978271484, 0.06409095972776413, 0.09744888544082642, -0.030525676906108856, 0.007139027118682861, -0.043802324682474136, -0.10342984646558762, -0.01548910140991211, 0.07837725430727005, 0.22268444299697876, -0.3824310898780823, 0.12955909967422485, 0.2934496998786926, 0.28872403502464294, 0.22877052426338196, -0.2864413559436798, -0.11981092393398285, 0.351798415184021, 0.16940735280513763, -0.3697136640548706, -0.0020486516878008842, 0.3712214231491089, 0.11935963481664658, -0.011988386511802673, -0.09157098084688187, 0.09096892178058624, 0.32591211795806885, 0.0510072335600853, 0.11950793117284775, 0.44422420859336853, -0.00976496934890747, 0.4191804826259613, 0.21983028948307037, -0.12826679646968842, 0.07143205404281616, 0.23265402019023895, 0.16126304864883423, -0.024790756404399872, 0.5530967712402344, -0.10948651283979416, 0.023361628875136375, 0.2570172846317291, 0.3736081123352051, 0.07015522569417953, -0.5810545682907104, 0.38950014114379883, 0.060366347432136536, -0.10466264188289642, 0.24842068552970886, -0.01376274973154068, 0.2565513253211975, 0.02533290535211563, 0.1432477980852127, -0.48200544714927673, 0.4729459285736084, 0.07429256290197372, 0.11790429055690765, 0.2196563184261322, -0.1867615282535553, -0.07805323600769043, 0.23592808842658997, 0.120393767952919, -0.34563082456588745, 0.0788906067609787, 0.26294568181037903, -0.3683587312698364, -0.17716144025325775, -0.06758000701665878, 0.10062135756015778, 0.10844404995441437, -0.21250924468040466, 0.1896742284297943, 0.12958279252052307, -0.004611372947692871, 0.1059952974319458, 0.3721160292625427, 0.27082201838493347, 0.271146684885025, 0.14263755083084106, 0.23732782900333405, 0.009275559335947037, -0.12677590548992157, 0.10748183727264404, 0.23389844596385956, 0.40721505880355835, -0.061136361211538315, 0.01817980781197548, 0.11345016956329346, -0.20852620899677277, 0.3562142252922058, -0.010113891214132309, 0.40381482243537903, -0.22108593583106995, 0.10624022781848907, -0.3078491687774658, 0.04836789518594742, -0.26386624574661255, -0.410080224275589, -0.3346083462238312, -0.020618628710508347, 0.5009057521820068, -0.0642329752445221, 0.08372630923986435, -0.2917117178440094, 0.09187516570091248, 0.07827768474817276, 0.48947980999946594, 0.3406916558742523, 0.10700695961713791, -0.162947416305542, -0.275598406791687, -0.49252966046333313, 0.26370567083358765, -0.05302481725811958, 0.36895182728767395, 0.11369994282722473, -0.13318409025669098, -0.029134951531887054, 0.27942579984664917, 0.3012852370738983, 0.1781737506389618, -0.05707927793264389, 0.3236892521381378, -0.1610577255487442, 0.12127287685871124, 0.1457880139350891, -0.06886228919029236, -0.03181115537881851, -0.18320134282112122, 0.1872907131910324, -0.30651313066482544, -0.06211169809103012, -0.08981975167989731, -0.022578872740268707, -0.23631097376346588, 0.04736004024744034, 0.5425313711166382, 0.13436688482761383, 0.3472069501876831, 0.20405244827270508, -0.15991297364234924, -0.5976513028144836, -0.31597086787223816, -0.14957332611083984, 0.13256141543388367, 0.18200547993183136, 0.14790117740631104, -0.07771065831184387, -0.46532681584358215, -0.20369529724121094, -0.07386142015457153, -0.08317600190639496, -0.0883747860789299, -0.34745505452156067, -0.07040337473154068, -0.1271684467792511, 0.09746108204126358, 0.22535067796707153, 0.2560111880302429, -0.08744992315769196, 0.06029472500085831, -0.15692086517810822, -0.3006545901298523, 0.47755733132362366, -0.4811716377735138, -0.03249477967619896, 0.1864784061908722, 0.01265738159418106, -0.014356277883052826, -0.24383017420768738, -0.47811073064804077, 0.1478545367717743, 0.2910664975643158, -0.007448643445968628, 0.10022659599781036, 0.25600045919418335, 0.015481001697480679, -0.06075780838727951, -0.032476793974637985, 0.6954702138900757, 0.303819477558136, -0.1931297481060028, 0.15721355378627777, -0.14791810512542725 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
I remove the tag dataset-viewer, since it's more an issue with the hosting on Google Drive
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
16
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No I remove the tag dataset-viewer, since it's more an issue with the hosting on Google Drive
[ -0.24904270470142365, -0.030645549297332764, -0.024633517488837242, 0.21047787368297577, -0.0485682487487793, 0.38475993275642395, 0.39278069138526917, 0.08987726271152496, -0.048035092651844025, 0.15831230580806732, 0.01445896178483963, -0.0029104941058903933, -0.21348413825035095, 0.2687583863735199, 0.056970641016960144, 0.050931304693222046, 0.10484432429075241, -0.014967650175094604, 0.008058890700340271, 0.096950963139534, -0.31639716029167175, 0.019129900261759758, -0.05661487206816673, -0.0946427583694458, -0.11831216514110565, -0.3115793764591217, 0.06782811880111694, -0.1698635220527649, -0.2007601261138916, -0.3205631971359253, -0.002707468345761299, 0.13096792995929718, -0.01584578864276409, 0.31487077474594116, -0.00011125379387522116, 0.25622886419296265, 0.45021867752075195, 0.16165314614772797, -0.4402189254760742, -0.22243471443653107, 0.081044502556324, -0.053888313472270966, 0.11955340206623077, -0.028431899845600128, -0.2815755009651184, -0.2661774158477783, 0.01982569321990013, -0.13217401504516602, 0.1318853795528412, 0.16753651201725006, 0.2402111291885376, 0.2953073978424072, -0.028958836570382118, -0.3258403241634369, -0.14360541105270386, 0.001675248146057129, -0.3594703674316406, 0.3434273302555084, -0.22600769996643066, 0.22255253791809082, 0.027291059494018555, 0.3213890492916107, 0.05425301939249039, 0.0019404161721467972, 0.02323051169514656, 0.020149605348706245, -0.2137598991394043, -0.3979610204696655, 0.14537350833415985, 0.013867795467376709, 0.5150507688522339, 0.011217746883630753, -0.22667324542999268, 0.10728149861097336, 0.24302884936332703, -0.09447088837623596, 0.29822489619255066, 0.19910183548927307, 0.06664514541625977, 0.27642303705215454, -0.34756287932395935, -0.2895822823047638, -0.045672520995140076, 0.3480743169784546, -0.14973503351211548, 0.24095763266086578, -0.14160753786563873, 0.18189087510108948, 0.010056685656309128, -0.07588525116443634, 0.38099950551986694, -0.180654376745224, 0.022828349843621254, 0.012867133133113384, 0.1540318727493286, -0.11215874552726746, 0.16254301369190216, 0.006219103932380676, -0.07052328437566757, 0.16470152139663696, -0.16010616719722748, -0.046692781150341034, -0.0574665367603302, 0.04459080845117569, 0.09699776768684387, 0.07321669161319733, 0.09432347118854523, 0.39180395007133484, 0.4631141424179077, 0.27186593413352966, 0.45051202178001404, -0.05176150053739548, -0.09303300082683563, 0.1192891076207161, -0.27813172340393066, -0.18662428855895996, 0.5686742663383484, 0.023483533412218094, -0.33748582005500793, 0.20463770627975464, -0.33525562286376953, 0.012054122984409332, -0.027300741523504257, 0.3828164041042328, -0.09944415092468262, -0.4633707106113434, -0.08689101040363312, 0.1463264524936676, 0.0653107538819313, -0.10023991763591766, -0.29998305439949036, -0.05399804189801216, -0.11176219582557678, 0.24837911128997803, 0.28479433059692383, -0.3395459055900574, 0.09872521460056305, 0.044908054172992706, 0.2642938494682312, -0.12769009172916412, -0.21993517875671387, 0.08796647191047668, -0.28050410747528076, 0.3189259469509125, 0.025914307683706284, 0.4175657331943512, 0.05443177744746208, 0.06389585137367249, 0.032803818583488464, 0.10688327252864838, -0.10129285603761673, -0.3770011067390442, -0.06470663845539093, 0.17536863684654236, -0.35403013229370117, -0.06991597265005112, -0.1211266741156578, 0.1650155484676361, -0.3382137715816498, -0.014418479055166245, -0.17131128907203674, 0.3539665937423706, -0.031984537839889526, -0.1339651346206665, 0.10976503044366837, 0.3155496120452881, -0.32184043526649475, -0.007802307605743408, -0.31446373462677, -0.5056057572364807, 0.0871957316994667, 0.2737220823764801, -0.16164278984069824, -0.04715555161237717, -0.327189177274704, 0.017951011657714844, 0.18518392741680145, -0.06307440996170044, -0.6642969846725464, 0.020538948476314545, -0.2532053589820862, 0.05064450949430466, 0.0015255734324455261, 0.06077059358358383, -0.001237555406987667, -0.1972617357969284, -0.19167634844779968, 0.2923216223716736, 0.11123558133840561, -0.03056068904697895, -0.22902435064315796, -0.25299888849258423, 0.15978127717971802, 0.2018740028142929, 0.18520194292068481, 0.14936643838882446, 0.13191676139831543, -0.2729756236076355, -0.037596628069877625, 0.12348121404647827, -0.0029304316267371178, 0.08635455369949341, 0.141386479139328, -0.06829795241355896, 0.04259685426950455, 0.1392788290977478, -0.5245830416679382, -0.04929027333855629, 0.3281361162662506, 0.13508902490139008, -0.2093200534582138, -0.3226269483566284, -0.36238160729408264, 0.11952207237482071, -0.18172357976436615, -0.21258017420768738, 0.18577679991722107, 0.07475674897432327, -0.25812578201293945, 0.3011360168457031, -0.022736849263310432, -0.009835416451096535, -0.1046045795083046, 0.02101602777838707, -0.0734330266714096, 0.29044148325920105, -0.1211523786187172, 0.044993843883275986, 0.2424599826335907, 0.017327696084976196, 0.3187030851840973, -0.11636699736118317, -0.1395891308784485, 0.09766897559165955, -0.20399163663387299, 0.33808842301368713, 0.4111946225166321, 0.0550781786441803, 0.19876421988010406, -0.4735758304595947, 0.15913178026676178, 0.2914484739303589, -0.1520831137895584, -0.07727482914924622, -0.19381776452064514, 0.07841603457927704, 0.1506843864917755, -0.09876417368650436, -0.12920646369457245, 0.09761671721935272, 0.11101672053337097, 0.10704988241195679, 0.05703425407409668, -0.2377459555864334, 0.23930218815803528, 0.07677046954631805, 0.5499404072761536, -0.16489823162555695, -0.44097426533699036, 0.027668669819831848, 0.06102479621767998, -0.26676496863365173, -0.025313585996627808, 0.20218545198440552, -0.40636658668518066, -0.08516044169664383, -0.1404309868812561, 0.14368735253810883, 0.13954828679561615, 0.0799534022808075, 0.21545526385307312, 0.31596091389656067, 0.18571367859840393, -0.17104564607143402, 0.21105492115020752, 0.10167418420314789, -0.06860450655221939, 0.08720748871564865, 0.17447501420974731, -0.06634838879108429, -0.45732128620147705, 0.1507369875907898, 0.3265986740589142, 0.32574978470802307, -0.27956247329711914, -0.050592515617609024, -0.2046116143465042, -0.22380918264389038, 0.13660410046577454, -0.386819452047348, -0.29716402292251587, -0.3341372311115265, 0.18532371520996094, 0.1822086125612259, -0.10666429996490479, 0.1656741499900818, 0.13682503998279572, 0.46463340520858765, 0.21973030269145966, 0.0736599937081337, -0.2397666871547699, 0.05642867833375931, -0.12618601322174072, 0.12404464185237885, 0.34521791338920593, -0.2919016182422638, 0.48428091406822205, 0.12200065702199936, 0.1039930135011673, -0.6351222991943359, -0.2794697880744934, 0.08077152818441391, 0.021946005523204803, 0.5913988947868347, -0.08766286075115204, 0.2888989746570587, 0.1982368379831314, 0.047000348567962646, 0.0020262598991394043, -0.013466324657201767, -0.19343982636928558, -0.17879603803157806, -0.12545165419578552, -0.023394037038087845, 0.034358348697423935, -0.37028902769088745, -0.28227972984313965, -0.2021256536245346, 0.19105315208435059, -0.23070265352725983, -0.025287523865699768, 0.070344939827919, 0.004636874422430992, -0.12359044700860977, 0.06942716240882874, -0.17082223296165466, -0.4559648334980011, -0.2853652536869049, 0.40440869331359863, -0.5112723112106323, -0.5605727434158325, 0.26320549845695496, 0.2163046896457672, -0.13223226368427277, -0.16579103469848633, -0.57682204246521, -0.19245439767837524, 0.005601292476058006, -0.13119156658649445, 0.07054507732391357, -0.3774491548538208, -0.05697718262672424, -0.09022146463394165, -0.10112704336643219, -0.07523085176944733, -0.27892211079597473, -0.1893400251865387, -0.31914183497428894, -0.006615400314331055, -0.050088830292224884, 0.39983105659484863, -0.08946370333433151, 0.6841116547584534, 0.3510211408138275, 0.06286299228668213, 0.23928864300251007, -0.2615247666835785, 0.36724215745925903, -0.013501793146133423, -0.396524041891098, -0.03726855665445328, 0.23563149571418762, -0.14528235793113708, 0.38877129554748535, -0.01610620692372322, -0.5673896074295044, -0.07022545486688614, -0.29009848833084106, -0.3419477939605713, -0.06559207290410995, -0.10390788316726685, 0.21756786108016968, 0.13788136839866638, 0.17320580780506134, 0.08876734226942062, 0.01469733938574791, -0.44928961992263794, 0.009486660361289978, 0.3769480586051941, 0.04600115120410919, 0.01206063013523817, 0.3361366093158722, 0.006683269515633583, -0.46142905950546265, 0.2951774597167969, -0.28197237849235535, 0.2785702645778656, -0.20551428198814392, 0.16091379523277283, 0.4141518473625183, 0.05029968172311783, 0.578853189945221, -0.2889024019241333, 0.05418865382671356, -0.0030218008905649185, 0.12258338928222656, -0.0214830432087183, -0.14290903508663177, -0.1977885514497757, 0.24144290387630463, 0.03005676530301571, 0.6724638342857361, 0.046598948538303375, -0.17557121813297272, 0.6872931718826294, -0.18677455186843872, -0.14569608867168427, -0.33139222860336304, -0.1493992805480957, -0.17682728171348572, -0.13811920583248138, -0.11829143017530441, -0.14447841048240662, 0.1264597326517105, -0.04232363402843475, -0.10928191244602203, -0.01578427292406559, -0.05454547703266144, 0.044195812195539474, 0.11644868552684784, 0.14397168159484863, 0.16509272158145905, 0.35810574889183044, 0.6146361827850342, 0.11907114088535309, 0.366714209318161, 0.5801855325698853, 0.24841070175170898, -0.24924057722091675, 0.24003607034683228, -0.030159320682287216, 0.008174806833267212, 0.45275935530662537, -0.2705751955509186, -0.08171113580465317, -0.06771283596754074, 0.3293473720550537, -0.2565262019634247, 0.10858670622110367, 0.5431642532348633, -0.13672785460948944, -0.721576452255249, -0.1901147961616516, 0.6506624221801758, 0.08977307379245758, -0.12884889543056488, 0.36224237084388733, 0.07996572554111481, -0.030987033620476723, -0.10752563923597336, -0.10751732438802719, 0.8571430444717407, 0.13266274333000183, -0.11941704154014587, 0.3358291983604431, -0.005542103201150894, 0.24209509789943695, -0.34104347229003906, 0.0633397325873375, -0.18154141306877136, -0.4316940903663635, -0.1924130916595459, -0.06343581527471542, 0.28749650716781616, 0.15108877420425415, -0.026885872706770897, 0.006156335584819317, -0.08235957473516464, 0.280522882938385, -0.00501365028321743, 0.36336854100227356, -0.03623390197753906, 0.10121722519397736, 0.13049012422561646, 0.19362734258174896, -0.12929169833660126, 0.27257344126701355, -0.1988588273525238, -0.05587103217840195, -0.02631363831460476, -0.14715731143951416, -0.5462190508842468, -0.011408239603042603, -0.1240810677409172, 0.16321997344493866, -0.08947527408599854, -0.2232808768749237, 0.19459611177444458, -0.019906576722860336, 0.09688868373632431, 0.18413923680782318, -0.3587804436683655, 0.20139425992965698, -0.3720685839653015, -0.17779119312763214, -0.4311142563819885, 0.05049358308315277, 0.09705142676830292, -0.1415131390094757, -0.15064528584480286, 0.008888985961675644, 0.09943237155675888, -0.0953882709145546, -0.40167689323425293, -0.09328378736972809, -0.25516486167907715, -0.2254340797662735, -0.03617722541093826, -0.10824045538902283, 0.06780491769313812, -0.17133210599422455, 0.14456479251384735, -0.11678376793861389, 0.11390247195959091, -0.09504783898591995, 0.2590414881706238, -0.2384985089302063, -0.17720232903957367, 0.3415672481060028, 0.013959277421236038, -0.34280988574028015, 0.46173495054244995, 0.08680088818073273, -0.45058953762054443, -0.16108940541744232, 0.25776225328445435, 0.08149909228086472, -0.13460378348827362, 0.12468823790550232, -0.10482057183980942, 0.35530638694763184, -0.01044572051614523, 0.22727282345294952, 0.20932498574256897, 0.008441813290119171, -0.08884623646736145, -0.4666917324066162, 0.1314760446548462, 0.07099658250808716, -0.1920803040266037, 0.33369180560112, -0.1792622208595276, 0.15323728322982788, 0.16075801849365234, -0.010342573747038841, -0.3235219717025757, 0.0844792053103447, -0.015212937258183956, -0.20210838317871094, 0.21369574964046478, 0.13145804405212402, 0.544517457485199, 0.011922650039196014, 0.14190024137496948, -0.11085152626037598, -0.31483134627342224, -0.2421029806137085, 0.046492401510477066, 0.11566279083490372, -0.004380503669381142, -0.0063288211822509766, 0.042377956211566925, -0.07421435415744781, -0.06417571008205414, 0.17225636541843414, 0.311461865901947, -0.0008370354771614075, 0.16329547762870789, -0.26998987793922424, 0.1730652004480362, -0.10116077214479446, 0.09857237339019775, -0.02219109982252121, 0.027844373136758804, 0.5924344062805176, 0.03199078142642975, 0.10638401657342911, 0.10255833715200424, 0.04442489147186279, -0.003523524384945631, -0.06164627522230148, 0.05726461857557297, 0.15316374599933624, 0.1296663135290146, -0.24983401596546173, 0.20757007598876953, 0.22974784672260284, 0.28001701831817627, 0.1590442806482315, -0.4522143304347992, -0.15481910109519958, 0.3244004249572754, 0.1918136030435562, -0.3245355486869812, -0.08016158640384674, 0.4045106768608093, 0.012385377660393715, -0.03604351729154587, -0.06156384199857712, 0.15884895622730255, 0.4432682394981384, -0.18055494129657745, 0.028507262468338013, 0.4788970947265625, 0.08501278609037399, 0.3525643050670624, 0.14749135076999664, -0.2336129993200302, 0.11902311444282532, 0.30740079283714294, 0.10853134095668793, -0.08136015385389328, 0.6534438133239746, -0.11721081286668777, 0.07632672041654587, 0.25997284054756165, 0.18557332456111908, 0.2014344036579132, -0.5131992697715759, 0.3382239043712616, 0.040162958204746246, -0.19898101687431335, 0.12596721947193146, 0.040650077164173126, 0.1699785590171814, -0.06467126309871674, 0.2012682557106018, -0.4794178009033203, 0.4061911404132843, -0.00829099491238594, 0.19167521595954895, 0.0425109937787056, -0.20416344702243805, -0.1648688018321991, 0.2832256555557251, 0.10191313177347183, -0.33861595392227173, 0.017767302691936493, 0.2685238718986511, -0.39679092168807983, 0.01740197092294693, 0.13940057158470154, -0.011849746108055115, 0.18367908895015717, -0.22577688097953796, 0.18033520877361298, -0.023369252681732178, 0.09399034082889557, 0.028896283358335495, 0.4362981915473938, 0.3209053874015808, 0.14556291699409485, 0.12027780711650848, 0.08149184286594391, -0.069302499294281, -0.1963386982679367, 0.15793274343013763, 0.20399051904678345, 0.4055117070674896, 0.0804256945848465, 0.04574470967054367, 0.1210864931344986, -0.20676319301128387, 0.31693848967552185, 0.16259828209877014, 0.24855493009090424, -0.19686925411224365, 0.025827310979366302, -0.5200537443161011, -0.01736782118678093, -0.2280227243900299, -0.4885834753513336, -0.3208966851234436, -0.03397982567548752, 0.524164617061615, 0.00453603733330965, 0.10124967247247696, -0.225203737616539, 0.08508379757404327, 0.15140730142593384, 0.4943942427635193, 0.22201953828334808, 0.1645711064338684, -0.12226466089487076, -0.3857322931289673, -0.43546390533447266, 0.307505339384079, -0.038132231682538986, 0.2976157069206238, 0.05215539410710335, -0.14928889274597168, -0.09864667803049088, 0.2526039183139801, 0.36635005474090576, 0.3008725941181183, -0.027425333857536316, 0.24432948231697083, -0.10689310729503632, 0.0519445464015007, 0.14780443906784058, -0.06979399174451828, -0.16451700031757355, -0.1092103123664856, 0.15054461359977722, -0.26120561361312866, -0.038080714643001556, -0.23353813588619232, 0.11221395432949066, -0.22558632493019104, 0.01172337681055069, 0.5538676977157593, 0.1178915724158287, 0.5621461868286133, 0.08222360163927078, -0.1225191131234169, -0.46933841705322266, -0.34009408950805664, -0.13509418070316315, 0.22646847367286682, 0.1288539171218872, 0.10389110445976257, 0.024525461718440056, -0.4704572856426239, -0.14960356056690216, 0.006103244610130787, -0.12032921612262726, 0.14451400935649872, -0.35538604855537415, -0.0783618614077568, -0.18483611941337585, 0.01107695885002613, 0.20528079569339752, 0.09047889709472656, 0.003929760307073593, -0.10581289231777191, -0.16714465618133545, -0.3810786306858063, 0.3279699683189392, -0.3837537169456482, -0.09353825449943542, 0.1814519166946411, 0.020958468317985535, 0.0357566773891449, -0.09258222579956055, -0.5282151699066162, 0.09769836813211441, 0.3295484781265259, -0.14575541019439697, 0.17476807534694672, 0.33322593569755554, 0.14090287685394287, -0.08858859539031982, -0.02618313953280449, 0.5322296619415283, 0.2421036958694458, -0.19827690720558167, 0.1173364669084549, -0.1750905066728592 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Sounds good. I was looking for another host of this dataset but couldn't find any (yet)
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
16
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Sounds good. I was looking for another host of this dataset but couldn't find any (yet)
[ -0.21710306406021118, -0.21725307404994965, 0.02666570618748665, 0.21403074264526367, -0.16017720103263855, 0.3883538842201233, 0.37028151750564575, -0.019497644156217575, -0.07847286015748978, 0.07877375185489655, -0.08251285552978516, 0.027586914598941803, -0.29463204741477966, 0.09524495154619217, 0.12948539853096008, 0.08161471784114838, 0.10122603923082352, -0.03399363160133362, 0.08407794684171677, -0.0007749609649181366, -0.32671859860420227, 0.025478504598140717, -0.09767206758260727, -0.1202225387096405, -0.1840437352657318, -0.2792629897594452, -0.024411257356405258, -0.07517262548208237, -0.08232767134904861, -0.1943681836128235, 0.16496996581554413, 0.08131763339042664, -0.007732456550002098, 0.272258460521698, -0.00011190075019840151, 0.22750021517276764, 0.450484037399292, 0.09606736153364182, -0.3038080930709839, -0.16476650536060333, 0.07522080838680267, -0.14251013100147247, 0.056141793727874756, -0.008774638175964355, -0.3615037500858307, -0.14149019122123718, 0.017960086464881897, -0.1271694004535675, 0.23450182378292084, 0.18534107506275177, 0.2341654747724533, 0.5091760158538818, 0.1114099770784378, -0.35623449087142944, -0.21515944600105286, 0.07610542327165604, -0.39395296573638916, 0.35661521553993225, -0.2767028212547302, 0.12437646090984344, 0.16072097420692444, 0.2481204867362976, 0.012112608179450035, -0.1591549515724182, 0.008768606930971146, -0.011064956896007061, -0.04732615500688553, -0.459896057844162, 0.026600167155265808, 0.1062767505645752, 0.4408096373081207, 0.18215972185134888, -0.21535640954971313, 0.14824938774108887, 0.29481276869773865, -0.0389086976647377, 0.09327489137649536, 0.27788475155830383, -0.03955788165330887, 0.31514519453048706, -0.20400747656822205, -0.21495428681373596, -0.13358211517333984, 0.39645159244537354, -0.12991370260715485, 0.18430812656879425, -0.1299763172864914, 0.21127715706825256, -0.050047095865011215, 0.0017491281032562256, 0.47583141922950745, -0.005487965419888496, 0.06840094923973083, 0.008536274544894695, -0.044046271592378616, -0.10164797306060791, 0.0861525684595108, 0.05473805218935013, -0.13217386603355408, 0.028650905936956406, -0.1887134164571762, -0.018852274864912033, -0.1118084043264389, -0.06880881637334824, 0.05137720704078674, -0.011838831007480621, -0.033367790281772614, 0.36752408742904663, 0.30718719959259033, 0.2181045114994049, 0.428998202085495, -0.08070234209299088, -0.23469653725624084, 0.1746692657470703, -0.2948018014431, -0.2752924859523773, 0.5934237837791443, -0.08774121850728989, -0.2546156048774719, 0.22747433185577393, -0.2608419954776764, 0.0435296855866909, 0.02290387824177742, 0.482381135225296, -0.12086394429206848, -0.2865334153175354, -0.03471364453434944, 0.09879989176988602, 0.028572233393788338, -0.25140857696533203, -0.30705997347831726, -0.11275674402713776, -0.09282217174768448, 0.16438832879066467, 0.19776365160942078, -0.3057467043399811, 0.07651049643754959, 0.024224258959293365, 0.4559268355369568, -0.14931905269622803, -0.22133979201316833, 0.21967259049415588, -0.20307734608650208, 0.3019911050796509, -0.17590399086475372, 0.5032057762145996, 0.04524407163262367, 0.24634437263011932, 0.09542714804410934, 0.10033495724201202, -0.15029364824295044, -0.6014772057533264, -0.1327902227640152, 0.14222785830497742, -0.40268874168395996, -0.13852497935295105, 0.05586361885070801, 0.12194675207138062, -0.24280673265457153, -0.044665560126304626, -0.12321016937494278, 0.2618822455406189, 0.014823410660028458, -0.11221606284379959, 0.11237715929746628, 0.2764374017715454, -0.37661316990852356, 0.03940224647521973, -0.3442953824996948, -0.42518213391304016, 0.23973318934440613, 0.23175781965255737, -0.22564886510372162, -0.14302268624305725, -0.18982674181461334, -0.22379720211029053, 0.20788055658340454, 0.029332716017961502, -0.6617177128791809, -0.07424375414848328, -0.24238570034503937, 0.13278347253799438, 0.03559431433677673, 0.20442654192447662, -0.041628193110227585, -0.31860825419425964, -0.09918399155139923, 0.16542717814445496, 0.18509408831596375, -0.18595638871192932, -0.24198786914348602, -0.19966159760951996, 0.16007499396800995, 0.2552375793457031, 0.2040071338415146, 0.12191595137119293, -0.020706571638584137, -0.11835641413927078, 0.06927022337913513, 0.21746355295181274, 0.02887800708413124, 0.04276137053966522, 0.16572117805480957, -0.05744419991970062, 0.019998617470264435, 0.10923502594232559, -0.13698610663414001, -0.05839114263653755, 0.3021681606769562, 0.254658579826355, 0.056305333971977234, -0.23893558979034424, -0.3356945514678955, 0.18403489887714386, -0.22659488022327423, -0.22412753105163574, 0.14157597720623016, 0.11721871793270111, -0.28975316882133484, 0.1306225061416626, -0.27420130372047424, 0.18069681525230408, -0.13232144713401794, -0.012093189172446728, -0.19777360558509827, 0.17126575112342834, -0.02237803302705288, 0.09010611474514008, 0.1948782503604889, 0.16824546456336975, 0.33242589235305786, -0.08049636334180832, -0.0429350808262825, 0.084652841091156, -0.22654394805431366, 0.12449516355991364, 0.2335437536239624, -0.1833992749452591, 0.2154155671596527, -0.4770449697971344, 0.11062666028738022, 0.3081183433532715, -0.19474370777606964, -0.029323264956474304, 0.003937046974897385, 0.04931681603193283, 0.19004762172698975, -0.16832458972930908, -0.24327519536018372, 0.19445796310901642, 0.060293495655059814, 0.13025540113449097, 0.05456743389368057, -0.17651763558387756, 0.3303713798522949, -0.15478399395942688, 0.4327258765697479, -0.2320994883775711, -0.5032948851585388, 0.07606863975524902, -0.11816968023777008, -0.32003334164619446, -0.0654708668589592, 0.17501553893089294, -0.3522891104221344, -0.033000048249959946, -0.24543502926826477, 0.08729088306427002, 0.11083441972732544, 0.10481420904397964, 0.16704563796520233, 0.2597009539604187, 0.04868241772055626, -0.07680335640907288, 0.14017567038536072, 0.0956188514828682, -0.03176819533109665, -0.045251406729221344, 0.20983563363552094, -0.010981026105582714, -0.46112295985221863, 0.1167820394039154, 0.25063371658325195, 0.31885209679603577, -0.3166094124317169, -0.13722984492778778, -0.1577325314283371, -0.15743669867515564, 0.10961644351482391, -0.540772020816803, -0.26184067130088806, -0.38912999629974365, 0.22975236177444458, 0.07971440255641937, 0.09949852526187897, 0.08952604979276657, 0.020136933773756027, 0.5031414031982422, 0.13634586334228516, 0.3336864411830902, -0.17292866110801697, -0.002731628715991974, -0.20124584436416626, 0.14670827984809875, 0.19352799654006958, -0.2813086211681366, 0.418646901845932, 0.1280869096517563, 0.014501895755529404, -0.3650863766670227, -0.2776894271373749, 0.018721971660852432, 0.019366003572940826, 0.6191230416297913, -0.011930637061595917, 0.39438968896865845, 0.16033437848091125, 0.030259206891059875, 0.03798709064722061, 0.005352538079023361, -0.1493348926305771, -0.18222761154174805, -0.16552197933197021, -0.13217434287071228, 0.158866748213768, -0.2677976191043854, -0.38578513264656067, -0.193024680018425, 0.1264282464981079, -0.35209619998931885, -0.056455157697200775, 0.06697195768356323, -0.06644801050424576, -0.16026198863983154, -0.08463340997695923, -0.05806029587984085, -0.4479476809501648, -0.4734264612197876, 0.43161237239837646, -0.5226652026176453, -0.5991623401641846, 0.16998563706874847, 0.2392330914735794, -0.06821872293949127, -0.37022608518600464, -0.5837756991386414, -0.19302543997764587, -0.00772782601416111, -0.30981945991516113, 0.10368670523166656, -0.3687538206577301, -0.03152501583099365, -0.2137468308210373, -0.0678241103887558, -0.09363962709903717, -0.2744045853614807, -0.2408687174320221, -0.2911309003829956, 0.22636178135871887, -0.141480952501297, 0.36798226833343506, -0.1747761219739914, 0.6317418217658997, 0.4117623567581177, 0.08673559874296188, 0.23400378227233887, -0.3007178008556366, 0.3772411346435547, -0.0009132847189903259, -0.5053693652153015, 0.0009156463202089071, 0.26965126395225525, -0.09671209007501602, 0.27987948060035706, -0.03436831757426262, -0.527553141117096, -0.15042045712471008, -0.5004955530166626, -0.30501699447631836, -0.09947836399078369, -0.03946273773908615, 0.16124165058135986, 0.1360195130109787, 0.10425505042076111, 0.15795332193374634, -0.05225136876106262, -0.4731738567352295, 0.04148942977190018, 0.4065427780151367, 0.0348728708922863, -0.0808669924736023, 0.20380984246730804, 0.11964554339647293, -0.5639199018478394, 0.25461816787719727, -0.46246570348739624, 0.4857321083545685, -0.21164466440677643, 0.12987956404685974, 0.4326481223106384, 0.09331431239843369, 0.6532962322235107, -0.18360820412635803, 0.0062050968408584595, 0.008684560656547546, 0.140418142080307, -0.27953389286994934, -0.17417612671852112, -0.09905675053596497, 0.22572258114814758, -0.021462079137563705, 0.5986790657043457, 0.09765564650297165, -0.11749334633350372, 0.7131303548812866, -0.12408722937107086, -0.22947873175144196, -0.5125676989555359, -0.13860198855400085, -0.09571295976638794, 0.027686575427651405, -0.11104685813188553, -0.274474561214447, 0.18134307861328125, 0.05371437966823578, -0.09234558045864105, -0.030638577416539192, 0.0511375293135643, 0.19102612137794495, 0.1015060693025589, 0.030122676864266396, 0.246269091963768, 0.4282130002975464, 0.6796950101852417, 0.16383536159992218, 0.2028304785490036, 0.5066852569580078, 0.2317807376384735, -0.4158410429954529, 0.10676655918359756, 0.08836957812309265, 0.16416025161743164, 0.5345052480697632, -0.22587285935878754, -0.1088031753897667, 0.04267078638076782, 0.3136637806892395, -0.15514740347862244, 0.10213381797075272, 0.5559881925582886, -0.19633989036083221, -0.84992516040802, -0.274559885263443, 0.5541852712631226, 0.0003809835761785507, -0.04066203162074089, 0.3047015070915222, 0.017760716378688812, 0.21524837613105774, 0.027093298733234406, -0.10178997367620468, 1.0316541194915771, 0.16655725240707397, -0.10179293155670166, 0.30466434359550476, 0.0554906502366066, 0.27638083696365356, -0.30991262197494507, 0.057483088225126266, -0.2100711315870285, -0.45528632402420044, -0.17538397014141083, -0.013445351272821426, 0.1479777842760086, 0.0867052674293518, 0.1562882512807846, 0.0022163831163197756, -0.01697520911693573, 0.21636824309825897, -0.07115363329648972, 0.15908943116664886, 0.13873235881328583, 0.0729328989982605, -0.009471233934164047, 0.186723530292511, -0.053491413593292236, 0.2376118302345276, -0.17224189639091492, -0.12356556951999664, -0.031295791268348694, -0.1452421098947525, -0.5341830253601074, 0.02837475761771202, -0.026048338040709496, 0.03687359392642975, 0.11481697857379913, -0.1523122787475586, 0.2555774450302124, -0.07160955667495728, 0.1709359884262085, 0.14774411916732788, -0.3695233464241028, 0.17877691984176636, -0.26424527168273926, -0.2760712802410126, -0.28003355860710144, -0.03996061533689499, 0.07260329276323318, -0.12055110186338425, -0.29396727681159973, 0.12244433164596558, 0.0725206583738327, -0.01562051847577095, -0.3618488311767578, 0.008919484913349152, -0.0608820840716362, -0.23674295842647552, -0.06300820410251617, 0.036101311445236206, 0.20264841616153717, -0.17473937571048737, 0.1297205537557602, -0.03922829031944275, -0.0015913181705400348, -0.05010171979665756, 0.12409272789955139, -0.21493908762931824, -0.1483231782913208, 0.38018766045570374, 0.03796736150979996, -0.27288755774497986, 0.47566044330596924, 0.06687131524085999, -0.3424493074417114, -0.13320262730121613, 0.2952403426170349, 0.17155742645263672, -0.29815351963043213, 0.05323202908039093, 0.03531491011381149, 0.44889700412750244, 0.17576296627521515, 0.3266790211200714, 0.22812345623970032, -0.05898430198431015, -0.2407827377319336, -0.5577976703643799, 0.027118975296616554, 0.014607362449169159, -0.05094728246331215, 0.38108402490615845, -0.21119043231010437, 0.13255751132965088, 0.1221010684967041, 0.08459267765283585, -0.30700621008872986, 0.064010389149189, 0.0300003569573164, -0.15530000627040863, 0.08320476114749908, 0.15849995613098145, 0.5198747515678406, 0.049843236804008484, 0.11202943325042725, -0.038534753024578094, -0.2792865037918091, -0.20605802536010742, 0.05941624566912651, 0.15933343768119812, 0.0008245371282100677, -0.03423348814249039, 0.0734393522143364, -0.07292650640010834, -0.11493614315986633, 0.23152165114879608, 0.1596713364124298, 0.1344263255596161, 0.16381682455539703, -0.2500377297401428, 0.22409208118915558, -0.1156986728310585, 0.04637327045202255, 0.10245738178491592, 0.10473399609327316, 0.4935656785964966, 0.10503891110420227, 0.04742586612701416, 0.14219054579734802, -0.0951758325099945, 0.09887228161096573, -0.075278140604496, 0.04270531237125397, 0.06739602982997894, 0.16997548937797546, -0.23754455149173737, 0.1803646832704544, 0.26654404401779175, 0.21196439862251282, 0.16181454062461853, -0.2587857246398926, -0.035741083323955536, 0.28387171030044556, 0.15932047367095947, -0.4555673599243164, -0.04692835733294487, 0.4497564435005188, 0.26835107803344727, -0.15149573981761932, -0.04847387224435806, 0.06668217480182648, 0.30784204602241516, -0.16140863299369812, 0.021716639399528503, 0.2200213223695755, 0.12413869798183441, 0.3608243763446808, 0.2716365158557892, -0.27326667308807373, 0.039343904703855515, 0.29613420367240906, 0.06960815191268921, -0.08040552586317062, 0.6396628618240356, -0.08734603971242905, 0.07950720191001892, 0.26151448488235474, 0.18894045054912567, 0.31832924485206604, -0.4486744999885559, 0.39752620458602905, -0.06089131534099579, -0.050775572657585144, 0.10233922302722931, 0.017310544848442078, 0.267856627702713, -0.05634528025984764, 0.2511930763721466, -0.5639762282371521, 0.4773777723312378, 0.012004924938082695, 0.1025073379278183, 0.0368172824382782, -0.22899600863456726, -0.04710761457681656, 0.12288784980773926, 0.13141809403896332, -0.36376529932022095, 0.0941874235868454, 0.26082348823547363, -0.33949995040893555, -0.009873004630208015, -0.0191410630941391, 0.11429151892662048, 0.15018436312675476, -0.17800115048885345, 0.1524503231048584, 0.17040982842445374, 0.061447761952877045, 0.2295958548784256, 0.45068109035491943, 0.3744666278362274, 0.16481703519821167, 0.12211465835571289, 0.29835113883018494, 0.06006552278995514, -0.19813673198223114, 0.18451319634914398, 0.2443459928035736, 0.44792723655700684, 0.11694258451461792, 0.0780879408121109, 0.07675618678331375, -0.18548841774463654, 0.38643577694892883, -0.004415322095155716, 0.34793218970298767, -0.24498476088047028, 0.18386736512184143, -0.5601365566253662, -0.09209557622671127, -0.34402573108673096, -0.414413183927536, -0.2921171188354492, -0.014950077049434185, 0.4996260106563568, 0.05504559352993965, 0.11754927784204483, -0.19011762738227844, 0.0690285786986351, -0.010932087898254395, 0.5671277642250061, 0.2890668213367462, 0.010373272001743317, -0.1329372078180313, -0.3762555718421936, -0.43009820580482483, 0.353483110666275, -0.08917473256587982, 0.2662041187286377, 0.022612035274505615, -0.2893398404121399, 0.18927764892578125, 0.22695225477218628, 0.3247388005256653, 0.08796970546245575, -0.12839818000793457, 0.45519545674324036, -0.05113278329372406, 0.11817686259746552, 0.21254560351371765, 0.02444007806479931, -0.06983104348182678, 0.015053555369377136, 0.15340805053710938, -0.21379901468753815, -0.09451599419116974, -0.11586542427539825, 0.0213538259267807, -0.21179071068763733, -0.019455209374427795, 0.4102627635002136, 0.13371896743774414, 0.4958580732345581, 0.12966707348823547, -0.12049517780542374, -0.5201578140258789, -0.25147125124931335, -0.04949571564793587, 0.28776252269744873, 0.1603052020072937, 0.05794040113687515, 0.08720166981220245, -0.4120641350746155, -0.14117813110351562, -0.1503898799419403, -0.08386716991662979, 0.08802967518568039, -0.44121840596199036, -0.10948678106069565, -0.19249233603477478, -0.06279780715703964, 0.2984630763530731, 0.14409960806369781, -0.05701000243425369, -0.14163197576999664, -0.05828702822327614, -0.3732270896434784, 0.4508117139339447, -0.5157148838043213, -0.10070870816707611, 0.03696005791425705, -0.07780861854553223, -0.0736566111445427, 0.018931273370981216, -0.56444251537323, 0.10106299072504044, 0.38044875860214233, -0.14344531297683716, 0.29769930243492126, 0.31031790375709534, 0.10202619433403015, -0.015187110751867294, -0.057293735444545746, 0.6876629590988159, 0.26028695702552795, -0.13318097591400146, 0.13890743255615234, -0.16072216629981995 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
It seems like the issue is with the streaming mode, not with the hosting: ```python >>> import datasets >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=True, download_mode="force_redownload") Downloading builder script: 9.35kB [00:00, 10.2MB/s] Downloading metadata: 9.50kB [00:00, 12.2MB/s] >>> len(list(dataset)) 0 >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=False) Reusing dataset cnn_dailymail (/home/slesage/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234) >>> len(dataset) 287113 ``` Note, in particular, that the streaming mode is failing silently, returning 0 row while I would have expected an exception instead. The result is that the dataset viewer shows `No data` instead of a detailed error. <img width="1511" alt="Capture d’écran 2022-04-12 à 11 50 46" src="https://user-images.githubusercontent.com/1676121/162935341-d50f1e73-d053-41d4-917f-e79708a0ca23.png">
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
101
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No It seems like the issue is with the streaming mode, not with the hosting: ```python >>> import datasets >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=True, download_mode="force_redownload") Downloading builder script: 9.35kB [00:00, 10.2MB/s] Downloading metadata: 9.50kB [00:00, 12.2MB/s] >>> len(list(dataset)) 0 >>> dataset = datasets.load_dataset('cnn_dailymail', name="3.0.0", split="train", streaming=False) Reusing dataset cnn_dailymail (/home/slesage/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/3cb851bf7cf5826e45d49db2863f627cba583cbc32342df7349dfe6c38060234) >>> len(dataset) 287113 ``` Note, in particular, that the streaming mode is failing silently, returning 0 row while I would have expected an exception instead. The result is that the dataset viewer shows `No data` instead of a detailed error. <img width="1511" alt="Capture d’écran 2022-04-12 à 11 50 46" src="https://user-images.githubusercontent.com/1676121/162935341-d50f1e73-d053-41d4-917f-e79708a0ca23.png">
[ -0.24319612979888916, -0.13574755191802979, 0.02651495859026909, 0.14626958966255188, 0.18964867293834686, 0.23447176814079285, 0.2769341468811035, 0.17176967859268188, -0.18251776695251465, 0.04528602212667465, -0.1151527538895607, -0.020840726792812347, -0.29062619805336, 0.19238916039466858, 0.017642134800553322, 0.07117638736963272, 0.03420305252075195, 0.024145163595676422, -0.09685593843460083, 0.08150619268417358, -0.060581471771001816, -0.0037971381098031998, -0.2111997753381729, -0.2716057300567627, -0.16231942176818848, 0.02344033122062683, 0.10662184655666351, 0.04280947893857956, -0.16859234869480133, -0.35435751080513, 0.28604352474212646, -0.04155142977833748, 0.052059441804885864, 0.5258235335350037, -0.00012030192738166079, 0.3273031711578369, 0.5579798817634583, 0.02647906355559826, -0.3801023066043854, -0.35471755266189575, -0.03606273606419563, -0.19502705335617065, 0.07799436151981354, 0.0755065456032753, -0.31870725750923157, -0.17117208242416382, 0.05027656629681587, -0.27984508872032166, 0.3906148672103882, 0.22031955420970917, 0.16608646512031555, 0.4979024827480316, -0.15925323963165283, -0.13453131914138794, -0.3120327591896057, 0.10242968797683716, -0.3517460525035858, 0.44430771470069885, -0.21695929765701294, 0.1974196434020996, 0.039349205791950226, 0.3588908612728119, -0.1099267229437828, -0.05257483944296837, 0.0011325329542160034, -0.008601614274084568, -0.24186208844184875, -0.32419559359550476, 0.10023069381713867, 0.1190384030342102, 0.5061439275741577, -0.000466909259557724, -0.40577033162117004, -0.049539461731910706, 0.26049378514289856, -0.13889512419700623, 0.061020538210868835, 0.2916112542152405, -0.19700899720191956, 0.19525085389614105, -0.5039408802986145, -0.09831462800502777, -0.21745669841766357, 0.33251458406448364, -0.2221640795469284, 0.1963769793510437, -0.19111907482147217, 0.1589994728565216, -0.23699747025966644, 0.012141447514295578, 0.37181705236434937, -0.20096814632415771, 0.2576714754104614, 0.04131665453314781, -0.06541375815868378, -0.012914802879095078, 0.2440183162689209, 0.009579785168170929, -0.09607914835214615, 0.26463425159454346, 0.19138948619365692, 0.044053785502910614, -0.12913256883621216, -0.01795831322669983, 0.04518081992864609, 0.06050260737538338, 0.15502744913101196, 0.13366681337356567, 0.34267956018447876, 0.41274335980415344, 0.4138377606868744, -0.11912209540605545, -0.08925136923789978, 0.2289879024028778, -0.23115499317646027, -0.29471683502197266, 0.6388028264045715, -0.11130951344966888, -0.33274441957473755, 0.2987060546875, -0.4117092788219452, 0.1245288997888565, -0.08720413595438004, 0.4602438807487488, -0.20451265573501587, -0.07374144345521927, -0.00863582082092762, 0.22961466014385223, -0.14849483966827393, -0.263102650642395, -0.22391512989997864, -0.2786771059036255, -0.16660334169864655, 0.18920287489891052, 0.34285080432891846, -0.34610894322395325, 0.07596929371356964, 0.0875217542052269, 0.4799569249153137, -0.10346849262714386, -0.185954749584198, 0.11993718147277832, -0.03566955775022507, 0.2967168092727661, -0.053190987557172775, 0.39667120575904846, 0.27702125906944275, 0.12041318416595459, 0.11667456477880478, 0.17401227355003357, 0.07669242471456528, -0.454942911863327, 0.06423712521791458, 0.11075912415981293, -0.5505169630050659, -0.047359682619571686, 0.019334889948368073, 0.1492728292942047, -0.44248124957084656, -0.1461505889892578, -0.1813020408153534, 0.18813644349575043, -0.016918662935495377, -0.11197078227996826, 0.3405720293521881, 0.6245352625846863, -0.2779116928577423, -0.08375778794288635, -0.1298598200082779, -0.2965269088745117, 0.3687169551849365, 0.06107071787118912, -0.1629214733839035, -0.32809317111968994, -0.12057983875274658, -0.08972736448049545, 0.11458011716604233, -0.03460674360394478, -0.5252031087875366, 0.27971237897872925, -0.15658709406852722, 0.3932722806930542, 0.12717199325561523, 0.06507279723882675, 0.03528277575969696, -0.16139474511146545, -0.1713559776544571, 0.24129515886306763, -0.016635334119200706, -0.024867599830031395, -0.30851075053215027, -0.23619456589221954, 0.11165500432252884, 0.2608059346675873, 0.18963731825351715, 0.05715520307421684, -0.10239311307668686, 0.06472911685705185, 0.15452343225479126, 0.11228962242603302, 0.028737125918269157, -0.04097612947225571, 0.16615624725818634, -0.017795734107494354, -0.18395182490348816, 0.10648452490568161, -0.3846105635166168, 0.10355349630117416, 0.47641077637672424, 0.17403897643089294, -0.16403953731060028, -0.1648731678724289, -0.32949742674827576, 0.128838449716568, -0.26202496886253357, -0.3648431897163391, 0.12308718264102936, 0.1850648820400238, -0.19092552363872528, 0.2043929398059845, -0.2035147249698639, 0.299465537071228, -0.1503503918647766, 0.04376943036913872, -0.13377442955970764, 0.31989631056785583, 0.028050621971488, -0.14521217346191406, 0.18148545920848846, -0.05081126093864441, 0.21087214350700378, -0.03982873260974884, -0.08915503323078156, 0.3160407841205597, -0.18467850983142853, 0.38594937324523926, 0.01800278201699257, -0.14110369980335236, 0.4030871093273163, -0.428025484085083, 0.19304649531841278, 0.36021688580513, -0.02708493545651436, -0.03896457701921463, -0.2775729298591614, 0.22220546007156372, -0.060566674917936325, 0.02178022265434265, -0.048439644277095795, 0.0632631853222847, -0.0063194409012794495, 0.19266743957996368, -0.2667378783226013, -0.22023175656795502, 0.3333524763584137, -0.25695154070854187, 0.30650773644447327, -0.33894333243370056, -0.5107875466346741, -0.011999815702438354, -0.15688391029834747, -0.23646511137485504, -0.11994334310293198, 0.10685627162456512, -0.35354411602020264, -0.08389702439308167, -0.0769047886133194, 0.14685501158237457, 0.3342181444168091, 0.06053811311721802, 0.24354761838912964, 0.31876862049102783, -0.0017709014937281609, -0.2222646027803421, 0.1696372926235199, 0.050616554915905, 0.02368275076150894, 0.1877930760383606, 0.18260127305984497, -0.07657482475042343, -0.47181251645088196, -0.06567393243312836, 0.25397035479545593, 0.1755335032939911, -0.3353131413459778, -0.09871813654899597, -0.31817975640296936, -0.2913377583026886, -0.029222138226032257, -0.4790527820587158, -0.1513882726430893, -0.3715634047985077, 0.005026446655392647, 0.2142358124256134, 0.029336027801036835, 0.2431812286376953, -0.20932479202747345, 0.1732741743326187, 0.19244174659252167, -0.008645826950669289, -0.20684093236923218, 0.16080273687839508, -0.14488714933395386, 0.024584688246250153, 0.26305845379829407, -0.36337730288505554, 0.3906145691871643, 0.011573480442166328, -0.07955663651227951, -0.42552340030670166, -0.13903477787971497, 0.11483387649059296, -0.006568290293216705, 0.4910009503364563, -0.03910700976848602, 0.4547234773635864, 0.25689446926116943, 0.24270229041576385, 0.2166208028793335, -0.09561002999544144, -0.008019974455237389, 0.09014159440994263, 0.06868336349725723, 0.07360949367284775, -0.10540008544921875, -0.2785196304321289, -0.33170029520988464, -0.33107927441596985, -0.02426786720752716, -0.23115794360637665, 0.004037681967020035, 0.19773684442043304, 0.18293710052967072, -0.026765063405036926, -0.12995676696300507, -0.12274159491062164, -0.3429507315158844, -0.4697977304458618, 0.44943857192993164, -0.3644883632659912, -0.5839151740074158, 0.1612735390663147, 0.30073535442352295, 0.0827130675315857, 0.0009041307494044304, -0.5757612586021423, -0.14245763421058655, 0.030221128836274147, -0.11268728971481323, 0.06417535245418549, -0.26666468381881714, 0.01994316279888153, -0.19444137811660767, -0.08211970329284668, -0.18883821368217468, -0.1840859353542328, -0.3958897292613983, -0.22394180297851562, 0.09315117448568344, -0.005385100841522217, 0.4557913541793823, 0.07472196221351624, 0.5631703734397888, 0.6446673274040222, 0.1413659006357193, 0.3609788119792938, -0.2619822323322296, 0.468864381313324, 0.0724470466375351, -0.3020937144756317, 0.07586009055376053, 0.09693793952465057, -0.18195326626300812, 0.23281019926071167, 0.060586608946323395, -0.4269641935825348, -0.284827321767807, -0.16158245503902435, -0.3131321966648102, -0.11847348511219025, 0.12723781168460846, 0.07589644193649292, 0.2245703637599945, 0.10361422598361969, 0.2727031409740448, -0.03870869427919388, -0.29166728258132935, -0.12633363902568817, 0.29848891496658325, 0.14114996790885925, 0.021355973556637764, 0.26430797576904297, -0.07650607824325562, -0.5380880832672119, 0.26522719860076904, -0.22263745963573456, 0.5972191691398621, -0.057204026728868484, 0.000974804162979126, 0.2134634256362915, 0.080460324883461, 0.5613816380500793, -0.31247949600219727, 0.04248389974236488, 0.0765017569065094, -0.054588135331869125, -0.37579265236854553, -0.16591303050518036, -0.13555262982845306, 0.20126007497310638, 0.0014957580715417862, 0.45322921872138977, -0.06558337062597275, -0.07278276234865189, 0.43224984407424927, 0.009544824250042439, -0.09869466722011566, -0.340276837348938, -0.1993257999420166, -0.14162415266036987, -0.13575392961502075, -0.12507081031799316, -0.17682918906211853, 0.04038618877530098, -0.06879149377346039, -0.038680583238601685, 0.0293431356549263, 0.1182342991232872, 0.14207930862903595, 0.10711465775966644, 0.09838010370731354, 0.16771352291107178, 0.3049289286136627, 0.6917506456375122, -0.03391517698764801, 0.19267801940441132, 0.7100115418434143, 0.4640906751155853, -0.24541395902633667, 0.19531595706939697, 0.22803470492362976, -0.03923485428094864, 0.6541721820831299, -0.21045450866222382, -0.2802654504776001, 0.1943666636943817, 0.35703927278518677, -0.3249319791793823, 0.09894835203886032, 0.570599377155304, -0.2260955572128296, -0.5929544568061829, -0.44467827677726746, 0.6676687002182007, -0.09457331895828247, 0.07900933921337128, 0.1752069890499115, 0.08020802587270737, 0.03590093553066254, 0.004882419481873512, -0.14361241459846497, 0.8332958817481995, 0.15182814002037048, 0.033419445157051086, 0.4920452833175659, 0.051972322165966034, 0.3506641983985901, -0.12893046438694, 0.10701650381088257, 0.04885568097233772, -0.40202587842941284, -0.22207069396972656, -0.11714072525501251, 0.3328373432159424, 0.024652814492583275, 0.04502919688820839, 0.11368906497955322, -0.0688287764787674, 0.5115246176719666, 0.013947084546089172, 0.01043357327580452, -0.3435925245285034, -0.023913167417049408, -0.2981193959712982, 0.15065886080265045, -0.16017787158489227, 0.21586619317531586, -0.07095745205879211, -0.08720462024211884, -0.1455838978290558, 0.048590898513793945, -0.5680173635482788, 0.18877694010734558, -0.08219920098781586, -0.014575302600860596, -0.1960013210773468, -0.2565677762031555, 0.14018340408802032, 0.16855430603027344, -0.23067907989025116, 0.006210789084434509, -0.4721270799636841, 0.21128812432289124, -0.23942315578460693, 0.007634918671101332, -0.14352262020111084, -0.053088072687387466, 0.3404633402824402, -0.16680029034614563, -0.19487369060516357, 0.1847614049911499, 0.043853916227817535, 0.15892058610916138, -0.1989775449037552, -0.09639966487884521, 0.15404437482357025, -0.22964712977409363, -0.26741427183151245, 0.00447448343038559, 0.14261724054813385, -0.21426337957382202, 0.07556971907615662, -0.10915878415107727, -0.04513369873166084, -0.055744610726833344, 0.18200211226940155, -0.17336806654930115, -0.20173092186450958, 0.5493443012237549, -0.05873677879571915, -0.10999973118305206, 0.3781227767467499, 0.18949748575687408, -0.32481157779693604, -0.05016658827662468, 0.18530556559562683, -0.033060941845178604, -0.3176726698875427, 0.10991820693016052, -0.05384033918380737, 0.36663150787353516, 0.0060970596969127655, 0.0020430050790309906, 0.19552505016326904, -0.08630584925413132, -0.1977476328611374, -0.46668389439582825, 0.1713557243347168, 0.14757810533046722, 0.059829868376255035, 0.2667190134525299, -0.29241952300071716, 0.48632821440696716, 0.20633497834205627, -0.31737035512924194, -0.2442866861820221, 0.037966638803482056, 0.05397084355354309, -0.0786697044968605, -0.07476252317428589, 0.19364717602729797, 0.5296570062637329, -0.09802724421024323, 0.09866621345281601, 0.11631214618682861, -0.3135930895805359, -0.13270480930805206, -0.10188320279121399, 0.2193790078163147, 0.11625628173351288, -0.09535189718008041, 0.1106550469994545, -0.08253954350948334, -0.130305215716362, 0.003963927738368511, 0.21853342652320862, 0.12632274627685547, 0.08444870263338089, -0.2333621233701706, 0.12827910482883453, 0.14874163269996643, -0.014352135360240936, -0.05345012992620468, 0.015437394380569458, 0.5504937171936035, 0.1314302533864975, 0.12433574348688126, 0.0501394048333168, -0.04825964942574501, -0.1711263358592987, -0.013956427574157715, -0.15538915991783142, 0.14186155796051025, 0.40821292996406555, -0.40733349323272705, 0.24718129634857178, 0.187330961227417, 0.44639185070991516, 0.294078528881073, -0.28294506669044495, -0.163133442401886, 0.13497552275657654, 0.1115395724773407, -0.3001692295074463, 0.04388583078980446, 0.08786718547344208, 0.17436754703521729, 0.033854272216558456, 0.02414805442094803, -0.06650236994028091, 0.19228506088256836, -0.1901027113199234, 0.04894128441810608, 0.3061080873012543, 0.06868860125541687, 0.27586230635643005, 0.3033844530582428, -0.07706324011087418, 0.23961761593818665, -0.04177555441856384, 0.020924994722008705, -0.10216210037469864, 0.419594407081604, -0.07884315401315689, 0.1639184057712555, 0.1899333894252777, 0.2583203911781311, -0.09362075477838516, -0.5624309182167053, 0.07655821740627289, 0.16237753629684448, -0.16874375939369202, 0.38690832257270813, -0.17598876357078552, 0.2032238245010376, -0.2541488707065582, 0.20634618401527405, -0.34923410415649414, 0.22659020125865936, 0.11062821745872498, 0.10127003490924835, -0.016297826543450356, -0.25109341740608215, -0.2152853161096573, 0.20213377475738525, -0.010788176208734512, -0.24440817534923553, 0.01418699324131012, 0.3065868020057678, -0.3044036030769348, -0.35933586955070496, -0.03925061225891113, 0.013885311782360077, 0.25468119978904724, -0.23560763895511627, 0.22481295466423035, 0.39705801010131836, 0.058434728533029556, 0.09921970218420029, 0.3548344373703003, 0.4944121539592743, 0.1659635603427887, 0.16379141807556152, 0.23969627916812897, 0.15583020448684692, -0.14162737131118774, 0.12512262165546417, 0.19135189056396484, 0.49113547801971436, 0.15334653854370117, 0.08405257761478424, 0.09940339624881744, -0.19238796830177307, 0.22320109605789185, 0.032629720866680145, 0.14724232256412506, -0.3108098804950714, 0.20893564820289612, -0.5406606197357178, 0.05098557472229004, -0.19826611876487732, -0.4474909007549286, -0.4040625989437103, 0.16045086085796356, 0.40319669246673584, 0.1376877725124359, 0.08276081085205078, -0.0575791671872139, 0.01978878304362297, 0.09203825891017914, 0.4122745990753174, 0.12731018662452698, 0.05178671330213547, -0.20128875970840454, -0.2734983563423157, -0.6200242042541504, 0.13768789172172546, 0.0973040759563446, 0.11996515095233917, 0.11090990900993347, 0.009030910208821297, 0.08413197100162506, 0.2649003863334656, 0.1708657294511795, -0.05984976887702942, -0.0373384952545166, 0.37963637709617615, -0.12222205102443695, -0.14760306477546692, 0.013967704027891159, 0.05672947317361832, -0.19190140068531036, -0.16391527652740479, 0.2377541959285736, -0.4417906403541565, -0.04919799789786339, -0.009007968008518219, -0.10125292837619781, -0.20773792266845703, -0.09201322495937347, 0.4254109263420105, 0.13154643774032593, 0.3616253435611725, 0.20515850186347961, -0.34902235865592957, -0.6204047799110413, -0.05178463086485863, -0.11159767210483551, 0.20259249210357666, 0.0634128525853157, 0.47273120284080505, 0.03409627079963684, -0.2734476327896118, -0.23534244298934937, 0.0806305855512619, 0.14045369625091553, -0.17956706881523132, -0.3541809618473053, -0.0042553069069981575, -0.23553454875946045, 0.02116207964718342, 0.07706409692764282, 0.40455392003059387, -0.1379839926958084, 0.17385920882225037, -0.17174160480499268, -0.4516327381134033, 0.5802801847457886, -0.5264081358909607, -0.15806013345718384, 0.21017496287822723, 0.05367716774344444, 0.010401971638202667, -0.018504684790968895, -0.5886533856391907, 0.24598774313926697, 0.20671045780181885, -0.14586251974105835, -0.0019753221422433853, 0.29701027274131775, 0.02450292743742466, -0.07710207998752594, 0.019293420016765594, 0.6055628061294556, 0.15346065163612366, -0.3220105767250061, 0.32164815068244934, -0.15532809495925903 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Well this is because the host (Google Drive) returns a document that is not the actual data, but an error page
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
21
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Well this is because the host (Google Drive) returns a document that is not the actual data, but an error page
[ -0.2201511412858963, -0.11768405139446259, 0.008099440485239029, 0.2750418782234192, -0.15785102546215057, 0.4535069763660431, 0.2774330973625183, 0.1022179126739502, -0.04836881160736084, 0.1661633551120758, -0.03559994697570801, -0.05258483812212944, -0.18076083064079285, 0.18267151713371277, 0.1238146424293518, -0.005941823124885559, 0.13321584463119507, 0.009248629212379456, 0.05274178460240364, -0.008086331188678741, -0.3318594694137573, 0.08896701782941818, -0.05840880051255226, -0.003993600606918335, -0.261948823928833, -0.3089890778064728, -0.012888096272945404, 0.006721280515193939, -0.2224762737751007, -0.23039261996746063, 0.0858083963394165, 0.02692463807761669, 0.04992501437664032, 0.3620634078979492, -0.00011527929018484429, 0.18914546072483063, 0.48638254404067993, 0.10830692946910858, -0.4522314667701721, -0.23896841704845428, 0.14168351888656616, -0.12231618911027908, 0.06368105113506317, -0.05681237578392029, -0.27993401885032654, -0.3232066035270691, 0.05956949293613434, -0.07966981083154678, 0.16041332483291626, 0.356616735458374, 0.18633830547332764, 0.33437180519104004, 0.12112954258918762, -0.30691608786582947, -0.077363021671772, 0.056088343262672424, -0.3309745192527771, 0.3657693862915039, -0.24582046270370483, 0.12726078927516937, 0.13235746324062347, 0.1770349144935608, 0.03324589878320694, -0.053993161767721176, -0.010788612067699432, 0.1502773016691208, -0.10015789419412613, -0.4100959599018097, 0.09889008104801178, 0.004033956676721573, 0.5076127648353577, 0.09741878509521484, -0.26051610708236694, 0.16292431950569153, 0.2568357288837433, 0.05021321773529053, 0.20882117748260498, 0.3091561496257782, -0.01751098781824112, 0.315599650144577, -0.40821054577827454, -0.28247734904289246, -0.14877521991729736, 0.3551718592643738, -0.25141435861587524, 0.07047434151172638, -0.15277501940727234, 0.17805524170398712, 0.008335050195455551, 0.04934825003147125, 0.4323790371417999, -0.244203120470047, 0.0009936690330505371, 0.06180204823613167, 0.08095579594373703, -0.14426189661026, 0.21101927757263184, -0.02398259937763214, -0.07544690370559692, 0.016407545655965805, -0.08115892112255096, -0.08707918226718903, -0.15661706030368805, 0.08475805819034576, 0.18078872561454773, 0.04508358985185623, 0.032899368554353714, 0.36626511812210083, 0.3754768967628479, 0.2346588671207428, 0.4605681300163269, -0.13038024306297302, -0.11705119907855988, 0.15621140599250793, -0.2791980803012848, -0.12779593467712402, 0.6496931314468384, -0.13557422161102295, -0.37836262583732605, 0.291742205619812, -0.25769126415252686, 0.006026378367096186, -0.09051965922117233, 0.4064604640007019, -0.18184968829154968, -0.43979525566101074, 0.013195216655731201, 0.19900484383106232, -0.040858324617147446, -0.09403623640537262, -0.24529892206192017, -0.07573121786117554, -0.11003606766462326, 0.20082266628742218, 0.2541865408420563, -0.2731439173221588, 0.09475763142108917, -0.037517450749874115, 0.3017426133155823, -0.1975724846124649, -0.13123011589050293, 0.028530269861221313, -0.14951127767562866, 0.2590298354625702, 0.1148284524679184, 0.3747376501560211, 0.10373294353485107, 0.08928532898426056, 0.0355493426322937, 0.12007597833871841, -0.2199411392211914, -0.4862765669822693, -0.14994333684444427, 0.1335076540708542, -0.30084455013275146, -0.020530324429273605, -0.08560232073068619, 0.1045946329832077, -0.36139118671417236, -0.02184980921447277, -0.23265942931175232, 0.24205590784549713, 0.04984317347407341, -0.14207738637924194, 0.19457320868968964, 0.33591634035110474, -0.4099539518356323, 0.1510230302810669, -0.2418166846036911, -0.5258984565734863, 0.11714240908622742, 0.24739274382591248, -0.06496448814868927, 0.015013396739959717, -0.40015339851379395, 0.007516235113143921, 0.17621669173240662, -0.0009339340031147003, -0.5787943601608276, 0.06440436840057373, -0.2412949949502945, 0.09689581394195557, -0.02440784126520157, 0.09195526689291, 0.012669829651713371, -0.2267315685749054, -0.051938802003860474, 0.26163414120674133, 0.0881199985742569, -0.04387545585632324, -0.2045971155166626, -0.20195850729942322, 0.06588691473007202, 0.17439158260822296, 0.15438957512378693, 0.23780208826065063, 0.18527281284332275, -0.27352431416511536, 0.041209593415260315, 0.04705151915550232, -0.02209482155740261, 0.17043744027614594, 0.2102936953306198, -0.09240856766700745, 0.056121256202459335, 0.1820005476474762, -0.42647942900657654, -0.10498194396495819, 0.30931681394577026, 0.1271211802959442, -0.05437047779560089, -0.26021307706832886, -0.41409793496131897, 0.15394988656044006, -0.16319604218006134, -0.18240965902805328, 0.18329927325248718, 0.12492087483406067, -0.19589298963546753, 0.30428948998451233, 0.017351578921079636, -0.04643755406141281, -0.17170235514640808, -0.001151026925072074, -0.1813449263572693, 0.39272791147232056, -0.12198299914598465, -0.010214596055448055, 0.3216833472251892, 0.011592201888561249, 0.3157261312007904, -0.0735049620270729, -0.11438171565532684, 0.09823573380708694, -0.16265013813972473, 0.3410431146621704, 0.3449940085411072, 0.014127790927886963, 0.20008213818073273, -0.48345014452934265, 0.18213216960430145, 0.31312909722328186, -0.13051241636276245, -0.06321147829294205, -0.22548139095306396, 0.08193939179182053, 0.07619957625865936, -0.08136410266160965, -0.155127614736557, 0.1541084498167038, 0.06451530009508133, 0.10085563361644745, 0.08220786601305008, -0.19532658159732819, 0.23140329122543335, -0.014586050063371658, 0.5297229886054993, -0.3878597021102905, -0.3552371859550476, 0.05740095674991608, 0.07233979552984238, -0.29565945267677307, -0.0705857202410698, 0.2017151117324829, -0.3897345960140228, -0.10289622843265533, -0.16789130866527557, 0.14730918407440186, 0.15549421310424805, 0.13016769289970398, 0.3025992214679718, 0.3068816065788269, 0.1112518236041069, -0.0998324379324913, 0.199318528175354, -0.01867038756608963, -0.09180714190006256, 0.07603573799133301, 0.10548905283212662, -0.07852305471897125, -0.463364839553833, 0.20485825836658478, 0.21973833441734314, 0.2799299657344818, -0.31049248576164246, -0.08553255349397659, -0.035657815635204315, -0.06295354664325714, 0.05294155329465866, -0.33020731806755066, -0.2204226553440094, -0.39789509773254395, 0.13938117027282715, 0.33829012513160706, -0.03419814631342888, -0.032565996050834656, 0.08735261857509613, 0.4362007975578308, 0.16296003758907318, 0.151375874876976, -0.23406055569648743, 0.006616331171244383, -0.248815655708313, 0.14124274253845215, 0.24756689369678497, -0.2122911810874939, 0.44548964500427246, 0.02702857367694378, 0.129675954580307, -0.7213149666786194, -0.18414604663848877, 0.07126091420650482, -0.08003126084804535, 0.7195791602134705, 0.00857948511838913, 0.4216952323913574, 0.2776834964752197, -0.01707666926085949, 0.029306448996067047, -0.01547353807836771, -0.2631317377090454, -0.1927475929260254, -0.09523671120405197, -0.08335507661104202, 0.046069469302892685, -0.41822579503059387, -0.21269479393959045, -0.1256287544965744, 0.08522336930036545, -0.2792627215385437, -0.022826962172985077, -0.04692651703953743, 0.11170916259288788, -0.056006498634815216, 0.0923161432147026, -0.21202212572097778, -0.4563491642475128, -0.3089401125907898, 0.35652798414230347, -0.5065760612487793, -0.7046208381652832, 0.15814003348350525, 0.23327793180942535, -0.17723886668682098, -0.13979192078113556, -0.6498402953147888, -0.2922491729259491, -0.021552516147494316, -0.2619512379169464, 0.05390525609254837, -0.28847745060920715, 0.052548620849847794, -0.10566065460443497, -0.07352396845817566, -0.11839139461517334, -0.3649296760559082, -0.2644457221031189, -0.10843899101018906, 0.16836035251617432, -0.024284299463033676, 0.4061194956302643, -0.15564614534378052, 0.6576989889144897, 0.38913631439208984, 0.13168415427207947, 0.22097575664520264, -0.3310315012931824, 0.44102007150650024, -0.10713373869657516, -0.3884883522987366, -0.004694671835750341, 0.11760807037353516, -0.22220255434513092, 0.42572021484375, -0.02060212567448616, -0.6368910670280457, -0.08636774122714996, -0.44444727897644043, -0.4592679440975189, -0.08171780407428741, -0.07030989974737167, 0.16584205627441406, 0.16655440628528595, 0.18863889575004578, 0.19997599720954895, -0.014306946657598019, -0.4128158688545227, 0.09813663363456726, 0.40832626819610596, 0.10519487410783768, 0.07616674900054932, 0.178608238697052, 0.006441403180360794, -0.5843684673309326, 0.3477121591567993, -0.26415279507637024, 0.30799776315689087, -0.22088061273097992, 0.20517748594284058, 0.37813836336135864, 0.017622018232941628, 0.616043210029602, -0.2940641939640045, 0.09330703318119049, 0.008956920355558395, 0.14629997313022614, -0.025332344695925713, -0.13078643381595612, -0.2525743246078491, 0.1978561282157898, 0.016370415687561035, 0.5898504257202148, 0.04642001539468765, -0.11524085700511932, 0.6265370845794678, -0.09773605316877365, -0.14518249034881592, -0.2265072613954544, -0.09918931871652603, -0.17651855945587158, -0.0582294762134552, -0.15075641870498657, -0.19773736596107483, 0.07992946356534958, -0.05647459626197815, -0.11420126259326935, -0.02012050338089466, 0.11899209767580032, 0.02989201992750168, 0.13729220628738403, 0.1628529131412506, 0.12786740064620972, 0.26824867725372314, 0.715856671333313, 0.17213775217533112, 0.3288855254650116, 0.5712254643440247, 0.2080768346786499, -0.19708457589149475, 0.27226367592811584, -0.14706571400165558, 0.04829511046409607, 0.45713362097740173, -0.21953292191028595, -0.27747076749801636, 0.05825456604361534, 0.25102829933166504, -0.250374972820282, 0.13160845637321472, 0.6259376406669617, -0.16064602136611938, -0.7628833651542664, -0.1659807413816452, 0.5587624311447144, 0.03558017686009407, -0.10459743440151215, 0.3322417438030243, 0.1843540370464325, -0.01389913260936737, 0.039694540202617645, -0.048141591250896454, 0.8715381026268005, 0.19085083901882172, 0.0016295500099658966, 0.33695319294929504, -0.050864093005657196, 0.1886177510023117, -0.28594574332237244, 0.08792771399021149, -0.24164436757564545, -0.3992384672164917, -0.2613998353481293, -0.08269346505403519, 0.15635216236114502, 0.23089265823364258, 0.024276744574308395, 0.019777601584792137, 0.004714503884315491, 0.16790759563446045, 0.01643635332584381, 0.35188207030296326, 0.010865429416298866, 0.18704695999622345, 0.12276659160852432, 0.17966219782829285, -0.06404367089271545, 0.2922522723674774, -0.22059020400047302, -0.09404624253511429, -0.10050389170646667, -0.26918238401412964, -0.5657055974006653, 0.022446539252996445, -0.09184534847736359, 0.04312220215797424, -0.04117247834801674, -0.3386726975440979, 0.07884082198143005, -0.024796482175588608, 0.17274689674377441, 0.1769678145647049, -0.43067437410354614, 0.13726867735385895, -0.32422351837158203, -0.1838218718767166, -0.37035298347473145, -0.0653136819601059, 0.09038303047418594, -0.10059444606304169, -0.2379404902458191, 0.02426476776599884, 0.016313642263412476, -0.11855315417051315, -0.3095237612724304, -0.05538824200630188, -0.22499941289424896, -0.22428785264492035, -0.09932060539722443, -0.07604338228702545, -0.022325299680233, -0.11314387619495392, 0.10492563247680664, -0.14176253974437714, 0.13347133994102478, -0.08605264872312546, 0.37196221947669983, -0.23159871995449066, -0.11959336698055267, 0.3257703185081482, 0.013750066980719566, -0.36510351300239563, 0.5478230714797974, 0.009269285947084427, -0.30875396728515625, -0.13811253011226654, 0.25164127349853516, 0.13360165059566498, -0.169626384973526, 0.038402147591114044, -0.13567368686199188, 0.3644448518753052, 0.07862075418233871, 0.2687472701072693, 0.2117757499217987, 0.02438819780945778, -0.16616718471050262, -0.549788236618042, 0.1904049664735794, 0.06846870481967926, -0.19815875589847565, 0.4265015721321106, -0.08121960610151291, 0.1334066241979599, 0.1405515968799591, -0.10883192718029022, -0.2879396677017212, 0.11745471507310867, -0.08761796355247498, -0.12017364799976349, 0.24804484844207764, 0.17333871126174927, 0.5065556764602661, 0.005251903086900711, 0.0936567559838295, -0.13871747255325317, -0.28937095403671265, -0.19895264506340027, 0.065848708152771, 0.1387837678194046, 0.02961038053035736, -0.05978812277317047, 0.01118083018809557, -0.08521738648414612, -0.12812991440296173, 0.22000789642333984, 0.22924557328224182, 0.08396439254283905, 0.15124432742595673, -0.29049208760261536, 0.07355252653360367, 0.0005117431282997131, -0.0354563444852829, 0.0008623898029327393, 0.023293424397706985, 0.530820906162262, -0.008055036887526512, 0.11140437424182892, 0.048017408698797226, -0.0031434446573257446, 0.034578464925289154, 0.01254553347826004, 0.08398200571537018, 0.21463167667388916, 0.25800028443336487, -0.21462000906467438, 0.18844789266586304, 0.10197700560092926, 0.2361062467098236, 0.1338532418012619, -0.3664904534816742, -0.11799433827400208, 0.30698347091674805, 0.16362586617469788, -0.25554609298706055, -0.08548162132501602, 0.412823349237442, -0.11007225513458252, -0.10733844339847565, -0.1009112223982811, 0.1231149435043335, 0.47071921825408936, -0.18616525828838348, -0.0024227742105722427, 0.451028972864151, 0.062036920338869095, 0.22910122573375702, 0.16657917201519012, -0.2809114158153534, 0.1256026178598404, 0.24770048260688782, -0.047798167914152145, -0.18994399905204773, 0.6262142062187195, -0.06790060549974442, -0.039095647633075714, 0.24956759810447693, 0.21343021094799042, 0.22518450021743774, -0.4302701950073242, 0.3597724735736847, -0.10906398296356201, -0.19886484742164612, 0.1486523449420929, -0.00040524452924728394, 0.07637105137109756, -0.09121232479810715, 0.2685410678386688, -0.5661236643791199, 0.28612202405929565, 0.048137836158275604, 0.21496625244617462, 0.0008576586842536926, -0.28355294466018677, -0.061866652220487595, 0.21929720044136047, 0.11495822668075562, -0.32999348640441895, -0.03976935148239136, 0.19104604423046112, -0.340349018573761, 0.08051231503486633, 0.09417475014925003, 0.03268907219171524, 0.12627609074115753, -0.24907661974430084, 0.1701771318912506, 0.014696754515171051, 0.12754634022712708, 0.14927680790424347, 0.5176581740379333, 0.378566175699234, 0.19754070043563843, 0.1251825988292694, 0.11123441159725189, -0.0315464548766613, -0.16956397891044617, 0.16361548006534576, 0.32839086651802063, 0.3899356424808502, -0.0030601955950260162, 0.1686473786830902, 0.11560335755348206, -0.12669962644577026, 0.33572834730148315, 0.02572549879550934, 0.17402265965938568, -0.198674276471138, 0.004598766565322876, -0.5467402935028076, -0.06756149977445602, -0.2711911201477051, -0.4548511207103729, -0.27976009249687195, -0.0325043722987175, 0.4525051414966583, -0.010092424228787422, 0.12913966178894043, -0.08740448951721191, 0.05499419569969177, 0.044915907084941864, 0.5602666735649109, 0.43461641669273376, 0.2077837884426117, -0.15063589811325073, -0.35346537828445435, -0.4431246817111969, 0.34002846479415894, -0.06097299978137016, 0.3285848796367645, -0.015580687671899796, -0.16785719990730286, 0.04513927549123764, 0.32116419076919556, 0.38375264406204224, 0.29189324378967285, -0.19593149423599243, 0.39433640241622925, -0.07925806939601898, -0.07041439414024353, 0.16418682038784027, -0.0029729362577199936, -0.26805776357650757, -0.15089914202690125, 0.12508442997932434, -0.13529689610004425, -0.09100684523582458, -0.15378810465335846, 0.1632813662290573, -0.2811166048049927, 0.025972377508878708, 0.5128400325775146, 0.28139692544937134, 0.6240662336349487, 0.023060519248247147, -0.15383851528167725, -0.4278743267059326, -0.21851354837417603, -0.04414425417780876, 0.17836996912956238, 0.13439440727233887, 0.17605948448181152, 0.10328677296638489, -0.5190976858139038, -0.14458756148815155, 0.08057079464197159, 0.027529142796993256, 0.17876018583774567, -0.39824214577674866, -0.05898524820804596, -0.2338966727256775, -0.11295420676469803, 0.28563159704208374, 0.15881791710853577, 0.05428735539317131, -0.07054147124290466, -0.10805168747901917, -0.24527402222156525, 0.28696209192276, -0.3805531859397888, -0.08514958620071411, 0.15946538746356964, -0.003224983811378479, 0.05047395080327988, -0.13794824481010437, -0.5219269394874573, 0.07608231157064438, 0.32615426182746887, -0.22957444190979004, 0.16650637984275818, 0.19926849007606506, 0.13406085968017578, -0.05237501487135887, 0.008437737822532654, 0.6675924062728882, 0.30359214544296265, -0.20260916650295258, 0.16060158610343933, -0.18391993641853333 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Yes it definitely should ! I don't have the bandwidth to work on this right now though
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
17
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Yes it definitely should ! I don't have the bandwidth to work on this right now though
[ -0.24307774007320404, -0.032006166875362396, -0.031947799026966095, 0.20547287166118622, -0.07797852903604507, 0.35017046332359314, 0.3647359013557434, 0.03610582277178764, -0.14289765059947968, 0.07101477682590485, 0.04543665051460266, 0.1317959874868393, -0.21722356975078583, 0.30430978536605835, 0.11298296600580215, -0.0036856569349765778, 0.0916842520236969, -0.035432010889053345, -0.05443777143955231, 0.0535234734416008, -0.36160022020339966, 0.08308935165405273, -0.1193091869354248, -0.10564850270748138, -0.18113064765930176, -0.1318107396364212, -0.030952617526054382, -0.11914823204278946, -0.20326478779315948, -0.22043123841285706, 0.0717405378818512, 0.1505132019519806, 0.047048844397068024, 0.1922076940536499, -0.00011178750719409436, 0.16392336785793304, 0.4733365774154663, 0.13119645416736603, -0.29745927453041077, -0.060853973031044006, 0.007305935025215149, -0.23613668978214264, 0.05732480436563492, -0.013396374881267548, -0.28367555141448975, -0.05880066379904747, -0.03281022608280182, -0.2342374324798584, 0.18185986578464508, 0.2023291289806366, 0.2399217039346695, 0.423284113407135, 0.12651680409908295, -0.31967970728874207, -0.15315353870391846, 0.09300325065851212, -0.4558536112308502, 0.23000651597976685, -0.3466893136501312, 0.13793039321899414, 0.13363228738307953, 0.38420534133911133, 0.12856993079185486, -0.020815569907426834, 0.07231906056404114, 0.06516361236572266, -0.08986692875623703, -0.3628292679786682, 0.05502474680542946, 0.06995517015457153, 0.4350481927394867, 0.07506641745567322, -0.26829856634140015, 0.1439625322818756, 0.20610669255256653, -0.14807675778865814, 0.16807596385478973, 0.08447620272636414, -0.0005759671330451965, 0.25118181109428406, -0.2933048903942108, -0.31585893034935, -0.06098214536905289, 0.46740734577178955, -0.13492590188980103, 0.16195343434810638, -0.1569215953350067, 0.17484010756015778, 0.024242905899882317, -0.0447688102722168, 0.4192396104335785, -0.044803038239479065, 0.053024180233478546, 0.002855363767594099, 0.0980023592710495, -0.06497430056333542, 0.11023887991905212, 0.06346606463193893, -0.10718297213315964, 0.1508694589138031, -0.20638789236545563, -0.0004855450242757797, 0.0033538276329636574, -0.07070354372262955, 0.11844170093536377, -0.001611410640180111, -0.004576772451400757, 0.4627435803413391, 0.3954043388366699, 0.19572106003761292, 0.3232095539569855, -0.1258094608783722, -0.19169723987579346, 0.10837578028440475, -0.34550952911376953, -0.20035380125045776, 0.6104348301887512, -0.03957509249448776, -0.22719593346118927, 0.3118628263473511, -0.1969332993030548, -0.0008568004705011845, -0.0782504677772522, 0.4603564143180847, -0.1591072678565979, -0.29882344603538513, -0.008449293673038483, 0.17301830649375916, 0.01841622032225132, -0.18462206423282623, -0.29376378655433655, -0.14758141338825226, -0.04748201370239258, 0.2625267803668976, 0.21533913910388947, -0.18792279064655304, 0.07506917417049408, -0.13084696233272552, 0.31302279233932495, -0.059479761868715286, -0.20107579231262207, 0.2323857992887497, -0.20500600337982178, 0.27969104051589966, -0.21080423891544342, 0.4745272696018219, 0.0692799910902977, 0.2590780258178711, 0.04583928734064102, 0.16555872559547424, -0.07847876101732254, -0.4589293301105499, -0.05140935629606247, 0.16040825843811035, -0.37080907821655273, -0.2683315873146057, -0.0033190548419952393, 0.20189598202705383, -0.19731631875038147, -0.048345088958740234, -0.10773798078298569, 0.21613216400146484, -0.06732194125652313, -0.07874482870101929, 0.0714922696352005, 0.25651609897613525, -0.42309704422950745, -0.05009372532367706, -0.45660799741744995, -0.45723825693130493, 0.18620195984840393, 0.16300350427627563, -0.1738201528787613, -0.16092896461486816, -0.223674476146698, -0.025857508182525635, 0.26028040051460266, -0.08749264478683472, -0.6225367784500122, 0.007125093135982752, -0.19379617273807526, 0.048347532749176025, -0.04983929544687271, 0.2104513794183731, -0.03297947719693184, -0.30611953139305115, -0.2032051682472229, 0.2228950709104538, 0.09164280444383621, -0.07787898182868958, -0.3032108247280121, -0.2904154062271118, 0.2044278383255005, 0.2751365005970001, 0.2965536415576935, 0.0857153832912445, -0.06168637424707413, -0.10121502727270126, 0.10622663795948029, 0.2134677767753601, 0.033340614289045334, -0.05195436626672745, 0.1632528156042099, -0.06381598114967346, 0.056645315140485764, 0.07211120426654816, -0.2646736800670624, -0.08973456919193268, 0.30057820677757263, 0.2048555463552475, 0.05086178332567215, -0.31418663263320923, -0.25400465726852417, 0.08879461139440536, -0.24515236914157867, -0.2625938951969147, 0.1532803773880005, 0.11832523345947266, -0.21829251945018768, 0.14221423864364624, -0.24154610931873322, 0.08844218403100967, -0.1590968668460846, -0.012344589456915855, -0.13227516412734985, 0.20043066143989563, -0.10886282473802567, 0.1716146618127823, 0.1474570631980896, 0.12929143011569977, 0.20013749599456787, -0.04751058295369148, -0.10192204266786575, 0.07379131019115448, -0.1616145223379135, 0.05915922671556473, 0.2180163562297821, -0.11384950578212738, 0.17306233942508698, -0.3846381604671478, 0.0892980769276619, 0.2960224151611328, -0.23467624187469482, -0.07857080549001694, -0.03967021405696869, 0.10445190966129303, 0.19222107529640198, -0.11412803083658218, -0.14011958241462708, 0.07643605768680573, 0.06491680443286896, 0.10723212361335754, -0.05383974313735962, -0.22140324115753174, 0.14754846692085266, -0.19477079808712006, 0.3808957636356354, -0.22174112498760223, -0.4405345022678375, 0.12405803054571152, 0.11031986027956009, -0.1811102032661438, -0.027629397809505463, 0.14873364567756653, -0.37171778082847595, 0.006245754659175873, -0.16811347007751465, 0.08509401977062225, 0.2220137119293213, 0.14423468708992004, 0.1655050367116928, 0.23398208618164062, 0.06168372556567192, -0.10293897241353989, 0.13816706836223602, 0.11541874706745148, -0.005314753390848637, 0.08732680976390839, 0.07833044975996017, -0.030617039650678635, -0.48975852131843567, 0.24660822749137878, 0.2669197618961334, 0.37131914496421814, -0.41709113121032715, -0.15218999981880188, -0.14955738186836243, -0.3282015323638916, 0.2337115854024887, -0.5104132294654846, -0.09104233980178833, -0.43765828013420105, 0.26577627658843994, 0.012685947120189667, 0.008317552506923676, 0.18639230728149414, -0.035925790667533875, 0.4887538552284241, 0.10282835364341736, 0.2510804235935211, -0.23234012722969055, 0.04955395683646202, -0.1511809229850769, 0.20412887632846832, 0.34273940324783325, -0.2595928907394409, 0.32391121983528137, 0.1402592957019806, 0.08177731186151505, -0.434975266456604, -0.3930363953113556, 0.05200682207942009, 0.024736765772104263, 0.5454176068305969, -0.07543313503265381, 0.26261669397354126, 0.177339106798172, -0.04236428067088127, 0.07223151624202728, -0.06962639838457108, -0.27521705627441406, -0.26547667384147644, -0.14678283035755157, -0.17055760324001312, -0.03149585798382759, -0.32811322808265686, -0.39406707882881165, -0.30674976110458374, 0.2601708471775055, -0.19856144487857819, -0.0926981270313263, 0.08582794666290283, -0.07466085255146027, -0.06189671531319618, -0.09407468885183334, -0.05587293952703476, -0.4828515648841858, -0.3808530569076538, 0.4496862292289734, -0.5468257069587708, -0.6686674952507019, 0.16617451608181, 0.15752823650836945, -0.05637054517865181, -0.3022797703742981, -0.5561071634292603, -0.24443823099136353, -0.002125971019268036, -0.20620541274547577, 0.1314663290977478, -0.33015286922454834, 0.029693469405174255, -0.22320285439491272, -0.040764227509498596, -0.028357291594147682, -0.22147496044635773, -0.19094178080558777, -0.31055906414985657, 0.1155194491147995, -0.17332231998443604, 0.37557417154312134, -0.17868664860725403, 0.5339924693107605, 0.37688586115837097, 0.0572466105222702, 0.20349088311195374, -0.3385619521141052, 0.47950682044029236, 0.047929417341947556, -0.47400256991386414, 0.040692124515771866, 0.1459089070558548, -0.021805383265018463, 0.3318556547164917, -0.020104631781578064, -0.6154707074165344, -0.17460529506206512, -0.2699289321899414, -0.37931028008461, -0.11483156681060791, -0.025311077013611794, 0.19692187011241913, 0.05224790424108505, 0.17432597279548645, 0.226068377494812, -0.056866999715566635, -0.4592646658420563, 0.043407782912254333, 0.4138098955154419, 0.10139957815408707, -0.04766177013516426, 0.294693261384964, 0.0739532932639122, -0.5134716629981995, 0.2285555601119995, -0.33288922905921936, 0.382748007774353, -0.18538835644721985, 0.011463474482297897, 0.3292166590690613, 0.02359803393483162, 0.5792462229728699, -0.2933901846408844, -0.16705752909183502, 0.06004306301474571, 0.12071585655212402, -0.17817354202270508, -0.07445700466632843, -0.10953317582607269, 0.2644475996494293, 0.03074425645172596, 0.5263906717300415, 0.1297321617603302, -0.11699014902114868, 0.8300566673278809, -0.1492534875869751, -0.16734646260738373, -0.4683888852596283, -0.13196498155593872, -0.045261282473802567, -0.12746235728263855, -0.2035680115222931, -0.23019225895404816, 0.06730888038873672, 0.036691345274448395, -0.1870424896478653, -0.13036248087882996, -0.08720538020133972, 0.10333654284477234, 0.15646590292453766, 0.11022308468818665, 0.2200029194355011, 0.4569350481033325, 0.6349523067474365, -0.04282239079475403, 0.279134601354599, 0.5302220582962036, 0.1844324767589569, -0.35054394602775574, 0.14186304807662964, 0.05061835050582886, 0.0875888243317604, 0.5390387773513794, -0.2563481628894806, -0.1477539837360382, 0.0431414395570755, 0.27589917182922363, -0.20956839621067047, 0.1437065750360489, 0.5875946283340454, -0.07000409811735153, -0.7277026772499084, -0.31247657537460327, 0.5570957660675049, 0.02247690036892891, -0.006543003022670746, 0.31293123960494995, 0.05123404040932655, 0.10980259627103806, -0.1620759516954422, -0.1585962474346161, 0.9526561498641968, 0.16663715243339539, -0.09348754584789276, 0.27702492475509644, 0.18105873465538025, 0.3494926691055298, -0.304779052734375, 0.05191453546285629, -0.16473492980003357, -0.469940185546875, -0.17721539735794067, -0.002023167908191681, 0.28751975297927856, 0.1266384720802307, 0.05338399484753609, -0.07758654654026031, 0.09510500729084015, 0.2228388488292694, -0.05636802315711975, 0.24075111746788025, 0.030415721237659454, 0.12057293951511383, 0.11649215966463089, 0.23841679096221924, -0.037959955632686615, 0.32575929164886475, -0.14260715246200562, -0.0825251117348671, -0.07966385781764984, -0.1397092044353485, -0.4912530779838562, 0.000667080283164978, -0.09201223403215408, 0.11313531547784805, -0.014610480517148972, -0.054977189749479294, 0.11488692462444305, -0.03769650682806969, 0.15974785387516022, 0.20407886803150177, -0.3761995732784271, 0.1849202960729599, -0.2683877944946289, -0.2525482773780823, -0.2990400195121765, -0.01272914931178093, 0.0681954100728035, -0.196519672870636, -0.17031416296958923, 0.05376584827899933, 0.10373399406671524, -0.19480137526988983, -0.34909865260124207, 0.0771816149353981, -0.008465461432933807, -0.19644036889076233, -0.08291579782962799, 0.05256185308098793, 0.02928844466805458, -0.1483754813671112, 0.14998944103717804, -0.037116192281246185, 0.0372360497713089, 0.08444319665431976, 0.09961599111557007, -0.16324788331985474, -0.16760681569576263, 0.394812673330307, -0.051298730075359344, -0.29557332396507263, 0.3847622275352478, 0.043894145637750626, -0.4514855146408081, -0.13459864258766174, 0.2752324640750885, 0.2693672478199005, -0.1724265217781067, 0.024444082751870155, 0.0469193197786808, 0.3661481738090515, 0.1316651701927185, 0.42912501096725464, 0.1970015913248062, -0.09591259807348251, -0.16753697395324707, -0.5060383081436157, -0.0388806015253067, 0.03127918764948845, -0.031562719494104385, 0.3632868230342865, -0.19129598140716553, 0.1948394626379013, 0.22655236721038818, 0.08172359317541122, -0.3128933012485504, 0.008238216862082481, 0.10072190314531326, -0.2326018512248993, 0.20102186501026154, 0.2091287076473236, 0.6271918416023254, -0.031244343146681786, 0.09508125483989716, 0.07159443199634552, -0.287596195936203, -0.24275803565979004, 0.11629176139831543, 0.15324966609477997, 0.09996537119150162, -0.0794883742928505, 0.1200932040810585, -0.03552882373332977, -0.1890064775943756, 0.18960165977478027, 0.1361725628376007, 0.06141965091228485, 0.09503193199634552, -0.16584841907024384, 0.19952574372291565, -0.09527160972356796, 0.16807083785533905, 0.09168564528226852, 0.16808953881263733, 0.6224148273468018, 0.11554606258869171, 0.17363578081130981, 0.1451786309480667, 0.017955981194972992, 0.21765796840190887, -0.022847607731819153, -0.059963688254356384, 0.07770465314388275, 0.2154279351234436, -0.31759679317474365, 0.17592833936214447, 0.2887488603591919, 0.28070464730262756, 0.33877265453338623, -0.22682389616966248, -0.015189001336693764, 0.24692299962043762, 0.16366590559482574, -0.4249562919139862, -0.0021557158324867487, 0.3550484776496887, 0.10241526365280151, 0.02487441524863243, -0.02820499986410141, -0.022025341168045998, 0.36857524514198303, -0.09556637704372406, 0.1072179451584816, 0.3249957859516144, 0.08927693963050842, 0.45595377683639526, 0.18176691234111786, -0.32094019651412964, 0.086266428232193, 0.2777237296104431, 0.1040419489145279, -0.12651920318603516, 0.5817242860794067, -0.10829735547304153, 0.045211512595415115, 0.18884268403053284, 0.26284971833229065, 0.29198673367500305, -0.46198931336402893, 0.45430687069892883, -0.04861822724342346, -0.13804654777050018, 0.1208849772810936, 0.14472922682762146, 0.30701273679733276, -0.0056398166343569756, 0.1850070208311081, -0.5421923995018005, 0.34913232922554016, -0.011299971491098404, 0.12184827029705048, 0.06803171336650848, -0.21640825271606445, -0.072022944688797, 0.14658159017562866, 0.07887071371078491, -0.37639743089675903, 0.1539599746465683, 0.2595076858997345, -0.3061295747756958, -0.05223213881254196, 0.10615181922912598, 0.00735773891210556, 0.19770868122577667, -0.17171946167945862, 0.18150554597377777, 0.12765438854694366, 0.039812467992305756, 0.16980043053627014, 0.34755903482437134, 0.32765528559684753, 0.18815506994724274, 0.19605307281017303, 0.24411556124687195, -0.017466485500335693, -0.22482724487781525, 0.08317817002534866, 0.31670552492141724, 0.505034327507019, 0.07935168594121933, 0.0306406170129776, 0.11918403208255768, -0.2370714247226715, 0.45496073365211487, 0.02426762878894806, 0.3548564314842224, -0.24035963416099548, 0.1595003604888916, -0.5121239423751831, -0.021421033889055252, -0.32301241159439087, -0.5161721706390381, -0.31556960940361023, -0.1175832450389862, 0.38281702995300293, -0.004223833326250315, 0.10780398547649384, -0.21858666837215424, 0.07865101099014282, 0.08500103652477264, 0.4897678792476654, 0.2404819279909134, 0.1264972984790802, -0.17903445661067963, -0.31365013122558594, -0.5674772262573242, 0.305113822221756, -0.10424704849720001, 0.3070001006126404, -0.013577796518802643, -0.11670247465372086, 0.18748292326927185, 0.3754143714904785, 0.33417224884033203, 0.03189941495656967, -0.005277490243315697, 0.26265937089920044, -0.09970232844352722, 0.03324447572231293, 0.21233044564723969, -0.058891721069812775, -0.04096445441246033, -0.15331649780273438, 0.13517120480537415, -0.2982787489891052, -0.0743321031332016, -0.1441812366247177, -0.030955657362937927, -0.2582050561904907, 0.050659142434597015, 0.4363839328289032, 0.11813635379076004, 0.560924768447876, 0.08847883343696594, -0.1576833575963974, -0.48693621158599854, -0.2842331826686859, -0.16021038591861725, 0.3311351239681244, 0.1260216385126114, 0.0912904441356659, 0.0241087693721056, -0.46744367480278015, -0.1634037345647812, -0.10926400125026703, -0.0576905757188797, 0.007567948196083307, -0.3575209081172943, 0.021826909855008125, -0.14049513638019562, 0.020752638578414917, 0.18663561344146729, 0.11073364317417145, -0.06576909869909286, -0.06413193792104721, -0.10895518213510513, -0.39355260133743286, 0.42716747522354126, -0.46111610531806946, -0.058071963489055634, 0.049365390092134476, -0.07430000603199005, 0.007941775023937225, -0.07920978218317032, -0.6306442022323608, 0.03450385481119156, 0.3403097093105316, -0.1558966338634491, 0.31075596809387207, 0.3864097595214844, 0.09608960151672363, -0.03490034490823746, -0.1306796818971634, 0.6202124357223511, 0.24365267157554626, -0.10859017074108124, 0.108035609126091, -0.2262447327375412 ]
https://github.com/huggingface/datasets/issues/3969
Cannot preview cnn_dailymail dataset
Indeed, streaming was not supported: tgz archives were not properly iterated. I've opened a PR to support streaming. However, keep in mind that Google Drive will keep generating issues from time to time, like 403,...
## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No
35
Cannot preview cnn_dailymail dataset ## Dataset viewer issue for '*cnn_dailymail*' **Link:** https://huggingface.co/datasets/cnn_dailymail *short description of the issue* Am I the one who added this dataset ? Yes-No Indeed, streaming was not supported: tgz archives were not properly iterated. I've opened a PR to support streaming. However, keep in mind that Google Drive will keep generating issues from time to time, like 403,...
[ -0.31388211250305176, -0.0006066113710403442, 0.07984362542629242, 0.12819825112819672, -0.09457442164421082, 0.4155948758125305, 0.30226778984069824, 0.03997304290533066, -0.28848332166671753, 0.10472698509693146, 0.00599486380815506, -0.1303759217262268, -0.2775116562843323, 0.3053118884563446, -0.07977763563394547, -0.012327395379543304, 0.011067897081375122, 0.01083894819021225, 0.12937654554843903, 0.11928001046180725, -0.21902981400489807, 0.20766200125217438, -0.16781696677207947, -0.09902605414390564, 0.007521053776144981, -0.4049857556819916, 0.06826172024011612, -0.03543616086244583, -0.19776467978954315, -0.08488722145557404, -0.18596960604190826, 0.10076074302196503, 0.19000481069087982, 0.34645769000053406, -0.00011743543291231617, 0.12797361612319946, 0.5033279657363892, 0.03602207452058792, -0.35959291458129883, -0.19340021908283234, 0.16033819317817688, -0.027542125433683395, -0.01230990793555975, -0.02175888419151306, -0.19430747628211975, -0.18878743052482605, 0.10746737569570541, -0.19555488228797913, 0.23029261827468872, 0.20337791740894318, 0.13718877732753754, 0.33220407366752625, 0.04541534557938576, -0.19830825924873352, -0.019736208021640778, -0.218008890748024, -0.4102926552295685, 0.33633509278297424, -0.2425858974456787, 0.15761715173721313, 0.09745189547538757, 0.20428483188152313, 0.010499710217118263, 0.006616372615098953, -0.03078591078519821, 0.16005191206932068, 0.013263478875160217, -0.38415002822875977, 0.07644922286272049, 0.0832420289516449, 0.5803787708282471, 0.06565727293491364, -0.41714712977409363, 0.09710962325334549, 0.24435469508171082, -0.17916670441627502, 0.1629539579153061, 0.3535985052585602, -0.0638640746474266, 0.25234541296958923, -0.4239281713962555, -0.18703202903270721, -0.2792806029319763, 0.3285866975784302, -0.0806378573179245, 0.2178722620010376, -0.000913732685148716, 0.08029025793075562, -0.07055248320102692, 0.07834169268608093, 0.5885827541351318, -0.16434358060359955, -0.11287720501422882, -0.03181031346321106, 0.051251236349344254, -0.09364913403987885, 0.18249516189098358, 0.1408246010541916, -0.13297978043556213, 0.15463203191757202, 0.2525798976421356, 0.08461357653141022, 0.014403981156647205, -0.0025960728526115417, 0.24143582582473755, 0.281388521194458, -0.0035163462162017822, 0.15607479214668274, 0.4323607087135315, 0.13723628222942352, 0.3602621555328369, -0.15704604983329773, -0.16365370154380798, 0.09629320353269577, -0.2679051160812378, -0.17071044445037842, 0.4722878336906433, 0.04544394835829735, -0.1791418194770813, -0.020152125507593155, -0.4273187220096588, -0.09882158041000366, -0.11807841807603836, 0.26852473616600037, -0.16894957423210144, -0.42767006158828735, -0.15348941087722778, 0.2046964317560196, 0.05753210186958313, -0.06451937556266785, -0.21489723026752472, -0.13309654593467712, -0.1322038620710373, 0.310092955827713, 0.22926373779773712, -0.441999226808548, -0.04091554135084152, -0.10565225780010223, 0.26067957282066345, -0.0021677538752555847, -0.15648335218429565, 0.10597552359104156, -0.15586945414543152, 0.2573607265949249, 0.12852169573307037, 0.2853686213493347, 0.07214072346687317, 0.2549135088920593, 0.028993867337703705, 0.11067967116832733, -0.004162386059761047, -0.5941218137741089, 0.07557400315999985, 0.08195339143276215, -0.3786563277244568, -0.0667324960231781, -0.053430087864398956, 0.23772843182086945, -0.2408827841281891, -0.2932814359664917, -0.2869546413421631, 0.3234151005744934, 0.044872742146253586, -0.1358933299779892, 0.10781926661729813, 0.17354655265808105, -0.3329513370990753, 0.0996854305267334, -0.5419815182685852, -0.2294977605342865, 0.26802003383636475, 0.3537346124649048, -0.02819105237722397, -0.156421959400177, -0.32807591557502747, 0.20106644928455353, 0.2602243423461914, -0.013202900066971779, -0.5702247023582458, 0.12517015635967255, -0.20547930896282196, 0.13522356748580933, -0.060812048614025116, 0.07069799304008484, 0.09609951823949814, -0.33217889070510864, -0.302419513463974, 0.48476630449295044, -0.017570944502949715, -0.04143839329481125, -0.2118307501077652, -0.27584925293922424, 0.2248445749282837, 0.08469775319099426, 0.26034173369407654, 0.2682074010372162, 0.2352648377418518, -0.318025678396225, -0.005250662565231323, 0.18437112867832184, 0.08894658833742142, 0.01731213927268982, 0.30541545152664185, -0.13109524548053741, 0.05891437828540802, 0.1988219916820526, -0.4800681471824646, -0.009625591337680817, 0.2170923799276352, 0.1297619342803955, -0.18572022020816803, -0.18091630935668945, -0.007949059829115868, 0.07260584086179733, -0.09426480531692505, -0.1241944283246994, 0.19412629306316376, 0.2075122445821762, -0.1946086883544922, 0.2174299955368042, 0.08217933773994446, -0.030639590695500374, -0.021986879408359528, -0.12424163520336151, -0.09185738861560822, 0.43850189447402954, -0.16274559497833252, -0.17535528540611267, 0.32902392745018005, -0.0884462222456932, 0.14014041423797607, -0.143220454454422, -0.1437245011329651, 0.1646163910627365, -0.44120126962661743, 0.4281410574913025, 0.16527602076530457, 0.1711311638355255, 0.1800694316625595, -0.4244721829891205, 0.1920386701822281, 0.25079429149627686, -0.1452028900384903, -0.05143321678042412, -0.2425708770751953, 0.07689104974269867, 0.055963773280382156, -0.139803946018219, 0.07007936388254166, 0.04515153914690018, -0.022067438811063766, 0.08931766450405121, -0.07935640215873718, -0.07326087355613708, 0.17619995772838593, -0.12201331555843353, 0.1423080414533615, -0.30141890048980713, -0.39882203936576843, 0.1703292429447174, 0.30573365092277527, -0.23846541345119476, -0.0633622333407402, 0.16171938180923462, -0.34729695320129395, -0.27508673071861267, -0.0788913443684578, 0.3986375033855438, 0.2695601284503937, 0.1270645260810852, 0.3394430875778198, 0.22936853766441345, 0.11090011149644852, -0.21003614366054535, 0.23987212777137756, 0.12223226577043533, -0.09133187681436539, 0.2210509479045868, 0.213742196559906, 0.0023436853662133217, -0.3710424602031708, 0.2371096909046173, 0.4635723829269409, 0.3096950352191925, -0.24248501658439636, -0.15779009461402893, -0.20550526678562164, -0.13981996476650238, 0.3280591368675232, -0.44385141134262085, -0.1729036420583725, -0.46076613664627075, 0.13917787373065948, 0.4551929831504822, 0.01839626580476761, 0.19430886209011078, 0.17895780503749847, 0.5173248648643494, 0.2882271707057953, 0.04813153296709061, -0.2708819508552551, -0.0180189348757267, -0.1146911159157753, 0.10745184123516083, 0.29340389370918274, -0.2623097002506256, 0.33520811796188354, 0.1988334059715271, 0.10040803253650665, -0.575637936592102, -0.25187379121780396, 0.1513376533985138, -0.16187648475170135, 0.524499237537384, -0.34362030029296875, 0.44103991985321045, 0.1642272174358368, -0.1621023714542389, -0.053141798824071884, -0.17792901396751404, -0.16574813425540924, 0.018050149083137512, -0.07088420540094376, -0.13251973688602448, -0.07546591013669968, -0.29772472381591797, -0.2624935209751129, -0.29914557933807373, 0.26384034752845764, -0.2413112074136734, -0.018378518521785736, 0.24384211003780365, 0.027835208922624588, -0.16238565742969513, 0.2303888499736786, -0.22397838532924652, -0.385882705450058, -0.32840192317962646, 0.5712828636169434, -0.5680827498435974, -0.7056032419204712, 0.3464393615722656, 0.2433270663022995, -0.15020379424095154, 0.06026015803217888, -0.493064284324646, -0.18624716997146606, -0.025865042582154274, -0.25024735927581787, 0.1264970600605011, -0.48776692152023315, 0.15245525538921356, -0.086116723716259, -0.04391786828637123, -0.06275968253612518, -0.23763535916805267, -0.16703391075134277, -0.014317229390144348, 0.06239040568470955, 0.11869090050458908, 0.4823951721191406, 0.056466806679964066, 0.5006404519081116, 0.28056198358535767, 0.18398161232471466, 0.21008576452732086, -0.2687804698944092, 0.3492600619792938, -0.008874446153640747, -0.25639578700065613, 0.058709766715765, 0.004745900630950928, -0.22511036694049835, 0.46552014350891113, 0.017711926251649857, -0.7032902240753174, -0.094739630818367, -0.11598855257034302, -0.3340553641319275, -0.20627360045909882, -0.010446665808558464, -0.017025314271450043, 0.2077365517616272, 0.19077453017234802, 0.07698880881071091, -0.12346868216991425, -0.4268571138381958, 0.03005419671535492, 0.33098798990249634, 0.11658632755279541, 0.23597529530525208, 0.3570067882537842, 0.04331731051206589, -0.5228568315505981, 0.3756556510925293, -0.25507888197898865, 0.37842699885368347, -0.24871455132961273, 0.10619080811738968, 0.3637961149215698, -0.052080076187849045, 0.42781394720077515, -0.5585302114486694, 0.056245941668748856, 0.005414662882685661, 0.11021870374679565, -0.01158170122653246, -0.3222402334213257, -0.17577368021011353, 0.11721035093069077, 0.017307016998529434, 0.5111268758773804, 0.045111365616321564, -0.10904516279697418, 0.4606989920139313, -0.1813277304172516, -0.12650875747203827, -0.3349953293800354, -0.08142000436782837, -0.143018901348114, -0.11528835445642471, -0.35133832693099976, -0.1381702721118927, -0.005207814276218414, -0.26983609795570374, -0.04295894876122475, 0.08247578144073486, -0.07453545182943344, 0.008183211088180542, 0.011647189036011696, 0.12862586975097656, 0.21334651112556458, 0.15940944850444794, 0.6487318277359009, -0.04251783341169357, 0.19172750413417816, 0.37319451570510864, 0.43298575282096863, -0.07773704826831818, 0.3127237558364868, -0.1272367686033249, -0.17129471898078918, 0.47551679611206055, -0.2089475840330124, -0.14303815364837646, 0.09662893414497375, 0.2910134792327881, -0.10063102096319199, -0.03957946226000786, 0.568006157875061, -0.22513699531555176, -0.6781763434410095, -0.18311546742916107, 0.4270637631416321, 0.015719253569841385, -0.008959315717220306, 0.4799182415008545, -0.040236592292785645, 0.008436396718025208, 0.009111395105719566, -0.15742740035057068, 0.9426154494285583, 0.13529753684997559, -0.17059603333473206, 0.3568407893180847, 0.044114790856838226, 0.18664689362049103, -0.3070465922355652, 0.22268745303153992, -0.02711990848183632, -0.5322160720825195, -0.25449955463409424, -0.0653855949640274, 0.0841202512383461, 0.2132330983877182, -0.21122319996356964, -0.027354024350643158, 0.043094947934150696, 0.20731662213802338, -0.022463539615273476, 0.19755542278289795, -0.19487053155899048, 0.16858625411987305, 0.10995745658874512, 0.13099555671215057, -0.13332673907279968, 0.22499258816242218, -0.07567401230335236, -0.3374631404876709, 0.062206294387578964, -0.04839371144771576, -0.6767470836639404, 0.08357323706150055, -0.02189798839390278, 0.05002323538064957, -0.19076286256313324, -0.45199084281921387, 0.09574542939662933, 0.028764257207512856, 0.0568026602268219, 0.033053621649742126, -0.5215523838996887, -0.010126613080501556, -0.4519028067588806, -0.25013798475265503, -0.41025519371032715, 0.05357726663351059, 0.20075786113739014, -0.21217644214630127, -0.14302705228328705, 0.07395618408918381, -0.0006456216797232628, -0.2726140022277832, -0.27665257453918457, -0.20180727541446686, -0.21780483424663544, 0.08209232985973358, -0.024678144603967667, -0.020641103386878967, -0.1354694366455078, -0.08142116665840149, 0.08260570466518402, -0.16431356966495514, 0.15361839532852173, 0.05072910711169243, 0.1120130866765976, -0.10183307528495789, -0.12479987740516663, 0.3605542480945587, -0.07698161154985428, -0.07707017660140991, 0.4979829788208008, 0.23897965252399445, -0.31058835983276367, -0.012396808713674545, 0.07984324544668198, 0.09045208245515823, -0.1277381032705307, 0.08075259625911713, -0.13453973829746246, 0.4318999648094177, 0.028105245903134346, 0.34280234575271606, 0.12851187586784363, 0.12781742215156555, -0.26589062809944153, -0.5458984375, 0.119659923017025, 0.13514935970306396, -0.1905396580696106, 0.4184327721595764, -0.2969556748867035, 0.16005940735340118, 0.31316447257995605, -0.031233081594109535, -0.261828750371933, 0.08976180851459503, 0.021630646660923958, -0.17520393431186676, 0.21499280631542206, 0.019819209352135658, 0.5507196187973022, 0.029266871511936188, 0.06359163671731949, -0.0826682597398758, -0.3694474399089813, -0.10670807957649231, 0.17752766609191895, 0.16832920908927917, 0.19727101922035217, -0.06327489763498306, 0.0317365787923336, -0.1946941614151001, -0.21601703763008118, 0.15273603796958923, 0.2325821816921234, -0.010470902547240257, 0.07141692191362381, -0.30382922291755676, 0.17815110087394714, -0.056153349578380585, 0.06148816645145416, -0.012557584792375565, -0.012522563338279724, 0.5062372088432312, 0.02827092632651329, 0.1198999211192131, 0.25143542885780334, -0.012910820543766022, -0.09765435010194778, -0.0969189926981926, 0.03832899406552315, 0.17762920260429382, 0.4405153691768646, -0.2741062641143799, 0.20004944503307343, -0.072523333132267, 0.29453045129776, -0.03891511261463165, -0.175568625330925, -0.175859734416008, 0.22765704989433289, 0.1257411688566208, -0.3072664439678192, -0.10446454584598541, 0.14646683633327484, 0.05674562230706215, -0.04825260490179062, -0.18925023078918457, 0.0009278804063796997, 0.3235488831996918, -0.208678737282753, 0.11110623925924301, 0.6458398103713989, 0.044812627136707306, 0.1991453915834427, 0.0986035093665123, -0.2626867890357971, 0.0967366173863411, -0.023529166355729103, -0.07575182616710663, -0.1813938021659851, 0.3260143995285034, -0.106348417699337, -0.19990885257720947, 0.18488845229148865, 0.15034198760986328, 0.1377861499786377, -0.5819008350372314, 0.12105295062065125, 0.015557050704956055, -0.10361902415752411, 0.23172780871391296, 0.12512826919555664, 0.12547573447227478, -0.01431324053555727, 0.2662232518196106, -0.5699828863143921, 0.32241886854171753, 0.24432244896888733, 0.2544150948524475, 0.010359495878219604, -0.16891014575958252, 0.036069780588150024, 0.29838821291923523, 0.21055574715137482, -0.17550647258758545, 0.003938525915145874, 0.4047413468360901, -0.19669674336910248, 0.0322430282831192, 0.1444447785615921, -0.021114788949489594, 0.13887357711791992, -0.27884477376937866, 0.19314450025558472, -0.007728643715381622, 0.034093908965587616, 0.057656675577163696, 0.30180051922798157, 0.361652672290802, 0.15694382786750793, 0.1480857878923416, 0.24118290841579437, 0.029487455263733864, -0.19892682135105133, 0.2068127989768982, 0.22960712015628815, 0.651209831237793, -0.06333112716674805, 0.0040183961391448975, 0.07098143547773361, -0.11969205737113953, 0.5413227081298828, 0.03820234537124634, 0.13872307538986206, -0.10720676183700562, 0.17195042967796326, -0.3337157070636749, -0.12925764918327332, -0.03874842822551727, -0.42602863907814026, -0.14632955193519592, 0.009506959468126297, 0.32129526138305664, -0.01670968160033226, 0.04945027828216553, -0.16620256006717682, 0.0353560708463192, 0.14883357286453247, 0.576414942741394, 0.30697548389434814, 0.275642067193985, -0.04255906119942665, -0.2691166400909424, -0.4251660704612732, 0.2161988615989685, 0.05346893519163132, 0.5675961375236511, 0.10791004449129105, -0.08626250177621841, 0.06309649348258972, 0.24918217957019806, 0.30652233958244324, 0.3486737012863159, -0.18978366255760193, 0.42656323313713074, -0.1942286193370819, 0.030990570783615112, 0.3868134021759033, 0.034908611327409744, -0.2543940842151642, -0.066346175968647, 0.17708122730255127, -0.3484494388103485, -0.01850162073969841, -0.13083800673484802, 0.06310321390628815, -0.22552575170993805, 0.03184312582015991, 0.48273181915283203, 0.22541584074497223, 0.5477981567382812, -0.0008716508746147156, -0.10171341150999069, -0.6572891473770142, -0.16847097873687744, -0.1160285621881485, 0.0354415625333786, 0.12103046476840973, 0.18307501077651978, 0.04164241999387741, -0.4703029692173004, -0.24374039471149445, 0.05370653420686722, -0.1352449655532837, 0.21674993634223938, -0.3220258057117462, 0.02051667682826519, -0.21422231197357178, 0.13439014554023743, 0.276923269033432, -0.047441624104976654, 0.00769384577870369, -0.08191534876823425, -0.2718501091003418, -0.2813956141471863, 0.3686407208442688, -0.4404430389404297, -0.10398778319358826, 0.23829121887683868, -0.09931841492652893, 0.18871885538101196, 0.0228949673473835, -0.33749616146087646, 0.11918451637029648, 0.2485543191432953, -0.19311851263046265, 0.10947868227958679, 0.24247680604457855, 0.40181341767311096, -0.12837786972522736, 0.055013250559568405, 0.4247663915157318, 0.2188481092453003, -0.2686827778816223, 0.12133786082267761, -0.11640173941850662 ]