html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
67
24.7k
body
stringlengths
51
36.2k
__index_level_0__
int64
1
1.17k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
This issue impacts many more datasets than the ones mention in this thread. Can we post # of downloads for each dataset by day (by successes and failures)? If so, it should be obvious which ones are failing.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
38
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No This issue impacts many more datasets than the ones mention in this thread. Can we post # of downloads for each dataset by day (by successes and failures)? If so, it should be obvious which ones are failing.
[ -1.2579092979431152, -1.009926676750183, -0.8035501837730408, 1.355440378189087, -0.25788697600364685, -1.2116056680679321, 0.17907468974590302, -1.0602344274520874, 1.7767417430877686, -0.7567470669746399, 0.24747121334075928, -1.7197397947311401, -0.024371575564146042, -0.706019937992096, -0.7267690300941467, -0.827794075012207, -0.3581688702106476, -0.7799487113952637, 0.9806823134422302, 2.4870102405548096, 1.1945239305496216, -1.3361109495162964, 2.70784854888916, 0.6905569434165955, -0.24626484513282776, -0.9427891373634338, 0.5261121988296509, 0.08259449899196625, -1.1695371866226196, -0.4688323736190796, -0.9262033700942993, -0.061458323150873184, -0.46870896220207214, -0.5064852237701416, -0.003624416422098875, 0.4394591748714447, -0.24769985675811768, -0.4341292679309845, -0.5309123396873474, -0.7482889890670776, 0.4411783218383789, -0.3540245592594147, 0.9273753762245178, -0.40542447566986084, 1.8987035751342773, -0.6055513024330139, 0.2740563154220581, 0.6261981725692749, 1.2770850658416748, 0.16528788208961487, -0.07955361157655716, 0.3031722605228424, 0.34139564633369446, -0.058321092277765274, 0.42612960934638977, 1.160680890083313, 0.5738816261291504, 0.5223466753959656, 0.7497236132621765, -2.2350780963897705, 1.2173384428024292, -1.1153188943862915, 0.36164233088493347, 1.4287195205688477, -0.985004723072052, 0.4297909140586853, -1.750694990158081, -0.02601592242717743, 0.5679278373718262, -2.343378782272339, 0.28652381896972656, -1.3399685621261597, -0.6289979815483093, 0.8817064166069031, 0.31487494707107544, -1.281740665435791, 0.17481541633605957, -0.4538959562778473, 1.1177904605865479, 0.4454892873764038, 1.132796049118042, -1.73992919921875, -0.053526900708675385, -0.38666579127311707, -0.021584145724773407, -1.400955080986023, -1.4425073862075806, 0.6510722041130066, 0.6203543543815613, 0.6439385414123535, -0.16000774502754211, 0.9990845918655396, -1.0227417945861816, 0.8290024995803833, -1.0698648691177368, -1.616264820098877, -1.4779598712921143, -2.2694203853607178, -2.2175025939941406, 0.8914055228233337, -0.40256261825561523, -0.5799431800842285, 1.958644986152649, -0.9193938970565796, -1.827419400215149, 1.2346774339675903, 0.20773251354694366, -0.015152620151638985, 2.3635776042938232, 0.23178571462631226, -0.7131621837615967, 0.38365253806114197, -0.8016696572303772, 0.8487116694450378, -0.3199165165424347, 1.5243357419967651, 0.5280798673629761, -1.0355678796768188, 1.6320353746414185, -0.4452129304409027, 0.5468531847000122, -0.6579004526138306, -0.6907944679260254, -0.8673897385597229, 0.3928312361240387, 1.9179835319519043, -0.3438361883163452, 1.5626252889633179, -0.42550012469291687, -1.5300400257110596, -1.560394287109375, 0.9358873963356018, 0.5030208826065063, -0.7477781772613525, 0.08470836281776428, -0.35782137513160706, 0.14047026634216309, -0.12184315174818039, 1.225358247756958, 1.1852260828018188, 0.588057816028595, -0.33113348484039307, -0.8269451260566711, 0.27065035700798035, -0.06732393801212311, -0.7371227741241455, -1.8320051431655884, -0.39619311690330505, 0.10287736356258392, 0.5708985924720764, -1.2321279048919678, 1.5413464307785034, 0.8354056477546692, 1.8779689073562622, 0.9875170588493347, -0.26359474658966064, 1.445465326309204, 0.05138639733195305, 1.7696404457092285, -0.5862828493118286, 0.6737052202224731, -0.2148752063512802, -1.0663135051727295, 0.855721116065979, -0.33642083406448364, -1.9853160381317139, -0.8362722396850586, -0.921188235282898, -0.19737409055233002, -0.8199372887611389, 0.9397644400596619, -0.3613656759262085, -1.4358265399932861, 0.2773493528366089, -0.7200655937194824, 0.16768500208854675, -1.2338573932647705, 0.2559800148010254, 0.6910133957862854, -0.558376133441925, -0.0012310920283198357, -0.16093328595161438, -1.2501554489135742, -0.40604686737060547, 0.222630575299263, 2.004387855529785, -0.7908264994621277, 0.8913391828536987, 0.9885584115982056, -0.7753751277923584, 0.0189216248691082, 0.3290775418281555, -0.23254649341106415, 0.8411231637001038, -1.0593279600143433, -0.45023781061172485, 1.0687777996063232, -0.07701140642166138, -0.5086675882339478, 1.5214920043945312, 0.7802397608757019, -0.9843215346336365, -0.24325837194919586, -0.2603035569190979, -0.8183672428131104, -0.07319949567317963, -1.5732543468475342, -0.21196268498897552, 0.24725401401519775, -1.458941102027893, -0.5766685605049133, -0.2829413414001465, 1.3240108489990234, -0.22599853575229645, 1.3256268501281738, -0.38599783182144165, -0.33127260208129883, -0.31917911767959595, -0.3231255114078522, 0.21363508701324463, -0.1777229607105255, -0.7018234133720398, 0.1985008865594864, -0.8174023628234863, 0.3623931407928467, 1.390001893043518, 0.4693465828895569, 0.014025676064193249, 0.6158937215805054, 1.0379064083099365, 0.30253326892852783, -0.0417020320892334, -0.8889057636260986, -1.5631074905395508, 1.9172427654266357, -1.5502287149429321, 1.922245979309082, 0.6840760707855225, -0.01871299557387829, -1.7241010665893555, -1.9165645837783813, 1.3657582998275757, 1.3200923204421997, 2.256118059158325, 0.6706178784370422, 0.4285544455051422, -0.8598489165306091, -0.6530210971832275, 0.1847260743379593, -1.1367429494857788, -0.6685765981674194, 0.1471596509218216, 2.2788944244384766, 1.8054051399230957, -0.6167104244232178, -0.18464192748069763, -1.0101335048675537, 1.2852150201797485, -0.13693366944789886, 0.19960814714431763, 2.0212321281433105, -0.38109201192855835, -1.1138336658477783, 1.2486939430236816, -2.3153483867645264, 0.05161447450518608, 1.9326186180114746, 0.2999923825263977, 0.10483048856258392, -1.4541176557540894, -0.5934285521507263, -0.3037658929824829, -0.4023897647857666, -1.3211952447891235, 0.6787282824516296, -0.2788240611553192, -0.8351044654846191, -1.4726407527923584, 0.20354780554771423, -1.0700819492340088, -1.517782211303711, 0.41916126012802124, 1.8977149724960327, 1.9960581064224243, -0.69937664270401, 1.5412415266036987, -0.3189329504966736, 0.28950780630111694, 1.3480966091156006, 1.1927121877670288, 3.1393167972564697, 1.9622241258621216, -1.1495962142944336, 0.6467977166175842, -0.1250879168510437, -0.4896891117095947, 1.175057291984558, -1.1186156272888184, 1.277585506439209, -0.12652775645256042, -1.195466160774231, -1.2964160442352295, 0.8669096231460571, 0.4562698304653168, 0.03840566426515579, -0.5504946708679199, 1.209105372428894, 0.0011400524526834488, 1.3421050310134888, 0.5175551772117615, -0.41706302762031555, 0.5804087519645691, -0.4355568587779999, -0.372153103351593, 1.555155873298645, 0.20040078461170197, -1.4039345979690552, -2.3286972045898438, -0.18188828229904175, -0.8193194270133972, 0.06511835753917694, -0.5730583071708679, -1.0647594928741455, 1.729992389678955, 0.46677297353744507, -1.3312227725982666, -0.25487443804740906, -0.33557891845703125, -0.623854398727417, 2.7267942428588867, -1.458506464958191, -0.2866649031639099, -0.9684929251670837, -0.5572702884674072, 1.7959364652633667, -1.2069083452224731, -0.2045391947031021, -0.9788067936897278, -0.636352002620697, -1.339248538017273, -0.5804350972175598, -0.06362688541412354, -0.9382315278053284, 0.9758689999580383, 0.10040801018476486, -1.0683975219726562, -0.37837839126586914, -0.8450109362602234, 0.8369224667549133, -0.17209601402282715, 0.3117561936378479, 1.9726455211639404, 0.3814287781715393, -0.40778496861457825, 0.6764121055603027, 1.1700291633605957, 0.6455992460250854, -0.6524487733840942, 0.24464094638824463, -0.6534410715103149, 0.2605699300765991, -1.3658446073532104, 0.32015180587768555, -2.9372143745422363, 0.6671905517578125, -0.006219576112926006, 0.01530755590647459, 0.015183460898697376, -1.3042588233947754, 1.1911976337432861, 2.4903297424316406, -1.2254141569137573, 0.3630058169364929, 0.33011162281036377, 1.1847476959228516, -1.5701662302017212, 0.2906191945075989, -0.374541699886322, 2.116504669189453, 0.18344946205615997, 1.2582303285598755, -0.4775885045528412, -2.183746099472046, 0.614461362361908, -1.2608616352081299, -1.2183318138122559, 0.6676360964775085, -0.8644852638244629, 0.1019013524055481, -1.6024752855300903, -0.23486481606960297, -0.886793851852417, -1.2746927738189697, 0.8090881109237671, 0.17109645903110504, 0.27891334891319275, -0.6002699136734009, 0.379941463470459, -2.1481080055236816, -1.3615330457687378, -0.23875834047794342, -0.8975463509559631, 0.47960665822029114, -0.270661860704422, 0.6676156520843506, -0.11383010447025299, 0.10638382285833359, 0.2682940363883972, 1.4507976770401, 3.383240222930908, 0.240976482629776, 0.42313429713249207, -0.08517296612262726, -0.8701049089431763, 1.4827358722686768, 1.0515985488891602, 0.04911832883954048, -0.47882547974586487, -1.0224117040634155, 1.327797532081604, 1.8585494756698608, 0.9240580201148987, 0.01693025976419449, -0.7319076061248779, -0.6005389094352722, -0.07672340422868729, 0.31906598806381226, 0.4232791066169739, 0.8715444803237915, 0.12137504667043686, 0.12366262823343277, 1.3869918584823608, 1.1491087675094604, -0.5304663181304932, 0.41021254658699036, -0.8827749490737915, -0.4946083128452301, 0.5201880931854248, 0.31266576051712036, -0.05156530812382698, 0.3701896667480469, -1.0368101596832275, -0.3500428795814514, -0.17370285093784332, -0.974787712097168, -0.6348143815994263, -0.3931112289428711, -0.3358886241912842, 1.5184916257858276, 0.13967745006084442, -0.49179384112358093, -0.12931525707244873, -0.8179435729980469, -0.17839841544628143, -1.1862883567810059, 0.28635159134864807, -0.11210130900144577, -0.10278458893299103, -0.11373665928840637, 1.845749020576477, -0.8450850248336792, -2.0396525859832764, 0.22658906877040863, 0.3985842168331146, -0.4049215018749237, 0.17026247084140778, 1.5214697122573853, 0.523608922958374, 1.4679386615753174, 1.1914896965026855, 0.971506655216217, -0.5435071587562561, -1.3294727802276611, 0.6116400957107544, 0.9583078622817993, -1.3871738910675049, 0.7749251127243042, 0.04527319595217705, -0.4985618591308594, 0.6510324478149414, 1.3103455305099487, 0.5160499811172485, -1.901680588722229, 0.7840981483459473, -0.9034764170646667, 0.760094165802002, 0.7849043607711792, 0.8357195854187012, 0.344247967004776, 0.8990220427513123, -1.3017195463180542, -1.154210090637207, -0.8105010390281677, -0.5627598166465759, 1.9595597982406616, -0.13022290170192719, 0.5897663235664368, -0.24787560105323792, -1.2858854532241821, -0.029873821884393692, 0.5869166254997253, 0.4651836156845093, -0.3428909182548523, 0.8237083554267883, -0.6653027534484863, -1.068375587463379, -1.3834770917892456, -0.4034545123577118, -0.8823787569999695, -1.022096872329712, 1.0698367357254028, 0.94399493932724, 0.3241352140903473, 1.919760823249817, 0.5955991148948669, 0.247705340385437, -2.5645434856414795, 0.8499119281768799, 0.30463117361068726, -0.036784350872039795, 0.8685320019721985, 0.3584815263748169, 1.13539719581604, 0.013287787325680256, 0.43704384565353394, -2.3509111404418945, 2.2249181270599365, -0.22800011932849884, 0.6918043494224548, -0.06991161406040192, -0.06165879964828491, 1.169592022895813, 0.49819836020469666, 0.4890734851360321, -1.032304286956787, 0.6836369633674622, -0.5519144535064697, 1.2836048603057861, 1.0386097431182861, -0.6887197494506836, -0.0002450356259942055, 1.3074911832809448, 0.5623341202735901, -0.5111537575721741, -0.8158166408538818, -0.9058365821838379, 0.9545040130615234, 1.6756501197814941, -0.023560622707009315, -0.03955840319395065, 0.9288739562034607, 0.682620108127594, -1.2626383304595947, 0.04520193859934807, -0.7282405495643616, -0.6303121447563171, 1.6708353757858276, 2.0850322246551514, -0.1425742357969284, -0.20121674239635468, -0.7478864789009094, -1.2214254140853882, 0.7742976546287537, -0.014830760657787323, 0.1031242161989212, 0.7147772312164307, -0.6898447275161743, 1.0420351028442383, 0.9396407604217529, 0.8696350455284119, 0.20393389463424683, 0.4992203414440155, 0.39535269141197205, -0.22520337998867035, -1.193076252937317, -0.2522697150707245, -1.1389145851135254, -2.5621750354766846, 0.469707727432251, -0.3747720420360565, -1.290384292602539, 0.013222766108810902, -1.1337435245513916, 0.9727746844291687, -0.6359918117523193, -1.1379848718643188, -1.5845444202423096, 0.13130654394626617, 0.06934380531311035, 0.9344642162322998, -1.5546424388885498, -0.11759065836668015, 1.2303886413574219, 0.8658080697059631, -0.6340587735176086, 1.0040761232376099, 0.34059232473373413, 1.1153225898742676, 0.7452808618545532, -0.4536040425300598, 0.5119653940200806, -0.023609723895788193, -1.407617449760437, 0.6390103697776794, 1.1595067977905273, 0.15867145359516144, 1.4941695928573608, -0.5654098987579346, -0.006239444483071566, 0.5235006809234619, -0.5667157173156738, -0.4915848970413208, -0.5934656858444214, 0.659649670124054, 0.15161442756652832, -0.8770014047622681, -0.0005297660827636719, -0.01614099182188511, -0.2642907500267029, 0.2292439490556717, -1.4969207048416138, -0.20721203088760376, -0.43390747904777527, -0.6222803592681885, -1.3043887615203857, -0.09756120294332504, 1.3391481637954712, -0.7891445159912109, -0.1732138693332672, 0.479336142539978, 0.4226033091545105, 0.6153388023376465, 0.6573663353919983, -0.6521299481391907, -0.33630505204200745, -0.2440166175365448, -0.331389456987381, 0.27334916591644287, 1.334593415260315, -0.21119235455989838, -1.0893168449401855, 0.646287739276886, -0.30833619832992554, 0.023261360824108124, 1.9952763319015503, 0.10012942552566528, -0.8477593660354614, 0.23245210945606232, -0.746772289276123, 1.9287277460098267, 1.535040020942688, 1.3823312520980835, -0.1670634001493454, -0.8064138293266296, 0.5407732725143433, -0.24378687143325806, -0.45552343130111694, 0.7666295170783997, 0.4793221652507782, -0.12662455439567566, -1.432640552520752, 0.6990664005279541, 1.37593412399292, -1.0085028409957886, -0.8485569953918457, 0.1530648022890091, -0.7712702751159668, 0.9957855939865112, 0.6481145024299622, 0.436537504196167, 0.3789285719394684, 1.6280274391174316, 0.6498436331748962, -0.4577650725841522, 0.39448413252830505, 0.6240414977073669, -0.007267549633979797, -2.171358585357666, -1.2578092813491821, 0.28402554988861084, -0.5113143920898438, -1.5819562673568726, 1.3538421392440796, -1.0799894332885742, -0.9290577173233032, 0.5333493947982788, 0.20107866823673248, 1.4257227182388306, 0.2657809853553772, 1.562032699584961, 2.0163826942443848, 0.811819851398468, 0.2833178639411926, 1.3622171878814697, -0.08635371923446655, -0.4885607361793518, 1.8552790880203247, -0.4349460303783417, 0.5846757292747498, 1.1125259399414062, -0.28414610028266907, -1.135429859161377, -0.6879037618637085, -1.3201974630355835, -0.584315299987793, 1.1391079425811768, 0.13243043422698975, -1.2166728973388672, 0.16951601207256317, 1.4836677312850952, 0.15902093052864075, -0.3638037443161011, 0.5270565748214722, 0.37098804116249084, -0.8720429539680481, -0.05972898006439209, -1.0707651376724243, 0.5467374920845032, -0.21492081880569458, -0.32103070616722107, 0.16959427297115326, 0.5546215772628784, 1.3847626447677612, -0.06185852363705635, 0.158063605427742, 1.1786993741989136, -1.3850289583206177, 1.43141508102417, -0.606275200843811, 0.19767634570598602, -2.459146022796631, 1.4469196796417236, -0.7942009568214417, 1.9260410070419312, -2.7264134883880615, 0.4076959788799286, -0.5562931299209595, -0.3601583242416382, 0.3371334671974182, -0.3756828010082245, 0.16295458376407623, -0.0758633092045784, -1.1476424932479858, 0.0529453419148922, -0.7254768013954163, 0.5684574842453003, 1.224147915840149, 1.381492257118225, -1.1496291160583496, -0.24930208921432495, -1.7026331424713135, -0.13573643565177917, -0.7370290160179138, 0.31338921189308167, -2.1030478477478027, -0.09674397855997086, -1.780490517616272, -2.307567834854126, -1.2245302200317383, -0.8232720494270325, 1.0859097242355347, 0.08420570939779282, -0.9464317560195923, 1.1390559673309326, -0.32974672317504883, -1.7507506608963013, 1.022234320640564, -2.049898862838745 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I can see this problem too in xcopa, unfortunately installing the latest master (1.18.4.dev0) doesn't work, @albertvillanova . ``` from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` Throws ``` 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://github.com/cambridgeltl/xcopa/archive/master.zip'] ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
74
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No I can see this problem too in xcopa, unfortunately installing the latest master (1.18.4.dev0) doesn't work, @albertvillanova . ``` from datasets import load_dataset dataset = load_dataset("xcopa", "it") ``` Throws ``` 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://github.com/cambridgeltl/xcopa/archive/master.zip'] ```
[ -1.2649307250976562, -0.9840641617774963, -0.695470929145813, 1.4300246238708496, -0.1865033656358719, -1.1511681079864502, 0.22541597485542297, -0.9782396554946899, 1.7185943126678467, -0.7487519979476929, 0.3138929009437561, -1.6878831386566162, -0.052779421210289, -0.721108078956604, -0.7147589921951294, -0.8054400086402893, -0.3583858013153076, -0.6906391382217407, 1.0443758964538574, 2.442282199859619, 1.2332664728164673, -1.4235031604766846, 2.6942296028137207, 0.6573932766914368, -0.208609476685524, -0.9797874689102173, 0.4788018763065338, 0.00018788594752550125, -1.1434465646743774, -0.5076311826705933, -0.9303844571113586, -0.016381463035941124, -0.5446105003356934, -0.4548511505126953, -0.01491452381014824, 0.46417343616485596, -0.3043985962867737, -0.4265038073062897, -0.5920745730400085, -0.7750185132026672, 0.45703133940696716, -0.37432873249053955, 0.898453950881958, -0.29814136028289795, 1.8568732738494873, -0.6057488918304443, 0.3897443115711212, 0.641076385974884, 1.2797391414642334, 0.21744075417518616, -0.0005506966263055801, 0.34109365940093994, 0.2935504913330078, -0.03920882195234299, 0.5761651396751404, 1.1777994632720947, 0.5787704586982727, 0.5310450792312622, 0.7363709211349487, -2.2897775173187256, 1.2003930807113647, -1.1655962467193604, 0.3116931915283203, 1.3956776857376099, -0.9455140233039856, 0.4040948450565338, -1.7975661754608154, -0.010524635203182697, 0.5473708510398865, -2.315258502960205, 0.2869769334793091, -1.3891583681106567, -0.55173259973526, 0.962249755859375, 0.3406854271888733, -1.2141046524047852, 0.15923073887825012, -0.32892176508903503, 1.1183055639266968, 0.36052706837654114, 1.092992901802063, -1.7002639770507812, -0.06479547917842865, -0.2670234143733978, 0.11502108722925186, -1.300700068473816, -1.5792721509933472, 0.5727807283401489, 0.5797059535980225, 0.5399575233459473, -0.19268381595611572, 1.0566799640655518, -1.0890578031539917, 0.7992027401924133, -1.1161932945251465, -1.6448687314987183, -1.5154670476913452, -2.265756130218506, -2.2855262756347656, 0.8284580707550049, -0.46250268816947937, -0.532477617263794, 1.9762330055236816, -0.9279966950416565, -1.789996862411499, 1.1801742315292358, 0.30913347005844116, 0.017253363505005836, 2.3432300090789795, 0.19480650126934052, -0.7609772682189941, 0.42215070128440857, -0.8317117691040039, 0.8215124607086182, -0.2502744495868683, 1.4820821285247803, 0.4686940908432007, -0.9950864315032959, 1.6252795457839966, -0.37319323420524597, 0.5818390846252441, -0.6134530901908875, -0.6005803942680359, -0.7412195205688477, 0.35104086995124817, 1.9234321117401123, -0.35290399193763733, 1.5640287399291992, -0.3591746985912323, -1.5427035093307495, -1.5192276239395142, 0.9182173609733582, 0.48870769143104553, -0.7919133901596069, 0.10991470515727997, -0.34255164861679077, 0.18777112662792206, -0.12174009531736374, 1.1881128549575806, 1.26271390914917, 0.6152740120887756, -0.3571784496307373, -0.8119419813156128, 0.22017218172550201, -0.02482079342007637, -0.6745420694351196, -1.7496365308761597, -0.3901348114013672, 0.16673307120800018, 0.5774741172790527, -1.2800036668777466, 1.6804739236831665, 0.8613836169242859, 1.8669986724853516, 0.985850989818573, -0.3331354260444641, 1.5360002517700195, 0.07221832871437073, 1.853216528892517, -0.5545358657836914, 0.5909745097160339, -0.26599517464637756, -1.093841552734375, 0.8001807928085327, -0.31657686829566956, -2.043137788772583, -0.813039243221283, -0.8458974957466125, -0.21033398807048798, -0.8145375847816467, 0.883747398853302, -0.29419487714767456, -1.4622093439102173, 0.1885780692100525, -0.717251181602478, 0.1523163765668869, -1.2497248649597168, 0.24953259527683258, 0.687686562538147, -0.5731249451637268, 0.05080647021532059, -0.1823529750108719, -1.260208249092102, -0.39466530084609985, 0.3367067575454712, 1.9327822923660278, -0.7222896814346313, 0.939134418964386, 1.0320067405700684, -0.7627347707748413, 0.0503162145614624, 0.2698107659816742, -0.2548949718475342, 0.8822774887084961, -1.0124549865722656, -0.5441406965255737, 1.1407259702682495, -0.12064339220523834, -0.5713228583335876, 1.4630731344223022, 0.7354252934455872, -1.0048481225967407, -0.3018423020839691, -0.18154582381248474, -0.7669678926467896, -0.006413619965314865, -1.5684528350830078, -0.21807654201984406, 0.3703213632106781, -1.445747971534729, -0.4978601932525635, -0.26456135511398315, 1.304542899131775, -0.25144249200820923, 1.4232985973358154, -0.368981271982193, -0.1964741349220276, -0.3345411419868469, -0.3896797299385071, 0.11944082379341125, -0.18811924755573273, -0.6881240606307983, 0.17829512059688568, -0.8207677602767944, 0.4479447603225708, 1.4140956401824951, 0.40625303983688354, -0.07619283348321915, 0.46982359886169434, 1.1772819757461548, 0.38218504190444946, -0.013104855082929134, -0.9402813911437988, -1.4962399005889893, 1.9577683210372925, -1.5128653049468994, 2.0075435638427734, 0.6484490036964417, -0.01391814649105072, -1.7215701341629028, -1.9029521942138672, 1.3125123977661133, 1.2582616806030273, 2.307547092437744, 0.5375470519065857, 0.4166499078273773, -0.9059486985206604, -0.6500881314277649, 0.2563732862472534, -1.0433409214019775, -0.6211839318275452, 0.2263796031475067, 2.3176655769348145, 1.812341332435608, -0.505051851272583, -0.20313164591789246, -0.9665718078613281, 1.359061598777771, -0.20303326845169067, 0.2174442857503891, 2.044638156890869, -0.2447029948234558, -1.122753620147705, 1.2757214307785034, -2.3029654026031494, 0.10830593854188919, 2.00154972076416, 0.2840539515018463, 0.08903191238641739, -1.3752106428146362, -0.5836054682731628, -0.34554705023765564, -0.3784131109714508, -1.3432179689407349, 0.5639049410820007, -0.16984118521213531, -0.8220739960670471, -1.4003686904907227, 0.21053825318813324, -1.1107982397079468, -1.6079603433609009, 0.3203788101673126, 1.9403445720672607, 2.0354959964752197, -0.7506765723228455, 1.4895466566085815, -0.3465786576271057, 0.2241210788488388, 1.2566051483154297, 1.208890438079834, 3.080089807510376, 1.9528127908706665, -1.2488230466842651, 0.6400882601737976, -0.19574525952339172, -0.48982247710227966, 1.2089004516601562, -1.1458394527435303, 1.2607930898666382, -0.14010998606681824, -1.1705334186553955, -1.265092372894287, 0.9307635426521301, 0.48241719603538513, -0.007936826907098293, -0.5184959769248962, 1.106170415878296, 0.10648591071367264, 1.3595374822616577, 0.5824567675590515, -0.43286943435668945, 0.6297040581703186, -0.3893279433250427, -0.4829007685184479, 1.5214632749557495, 0.12525226175785065, -1.4174610376358032, -2.2585883140563965, -0.22160783410072327, -0.88666832447052, 0.07513873279094696, -0.6065447926521301, -1.07467520236969, 1.6946269273757935, 0.398476779460907, -1.2830393314361572, -0.2642151713371277, -0.4192213714122772, -0.5987079739570618, 2.7684032917022705, -1.3370500802993774, -0.2118493914604187, -0.998938798904419, -0.6217854619026184, 1.6824895143508911, -1.1216890811920166, -0.19597388803958893, -1.0381165742874146, -0.5679437518119812, -1.325276494026184, -0.6175554990768433, -0.021087899804115295, -0.8887031078338623, 0.8721083998680115, 0.19596417248249054, -1.160025715827942, -0.41186875104904175, -0.8280656933784485, 0.9208025336265564, -0.22190512716770172, 0.19407854974269867, 1.9087283611297607, 0.31574562191963196, -0.30388692021369934, 0.8151161074638367, 1.1553736925125122, 0.5996453166007996, -0.5755497813224792, 0.22230538725852966, -0.6434765458106995, 0.2964201271533966, -1.3598147630691528, 0.24281130731105804, -2.8597848415374756, 0.713703989982605, -0.065193310379982, -0.04042921960353851, -0.05391547083854675, -1.3455010652542114, 1.11643648147583, 2.549758195877075, -1.2401597499847412, 0.42244166135787964, 0.41288384795188904, 1.191767930984497, -1.622666358947754, 0.23826633393764496, -0.4360235631465912, 2.1591601371765137, 0.195048525929451, 1.25682532787323, -0.5213571786880493, -2.3166556358337402, 0.5542858242988586, -1.2114373445510864, -1.2199864387512207, 0.7607569694519043, -0.9422369599342346, 0.12553517520427704, -1.5186104774475098, -0.2653496265411377, -0.8807395696640015, -1.2036538124084473, 0.7296378016471863, 0.11541888117790222, 0.34930992126464844, -0.60494464635849, 0.41449490189552307, -2.2901687622070312, -1.3607195615768433, -0.2598531246185303, -0.9416029453277588, 0.5116970539093018, -0.32738783955574036, 0.6750795245170593, -0.10560993105173111, 0.01210571639239788, 0.2766352891921997, 1.4828178882598877, 3.4313464164733887, 0.25575318932533264, 0.3776131570339203, -0.15642918646335602, -0.8959787487983704, 1.4586981534957886, 0.9292169809341431, -0.09770110994577408, -0.4727489948272705, -1.079354166984558, 1.3310526609420776, 1.939713716506958, 0.9694049954414368, -0.0036625047214329243, -0.7843026518821716, -0.6813678741455078, -0.0626111552119255, 0.23268760740756989, 0.46464356780052185, 0.8844044208526611, 0.15326273441314697, 0.15163280069828033, 1.3353276252746582, 1.1540799140930176, -0.4331972301006317, 0.3686411380767822, -0.8872839212417603, -0.47624436020851135, 0.48583734035491943, 0.24063719809055328, -0.034865573048591614, 0.3870851993560791, -1.0154258012771606, -0.3446359634399414, -0.3419041633605957, -0.8818128108978271, -0.716066300868988, -0.4027535319328308, -0.337346613407135, 1.6039124727249146, 0.15060731768608093, -0.5111851692199707, -0.046122074127197266, -0.7475751638412476, -0.13921396434307098, -1.1292475461959839, 0.2615995705127716, -0.08116050064563751, -0.09507372975349426, -0.16323892772197723, 1.6948044300079346, -0.8726188540458679, -1.9667167663574219, 0.20222409069538116, 0.3733569085597992, -0.34313076734542847, 0.1745506078004837, 1.6314665079116821, 0.5187320709228516, 1.4273015260696411, 1.231318712234497, 0.9630899429321289, -0.5091906189918518, -1.2631525993347168, 0.636285662651062, 0.9687186479568481, -1.2996788024902344, 0.7750051617622375, -0.05187741667032242, -0.39140698313713074, 0.6001152992248535, 1.3620713949203491, 0.4827353060245514, -2.001354217529297, 0.8125280141830444, -0.9414971470832825, 0.7217208743095398, 0.7306382656097412, 0.7606924772262573, 0.23679640889167786, 0.9127586483955383, -1.1886780261993408, -1.1131120920181274, -0.7180993556976318, -0.6242769360542297, 2.0533907413482666, -0.2451600432395935, 0.5542445778846741, -0.2673191428184509, -1.2675193548202515, -0.026361830532550812, 0.6742414832115173, 0.4664132297039032, -0.43873897194862366, 0.8483381271362305, -0.6180928945541382, -1.0026013851165771, -1.3829973936080933, -0.3790406584739685, -0.9503746032714844, -1.0708988904953003, 1.027982234954834, 0.8810290098190308, 0.3094181716442108, 1.8145463466644287, 0.6404321193695068, 0.25818073749542236, -2.5662760734558105, 0.9541547894477844, 0.3253864049911499, -0.07512127608060837, 0.8663367629051208, 0.3699137270450592, 1.0903244018554688, -0.009919263422489166, 0.5106925964355469, -2.364018440246582, 2.2515721321105957, -0.16612233221530914, 0.7752483487129211, -0.07169950753450394, -0.1739911586046219, 1.0770753622055054, 0.4988531172275543, 0.5030449032783508, -1.0721036195755005, 0.7019383311271667, -0.5301188826560974, 1.2087594270706177, 0.9808603525161743, -0.737647533416748, 0.02354549802839756, 1.4124914407730103, 0.4608076512813568, -0.532599151134491, -0.9474549889564514, -0.865828275680542, 1.013866662979126, 1.6783100366592407, -0.05340620130300522, -0.03430798277258873, 0.8816174268722534, 0.7338259816169739, -1.2253942489624023, 0.06180937588214874, -0.6946570873260498, -0.7184459567070007, 1.642836332321167, 2.0705580711364746, -0.18223829567432404, -0.2821265161037445, -0.7535765171051025, -1.3226723670959473, 0.7223793864250183, -0.038153138011693954, 0.13458821177482605, 0.6795297861099243, -0.6984782814979553, 1.1094473600387573, 0.8597171902656555, 0.8978309035301208, 0.15286576747894287, 0.41633033752441406, 0.4215787351131439, -0.3061261773109436, -1.220712661743164, -0.2668868899345398, -1.140813946723938, -2.5480690002441406, 0.43998000025749207, -0.31183141469955444, -1.3343513011932373, 0.046790286898612976, -1.0233243703842163, 0.9230153560638428, -0.696489155292511, -1.1859440803527832, -1.5528556108474731, 0.16365621984004974, 0.00403822585940361, 0.8910738229751587, -1.6217423677444458, -0.21282395720481873, 1.2362474203109741, 0.8992632627487183, -0.6527646780014038, 0.9890890121459961, 0.24151553213596344, 1.1062556505203247, 0.7764438986778259, -0.39273834228515625, 0.5656121969223022, -0.01113947480916977, -1.4041614532470703, 0.6054065823554993, 1.1701931953430176, 0.24659879505634308, 1.5345693826675415, -0.5451930165290833, 0.019785510376095772, 0.4603119194507599, -0.6263784170150757, -0.5561302304267883, -0.5649009346961975, 0.6474789381027222, 0.026470081880688667, -0.9288192391395569, -0.005768225062638521, 0.024281742051243782, -0.18707363307476044, 0.14045454561710358, -1.4933520555496216, -0.1364002525806427, -0.4180148243904114, -0.6279903054237366, -1.2752718925476074, -0.11884654313325882, 1.3410061597824097, -0.8309475183486938, -0.1880480945110321, 0.4725183844566345, 0.36956778168678284, 0.5760034918785095, 0.6183982491493225, -0.6618044376373291, -0.3307197690010071, -0.2372463345527649, -0.3250548839569092, 0.3203342854976654, 1.3469794988632202, -0.10618765652179718, -1.0396093130111694, 0.5707045197486877, -0.3729571998119354, 0.07987651228904724, 1.9763745069503784, 0.09601493179798126, -0.7411109805107117, 0.29322385787963867, -0.7131379842758179, 1.856469988822937, 1.6818287372589111, 1.345548152923584, -0.12080325186252594, -0.9218118786811829, 0.6467636227607727, -0.3808750510215759, -0.4367051124572754, 0.8400289416313171, 0.41476887464523315, -0.15356233716011047, -1.4649362564086914, 0.7431532144546509, 1.3707799911499023, -0.9644507765769958, -0.8230361938476562, 0.150730699300766, -0.7917575836181641, 1.029881238937378, 0.5718265175819397, 0.28636056184768677, 0.31501591205596924, 1.6664294004440308, 0.7384309768676758, -0.40228360891342163, 0.4765520393848419, 0.6104483008384705, -0.20904776453971863, -2.1701607704162598, -1.2566922903060913, 0.338954895734787, -0.4860805571079254, -1.573693871498108, 1.3919035196304321, -1.048506498336792, -0.9652227759361267, 0.5424479246139526, 0.11507124453783035, 1.3877919912338257, 0.3321306109428406, 1.5885488986968994, 2.085919141769409, 0.7845858931541443, 0.40940168499946594, 1.2427144050598145, -0.13776519894599915, -0.48856285214424133, 1.8265427350997925, -0.4794669449329376, 0.5245408415794373, 1.092410922050476, -0.28015780448913574, -1.1968986988067627, -0.7794781923294067, -1.3537662029266357, -0.6977373957633972, 1.1999887228012085, 0.14085818827152252, -1.1053662300109863, 0.21273991465568542, 1.6210471391677856, 0.16043013334274292, -0.4227101504802704, 0.6395014524459839, 0.37132900953292847, -0.8446826338768005, -0.0010585011914372444, -1.0240527391433716, 0.4930836260318756, -0.157056987285614, -0.2811388671398163, 0.20234163105487823, 0.5190022587776184, 1.401914119720459, -0.03922101855278015, 0.12532514333724976, 1.0550665855407715, -1.3926304578781128, 1.4845528602600098, -0.6601211428642273, 0.3191215991973877, -2.3825857639312744, 1.330475091934204, -0.8054165840148926, 1.914442539215088, -2.6680970191955566, 0.4667007327079773, -0.5363520979881287, -0.4166976511478424, 0.2786238193511963, -0.4033525884151459, 0.14793691039085388, -0.023220619186758995, -1.1747863292694092, -0.015049725770950317, -0.7036737203598022, 0.6330870389938354, 1.1572496891021729, 1.3952596187591553, -1.1536041498184204, -0.2854064702987671, -1.7288662195205688, -0.08526768535375595, -0.7321839928627014, 0.28798234462738037, -2.0175881385803223, -0.15063337981700897, -1.8319456577301025, -2.325310230255127, -1.141234040260315, -0.7635288238525391, 1.0763800144195557, 0.06911594420671463, -0.8635518550872803, 1.1845027208328247, -0.3427458703517914, -1.7751381397247314, 1.1025456190109253, -2.0790820121765137 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Hi @rafikg, I think that is another different issue. Let me check it... I guess maybe you are using a different Python version that the one the dataset owner used to create the pickle file...
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
35
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No Hi @rafikg, I think that is another different issue. Let me check it... I guess maybe you are using a different Python version that the one the dataset owner used to create the pickle file...
[ -1.2615758180618286, -0.9995521903038025, -0.7834652662277222, 1.3485755920410156, -0.2860637307167053, -1.1651208400726318, 0.17159020900726318, -1.075065016746521, 1.7685399055480957, -0.6958877444267273, 0.26444581151008606, -1.7098023891448975, -0.0458117350935936, -0.6548917293548584, -0.709394633769989, -0.8732381463050842, -0.3696233034133911, -0.7931521534919739, 0.9975476861000061, 2.4899635314941406, 1.1146701574325562, -1.3523260354995728, 2.686291217803955, 0.6841865181922913, -0.17791084945201874, -0.9909548163414001, 0.593976616859436, 0.0725947842001915, -1.222988247871399, -0.4720471501350403, -0.951293408870697, -0.08830897510051727, -0.4806230068206787, -0.4906916916370392, 0.012292525731027126, 0.3448788821697235, -0.2561999559402466, -0.40237104892730713, -0.5287143588066101, -0.7261316776275635, 0.46356919407844543, -0.40694236755371094, 0.8894831538200378, -0.41173458099365234, 1.876349925994873, -0.5721777677536011, 0.3699202835559845, 0.6760267019271851, 1.3077828884124756, 0.1772942990064621, -0.025516949594020844, 0.314959317445755, 0.4322681427001953, -0.02455858513712883, 0.4072328209877014, 1.0870248079299927, 0.5474965572357178, 0.5234746336936951, 0.7344803214073181, -2.2770981788635254, 1.2166885137557983, -1.0838754177093506, 0.3412055969238281, 1.4003281593322754, -0.9884043335914612, 0.418844997882843, -1.760669231414795, -0.019797977060079575, 0.5572949051856995, -2.330038547515869, 0.24537575244903564, -1.385433554649353, -0.6178271770477295, 0.863433301448822, 0.3534753620624542, -1.3148375749588013, 0.14993281662464142, -0.4240797460079193, 1.0799572467803955, 0.43223023414611816, 1.1412261724472046, -1.7271702289581299, -0.10669633001089096, -0.3235354721546173, 0.00872103776782751, -1.3893626928329468, -1.4532361030578613, 0.6213911771774292, 0.5684117674827576, 0.6185815334320068, -0.15403851866722107, 0.9945161938667297, -1.0278804302215576, 0.8383324146270752, -1.0460256338119507, -1.6579586267471313, -1.450076937675476, -2.2485127449035645, -2.248683452606201, 0.9054681658744812, -0.3963213860988617, -0.5359728932380676, 1.9716459512710571, -0.9737697243690491, -1.7569682598114014, 1.1829960346221924, 0.18491819500923157, 0.009182014502584934, 2.367799997329712, 0.22203034162521362, -0.6570698022842407, 0.33716222643852234, -0.7959900498390198, 0.8393864035606384, -0.3302581012248993, 1.5371506214141846, 0.5147376656532288, -0.9923195838928223, 1.618821144104004, -0.3685772716999054, 0.5431769490242004, -0.6507388949394226, -0.635353684425354, -0.8809010982513428, 0.3321811258792877, 1.911628246307373, -0.3481428325176239, 1.6069988012313843, -0.39509448409080505, -1.5725301504135132, -1.5762395858764648, 0.9026835560798645, 0.5085172653198242, -0.781614363193512, 0.09448335319757462, -0.2938832938671112, 0.15161776542663574, -0.08992649614810944, 1.2353284358978271, 1.2416977882385254, 0.6397051811218262, -0.2902011573314667, -0.8543834090232849, 0.2565828263759613, -0.1265539973974228, -0.7576162815093994, -1.835662603378296, -0.4351607859134674, 0.13939112424850464, 0.6221165060997009, -1.2660542726516724, 1.5831665992736816, 0.807962954044342, 1.842315673828125, 1.0100195407867432, -0.3017748296260834, 1.4551705121994019, 0.049606505781412125, 1.8084160089492798, -0.5969141721725464, 0.7084825038909912, -0.24809394776821136, -0.9948222041130066, 0.827155351638794, -0.3343970775604248, -2.023447275161743, -0.8570639491081238, -0.8870323896408081, -0.20265839993953705, -0.7529792785644531, 0.9205167293548584, -0.39274731278419495, -1.3826704025268555, 0.29682493209838867, -0.7436184287071228, 0.10206834226846695, -1.2038427591323853, 0.2845635414123535, 0.7159149050712585, -0.5752882361412048, 0.006165233440697193, -0.17269979417324066, -1.2821948528289795, -0.44380098581314087, 0.25309789180755615, 2.000260353088379, -0.7882971167564392, 0.9737366437911987, 0.959940493106842, -0.8211759328842163, -0.01616390235722065, 0.3177723288536072, -0.22345294058322906, 0.8184412717819214, -1.0916798114776611, -0.45486170053482056, 1.073433518409729, -0.11841786652803421, -0.5471539497375488, 1.4725779294967651, 0.7736874222755432, -0.9968129992485046, -0.25667476654052734, -0.27341175079345703, -0.791096568107605, 0.0017383517697453499, -1.6065882444381714, -0.2070537507534027, 0.22115826606750488, -1.4858505725860596, -0.5789780020713806, -0.24081623554229736, 1.359090805053711, -0.15081307291984558, 1.281693458557129, -0.32693973183631897, -0.3672603666782379, -0.39032360911369324, -0.34588393568992615, 0.20456154644489288, -0.20337292551994324, -0.6859862208366394, 0.2144642174243927, -0.8371955752372742, 0.3697170615196228, 1.3510125875473022, 0.4662591814994812, -0.015080115757882595, 0.6071093082427979, 1.0245707035064697, 0.34500744938850403, -0.03419965133070946, -0.9006540775299072, -1.5753633975982666, 1.9619566202163696, -1.5291496515274048, 1.9535218477249146, 0.6405490040779114, -0.06249468773603439, -1.7858020067214966, -1.9323902130126953, 1.3619412183761597, 1.3211512565612793, 2.2890262603759766, 0.6896158456802368, 0.45742592215538025, -0.8153985142707825, -0.666383683681488, 0.222532719373703, -1.1376827955245972, -0.6498415470123291, 0.14874385297298431, 2.3231499195098877, 1.7754470109939575, -0.6374233961105347, -0.15892153978347778, -1.0105268955230713, 1.277105689048767, -0.09333395957946777, 0.23139333724975586, 2.0234248638153076, -0.33089491724967957, -1.1710327863693237, 1.2126996517181396, -2.267192840576172, 0.03179952874779701, 1.9286670684814453, 0.2823387682437897, 0.07958144694566727, -1.4827567338943481, -0.6717932224273682, -0.2686351239681244, -0.453044593334198, -1.3189738988876343, 0.6566722989082336, -0.2791092097759247, -0.8633553385734558, -1.4710330963134766, 0.1428190916776657, -1.1014941930770874, -1.5542774200439453, 0.3744029700756073, 1.8888421058654785, 1.976755976676941, -0.6705641746520996, 1.518794298171997, -0.28696221113204956, 0.23229564726352692, 1.3133045434951782, 1.170621395111084, 3.1159441471099854, 2.006863832473755, -1.150627613067627, 0.6517727375030518, -0.14231149852275848, -0.4419718086719513, 1.1370210647583008, -1.104889154434204, 1.3118842840194702, -0.13860861957073212, -1.1689975261688232, -1.2560615539550781, 0.90235835313797, 0.47475579380989075, -0.005301498807966709, -0.49599018692970276, 1.2569494247436523, 0.008943424560129642, 1.3649033308029175, 0.4969176948070526, -0.38809457421302795, 0.6418330073356628, -0.4839329123497009, -0.40815362334251404, 1.6482625007629395, 0.21630342304706573, -1.393950343132019, -2.373342514038086, -0.2562919557094574, -0.827619194984436, 0.05051415041089058, -0.555292010307312, -1.0424035787582397, 1.7028348445892334, 0.49529120326042175, -1.286164402961731, -0.25521332025527954, -0.3872443437576294, -0.6415683031082153, 2.7533152103424072, -1.4254701137542725, -0.26766952872276306, -0.9474141597747803, -0.6050865054130554, 1.7669634819030762, -1.1990236043930054, -0.20849283039569855, -1.0323989391326904, -0.6160297393798828, -1.3290461301803589, -0.544032633304596, -0.0746762603521347, -0.9283075332641602, 0.9288555383682251, 0.14963756501674652, -1.0262795686721802, -0.340210497379303, -0.8269338011741638, 0.7895444631576538, -0.11336519569158554, 0.2839879095554352, 1.9676047563552856, 0.38068440556526184, -0.35062548518180847, 0.6583983302116394, 1.145080804824829, 0.6584758758544922, -0.6826299428939819, 0.25522923469543457, -0.6537784337997437, 0.24030634760856628, -1.3554571866989136, 0.287029504776001, -2.9152095317840576, 0.7287828326225281, -0.0583345890045166, -0.055501338094472885, 0.026927195489406586, -1.2634646892547607, 1.1652588844299316, 2.530902147293091, -1.2481966018676758, 0.38689523935317993, 0.2776096761226654, 1.1525019407272339, -1.5587129592895508, 0.3095550239086151, -0.3711223900318146, 2.137669563293457, 0.2666136920452118, 1.2195935249328613, -0.4797825813293457, -2.2434957027435303, 0.6042188405990601, -1.162345290184021, -1.214617371559143, 0.6511886119842529, -0.8738589286804199, 0.12396720051765442, -1.5484073162078857, -0.20145420730113983, -0.857408344745636, -1.2835826873779297, 0.7598495483398438, 0.18576298654079437, 0.3415471315383911, -0.6095502376556396, 0.38231611251831055, -2.165116310119629, -1.3455336093902588, -0.2659156024456024, -0.8744908571243286, 0.48392346501350403, -0.23732459545135498, 0.7172234058380127, -0.12022097408771515, 0.12829433381557465, 0.2692384421825409, 1.4417093992233276, 3.3773040771484375, 0.19509972631931305, 0.38172557950019836, -0.08987154066562653, -0.9235324859619141, 1.436265230178833, 1.0380393266677856, 0.06923940032720566, -0.5295253396034241, -1.064345359802246, 1.293392539024353, 1.9372974634170532, 0.9259764552116394, 0.09528744965791702, -0.7085228562355042, -0.5345675349235535, -0.031111758202314377, 0.3215974271297455, 0.46616628766059875, 0.8887616395950317, 0.0953635647892952, 0.12544657289981842, 1.4362860918045044, 1.1975551843643188, -0.4438193142414093, 0.3784981369972229, -0.8734032511711121, -0.48942381143569946, 0.5418180227279663, 0.35271555185317993, -0.024909045547246933, 0.340120792388916, -1.0735414028167725, -0.2990785539150238, -0.20937947928905487, -1.0270475149154663, -0.6724954843521118, -0.37590450048446655, -0.34183958172798157, 1.5738648176193237, 0.12800686061382294, -0.4593487083911896, -0.157074436545372, -0.7905644774436951, -0.13954514265060425, -1.1398390531539917, 0.24774295091629028, -0.11154475063085556, -0.07755542546510696, -0.10315234959125519, 1.8368042707443237, -0.8547641038894653, -2.0269997119903564, 0.25072917342185974, 0.35872986912727356, -0.413265585899353, 0.2085583657026291, 1.5335332155227661, 0.5604559183120728, 1.4496625661849976, 1.200326919555664, 0.996346652507782, -0.5095659494400024, -1.3640849590301514, 0.6168919205665588, 0.9254521131515503, -1.3672256469726562, 0.7648470401763916, 0.0017769429832696915, -0.43585655093193054, 0.6408762335777283, 1.3247697353363037, 0.4787420332431793, -1.9387956857681274, 0.7953249216079712, -0.8650469183921814, 0.7632293105125427, 0.7726543545722961, 0.8092389106750488, 0.27308565378189087, 0.933709442615509, -1.288595199584961, -1.1377853155136108, -0.8127575516700745, -0.580122709274292, 2.048928737640381, -0.16493991017341614, 0.5900453925132751, -0.26345309615135193, -1.2614765167236328, -0.04350559040904045, 0.6161802411079407, 0.4572424590587616, -0.34335750341415405, 0.8392480611801147, -0.6510007381439209, -1.1133304834365845, -1.4206262826919556, -0.41890451312065125, -0.9137842655181885, -1.0312058925628662, 1.0804753303527832, 0.876128613948822, 0.35953256487846375, 1.9124377965927124, 0.579864501953125, 0.2705921530723572, -2.5905673503875732, 0.865044355392456, 0.3198208510875702, -0.051278382539749146, 0.9035700559616089, 0.3374217450618744, 1.1062482595443726, -0.060564566403627396, 0.475757896900177, -2.3267927169799805, 2.2265613079071045, -0.2507472336292267, 0.7166338562965393, -0.04930485412478447, -0.07593445479869843, 1.1209295988082886, 0.512249767780304, 0.5764840245246887, -0.9908452033996582, 0.662617027759552, -0.6072790622711182, 1.2705612182617188, 1.0570875406265259, -0.6694951057434082, -0.0013886820524930954, 1.3170013427734375, 0.5413504242897034, -0.473980188369751, -0.8317250609397888, -0.9228556156158447, 0.9235028028488159, 1.7388560771942139, -0.07218591123819351, -0.034180548042058945, 0.8592389822006226, 0.6704984307289124, -1.3273555040359497, 0.04341266304254532, -0.7865292429924011, -0.636904776096344, 1.6522082090377808, 2.095466375350952, -0.11430466920137405, -0.21918511390686035, -0.7396697998046875, -1.2568542957305908, 0.7499872446060181, 0.013403044082224369, 0.08787562698125839, 0.7165237069129944, -0.6473312377929688, 1.0491915941238403, 0.9263768196105957, 0.9359195828437805, 0.24512046575546265, 0.5121780633926392, 0.34443774819374084, -0.24004314839839935, -1.2015596628189087, -0.2850932478904724, -1.0660167932510376, -2.5380475521087646, 0.4977908432483673, -0.365090548992157, -1.3556971549987793, 0.012874654494225979, -1.0935548543930054, 0.9174281358718872, -0.6078184843063354, -1.117828369140625, -1.5924991369247437, 0.12948119640350342, -0.019000759348273277, 0.9584972858428955, -1.5683586597442627, -0.07268670946359634, 1.2554078102111816, 0.8871154189109802, -0.6454785466194153, 1.0241683721542358, 0.31247615814208984, 1.1306390762329102, 0.7351281642913818, -0.48817065358161926, 0.4836612045764923, -0.026203665882349014, -1.3663519620895386, 0.6486916542053223, 1.119797706604004, 0.19604581594467163, 1.4752142429351807, -0.6371568441390991, -0.018851768225431442, 0.5030795931816101, -0.5965185165405273, -0.4986904561519623, -0.6066688895225525, 0.6836620569229126, 0.11828011274337769, -0.885378360748291, -0.004677545744925737, -0.01350646372884512, -0.20848631858825684, 0.2275131791830063, -1.4775620698928833, -0.20413263142108917, -0.4108344316482544, -0.5672537088394165, -1.2403031587600708, -0.10934765636920929, 1.2631646394729614, -0.7679559588432312, -0.18361008167266846, 0.48990702629089355, 0.4532887935638428, 0.573287844657898, 0.6226427555084229, -0.661639392375946, -0.3763238489627838, -0.2523139417171478, -0.33498692512512207, 0.285831093788147, 1.3321642875671387, -0.23661485314369202, -1.0809924602508545, 0.6834921836853027, -0.2947080731391907, 0.05503752455115318, 1.985028862953186, 0.07960531115531921, -0.8209874629974365, 0.20054905116558075, -0.7732657194137573, 1.9097890853881836, 1.531145453453064, 1.3902757167816162, -0.15342919528484344, -0.8220802545547485, 0.5240280628204346, -0.2595444321632385, -0.4419673681259155, 0.7811582088470459, 0.5387386679649353, -0.11917584389448166, -1.3981270790100098, 0.6677059531211853, 1.3623857498168945, -1.0109626054763794, -0.8654826283454895, 0.16964946687221527, -0.777015209197998, 1.0287374258041382, 0.6438254714012146, 0.4676416516304016, 0.31640735268592834, 1.62354576587677, 0.6502580046653748, -0.4343317449092865, 0.4160006046295166, 0.5348358154296875, -0.06786089390516281, -2.110628843307495, -1.2842082977294922, 0.3087291419506073, -0.5272444486618042, -1.620288610458374, 1.3958081007003784, -1.0942444801330566, -0.9053890109062195, 0.5059010982513428, 0.21068473160266876, 1.386328935623169, 0.2897113859653473, 1.5984731912612915, 1.9973067045211792, 0.8325265645980835, 0.3291987180709839, 1.37260901927948, -0.04145178571343422, -0.5217071175575256, 1.8549798727035522, -0.4458661377429962, 0.5420868396759033, 1.094426155090332, -0.22152909636497498, -1.1154175996780396, -0.7157312035560608, -1.2336750030517578, -0.602212131023407, 1.1348357200622559, 0.1383407860994339, -1.201927661895752, 0.1329151690006256, 1.4816361665725708, 0.15876515209674835, -0.3642211854457855, 0.5540497899055481, 0.3068045675754547, -0.769903302192688, -0.02985028550028801, -1.0616074800491333, 0.5660249590873718, -0.19808249175548553, -0.325538694858551, 0.16168582439422607, 0.5067140460014343, 1.3843685388565063, -0.10619840770959854, 0.12461745738983154, 1.2306609153747559, -1.372327446937561, 1.5053820610046387, -0.6114060282707214, 0.2168547511100769, -2.4217286109924316, 1.3821187019348145, -0.7764443755149841, 1.9063972234725952, -2.714642286300659, 0.38910266757011414, -0.5060209631919861, -0.3638286292552948, 0.3267039358615875, -0.3591086268424988, 0.1646452099084854, -0.09910212457180023, -1.1921510696411133, 0.05253375694155693, -0.7898819446563721, 0.5136738419532776, 1.2040841579437256, 1.3835625648498535, -1.1491374969482422, -0.24971826374530792, -1.7620103359222412, -0.1332377940416336, -0.7416711449623108, 0.3551848530769348, -2.0945675373077393, -0.10417548567056656, -1.7584601640701294, -2.356588125228882, -1.222618579864502, -0.8201097846031189, 1.065190076828003, 0.05836537107825279, -0.9129719734191895, 1.1193933486938477, -0.3162898123264313, -1.765699028968811, 1.012877345085144, -2.094341993331909 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@kwchurch the datasets impacted for this specific issue are the ones which are hosted at Google Drive.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
17
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @kwchurch the datasets impacted for this specific issue are the ones which are hosted at Google Drive.
[ -1.2333792448043823, -1.0231046676635742, -0.772314190864563, 1.3263030052185059, -0.26041027903556824, -1.2205551862716675, 0.16097912192344666, -1.0831677913665771, 1.738909125328064, -0.7291485071182251, 0.22842949628829956, -1.708259105682373, -0.04488206282258034, -0.6979254484176636, -0.7064138650894165, -0.8375543355941772, -0.3666461110115051, -0.7405699491500854, 0.9728041291236877, 2.447312116622925, 1.1769917011260986, -1.3214565515518188, 2.747443914413452, 0.6814620494842529, -0.23793025314807892, -0.9841708540916443, 0.5106605291366577, 0.07693257182836533, -1.1489486694335938, -0.46237874031066895, -0.9274247884750366, -0.06837504357099533, -0.49930310249328613, -0.47120243310928345, 0.02104939892888069, 0.44377821683883667, -0.2902180254459381, -0.4302957355976105, -0.530349612236023, -0.7067615389823914, 0.4797373414039612, -0.3400399684906006, 0.9275971055030823, -0.39981475472450256, 1.894950032234192, -0.6012691259384155, 0.29276394844055176, 0.6270954608917236, 1.3112236261367798, 0.1199733093380928, -0.061754293739795685, 0.31721988320350647, 0.2899549603462219, -0.048684000968933105, 0.41223400831222534, 1.1828416585922241, 0.5717594623565674, 0.551197350025177, 0.7208998799324036, -2.2164535522460938, 1.200398564338684, -1.124226689338684, 0.3508417010307312, 1.4622160196304321, -1.0065600872039795, 0.4692240059375763, -1.77535879611969, -0.043442502617836, 0.5246140956878662, -2.3612051010131836, 0.2867562770843506, -1.371099591255188, -0.6198195219039917, 0.8955469727516174, 0.33694952726364136, -1.2607204914093018, 0.20527194440364838, -0.45203256607055664, 1.1292753219604492, 0.4486660659313202, 1.1026902198791504, -1.7178692817687988, -0.03173818811774254, -0.2978929877281189, -0.001698424108326435, -1.4087104797363281, -1.4573116302490234, 0.6654824614524841, 0.58788001537323, 0.691144585609436, -0.14816097915172577, 0.9847589135169983, -1.0246142148971558, 0.8218796253204346, -1.0885210037231445, -1.5976730585098267, -1.422369360923767, -2.253056526184082, -2.2287003993988037, 0.9079518914222717, -0.41059479117393494, -0.575158953666687, 1.9873483180999756, -0.8942232131958008, -1.8194719552993774, 1.193600058555603, 0.17606055736541748, 0.018535610288381577, 2.361908435821533, 0.24517163634300232, -0.6644152402877808, 0.37397122383117676, -0.7636927366256714, 0.8839784264564514, -0.29536738991737366, 1.5862489938735962, 0.5221545696258545, -0.9935972690582275, 1.6861268281936646, -0.37971389293670654, 0.5838835835456848, -0.6555054187774658, -0.7145860195159912, -0.8758219480514526, 0.41883283853530884, 1.9416769742965698, -0.337971031665802, 1.5749425888061523, -0.4497984051704407, -1.5420136451721191, -1.547810673713684, 0.9283304810523987, 0.5614418387413025, -0.785741925239563, 0.12310986965894699, -0.3080610930919647, 0.11141007393598557, -0.0962333157658577, 1.2701544761657715, 1.2061588764190674, 0.6067960858345032, -0.3283747732639313, -0.8287808895111084, 0.2574845850467682, -0.04504537954926491, -0.7926148772239685, -1.8466458320617676, -0.4067668616771698, 0.17964348196983337, 0.5383716821670532, -1.297635555267334, 1.5530426502227783, 0.8552389144897461, 1.868209719657898, 0.984688401222229, -0.28959721326828003, 1.4106969833374023, 0.019372466951608658, 1.805564284324646, -0.5464986562728882, 0.6537536382675171, -0.21042400598526, -1.0413689613342285, 0.8135129809379578, -0.3379940390586853, -2.031449556350708, -0.8833065032958984, -0.9434105753898621, -0.1760948896408081, -0.7823227643966675, 0.9742423295974731, -0.37462928891181946, -1.4097545146942139, 0.23570939898490906, -0.6902040839195251, 0.14775380492210388, -1.2511557340621948, 0.22571368515491486, 0.7310997843742371, -0.5786470174789429, -0.07249811291694641, -0.17864246666431427, -1.2508633136749268, -0.4282744228839874, 0.27141016721725464, 2.027599573135376, -0.8016601204872131, 0.9240301251411438, 0.9610838890075684, -0.7948043942451477, 0.004635178484022617, 0.23849664628505707, -0.25390511751174927, 0.8300619721412659, -1.0689339637756348, -0.4915716350078583, 1.0373612642288208, -0.09814552962779999, -0.5276420712471008, 1.4951285123825073, 0.7854181528091431, -1.0050283670425415, -0.2907557487487793, -0.2700188457965851, -0.8137003779411316, -0.07101093232631683, -1.560505986213684, -0.20011265575885773, 0.22217106819152832, -1.4517558813095093, -0.57737135887146, -0.2739347219467163, 1.3156120777130127, -0.22949190437793732, 1.271094799041748, -0.34710419178009033, -0.3246711194515228, -0.3803638815879822, -0.3419957756996155, 0.1963711529970169, -0.18202458322048187, -0.722404420375824, 0.1673945039510727, -0.8121843934059143, 0.37438660860061646, 1.4190608263015747, 0.4642968773841858, -0.006328359711915255, 0.6163627505302429, 1.0502493381500244, 0.32510948181152344, -0.06023816391825676, -0.9182912707328796, -1.5625336170196533, 1.8662116527557373, -1.5413711071014404, 1.8917216062545776, 0.6402774453163147, -0.03974258899688721, -1.7401518821716309, -1.9509007930755615, 1.3765286207199097, 1.366797685623169, 2.2274436950683594, 0.6724402904510498, 0.4585900902748108, -0.8858906626701355, -0.6834960579872131, 0.16590331494808197, -1.1265435218811035, -0.6429377794265747, 0.1602136343717575, 2.2316761016845703, 1.8432554006576538, -0.6575428247451782, -0.21851986646652222, -1.019429326057434, 1.2401275634765625, -0.13623777031898499, 0.22893854975700378, 1.996696949005127, -0.37079566717147827, -1.1406970024108887, 1.2363172769546509, -2.313471555709839, 0.0451783686876297, 1.955305814743042, 0.2848353087902069, 0.1067594438791275, -1.4493398666381836, -0.5912342071533203, -0.3065498471260071, -0.4238033592700958, -1.3530000448226929, 0.6293689608573914, -0.2481939047574997, -0.8471182584762573, -1.4859856367111206, 0.19657473266124725, -1.101434350013733, -1.5047625303268433, 0.41955363750457764, 1.9066299200057983, 2.006695032119751, -0.6709362268447876, 1.5364896059036255, -0.32203322649002075, 0.2988394498825073, 1.308704137802124, 1.1965919733047485, 3.0813395977020264, 1.952014684677124, -1.156976342201233, 0.6813294291496277, -0.11969422549009323, -0.49445509910583496, 1.1232225894927979, -1.0701289176940918, 1.2838455438613892, -0.1630537509918213, -1.1598992347717285, -1.3224564790725708, 0.8241759538650513, 0.4780385196208954, 0.05538496747612953, -0.4843917489051819, 1.2501397132873535, 0.03538300096988678, 1.4100205898284912, 0.5338268876075745, -0.43015673756599426, 0.5953353047370911, -0.4115961492061615, -0.3911822438240051, 1.580786943435669, 0.1656988561153412, -1.4435176849365234, -2.3281495571136475, -0.24733474850654602, -0.8046615719795227, 0.06937631964683533, -0.5703884363174438, -1.0487377643585205, 1.7265580892562866, 0.48876869678497314, -1.2820976972579956, -0.25674962997436523, -0.3733710050582886, -0.6102269291877747, 2.7562835216522217, -1.4501923322677612, -0.24966487288475037, -0.9443397521972656, -0.5580826997756958, 1.8096438646316528, -1.1838529109954834, -0.20791126787662506, -0.9891819357872009, -0.6442263722419739, -1.3694486618041992, -0.58995121717453, -0.048467062413692474, -0.9414368867874146, 0.9570796489715576, 0.11579772084951401, -1.0328189134597778, -0.3652268052101135, -0.8281949758529663, 0.8513417840003967, -0.21518348157405853, 0.259427934885025, 1.9701523780822754, 0.3797268867492676, -0.35625094175338745, 0.734904944896698, 1.1563996076583862, 0.6093555688858032, -0.6219381093978882, 0.21785594522953033, -0.6419307589530945, 0.24447780847549438, -1.3683725595474243, 0.28165945410728455, -2.9779906272888184, 0.6850550770759583, -0.04045100882649422, 0.015311862342059612, -0.004179189447313547, -1.3329665660858154, 1.186461091041565, 2.5121755599975586, -1.271532654762268, 0.3925034701824188, 0.3593348562717438, 1.173123836517334, -1.5584527254104614, 0.2734222710132599, -0.36020535230636597, 2.0919458866119385, 0.15708506107330322, 1.2899534702301025, -0.4843687415122986, -2.169393301010132, 0.6033369302749634, -1.2333012819290161, -1.2445625066757202, 0.641951322555542, -0.8833047747612, 0.14875689148902893, -1.5845766067504883, -0.22703753411769867, -0.9054284691810608, -1.2744617462158203, 0.7889459133148193, 0.16745851933956146, 0.2342950850725174, -0.5809705257415771, 0.42278623580932617, -2.183305263519287, -1.3644384145736694, -0.23046551644802094, -0.9415268898010254, 0.47185438871383667, -0.2926212549209595, 0.6807326078414917, -0.12339036911725998, 0.10597549378871918, 0.225922092795372, 1.443192481994629, 3.356468915939331, 0.21849064528942108, 0.36543750762939453, -0.09503413736820221, -0.8987184762954712, 1.4850293397903442, 1.082922339439392, 0.04444846883416176, -0.44904661178588867, -0.979932963848114, 1.336615800857544, 1.8863325119018555, 0.9095803499221802, 0.0447654165327549, -0.7424100041389465, -0.5597519874572754, -0.0906745195388794, 0.3712860941886902, 0.42782649397850037, 0.8667645454406738, 0.12001048773527145, 0.1262015551328659, 1.3617395162582397, 1.1623737812042236, -0.5360040068626404, 0.4587681293487549, -0.8871971964836121, -0.4995693862438202, 0.5051748752593994, 0.3218931257724762, -0.05816492810845375, 0.3703993856906891, -1.0711991786956787, -0.3401007652282715, -0.17896747589111328, -0.9701898694038391, -0.6338914036750793, -0.3547535538673401, -0.35550203919410706, 1.50542151927948, 0.13736394047737122, -0.48232877254486084, -0.12004400044679642, -0.7891010642051697, -0.16009265184402466, -1.1476902961730957, 0.2631630003452301, -0.13101696968078613, -0.05346990004181862, -0.13429337739944458, 1.8367414474487305, -0.8538655638694763, -1.9911847114562988, 0.224210724234581, 0.4308927059173584, -0.4116138815879822, 0.16415300965309143, 1.553161382675171, 0.5400715470314026, 1.4987088441848755, 1.1763721704483032, 0.9960652589797974, -0.521784782409668, -1.3605101108551025, 0.6389161944389343, 0.9591769576072693, -1.3639329671859741, 0.6934521198272705, 0.05043764039874077, -0.4586811363697052, 0.6449445486068726, 1.3462965488433838, 0.5212088227272034, -1.947547197341919, 0.8224976658821106, -0.9137333631515503, 0.7672011256217957, 0.8246464729309082, 0.8001807332038879, 0.3575529456138611, 0.951580286026001, -1.2695571184158325, -1.1640573740005493, -0.8446608781814575, -0.5570518970489502, 2.0105302333831787, -0.17227299511432648, 0.5520161986351013, -0.22982755303382874, -1.2400317192077637, -0.06521806865930557, 0.6102516055107117, 0.510876476764679, -0.31495940685272217, 0.8649556636810303, -0.628515899181366, -1.0665370225906372, -1.3980034589767456, -0.4044294059276581, -0.8609901070594788, -1.0329035520553589, 1.048266887664795, 0.9371917843818665, 0.3062458336353302, 1.9310355186462402, 0.5873186588287354, 0.24236202239990234, -2.559314250946045, 0.8818785548210144, 0.31592053174972534, -0.03853270038962364, 0.850445032119751, 0.3983358144760132, 1.1503856182098389, 0.01469921600073576, 0.4470188319683075, -2.3253841400146484, 2.210524082183838, -0.20412395894527435, 0.7069550156593323, -0.06411039084196091, -0.08320155739784241, 1.1678404808044434, 0.4570727050304413, 0.5011758804321289, -1.0883080959320068, 0.6436999440193176, -0.5625180602073669, 1.2799177169799805, 1.0176646709442139, -0.6837328672409058, 0.014294938184320927, 1.3133668899536133, 0.597733199596405, -0.522100567817688, -0.8651043176651001, -0.9055734872817993, 0.9566527605056763, 1.6442248821258545, -0.043721649795770645, -0.015808986499905586, 0.8615396618843079, 0.7059970498085022, -1.306742787361145, -0.000011848285794258118, -0.7175222635269165, -0.6296727657318115, 1.6667180061340332, 2.069139242172241, -0.138398677110672, -0.18873760104179382, -0.7418832182884216, -1.226065754890442, 0.7422494888305664, -0.04498008266091347, 0.13451452553272247, 0.7301626801490784, -0.6903873085975647, 1.0807058811187744, 0.873506486415863, 0.8554722666740417, 0.1870003342628479, 0.5244013071060181, 0.41401436924934387, -0.1917451024055481, -1.2206097841262817, -0.23476873338222504, -1.1019736528396606, -2.5094425678253174, 0.5049988031387329, -0.3945602774620056, -1.281854510307312, 0.025533992797136307, -1.107391357421875, 0.9739018678665161, -0.6818768978118896, -1.1472835540771484, -1.5895233154296875, 0.1462322324514389, 0.03200632333755493, 0.914469301700592, -1.5513607263565063, -0.13822360336780548, 1.2363299131393433, 0.879555881023407, -0.6897332668304443, 1.0435088872909546, 0.321440190076828, 1.1308465003967285, 0.6873780488967896, -0.4501217007637024, 0.5159165859222412, -0.0721251517534256, -1.399623990058899, 0.6705441474914551, 1.1117318868637085, 0.13621878623962402, 1.4558155536651611, -0.5545014142990112, 0.02422720566391945, 0.5735461115837097, -0.6184693574905396, -0.5413979887962341, -0.5899677276611328, 0.6913614869117737, 0.13155889511108398, -0.8946559429168701, -0.02470153197646141, -0.05939417704939842, -0.26938000321388245, 0.23378168046474457, -1.5089833736419678, -0.24281232059001923, -0.4461585283279419, -0.6084067821502686, -1.2333813905715942, -0.061408333480358124, 1.3200912475585938, -0.7334484457969666, -0.20889613032341003, 0.5427038073539734, 0.42098861932754517, 0.5846395492553711, 0.6793514490127563, -0.7070733308792114, -0.2917126715183258, -0.26271960139274597, -0.31243616342544556, 0.2959142029285431, 1.3489694595336914, -0.2081279754638672, -1.1273382902145386, 0.6201519966125488, -0.2999524474143982, 0.019527822732925415, 2.0139150619506836, 0.123553566634655, -0.8359426856040955, 0.2218860238790512, -0.8034210801124573, 1.9108630418777466, 1.5426403284072876, 1.3770122528076172, -0.19419702887535095, -0.8081538677215576, 0.5490008592605591, -0.24340225756168365, -0.3858150839805603, 0.7576428651809692, 0.5187388062477112, -0.12454614788293839, -1.4474629163742065, 0.6784052848815918, 1.375809907913208, -0.9900385141372681, -0.8482208847999573, 0.1286059468984604, -0.7621186971664429, 0.9956458806991577, 0.6642354130744934, 0.46395817399024963, 0.3693234324455261, 1.63523268699646, 0.6309906840324402, -0.4328087866306305, 0.372783899307251, 0.6157539486885071, -0.10519986599683762, -2.1083617210388184, -1.2536131143569946, 0.31387537717819214, -0.49158257246017456, -1.6150898933410645, 1.3804436922073364, -1.0182515382766724, -0.905001699924469, 0.49769145250320435, 0.18126049637794495, 1.4286034107208252, 0.3144941031932831, 1.5642297267913818, 1.9791287183761597, 0.8289210796356201, 0.2783884108066559, 1.3924883604049683, -0.0909808948636055, -0.537019670009613, 1.8670017719268799, -0.4742080271244049, 0.5208606719970703, 1.119044303894043, -0.30549168586730957, -1.1427949666976929, -0.7159742712974548, -1.3069217205047607, -0.5875049233436584, 1.167457938194275, 0.1870858073234558, -1.2347209453582764, 0.14235511422157288, 1.5154736042022705, 0.17861934006214142, -0.4157288074493408, 0.5571525692939758, 0.34290122985839844, -0.8525742292404175, -0.00803448911756277, -1.0449727773666382, 0.5694705247879028, -0.20263665914535522, -0.3283884823322296, 0.17156849801540375, 0.4882219731807709, 1.3709520101547241, -0.08802177011966705, 0.19735296070575714, 1.136749267578125, -1.352547526359558, 1.428857684135437, -0.6221882104873657, 0.2583237588405609, -2.429739236831665, 1.4105660915374756, -0.7533337473869324, 1.942481517791748, -2.7373313903808594, 0.3588942289352417, -0.5561863780021667, -0.35606658458709717, 0.33707472681999207, -0.41472744941711426, 0.16994236409664154, -0.03987448662519455, -1.2196236848831177, 0.03380946069955826, -0.733898401260376, 0.5976240038871765, 1.1799591779708862, 1.3760299682617188, -1.1532251834869385, -0.22752061486244202, -1.7254180908203125, -0.13953638076782227, -0.7299506664276123, 0.37035682797431946, -2.1064951419830322, -0.12227506935596466, -1.7856338024139404, -2.3016469478607178, -1.1589709520339966, -0.761661171913147, 1.0610731840133667, 0.08336707204580307, -0.9339380860328674, 1.164929747581482, -0.3193305432796478, -1.7039850950241089, 1.032984972000122, -2.0724880695343018 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@afcruzs-ms I think your issue is a different one, because that dataset is not hosted at Google Drive. Would you mind open another issue for that other problem, please? Thanks! :)
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
31
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @afcruzs-ms I think your issue is a different one, because that dataset is not hosted at Google Drive. Would you mind open another issue for that other problem, please? Thanks! :)
[ -1.2337809801101685, -0.992205798625946, -0.7617056369781494, 1.2872151136398315, -0.24597851932048798, -1.203373670578003, 0.1403128206729889, -1.0770007371902466, 1.7110354900360107, -0.7269985675811768, 0.29985302686691284, -1.7154016494750977, -0.048227276653051376, -0.7388113141059875, -0.6973375678062439, -0.8303349614143372, -0.40715089440345764, -0.7966871857643127, 0.9990269541740417, 2.470088005065918, 1.1853182315826416, -1.3672950267791748, 2.691549301147461, 0.7199435234069824, -0.21117986738681793, -0.9760034680366516, 0.5178772807121277, 0.06428313255310059, -1.1710435152053833, -0.4512166380882263, -0.9431366920471191, -0.10656484961509705, -0.518714189529419, -0.4760429561138153, -0.0011955900117754936, 0.4300640821456909, -0.258890300989151, -0.34860125184059143, -0.527166485786438, -0.6994704604148865, 0.4383467733860016, -0.3956015408039093, 0.9294779896736145, -0.35594725608825684, 1.8579586744308472, -0.5727178454399109, 0.3090091049671173, 0.6111892461776733, 1.2952505350112915, 0.16560086607933044, -0.03880935534834862, 0.298996239900589, 0.32372063398361206, -0.074622243642807, 0.397533655166626, 1.13491690158844, 0.5866358280181885, 0.5233925580978394, 0.7423116564750671, -2.2388834953308105, 1.2182049751281738, -1.1064022779464722, 0.3198283016681671, 1.4264614582061768, -0.9865022301673889, 0.48021411895751953, -1.7362885475158691, -0.014056817628443241, 0.5397387146949768, -2.322144031524658, 0.2535947263240814, -1.3341251611709595, -0.6337389349937439, 0.8826660513877869, 0.35262051224708557, -1.2801250219345093, 0.19566969573497772, -0.4162779152393341, 1.1111094951629639, 0.4221971929073334, 1.1194597482681274, -1.7549762725830078, -0.057134099304676056, -0.36485156416893005, -0.016114354133605957, -1.432232141494751, -1.4664359092712402, 0.6484747529029846, 0.5775516629219055, 0.6572929620742798, -0.1703948974609375, 0.9905745387077332, -1.0670162439346313, 0.8092470169067383, -1.0874897241592407, -1.611882209777832, -1.5107934474945068, -2.2488796710968018, -2.220611095428467, 0.8595328330993652, -0.43484628200531006, -0.5730177164077759, 1.9662188291549683, -0.9300758242607117, -1.7896807193756104, 1.1822090148925781, 0.22738535702228546, -0.0043936558067798615, 2.389390468597412, 0.23211397230625153, -0.6656859517097473, 0.35817772150039673, -0.7870921492576599, 0.8676300644874573, -0.2958782911300659, 1.5483694076538086, 0.5329297780990601, -1.0075942277908325, 1.670004963874817, -0.41583144664764404, 0.5283922553062439, -0.6499456167221069, -0.6309701800346375, -0.8359144330024719, 0.38054221868515015, 1.931668758392334, -0.3484531044960022, 1.5719927549362183, -0.4578078091144562, -1.5764110088348389, -1.5564237833023071, 0.8991082310676575, 0.5058096647262573, -0.8064140677452087, 0.14002451300621033, -0.3887961208820343, 0.11381347477436066, -0.1257617175579071, 1.2994979619979858, 1.2406773567199707, 0.5714567303657532, -0.2796033024787903, -0.845966637134552, 0.28526556491851807, -0.061874013394117355, -0.7717461585998535, -1.8200114965438843, -0.4377734065055847, 0.1697695404291153, 0.5457581877708435, -1.2145657539367676, 1.6058399677276611, 0.8602201342582703, 1.8443912267684937, 0.9953938126564026, -0.3004409968852997, 1.4248040914535522, 0.02940145879983902, 1.7883015871047974, -0.6210507750511169, 0.6730282306671143, -0.19944873452186584, -1.0406394004821777, 0.8584463596343994, -0.3447116017341614, -2.0525853633880615, -0.8042482733726501, -0.9066950082778931, -0.221951425075531, -0.8065915703773499, 0.9342159628868103, -0.3614914119243622, -1.3954015970230103, 0.2721163332462311, -0.7252639532089233, 0.11989416927099228, -1.2148226499557495, 0.2873707413673401, 0.7456693649291992, -0.530206561088562, -0.0415148101747036, -0.14995603263378143, -1.2657099962234497, -0.41742298007011414, 0.26418012380599976, 1.9824185371398926, -0.771064281463623, 0.9207397699356079, 0.9793733954429626, -0.7537122964859009, 0.007866884581744671, 0.31054985523223877, -0.2511958181858063, 0.8292679786682129, -1.07363760471344, -0.47048285603523254, 1.060130000114441, -0.09745323657989502, -0.5480337142944336, 1.4527429342269897, 0.7789626717567444, -0.956786036491394, -0.2504773437976837, -0.2747249901294708, -0.8161686658859253, -0.020475570112466812, -1.6011344194412231, -0.17662911117076874, 0.23345424234867096, -1.4562067985534668, -0.6002781391143799, -0.2292749434709549, 1.3267464637756348, -0.19223782420158386, 1.25137460231781, -0.3667666018009186, -0.2985542416572571, -0.3982864022254944, -0.35141322016716003, 0.21218721568584442, -0.19339312613010406, -0.6793122291564941, 0.17932277917861938, -0.8315543532371521, 0.384143203496933, 1.4101054668426514, 0.464342325925827, 0.023293834179639816, 0.5791803598403931, 1.0183628797531128, 0.33804208040237427, -0.013023288920521736, -0.9118738770484924, -1.5710878372192383, 1.936008095741272, -1.5374878644943237, 1.931998610496521, 0.6683085560798645, -0.025688719004392624, -1.7586675882339478, -1.914705753326416, 1.384105920791626, 1.3209011554718018, 2.238443613052368, 0.6795709729194641, 0.43911686539649963, -0.864594042301178, -0.6995002627372742, 0.24841226637363434, -1.1627660989761353, -0.6338919401168823, 0.15517355501651764, 2.2774035930633545, 1.8379281759262085, -0.6451544761657715, -0.18736602365970612, -0.9961292743682861, 1.2672531604766846, -0.12360556423664093, 0.20005275309085846, 2.0202414989471436, -0.3798181414604187, -1.1244450807571411, 1.2402795553207397, -2.330899715423584, 0.060346819460392, 1.924237847328186, 0.3086663782596588, 0.09842958301305771, -1.409428596496582, -0.5953521728515625, -0.24595530331134796, -0.4357333183288574, -1.3329044580459595, 0.6373238563537598, -0.23631520569324493, -0.8638015389442444, -1.4564605951309204, 0.17386466264724731, -1.1417171955108643, -1.536483883857727, 0.427362859249115, 1.845282793045044, 2.0159573554992676, -0.7170672416687012, 1.5567457675933838, -0.28462928533554077, 0.2708055078983307, 1.30475652217865, 1.2126309871673584, 3.1021971702575684, 1.9591838121414185, -1.1588008403778076, 0.6659355163574219, -0.12390010803937912, -0.513589084148407, 1.1711289882659912, -1.0974658727645874, 1.311449646949768, -0.15081538259983063, -1.1609528064727783, -1.272687554359436, 0.8719158172607422, 0.45522648096084595, 0.01686685159802437, -0.5541280508041382, 1.2165056467056274, 0.05765276402235031, 1.332692265510559, 0.5508747696876526, -0.40951085090637207, 0.6381587386131287, -0.43556883931159973, -0.3866768181324005, 1.5900672674179077, 0.1926843822002411, -1.4380087852478027, -2.3288111686706543, -0.23606815934181213, -0.8077831268310547, 0.06126655638217926, -0.5768265128135681, -1.0561314821243286, 1.707756519317627, 0.44555890560150146, -1.3177345991134644, -0.2560553550720215, -0.40124931931495667, -0.604984700679779, 2.7537450790405273, -1.468213438987732, -0.2495906800031662, -0.9566020965576172, -0.5800776481628418, 1.7569409608840942, -1.1908533573150635, -0.17197789251804352, -1.0548001527786255, -0.6402943730354309, -1.3333405256271362, -0.5410268902778625, -0.06617312878370285, -0.8776321411132812, 0.9527056217193604, 0.1426282674074173, -1.0295013189315796, -0.372232586145401, -0.8262048959732056, 0.8063905835151672, -0.21725597977638245, 0.28675660490989685, 1.9509527683258057, 0.37031474709510803, -0.34629112482070923, 0.6945039629936218, 1.1554919481277466, 0.6352145671844482, -0.6353590488433838, 0.242528036236763, -0.6353297233581543, 0.2733772397041321, -1.352834701538086, 0.3035505414009094, -2.948676347732544, 0.7002169489860535, -0.04598962143063545, -0.02718421071767807, -0.00005741603672504425, -1.361666202545166, 1.1983065605163574, 2.5336503982543945, -1.2411777973175049, 0.3890555202960968, 0.3032768964767456, 1.1521742343902588, -1.584022879600525, 0.25383260846138, -0.41377130150794983, 2.1301541328430176, 0.20520462095737457, 1.2319083213806152, -0.5053150653839111, -2.25435209274292, 0.583156168460846, -1.2397903203964233, -1.1798617839813232, 0.653367817401886, -0.8791423439979553, 0.1679353266954422, -1.5917211771011353, -0.2089272141456604, -0.9516097903251648, -1.2425614595413208, 0.8169772028923035, 0.1392785906791687, 0.2657543122768402, -0.5997287034988403, 0.37590640783309937, -2.142460823059082, -1.3660918474197388, -0.23479269444942474, -0.8425270318984985, 0.4655230641365051, -0.24409371614456177, 0.6943376660346985, -0.11830586194992065, 0.08717116713523865, 0.2594606876373291, 1.430396556854248, 3.3411757946014404, 0.19703392684459686, 0.42542967200279236, -0.0799555703997612, -0.870360791683197, 1.4606702327728271, 1.0650510787963867, 0.08380968868732452, -0.5177814364433289, -1.0379703044891357, 1.3487199544906616, 1.906609296798706, 0.9397128224372864, 0.02329186350107193, -0.7119873762130737, -0.5529899597167969, -0.048552513122558594, 0.303409606218338, 0.42019909620285034, 0.8848248720169067, 0.10349181294441223, 0.13955681025981903, 1.4055339097976685, 1.170339584350586, -0.507388174533844, 0.4039178490638733, -0.87814861536026, -0.48332488536834717, 0.4740388095378876, 0.3111638128757477, -0.026372939348220825, 0.4102132022380829, -1.051999807357788, -0.35502490401268005, -0.2010323405265808, -0.9881904125213623, -0.6653096079826355, -0.41025468707084656, -0.3450126051902771, 1.5407769680023193, 0.14186306297779083, -0.4829140305519104, -0.12298702448606491, -0.8261880278587341, -0.18059585988521576, -1.1555672883987427, 0.24672569334506989, -0.1077810525894165, -0.07495594769716263, -0.10378077626228333, 1.8090754747390747, -0.8168472647666931, -1.991618275642395, 0.23919354379177094, 0.4176490604877472, -0.4325435757637024, 0.16533248126506805, 1.589961290359497, 0.5674112439155579, 1.4720569849014282, 1.1735877990722656, 0.9958401322364807, -0.48781248927116394, -1.3278363943099976, 0.6413202285766602, 0.9578859210014343, -1.3685585260391235, 0.8086300492286682, 0.020493309944868088, -0.43121078610420227, 0.6512649059295654, 1.3297748565673828, 0.5025597810745239, -1.9355037212371826, 0.7980623245239258, -0.9289275407791138, 0.8039219379425049, 0.7857403755187988, 0.7916210293769836, 0.3253006935119629, 0.9390960335731506, -1.2945020198822021, -1.1860640048980713, -0.8439233899116516, -0.5560305714607239, 2.021937370300293, -0.15762671828269958, 0.5938130021095276, -0.267478346824646, -1.2615151405334473, -0.01990410126745701, 0.6222734451293945, 0.4671868681907654, -0.37107551097869873, 0.8641209006309509, -0.6234170794487, -1.0792583227157593, -1.3913439512252808, -0.38352105021476746, -0.8854920268058777, -1.0554019212722778, 1.07749342918396, 0.9004268050193787, 0.3382713794708252, 1.9221317768096924, 0.6117516160011292, 0.2474616914987564, -2.5495009422302246, 0.8763905167579651, 0.2952615022659302, -0.03783996030688286, 0.920189380645752, 0.38162004947662354, 1.0954532623291016, -0.0181299839168787, 0.48572808504104614, -2.3561015129089355, 2.2290472984313965, -0.21763849258422852, 0.7186082601547241, -0.06277486681938171, -0.07124489545822144, 1.1238579750061035, 0.5111353993415833, 0.5100168585777283, -1.0782370567321777, 0.6550465822219849, -0.5476774573326111, 1.247006893157959, 1.0458204746246338, -0.6728491187095642, 0.03364710137248039, 1.334932565689087, 0.5488187670707703, -0.5223961472511292, -0.8202699422836304, -0.8870919942855835, 0.9648963809013367, 1.678729772567749, -0.012800534255802631, -0.046025071293115616, 0.8804444074630737, 0.726912796497345, -1.3117079734802246, 0.06553925573825836, -0.7406134605407715, -0.6153253316879272, 1.6811892986297607, 2.07900071144104, -0.15362101793289185, -0.15672726929187775, -0.7166035771369934, -1.2492996454238892, 0.7492892146110535, -0.027304716408252716, 0.12416132539510727, 0.7077039480209351, -0.6960946917533875, 1.0736961364746094, 0.8883912563323975, 0.8816150426864624, 0.224853977560997, 0.4999074637889862, 0.41275936365127563, -0.19782006740570068, -1.19233238697052, -0.2772919833660126, -1.1306735277175903, -2.5413880348205566, 0.5157876014709473, -0.3677508533000946, -1.3192214965820312, -0.014453536830842495, -1.0944880247116089, 0.9267472624778748, -0.6318058371543884, -1.083288311958313, -1.5989693403244019, 0.12978950142860413, 0.031745877116918564, 0.9491294622421265, -1.5596636533737183, -0.08965953439474106, 1.2138010263442993, 0.8599579334259033, -0.6615304350852966, 1.0047122240066528, 0.29734012484550476, 1.1279443502426147, 0.7362497448921204, -0.453122079372406, 0.5450636148452759, -0.019245289266109467, -1.390133023262024, 0.6464672684669495, 1.1740906238555908, 0.17195656895637512, 1.4444724321365356, -0.5190550088882446, 0.015349357388913631, 0.5251469612121582, -0.616716742515564, -0.4872223734855652, -0.5945479869842529, 0.6635743379592896, 0.16306252777576447, -0.8750985264778137, -0.01661735028028488, 0.003861537203192711, -0.22974303364753723, 0.22403129935264587, -1.5411666631698608, -0.18872258067131042, -0.4656500816345215, -0.5720053315162659, -1.232410192489624, -0.10834108293056488, 1.328779935836792, -0.7479992508888245, -0.19554811716079712, 0.5126222372055054, 0.4067298173904419, 0.5772929191589355, 0.6749389171600342, -0.669025182723999, -0.33708566427230835, -0.2154172658920288, -0.362266480922699, 0.29943668842315674, 1.3224438428878784, -0.248161181807518, -1.0561343431472778, 0.637744128704071, -0.29252296686172485, 0.017548177391290665, 1.9729492664337158, 0.07958377152681351, -0.8725448250770569, 0.20529918372631073, -0.7603067755699158, 1.8969497680664062, 1.53892183303833, 1.3577771186828613, -0.1693885326385498, -0.8284746408462524, 0.5949982404708862, -0.25590822100639343, -0.42505356669425964, 0.8081073760986328, 0.4812125563621521, -0.16701556742191315, -1.4487100839614868, 0.6835806369781494, 1.3858420848846436, -0.9926746487617493, -0.8673386573791504, 0.0945964828133583, -0.8273755311965942, 1.0145862102508545, 0.6406528353691101, 0.4289037585258484, 0.3357170522212982, 1.6123732328414917, 0.6308448910713196, -0.44040924310684204, 0.39292407035827637, 0.5969406962394714, -0.08989369124174118, -2.099851608276367, -1.2653812170028687, 0.29470741748809814, -0.5195474624633789, -1.5979995727539062, 1.4061187505722046, -1.1080197095870972, -0.9289981722831726, 0.5266032218933105, 0.17595121264457703, 1.4222604036331177, 0.2966020405292511, 1.5922883749008179, 1.999158501625061, 0.8395224809646606, 0.31883829832077026, 1.3752435445785522, -0.06268200278282166, -0.48376190662384033, 1.8413490056991577, -0.45365339517593384, 0.5529681444168091, 1.0934990644454956, -0.2534889578819275, -1.1510035991668701, -0.7040902376174927, -1.2671301364898682, -0.6153138279914856, 1.2014590501785278, 0.13398054242134094, -1.2580455541610718, 0.14537830650806427, 1.5063557624816895, 0.14134107530117035, -0.3722028434276581, 0.5543863773345947, 0.35223206877708435, -0.8298466801643372, -0.0075914617627859116, -1.0370028018951416, 0.5789334177970886, -0.1864090859889984, -0.31618359684944153, 0.17950458824634552, 0.5351991057395935, 1.363736867904663, -0.09646821022033691, 0.1590730994939804, 1.1439251899719238, -1.4173951148986816, 1.451371192932129, -0.6119176745414734, 0.18206198513507843, -2.4449567794799805, 1.4008374214172363, -0.7602736353874207, 1.9817554950714111, -2.7347490787506104, 0.3763682544231415, -0.5662567615509033, -0.4085528552532196, 0.3543510437011719, -0.35439392924308777, 0.17023372650146484, -0.05589689686894417, -1.161728024482727, 0.027687907218933105, -0.7545695304870605, 0.5297008156776428, 1.2105987071990967, 1.3717482089996338, -1.1473439931869507, -0.262908011674881, -1.7109419107437134, -0.14388513565063477, -0.7576413750648499, 0.3107072710990906, -2.0994343757629395, -0.11211945861577988, -1.7860620021820068, -2.3353776931762695, -1.2324796915054321, -0.8017932176589966, 1.1004762649536133, 0.07680479437112808, -0.9316479563713074, 1.1142123937606812, -0.3522571325302124, -1.7299073934555054, 1.00877046585083, -2.048574924468994 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@albertvillanova just to let you know that I tried it locally and on colab and it is the same error
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
20
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @albertvillanova just to let you know that I tried it locally and on colab and it is the same error
[ -1.2189289331436157, -1.039219856262207, -0.770103931427002, 1.3583269119262695, -0.27383261919021606, -1.193230390548706, 0.1524425595998764, -1.0474110841751099, 1.712721824645996, -0.7517786026000977, 0.2727072238922119, -1.6777383089065552, -0.06357154995203018, -0.6862881779670715, -0.684154748916626, -0.825870156288147, -0.36930397152900696, -0.7589081525802612, 1.015865683555603, 2.4676289558410645, 1.1653081178665161, -1.3553178310394287, 2.7576680183410645, 0.6713546514511108, -0.21714404225349426, -1.0000065565109253, 0.5027502775192261, 0.10375436395406723, -1.1515411138534546, -0.4610140919685364, -0.9504147171974182, -0.06233082339167595, -0.47372332215309143, -0.4613032042980194, -0.005642074625939131, 0.4339505732059479, -0.2636964023113251, -0.4558224678039551, -0.5239290595054626, -0.7150532603263855, 0.47100889682769775, -0.4051339030265808, 0.9105998277664185, -0.36956915259361267, 1.8925212621688843, -0.5602330565452576, 0.2857213020324707, 0.6243426203727722, 1.3108274936676025, 0.1596195548772812, -0.04063747078180313, 0.29850268363952637, 0.32877928018569946, -0.08751952648162842, 0.4328928589820862, 1.1934864521026611, 0.5642492175102234, 0.573748767375946, 0.7296218276023865, -2.2300374507904053, 1.2209908962249756, -1.1355233192443848, 0.32419613003730774, 1.4454618692398071, -1.0046911239624023, 0.4692411422729492, -1.7305598258972168, -0.04540717974305153, 0.5190762281417847, -2.3596553802490234, 0.29706600308418274, -1.3473236560821533, -0.6309173703193665, 0.813593327999115, 0.28394603729248047, -1.284926414489746, 0.19147445261478424, -0.4373054504394531, 1.1019980907440186, 0.4138577878475189, 1.1045615673065186, -1.701804280281067, -0.03163907676935196, -0.29771938920021057, -0.022025033831596375, -1.4308407306671143, -1.486786961555481, 0.6238735318183899, 0.5799010396003723, 0.6807769536972046, -0.13989871740341187, 1.0131804943084717, -1.0589512586593628, 0.8125181794166565, -1.0550563335418701, -1.576751708984375, -1.4342360496520996, -2.2254912853240967, -2.1939215660095215, 0.8827186226844788, -0.42618528008461, -0.5805163979530334, 1.9608606100082397, -0.9024834632873535, -1.7871270179748535, 1.207852840423584, 0.2299269586801529, 0.003053502179682255, 2.4043049812316895, 0.2379329949617386, -0.6676999926567078, 0.36108818650245667, -0.7593085169792175, 0.8852033615112305, -0.3515578806400299, 1.5397353172302246, 0.5057523846626282, -0.9541397094726562, 1.656636357307434, -0.3584708273410797, 0.5491601824760437, -0.63724285364151, -0.6854068040847778, -0.9033051133155823, 0.3827762007713318, 1.9075615406036377, -0.3678865432739258, 1.5746450424194336, -0.43757110834121704, -1.5381755828857422, -1.557264804840088, 0.9159659743309021, 0.5203787088394165, -0.804085373878479, 0.11033224314451218, -0.3104327917098999, 0.10643083602190018, -0.10821232944726944, 1.2419521808624268, 1.19585120677948, 0.584194004535675, -0.23972941935062408, -0.8074069023132324, 0.26837846636772156, -0.0804237425327301, -0.7273061275482178, -1.852629542350769, -0.3849131166934967, 0.16755037009716034, 0.5250025987625122, -1.2929085493087769, 1.5821086168289185, 0.863570511341095, 1.8586100339889526, 0.9924037456512451, -0.26847922801971436, 1.452397108078003, 0.031478140503168106, 1.8134965896606445, -0.5464596748352051, 0.6485766172409058, -0.2577284276485443, -1.0196243524551392, 0.8107777833938599, -0.35045331716537476, -2.021062135696411, -0.8497363924980164, -0.9456847310066223, -0.20506195724010468, -0.7957012057304382, 0.9592759609222412, -0.38809436559677124, -1.426658034324646, 0.21787627041339874, -0.7033509016036987, 0.14289997518062592, -1.213071346282959, 0.28595399856567383, 0.7439969182014465, -0.5746389031410217, -0.05366349592804909, -0.15637031197547913, -1.2508841753005981, -0.4030850827693939, 0.32959049940109253, 2.029921054840088, -0.8292058110237122, 0.907223105430603, 0.9541888236999512, -0.7847384214401245, 0.025304928421974182, 0.24750173091888428, -0.25255632400512695, 0.8146509528160095, -1.0708893537521362, -0.44545066356658936, 1.0876963138580322, -0.08570390939712524, -0.569431483745575, 1.4986670017242432, 0.760644793510437, -0.9724947810173035, -0.2761472165584564, -0.25887030363082886, -0.7822105288505554, -0.06229579076170921, -1.5741080045700073, -0.19536390900611877, 0.24402070045471191, -1.4623212814331055, -0.5660322904586792, -0.25459370017051697, 1.29694664478302, -0.2269839346408844, 1.3020025491714478, -0.3224676549434662, -0.3345106244087219, -0.3638571500778198, -0.3715360164642334, 0.20755620300769806, -0.21160705387592316, -0.696337878704071, 0.1732601821422577, -0.8373059034347534, 0.3977549970149994, 1.401074767112732, 0.4450475573539734, 0.0015348158776760101, 0.6248629689216614, 1.0422348976135254, 0.3377271592617035, -0.042528096586465836, -0.9337373971939087, -1.5587321519851685, 1.9153831005096436, -1.5454763174057007, 1.9314508438110352, 0.6768043637275696, -0.045526500791311264, -1.7526776790618896, -1.9256621599197388, 1.3840508460998535, 1.3556044101715088, 2.2158257961273193, 0.696696400642395, 0.45885422825813293, -0.8748635053634644, -0.6806751489639282, 0.17624080181121826, -1.1495141983032227, -0.6380815505981445, 0.16711977124214172, 2.2519216537475586, 1.80483078956604, -0.6450874209403992, -0.19188740849494934, -1.0171390771865845, 1.2546662092208862, -0.14429070055484772, 0.22633519768714905, 1.9922213554382324, -0.3457645773887634, -1.1256431341171265, 1.2047364711761475, -2.3029167652130127, 0.03028036653995514, 1.9504965543746948, 0.3092009127140045, 0.09917915612459183, -1.432554841041565, -0.5800120234489441, -0.24321627616882324, -0.40192651748657227, -1.34927237033844, 0.6009911298751831, -0.224970743060112, -0.8367059230804443, -1.4644367694854736, 0.19764786958694458, -1.1012344360351562, -1.4968065023422241, 0.38360580801963806, 1.9188863039016724, 2.0170857906341553, -0.716766893863678, 1.5301508903503418, -0.2842356860637665, 0.2629663944244385, 1.2674700021743774, 1.1683582067489624, 3.0620570182800293, 1.9808197021484375, -1.1400251388549805, 0.6154592037200928, -0.12488310039043427, -0.5181913375854492, 1.1606981754302979, -1.1128196716308594, 1.329864740371704, -0.13817445933818817, -1.1512517929077148, -1.2870991230010986, 0.8563305139541626, 0.47965696454048157, 0.06725123524665833, -0.511925220489502, 1.242007851600647, 0.036051224917173386, 1.3750395774841309, 0.5403032898902893, -0.4161577820777893, 0.6062870025634766, -0.4470699429512024, -0.3814804255962372, 1.5927151441574097, 0.1610083281993866, -1.4268457889556885, -2.345524311065674, -0.2072681039571762, -0.8003900647163391, 0.10793928802013397, -0.5580846667289734, -1.069481611251831, 1.7307486534118652, 0.48181599378585815, -1.274937391281128, -0.26269733905792236, -0.3715444803237915, -0.6541333794593811, 2.7151670455932617, -1.4033442735671997, -0.2607388496398926, -0.9477384686470032, -0.5627341270446777, 1.777146577835083, -1.1808903217315674, -0.183728888630867, -1.0112717151641846, -0.6248393058776855, -1.3512847423553467, -0.5825737714767456, -0.039165664464235306, -0.9150416851043701, 0.9540019631385803, 0.1527668535709381, -1.0520967245101929, -0.3586582541465759, -0.8320839405059814, 0.8155897855758667, -0.220537006855011, 0.2275545746088028, 1.9618812799453735, 0.3575075566768646, -0.3478526771068573, 0.7377649545669556, 1.1577569246292114, 0.6327754855155945, -0.6748857498168945, 0.25039294362068176, -0.6203017234802246, 0.24662405252456665, -1.3780205249786377, 0.2684294581413269, -2.9583725929260254, 0.631705105304718, -0.012365128844976425, -0.06257402896881104, 0.03745836392045021, -1.3381812572479248, 1.2061338424682617, 2.50284481048584, -1.234411358833313, 0.4200016260147095, 0.3150422275066376, 1.2201875448226929, -1.5867583751678467, 0.29589715600013733, -0.3934168219566345, 2.0557892322540283, 0.19805821776390076, 1.225772738456726, -0.5217198133468628, -2.2308449745178223, 0.5844760537147522, -1.2546380758285522, -1.2650080919265747, 0.6241907477378845, -0.938561201095581, 0.12622283399105072, -1.5930471420288086, -0.2514839172363281, -0.8978788256645203, -1.2551944255828857, 0.7637144327163696, 0.1695052832365036, 0.2506561577320099, -0.5724918246269226, 0.40355783700942993, -2.1780686378479004, -1.3847570419311523, -0.24827414751052856, -0.9322685599327087, 0.4936921000480652, -0.30367767810821533, 0.7253357768058777, -0.12947572767734528, 0.108951635658741, 0.2171356976032257, 1.4498244524002075, 3.3253660202026367, 0.2612467110157013, 0.4108750522136688, -0.09846746921539307, -0.8909177184104919, 1.5317614078521729, 1.0631277561187744, 0.08450500667095184, -0.4939793050289154, -1.0137757062911987, 1.3459653854370117, 1.9267851114273071, 0.9063202142715454, 0.015723498538136482, -0.7280367016792297, -0.5572453737258911, -0.12038803100585938, 0.32140374183654785, 0.43795955181121826, 0.8859156966209412, 0.0863400399684906, 0.14274010062217712, 1.3561232089996338, 1.1800105571746826, -0.5333638787269592, 0.4185604453086853, -0.8663870096206665, -0.4598740339279175, 0.5120328068733215, 0.29517239332199097, -0.06132367625832558, 0.38260096311569214, -1.0418100357055664, -0.35464227199554443, -0.20881342887878418, -0.9799128770828247, -0.6551350951194763, -0.3579755127429962, -0.3454568684101105, 1.555003046989441, 0.1505436897277832, -0.49913713335990906, -0.11737790703773499, -0.7869505286216736, -0.1525431126356125, -1.1540143489837646, 0.2569323778152466, -0.11801943928003311, -0.08763272315263748, -0.08346536010503769, 1.856183648109436, -0.8421604633331299, -2.0390002727508545, 0.21036839485168457, 0.3814714848995209, -0.3939765989780426, 0.1659439206123352, 1.57065749168396, 0.510288417339325, 1.4665080308914185, 1.2168294191360474, 1.0313962697982788, -0.5326767563819885, -1.3411674499511719, 0.6186566948890686, 0.9687027931213379, -1.326487421989441, 0.7286837697029114, 0.034440964460372925, -0.47458136081695557, 0.6452261209487915, 1.3399038314819336, 0.5223371386528015, -1.9335187673568726, 0.8011793494224548, -0.9292428493499756, 0.8090498447418213, 0.837103009223938, 0.7862116098403931, 0.37570029497146606, 0.9048967361450195, -1.2557486295700073, -1.1386632919311523, -0.8635032773017883, -0.5751737952232361, 2.0554962158203125, -0.19036316871643066, 0.577275812625885, -0.21346856653690338, -1.2337344884872437, -0.035871900618076324, 0.6565425992012024, 0.5018162131309509, -0.2836475372314453, 0.8372081518173218, -0.6401507258415222, -1.055771827697754, -1.4205005168914795, -0.40454354882240295, -0.8824787139892578, -1.0522520542144775, 1.079489827156067, 0.9108341932296753, 0.30042901635169983, 1.9112201929092407, 0.6501612067222595, 0.25231465697288513, -2.544466495513916, 0.8913636803627014, 0.33464911580085754, -0.04506629332900047, 0.8445758819580078, 0.3898334205150604, 1.1164906024932861, -0.012157981283962727, 0.4361622929573059, -2.356577157974243, 2.226728916168213, -0.17814891040325165, 0.7396162152290344, -0.03988619148731232, -0.0837024450302124, 1.177281141281128, 0.4729763865470886, 0.5081232786178589, -1.0764503479003906, 0.6666757464408875, -0.5370336771011353, 1.2577614784240723, 1.0096464157104492, -0.6825254559516907, 0.028043732047080994, 1.3649241924285889, 0.5453479886054993, -0.5623243451118469, -0.8469646573066711, -0.9074886441230774, 0.9410028457641602, 1.6654996871948242, -0.04296840354800224, -0.01358472928404808, 0.8814241886138916, 0.6984400153160095, -1.2831734418869019, 0.019749298691749573, -0.7054935693740845, -0.6285530924797058, 1.7093027830123901, 2.078566789627075, -0.15884150564670563, -0.15753504633903503, -0.6944969892501831, -1.249935507774353, 0.7529457211494446, -0.03536512702703476, 0.15002156794071198, 0.7020235657691956, -0.6791378855705261, 1.0686084032058716, 0.8935458660125732, 0.8497549295425415, 0.16842365264892578, 0.5110663175582886, 0.44035565853118896, -0.2421092391014099, -1.2039234638214111, -0.23903493583202362, -1.1280357837677002, -2.5318565368652344, 0.45217281579971313, -0.3652923107147217, -1.2824989557266235, 0.005716449581086636, -1.0901230573654175, 0.9587972164154053, -0.6923331022262573, -1.1346495151519775, -1.6269315481185913, 0.14085793495178223, 0.009665846824645996, 0.9183549880981445, -1.5865341424942017, -0.15463705360889435, 1.190037488937378, 0.8804519772529602, -0.7060120105743408, 1.0320258140563965, 0.26528459787368774, 1.1627380847930908, 0.6936201453208923, -0.47281405329704285, 0.5276907682418823, -0.049893517047166824, -1.394673466682434, 0.6831439733505249, 1.1467398405075073, 0.12919163703918457, 1.4944301843643188, -0.542906641960144, -0.050679221749305725, 0.5468108654022217, -0.5944052338600159, -0.5034310817718506, -0.5892512202262878, 0.6833253502845764, 0.07830727845430374, -0.9128057956695557, -0.005922649521380663, -0.037248991429805756, -0.25358662009239197, 0.19190625846385956, -1.547446370124817, -0.18744082748889923, -0.4344450831413269, -0.6163690686225891, -1.2507200241088867, -0.029913537204265594, 1.336411952972412, -0.7542284727096558, -0.20357182621955872, 0.5046888589859009, 0.4330742359161377, 0.5299970507621765, 0.6357867121696472, -0.6906595230102539, -0.2987828552722931, -0.2367670089006424, -0.32232412695884705, 0.3255694508552551, 1.3689848184585571, -0.24778415262699127, -1.0807024240493774, 0.5803045034408569, -0.3177720904350281, 0.040468476712703705, 1.9834297895431519, 0.10097389668226242, -0.8438134789466858, 0.20138774812221527, -0.7959467172622681, 1.941389560699463, 1.5142457485198975, 1.3968437910079956, -0.1487267017364502, -0.802876353263855, 0.5647560954093933, -0.24932235479354858, -0.4308713972568512, 0.7709201574325562, 0.5438330173492432, -0.139497771859169, -1.4561067819595337, 0.6826839447021484, 1.3658522367477417, -0.9957892894744873, -0.842882513999939, 0.09827125072479248, -0.7646963000297546, 0.9952530860900879, 0.6287864446640015, 0.43943333625793457, 0.3580627143383026, 1.6458606719970703, 0.6644709706306458, -0.43909159302711487, 0.43860724568367004, 0.5907999277114868, -0.06448514759540558, -2.1367788314819336, -1.262171983718872, 0.3384163975715637, -0.47967708110809326, -1.5859671831130981, 1.3912593126296997, -1.0353724956512451, -0.9130110144615173, 0.5163770914077759, 0.19103924930095673, 1.4766701459884644, 0.3041687309741974, 1.5623763799667358, 1.9927468299865723, 0.8473659157752991, 0.3003043830394745, 1.3970963954925537, -0.11464085429906845, -0.5219963788986206, 1.8840867280960083, -0.4823557436466217, 0.49286413192749023, 1.083085060119629, -0.2960108518600464, -1.1650906801223755, -0.6589804291725159, -1.3180967569351196, -0.5955141186714172, 1.1587527990341187, 0.16689476370811462, -1.2456133365631104, 0.13197432458400726, 1.5078067779541016, 0.21011362969875336, -0.3984193205833435, 0.5669422149658203, 0.3692747950553894, -0.8526209592819214, -0.023941032588481903, -1.0201237201690674, 0.5708485245704651, -0.20826399326324463, -0.32725945115089417, 0.17944416403770447, 0.5181827545166016, 1.3244445323944092, -0.09564182162284851, 0.13281548023223877, 1.1340471506118774, -1.3533782958984375, 1.4417803287506104, -0.6448546051979065, 0.20816218852996826, -2.4345662593841553, 1.4163790941238403, -0.7624729871749878, 1.9379576444625854, -2.7360305786132812, 0.38705340027809143, -0.5851059556007385, -0.3477820158004761, 0.34732723236083984, -0.3633708953857422, 0.13548681139945984, -0.07098162174224854, -1.2093411684036255, 0.007834846153855324, -0.7401219606399536, 0.5876051187515259, 1.2151986360549927, 1.3353686332702637, -1.1574723720550537, -0.2410864233970642, -1.752976417541504, -0.10272639244794846, -0.7463399171829224, 0.32361042499542236, -2.157457113265991, -0.16959506273269653, -1.7753876447677612, -2.2653260231018066, -1.179540753364563, -0.7604227662086487, 1.0697965621948242, 0.06593803316354752, -0.9539181590080261, 1.1664940118789673, -0.2729484438896179, -1.689940333366394, 1.0283291339874268, -2.0782642364501953 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
There are many many datasets on HugggingFace that are receiving this checksum error. Some of these datasets are very popular. There must be a way to track these errors, or to do regression testing. We don't want to catch each of these errors on each dataset, one at a time.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
50
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No There are many many datasets on HugggingFace that are receiving this checksum error. Some of these datasets are very popular. There must be a way to track these errors, or to do regression testing. We don't want to catch each of these errors on each dataset, one at a time.
[ -1.236001968383789, -1.0514435768127441, -0.7609314322471619, 1.3559739589691162, -0.2745400667190552, -1.1854872703552246, 0.15013691782951355, -1.0856105089187622, 1.7548739910125732, -0.769034206867218, 0.3148341178894043, -1.692821741104126, -0.061493679881095886, -0.7673546075820923, -0.6732488870620728, -0.8749397993087769, -0.3696931302547455, -0.7793352007865906, 0.9469307661056519, 2.5462207794189453, 1.1404980421066284, -1.4126533269882202, 2.6868484020233154, 0.71221923828125, -0.22640088200569153, -0.9731009602546692, 0.5091388821601868, 0.15019133687019348, -1.1356561183929443, -0.4780070185661316, -0.9362275004386902, -0.08200167119503021, -0.5424069762229919, -0.49924436211586, 0.033640455454587936, 0.46471545100212097, -0.22705867886543274, -0.4422406554222107, -0.5262402892112732, -0.6782985925674438, 0.5158628821372986, -0.4319821298122406, 0.950384259223938, -0.3900753855705261, 1.8713560104370117, -0.5960937142372131, 0.3052404820919037, 0.6334974765777588, 1.2950490713119507, 0.18952643871307373, -0.030307848006486893, 0.27221331000328064, 0.34906142950057983, -0.07684946805238724, 0.4160487949848175, 1.115958333015442, 0.5848973393440247, 0.5289462804794312, 0.7152609825134277, -2.223628282546997, 1.2577176094055176, -1.1307899951934814, 0.4009854793548584, 1.4486713409423828, -0.9952134490013123, 0.4549504816532135, -1.723704218864441, -0.07732009142637253, 0.5727196335792542, -2.3004310131073, 0.26404908299446106, -1.321249008178711, -0.6372828483581543, 0.8769848346710205, 0.3270428478717804, -1.254293441772461, 0.2686578035354614, -0.4925175905227661, 1.0991047620773315, 0.4413358271121979, 1.1407095193862915, -1.7579525709152222, -0.042823802679777145, -0.2914312481880188, 0.02040891721844673, -1.3900233507156372, -1.4541687965393066, 0.6194486021995544, 0.570253849029541, 0.6458878517150879, -0.16185647249221802, 0.9794324040412903, -1.0440096855163574, 0.8194471597671509, -1.112878680229187, -1.6134144067764282, -1.4088001251220703, -2.2482762336730957, -2.305720567703247, 0.857252836227417, -0.32519298791885376, -0.5506253838539124, 1.9507346153259277, -0.8915708065032959, -1.765043020248413, 1.2203840017318726, 0.25889042019844055, 0.01602574624121189, 2.3669722080230713, 0.21852856874465942, -0.6525846719741821, 0.3615869879722595, -0.8041225671768188, 0.889474093914032, -0.3338344395160675, 1.513061761856079, 0.5382834076881409, -1.0433435440063477, 1.6110187768936157, -0.43332934379577637, 0.5289259552955627, -0.6312626600265503, -0.6304965615272522, -0.8329094052314758, 0.38570496439933777, 1.8902348279953003, -0.33912503719329834, 1.5719891786575317, -0.41314080357551575, -1.5331435203552246, -1.6534669399261475, 0.9157149791717529, 0.47838646173477173, -0.7958499789237976, 0.07473800331354141, -0.39873746037483215, 0.16128027439117432, -0.10903368145227432, 1.180201768875122, 1.1913572549819946, 0.5950030088424683, -0.3094378411769867, -0.819405734539032, 0.21413421630859375, -0.0815562903881073, -0.7469606399536133, -1.8452343940734863, -0.42375820875167847, 0.1836376190185547, 0.572625458240509, -1.254997968673706, 1.5736101865768433, 0.840276837348938, 1.8519418239593506, 0.9879994988441467, -0.325181245803833, 1.4997402429580688, 0.026971861720085144, 1.8022160530090332, -0.6397718787193298, 0.717035174369812, -0.21188294887542725, -1.0406357049942017, 0.8051084280014038, -0.3582839071750641, -2.0675063133239746, -0.8652576804161072, -0.8789809942245483, -0.23030585050582886, -0.7906607985496521, 0.8902416229248047, -0.3425149917602539, -1.4508171081542969, 0.2862372398376465, -0.7265114784240723, 0.13751277327537537, -1.1489226818084717, 0.28279247879981995, 0.7268242239952087, -0.5552530884742737, -0.014322707429528236, -0.187150239944458, -1.2437286376953125, -0.4520837664604187, 0.2511582374572754, 1.9781476259231567, -0.7872245907783508, 0.8763758540153503, 0.960140585899353, -0.7856178879737854, 0.07800737768411636, 0.278615802526474, -0.24411654472351074, 0.8099309206008911, -1.0913305282592773, -0.4217001795768738, 1.0446805953979492, -0.09376707673072815, -0.527466893196106, 1.5269850492477417, 0.7933403253555298, -0.9908915758132935, -0.2166195511817932, -0.30378738045692444, -0.7825801968574524, -0.0532960370182991, -1.5558996200561523, -0.22957435250282288, 0.2515924274921417, -1.3613853454589844, -0.557938277721405, -0.3099256753921509, 1.317744255065918, -0.19412177801132202, 1.2666975259780884, -0.3650098741054535, -0.3318934142589569, -0.31953054666519165, -0.34364986419677734, 0.26319292187690735, -0.21572422981262207, -0.6845173835754395, 0.1737023890018463, -0.8371773362159729, 0.3497541546821594, 1.4215059280395508, 0.4735494554042816, 0.05309140682220459, 0.5763047933578491, 1.0192394256591797, 0.3123203217983246, -0.04456207528710365, -0.8804854154586792, -1.5653156042099, 1.9212110042572021, -1.5156217813491821, 1.9356961250305176, 0.7194870710372925, 0.02146371454000473, -1.7609559297561646, -1.9049419164657593, 1.3339003324508667, 1.291419267654419, 2.2781198024749756, 0.6185187697410583, 0.3659782409667969, -0.8856346607208252, -0.6543740630149841, 0.21973219513893127, -1.1328914165496826, -0.6340364813804626, 0.13955330848693848, 2.2839913368225098, 1.8214062452316284, -0.6498873829841614, -0.205802321434021, -1.0618270635604858, 1.3539756536483765, -0.14331644773483276, 0.24360445141792297, 2.067049503326416, -0.3732024133205414, -1.1382380723953247, 1.300407886505127, -2.3411741256713867, 0.010628871619701385, 1.901228666305542, 0.25013354420661926, 0.09295321255922318, -1.4331469535827637, -0.6606911420822144, -0.28339746594429016, -0.44107016921043396, -1.2903308868408203, 0.6184876561164856, -0.2543676495552063, -0.8011279106140137, -1.4920804500579834, 0.18355730175971985, -1.1335147619247437, -1.5385818481445312, 0.42947468161582947, 1.8519014120101929, 2.0030174255371094, -0.6854726076126099, 1.54463529586792, -0.29727378487586975, 0.227321594953537, 1.3019064664840698, 1.1858381032943726, 3.1287269592285156, 1.921370029449463, -1.2066352367401123, 0.6397637724876404, -0.15684393048286438, -0.5074740052223206, 1.1129258871078491, -1.1428691148757935, 1.3198411464691162, -0.16039887070655823, -1.1506339311599731, -1.310118556022644, 0.9184821248054504, 0.4880356788635254, 0.07163351029157639, -0.4877307713031769, 1.1932255029678345, 0.021610207855701447, 1.412252426147461, 0.5357717275619507, -0.38715630769729614, 0.5706716775894165, -0.4794725179672241, -0.4289276599884033, 1.5487558841705322, 0.2365679144859314, -1.4216176271438599, -2.3119099140167236, -0.20581459999084473, -0.8219548463821411, 0.04994828999042511, -0.5721800923347473, -1.0495980978012085, 1.7487999200820923, 0.4353426992893219, -1.3360786437988281, -0.1976354718208313, -0.3661201000213623, -0.6322644948959351, 2.665916681289673, -1.380563735961914, -0.24589163064956665, -0.9091370105743408, -0.6096420884132385, 1.6957480907440186, -1.1932451725006104, -0.20847991108894348, -1.0364903211593628, -0.6462469696998596, -1.3686476945877075, -0.5716549158096313, -0.027544554322957993, -0.9488806128501892, 0.9362475872039795, 0.09168284386396408, -1.0382376909255981, -0.3446404039859772, -0.8164635300636292, 0.8553449511528015, -0.183187335729599, 0.32129064202308655, 1.9630317687988281, 0.39478713274002075, -0.3651478886604309, 0.6587857604026794, 1.159468650817871, 0.6406873464584351, -0.6966128945350647, 0.20888859033584595, -0.6787341833114624, 0.1985722780227661, -1.3161565065383911, 0.3427514433860779, -2.9453349113464355, 0.7178934216499329, -0.026727283373475075, -0.08088534325361252, 0.051229361444711685, -1.3022054433822632, 1.2187001705169678, 2.555483341217041, -1.215860366821289, 0.3792448043823242, 0.30367934703826904, 1.1486692428588867, -1.5315426588058472, 0.33472564816474915, -0.3433195948600769, 2.0710902214050293, 0.230181485414505, 1.2292543649673462, -0.5235245823860168, -2.216923952102661, 0.6038585305213928, -1.240700364112854, -1.262082576751709, 0.6549080014228821, -0.8687015771865845, 0.07279681414365768, -1.611750602722168, -0.22391805052757263, -0.9161048531532288, -1.2551616430282593, 0.7611569166183472, 0.20122051239013672, 0.3335018754005432, -0.5798892974853516, 0.40299540758132935, -2.1753735542297363, -1.3651460409164429, -0.2511295676231384, -0.877511203289032, 0.5135647654533386, -0.24436891078948975, 0.7099316716194153, -0.10556602478027344, 0.09706901013851166, 0.31456997990608215, 1.4432190656661987, 3.357032060623169, 0.2049577236175537, 0.42577579617500305, -0.059807952493429184, -0.8918315768241882, 1.4104965925216675, 0.9940221309661865, 0.05374148488044739, -0.5055210590362549, -1.0323044061660767, 1.305898904800415, 1.9595985412597656, 0.963202953338623, 0.010841447860002518, -0.7274122834205627, -0.5826600790023804, -0.07964721322059631, 0.31834378838539124, 0.4117751121520996, 0.8664165139198303, 0.0610060915350914, 0.11847392469644547, 1.4186034202575684, 1.2652621269226074, -0.5514854192733765, 0.36863288283348083, -0.8552657961845398, -0.4473060965538025, 0.5107783675193787, 0.27394574880599976, -0.014058712869882584, 0.3371342122554779, -1.0610768795013428, -0.31626251339912415, -0.2368118166923523, -0.9963930249214172, -0.6595801115036011, -0.45946431159973145, -0.4158541262149811, 1.5214861631393433, 0.17979475855827332, -0.4532509744167328, -0.12767750024795532, -0.7946464419364929, -0.19577333331108093, -1.1537657976150513, 0.2767735719680786, -0.10942483693361282, -0.13014283776283264, -0.16751307249069214, 1.860007643699646, -0.86243736743927, -2.020982027053833, 0.24427294731140137, 0.35190892219543457, -0.42434972524642944, 0.1694898009300232, 1.5295071601867676, 0.556174099445343, 1.4895844459533691, 1.154579997062683, 0.9577915072441101, -0.5300576090812683, -1.2928048372268677, 0.619472086429596, 0.9441674947738647, -1.3092414140701294, 0.7772049903869629, 0.04044782370328903, -0.4941542446613312, 0.6795957684516907, 1.3067224025726318, 0.4737469255924225, -1.9186081886291504, 0.7934588193893433, -0.9194490909576416, 0.7669752836227417, 0.748228132724762, 0.7383385896682739, 0.3041131794452667, 0.8462817072868347, -1.3499901294708252, -1.1427892446517944, -0.7996296286582947, -0.5558433532714844, 2.056608200073242, -0.1663801372051239, 0.6000633835792542, -0.2786155045032501, -1.2429102659225464, -0.029765823855996132, 0.6168099045753479, 0.49162399768829346, -0.3869187533855438, 0.825533390045166, -0.6248509883880615, -1.0700639486312866, -1.4037063121795654, -0.4088609218597412, -0.9269622564315796, -0.9835264086723328, 1.0542116165161133, 0.9897794723510742, 0.2851119339466095, 1.9192783832550049, 0.5943315625190735, 0.29263681173324585, -2.575838088989258, 0.848754346370697, 0.2892373502254486, -0.05887185037136078, 0.9231338500976562, 0.32037806510925293, 1.0829145908355713, -0.007672367617487907, 0.46138593554496765, -2.3532958030700684, 2.21295166015625, -0.16224801540374756, 0.6751455664634705, -0.09765883535146713, -0.08477441221475601, 1.2376518249511719, 0.497066855430603, 0.47249680757522583, -1.0475172996520996, 0.6511759757995605, -0.5536166429519653, 1.2305197715759277, 1.0531063079833984, -0.6917268633842468, -0.030161231756210327, 1.3095676898956299, 0.5000168085098267, -0.5005330443382263, -0.8310129046440125, -0.881705105304718, 0.9404841065406799, 1.7515431642532349, -0.06432981789112091, -0.054470162838697433, 0.9006515741348267, 0.6838166117668152, -1.346971035003662, 0.009042585268616676, -0.7153768539428711, -0.6573243141174316, 1.6968278884887695, 2.0808615684509277, -0.13100740313529968, -0.13961753249168396, -0.6888882517814636, -1.1839721202850342, 0.7747226357460022, 0.011666804552078247, 0.11068947613239288, 0.6731031537055969, -0.6707381010055542, 1.1014437675476074, 0.9290938973426819, 0.9319361448287964, 0.22482016682624817, 0.47741419076919556, 0.40832021832466125, -0.2601901888847351, -1.1760904788970947, -0.27778780460357666, -1.129486322402954, -2.526841402053833, 0.5025172233581543, -0.3209852874279022, -1.3769253492355347, -0.013238850049674511, -1.103941559791565, 0.9767964482307434, -0.6325517296791077, -1.0997897386550903, -1.6207631826400757, 0.2159334123134613, 0.027298234403133392, 0.9826924204826355, -1.5946052074432373, -0.07673739641904831, 1.207687258720398, 0.8642758727073669, -0.6398541331291199, 1.0073907375335693, 0.3179977536201477, 1.1007627248764038, 0.7602327466011047, -0.39066991209983826, 0.45659327507019043, 0.011463424190878868, -1.3591054677963257, 0.612309992313385, 1.1059194803237915, 0.17953082919120789, 1.4275418519973755, -0.54652339220047, 0.05183523893356323, 0.4727735221385956, -0.5932655334472656, -0.46833598613739014, -0.5499922037124634, 0.6938671469688416, 0.1614367663860321, -0.8902835249900818, -0.004035461228340864, -0.027751915156841278, -0.25919046998023987, 0.20008894801139832, -1.4695388078689575, -0.18029257655143738, -0.4179990291595459, -0.5844939947128296, -1.245231032371521, -0.07556534558534622, 1.3521052598953247, -0.7601439952850342, -0.16700565814971924, 0.5220757722854614, 0.43577778339385986, 0.6054748296737671, 0.6963117122650146, -0.70384281873703, -0.3326261639595032, -0.2725968062877655, -0.3294701874256134, 0.22665289044380188, 1.3344663381576538, -0.21531304717063904, -1.0687001943588257, 0.7012773156166077, -0.37106943130493164, 0.0878693163394928, 1.9897887706756592, 0.10589272528886795, -0.8598888516426086, 0.2813551127910614, -0.7781067490577698, 1.9533292055130005, 1.6257277727127075, 1.3529342412948608, -0.123621366918087, -0.884279191493988, 0.5497803688049316, -0.2601294219493866, -0.4071238934993744, 0.8389279246330261, 0.4699680805206299, -0.14787057042121887, -1.430310606956482, 0.6679285168647766, 1.3924504518508911, -1.0194669961929321, -0.8272538185119629, 0.15980419516563416, -0.800363302230835, 1.0468471050262451, 0.6427557468414307, 0.4671326279640198, 0.3473128378391266, 1.6208933591842651, 0.63286292552948, -0.43425998091697693, 0.43332019448280334, 0.579386830329895, -0.08084557205438614, -2.153221368789673, -1.2479320764541626, 0.298999160528183, -0.5095614790916443, -1.6074110269546509, 1.3433119058609009, -1.060526967048645, -0.8977910280227661, 0.5701086521148682, 0.1537192463874817, 1.4406051635742188, 0.31236159801483154, 1.5559210777282715, 2.027982473373413, 0.8011361956596375, 0.2836570739746094, 1.3980982303619385, -0.11484147608280182, -0.5132948756217957, 1.8503036499023438, -0.44941380620002747, 0.5610142350196838, 1.1545473337173462, -0.2361116111278534, -1.0843688249588013, -0.6463639736175537, -1.240465521812439, -0.6241124272346497, 1.2011291980743408, 0.1419898271560669, -1.2071384191513062, 0.1055099293589592, 1.5626246929168701, 0.16033706068992615, -0.40799427032470703, 0.5379123687744141, 0.3552394211292267, -0.802179217338562, -0.034127697348594666, -1.0904109477996826, 0.5621952414512634, -0.2396199107170105, -0.30614563822746277, 0.2124907374382019, 0.525143563747406, 1.2864112854003906, -0.10138644278049469, 0.17479562759399414, 1.1358541250228882, -1.3943709135055542, 1.4990906715393066, -0.605221152305603, 0.2218719720840454, -2.461181640625, 1.4088175296783447, -0.7573270797729492, 1.9531395435333252, -2.6972086429595947, 0.39693841338157654, -0.5415716767311096, -0.386382520198822, 0.3065726161003113, -0.33013394474983215, 0.1546936333179474, -0.06552533805370331, -1.1495075225830078, 0.029840588569641113, -0.7180942296981812, 0.5738641619682312, 1.1908302307128906, 1.368404746055603, -1.1984059810638428, -0.24046102166175842, -1.7048218250274658, -0.15353956818580627, -0.761078417301178, 0.36374983191490173, -2.0826916694641113, -0.08629830926656723, -1.7562644481658936, -2.3288776874542236, -1.2551684379577637, -0.8243468403816223, 1.1108205318450928, 0.04002822935581207, -0.9769920110702515, 1.1066417694091797, -0.3610452711582184, -1.7540684938430786, 1.0454905033111572, -2.084228515625 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@rafikg I am sorry, but I can't reproduce your issue. For me it works OK for all languages. See: https://colab.research.google.com/drive/1yIcLw1it118-TYE3ZlFmV7gJcsF6UCsH?usp=sharing
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
20
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @rafikg I am sorry, but I can't reproduce your issue. For me it works OK for all languages. See: https://colab.research.google.com/drive/1yIcLw1it118-TYE3ZlFmV7gJcsF6UCsH?usp=sharing
[ -1.2755327224731445, -0.9833961725234985, -0.7530804872512817, 1.3339167833328247, -0.24868391454219818, -1.185821294784546, 0.13484497368335724, -1.0804592370986938, 1.6884987354278564, -0.7438875436782837, 0.27894362807273865, -1.6749213933944702, -0.0005954764783382416, -0.6990606188774109, -0.6946471333503723, -0.7906889319419861, -0.359701931476593, -0.7845019102096558, 0.9860266447067261, 2.53694486618042, 1.2007595300674438, -1.3495463132858276, 2.717825412750244, 0.7145845293998718, -0.24294647574424744, -1.0289430618286133, 0.525814414024353, 0.05651474744081497, -1.1931867599487305, -0.43189334869384766, -0.9312271475791931, -0.09773611277341843, -0.5406337380409241, -0.5055391788482666, 0.021812140941619873, 0.4280228912830353, -0.2473103255033493, -0.37782734632492065, -0.4984589219093323, -0.7224920988082886, 0.48551833629608154, -0.40216419100761414, 0.9238284230232239, -0.3574446737766266, 1.8429861068725586, -0.6123120188713074, 0.34595340490341187, 0.6515042185783386, 1.2630597352981567, 0.16741760075092316, -0.07319126278162003, 0.29597121477127075, 0.3780299723148346, -0.05677899718284607, 0.4126349985599518, 1.1404566764831543, 0.5865936875343323, 0.5047394037246704, 0.739328920841217, -2.242703914642334, 1.231816053390503, -1.054296612739563, 0.2927437722682953, 1.4441990852355957, -1.009856939315796, 0.44758859276771545, -1.796879768371582, -0.03847724199295044, 0.578179657459259, -2.2871954441070557, 0.29331016540527344, -1.3327308893203735, -0.6430498957633972, 0.8894497156143188, 0.29335305094718933, -1.2787370681762695, 0.21344098448753357, -0.4315728545188904, 1.1118559837341309, 0.4298640191555023, 1.1177659034729004, -1.7450250387191772, -0.11211520433425903, -0.334032267332077, 0.019024912267923355, -1.390847086906433, -1.4633324146270752, 0.6044352650642395, 0.5883455872535706, 0.6099165678024292, -0.14637057483196259, 1.0008827447891235, -1.0285954475402832, 0.8450709581375122, -1.1008256673812866, -1.6304278373718262, -1.4330393075942993, -2.317899465560913, -2.2428479194641113, 0.8318818807601929, -0.3774023950099945, -0.5369260311126709, 1.918867826461792, -0.9432917237281799, -1.7941107749938965, 1.178941249847412, 0.1886138767004013, -0.0018365345895290375, 2.3655056953430176, 0.2213819921016693, -0.6905020475387573, 0.3744892179965973, -0.8060466647148132, 0.8130620718002319, -0.3309696912765503, 1.527072787284851, 0.5627899765968323, -0.9668936729431152, 1.6375927925109863, -0.4286843240261078, 0.5483912229537964, -0.693311870098114, -0.5927533507347107, -0.8553623557090759, 0.39039385318756104, 1.9303828477859497, -0.3493761122226715, 1.5648919343948364, -0.3731556534767151, -1.5434491634368896, -1.4925411939620972, 0.8326115608215332, 0.5357654690742493, -0.7818629145622253, 0.15718114376068115, -0.3626413941383362, 0.10877103358507156, -0.08109338581562042, 1.172078013420105, 1.225555181503296, 0.6218590140342712, -0.2848101854324341, -0.868037223815918, 0.25372830033302307, -0.07956085354089737, -0.7269031405448914, -1.815238356590271, -0.38021403551101685, 0.1614478975534439, 0.6239688992500305, -1.297692060470581, 1.6081185340881348, 0.832801103591919, 1.8381907939910889, 0.9850988388061523, -0.3297569751739502, 1.4339640140533447, 0.012501410208642483, 1.8325581550598145, -0.5752788782119751, 0.6760167479515076, -0.22621773183345795, -1.0360225439071655, 0.8721228837966919, -0.33923739194869995, -1.9839255809783936, -0.7879836559295654, -0.893695592880249, -0.18841470777988434, -0.8429914712905884, 0.9065431356430054, -0.35326215624809265, -1.4290512800216675, 0.3046113848686218, -0.7556653022766113, 0.15615196526050568, -1.2161146402359009, 0.24998147785663605, 0.664972186088562, -0.5453873872756958, -0.03266140818595886, -0.20217786729335785, -1.2477355003356934, -0.45447012782096863, 0.2579982876777649, 1.9963605403900146, -0.7898677587509155, 0.9283817410469055, 0.9724878072738647, -0.7136827111244202, 0.028084762394428253, 0.3318694531917572, -0.2705017924308777, 0.8238189816474915, -1.1263223886489868, -0.4508344829082489, 1.0059763193130493, -0.02622354030609131, -0.5165013074874878, 1.4903241395950317, 0.8377148509025574, -0.9995594024658203, -0.2749650180339813, -0.2424590140581131, -0.8007742166519165, -0.05440647527575493, -1.6315782070159912, -0.22644565999507904, 0.23891746997833252, -1.4251214265823364, -0.5537187457084656, -0.2667695879936218, 1.3559415340423584, -0.18959476053714752, 1.3634732961654663, -0.3826000988483429, -0.29878345131874084, -0.34259650111198425, -0.3071405589580536, 0.2260701209306717, -0.2227751910686493, -0.7083067893981934, 0.19044673442840576, -0.8233360052108765, 0.37369275093078613, 1.4048891067504883, 0.4465849697589874, -0.008456713519990444, 0.5556524991989136, 1.070855975151062, 0.29451411962509155, -0.004029716365039349, -0.8865628242492676, -1.5652494430541992, 1.9515407085418701, -1.535530686378479, 1.9492148160934448, 0.6798540353775024, -0.006192887667566538, -1.757601261138916, -1.876933217048645, 1.3334743976593018, 1.3046023845672607, 2.2712175846099854, 0.69307541847229, 0.4223077595233917, -0.8472996950149536, -0.63729327917099, 0.20771752297878265, -1.1046618223190308, -0.6195007562637329, 0.1741815060377121, 2.304170846939087, 1.7969424724578857, -0.6399424076080322, -0.22258371114730835, -0.9723103642463684, 1.2655329704284668, -0.131582111120224, 0.2116423398256302, 2.064598560333252, -0.3017868399620056, -1.15297532081604, 1.2420436143875122, -2.3371994495391846, 0.09006103128194809, 1.9579706192016602, 0.27271705865859985, 0.11079349368810654, -1.4710599184036255, -0.6561320424079895, -0.28018397092819214, -0.4690301716327667, -1.329559564590454, 0.5881666541099548, -0.3104330897331238, -0.8751435875892639, -1.4884287118911743, 0.13378897309303284, -1.146820068359375, -1.5647696256637573, 0.3889123797416687, 1.8470996618270874, 2.0120692253112793, -0.7229504585266113, 1.5168776512145996, -0.2686299681663513, 0.22645363211631775, 1.3402730226516724, 1.2114883661270142, 3.106680393218994, 1.960253357887268, -1.167847752571106, 0.690680742263794, -0.18658754229545593, -0.4554222524166107, 1.134010672569275, -1.1388392448425293, 1.2546703815460205, -0.16550710797309875, -1.1742042303085327, -1.2290713787078857, 0.9438416957855225, 0.4559212625026703, 0.06404012441635132, -0.48596298694610596, 1.220574140548706, 0.03697959706187248, 1.3671296834945679, 0.5261911153793335, -0.39169028401374817, 0.6004353761672974, -0.4352448880672455, -0.3795188069343567, 1.6168067455291748, 0.17990346252918243, -1.429399847984314, -2.3957855701446533, -0.22381512820720673, -0.8122605085372925, 0.0014882497489452362, -0.5764856338500977, -1.0999490022659302, 1.6839936971664429, 0.450914591550827, -1.3048993349075317, -0.268938273191452, -0.369249165058136, -0.6201689839363098, 2.7201454639434814, -1.5003371238708496, -0.2671854794025421, -0.9920222759246826, -0.5535361766815186, 1.767818570137024, -1.1762932538986206, -0.23985256254673004, -1.0224401950836182, -0.6223378777503967, -1.3398499488830566, -0.5465790033340454, -0.04558207839727402, -0.8574950695037842, 0.9036962985992432, 0.1488817036151886, -1.0524810552597046, -0.34738585352897644, -0.8001057505607605, 0.8331784009933472, -0.16816121339797974, 0.29666778445243835, 1.936103105545044, 0.36298418045043945, -0.38288718461990356, 0.6659957766532898, 1.1292974948883057, 0.6230875849723816, -0.6886794567108154, 0.21155622601509094, -0.6640107035636902, 0.17996475100517273, -1.3585796356201172, 0.3276250660419464, -2.9057271480560303, 0.6827181577682495, 0.005797098390758038, 0.012958607636392117, -0.013960756361484528, -1.321711778640747, 1.2312759160995483, 2.504650592803955, -1.2151498794555664, 0.4569421410560608, 0.28164049983024597, 1.1689081192016602, -1.5816808938980103, 0.2791750729084015, -0.35650306940078735, 2.107224702835083, 0.2333189696073532, 1.2375411987304688, -0.442550927400589, -2.2484817504882812, 0.605941653251648, -1.2164711952209473, -1.1940640211105347, 0.6468459367752075, -0.8561232686042786, 0.11490777134895325, -1.570934534072876, -0.24020874500274658, -0.9713152050971985, -1.249435544013977, 0.838367223739624, 0.16903509199619293, 0.3209308981895447, -0.6080882549285889, 0.3688059151172638, -2.153615713119507, -1.3434419631958008, -0.22817347943782806, -0.8857992887496948, 0.4620416760444641, -0.27351266145706177, 0.6857664585113525, -0.09062529355287552, 0.11133427917957306, 0.23238763213157654, 1.4530749320983887, 3.384537935256958, 0.19556106626987457, 0.4129773676395416, -0.04201728105545044, -0.9229327440261841, 1.4271920919418335, 1.0116868019104004, 0.05321516841650009, -0.5603027939796448, -1.063658356666565, 1.2925852537155151, 1.8995219469070435, 0.9443221092224121, 0.06924793124198914, -0.7493287324905396, -0.5914319753646851, -0.051784299314022064, 0.33970919251441956, 0.4325723946094513, 0.9267745614051819, 0.10931973159313202, 0.08605986088514328, 1.4147173166275024, 1.1640605926513672, -0.5295236110687256, 0.32228702306747437, -0.9157438278198242, -0.41223081946372986, 0.5118878483772278, 0.28499501943588257, 0.0019823145121335983, 0.38933250308036804, -1.0641568899154663, -0.33905187249183655, -0.17314095795154572, -1.0115159749984741, -0.7127770781517029, -0.4262293875217438, -0.3484499752521515, 1.5564677715301514, 0.19254721701145172, -0.446522057056427, -0.1556824892759323, -0.8277426958084106, -0.14610502123832703, -1.1868388652801514, 0.24697504937648773, -0.13312719762325287, -0.07386188954114914, -0.10046052187681198, 1.8259528875350952, -0.7958550453186035, -2.005253553390503, 0.2566449046134949, 0.3564487099647522, -0.42904072999954224, 0.20728780329227448, 1.6233855485916138, 0.5822999477386475, 1.410939335823059, 1.190009593963623, 1.0155524015426636, -0.508704423904419, -1.3393349647521973, 0.6207431554794312, 0.960280179977417, -1.4144519567489624, 0.8100641965866089, 0.0438469797372818, -0.44408372044563293, 0.6346631646156311, 1.3859068155288696, 0.4578627049922943, -1.972335934638977, 0.756967306137085, -0.8970316648483276, 0.7643677592277527, 0.7555063366889954, 0.8383961915969849, 0.2894972860813141, 0.9081354737281799, -1.2978460788726807, -1.133986473083496, -0.8074957132339478, -0.5430940389633179, 2.0182580947875977, -0.14395342767238617, 0.5606339573860168, -0.2828313410282135, -1.2009012699127197, -0.0592164508998394, 0.655136227607727, 0.46411821246147156, -0.3635624349117279, 0.8212253451347351, -0.6600697040557861, -1.1213756799697876, -1.341404676437378, -0.4455741047859192, -0.8525282740592957, -1.0339884757995605, 1.078617811203003, 0.9176838397979736, 0.36280468106269836, 1.943421721458435, 0.6225878596305847, 0.21848087012767792, -2.5680341720581055, 0.8597912788391113, 0.2705990672111511, -0.0028274953365325928, 0.9627796411514282, 0.29907846450805664, 1.134555459022522, 0.017043128609657288, 0.48408615589141846, -2.3822133541107178, 2.2028517723083496, -0.223469540476799, 0.6936257481575012, -0.05153810605406761, -0.08423146605491638, 1.1783198118209839, 0.505206286907196, 0.5238867402076721, -1.074863076210022, 0.6532893776893616, -0.6234638094902039, 1.2634857892990112, 0.9860632419586182, -0.7519297003746033, 0.03008265793323517, 1.2903081178665161, 0.5097441077232361, -0.5103556513786316, -0.8016262054443359, -0.9201971292495728, 0.9146481156349182, 1.7323611974716187, -0.025623679161071777, 0.005137477070093155, 0.8743276000022888, 0.6985365152359009, -1.2970678806304932, 0.029551517218351364, -0.7443942427635193, -0.6368103623390198, 1.703086495399475, 2.091508150100708, -0.17039060592651367, -0.22051237523555756, -0.7270447015762329, -1.2700700759887695, 0.7785348892211914, -0.015935080125927925, 0.11296907067298889, 0.6773583292961121, -0.6837882995605469, 1.1054737567901611, 0.8963015079498291, 0.94032883644104, 0.20489192008972168, 0.5587177276611328, 0.42409682273864746, -0.25257453322410583, -1.1801977157592773, -0.26553890109062195, -1.1365201473236084, -2.5414111614227295, 0.5243052840232849, -0.34154438972473145, -1.3767560720443726, 0.006215234287083149, -1.0956345796585083, 0.9222288131713867, -0.6636376976966858, -1.1122682094573975, -1.5921056270599365, 0.1529129445552826, -0.027646508067846298, 0.9343199133872986, -1.5853323936462402, -0.07091033458709717, 1.2566826343536377, 0.8849601745605469, -0.5627819299697876, 0.9924128651618958, 0.34041890501976013, 1.1084455251693726, 0.7749931812286377, -0.4178164005279541, 0.4856862723827362, -0.012708945199847221, -1.3596442937850952, 0.6474533677101135, 1.2087461948394775, 0.1649494171142578, 1.4550853967666626, -0.5499036312103271, 0.023756060749292374, 0.4954167306423187, -0.6183969974517822, -0.536832869052887, -0.5664768815040588, 0.7081542015075684, 0.1541902720928192, -0.8917883038520813, -0.008586953394114971, -0.055288415402173996, -0.20051172375679016, 0.23745842278003693, -1.4763402938842773, -0.196130633354187, -0.42441388964653015, -0.6041399240493774, -1.2735304832458496, -0.11174501478672028, 1.2463034391403198, -0.777512788772583, -0.15996162593364716, 0.4782029390335083, 0.4150359630584717, 0.5993051528930664, 0.5830428004264832, -0.6108263731002808, -0.388052761554718, -0.2578962445259094, -0.3439643085002899, 0.2623502016067505, 1.2735834121704102, -0.18352237343788147, -1.0971145629882812, 0.6373264193534851, -0.37877988815307617, 0.05324701964855194, 1.985369086265564, 0.08921293169260025, -0.8383261561393738, 0.22670121490955353, -0.7237841486930847, 1.9439486265182495, 1.5661640167236328, 1.3554552793502808, -0.18864130973815918, -0.8365277051925659, 0.5300411581993103, -0.30426025390625, -0.416756808757782, 0.7961721420288086, 0.5582563877105713, -0.14708048105239868, -1.3645013570785522, 0.6202152967453003, 1.407760500907898, -1.004397988319397, -0.8114674687385559, 0.14413830637931824, -0.7770786285400391, 1.0197484493255615, 0.6553163528442383, 0.42846962809562683, 0.34896430373191833, 1.6222703456878662, 0.6335530281066895, -0.48238253593444824, 0.433295339345932, 0.5530627965927124, -0.05834338441491127, -2.1424601078033447, -1.1855100393295288, 0.3284737765789032, -0.45686817169189453, -1.6042497158050537, 1.3337640762329102, -1.0646979808807373, -0.9386730194091797, 0.539782702922821, 0.20920036733150482, 1.3630794286727905, 0.3062126934528351, 1.5839953422546387, 2.010209083557129, 0.7585344910621643, 0.3107788860797882, 1.3131115436553955, -0.04006888344883919, -0.522622287273407, 1.899459719657898, -0.41710421442985535, 0.5822545886039734, 1.1019840240478516, -0.21041923761367798, -1.1287651062011719, -0.753197193145752, -1.261061429977417, -0.5724107027053833, 1.1950433254241943, 0.17814218997955322, -1.2223098278045654, 0.15947884321212769, 1.5453944206237793, 0.1367543786764145, -0.3912072777748108, 0.5882670283317566, 0.3111326992511749, -0.8295181393623352, -0.026185940951108932, -1.0705090761184692, 0.5700841546058655, -0.15388168394565582, -0.32528892159461975, 0.21387922763824463, 0.541516125202179, 1.3412004709243774, -0.06833537667989731, 0.1468694806098938, 1.2460713386535645, -1.392002820968628, 1.5353820323944092, -0.6196954250335693, 0.22827517986297607, -2.4187164306640625, 1.3717772960662842, -0.7805193066596985, 1.926730751991272, -2.6826255321502686, 0.3312801122665405, -0.5053807497024536, -0.4140910804271698, 0.2902906537055969, -0.36188167333602905, 0.11570551246404648, -0.09140552580356598, -1.157895803451538, 0.03841599076986313, -0.7822736501693726, 0.5463675260543823, 1.2278361320495605, 1.3620445728302002, -1.178556203842163, -0.18613776564598083, -1.7580732107162476, -0.11646700650453568, -0.7574243545532227, 0.35774487257003784, -2.0622527599334717, -0.10123779624700546, -1.8220999240875244, -2.2999322414398193, -1.2481242418289185, -0.894334614276886, 1.0549075603485107, 0.05493877828121185, -0.939606249332428, 1.072299838066101, -0.3564583361148834, -1.712393879890442, 1.0553821325302124, -2.050558567047119 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
@kwchurch the PR #3787 fixes this issue (generated by a change in Google Drive service) for ALL datasets with this issue. Once we make our next library release (in a couple of days), the fix will be accessible to all users that update our library from PyPI.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
47
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No @kwchurch the PR #3787 fixes this issue (generated by a change in Google Drive service) for ALL datasets with this issue. Once we make our next library release (in a couple of days), the fix will be accessible to all users that update our library from PyPI.
[ -1.2735517024993896, -0.9997855424880981, -0.7719156742095947, 1.3530420064926147, -0.26262539625167847, -1.1979379653930664, 0.16678404808044434, -1.0621706247329712, 1.7415062189102173, -0.7467905879020691, 0.24674810469150543, -1.7142893075942993, -0.0021830196492373943, -0.7288885712623596, -0.7029250860214233, -0.82718425989151, -0.39666324853897095, -0.7753891944885254, 0.9535547494888306, 2.4705817699432373, 1.2348881959915161, -1.3320063352584839, 2.709789276123047, 0.7496543526649475, -0.2571435570716858, -1.0179781913757324, 0.4751015305519104, 0.08005639165639877, -1.1490848064422607, -0.526229739189148, -0.949001669883728, -0.08845147490501404, -0.47962111234664917, -0.5122452974319458, 0.0020422833040356636, 0.411704957485199, -0.23848138749599457, -0.3786470890045166, -0.5488795042037964, -0.7514186501502991, 0.44807279109954834, -0.381273090839386, 0.9149215817451477, -0.37661707401275635, 1.8992594480514526, -0.657082736492157, 0.2998890280723572, 0.6545689105987549, 1.340027093887329, 0.1469806730747223, -0.11468243598937988, 0.2710186839103699, 0.3091796636581421, -0.06269106268882751, 0.4397451877593994, 1.1152228116989136, 0.5929846167564392, 0.4725564122200012, 0.7267675995826721, -2.2239558696746826, 1.244815707206726, -1.1370936632156372, 0.31201624870300293, 1.4340113401412964, -0.9932196736335754, 0.46784400939941406, -1.7639029026031494, -0.05285906046628952, 0.5808065533638, -2.2949154376983643, 0.2522623538970947, -1.3492008447647095, -0.6195653676986694, 0.8875452876091003, 0.29732227325439453, -1.2824620008468628, 0.18963532149791718, -0.4237174391746521, 1.1220601797103882, 0.4289122223854065, 1.1188336610794067, -1.7269904613494873, -0.03197740390896797, -0.3203085660934448, 0.006253773346543312, -1.3967736959457397, -1.4536441564559937, 0.6177043318748474, 0.5788161754608154, 0.6314097046852112, -0.1596997082233429, 1.0142366886138916, -0.9960435032844543, 0.8324908018112183, -1.0497225522994995, -1.6040780544281006, -1.4259467124938965, -2.292886972427368, -2.2161524295806885, 0.8490185737609863, -0.4236446022987366, -0.6029302477836609, 1.9750089645385742, -0.967315137386322, -1.8088905811309814, 1.190054178237915, 0.2091742753982544, -0.033166978508234024, 2.382329225540161, 0.2501518726348877, -0.6433423757553101, 0.3433911204338074, -0.7457599639892578, 0.8907254934310913, -0.38417840003967285, 1.5419613122940063, 0.527941107749939, -1.0790396928787231, 1.6644951105117798, -0.42553871870040894, 0.5071823000907898, -0.7093731760978699, -0.6364253759384155, -0.8785706162452698, 0.4356120228767395, 1.86612069606781, -0.33663493394851685, 1.5565927028656006, -0.40477466583251953, -1.5194743871688843, -1.54739511013031, 0.874661386013031, 0.5261974334716797, -0.7863016128540039, 0.14835204184055328, -0.36056697368621826, 0.11821915209293365, -0.07484454661607742, 1.2370500564575195, 1.244784951210022, 0.5921792387962341, -0.3166983723640442, -0.8263670802116394, 0.2528345584869385, -0.055189646780490875, -0.7528278231620789, -1.8402405977249146, -0.4069061875343323, 0.169910728931427, 0.5805661082267761, -1.2461754083633423, 1.5960400104522705, 0.8484389781951904, 1.8238245248794556, 1.042746663093567, -0.2896828055381775, 1.463640809059143, 0.03217509761452675, 1.7771198749542236, -0.5842828750610352, 0.7003546953201294, -0.23007625341415405, -1.0656094551086426, 0.855402946472168, -0.32481175661087036, -2.019639492034912, -0.8434227705001831, -0.8735976219177246, -0.24752654135227203, -0.772577702999115, 0.9405093193054199, -0.37100517749786377, -1.3794976472854614, 0.2990073561668396, -0.6581066846847534, 0.14531297981739044, -1.1945909261703491, 0.2694278359413147, 0.6744509339332581, -0.5254404544830322, -0.035431429743766785, -0.20668959617614746, -1.2705894708633423, -0.41014575958251953, 0.2522391676902771, 1.9568240642547607, -0.7994323968887329, 0.8830317258834839, 0.973099946975708, -0.7143774032592773, -0.007480760104954243, 0.2923385500907898, -0.2436404973268509, 0.8441871404647827, -1.0676109790802002, -0.4634776711463928, 1.0621819496154785, -0.09513349086046219, -0.5449787378311157, 1.5022112131118774, 0.7857483625411987, -0.979566752910614, -0.22802123427391052, -0.3051398992538452, -0.9071558117866516, -0.027406172826886177, -1.5989307165145874, -0.20215681195259094, 0.26488322019577026, -1.4293076992034912, -0.5470319390296936, -0.21318858861923218, 1.3526768684387207, -0.18828681111335754, 1.3548610210418701, -0.42675668001174927, -0.3422308564186096, -0.33866721391677856, -0.3219650983810425, 0.22939448058605194, -0.1614445298910141, -0.6735490560531616, 0.18309974670410156, -0.7708938121795654, 0.36720091104507446, 1.3806835412979126, 0.4458198547363281, 0.0005029812455177307, 0.5645833611488342, 1.0689617395401, 0.31299835443496704, -0.021637240424752235, -0.8630315065383911, -1.6078211069107056, 1.9103426933288574, -1.5047435760498047, 1.9176968336105347, 0.6736357808113098, 0.02701452374458313, -1.745458960533142, -1.9032349586486816, 1.3359994888305664, 1.3232767581939697, 2.2250661849975586, 0.6714848875999451, 0.4139164686203003, -0.863124668598175, -0.6837303042411804, 0.26221156120300293, -1.1515198945999146, -0.6180140972137451, 0.15909433364868164, 2.2779557704925537, 1.8524740934371948, -0.6319193243980408, -0.21814167499542236, -1.0199733972549438, 1.272361397743225, -0.1297847479581833, 0.17472514510154724, 2.076383590698242, -0.3536630868911743, -1.1134024858474731, 1.2441670894622803, -2.346733808517456, 0.04654427990317345, 1.9228843450546265, 0.2896692156791687, 0.0873366966843605, -1.4269144535064697, -0.6366788148880005, -0.3007255792617798, -0.40225619077682495, -1.3369438648223877, 0.6685476303100586, -0.28745728731155396, -0.8667593598365784, -1.4780147075653076, 0.18500961363315582, -1.1314873695373535, -1.5045385360717773, 0.4113508462905884, 1.8455169200897217, 2.0173871517181396, -0.6879156827926636, 1.5622612237930298, -0.30123835802078247, 0.25521671772003174, 1.3609050512313843, 1.1842520236968994, 3.1107118129730225, 1.9091383218765259, -1.2128013372421265, 0.6374274492263794, -0.13567067682743073, -0.476273775100708, 1.1552927494049072, -1.1254996061325073, 1.2747875452041626, -0.14578112959861755, -1.1828497648239136, -1.3330442905426025, 0.8838649988174438, 0.4694214463233948, 0.07781168818473816, -0.5122630000114441, 1.2553960084915161, 0.03090490773320198, 1.3499598503112793, 0.5095618367195129, -0.42709779739379883, 0.5492805242538452, -0.443655788898468, -0.39547407627105713, 1.5585291385650635, 0.1920132339000702, -1.4425305128097534, -2.313397169113159, -0.1918351948261261, -0.7831388115882874, 0.026555825024843216, -0.5725428462028503, -1.0410300493240356, 1.7143751382827759, 0.4349098205566406, -1.3318798542022705, -0.2630041837692261, -0.36859095096588135, -0.5937390327453613, 2.725144386291504, -1.4572606086730957, -0.2871623635292053, -1.0035243034362793, -0.5289732217788696, 1.7495464086532593, -1.1780190467834473, -0.20420719683170319, -1.020383358001709, -0.601150631904602, -1.3442106246948242, -0.5459848642349243, -0.048169199377298355, -0.9270161390304565, 0.9581874012947083, 0.10300342738628387, -1.0211139917373657, -0.38250428438186646, -0.796173632144928, 0.8526425361633301, -0.19733095169067383, 0.2846671938896179, 1.9877396821975708, 0.42204004526138306, -0.4028472900390625, 0.6768074631690979, 1.1534340381622314, 0.6264011859893799, -0.6204996109008789, 0.23567375540733337, -0.6800343990325928, 0.2739450931549072, -1.343346357345581, 0.3435695767402649, -2.9453048706054688, 0.6919186115264893, -0.021360253915190697, 0.007506249472498894, -0.018192145973443985, -1.3369041681289673, 1.1692758798599243, 2.5450780391693115, -1.219011664390564, 0.36414819955825806, 0.3139563202857971, 1.1760780811309814, -1.6050951480865479, 0.328624963760376, -0.3658548593521118, 2.0787265300750732, 0.21628911793231964, 1.237978458404541, -0.481647253036499, -2.2521018981933594, 0.6115339398384094, -1.2365823984146118, -1.1961488723754883, 0.6618610620498657, -0.8338366746902466, 0.07070304453372955, -1.5999093055725098, -0.20390067994594574, -0.9048061370849609, -1.2696318626403809, 0.8183961510658264, 0.17382796108722687, 0.30499738454818726, -0.5782646536827087, 0.35088151693344116, -2.1341612339019775, -1.3112841844558716, -0.22459489107131958, -0.8764517903327942, 0.4558910131454468, -0.3045313358306885, 0.7089782357215881, -0.1063569113612175, 0.11611829698085785, 0.2587538957595825, 1.467759132385254, 3.3610036373138428, 0.2200821340084076, 0.4239014983177185, -0.06120992824435234, -0.8324530720710754, 1.4388664960861206, 1.0256545543670654, 0.039947543293237686, -0.5250522494316101, -1.017546534538269, 1.294402003288269, 1.8647738695144653, 0.9138092398643494, 0.06609442830085754, -0.7509884834289551, -0.6224967241287231, -0.08408327400684357, 0.3185248374938965, 0.41062742471694946, 0.8704238533973694, 0.08933400362730026, 0.10983513295650482, 1.3889811038970947, 1.2158946990966797, -0.5263856053352356, 0.3736024498939514, -0.8536010980606079, -0.4517281651496887, 0.524077832698822, 0.3192843794822693, -0.04259152710437775, 0.35773730278015137, -1.0084350109100342, -0.33213192224502563, -0.21738526225090027, -0.9897254109382629, -0.6894445419311523, -0.3819866180419922, -0.3995087146759033, 1.5124304294586182, 0.1694892793893814, -0.49127107858657837, -0.13316386938095093, -0.8124150037765503, -0.17465414106845856, -1.143707513809204, 0.25097745656967163, -0.09088357537984848, -0.12584325671195984, -0.12536469101905823, 1.8091775178909302, -0.8499019742012024, -2.028686761856079, 0.25339317321777344, 0.38180112838745117, -0.42165082693099976, 0.15821588039398193, 1.5984885692596436, 0.5406286716461182, 1.4431368112564087, 1.190108299255371, 0.9552128911018372, -0.5258769989013672, -1.3720946311950684, 0.6561428308486938, 0.9528031349182129, -1.424526333808899, 0.8101665377616882, 0.09803542494773865, -0.4328230619430542, 0.6736900806427002, 1.3260886669158936, 0.47485530376434326, -1.9563640356063843, 0.7940148115158081, -0.934256374835968, 0.7569815516471863, 0.7831035256385803, 0.7812360525131226, 0.35271668434143066, 0.9056284427642822, -1.3021981716156006, -1.1847714185714722, -0.8247720003128052, -0.5557711124420166, 1.9931989908218384, -0.1464707851409912, 0.5879851579666138, -0.24370338022708893, -1.2761259078979492, -0.025868460536003113, 0.6522197127342224, 0.39305657148361206, -0.3926335573196411, 0.8543280959129333, -0.6585795283317566, -1.075947880744934, -1.4080500602722168, -0.42534250020980835, -0.8827440142631531, -1.061883807182312, 1.0625027418136597, 0.965514063835144, 0.3119010925292969, 1.9214295148849487, 0.594896137714386, 0.25469428300857544, -2.5403518676757812, 0.8295248746871948, 0.2749183177947998, -0.03533121198415756, 0.9295282959938049, 0.32564955949783325, 1.0893898010253906, 0.006317174062132835, 0.4439486265182495, -2.3879196643829346, 2.2159059047698975, -0.2644948363304138, 0.7308146953582764, -0.07980193942785263, -0.08464957773685455, 1.2212830781936646, 0.49400389194488525, 0.5355505347251892, -1.0605186223983765, 0.6856115460395813, -0.5207843780517578, 1.2553093433380127, 0.9982337355613708, -0.6997774839401245, -0.026050634682178497, 1.355246663093567, 0.5720095038414001, -0.5197046995162964, -0.8089742064476013, -0.9151340126991272, 0.8886269330978394, 1.717137098312378, -0.0010974174365401268, 0.0078318752348423, 0.8629918098449707, 0.6573668122291565, -1.2603044509887695, 0.04105084016919136, -0.7221755981445312, -0.619541347026825, 1.6712652444839478, 2.0467422008514404, -0.15364162623882294, -0.17054587602615356, -0.7092689871788025, -1.2089358568191528, 0.796640157699585, -0.009360358119010925, 0.1179942637681961, 0.6720698475837708, -0.6931743025779724, 1.068914771080017, 0.9151601791381836, 0.8921718597412109, 0.22951076924800873, 0.5376783609390259, 0.4312324523925781, -0.2298351377248764, -1.2252418994903564, -0.26395970582962036, -1.1787736415863037, -2.544740915298462, 0.49611854553222656, -0.36352866888046265, -1.3787140846252441, 0.02162492275238037, -1.0971400737762451, 0.9732837080955505, -0.6519583463668823, -1.1258876323699951, -1.5859979391098022, 0.17068161070346832, -0.011858664453029633, 0.9507433176040649, -1.5536495447158813, -0.07149207592010498, 1.2604657411575317, 0.8550791144371033, -0.5938379168510437, 0.966191291809082, 0.33063971996307373, 1.121762990951538, 0.7688007354736328, -0.43124502897262573, 0.4738893508911133, -0.03899785876274109, -1.3925355672836304, 0.6303284168243408, 1.1537634134292603, 0.14958545565605164, 1.4632188081741333, -0.5576430559158325, 0.011327439919114113, 0.48729801177978516, -0.5999951958656311, -0.4757845401763916, -0.543353796005249, 0.6965435147285461, 0.17590005695819855, -0.8854954242706299, -0.016903571784496307, -0.013564486056566238, -0.31150901317596436, 0.20672941207885742, -1.5222491025924683, -0.19241727888584137, -0.4475541114807129, -0.5768629908561707, -1.2833837270736694, -0.09759052842855453, 1.3100396394729614, -0.723338782787323, -0.16763348877429962, 0.5229092836380005, 0.42053985595703125, 0.5751870274543762, 0.6811826825141907, -0.6286513805389404, -0.35433030128479004, -0.2672983407974243, -0.3215528726577759, 0.25780731439590454, 1.3531898260116577, -0.18960054218769073, -1.038845419883728, 0.6661988496780396, -0.3180854320526123, 0.042897943407297134, 2.005483865737915, 0.15672379732131958, -0.84462571144104, 0.22824469208717346, -0.7454819083213806, 1.9162042140960693, 1.6227482557296753, 1.336418867111206, -0.15242519974708557, -0.898772656917572, 0.5433343052864075, -0.2804766893386841, -0.3692663908004761, 0.7831878662109375, 0.5214088559150696, -0.15902723371982574, -1.427927017211914, 0.6517527103424072, 1.3207752704620361, -0.9760818481445312, -0.7928724884986877, 0.09740786254405975, -0.7823238372802734, 0.9880432486534119, 0.6727653741836548, 0.4225701689720154, 0.34472930431365967, 1.6381677389144897, 0.6057844161987305, -0.47948193550109863, 0.4253089427947998, 0.5993446111679077, -0.04179464653134346, -2.146371364593506, -1.2339977025985718, 0.2952588200569153, -0.4645252227783203, -1.6207093000411987, 1.3666410446166992, -1.0717955827713013, -0.9169460535049438, 0.5121244788169861, 0.1800185590982437, 1.4494942426681519, 0.26046377420425415, 1.5618067979812622, 2.0541865825653076, 0.8090892434120178, 0.29729968309402466, 1.3743947744369507, -0.028310755267739296, -0.4714277982711792, 1.8705830574035645, -0.43639683723449707, 0.5308031439781189, 1.1222538948059082, -0.2824239730834961, -1.1246013641357422, -0.7062804102897644, -1.2280536890029907, -0.5940192341804504, 1.1833093166351318, 0.1857256144285202, -1.185333013534546, 0.15068835020065308, 1.5426808595657349, 0.14412550628185272, -0.40260016918182373, 0.502830445766449, 0.38862788677215576, -0.81060391664505, -0.038022205233573914, -1.0085570812225342, 0.5383355617523193, -0.147293359041214, -0.3222762942314148, 0.2154926210641861, 0.5558420419692993, 1.342941403388977, -0.0809965506196022, 0.13109371066093445, 1.1472114324569702, -1.4308791160583496, 1.4655818939208984, -0.6105408072471619, 0.20545628666877747, -2.4223148822784424, 1.4408460855484009, -0.7450854778289795, 1.9492378234863281, -2.710597515106201, 0.37019383907318115, -0.5251542329788208, -0.3988915681838989, 0.31050270795822144, -0.3978603482246399, 0.18342429399490356, -0.04713011905550957, -1.1274428367614746, 0.017127610743045807, -0.7280661463737488, 0.5650907754898071, 1.2429405450820923, 1.3788198232650757, -1.2081055641174316, -0.23290956020355225, -1.7098065614700317, -0.1727575957775116, -0.7728047966957092, 0.33903056383132935, -2.06553316116333, -0.09892500191926956, -1.838358998298645, -2.3438165187835693, -1.28382408618927, -0.8093387484550476, 1.1028226613998413, 0.09032654762268066, -0.9544897675514221, 1.125856876373291, -0.37200355529785156, -1.760001301765442, 1.035268783569336, -2.060458183288574 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
By the way, @rafikg, I discovered the URL for Spanish was wrong. I've created a PR to fix it: - #3806
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
21
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No By the way, @rafikg, I discovered the URL for Spanish was wrong. I've created a PR to fix it: - #3806
[ -1.2508684396743774, -1.003095030784607, -0.7951872944831848, 1.3491472005844116, -0.2513812780380249, -1.2007685899734497, 0.1723005324602127, -1.0709419250488281, 1.7082254886627197, -0.7278799414634705, 0.2725772261619568, -1.7086130380630493, -0.025989346206188202, -0.6872475147247314, -0.6803748607635498, -0.8229717016220093, -0.3753770887851715, -0.7673650979995728, 0.9897630214691162, 2.4733517169952393, 1.1628825664520264, -1.376526951789856, 2.70291805267334, 0.7029546499252319, -0.18007700145244598, -1.0176998376846313, 0.5197317004203796, 0.0671948492527008, -1.1355984210968018, -0.4876593351364136, -0.9616197347640991, -0.07614721357822418, -0.49857398867607117, -0.45057031512260437, -0.015796732157468796, 0.4206945598125458, -0.2669629156589508, -0.429548978805542, -0.5317825675010681, -0.7548258900642395, 0.45379745960235596, -0.4288433790206909, 0.9103555083274841, -0.3782290518283844, 1.8425201177597046, -0.5786200165748596, 0.33654043078422546, 0.6330886483192444, 1.2845219373703003, 0.12525123357772827, -0.049868952482938766, 0.33133867383003235, 0.3291557729244232, -0.05104043707251549, 0.43551939725875854, 1.1452447175979614, 0.5605629682540894, 0.5569868683815002, 0.7229189276695251, -2.238579750061035, 1.1754392385482788, -1.1272859573364258, 0.3100349009037018, 1.457122802734375, -0.973159670829773, 0.4828609824180603, -1.76760995388031, -0.0027490323409438133, 0.529556155204773, -2.338319778442383, 0.3204723298549652, -1.3563966751098633, -0.6310822367668152, 0.8644841313362122, 0.33332395553588867, -1.2876278162002563, 0.16168011724948883, -0.462761253118515, 1.0794737339019775, 0.4115099012851715, 1.1114697456359863, -1.719477891921997, -0.04700164496898651, -0.33969420194625854, -0.007121585309505463, -1.3861799240112305, -1.4508678913116455, 0.6538376808166504, 0.5820261836051941, 0.6409709453582764, -0.16680340468883514, 1.0176446437835693, -1.0471593141555786, 0.8315757513046265, -1.0998531579971313, -1.64541494846344, -1.4623042345046997, -2.268493413925171, -2.209139108657837, 0.8743345737457275, -0.41397756338119507, -0.6033056974411011, 1.994657039642334, -0.9294100999832153, -1.789915680885315, 1.2171382904052734, 0.20188996195793152, 0.0006832694634795189, 2.4188549518585205, 0.2127791941165924, -0.6759839653968811, 0.3722643256187439, -0.7940624952316284, 0.8715060949325562, -0.34732693433761597, 1.5306750535964966, 0.5115243196487427, -0.9975593686103821, 1.6749722957611084, -0.3878119885921478, 0.5477923154830933, -0.6458379626274109, -0.6341278553009033, -0.8799272179603577, 0.36701497435569763, 1.9383286237716675, -0.30832523107528687, 1.5439927577972412, -0.4478973150253296, -1.4938586950302124, -1.4962313175201416, 0.9411738514900208, 0.5283241271972656, -0.8110350966453552, 0.1302899867296219, -0.3119114935398102, 0.1303570419549942, -0.10528907924890518, 1.2309019565582275, 1.20809805393219, 0.5834226608276367, -0.26252660155296326, -0.8659345507621765, 0.27996546030044556, -0.0922532007098198, -0.7616164088249207, -1.8146015405654907, -0.3968569338321686, 0.15568959712982178, 0.5755378007888794, -1.2846202850341797, 1.5878633260726929, 0.8496690392494202, 1.8537342548370361, 0.978274941444397, -0.32650646567344666, 1.438668966293335, 0.03226502612233162, 1.8136801719665527, -0.5835081338882446, 0.6497028470039368, -0.23795366287231445, -1.0433845520019531, 0.8755947351455688, -0.3318268954753876, -2.021987199783325, -0.8220581412315369, -0.9454557299613953, -0.2087498903274536, -0.8079097867012024, 0.9489688873291016, -0.4257400333881378, -1.382999300956726, 0.2660162150859833, -0.704274594783783, 0.16718564927577972, -1.2167816162109375, 0.22456218302249908, 0.7042813897132874, -0.5570167303085327, -0.031682249158620834, -0.22425346076488495, -1.2734829187393188, -0.4256994128227234, 0.31602299213409424, 1.9697988033294678, -0.7641162276268005, 0.9060923457145691, 0.9830663204193115, -0.7696481943130493, -0.048430245369672775, 0.26851868629455566, -0.22946250438690186, 0.8392805457115173, -1.0970170497894287, -0.5114978551864624, 1.0934122800827026, -0.11537458747625351, -0.5677869915962219, 1.479627013206482, 0.7417915463447571, -0.9859654307365417, -0.2742901146411896, -0.27423757314682007, -0.8394839763641357, -0.02779967337846756, -1.5908361673355103, -0.19620266556739807, 0.26751235127449036, -1.480125904083252, -0.5383720397949219, -0.21771012246608734, 1.2668341398239136, -0.199979767203331, 1.3016098737716675, -0.36531391739845276, -0.3352131247520447, -0.36098283529281616, -0.33802369236946106, 0.2163713425397873, -0.17305706441402435, -0.6936061382293701, 0.1329490840435028, -0.8487932682037354, 0.400903582572937, 1.3663616180419922, 0.44957882165908813, 0.012055614031851292, 0.5994775891304016, 1.0483845472335815, 0.34837162494659424, -0.049506671726703644, -0.9152235388755798, -1.5727770328521729, 1.906025767326355, -1.5739322900772095, 1.900596261024475, 0.6190353631973267, -0.03243453800678253, -1.7775564193725586, -1.896496295928955, 1.3392165899276733, 1.3345352411270142, 2.2109243869781494, 0.7085880637168884, 0.45376309752464294, -0.865841805934906, -0.6708786487579346, 0.19265657663345337, -1.139418125152588, -0.6787030100822449, 0.14416265487670898, 2.26647686958313, 1.835977554321289, -0.6192867159843445, -0.19494354724884033, -0.9985079765319824, 1.314896821975708, -0.15202650427818298, 0.21050585806369781, 2.015709161758423, -0.3765220046043396, -1.126428246498108, 1.2143326997756958, -2.303379535675049, 0.06311949342489243, 1.9365848302841187, 0.3129829168319702, 0.11462216824293137, -1.4305226802825928, -0.6054947376251221, -0.2457343339920044, -0.38806408643722534, -1.3530725240707397, 0.6192402243614197, -0.27989041805267334, -0.8327313661575317, -1.4482699632644653, 0.1958494931459427, -1.0957902669906616, -1.5103553533554077, 0.3716595768928528, 1.907171607017517, 2.016327381134033, -0.7068144083023071, 1.5322234630584717, -0.30274248123168945, 0.30205652117729187, 1.299839973449707, 1.1433881521224976, 3.059952735900879, 2.002784490585327, -1.133055329322815, 0.6441460847854614, -0.13788288831710815, -0.48501983284950256, 1.1763659715652466, -1.086814522743225, 1.282465934753418, -0.13403867185115814, -1.1470177173614502, -1.2803878784179688, 0.8698293566703796, 0.4728926718235016, 0.046050410717725754, -0.5334126353263855, 1.22426176071167, 0.03191618248820305, 1.314125418663025, 0.5233678817749023, -0.44349074363708496, 0.5608990788459778, -0.4554122984409332, -0.3752487599849701, 1.6130554676055908, 0.14791467785835266, -1.4417246580123901, -2.3051676750183105, -0.25266268849372864, -0.7972720861434937, 0.09463706612586975, -0.5667924880981445, -1.071285605430603, 1.7104424238204956, 0.4400515556335449, -1.2833359241485596, -0.23532086610794067, -0.3862098157405853, -0.6448900699615479, 2.7569379806518555, -1.4293521642684937, -0.28667691349983215, -0.9777941107749939, -0.5703074336051941, 1.7679094076156616, -1.201703429222107, -0.1708085685968399, -0.9803550839424133, -0.6159011721611023, -1.364739179611206, -0.5342507362365723, -0.05396031588315964, -0.9323369264602661, 0.9801551103591919, 0.13169868290424347, -1.0732746124267578, -0.3388235569000244, -0.798255443572998, 0.8172750473022461, -0.23451775312423706, 0.281643807888031, 1.9710439443588257, 0.3737163841724396, -0.32810404896736145, 0.7152348160743713, 1.149580478668213, 0.6350491046905518, -0.6456903219223022, 0.2285226583480835, -0.6280879378318787, 0.26622796058654785, -1.3165985345840454, 0.3105435073375702, -2.9408493041992188, 0.6991860866546631, -0.04441576078534126, 0.0053834859281778336, 0.01376503799110651, -1.3187919855117798, 1.1988487243652344, 2.5459001064300537, -1.2734770774841309, 0.4170440435409546, 0.3184940814971924, 1.193355679512024, -1.5872275829315186, 0.2869732677936554, -0.38343289494514465, 2.1046814918518066, 0.22274604439735413, 1.222434163093567, -0.5077722668647766, -2.2750325202941895, 0.5740147233009338, -1.2038568258285522, -1.2303014993667603, 0.6565657258033752, -0.8712632060050964, 0.12253869324922562, -1.606101155281067, -0.2397409975528717, -0.9083892703056335, -1.265784502029419, 0.7969152927398682, 0.19945278763771057, 0.300724595785141, -0.6077909469604492, 0.3747261166572571, -2.1903738975524902, -1.393276333808899, -0.22334922850131989, -0.8882438540458679, 0.46529337763786316, -0.27558931708335876, 0.7098926901817322, -0.0840773954987526, 0.11256211251020432, 0.22927266359329224, 1.4720852375030518, 3.393282651901245, 0.23940207064151764, 0.40697601437568665, -0.08050043880939484, -0.889952540397644, 1.467634916305542, 1.0200331211090088, 0.07987089455127716, -0.46773582696914673, -1.0430095195770264, 1.3192617893218994, 1.9129829406738281, 0.8616349697113037, 0.07459013909101486, -0.7497745156288147, -0.5381342768669128, -0.09661595523357391, 0.32931452989578247, 0.4500914216041565, 0.9100548028945923, 0.11186949163675308, 0.1274649053812027, 1.3901218175888062, 1.145849585533142, -0.4941760003566742, 0.4096350073814392, -0.866640031337738, -0.4380533993244171, 0.5289890170097351, 0.29701295495033264, -0.05095086619257927, 0.3515062928199768, -1.0515905618667603, -0.34481948614120483, -0.21218061447143555, -0.9908326864242554, -0.6745597720146179, -0.342547208070755, -0.3311586081981659, 1.5299432277679443, 0.19121195375919342, -0.5141208171844482, -0.11970175057649612, -0.7733138799667358, -0.1707119345664978, -1.1403151750564575, 0.24506770074367523, -0.15073643624782562, -0.09138576686382294, -0.10882564634084702, 1.8126574754714966, -0.8681188225746155, -2.0177831649780273, 0.21312673389911652, 0.414694219827652, -0.4109366536140442, 0.22423800826072693, 1.599488377571106, 0.5392594933509827, 1.4555697441101074, 1.1813907623291016, 1.0119575262069702, -0.5130814909934998, -1.3680799007415771, 0.6561391353607178, 0.9546589255332947, -1.3462826013565063, 0.7556290030479431, 0.0430232435464859, -0.45166677236557007, 0.6534515023231506, 1.3372130393981934, 0.503178060054779, -1.9165116548538208, 0.8247353434562683, -0.9618931412696838, 0.7946712374687195, 0.8105663657188416, 0.8019910454750061, 0.34527793526649475, 0.9370574355125427, -1.2348195314407349, -1.1549232006072998, -0.8326594233512878, -0.5647237300872803, 1.9869749546051025, -0.20873235166072845, 0.5612058043479919, -0.19576586782932281, -1.2475512027740479, -0.017982885241508484, 0.652961254119873, 0.46770018339157104, -0.3148345947265625, 0.8439583778381348, -0.6425642967224121, -1.0672320127487183, -1.3995299339294434, -0.4272633492946625, -0.8799577355384827, -1.0440630912780762, 1.07300865650177, 0.9256806373596191, 0.3032069504261017, 1.9199419021606445, 0.6269391775131226, 0.2265767753124237, -2.550554037094116, 0.8825571537017822, 0.3137319087982178, -0.02034665457904339, 0.8590571284294128, 0.34301772713661194, 1.1190301179885864, -0.02381344512104988, 0.4625302255153656, -2.319823980331421, 2.2394680976867676, -0.23693041503429413, 0.7388836741447449, -0.0891752764582634, -0.0635773241519928, 1.1792747974395752, 0.4967978000640869, 0.5491229891777039, -1.058876395225525, 0.6697302460670471, -0.5250332355499268, 1.2834407091140747, 1.0419988632202148, -0.7023492455482483, -0.008271340280771255, 1.3235218524932861, 0.5360402464866638, -0.5692045092582703, -0.8469429016113281, -0.8781301379203796, 0.9432516098022461, 1.7016279697418213, -0.04172597452998161, -0.060989923775196075, 0.851921021938324, 0.6945764422416687, -1.274019479751587, 0.04507007077336311, -0.6830106973648071, -0.6122303605079651, 1.6985257863998413, 2.0795958042144775, -0.17599746584892273, -0.19108659029006958, -0.733983039855957, -1.2846732139587402, 0.754209041595459, -0.008143875747919083, 0.06570945680141449, 0.7066003084182739, -0.6896322965621948, 1.0525283813476562, 0.8984683156013489, 0.9051228761672974, 0.2091280221939087, 0.4946672320365906, 0.41744542121887207, -0.23588846623897552, -1.2123026847839355, -0.24304138123989105, -1.1428499221801758, -2.530867099761963, 0.45628175139427185, -0.38716670870780945, -1.2973573207855225, 0.021831579506397247, -1.106416940689087, 0.9808503985404968, -0.6449939608573914, -1.1506788730621338, -1.5771797895431519, 0.13174918293952942, 0.02672434225678444, 0.9408773183822632, -1.5509586334228516, -0.13009566068649292, 1.2439430952072144, 0.9056466817855835, -0.6686416268348694, 0.9780349135398865, 0.31155192852020264, 1.1307978630065918, 0.7105239629745483, -0.4587041735649109, 0.5008887052536011, -0.052981164306402206, -1.349915623664856, 0.6604039669036865, 1.1474826335906982, 0.1620260626077652, 1.4612020254135132, -0.5522981882095337, -0.039242736995220184, 0.5131407976150513, -0.6017539501190186, -0.4671832025051117, -0.6107558012008667, 0.6490639448165894, 0.11399190872907639, -0.8975031971931458, -0.022478312253952026, -0.005419185850769281, -0.2481907159090042, 0.23861359059810638, -1.5448458194732666, -0.19836729764938354, -0.436874121427536, -0.5763455629348755, -1.2579108476638794, -0.10051456838846207, 1.3372403383255005, -0.7482863068580627, -0.19745510816574097, 0.5354178547859192, 0.40040451288223267, 0.5618010759353638, 0.6449474692344666, -0.6599417924880981, -0.29221048951148987, -0.26730430126190186, -0.3212464153766632, 0.2902929484844208, 1.3327080011367798, -0.2396617829799652, -1.099611520767212, 0.6333817839622498, -0.29918020963668823, 0.04783817008137703, 1.976095199584961, 0.1006074920296669, -0.8550995588302612, 0.23245099186897278, -0.7966892719268799, 1.9155107736587524, 1.5405521392822266, 1.352874517440796, -0.18852075934410095, -0.768449068069458, 0.5809527635574341, -0.2616178095340729, -0.4271014928817749, 0.7556142210960388, 0.5153024196624756, -0.14549791812896729, -1.448396921157837, 0.6966395974159241, 1.3671977519989014, -1.0038074254989624, -0.8919172883033752, 0.10415742546319962, -0.7758844494819641, 1.034228801727295, 0.6733638644218445, 0.46416568756103516, 0.36983373761177063, 1.6640747785568237, 0.638269305229187, -0.4755139648914337, 0.41251349449157715, 0.6346578001976013, -0.08301908522844315, -2.157212257385254, -1.2851169109344482, 0.2971475422382355, -0.483567476272583, -1.6022721529006958, 1.351508617401123, -1.0674155950546265, -0.9224541783332825, 0.5434893369674683, 0.2001177966594696, 1.4168239831924438, 0.29462727904319763, 1.5793795585632324, 1.9813264608383179, 0.8162240386009216, 0.3207400143146515, 1.3374067544937134, -0.08208765834569931, -0.5125697255134583, 1.876009464263916, -0.4528631865978241, 0.5346863269805908, 1.1090426445007324, -0.2724202275276184, -1.1312273740768433, -0.6821593046188354, -1.279699683189392, -0.5726608633995056, 1.177222490310669, 0.1660926640033722, -1.2332336902618408, 0.14837053418159485, 1.5070216655731201, 0.1993928849697113, -0.37381795048713684, 0.5408809185028076, 0.37312889099121094, -0.8798112273216248, -0.03309230878949165, -1.0015687942504883, 0.5717103481292725, -0.19011706113815308, -0.3175458312034607, 0.18609699606895447, 0.5273415446281433, 1.3695541620254517, -0.0883239135146141, 0.14692270755767822, 1.1603448390960693, -1.4002689123153687, 1.4411754608154297, -0.6378675699234009, 0.212890625, -2.4301846027374268, 1.3935600519180298, -0.7486388087272644, 1.9620535373687744, -2.7439939975738525, 0.37014487385749817, -0.5970849394798279, -0.3676726818084717, 0.30579838156700134, -0.3771708309650421, 0.14503182470798492, -0.057463761419057846, -1.1850919723510742, 0.03062119334936142, -0.7447946667671204, 0.5441733002662659, 1.2651652097702026, 1.40212881565094, -1.1523072719573975, -0.22419269382953644, -1.7409700155258179, -0.12439338117837906, -0.747783899307251, 0.34725090861320496, -2.1129915714263916, -0.13764673471450806, -1.8087191581726074, -2.2921974658966064, -1.175911784172058, -0.7915213704109192, 1.0780476331710815, 0.0726313665509224, -0.9362211227416992, 1.1630045175552368, -0.2810232639312744, -1.6986538171768188, 1.0653135776519775, -2.0482335090637207 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I have the same problem with "wider_face" dataset. It seems that "load_dataset" function can not download the dataset from google drive.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
21
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No I have the same problem with "wider_face" dataset. It seems that "load_dataset" function can not download the dataset from google drive.
[ -1.235071063041687, -0.9965982437133789, -0.7438067197799683, 1.3321764469146729, -0.26924872398376465, -1.2021797895431519, 0.18960392475128174, -1.0672938823699951, 1.7131322622299194, -0.7532899379730225, 0.2583291232585907, -1.6904287338256836, -0.013350263237953186, -0.6477028727531433, -0.6533191800117493, -0.8494020104408264, -0.36861452460289, -0.7651101350784302, 1.0109279155731201, 2.448852300643921, 1.166117548942566, -1.2975850105285645, 2.7250938415527344, 0.6564100980758667, -0.20269787311553955, -0.986199676990509, 0.5046981573104858, 0.10260534286499023, -1.1507524251937866, -0.44689640402793884, -0.9538518190383911, -0.06117749959230423, -0.4859379827976227, -0.46478271484375, 0.004067222587764263, 0.4643155634403229, -0.3452298045158386, -0.42208153009414673, -0.5629008412361145, -0.7238121628761292, 0.44658222794532776, -0.38979417085647583, 0.9314621686935425, -0.4162657856941223, 1.9050270318984985, -0.5906530022621155, 0.3344265818595886, 0.6462806463241577, 1.2546764612197876, 0.1604423224925995, -0.03425600379705429, 0.28603407740592957, 0.34730324149131775, -0.05714334547519684, 0.4191729724407196, 1.1734155416488647, 0.5181832909584045, 0.5485092401504517, 0.6807560324668884, -2.238689422607422, 1.1722418069839478, -1.1144224405288696, 0.27483898401260376, 1.4899190664291382, -0.9778853058815002, 0.46032851934432983, -1.730003833770752, -0.043795064091682434, 0.5041592717170715, -2.3833982944488525, 0.27180349826812744, -1.382760763168335, -0.6430656313896179, 0.8696567416191101, 0.33286774158477783, -1.24186372756958, 0.20170946419239044, -0.4356617331504822, 1.1109790802001953, 0.4497126340866089, 1.112205982208252, -1.6874685287475586, -0.05377641320228577, -0.2966599464416504, 0.015837689861655235, -1.4126534461975098, -1.493254542350769, 0.6741988658905029, 0.5961489677429199, 0.6710153222084045, -0.18001852929592133, 1.0280040502548218, -1.0780600309371948, 0.8347024321556091, -1.0832072496414185, -1.599395513534546, -1.4400103092193604, -2.2721009254455566, -2.2344675064086914, 0.8824491500854492, -0.41581523418426514, -0.5742831230163574, 1.956946849822998, -0.9424960017204285, -1.7738265991210938, 1.2385337352752686, 0.18469053506851196, 0.01203911006450653, 2.3868248462677, 0.235527902841568, -0.6396210789680481, 0.35299474000930786, -0.7749236822128296, 0.8754560947418213, -0.26519909501075745, 1.51426100730896, 0.5309692025184631, -0.9891020059585571, 1.6267160177230835, -0.3691033720970154, 0.5899809002876282, -0.6213934421539307, -0.6364883780479431, -0.8650929927825928, 0.36806488037109375, 1.9194751977920532, -0.3598194420337677, 1.5948089361190796, -0.39889055490493774, -1.5383837223052979, -1.5554269552230835, 0.9241600632667542, 0.511334240436554, -0.7586860656738281, 0.08841747790575027, -0.35211271047592163, 0.11874525249004364, -0.13128268718719482, 1.2806017398834229, 1.198481559753418, 0.6449446082115173, -0.3001876473426819, -0.8027424216270447, 0.27080225944519043, -0.06333692371845245, -0.7638165354728699, -1.803423285484314, -0.39911508560180664, 0.1606922447681427, 0.5302907824516296, -1.257747769355774, 1.5702801942825317, 0.859605610370636, 1.8540210723876953, 0.9958813190460205, -0.2904435694217682, 1.4154969453811646, 0.0659635066986084, 1.8135188817977905, -0.564182460308075, 0.6256716847419739, -0.19955135881900787, -1.0470458269119263, 0.8266669511795044, -0.3430304229259491, -2.009330987930298, -0.8698186874389648, -0.9541626572608948, -0.19054831564426422, -0.8052042126655579, 0.9413021206855774, -0.38848817348480225, -1.4415123462677002, 0.227810800075531, -0.677099347114563, 0.11583073437213898, -1.21011221408844, 0.2504003942012787, 0.7438974380493164, -0.5828725099563599, -0.06343673169612885, -0.14956779778003693, -1.2756599187850952, -0.4052641689777374, 0.30611106753349304, 2.0217363834381104, -0.7504210472106934, 0.898867666721344, 0.9718065857887268, -0.8195603489875793, 0.028484443202614784, 0.257793128490448, -0.2870749235153198, 0.7965269684791565, -1.0525953769683838, -0.50749671459198, 1.0912680625915527, -0.13917721807956696, -0.5490248799324036, 1.511942744255066, 0.7422012090682983, -0.9861873388290405, -0.25302547216415405, -0.2627984881401062, -0.8174806833267212, -0.058796972036361694, -1.5492947101593018, -0.19821111857891083, 0.2363431453704834, -1.4231988191604614, -0.6126043200492859, -0.23823769390583038, 1.272282600402832, -0.21249772608280182, 1.2827268838882446, -0.3620351552963257, -0.3287718892097473, -0.37892472743988037, -0.3459368646144867, 0.20821471512317657, -0.20817455649375916, -0.7310842871665955, 0.14702767133712769, -0.8267806768417358, 0.37970852851867676, 1.3834495544433594, 0.46431964635849, -0.01761852204799652, 0.6199941039085388, 1.0523407459259033, 0.3509538173675537, -0.07826675474643707, -0.9051563739776611, -1.5702496767044067, 1.8719711303710938, -1.49576735496521, 1.9135507345199585, 0.6194942593574524, -0.062124185264110565, -1.7805949449539185, -1.943503737449646, 1.325695276260376, 1.302211046218872, 2.217132091522217, 0.6333906054496765, 0.4365438222885132, -0.8140422105789185, -0.7293204069137573, 0.1892015039920807, -1.1251311302185059, -0.6018794178962708, 0.17522376775741577, 2.247986316680908, 1.8201571702957153, -0.6524831056594849, -0.20791347324848175, -1.01309072971344, 1.255854606628418, -0.1393752545118332, 0.189677432179451, 2.0350828170776367, -0.3819267153739929, -1.120608925819397, 1.255868911743164, -2.264295816421509, 0.05796493589878082, 1.9481935501098633, 0.3034411370754242, 0.06522386521100998, -1.428776741027832, -0.6090344190597534, -0.2880343496799469, -0.43287456035614014, -1.362808108329773, 0.6036758422851562, -0.2776893973350525, -0.8436185121536255, -1.4730596542358398, 0.17068175971508026, -1.0903377532958984, -1.5112348794937134, 0.401530921459198, 1.9116532802581787, 2.007507085800171, -0.7076661586761475, 1.4876846075057983, -0.2807963490486145, 0.2451261281967163, 1.2977490425109863, 1.1878513097763062, 3.1075050830841064, 1.9620813131332397, -1.1750521659851074, 0.6685819625854492, -0.12895487248897552, -0.4964796304702759, 1.2113686800003052, -1.0940607786178589, 1.2959989309310913, -0.17086508870124817, -1.1657661199569702, -1.291845679283142, 0.8911035656929016, 0.46358156204223633, 0.06481335312128067, -0.5120208859443665, 1.2113043069839478, 0.031474485993385315, 1.4183132648468018, 0.5744247436523438, -0.41560307145118713, 0.6272048354148865, -0.4430009126663208, -0.3781265616416931, 1.5701727867126465, 0.16100622713565826, -1.4641588926315308, -2.3415706157684326, -0.2625376284122467, -0.7962015271186829, 0.11410725861787796, -0.553665041923523, -1.0679961442947388, 1.7179522514343262, 0.4589816927909851, -1.3186917304992676, -0.2636726498603821, -0.4045654535293579, -0.6397407054901123, 2.744999885559082, -1.4392688274383545, -0.2518155574798584, -0.9736848473548889, -0.6053814888000488, 1.7654532194137573, -1.1987348794937134, -0.17740879952907562, -1.0310437679290771, -0.6228724122047424, -1.382901668548584, -0.5398288369178772, 0.006212901324033737, -0.9368496537208557, 0.9932177066802979, 0.10523270815610886, -1.0223402976989746, -0.3819228410720825, -0.8399772047996521, 0.8623557686805725, -0.24511748552322388, 0.23631595075130463, 1.9669874906539917, 0.38136419653892517, -0.37948596477508545, 0.7029330730438232, 1.1445204019546509, 0.6297630071640015, -0.6638271808624268, 0.21306833624839783, -0.6760909557342529, 0.23823784291744232, -1.3646502494812012, 0.27346745133399963, -2.957996368408203, 0.645916223526001, -0.06492376327514648, -0.018482349812984467, 0.011077765375375748, -1.3282766342163086, 1.1676862239837646, 2.516786813735962, -1.2501280307769775, 0.41737082600593567, 0.3208496868610382, 1.1975008249282837, -1.60739266872406, 0.30296435952186584, -0.39539676904678345, 2.0670106410980225, 0.2069394886493683, 1.236200213432312, -0.5195643305778503, -2.178584098815918, 0.6363687515258789, -1.2176308631896973, -1.2667920589447021, 0.6889815926551819, -0.8955701589584351, 0.20863613486289978, -1.5540281534194946, -0.23484694957733154, -0.8949107527732849, -1.2564915418624878, 0.7660163640975952, 0.1620950996875763, 0.26680082082748413, -0.5994982719421387, 0.444768488407135, -2.202303171157837, -1.3705430030822754, -0.25377994775772095, -0.924599826335907, 0.4717825949192047, -0.31467530131340027, 0.7111219167709351, -0.13360580801963806, 0.1039937436580658, 0.23401084542274475, 1.4996843338012695, 3.3501474857330322, 0.24010810256004333, 0.34174567461013794, -0.05292447656393051, -0.925987720489502, 1.5002899169921875, 1.0265015363693237, 0.09417181462049484, -0.4643080532550812, -1.0354160070419312, 1.280858039855957, 1.887480616569519, 0.9527652263641357, 0.02145514078438282, -0.7502747774124146, -0.596056342124939, -0.09110654145479202, 0.3010300099849701, 0.45553144812583923, 0.9001712203025818, 0.09147241711616516, 0.15860246121883392, 1.4090828895568848, 1.1763315200805664, -0.4745243489742279, 0.3878310024738312, -0.8584125638008118, -0.5081712603569031, 0.5309807062149048, 0.3059549927711487, -0.06012103706598282, 0.4029381275177002, -1.0624417066574097, -0.3638154864311218, -0.22826023399829865, -0.9967058300971985, -0.632148027420044, -0.3720109760761261, -0.3301241397857666, 1.527608036994934, 0.13980317115783691, -0.5015435814857483, -0.15355005860328674, -0.7961480021476746, -0.1659853756427765, -1.2046222686767578, 0.2602732181549072, -0.13403739035129547, -0.1046631783246994, -0.11620775610208511, 1.7916481494903564, -0.8322832584381104, -2.0063717365264893, 0.2084951400756836, 0.4009418189525604, -0.387797087430954, 0.18160058557987213, 1.569729208946228, 0.5412012934684753, 1.4578386545181274, 1.1620380878448486, 0.9969836473464966, -0.4965873062610626, -1.350234866142273, 0.6250316500663757, 0.9237314462661743, -1.3421952724456787, 0.7629311084747314, 0.0547792911529541, -0.4790697395801544, 0.6595718264579773, 1.320474624633789, 0.517120897769928, -1.8987410068511963, 0.8206537365913391, -0.9420531988143921, 0.7731744050979614, 0.8351349234580994, 0.789110541343689, 0.33312493562698364, 0.9362186193466187, -1.228553295135498, -1.1707082986831665, -0.8534661531448364, -0.5377094149589539, 2.0068857669830322, -0.1789594143629074, 0.585094153881073, -0.25659263134002686, -1.206217885017395, 0.013285458087921143, 0.6280699968338013, 0.48118144273757935, -0.32958996295928955, 0.8373538255691528, -0.650474488735199, -1.02628755569458, -1.369470238685608, -0.38313549757003784, -0.9271405339241028, -1.045640468597412, 1.063645601272583, 0.8826954960823059, 0.3310759961605072, 1.9098048210144043, 0.6338934302330017, 0.2942993640899658, -2.561863899230957, 0.8778068423271179, 0.3152830898761749, -0.032759565860033035, 0.8687647581100464, 0.34698760509490967, 1.173044204711914, -0.016599789261817932, 0.4302970767021179, -2.333029270172119, 2.2066659927368164, -0.20434094965457916, 0.7316429018974304, -0.06612236052751541, -0.08820461481809616, 1.1916394233703613, 0.5216101408004761, 0.49890515208244324, -1.0781973600387573, 0.6809456944465637, -0.5105194449424744, 1.2483400106430054, 1.0546910762786865, -0.6781365275382996, 0.016821395605802536, 1.3782440423965454, 0.590267539024353, -0.5331760048866272, -0.8301547765731812, -0.8759331107139587, 0.9358869791030884, 1.6591694355010986, -0.02017110586166382, -0.043121516704559326, 0.899073600769043, 0.7069057822227478, -1.2888410091400146, 0.03694668412208557, -0.7058029174804688, -0.5819841027259827, 1.703059196472168, 2.084599733352661, -0.11992259323596954, -0.20176619291305542, -0.7216952443122864, -1.2403959035873413, 0.7571898102760315, -0.007076111156493425, 0.15018461644649506, 0.7276476621627808, -0.6943827271461487, 1.041900396347046, 0.8672652244567871, 0.8801547288894653, 0.19549447298049927, 0.5091198086738586, 0.4357503354549408, -0.2049354761838913, -1.2434836626052856, -0.25645938515663147, -1.1188684701919556, -2.525034189224243, 0.5001107454299927, -0.42034250497817993, -1.3254482746124268, -0.010988970287144184, -1.118756651878357, 1.011162519454956, -0.660512387752533, -1.1211868524551392, -1.6148912906646729, 0.1502344012260437, 0.04564831405878067, 0.9465422630310059, -1.562637448310852, -0.16312678158283234, 1.2398618459701538, 0.8744398355484009, -0.6603869199752808, 0.984950065612793, 0.2806663513183594, 1.1518996953964233, 0.6780202984809875, -0.4832293391227722, 0.5104389190673828, -0.056138865649700165, -1.3940742015838623, 0.6271476149559021, 1.1507357358932495, 0.1693802922964096, 1.481863260269165, -0.5285062789916992, -0.0006676604971289635, 0.5283104777336121, -0.6157485842704773, -0.5243996381759644, -0.5268478989601135, 0.6832947731018066, 0.09919542819261551, -0.8668752908706665, -0.02752295322716236, -0.022368036210536957, -0.2872653603553772, 0.22933228313922882, -1.4893734455108643, -0.1845565140247345, -0.44889581203460693, -0.6162004470825195, -1.2501368522644043, -0.06760625541210175, 1.3397756814956665, -0.8243173956871033, -0.17857514321804047, 0.4861651659011841, 0.3730528652667999, 0.5736708641052246, 0.6337799429893494, -0.6902303695678711, -0.2585548758506775, -0.2642073333263397, -0.31661057472229004, 0.29098057746887207, 1.3938549757003784, -0.23301100730895996, -1.0743659734725952, 0.59177166223526, -0.28007084131240845, 0.04410391300916672, 2.01043701171875, 0.07084574550390244, -0.8306803107261658, 0.2026938647031784, -0.7908803820610046, 1.9037249088287354, 1.5471298694610596, 1.3924667835235596, -0.15609367191791534, -0.7899236083030701, 0.5446867346763611, -0.27206847071647644, -0.41479024291038513, 0.7619043588638306, 0.512133002281189, -0.13130299746990204, -1.4457683563232422, 0.7451819777488708, 1.3523106575012207, -1.01952064037323, -0.8272623419761658, 0.14535100758075714, -0.7979923486709595, 1.0557557344436646, 0.6177237033843994, 0.44269585609436035, 0.38958391547203064, 1.6364374160766602, 0.6437605619430542, -0.4411727786064148, 0.44618478417396545, 0.6630632281303406, -0.07707236707210541, -2.143289566040039, -1.2445586919784546, 0.34255173802375793, -0.5190989971160889, -1.591015338897705, 1.4176186323165894, -1.0532810688018799, -0.9592737555503845, 0.5302550196647644, 0.19016917049884796, 1.4013854265213013, 0.2944228947162628, 1.623746633529663, 1.98711359500885, 0.8433558940887451, 0.3492869436740875, 1.381251573562622, -0.06141827255487442, -0.5266615152359009, 1.8272231817245483, -0.46956226229667664, 0.5219551920890808, 1.0948853492736816, -0.2649340331554413, -1.146850824356079, -0.7014373540878296, -1.2792863845825195, -0.611751139163971, 1.1717408895492554, 0.18337543308734894, -1.2136729955673218, 0.12775695323944092, 1.5081337690353394, 0.17221450805664062, -0.3920167088508606, 0.5547793507575989, 0.38503989577293396, -0.8256353735923767, -0.024042420089244843, -1.019464135169983, 0.5472769737243652, -0.21094577014446259, -0.3270682990550995, 0.14884555339813232, 0.5543333292007446, 1.394278645515442, -0.11361337453126907, 0.15030395984649658, 1.1690324544906616, -1.3675451278686523, 1.4396151304244995, -0.6340664625167847, 0.18456456065177917, -2.452179193496704, 1.3978934288024902, -0.798933744430542, 1.941493034362793, -2.7063162326812744, 0.42115917801856995, -0.569662868976593, -0.33916598558425903, 0.2887903153896332, -0.4111562669277191, 0.12758132815361023, -0.034441299736499786, -1.1718792915344238, 0.025029825046658516, -0.7740519642829895, 0.6030210256576538, 1.2495450973510742, 1.4210820198059082, -1.156109094619751, -0.29115286469459534, -1.7041105031967163, -0.13332626223564148, -0.746243953704834, 0.3389836847782135, -2.0873422622680664, -0.1585046499967575, -1.7878330945968628, -2.3438363075256348, -1.1539838314056396, -0.7851777672767639, 1.081437349319458, 0.061641015112400055, -0.9633712768554688, 1.150515079498291, -0.31064939498901367, -1.7487984895706177, 1.1097102165222168, -2.0568060874938965 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
still getting this issue with datasets==2.2.2 for dataset_fever_original_dev = load_dataset('fever', "v1.0", split="labelled_dev") (this one seems to be hosted by aws though) update: also tried to install from source to get the latest 2.2.3.dev0, but still get the error below (and also force-redownloaded) update2: Seems like this issues is linked to a change in the links in the specific fever datasets: https://fever.ai/ "28/04/2022 Dataset download URLs have changed Download URLs for shared task data for FEVER, FEVER2.0 and FEVEROUS have been updated. New URLS begin with https://fever.ai/download/[task name]/[filename]. All resource pages have been updated with the new URLs. Previous dataset URLs may not work and should be updated if you require these in your scripts. " => I don't know how to update the links for HF datasets - would be great if someone could update them :) ``` Downloading and preparing dataset fever/v1.0 (download: 42.78 MiB, generated: 38.39 MiB, post-processed: Unknown size, total: 81.17 MiB) to /root/.cache/huggingface/datasets/fever/v1.0/1.0.0/956b0a9c4b05e126fd956be73e09da5710992b5c85c30f0e5e1c500bc6051d0a... Downloading data files: 100% 6/6 [00:07<00:00, 1.21s/it] Downloading data: 278/? [00:00<00:00, 2.34kB/s] Downloading data: 278/? [00:00<00:00, 1.53kB/s] Downloading data: 278/? [00:00<00:00, 7.43kB/s] Downloading data: 278/? [00:00<00:00, 5.54kB/s] Downloading data: 278/? [00:00<00:00, 6.19kB/s] Downloading data: 278/? [00:00<00:00, 7.51kB/s] Extracting data files: 100% 6/6 [00:00<00:00, 108.05it/s] --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-20-92ec5c728ecf>](https://localhost:8080/#) in <module>() 27 # get labels for fever-nli-dev from original fever - only works for dev 28 # "(The labels for both dev and test are hidden but you can retrieve the label for dev using the cid and the original FEVER data.)"" https://github.com/easonnie/combine-FEVER-NSMN/blob/master/other_resources/nli_fever.md ---> 29 dataset_fever_original_dev = load_dataset('fever', "v1.0", split="labelled_dev") 30 df_fever_original_dev = pd.DataFrame(data={"id": dataset_fever_original_dev["id"], "label": dataset_fever_original_dev["label"], "claim": dataset_fever_original_dev["claim"], "evidence_id": dataset_fever_original_dev["evidence_id"]}) 31 df_fever_dev = pd.merge(df_fever_dev, df_fever_original_dev, how="left", left_on="cid", right_on="id") 4 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://s3-eu-west-1.amazonaws.com/fever.public/train.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_dev.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_dev_public.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_test.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/paper_dev.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/paper_test.jsonl'] ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
331
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No still getting this issue with datasets==2.2.2 for dataset_fever_original_dev = load_dataset('fever', "v1.0", split="labelled_dev") (this one seems to be hosted by aws though) update: also tried to install from source to get the latest 2.2.3.dev0, but still get the error below (and also force-redownloaded) update2: Seems like this issues is linked to a change in the links in the specific fever datasets: https://fever.ai/ "28/04/2022 Dataset download URLs have changed Download URLs for shared task data for FEVER, FEVER2.0 and FEVEROUS have been updated. New URLS begin with https://fever.ai/download/[task name]/[filename]. All resource pages have been updated with the new URLs. Previous dataset URLs may not work and should be updated if you require these in your scripts. " => I don't know how to update the links for HF datasets - would be great if someone could update them :) ``` Downloading and preparing dataset fever/v1.0 (download: 42.78 MiB, generated: 38.39 MiB, post-processed: Unknown size, total: 81.17 MiB) to /root/.cache/huggingface/datasets/fever/v1.0/1.0.0/956b0a9c4b05e126fd956be73e09da5710992b5c85c30f0e5e1c500bc6051d0a... Downloading data files: 100% 6/6 [00:07<00:00, 1.21s/it] Downloading data: 278/? [00:00<00:00, 2.34kB/s] Downloading data: 278/? [00:00<00:00, 1.53kB/s] Downloading data: 278/? [00:00<00:00, 7.43kB/s] Downloading data: 278/? [00:00<00:00, 5.54kB/s] Downloading data: 278/? [00:00<00:00, 6.19kB/s] Downloading data: 278/? [00:00<00:00, 7.51kB/s] Extracting data files: 100% 6/6 [00:00<00:00, 108.05it/s] --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) [<ipython-input-20-92ec5c728ecf>](https://localhost:8080/#) in <module>() 27 # get labels for fever-nli-dev from original fever - only works for dev 28 # "(The labels for both dev and test are hidden but you can retrieve the label for dev using the cid and the original FEVER data.)"" https://github.com/easonnie/combine-FEVER-NSMN/blob/master/other_resources/nli_fever.md ---> 29 dataset_fever_original_dev = load_dataset('fever', "v1.0", split="labelled_dev") 30 df_fever_original_dev = pd.DataFrame(data={"id": dataset_fever_original_dev["id"], "label": dataset_fever_original_dev["label"], "claim": dataset_fever_original_dev["claim"], "evidence_id": dataset_fever_original_dev["evidence_id"]}) 31 df_fever_dev = pd.merge(df_fever_dev, df_fever_original_dev, how="left", left_on="cid", right_on="id") 4 frames [/usr/local/lib/python3.7/dist-packages/datasets/utils/info_utils.py](https://localhost:8080/#) in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://s3-eu-west-1.amazonaws.com/fever.public/train.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_dev.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_dev_public.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/shared_task_test.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/paper_dev.jsonl', 'https://s3-eu-west-1.amazonaws.com/fever.public/paper_test.jsonl'] ```
[ -1.241650938987732, -0.9507675170898438, -0.6938710808753967, 1.332698106765747, -0.23690161108970642, -1.1780977249145508, 0.1088966354727745, -1.0894577503204346, 1.660161018371582, -0.7193684577941895, 0.2558852434158325, -1.630149245262146, -0.007215981371700764, -0.6223917603492737, -0.7268640995025635, -0.834821343421936, -0.40874695777893066, -0.8058789968490601, 1.0083452463150024, 2.487081527709961, 1.273854374885559, -1.3841801881790161, 2.7530393600463867, 0.7470799088478088, -0.230407252907753, -1.0106226205825806, 0.5468772053718567, 0.0012240847572684288, -1.2515720129013062, -0.4687725007534027, -0.9311041235923767, -0.0434960275888443, -0.5725265741348267, -0.47214019298553467, 0.0076858652755618095, 0.3979507088661194, -0.250244140625, -0.33357298374176025, -0.5507000088691711, -0.6928578019142151, 0.44895291328430176, -0.37158963084220886, 0.9628891348838806, -0.30146661400794983, 1.8142881393432617, -0.5381630063056946, 0.3372376561164856, 0.6646068096160889, 1.2251559495925903, 0.17357531189918518, 0.045032404363155365, 0.258217990398407, 0.35562247037887573, -0.05815955623984337, 0.4824656546115875, 1.2587347030639648, 0.6626428365707397, 0.44476184248924255, 0.6875575184822083, -2.2672770023345947, 1.2634588479995728, -1.0039610862731934, 0.3228427469730377, 1.3861666917800903, -0.9072014093399048, 0.4026263356208801, -1.770592451095581, -0.013149851001799107, 0.5780956745147705, -2.325737714767456, 0.25778964161872864, -1.3777896165847778, -0.571683406829834, 0.9536611437797546, 0.2719467580318451, -1.2254127264022827, 0.2264176458120346, -0.4498574137687683, 1.0889298915863037, 0.4352704882621765, 1.1603418588638306, -1.6892082691192627, -0.047834139317274094, -0.2634665071964264, 0.11940605193376541, -1.2990965843200684, -1.5603371858596802, 0.5631095767021179, 0.67641681432724, 0.6193125247955322, -0.13077794015407562, 1.0706099271774292, -1.1024489402770996, 0.815331757068634, -0.990063488483429, -1.6550886631011963, -1.4590167999267578, -2.3105998039245605, -2.2489800453186035, 0.784442126750946, -0.444694846868515, -0.5202913880348206, 1.9693046808242798, -1.0251156091690063, -1.7758344411849976, 1.1724553108215332, 0.31372013688087463, 0.021675363183021545, 2.3666508197784424, 0.15692751109600067, -0.7466284036636353, 0.4225308895111084, -0.7794631719589233, 0.828774631023407, -0.2616423964500427, 1.3898862600326538, 0.519231915473938, -1.0160874128341675, 1.6140154600143433, -0.43778178095817566, 0.5551667213439941, -0.6303703188896179, -0.527797520160675, -0.8073435425758362, 0.2898339033126831, 1.8902560472488403, -0.38400253653526306, 1.595306634902954, -0.370099276304245, -1.6120191812515259, -1.532794713973999, 0.8601061701774597, 0.5160902142524719, -0.7721507549285889, 0.08180642127990723, -0.39447322487831116, 0.13960497081279755, -0.08948133140802383, 1.1083753108978271, 1.2388640642166138, 0.6715296506881714, -0.32700303196907043, -0.8219842314720154, 0.21055598556995392, -0.12685635685920715, -0.7385983467102051, -1.8201125860214233, -0.3401195704936981, 0.15727673470973969, 0.6084564924240112, -1.284050703048706, 1.6785194873809814, 0.888230562210083, 1.8899363279342651, 0.9999907612800598, -0.3876769542694092, 1.5269486904144287, 0.06283922493457794, 1.7795498371124268, -0.5548247694969177, 0.6633840799331665, -0.3475431501865387, -1.098961353302002, 0.8884323239326477, -0.32334232330322266, -2.0234270095825195, -0.7680772542953491, -0.7925260066986084, -0.1788167506456375, -0.7744374871253967, 0.8957313895225525, -0.2863282263278961, -1.4805235862731934, 0.22466722130775452, -0.6918141841888428, 0.13973385095596313, -1.2009966373443604, 0.2724325656890869, 0.7463725805282593, -0.6226854920387268, -0.02411225065588951, -0.2025093138217926, -1.2806464433670044, -0.39231017231941223, 0.2848062217235565, 1.8809651136398315, -0.7050496935844421, 0.8620463609695435, 1.0295706987380981, -0.7055531740188599, 0.09380368888378143, 0.34861624240875244, -0.26363664865493774, 0.8398867249488831, -1.0619639158248901, -0.47027722001075745, 1.0824369192123413, -0.09779267758131027, -0.5807780027389526, 1.4681017398834229, 0.7638235688209534, -1.033022403717041, -0.266689658164978, -0.15514792501926422, -0.803566575050354, -0.003625864163041115, -1.551988124847412, -0.1932741403579712, 0.27298155426979065, -1.527968406677246, -0.49664193391799927, -0.2640981078147888, 1.3333091735839844, -0.18923817574977875, 1.4445339441299438, -0.35331037640571594, -0.20641058683395386, -0.3322116732597351, -0.35182949900627136, 0.16747279465198517, -0.14153549075126648, -0.6351898312568665, 0.20976294577121735, -0.9098638892173767, 0.355683833360672, 1.4111183881759644, 0.35411590337753296, 0.024711880832910538, 0.5548531413078308, 1.0980485677719116, 0.4112038314342499, -0.07013565301895142, -0.8806360363960266, -1.533249020576477, 1.9745343923568726, -1.4974132776260376, 1.9342049360275269, 0.8047195672988892, -0.008227085694670677, -1.7793877124786377, -1.8476815223693848, 1.3384084701538086, 1.1689014434814453, 2.3146212100982666, 0.5626112222671509, 0.4292545020580292, -0.8386046886444092, -0.7080228924751282, 0.3263685405254364, -1.0485655069351196, -0.6771307587623596, 0.1490103155374527, 2.351618528366089, 1.8159847259521484, -0.5596541166305542, -0.2654583156108856, -0.9467537999153137, 1.3302960395812988, -0.16643892228603363, 0.24797216057777405, 2.028965950012207, -0.2870354652404785, -1.028985619544983, 1.3530452251434326, -2.321465253829956, 0.15679746866226196, 1.960668921470642, 0.21816518902778625, 0.08108679950237274, -1.3972104787826538, -0.6593308448791504, -0.2529013156890869, -0.5047580003738403, -1.2888623476028442, 0.6133906841278076, -0.28603672981262207, -0.8707700967788696, -1.4661288261413574, 0.1266087144613266, -1.139836072921753, -1.689064860343933, 0.32579874992370605, 1.9104230403900146, 1.9902727603912354, -0.7984172701835632, 1.5092175006866455, -0.2798621952533722, 0.1506611704826355, 1.2329530715942383, 1.2516337633132935, 3.1446712017059326, 1.9158711433410645, -1.215701699256897, 0.6514272093772888, -0.1862221211194992, -0.46676963567733765, 1.1041749715805054, -1.2083539962768555, 1.2376837730407715, -0.22028741240501404, -1.2240101099014282, -1.20809006690979, 1.013844609260559, 0.47836825251579285, 0.08627296984195709, -0.5002946257591248, 1.214473009109497, 0.028922107070684433, 1.3715182542800903, 0.5546231269836426, -0.37323063611984253, 0.5603616237640381, -0.4341665506362915, -0.5118356943130493, 1.548373818397522, 0.11745744198560715, -1.391677737236023, -2.322382926940918, -0.24171075224876404, -0.8427808284759521, 0.01767618954181671, -0.592861533164978, -1.029460072517395, 1.649827241897583, 0.44439783692359924, -1.2986289262771606, -0.2969500720500946, -0.38823002576828003, -0.5743073225021362, 2.618089437484741, -1.3584016561508179, -0.18199287354946136, -0.9760557413101196, -0.5767602920532227, 1.6631041765213013, -1.1655030250549316, -0.1439739614725113, -1.0554707050323486, -0.6269568800926208, -1.3504103422164917, -0.6258082389831543, -0.0020322175696492195, -0.9191778302192688, 0.8457978367805481, 0.12514346837997437, -1.0673004388809204, -0.3428076207637787, -0.8872866630554199, 0.943914532661438, -0.09483573585748672, 0.18789266049861908, 1.9125150442123413, 0.34340932965278625, -0.3768623173236847, 0.7024511098861694, 1.1204067468643188, 0.6503269672393799, -0.6839385628700256, 0.20923295617103577, -0.7093783020973206, 0.3261392414569855, -1.3922107219696045, 0.297885924577713, -2.894108295440674, 0.7654438614845276, -0.014004379510879517, -0.04810032248497009, -0.04921726509928703, -1.284680724143982, 1.1098697185516357, 2.5771563053131104, -1.1811001300811768, 0.45812082290649414, 0.3693016469478607, 1.1768417358398438, -1.5726675987243652, 0.28178104758262634, -0.4741075932979584, 2.1006855964660645, 0.17082972824573517, 1.302946925163269, -0.46200576424598694, -2.297436237335205, 0.6046571731567383, -1.2319843769073486, -1.1689836978912354, 0.7987156510353088, -0.9216848611831665, 0.1579657346010208, -1.5006651878356934, -0.19123491644859314, -0.9252932667732239, -1.2264864444732666, 0.723273754119873, 0.16229373216629028, 0.3768768310546875, -0.624593198299408, 0.42050278186798096, -2.187248706817627, -1.3278857469558716, -0.20221684873104095, -0.9210790991783142, 0.5064754486083984, -0.2969546616077423, 0.6202576160430908, -0.086392842233181, 0.017006687819957733, 0.3094594478607178, 1.3615010976791382, 3.3947014808654785, 0.21334761381149292, 0.31209635734558105, -0.074305459856987, -1.0321924686431885, 1.4462456703186035, 0.9559441804885864, -0.08347184211015701, -0.5758460760116577, -1.0755177736282349, 1.2766132354736328, 1.920392394065857, 1.0468538999557495, 0.03341590613126755, -0.8157954812049866, -0.7114343047142029, 0.002874676138162613, 0.23460711538791656, 0.46152380108833313, 0.9316425919532776, 0.061760254204273224, 0.1423332542181015, 1.4170804023742676, 1.213379144668579, -0.38817232847213745, 0.3846282362937927, -0.8846167325973511, -0.48079168796539307, 0.4933229386806488, 0.28733640909194946, 0.010665764100849628, 0.467762291431427, -1.0894215106964111, -0.2801554501056671, -0.33491191267967224, -0.9687871336936951, -0.7127366662025452, -0.39382287859916687, -0.34187784790992737, 1.5397257804870605, 0.14741018414497375, -0.46323835849761963, -0.0025337901897728443, -0.7914571762084961, -0.1932828575372696, -1.109661340713501, 0.26841139793395996, -0.12577351927757263, -0.08655519783496857, -0.20188672840595245, 1.7217988967895508, -0.8850679397583008, -1.9906843900680542, 0.19783301651477814, 0.3266283869743347, -0.3368731141090393, 0.24129995703697205, 1.6604385375976562, 0.5334857702255249, 1.4320067167282104, 1.2145037651062012, 0.9712268710136414, -0.5326628088951111, -1.2996368408203125, 0.6517729163169861, 1.0168575048446655, -1.355022668838501, 0.7966591119766235, -0.01111567858606577, -0.5385800004005432, 0.68917316198349, 1.3281069993972778, 0.41070443391799927, -2.0409798622131348, 0.863412618637085, -0.9061049818992615, 0.7434941530227661, 0.6906792521476746, 0.7489176392555237, 0.2153855413198471, 0.8540847897529602, -1.2835544347763062, -1.1121097803115845, -0.7269397377967834, -0.5815476179122925, 2.0005900859832764, -0.21035487949848175, 0.599241316318512, -0.2224397212266922, -1.2903684377670288, -0.05825357511639595, 0.647998571395874, 0.36486274003982544, -0.44364163279533386, 0.8436651825904846, -0.6394565105438232, -1.0651881694793701, -1.330590844154358, -0.416262149810791, -0.9516958594322205, -0.9239575266838074, 1.001621127128601, 0.8526563048362732, 0.3607996106147766, 1.9365264177322388, 0.5778307914733887, 0.25399547815322876, -2.6221420764923096, 0.8877634406089783, 0.3162928819656372, -0.034038178622722626, 0.9292861819267273, 0.2679319977760315, 1.089829921722412, 0.019707445055246353, 0.5265172719955444, -2.393285036087036, 2.209836721420288, -0.21710436046123505, 0.7324409484863281, -0.010063630528748035, -0.14415058493614197, 1.1442105770111084, 0.600943922996521, 0.5889548659324646, -1.060749888420105, 0.658757209777832, -0.5280308127403259, 1.1713223457336426, 1.0063468217849731, -0.7767305374145508, -0.019435284659266472, 1.3349438905715942, 0.4524032473564148, -0.5159797072410583, -0.9009079933166504, -0.885750949382782, 0.9384220838546753, 1.738163709640503, -0.003467228729277849, 0.05353337526321411, 0.8551794290542603, 0.7142848372459412, -1.2854365110397339, 0.07394395023584366, -0.7351279258728027, -0.7075573801994324, 1.681967854499817, 2.0766258239746094, -0.09890656173229218, -0.19878052175045013, -0.7059515118598938, -1.2620103359222412, 0.7624210119247437, -0.037437643855810165, 0.22056089341640472, 0.6829718351364136, -0.6862452626228333, 1.0975520610809326, 0.7448700666427612, 0.9745314121246338, 0.14545197784900665, 0.36370962858200073, 0.3957558870315552, -0.3160988986492157, -1.243942379951477, -0.31355732679367065, -1.0908669233322144, -2.5812392234802246, 0.46678048372268677, -0.22555401921272278, -1.3785799741744995, -0.026486564427614212, -1.0491644144058228, 0.9209713935852051, -0.6379970908164978, -1.1570301055908203, -1.5249818563461304, 0.28528955578804016, -0.06414660811424255, 0.9433528780937195, -1.6059250831604004, -0.11123828589916229, 1.2136166095733643, 0.9301100373268127, -0.5488899350166321, 1.055216670036316, 0.2601865231990814, 1.064670443534851, 0.8220709562301636, -0.3834281861782074, 0.5272453427314758, 0.05089114233851433, -1.3987782001495361, 0.47648605704307556, 1.149296760559082, 0.1828637719154358, 1.4934264421463013, -0.5799681544303894, 0.04357392340898514, 0.5006187558174133, -0.640110433101654, -0.4787716865539551, -0.498409628868103, 0.6742811799049377, 0.11058703809976578, -0.9425026774406433, -0.09399903565645218, -0.08670862019062042, -0.21615655720233917, 0.16175664961338043, -1.4557580947875977, -0.17083832621574402, -0.3898337781429291, -0.5594955682754517, -1.248366355895996, -0.03954226151108742, 1.3588656187057495, -0.8235562443733215, -0.2715245187282562, 0.4606900215148926, 0.33992794156074524, 0.5543261170387268, 0.6591798663139343, -0.6607965230941772, -0.41493675112724304, -0.2754376530647278, -0.30852043628692627, 0.2972462773323059, 1.3812940120697021, -0.16119126975536346, -0.9883458018302917, 0.6127484440803528, -0.37575429677963257, 0.09412317723035812, 1.9775984287261963, 0.09956890344619751, -0.7682859301567078, 0.33902013301849365, -0.6949523091316223, 1.811649203300476, 1.6958471536636353, 1.3065180778503418, -0.16771364212036133, -0.8195536732673645, 0.6028061509132385, -0.38379380106925964, -0.41654419898986816, 0.8409073948860168, 0.4406568706035614, -0.1317521184682846, -1.389551043510437, 0.6102469563484192, 1.3173011541366577, -0.9402211904525757, -0.7343144416809082, 0.07783982902765274, -0.815977156162262, 1.0772911310195923, 0.6675181984901428, 0.3560171127319336, 0.27460014820098877, 1.6100026369094849, 0.7837255001068115, -0.49820682406425476, 0.5177550911903381, 0.5214527249336243, -0.13449907302856445, -2.124662399291992, -1.1378387212753296, 0.3271993100643158, -0.4607255160808563, -1.6142760515213013, 1.3606836795806885, -1.1181719303131104, -0.982201099395752, 0.5215571522712708, 0.05393781512975693, 1.30110764503479, 0.34693223237991333, 1.6408861875534058, 2.140357255935669, 0.8594245910644531, 0.3120744526386261, 1.314165711402893, -0.0967555046081543, -0.42641395330429077, 1.8177733421325684, -0.4969141483306885, 0.5358458161354065, 1.088978886604309, -0.32667580246925354, -1.0376219749450684, -0.7646710276603699, -1.2881100177764893, -0.6340362429618835, 1.226043939590454, 0.16143323481082916, -1.1352721452713013, 0.21229325234889984, 1.584808349609375, 0.0877857357263565, -0.3189641535282135, 0.654478132724762, 0.4787457287311554, -0.7696354389190674, -0.08534873276948929, -0.8506870865821838, 0.5168119072914124, -0.18393221497535706, -0.3493376672267914, 0.2502504289150238, 0.5263970494270325, 1.3585398197174072, -0.04407931864261627, 0.06501252949237823, 1.169050931930542, -1.390465259552002, 1.5312467813491821, -0.6392009258270264, 0.23842231929302216, -2.480013847351074, 1.3818809986114502, -0.8022029995918274, 1.951259970664978, -2.655211925506592, 0.4184708893299103, -0.5036473274230957, -0.44220009446144104, 0.30987080931663513, -0.39459407329559326, 0.12851180136203766, -0.10653296858072281, -1.0893524885177612, -0.04934445396065712, -0.6735569834709167, 0.5981675386428833, 1.1485025882720947, 1.4350241422653198, -1.2140395641326904, -0.24658741056919098, -1.7557246685028076, -0.15539559721946716, -0.7366222143173218, 0.3433080017566681, -2.045380115509033, -0.19520652294158936, -1.892729640007019, -2.3658559322357178, -1.3117790222167969, -0.8711567521095276, 1.0566375255584717, 0.06016165018081665, -0.8877921104431152, 1.0919932126998901, -0.3606721758842468, -1.8095768690109253, 1.07017982006073, -2.1229043006896973 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
I think this has to be fixed on the google drive side, but you also have to delete the bad stuff from your local cache. This is not a great design, but it is what it is.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
37
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No I think this has to be fixed on the google drive side, but you also have to delete the bad stuff from your local cache. This is not a great design, but it is what it is.
[ -1.2242693901062012, -1.0150192975997925, -0.7534888386726379, 1.3593560457229614, -0.2483229637145996, -1.1878173351287842, 0.1452595740556717, -1.0609866380691528, 1.742695927619934, -0.7373012900352478, 0.3009154796600342, -1.6974527835845947, -0.002107823733240366, -0.6841196417808533, -0.7134944200515747, -0.8032691478729248, -0.3521953225135803, -0.78343266248703, 0.9670639634132385, 2.50575590133667, 1.183516263961792, -1.3988192081451416, 2.716683864593506, 0.685015082359314, -0.21079973876476288, -0.9630763530731201, 0.5124388933181763, 0.05012322962284088, -1.1591826677322388, -0.47112828493118286, -0.9475374221801758, -0.08198575675487518, -0.49185389280319214, -0.4854082465171814, -0.01362687163054943, 0.43675166368484497, -0.25215020775794983, -0.39318880438804626, -0.49166637659072876, -0.7349288463592529, 0.4533568024635315, -0.42971909046173096, 0.9388031363487244, -0.3665336072444916, 1.8958650827407837, -0.5742341876029968, 0.27704060077667236, 0.6608792543411255, 1.2813749313354492, 0.15806546807289124, -0.05503196641802788, 0.34950965642929077, 0.34686949849128723, -0.07918302714824677, 0.42503809928894043, 1.1007254123687744, 0.5634504556655884, 0.5086598992347717, 0.7539815306663513, -2.245616912841797, 1.2713079452514648, -1.1470236778259277, 0.34614893794059753, 1.399735450744629, -0.9845200777053833, 0.4571576416492462, -1.7564449310302734, -0.024355528876185417, 0.5507714748382568, -2.3451623916625977, 0.29214638471603394, -1.3515136241912842, -0.619073212146759, 0.8990042209625244, 0.30662569403648376, -1.2861648797988892, 0.16995780169963837, -0.44614022970199585, 1.0868531465530396, 0.41536885499954224, 1.11214017868042, -1.7572957277297974, -0.06219612434506416, -0.3323037624359131, 0.03357208892703056, -1.443730354309082, -1.4869379997253418, 0.6492863297462463, 0.5899859666824341, 0.6185951232910156, -0.1459687352180481, 1.014031171798706, -1.0358247756958008, 0.8431788682937622, -1.0764272212982178, -1.5975654125213623, -1.460423231124878, -2.2790048122406006, -2.2410178184509277, 0.8332396745681763, -0.4437676668167114, -0.5814132690429688, 1.950334906578064, -0.9302282333374023, -1.760241150856018, 1.217024803161621, 0.1841696798801422, 0.02995973825454712, 2.3913767337799072, 0.17291900515556335, -0.6684565544128418, 0.3808859884738922, -0.7892673015594482, 0.868908703327179, -0.308511883020401, 1.4901059865951538, 0.5190912485122681, -1.0031065940856934, 1.6429698467254639, -0.3976825773715973, 0.5318099856376648, -0.6640382409095764, -0.6295887231826782, -0.8366843461990356, 0.34410205483436584, 1.8890241384506226, -0.36476460099220276, 1.5310680866241455, -0.4307256042957306, -1.5124680995941162, -1.5930005311965942, 0.9041945934295654, 0.50590580701828, -0.7968831062316895, 0.09176836907863617, -0.369357705116272, 0.13583111763000488, -0.14220185577869415, 1.2161277532577515, 1.2099971771240234, 0.5653200149536133, -0.28871414065361023, -0.8560675382614136, 0.23641258478164673, -0.09503795206546783, -0.741969883441925, -1.8492405414581299, -0.42438173294067383, 0.15168237686157227, 0.5665995478630066, -1.2122882604599, 1.6060136556625366, 0.8677713871002197, 1.833450436592102, 0.9696363210678101, -0.2801029086112976, 1.4341872930526733, 0.05949599668383598, 1.8194385766983032, -0.6085282564163208, 0.6195933222770691, -0.24189986288547516, -1.0133966207504272, 0.8568665981292725, -0.3703109920024872, -1.9953960180282593, -0.8464648723602295, -0.9076022505760193, -0.23090499639511108, -0.8247438669204712, 0.92386394739151, -0.3479991853237152, -1.416771411895752, 0.29519733786582947, -0.7122163772583008, 0.11568059027194977, -1.1887322664260864, 0.2609710991382599, 0.7097693681716919, -0.6098595857620239, 0.0048887478187680244, -0.20136159658432007, -1.2665379047393799, -0.4686131477355957, 0.2859772741794586, 2.009615182876587, -0.7604485154151917, 0.8995267748832703, 0.9621813297271729, -0.7477265000343323, 0.010352710261940956, 0.31512969732284546, -0.20727312564849854, 0.7963124513626099, -1.0815861225128174, -0.4803861379623413, 1.0630569458007812, -0.10380366444587708, -0.5354843735694885, 1.509678602218628, 0.763758659362793, -0.9869419932365417, -0.22939077019691467, -0.26094767451286316, -0.8193650841712952, -0.027628008276224136, -1.5757813453674316, -0.2138664424419403, 0.23892754316329956, -1.4735242128372192, -0.5706008076667786, -0.2610313296318054, 1.3131083250045776, -0.18937240540981293, 1.3169461488723755, -0.3584514856338501, -0.3232065737247467, -0.31769028306007385, -0.3078330159187317, 0.17644838988780975, -0.17204682528972626, -0.688929557800293, 0.1973390132188797, -0.8540669083595276, 0.3796156346797943, 1.4210056066513062, 0.4629582464694977, 0.013647917658090591, 0.6030385494232178, 1.037794589996338, 0.32483014464378357, -0.009467246942222118, -0.9073250889778137, -1.568156123161316, 1.924452304840088, -1.5483125448226929, 1.9280675649642944, 0.742493748664856, -0.0009771212935447693, -1.748079538345337, -1.8644285202026367, 1.3686515092849731, 1.2965105772018433, 2.2421603202819824, 0.6817628741264343, 0.4072463810443878, -0.8672487735748291, -0.6550965309143066, 0.2494439333677292, -1.1351186037063599, -0.6673567295074463, 0.1328476518392563, 2.2948176860809326, 1.8296003341674805, -0.554326057434082, -0.17732979357242584, -1.0020314455032349, 1.3336713314056396, -0.12578228116035461, 0.19409343600273132, 2.0239169597625732, -0.3318370580673218, -1.1520119905471802, 1.2480841875076294, -2.3162553310394287, 0.0691320151090622, 1.9354360103607178, 0.29115793108940125, 0.10097339749336243, -1.4339890480041504, -0.6111461520195007, -0.26111459732055664, -0.4251229166984558, -1.351196050643921, 0.6032978296279907, -0.28248605132102966, -0.8800696730613708, -1.4691156148910522, 0.17973972856998444, -1.1388293504714966, -1.5373958349227905, 0.40499526262283325, 1.8883699178695679, 2.0781304836273193, -0.6815308928489685, 1.5743476152420044, -0.2756137251853943, 0.29583412408828735, 1.3041355609893799, 1.2123751640319824, 3.0983736515045166, 1.9584455490112305, -1.1574558019638062, 0.6062195301055908, -0.12293404340744019, -0.4906100928783417, 1.1584933996200562, -1.102658987045288, 1.27419912815094, -0.11980138719081879, -1.1341298818588257, -1.2673273086547852, 0.9192969799041748, 0.4614620804786682, 0.01667158678174019, -0.5192075967788696, 1.2175971269607544, 0.017422188073396683, 1.344923496246338, 0.5591567158699036, -0.3706613779067993, 0.5806809663772583, -0.47271254658699036, -0.4107877016067505, 1.6071693897247314, 0.1987791359424591, -1.4093540906906128, -2.3316810131073, -0.22922751307487488, -0.8131322264671326, 0.06693387031555176, -0.5643153190612793, -1.0748867988586426, 1.7099452018737793, 0.4263242483139038, -1.325585961341858, -0.25287890434265137, -0.3558479845523834, -0.656497061252594, 2.686924457550049, -1.4012194871902466, -0.2698792815208435, -0.9663355350494385, -0.5820459127426147, 1.7320607900619507, -1.2243934869766235, -0.1814904510974884, -1.0710872411727905, -0.6120707988739014, -1.345719814300537, -0.5609045624732971, -0.05899735912680626, -0.9324260950088501, 0.9578559398651123, 0.13906122744083405, -1.0271786451339722, -0.36315596103668213, -0.8321898579597473, 0.8114379644393921, -0.19166164100170135, 0.2794480323791504, 1.9182915687561035, 0.35356831550598145, -0.39384427666664124, 0.6677112579345703, 1.140870213508606, 0.6390045285224915, -0.6399322748184204, 0.24273253977298737, -0.6643726229667664, 0.2752716839313507, -1.3209457397460938, 0.3226972818374634, -2.9644598960876465, 0.712874174118042, -0.0388459637761116, 0.011828862130641937, -0.0031170262955129147, -1.2919402122497559, 1.198198676109314, 2.5418806076049805, -1.1964772939682007, 0.4083189070224762, 0.304362028837204, 1.2166396379470825, -1.610834002494812, 0.3280330300331116, -0.4009416103363037, 2.126459836959839, 0.1927809864282608, 1.2173948287963867, -0.4691152572631836, -2.2636468410491943, 0.583484947681427, -1.2271897792816162, -1.2382521629333496, 0.6284522414207458, -0.8545388579368591, 0.12317048013210297, -1.5767720937728882, -0.1985311210155487, -0.9462208151817322, -1.2560731172561646, 0.8101956844329834, 0.16821756958961487, 0.2917492985725403, -0.5927237868309021, 0.392130970954895, -2.1380631923675537, -1.3813176155090332, -0.25631818175315857, -0.8788728713989258, 0.5102781653404236, -0.2690638601779938, 0.7194786667823792, -0.14402438700199127, 0.10870528221130371, 0.263727605342865, 1.4746371507644653, 3.351836681365967, 0.22196565568447113, 0.43642735481262207, -0.07967124879360199, -0.89520263671875, 1.444447636604309, 1.0458623170852661, 0.07119452953338623, -0.5127803683280945, -1.0932074785232544, 1.3197742700576782, 1.9607248306274414, 0.8826346397399902, 0.07935874164104462, -0.7278303503990173, -0.553825318813324, -0.08047731220722198, 0.30125612020492554, 0.44810551404953003, 0.9049777388572693, 0.11884196102619171, 0.12177033722400665, 1.4110544919967651, 1.2276493310928345, -0.4995204210281372, 0.4171941578388214, -0.853787899017334, -0.45046287775039673, 0.5101801753044128, 0.30557388067245483, -0.056818731129169464, 0.38338297605514526, -1.0342447757720947, -0.366849422454834, -0.2185729444026947, -0.9977918863296509, -0.6701352596282959, -0.3991626799106598, -0.3094356954097748, 1.5576010942459106, 0.14742428064346313, -0.5076442360877991, -0.09328688681125641, -0.8159298896789551, -0.1707899421453476, -1.1806060075759888, 0.2640393376350403, -0.154510498046875, -0.07577426731586456, -0.10956856608390808, 1.8080400228500366, -0.8317843079566956, -2.0241425037384033, 0.21561875939369202, 0.39311933517456055, -0.38990992307662964, 0.1813115030527115, 1.5571153163909912, 0.5693314075469971, 1.4773013591766357, 1.1884607076644897, 0.9733847379684448, -0.5211049318313599, -1.3283685445785522, 0.6075916290283203, 0.9624500274658203, -1.3408690690994263, 0.7852321863174438, 0.023343559354543686, -0.4572145640850067, 0.6872111558914185, 1.3390371799468994, 0.47668150067329407, -1.962591528892517, 0.8067913055419922, -0.9293091893196106, 0.7931996583938599, 0.7920161485671997, 0.7779836058616638, 0.33091413974761963, 0.9294117093086243, -1.2687561511993408, -1.1503130197525024, -0.8335639834403992, -0.568022608757019, 2.0248539447784424, -0.18403372168540955, 0.5807486772537231, -0.2329576164484024, -1.289276361465454, -0.052983228117227554, 0.6555801630020142, 0.4856436848640442, -0.37503984570503235, 0.7918431162834167, -0.6697458624839783, -1.0634204149246216, -1.399999976158142, -0.41836708784103394, -0.9173957109451294, -1.0236636400222778, 1.0612938404083252, 0.9135971069335938, 0.306194931268692, 1.9571828842163086, 0.6117059588432312, 0.24580584466457367, -2.5448338985443115, 0.8863621950149536, 0.3334123492240906, -0.017117656767368317, 0.9405777454376221, 0.3603493571281433, 1.0820814371109009, 0.028224147856235504, 0.5123812556266785, -2.3555808067321777, 2.2446811199188232, -0.17255476117134094, 0.75833660364151, -0.010345395654439926, -0.12333045899868011, 1.1806682348251343, 0.4980331361293793, 0.5333870649337769, -1.0573450326919556, 0.6555500626564026, -0.5663551688194275, 1.2686437368392944, 1.0181071758270264, -0.6937418580055237, 0.003925841301679611, 1.2863689661026, 0.5262575149536133, -0.5161325931549072, -0.8489418029785156, -0.9016169905662537, 0.9322527050971985, 1.7136725187301636, -0.027116641402244568, -0.038355834782123566, 0.8886445760726929, 0.6789538264274597, -1.2653124332427979, 0.03925810754299164, -0.7402615547180176, -0.6947661638259888, 1.6502504348754883, 2.1109349727630615, -0.18460948765277863, -0.199255108833313, -0.7362235188484192, -1.247215747833252, 0.76973557472229, 0.005851754918694496, 0.09991692006587982, 0.7388113141059875, -0.7035745978355408, 1.054311990737915, 0.9013082385063171, 0.874875009059906, 0.2267855852842331, 0.5236609578132629, 0.42546209692955017, -0.2480526566505432, -1.1835763454437256, -0.2869044542312622, -1.154104232788086, -2.5373916625976562, 0.4943467676639557, -0.3323443830013275, -1.3252151012420654, -0.013382568024098873, -1.1022083759307861, 0.9482991695404053, -0.6162759065628052, -1.1281336545944214, -1.5871496200561523, 0.12561602890491486, 0.0018811728805303574, 0.9753389954566956, -1.582762598991394, -0.10745790600776672, 1.1804368495941162, 0.8790375590324402, -0.6434246897697449, 1.0152870416641235, 0.2674902677536011, 1.1182376146316528, 0.7673486471176147, -0.47737836837768555, 0.5160912871360779, -0.014533553272485733, -1.370212197303772, 0.6255649328231812, 1.1833221912384033, 0.13459593057632446, 1.4565542936325073, -0.5334798693656921, 0.0011277180165052414, 0.5055307745933533, -0.6288912296295166, -0.4844631254673004, -0.5501464009284973, 0.6884055137634277, 0.11989352107048035, -0.8759506940841675, -0.01087346114218235, -0.017059190198779106, -0.261393666267395, 0.1816897839307785, -1.4855480194091797, -0.1958654820919037, -0.44725722074508667, -0.5991049408912659, -1.2554967403411865, -0.10648095607757568, 1.302829384803772, -0.7571930885314941, -0.21318738162517548, 0.46471983194351196, 0.47405096888542175, 0.566338837146759, 0.6436717510223389, -0.6554109454154968, -0.3808387219905853, -0.20859158039093018, -0.3531298339366913, 0.33392059803009033, 1.3220784664154053, -0.2393750101327896, -1.0675013065338135, 0.6466790437698364, -0.2838032841682434, 0.030890844762325287, 1.9869344234466553, 0.08164025843143463, -0.8140450716018677, 0.2545433044433594, -0.7783219814300537, 1.930686116218567, 1.5764727592468262, 1.3393925428390503, -0.16974599659442902, -0.8316982984542847, 0.5839189887046814, -0.2741188406944275, -0.42512330412864685, 0.7962083220481873, 0.4775470793247223, -0.14854057133197784, -1.4378985166549683, 0.6566970944404602, 1.3694599866867065, -0.9888268709182739, -0.8474937081336975, 0.10992468893527985, -0.796781063079834, 1.0071080923080444, 0.6114977598190308, 0.4701320230960846, 0.33886781334877014, 1.6175518035888672, 0.6373938918113708, -0.486563503742218, 0.42429450154304504, 0.5902038812637329, -0.07175342738628387, -2.14168643951416, -1.2482872009277344, 0.28475964069366455, -0.5307981371879578, -1.5706591606140137, 1.3482450246810913, -1.0875309705734253, -0.9107164740562439, 0.5368149876594543, 0.19933907687664032, 1.4009240865707397, 0.2732977569103241, 1.6027770042419434, 1.9937351942062378, 0.8158910870552063, 0.30925002694129944, 1.3667830228805542, -0.06806036829948425, -0.5288794636726379, 1.8868275880813599, -0.46343088150024414, 0.5346662402153015, 1.128568172454834, -0.25247445702552795, -1.1155126094818115, -0.6796056628227234, -1.2658785581588745, -0.5993850231170654, 1.1369010210037231, 0.1436726450920105, -1.2086299657821655, 0.13538898527622223, 1.489795446395874, 0.1625487357378006, -0.3838720917701721, 0.5114153623580933, 0.3901980519294739, -0.8154091238975525, -0.030234023928642273, -1.0457900762557983, 0.5760624408721924, -0.23053987324237823, -0.33058103919029236, 0.20445242524147034, 0.5573362112045288, 1.3828153610229492, -0.1150662899017334, 0.14357785880565643, 1.1727149486541748, -1.4100923538208008, 1.4434096813201904, -0.6165845394134521, 0.2209499180316925, -2.4043102264404297, 1.3516408205032349, -0.7511730790138245, 1.9510269165039062, -2.7519326210021973, 0.37984928488731384, -0.5684523582458496, -0.4056890308856964, 0.3231033682823181, -0.2864510416984558, 0.15594853460788727, -0.09188465774059296, -1.1572738885879517, 0.028912890702486038, -0.7143891453742981, 0.5208351612091064, 1.2021955251693726, 1.3818501234054565, -1.1399494409561157, -0.21261554956436157, -1.7306313514709473, -0.15322867035865784, -0.801383376121521, 0.33304548263549805, -2.0993072986602783, -0.12095606327056885, -1.787513017654419, -2.3048269748687744, -1.2375802993774414, -0.8132712244987488, 1.074385166168213, 0.07255305349826813, -0.9320303201675415, 1.1246845722198486, -0.3306693434715271, -1.683271050453186, 1.0388073921203613, -2.029900550842285 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
We have fixed the issues with the datasets: - wider_face: by hosting their data files on the HuggingFace Hub (CC: @HosseynGT) - fever: by updating to their new data URLs (CC: @MoritzLaurer)
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
32
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No We have fixed the issues with the datasets: - wider_face: by hosting their data files on the HuggingFace Hub (CC: @HosseynGT) - fever: by updating to their new data URLs (CC: @MoritzLaurer)
[ -1.2547556161880493, -0.9853045344352722, -0.7712953686714172, 1.3578109741210938, -0.2837248742580414, -1.2156715393066406, 0.1210319995880127, -1.0586960315704346, 1.6870390176773071, -0.7216625809669495, 0.27310827374458313, -1.6859471797943115, -0.027747031301259995, -0.7050907015800476, -0.71714848279953, -0.8457767367362976, -0.4087425768375397, -0.7260230183601379, 0.9972935318946838, 2.4804086685180664, 1.20299232006073, -1.3502753973007202, 2.7033274173736572, 0.7244758605957031, -0.23680588603019714, -0.9985698461532593, 0.5373580455780029, 0.09180674701929092, -1.1312932968139648, -0.46581923961639404, -0.9457934498786926, -0.11029931157827377, -0.5035210847854614, -0.48070523142814636, 0.014874973334372044, 0.4361092150211334, -0.24956242740154266, -0.39030730724334717, -0.548107385635376, -0.7443495392799377, 0.5112161636352539, -0.37017008662223816, 0.9324074387550354, -0.38032880425453186, 1.8445922136306763, -0.6117398738861084, 0.3152172267436981, 0.6206334233283997, 1.3332953453063965, 0.15153497457504272, -0.10501302033662796, 0.35013914108276367, 0.32962164282798767, -0.06962285190820694, 0.4180593490600586, 1.1106908321380615, 0.5436128973960876, 0.5170847177505493, 0.7535192966461182, -2.276318311691284, 1.1765309572219849, -1.13455069065094, 0.3098389208316803, 1.4809136390686035, -1.051194190979004, 0.41454964876174927, -1.7865304946899414, -0.012898674234747887, 0.5594261884689331, -2.303844928741455, 0.26922115683555603, -1.3573147058486938, -0.6224184036254883, 0.8935208916664124, 0.31175532937049866, -1.264504075050354, 0.19619761407375336, -0.4146956205368042, 1.1324552297592163, 0.41772347688674927, 1.1420623064041138, -1.72337007522583, -0.011652621440589428, -0.34928271174430847, -0.012250796891748905, -1.4032936096191406, -1.4602787494659424, 0.6175194978713989, 0.5942262411117554, 0.5722582340240479, -0.13522207736968994, 0.9919013381004333, -1.0106309652328491, 0.8431791067123413, -1.0736013650894165, -1.6077936887741089, -1.4976885318756104, -2.271681070327759, -2.191847085952759, 0.7922130823135376, -0.481559157371521, -0.541598916053772, 1.9800046682357788, -0.9969949126243591, -1.818305253982544, 1.2235232591629028, 0.24852266907691956, 0.02695658430457115, 2.3347976207733154, 0.24275290966033936, -0.6531797647476196, 0.39047595858573914, -0.8305510878562927, 0.826516330242157, -0.30514460802078247, 1.5076011419296265, 0.506461501121521, -1.0175100564956665, 1.6954538822174072, -0.3903099000453949, 0.574261486530304, -0.6651630401611328, -0.6115381717681885, -0.8405703902244568, 0.3864843249320984, 1.9304293394088745, -0.3753264546394348, 1.540173053741455, -0.44089528918266296, -1.5227272510528564, -1.5257999897003174, 0.89646315574646, 0.5437366366386414, -0.7851045727729797, 0.14351564645767212, -0.34711799025535583, 0.05647378787398338, -0.1246112808585167, 1.197739839553833, 1.1855230331420898, 0.6057000756263733, -0.3385968804359436, -0.8575416803359985, 0.22671666741371155, 0.004702547565102577, -0.7756079435348511, -1.8086251020431519, -0.3819080889225006, 0.13432738184928894, 0.5920224189758301, -1.2381486892700195, 1.590082049369812, 0.8700724244117737, 1.8771594762802124, 0.9753024578094482, -0.3311920166015625, 1.4469828605651855, 0.06959746032953262, 1.8207809925079346, -0.5905400514602661, 0.6980149745941162, -0.23650650680065155, -1.0549564361572266, 0.8423177003860474, -0.35863974690437317, -2.0446739196777344, -0.7948771715164185, -0.890550434589386, -0.2148529291152954, -0.836378276348114, 0.9958304762840271, -0.3782317638397217, -1.3672425746917725, 0.24641883373260498, -0.7005413770675659, 0.1706717163324356, -1.213242530822754, 0.25267478823661804, 0.7110761404037476, -0.5304902791976929, -0.031611308455467224, -0.2148563116788864, -1.2510080337524414, -0.4159281253814697, 0.27086973190307617, 1.9647150039672852, -0.8344429731369019, 0.9356157183647156, 1.0102291107177734, -0.7183291912078857, 0.061845291405916214, 0.27884605526924133, -0.23444555699825287, 0.8970911502838135, -1.048550009727478, -0.5004171133041382, 1.1121089458465576, -0.0701732262969017, -0.5232940316200256, 1.5003244876861572, 0.7486399412155151, -0.988368809223175, -0.27302730083465576, -0.22246509790420532, -0.823256254196167, -0.055009108036756516, -1.612955093383789, -0.1656002700328827, 0.24043825268745422, -1.4483877420425415, -0.5708910822868347, -0.24756062030792236, 1.3273638486862183, -0.20086540281772614, 1.3318266868591309, -0.4292353689670563, -0.3131049871444702, -0.37756073474884033, -0.3017333149909973, 0.242435485124588, -0.17219144105911255, -0.7299219965934753, 0.1921403706073761, -0.827223539352417, 0.3816649317741394, 1.380954384803772, 0.43361896276474, 0.07152251154184341, 0.5952699184417725, 1.0835394859313965, 0.30611586570739746, -0.05944205820560455, -0.9214026927947998, -1.6482599973678589, 1.9387589693069458, -1.5323549509048462, 1.9902652502059937, 0.6755301356315613, 0.001495632342994213, -1.7628380060195923, -1.910586953163147, 1.362289309501648, 1.3012745380401611, 2.220262050628662, 0.6575667262077332, 0.4173152446746826, -0.8799720406532288, -0.6232309341430664, 0.24562013149261475, -1.080188512802124, -0.6609517931938171, 0.11236119270324707, 2.287425994873047, 1.77762770652771, -0.5689728260040283, -0.20925694704055786, -1.0014536380767822, 1.2749451398849487, -0.10116476565599442, 0.21350573003292084, 1.9966601133346558, -0.3025529384613037, -1.155823826789856, 1.2415827512741089, -2.3286831378936768, 0.044571951031684875, 1.9415793418884277, 0.2868330180644989, 0.1440427452325821, -1.4073505401611328, -0.6440418362617493, -0.26555174589157104, -0.46673038601875305, -1.3310436010360718, 0.5866659283638, -0.2658761143684387, -0.8205373883247375, -1.4316145181655884, 0.16624873876571655, -1.1146488189697266, -1.5754181146621704, 0.3700880706310272, 1.8896615505218506, 2.006513833999634, -0.7366549372673035, 1.5527265071868896, -0.3045859932899475, 0.2966078519821167, 1.3140826225280762, 1.223943829536438, 3.0866434574127197, 1.9244234561920166, -1.2100443840026855, 0.6522007584571838, -0.13191162049770355, -0.46002867817878723, 1.2009669542312622, -1.1046544313430786, 1.2880730628967285, -0.1784922480583191, -1.155656337738037, -1.281598448753357, 0.8786421418190002, 0.4159964919090271, 0.0876774787902832, -0.5166817903518677, 1.1508890390396118, -0.0041474848985672, 1.3330256938934326, 0.5799993872642517, -0.44558408856391907, 0.5854477882385254, -0.3844681680202484, -0.400640606880188, 1.5644012689590454, 0.12882375717163086, -1.3999513387680054, -2.38313364982605, -0.2217828929424286, -0.7933724522590637, 0.040202878415584564, -0.6312497854232788, -1.0711755752563477, 1.6747792959213257, 0.44616052508354187, -1.3465582132339478, -0.28682008385658264, -0.39661070704460144, -0.6305686235427856, 2.7375831604003906, -1.4576343297958374, -0.280831515789032, -0.9877412915229797, -0.5411252975463867, 1.7411425113677979, -1.1843663454055786, -0.21400901675224304, -1.0365896224975586, -0.6139718890190125, -1.3183605670928955, -0.5610166788101196, -0.028890743851661682, -0.9740557074546814, 0.9429692029953003, 0.07447664439678192, -1.09150230884552, -0.3744027614593506, -0.8177938461303711, 0.8699349761009216, -0.20659933984279633, 0.26715585589408875, 1.9785940647125244, 0.42202112078666687, -0.32846763730049133, 0.7399020195007324, 1.1258902549743652, 0.6743943691253662, -0.6700868606567383, 0.2358091175556183, -0.6529279351234436, 0.2536746561527252, -1.3906073570251465, 0.3602622151374817, -2.922372817993164, 0.6713313460350037, -0.0012864116579294205, -0.03320558741688728, -0.0034999391064047813, -1.3609113693237305, 1.1657911539077759, 2.533696174621582, -1.2108020782470703, 0.39629870653152466, 0.2863803505897522, 1.2074817419052124, -1.6484884023666382, 0.2962017357349396, -0.3901550769805908, 2.1264657974243164, 0.19974464178085327, 1.2385581731796265, -0.45433560013771057, -2.242506742477417, 0.6032344698905945, -1.2541524171829224, -1.2389320135116577, 0.6424415111541748, -0.8462137579917908, 0.1627955287694931, -1.5936435461044312, -0.2194579690694809, -0.9470301270484924, -1.234838604927063, 0.7493863105773926, 0.18984922766685486, 0.2761080861091614, -0.5991857051849365, 0.3742694854736328, -2.2056515216827393, -1.3335363864898682, -0.20450910925865173, -0.8990474939346313, 0.48259836435317993, -0.28196609020233154, 0.7198479175567627, -0.09720728546380997, 0.08022993803024292, 0.2727702558040619, 1.4627039432525635, 3.382446527481079, 0.2825898230075836, 0.4103817939758301, -0.09033368527889252, -0.8725816607475281, 1.4858472347259521, 1.0185977220535278, 0.008353079669177532, -0.5529953241348267, -0.9897122979164124, 1.3108474016189575, 1.9149185419082642, 0.9155629873275757, 0.01767384633421898, -0.7577555775642395, -0.604748010635376, -0.06547684967517853, 0.30275535583496094, 0.4588463604450226, 0.875270664691925, 0.1001773327589035, 0.11415103822946548, 1.3690309524536133, 1.1394126415252686, -0.4921552538871765, 0.38075971603393555, -0.8642436861991882, -0.47880271077156067, 0.5107609629631042, 0.28266358375549316, -0.00868792925029993, 0.3912869095802307, -1.0251682996749878, -0.37766581773757935, -0.2528670132160187, -0.9581795930862427, -0.6446309089660645, -0.40973857045173645, -0.3824162185192108, 1.5262682437896729, 0.16627418994903564, -0.5011030435562134, -0.1634558141231537, -0.7811955213546753, -0.1517726182937622, -1.1853175163269043, 0.322133332490921, -0.08566078543663025, -0.05980413407087326, -0.1211845651268959, 1.7721346616744995, -0.8711235523223877, -2.050126075744629, 0.24904513359069824, 0.37088024616241455, -0.4407070279121399, 0.18391671776771545, 1.572959542274475, 0.5481237173080444, 1.4098989963531494, 1.2346841096878052, 0.9459030628204346, -0.5260819792747498, -1.3282195329666138, 0.630681574344635, 0.9491950869560242, -1.3970965147018433, 0.7773818373680115, 0.05577775463461876, -0.4888460636138916, 0.6892825961112976, 1.356510877609253, 0.483196496963501, -1.9495480060577393, 0.8099949359893799, -0.922048807144165, 0.8269044160842896, 0.7874746322631836, 0.7876349091529846, 0.29458653926849365, 0.9123913645744324, -1.2694047689437866, -1.1465368270874023, -0.8169618248939514, -0.5539858937263489, 1.9812712669372559, -0.18433810770511627, 0.5601322650909424, -0.268038272857666, -1.224388599395752, -0.029489606618881226, 0.6019683480262756, 0.37182483077049255, -0.3801761269569397, 0.88020920753479, -0.618751585483551, -1.0890220403671265, -1.3595967292785645, -0.4040619730949402, -0.837755560874939, -1.0136865377426147, 1.042498230934143, 0.9375770688056946, 0.2880709171295166, 1.9113657474517822, 0.5885461568832397, 0.21178801357746124, -2.553574800491333, 0.8840196132659912, 0.30021438002586365, -0.022277407348155975, 0.8883568644523621, 0.3249960243701935, 1.1182293891906738, 0.022470194846391678, 0.4507891833782196, -2.3556857109069824, 2.2135419845581055, -0.20126594603061676, 0.7247757911682129, -0.11101185530424118, -0.10952146351337433, 1.1752008199691772, 0.5036124587059021, 0.4754040241241455, -1.0298775434494019, 0.6718212962150574, -0.5306385159492493, 1.208429217338562, 0.9831177592277527, -0.6981947422027588, -0.0013095652684569359, 1.324633002281189, 0.5533957481384277, -0.5866044759750366, -0.8550007939338684, -0.8631067872047424, 0.9546048045158386, 1.712937355041504, -0.0001414567232131958, 0.013020115904510021, 0.8616752624511719, 0.7345281839370728, -1.2534196376800537, 0.06277759373188019, -0.7084742784500122, -0.6298750638961792, 1.6840364933013916, 2.0550217628479004, -0.1163172647356987, -0.18163864314556122, -0.7253931760787964, -1.2747471332550049, 0.8019099831581116, -0.1038951501250267, 0.18087802827358246, 0.6332870721817017, -0.6775176525115967, 1.0514856576919556, 0.9174627065658569, 0.922687292098999, 0.1786823570728302, 0.475280225276947, 0.40454554557800293, -0.22415712475776672, -1.156234860420227, -0.22195205092430115, -1.13751220703125, -2.4689764976501465, 0.5375168919563293, -0.3404451608657837, -1.2952176332473755, 0.03256542980670929, -1.103195309638977, 0.9897770881652832, -0.6881501078605652, -1.0847315788269043, -1.5828560590744019, 0.1680762618780136, 0.034960176795721054, 0.9202681183815002, -1.5654031038284302, -0.10673382878303528, 1.227768063545227, 0.8814542889595032, -0.6385396122932434, 0.99771648645401, 0.2862578332424164, 1.120365858078003, 0.7766649127006531, -0.4165102541446686, 0.4816308915615082, -0.008171102032065392, -1.3684709072113037, 0.6087543368339539, 1.1605534553527832, 0.19348403811454773, 1.5468316078186035, -0.49590224027633667, -0.0038100252859294415, 0.4959520697593689, -0.5906628370285034, -0.48478803038597107, -0.6140075325965881, 0.6261112689971924, 0.15337608754634857, -0.8671700954437256, 0.0045827049762010574, -0.016990914940834045, -0.28278520703315735, 0.19148698449134827, -1.4876474142074585, -0.19483424723148346, -0.4245435297489166, -0.6293033957481384, -1.254636287689209, -0.11601120978593826, 1.337630271911621, -0.7676153182983398, -0.16049271821975708, 0.5499603152275085, 0.4027847647666931, 0.5541559457778931, 0.7107201814651489, -0.6182124614715576, -0.3173605501651764, -0.23706422746181488, -0.30095264315605164, 0.28010571002960205, 1.3089298009872437, -0.21073374152183533, -1.0230094194412231, 0.5910518765449524, -0.2833211123943329, 0.04434918612241745, 2.0078279972076416, 0.10531188547611237, -0.800593912601471, 0.24892830848693848, -0.7471103072166443, 1.9453097581863403, 1.5639700889587402, 1.3667415380477905, -0.19175246357917786, -0.8351378440856934, 0.6030830144882202, -0.3037583827972412, -0.3815963864326477, 0.8195865750312805, 0.5080573558807373, -0.1530034989118576, -1.4381756782531738, 0.7057809829711914, 1.3801462650299072, -1.0381858348846436, -0.7751299142837524, 0.12677285075187683, -0.7502251267433167, 0.9810361862182617, 0.6363900303840637, 0.3953896462917328, 0.3718284070491791, 1.6095627546310425, 0.6346086859703064, -0.4414365887641907, 0.4057338535785675, 0.5931351184844971, -0.08055023849010468, -2.144296169281006, -1.223576307296753, 0.3777194321155548, -0.4568171501159668, -1.6145702600479126, 1.3777210712432861, -1.0883312225341797, -0.9156369566917419, 0.5424866080284119, 0.14409856498241425, 1.4244182109832764, 0.30083805322647095, 1.6136318445205688, 2.028909206390381, 0.7998121380805969, 0.33855336904525757, 1.350648283958435, -0.010923532769083977, -0.4659368395805359, 1.801953673362732, -0.4451189637184143, 0.5469805598258972, 1.1424850225448608, -0.29255563020706177, -1.1818827390670776, -0.7208774089813232, -1.3057056665420532, -0.6535066366195679, 1.1903116703033447, 0.1990698128938675, -1.2135096788406372, 0.12717479467391968, 1.5030748844146729, 0.14299704134464264, -0.3533371686935425, 0.5690107941627502, 0.3639996349811554, -0.8919581174850464, -0.048405323177576065, -1.0013277530670166, 0.5112137198448181, -0.1875637322664261, -0.3193947970867157, 0.20390203595161438, 0.5262717604637146, 1.3624587059020996, -0.03741414472460747, 0.12308982014656067, 1.182699203491211, -1.4486128091812134, 1.4508482217788696, -0.6532306671142578, 0.2436484694480896, -2.4317145347595215, 1.403766393661499, -0.7647619247436523, 1.9451857805252075, -2.752673625946045, 0.38820821046829224, -0.5619535446166992, -0.4202083647251129, 0.31225070357322693, -0.3512828052043915, 0.12141263484954834, -0.07385452091693878, -1.1596193313598633, -0.0026179971173405647, -0.7426993250846863, 0.5952506065368652, 1.2480658292770386, 1.3798327445983887, -1.175858736038208, -0.25020134449005127, -1.7149529457092285, -0.19251956045627594, -0.6737467050552368, 0.3184000551700592, -2.115452289581299, -0.09314487129449844, -1.8178346157073975, -2.332357883453369, -1.162905216217041, -0.8286817073822021, 1.1203898191452026, 0.09102055430412292, -0.9495459198951721, 1.1351484060287476, -0.3499147593975067, -1.6819385290145874, 1.008508324623108, -2.079241991043091 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
This is a super-common failure mode. We really need to find a better workaround. My solution was to wait until the owner of the dataset in question did the right thing, and then I had to delete my cached versions of the datasets with the bad checksums. I don't understand why this happens. Would it be possible to maintain a copy of the most recent version that was known to work, and roll back to that automatically if the checksums fail? And if the checksums fail, couldn't the system automatically flush the cached versions with the bad checksums? It feels like we are blaming the provider of the dataset, when in fact, there are things that the system could do to ease the pain. Let's take these error messages seriously. There are too many of them involving too many different datasets.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
141
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No This is a super-common failure mode. We really need to find a better workaround. My solution was to wait until the owner of the dataset in question did the right thing, and then I had to delete my cached versions of the datasets with the bad checksums. I don't understand why this happens. Would it be possible to maintain a copy of the most recent version that was known to work, and roll back to that automatically if the checksums fail? And if the checksums fail, couldn't the system automatically flush the cached versions with the bad checksums? It feels like we are blaming the provider of the dataset, when in fact, there are things that the system could do to ease the pain. Let's take these error messages seriously. There are too many of them involving too many different datasets.
[ -1.2657853364944458, -0.9543240666389465, -0.7827288508415222, 1.288637638092041, -0.25324738025665283, -1.1905311346054077, 0.13738197088241577, -1.0814497470855713, 1.71923828125, -0.8017157912254333, 0.2451779693365097, -1.6895098686218262, 0.03645757958292961, -0.6471667289733887, -0.7631959319114685, -0.9009502530097961, -0.4176828861236572, -0.761927604675293, 0.9209954738616943, 2.502833366394043, 1.0963385105133057, -1.4691216945648193, 2.6518404483795166, 0.673723042011261, -0.12081111967563629, -1.027764081954956, 0.5251557230949402, 0.03508175536990166, -1.1621448993682861, -0.5311941504478455, -0.9157970547676086, -0.014206496998667717, -0.5745390057563782, -0.471334844827652, -0.014347287826240063, 0.3213020861148834, -0.22277101874351501, -0.41831448674201965, -0.5322730541229248, -0.7737597227096558, 0.44739803671836853, -0.3920723497867584, 0.9138091206550598, -0.373320072889328, 1.9267767667770386, -0.4991150200366974, 0.3402979075908661, 0.7091450095176697, 1.3443338871002197, 0.2052030861377716, 0.014436177909374237, 0.2242286503314972, 0.363747775554657, -0.025398142635822296, 0.41215094923973083, 1.135848879814148, 0.6193633675575256, 0.5204577445983887, 0.7237959504127502, -2.2400667667388916, 1.22927725315094, -1.1163781881332397, 0.38584861159324646, 1.4704811573028564, -0.9385392665863037, 0.4420313537120819, -1.8084805011749268, -0.05458048731088638, 0.578528881072998, -2.3887181282043457, 0.20347213745117188, -1.317164421081543, -0.5025729537010193, 0.9661586880683899, 0.2824760675430298, -1.2424129247665405, 0.26920607686042786, -0.42344215512275696, 1.1257398128509521, 0.48521888256073, 1.1850132942199707, -1.7063950300216675, -0.08058659732341766, -0.3120124936103821, 0.0799560546875, -1.4162856340408325, -1.521590232849121, 0.5101253986358643, 0.565104603767395, 0.5234719514846802, -0.10789811611175537, 1.0315314531326294, -0.9776139855384827, 0.8488684296607971, -0.9784660935401917, -1.576524257659912, -1.4407479763031006, -2.226696252822876, -2.278193712234497, 0.8764836192131042, -0.40054094791412354, -0.568545937538147, 1.9705744981765747, -0.9967089295387268, -1.7648881673812866, 1.2353734970092773, 0.2626134753227234, -0.004443707875907421, 2.422795057296753, 0.11374174058437347, -0.6989405751228333, 0.35551929473876953, -0.7437554597854614, 0.8596857786178589, -0.4266504943370819, 1.4640978574752808, 0.46873053908348083, -0.9987154006958008, 1.6297045946121216, -0.4539613425731659, 0.5269564390182495, -0.6862727999687195, -0.6285361051559448, -0.8852176666259766, 0.3983333706855774, 1.8399560451507568, -0.33485767245292664, 1.649120569229126, -0.4273061752319336, -1.5152667760849, -1.636502981185913, 0.9800637364387512, 0.43995383381843567, -0.8729943633079529, 0.043228305876255035, -0.27972984313964844, 0.1418229639530182, -0.11284837126731873, 1.1473257541656494, 1.2158795595169067, 0.6097303032875061, -0.2728552222251892, -0.8727051615715027, 0.21015174686908722, -0.153458833694458, -0.6984129548072815, -1.8176827430725098, -0.4112129807472229, 0.11667861044406891, 0.5864044427871704, -1.2824623584747314, 1.598780870437622, 0.8838120102882385, 1.8558199405670166, 0.9851468801498413, -0.3998342454433441, 1.5153777599334717, 0.09754841029644012, 1.8168535232543945, -0.5688953995704651, 0.6917810440063477, -0.23084020614624023, -1.120875597000122, 0.8033188581466675, -0.29691046476364136, -2.04304575920105, -0.8071519136428833, -0.8775599598884583, -0.2359064370393753, -0.7492376565933228, 0.873781144618988, -0.3472583591938019, -1.4175143241882324, 0.26271021366119385, -0.5934553742408752, 0.12926046550273895, -1.2063167095184326, 0.36497634649276733, 0.7812638282775879, -0.6134347915649414, -0.033668920397758484, -0.18304674327373505, -1.2749160528182983, -0.45121753215789795, 0.2660132646560669, 1.9149324893951416, -0.7613738179206848, 0.879256546497345, 0.9786272644996643, -0.747980535030365, 0.0006683357059955597, 0.34171342849731445, -0.19359686970710754, 0.8788066506385803, -1.0303235054016113, -0.501911997795105, 1.110339641571045, -0.21314425766468048, -0.5264326930046082, 1.4883334636688232, 0.7371531128883362, -0.9576394557952881, -0.16888299584388733, -0.23896367847919464, -0.8732774257659912, -0.030911536887288094, -1.5427006483078003, -0.13856953382492065, 0.23350270092487335, -1.4979766607284546, -0.5458583831787109, -0.24514226615428925, 1.3118813037872314, -0.2186904102563858, 1.408370852470398, -0.4247834384441376, -0.26010796427726746, -0.38669970631599426, -0.3653104901313782, 0.19106434285640717, -0.19412124156951904, -0.665774405002594, 0.2561279833316803, -0.827368438243866, 0.33260485529899597, 1.3600409030914307, 0.491845041513443, 0.00021784566342830658, 0.5701807737350464, 1.0727293491363525, 0.3109053373336792, -0.01621818169951439, -0.9153241515159607, -1.52126944065094, 1.982431173324585, -1.503175973892212, 1.9926941394805908, 0.708152711391449, -0.0428808219730854, -1.6937025785446167, -1.8551831245422363, 1.3927011489868164, 1.1792749166488647, 2.3175690174102783, 0.5894104242324829, 0.41770294308662415, -0.8838253617286682, -0.63059002161026, 0.27377304434776306, -1.084110140800476, -0.7660436630249023, 0.07528208196163177, 2.3017988204956055, 1.7647839784622192, -0.5561553239822388, -0.15476520359516144, -1.0370506048202515, 1.3044224977493286, -0.11008495092391968, 0.2050950676202774, 1.98466956615448, -0.31876125931739807, -1.162529706954956, 1.228834867477417, -2.367069959640503, 0.04118560627102852, 1.9813110828399658, 0.25893497467041016, 0.037296362221241, -1.394175410270691, -0.5656984448432922, -0.26196953654289246, -0.41162821650505066, -1.3175420761108398, 0.5452498197555542, -0.2730405032634735, -0.7749902009963989, -1.4588342905044556, 0.14076846837997437, -1.1512272357940674, -1.520378828048706, 0.36700496077537537, 1.92965829372406, 1.9837181568145752, -0.6140323877334595, 1.5254018306732178, -0.32219865918159485, 0.2031969428062439, 1.249391794204712, 1.2039202451705933, 3.180219888687134, 1.9896352291107178, -1.2175387144088745, 0.5519363284111023, -0.15685458481311798, -0.4827359914779663, 1.0814255475997925, -1.1261435747146606, 1.2912695407867432, -0.0950857549905777, -1.1917579174041748, -1.2699984312057495, 0.9414418339729309, 0.46240684390068054, 0.057658497244119644, -0.5491800308227539, 1.1897773742675781, 0.03967977687716484, 1.3897072076797485, 0.46738582849502563, -0.3837644159793854, 0.5326289534568787, -0.4364451467990875, -0.5354796648025513, 1.569136381149292, 0.17414668202400208, -1.3917818069458008, -2.3528904914855957, -0.24039192497730255, -0.8105287551879883, 0.07059431076049805, -0.5907454490661621, -1.0105420351028442, 1.7352796792984009, 0.4211626350879669, -1.2799363136291504, -0.32941627502441406, -0.4226938486099243, -0.6912902593612671, 2.6398816108703613, -1.4652364253997803, -0.27251729369163513, -0.9513848423957825, -0.5771755576133728, 1.6585414409637451, -1.2111716270446777, -0.18516826629638672, -0.9961236715316772, -0.6455932259559631, -1.34751296043396, -0.5523563027381897, -0.07386857271194458, -0.9209126234054565, 0.9193949103355408, 0.21348156034946442, -1.0822497606277466, -0.3675577640533447, -0.8671854138374329, 0.7740312814712524, -0.11090698838233948, 0.26099756360054016, 1.922337532043457, 0.42443811893463135, -0.3591240346431732, 0.719956636428833, 1.1834080219268799, 0.6603114604949951, -0.5930293202400208, 0.1782670021057129, -0.6161666512489319, 0.26819366216659546, -1.317688226699829, 0.32841432094573975, -2.912673234939575, 0.7159717679023743, -0.0408574640750885, -0.013295667245984077, 0.012981973588466644, -1.2469213008880615, 1.1005218029022217, 2.5780861377716064, -1.180166482925415, 0.4186224043369293, 0.3937557637691498, 1.2320663928985596, -1.608461856842041, 0.3697555363178253, -0.4188312590122223, 2.1425459384918213, 0.18469299376010895, 1.2035253047943115, -0.5309742093086243, -2.3068156242370605, 0.5092463493347168, -1.1975091695785522, -1.2037824392318726, 0.7864305973052979, -0.8263213038444519, 0.03616221621632576, -1.5312985181808472, -0.20643575489521027, -0.8684101104736328, -1.2453571557998657, 0.7693753838539124, 0.12632612884044647, 0.3964715898036957, -0.645902156829834, 0.3883877396583557, -2.2545666694641113, -1.3302861452102661, -0.2728554904460907, -0.8939454555511475, 0.5006997585296631, -0.28378066420555115, 0.7215074300765991, -0.12459787726402283, 0.057223591953516006, 0.27640488743782043, 1.4464659690856934, 3.3539211750030518, 0.3046565353870392, 0.4053749144077301, -0.12842652201652527, -0.8819809556007385, 1.4564088582992554, 0.9503315091133118, -0.03597279638051987, -0.5044478178024292, -0.9959107637405396, 1.3422799110412598, 1.9160711765289307, 0.9703673124313354, 0.040591996163129807, -0.6950240731239319, -0.5442859530448914, -0.06308199465274811, 0.29537126421928406, 0.4870697557926178, 0.8916066884994507, 0.018042992800474167, 0.16947048902511597, 1.4217666387557983, 1.2834910154342651, -0.4624638557434082, 0.416499525308609, -0.8222401142120361, -0.525438129901886, 0.498097687959671, 0.353932648897171, -0.042412735521793365, 0.379345566034317, -1.0208624601364136, -0.29399406909942627, -0.34888672828674316, -1.0019093751907349, -0.6154161095619202, -0.4202022850513458, -0.32921019196510315, 1.591521143913269, 0.1653650552034378, -0.48345816135406494, -0.035923153162002563, -0.7895696759223938, -0.16225917637348175, -1.1032295227050781, 0.2725091278553009, -0.07724635303020477, -0.12510012090206146, -0.07666844129562378, 1.8303265571594238, -0.8545271158218384, -2.0222580432891846, 0.21566355228424072, 0.32450374960899353, -0.37447986006736755, 0.17503982782363892, 1.5638840198516846, 0.45526865124702454, 1.4520659446716309, 1.2936567068099976, 0.9116881489753723, -0.5438589453697205, -1.29802405834198, 0.6829430460929871, 0.9820275902748108, -1.3835445642471313, 0.7758989334106445, 0.02371637523174286, -0.5247040390968323, 0.7145868539810181, 1.286280870437622, 0.4240429103374481, -1.9909018278121948, 0.8302635550498962, -0.9241223335266113, 0.7185733914375305, 0.7162670493125916, 0.7074183821678162, 0.29955869913101196, 0.901880145072937, -1.2831472158432007, -1.1670349836349487, -0.8004605770111084, -0.5879334211349487, 2.055217981338501, -0.14359788596630096, 0.6076604723930359, -0.18287628889083862, -1.2691618204116821, -0.09357373416423798, 0.58723384141922, 0.4313164949417114, -0.3488089442253113, 0.8223207592964172, -0.6775173544883728, -1.1453278064727783, -1.4848192930221558, -0.38833582401275635, -0.9641414284706116, -0.9851283431053162, 1.0788180828094482, 0.9371224641799927, 0.16723592579364777, 1.9110994338989258, 0.5947180390357971, 0.20616988837718964, -2.5782175064086914, 0.823559582233429, 0.35299068689346313, -0.12596364319324493, 0.8626336455345154, 0.28107208013534546, 1.0531301498413086, 0.08755367994308472, 0.49060705304145813, -2.4001080989837646, 2.279778242111206, -0.25001224875450134, 0.8148168921470642, -0.05985242500901222, -0.13080959022045135, 1.1504334211349487, 0.56397944688797, 0.5311225652694702, -1.0562071800231934, 0.7110829949378967, -0.6149808764457703, 1.2403818368911743, 1.0402801036834717, -0.7245612740516663, -0.028304506093263626, 1.3427150249481201, 0.5245506167411804, -0.49510252475738525, -0.9050745964050293, -0.9171027541160583, 0.8922443985939026, 1.7893730401992798, -0.0163864828646183, 0.007512394338846207, 0.8035885095596313, 0.7490689158439636, -1.2893905639648438, 0.13057084381580353, -0.7700079679489136, -0.806554913520813, 1.584835410118103, 2.069587230682373, -0.10554167628288269, -0.185685932636261, -0.7037158012390137, -1.2781150341033936, 0.7173606753349304, -0.050791360437870026, 0.2059878408908844, 0.6953904628753662, -0.7099237442016602, 1.0631039142608643, 0.9651263356208801, 0.9058355689048767, 0.19551615417003632, 0.3386504054069519, 0.39113959670066833, -0.25968238711357117, -1.113033652305603, -0.17154814302921295, -1.1633539199829102, -2.5026214122772217, 0.48018863797187805, -0.2919847369194031, -1.3820687532424927, 0.03361435607075691, -1.0172204971313477, 0.9412227869033813, -0.6372341513633728, -1.210648536682129, -1.5434876680374146, 0.13707150518894196, 0.05056221783161163, 0.8841509222984314, -1.583182454109192, -0.09338049590587616, 1.2278386354446411, 0.8908849954605103, -0.603270411491394, 1.0156463384628296, 0.2931419610977173, 1.139399528503418, 0.7539656162261963, -0.46012139320373535, 0.4096637964248657, -0.029303371906280518, -1.4144419431686401, 0.5936405062675476, 1.0942895412445068, 0.188512921333313, 1.4432591199874878, -0.5902286767959595, 0.01350322738289833, 0.425790011882782, -0.5041324496269226, -0.4788205623626709, -0.6060648560523987, 0.6909665465354919, 0.05251322314143181, -0.8549308776855469, 0.09898409247398376, -0.09738808870315552, -0.2661903500556946, 0.17121390998363495, -1.467682123184204, -0.20957720279693604, -0.4642797112464905, -0.5451753735542297, -1.264212965965271, -0.047160804271698, 1.3717247247695923, -0.78155517578125, -0.2043970823287964, 0.5620707273483276, 0.5101698040962219, 0.5437065362930298, 0.6795661449432373, -0.5802852511405945, -0.3991834223270416, -0.24018409848213196, -0.3303903043270111, 0.2407606691122055, 1.2919450998306274, -0.27225401997566223, -0.9559602737426758, 0.6795849800109863, -0.2987860441207886, -0.036165885627269745, 1.9254261255264282, 0.12814821302890778, -0.7596446871757507, 0.3084990680217743, -0.7404260039329529, 1.9064217805862427, 1.6584841012954712, 1.3840073347091675, -0.15807852149009705, -0.868885338306427, 0.5804015398025513, -0.3378889560699463, -0.42926034331321716, 0.883987545967102, 0.5357928276062012, -0.06358614563941956, -1.484372615814209, 0.6236047744750977, 1.2838484048843384, -0.9448943138122559, -0.7706215977668762, 0.11692744493484497, -0.786783754825592, 0.9811973571777344, 0.6783736944198608, 0.47038763761520386, 0.2520137131214142, 1.661758542060852, 0.7660313248634338, -0.48492494225502014, 0.4562465250492096, 0.5687081813812256, -0.13797014951705933, -2.153513193130493, -1.2167563438415527, 0.2701543867588043, -0.45191898941993713, -1.564762830734253, 1.4075983762741089, -1.085023045539856, -0.8925697803497314, 0.47519686818122864, 0.11879484355449677, 1.4296742677688599, 0.33720827102661133, 1.606395959854126, 2.0918643474578857, 0.8450914025306702, 0.3158823251724243, 1.3567777872085571, -0.050020236521959305, -0.4400390684604645, 1.8616539239883423, -0.36208271980285645, 0.4565146863460541, 1.2214999198913574, -0.31764164566993713, -1.0537009239196777, -0.7004340887069702, -1.2690374851226807, -0.5706595778465271, 1.143682599067688, 0.09062747657299042, -1.0949543714523315, 0.18196982145309448, 1.5426913499832153, 0.13228486478328705, -0.40197139978408813, 0.520135223865509, 0.46123722195625305, -0.7839168310165405, -0.06378145515918732, -1.017881155014038, 0.5479023456573486, -0.22375398874282837, -0.364219069480896, 0.2784672677516937, 0.4681673049926758, 1.348757266998291, -0.025998832657933235, 0.16806724667549133, 1.168526530265808, -1.439016342163086, 1.3818529844284058, -0.6738407611846924, 0.22590023279190063, -2.437462568283081, 1.3980869054794312, -0.7224607467651367, 1.9315253496170044, -2.6384172439575195, 0.4337123930454254, -0.6484805345535278, -0.37000328302383423, 0.44354477524757385, -0.399722158908844, 0.15517830848693848, -0.08351238071918488, -1.13300621509552, -0.00621566828340292, -0.6929032206535339, 0.5898994207382202, 1.1764395236968994, 1.3550599813461304, -1.0907108783721924, -0.2906704545021057, -1.7108908891677856, -0.16342027485370636, -0.6893390417098999, 0.35136696696281433, -2.021789789199829, -0.10418574512004852, -1.8839892148971558, -2.288688898086548, -1.339722990989685, -0.8128435015678406, 1.0998773574829102, 0.1276363581418991, -0.9117566347122192, 1.1801409721374512, -0.3567541241645813, -1.7898045778274536, 1.0772385597229004, -2.0925137996673584 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
Same for [DART dataset](https://huggingface.co/datasets/dart): ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-train.json', 'https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-dev.json', 'https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-test.json'] ```
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
17
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No Same for [DART dataset](https://huggingface.co/datasets/dart): ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-train.json', 'https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-dev.json', 'https://raw.githubusercontent.com/Yale-LILY/dart/master/data/v1.1.1/dart-v1.1.1-full-test.json'] ```
[ -1.2098197937011719, -0.9806439876556396, -0.7268897294998169, 1.436706781387329, -0.1307041496038437, -1.1871321201324463, 0.16406352818012238, -0.948029100894928, 1.627121090888977, -0.6089069843292236, 0.27550008893013, -1.6797815561294556, -0.1230328232049942, -0.6119481325149536, -0.7096940875053406, -0.7845938801765442, -0.39931610226631165, -0.727050244808197, 1.0059821605682373, 2.459360122680664, 1.2033724784851074, -1.3142300844192505, 2.740478754043579, 0.6867297887802124, -0.22512218356132507, -1.0074580907821655, 0.5449816584587097, 0.10814269632101059, -1.204372525215149, -0.35422202944755554, -0.8617017865180969, -0.05685584992170334, -0.607245147228241, -0.499880850315094, 0.07803122699260712, 0.4492068588733673, -0.2470720410346985, -0.41487917304039, -0.5290554165840149, -0.7001245617866516, 0.498393177986145, -0.32498008012771606, 0.8361555933952332, -0.34333598613739014, 1.7571831941604614, -0.6276929378509521, 0.4051659107208252, 0.6343404650688171, 1.3031994104385376, 0.2078641653060913, 0.10172983258962631, 0.3399696350097656, 0.397601455450058, -0.016710365191102028, 0.5233840942382812, 1.2233413457870483, 0.6084827184677124, 0.46713197231292725, 0.7038372159004211, -2.270904064178467, 1.2428590059280396, -0.9738759398460388, 0.32667186856269836, 1.3908294439315796, -0.9084416031837463, 0.4675883948802948, -1.84496009349823, -0.03545060753822327, 0.5213034749031067, -2.2861530780792236, 0.17516522109508514, -1.3730344772338867, -0.5215101838111877, 0.897320032119751, 0.25949254631996155, -1.3024063110351562, 0.21871991455554962, -0.4444555342197418, 1.0886162519454956, 0.4450700879096985, 1.1437299251556396, -1.7315022945404053, -0.09615550935268402, -0.24883736670017242, 0.12241818755865097, -1.236826777458191, -1.5359877347946167, 0.5000542998313904, 0.6346709728240967, 0.6889868378639221, -0.19012698531150818, 0.914587140083313, -1.0377728939056396, 0.8118142485618591, -1.0964661836624146, -1.7363379001617432, -1.4533607959747314, -2.295945882797241, -2.3255155086517334, 0.876324474811554, -0.4044147729873657, -0.4858345091342926, 1.8938332796096802, -0.8581856489181519, -1.8850903511047363, 1.014012336730957, 0.4069373607635498, 0.012127423658967018, 2.381587505340576, 0.2290460169315338, -0.7843286991119385, 0.4070029854774475, -0.8034493327140808, 0.7448098659515381, -0.2693578004837036, 1.4914954900741577, 0.6025823354721069, -0.9194045066833496, 1.6411486864089966, -0.427798330783844, 0.5748021602630615, -0.7498670816421509, -0.4824582636356354, -0.7467442750930786, 0.2916469871997833, 1.9112964868545532, -0.3200572431087494, 1.5122827291488647, -0.3399033844470978, -1.5419560670852661, -1.4504834413528442, 0.8287258148193359, 0.43692728877067566, -0.7614908218383789, 0.02200261317193508, -0.35660648345947266, 0.16135743260383606, -0.0028804857283830643, 1.143593668937683, 1.2154426574707031, 0.6543352007865906, -0.3867572247982025, -0.9129323363304138, 0.24117688834667206, -0.043906085193157196, -0.6979356408119202, -1.858141541481018, -0.31635046005249023, 0.25536155700683594, 0.5958044528961182, -1.3321210145950317, 1.604872465133667, 0.7757819294929504, 1.9599225521087646, 0.9300627708435059, -0.3993872106075287, 1.5195984840393066, -0.008784333243966103, 1.8735430240631104, -0.5883594155311584, 0.6682521104812622, -0.30673760175704956, -1.0771028995513916, 0.7578432559967041, -0.3290652334690094, -2.020738363265991, -0.7562713027000427, -0.9381380677223206, -0.16252657771110535, -0.7774325609207153, 0.8715085387229919, -0.31229662895202637, -1.4441514015197754, 0.19956490397453308, -0.7267087697982788, 0.10833385586738586, -1.278396487236023, 0.17062300443649292, 0.7600932121276855, -0.610593855381012, 0.09302375465631485, -0.2510546147823334, -1.2756633758544922, -0.5290289521217346, 0.35414573550224304, 1.8823426961898804, -0.6965548992156982, 0.9730381965637207, 0.9645879864692688, -0.8028523921966553, 0.10020239651203156, 0.35172906517982483, -0.2856748402118683, 0.8337646722793579, -0.9926958084106445, -0.4901512861251831, 1.0401325225830078, -0.07089082151651382, -0.6029222011566162, 1.4637314081192017, 0.9099169373512268, -0.9651636481285095, -0.28325024247169495, -0.1645069122314453, -0.7742507457733154, 0.01701270043849945, -1.606182336807251, -0.2121201902627945, 0.19009140133857727, -1.4240330457687378, -0.5833641290664673, -0.38512325286865234, 1.3248447179794312, -0.17292478680610657, 1.3973106145858765, -0.23464901745319366, -0.27553117275238037, -0.39757320284843445, -0.45681872963905334, 0.09341563284397125, -0.23469601571559906, -0.6776114702224731, 0.24339397251605988, -0.8579064607620239, 0.3502040207386017, 1.468437910079956, 0.4683617949485779, 0.012119123712182045, 0.5402167439460754, 1.1507738828659058, 0.3497190773487091, -0.025479499250650406, -0.906722366809845, -1.558133840560913, 2.0052385330200195, -1.4455219507217407, 1.9197818040847778, 0.6461929082870483, -0.05402802675962448, -1.7839730978012085, -1.8908755779266357, 1.3988744020462036, 1.2187954187393188, 2.509169101715088, 0.6814689040184021, 0.4413112699985504, -0.8191561102867126, -0.674483597278595, 0.18205423653125763, -1.0094878673553467, -0.7098332047462463, 0.22111107409000397, 2.325883150100708, 1.8572708368301392, -0.6281367540359497, -0.2426869422197342, -1.0062367916107178, 1.3684964179992676, -0.20750026404857635, 0.2503977119922638, 2.089930295944214, -0.24105341732501984, -1.0591862201690674, 1.2967772483825684, -2.3498337268829346, 0.22490200400352478, 1.9586976766586304, 0.3838360607624054, 0.10347553342580795, -1.48086678981781, -0.7052850127220154, -0.3773379623889923, -0.4393237829208374, -1.2692326307296753, 0.5348154306411743, -0.19528451561927795, -0.9728420972824097, -1.5090771913528442, 0.06676103174686432, -1.0790036916732788, -1.7034794092178345, 0.3811490535736084, 1.864074945449829, 1.9177459478378296, -0.7503581643104553, 1.4321324825286865, -0.23018451035022736, 0.19428874552249908, 1.2968436479568481, 1.2307804822921753, 3.1333768367767334, 1.9514178037643433, -1.146057367324829, 0.7443625330924988, -0.22384920716285706, -0.4482668936252594, 1.137961983680725, -1.1098742485046387, 1.1645420789718628, -0.23899374902248383, -1.20633065700531, -1.2481920719146729, 1.0196115970611572, 0.4886091947555542, -0.01943838968873024, -0.5668776631355286, 1.1043941974639893, 0.11049580574035645, 1.3903635740280151, 0.5615357160568237, -0.34393778443336487, 0.6046284437179565, -0.31044554710388184, -0.4623163640499115, 1.5905954837799072, 0.11818086355924606, -1.4537056684494019, -2.4131152629852295, -0.26146364212036133, -0.8864821791648865, -0.09402625262737274, -0.5915611386299133, -1.053017497062683, 1.6570767164230347, 0.5147629976272583, -1.2318685054779053, -0.19425049424171448, -0.39011818170547485, -0.5762115120887756, 2.7058210372924805, -1.3374961614608765, -0.19988533854484558, -0.991829514503479, -0.49782752990722656, 1.6837271451950073, -1.0654680728912354, -0.1372508704662323, -1.0301692485809326, -0.5848934054374695, -1.3550716638565063, -0.5416534543037415, 0.025501159951090813, -0.8627676963806152, 0.8089936375617981, 0.058486469089984894, -1.1116011142730713, -0.3096385598182678, -0.9058884978294373, 0.8892390131950378, -0.1237548366189003, 0.1683543473482132, 1.9669173955917358, 0.39795276522636414, -0.31717991828918457, 0.742462158203125, 1.1014288663864136, 0.598386287689209, -0.6771681904792786, 0.286225825548172, -0.6558036208152771, 0.2466955929994583, -1.3935681581497192, 0.24111433327198029, -2.8918118476867676, 0.7344643473625183, -0.03203314542770386, -0.028241707012057304, -0.0827639028429985, -1.3788520097732544, 1.2534153461456299, 2.5198843479156494, -1.2130845785140991, 0.4185834527015686, 0.3517483174800873, 1.1780294179916382, -1.5401250123977661, 0.21437320113182068, -0.44067755341529846, 2.135998249053955, 0.11558464914560318, 1.1905503273010254, -0.5392979979515076, -2.1964871883392334, 0.5615116357803345, -1.1911039352416992, -1.1007989645004272, 0.6868219971656799, -0.897074282169342, 0.16402801871299744, -1.4780596494674683, -0.1516164392232895, -0.9428842663764954, -1.2412986755371094, 0.7327662110328674, 0.15176543593406677, 0.3980157971382141, -0.6565788984298706, 0.4155878722667694, -2.1852622032165527, -1.4205900430679321, -0.24860413372516632, -0.9257735013961792, 0.5162520408630371, -0.28303998708724976, 0.6456252336502075, -0.04649274796247482, 0.014108562842011452, 0.18790565431118011, 1.3985838890075684, 3.2903435230255127, 0.17515473067760468, 0.3035532832145691, -0.05597224086523056, -1.008482813835144, 1.468833565711975, 1.0192086696624756, -0.11912001669406891, -0.47414204478263855, -0.9893201589584351, 1.3138859272003174, 2.0211570262908936, 1.115014910697937, 0.025633366778492928, -0.8550084829330444, -0.7266036868095398, 0.07742293179035187, 0.31279247999191284, 0.45279544591903687, 0.9535765051841736, 0.10271168500185013, 0.10805170238018036, 1.4373772144317627, 1.2508867979049683, -0.42072170972824097, 0.4687643051147461, -0.9508417248725891, -0.44026607275009155, 0.4850936532020569, 0.27079111337661743, 0.02064099721610546, 0.4006490707397461, -1.18625009059906, -0.3390035629272461, -0.24134355783462524, -0.9478979706764221, -0.7284432649612427, -0.4682682752609253, -0.3545372784137726, 1.6044775247573853, 0.08854924887418747, -0.43514183163642883, -0.03674991428852081, -0.7790864109992981, -0.10177607089281082, -1.0297743082046509, 0.3496762216091156, -0.1417338103055954, 0.04088035970926285, -0.15791700780391693, 1.7737987041473389, -0.9226239919662476, -2.0733611583709717, 0.258186399936676, 0.4167262017726898, -0.5064058899879456, 0.19037491083145142, 1.6160569190979004, 0.5528517961502075, 1.4223089218139648, 1.3051121234893799, 1.0222448110580444, -0.5475031137466431, -1.2799986600875854, 0.5862827301025391, 0.9344303011894226, -1.2920559644699097, 0.8073057532310486, -0.0036537349224090576, -0.45811936259269714, 0.6290420293807983, 1.3459829092025757, 0.24961243569850922, -2.0229077339172363, 0.7717601656913757, -0.8060120344161987, 0.7569304704666138, 0.7189819812774658, 0.8147563934326172, 0.20629695057868958, 0.7801835536956787, -1.2991619110107422, -1.108637809753418, -0.7977889776229858, -0.5666751265525818, 1.9068701267242432, -0.09343057125806808, 0.49573779106140137, -0.23699183762073517, -1.2785576581954956, -0.04917571693658829, 0.6721988320350647, 0.523919403553009, -0.4651217460632324, 0.8590044975280762, -0.5839788317680359, -1.0764143466949463, -1.3196746110916138, -0.4499124586582184, -0.8693172931671143, -0.9738544821739197, 0.9114812016487122, 0.8674505352973938, 0.47136572003364563, 1.8855550289154053, 0.5886973142623901, 0.2744307219982147, -2.698726177215576, 0.9361295104026794, 0.28977853059768677, -0.02054346725344658, 0.8608030676841736, 0.2850653827190399, 1.1028213500976562, -0.13166570663452148, 0.5571669936180115, -2.2919368743896484, 2.2001876831054688, -0.11629419028759003, 0.7062930464744568, -0.031301409006118774, -0.07712587714195251, 1.073400855064392, 0.5016205310821533, 0.5778936743736267, -1.124950885772705, 0.7273702621459961, -0.6272639036178589, 1.2013317346572876, 0.9002425074577332, -0.7478400468826294, 0.07329738140106201, 1.31318199634552, 0.5760351419448853, -0.38808026909828186, -0.9535103440284729, -0.8236483931541443, 0.9373260140419006, 1.6729265451431274, -0.10422759503126144, 0.004528103396296501, 0.9828082919120789, 0.653454065322876, -1.3886892795562744, 0.018451841548085213, -0.7487029433250427, -0.52789705991745, 1.7237004041671753, 2.105785846710205, -0.1655554473400116, -0.200036883354187, -0.7510727643966675, -1.2653374671936035, 0.6276283264160156, 0.04901307821273804, 0.09061037003993988, 0.7892046570777893, -0.6820117831230164, 1.2156636714935303, 0.6568538546562195, 0.9081594944000244, 0.1508646458387375, 0.4512760639190674, 0.22549307346343994, -0.35000666975975037, -1.299061894416809, -0.3092072308063507, -1.0729495286941528, -2.4300498962402344, 0.43620166182518005, -0.2579894959926605, -1.3590366840362549, 0.10396648198366165, -1.037670373916626, 0.8944810032844543, -0.6768547296524048, -1.1290698051452637, -1.4053106307983398, 0.23653456568717957, -0.12064746022224426, 0.8641558885574341, -1.6598703861236572, -0.05345926433801651, 1.2861305475234985, 0.8955628275871277, -0.5881496667861938, 0.9802672863006592, 0.38849157094955444, 1.068784475326538, 0.8373823761940002, -0.3838447332382202, 0.4825025796890259, 0.06994666904211044, -1.389212965965271, 0.5039263963699341, 1.1495904922485352, 0.29533299803733826, 1.4210267066955566, -0.5988179445266724, 0.10735722631216049, 0.49594753980636597, -0.6053692698478699, -0.5445696115493774, -0.6225144267082214, 0.6901940107345581, 0.06028246134519577, -1.1115787029266357, 0.013132534921169281, -0.018326938152313232, -0.06710849702358246, 0.28315213322639465, -1.502086877822876, -0.21663084626197815, -0.33138272166252136, -0.5294405221939087, -1.2814797163009644, -0.02171710878610611, 1.2582762241363525, -0.9207105040550232, -0.17819809913635254, 0.5473883748054504, 0.28233709931373596, 0.6310215592384338, 0.5658687353134155, -0.6337957382202148, -0.3683036267757416, -0.25010403990745544, -0.34513720870018005, 0.2874933183193207, 1.2420034408569336, -0.14557288587093353, -1.097245216369629, 0.6940810084342957, -0.5005879998207092, 0.10291852802038193, 1.995430588722229, -0.025857895612716675, -0.8372120261192322, 0.2616645097732544, -0.6568178534507751, 1.8697285652160645, 1.6376869678497314, 1.3938411474227905, -0.2118392139673233, -0.8408015370368958, 0.47920703887939453, -0.2994302213191986, -0.41997092962265015, 0.8028010725975037, 0.47536060214042664, -0.17369182407855988, -1.3707258701324463, 0.5141247510910034, 1.510292410850525, -0.975109875202179, -0.845604419708252, 0.1937367469072342, -0.8997244238853455, 1.1046594381332397, 0.7191765308380127, 0.28310149908065796, 0.20850983262062073, 1.598479151725769, 0.6643490195274353, -0.43049100041389465, 0.4581643342971802, 0.508781373500824, -0.17370425164699554, -2.0994648933410645, -1.1442371606826782, 0.29904454946517944, -0.4378024935722351, -1.602522850036621, 1.3219478130340576, -1.1504340171813965, -0.9618394374847412, 0.5197769403457642, 0.232369065284729, 1.3924567699432373, 0.30544739961624146, 1.6261755228042603, 2.0631768703460693, 0.849971354007721, 0.3328217566013336, 1.309096336364746, -0.057217396795749664, -0.49012064933776855, 1.7886604070663452, -0.40485334396362305, 0.6940082907676697, 1.0318975448608398, -0.33471548557281494, -1.142651915550232, -0.8346711993217468, -1.3078495264053345, -0.6154422760009766, 1.260434865951538, 0.20013819634914398, -1.1959458589553833, 0.23423334956169128, 1.5875486135482788, 0.15758343040943146, -0.3856472074985504, 0.6918362975120544, 0.35303619503974915, -0.7071241140365601, 0.04609762877225876, -1.0929309129714966, 0.4827589988708496, -0.1272633820772171, -0.27210935950279236, 0.14047902822494507, 0.46260666847229004, 1.2956182956695557, -0.007695370353758335, 0.17496542632579803, 1.2161107063293457, -1.2757058143615723, 1.520890474319458, -0.7318277955055237, 0.3374665081501007, -2.4375767707824707, 1.4523357152938843, -0.9172975420951843, 1.8226635456085205, -2.616224527359009, 0.4007066786289215, -0.5275965929031372, -0.42671868205070496, 0.26202070713043213, -0.4627891182899475, 0.13101625442504883, -0.026045044884085655, -1.1500881910324097, -0.03274906054139137, -0.8767198920249939, 0.503275990486145, 1.2095468044281006, 1.4369001388549805, -1.1425836086273193, -0.2505195438861847, -1.8134617805480957, -0.1702686846256256, -0.7081586718559265, 0.48423343896865845, -1.9890080690383911, -0.14062410593032837, -1.785230278968811, -2.3586676120758057, -1.2582738399505615, -0.8821539878845215, 1.0095064640045166, 0.04865678399801254, -0.9187594056129456, 1.0797412395477295, -0.3876458704471588, -1.8104689121246338, 1.1000126600265503, -2.1277148723602295 ]
https://github.com/huggingface/datasets/issues/3792
Checksums didn't match for dataset source
- @thesofakillers the issue with `exams` was fixed on 16 Aug by this PR: - #4853 - @Aktsvigun the issue with `dart` has been transferred to the Hub: https://huggingface.co/datasets/dart/discussions/1 - and fixed by PR: https://huggingface.co/datasets/dart/discussions/2 - @Carol-gutianle the issue with `multi_news` have been transferred to the Hub as well: https://huggingface.co/datasets/multi_news/discussions/1 - not reproducible: maybe you should try to update `datasets` For information to everybody, we are removing the checksum verifications (that were creating a bad user experience). This will be in place in the following weeks.
## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No
928
86
Checksums didn't match for dataset source ## Dataset viewer issue for 'wiki_lingua*' **Link:** *link to the dataset viewer page* `data = datasets.load_dataset("wiki_lingua", name=language, split="train[:2000]") ` *short description of the issue* ``` [NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=11wMGqNVSwwk6zUnDaJEgm3qT71kAHeff']]() ``` Am I the one who added this dataset ? No - @thesofakillers the issue with `exams` was fixed on 16 Aug by this PR: - #4853 - @Aktsvigun the issue with `dart` has been transferred to the Hub: https://huggingface.co/datasets/dart/discussions/1 - and fixed by PR: https://huggingface.co/datasets/dart/discussions/2 - @Carol-gutianle the issue with `multi_news` have been transferred to the Hub as well: https://huggingface.co/datasets/multi_news/discussions/1 - not reproducible: maybe you should try to update `datasets` For information to everybody, we are removing the checksum verifications (that were creating a bad user experience). This will be in place in the following weeks.
[ -1.1807310581207275, -0.8777896761894226, -0.7975335717201233, 1.3952083587646484, -0.16944052278995514, -1.2335726022720337, 0.06637416779994965, -1.0494705438613892, 1.6837687492370605, -0.6731040477752686, 0.27817288041114807, -1.7017340660095215, -0.06465402245521545, -0.6706094741821289, -0.7489870190620422, -0.7996383905410767, -0.44414302706718445, -0.7490238547325134, 0.9033609628677368, 2.468902111053467, 1.211431860923767, -1.3584133386611938, 2.683720588684082, 0.6891167163848877, -0.22872166335582733, -0.9601026773452759, 0.5085651278495789, -0.008471833541989326, -1.1924697160720825, -0.48698800802230835, -0.8660538196563721, -0.04738572612404823, -0.5850722789764404, -0.5117958188056946, 0.039335399866104126, 0.4478171169757843, -0.2406841516494751, -0.29641956090927124, -0.5132084488868713, -0.7952950596809387, 0.49720072746276855, -0.3465806245803833, 0.9336215853691101, -0.3865371346473694, 1.8454253673553467, -0.633152186870575, 0.3907482922077179, 0.7032304406166077, 1.325161337852478, 0.16372191905975342, -0.023535292595624924, 0.2813868224620819, 0.3209923803806305, 0.0006092032417654991, 0.5002588629722595, 1.1766527891159058, 0.5635913610458374, 0.490967333316803, 0.7104962468147278, -2.230996608734131, 1.198692798614502, -0.9875331521034241, 0.31369906663894653, 1.4555175304412842, -0.9406428337097168, 0.3947054445743561, -1.815834403038025, -0.020821016281843185, 0.5673363208770752, -2.3064661026000977, 0.24202954769134521, -1.3123688697814941, -0.5457141399383545, 0.9339092969894409, 0.25242748856544495, -1.3009508848190308, 0.23218132555484772, -0.4190760850906372, 1.1390471458435059, 0.4967719316482544, 1.176906704902649, -1.6965129375457764, -0.013799233362078667, -0.25403502583503723, 0.0744297131896019, -1.329908013343811, -1.5340646505355835, 0.5293340682983398, 0.6193422675132751, 0.6066228747367859, -0.14046363532543182, 0.9568902850151062, -0.9799753427505493, 0.88750821352005, -1.0300077199935913, -1.6400150060653687, -1.4797955751419067, -2.2408745288848877, -2.248885154724121, 0.8240325450897217, -0.4529126286506653, -0.49899011850357056, 1.9105356931686401, -0.9144607782363892, -1.8112472295761108, 1.094222903251648, 0.35672977566719055, 0.02697759121656418, 2.3392457962036133, 0.22872555255889893, -0.7362240552902222, 0.380037397146225, -0.7408519983291626, 0.7930458784103394, -0.3466694951057434, 1.3914521932601929, 0.5489611029624939, -1.0451905727386475, 1.666736364364624, -0.5064562559127808, 0.5421929955482483, -0.7398716807365417, -0.5704264640808105, -0.7962606549263, 0.347023606300354, 1.8734391927719116, -0.37352293729782104, 1.580130934715271, -0.3414126932621002, -1.546539068222046, -1.536458969116211, 0.8862624168395996, 0.5070008635520935, -0.7986786961555481, 0.10092025250196457, -0.35978367924690247, 0.1081351563334465, -0.07801158726215363, 1.1695778369903564, 1.1670416593551636, 0.6490352749824524, -0.3141682744026184, -0.8280297517776489, 0.25273218750953674, -0.01275026984512806, -0.7538929581642151, -1.7671282291412354, -0.38159260153770447, 0.23490507900714874, 0.5417765378952026, -1.29127836227417, 1.742891788482666, 0.8246080875396729, 1.9308693408966064, 0.9748528599739075, -0.30614081025123596, 1.537266731262207, 0.031894996762275696, 1.8285413980484009, -0.5108548402786255, 0.6425871253013611, -0.26300230622291565, -1.1236169338226318, 0.8212462067604065, -0.36339616775512695, -2.0578818321228027, -0.7302467226982117, -0.8937898874282837, -0.14208006858825684, -0.7736520171165466, 0.9286913275718689, -0.2687905728816986, -1.382068157196045, 0.2067524939775467, -0.7009275555610657, 0.12671199440956116, -1.259648323059082, 0.22995391488075256, 0.7822399139404297, -0.6272614598274231, -0.047907713800668716, -0.21133458614349365, -1.300621747970581, -0.457385390996933, 0.30269840359687805, 1.9566541910171509, -0.7545109391212463, 0.9107398986816406, 0.9622028470039368, -0.7446200847625732, 0.04323364794254303, 0.3737591803073883, -0.2927156686782837, 0.8294795155525208, -1.039521336555481, -0.48912328481674194, 1.0401029586791992, -0.08154653757810593, -0.6262717247009277, 1.4852322340011597, 0.8335257172584534, -1.0009804964065552, -0.27876758575439453, -0.255440354347229, -0.8452438712120056, -0.05244309455156326, -1.5737754106521606, -0.10812036693096161, 0.15535275638103485, -1.4505385160446167, -0.51566082239151, -0.2271474003791809, 1.341738224029541, -0.24073109030723572, 1.3897454738616943, -0.39435479044914246, -0.2830326557159424, -0.41662004590034485, -0.4257158041000366, 0.1286206841468811, -0.17737583816051483, -0.7491500377655029, 0.2259080559015274, -0.7994397282600403, 0.3183983266353607, 1.4048932790756226, 0.45595043897628784, 0.006441430188715458, 0.5531309843063354, 1.151987075805664, 0.2823835611343384, -0.03817158192396164, -0.9033071398735046, -1.5796860456466675, 1.9875937700271606, -1.476454257965088, 1.9396897554397583, 0.7408154010772705, 0.012289785780012608, -1.809499979019165, -1.9064433574676514, 1.3819880485534668, 1.2215650081634521, 2.365551233291626, 0.6473583579063416, 0.4615984559059143, -0.9006553292274475, -0.722893238067627, 0.3188789188861847, -1.0264918804168701, -0.6984360814094543, 0.09199707955121994, 2.329010486602783, 1.840114951133728, -0.5598947405815125, -0.24264518916606903, -0.9838649034500122, 1.3054298162460327, -0.1307494193315506, 0.1935391128063202, 2.0558130741119385, -0.28175783157348633, -1.075693130493164, 1.3029136657714844, -2.366245746612549, 0.1486857384443283, 2.011708974838257, 0.26608115434646606, 0.11679904907941818, -1.3921808004379272, -0.6380993127822876, -0.27177587151527405, -0.4513278901576996, -1.2657644748687744, 0.5558723211288452, -0.2553430199623108, -0.8782521486282349, -1.3980038166046143, 0.08537301421165466, -1.0942463874816895, -1.6037328243255615, 0.351961612701416, 1.8584989309310913, 1.9554661512374878, -0.7711272835731506, 1.506077527999878, -0.2806439995765686, 0.19991011917591095, 1.341704249382019, 1.305991768836975, 3.142077684402466, 1.9059937000274658, -1.2772338390350342, 0.6475586891174316, -0.16355769336223602, -0.4745963215827942, 1.1403706073760986, -1.1123261451721191, 1.1975682973861694, -0.2536519169807434, -1.2541285753250122, -1.2809953689575195, 0.960188627243042, 0.5225011110305786, 0.04752346873283386, -0.5675501823425293, 1.1886658668518066, 0.060393352061510086, 1.3738963603973389, 0.602764368057251, -0.4209553897380829, 0.5234168171882629, -0.35581743717193604, -0.4855310916900635, 1.5744845867156982, 0.1440601348876953, -1.3897614479064941, -2.407095193862915, -0.20869393646717072, -0.9155579209327698, -0.07953987270593643, -0.6354840993881226, -1.0115554332733154, 1.645681619644165, 0.45608770847320557, -1.3224714994430542, -0.2823777198791504, -0.34617704153060913, -0.5709840059280396, 2.673086643218994, -1.474645972251892, -0.20659872889518738, -1.0172401666641235, -0.5151405930519104, 1.6916463375091553, -1.1425669193267822, -0.21422424912452698, -1.0829600095748901, -0.6530978679656982, -1.3263909816741943, -0.5609657764434814, -0.0019269855692982674, -0.8591668605804443, 0.9012294411659241, 0.06165783479809761, -1.0937856435775757, -0.33368366956710815, -0.886074960231781, 0.9038641452789307, -0.20752771198749542, 0.19856421649456024, 1.9450151920318604, 0.4150821268558502, -0.3853975534439087, 0.6972523927688599, 1.173309087753296, 0.6548779606819153, -0.6518168449401855, 0.2708387076854706, -0.6450484991073608, 0.29303470253944397, -1.4682964086532593, 0.2710932195186615, -2.9121451377868652, 0.7055889368057251, -0.015340449288487434, 0.019923530519008636, -0.07363380491733551, -1.3471864461898804, 1.1136059761047363, 2.568303108215332, -1.1976262331008911, 0.37935009598731995, 0.3892064094543457, 1.158656120300293, -1.6574887037277222, 0.2239968329668045, -0.46794384717941284, 2.1436872482299805, 0.10160596668720245, 1.2195465564727783, -0.48151421546936035, -2.1819632053375244, 0.5500028729438782, -1.2310272455215454, -1.1032718420028687, 0.7786837816238403, -0.8225448727607727, 0.13564883172512054, -1.4898111820220947, -0.20572002232074738, -0.9238672852516174, -1.2621530294418335, 0.828918993473053, 0.1357085108757019, 0.398070365190506, -0.6053552627563477, 0.36143746972084045, -2.16975998878479, -1.3339546918869019, -0.21593578159809113, -0.8759568333625793, 0.4890989363193512, -0.22021982073783875, 0.7113710045814514, -0.06553968787193298, 0.0790097713470459, 0.27484649419784546, 1.41973078250885, 3.3639235496520996, 0.24273520708084106, 0.33135589957237244, -0.12550607323646545, -0.9120223522186279, 1.413824439048767, 0.9928491711616516, -0.018154051154851913, -0.5099592804908752, -0.9944514036178589, 1.3007522821426392, 1.9245043992996216, 1.0264570713043213, 0.06877238303422928, -0.8178388476371765, -0.6767799258232117, -0.008645031601190567, 0.23770423233509064, 0.4849695563316345, 0.8798092007637024, 0.08542314916849136, 0.13503052294254303, 1.3683650493621826, 1.2282569408416748, -0.3787940442562103, 0.4671902358531952, -0.8973302841186523, -0.4655876159667969, 0.4728136956691742, 0.3231842517852783, 0.05595951899886131, 0.4069485664367676, -1.082723617553711, -0.29956942796707153, -0.24125562608242035, -0.9448999166488647, -0.7004696726799011, -0.4679986536502838, -0.35948702692985535, 1.577789068222046, 0.07355698943138123, -0.4460998773574829, -0.04766565561294556, -0.7804538607597351, -0.2271381914615631, -1.145249605178833, 0.3037371337413788, -0.12164351344108582, -0.017504137009382248, -0.1869555562734604, 1.7289950847625732, -0.8716425895690918, -2.0692505836486816, 0.21586953103542328, 0.41109344363212585, -0.4688017964363098, 0.1271226704120636, 1.6276453733444214, 0.5225706696510315, 1.4111318588256836, 1.2647991180419922, 0.9963950514793396, -0.5794262886047363, -1.266390085220337, 0.6226974129676819, 1.0212286710739136, -1.3535616397857666, 0.7978821396827698, 0.007932900451123714, -0.47341015934944153, 0.6623849868774414, 1.3571088314056396, 0.3974703550338745, -1.993632197380066, 0.8005015254020691, -0.8810250759124756, 0.7495992183685303, 0.7075158357620239, 0.8360335230827332, 0.3024372160434723, 0.8551028370857239, -1.3205921649932861, -1.1603492498397827, -0.7739850878715515, -0.5354206562042236, 1.896669626235962, -0.18106575310230255, 0.5232917070388794, -0.16994929313659668, -1.3073557615280151, -0.1025920957326889, 0.708877444267273, 0.4439636766910553, -0.4019627571105957, 0.8739726543426514, -0.633495569229126, -1.0055923461914062, -1.3201061487197876, -0.389121949672699, -0.859874427318573, -0.9606910347938538, 0.9959461092948914, 0.9738597869873047, 0.39131253957748413, 1.9436039924621582, 0.5821326971054077, 0.2583412826061249, -2.6032967567443848, 0.8636984825134277, 0.3245123028755188, -0.05587296560406685, 0.9086083769798279, 0.31656232476234436, 1.1363273859024048, 0.0006625037640333176, 0.525246798992157, -2.3885014057159424, 2.199021577835083, -0.17468656599521637, 0.6860714554786682, -0.009239450097084045, -0.15805743634700775, 1.1516920328140259, 0.4985853433609009, 0.5067519545555115, -1.060394048690796, 0.7101198434829712, -0.6030077934265137, 1.1802892684936523, 0.9842033982276917, -0.7727058529853821, 0.030494853854179382, 1.3395239114761353, 0.4933314919471741, -0.4983574151992798, -0.8602156639099121, -0.7982702851295471, 0.9636887311935425, 1.7174839973449707, 0.03879382461309433, 0.009849672205746174, 0.9624610543251038, 0.7156449556350708, -1.2670212984085083, 0.11826888471841812, -0.7533681988716125, -0.6703417301177979, 1.7142704725265503, 1.9644051790237427, -0.09449445456266403, -0.15780344605445862, -0.7796273827552795, -1.2529566287994385, 0.7722090482711792, 0.013895575888454914, 0.10684464126825333, 0.7054503560066223, -0.7038775682449341, 1.154477596282959, 0.800347089767456, 0.9119977355003357, 0.13369101285934448, 0.40301749110221863, 0.3281632959842682, -0.2931496500968933, -1.195980429649353, -0.2833215296268463, -1.104262113571167, -2.510545015335083, 0.5173512101173401, -0.25477173924446106, -1.355516791343689, -0.010874252766370773, -1.0798237323760986, 0.9231160879135132, -0.6811363697052002, -1.1621726751327515, -1.514357566833496, 0.2704681158065796, -0.04428892582654953, 0.8592635989189148, -1.5713368654251099, -0.0940428152680397, 1.2017507553100586, 0.8581632375717163, -0.6164351105690002, 0.9296701550483704, 0.3152403235435486, 1.0800286531448364, 0.822754442691803, -0.4088714122772217, 0.4657498002052307, 0.047734033316373825, -1.4268016815185547, 0.4845738112926483, 1.1551274061203003, 0.21263307332992554, 1.4779961109161377, -0.5825265049934387, 0.07674401998519897, 0.4716583788394928, -0.5452728867530823, -0.5138405561447144, -0.6980202794075012, 0.6734033226966858, 0.11023267358541489, -1.027371883392334, -0.021755728870630264, -0.03639720380306244, -0.20172952115535736, 0.20923325419425964, -1.5088744163513184, -0.17938093841075897, -0.330782949924469, -0.5604843497276306, -1.2581138610839844, -0.04904713109135628, 1.3259406089782715, -0.7769103050231934, -0.21295005083084106, 0.5729396343231201, 0.34910836815834045, 0.6008530259132385, 0.6109652519226074, -0.5931091904640198, -0.3738754987716675, -0.30706891417503357, -0.34180372953414917, 0.2339247316122055, 1.301925778388977, -0.18229849636554718, -1.0099210739135742, 0.6918846368789673, -0.4712260961532593, 0.038637425750494, 2.0266897678375244, 0.12666505575180054, -0.7841328382492065, 0.338369220495224, -0.7122533917427063, 1.8504092693328857, 1.6997196674346924, 1.3599509000778198, -0.13264860212802887, -0.9079583287239075, 0.5906883478164673, -0.37037158012390137, -0.3692935109138489, 0.8889480233192444, 0.4738619327545166, -0.17016948759555817, -1.4370678663253784, 0.5536873936653137, 1.4007902145385742, -0.9625804424285889, -0.8097452521324158, 0.1526184231042862, -0.874606192111969, 1.0194567441940308, 0.6751998066902161, 0.34650474786758423, 0.2616194784641266, 1.5526376962661743, 0.6763928532600403, -0.44003865122795105, 0.4441787898540497, 0.5952363014221191, -0.1111358031630516, -2.0860588550567627, -1.1776946783065796, 0.353232204914093, -0.43388715386390686, -1.5988919734954834, 1.3824083805084229, -1.1566691398620605, -0.9276841878890991, 0.5286878943443298, 0.12746967375278473, 1.3364514112472534, 0.28398361802101135, 1.6516859531402588, 2.0637216567993164, 0.8175743818283081, 0.3442932069301605, 1.3081207275390625, -0.07232530415058136, -0.3994174897670746, 1.829396367073059, -0.49821072816848755, 0.6070172786712646, 1.0651671886444092, -0.34654995799064636, -1.1561671495437622, -0.7891939878463745, -1.2928118705749512, -0.6540459990501404, 1.2342489957809448, 0.1563572883605957, -1.1373215913772583, 0.1893998235464096, 1.5882309675216675, 0.07849958539009094, -0.3525894284248352, 0.647261917591095, 0.38275831937789917, -0.8240267634391785, -0.013313325121998787, -0.9516550302505493, 0.5514671206474304, -0.09050775319337845, -0.2893105149269104, 0.21268440783023834, 0.5457954406738281, 1.3166375160217285, -0.0648132786154747, 0.1250762939453125, 1.2211774587631226, -1.3329790830612183, 1.486611008644104, -0.674543559551239, 0.2543061673641205, -2.481102705001831, 1.4510093927383423, -0.7712014317512512, 1.8348230123519897, -2.6075022220611572, 0.4006003141403198, -0.5299603343009949, -0.37633395195007324, 0.3702314496040344, -0.4155837297439575, 0.12062656134366989, -0.09341061115264893, -1.114272117614746, -0.04120027273893356, -0.7514136433601379, 0.5603966116905212, 1.2111748456954956, 1.4026216268539429, -1.1876471042633057, -0.3167787492275238, -1.775272250175476, -0.16949044167995453, -0.6775537729263306, 0.3648151159286499, -2.04032039642334, -0.08719507604837418, -1.9059680700302124, -2.3606760501861572, -1.3589873313903809, -0.7969069480895996, 1.0506798028945923, 0.14002496004104614, -0.9787338972091675, 1.0637599229812622, -0.37665408849716187, -1.7457717657089233, 1.0387924909591675, -2.1325457096099854 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
I see two options: 1. drop the "dev" keyword since it can be considered too generic 2. improve the pattern to something more reasonable, e.g. asking for a separator before and after "dev" ```python ["*[ ._-]dev[ ._-]*", "dev[ ._-]*"] ``` I think 2. is nice. If we agree on this one we can even decide to require the separation for the other split keywords "train", "test" etc.
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
67
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. I see two options: 1. drop the "dev" keyword since it can be considered too generic 2. improve the pattern to something more reasonable, e.g. asking for a separator before and after "dev" ```python ["*[ ._-]dev[ ._-]*", "dev[ ._-]*"] ``` I think 2. is nice. If we agree on this one we can even decide to require the separation for the other split keywords "train", "test" etc.
[ -1.2304366827011108, -0.9132674932479858, -0.7650538682937622, 1.4208508729934692, -0.24078860878944397, -1.2554055452346802, 0.22405798733234406, -1.1201188564300537, 1.7602893114089966, -0.7441615462303162, 0.42232751846313477, -1.6588940620422363, 0.10731183737516403, -0.5979660153388977, -0.7619490623474121, -0.9482074975967407, -0.37098610401153564, -0.7209661602973938, 0.93824702501297, 2.4396843910217285, 1.1465378999710083, -1.353454351425171, 2.6262407302856445, 0.6851997375488281, -0.062289126217365265, -1.101938247680664, 0.5295148491859436, 0.08464187383651733, -1.284877896308899, -0.41235268115997314, -1.03215754032135, -0.08194498717784882, -0.5136081576347351, -0.4805748462677002, 0.09340269863605499, 0.31780752539634705, -0.21328383684158325, -0.4423087239265442, -0.5969591736793518, -0.8179206848144531, 0.41448983550071716, -0.45182058215141296, 1.0208337306976318, -0.4557220935821533, 1.8424646854400635, -0.6628273725509644, 0.5260156989097595, 0.7434893846511841, 1.2728517055511475, 0.20745348930358887, 0.018054582178592682, 0.2991187572479248, 0.5336074829101562, 0.00879585463553667, 0.4340851902961731, 1.0591557025909424, 0.5696869492530823, 0.5917737483978271, 0.7279424071311951, -2.2075910568237305, 1.3146839141845703, -1.1621683835983276, 0.19344715774059296, 1.457337498664856, -0.9687971472740173, 0.41825011372566223, -1.7807999849319458, -0.02585362270474434, 0.578028678894043, -2.36653470993042, 0.1090637817978859, -1.3675421476364136, -0.5866868495941162, 0.9704421758651733, 0.4454597234725952, -1.2268182039260864, 0.11938099563121796, -0.4270389974117279, 0.8293469548225403, 0.5380187034606934, 1.0934077501296997, -1.7012298107147217, -0.07664062082767487, -0.3684590458869934, 0.11768084764480591, -1.3972686529159546, -1.4023815393447876, 0.6775452494621277, 0.6331769824028015, 0.4844473600387573, -0.06620847433805466, 0.987824559211731, -1.0204147100448608, 0.9104768633842468, -1.0325350761413574, -1.6759252548217773, -1.4432628154754639, -2.186340093612671, -2.2545042037963867, 0.9297410845756531, -0.47368714213371277, -0.5250738859176636, 2.0237481594085693, -1.0975092649459839, -1.59427011013031, 1.1671184301376343, 0.12549340724945068, 0.05473712831735611, 2.4976823329925537, 0.17779628932476044, -0.6534757614135742, 0.4665032923221588, -0.7282757759094238, 0.8244745135307312, -0.3903118968009949, 1.289790153503418, 0.3318798542022705, -1.041642189025879, 1.597090721130371, -0.2593706250190735, 0.5701473355293274, -0.688558042049408, -0.5587140917778015, -0.7232705354690552, 0.3046145737171173, 1.9139388799667358, -0.17857463657855988, 1.6135406494140625, -0.29085060954093933, -1.5204612016677856, -1.5842037200927734, 0.8622215986251831, 0.5667739510536194, -0.7661535143852234, 0.07865631580352783, -0.28151735663414, 0.1149919182062149, -0.07474975287914276, 1.1936990022659302, 1.2631340026855469, 0.8254507780075073, -0.2512512803077698, -0.8207089304924011, 0.2208501100540161, -0.09274089336395264, -0.8972662091255188, -1.746458649635315, -0.4306240677833557, 0.09284953027963638, 0.690924882888794, -1.2601467370986938, 1.7048845291137695, 0.8726586699485779, 1.861863374710083, 1.0448263883590698, -0.3221477270126343, 1.430031180381775, 0.007489600218832493, 1.8995736837387085, -0.5211256742477417, 0.679102897644043, -0.3703221380710602, -1.0365935564041138, 0.8148148655891418, -0.31453874707221985, -1.9708564281463623, -0.725448489189148, -0.9248921871185303, -0.21428018808364868, -0.6771504282951355, 1.0190080404281616, -0.3732638955116272, -1.326327919960022, 0.27139952778816223, -0.7148249745368958, -0.07783190906047821, -1.2556064128875732, 0.2971385717391968, 0.749565601348877, -0.7096883058547974, 0.17351771891117096, -0.2389916032552719, -1.3420120477676392, -0.48595091700553894, 0.2191704362630844, 1.9150300025939941, -0.898871660232544, 0.8926801681518555, 0.8886991739273071, -0.7339291572570801, -0.11163714528083801, 0.44340386986732483, -0.33998140692710876, 0.7490866780281067, -1.0363997220993042, -0.4439173638820648, 1.1952173709869385, -0.21984632313251495, -0.5651808381080627, 1.5562018156051636, 0.6096142530441284, -0.9729548692703247, -0.2579648792743683, -0.20946045219898224, -0.7902227640151978, 0.05397283285856247, -1.58405339717865, -0.16602857410907745, 0.2901339530944824, -1.533591389656067, -0.5274981260299683, -0.13950607180595398, 1.280451774597168, -0.19431151449680328, 1.3304015398025513, -0.3435705304145813, -0.3860248923301697, -0.3796888589859009, -0.3818243741989136, 0.12060938775539398, -0.2248086780309677, -0.6623572111129761, 0.3083530366420746, -0.7500304579734802, 0.36159029603004456, 1.389893889427185, 0.2957650125026703, 0.038154177367687225, 0.5739800333976746, 1.0259876251220703, 0.38338443636894226, -0.006345669273287058, -1.0297476053237915, -1.423498511314392, 2.0842697620391846, -1.5890085697174072, 1.9155527353286743, 0.7143933176994324, -0.16829721629619598, -1.7217179536819458, -1.9262773990631104, 1.3409757614135742, 1.215214490890503, 2.192033052444458, 0.6041767001152039, 0.2948927879333496, -0.8040904998779297, -0.5015062689781189, 0.3517298400402069, -1.1081626415252686, -0.7615990042686462, 0.1760208010673523, 2.326641321182251, 1.638342022895813, -0.5322945713996887, -0.1721310168504715, -1.1059819459915161, 1.3186893463134766, -0.1443963348865509, 0.2650640308856964, 2.0250701904296875, -0.3849322497844696, -1.1866390705108643, 1.2792606353759766, -2.198425769805908, 0.0903109759092331, 1.9154646396636963, 0.29337185621261597, 0.018034160137176514, -1.4506062269210815, -0.6481227278709412, -0.2567756474018097, -0.4228406548500061, -1.226588249206543, 0.5695651173591614, -0.32363301515579224, -0.861595869064331, -1.477298617362976, 0.1492379903793335, -1.138527512550354, -1.6204320192337036, 0.2581181824207306, 1.8649183511734009, 1.9639639854431152, -0.6629507541656494, 1.5305513143539429, -0.2293349802494049, 0.0717802494764328, 1.2164009809494019, 1.151027798652649, 3.107370138168335, 1.995823860168457, -1.128456473350525, 0.6616186499595642, -0.17452605068683624, -0.3710327446460724, 1.1278530359268188, -1.1465282440185547, 1.2308334112167358, -0.024634281173348427, -1.1411432027816772, -1.267278790473938, 0.8680807948112488, 0.379968523979187, 0.012045606039464474, -0.48297828435897827, 1.2990171909332275, 0.16618528962135315, 1.3547395467758179, 0.4672493636608124, -0.2198900431394577, 0.572587251663208, -0.5300527811050415, -0.45017027854919434, 1.574407935142517, 0.23821605741977692, -1.4874155521392822, -2.3060412406921387, -0.14929521083831787, -0.827116847038269, 0.030373405665159225, -0.5805363655090332, -0.9950951337814331, 1.8195890188217163, 0.3992457091808319, -1.319502353668213, -0.20085208117961884, -0.42149636149406433, -0.7230067849159241, 2.8338143825531006, -1.3832666873931885, -0.2621246576309204, -0.9455405473709106, -0.6428753733634949, 1.7404725551605225, -1.262588381767273, -0.11759716272354126, -1.008741855621338, -0.3881899118423462, -1.3292006254196167, -0.5039340853691101, -0.026448942720890045, -1.0480581521987915, 0.8433064222335815, 0.10864613950252533, -1.1098909378051758, -0.42978549003601074, -0.8369420766830444, 0.7030301690101624, -0.05079899728298187, 0.30395376682281494, 2.0762593746185303, 0.39409196376800537, -0.35940176248550415, 0.6334327459335327, 1.194271206855774, 0.6902541518211365, -0.5519391894340515, 0.25056901574134827, -0.5763200521469116, 0.32890573143959045, -1.194957971572876, 0.3237195909023285, -2.795672655105591, 0.5884946584701538, -0.03899942338466644, -0.16795489192008972, 0.0045897020027041435, -1.254125714302063, 1.2275861501693726, 2.640798568725586, -1.2054579257965088, 0.5221353769302368, 0.2734784185886383, 1.1461708545684814, -1.571398377418518, 0.45541301369667053, -0.31829655170440674, 2.1530046463012695, 0.2811724841594696, 1.1196162700653076, -0.42225149273872375, -2.2468836307525635, 0.6838275194168091, -1.1793262958526611, -1.272597312927246, 0.6947416067123413, -0.8181878924369812, 0.12330116331577301, -1.365338683128357, -0.14847517013549805, -0.8223626017570496, -1.2553290128707886, 0.7556545734405518, 0.18435853719711304, 0.5607543587684631, -0.683347761631012, 0.3750310242176056, -2.2365968227386475, -1.454339623451233, -0.30898118019104004, -0.908612847328186, 0.5124646425247192, -0.24834182858467102, 0.7498735785484314, -0.20117220282554626, 0.04670790582895279, 0.38617414236068726, 1.4972904920578003, 3.471956729888916, 0.2559601962566376, 0.4259141683578491, -0.24330468475818634, -0.9358701109886169, 1.4842920303344727, 1.0173746347427368, 0.01803690195083618, -0.5195729732513428, -1.0466054677963257, 1.226849913597107, 1.9855904579162598, 0.9878340363502502, 0.08673681318759918, -0.7372540235519409, -0.6978901028633118, -0.003958678338676691, 0.2454165816307068, 0.5085776448249817, 0.9974634051322937, 0.08144742250442505, 0.040775593370199203, 1.4644432067871094, 1.2003897428512573, -0.4299318790435791, 0.31688961386680603, -0.8160791397094727, -0.4348579943180084, 0.578941285610199, 0.35823944211006165, 0.059358224272727966, 0.38052627444267273, -0.8559329509735107, -0.26097381114959717, -0.3004385828971863, -1.0103336572647095, -0.6390044093132019, -0.3797961473464966, -0.4604807496070862, 1.7009590864181519, 0.022695425897836685, -0.4795534610748291, -0.11705837398767471, -0.7458738684654236, -0.11250193417072296, -0.9634453654289246, 0.2570821940898895, -0.06893261522054672, -0.15217691659927368, -0.07163558900356293, 1.8348292112350464, -0.8966130018234253, -2.0036282539367676, 0.26967108249664307, 0.23326608538627625, -0.42330947518348694, 0.2864227890968323, 1.551198124885559, 0.5076059699058533, 1.506618618965149, 1.3299565315246582, 0.9306806325912476, -0.5785115361213684, -1.4441646337509155, 0.4516638517379761, 0.850521981716156, -1.4414249658584595, 0.7853937745094299, 0.08313251286745071, -0.3251025378704071, 0.5868030190467834, 1.1945769786834717, 0.4830077290534973, -1.9345139265060425, 0.7294723987579346, -0.8504252433776855, 0.8138341903686523, 0.7567935585975647, 0.7277818322181702, 0.16640295088291168, 0.8306072950363159, -1.1281440258026123, -1.114899754524231, -0.8187557458877563, -0.636685848236084, 1.9657281637191772, -0.2697904407978058, 0.659115731716156, -0.1807461529970169, -1.244916319847107, -0.06902197003364563, 0.5584756135940552, 0.39894184470176697, -0.2826240658760071, 0.7310477495193481, -0.7554052472114563, -1.1428791284561157, -1.4602092504501343, -0.43984928727149963, -0.9863371253013611, -0.936643123626709, 1.0950169563293457, 0.7895470261573792, 0.3024410307407379, 1.8917535543441772, 0.6053898930549622, 0.27631187438964844, -2.6281659603118896, 0.8996841311454773, 0.35808464884757996, -0.069313183426857, 0.8863402605056763, 0.34306803345680237, 1.0319372415542603, -0.15431378781795502, 0.5343160629272461, -2.430295705795288, 2.4142117500305176, -0.32929420471191406, 0.7341067790985107, 0.057318881154060364, -0.0576351173222065, 1.0531845092773438, 0.6363551616668701, 0.5286577939987183, -1.1059037446975708, 0.640749454498291, -0.6341612339019775, 1.3681070804595947, 0.9196947813034058, -0.6493239402770996, 0.03613988310098648, 1.3339028358459473, 0.557267427444458, -0.5821762084960938, -0.89338618516922, -1.0230821371078491, 0.7583326697349548, 1.7365244626998901, -0.1418178230524063, -0.1085803285241127, 0.8315702676773071, 0.6314353942871094, -1.2002830505371094, 0.05287884548306465, -0.8761656880378723, -0.8082122206687927, 1.5513602495193481, 2.112412452697754, -0.0779990702867508, -0.20128542184829712, -0.6745861768722534, -1.1349867582321167, 0.7886912822723389, 0.05429728329181671, 0.20662659406661987, 0.6933861970901489, -0.5295755863189697, 1.114041805267334, 0.950098991394043, 0.9557932615280151, 0.2971826493740082, 0.42384451627731323, 0.2743118107318878, -0.2994946241378784, -1.1442571878433228, -0.22922733426094055, -1.079836368560791, -2.60866641998291, 0.503322958946228, -0.3440762758255005, -1.3687224388122559, -0.003739598672837019, -1.090405821800232, 0.9218658208847046, -0.5590433478355408, -1.093037724494934, -1.525200366973877, 0.13392233848571777, -0.06831689178943634, 0.9207860827445984, -1.6484209299087524, -0.22036509215831757, 1.3136415481567383, 0.9462007880210876, -0.7317701578140259, 0.9382158517837524, 0.1706084907054901, 1.1369198560714722, 0.787869930267334, -0.43596336245536804, 0.3750348687171936, -0.010828737169504166, -1.4017196893692017, 0.5041763782501221, 1.0690717697143555, 0.15715958178043365, 1.4820587635040283, -0.5129104256629944, 0.07070446014404297, 0.42562904953956604, -0.5116172432899475, -0.41879987716674805, -0.7329282164573669, 0.7557807564735413, 0.06607018411159515, -0.9002889394760132, 0.03892545774579048, -0.1295626312494278, -0.18684950470924377, 0.15187612175941467, -1.4133213758468628, -0.1990499645471573, -0.39957350492477417, -0.5771324634552002, -1.1589925289154053, -0.1771625429391861, 1.27022123336792, -0.763129472732544, -0.043876245617866516, 0.4496136009693146, 0.39194777607917786, 0.4962385892868042, 0.634945809841156, -0.7123957276344299, -0.4133087694644928, -0.2359842211008072, -0.30942559242248535, 0.37265557050704956, 1.4119246006011963, -0.15603075921535492, -1.0249711275100708, 0.655351459980011, -0.23642663657665253, 0.016723308712244034, 1.9869694709777832, -0.015141209587454796, -0.7859698534011841, 0.30810847878456116, -0.6842156052589417, 1.9383506774902344, 1.5911818742752075, 1.2711257934570312, -0.09636356681585312, -0.9398148655891418, 0.5646515488624573, -0.2836149036884308, -0.42716991901397705, 0.736419141292572, 0.28591951727867126, -0.2530277967453003, -1.3199379444122314, 0.7032631039619446, 1.2233246564865112, -0.8108220100402832, -0.8465083241462708, 0.08631782978773117, -0.8271562457084656, 0.9944209456443787, 0.6496273875236511, 0.49324434995651245, 0.2983708083629608, 1.6629079580307007, 0.78348708152771, -0.5263031721115112, 0.47969651222229004, 0.49899399280548096, -0.18331065773963928, -2.0884346961975098, -1.2495306730270386, 0.3248428404331207, -0.5792169570922852, -1.5603747367858887, 1.422441005706787, -1.205268144607544, -0.9356631636619568, 0.5777856111526489, 0.17369505763053894, 1.503311038017273, 0.33931925892829895, 1.6099177598953247, 2.01265549659729, 0.8380599617958069, 0.3743683397769928, 1.4044932126998901, -0.1357932686805725, -0.614823043346405, 1.8635352849960327, -0.5289924740791321, 0.4715511202812195, 1.075005054473877, -0.21062035858631134, -0.9615485072135925, -0.7879896759986877, -1.2276310920715332, -0.6838902831077576, 1.161070466041565, 0.03494518995285034, -1.2784701585769653, 0.19368883967399597, 1.5188391208648682, 0.13344430923461914, -0.33076420426368713, 0.4228721559047699, 0.48302286863327026, -0.8282836079597473, -0.10537899285554886, -0.9086559414863586, 0.5410102009773254, -0.17526006698608398, -0.3773161470890045, 0.34135082364082336, 0.4029705226421356, 1.283475637435913, -0.09337898343801498, 0.19328288733959198, 1.15545654296875, -1.4932750463485718, 1.5669729709625244, -0.616801381111145, 0.15552881360054016, -2.356834888458252, 1.4240766763687134, -0.7934352159500122, 1.9232507944107056, -2.6639363765716553, 0.3738064467906952, -0.509192705154419, -0.473459392786026, 0.3098044693470001, -0.3971591889858246, 0.21191902458667755, -0.1579115241765976, -1.1601536273956299, -0.0672953799366951, -0.8034828305244446, 0.5260252952575684, 1.0149784088134766, 1.3754565715789795, -1.064407229423523, -0.2893447279930115, -1.7558411359786987, -0.11831700056791306, -0.6925890445709229, 0.33819296956062317, -1.9983781576156616, -0.176468625664711, -1.9224941730499268, -2.3116888999938965, -1.4058547019958496, -0.8691078424453735, 1.0998859405517578, 0.07091718167066574, -0.8529911041259766, 1.0863142013549805, -0.26035332679748535, -1.878950595855713, 1.104896068572998, -2.127187728881836 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
Yes, I had something like that on mind: "dev" not being part of a word. ``` "[^a-zA-Z]dev[^a-zA-Z]"
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
17
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. Yes, I had something like that on mind: "dev" not being part of a word. ``` "[^a-zA-Z]dev[^a-zA-Z]"
[ -1.2723305225372314, -0.8942449688911438, -0.7610200047492981, 1.466282844543457, -0.23359723389148712, -1.2391021251678467, 0.18990127742290497, -1.1220753192901611, 1.770135521888733, -0.7383517622947693, 0.4224998950958252, -1.6981638669967651, -0.05125262588262558, -0.7224261164665222, -0.7274892330169678, -0.9396342635154724, -0.4141061007976532, -0.771224856376648, 1.023336410522461, 2.4580788612365723, 1.1144700050354004, -1.4086980819702148, 2.6271939277648926, 0.813409686088562, -0.10819537937641144, -0.9700953960418701, 0.4192541837692261, 0.04137866944074631, -1.224015474319458, -0.41600552201271057, -1.0830469131469727, -0.12383352220058441, -0.5939937233924866, -0.5655850768089294, -0.004372440278530121, 0.33527663350105286, -0.09385927766561508, -0.46429967880249023, -0.4852883517742157, -0.7438086867332458, 0.4678729474544525, -0.4083263874053955, 0.9268254637718201, -0.4313032031059265, 1.9028879404067993, -0.6800693273544312, 0.45704782009124756, 0.6918948888778687, 1.3209161758422852, 0.3059019148349762, -0.09911246597766876, 0.40171366930007935, 0.4771500825881958, -0.15751129388809204, 0.48085421323776245, 1.0418318510055542, 0.5232851505279541, 0.6837456226348877, 0.8145254254341125, -2.145209550857544, 1.3721897602081299, -1.1020258665084839, 0.26192644238471985, 1.4189852476119995, -1.1553232669830322, 0.37526050209999084, -1.73887038230896, 0.022133179008960724, 0.49548953771591187, -2.221137523651123, 0.13179956376552582, -1.3053617477416992, -0.6207805275917053, 0.9774169921875, 0.5164620280265808, -1.2707234621047974, 0.15632091462612152, -0.3619209825992584, 0.8537836074829102, 0.40631598234176636, 1.1867111921310425, -1.712164044380188, 0.10369620472192764, -0.39824697375297546, 0.19204796850681305, -1.3389394283294678, -1.296647071838379, 0.5921629071235657, 0.6788616180419922, 0.5454411506652832, -0.1464325189590454, 0.937743067741394, -0.8461546897888184, 0.8075293302536011, -1.0106229782104492, -1.5995676517486572, -1.4366967678070068, -2.1396095752716064, -2.3287763595581055, 0.9457697868347168, -0.532728374004364, -0.5670191645622253, 2.0411908626556396, -0.9425827860832214, -1.7005929946899414, 1.1657158136367798, 0.2811517119407654, -0.059410735964775085, 2.4733941555023193, 0.27927204966545105, -0.6750394701957703, 0.5276442766189575, -0.8045168519020081, 0.9087066054344177, -0.46560782194137573, 1.3764078617095947, 0.32197922468185425, -1.0376032590866089, 1.6325560808181763, -0.35296329855918884, 0.6431546211242676, -0.7125632762908936, -0.5970118045806885, -0.6919699907302856, 0.4383435547351837, 1.9179681539535522, -0.1181105449795723, 1.6213284730911255, -0.3427618443965912, -1.5518693923950195, -1.6015069484710693, 0.830829918384552, 0.4984087347984314, -0.8561991453170776, 0.26765549182891846, -0.3196350634098053, 0.14038723707199097, 0.029108546674251556, 1.1531277894973755, 1.3608264923095703, 0.8062815070152283, -0.22274993360042572, -0.8787821531295776, 0.17473486065864563, -0.00832426082342863, -0.9335080981254578, -1.6985111236572266, -0.35303378105163574, 0.003739088773727417, 0.524482250213623, -1.2280739545822144, 1.7413276433944702, 0.9200564622879028, 1.9337722063064575, 0.9628704786300659, -0.37614551186561584, 1.4608266353607178, -0.0295383520424366, 1.9346657991409302, -0.48370930552482605, 0.6869574189186096, -0.37331947684288025, -1.1208347082138062, 0.7258387804031372, -0.36212074756622314, -1.9563522338867188, -0.6768502593040466, -0.8946161866188049, -0.11490233987569809, -0.7626691460609436, 1.1452676057815552, -0.31057509779930115, -1.2792141437530518, 0.26688504219055176, -0.8143455386161804, 0.0615568645298481, -1.3679120540618896, 0.23189608752727509, 0.7299051880836487, -0.6774812340736389, 0.21439893543720245, -0.22410251200199127, -1.3868567943572998, -0.5361133217811584, 0.2245073765516281, 1.8396360874176025, -0.9536688923835754, 0.8834035992622375, 0.9358868598937988, -0.6672359108924866, -0.13289229571819305, 0.43971970677375793, -0.27196112275123596, 0.7795163989067078, -1.0754443407058716, -0.3693467378616333, 1.225342869758606, -0.13988392055034637, -0.5480897426605225, 1.4934687614440918, 0.6361408829689026, -0.9782904982566833, -0.09224216639995575, -0.2919507622718811, -0.809744656085968, -0.03283094987273216, -1.6777197122573853, -0.02937302365899086, 0.21785126626491547, -1.4472503662109375, -0.5788070559501648, -0.1996731162071228, 1.2834099531173706, -0.07943712174892426, 1.3097983598709106, -0.36179423332214355, -0.33205080032348633, -0.5130548477172852, -0.3891572058200836, 0.19009552896022797, -0.3298843204975128, -0.5829193592071533, 0.31262314319610596, -0.6222373247146606, 0.2664128243923187, 1.513434886932373, 0.2953263819217682, 0.15595103800296783, 0.5087488293647766, 1.1195086240768433, 0.29089921712875366, -0.05778839439153671, -0.9149587750434875, -1.3178118467330933, 2.0260679721832275, -1.4789785146713257, 1.8380825519561768, 0.7500835061073303, -0.04753515496850014, -1.720994234085083, -1.9462108612060547, 1.3773497343063354, 1.3511103391647339, 2.2388668060302734, 0.6240898966789246, 0.24821549654006958, -0.9689896106719971, -0.4247737526893616, 0.32840871810913086, -1.0897724628448486, -0.7733874320983887, 0.18285395205020905, 2.328798532485962, 1.6771299839019775, -0.5529661178588867, -0.1883552372455597, -1.140799641609192, 1.3223505020141602, -0.23890626430511475, 0.18416446447372437, 1.980608344078064, -0.3764820694923401, -1.209407091140747, 1.239378809928894, -2.2888972759246826, 0.006421198137104511, 1.8929651975631714, 0.32385721802711487, 0.12461014837026596, -1.4534415006637573, -0.8178889751434326, -0.15680932998657227, -0.4446777403354645, -1.2165167331695557, 0.5655328631401062, -0.25150009989738464, -0.809411883354187, -1.4802018404006958, 0.1955662965774536, -0.9856287837028503, -1.6186213493347168, 0.2290826290845871, 1.8079293966293335, 1.904284119606018, -0.7931445240974426, 1.5742719173431396, -0.15724316239356995, 0.08652552962303162, 1.2800534963607788, 1.1461915969848633, 3.0719306468963623, 1.9975119829177856, -1.0914639234542847, 0.652457594871521, -0.18291930854320526, -0.4520731568336487, 1.1863280534744263, -1.2179323434829712, 1.250764012336731, -0.0589795745909214, -1.1307685375213623, -1.2547155618667603, 0.7227001786231995, 0.42484018206596375, 0.026067763566970825, -0.5037640929222107, 1.2870500087738037, 0.13033083081245422, 1.399423360824585, 0.49297845363616943, -0.20005623996257782, 0.5741068720817566, -0.43486055731773376, -0.4252651035785675, 1.5999289751052856, 0.26473838090896606, -1.3768962621688843, -2.2659873962402344, -0.055332835763692856, -0.8810456395149231, -0.06477339565753937, -0.629814088344574, -1.0436713695526123, 1.6618894338607788, 0.3844560384750366, -1.2449718713760376, -0.21761102974414825, -0.41674426198005676, -0.7095047235488892, 2.799051284790039, -1.464697003364563, -0.2815404534339905, -0.8798142075538635, -0.5137144923210144, 1.842148780822754, -1.1095898151397705, -0.1028745025396347, -1.0927612781524658, -0.362016886472702, -1.3094266653060913, -0.43206730484962463, -0.1494433730840683, -0.9082121253013611, 0.871180534362793, 0.11476998031139374, -1.2288124561309814, -0.3803654909133911, -0.8063564896583557, 0.6861968636512756, 0.014052861370146275, 0.32508113980293274, 2.0661566257476807, 0.3381584584712982, -0.3806765675544739, 0.6733541488647461, 1.3015058040618896, 0.6413120627403259, -0.5113840103149414, 0.3271310031414032, -0.5234293937683105, 0.39987438917160034, -1.2601059675216675, 0.26765790581703186, -2.8085317611694336, 0.5937805771827698, -0.07389143854379654, -0.2981113791465759, -0.059984154999256134, -1.3621736764907837, 1.2297660112380981, 2.6206724643707275, -1.1659706830978394, 0.5096957683563232, 0.25555187463760376, 1.2227952480316162, -1.4977468252182007, 0.3200080096721649, -0.4273136258125305, 2.129467487335205, 0.19524890184402466, 1.0702186822891235, -0.42701202630996704, -2.3346757888793945, 0.5890083909034729, -1.180677890777588, -1.1941189765930176, 0.7731669545173645, -0.8326677680015564, -0.005804314278066158, -1.2802766561508179, -0.08812104910612106, -0.8637276887893677, -1.2464498281478882, 0.7410304546356201, 0.2949390411376953, 0.6478164196014404, -0.7810555696487427, 0.3551073968410492, -2.2753052711486816, -1.4221186637878418, -0.3726885914802551, -0.831467866897583, 0.48410096764564514, -0.2842004895210266, 0.769034206867218, -0.2700532078742981, 0.0017851898446679115, 0.4504362642765045, 1.512967824935913, 3.391589403152466, 0.22054511308670044, 0.40085574984550476, -0.22484710812568665, -0.8503974080085754, 1.5170902013778687, 1.0179113149642944, -0.052886515855789185, -0.6396182775497437, -1.0362576246261597, 1.2101777791976929, 2.0060513019561768, 1.0845080614089966, -0.09665235131978989, -0.7718372344970703, -0.6413927674293518, -0.007567692548036575, 0.20810122787952423, 0.43960392475128174, 1.0033565759658813, 0.10828302800655365, -0.006332767195999622, 1.4329575300216675, 1.0224268436431885, -0.4603614807128906, 0.4154090881347656, -0.7847797274589539, -0.4249963164329529, 0.570632815361023, 0.3567301630973816, 0.12254113703966141, 0.32472091913223267, -0.8545321822166443, -0.24872249364852905, -0.17622493207454681, -1.0072071552276611, -0.7461172938346863, -0.4153834581375122, -0.47113728523254395, 1.7595468759536743, -0.050916045904159546, -0.5928298234939575, -0.17272157967090607, -0.6889607310295105, -0.11249281466007233, -0.9304691553115845, 0.3087896406650543, -0.0649171769618988, -0.023560795933008194, -0.06333468109369278, 1.7492526769638062, -0.994971513748169, -2.0348124504089355, 0.280747652053833, 0.22767338156700134, -0.4394850730895996, 0.20268873870372772, 1.545619249343872, 0.5276058316230774, 1.5863189697265625, 1.3767400979995728, 0.9480178952217102, -0.6233980059623718, -1.4411249160766602, 0.6078810691833496, 0.7727000713348389, -1.4083207845687866, 0.724553644657135, 0.07551014423370361, -0.33319154381752014, 0.48719313740730286, 1.2078526020050049, 0.43487823009490967, -1.9872745275497437, 0.7869226336479187, -0.9408377408981323, 0.9670921564102173, 0.7241724133491516, 0.788875937461853, 0.09198141098022461, 0.7932313084602356, -1.158894658088684, -1.2057398557662964, -0.6898201704025269, -0.7197548747062683, 1.962391972541809, -0.25468242168426514, 0.6412066221237183, -0.19945751130580902, -1.2266271114349365, 0.00008473079651594162, 0.622814953327179, 0.3512737452983856, -0.366501122713089, 0.7243571877479553, -0.7293813824653625, -1.1734026670455933, -1.4534071683883667, -0.4912158250808716, -0.9491162896156311, -0.8977954983711243, 1.0175492763519287, 0.8374016284942627, 0.2741839289665222, 1.8631089925765991, 0.6466074585914612, 0.2864930033683777, -2.4870529174804688, 0.9660690426826477, 0.34165000915527344, -0.08885401487350464, 0.7617701292037964, 0.3869662880897522, 0.9518807530403137, -0.16965708136558533, 0.5692739486694336, -2.4971413612365723, 2.459813356399536, -0.23567448556423187, 0.6705211400985718, 0.04459304362535477, -0.020002827048301697, 1.0194761753082275, 0.6122099757194519, 0.4651033878326416, -1.1150556802749634, 0.6098523736000061, -0.6360581517219543, 1.3330329656600952, 0.8316091299057007, -0.6135144233703613, 0.034230973571538925, 1.2565187215805054, 0.5442250370979309, -0.5681090354919434, -0.9506836533546448, -0.9992040395736694, 0.9374852180480957, 1.7123135328292847, -0.20372755825519562, -0.00947708822786808, 0.8070085644721985, 0.5712013244628906, -1.2198498249053955, 0.007024833932518959, -0.9248300790786743, -0.8531206250190735, 1.5876771211624146, 2.0091805458068848, -0.09388156235218048, -0.10634907335042953, -0.6898831129074097, -1.2339138984680176, 0.8421852588653564, 0.12206599861383438, 0.21502088010311127, 0.6989759802818298, -0.5475417375564575, 1.162532925605774, 0.9416494369506836, 0.8504423499107361, 0.3386240005493164, 0.26626086235046387, 0.34768760204315186, -0.28061559796333313, -1.116851806640625, -0.2540372312068939, -1.1112394332885742, -2.510982036590576, 0.42533814907073975, -0.32203996181488037, -1.4116110801696777, 0.03196307644248009, -1.038783073425293, 0.8412309288978577, -0.5342498421669006, -1.041306972503662, -1.5278197526931763, 0.18661807477474213, -0.02309504523873329, 0.9253162741661072, -1.5795804262161255, -0.09172436594963074, 1.2923508882522583, 0.9572669267654419, -0.8775755763053894, 0.8330228328704834, 0.1653439998626709, 1.0807620286941528, 0.9961035847663879, -0.34949156641960144, 0.36088988184928894, -0.018938831984996796, -1.329674243927002, 0.5029880404472351, 1.110708236694336, 0.02169434353709221, 1.4817767143249512, -0.5534468293190002, -0.033787041902542114, 0.35563650727272034, -0.4418967366218567, -0.4688790440559387, -0.8969234228134155, 0.5757634043693542, 0.16249363124370575, -0.9464125037193298, -0.00661694910377264, -0.0019055316224694252, -0.1227545291185379, 0.2342708259820938, -1.4513496160507202, -0.17092406749725342, -0.4241950511932373, -0.5149123072624207, -1.1189254522323608, -0.11845244467258453, 1.2808609008789062, -0.6468216776847839, -0.05892856419086456, 0.5879793167114258, 0.3817952275276184, 0.49791282415390015, 0.6511040925979614, -0.7174408435821533, -0.36809828877449036, -0.1704753041267395, -0.31415024399757385, 0.35448336601257324, 1.3356208801269531, -0.13916504383087158, -0.9728000164031982, 0.7363438010215759, -0.3317500948905945, 0.0064588794484734535, 1.9550386667251587, 0.02771073952317238, -0.8438445925712585, 0.3656797409057617, -0.7388946413993835, 1.9556047916412354, 1.6408344507217407, 1.1786094903945923, -0.043957456946372986, -1.0324419736862183, 0.5399040579795837, -0.3299442231655121, -0.42523300647735596, 0.7820517420768738, 0.24350091814994812, -0.3959665298461914, -1.3694969415664673, 0.691291332244873, 1.2312415838241577, -0.7649708390235901, -0.8768087029457092, -0.013094552792608738, -0.7509041428565979, 0.982245147228241, 0.7450003623962402, 0.45861920714378357, 0.30928394198417664, 1.7110260725021362, 0.8006715774536133, -0.49775856733322144, 0.40768885612487793, 0.4966058135032654, -0.08180397003889084, -2.0635364055633545, -1.3163076639175415, 0.28422579169273376, -0.5248088836669922, -1.5759639739990234, 1.3500217199325562, -1.2234936952590942, -0.9729726910591125, 0.6571803689002991, 0.08856262266635895, 1.4853543043136597, 0.31732532382011414, 1.5531772375106812, 2.1198036670684814, 0.8938438892364502, 0.36188387870788574, 1.3400288820266724, -0.21164850890636444, -0.5107464790344238, 1.8384829759597778, -0.4719846248626709, 0.4761982262134552, 1.0107967853546143, -0.20647351443767548, -1.017319679260254, -0.7731824517250061, -1.3312900066375732, -0.7924184203147888, 1.0904672145843506, 0.07633170485496521, -1.2627938985824585, 0.3133859932422638, 1.5464743375778198, 0.03163626417517662, -0.34183281660079956, 0.4544574022293091, 0.49452346563339233, -0.9596538543701172, 0.0021488573402166367, -0.9770572185516357, 0.545409083366394, -0.18191590905189514, -0.422944575548172, 0.39183109998703003, 0.48362740874290466, 1.2767586708068848, 0.015693727880716324, 0.18716269731521606, 1.0868163108825684, -1.4384340047836304, 1.6110286712646484, -0.6859425902366638, 0.23968151211738586, -2.3062407970428467, 1.4459794759750366, -0.6907109618186951, 1.8917796611785889, -2.779200553894043, 0.4433327913284302, -0.44010913372039795, -0.6082499027252197, 0.35905012488365173, -0.33160558342933655, 0.2992417812347412, -0.19326139986515045, -1.1648036241531372, -0.021468330174684525, -0.7426290512084961, 0.4432027339935303, 0.9428802132606506, 1.348256230354309, -0.9973955750465393, -0.30051493644714355, -1.6828792095184326, -0.16319622099399567, -0.5773430466651917, 0.3294006288051605, -2.0173470973968506, -0.25063759088516235, -1.901973843574524, -2.2827489376068115, -1.3655351400375366, -0.8825916051864624, 1.2651989459991455, 0.09820079803466797, -0.9576373100280762, 1.0686355829238892, -0.4281489849090576, -1.9216105937957764, 1.0641369819641113, -2.1236934661865234 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
Is there a reason why we want that regex? It feels like something that'll still be an issue for some weird case. "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified?
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
37
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. Is there a reason why we want that regex? It feels like something that'll still be an issue for some weird case. "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified?
[ -1.2567648887634277, -0.9787590503692627, -0.7155659794807434, 1.4439048767089844, -0.2752012312412262, -1.2181360721588135, 0.14196987450122833, -1.0902304649353027, 1.6420996189117432, -0.7402733564376831, 0.28494128584861755, -1.714043378829956, -0.11612063646316528, -0.6091451048851013, -0.6934683918952942, -0.970275342464447, -0.42444008588790894, -0.832158088684082, 1.0525192022323608, 2.4434120655059814, 1.1403218507766724, -1.347886562347412, 2.6359572410583496, 0.6779866218566895, -0.17948664724826813, -1.1003029346466064, 0.5225281119346619, 0.10123512148857117, -1.1469942331314087, -0.4629371762275696, -1.0643316507339478, -0.06080237776041031, -0.5306450724601746, -0.4428015351295471, 0.003619215451180935, 0.39908355474472046, -0.20098964869976044, -0.40498626232147217, -0.5872013568878174, -0.6959826350212097, 0.4728352427482605, -0.3617500960826874, 0.9765339493751526, -0.43405336141586304, 1.9128122329711914, -0.6156002283096313, 0.4667108654975891, 0.7228648662567139, 1.3840742111206055, 0.292529433965683, -0.03909099102020264, 0.2176302969455719, 0.4303213357925415, -0.1198917031288147, 0.5025998950004578, 1.0092240571975708, 0.49450209736824036, 0.6233399510383606, 0.6981923580169678, -2.2131919860839844, 1.3463095426559448, -1.135827660560608, 0.17689251899719238, 1.4646342992782593, -1.009433388710022, 0.4450288414955139, -1.7389652729034424, 0.06900955736637115, 0.5363796353340149, -2.325143575668335, 0.1412014365196228, -1.2617653608322144, -0.49709194898605347, 0.9534144401550293, 0.47394827008247375, -1.207465648651123, 0.1956707090139389, -0.3992276191711426, 0.9256303906440735, 0.4730212986469269, 1.0671570301055908, -1.662346363067627, -0.014330482110381126, -0.35703378915786743, 0.018992776051163673, -1.4229193925857544, -1.4006942510604858, 0.6219388246536255, 0.6489851474761963, 0.6196101903915405, -0.050450608134269714, 0.9768646955490112, -0.9122273325920105, 0.730520486831665, -1.0029065608978271, -1.5562448501586914, -1.4071959257125854, -2.221524715423584, -2.3591392040252686, 0.9232521653175354, -0.5003781318664551, -0.6200947165489197, 2.0443813800811768, -0.9527778029441833, -1.7394020557403564, 1.1812667846679688, 0.2603589594364166, 0.046414799988269806, 2.52608585357666, 0.2903011739253998, -0.6224531531333923, 0.4337339699268341, -0.7945045828819275, 0.9210415482521057, -0.36314699053764343, 1.4189542531967163, 0.36712390184402466, -0.9727859497070312, 1.6257609128952026, -0.2645719051361084, 0.6137153506278992, -0.6077560186386108, -0.7098286747932434, -0.8550463914871216, 0.38254615664482117, 1.9437843561172485, -0.18893449008464813, 1.6384904384613037, -0.37460607290267944, -1.5868138074874878, -1.689835548400879, 0.8279470801353455, 0.5297030806541443, -0.8708035945892334, 0.13365326821804047, -0.4148271679878235, 0.1553393453359604, -0.029541250318288803, 1.1725953817367554, 1.255712628364563, 0.7267457246780396, -0.27987998723983765, -0.8486781120300293, 0.1962527334690094, -0.0763699933886528, -0.803665816783905, -1.7697429656982422, -0.4094632863998413, 0.04172170162200928, 0.6026949286460876, -1.2573524713516235, 1.6576212644577026, 0.914965808391571, 2.007380247116089, 0.9732000827789307, -0.3411825895309448, 1.430588722229004, -0.04109346866607666, 1.8347443342208862, -0.5211833715438843, 0.711574137210846, -0.341421514749527, -1.1805288791656494, 0.7939425706863403, -0.3537648022174835, -1.9073621034622192, -0.8427242636680603, -0.8819060325622559, -0.1779308021068573, -0.6555434465408325, 1.0119690895080566, -0.3486028015613556, -1.3107413053512573, 0.20665311813354492, -0.6361923217773438, 0.0683777928352356, -1.3047994375228882, 0.22450879216194153, 0.777742862701416, -0.7025746703147888, 0.15416455268859863, -0.18030579388141632, -1.3623977899551392, -0.4747525155544281, 0.2128371000289917, 1.958598017692566, -0.9503732323646545, 0.9316257238388062, 0.8974389433860779, -0.7061619758605957, 0.009019151329994202, 0.2819342315196991, -0.27302396297454834, 0.7176918387413025, -0.9855597019195557, -0.39646026492118835, 1.248184323310852, -0.3027099370956421, -0.6134138107299805, 1.4958679676055908, 0.6914761662483215, -1.0259562730789185, -0.175121009349823, -0.3598725199699402, -0.7927979826927185, -0.054199084639549255, -1.600075602531433, -0.10731197148561478, 0.2107105255126953, -1.5204607248306274, -0.5201120972633362, -0.22652757167816162, 1.3552061319351196, -0.10891155898571014, 1.3049973249435425, -0.4288199245929718, -0.35601821541786194, -0.41019004583358765, -0.45005908608436584, 0.21290433406829834, -0.37614572048187256, -0.537939727306366, 0.302450954914093, -0.7428657412528992, 0.3222358822822571, 1.5003002882003784, 0.352498322725296, 0.12239324301481247, 0.5290459394454956, 1.003492832183838, 0.4839891791343689, -0.08167997747659683, -0.9393298029899597, -1.398332953453064, 1.9626493453979492, -1.4900931119918823, 1.8636586666107178, 0.6714402437210083, -0.1886923909187317, -1.7174696922302246, -1.8891311883926392, 1.230401635169983, 1.395939588546753, 2.216449737548828, 0.6359342932701111, 0.27877065539360046, -0.8973459005355835, -0.5140352249145508, 0.3282009959220886, -1.1167445182800293, -0.6909614205360413, 0.13932909071445465, 2.2635600566864014, 1.703911542892456, -0.6447270512580872, -0.22351491451263428, -1.0017035007476807, 1.2844282388687134, -0.15921056270599365, 0.3973652124404907, 2.0449330806732178, -0.3901488780975342, -1.1141425371170044, 1.308276891708374, -2.313014030456543, 0.10544200241565704, 1.8939746618270874, 0.30689528584480286, 0.16161538660526276, -1.504235029220581, -0.7201831936836243, -0.27955809235572815, -0.4158736765384674, -1.2054704427719116, 0.6217421293258667, -0.207754984498024, -0.8581182360649109, -1.5172855854034424, 0.2685810327529907, -1.0503854751586914, -1.6438602209091187, 0.31816938519477844, 1.9496873617172241, 1.9757211208343506, -0.8145336508750916, 1.479798436164856, -0.1437041312456131, 0.11300663650035858, 1.2725623846054077, 1.1416176557540894, 3.0138988494873047, 1.9723201990127563, -1.0827299356460571, 0.7039710283279419, -0.18075230717658997, -0.4126632511615753, 1.1668884754180908, -1.1688902378082275, 1.2067158222198486, -0.07966101914644241, -1.1437780857086182, -1.3520760536193848, 0.7796745896339417, 0.34314677119255066, 0.001759071834385395, -0.42034897208213806, 1.3498234748840332, 0.15555091202259064, 1.393305778503418, 0.40773826837539673, -0.32661837339401245, 0.590002179145813, -0.4951654374599457, -0.4796834886074066, 1.5549798011779785, 0.27859118580818176, -1.4774571657180786, -2.156644344329834, -0.19178301095962524, -0.7707000970840454, 0.008423995226621628, -0.512391984462738, -0.9815955758094788, 1.6936966180801392, 0.3662462532520294, -1.2666021585464478, -0.20728665590286255, -0.3512722849845886, -0.5826317071914673, 2.819985866546631, -1.356820821762085, -0.2208995372056961, -0.8973328471183777, -0.4741916060447693, 1.8421082496643066, -1.202824354171753, -0.2053997963666916, -1.039958119392395, -0.526303231716156, -1.3326820135116577, -0.4320475459098816, -0.09594215452671051, -0.9267887473106384, 0.8322804570198059, 0.1738969087600708, -1.1058201789855957, -0.43051373958587646, -0.8365469574928284, 0.8612363338470459, -0.06563400477170944, 0.31352823972702026, 2.059122323989868, 0.3494930863380432, -0.37611162662506104, 0.748360812664032, 1.2531296014785767, 0.5702531933784485, -0.5677000880241394, 0.1530066728591919, -0.5706043243408203, 0.3834502696990967, -1.2715728282928467, 0.24825988709926605, -2.9270737171173096, 0.5661951303482056, -0.08565719425678253, -0.23785023391246796, -0.0030935369431972504, -1.354358434677124, 1.2548400163650513, 2.5982184410095215, -1.1902475357055664, 0.5102921724319458, 0.40979862213134766, 1.2013226747512817, -1.5333603620529175, 0.4878365695476532, -0.39606422185897827, 2.1188743114471436, 0.24133442342281342, 1.1463488340377808, -0.46621260046958923, -2.2927627563476562, 0.6457788348197937, -1.194284439086914, -1.2311866283416748, 0.7149712443351746, -0.9187169075012207, 0.06149623543024063, -1.4174530506134033, -0.1417919099330902, -0.8631807565689087, -1.3686118125915527, 0.8087402582168579, 0.1786990612745285, 0.5269159078598022, -0.6301894187927246, 0.4034465551376343, -2.293297290802002, -1.4590599536895752, -0.3669944405555725, -0.9355911016464233, 0.44244036078453064, -0.3471418023109436, 0.7196052670478821, -0.20220550894737244, 0.07876080274581909, 0.40158796310424805, 1.5011805295944214, 3.451814651489258, 0.23334595561027527, 0.36010482907295227, -0.1793886423110962, -0.9004158973693848, 1.493747591972351, 1.0452698469161987, -0.04629071056842804, -0.5579302906990051, -1.0049242973327637, 1.199034571647644, 2.0443766117095947, 1.0599621534347534, -0.089963398873806, -0.7315705418586731, -0.6328436732292175, -0.005795670673251152, 0.2656465768814087, 0.5734527111053467, 1.0037485361099243, 0.003274783492088318, 0.04489297419786453, 1.4395281076431274, 1.1638195514678955, -0.4583006799221039, 0.2894569933414459, -0.8330539464950562, -0.47704944014549255, 0.4781660735607147, 0.2611388564109802, 0.09383205324411392, 0.38504570722579956, -0.935505747795105, -0.19532737135887146, -0.248932346701622, -0.9246238470077515, -0.7647057771682739, -0.37700071930885315, -0.47334691882133484, 1.6380956172943115, 0.04075019061565399, -0.5640591979026794, -0.13601721823215485, -0.7156685590744019, -0.201532781124115, -0.9774917364120483, 0.22339335083961487, -0.026736335828900337, -0.155435711145401, -0.11274220794439316, 1.793422818183899, -0.9895502328872681, -2.0281269550323486, 0.2689366042613983, 0.33839672803878784, -0.3171706795692444, 0.24781502783298492, 1.5538523197174072, 0.43483638763427734, 1.4926964044570923, 1.3536832332611084, 0.9960309267044067, -0.6177877187728882, -1.4038264751434326, 0.5903511643409729, 0.7727059125900269, -1.4058412313461304, 0.7558495998382568, 0.05366162955760956, -0.2789275348186493, 0.5248193740844727, 1.1585242748260498, 0.5359956622123718, -1.8995897769927979, 0.8536090850830078, -1.0019519329071045, 0.785834550857544, 0.7558811902999878, 0.8075916171073914, 0.1936948001384735, 0.8122784495353699, -1.0711761713027954, -1.1901172399520874, -0.7814749479293823, -0.6365927457809448, 1.929898738861084, -0.3476770222187042, 0.6534470915794373, -0.09493766725063324, -1.1971795558929443, -0.05995335429906845, 0.6106494069099426, 0.31922265887260437, -0.3075694441795349, 0.8343074321746826, -0.6593996286392212, -1.1161736249923706, -1.3980547189712524, -0.4103872776031494, -1.0373203754425049, -0.9485362768173218, 1.052513599395752, 0.8581131100654602, 0.2594611942768097, 1.8769057989120483, 0.5656841397285461, 0.38263294100761414, -2.6385793685913086, 0.9831774830818176, 0.33013808727264404, -0.07107283174991608, 0.7684836983680725, 0.29522904753685, 0.9702650904655457, -0.10171687602996826, 0.5410523414611816, -2.4527738094329834, 2.387294292449951, -0.2888290286064148, 0.6384856700897217, 0.05875773727893829, -0.10272867977619171, 1.0214896202087402, 0.6584678888320923, 0.5262202024459839, -1.0958247184753418, 0.6814192533493042, -0.5454664826393127, 1.2789089679718018, 0.9778447151184082, -0.6192504167556763, 0.06474079936742783, 1.3595874309539795, 0.6182867288589478, -0.5329052209854126, -0.9037679433822632, -1.0055607557296753, 0.8482822775840759, 1.7055904865264893, -0.22116543352603912, -0.10290168970823288, 0.8049663305282593, 0.5829297304153442, -1.1963859796524048, -0.007274603936821222, -0.8302660584449768, -0.7497097849845886, 1.6062113046646118, 2.05476975440979, -0.0582539439201355, -0.19211892783641815, -0.6133409738540649, -1.112064003944397, 0.7524653673171997, 0.03307288885116577, 0.14625097811222076, 0.7185383439064026, -0.5743317008018494, 1.165472388267517, 0.7882626056671143, 0.8857182264328003, 0.2018430531024933, 0.3444487452507019, 0.36829301714897156, -0.24624986946582794, -1.1322232484817505, -0.31088265776634216, -1.1137676239013672, -2.5544795989990234, 0.4018496572971344, -0.382336288690567, -1.367289423942566, -0.02860943041741848, -1.0822707414627075, 0.9339389801025391, -0.5526592135429382, -1.0741353034973145, -1.5527374744415283, 0.15172982215881348, -0.10745828598737717, 0.8479902148246765, -1.648943543434143, -0.14502635598182678, 1.3611317873001099, 0.9010403752326965, -0.8389312624931335, 1.0187523365020752, 0.257210373878479, 1.106928825378418, 0.7602505087852478, -0.3156105875968933, 0.492349237203598, -0.05916079133749008, -1.3589258193969727, 0.5370873808860779, 1.0557730197906494, 0.06109136343002319, 1.472919225692749, -0.5713304877281189, -0.00605261605232954, 0.3895195424556732, -0.5897595882415771, -0.4273180067539215, -0.6869141459465027, 0.8022743463516235, 0.12589901685714722, -0.9075686931610107, -0.012273324653506279, -0.18726015090942383, -0.18161995708942413, 0.187632754445076, -1.4554747343063354, -0.3328275680541992, -0.40206271409988403, -0.44693297147750854, -1.1629960536956787, -0.05567574501037598, 1.366640567779541, -0.7418097257614136, -0.1086547002196312, 0.5424094796180725, 0.40769222378730774, 0.504136323928833, 0.6574774384498596, -0.7375814318656921, -0.242799311876297, -0.2372828722000122, -0.2663470506668091, 0.39617612957954407, 1.3596066236495972, -0.06309736520051956, -1.0547702312469482, 0.7619572281837463, -0.23964905738830566, -0.09418948739767075, 1.9949352741241455, 0.01848439872264862, -0.810272216796875, 0.30521056056022644, -0.7410773634910583, 1.9135493040084839, 1.5944383144378662, 1.2116830348968506, -0.07197225838899612, -0.8940849900245667, 0.5611485838890076, -0.2055257111787796, -0.3840077221393585, 0.790255069732666, 0.3311212956905365, -0.335004597902298, -1.4518048763275146, 0.7522944808006287, 1.142749309539795, -0.7908274531364441, -0.7780499458312988, 0.02465747483074665, -0.8154934048652649, 1.0398848056793213, 0.62557053565979, 0.4584742784500122, 0.22546975314617157, 1.7226154804229736, 0.7314890027046204, -0.45871347188949585, 0.34124866127967834, 0.5098889470100403, -0.18306107819080353, -2.0654544830322266, -1.183324933052063, 0.38343244791030884, -0.5596736073493958, -1.5452756881713867, 1.424407720565796, -1.2114613056182861, -0.9382745027542114, 0.5265354514122009, 0.10400030761957169, 1.4570133686065674, 0.3808912932872772, 1.6337735652923584, 2.1758100986480713, 1.0049042701721191, 0.3677114248275757, 1.4341375827789307, -0.22086553275585175, -0.5585134029388428, 1.8005776405334473, -0.41285327076911926, 0.4622267484664917, 1.092760443687439, -0.3155320882797241, -0.8545507192611694, -0.7689453363418579, -1.2629852294921875, -0.5769379734992981, 1.0396418571472168, 0.0957459956407547, -1.2237735986709595, 0.21704989671707153, 1.4603649377822876, 0.08562512695789337, -0.29410263895988464, 0.45265331864356995, 0.39032280445098877, -0.9194989800453186, -0.026743650436401367, -0.881320595741272, 0.48420050740242004, -0.2053859382867813, -0.4029451906681061, 0.37011733651161194, 0.36325886845588684, 1.2914806604385376, -0.11022021621465683, 0.2639044523239136, 1.067304015159607, -1.457084059715271, 1.6084831953048706, -0.5823001861572266, 0.12738452851772308, -2.362337350845337, 1.4010475873947144, -0.6953363418579102, 2.0101373195648193, -2.6549792289733887, 0.4601856470108032, -0.4837314486503601, -0.5143299698829651, 0.372589647769928, -0.4269525408744812, 0.1682031750679016, -0.15545234084129333, -1.192238211631775, 0.05056008696556091, -0.7061665654182434, 0.5399129390716553, 0.8746317028999329, 1.351731538772583, -1.0609617233276367, -0.3202280104160309, -1.7357686758041382, -0.1705806851387024, -0.6956089735031128, 0.33448514342308044, -2.0490708351135254, -0.2934408485889435, -1.9015886783599854, -2.2188563346862793, -1.337386965751648, -0.8224440217018127, 1.1560887098312378, 0.0822272077202797, -0.9168548583984375, 1.2115620374679565, -0.30197417736053467, -1.9576327800750732, 1.0799379348754883, -2.0593857765197754 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
The regex is needed as part of our effort to make datasets configurable without code. In particular we define some generic dataset repository structures that users can follow > ``` > "[^a-zA-Z]*dev[^a-zA-Z]*" > ``` unfortunately our glob doesn't support "^": https://github.com/fsspec/filesystem_spec/blob/3e739db7e53f5b408319dcc9d11e92bc1f938902/fsspec/spec.py#L465-L479
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
41
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. The regex is needed as part of our effort to make datasets configurable without code. In particular we define some generic dataset repository structures that users can follow > ``` > "[^a-zA-Z]*dev[^a-zA-Z]*" > ``` unfortunately our glob doesn't support "^": https://github.com/fsspec/filesystem_spec/blob/3e739db7e53f5b408319dcc9d11e92bc1f938902/fsspec/spec.py#L465-L479
[ -1.1942188739776611, -0.9174829125404358, -0.7901848554611206, 1.479820728302002, -0.1283041387796402, -1.2864490747451782, 0.07857349514961243, -1.0826364755630493, 1.7161887884140015, -0.6837836503982544, 0.3193337619304657, -1.7205049991607666, -0.02331237867474556, -0.6761690378189087, -0.7710213661193848, -0.914308488368988, -0.29281896352767944, -0.8501645922660828, 0.9772773385047913, 2.4967541694641113, 1.1677100658416748, -1.3134466409683228, 2.729343891143799, 0.6924857497215271, -0.30814462900161743, -1.0517884492874146, 0.47484874725341797, 0.06827148795127869, -1.151528239250183, -0.510435938835144, -0.9777611494064331, -0.055636435747146606, -0.5703302025794983, -0.586121678352356, 0.04645056277513504, 0.3716317415237427, -0.1633596271276474, -0.32824233174324036, -0.5111066102981567, -0.7223231792449951, 0.46738559007644653, -0.3876812756061554, 0.9359678626060486, -0.390008807182312, 1.8764183521270752, -0.6695886850357056, 0.4054047465324402, 0.6508274674415588, 1.3691527843475342, 0.22502192854881287, -0.07119616121053696, 0.2986549139022827, 0.3570637106895447, -0.02037767507135868, 0.45082423090934753, 1.1665161848068237, 0.6021198630332947, 0.5417288541793823, 0.7493905425071716, -2.1554555892944336, 1.3814713954925537, -1.0726670026779175, 0.16169928014278412, 1.3953123092651367, -1.0173814296722412, 0.5013790726661682, -1.7889293432235718, -0.034907687455415726, 0.5271661281585693, -2.357760190963745, 0.16783349215984344, -1.3594553470611572, -0.6283382773399353, 0.9751918911933899, 0.35199111700057983, -1.2380614280700684, 0.16871418058872223, -0.4687623083591461, 0.9680882096290588, 0.42138341069221497, 1.125374674797058, -1.7304364442825317, -0.0007908763363957405, -0.29922422766685486, 0.12167391180992126, -1.4389097690582275, -1.4743844270706177, 0.5902755856513977, 0.6515083312988281, 0.604790449142456, -0.07260078191757202, 0.9280585050582886, -0.8822795152664185, 0.7984667420387268, -0.9563917517662048, -1.6096082925796509, -1.4012030363082886, -2.1820244789123535, -2.3220415115356445, 0.8917481303215027, -0.5091907382011414, -0.5495452284812927, 2.007122278213501, -1.04315984249115, -1.7298849821090698, 1.1607496738433838, 0.2550927698612213, 0.017710532993078232, 2.444791078567505, 0.27313047647476196, -0.6731579303741455, 0.42326387763023376, -0.7347895503044128, 0.8628580570220947, -0.40159934759140015, 1.4118022918701172, 0.48996075987815857, -1.0595505237579346, 1.6202641725540161, -0.35201868414878845, 0.5876287817955017, -0.7322387099266052, -0.5727435350418091, -0.8073230981826782, 0.4735904932022095, 1.9558998346328735, -0.3107864558696747, 1.6721959114074707, -0.34346070885658264, -1.544802188873291, -1.5169880390167236, 0.7870901823043823, 0.4783034920692444, -0.8363019227981567, 0.22509536147117615, -0.43257322907447815, 0.11074720323085785, 0.011282447725534439, 1.1427102088928223, 1.250156044960022, 0.6906686425209045, -0.2712894678115845, -0.8546593189239502, 0.2142283022403717, -0.042896173894405365, -0.7804428339004517, -1.7828857898712158, -0.33818531036376953, 0.126686230301857, 0.6297685503959656, -1.3150091171264648, 1.6733200550079346, 0.8166725635528564, 1.9792934656143188, 0.9600064754486084, -0.33980658650398254, 1.4418675899505615, -0.03327813744544983, 1.9117863178253174, -0.567812442779541, 0.7349720597267151, -0.30754023790359497, -1.0921385288238525, 0.8116983771324158, -0.39056849479675293, -1.990900993347168, -0.736053466796875, -0.9250951409339905, -0.14979690313339233, -0.7798073291778564, 0.9136834740638733, -0.33273977041244507, -1.351361632347107, 0.2987895905971527, -0.7232615947723389, 0.1529085487127304, -1.3670129776000977, 0.2508898973464966, 0.7421813607215881, -0.6867801547050476, 0.08699704706668854, -0.21539223194122314, -1.3335198163986206, -0.5270254015922546, 0.22679588198661804, 2.004338502883911, -0.8139795064926147, 0.9729763269424438, 0.9779526591300964, -0.6590078473091125, -0.022711023688316345, 0.43853533267974854, -0.3131166994571686, 0.8334594964981079, -1.122256875038147, -0.37773022055625916, 1.1412612199783325, -0.1306794434785843, -0.5577636361122131, 1.4815590381622314, 0.7801566123962402, -1.014286994934082, -0.22647139430046082, -0.29559600353240967, -0.7895079255104065, -0.0026601506397128105, -1.5961254835128784, -0.16514624655246735, 0.2629952132701874, -1.444461703300476, -0.5351381897926331, -0.23762477934360504, 1.3207560777664185, -0.17894232273101807, 1.361627221107483, -0.3181944489479065, -0.343071848154068, -0.3578386902809143, -0.42470890283584595, 0.17615321278572083, -0.3145541548728943, -0.6491072773933411, 0.2740003168582916, -0.6068145036697388, 0.3724361062049866, 1.3830212354660034, 0.40119385719299316, 0.0260525681078434, 0.49513551592826843, 1.1628468036651611, 0.2571587860584259, -0.06912322342395782, -0.9130212068557739, -1.4555410146713257, 2.029970645904541, -1.4940232038497925, 1.8897087574005127, 0.8490989804267883, -0.0020310627296566963, -1.6810412406921387, -1.9131927490234375, 1.3749467134475708, 1.3203197717666626, 2.2505385875701904, 0.6293459534645081, 0.28608188033103943, -0.8585995435714722, -0.5795322060585022, 0.28224486112594604, -1.0954560041427612, -0.6995614767074585, 0.13959109783172607, 2.365816593170166, 1.7178175449371338, -0.5691877007484436, -0.2844228148460388, -1.0470143556594849, 1.2143466472625732, -0.20232896506786346, 0.20925547182559967, 2.0786690711975098, -0.3471221625804901, -1.1759634017944336, 1.245402455329895, -2.2627365589141846, 0.059232305735349655, 1.9235460758209229, 0.2641240358352661, 0.0782049298286438, -1.4524592161178589, -0.7370776534080505, -0.3145223557949066, -0.4057588577270508, -1.227771520614624, 0.537680983543396, -0.23979854583740234, -0.8141555190086365, -1.5594061613082886, 0.1494443714618683, -1.119286060333252, -1.6603049039840698, 0.361142098903656, 1.7960798740386963, 1.9748719930648804, -0.7936575412750244, 1.5110368728637695, -0.223036989569664, 0.08249983191490173, 1.3277629613876343, 1.231528639793396, 3.134068727493286, 1.8450953960418701, -1.1599737405776978, 0.6767717599868774, -0.22817407548427582, -0.46569162607192993, 1.2601796388626099, -1.1082050800323486, 1.190639853477478, -0.14814527332782745, -1.207044243812561, -1.382278323173523, 0.8397847414016724, 0.4084841310977936, 0.000048587098717689514, -0.4880531430244446, 1.2739356756210327, 0.1366083323955536, 1.3952134847640991, 0.5091489553451538, -0.27066993713378906, 0.5873693227767944, -0.3987950086593628, -0.4331885576248169, 1.598484754562378, 0.18603013455867767, -1.4899635314941406, -2.31032657623291, -0.16628921031951904, -0.778054416179657, -0.04953213036060333, -0.6663066744804382, -1.083427906036377, 1.677639126777649, 0.43444177508354187, -1.2594423294067383, -0.2065064162015915, -0.3942609429359436, -0.6333643198013306, 2.671198606491089, -1.4653260707855225, -0.20354151725769043, -0.9339152574539185, -0.4952911138534546, 1.7212295532226562, -1.1450209617614746, -0.19387130439281464, -0.9641888737678528, -0.5148430466651917, -1.3170047998428345, -0.4979475736618042, -0.13071151077747345, -0.9323012232780457, 0.7077157497406006, 0.17628315091133118, -1.0850476026535034, -0.3483562171459198, -0.8226678967475891, 0.806471586227417, -0.11773687601089478, 0.3784897029399872, 1.9477561712265015, 0.4473808705806732, -0.4080871343612671, 0.6866267323493958, 1.271925926208496, 0.5902688503265381, -0.6326466202735901, 0.2109796404838562, -0.6828047037124634, 0.29272082448005676, -1.3008273839950562, 0.31636953353881836, -2.851071357727051, 0.594245195388794, -0.06882838159799576, -0.13282905519008636, 0.05614256486296654, -1.3132736682891846, 1.2517961263656616, 2.6693758964538574, -1.1842501163482666, 0.4226143956184387, 0.2819597125053406, 1.1894631385803223, -1.594761848449707, 0.4157271087169647, -0.3420741856098175, 2.1371641159057617, 0.2095479667186737, 1.1621776819229126, -0.4431750476360321, -2.3409087657928467, 0.6013604402542114, -1.2170921564102173, -1.1910754442214966, 0.7668841481208801, -0.8079082369804382, 0.04881947115063667, -1.433651328086853, -0.17286823689937592, -0.8875930905342102, -1.268750548362732, 0.8559109568595886, 0.1271199733018875, 0.5174539685249329, -0.6584498882293701, 0.3474665582180023, -2.1650655269622803, -1.4090025424957275, -0.26715558767318726, -0.88443523645401, 0.49433591961860657, -0.2886587977409363, 0.6696314811706543, -0.16413304209709167, 0.06834124028682709, 0.3872891068458557, 1.5436495542526245, 3.3393216133117676, 0.25333642959594727, 0.4609406292438507, -0.15162886679172516, -0.9267710447311401, 1.380136489868164, 0.9299601316452026, -0.06515569239854813, -0.5781866312026978, -1.0283238887786865, 1.289579153060913, 1.9972103834152222, 1.1014838218688965, 0.05152281001210213, -0.7654749155044556, -0.7392266988754272, 0.010612985119223595, 0.28369882702827454, 0.4483013153076172, 0.9022621512413025, 0.044734660536050797, 0.09031258523464203, 1.3751044273376465, 1.2221078872680664, -0.5397437214851379, 0.390564888715744, -0.8873316645622253, -0.376154363155365, 0.541469395160675, 0.2316201627254486, 0.09502086043357849, 0.37685081362724304, -0.913323163986206, -0.2977015972137451, -0.25706395506858826, -0.9755871891975403, -0.7586162686347961, -0.4198474586009979, -0.41291603446006775, 1.6435649394989014, -0.033629581332206726, -0.4632565975189209, -0.09556867182254791, -0.7197400331497192, -0.18589606881141663, -1.0056875944137573, 0.18593090772628784, -0.12933535873889923, -0.09408320486545563, -0.09030723571777344, 1.7616397142410278, -0.9580972790718079, -2.0310311317443848, 0.2883208096027374, 0.2689637243747711, -0.4956322908401489, 0.14940325915813446, 1.682150959968567, 0.5189118385314941, 1.547613263130188, 1.3236668109893799, 0.9924674034118652, -0.6689658761024475, -1.3538519144058228, 0.6250417232513428, 0.8440464735031128, -1.3561758995056152, 0.795181155204773, 0.03584572300314903, -0.3679266571998596, 0.582099437713623, 1.3497828245162964, 0.468127578496933, -1.9452556371688843, 0.7198989987373352, -0.86908358335495, 0.7891093492507935, 0.7474879622459412, 0.8511359691619873, 0.16577422618865967, 0.8215253949165344, -1.2088847160339355, -1.1445999145507812, -0.8066571354866028, -0.5441189408302307, 1.8659918308258057, -0.17681166529655457, 0.5153179168701172, -0.1575716733932495, -1.2249287366867065, 0.018743932247161865, 0.6831605434417725, 0.397723913192749, -0.3742838203907013, 0.8069546222686768, -0.7271571755409241, -1.0961319208145142, -1.4189361333847046, -0.4579464793205261, -0.8627089262008667, -0.9062124490737915, 1.0412148237228394, 0.8562811017036438, 0.28308993577957153, 1.8944510221481323, 0.58514803647995, 0.22526881098747253, -2.6159753799438477, 0.9211614727973938, 0.26440033316612244, -0.0967898964881897, 0.9450926780700684, 0.3482147753238678, 1.083984136581421, -0.02356281876564026, 0.48808395862579346, -2.4129390716552734, 2.25533127784729, -0.28702661395072937, 0.664415717124939, 0.006737101823091507, -0.12501250207424164, 1.114485263824463, 0.5194137096405029, 0.49987754225730896, -1.1970951557159424, 0.741667628288269, -0.6036623120307922, 1.219538927078247, 0.9360443353652954, -0.7789052724838257, 0.11996366083621979, 1.3035835027694702, 0.5035661458969116, -0.5568370223045349, -0.8962192535400391, -0.9652746915817261, 0.8867284655570984, 1.696594476699829, -0.12901781499385834, -0.009746354073286057, 0.828737199306488, 0.6815135478973389, -1.1789783239364624, 0.05199200659990311, -0.7885867953300476, -0.8116798996925354, 1.6131517887115479, 1.9894949197769165, -0.0754803717136383, -0.20789608359336853, -0.7244883179664612, -1.0618393421173096, 0.8271281719207764, 0.0030041541904211044, 0.16402359306812286, 0.6931666135787964, -0.644605278968811, 1.2115869522094727, 0.9508962631225586, 0.9190729260444641, 0.20803555846214294, 0.3836278021335602, 0.39650169014930725, -0.28624287247657776, -1.1092174053192139, -0.31549209356307983, -1.1882576942443848, -2.637540340423584, 0.5272319912910461, -0.40098363161087036, -1.4092060327529907, 0.02335650473833084, -1.07548987865448, 0.924281120300293, -0.5815472602844238, -1.0733728408813477, -1.5552053451538086, 0.18071569502353668, -0.14938239753246307, 0.906834065914154, -1.5999351739883423, -0.06914357841014862, 1.3139925003051758, 0.9274152517318726, -0.631812572479248, 0.8890124559402466, 0.2418133020401001, 1.0298688411712646, 0.8814857006072998, -0.30889657139778137, 0.4790611267089844, 0.11292454600334167, -1.329634189605713, 0.48607534170150757, 1.1352148056030273, 0.137724831700325, 1.4564613103866577, -0.4899410605430603, 0.08170899748802185, 0.4138803482055664, -0.4357679784297943, -0.4900892376899719, -0.6858473420143127, 0.7506837844848633, 0.1403379738330841, -0.9389079213142395, 0.0866381973028183, -0.12287324666976929, -0.17585819959640503, 0.2053927630186081, -1.4883841276168823, -0.26842793822288513, -0.4325433075428009, -0.5223797559738159, -1.1873111724853516, -0.058062393218278885, 1.307671308517456, -0.77254319190979, -0.14900143444538116, 0.5370187163352966, 0.39194753766059875, 0.4788074791431427, 0.6142780184745789, -0.6829966902732849, -0.410622239112854, -0.31248605251312256, -0.32782939076423645, 0.2986244261264801, 1.1910574436187744, -0.05845774710178375, -1.0691545009613037, 0.7311556339263916, -0.34194308519363403, 0.03349338471889496, 2.011112928390503, 0.028977282345294952, -0.8143718838691711, 0.3542434573173523, -0.6521791219711304, 1.9247634410858154, 1.6483514308929443, 1.255280613899231, -0.08259661495685577, -1.0044180154800415, 0.5612713694572449, -0.21127626299858093, -0.38136669993400574, 0.9040114283561707, 0.3824414908885956, -0.26282793283462524, -1.3863095045089722, 0.6005834341049194, 1.2777503728866577, -0.8411270976066589, -0.7383859753608704, 0.013181190937757492, -0.8446776270866394, 1.0079927444458008, 0.6563305854797363, 0.3936293125152588, 0.24142304062843323, 1.6730461120605469, 0.6341849565505981, -0.5427006483078003, 0.43670356273651123, 0.45404180884361267, -0.17578501999378204, -2.0648622512817383, -1.1203265190124512, 0.25984346866607666, -0.40768104791641235, -1.5078362226486206, 1.3575897216796875, -1.2003188133239746, -0.9152396321296692, 0.5737210512161255, 0.1815473437309265, 1.4623075723648071, 0.26185789704322815, 1.6623460054397583, 2.0990777015686035, 0.8072167634963989, 0.265300989151001, 1.2938411235809326, -0.1299235224723816, -0.5182845592498779, 1.846045732498169, -0.413828045129776, 0.5207033753395081, 1.0755435228347778, -0.2817845642566681, -1.0367846488952637, -0.8470675349235535, -1.2020738124847412, -0.7344440817832947, 1.1256392002105713, 0.11384409666061401, -1.1837749481201172, 0.2093462347984314, 1.6149945259094238, 0.09788823127746582, -0.34550899267196655, 0.44705379009246826, 0.4885918200016022, -0.806452214717865, -0.09122107923030853, -1.0243520736694336, 0.5384778380393982, -0.09086044132709503, -0.3268243074417114, 0.31613489985466003, 0.4636908173561096, 1.2110795974731445, 0.0458623543381691, 0.16265304386615753, 1.1874078512191772, -1.4034721851348877, 1.5794434547424316, -0.5952392816543579, 0.22431202232837677, -2.3273813724517822, 1.4485050439834595, -0.7685624361038208, 1.9240691661834717, -2.5993905067443848, 0.4268333911895752, -0.5599660277366638, -0.4302223324775696, 0.3161466121673584, -0.3819136619567871, 0.30201858282089233, -0.20442458987236023, -1.0543920993804932, -0.0758252739906311, -0.8267739415168762, 0.6234433650970459, 1.0676687955856323, 1.3920793533325195, -1.058810830116272, -0.25270092487335205, -1.7106510400772095, -0.17375504970550537, -0.646843433380127, 0.23380064964294434, -1.969072699546814, -0.15517716109752655, -1.9953938722610474, -2.3613598346710205, -1.4421021938323975, -0.8377718925476074, 1.1178240776062012, 0.12814632058143616, -0.8947305083274841, 1.0590742826461792, -0.44860851764678955, -1.8128741979599, 1.1613237857818604, -2.0597915649414062 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
> "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified? And `my_dataset_dev.foo` would match the pattern, and we also have the same pattern but for the "validation" keyword so `my_dataset_validation.foo` would work too
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
39
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. > "my_dataset_dev" doesn't match your regex, "my_dataset_validation" doesn't either ... Why not always "train" unless specified? And `my_dataset_dev.foo` would match the pattern, and we also have the same pattern but for the "validation" keyword so `my_dataset_validation.foo` would work too
[ -1.2097243070602417, -0.9866384267807007, -0.699862003326416, 1.4528640508651733, -0.22186695039272308, -1.2646390199661255, 0.17119590938091278, -1.133575677871704, 1.6772849559783936, -0.7344526052474976, 0.3099997341632843, -1.674960732460022, -0.045390404760837555, -0.5969290733337402, -0.7417284846305847, -0.9574029445648193, -0.40274420380592346, -0.7866564989089966, 0.9636186957359314, 2.4014089107513428, 1.1191226243972778, -1.2368171215057373, 2.66752028465271, 0.6359862089157104, -0.16214504837989807, -1.0561739206314087, 0.5283525586128235, 0.035726889967918396, -1.1557862758636475, -0.476173460483551, -1.0135750770568848, 0.00766465999186039, -0.5318362712860107, -0.45316174626350403, 0.0034476546570658684, 0.44622865319252014, -0.2038801610469818, -0.3909667134284973, -0.5658511519432068, -0.7516133189201355, 0.4468502104282379, -0.3964720070362091, 0.9610639810562134, -0.4391857087612152, 1.963771939277649, -0.6005681753158569, 0.509200930595398, 0.747467577457428, 1.3309797048568726, 0.24127939343452454, -0.00007339660078287125, 0.20122043788433075, 0.44911909103393555, -0.016080357134342194, 0.45807182788848877, 0.9993754625320435, 0.5088251829147339, 0.642724335193634, 0.7148641347885132, -2.2171173095703125, 1.3287537097930908, -1.1274281740188599, 0.19627511501312256, 1.459972858428955, -0.96757972240448, 0.40532591938972473, -1.7502080202102661, 0.034362807869911194, 0.5821548700332642, -2.3268344402313232, 0.18459098041057587, -1.3914258480072021, -0.4881761074066162, 1.0100394487380981, 0.48115020990371704, -1.12928307056427, 0.14913079142570496, -0.40801456570625305, 0.955183744430542, 0.5199370384216309, 1.0911802053451538, -1.6499656438827515, -0.013884026557207108, -0.3043319284915924, 0.012460002675652504, -1.4566354751586914, -1.4254282712936401, 0.6411271095275879, 0.6446241140365601, 0.6557614207267761, -0.09520573914051056, 1.0138684511184692, -0.9314631819725037, 0.7819077968597412, -1.0025627613067627, -1.5687222480773926, -1.3754597902297974, -2.1803953647613525, -2.3660473823547363, 0.8856281042098999, -0.5156025290489197, -0.587015688419342, 2.047351360321045, -1.0260316133499146, -1.6889605522155762, 1.1433818340301514, 0.22130338847637177, 0.05444929748773575, 2.521592140197754, 0.24090945720672607, -0.6374509334564209, 0.41668200492858887, -0.7508768439292908, 0.8814684748649597, -0.31666508316993713, 1.3830188512802124, 0.390849232673645, -0.963382363319397, 1.5801565647125244, -0.2207077592611313, 0.6607086658477783, -0.6387647390365601, -0.6575907468795776, -0.8357785940170288, 0.3345910608768463, 1.889910340309143, -0.21866671741008759, 1.6521170139312744, -0.3478449285030365, -1.605916142463684, -1.6998525857925415, 0.8469025492668152, 0.4776497483253479, -0.8678264617919922, 0.03792605549097061, -0.39552631974220276, 0.12229827046394348, 0.007674792781472206, 1.2076712846755981, 1.2681193351745605, 0.8092092871665955, -0.3988289535045624, -0.8362740278244019, 0.20760351419448853, 0.007776763290166855, -0.8466077446937561, -1.777541995048523, -0.38380739092826843, 0.03338560461997986, 0.5784498453140259, -1.214267611503601, 1.6131459474563599, 0.9454373717308044, 1.9477678537368774, 0.9565464854240417, -0.2947854697704315, 1.421223521232605, -0.01858154684305191, 1.8447022438049316, -0.5422239303588867, 0.5963825583457947, -0.3377707898616791, -1.1302958726882935, 0.7756155729293823, -0.2847597002983093, -1.911375880241394, -0.8758076429367065, -0.9588415026664734, -0.22790196537971497, -0.7004282474517822, 0.9920692443847656, -0.3896580636501312, -1.3580107688903809, 0.20674365758895874, -0.6491900682449341, 0.006026705726981163, -1.2689988613128662, 0.2930413782596588, 0.7400653958320618, -0.7501506805419922, 0.1543264240026474, -0.19686487317085266, -1.365390419960022, -0.5332185626029968, 0.27940356731414795, 1.9655133485794067, -0.8991114497184753, 0.949415385723114, 0.9155487418174744, -0.7199326157569885, -0.003482123836874962, 0.27975332736968994, -0.262098103761673, 0.6999028921127319, -1.0254237651824951, -0.40505364537239075, 1.2537447214126587, -0.2985796332359314, -0.6524901986122131, 1.5520799160003662, 0.6633146405220032, -1.0303821563720703, -0.1783909946680069, -0.3022494912147522, -0.7228881120681763, -0.04045472294092178, -1.5008658170700073, -0.09875930100679398, 0.25869959592819214, -1.5197372436523438, -0.4914257228374481, -0.2253258228302002, 1.3031582832336426, -0.2246549427509308, 1.2713069915771484, -0.37891685962677, -0.4226994812488556, -0.3573957085609436, -0.4545332193374634, 0.14874200522899628, -0.2234814167022705, -0.5581777095794678, 0.21688684821128845, -0.7992959022521973, 0.3289741277694702, 1.4632575511932373, 0.35258927941322327, 0.000825914554297924, 0.5427382588386536, 1.043636679649353, 0.4610587954521179, -0.022778447717428207, -1.0386772155761719, -1.4477319717407227, 1.9635274410247803, -1.5189902782440186, 1.8388433456420898, 0.6560788750648499, -0.18238018453121185, -1.6807349920272827, -1.9354130029678345, 1.301282525062561, 1.2926511764526367, 2.2219016551971436, 0.5011109113693237, 0.2769775688648224, -0.8799606561660767, -0.5348489284515381, 0.3858775496482849, -1.1385250091552734, -0.6590734124183655, 0.12974531948566437, 2.2766218185424805, 1.710602045059204, -0.5496147274971008, -0.23155072331428528, -1.012768268585205, 1.238179326057434, -0.16023306548595428, 0.31445443630218506, 2.0603597164154053, -0.3681936264038086, -1.1448863744735718, 1.2176231145858765, -2.231947898864746, 0.09802735596895218, 1.9688705205917358, 0.22864270210266113, 0.08815769106149673, -1.475511074066162, -0.6213273406028748, -0.2567698359489441, -0.44451045989990234, -1.217699646949768, 0.5910748839378357, -0.2258598804473877, -0.8447701334953308, -1.534801959991455, 0.19919338822364807, -1.0740500688552856, -1.6624767780303955, 0.2711520195007324, 2.0091302394866943, 2.025970935821533, -0.738466203212738, 1.514146327972412, -0.18939150869846344, 0.1367797553539276, 1.2414724826812744, 1.1547508239746094, 3.028642177581787, 1.9370267391204834, -1.0820282697677612, 0.6766785383224487, -0.12836501002311707, -0.4275038242340088, 1.1566872596740723, -1.1311324834823608, 1.2357258796691895, -0.17265436053276062, -1.1315234899520874, -1.3506526947021484, 0.8300975561141968, 0.35955989360809326, 0.04079756140708923, -0.43505820631980896, 1.3312004804611206, 0.1312946230173111, 1.384934902191162, 0.4855392277240753, -0.3510904312133789, 0.6399567723274231, -0.47237542271614075, -0.543210506439209, 1.542063593864441, 0.30172428488731384, -1.4984010457992554, -2.2363462448120117, -0.22191300988197327, -0.7492572069168091, 0.0012036338448524475, -0.4816896915435791, -0.930801510810852, 1.6884936094284058, 0.3415411412715912, -1.315987229347229, -0.2505558729171753, -0.3632751405239105, -0.6270518898963928, 2.85292649269104, -1.2671173810958862, -0.14125840365886688, -0.9083415865898132, -0.5480790138244629, 1.8670845031738281, -1.2146949768066406, -0.18148191273212433, -1.0436114072799683, -0.49342164397239685, -1.3480801582336426, -0.49723824858665466, -0.011306923814117908, -1.0332742929458618, 0.84590083360672, 0.11209703981876373, -1.0782029628753662, -0.3368028998374939, -0.8664049506187439, 0.8683953881263733, -0.07517162710428238, 0.2950049042701721, 2.0432698726654053, 0.3759140074253082, -0.31251955032348633, 0.7206814885139465, 1.1979594230651855, 0.613185465335846, -0.5649451613426208, 0.13265523314476013, -0.6198515892028809, 0.3591763973236084, -1.2662509679794312, 0.29465818405151367, -2.8563406467437744, 0.5633862018585205, -0.1005961149930954, -0.19429785013198853, -0.0020014727488160133, -1.410068392753601, 1.179442048072815, 2.6685729026794434, -1.276275873184204, 0.498243123292923, 0.3547261655330658, 1.1590481996536255, -1.5505787134170532, 0.5130069255828857, -0.3521086573600769, 2.1444895267486572, 0.2189507633447647, 1.1999709606170654, -0.4553202688694, -2.2559850215911865, 0.6908946633338928, -1.2298617362976074, -1.3059691190719604, 0.7727431058883667, -0.968141496181488, 0.0583358108997345, -1.3787633180618286, -0.15241369605064392, -0.8460519909858704, -1.3468804359436035, 0.7740857005119324, 0.1631871908903122, 0.5101960301399231, -0.6157292723655701, 0.41639021039009094, -2.3141839504241943, -1.5207536220550537, -0.3171002268791199, -0.9614493250846863, 0.4184357821941376, -0.33883076906204224, 0.7053695917129517, -0.26434752345085144, 0.07588911801576614, 0.45089659094810486, 1.538170337677002, 3.5029640197753906, 0.29249510169029236, 0.2638046443462372, -0.1800614446401596, -0.9292380809783936, 1.5436171293258667, 0.9828806519508362, 0.004977473057806492, -0.4777015149593353, -0.9985974431037903, 1.2183808088302612, 2.050147294998169, 1.0285159349441528, -0.0728868767619133, -0.7102442979812622, -0.6298202872276306, -0.05233967304229736, 0.2363259643316269, 0.5968894362449646, 0.9433708190917969, 0.06861060112714767, 0.08633992075920105, 1.4223737716674805, 1.140892744064331, -0.3727736175060272, 0.36831289529800415, -0.812208354473114, -0.48460853099823, 0.5388725399971008, 0.22270119190216064, 0.05049660801887512, 0.378999799489975, -0.8536705374717712, -0.22055348753929138, -0.37328746914863586, -0.9507126212120056, -0.7168163061141968, -0.3720057010650635, -0.502816379070282, 1.5960639715194702, 0.09643659740686417, -0.5628596544265747, -0.09942755103111267, -0.6800684332847595, -0.17723987996578217, -0.9592397212982178, 0.26748478412628174, -0.1143806055188179, -0.14662903547286987, -0.12480033189058304, 1.7478253841400146, -1.0399471521377563, -1.9410899877548218, 0.2826884984970093, 0.2856893539428711, -0.3758088946342468, 0.26229551434516907, 1.5083143711090088, 0.43095266819000244, 1.5051071643829346, 1.300956130027771, 0.9626686573028564, -0.6439703702926636, -1.3871917724609375, 0.5947757363319397, 0.7791416049003601, -1.3426636457443237, 0.7370656132698059, 0.04354707896709442, -0.38624465465545654, 0.5768458247184753, 1.1543183326721191, 0.5559998154640198, -1.9448944330215454, 0.7544320821762085, -0.9682118892669678, 0.7308189868927002, 0.7584209442138672, 0.8440343737602234, 0.21012544631958008, 0.862895667552948, -1.0356929302215576, -1.136178970336914, -0.722333550453186, -0.6545650959014893, 1.9224700927734375, -0.2788885533809662, 0.6869210600852966, -0.0959448367357254, -1.1871598958969116, -0.06712466478347778, 0.5726852416992188, 0.36497923731803894, -0.34858015179634094, 0.8101062774658203, -0.6784033179283142, -1.0438164472579956, -1.4538460969924927, -0.4011331796646118, -1.0529937744140625, -0.9762574434280396, 0.9791665077209473, 0.8183050751686096, 0.23775003850460052, 1.875433325767517, 0.5810987949371338, 0.4125930368900299, -2.6493399143218994, 0.9835906028747559, 0.2705759108066559, -0.08418264985084534, 0.7851927280426025, 0.3458103537559509, 1.0229167938232422, -0.09950022399425507, 0.5107845664024353, -2.434938669204712, 2.3975179195404053, -0.30532437562942505, 0.6304918527603149, 0.07333910465240479, -0.18903762102127075, 1.0810545682907104, 0.5973811149597168, 0.5166866183280945, -1.152852177619934, 0.7358580827713013, -0.5784292817115784, 1.2308930158615112, 0.9457865357398987, -0.7098336219787598, 0.040928155183792114, 1.4188246726989746, 0.6720922589302063, -0.5849350094795227, -0.933472752571106, -1.0125356912612915, 0.8083438277244568, 1.6428632736206055, -0.24453605711460114, -0.12786047160625458, 0.7963470816612244, 0.5930511951446533, -1.108793020248413, 0.01574699953198433, -0.8226149082183838, -0.8021144866943359, 1.5163497924804688, 2.048668146133423, -0.05875227600336075, -0.21627162396907806, -0.7146838307380676, -1.0474902391433716, 0.7643757462501526, -0.0006373589858412743, 0.15041236579418182, 0.6643020510673523, -0.5535438656806946, 1.0974094867706299, 0.8625587821006775, 0.9707388281822205, 0.1447315812110901, 0.400770902633667, 0.3739283084869385, -0.27540963888168335, -1.1316550970077515, -0.2965840697288513, -1.088729739189148, -2.5341455936431885, 0.4830564856529236, -0.41658246517181396, -1.3614627122879028, 0.00425026286393404, -1.0682193040847778, 0.9730238914489746, -0.6106318831443787, -1.0805143117904663, -1.5483288764953613, 0.1256447583436966, -0.1397329568862915, 0.9159783720970154, -1.6437724828720093, -0.17838485538959503, 1.3324074745178223, 0.9027470946311951, -0.8695594072341919, 0.9623594880104065, 0.21612292528152466, 1.135749101638794, 0.7208238244056702, -0.3988792300224304, 0.5453001856803894, -0.05074302852153778, -1.4072784185409546, 0.5132054090499878, 1.0309903621673584, 0.12973381578922272, 1.4510295391082764, -0.5622901916503906, 0.035487376153469086, 0.479535847902298, -0.6033142805099487, -0.42303466796875, -0.6453055143356323, 0.7819392681121826, 0.12991584837436676, -0.896169126033783, 0.050177738070487976, -0.2247619479894638, -0.18036502599716187, 0.20137430727481842, -1.497100830078125, -0.3602544367313385, -0.38411858677864075, -0.4985606074333191, -1.1406834125518799, -0.11858239024877548, 1.3768573999404907, -0.7280880808830261, -0.11735717952251434, 0.5555030703544617, 0.3600260317325592, 0.5078896880149841, 0.6138348579406738, -0.783434271812439, -0.24783295392990112, -0.2795037031173706, -0.29415616393089294, 0.4158243238925934, 1.3932602405548096, -0.0965062603354454, -1.004288911819458, 0.7529748678207397, -0.19515831768512726, 0.012468703091144562, 1.9636220932006836, 0.04448855668306351, -0.7390045523643494, 0.33691731095314026, -0.7285718321800232, 1.9043025970458984, 1.6310549974441528, 1.2795612812042236, -0.10478808730840683, -0.9260847568511963, 0.4983578026294708, -0.21174947917461395, -0.3813845217227936, 0.8169021010398865, 0.37341898679733276, -0.26831498742103577, -1.3730473518371582, 0.8665480613708496, 1.1538156270980835, -0.8518571853637695, -0.8051535487174988, 0.112909696996212, -0.7857640981674194, 1.06255042552948, 0.5895669460296631, 0.5117122530937195, 0.22903099656105042, 1.6815770864486694, 0.7587502002716064, -0.46424734592437744, 0.3269643187522888, 0.5177947282791138, -0.2032926082611084, -2.0666956901550293, -1.1964941024780273, 0.340099573135376, -0.559805691242218, -1.5712311267852783, 1.4773833751678467, -1.160571813583374, -0.9124354124069214, 0.5432161688804626, 0.11863704025745392, 1.5559409856796265, 0.3974306881427765, 1.6007835865020752, 2.0854790210723877, 0.9249117374420166, 0.4299720525741577, 1.4847592115402222, -0.18966297805309296, -0.5642593502998352, 1.7673630714416504, -0.48237738013267517, 0.39485490322113037, 1.1186310052871704, -0.33047395944595337, -0.9165613651275635, -0.8058353662490845, -1.2608311176300049, -0.5884214639663696, 1.0512022972106934, 0.09844839572906494, -1.2600367069244385, 0.2235083132982254, 1.4861581325531006, 0.12295177578926086, -0.31266945600509644, 0.526585578918457, 0.41854849457740784, -0.8341023921966553, -0.03281304985284805, -0.9025182127952576, 0.5522746443748474, -0.21323204040527344, -0.3904716968536377, 0.3808175325393677, 0.34919068217277527, 1.338767647743225, -0.1151994839310646, 0.25633496046066284, 1.0678656101226807, -1.403354287147522, 1.5726685523986816, -0.5335530638694763, 0.15991754829883575, -2.3196840286254883, 1.3169984817504883, -0.715350866317749, 1.9453710317611694, -2.695739507675171, 0.41801920533180237, -0.5112534165382385, -0.5497819185256958, 0.3587600290775299, -0.40704813599586487, 0.17104171216487885, -0.19401662051677704, -1.1184446811676025, 0.04987595975399017, -0.706096351146698, 0.6360312700271606, 0.9628187417984009, 1.4485303163528442, -1.0270941257476807, -0.32081592082977295, -1.8084226846694946, -0.22834494709968567, -0.7089096307754517, 0.34983882308006287, -2.067460060119629, -0.2016766518354416, -1.9091215133666992, -2.3315298557281494, -1.3023874759674072, -0.7984678149223328, 1.1677740812301636, 0.08941150456666946, -0.8795356154441833, 1.2430392503738403, -0.2416788786649704, -1.9299405813217163, 1.1790045499801636, -2.065828561782837 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
> The regex is needed as part of our effort to make datasets configurable without code This feels like coding with the filename ^^'
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
24
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. > The regex is needed as part of our effort to make datasets configurable without code This feels like coding with the filename ^^'
[ -1.2990567684173584, -0.953344464302063, -0.7402157783508301, 1.4212843179702759, -0.27410009503364563, -1.271589994430542, 0.13898637890815735, -1.0891704559326172, 1.76129949092865, -0.7571753263473511, 0.2945578992366791, -1.7069907188415527, -0.1584511250257492, -0.6021803021430969, -0.7538241744041443, -0.9378651976585388, -0.4486469626426697, -0.7736199498176575, 1.0436826944351196, 2.4762589931488037, 1.0995283126831055, -1.3691667318344116, 2.717463731765747, 0.7496646046638489, -0.08838393539190292, -0.9993612170219421, 0.513623833656311, 0.11097840219736099, -1.260048508644104, -0.5329839587211609, -1.0143433809280396, -0.03786282241344452, -0.5493594408035278, -0.48876312375068665, 0.03551299870014191, 0.29154980182647705, -0.08962108194828033, -0.3891257345676422, -0.49395325779914856, -0.7462915778160095, 0.4936854839324951, -0.44700345396995544, 0.9577168822288513, -0.38416045904159546, 1.878163456916809, -0.5874186158180237, 0.3547496497631073, 0.7888698577880859, 1.3101147413253784, 0.23166492581367493, -0.10074140131473541, 0.3338673412799835, 0.480847030878067, -0.08634962886571884, 0.4329945743083954, 1.0438004732131958, 0.5345070958137512, 0.6212499141693115, 0.712957501411438, -2.1607511043548584, 1.4139375686645508, -1.1622260808944702, 0.24959531426429749, 1.4643555879592896, -1.1645969152450562, 0.5193321704864502, -1.720619559288025, 0.05060674995183945, 0.5331992506980896, -2.2968945503234863, 0.1380583941936493, -1.2059617042541504, -0.4444432258605957, 0.909023106098175, 0.45917457342147827, -1.2541446685791016, 0.21687068045139313, -0.4077693819999695, 0.9705311059951782, 0.4209415018558502, 1.2195777893066406, -1.770536184310913, 0.11028894782066345, -0.3664410710334778, 0.08351866155862808, -1.4165056943893433, -1.3643842935562134, 0.581613302230835, 0.653937578201294, 0.5964626669883728, -0.11281721293926239, 0.918724536895752, -0.7989391088485718, 0.7380900979042053, -0.9524462819099426, -1.4775097370147705, -1.3914397954940796, -2.1801705360412598, -2.2876806259155273, 0.94703608751297, -0.5343408584594727, -0.5991398096084595, 2.0127148628234863, -1.0484429597854614, -1.7653493881225586, 1.1897457838058472, 0.2035658210515976, -0.020560260862112045, 2.4320266246795654, 0.3219047784805298, -0.5818178653717041, 0.3553852140903473, -0.6874951124191284, 0.9719589948654175, -0.44320330023765564, 1.3582496643066406, 0.3526061177253723, -1.1049668788909912, 1.6348813772201538, -0.4048040807247162, 0.6993542909622192, -0.731346607208252, -0.6155842542648315, -0.8069750666618347, 0.4704321324825287, 1.9339556694030762, -0.20450274646282196, 1.6758668422698975, -0.5128831267356873, -1.6081676483154297, -1.6946096420288086, 0.8411693572998047, 0.5005200505256653, -0.7781072854995728, 0.20018558204174042, -0.37196627259254456, 0.06449992954730988, 0.09658632427453995, 1.101316213607788, 1.2955412864685059, 0.6813894510269165, -0.30473536252975464, -0.8408005237579346, 0.18239106237888336, 0.013278661295771599, -0.8096804618835449, -1.8096445798873901, -0.28964588046073914, -0.07244323939085007, 0.6144339442253113, -1.2041456699371338, 1.6003648042678833, 0.9745781421661377, 1.9302672147750854, 0.9265585541725159, -0.4093001186847687, 1.3749010562896729, -0.023064160719513893, 1.8818986415863037, -0.5264171957969666, 0.7433051466941833, -0.31226950883865356, -1.106649398803711, 0.8637360334396362, -0.3307896554470062, -1.9460068941116333, -0.7669003009796143, -0.8649137020111084, -0.18161463737487793, -0.7302245497703552, 1.1043986082077026, -0.33797019720077515, -1.3053525686264038, 0.25776049494743347, -0.6553258299827576, 0.10050816833972931, -1.2894679307937622, 0.19721703231334686, 0.7391224503517151, -0.6722795963287354, 0.16736067831516266, -0.23145847022533417, -1.3924365043640137, -0.5048621296882629, 0.2456640899181366, 1.8704959154129028, -0.9920799136161804, 0.8962754607200623, 0.9492978453636169, -0.6780273914337158, -0.09527219086885452, 0.3456614911556244, -0.25805673003196716, 0.729240894317627, -1.0399062633514404, -0.35284513235092163, 1.218210220336914, -0.1894633173942566, -0.5182484984397888, 1.5464664697647095, 0.6450782418251038, -1.083427906036377, -0.046066053211688995, -0.3097817003726959, -0.936506986618042, -0.12026579678058624, -1.6585782766342163, -0.10953658074140549, 0.1549416333436966, -1.490802526473999, -0.5921991467475891, -0.34654462337493896, 1.3301424980163574, -0.020106542855501175, 1.3579164743423462, -0.420663446187973, -0.32895809412002563, -0.44775664806365967, -0.38881686329841614, 0.2205878496170044, -0.30464160442352295, -0.52909255027771, 0.31137537956237793, -0.6890662908554077, 0.2387307733297348, 1.5453815460205078, 0.36097273230552673, 0.13156962394714355, 0.5278226733207703, 1.0608365535736084, 0.35939928889274597, -0.10712651908397675, -0.8951669931411743, -1.3972994089126587, 2.0113182067871094, -1.504691481590271, 1.7938179969787598, 0.7045678496360779, -0.05397653579711914, -1.6721491813659668, -1.891068696975708, 1.3669782876968384, 1.3504143953323364, 2.1850810050964355, 0.5996490120887756, 0.23359379172325134, -0.8857752084732056, -0.4992334842681885, 0.2910102605819702, -1.1073856353759766, -0.7830647230148315, 0.16541065275669098, 2.3278002738952637, 1.6583331823349, -0.5834868550300598, -0.20702719688415527, -1.1654932498931885, 1.2569979429244995, -0.16487003862857819, 0.20703820884227753, 2.0922584533691406, -0.4214228689670563, -1.1619421243667603, 1.2712067365646362, -2.2990469932556152, 0.046589434146881104, 1.8331937789916992, 0.32877427339553833, 0.14646689593791962, -1.520691156387329, -0.8151249289512634, -0.1908462941646576, -0.3565511405467987, -1.239690899848938, 0.6741125583648682, -0.3596418499946594, -0.7821730971336365, -1.546979546546936, 0.22681395709514618, -0.9442005157470703, -1.6574082374572754, 0.29982900619506836, 1.8813507556915283, 1.9199306964874268, -0.796692967414856, 1.6280796527862549, -0.17270293831825256, 0.045229777693748474, 1.305137276649475, 1.1336122751235962, 3.0453526973724365, 1.9480820894241333, -1.1046730279922485, 0.6225854754447937, -0.13333368301391602, -0.4491988718509674, 1.1739534139633179, -1.1344642639160156, 1.2493386268615723, -0.1518416851758957, -1.1586066484451294, -1.3281186819076538, 0.7691746354103088, 0.44062456488609314, 0.08086442202329636, -0.4397996962070465, 1.4011317491531372, 0.0580604150891304, 1.414220929145813, 0.45542648434638977, -0.31351515650749207, 0.596130907535553, -0.4798930287361145, -0.4658218324184418, 1.5740478038787842, 0.2815691828727722, -1.402059555053711, -2.216355323791504, -0.13174079358577728, -0.7759662866592407, -0.04056871682405472, -0.5400609374046326, -0.9543985724449158, 1.6043752431869507, 0.45802170038223267, -1.2702758312225342, -0.28972217440605164, -0.5075790882110596, -0.6503323316574097, 2.661688804626465, -1.537097692489624, -0.24580314755439758, -0.8408234119415283, -0.4141188859939575, 1.8386380672454834, -1.1751693487167358, -0.1920037567615509, -1.0694526433944702, -0.48121461272239685, -1.3579057455062866, -0.4298810362815857, -0.1133374497294426, -0.982115626335144, 0.8386852145195007, 0.12067161500453949, -1.1533408164978027, -0.3153034746646881, -0.7422294616699219, 0.7439427375793457, 0.018089883029460907, 0.44813859462738037, 2.0645058155059814, 0.4079503118991852, -0.46267178654670715, 0.7398037314414978, 1.2837016582489014, 0.5925402045249939, -0.6391187310218811, 0.19191937148571014, -0.6006013751029968, 0.3896194100379944, -1.3083735704421997, 0.2036266326904297, -2.884108066558838, 0.5279841423034668, -0.08820449560880661, -0.14101530611515045, -0.0541195273399353, -1.336441993713379, 1.2275195121765137, 2.618523120880127, -1.1888805627822876, 0.47102758288383484, 0.2820638120174408, 1.2834948301315308, -1.516547441482544, 0.3957383334636688, -0.3597416281700134, 2.1047685146331787, 0.25872471928596497, 1.145163893699646, -0.4061385989189148, -2.2659785747528076, 0.591657817363739, -1.175744891166687, -1.1901756525039673, 0.7912113666534424, -0.7650571465492249, -0.04315047711133957, -1.4200048446655273, -0.08375595510005951, -0.8708742260932922, -1.3555879592895508, 0.810196578502655, 0.2906661033630371, 0.567970871925354, -0.7177267670631409, 0.31994232535362244, -2.246464967727661, -1.3095091581344604, -0.3818870186805725, -0.878612756729126, 0.45535722374916077, -0.2933960258960724, 0.7436926960945129, -0.28221601247787476, 0.05441666394472122, 0.44518232345581055, 1.4565397500991821, 3.365196943283081, 0.15003196895122528, 0.39266809821128845, -0.22964896261692047, -0.8398270010948181, 1.518725872039795, 0.982444167137146, -0.1494336575269699, -0.5904632806777954, -1.0642199516296387, 1.2316439151763916, 1.9479793310165405, 1.040756344795227, -0.02365075796842575, -0.7798900604248047, -0.591669499874115, 0.05167289078235626, 0.24548566341400146, 0.5406941771507263, 0.93996262550354, 0.02896098978817463, 0.046555034816265106, 1.4315186738967896, 1.1342802047729492, -0.5157958269119263, 0.4282943606376648, -0.8276445865631104, -0.42601534724235535, 0.5418379902839661, 0.2911001145839691, 0.09177587181329727, 0.2529055178165436, -0.8065889477729797, -0.2611045837402344, -0.1997269093990326, -1.0134199857711792, -0.7706820368766785, -0.36374756693840027, -0.4749477505683899, 1.686983346939087, -0.00227527366951108, -0.5691325664520264, -0.1891818344593048, -0.6459138989448547, -0.25522854924201965, -0.8816698789596558, 0.35106605291366577, -0.08644793927669525, -0.10264452546834946, -0.11511262506246567, 1.7437480688095093, -1.0062546730041504, -2.0706615447998047, 0.377851665019989, 0.27637749910354614, -0.3592805564403534, 0.26349741220474243, 1.5121309757232666, 0.48335057497024536, 1.5158190727233887, 1.3793449401855469, 0.8839166760444641, -0.6514228582382202, -1.4394052028656006, 0.5853058695793152, 0.7931156158447266, -1.4716758728027344, 0.7057689428329468, 0.08306995034217834, -0.3125791549682617, 0.6088128685951233, 1.266541838645935, 0.46291419863700867, -2.019824504852295, 0.8214725255966187, -0.8762246370315552, 0.8929772973060608, 0.7402024865150452, 0.8350609540939331, 0.1427249312400818, 0.7526794075965881, -1.147936224937439, -1.2783241271972656, -0.7936307191848755, -0.6317510008811951, 1.9084933996200562, -0.17611992359161377, 0.6489582657814026, -0.13259592652320862, -1.2289161682128906, 0.00485110841691494, 0.5879542231559753, 0.261369913816452, -0.37047791481018066, 0.7109466791152954, -0.6790690422058105, -1.23008394241333, -1.494678258895874, -0.4937067925930023, -0.9915246963500977, -0.8651732802391052, 0.9885823130607605, 0.8512093424797058, 0.20361757278442383, 1.84059476852417, 0.4656200408935547, 0.2878507077693939, -2.545802593231201, 1.0481908321380615, 0.3349270820617676, -0.06533479690551758, 0.8931596279144287, 0.3112020790576935, 0.9331405758857727, -0.08629236370325089, 0.5520950555801392, -2.515717029571533, 2.4095230102539062, -0.28722092509269714, 0.6782245635986328, 0.018525106832385063, -0.08944307267665863, 1.0593856573104858, 0.674797534942627, 0.5188979506492615, -1.1180367469787598, 0.7317518591880798, -0.6343372464179993, 1.3254696130752563, 0.9350166320800781, -0.669202446937561, 0.017627276480197906, 1.3258658647537231, 0.5867583751678467, -0.5637930631637573, -0.8317505717277527, -1.0039829015731812, 0.8338832259178162, 1.7982944250106812, -0.212286576628685, -0.03193845599889755, 0.6624305248260498, 0.5738121271133423, -1.1627259254455566, 0.05145791172981262, -0.8998821377754211, -0.7770366072654724, 1.5132851600646973, 1.9281551837921143, -0.024491209536790848, -0.1565285325050354, -0.68500816822052, -1.0572773218154907, 0.8371211290359497, 0.06245095282793045, 0.26610085368156433, 0.7450704574584961, -0.6350409984588623, 1.2594143152236938, 0.8643655776977539, 0.8416200280189514, 0.22271232306957245, 0.34038466215133667, 0.3928762376308441, -0.2064196765422821, -1.0207122564315796, -0.297329843044281, -1.148311972618103, -2.5151336193084717, 0.4656190574169159, -0.40534499287605286, -1.3930270671844482, 0.008707491680979729, -1.1253561973571777, 0.9448745250701904, -0.5657655596733093, -1.1369467973709106, -1.5681085586547852, 0.05949656665325165, -0.09191174805164337, 0.912233293056488, -1.6302785873413086, 0.008882500231266022, 1.4062178134918213, 0.9160767197608948, -0.8318313360214233, 1.0234200954437256, 0.22051888704299927, 1.053362488746643, 0.8707932233810425, -0.25103560090065, 0.37907758355140686, -0.03860970586538315, -1.3121693134307861, 0.5397117733955383, 1.0882325172424316, 0.06352692097425461, 1.4758871793746948, -0.6374150514602661, 0.010201049968600273, 0.4130972921848297, -0.5274358987808228, -0.5218092799186707, -0.7222220301628113, 0.6787927746772766, 0.14963583648204803, -0.8513661026954651, 0.06190892308950424, -0.16529174149036407, -0.12325237691402435, 0.21837162971496582, -1.4059064388275146, -0.31499549746513367, -0.42849862575531006, -0.3890266418457031, -1.1156951189041138, -0.10971660166978836, 1.3451496362686157, -0.6619181632995605, -0.13970226049423218, 0.6104283332824707, 0.40774816274642944, 0.4130529463291168, 0.6561616063117981, -0.6739519834518433, -0.35745134949684143, -0.24310868978500366, -0.1985679417848587, 0.3024730384349823, 1.3411189317703247, -0.1516188383102417, -1.007462978363037, 0.8102875351905823, -0.4234393239021301, -0.027114346623420715, 1.989673376083374, 0.0168034415692091, -0.848371684551239, 0.4197112023830414, -0.7021675109863281, 1.951629400253296, 1.6469006538391113, 1.2203689813613892, -0.016504716128110886, -1.0399131774902344, 0.49733883142471313, -0.24104808270931244, -0.2881273031234741, 0.8630135655403137, 0.34456923604011536, -0.3564971685409546, -1.4063342809677124, 0.6921382546424866, 1.1731138229370117, -0.7115240097045898, -0.7527464032173157, -0.06543219834566116, -0.7583521008491516, 0.8770689368247986, 0.8179407715797424, 0.4677344858646393, 0.1746034473180771, 1.6719402074813843, 0.7323394417762756, -0.5427563190460205, 0.4919157028198242, 0.43486228585243225, -0.11733470112085342, -2.1141624450683594, -1.233218789100647, 0.32104456424713135, -0.42760908603668213, -1.4894928932189941, 1.3640520572662354, -1.153950810432434, -0.9792014360427856, 0.5326861143112183, 0.08684497326612473, 1.4842236042022705, 0.30546844005584717, 1.5867410898208618, 2.1778149604797363, 0.9598377346992493, 0.3188197910785675, 1.4314109086990356, -0.24971149861812592, -0.5406392812728882, 1.85188627243042, -0.44340384006500244, 0.3876238465309143, 1.038083553314209, -0.29449132084846497, -0.8367398381233215, -0.7993643283843994, -1.2818740606307983, -0.7466134428977966, 1.1052190065383911, 0.11756913363933563, -1.1747075319290161, 0.24377909302711487, 1.4511308670043945, 0.13045693933963776, -0.301971971988678, 0.4597553610801697, 0.600817859172821, -0.9669846296310425, -0.09837499260902405, -0.9824697375297546, 0.5518320202827454, -0.21769709885120392, -0.41217297315597534, 0.3727738559246063, 0.4254545569419861, 1.2358378171920776, 0.008992819115519524, 0.28287720680236816, 1.1586899757385254, -1.3665318489074707, 1.5923752784729004, -0.6143699884414673, 0.16893541812896729, -2.3257155418395996, 1.496222972869873, -0.637013852596283, 1.897278904914856, -2.760307788848877, 0.45547008514404297, -0.49080052971839905, -0.473280131816864, 0.4059065580368042, -0.34565120935440063, 0.25910472869873047, -0.2401590645313263, -1.0946235656738281, 0.0013167411088943481, -0.6975996494293213, 0.5437248349189758, 0.9888098239898682, 1.3264281749725342, -1.090956449508667, -0.24164031445980072, -1.7074873447418213, -0.20147281885147095, -0.659125566482544, 0.42143645882606506, -2.058837652206421, -0.25888752937316895, -1.9432142972946167, -2.3229405879974365, -1.3855695724487305, -0.8157078623771667, 1.18407142162323, 0.16211237013339996, -0.8925169110298157, 1.0703500509262085, -0.4865916073322296, -1.932640790939331, 1.0532037019729614, -2.0584867000579834 ]
https://github.com/huggingface/datasets/issues/3788
Only-data dataset loaded unexpectedly as validation split
This is still much easier than having to write a full dataset script right ? :p
## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`.
929
16
Only-data dataset loaded unexpectedly as validation split ## Describe the bug As reported by @thomasw21 and @lhoestq, a dataset containing only a data file whose name matches the pattern `*dev*` will be returned as VALIDATION split, even if this is not the desired behavior, e.g. a file named `datosdevision.jsonl.gz`. This is still much easier than having to write a full dataset script right ? :p
[ -1.1927926540374756, -0.9307663440704346, -0.7324709296226501, 1.3602502346038818, -0.33717793226242065, -1.2809542417526245, 0.13947145640850067, -1.0671722888946533, 1.7333334684371948, -0.7618235945701599, 0.3423064053058624, -1.7763243913650513, -0.1003594771027565, -0.6144701838493347, -0.7328209280967712, -0.9365126490592957, -0.4611194133758545, -0.8003762364387512, 0.9711255431175232, 2.5176923274993896, 1.0690970420837402, -1.3854387998580933, 2.696765422821045, 0.774085521697998, -0.09576259553432465, -1.0741829872131348, 0.5147332549095154, 0.07144772261381149, -1.173694133758545, -0.408810019493103, -1.0123672485351562, -0.04895658791065216, -0.45530322194099426, -0.5467014312744141, 0.0728948563337326, 0.3001982271671295, -0.06120879948139191, -0.5093030333518982, -0.43530169129371643, -0.660025417804718, 0.4329342246055603, -0.4298038184642792, 1.0233893394470215, -0.42931199073791504, 1.8052263259887695, -0.6024669408798218, 0.4237734377384186, 0.8138893246650696, 1.2894892692565918, 0.2346114069223404, -0.07794122397899628, 0.2627275884151459, 0.4230148494243622, -0.14932437241077423, 0.47118550539016724, 1.0584282875061035, 0.5417302250862122, 0.638126015663147, 0.7542414665222168, -2.1463570594787598, 1.4489693641662598, -1.118065357208252, 0.3532978296279907, 1.4167414903640747, -1.1816563606262207, 0.4996676445007324, -1.7286524772644043, 0.015448786318302155, 0.546790599822998, -2.230163812637329, 0.1699558049440384, -1.2221205234527588, -0.4982560873031616, 0.9477350115776062, 0.42861002683639526, -1.2581024169921875, 0.13309264183044434, -0.38107815384864807, 0.9492919445037842, 0.51016765832901, 1.227479100227356, -1.6901113986968994, 0.05735670030117035, -0.4675711691379547, 0.10123488306999207, -1.498562216758728, -1.3567630052566528, 0.6213754415512085, 0.6642847657203674, 0.6430468559265137, -0.07720423489809036, 0.9364999532699585, -0.8268647193908691, 0.7684152722358704, -0.9395356774330139, -1.4780901670455933, -1.379526138305664, -2.1369006633758545, -2.341662883758545, 0.9482685327529907, -0.5192145109176636, -0.6080243587493896, 1.9839136600494385, -1.0829014778137207, -1.7447261810302734, 1.2117422819137573, 0.20637471973896027, 0.03656070679426193, 2.505241632461548, 0.3037189841270447, -0.6059666275978088, 0.3698720335960388, -0.7628925442695618, 0.8974759578704834, -0.48597094416618347, 1.360166311264038, 0.34395596385002136, -1.0428645610809326, 1.648110270500183, -0.3542163372039795, 0.7475616335868835, -0.7366361618041992, -0.6520346403121948, -0.8043842911720276, 0.3700847327709198, 1.8988873958587646, -0.21787889301776886, 1.6190438270568848, -0.5294549465179443, -1.644112467765808, -1.6492855548858643, 0.8033892512321472, 0.5226470232009888, -0.7797279953956604, 0.2778763771057129, -0.3641464114189148, 0.07622764259576797, 0.04625649005174637, 0.9729483723640442, 1.2613331079483032, 0.7031748294830322, -0.2572461664676666, -0.8876964449882507, 0.20094461739063263, -0.029266953468322754, -0.8649311065673828, -1.7822307348251343, -0.3200491964817047, -0.04152905195951462, 0.6076779365539551, -1.150823712348938, 1.6287785768508911, 0.8962550759315491, 1.9323314428329468, 0.9473527073860168, -0.3997732996940613, 1.3490126132965088, -0.023369062691926956, 1.8276792764663696, -0.5031077861785889, 0.7107633948326111, -0.27103757858276367, -1.092773675918579, 0.8782076239585876, -0.3923708498477936, -2.0215888023376465, -0.7436007857322693, -0.7962560057640076, -0.20929090678691864, -0.6963057518005371, 1.1113269329071045, -0.34605035185813904, -1.3353279829025269, 0.28780701756477356, -0.6782346367835999, 0.07901357114315033, -1.3501709699630737, 0.18646185100078583, 0.73963862657547, -0.6519506573677063, 0.13504010438919067, -0.25781750679016113, -1.337241768836975, -0.47874903678894043, 0.16798624396324158, 1.9484176635742188, -1.0076768398284912, 0.9355951547622681, 0.8823554515838623, -0.5771325826644897, -0.11055149137973785, 0.33536460995674133, -0.21907445788383484, 0.7747188806533813, -1.082196831703186, -0.3290427625179291, 1.2378357648849487, -0.126980721950531, -0.572842001914978, 1.6191933155059814, 0.6308488845825195, -1.0080344676971436, -0.09671562165021896, -0.3086259365081787, -0.8883391618728638, -0.1175440326333046, -1.6427804231643677, -0.05481839179992676, 0.16927017271518707, -1.438191533088684, -0.5103532671928406, -0.3019512891769409, 1.3006540536880493, -0.07559432089328766, 1.3126379251480103, -0.41975629329681396, -0.3462827205657959, -0.38358423113822937, -0.3430549204349518, 0.26384544372558594, -0.305325984954834, -0.48526301980018616, 0.3199010491371155, -0.721768319606781, 0.24911053478717804, 1.4836288690567017, 0.37286442518234253, 0.1668676882982254, 0.509005069732666, 1.0124980211257935, 0.35117095708847046, -0.06833135336637497, -0.9190576076507568, -1.3504257202148438, 2.039081335067749, -1.5064857006072998, 1.7958012819290161, 0.7490147948265076, -0.07868573814630508, -1.7234491109848022, -1.8835269212722778, 1.313302755355835, 1.3495303392410278, 2.205706834793091, 0.6055151224136353, 0.2700619697570801, -0.8703669905662537, -0.5062779784202576, 0.259178102016449, -1.0800219774246216, -0.8788416981697083, 0.18193061649799347, 2.372323513031006, 1.6373940706253052, -0.5765446424484253, -0.16709743440151215, -1.1183756589889526, 1.2749024629592896, -0.15095043182373047, 0.2196936011314392, 2.0737688541412354, -0.41171994805336, -1.1916861534118652, 1.2339380979537964, -2.2992103099823, 0.043466925621032715, 1.8099843263626099, 0.2846619486808777, 0.17118988931179047, -1.5365403890609741, -0.750943124294281, -0.14285525679588318, -0.45389631390571594, -1.225002646446228, 0.7015873789787292, -0.34494826197624207, -0.7621851563453674, -1.5484309196472168, 0.20553845167160034, -1.0158933401107788, -1.657637119293213, 0.20871751010417938, 1.8314090967178345, 1.9549596309661865, -0.8298714756965637, 1.5776338577270508, -0.14670833945274353, 0.08603840321302414, 1.3266998529434204, 1.1386888027191162, 2.983473539352417, 1.968907356262207, -1.2067118883132935, 0.679046094417572, -0.10526853799819946, -0.537420392036438, 1.1700817346572876, -1.1700185537338257, 1.1802116632461548, -0.11427361518144608, -1.169838547706604, -1.2966758012771606, 0.7777106761932373, 0.36105141043663025, 0.15147462487220764, -0.42107439041137695, 1.436571717262268, 0.10071025043725967, 1.366869568824768, 0.48802658915519714, -0.23934638500213623, 0.5867987871170044, -0.48380038142204285, -0.41375625133514404, 1.5783884525299072, 0.28901711106300354, -1.3318397998809814, -2.221747636795044, -0.16730909049510956, -0.7768451571464539, -0.056094758212566376, -0.547629714012146, -0.9878791570663452, 1.6260772943496704, 0.4062855541706085, -1.320574164390564, -0.2828019857406616, -0.3397831618785858, -0.5990195870399475, 2.666930675506592, -1.511037826538086, -0.26377221941947937, -0.8786280155181885, -0.4175831377506256, 1.789868950843811, -1.191115379333496, -0.1752077043056488, -1.1081563234329224, -0.47192251682281494, -1.3445584774017334, -0.48239973187446594, -0.14319071173667908, -1.017942190170288, 0.8416454792022705, 0.1344759464263916, -1.1759545803070068, -0.33041414618492126, -0.8276688456535339, 0.7618909478187561, -0.025934867560863495, 0.43839868903160095, 2.0345287322998047, 0.37077343463897705, -0.4663698971271515, 0.6371824145317078, 1.1984076499938965, 0.5481733083724976, -0.5905758738517761, 0.22890795767307281, -0.6772817373275757, 0.4033787250518799, -1.2952361106872559, 0.1900065839290619, -2.8890039920806885, 0.566620945930481, -0.020967746153473854, -0.14550934731960297, -0.09168466925621033, -1.3036662340164185, 1.2579398155212402, 2.7249443531036377, -1.1356816291809082, 0.4838131368160248, 0.29715609550476074, 1.2982254028320312, -1.537739872932434, 0.48352983593940735, -0.3613166809082031, 2.1364357471466064, 0.26820141077041626, 1.1809985637664795, -0.39577123522758484, -2.354175090789795, 0.5735457539558411, -1.2411019802093506, -1.1816259622573853, 0.8134300112724304, -0.8002827763557434, 0.017114197835326195, -1.3793302774429321, -0.0705852136015892, -0.8918102979660034, -1.3238937854766846, 0.7889403104782104, 0.23138444125652313, 0.5816677212715149, -0.7411326766014099, 0.3789503872394562, -2.274595260620117, -1.405910849571228, -0.43068772554397583, -0.8744403123855591, 0.3977879285812378, -0.18687814474105835, 0.7314303517341614, -0.27413418889045715, 0.07641556113958359, 0.43348193168640137, 1.3529245853424072, 3.396054744720459, 0.26468557119369507, 0.3875751793384552, -0.2238503396511078, -0.8515874147415161, 1.5179744958877563, 0.9850682020187378, -0.08813748508691788, -0.6344151496887207, -0.9688704609870911, 1.2157001495361328, 2.017625331878662, 1.0397541522979736, 0.012109661474823952, -0.7293637990951538, -0.5861070156097412, 0.05389989912509918, 0.26280009746551514, 0.46754366159439087, 1.0409018993377686, 0.04480794817209244, 0.07137805223464966, 1.4408496618270874, 1.150789737701416, -0.46694907546043396, 0.4186713695526123, -0.8514413833618164, -0.37521690130233765, 0.5122377872467041, 0.27839013934135437, 0.07688125222921371, 0.298257052898407, -0.7922846078872681, -0.26349112391471863, -0.18336068093776703, -1.010138988494873, -0.7653691172599792, -0.37356188893318176, -0.4816497266292572, 1.6735912561416626, 0.006568743847310543, -0.5861147046089172, -0.21392902731895447, -0.6687138676643372, -0.08447413891553879, -0.8923735022544861, 0.30369439721107483, -0.06311623752117157, -0.04813949018716812, -0.066755510866642, 1.7948614358901978, -1.0114693641662598, -2.0344161987304688, 0.3727093040943146, 0.3085459768772125, -0.4054458439350128, 0.22949014604091644, 1.536334753036499, 0.4639975428581238, 1.5549193620681763, 1.3201658725738525, 0.9293683767318726, -0.663927435874939, -1.3809926509857178, 0.5844072103500366, 0.8245148658752441, -1.426157832145691, 0.7542078495025635, 0.11173120886087418, -0.2747310698032379, 0.6088432669639587, 1.2753067016601562, 0.4968467354774475, -2.0089550018310547, 0.7467315196990967, -0.8846909999847412, 0.840333104133606, 0.7856302857398987, 0.8073234558105469, 0.16690850257873535, 0.778304934501648, -1.1648215055465698, -1.230337381362915, -0.8253576755523682, -0.5857956409454346, 1.9815844297409058, -0.25087103247642517, 0.7439561486244202, -0.11544521898031235, -1.2431650161743164, -0.05598733574151993, 0.6378999352455139, 0.35689982771873474, -0.40743717551231384, 0.7044825553894043, -0.6218953132629395, -1.2513794898986816, -1.3982188701629639, -0.4948752820491791, -1.0058608055114746, -0.8525446653366089, 1.0267466306686401, 0.8244948983192444, 0.21539345383644104, 1.811531901359558, 0.5251978635787964, 0.29962143301963806, -2.55080246925354, 0.9532403349876404, 0.33650606870651245, -0.044742241501808167, 0.831694483757019, 0.26766249537467957, 0.9266759157180786, -0.07608131319284439, 0.6399409174919128, -2.5894525051116943, 2.4214067459106445, -0.26553332805633545, 0.6367992162704468, 0.09805704653263092, -0.11947434395551682, 0.9944925308227539, 0.5946954488754272, 0.5157568454742432, -1.0848623514175415, 0.6280264854431152, -0.6191584467887878, 1.4185205698013306, 0.883845865726471, -0.6884346604347229, 0.0736742839217186, 1.2904198169708252, 0.44004133343696594, -0.48894041776657104, -0.813952624797821, -0.9952590465545654, 0.8359573483467102, 1.7881513833999634, -0.15571027994155884, -0.041388966143131256, 0.7740252017974854, 0.6471271514892578, -1.1876847743988037, -0.02433902770280838, -0.9065879583358765, -0.8341411352157593, 1.5070433616638184, 2.0110247135162354, -0.05943290889263153, -0.08847547322511673, -0.664454460144043, -1.0595773458480835, 0.9088990092277527, 0.05672738701105118, 0.2385973483324051, 0.7836634516716003, -0.5126662254333496, 1.1959649324417114, 0.807345986366272, 0.9021332263946533, 0.2413642257452011, 0.35965216159820557, 0.32394400238990784, -0.24057111144065857, -0.9867900013923645, -0.20763441920280457, -1.1152688264846802, -2.5210909843444824, 0.45386388897895813, -0.34422799944877625, -1.4038033485412598, -0.0027293465100228786, -1.0430240631103516, 0.9332506060600281, -0.5534303188323975, -1.125600814819336, -1.608033537864685, 0.09898626804351807, -0.13790352642536163, 0.9576963782310486, -1.6344552040100098, -0.07652788609266281, 1.3000394105911255, 0.9771377444267273, -0.7926281690597534, 0.9946320056915283, 0.16574682295322418, 1.015224814414978, 0.871436595916748, -0.26549503207206726, 0.37700384855270386, -0.05050075799226761, -1.3297297954559326, 0.52411949634552, 1.141129970550537, -0.0024776533246040344, 1.4947681427001953, -0.6287456154823303, -0.028941556811332703, 0.44383731484413147, -0.5519013404846191, -0.49116042256355286, -0.7138223648071289, 0.7618927955627441, 0.1791650354862213, -0.892211377620697, 0.08684545010328293, -0.1695813238620758, -0.12646181881427765, 0.26544106006622314, -1.3815633058547974, -0.3157130181789398, -0.4845067858695984, -0.41504955291748047, -1.0656548738479614, -0.13281607627868652, 1.4030683040618896, -0.6637814044952393, -0.13969680666923523, 0.48818913102149963, 0.4064725935459137, 0.44928091764450073, 0.7137770056724548, -0.6820597052574158, -0.31020161509513855, -0.1845000982284546, -0.2146969437599182, 0.36158910393714905, 1.3689039945602417, -0.05871659517288208, -1.0398344993591309, 0.8222808241844177, -0.4207821190357208, -0.07198169827461243, 2.036668539047241, 0.10917533189058304, -0.8477267026901245, 0.46717241406440735, -0.724992573261261, 1.9484137296676636, 1.6462000608444214, 1.2618950605392456, -0.001198616810142994, -1.021903395652771, 0.46850156784057617, -0.19434145092964172, -0.38907676935195923, 0.8232780694961548, 0.28636372089385986, -0.3946448862552643, -1.3336530923843384, 0.6247907280921936, 1.2017672061920166, -0.7263001203536987, -0.8135070204734802, -0.04164721816778183, -0.818049967288971, 0.960963785648346, 0.7564430832862854, 0.49164479970932007, 0.15087831020355225, 1.6120399236679077, 0.7236515283584595, -0.5642656683921814, 0.46439114212989807, 0.40022990107536316, -0.08131372928619385, -2.0423367023468018, -1.127808690071106, 0.27649232745170593, -0.4972083866596222, -1.4942350387573242, 1.3250017166137695, -1.2059420347213745, -0.9558987617492676, 0.5381842851638794, 0.0892631858587265, 1.5177081823349, 0.353912889957428, 1.5588973760604858, 2.090599298477173, 0.9485339522361755, 0.201557457447052, 1.3779994249343872, -0.21869297325611115, -0.5578731894493103, 1.9051774740219116, -0.4772547483444214, 0.4341409504413605, 1.0277554988861084, -0.2336551547050476, -0.8771619200706482, -0.8006148934364319, -1.1896039247512817, -0.7682867050170898, 1.1867289543151855, 0.0873134434223175, -1.2283517122268677, 0.18549877405166626, 1.4537473917007446, 0.09658780694007874, -0.3235686123371124, 0.422625333070755, 0.5371326208114624, -1.0279173851013184, -0.0722847655415535, -0.9289801120758057, 0.47615304589271545, -0.22613254189491272, -0.38008174300193787, 0.35299602150917053, 0.5313775539398193, 1.1929737329483032, -0.010725832544267178, 0.2821141183376312, 1.1943166255950928, -1.4405338764190674, 1.5961099863052368, -0.6234779953956604, 0.06546646356582642, -2.425781011581421, 1.4541740417480469, -0.6346431374549866, 1.8980827331542969, -2.817516565322876, 0.4255722165107727, -0.42996081709861755, -0.520770788192749, 0.33580446243286133, -0.3723578155040741, 0.24450738728046417, -0.24380673468112946, -1.1432325839996338, 0.024095995351672173, -0.7601757049560547, 0.47896918654441833, 0.8972597718238831, 1.310562014579773, -1.122273564338684, -0.29734745621681213, -1.7270938158035278, -0.2591245174407959, -0.7310778498649597, 0.3417958617210388, -2.0745577812194824, -0.23647230863571167, -2.01619815826416, -2.2295403480529785, -1.3461195230484009, -0.8754952549934387, 1.1652518510818481, 0.1854012906551361, -0.9382533431053162, 1.0033648014068604, -0.43340831995010376, -1.9769067764282227, 1.1125177145004272, -2.0660312175750732 ]
https://github.com/huggingface/datasets/issues/3786
Bug downloading Virus scan warning page from Google Drive URLs
Once the PR merged into master and until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
## Describe the bug Recently, some issues were reported with URLs from Google Drive, where we were downloading the Virus scan warning page instead of the data file itself. See: - #3758 - #3773 - #3784
930
77
Bug downloading Virus scan warning page from Google Drive URLs ## Describe the bug Recently, some issues were reported with URLs from Google Drive, where we were downloading the Virus scan warning page instead of the data file itself. See: - #3758 - #3773 - #3784 Once the PR merged into master and until our next `datasets` library release, you can get this fix by installing our library from the GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then, if you had previously tried to load the data and got the checksum error, you should force the redownload of the data (before the fix, you just downloaded and cached the virus scan warning page, instead of the data file): ```shell load_dataset("...", download_mode="force_redownload") ```
[ -1.1535727977752686, -0.8291025757789612, -0.8448407053947449, 1.4705171585083008, -0.1596287488937378, -1.280494213104248, 0.17388495802879333, -1.0578535795211792, 1.7118823528289795, -0.8692805767059326, 0.29466626048088074, -1.6856462955474854, -0.028299303725361824, -0.654476523399353, -0.7633981108665466, -0.9012031555175781, -0.4189131259918213, -0.767025351524353, 0.9848069548606873, 2.3978757858276367, 1.1832053661346436, -1.2178086042404175, 2.687345266342163, 0.7122448086738586, -0.17109614610671997, -0.9892823100090027, 0.5508285760879517, 0.003275422379374504, -1.240586757659912, -0.4744972288608551, -0.9846000671386719, -0.1275792270898819, -0.5159022808074951, -0.6858405470848083, -0.02567083202302456, 0.46271833777427673, -0.3748134672641754, -0.41331344842910767, -0.48206570744514465, -0.8827750086784363, 0.4240959584712982, -0.3290652632713318, 0.9559854865074158, -0.405388742685318, 1.9083631038665771, -0.5651515126228333, 0.3858700394630432, 0.7439846992492676, 1.3659453392028809, 0.1581534445285797, -0.029258552938699722, 0.2683747410774231, 0.31905102729797363, 0.014762498438358307, 0.39943838119506836, 1.0763424634933472, 0.5553256273269653, 0.5824482440948486, 0.6863651871681213, -2.2065930366516113, 1.2504523992538452, -1.0781291723251343, 0.24163728952407837, 1.379683494567871, -1.0319180488586426, 0.3795008957386017, -1.8460613489151, -0.03292170912027359, 0.3436625599861145, -2.3241617679595947, 0.3323957324028015, -1.1916241645812988, -0.4500141143798828, 1.0005944967269897, 0.3228679895401001, -1.255376935005188, 0.08736788481473923, -0.3696460425853729, 1.0908204317092896, 0.44460174441337585, 1.157960057258606, -1.6748026609420776, -0.02951302006840706, -0.3734782636165619, -0.006964709609746933, -1.239828109741211, -1.502923846244812, 0.5183283090591431, 0.6653763055801392, 0.5908104181289673, -0.1765253245830536, 1.137064814567566, -0.8696736693382263, 0.8834251165390015, -0.9946165680885315, -1.7173068523406982, -1.375295877456665, -2.175050735473633, -2.281355381011963, 0.7963953614234924, -0.5083349943161011, -0.565366268157959, 2.033761501312256, -1.022404432296753, -1.7624837160110474, 1.221460223197937, 0.28277266025543213, -0.10143909603357315, 2.304388999938965, 0.25773465633392334, -0.6637952327728271, 0.4100453853607178, -0.6575331687927246, 0.8489139676094055, -0.4340638518333435, 1.4111614227294922, 0.5365698337554932, -1.1631702184677124, 1.5907642841339111, -0.3587725758552551, 0.5914872884750366, -0.7014723420143127, -0.49530449509620667, -0.8683344721794128, 0.30782654881477356, 1.8871443271636963, -0.3450339436531067, 1.6297463178634644, -0.30280256271362305, -1.4967581033706665, -1.5287928581237793, 0.9651454091072083, 0.5075554847717285, -0.7330620288848877, 0.12918129563331604, -0.24230420589447021, 0.09543565660715103, -0.05390852317214012, 1.1526113748550415, 1.2548424005508423, 0.6969006061553955, -0.23910677433013916, -0.7618440389633179, 0.2969173789024353, -0.06624007970094681, -0.7245546579360962, -1.701602816581726, -0.3909914493560791, 0.06540408730506897, 0.5640809535980225, -1.2041981220245361, 1.7112606763839722, 0.8099315166473389, 1.897881031036377, 1.0051161050796509, -0.34429094195365906, 1.4437401294708252, 0.049857690930366516, 1.9893202781677246, -0.5477617383003235, 0.6633270978927612, -0.29536354541778564, -1.1969770193099976, 0.8410632014274597, -0.30536243319511414, -2.071143627166748, -0.7937018871307373, -0.9378895163536072, -0.21491888165473938, -0.722324788570404, 1.0121220350265503, -0.40344691276550293, -1.4367549419403076, 0.3106456398963928, -0.6242468357086182, 0.1318812072277069, -1.2866102457046509, 0.34568482637405396, 0.6971782445907593, -0.6715462803840637, -0.035850975662469864, -0.2620047330856323, -1.3005259037017822, -0.4064182639122009, 0.3255365192890167, 1.8974238634109497, -0.7956569790840149, 1.0362828969955444, 1.0095126628875732, -0.8664238452911377, -0.004365200642496347, 0.2665967643260956, -0.33466047048568726, 0.8780357837677002, -1.0837997198104858, -0.5442681908607483, 1.2495677471160889, -0.18271175026893616, -0.6207221746444702, 1.4437634944915771, 0.6761407256126404, -0.9541006684303284, -0.10412023961544037, -0.1348094344139099, -0.8591161370277405, 0.030320607125759125, -1.5829782485961914, -0.053805794566869736, 0.40664371848106384, -1.4787541627883911, -0.5212753415107727, -0.1794939935207367, 1.2732936143875122, -0.2238757610321045, 1.3979337215423584, -0.25410252809524536, -0.29781168699264526, -0.48482251167297363, -0.3656470775604248, 0.07557939738035202, -0.042570874094963074, -0.623648464679718, 0.2154356837272644, -0.7462490200996399, 0.2594377398490906, 1.2773791551589966, 0.3023293614387512, 0.003016296774148941, 0.7110929489135742, 1.104280710220337, 0.28679218888282776, -0.04181690514087677, -0.8901000022888184, -1.5335973501205444, 1.9649537801742554, -1.4610880613327026, 1.907411813735962, 0.6863735318183899, -0.024120677262544632, -1.7643781900405884, -1.8544068336486816, 1.4364633560180664, 1.231655240058899, 2.263519287109375, 0.6643008589744568, 0.4652635157108307, -0.7787533402442932, -0.6325271129608154, 0.34100979566574097, -1.1253093481063843, -0.6684982776641846, 0.12095759063959122, 2.3613510131835938, 1.6858457326889038, -0.4803866446018219, -0.27049151062965393, -1.0830391645431519, 1.2749361991882324, -0.15340399742126465, 0.14274495840072632, 1.9352855682373047, -0.3317944407463074, -1.161539077758789, 1.2689976692199707, -2.3343393802642822, 0.10746762156486511, 2.0132157802581787, 0.32433077692985535, -0.005416524596512318, -1.4481507539749146, -0.6538051962852478, -0.08859777450561523, -0.46793460845947266, -1.2585351467132568, 0.631881833076477, -0.2802884876728058, -0.7822643518447876, -1.4339731931686401, 0.12314870208501816, -1.019640564918518, -1.70233952999115, 0.2509699761867523, 1.876056432723999, 1.9274563789367676, -0.6826416254043579, 1.562366008758545, -0.3072138726711273, 0.1976061463356018, 1.2654809951782227, 1.1987450122833252, 3.1665198802948, 1.906256914138794, -1.2802001237869263, 0.655996561050415, -0.03989432007074356, -0.48114174604415894, 1.274350643157959, -1.099726676940918, 1.3242801427841187, -0.23013153672218323, -1.1553709506988525, -1.335593581199646, 0.8539221882820129, 0.47149255871772766, 0.16443857550621033, -0.5215457677841187, 1.2471891641616821, 0.0783887654542923, 1.235681414604187, 0.5675334930419922, -0.3795907199382782, 0.5769326090812683, -0.38024863600730896, -0.4435440003871918, 1.6557185649871826, 0.28809431195259094, -1.3421574831008911, -2.3868401050567627, -0.20754209160804749, -0.7332600951194763, 0.05124461278319359, -0.5762884616851807, -0.9141489267349243, 1.7518805265426636, 0.45402559638023376, -1.3207240104675293, -0.381714403629303, -0.4148958921432495, -0.6870316863059998, 2.7351198196411133, -1.467733383178711, -0.2280031442642212, -0.9791721105575562, -0.6379406452178955, 1.6342421770095825, -1.192363977432251, -0.22857129573822021, -1.0474640130996704, -0.6338297724723816, -1.3683899641036987, -0.6212365627288818, 0.09842277318239212, -0.973842442035675, 0.8072896599769592, 0.11713062971830368, -1.2034136056900024, -0.2930937111377716, -0.8768997192382812, 0.9137932658195496, -0.14628449082374573, 0.28783565759658813, 1.8604660034179688, 0.6008268594741821, -0.44172966480255127, 0.7311442494392395, 1.2004250288009644, 0.6994117498397827, -0.6384682655334473, 0.2530265152454376, -0.6809601187705994, 0.24870088696479797, -1.3250137567520142, 0.2885107100009918, -2.8727011680603027, 0.5900619626045227, -0.12498443573713303, -0.07410649210214615, -0.049047600477933884, -1.3239763975143433, 1.114016056060791, 2.5537941455841064, -1.2212111949920654, 0.37184610962867737, 0.2908647954463959, 1.2610418796539307, -1.577348232269287, 0.276269793510437, -0.48658159375190735, 2.0203447341918945, 0.15581771731376648, 1.1895774602890015, -0.5695021152496338, -2.1878292560577393, 0.638982892036438, -1.2707273960113525, -1.3307782411575317, 0.8865392804145813, -0.755165696144104, 0.12095459550619125, -1.3584226369857788, -0.16637861728668213, -0.7761256098747253, -1.3348139524459839, 0.8610079288482666, 0.13559213280677795, 0.4319847822189331, -0.6084370613098145, 0.3580172061920166, -2.106682777404785, -1.3749626874923706, -0.17852163314819336, -0.939041018486023, 0.31829431653022766, -0.34086093306541443, 0.7139285206794739, -0.19200974702835083, 0.0495012141764164, 0.3010336756706238, 1.4394832849502563, 3.4195914268493652, 0.18142032623291016, 0.37217283248901367, -0.09144151955842972, -0.9860638380050659, 1.564308524131775, 0.9854249954223633, -0.09248387068510056, -0.5141100287437439, -0.9156243205070496, 1.162235975265503, 1.9390223026275635, 1.047910213470459, 0.08142999559640884, -0.8632062077522278, -0.6394408345222473, 0.037405986338853836, 0.17523527145385742, 0.4969041049480438, 0.8160291314125061, 0.13477516174316406, 0.0690232589840889, 1.3742241859436035, 1.1568101644515991, -0.4402209222316742, 0.37059202790260315, -0.7651746273040771, -0.48784852027893066, 0.5777674317359924, 0.3664310872554779, 0.011307740584015846, 0.31734877824783325, -0.9459033608436584, -0.40063315629959106, -0.3357964754104614, -0.9715549945831299, -0.7220517992973328, -0.370596319437027, -0.4153483211994171, 1.5948213338851929, -0.04268818721175194, -0.4811948537826538, -0.06657378375530243, -0.8350443840026855, -0.13940292596817017, -1.1061842441558838, 0.3084743022918701, -0.1483023762702942, -0.13894563913345337, 0.004209583625197411, 1.7493295669555664, -1.0230079889297485, -2.1182401180267334, 0.23926925659179688, 0.3484823703765869, -0.36668074131011963, 0.14090797305107117, 1.5472190380096436, 0.5188350081443787, 1.3528648614883423, 1.3193782567977905, 0.9826513528823853, -0.7110386490821838, -1.2920678853988647, 0.6907083988189697, 0.9269893169403076, -1.4862580299377441, 0.7885738611221313, 0.0484376922249794, -0.596304714679718, 0.6362916827201843, 1.2094943523406982, 0.4238383173942566, -1.8711562156677246, 0.7111115455627441, -0.8586229085922241, 0.7409510016441345, 0.7460593581199646, 0.7857714891433716, 0.2152481973171234, 0.858742892742157, -1.2783352136611938, -1.1598623991012573, -0.7189307808876038, -0.6024751663208008, 1.9097323417663574, -0.16736096143722534, 0.5297850370407104, -0.16606494784355164, -1.3133957386016846, -0.10162021219730377, 0.7115100622177124, 0.3996986746788025, -0.39978647232055664, 0.7735536098480225, -0.6718994975090027, -0.9945125579833984, -1.5123231410980225, -0.443720281124115, -1.0412909984588623, -0.877960741519928, 1.0649195909500122, 0.8426435589790344, 0.2969985008239746, 1.8446489572525024, 0.6422977447509766, 0.2555866837501526, -2.5928637981414795, 0.9055227637290955, 0.3114868104457855, -0.1396133303642273, 0.8779722452163696, 0.31355157494544983, 1.0971403121948242, -0.020158149302005768, 0.5624598860740662, -2.3617124557495117, 2.288240671157837, -0.2394256591796875, 0.5396481156349182, 0.01933068223297596, -0.19527065753936768, 1.159135103225708, 0.5409243702888489, 0.5554787516593933, -1.1359139680862427, 0.7282893061637878, -0.6005412936210632, 1.2410328388214111, 1.0633107423782349, -0.8385866284370422, -0.036757975816726685, 1.4503061771392822, 0.6038798689842224, -0.5117343068122864, -0.8865172863006592, -0.8899528384208679, 0.9788040518760681, 1.7187561988830566, 0.021936099976301193, 0.0016785645857453346, 0.8594711422920227, 0.5758060216903687, -1.3805044889450073, 0.19083431363105774, -0.7167359590530396, -0.7290716171264648, 1.6951619386672974, 2.018845319747925, -0.11328163743019104, -0.19013020396232605, -0.8511881828308105, -1.1480326652526855, 0.8221228122711182, 0.04629093036055565, 0.21534225344657898, 0.6970476508140564, -0.7055426239967346, 1.0476452112197876, 0.8866147994995117, 0.9226656556129456, 0.17335402965545654, 0.39628469944000244, 0.37724950909614563, -0.1960129737854004, -1.2125269174575806, -0.20851850509643555, -1.0640369653701782, -2.671855926513672, 0.5370957255363464, -0.30135083198547363, -1.3357962369918823, 0.12907814979553223, -1.0917649269104004, 0.935614824295044, -0.5902858376502991, -1.0918248891830444, -1.5303391218185425, 0.22583183646202087, -0.0010000253096222878, 0.9444373846054077, -1.5669007301330566, -0.06035492196679115, 1.3501986265182495, 0.8763602375984192, -0.7501276731491089, 0.920836865901947, 0.14482438564300537, 1.1002986431121826, 0.8153750896453857, -0.46462205052375793, 0.4778764843940735, 0.11148414015769958, -1.396644115447998, 0.504504919052124, 1.096262812614441, 0.14227783679962158, 1.5715856552124023, -0.5624048113822937, -0.03178844600915909, 0.4712032675743103, -0.49636757373809814, -0.5791047811508179, -0.6669527888298035, 0.6095810532569885, 0.06285983324050903, -0.8844373226165771, 0.109918013215065, -0.056334249675273895, -0.262130469083786, 0.1753227710723877, -1.5863922834396362, -0.2233942449092865, -0.3625541925430298, -0.6392213106155396, -1.282726764678955, -0.056585971266031265, 1.291617751121521, -0.6710464358329773, -0.13244304060935974, 0.4568879008293152, 0.2855115234851837, 0.5075192451477051, 0.59323650598526, -0.6605777144432068, -0.3697659373283386, -0.3433752655982971, -0.39346393942832947, 0.29510432481765747, 1.3853777647018433, -0.2206243872642517, -0.9715129733085632, 0.6911084055900574, -0.2471264898777008, 0.04302043467760086, 1.9672744274139404, 0.08113203942775726, -0.9143784046173096, 0.26305854320526123, -0.6206430792808533, 1.8941500186920166, 1.5958714485168457, 1.3905696868896484, -0.12304070591926575, -0.8661924600601196, 0.6440125107765198, -0.32477760314941406, -0.3713311553001404, 0.9498819708824158, 0.4170116186141968, -0.09990395605564117, -1.4674265384674072, 0.6974033117294312, 1.2994120121002197, -0.9194042086601257, -0.8350635170936584, 0.07445918768644333, -0.7691699862480164, 1.0168219804763794, 0.7301719784736633, 0.46218428015708923, 0.2800082564353943, 1.5413806438446045, 0.7305369973182678, -0.47372302412986755, 0.5085759162902832, 0.5307891964912415, -0.024965349584817886, -2.021109104156494, -1.2077594995498657, 0.3732340931892395, -0.47854718565940857, -1.5598965883255005, 1.4180020093917847, -1.1086715459823608, -0.9140451550483704, 0.5147875547409058, 0.1748093068599701, 1.5426506996154785, 0.30126988887786865, 1.5477919578552246, 2.0136947631835938, 0.8437978625297546, 0.2798910140991211, 1.2977781295776367, -0.08081060647964478, -0.4120856821537018, 1.7629892826080322, -0.45074909925460815, 0.44160786271095276, 1.062790870666504, -0.3090771734714508, -1.0852338075637817, -0.7861634492874146, -1.3275095224380493, -0.6478525400161743, 1.1319650411605835, 0.10097339004278183, -1.2223962545394897, 0.21634629368782043, 1.5420633554458618, 0.14983335137367249, -0.24303746223449707, 0.6557760238647461, 0.46502479910850525, -0.8154562711715698, 0.00718064047396183, -0.887154757976532, 0.48825711011886597, -0.08180969953536987, -0.40900036692619324, 0.3246564269065857, 0.5422673225402832, 1.3244670629501343, -0.018764514476060867, 0.09931164234876633, 1.121178388595581, -1.4080175161361694, 1.4446444511413574, -0.6270248889923096, 0.19277602434158325, -2.425410270690918, 1.4757883548736572, -0.8231415748596191, 1.784786343574524, -2.6035428047180176, 0.41452842950820923, -0.4861772656440735, -0.38559699058532715, 0.4020346999168396, -0.4498530924320221, 0.19583502411842346, -0.2490347921848297, -0.9987931847572327, -0.04200640693306923, -0.761459469795227, 0.673825740814209, 1.2083992958068848, 1.3369113206863403, -1.105122685432434, -0.3316245377063751, -1.747387409210205, -0.15402719378471375, -0.4791375994682312, 0.35804736614227295, -2.0431716442108154, -0.19223475456237793, -1.9119691848754883, -2.3965811729431152, -1.2510287761688232, -0.8752619624137878, 1.1963156461715698, 0.09689218550920486, -0.9202307462692261, 1.1746516227722168, -0.3542059063911438, -1.7972153425216675, 1.079353928565979, -2.1617228984832764 ]
https://github.com/huggingface/datasets/issues/3784
Unable to Download CNN-Dailymail Dataset
Glad to help @albertvillanova! Just fine-tuning the PR, will comment once I am able to get it up and running 😀
## Describe the bug I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening: - The dataset sits in Google Drive, and both the CNN and DM datasets are large. - Google is unable to scan the folder for viruses, **so the link which would originally download the dataset, now downloads the source code of this web page:** ![image](https://user-images.githubusercontent.com/58678541/155658435-c2f497d7-7601-4332-94b1-18a62dd96422.png) - **This leads to the following error**: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Steps to reproduce the bug ```python import datasets dataset = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` ## Expected results That the dataset is downloaded and processed just like other datasets. ## Actual results Hit with this error: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1
931
21
Unable to Download CNN-Dailymail Dataset ## Describe the bug I am unable to download the CNN-Dailymail dataset. Upon closer investigation, I realised why this was happening: - The dataset sits in Google Drive, and both the CNN and DM datasets are large. - Google is unable to scan the folder for viruses, **so the link which would originally download the dataset, now downloads the source code of this web page:** ![image](https://user-images.githubusercontent.com/58678541/155658435-c2f497d7-7601-4332-94b1-18a62dd96422.png) - **This leads to the following error**: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Steps to reproduce the bug ```python import datasets dataset = datasets.load_dataset("cnn_dailymail", "3.0.0", split="train") ``` ## Expected results That the dataset is downloaded and processed just like other datasets. ## Actual results Hit with this error: ```python NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1 Glad to help @albertvillanova! Just fine-tuning the PR, will comment once I am able to get it up and running 😀
[ -1.1344554424285889, -0.8616194128990173, -0.6872755885124207, 1.2633451223373413, -0.10881384462118149, -1.2727251052856445, 0.164364293217659, -1.091107964515686, 1.786605954170227, -0.7082293033599854, 0.2410709410905838, -1.6909148693084717, -0.059337176382541656, -0.6068115234375, -0.7722844481468201, -0.8078734278678894, -0.3719765841960907, -0.7684571146965027, 0.9606950879096985, 2.555809259414673, 1.1386393308639526, -1.3433173894882202, 2.7176361083984375, 0.6052278280258179, -0.2690258324146271, -0.88922518491745, 0.42951202392578125, -0.041504018008708954, -1.377558946609497, -0.3646935224533081, -0.9101167321205139, -0.011635550297796726, -0.5270078182220459, -0.5539426207542419, 0.06426011025905609, 0.4437263607978821, -0.2280476987361908, -0.42156124114990234, -0.4725814759731293, -0.7748861908912659, 0.5144233107566833, -0.3335460126399994, 0.9623198509216309, -0.34214484691619873, 1.8163830041885376, -0.5687583684921265, 0.40120014548301697, 0.7120594382286072, 1.270851492881775, 0.13128544390201569, -0.03829830139875412, 0.3261750638484955, 0.3111746907234192, -0.045657239854335785, 0.44450679421424866, 1.2133718729019165, 0.6392447352409363, 0.5056052803993225, 0.7774336338043213, -2.2163941860198975, 1.309241533279419, -0.872860312461853, 0.27193132042884827, 1.3605194091796875, -0.9825670123100281, 0.3420543968677521, -1.8932987451553345, -0.05383003503084183, 0.4802304804325104, -2.274813413619995, 0.25407302379608154, -1.340336799621582, -0.5240805149078369, 0.979034423828125, 0.24573640525341034, -1.269692301750183, 0.2196653038263321, -0.3841715157032013, 1.0328903198242188, 0.47740551829338074, 1.2267954349517822, -1.7889105081558228, -0.06463143229484558, -0.2654813826084137, 0.1552956998348236, -1.2768871784210205, -1.6288810968399048, 0.5513054728507996, 0.6103258728981018, 0.6973734498023987, -0.11102119088172913, 0.9477535486221313, -1.0233540534973145, 0.8289234042167664, -0.9573498368263245, -1.7406121492385864, -1.3509533405303955, -2.2540950775146484, -2.2762370109558105, 0.7400432825088501, -0.4406753480434418, -0.4079955816268921, 2.030230760574341, -1.0264692306518555, -1.781596302986145, 1.0615930557250977, 0.31284770369529724, -0.07174936681985855, 2.3718795776367188, 0.2817644476890564, -0.7478135824203491, 0.5195409655570984, -0.7338795065879822, 0.7775611281394958, -0.35874298214912415, 1.3143703937530518, 0.4855055809020996, -1.021126627922058, 1.5961493253707886, -0.4824739694595337, 0.5872080326080322, -0.7527544498443604, -0.5030121803283691, -0.7706093788146973, 0.334046334028244, 1.892004370689392, -0.3160359561443329, 1.5253247022628784, -0.3531055748462677, -1.6216543912887573, -1.469120979309082, 0.8465167880058289, 0.5914056897163391, -0.7972277998924255, 0.1189609095454216, -0.4206920862197876, 0.09836006164550781, -0.03510766103863716, 1.0578464269638062, 1.242976188659668, 0.7258298993110657, -0.2031378298997879, -0.8970337510108948, 0.21482785046100616, -0.0595625638961792, -0.6813325881958008, -1.7380707263946533, -0.3150223195552826, 0.1641867756843567, 0.59364914894104, -1.2558284997940063, 1.7866462469100952, 0.8286900520324707, 2.010317802429199, 1.0113041400909424, -0.3472602963447571, 1.5092326402664185, 0.12535429000854492, 1.8918129205703735, -0.40542107820510864, 0.6285533308982849, -0.27444836497306824, -1.121604323387146, 0.8080365657806396, -0.3393920063972473, -2.0589985847473145, -0.6562976241111755, -0.8113778829574585, -0.19880466163158417, -0.8039321899414062, 0.9076062440872192, -0.20576035976409912, -1.4684809446334839, 0.1690099835395813, -0.6697539687156677, 0.14093735814094543, -1.3252547979354858, 0.2982529401779175, 0.7432917356491089, -0.6621842980384827, 0.0324302539229393, -0.3154711425304413, -1.3404064178466797, -0.44676244258880615, 0.31377843022346497, 1.921927571296692, -0.6566637754440308, 0.9533944725990295, 1.0255924463272095, -0.6190751194953918, -0.011047239415347576, 0.37390318512916565, -0.3105204403400421, 0.8471164703369141, -1.1406158208847046, -0.33294352889060974, 1.0756374597549438, -0.14231497049331665, -0.5210027098655701, 1.4143329858779907, 0.6910360455513, -1.0856959819793701, -0.21487745642662048, -0.15091829001903534, -0.8454267978668213, -0.011081843636929989, -1.6467074155807495, -0.10949626564979553, 0.30213236808776855, -1.4522910118103027, -0.5311419367790222, -0.25922974944114685, 1.2685004472732544, -0.1564418375492096, 1.351725459098816, -0.3063777685165405, -0.15139086544513702, -0.45881399512290955, -0.4849444627761841, 0.14659541845321655, -0.24412591755390167, -0.6928099989891052, 0.19989264011383057, -0.7486004829406738, 0.26959866285324097, 1.4890474081039429, 0.3526683449745178, 0.03926939517259598, 0.5289210081100464, 1.142295002937317, 0.2769821882247925, -0.08473775535821915, -0.8189051151275635, -1.6487141847610474, 2.0216543674468994, -1.5062408447265625, 1.8912794589996338, 0.7801464796066284, -0.031627219170331955, -1.7960216999053955, -1.9205659627914429, 1.4495947360992432, 1.0657522678375244, 2.422762632369995, 0.6035684943199158, 0.42877325415611267, -0.7345548868179321, -0.6941503286361694, 0.3829610347747803, -0.8938977718353271, -0.7770933508872986, 0.12792116403579712, 2.3596014976501465, 1.7253533601760864, -0.5213667750358582, -0.23129144310951233, -0.9603604078292847, 1.2982836961746216, -0.13245253264904022, 0.22135570645332336, 1.9966652393341064, -0.3013979494571686, -1.0984325408935547, 1.314281702041626, -2.2853798866271973, 0.18330463767051697, 1.9737480878829956, 0.1936468482017517, 0.10872749239206314, -1.3449034690856934, -0.6481441259384155, -0.18631796538829803, -0.48839887976646423, -1.2810406684875488, 0.4886646270751953, -0.2960962951183319, -0.8114198446273804, -1.4801939725875854, 0.13517017662525177, -1.1601383686065674, -1.6380773782730103, 0.28737500309944153, 1.8754498958587646, 2.0463194847106934, -0.7525413632392883, 1.4517269134521484, -0.2772381603717804, 0.13190321624279022, 1.1627578735351562, 1.2180366516113281, 3.163815498352051, 1.8654394149780273, -1.2605359554290771, 0.7405376434326172, -0.1579003632068634, -0.4591262638568878, 1.2072691917419434, -1.0632054805755615, 1.2374799251556396, -0.2705930769443512, -1.222424864768982, -1.201700210571289, 0.8878910541534424, 0.5161718726158142, 0.042143963277339935, -0.46219488978385925, 1.1958227157592773, 0.08886291831731796, 1.3332313299179077, 0.5732961297035217, -0.3775542378425598, 0.6508269906044006, -0.36363980174064636, -0.5113414525985718, 1.5584179162979126, 0.1447882056236267, -1.3361613750457764, -2.4340994358062744, -0.19536913931369781, -0.902184009552002, 0.050632327795028687, -0.7192612290382385, -1.0139296054840088, 1.6702444553375244, 0.41175955533981323, -1.1934436559677124, -0.2848018705844879, -0.35157325863838196, -0.5528145432472229, 2.602860689163208, -1.477695345878601, -0.1616516411304474, -0.9558074474334717, -0.5449407696723938, 1.5849248170852661, -1.1934332847595215, -0.23179064691066742, -1.063805341720581, -0.5967808365821838, -1.3072094917297363, -0.583561360836029, -0.06473188102245331, -0.8991228342056274, 0.8771564960479736, 0.17120136320590973, -1.1870996952056885, -0.2068215012550354, -0.9968913197517395, 0.9217739701271057, -0.1270005851984024, 0.16025471687316895, 1.832837700843811, 0.4465675950050354, -0.3937435746192932, 0.7105239629745483, 1.1290837526321411, 0.6588096618652344, -0.6596947312355042, 0.16597102582454681, -0.6945741772651672, 0.3238813877105713, -1.3133864402770996, 0.30278030037879944, -2.863358974456787, 0.6506996154785156, -0.06452272832393646, 0.00437785591930151, -0.05173727124929428, -1.3328545093536377, 1.0157667398452759, 2.5448079109191895, -1.1579842567443848, 0.5847400426864624, 0.35865339636802673, 1.2636780738830566, -1.6051923036575317, 0.14223206043243408, -0.5240487456321716, 2.0775959491729736, 0.1159193143248558, 1.181744933128357, -0.5267640948295593, -2.2469260692596436, 0.5627298355102539, -1.2597289085388184, -1.1266123056411743, 0.7775230407714844, -0.8371739983558655, 0.16816537082195282, -1.2850048542022705, -0.2085779309272766, -0.9572088122367859, -1.2171491384506226, 0.7142082452774048, 0.10981994867324829, 0.5408331751823425, -0.6175787448883057, 0.35133105516433716, -2.171017646789551, -1.2818294763565063, -0.22769004106521606, -0.9178179502487183, 0.5052833557128906, -0.23890532553195953, 0.7131640315055847, -0.16342872381210327, 0.05297303944826126, 0.285866916179657, 1.3455510139465332, 3.322299003601074, 0.14646656811237335, 0.343851238489151, -0.1616653949022293, -0.9901027083396912, 1.4420137405395508, 0.9927405118942261, -0.11488155275583267, -0.6559052467346191, -1.0577332973480225, 1.2732925415039062, 1.959888219833374, 1.0517841577529907, 0.06784845888614655, -0.8156358003616333, -0.7454545497894287, 0.11725675314664841, 0.20034927129745483, 0.448385626077652, 0.9473018646240234, 0.08803178369998932, 0.13225723803043365, 1.3939942121505737, 1.1622718572616577, -0.39756396412849426, 0.4702073633670807, -0.8228517770767212, -0.45960667729377747, 0.49630165100097656, 0.2774881422519684, 0.07783325016498566, 0.35179486870765686, -1.0074234008789062, -0.2090303748846054, -0.32035624980926514, -1.0005491971969604, -0.7576647400856018, -0.37202566862106323, -0.4067929983139038, 1.6264017820358276, -0.018785953521728516, -0.4414602816104889, -0.03287002444267273, -0.7289314270019531, -0.0801021158695221, -1.0661059617996216, 0.27296045422554016, -0.18585428595542908, -0.020308470353484154, -0.07329221069812775, 1.727024793624878, -0.8832806944847107, -2.0698654651641846, 0.1608981192111969, 0.24262692034244537, -0.4493944048881531, 0.08771715313196182, 1.6788556575775146, 0.5997893214225769, 1.438293695449829, 1.3854957818984985, 1.0114527940750122, -0.6510876417160034, -1.283144474029541, 0.6207186579704285, 0.9400328397750854, -1.3793597221374512, 0.8600048422813416, -0.0011388789862394333, -0.5713408589363098, 0.7255998849868774, 1.375713586807251, 0.39224115014076233, -2.010775089263916, 0.823281466960907, -0.8744522333145142, 0.8057432174682617, 0.6888214945793152, 0.7954532504081726, 0.18320493400096893, 0.8728047013282776, -1.2799484729766846, -1.1367567777633667, -0.7062697410583496, -0.5614067912101746, 2.0022382736206055, -0.24699832499027252, 0.49722492694854736, -0.200873002409935, -1.2750861644744873, -0.0642237588763237, 0.6695754528045654, 0.4092765152454376, -0.3382086753845215, 0.7383250594139099, -0.6179130673408508, -1.0548617839813232, -1.3452001810073853, -0.4627603590488434, -0.9585056900978088, -0.8493661880493164, 0.9809403419494629, 0.9154105186462402, 0.4060121476650238, 1.9507334232330322, 0.6657161116600037, 0.24264971911907196, -2.593397378921509, 0.8057529330253601, 0.4132092595100403, -0.024452820420265198, 0.9212691783905029, 0.31107479333877563, 1.168828010559082, 0.02153737097978592, 0.5826228857040405, -2.3840577602386475, 2.2204649448394775, -0.2617392838001251, 0.699590265750885, -0.03029894456267357, -0.15863336622714996, 1.0228766202926636, 0.5145796537399292, 0.5438932776451111, -1.1298381090164185, 0.719531238079071, -0.6979513764381409, 1.1817781925201416, 0.9099634289741516, -0.8890912532806396, 0.10399321466684341, 1.2815145254135132, 0.40457427501678467, -0.5092291831970215, -0.9228603839874268, -0.9437981843948364, 0.9735931158065796, 1.7983025312423706, -0.04768206179141998, 0.08334381133317947, 0.9118983149528503, 0.7899989485740662, -1.3551862239837646, 0.09129098057746887, -0.7097509503364563, -0.7486064434051514, 1.7290518283843994, 2.064420461654663, -0.0341251865029335, -0.17581436038017273, -0.7490248084068298, -1.2701053619384766, 0.8240503072738647, 0.08638635277748108, 0.09954912215471268, 0.690238356590271, -0.6948660612106323, 1.1755516529083252, 0.7675471901893616, 0.938932478427887, 0.1385461688041687, 0.31693777441978455, 0.38888776302337646, -0.2961069941520691, -1.1516242027282715, -0.2959361970424652, -1.0403589010238647, -2.5179429054260254, 0.5400334000587463, -0.15667268633842468, -1.5099610090255737, 0.05264647305011749, -1.0046433210372925, 0.8508242964744568, -0.5811893939971924, -1.1786808967590332, -1.4713308811187744, 0.30420464277267456, -0.06977364420890808, 0.8333179950714111, -1.5935152769088745, -0.18388673663139343, 1.194209098815918, 0.994091272354126, -0.6079322099685669, 0.9129743576049805, 0.2642686367034912, 0.960041344165802, 0.8659694194793701, -0.43490535020828247, 0.45297035574913025, 0.10915786027908325, -1.3230878114700317, 0.4247773587703705, 1.311637043952942, 0.15364915132522583, 1.4415273666381836, -0.5011385083198547, 0.010784711688756943, 0.41830065846443176, -0.3746386468410492, -0.5235928893089294, -0.6730555295944214, 0.6793534755706787, 0.005983157083392143, -0.9260784387588501, -0.04995117336511612, -0.015746962279081345, -0.16964344680309296, 0.3146181106567383, -1.4663752317428589, -0.2521398365497589, -0.37620580196380615, -0.6029028296470642, -1.274397850036621, -0.05913054198026657, 1.3101783990859985, -0.7502275109291077, -0.17303334176540375, 0.5917052030563354, 0.340562105178833, 0.5145360827445984, 0.6181883811950684, -0.733349084854126, -0.37762266397476196, -0.30683815479278564, -0.43709617853164673, 0.2831670641899109, 1.3465094566345215, -0.1504857987165451, -1.0186686515808105, 0.5786382555961609, -0.37731942534446716, 0.10007379204034805, 1.9446717500686646, 0.05231723189353943, -0.8662625551223755, 0.3406807780265808, -0.7162546515464783, 1.856263518333435, 1.6995775699615479, 1.4330229759216309, -0.09745825082063675, -0.9880848526954651, 0.5596502423286438, -0.3263738453388214, -0.38776206970214844, 1.075861930847168, 0.43566739559173584, -0.14471709728240967, -1.375266432762146, 0.6341218948364258, 1.250325083732605, -0.8640726208686829, -0.7861002683639526, 0.05006519705057144, -0.8690042495727539, 1.1263173818588257, 0.7192274928092957, 0.3113783299922943, 0.26292991638183594, 1.6193326711654663, 0.6985118985176086, -0.4717753231525421, 0.6020920872688293, 0.43708497285842896, -0.1326206922531128, -2.139914035797119, -1.0952577590942383, 0.28812357783317566, -0.3638527989387512, -1.6304118633270264, 1.4499824047088623, -1.1872615814208984, -0.9737793207168579, 0.4858141541481018, 0.1098584309220314, 1.3422815799713135, 0.334095299243927, 1.675289273262024, 2.1436147689819336, 0.8972123861312866, 0.3441909849643707, 1.2887698411941528, -0.15431348979473114, -0.42490434646606445, 1.7845885753631592, -0.5007165670394897, 0.561837911605835, 1.0263359546661377, -0.4170587658882141, -1.127217411994934, -0.8147168755531311, -1.2215434312820435, -0.7351032495498657, 1.1045998334884644, 0.04779268801212311, -1.186267614364624, 0.27232038974761963, 1.611469030380249, -0.00480316998437047, -0.27150797843933105, 0.7268470525741577, 0.44125044345855713, -0.7701610922813416, -0.17306067049503326, -0.9179422855377197, 0.46343153715133667, -0.14851808547973633, -0.3311232626438141, 0.2350594848394394, 0.5954554080963135, 1.2491798400878906, 0.0113899577409029, 0.0824909582734108, 1.3000949621200562, -1.3601901531219482, 1.4043965339660645, -0.7804417610168457, 0.2520213723182678, -2.457118034362793, 1.5203661918640137, -0.7767784595489502, 1.8929128646850586, -2.6406071186065674, 0.413857102394104, -0.47129958868026733, -0.4613654613494873, 0.24479766190052032, -0.2789119780063629, 0.145577073097229, -0.10055102407932281, -1.0972546339035034, -0.19132763147354126, -0.7814987897872925, 0.5775390863418579, 1.1565009355545044, 1.3561071157455444, -1.0506645441055298, -0.19777898490428925, -1.679728388786316, -0.18871653079986572, -0.6628955006599426, 0.30077943205833435, -1.876484751701355, -0.141012042760849, -2.0302414894104004, -2.411809206008911, -1.41059148311615, -0.9051110148429871, 1.1487327814102173, 0.13817481696605682, -1.0312392711639404, 1.1036828756332397, -0.378231942653656, -1.7827988862991333, 1.1577738523483276, -2.221759796142578 ]
https://github.com/huggingface/datasets/issues/3778
Not be able to download dataset - "Newsroom"
Hi @Darshan2104, thanks for reporting. Please note that at Hugging Face we do not host the data of this dataset, but just a loading script pointing to the host of the data owners. Apparently the data owners changed their data host server. After googling it, I found their new website at: https://lil.nlp.cornell.edu/newsroom/index.html - Download page: https://lil.nlp.cornell.edu/newsroom/download/index.html I'm fixing the link in our Datasets library.
Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody has this dataset please share your google drive link, it would be a great help! Thanks Darshan Tank
932
64
Not be able to download dataset - "Newsroom" Hello, I tried to download the **newsroom** dataset but it didn't work out for me. it said me to **download it manually**! For manually, Link is also didn't work! It is sawing some ad or something! If anybody has solved this issue please help me out or if somebody has this dataset please share your google drive link, it would be a great help! Thanks Darshan Tank Hi @Darshan2104, thanks for reporting. Please note that at Hugging Face we do not host the data of this dataset, but just a loading script pointing to the host of the data owners. Apparently the data owners changed their data host server. After googling it, I found their new website at: https://lil.nlp.cornell.edu/newsroom/index.html - Download page: https://lil.nlp.cornell.edu/newsroom/download/index.html I'm fixing the link in our Datasets library.
[ -1.2237423658370972, -0.997648298740387, -0.7529240846633911, 1.27107572555542, -0.32372549176216125, -1.2350105047225952, 0.07779355347156525, -1.0353387594223022, 1.5630491971969604, -0.7750645875930786, 0.25815945863723755, -1.7412289381027222, 0.01162752602249384, -0.5061629414558411, -0.767143964767456, -0.8816095590591431, -0.5023535490036011, -0.8777490854263306, 0.9536370038986206, 2.575141429901123, 1.205971121788025, -1.4868648052215576, 2.6354103088378906, 0.6492087244987488, -0.15651147067546844, -1.0521743297576904, 0.47213616967201233, 0.18499985337257385, -1.2757498025894165, -0.3277603089809418, -0.9084815382957458, -0.06740404665470123, -0.5481756329536438, -0.43746641278266907, 0.03164495900273323, 0.4178560972213745, -0.14774256944656372, -0.2489355355501175, -0.5914334654808044, -0.6654757857322693, 0.5086817741394043, -0.4416884779930115, 1.065942645072937, -0.44781702756881714, 1.8021986484527588, -0.5215246081352234, 0.3876676857471466, 0.7137235403060913, 1.4457300901412964, 0.21341867744922638, 0.004690768197178841, 0.2074139565229416, 0.4115210175514221, -0.018240034580230713, 0.36584773659706116, 0.9996556639671326, 0.5915286540985107, 0.48236411809921265, 0.6049004793167114, -2.1881232261657715, 1.3272242546081543, -1.1117817163467407, 0.2980760931968689, 1.5250282287597656, -0.9794339537620544, 0.41222909092903137, -1.8056674003601074, -0.11645021289587021, 0.5390406250953674, -2.3162693977355957, 0.14414693415164948, -1.1622669696807861, -0.589362621307373, 0.9777637124061584, 0.31101810932159424, -1.3076411485671997, 0.19457070529460907, -0.4418756067752838, 1.029659390449524, 0.4939948320388794, 1.1860792636871338, -1.796936273574829, 0.005398714914917946, -0.2955748736858368, 0.10968155413866043, -1.354189395904541, -1.5438082218170166, 0.5948935747146606, 0.6528846621513367, 0.6016361117362976, -0.08389922976493835, 0.8175073266029358, -1.0310357809066772, 0.8886339068412781, -1.0532686710357666, -1.537634015083313, -1.448113203048706, -2.3784587383270264, -2.274578094482422, 0.8608956336975098, -0.44144120812416077, -0.4825330972671509, 1.8495988845825195, -1.0058679580688477, -1.6778463125228882, 1.1774992942810059, 0.15197071433067322, 0.0941755473613739, 2.37973690032959, 0.12066764384508133, -0.6493814587593079, 0.43515676259994507, -0.7622535824775696, 0.8739632964134216, -0.3499927520751953, 1.4028959274291992, 0.6191515922546387, -1.0182772874832153, 1.6213431358337402, -0.44896993041038513, 0.4273169934749603, -0.6301037669181824, -0.6514591574668884, -0.8557831048965454, 0.34214940667152405, 1.866460919380188, -0.38603463768959045, 1.672428011894226, -0.4787142276763916, -1.6207034587860107, -1.6020596027374268, 0.8789336085319519, 0.5108927488327026, -0.7973112463951111, 0.06315495073795319, -0.4233836531639099, 0.09435281902551651, -0.12967225909233093, 1.0788079500198364, 1.2275593280792236, 0.6846113801002502, -0.3354291617870331, -0.9564075469970703, 0.23565025627613068, -0.14193379878997803, -0.6709253787994385, -1.8724193572998047, -0.375774621963501, 0.13054615259170532, 0.6447069048881531, -1.1956820487976074, 1.7639453411102295, 0.9021709561347961, 1.9188281297683716, 0.9816673994064331, -0.3651338815689087, 1.4497296810150146, 0.00589738879352808, 1.8527194261550903, -0.6116995215415955, 0.6935635805130005, -0.26712265610694885, -1.0580737590789795, 0.7640165686607361, -0.3209335207939148, -1.9947783946990967, -0.7851354479789734, -0.8522934913635254, -0.28984135389328003, -0.8075901865959167, 0.9117932915687561, -0.25964322686195374, -1.3790266513824463, 0.23806743323802948, -0.5561563968658447, 0.05506473779678345, -1.1425516605377197, 0.2864565849304199, 0.7716357111930847, -0.6257829070091248, -0.015160060487687588, -0.1794569045305252, -1.3142642974853516, -0.5300014019012451, 0.31767553091049194, 1.9174275398254395, -0.6554259061813354, 0.9086387753486633, 0.8807271122932434, -0.7004845142364502, 0.1322205662727356, 0.34167712926864624, -0.2692384421825409, 0.8075451254844666, -1.0340845584869385, -0.4323834180831909, 1.0839036703109741, -0.2567894458770752, -0.4807235300540924, 1.5230023860931396, 0.7400502562522888, -0.9761589169502258, -0.1502263844013214, -0.21370477974414825, -0.7817093133926392, 0.00933100562542677, -1.5902599096298218, -0.17219319939613342, 0.25286272168159485, -1.468887448310852, -0.5078597068786621, -0.20987537503242493, 1.355247974395752, -0.2289579063653946, 1.287469744682312, -0.286781370639801, -0.18837188184261322, -0.5654104948043823, -0.3991457223892212, 0.25105422735214233, -0.17836825549602509, -0.5986018776893616, 0.2423672080039978, -0.9120941758155823, 0.3615650236606598, 1.4095330238342285, 0.42043444514274597, 0.0629153698682785, 0.4720706045627594, 1.0496268272399902, 0.32980525493621826, 0.025418706238269806, -0.8409060835838318, -1.5437573194503784, 1.9642993211746216, -1.4997119903564453, 1.8788433074951172, 0.7696377635002136, -0.167787566781044, -1.8065627813339233, -1.8276349306106567, 1.371708631515503, 1.2221763134002686, 2.280352830886841, 0.5975901484489441, 0.3728102743625641, -0.7601463198661804, -0.6131021976470947, 0.4028824269771576, -1.0808297395706177, -0.8011500835418701, 0.13200123608112335, 2.2527353763580322, 1.6886814832687378, -0.6190670132637024, -0.16335098445415497, -1.050249695777893, 1.2996288537979126, 0.0016182754188776016, 0.22526100277900696, 2.0841619968414307, -0.30720067024230957, -1.189329743385315, 1.360887885093689, -2.348233938217163, 0.23934809863567352, 1.9989107847213745, 0.3995819091796875, 0.07878808677196503, -1.4572885036468506, -0.6082028746604919, -0.28518959879875183, -0.4409988224506378, -1.2711282968521118, 0.6233531832695007, -0.35220587253570557, -0.9182283878326416, -1.462884545326233, 0.13905154168605804, -1.181783676147461, -1.7132670879364014, 0.519220232963562, 1.7027332782745361, 2.096107006072998, -0.6804347038269043, 1.3955397605895996, -0.1669546514749527, 0.18011754751205444, 1.271078109741211, 1.2002671957015991, 3.082123279571533, 1.9009820222854614, -1.142706274986267, 0.6608152389526367, -0.21556398272514343, -0.3806952238082886, 1.1360868215560913, -1.0209393501281738, 1.2935370206832886, -0.17361165583133698, -1.1712021827697754, -1.2230596542358398, 1.0482770204544067, 0.3953864872455597, -0.02209112048149109, -0.5087166428565979, 1.1983187198638916, 0.14899733662605286, 1.315476894378662, 0.48370814323425293, -0.28679949045181274, 0.5932570695877075, -0.4950390160083771, -0.4964125156402588, 1.596216082572937, 0.2589433491230011, -1.5546668767929077, -2.335664749145508, -0.26305797696113586, -0.858308732509613, -0.038318801671266556, -0.60846346616745, -1.0032920837402344, 1.680768609046936, 0.431416392326355, -1.361989974975586, -0.2668309211730957, -0.4685698449611664, -0.6517137289047241, 2.643930196762085, -1.413068175315857, -0.23651744425296783, -0.9160075783729553, -0.576327919960022, 1.746738314628601, -1.2989695072174072, -0.1041836068034172, -1.0177041292190552, -0.6999184489250183, -1.3960530757904053, -0.5387973189353943, 0.016438763588666916, -0.9756872653961182, 0.7169011235237122, 0.16680105030536652, -1.006217122077942, -0.38235989212989807, -0.7764229774475098, 0.7983049750328064, -0.0728360265493393, 0.40380236506462097, 1.9318201541900635, 0.41852930188179016, -0.31949639320373535, 0.5807452201843262, 1.2170416116714478, 0.6424062252044678, -0.6773525476455688, 0.19191798567771912, -0.6651241779327393, 0.260150671005249, -1.2233470678329468, 0.31577762961387634, -2.9255895614624023, 0.6971020102500916, 0.018570221960544586, -0.13488145172595978, -0.06300471723079681, -1.2949566841125488, 1.2025136947631836, 2.5492935180664062, -1.221461534500122, 0.4072645604610443, 0.2938690781593323, 1.1484003067016602, -1.5383474826812744, 0.3160824179649353, -0.3579268157482147, 2.1683695316314697, 0.24876251816749573, 1.1895475387573242, -0.5687002539634705, -2.263005018234253, 0.684902012348175, -1.150192141532898, -1.1037681102752686, 0.6299331784248352, -0.8254093527793884, 0.12355323880910873, -1.553998589515686, -0.12216761708259583, -0.9376698732376099, -1.3146138191223145, 0.8574545383453369, 0.11229080706834793, 0.4596633017063141, -0.5866187810897827, 0.36978426575660706, -2.122607469558716, -1.3200161457061768, -0.3024471700191498, -0.9649220108985901, 0.5089486241340637, -0.2991751730442047, 0.649601399898529, -0.06624103337526321, 0.04750940948724747, 0.3198513984680176, 1.3287783861160278, 3.475409746170044, 0.17561841011047363, 0.42487800121307373, -0.09235227108001709, -1.0036870241165161, 1.5269917249679565, 1.0672650337219238, 0.08399516344070435, -0.5518932938575745, -1.0076035261154175, 1.261292815208435, 1.9522274732589722, 1.0208066701889038, 0.17493082582950592, -0.7651448249816895, -0.6413241028785706, 0.053761571645736694, 0.2114855945110321, 0.45204949378967285, 0.9574302434921265, -0.06206246837973595, 0.07536338269710541, 1.4704197645187378, 1.2917317152023315, -0.42863553762435913, 0.28057271242141724, -0.9526641368865967, -0.49041175842285156, 0.4779157340526581, 0.2986600995063782, 0.05124817416071892, 0.5664430856704712, -0.9891182780265808, -0.2396177053451538, -0.2591315507888794, -1.0070494413375854, -0.6329006552696228, -0.5593642592430115, -0.42785799503326416, 1.599827527999878, 0.08117836713790894, -0.5075082182884216, 0.0022195428609848022, -0.943855881690979, -0.21053571999073029, -1.0932778120040894, 0.21139958500862122, -0.13515038788318634, -0.12606412172317505, -0.16626252233982086, 1.8580281734466553, -0.8428105115890503, -2.194246768951416, 0.2430238127708435, 0.331786185503006, -0.44759759306907654, 0.1388535499572754, 1.4810668230056763, 0.47680196166038513, 1.3633114099502563, 1.263514518737793, 1.0184416770935059, -0.46983370184898376, -1.3332611322402954, 0.6811780333518982, 0.87583327293396, -1.5359511375427246, 0.8519709706306458, -0.037987347692251205, -0.38972070813179016, 0.777996838092804, 1.2076129913330078, 0.4165896475315094, -1.937709093093872, 0.8143875002861023, -0.8673872947692871, 0.9059865474700928, 0.7422487139701843, 0.6985998153686523, 0.19025106728076935, 0.8447338342666626, -1.3454641103744507, -1.0572713613510132, -0.8370574712753296, -0.6321879625320435, 1.9909759759902954, -0.17829297482967377, 0.585762083530426, -0.1979851871728897, -1.1895372867584229, -0.11411132663488388, 0.6167000532150269, 0.41165387630462646, -0.40106892585754395, 0.9088068604469299, -0.6954681873321533, -1.1187496185302734, -1.4389287233352661, -0.37659311294555664, -0.9247450232505798, -0.8850389719009399, 1.128866195678711, 0.8388047218322754, 0.3918449878692627, 1.974029779434204, 0.5454843640327454, 0.3054543137550354, -2.74408221244812, 0.918019711971283, 0.3246370851993561, 0.08762300759553909, 1.0423952341079712, 0.2426992654800415, 1.0704478025436401, -0.0469532310962677, 0.5697744488716125, -2.39231538772583, 2.3111329078674316, -0.2895749509334564, 0.7757229804992676, 0.07368024438619614, -0.08102552592754364, 1.1199592351913452, 0.5929753184318542, 0.5105522274971008, -1.1855570077896118, 0.7662287950515747, -0.5978963375091553, 1.324518084526062, 0.9862512946128845, -0.7221992015838623, -0.0882226973772049, 1.1989139318466187, 0.5930202007293701, -0.39815038442611694, -0.8526202440261841, -0.948311448097229, 0.8924227356910706, 1.7454439401626587, -0.08858796954154968, 0.0018862094730138779, 0.8443506956100464, 0.6904369592666626, -1.2469042539596558, 0.044434547424316406, -0.8175203800201416, -0.6971641778945923, 1.6987686157226562, 2.066932201385498, -0.039990369230508804, -0.1571834534406662, -0.5868324637413025, -1.2012760639190674, 0.6842039227485657, -0.006945000030100346, 0.17583340406417847, 0.6836066842079163, -0.6835684180259705, 1.0958994626998901, 0.8404197096824646, 0.9154068827629089, 0.11981350928544998, 0.43392935395240784, 0.2885381579399109, -0.1899881362915039, -1.1192225217819214, -0.3482838571071625, -1.1935086250305176, -2.6316747665405273, 0.47731131315231323, -0.28140565752983093, -1.3725309371948242, 0.019180458039045334, -1.1049455404281616, 0.8951893448829651, -0.6183788776397705, -1.1043184995651245, -1.5110365152359009, 0.23841780424118042, -0.08248813450336456, 1.020303726196289, -1.661372423171997, -0.13178406655788422, 1.2848544120788574, 0.8170333504676819, -0.6122534871101379, 1.0542106628417969, 0.3198916018009186, 1.0848865509033203, 0.7141424417495728, -0.4581122398376465, 0.42804595828056335, 0.21568036079406738, -1.3372564315795898, 0.48756733536720276, 1.0230399370193481, 0.1960623562335968, 1.3786808252334595, -0.5173472762107849, 0.16868190467357635, 0.42918744683265686, -0.6703563332557678, -0.49602335691452026, -0.5539778470993042, 0.8350624442100525, 0.04651371389627457, -0.94911789894104, 0.041663430631160736, -0.1700373888015747, -0.1885659098625183, 0.1681215465068817, -1.4436836242675781, -0.2845011055469513, -0.41808265447616577, -0.5664048790931702, -1.2403916120529175, -0.11685401946306229, 1.3236286640167236, -0.8018068671226501, -0.10273949056863785, 0.4751673936843872, 0.47795528173446655, 0.5739421248435974, 0.6802761554718018, -0.5728322267532349, -0.47486668825149536, -0.20542456209659576, -0.27279922366142273, 0.32559773325920105, 1.2142657041549683, -0.2218109667301178, -1.0831552743911743, 0.7731878757476807, -0.3671107590198517, 0.12290223687887192, 1.992024302482605, -0.003997736610472202, -0.8496001958847046, 0.3602845072746277, -0.6627001166343689, 1.9364678859710693, 1.620362639427185, 1.3191022872924805, -0.156742125749588, -0.8282482028007507, 0.555627167224884, -0.2295139580965042, -0.3587479293346405, 0.7919803261756897, 0.4547134339809418, -0.14281663298606873, -1.368891954421997, 0.5392755270004272, 1.368445873260498, -0.8303735852241516, -0.7024090886116028, 0.1263890117406845, -0.7494938373565674, 1.0508167743682861, 0.6531870365142822, 0.4972837567329407, 0.27662378549575806, 1.6289139986038208, 0.6952513456344604, -0.4571308493614197, 0.45248711109161377, 0.5323992371559143, -0.12924209237098694, -2.080737829208374, -1.1241074800491333, 0.31553012132644653, -0.5274209976196289, -1.542281150817871, 1.2764396667480469, -1.1363208293914795, -0.8965091705322266, 0.4867798984050751, 0.09808199107646942, 1.426162838935852, 0.3536297380924225, 1.638413667678833, 2.0363504886627197, 0.9126104116439819, 0.28697508573532104, 1.3928442001342773, 0.021258320659399033, -0.4693957567214966, 1.8592288494110107, -0.36759355664253235, 0.4866073429584503, 1.1578482389450073, -0.2929527461528778, -0.9886678457260132, -0.7442541718482971, -1.158130407333374, -0.553898274898529, 1.174076795578003, 0.1333482563495636, -1.2478828430175781, 0.15853266417980194, 1.5588124990463257, 0.0882127657532692, -0.26726046204566956, 0.4676745533943176, 0.43256130814552307, -0.732728898525238, -0.066790871322155, -0.8835083246231079, 0.5181790590286255, -0.24328018724918365, -0.42295143008232117, 0.2336643785238266, 0.4006478190422058, 1.2444730997085571, -0.10902883857488632, 0.1386110484600067, 1.1544780731201172, -1.4402614831924438, 1.458553433418274, -0.5508267283439636, 0.20744140446186066, -2.4328720569610596, 1.3623417615890503, -0.7531459927558899, 1.9643203020095825, -2.672175407409668, 0.34166771173477173, -0.588234543800354, -0.43261292576789856, 0.37123724818229675, -0.4239428639411926, 0.12859289348125458, -0.17599353194236755, -1.0210626125335693, -0.07864731550216675, -0.7906090021133423, 0.5397036671638489, 1.1906994581222534, 1.3019143342971802, -1.129284143447876, -0.31792569160461426, -1.6782457828521729, -0.08622916042804718, -0.7430163025856018, 0.32408422231674194, -2.0761845111846924, -0.15747065842151642, -1.9350945949554443, -2.2468788623809814, -1.3554478883743286, -0.8882927298545837, 1.0992335081100464, 0.14518815279006958, -0.8482465147972107, 1.0688890218734741, -0.2994198799133301, -1.7311590909957886, 1.0369149446487427, -2.1515703201293945 ]
https://github.com/huggingface/datasets/issues/3776
Allow download only some files from the Wikipedia dataset
Hi @jvanz, thank you for your proposal. In fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_files` to load only a specific subset of the data files. See: - #3401
**Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I would like to use the `data_files` argument in the `load_dataset` function to define which file in the wikipedia dataset I would like to download. Thus, I can work with the dataset in a smaller machine using the Apache Beam `DirectRunner`. **Describe alternatives you've considered** I've tried to use the `simple` Wikipedia dataset. But it's in English and I would like to use Portuguese texts in my model.
933
70
Allow download only some files from the Wikipedia dataset **Is your feature request related to a problem? Please describe.** The Wikipedia dataset can be really big. This is a problem if you want to use it locally in a laptop with the Apache Beam `DirectRunner`. Even if your laptop have a considerable amount of memory (e.g. 32gb). **Describe the solution you'd like** I would like to use the `data_files` argument in the `load_dataset` function to define which file in the wikipedia dataset I would like to download. Thus, I can work with the dataset in a smaller machine using the Apache Beam `DirectRunner`. **Describe alternatives you've considered** I've tried to use the `simple` Wikipedia dataset. But it's in English and I would like to use Portuguese texts in my model. Hi @jvanz, thank you for your proposal. In fact, we are aware that it is very common the problem you mention. Because of that, we are currently working in implementing a new version of wikipedia on the Hub, with all data preprocessed (no need to use Apache Beam), from where you will be able to use `data_files` to load only a specific subset of the data files. See: - #3401
[ -1.1926078796386719, -1.0077773332595825, -0.7817274928092957, 1.3829447031021118, -0.26141607761383057, -1.2532135248184204, 0.08362283557653427, -1.0774515867233276, 1.7729504108428955, -0.839796245098114, 0.23688219487667084, -1.7167260646820068, 0.11032863706350327, -0.5304093360900879, -0.8536621332168579, -0.8607887029647827, -0.539031982421875, -0.8025882244110107, 0.8800105452537537, 2.437440872192383, 1.1359316110610962, -1.4230965375900269, 2.695711135864258, 0.6601436138153076, -0.07903221249580383, -1.0841498374938965, 0.514244556427002, 0.03138711676001549, -1.1772265434265137, -0.5108256340026855, -0.9836159348487854, -0.08420821279287338, -0.5750694870948792, -0.5545365810394287, 0.03730166330933571, 0.3075406551361084, -0.20545265078544617, -0.38233083486557007, -0.48700660467147827, -0.7390077710151672, 0.569563627243042, -0.44122183322906494, 1.020240306854248, -0.46833932399749756, 1.8753187656402588, -0.547555685043335, 0.46573710441589355, 0.8225966691970825, 1.3950260877609253, 0.17316673696041107, -0.07471802830696106, 0.3509021997451782, 0.4987836480140686, 0.0027356594800949097, 0.39593207836151123, 1.0800566673278809, 0.5018385648727417, 0.5028263926506042, 0.7080318331718445, -2.192943811416626, 1.3701409101486206, -1.0816127061843872, 0.3636819124221802, 1.3298306465148926, -0.9503650665283203, 0.33399587869644165, -1.8003994226455688, -0.04260145500302315, 0.5676931142807007, -2.259369373321533, 0.18049298226833344, -1.4002044200897217, -0.5429818034172058, 1.007063388824463, 0.2689390778541565, -1.3321993350982666, 0.18230584263801575, -0.4003959894180298, 0.9846144914627075, 0.5824140310287476, 1.109066367149353, -1.680725336074829, -0.03509223461151123, -0.3562743067741394, 0.08831792324781418, -1.325439214706421, -1.4685055017471313, 0.5846585035324097, 0.5898157954216003, 0.4765549302101135, -0.08543568104505539, 1.0131393671035767, -0.9994392991065979, 0.9100766777992249, -0.896822452545166, -1.6534045934677124, -1.389325499534607, -2.1595797538757324, -2.2559893131256104, 0.8866298198699951, -0.5231401920318604, -0.49541038274765015, 2.006105422973633, -1.1165419816970825, -1.788651704788208, 1.212508201599121, 0.197933629155159, -0.012681558728218079, 2.340538501739502, 0.13335712254047394, -0.6126253008842468, 0.33770090341567993, -0.7671419978141785, 0.8785141110420227, -0.5218337178230286, 1.4544026851654053, 0.42992520332336426, -1.0152041912078857, 1.679936170578003, -0.46447908878326416, 0.5432124137878418, -0.6279579997062683, -0.5970133543014526, -0.8764184713363647, 0.45768898725509644, 1.8952851295471191, -0.29712021350860596, 1.4947376251220703, -0.3962711691856384, -1.6146429777145386, -1.5693734884262085, 0.9764778017997742, 0.5101766586303711, -0.8055518269538879, 0.0808853730559349, -0.23777256906032562, 0.04386252537369728, -0.038462135940790176, 1.039190411567688, 1.1452510356903076, 0.7926554083824158, -0.35346919298171997, -0.8779557943344116, 0.16212864220142365, -0.07433158159255981, -0.6491343975067139, -1.891325831413269, -0.39673787355422974, 0.18428881466388702, 0.6736429333686829, -1.17436945438385, 1.739856481552124, 0.9859884977340698, 1.9517996311187744, 1.0029042959213257, -0.30264490842819214, 1.4861022233963013, 0.0878380686044693, 1.8715204000473022, -0.516078531742096, 0.684143602848053, -0.3959312438964844, -1.0446648597717285, 0.8213045001029968, -0.36586999893188477, -2.050053596496582, -0.7759608626365662, -0.9067881107330322, -0.2375902682542801, -0.7273118495941162, 0.9946519732475281, -0.3320595622062683, -1.3257184028625488, 0.28601521253585815, -0.6075344681739807, 0.12354074418544769, -1.1861090660095215, 0.43289411067962646, 0.7099283933639526, -0.665256142616272, 0.037960994988679886, -0.24914886057376862, -1.2902225255966187, -0.5031726956367493, 0.2895541191101074, 1.7733999490737915, -0.7504103183746338, 0.9739105105400085, 0.9689183831214905, -0.6895542144775391, -0.12387070804834366, 0.43631261587142944, -0.24378861486911774, 0.8218079209327698, -0.9856655597686768, -0.30244892835617065, 1.1558513641357422, -0.23980437219142914, -0.5534027814865112, 1.489537239074707, 0.7281297445297241, -0.9557420015335083, -0.1326359510421753, -0.3459930419921875, -0.8466789722442627, -0.009789608418941498, -1.556485891342163, -0.049736808985471725, 0.2723705768585205, -1.5297033786773682, -0.45513272285461426, -0.17600713670253754, 1.2249897718429565, -0.10745470970869064, 1.4088804721832275, -0.37010133266448975, -0.3281679153442383, -0.3910773992538452, -0.43578505516052246, 0.2229754626750946, -0.2109568864107132, -0.642090916633606, 0.19071589410305023, -0.7460857629776001, 0.4325905442237854, 1.424363374710083, 0.3807874321937561, -0.03914303705096245, 0.4998525381088257, 1.1001582145690918, 0.22147300839424133, -0.009994011372327805, -0.9403464198112488, -1.5124695301055908, 2.004621744155884, -1.530505895614624, 1.8882639408111572, 0.6742657423019409, -0.09010539203882217, -1.814537763595581, -1.847705364227295, 1.336926817893982, 1.1969447135925293, 2.2720885276794434, 0.6284271478652954, 0.3921211361885071, -0.8753920793533325, -0.6991861462593079, 0.3578341603279114, -1.10177481174469, -0.7200852632522583, 0.02985965833067894, 2.3509016036987305, 1.79038405418396, -0.5599520206451416, -0.1408228576183319, -1.1162171363830566, 1.4459792375564575, -0.2010256052017212, 0.21118302643299103, 2.028970956802368, -0.3033110499382019, -1.11563241481781, 1.2269729375839233, -2.202791690826416, 0.11720395088195801, 1.946130394935608, 0.28430885076522827, 0.1585783213376999, -1.4570149183273315, -0.5660964250564575, -0.19494947791099548, -0.42332881689071655, -1.3565630912780762, 0.5399578809738159, -0.35675323009490967, -0.737401008605957, -1.4384461641311646, 0.1768353432416916, -1.0979504585266113, -1.5986230373382568, 0.1936958283185959, 1.9019070863723755, 2.0249743461608887, -0.6518741250038147, 1.536769151687622, -0.2391628473997116, 0.27943480014801025, 1.301833987236023, 1.1548652648925781, 3.1781744956970215, 2.0339901447296143, -1.2413601875305176, 0.5767138600349426, -0.10407523065805435, -0.5305030941963196, 1.2227915525436401, -1.1035548448562622, 1.2844572067260742, -0.2255489081144333, -1.1600879430770874, -1.199902892112732, 0.9762207269668579, 0.4024163484573364, 0.19254076480865479, -0.5309038162231445, 1.214891791343689, 0.06916310638189316, 1.302674651145935, 0.549106776714325, -0.4601755142211914, 0.6493322253227234, -0.45279502868652344, -0.5472922325134277, 1.5893957614898682, 0.24420510232448578, -1.3946865797042847, -2.338730573654175, -0.2095656394958496, -0.8281192779541016, 0.029377058148384094, -0.4627193808555603, -0.9574225544929504, 1.5877124071121216, 0.4426923990249634, -1.3542697429656982, -0.32343602180480957, -0.3859291672706604, -0.7210002541542053, 2.679138422012329, -1.3840487003326416, -0.3096778988838196, -0.9622063636779785, -0.5941551923751831, 1.6379748582839966, -1.265263557434082, -0.0725933313369751, -1.0083273649215698, -0.5639533400535583, -1.3623085021972656, -0.6428619027137756, -0.17464855313301086, -0.8790954351425171, 0.83287113904953, 0.2095537632703781, -1.0917143821716309, -0.32232898473739624, -0.8269493579864502, 0.744368851184845, -0.11623186618089676, 0.3320109248161316, 1.8596247434616089, 0.4381222724914551, -0.31336450576782227, 0.6143127083778381, 1.098802924156189, 0.6069381237030029, -0.5870137214660645, 0.26877695322036743, -0.73170006275177, 0.28796494007110596, -1.2488462924957275, 0.32544630765914917, -2.840614080429077, 0.6043848991394043, -0.06066426634788513, -0.18442444503307343, -0.053181372582912445, -1.3338310718536377, 1.0562658309936523, 2.5830254554748535, -1.18192458152771, 0.4111466407775879, 0.27222442626953125, 1.2653776407241821, -1.603036880493164, 0.4128156304359436, -0.41426241397857666, 2.216006278991699, 0.20223811268806458, 1.167780876159668, -0.5174208283424377, -2.353355884552002, 0.5764493346214294, -1.2089680433273315, -1.250195026397705, 0.7203159332275391, -0.7967366576194763, -0.012177491560578346, -1.4444859027862549, -0.17974808812141418, -0.8683750033378601, -1.275114893913269, 0.8541218042373657, 0.21534006297588348, 0.4747040271759033, -0.5917804837226868, 0.22458715736865997, -2.182868719100952, -1.412707805633545, -0.27397632598876953, -0.8502609729766846, 0.4911593198776245, -0.25292104482650757, 0.703910768032074, -0.1510980874300003, 0.09438390284776688, 0.35680729150772095, 1.408251166343689, 3.385446071624756, 0.29575568437576294, 0.46422064304351807, -0.062265194952487946, -0.8146687746047974, 1.4195656776428223, 1.0420807600021362, -0.08824147284030914, -0.5432526469230652, -0.966791033744812, 1.2207330465316772, 1.9498907327651978, 0.8870172500610352, 0.14845772087574005, -0.6611375212669373, -0.6899704337120056, -0.05089213699102402, 0.11565347760915756, 0.41290128231048584, 0.8470762968063354, 0.11710558831691742, 0.1419767439365387, 1.458095669746399, 1.2986823320388794, -0.42732900381088257, 0.3946326971054077, -0.7056235671043396, -0.42855942249298096, 0.5294032096862793, 0.39334845542907715, 0.017061272636055946, 0.2977437376976013, -0.9524276256561279, -0.28386688232421875, -0.39121896028518677, -1.0381208658218384, -0.6867874264717102, -0.415091872215271, -0.38672858476638794, 1.6723684072494507, 0.12967227399349213, -0.5274368524551392, -0.08521486073732376, -0.717844545841217, -0.050198156386613846, -1.040653109550476, 0.3061854839324951, -0.08355604857206345, -0.10711171478033066, -0.0793093666434288, 1.875068187713623, -0.9940392374992371, -2.0544240474700928, 0.2641414403915405, 0.2760549783706665, -0.44532299041748047, 0.24177081882953644, 1.5071841478347778, 0.5120171904563904, 1.5049885511398315, 1.4115734100341797, 0.9608268737792969, -0.6613178849220276, -1.33219313621521, 0.7102170586585999, 0.866819441318512, -1.5119099617004395, 0.7460955381393433, 0.17198707163333893, -0.5390359163284302, 0.8028180003166199, 1.23115074634552, 0.3355482816696167, -2.0431501865386963, 0.7645249366760254, -0.840980589389801, 0.7256341576576233, 0.7363424301147461, 0.7034411430358887, 0.29577648639678955, 0.8760672807693481, -1.230401873588562, -1.2068642377853394, -0.9116127490997314, -0.6743659377098083, 2.0760228633880615, -0.26224803924560547, 0.6232452988624573, -0.16568996012210846, -1.2992280721664429, -0.12045866250991821, 0.69950932264328, 0.48237985372543335, -0.34264785051345825, 0.7411465048789978, -0.6239994764328003, -1.1164982318878174, -1.426108479499817, -0.43700283765792847, -0.9798731207847595, -0.9291080832481384, 1.006739854812622, 0.8827701210975647, 0.2716960310935974, 1.8976051807403564, 0.5803139805793762, 0.21523018181324005, -2.634463310241699, 0.8711860775947571, 0.29369693994522095, -0.0272182896733284, 0.867799699306488, 0.3438377380371094, 0.9541038274765015, -0.001119830645620823, 0.496936559677124, -2.426088333129883, 2.1873538494110107, -0.34415167570114136, 0.7219719886779785, -0.037864528596401215, -0.23684033751487732, 1.1087024211883545, 0.5752760171890259, 0.533025324344635, -1.057251214981079, 0.6395677328109741, -0.585223376750946, 1.2475624084472656, 0.8435423374176025, -0.7670336961746216, 0.036420971155166626, 1.360709547996521, 0.5040045976638794, -0.5296470522880554, -0.9825364947319031, -0.9171251058578491, 0.8811583518981934, 1.7391698360443115, -0.11579712480306625, 0.013500688597559929, 0.820737361907959, 0.6893792748451233, -1.2382246255874634, 0.20145046710968018, -0.775884211063385, -0.8581083416938782, 1.5937339067459106, 2.1274161338806152, -0.1267857849597931, -0.10003312677145004, -0.7599917054176331, -1.195165753364563, 0.7550229430198669, 0.00003995932638645172, 0.1169193834066391, 0.5876996517181396, -0.6190799474716187, 1.0688388347625732, 0.9869650602340698, 0.9400487542152405, 0.20556513965129852, 0.4210178256034851, 0.3527703881263733, -0.28180795907974243, -1.1262178421020508, -0.19398456811904907, -1.1236766576766968, -2.531479597091675, 0.555979311466217, -0.3021390438079834, -1.4725035429000854, 0.042408980429172516, -1.028760552406311, 0.9378517270088196, -0.5770777463912964, -1.1047158241271973, -1.6276354789733887, 0.11772903800010681, -0.06680330634117126, 0.9604659080505371, -1.5808993577957153, -0.026843007653951645, 1.1368048191070557, 0.9080962538719177, -0.6412591338157654, 1.0368642807006836, 0.3001646399497986, 1.1116679906845093, 0.880906343460083, -0.47556227445602417, 0.49135440587997437, 0.0835319459438324, -1.3477758169174194, 0.49682724475860596, 1.1179468631744385, 0.1368100941181183, 1.4056905508041382, -0.5963704586029053, 0.0872456431388855, 0.4374140501022339, -0.5183930993080139, -0.45324647426605225, -0.5217409133911133, 0.7168305516242981, 0.11027827858924866, -0.8430910706520081, 0.1856691986322403, -0.09909337759017944, -0.23544709384441376, 0.175270214676857, -1.4960922002792358, -0.2963222861289978, -0.3519023656845093, -0.5944740772247314, -1.1818376779556274, -0.12467753142118454, 1.4078556299209595, -0.673215389251709, -0.1459542065858841, 0.6186051964759827, 0.4920150637626648, 0.49220263957977295, 0.6112900972366333, -0.5903581380844116, -0.3621219992637634, -0.2779581546783447, -0.33960920572280884, 0.33381348848342896, 1.3375561237335205, -0.11788249760866165, -0.9208184480667114, 0.6563190817832947, -0.3920486569404602, -0.037468090653419495, 1.9520725011825562, 0.17029331624507904, -0.8329428434371948, 0.35524797439575195, -0.71132493019104, 1.8679542541503906, 1.7902805805206299, 1.3259613513946533, -0.05305025726556778, -0.948270857334137, 0.5360046029090881, -0.21130602061748505, -0.3959071636199951, 0.9741867184638977, 0.5186558365821838, -0.12133584916591644, -1.3249471187591553, 0.6622403860092163, 1.2202950716018677, -0.8994205594062805, -0.7758688926696777, 0.05200983211398125, -0.7917661666870117, 1.0547988414764404, 0.7557274699211121, 0.47396159172058105, 0.16585735976696014, 1.6781648397445679, 0.7278934121131897, -0.4871528744697571, 0.6274202466011047, 0.49097561836242676, -0.11914718896150589, -2.152911424636841, -1.276232361793518, 0.28956830501556396, -0.48414868116378784, -1.5973280668258667, 1.3271996974945068, -1.0851339101791382, -0.8605042695999146, 0.5468353629112244, 0.12095668911933899, 1.5303746461868286, 0.34277015924453735, 1.5049623250961304, 2.080960512161255, 0.8491242527961731, 0.37210291624069214, 1.4595396518707275, -0.06107849255204201, -0.4428209066390991, 1.9026319980621338, -0.47992175817489624, 0.47946012020111084, 1.0971455574035645, -0.3474389314651489, -1.1291792392730713, -0.7293972969055176, -1.1391217708587646, -0.6300574541091919, 1.0488860607147217, 0.09361594170331955, -1.123796820640564, 0.1813134104013443, 1.5794998407363892, 0.1095220223069191, -0.3736322522163391, 0.44382739067077637, 0.37227338552474976, -0.7881673574447632, -0.05984901264309883, -1.0035558938980103, 0.4678425192832947, -0.20688696205615997, -0.3676471710205078, 0.3983466625213623, 0.44748157262802124, 1.172642707824707, -0.09375691413879395, 0.08652463555335999, 1.2170747518539429, -1.4621182680130005, 1.4088256359100342, -0.6440244317054749, 0.2004752904176712, -2.3687498569488525, 1.4846290349960327, -0.7644550800323486, 1.8628902435302734, -2.640749931335449, 0.24150411784648895, -0.6630675196647644, -0.5192697644233704, 0.34554624557495117, -0.36828070878982544, 0.1488511860370636, -0.1607733815908432, -1.13563072681427, 0.01769997738301754, -0.7193711996078491, 0.5542764663696289, 1.066992998123169, 1.4237004518508911, -1.1777598857879639, -0.23369653522968292, -1.7485249042510986, -0.15562033653259277, -0.7356237173080444, 0.38493382930755615, -2.0995819568634033, -0.0981481596827507, -1.866244912147522, -2.243605136871338, -1.3868805170059204, -0.8473675847053528, 1.0832207202911377, 0.07944013178348541, -0.9236182570457458, 1.091266393661499, -0.3235374689102173, -1.7775990962982178, 0.9664360880851746, -2.183274030685425 ]
https://github.com/huggingface/datasets/issues/3773
Checksum mismatch for the reddit_tifu dataset
@albertvillanova Thank you for the fast response! However I am still getting the same error: Downloading: 2.23kB [00:00, ?B/s] Traceback (most recent call last): File "C:\Users\Anna\PycharmProjects\summarization\main.py", line 17, in <module> dataset = load_dataset('reddit_tifu', 'long') File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 594, in download_and_prepare self._download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 665, in _download_and_prepare verify_checksums( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\utils\info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] I have cleaned the cache/huggingface/datasets & cache/huggingface/modules files and also tried on another machine with a fresh installation of trasnformers & datasets. The reddit_tifu.py that gets downloaded still has the previous url on line 51, _URL = "https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF"
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
934
112
Checksum mismatch for the reddit_tifu dataset ## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0 @albertvillanova Thank you for the fast response! However I am still getting the same error: Downloading: 2.23kB [00:00, ?B/s] Traceback (most recent call last): File "C:\Users\Anna\PycharmProjects\summarization\main.py", line 17, in <module> dataset = load_dataset('reddit_tifu', 'long') File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 594, in download_and_prepare self._download_and_prepare( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\builder.py", line 665, in _download_and_prepare verify_checksums( File "C:\Users\Anna\Desktop\summarization\summarization_env\lib\site-packages\datasets\utils\info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] I have cleaned the cache/huggingface/datasets & cache/huggingface/modules files and also tried on another machine with a fresh installation of trasnformers & datasets. The reddit_tifu.py that gets downloaded still has the previous url on line 51, _URL = "https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF"
[ -1.225219964981079, -0.8827452063560486, -0.6780275702476501, 1.3997982740402222, -0.17430758476257324, -1.2334977388381958, 0.04314030334353447, -0.9926009774208069, 1.6524713039398193, -0.8047710061073303, 0.2218426913022995, -1.6873215436935425, -0.0051681227050721645, -0.5467773079872131, -0.6654275059700012, -0.8246744871139526, -0.368818461894989, -0.7845697402954102, 1.0926159620285034, 2.496614694595337, 1.258124589920044, -1.443657398223877, 2.7951502799987793, 0.67538982629776, -0.2406415492296219, -0.9509187936782837, 0.569449782371521, 0.008912567980587482, -1.3275315761566162, -0.352192223072052, -0.9228758215904236, -0.004481857642531395, -0.5846755504608154, -0.4474090337753296, -0.02272076904773712, 0.3912999629974365, -0.2707560360431671, -0.42728936672210693, -0.5690122246742249, -0.777837872505188, 0.4465022087097168, -0.35086944699287415, 0.9171041250228882, -0.2996228039264679, 1.8197989463806152, -0.6009877920150757, 0.35465893149375916, 0.6857033371925354, 1.2869758605957031, 0.16876865923404694, 0.0012937365099787712, 0.3000781834125519, 0.3010333180427551, 0.037659816443920135, 0.5318543314933777, 1.1183513402938843, 0.617029070854187, 0.4196079671382904, 0.7434777021408081, -2.202110528945923, 1.343003749847412, -0.8942264318466187, 0.2518182694911957, 1.2613040208816528, -0.9741180539131165, 0.39875495433807373, -1.7620604038238525, -0.03953343257308006, 0.574234664440155, -2.20817232131958, 0.20360049605369568, -1.3329576253890991, -0.5490004420280457, 1.0061426162719727, 0.30050626397132874, -1.150514006614685, 0.1346685290336609, -0.5041217803955078, 1.0199702978134155, 0.4072887599468231, 1.128537654876709, -1.6084887981414795, 0.0028198426589369774, -0.2373577356338501, 0.12964099645614624, -1.3747166395187378, -1.6143254041671753, 0.5924075245857239, 0.6523615717887878, 0.6431818008422852, -0.0915006473660469, 0.9796516299247742, -1.0331050157546997, 0.7577628493309021, -0.9710468649864197, -1.7971681356430054, -1.449240803718567, -2.3793957233428955, -2.2712576389312744, 0.7349693179130554, -0.4915974736213684, -0.4705548584461212, 2.070392608642578, -1.0243521928787231, -1.78472101688385, 1.1595298051834106, 0.19754396378993988, -0.008985590189695358, 2.367469072341919, 0.18318596482276917, -0.8188028335571289, 0.5222283601760864, -0.8057326078414917, 0.7659848928451538, -0.2752959728240967, 1.3077147006988525, 0.43967315554618835, -0.9670414328575134, 1.54975163936615, -0.4327518939971924, 0.5662710666656494, -0.585450291633606, -0.471099317073822, -0.7587473392486572, 0.22769449651241302, 1.8845505714416504, -0.3250817060470581, 1.6013249158859253, -0.29612448811531067, -1.530530333518982, -1.523065209388733, 0.7756642699241638, 0.48802366852760315, -0.7950730919837952, 0.12290570884943008, -0.35633450746536255, 0.09382589906454086, -0.0608135387301445, 1.1621499061584473, 1.285054326057434, 0.7402492761611938, -0.2664681375026703, -0.8778128027915955, 0.19584953784942627, -0.09896595031023026, -0.6420148015022278, -1.7855076789855957, -0.2751367390155792, 0.130506694316864, 0.6875116229057312, -1.2585359811782837, 1.6988633871078491, 0.9572343230247498, 1.921116828918457, 1.0137815475463867, -0.3704037070274353, 1.4967821836471558, 0.09063760936260223, 1.8489230871200562, -0.475760281085968, 0.6944797039031982, -0.4157794713973999, -1.1876991987228394, 0.7975158095359802, -0.29992175102233887, -2.0067033767700195, -0.716802179813385, -0.7848235368728638, -0.17328375577926636, -0.8118205070495605, 0.9130582213401794, -0.3111640214920044, -1.4498183727264404, 0.22844943404197693, -0.7339444160461426, 0.11445239186286926, -1.268056035041809, 0.23155935108661652, 0.7436864376068115, -0.611068844795227, 0.05152168869972229, -0.2825123369693756, -1.3194773197174072, -0.4960595667362213, 0.35187995433807373, 1.8358781337738037, -0.7207474708557129, 0.9715503454208374, 1.0561480522155762, -0.6648244261741638, 0.09040510654449463, 0.26577994227409363, -0.3361116349697113, 0.8479159474372864, -1.0305826663970947, -0.48277902603149414, 1.1482828855514526, -0.21909359097480774, -0.602266788482666, 1.4224704504013062, 0.7271339297294617, -1.019028663635254, -0.2805238664150238, -0.1528692990541458, -0.8433867692947388, -0.07620272785425186, -1.5952510833740234, -0.1811198890209198, 0.3706522583961487, -1.5979490280151367, -0.4382355809211731, -0.19290989637374878, 1.328075647354126, -0.13601885735988617, 1.4690521955490112, -0.37730929255485535, -0.1318492591381073, -0.376160591840744, -0.43336349725723267, 0.1509048342704773, -0.21111632883548737, -0.543235719203949, 0.23743224143981934, -0.916100263595581, 0.2817618250846863, 1.4230538606643677, 0.3427545428276062, 0.045813970267772675, 0.47967275977134705, 1.1006909608840942, 0.3808601200580597, -0.09177890419960022, -0.8281269073486328, -1.5619975328445435, 2.045785903930664, -1.4821383953094482, 2.0206525325775146, 0.7991851568222046, -0.05192650109529495, -1.8581931591033936, -1.9086116552352905, 1.2833867073059082, 1.1084007024765015, 2.328744888305664, 0.5728203058242798, 0.44070345163345337, -0.7958066463470459, -0.6300110816955566, 0.36680614948272705, -0.9753106236457825, -0.6969757676124573, 0.15894939005374908, 2.3716518878936768, 1.7155412435531616, -0.44725701212882996, -0.11759953200817108, -0.9060706496238708, 1.4209012985229492, -0.16224734485149384, 0.26438239216804504, 2.0085573196411133, -0.2851719856262207, -1.0462696552276611, 1.266626000404358, -2.3721275329589844, 0.225568950176239, 2.0412638187408447, 0.23335057497024536, 0.09659747779369354, -1.3463102579116821, -0.6633715033531189, -0.34448719024658203, -0.4204356372356415, -1.246823787689209, 0.5994654893875122, -0.2527519166469574, -0.8658361434936523, -1.4492238759994507, 0.0528426319360733, -1.174135684967041, -1.8266044855117798, 0.3168399930000305, 1.916410207748413, 2.119957208633423, -0.7724716663360596, 1.4713711738586426, -0.2776406407356262, 0.11346132308244705, 1.1949692964553833, 1.239993691444397, 3.147348642349243, 1.9231841564178467, -1.2767785787582397, 0.6998594403266907, -0.10444504767656326, -0.42668387293815613, 1.1568260192871094, -1.1469460725784302, 1.2324073314666748, -0.1727149933576584, -1.1783466339111328, -1.222051978111267, 0.9487492442131042, 0.4169987142086029, -0.03559466078877449, -0.45242246985435486, 1.262062430381775, 0.05993472412228584, 1.3481789827346802, 0.5579965710639954, -0.33211198449134827, 0.5212374925613403, -0.4204636812210083, -0.5480623841285706, 1.5782338380813599, 0.09661906212568283, -1.4411804676055908, -2.297309160232544, -0.322971373796463, -0.8530071973800659, 0.024258144199848175, -0.6117509603500366, -1.0262614488601685, 1.6083507537841797, 0.3821249306201935, -1.1758557558059692, -0.2979010343551636, -0.40465953946113586, -0.5477413535118103, 2.691585063934326, -1.3992984294891357, -0.11568490415811539, -0.9538009762763977, -0.5606182217597961, 1.5987509489059448, -1.2143532037734985, -0.2244052141904831, -1.087588906288147, -0.5770289897918701, -1.3138946294784546, -0.5526599287986755, -0.025251850485801697, -0.9233614206314087, 0.8091749548912048, 0.17329268157482147, -1.1164436340332031, -0.33242058753967285, -0.9285557866096497, 1.0021430253982544, -0.11643331497907639, 0.1696779578924179, 1.823081135749817, 0.3498055636882782, -0.38556402921676636, 0.7826763987541199, 1.1603305339813232, 0.5937722325325012, -0.6396507024765015, 0.1116902306675911, -0.6429838538169861, 0.4235903024673462, -1.3234814405441284, 0.2484828233718872, -2.904557228088379, 0.697413444519043, -0.08878544718027115, -0.056014031171798706, -0.09163445979356766, -1.2920674085617065, 1.0746339559555054, 2.565709114074707, -1.2062866687774658, 0.5173007249832153, 0.3648010194301605, 1.1778868436813354, -1.5684376955032349, 0.2714241147041321, -0.4953581988811493, 2.1382384300231934, 0.17576955258846283, 1.2164762020111084, -0.47788533568382263, -2.3483526706695557, 0.6622123718261719, -1.2228269577026367, -1.124974012374878, 0.8437562584877014, -0.8698770999908447, 0.19729071855545044, -1.4720547199249268, -0.20893079042434692, -0.9591919183731079, -1.1901048421859741, 0.6216832995414734, 0.12183225899934769, 0.4938073456287384, -0.5956912636756897, 0.3214319944381714, -2.249044418334961, -1.3900108337402344, -0.24860061705112457, -0.9459885954856873, 0.5309349894523621, -0.4212251305580139, 0.6985693573951721, -0.09950055927038193, 0.021724022924900055, 0.29908522963523865, 1.3823810815811157, 3.386239528656006, 0.09501320123672485, 0.24389496445655823, -0.12492702156305313, -0.9963913559913635, 1.4478031396865845, 0.9630405902862549, -0.20044901967048645, -0.5597110390663147, -1.056525707244873, 1.263719916343689, 1.9836629629135132, 0.9751095175743103, 0.003264019265770912, -0.7826435565948486, -0.7025339603424072, 0.04630836844444275, 0.22720156610012054, 0.5529693961143494, 0.9471407532691956, 0.01749015599489212, 0.1613069623708725, 1.5190343856811523, 1.1418076753616333, -0.32606828212738037, 0.3485412001609802, -0.8724657893180847, -0.50668865442276, 0.48219695687294006, 0.2745721936225891, -0.034538690000772476, 0.39767712354660034, -0.9960440993309021, -0.3253454566001892, -0.3166542053222656, -0.8864610195159912, -0.6802398562431335, -0.3527451157569885, -0.4134131073951721, 1.6344329118728638, 0.09687526524066925, -0.5138887166976929, -0.004636355675756931, -0.7212256193161011, -0.14564533531665802, -1.1060675382614136, 0.3372095823287964, -0.1969863623380661, 0.0030589308589696884, -0.13103266060352325, 1.712760090827942, -0.9258793592453003, -2.03316593170166, 0.1928555965423584, 0.2675115466117859, -0.2519890367984772, 0.14983342587947845, 1.7021960020065308, 0.5870531797409058, 1.333814024925232, 1.3212389945983887, 0.9320193529129028, -0.6534628868103027, -1.2626601457595825, 0.6356541514396667, 1.010881781578064, -1.3895198106765747, 0.8408843278884888, -0.13741464912891388, -0.627956748008728, 0.6497729420661926, 1.3998976945877075, 0.4725490212440491, -1.9896012544631958, 0.8863058090209961, -1.027457594871521, 0.8061314821243286, 0.779460072517395, 0.7889362573623657, 0.1586770862340927, 0.8429282903671265, -1.2283071279525757, -1.097109079360962, -0.7204182744026184, -0.6982161402702332, 1.9578579664230347, -0.2965814173221588, 0.5291507840156555, -0.21803335845470428, -1.2715322971343994, -0.08562874048948288, 0.6682442426681519, 0.3325851261615753, -0.4138341546058655, 0.8674513101577759, -0.6298817992210388, -1.1243940591812134, -1.3120758533477783, -0.4331263303756714, -1.0073434114456177, -0.9803869128227234, 1.0232088565826416, 0.786756694316864, 0.404367059469223, 1.845656394958496, 0.6086898446083069, 0.21079401671886444, -2.598952293395996, 0.8985838294029236, 0.2974856495857239, -0.07151587307453156, 0.8907666206359863, 0.26441484689712524, 1.0510821342468262, -0.008111872710287571, 0.5642790794372559, -2.34851336479187, 2.2685587406158447, -0.24032078683376312, 0.7298634052276611, -0.023991277441382408, -0.06934493780136108, 1.0324535369873047, 0.6183754205703735, 0.533742368221283, -1.0414453744888306, 0.7749788761138916, -0.5322233438491821, 1.1409916877746582, 1.0031379461288452, -0.790055513381958, -0.02388782612979412, 1.342584490776062, 0.45051419734954834, -0.5581642985343933, -0.9278212189674377, -0.9053391814231873, 0.9683699607849121, 1.828453540802002, -0.08467838168144226, 0.05033869296312332, 0.7748720049858093, 0.6116536855697632, -1.2657607793807983, 0.027302175760269165, -0.6943899989128113, -0.7010700702667236, 1.6696338653564453, 2.077147960662842, -0.10930594056844711, -0.148138627409935, -0.6990448236465454, -1.3588963747024536, 0.7846817970275879, -0.04515872895717621, 0.08474157750606537, 0.6950592398643494, -0.6237204670906067, 1.1147245168685913, 0.7395446300506592, 0.9896519184112549, 0.11556791514158249, 0.24639305472373962, 0.394880086183548, -0.22842442989349365, -1.1984692811965942, -0.2974450886249542, -1.0719993114471436, -2.4223082065582275, 0.37364229559898376, -0.23686252534389496, -1.4851714372634888, -0.0029472755268216133, -1.0019240379333496, 0.925281822681427, -0.573701798915863, -1.120593547821045, -1.4669849872589111, 0.2093704789876938, -0.09133996814489365, 0.949434220790863, -1.5789917707443237, -0.1509220451116562, 1.2861509323120117, 0.9047291278839111, -0.6109044551849365, 1.092145323753357, 0.26364025473594666, 1.0227164030075073, 0.8456255197525024, -0.34026089310646057, 0.5663663744926453, 0.17472566664218903, -1.3052778244018555, 0.43747228384017944, 1.2222864627838135, 0.17649711668491364, 1.4615956544876099, -0.5238021612167358, 0.011634769849479198, 0.3957000970840454, -0.4821229875087738, -0.4584732949733734, -0.5080761313438416, 0.7075920104980469, -0.038409072905778885, -0.8698585629463196, -0.008919286541640759, -0.11569998413324356, -0.2859928607940674, 0.2101915180683136, -1.5002163648605347, -0.19363731145858765, -0.40031084418296814, -0.5605219006538391, -1.3165583610534668, -0.013483092188835144, 1.43156099319458, -0.8032981157302856, -0.1815379559993744, 0.4463006854057312, 0.3603559136390686, 0.5802164077758789, 0.6791254281997681, -0.669404149055481, -0.33646711707115173, -0.2536742091178894, -0.374542772769928, 0.2645403742790222, 1.3079376220703125, -0.04867362976074219, -1.0570205450057983, 0.6663144826889038, -0.3657999038696289, 0.13775035738945007, 1.9612336158752441, 0.06515663862228394, -0.7704452872276306, 0.29003846645355225, -0.7453466653823853, 1.8914107084274292, 1.6617435216903687, 1.3298393487930298, -0.10950629413127899, -0.9015105366706848, 0.6504623293876648, -0.3511243462562561, -0.3544808626174927, 0.8852349519729614, 0.46778321266174316, -0.23034493625164032, -1.4232431650161743, 0.7055552005767822, 1.2265541553497314, -0.9156206250190735, -0.7753835916519165, 0.1010652557015419, -0.8093475103378296, 1.1216232776641846, 0.6523317694664001, 0.3528011739253998, 0.2752808928489685, 1.661953091621399, 0.770967960357666, -0.5395780205726624, 0.5084133744239807, 0.5446458458900452, -0.1851465255022049, -2.0833890438079834, -1.0871299505233765, 0.3014330565929413, -0.4434226453304291, -1.5819114446640015, 1.3800712823867798, -1.1794286966323853, -0.9590540528297424, 0.5385390520095825, 0.015254388563334942, 1.313288927078247, 0.3412073850631714, 1.629359483718872, 2.083829164505005, 0.8575871586799622, 0.3991333544254303, 1.2552417516708374, -0.17211537063121796, -0.4068480432033539, 1.7236651182174683, -0.45569908618927, 0.5215099453926086, 1.1049752235412598, -0.38074588775634766, -1.0562893152236938, -0.811852216720581, -1.2065882682800293, -0.6458842158317566, 1.1637139320373535, 0.11858738213777542, -1.1284898519515991, 0.29452359676361084, 1.5986580848693848, 0.1851448267698288, -0.30147305130958557, 0.6341081261634827, 0.40787604451179504, -0.8372344374656677, -0.17075546085834503, -0.9653974771499634, 0.4592638909816742, -0.22133678197860718, -0.3464184105396271, 0.274137943983078, 0.48534390330314636, 1.3424174785614014, 0.001096661202609539, 0.15532033145427704, 1.2068397998809814, -1.3352892398834229, 1.4491671323776245, -0.6948248147964478, 0.2985215485095978, -2.3731958866119385, 1.3580009937286377, -0.7933140993118286, 2.0218279361724854, -2.672675371170044, 0.490934818983078, -0.5396069288253784, -0.42347145080566406, 0.22551995515823364, -0.33686748147010803, 0.1432347297668457, -0.08279618620872498, -1.0781258344650269, -0.08263838291168213, -0.6589988470077515, 0.5946375727653503, 1.1722307205200195, 1.3207597732543945, -1.0841524600982666, -0.21726256608963013, -1.6743894815444946, -0.21192185580730438, -0.762874960899353, 0.2734556794166565, -1.962943434715271, -0.1908935010433197, -1.9584057331085205, -2.440488338470459, -1.2654025554656982, -0.8931907415390015, 1.136519193649292, 0.10545852780342102, -0.8749118447303772, 1.2316557168960571, -0.3387644290924072, -1.811711311340332, 1.1816736459732056, -2.1575863361358643 ]
https://github.com/huggingface/datasets/issues/3773
Checksum mismatch for the reddit_tifu dataset
Hi @anna-kay, I'm sorry I didn't clearly explain the details to you: - the error has been fixed in our `master` branch on GitHub: https://github.com/huggingface/datasets/commit/8ae21bf6a77175dc803ce2f1b93d18b8fbf45586 - the fix will not be accessible to users in PyPI until our next release of the `datasets` library - our latest release (version 1.18.3) was made 23 days ago: https://github.com/huggingface/datasets/releases/tag/1.18.3 - in the meantime, you can get the fix if you install datasets from our GitHub `master` branch: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0
934
79
Checksum mismatch for the reddit_tifu dataset ## Describe the bug A checksum occurs when downloading the reddit_tifu data (both long & short). ## Steps to reproduce the bug reddit_tifu_dataset = load_dataset('reddit_tifu', 'long') ## Expected results The expected result is for the dataset to be downloaded and cached locally. ## Actual results File "/.../lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 7.0.0 Hi @anna-kay, I'm sorry I didn't clearly explain the details to you: - the error has been fixed in our `master` branch on GitHub: https://github.com/huggingface/datasets/commit/8ae21bf6a77175dc803ce2f1b93d18b8fbf45586 - the fix will not be accessible to users in PyPI until our next release of the `datasets` library - our latest release (version 1.18.3) was made 23 days ago: https://github.com/huggingface/datasets/releases/tag/1.18.3 - in the meantime, you can get the fix if you install datasets from our GitHub `master` branch: ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
[ -1.1839454174041748, -0.896725594997406, -0.7090710401535034, 1.3955446481704712, -0.14708827435970306, -1.236779808998108, 0.09307621419429779, -0.9908657073974609, 1.6288982629776, -0.7536267042160034, 0.24814258515834808, -1.6741290092468262, -0.04717443510890007, -0.5233942270278931, -0.7286168336868286, -0.7739180326461792, -0.37186118960380554, -0.7861719727516174, 1.027053713798523, 2.4793763160705566, 1.2243951559066772, -1.3814291954040527, 2.795186758041382, 0.6515635251998901, -0.22766977548599243, -0.9988998174667358, 0.5356002449989319, -0.016781708225607872, -1.34262216091156, -0.40783974528312683, -0.9135790467262268, 0.05232879891991615, -0.5383288264274597, -0.47010108828544617, 0.07067793607711792, 0.3887459635734558, -0.21491757035255432, -0.39454546570777893, -0.5018824934959412, -0.7722601890563965, 0.4602297842502594, -0.2946036756038666, 0.884820282459259, -0.304495245218277, 1.8374828100204468, -0.5649297833442688, 0.35583600401878357, 0.6848158836364746, 1.314157485961914, 0.18990634381771088, 0.009360672906041145, 0.3269209861755371, 0.3114023804664612, 0.0345802940428257, 0.49168360233306885, 1.1861943006515503, 0.6290192008018494, 0.4055817425251007, 0.7439488172531128, -2.221621036529541, 1.3022688627243042, -0.8959054350852966, 0.30847448110580444, 1.3038969039916992, -0.9522470235824585, 0.37940213084220886, -1.823852777481079, 0.0010022837668657303, 0.5490216016769409, -2.2825489044189453, 0.22987155616283417, -1.3325062990188599, -0.5452930331230164, 1.0053421258926392, 0.25773242115974426, -1.2361265420913696, 0.16283456981182098, -0.5019346475601196, 1.0346097946166992, 0.45468372106552124, 1.1798760890960693, -1.6313624382019043, -0.02473619394004345, -0.1762637495994568, 0.12307123839855194, -1.3143748044967651, -1.638622522354126, 0.5219435691833496, 0.6654709577560425, 0.621597170829773, -0.15384206175804138, 0.9410215020179749, -1.0189571380615234, 0.7878811359405518, -0.9502508640289307, -1.7730270624160767, -1.4170289039611816, -2.343432664871216, -2.270508289337158, 0.7929506897926331, -0.45367738604545593, -0.45448705554008484, 2.0614023208618164, -1.0376359224319458, -1.8259639739990234, 1.1484441757202148, 0.2826661169528961, -0.014638581313192844, 2.3543543815612793, 0.23407474160194397, -0.797345757484436, 0.4815923273563385, -0.7606237530708313, 0.7547687292098999, -0.34682294726371765, 1.2870416641235352, 0.46067145466804504, -1.0241913795471191, 1.602953553199768, -0.4527056813240051, 0.5320493578910828, -0.6583362221717834, -0.46055129170417786, -0.786655604839325, 0.23239833116531372, 1.900907039642334, -0.35891467332839966, 1.5699069499969482, -0.33448320627212524, -1.5644174814224243, -1.5249621868133545, 0.7844370007514954, 0.5437301993370056, -0.7945593595504761, 0.07004524767398834, -0.3884356617927551, 0.08019283413887024, -0.057859987020492554, 1.0918395519256592, 1.2514055967330933, 0.7508420944213867, -0.2946670949459076, -0.877407968044281, 0.2224040925502777, -0.08506560325622559, -0.6111403703689575, -1.8489453792572021, -0.26639294624328613, 0.22220169007778168, 0.6659930944442749, -1.2725576162338257, 1.6715806722640991, 0.9280566573143005, 1.939178228378296, 0.9823845028877258, -0.40463390946388245, 1.5437612533569336, 0.08834373950958252, 1.8575588464736938, -0.4870655834674835, 0.6450417041778564, -0.36328592896461487, -1.1747099161148071, 0.7540650963783264, -0.2972065508365631, -2.0221219062805176, -0.7068005800247192, -0.8502289056777954, -0.18815968930721283, -0.7956722974777222, 0.9120814800262451, -0.2805067002773285, -1.415549635887146, 0.21371862292289734, -0.7115927338600159, 0.15649230778217316, -1.2527446746826172, 0.248472198843956, 0.7481361627578735, -0.6303589344024658, 0.011041482910513878, -0.27980852127075195, -1.3402087688446045, -0.49135062098503113, 0.3893744647502899, 1.8112540245056152, -0.7240563035011292, 0.9984202980995178, 1.046578288078308, -0.6868879199028015, 0.06697718799114227, 0.33481892943382263, -0.35456383228302, 0.9064403772354126, -1.0620086193084717, -0.45581772923469543, 1.1165087223052979, -0.18776974081993103, -0.5902212262153625, 1.3990541696548462, 0.7611951231956482, -0.993341863155365, -0.26514318585395813, -0.15069416165351868, -0.8168700933456421, -0.03393254429101944, -1.6245490312576294, -0.17914432287216187, 0.30321604013442993, -1.5545653104782104, -0.45176786184310913, -0.21648725867271423, 1.330457329750061, -0.15655218064785004, 1.471817135810852, -0.3119863271713257, -0.17725427448749542, -0.4061526358127594, -0.41956108808517456, 0.19388335943222046, -0.18475762009620667, -0.559027373790741, 0.27328214049339294, -0.8532969951629639, 0.3121044635772705, 1.427566647529602, 0.3557139039039612, 0.05759621784090996, 0.5545967221260071, 1.1103993654251099, 0.35336342453956604, -0.08969596028327942, -0.8780148029327393, -1.6064783334732056, 2.0302627086639404, -1.4647409915924072, 2.0168769359588623, 0.7889874577522278, -0.06315095722675323, -1.8277206420898438, -1.9505420923233032, 1.290158987045288, 1.0789580345153809, 2.4322619438171387, 0.532101035118103, 0.4877780079841614, -0.7939857244491577, -0.6880818605422974, 0.36170849204063416, -0.9674174189567566, -0.7308554649353027, 0.1317424774169922, 2.3857474327087402, 1.7171717882156372, -0.4568837583065033, -0.18717476725578308, -0.9955337643623352, 1.3961924314498901, -0.16547566652297974, 0.24106232821941376, 2.0151805877685547, -0.22942793369293213, -1.0469785928726196, 1.278041124343872, -2.3691675662994385, 0.26081377267837524, 2.0120415687561035, 0.21118052303791046, 0.0729101151227951, -1.3721339702606201, -0.6596546173095703, -0.26784732937812805, -0.45111697912216187, -1.2289116382598877, 0.5960977673530579, -0.26452547311782837, -0.889195442199707, -1.438813328742981, 0.009946497157216072, -1.1711437702178955, -1.7746752500534058, 0.3369547128677368, 1.91148841381073, 2.0467801094055176, -0.7729687690734863, 1.4440217018127441, -0.25273722410202026, 0.12297029793262482, 1.2602074146270752, 1.263772964477539, 3.155806064605713, 1.897003173828125, -1.3475286960601807, 0.7318958640098572, -0.09613935649394989, -0.4215764105319977, 1.1788333654403687, -1.0658105611801147, 1.2130382061004639, -0.2178453505039215, -1.2543115615844727, -1.230244755744934, 0.9675217866897583, 0.4854455888271332, 0.02015954814851284, -0.4534321129322052, 1.179158329963684, 0.07589386403560638, 1.3553307056427002, 0.6217814683914185, -0.404518723487854, 0.5991284251213074, -0.3540639877319336, -0.5319331884384155, 1.5706727504730225, 0.10143786668777466, -1.438671588897705, -2.3368778228759766, -0.3240797519683838, -0.85764080286026, -0.022958632558584213, -0.6277653574943542, -1.034660816192627, 1.531581163406372, 0.44112083315849304, -1.1998428106307983, -0.3029578626155853, -0.3364405632019043, -0.556854784488678, 2.610805034637451, -1.4279698133468628, -0.15104347467422485, -0.9642912149429321, -0.4895292818546295, 1.545661449432373, -1.198685646057129, -0.26829084753990173, -1.0395904779434204, -0.5995929837226868, -1.301552653312683, -0.589133620262146, -0.012843728065490723, -0.853530764579773, 0.7571501135826111, 0.13360479474067688, -1.1190438270568848, -0.31153547763824463, -0.9142622351646423, 0.9945619702339172, -0.07205014675855637, 0.15389099717140198, 1.8001168966293335, 0.3858798146247864, -0.3231411576271057, 0.7292739748954773, 1.1361241340637207, 0.600380539894104, -0.614927351474762, 0.1676987260580063, -0.7025728821754456, 0.3394371569156647, -1.3718215227127075, 0.26476261019706726, -2.943311929702759, 0.6992820501327515, -0.08554132282733917, -0.04805034026503563, -0.10590671002864838, -1.3404051065444946, 1.0815925598144531, 2.518690586090088, -1.1900238990783691, 0.5114704966545105, 0.34897205233573914, 1.1493266820907593, -1.6249324083328247, 0.17720617353916168, -0.4980454742908478, 2.1105716228485107, 0.13677829504013062, 1.2051191329956055, -0.47055208683013916, -2.265747308731079, 0.5776276588439941, -1.2334216833114624, -1.086203932762146, 0.8346500396728516, -0.8474382758140564, 0.1958581805229187, -1.4475634098052979, -0.18081343173980713, -0.9183199405670166, -1.2433147430419922, 0.6440631747245789, 0.0870060920715332, 0.5051187872886658, -0.591604471206665, 0.34397950768470764, -2.1972546577453613, -1.3175569772720337, -0.1985960602760315, -0.9556025862693787, 0.5075138211250305, -0.3284628689289093, 0.6858220100402832, -0.04652443155646324, 0.024081405252218246, 0.293473482131958, 1.3464621305465698, 3.3569185733795166, 0.13133279979228973, 0.27047160267829895, -0.09710966050624847, -0.9851879477500916, 1.419121265411377, 0.9726784825325012, -0.21180565655231476, -0.5897839665412903, -1.025720238685608, 1.3043957948684692, 1.995438575744629, 1.0285249948501587, 0.06280641257762909, -0.8036574125289917, -0.7318692207336426, 0.08474130928516388, 0.19963183999061584, 0.5624730587005615, 0.9920111298561096, 0.04232703894376755, 0.1272525042295456, 1.4428880214691162, 1.1956110000610352, -0.3235025107860565, 0.4595952332019806, -0.8871404528617859, -0.5330402851104736, 0.45326974987983704, 0.29138702154159546, -0.030740929767489433, 0.38572412729263306, -1.0919221639633179, -0.2741335332393646, -0.3563191890716553, -0.9300597906112671, -0.7388222217559814, -0.35632842779159546, -0.40201690793037415, 1.6005704402923584, 0.04590316861867905, -0.46005573868751526, 0.008156565949320793, -0.7322825193405151, -0.12637995183467865, -1.0709254741668701, 0.36696937680244446, -0.16203220188617706, -0.0003591477870941162, -0.12444044649600983, 1.690517544746399, -0.9446805119514465, -2.057006597518921, 0.18545570969581604, 0.2644924223423004, -0.33986613154411316, 0.1290556788444519, 1.733656883239746, 0.542547881603241, 1.3811901807785034, 1.366328239440918, 0.9636028409004211, -0.6367783546447754, -1.2327213287353516, 0.6657130718231201, 0.9866390228271484, -1.3950015306472778, 0.7676674127578735, -0.1164722889661789, -0.6143736243247986, 0.7303059697151184, 1.3419146537780762, 0.39828407764434814, -2.021571397781372, 0.8976452350616455, -0.9623130559921265, 0.7253714203834534, 0.7226107716560364, 0.8457711935043335, 0.18981638550758362, 0.8731249570846558, -1.296461820602417, -1.0653581619262695, -0.6738285422325134, -0.6429023146629333, 1.9476947784423828, -0.2517404854297638, 0.46686607599258423, -0.21111540496349335, -1.3191165924072266, -0.11943548917770386, 0.681648313999176, 0.3247185945510864, -0.4395920932292938, 0.8226627111434937, -0.6449633836746216, -1.1205474138259888, -1.3731354475021362, -0.4380096197128296, -0.9895162582397461, -0.9389747977256775, 0.9651274085044861, 0.8356572985649109, 0.40021711587905884, 1.8475145101547241, 0.5630085468292236, 0.21246404945850372, -2.631739616394043, 0.8902683854103088, 0.34955698251724243, -0.08339697122573853, 0.9112880825996399, 0.22688813507556915, 1.1037118434906006, 0.006818469613790512, 0.5856119990348816, -2.3214144706726074, 2.231898069381714, -0.25058403611183167, 0.7405722737312317, -0.025772344321012497, -0.12829214334487915, 1.0932972431182861, 0.5591793656349182, 0.6281300783157349, -1.1022355556488037, 0.8244482278823853, -0.5675689578056335, 1.1263082027435303, 0.942191481590271, -0.8598071336746216, -0.031761378049850464, 1.3399826288223267, 0.4599605202674866, -0.46902504563331604, -0.9096037149429321, -0.8901872634887695, 0.9329265356063843, 1.8350696563720703, -0.039365626871585846, 0.07224300503730774, 0.8200758695602417, 0.6731833815574646, -1.3662831783294678, 0.0457669235765934, -0.7231611013412476, -0.7076160311698914, 1.677715539932251, 2.037513256072998, -0.10456188023090363, -0.2000826746225357, -0.735351026058197, -1.336012601852417, 0.7465172410011292, -0.0208454467356205, 0.08985716104507446, 0.7068370580673218, -0.664431631565094, 1.1502243280410767, 0.7263269424438477, 0.9864304661750793, 0.0703565776348114, 0.2643093168735504, 0.3364604413509369, -0.2753233015537262, -1.2181437015533447, -0.33710476756095886, -1.041469693183899, -2.455747365951538, 0.4485182464122772, -0.2114369422197342, -1.449775218963623, 0.05517522618174553, -1.011293649673462, 0.8676484823226929, -0.5618433952331543, -1.1265054941177368, -1.4415007829666138, 0.24772299826145172, -0.14949940145015717, 0.8702641129493713, -1.6034878492355347, -0.09806022047996521, 1.292298436164856, 0.9099031686782837, -0.578520655632019, 1.0318700075149536, 0.3094797432422638, 1.0272704362869263, 0.8801172971725464, -0.34439802169799805, 0.48113977909088135, 0.19111160933971405, -1.3417404890060425, 0.4508150815963745, 1.2272142171859741, 0.19479531049728394, 1.4584599733352661, -0.57904452085495, 0.057639334350824356, 0.4377945363521576, -0.476812481880188, -0.4894839823246002, -0.526236355304718, 0.6965654492378235, -0.024583399295806885, -0.9154351353645325, 0.03615240007638931, -0.09145767986774445, -0.22314412891864777, 0.23276439309120178, -1.4994573593139648, -0.22427959740161896, -0.356516569852829, -0.593650221824646, -1.2908324003219604, -0.00284179812297225, 1.3848164081573486, -0.8148422241210938, -0.22818149626255035, 0.49305176734924316, 0.37535858154296875, 0.6113041043281555, 0.6820476651191711, -0.6375148892402649, -0.37246081233024597, -0.25340816378593445, -0.39156028628349304, 0.26550886034965515, 1.2906074523925781, -0.07515139877796173, -0.9983205795288086, 0.6581887006759644, -0.3910784125328064, 0.10814307630062103, 1.9558881521224976, 0.03740870580077171, -0.8077131509780884, 0.30409979820251465, -0.7215732932090759, 1.8959325551986694, 1.6969754695892334, 1.3593517541885376, -0.10745127499103546, -0.921218752861023, 0.6299282908439636, -0.32896506786346436, -0.36830025911331177, 0.9874258041381836, 0.5164779424667358, -0.1922798603773117, -1.3791842460632324, 0.6382264494895935, 1.3020092248916626, -0.9716729521751404, -0.7530447244644165, 0.08669190108776093, -0.8384488821029663, 1.1461987495422363, 0.7154427766799927, 0.3493306040763855, 0.2253500372171402, 1.5780316591262817, 0.7547653317451477, -0.5131833553314209, 0.5293719172477722, 0.5077691674232483, -0.22179998457431793, -2.0667316913604736, -1.0790846347808838, 0.31121933460235596, -0.3894505202770233, -1.5875226259231567, 1.3480141162872314, -1.139662265777588, -0.9618988037109375, 0.4928246736526489, 0.07028454542160034, 1.3318824768066406, 0.33848023414611816, 1.6694198846817017, 2.071467161178589, 0.9237504005432129, 0.36485812067985535, 1.3175938129425049, -0.12028780579566956, -0.3868879973888397, 1.695799708366394, -0.4681071937084198, 0.5537639260292053, 1.104628324508667, -0.4437898099422455, -1.0717471837997437, -0.8024411797523499, -1.1803176403045654, -0.6093848943710327, 1.1995726823806763, 0.10543985664844513, -1.1176477670669556, 0.2928415834903717, 1.6100467443466187, 0.18702580034732819, -0.26278772950172424, 0.6948468685150146, 0.42460721731185913, -0.73689204454422, -0.10344019532203674, -0.9520813822746277, 0.4331440031528473, -0.2406548708677292, -0.34446385502815247, 0.28432485461235046, 0.5128877758979797, 1.305341124534607, 0.045138273388147354, 0.11156018078327179, 1.2517913579940796, -1.3575578927993774, 1.4371551275253296, -0.725083589553833, 0.33527666330337524, -2.4181480407714844, 1.3904083967208862, -0.8153107762336731, 1.9623702764511108, -2.6346993446350098, 0.4742320477962494, -0.5851494073867798, -0.4282972812652588, 0.21082383394241333, -0.3244883120059967, 0.15188293159008026, -0.12659746408462524, -1.0750315189361572, -0.1352868378162384, -0.797099232673645, 0.6145661473274231, 1.2066572904586792, 1.337462067604065, -1.08333420753479, -0.210329070687294, -1.6829779148101807, -0.20391792058944702, -0.7542216181755066, 0.29183298349380493, -1.9361791610717773, -0.17591269314289093, -1.9503045082092285, -2.436436653137207, -1.296773910522461, -0.9161887168884277, 1.1206624507904053, 0.15919245779514313, -0.8872013092041016, 1.146727442741394, -0.38409945368766785, -1.8035646677017212, 1.1450135707855225, -2.1992008686065674 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore) I guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what do you think ?
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
936
60
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0 Hi ! Indeed `map` is dropping the index right now, because one can create a dataset with more or fewer rows using `map` (and therefore the index might not be relevant anymore) I guess we could check the resulting dataset length, and if the user hasn't changed the dataset size we could keep the index, what do you think ?
[ -1.2222217321395874, -0.966611385345459, -0.6904886364936829, 1.480088710784912, -0.12375415116548538, -1.2867132425308228, 0.21598947048187256, -1.0883660316467285, 1.798959732055664, -0.831599235534668, 0.18664708733558655, -1.5974892377853394, 0.023648139089345932, -0.6196933388710022, -0.7336063981056213, -0.8132020831108093, -0.4178258776664734, -0.7478852868080139, 1.05440354347229, 2.4210829734802246, 1.0932954549789429, -1.412776231765747, 2.7849955558776855, 0.6657110452651978, -0.11398067325353622, -0.9993330240249634, 0.47247880697250366, -0.07368097454309464, -1.3634151220321655, -0.4098733961582184, -0.9483568668365479, -0.04185352846980095, -0.631439208984375, -0.5323563814163208, 0.031532105058431625, 0.4444311559200287, -0.2948559820652008, -0.5608310103416443, -0.5093194246292114, -0.8516499400138855, 0.41155487298965454, -0.2799533009529114, 0.9344682097434998, -0.31435057520866394, 1.7921960353851318, -0.5002060532569885, 0.43610361218452454, 0.7098817825317383, 1.4087878465652466, 0.17544233798980713, 0.0031437845900654793, 0.3907129764556885, 0.4109211266040802, -0.0019537070766091347, 0.5147473216056824, 1.1691499948501587, 0.6208033561706543, 0.48761802911758423, 0.7620784640312195, -2.3431267738342285, 1.3556095361709595, -1.016575813293457, 0.38749027252197266, 1.3168739080429077, -0.9463616013526917, 0.3101702034473419, -1.7401058673858643, 0.01217768806964159, 0.6133990287780762, -2.19014310836792, 0.32556581497192383, -1.3150131702423096, -0.45173782110214233, 1.0355072021484375, 0.44607990980148315, -1.1404898166656494, 0.1456398069858551, -0.367048442363739, 1.102548599243164, 0.41756993532180786, 1.0566068887710571, -1.7934973239898682, -0.0019769687205553055, -0.26015374064445496, 0.10985713452100754, -1.2396608591079712, -1.6059770584106445, 0.4975206255912781, 0.7195233106613159, 0.6235255599021912, -0.16717690229415894, 1.0335674285888672, -1.0135668516159058, 0.7239645719528198, -1.0573806762695312, -1.7637532949447632, -1.3489079475402832, -2.2802159786224365, -2.3018710613250732, 0.667526364326477, -0.45484256744384766, -0.4589828848838806, 2.1473655700683594, -0.9721412658691406, -1.7505806684494019, 1.1489053964614868, 0.2357872873544693, 0.05946952849626541, 2.271771192550659, 0.21693481504917145, -0.7096673250198364, 0.5128816962242126, -0.7724628448486328, 0.7588766813278198, -0.3349088132381439, 1.266054630279541, 0.34067463874816895, -1.0049527883529663, 1.5426952838897705, -0.37867146730422974, 0.5707228183746338, -0.711004912853241, -0.4626469016075134, -0.760699450969696, 0.294545978307724, 1.8868741989135742, -0.22673289477825165, 1.513357162475586, -0.4158651828765869, -1.584040641784668, -1.5932432413101196, 0.9037420749664307, 0.43510696291923523, -0.765447199344635, 0.13388018310070038, -0.393892765045166, 0.14515310525894165, -0.11554423719644547, 1.2642420530319214, 1.299728512763977, 0.7229661345481873, -0.37908241152763367, -0.8868870735168457, 0.16703161597251892, -0.07789488136768341, -0.785555899143219, -1.7547409534454346, -0.308228999376297, 0.14158545434474945, 0.6506495475769043, -1.1343555450439453, 1.6981667280197144, 0.8151466846466064, 1.9542856216430664, 1.0239253044128418, -0.36407533288002014, 1.4701303243637085, 0.14589591324329376, 1.8896657228469849, -0.4813188910484314, 0.6617110371589661, -0.38376104831695557, -1.1559102535247803, 0.8321012258529663, -0.3778541386127472, -2.0279359817504883, -0.6705393195152283, -0.8195432424545288, -0.2089637964963913, -0.7575340867042542, 0.9254294633865356, -0.35598862171173096, -1.5148425102233887, 0.23140737414360046, -0.7211443185806274, 0.22397585213184357, -1.1354032754898071, 0.30149388313293457, 0.7623671889305115, -0.658711850643158, 0.12788280844688416, -0.31897464394569397, -1.3602354526519775, -0.4865885376930237, 0.4174611568450928, 1.8331338167190552, -0.7024726271629333, 0.9168936014175415, 1.0706738233566284, -0.6803783178329468, -0.06023998558521271, 0.2474467158317566, -0.291941374540329, 0.8681971430778503, -1.121667504310608, -0.4870769679546356, 1.2268401384353638, -0.2375609576702118, -0.6061548590660095, 1.5024468898773193, 0.6280568838119507, -1.0479480028152466, -0.20094315707683563, -0.10791544616222382, -0.8828148245811462, 0.035311974585056305, -1.6382708549499512, -0.137675940990448, 0.48400330543518066, -1.6097875833511353, -0.516704797744751, -0.1646331399679184, 1.2866243124008179, -0.07698477059602737, 1.3541803359985352, -0.3703676760196686, -0.09064099937677383, -0.38039430975914, -0.36814236640930176, 0.16628414392471313, -0.24471671879291534, -0.6139262914657593, 0.16113366186618805, -0.7716363668441772, 0.32242628931999207, 1.446832537651062, 0.28780850768089294, 0.06747306138277054, 0.49801403284072876, 1.0917171239852905, 0.38288232684135437, -0.021738454699516296, -0.794139564037323, -1.615268588066101, 1.9918529987335205, -1.4225437641143799, 1.945573329925537, 0.644940197467804, -0.0469006709754467, -1.8409456014633179, -1.9058260917663574, 1.3963128328323364, 1.041181206703186, 2.28188419342041, 0.50198894739151, 0.4889064133167267, -0.8529936075210571, -0.5908655524253845, 0.29025280475616455, -0.9013199806213379, -0.7135699391365051, 0.15088409185409546, 2.4312634468078613, 1.7172532081604004, -0.3862537145614624, -0.17307835817337036, -0.9825714826583862, 1.3716449737548828, -0.2510206699371338, 0.2852615714073181, 1.9137128591537476, -0.267129123210907, -1.03386390209198, 1.3045915365219116, -2.3418514728546143, 0.15796922147274017, 2.0512170791625977, 0.12920457124710083, 0.13791215419769287, -1.337552785873413, -0.6297226548194885, -0.23991955816745758, -0.3924299478530884, -1.2671843767166138, 0.5435492396354675, -0.24846015870571136, -0.7519857883453369, -1.388624668121338, 0.19263195991516113, -1.0983848571777344, -1.6922054290771484, 0.21607381105422974, 1.9953231811523438, 2.035289764404297, -0.7502357959747314, 1.6080981492996216, -0.3332273066043854, 0.25249940156936646, 1.2166225910186768, 1.2133643627166748, 3.102233409881592, 1.8994683027267456, -1.325911521911621, 0.6601201295852661, -0.06898218393325806, -0.4728401005268097, 1.1786071062088013, -1.182194709777832, 1.3199464082717896, -0.20288333296775818, -1.229721188545227, -1.3077713251113892, 0.9128544926643372, 0.548169732093811, 0.031017333269119263, -0.45758700370788574, 1.2967486381530762, -0.07133519649505615, 1.2878053188323975, 0.5417738556861877, -0.39772170782089233, 0.6302764415740967, -0.3976629972457886, -0.5364431738853455, 1.53810715675354, 0.2214975506067276, -1.3688459396362305, -2.26603627204895, -0.2168724685907364, -0.8589086532592773, 0.05973120033740997, -0.6643665432929993, -0.9603865742683411, 1.6353917121887207, 0.4035035967826843, -1.1664245128631592, -0.3326881229877472, -0.2861037850379944, -0.5475643873214722, 2.706387519836426, -1.3055602312088013, -0.2627871334552765, -0.9679247140884399, -0.586948037147522, 1.6653493642807007, -1.2513357400894165, -0.2670156955718994, -1.006700038909912, -0.569280207157135, -1.2712322473526, -0.4899728000164032, 0.041550129652023315, -0.9500653743743896, 0.9123316407203674, 0.18107421696186066, -1.2782654762268066, -0.272869348526001, -0.9490412473678589, 0.9683255553245544, -0.17894190549850464, 0.16894230246543884, 1.851568579673767, 0.3527669906616211, -0.3634721338748932, 0.7823901772499084, 1.2081722021102905, 0.6576998233795166, -0.657993495464325, 0.19579988718032837, -0.5938361287117004, 0.3368057608604431, -1.3384991884231567, 0.25096696615219116, -2.9666216373443604, 0.6267517805099487, -0.0067016687244176865, -0.06598662585020065, -0.013032307848334312, -1.3369892835617065, 1.0175668001174927, 2.57285737991333, -1.2634778022766113, 0.5203872919082642, 0.38119643926620483, 1.2604507207870483, -1.5367411375045776, 0.2587364614009857, -0.4706152379512787, 2.1162335872650146, 0.17622233927249908, 1.2052170038223267, -0.4148852527141571, -2.316891670227051, 0.6039806008338928, -1.269924521446228, -1.1078797578811646, 0.7421151399612427, -0.8589088320732117, 0.17489735782146454, -1.385689616203308, -0.2886309325695038, -0.8234148621559143, -1.2246209383010864, 0.6424543857574463, 0.16896776854991913, 0.39620447158813477, -0.6321527361869812, 0.32552003860473633, -2.160979986190796, -1.309181571006775, -0.17789079248905182, -0.9630640149116516, 0.44958484172821045, -0.3980068862438202, 0.721342146396637, -0.22137343883514404, 0.006190276704728603, 0.32309648394584656, 1.4026870727539062, 3.443082332611084, 0.22674758732318878, 0.24938145279884338, -0.219513937830925, -0.8947649598121643, 1.444483995437622, 0.9635651111602783, -0.20310622453689575, -0.5215344429016113, -1.082516074180603, 1.3259789943695068, 2.023179769515991, 0.9167998433113098, 0.001641097478568554, -0.7740287780761719, -0.7119645476341248, 0.0524107962846756, 0.15020890533924103, 0.5109749436378479, 0.7976409792900085, 0.19358345866203308, 0.04435587674379349, 1.4472901821136475, 1.0619685649871826, -0.3093951642513275, 0.4034440517425537, -0.864301323890686, -0.5266517996788025, 0.5720964074134827, 0.29764777421951294, -0.011774609796702862, 0.3022474944591522, -1.0261850357055664, -0.2176223248243332, -0.4309406578540802, -0.8644908666610718, -0.6429101228713989, -0.4054448902606964, -0.3609674274921417, 1.6090339422225952, 0.1312117576599121, -0.5314421653747559, -0.061757538467645645, -0.6788800358772278, -0.051000580191612244, -1.0327612161636353, 0.3509204387664795, -0.1529553383588791, -0.10825508832931519, -0.19051001965999603, 1.7249443531036377, -0.9053567051887512, -2.030355930328369, 0.1557154655456543, 0.2405044436454773, -0.2805818021297455, 0.14999987185001373, 1.7024503946304321, 0.4961020350456238, 1.465366005897522, 1.4089722633361816, 0.9706872701644897, -0.613793134689331, -1.3336950540542603, 0.6540265679359436, 0.9411358833312988, -1.3822323083877563, 0.7913838028907776, -0.020120393484830856, -0.6355100274085999, 0.7125705480575562, 1.3602290153503418, 0.45396989583969116, -2.0612783432006836, 0.8002629280090332, -0.9988695383071899, 0.8729670643806458, 0.8315662741661072, 0.7386034727096558, 0.1599264293909073, 0.8490737676620483, -1.239622950553894, -1.1792691946029663, -0.7283318042755127, -0.766796886920929, 1.9544262886047363, -0.38978415727615356, 0.5308621525764465, -0.16048842668533325, -1.3349751234054565, -0.12469983100891113, 0.6997056007385254, 0.3529827892780304, -0.5225051045417786, 0.8117069602012634, -0.6961624026298523, -1.0659059286117554, -1.3334622383117676, -0.4910837709903717, -1.1566725969314575, -0.9298362135887146, 1.0210843086242676, 0.8116609454154968, 0.42951735854148865, 1.8295477628707886, 0.6874409914016724, 0.2534361481666565, -2.5573995113372803, 0.8051443099975586, 0.3263236880302429, -0.10507159680128098, 0.8062426447868347, 0.3795361816883087, 1.0865401029586792, -0.006262253038585186, 0.5765525698661804, -2.3856868743896484, 2.2951388359069824, -0.23449748754501343, 0.6757636070251465, -0.06385403126478195, -0.11554281413555145, 1.0600816011428833, 0.47161221504211426, 0.563515305519104, -1.043926477432251, 0.6907840967178345, -0.5923644304275513, 1.192544937133789, 0.8065270781517029, -0.8485391139984131, -0.0810902863740921, 1.4055213928222656, 0.4382728636264801, -0.6508787274360657, -0.9179679751396179, -1.0744343996047974, 0.9688518047332764, 1.6721961498260498, -0.038743361830711365, -0.01961340568959713, 0.8505865931510925, 0.6732115745544434, -1.2742938995361328, 0.01879749447107315, -0.6971631050109863, -0.7208159565925598, 1.6365021467208862, 2.0488855838775635, -0.1937311887741089, -0.0859750434756279, -0.6633260846138, -1.2266513109207153, 0.711336076259613, -0.025170080363750458, -0.006901988759636879, 0.6227214932441711, -0.5660946369171143, 0.9686379432678223, 0.827288806438446, 0.8601539731025696, 0.14439862966537476, 0.270847886800766, 0.36779889464378357, -0.3389870822429657, -1.2075306177139282, -0.22856207191944122, -1.0093634128570557, -2.436408042907715, 0.3930666148662567, -0.18254365026950836, -1.4968880414962769, 0.10509246587753296, -0.9890381693840027, 0.9848136305809021, -0.5760881900787354, -1.0999692678451538, -1.466059923171997, 0.23989534378051758, -0.009849274531006813, 0.863743245601654, -1.5667451620101929, -0.09072025120258331, 1.1921709775924683, 0.9419752359390259, -0.7322453856468201, 1.0323988199234009, 0.2919345498085022, 1.026347279548645, 0.8466107845306396, -0.3781948983669281, 0.4871387481689453, 0.10495997965335846, -1.2968543767929077, 0.4910065531730652, 1.1888865232467651, 0.16973072290420532, 1.444283366203308, -0.5060986280441284, -0.072479747235775, 0.44410446286201477, -0.5135658383369446, -0.387103408575058, -0.5558897852897644, 0.6241341829299927, 0.03700292110443115, -0.8187041282653809, -0.04614535719156265, 0.01925935596227646, -0.3045808970928192, 0.2599441409111023, -1.5466716289520264, -0.19826090335845947, -0.3850701153278351, -0.6228349208831787, -1.2141889333724976, -0.0944109559059143, 1.425606369972229, -0.7140241861343384, -0.3041607737541199, 0.5438792705535889, 0.42565587162971497, 0.4720182418823242, 0.7294796705245972, -0.6311661601066589, -0.3016427159309387, -0.2599128782749176, -0.376826673746109, 0.3477209806442261, 1.4135262966156006, -0.08446870744228363, -0.9248047471046448, 0.7199841737747192, -0.3538031280040741, 0.08313990384340286, 1.823306679725647, 0.10610364377498627, -0.8564562797546387, 0.24147269129753113, -0.8234541416168213, 1.9905261993408203, 1.7990883588790894, 1.3274261951446533, -0.08681637793779373, -0.98953777551651, 0.5489010810852051, -0.3480895161628723, -0.3570076823234558, 0.9409639239311218, 0.42888447642326355, -0.24766184389591217, -1.3570592403411865, 0.7851043343544006, 1.1255810260772705, -0.835463285446167, -0.8947343230247498, 0.15688197314739227, -0.7589870691299438, 1.1705942153930664, 0.7011452317237854, 0.3850330710411072, 0.21357810497283936, 1.5941495895385742, 0.8037482500076294, -0.41551733016967773, 0.5663251280784607, 0.5834131836891174, -0.14838570356369019, -2.0577945709228516, -1.215986967086792, 0.2946350872516632, -0.48814308643341064, -1.65561842918396, 1.381425380706787, -1.1355133056640625, -1.022993803024292, 0.4950020909309387, 0.03267429396510124, 1.3281521797180176, 0.41025781631469727, 1.529412865638733, 2.1203463077545166, 0.8244942426681519, 0.4659906029701233, 1.3209266662597656, -0.19724927842617035, -0.44649752974510193, 1.781929612159729, -0.4541846215724945, 0.44861969351768494, 1.0874274969100952, -0.3974047899246216, -1.036119818687439, -0.7604209184646606, -1.2423789501190186, -0.7086184620857239, 0.9988535046577454, 0.058373406529426575, -1.1900904178619385, 0.2773716151714325, 1.5000414848327637, 0.09088990092277527, -0.28001540899276733, 0.7194958329200745, 0.3843804895877838, -0.7814484238624573, -0.041576582938432693, -0.8822992444038391, 0.5276427268981934, -0.29321253299713135, -0.36612555384635925, 0.4061700999736786, 0.3700547218322754, 1.3129842281341553, -0.024766409769654274, 0.11647430807352066, 1.1378878355026245, -1.4666653871536255, 1.379610300064087, -0.7302966117858887, 0.3235538601875305, -2.4129440784454346, 1.3490195274353027, -0.7002067565917969, 1.9655684232711792, -2.760983943939209, 0.47186365723609924, -0.5947845578193665, -0.5171354413032532, 0.3542080819606781, -0.2827197015285492, 0.10979926586151123, -0.12707822024822235, -1.20686936378479, -0.0437697134912014, -0.7017492651939392, 0.5648264288902283, 1.1459670066833496, 1.3366962671279907, -1.1347014904022217, -0.22675493359565735, -1.6273289918899536, -0.1285293996334076, -0.685279369354248, 0.329546719789505, -1.9180632829666138, -0.14822305738925934, -1.8846795558929443, -2.433030366897583, -1.2520313262939453, -0.740875780582428, 1.1472527980804443, 0.1571425050497055, -0.9489493370056152, 1.338769555091858, -0.3316202759742737, -1.8680216073989868, 1.1200217008590698, -2.160794258117676 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
doing `.add_column("x",x_data)` also removes the index. the new column might be irrelevant to the index so I don't think it should drop. Minimal example ```python from datasets import load_dataset import numpy as np data=load_dataset("ceyda/cats_vs_dogs_sample") #just a test dataset data=data["train"] embd_data=data.map(lambda x: {"emb":np.random.uniform(-1,0,50).astype(np.float32)}) embd_data.add_faiss_index(column="emb") print(embd_data.list_indexes()) embd_data=embd_data.add_column("x",[0]*data.num_rows) print(embd_data.list_indexes()) ```
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
936
47
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0 doing `.add_column("x",x_data)` also removes the index. the new column might be irrelevant to the index so I don't think it should drop. Minimal example ```python from datasets import load_dataset import numpy as np data=load_dataset("ceyda/cats_vs_dogs_sample") #just a test dataset data=data["train"] embd_data=data.map(lambda x: {"emb":np.random.uniform(-1,0,50).astype(np.float32)}) embd_data.add_faiss_index(column="emb") print(embd_data.list_indexes()) embd_data=embd_data.add_column("x",[0]*data.num_rows) print(embd_data.list_indexes()) ```
[ -1.246486783027649, -0.9715171456336975, -0.6837631464004517, 1.5094850063323975, -0.1310768574476242, -1.2785054445266724, 0.22291548550128937, -1.0621237754821777, 1.8043924570083618, -0.8411136865615845, 0.18834567070007324, -1.6094162464141846, -0.0036196522414684296, -0.6035403609275818, -0.720676600933075, -0.8302032947540283, -0.414380818605423, -0.7537521123886108, 1.062391996383667, 2.3934764862060547, 1.0852385759353638, -1.395865797996521, 2.789210796356201, 0.6395080089569092, -0.1120312288403511, -0.9929655194282532, 0.4495571255683899, -0.054246675223112106, -1.3366625308990479, -0.38368359208106995, -0.9502677917480469, -0.04430941119790077, -0.6071574091911316, -0.5348498225212097, 0.05969656631350517, 0.4597843885421753, -0.3042488694190979, -0.5699115991592407, -0.5271210670471191, -0.8249759674072266, 0.41020113229751587, -0.27917200326919556, 0.9297102689743042, -0.3455131947994232, 1.794495940208435, -0.5116246342658997, 0.4501146078109741, 0.7369575500488281, 1.3979012966156006, 0.18098221719264984, 0.034198008477687836, 0.39286285638809204, 0.40351513028144836, 0.035538628697395325, 0.5396034121513367, 1.1620590686798096, 0.5903515815734863, 0.49306780099868774, 0.7591420412063599, -2.3462934494018555, 1.3647284507751465, -1.0175615549087524, 0.36719104647636414, 1.3008333444595337, -0.9430235028266907, 0.31343817710876465, -1.7373300790786743, 0.014293999411165714, 0.6385678052902222, -2.1841912269592285, 0.33822035789489746, -1.3292152881622314, -0.4757028818130493, 1.0627418756484985, 0.46004942059516907, -1.140668272972107, 0.13094796240329742, -0.3679562509059906, 1.0991967916488647, 0.4161456525325775, 1.0585081577301025, -1.7894948720932007, 0.014810663647949696, -0.23810982704162598, 0.09989841282367706, -1.2341935634613037, -1.607603907585144, 0.5093879103660583, 0.719666063785553, 0.647269070148468, -0.18563449382781982, 1.012270450592041, -1.024892807006836, 0.731275200843811, -1.0674339532852173, -1.7609286308288574, -1.3528468608856201, -2.2965292930603027, -2.320469379425049, 0.6736539602279663, -0.43285268545150757, -0.4585134983062744, 2.1279637813568115, -0.9532699584960938, -1.7696000337600708, 1.140506625175476, 0.22853870689868927, 0.05258651450276375, 2.2750096321105957, 0.22219300270080566, -0.6967477202415466, 0.5037956237792969, -0.7882943749427795, 0.7469277381896973, -0.3177299499511719, 1.256666898727417, 0.37640008330345154, -0.9837013483047485, 1.5395066738128662, -0.3633306920528412, 0.5773158669471741, -0.6821994781494141, -0.4767113924026489, -0.750973641872406, 0.3005385398864746, 1.8973596096038818, -0.22091221809387207, 1.5137536525726318, -0.3936590254306793, -1.5877403020858765, -1.5976569652557373, 0.9080555438995361, 0.43228232860565186, -0.7673818469047546, 0.12261972576379776, -0.4093000590801239, 0.16644521057605743, -0.12768661975860596, 1.2934774160385132, 1.291677713394165, 0.7506134510040283, -0.40009796619415283, -0.868482768535614, 0.15800105035305023, -0.03408791869878769, -0.758571982383728, -1.7719088792800903, -0.30265459418296814, 0.15031415224075317, 0.6331485509872437, -1.130294680595398, 1.6937578916549683, 0.8264060616493225, 1.943937063217163, 1.0182055234909058, -0.32708296179771423, 1.4814260005950928, 0.15976272523403168, 1.9208022356033325, -0.4704080820083618, 0.6312137842178345, -0.3683338463306427, -1.1692006587982178, 0.8131568431854248, -0.3824068009853363, -2.041990280151367, -0.6947925090789795, -0.8253892660140991, -0.2149374783039093, -0.7589747309684753, 0.9121001362800598, -0.3426942229270935, -1.5375231504440308, 0.22219030559062958, -0.7295928001403809, 0.22270232439041138, -1.1250412464141846, 0.276141494512558, 0.7582347989082336, -0.6798073649406433, 0.14578869938850403, -0.3141406774520874, -1.3762483596801758, -0.4734354615211487, 0.4424023926258087, 1.862810730934143, -0.7132523655891418, 0.9293403029441833, 1.0664050579071045, -0.6852248907089233, -0.04506310075521469, 0.22981174290180206, -0.2934647500514984, 0.836130678653717, -1.126185417175293, -0.4680766463279724, 1.2360645532608032, -0.2247672826051712, -0.6168757677078247, 1.5085644721984863, 0.6491334438323975, -1.050521731376648, -0.21937516331672668, -0.12175200134515762, -0.8499776124954224, 0.040223125368356705, -1.633408546447754, -0.13072887063026428, 0.5015881657600403, -1.5722883939743042, -0.5364646315574646, -0.16046905517578125, 1.3013488054275513, -0.08033809810876846, 1.355370283126831, -0.32233938574790955, -0.10430339723825455, -0.385395348072052, -0.3922204077243805, 0.17089924216270447, -0.23916596174240112, -0.5948298573493958, 0.12988029420375824, -0.7518556714057922, 0.33379217982292175, 1.463853120803833, 0.2785091996192932, 0.05760857090353966, 0.49716639518737793, 1.1121102571487427, 0.3827415406703949, -0.021698366850614548, -0.8096916675567627, -1.6078894138336182, 1.952602505683899, -1.4106245040893555, 1.9582277536392212, 0.6190967559814453, -0.044309236109256744, -1.8525161743164062, -1.9188679456710815, 1.375381588935852, 1.0320332050323486, 2.316575765609741, 0.5048664808273315, 0.4568811357021332, -0.8724947571754456, -0.6086155772209167, 0.30322739481925964, -0.888019323348999, -0.6954842209815979, 0.1595056653022766, 2.418487071990967, 1.7338913679122925, -0.4036101698875427, -0.1785680502653122, -0.9754302501678467, 1.3613157272338867, -0.26634320616722107, 0.2836514413356781, 1.9487049579620361, -0.2603933811187744, -1.0237443447113037, 1.3155064582824707, -2.341538190841675, 0.17775335907936096, 2.060727119445801, 0.1490854024887085, 0.1269742101430893, -1.3521957397460938, -0.6249625086784363, -0.26284027099609375, -0.3743080198764801, -1.2685604095458984, 0.5406734943389893, -0.22965742647647858, -0.7712777256965637, -1.3767207860946655, 0.20279854536056519, -1.0703481435775757, -1.688454031944275, 0.20004110038280487, 1.9842685461044312, 2.0422232151031494, -0.7656168937683105, 1.5827546119689941, -0.33112961053848267, 0.234368234872818, 1.2346278429031372, 1.2109297513961792, 3.0974693298339844, 1.8902508020401, -1.3225878477096558, 0.6851435303688049, -0.08118419349193573, -0.4656795859336853, 1.2014938592910767, -1.1923332214355469, 1.3226361274719238, -0.19407783448696136, -1.218322515487671, -1.3029497861862183, 0.9476359486579895, 0.5576207637786865, 0.01655270904302597, -0.44929859042167664, 1.29079008102417, -0.07175785303115845, 1.310217022895813, 0.5382614135742188, -0.4180956184864044, 0.6434621214866638, -0.41640564799308777, -0.543569803237915, 1.5365750789642334, 0.2224908322095871, -1.3916683197021484, -2.2140884399414062, -0.21818864345550537, -0.8948460221290588, 0.048177894204854965, -0.6483865976333618, -0.96332186460495, 1.6271470785140991, 0.3819924592971802, -1.161703109741211, -0.30984431505203247, -0.28056439757347107, -0.5430246591567993, 2.7227537631988525, -1.2722023725509644, -0.2558813691139221, -0.9861998558044434, -0.5727943778038025, 1.6669015884399414, -1.2312419414520264, -0.26295873522758484, -1.017063856124878, -0.5697523951530457, -1.2773994207382202, -0.4930134117603302, 0.05856334790587425, -0.9504052400588989, 0.9150016903877258, 0.14592884480953217, -1.277276873588562, -0.2535097599029541, -0.9272204637527466, 1.008320927619934, -0.1768798828125, 0.1556575894355774, 1.8333724737167358, 0.3363374173641205, -0.3784693777561188, 0.7975022792816162, 1.1972169876098633, 0.6544564962387085, -0.6569405198097229, 0.2081405073404312, -0.588115394115448, 0.32127711176872253, -1.3454813957214355, 0.23092058300971985, -2.9627184867858887, 0.6255431771278381, -0.026972714811563492, -0.08854122459888458, -0.024435877799987793, -1.3367611169815063, 1.0235631465911865, 2.5861215591430664, -1.2702547311782837, 0.4941138029098511, 0.40510353446006775, 1.2498712539672852, -1.5333954095840454, 0.2633408010005951, -0.47614383697509766, 2.095745086669922, 0.16604915261268616, 1.189786434173584, -0.42340588569641113, -2.305128574371338, 0.625531017780304, -1.2975945472717285, -1.096019983291626, 0.7512170672416687, -0.8919604420661926, 0.1907440721988678, -1.3697199821472168, -0.3086053729057312, -0.8250473737716675, -1.232967734336853, 0.6404055953025818, 0.1626683622598648, 0.39908549189567566, -0.6005727052688599, 0.3580281734466553, -2.1744818687438965, -1.3047833442687988, -0.1903354972600937, -0.9881162643432617, 0.47240301966667175, -0.372650146484375, 0.7148332595825195, -0.2333974987268448, 0.023635443300008774, 0.3455393612384796, 1.4225157499313354, 3.439333915710449, 0.21835240721702576, 0.24019093811511993, -0.22425322234630585, -0.905680775642395, 1.4433627128601074, 0.9669808149337769, -0.18936662375926971, -0.5023366212844849, -1.0849484205245972, 1.296338677406311, 2.0365538597106934, 0.9355441331863403, -0.007079877890646458, -0.7966797947883606, -0.7328506112098694, 0.04720553010702133, 0.12604674696922302, 0.5179071426391602, 0.8124935030937195, 0.17070892453193665, 0.050366710871458054, 1.4337210655212402, 1.0652117729187012, -0.2887842357158661, 0.38857635855674744, -0.8612102270126343, -0.5076308250427246, 0.5862228274345398, 0.28726261854171753, -0.006183120422065258, 0.2955476641654968, -1.0482401847839355, -0.20942462980747223, -0.44344475865364075, -0.846942663192749, -0.6722171902656555, -0.3866136968135834, -0.3698071837425232, 1.6050753593444824, 0.13325092196464539, -0.5442274212837219, -0.04372270032763481, -0.6790868043899536, -0.07269813865423203, -1.0398989915847778, 0.35902324318885803, -0.13471633195877075, -0.10609762370586395, -0.1983971893787384, 1.7100646495819092, -0.9382311701774597, -2.039719820022583, 0.14610010385513306, 0.2411677986383438, -0.26710250973701477, 0.15373940765857697, 1.6876972913742065, 0.511074960231781, 1.4512712955474854, 1.3902572393417358, 0.989970862865448, -0.6124925017356873, -1.3219811916351318, 0.6535708904266357, 0.9071029424667358, -1.3862146139144897, 0.785193145275116, -0.041726112365722656, -0.6038834452629089, 0.7015106081962585, 1.3665273189544678, 0.46357783675193787, -2.036365270614624, 0.7825494408607483, -1.0149482488632202, 0.8557125329971313, 0.797451376914978, 0.7439752221107483, 0.14624856412410736, 0.8488138318061829, -1.2254711389541626, -1.1728553771972656, -0.7217137217521667, -0.776857852935791, 1.9463224411010742, -0.39431440830230713, 0.5223058462142944, -0.17753998935222626, -1.3358279466629028, -0.11287634074687958, 0.7100806832313538, 0.3670257031917572, -0.5106700658798218, 0.8059899806976318, -0.7066617012023926, -1.0346200466156006, -1.3015730381011963, -0.48225852847099304, -1.1714513301849365, -0.9297453165054321, 1.0078825950622559, 0.8055061101913452, 0.4501601457595825, 1.8274834156036377, 0.6714262366294861, 0.2923148274421692, -2.5697436332702637, 0.8187644481658936, 0.28928902745246887, -0.10007176548242569, 0.8017609715461731, 0.3893594443798065, 1.0929614305496216, -0.01982990652322769, 0.5707568526268005, -2.385237693786621, 2.3012800216674805, -0.23368610441684723, 0.6634376645088196, -0.06372881680727005, -0.12908054888248444, 1.0560858249664307, 0.4678792357444763, 0.5679656863212585, -1.0505810976028442, 0.6685494184494019, -0.5709237456321716, 1.190711259841919, 0.8143184781074524, -0.8342652916908264, -0.08227403461933136, 1.4034976959228516, 0.4275178015232086, -0.6151699423789978, -0.9347819089889526, -1.0715649127960205, 0.986958920955658, 1.6316754817962646, -0.052114736288785934, -0.04421459138393402, 0.8600811958312988, 0.6458125710487366, -1.2779210805892944, 0.02321699634194374, -0.7048782706260681, -0.7061404585838318, 1.6465739011764526, 2.0548646450042725, -0.19556108117103577, -0.10402482748031616, -0.6756270527839661, -1.2208000421524048, 0.7122423648834229, -0.00035751890391111374, -0.014056663028895855, 0.6186167597770691, -0.5428838133811951, 0.9724881052970886, 0.7686883807182312, 0.8821619153022766, 0.11252116411924362, 0.2917913496494293, 0.3692149817943573, -0.35643985867500305, -1.2340565919876099, -0.2721491754055023, -0.9957688450813293, -2.450899839401245, 0.3768039643764496, -0.19853875041007996, -1.4982547760009766, 0.10932303965091705, -1.0048316717147827, 0.981483519077301, -0.5833183526992798, -1.1186808347702026, -1.455645203590393, 0.23219256103038788, -0.014249144122004509, 0.9006175994873047, -1.5858765840530396, -0.11594473570585251, 1.1921097040176392, 0.9470466375350952, -0.7450116872787476, 1.0218346118927002, 0.2881139814853668, 1.028334140777588, 0.8187745213508606, -0.37458664178848267, 0.4847571551799774, 0.10609927773475647, -1.303186058998108, 0.49302899837493896, 1.1838953495025635, 0.169728621840477, 1.4368470907211304, -0.49485015869140625, -0.0649636834859848, 0.45421352982521057, -0.5578908324241638, -0.38163429498672485, -0.5507915616035461, 0.6623547077178955, -0.0027700942009687424, -0.8424571752548218, -0.0563049279153347, 0.02599228173494339, -0.3032061457633972, 0.26112818717956543, -1.5530802011489868, -0.21433377265930176, -0.36919158697128296, -0.6301627159118652, -1.210273265838623, -0.08710690587759018, 1.395530104637146, -0.739708662033081, -0.2938770651817322, 0.5234905481338501, 0.39881056547164917, 0.4901347756385803, 0.6956908106803894, -0.6309602856636047, -0.2826213538646698, -0.289094477891922, -0.356945276260376, 0.357685923576355, 1.4257657527923584, -0.07768481969833374, -0.9611555337905884, 0.7238988876342773, -0.3615523874759674, 0.09971097111701965, 1.836483120918274, 0.10160837322473526, -0.834943950176239, 0.2483978420495987, -0.8317010998725891, 1.9748003482818604, 1.8034154176712036, 1.325411319732666, -0.08685243129730225, -0.9866241216659546, 0.539505124092102, -0.3566319942474365, -0.3534582257270813, 0.9315932989120483, 0.4262138307094574, -0.2491876780986786, -1.3572869300842285, 0.8113574981689453, 1.1381572484970093, -0.8484249114990234, -0.8916151523590088, 0.1849588304758072, -0.7756240367889404, 1.161523699760437, 0.6962534785270691, 0.3888770341873169, 0.21492056548595428, 1.5783575773239136, 0.7953852415084839, -0.41229644417762756, 0.5697653889656067, 0.5884724855422974, -0.14781856536865234, -2.0697054862976074, -1.1974060535430908, 0.29700860381126404, -0.4954865276813507, -1.664750099182129, 1.3863424062728882, -1.1337573528289795, -1.028778076171875, 0.5120505094528198, 0.06752772629261017, 1.3313531875610352, 0.4050094187259674, 1.5392656326293945, 2.117520809173584, 0.823392391204834, 0.4737266004085541, 1.3028476238250732, -0.1754932552576065, -0.45059895515441895, 1.7772527933120728, -0.4574342668056488, 0.44761303067207336, 1.0862085819244385, -0.39869701862335205, -1.0522117614746094, -0.7644273638725281, -1.2355694770812988, -0.7259842753410339, 0.9902930855751038, 0.08564355224370956, -1.1895301342010498, 0.25663506984710693, 1.5070888996124268, 0.09709978848695755, -0.2605384588241577, 0.7330302596092224, 0.36768847703933716, -0.7822909355163574, -0.04529775679111481, -0.8772714138031006, 0.5129191279411316, -0.29812338948249817, -0.3378996253013611, 0.39875832200050354, 0.39303621649742126, 1.3079692125320435, -0.03474615141749382, 0.12609733641147614, 1.1400433778762817, -1.4380189180374146, 1.4002437591552734, -0.7036880254745483, 0.318511039018631, -2.4059970378875732, 1.3234014511108398, -0.7108848690986633, 1.9275459051132202, -2.752797842025757, 0.4923850893974304, -0.584408700466156, -0.5158083438873291, 0.33087873458862305, -0.2794991433620453, 0.09628964215517044, -0.12945456802845, -1.2106006145477295, -0.03816965967416763, -0.6905549764633179, 0.5828548669815063, 1.138692855834961, 1.3731698989868164, -1.1358742713928223, -0.22540760040283203, -1.6403175592422485, -0.1216864138841629, -0.7365884184837341, 0.3345262408256531, -1.9253106117248535, -0.15997573733329773, -1.8812767267227173, -2.413430690765381, -1.2334222793579102, -0.7293577194213867, 1.1465120315551758, 0.1535564661026001, -0.9295461177825928, 1.3477100133895874, -0.31300532817840576, -1.8768075704574585, 1.127269983291626, -2.1688411235809326 ]
https://github.com/huggingface/datasets/issues/3769
`dataset = dataset.map()` causes faiss index lost
I agree `add_column` shouldn't drop the index indeed ! Is it something you'd like to contribute ? I think it's just a matter of copying the `self._indexes` dictionary to the output dataset
## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0
936
32
`dataset = dataset.map()` causes faiss index lost ## Describe the bug assigning the resulted dataset to original dataset causes lost of the faiss index ## Steps to reproduce the bug `my_dataset` is a regular loaded dataset. It's a part of a customed dataset structure ```python self.dataset.add_faiss_index('embeddings') self.dataset.list_indexes() # ['embeddings'] dataset2 = my_dataset.map( lambda x: self._get_nearest_examples_batch(x['text']), batch=True ) # the unexpected result: dataset2.list_indexes() # [] self.dataset.list_indexes() # ['embeddings'] ``` in case something wrong with my `_get_nearest_examples_batch()`, it's like this ```python def _get_nearest_examples_batch(self, examples, k=5): queries = embed(examples) scores_batch, retrievals_batch = self.dataset.get_nearest_examples_batch(self.faiss_column, queries, k) return { 'neighbors': [batch['text'] for batch in retrievals_batch], 'scores': scores_batch } ``` ## Expected results `map` shouldn't drop the indexes, in another word, indexes should be carried to the generated dataset ## Actual results map drops the indexes ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Ubuntu 20.04.3 LTS - Python version: 3.8.12 - PyArrow version: 7.0.0 I agree `add_column` shouldn't drop the index indeed ! Is it something you'd like to contribute ? I think it's just a matter of copying the `self._indexes` dictionary to the output dataset
[ -1.2211066484451294, -0.9822641611099243, -0.6927419900894165, 1.550230860710144, -0.11241469532251358, -1.2939682006835938, 0.20156030356884003, -1.0449405908584595, 1.817137598991394, -0.8354206085205078, 0.2010861188173294, -1.5917195081710815, 0.009474175050854683, -0.6263449192047119, -0.717670202255249, -0.8266918659210205, -0.41697555780410767, -0.7468011379241943, 1.063324213027954, 2.395080804824829, 1.08355712890625, -1.4284826517105103, 2.7832913398742676, 0.6367391347885132, -0.10214929282665253, -1.0193121433258057, 0.44572868943214417, -0.05652962625026703, -1.339905023574829, -0.39726677536964417, -0.9272466897964478, -0.05618513375520706, -0.6630580425262451, -0.5291167497634888, 0.04599691927433014, 0.46177127957344055, -0.2926376461982727, -0.5866203308105469, -0.5206068754196167, -0.8440326452255249, 0.41368329524993896, -0.2885393500328064, 0.9334641695022583, -0.3176662027835846, 1.7931458950042725, -0.5064312219619751, 0.43561193346977234, 0.7132787704467773, 1.4125080108642578, 0.17200510203838348, 0.015372265130281448, 0.37910839915275574, 0.4127102792263031, 0.028465833514928818, 0.521975040435791, 1.1540476083755493, 0.5957688093185425, 0.48964741826057434, 0.7573411464691162, -2.364403247833252, 1.3581069707870483, -1.0098271369934082, 0.373095840215683, 1.300180196762085, -0.9394521713256836, 0.2999153435230255, -1.7593744993209839, -0.004163781180977821, 0.6316789388656616, -2.164579391479492, 0.3226398825645447, -1.324592113494873, -0.4442474842071533, 1.0454009771347046, 0.44452929496765137, -1.176957607269287, 0.12883074581623077, -0.37502557039260864, 1.0995714664459229, 0.4255896210670471, 1.0405032634735107, -1.8128023147583008, 0.01197061873972416, -0.25554996728897095, 0.10656056553125381, -1.2230018377304077, -1.5878485441207886, 0.48657238483428955, 0.7074013948440552, 0.6408978700637817, -0.16920335590839386, 1.0017091035842896, -1.0001620054244995, 0.7251468896865845, -1.0635855197906494, -1.7982515096664429, -1.3515496253967285, -2.291975259780884, -2.3286168575286865, 0.6588959693908691, -0.4214741885662079, -0.45334070920944214, 2.127699375152588, -0.9427276849746704, -1.7549983263015747, 1.1411336660385132, 0.2120635062456131, 0.05565134435892105, 2.2746634483337402, 0.20715725421905518, -0.7210296392440796, 0.5028655529022217, -0.7699509859085083, 0.7467739582061768, -0.33970990777015686, 1.2716389894485474, 0.3636477291584015, -0.9962329864501953, 1.5574257373809814, -0.3573971688747406, 0.5742684602737427, -0.7087407112121582, -0.47149544954299927, -0.7449185848236084, 0.28838443756103516, 1.8864022493362427, -0.2119935005903244, 1.5152418613433838, -0.39956310391426086, -1.5753744840621948, -1.5810943841934204, 0.9100652933120728, 0.423662930727005, -0.7722781896591187, 0.12159940600395203, -0.3972417414188385, 0.16809667646884918, -0.11135455220937729, 1.286472201347351, 1.2759809494018555, 0.7342610359191895, -0.402150958776474, -0.8935203552246094, 0.1545400768518448, -0.03452330827713013, -0.7623404264450073, -1.7740466594696045, -0.30023762583732605, 0.1442001760005951, 0.6628443002700806, -1.1498502492904663, 1.6991889476776123, 0.8094072341918945, 1.9624841213226318, 1.0340150594711304, -0.33144912123680115, 1.487143635749817, 0.13360020518302917, 1.9088598489761353, -0.44787460565567017, 0.6452748775482178, -0.35986292362213135, -1.1611214876174927, 0.7970325946807861, -0.36285749077796936, -2.0444159507751465, -0.7037551403045654, -0.8196407556533813, -0.2011672854423523, -0.7410895824432373, 0.8974822759628296, -0.37067437171936035, -1.5162353515625, 0.24145296216011047, -0.7449173927307129, 0.22824977338314056, -1.1192901134490967, 0.2862948477268219, 0.7420079708099365, -0.6636385917663574, 0.17638415098190308, -0.33071285486221313, -1.3731399774551392, -0.4985974431037903, 0.4395890235900879, 1.8485032320022583, -0.7151703834533691, 0.91704261302948, 1.0709795951843262, -0.6562882661819458, -0.06115737929940224, 0.2440430223941803, -0.2961052656173706, 0.8812390565872192, -1.128928780555725, -0.4926353693008423, 1.237964153289795, -0.23105411231517792, -0.6355952024459839, 1.5019841194152832, 0.6530574560165405, -1.0413944721221924, -0.21709714829921722, -0.12506017088890076, -0.871614933013916, 0.054798394441604614, -1.6503299474716187, -0.13418886065483093, 0.5099468231201172, -1.5922574996948242, -0.503894031047821, -0.15169087052345276, 1.2939151525497437, -0.05129517242312431, 1.3446362018585205, -0.3422165513038635, -0.09050814062356949, -0.3983966112136841, -0.39156627655029297, 0.16531018912792206, -0.24132917821407318, -0.6165077686309814, 0.1411961019039154, -0.747099757194519, 0.34348493814468384, 1.4495110511779785, 0.276757150888443, 0.06512250006198883, 0.49546876549720764, 1.1127922534942627, 0.37623095512390137, 0.005114056169986725, -0.793822169303894, -1.5959678888320923, 1.9756619930267334, -1.410143256187439, 1.9582293033599854, 0.6400302648544312, -0.02992117777466774, -1.8481155633926392, -1.916477084159851, 1.3852630853652954, 1.0339219570159912, 2.2943546772003174, 0.5179504156112671, 0.47349774837493896, -0.8701802492141724, -0.5861504077911377, 0.2873278260231018, -0.8882898092269897, -0.729182243347168, 0.15578870475292206, 2.4353747367858887, 1.7233140468597412, -0.36804598569869995, -0.1634088158607483, -0.9742361307144165, 1.3868247270584106, -0.259948194026947, 0.28124770522117615, 1.933381199836731, -0.24547885358333588, -1.0444704294204712, 1.2994188070297241, -2.3287105560302734, 0.18069107830524445, 2.060602903366089, 0.15402504801750183, 0.1507190316915512, -1.3774985074996948, -0.650689959526062, -0.25982150435447693, -0.35885900259017944, -1.2695492506027222, 0.5478861331939697, -0.26044172048568726, -0.7682323455810547, -1.388850450515747, 0.2211270034313202, -1.0973963737487793, -1.707784652709961, 0.2092340886592865, 2.013148069381714, 2.0413355827331543, -0.736040472984314, 1.5978552103042603, -0.3195234537124634, 0.2439284324645996, 1.2262345552444458, 1.2130616903305054, 3.1059927940368652, 1.9019787311553955, -1.3261663913726807, 0.6718837022781372, -0.06673192232847214, -0.4776546359062195, 1.1765687465667725, -1.1986998319625854, 1.31732976436615, -0.22425474226474762, -1.209900975227356, -1.3022756576538086, 0.9217535257339478, 0.5818873643875122, 0.006631679832935333, -0.45635634660720825, 1.2808274030685425, -0.0862140953540802, 1.2910480499267578, 0.5324714183807373, -0.4087368845939636, 0.6284780502319336, -0.42267173528671265, -0.539781928062439, 1.5238665342330933, 0.21476900577545166, -1.3876655101776123, -2.2295522689819336, -0.20519991219043732, -0.8721179962158203, 0.029483236372470856, -0.6596201658248901, -0.9661076068878174, 1.6373481750488281, 0.39332595467567444, -1.1773120164871216, -0.3370812237262726, -0.2861271798610687, -0.5595422983169556, 2.726209878921509, -1.27206289768219, -0.2641174793243408, -0.9876891374588013, -0.5695540904998779, 1.6616460084915161, -1.2321381568908691, -0.26832646131515503, -0.9913631677627563, -0.561265230178833, -1.2706007957458496, -0.4843567907810211, 0.0354921780526638, -0.9377543926239014, 0.9159611463546753, 0.16958022117614746, -1.2739194631576538, -0.2688171863555908, -0.9271447658538818, 0.9928263425827026, -0.16852958500385284, 0.1556566208600998, 1.8424084186553955, 0.35575950145721436, -0.36555951833724976, 0.7882604598999023, 1.1962521076202393, 0.6652892827987671, -0.663310170173645, 0.2082253247499466, -0.5637549161911011, 0.3209522068500519, -1.3324902057647705, 0.2633422911167145, -2.9716014862060547, 0.6236380338668823, -0.009247184731066227, -0.09168285131454468, -0.007555460557341576, -1.3234431743621826, 1.0345227718353271, 2.561654567718506, -1.2778034210205078, 0.4986926019191742, 0.36567941308021545, 1.2348664999008179, -1.5573683977127075, 0.2733847200870514, -0.4763961732387543, 2.1203949451446533, 0.17039090394973755, 1.2118043899536133, -0.416371613740921, -2.3322367668151855, 0.6084873676300049, -1.3047293424606323, -1.1040080785751343, 0.7236878871917725, -0.8668212890625, 0.1690288931131363, -1.3594714403152466, -0.30146723985671997, -0.8238201141357422, -1.2361383438110352, 0.6539443731307983, 0.1867363452911377, 0.3826768696308136, -0.6007885932922363, 0.3432196080684662, -2.1614603996276855, -1.3234184980392456, -0.194927379488945, -0.9973164796829224, 0.45671766996383667, -0.3895982801914215, 0.7282264232635498, -0.22886410355567932, 0.03243660926818848, 0.32605162262916565, 1.420603632926941, 3.451223850250244, 0.2184804528951645, 0.25472894310951233, -0.23379838466644287, -0.8814957141876221, 1.4442569017410278, 0.974711537361145, -0.1918204426765442, -0.5112799406051636, -1.089166283607483, 1.3101270198822021, 2.034418821334839, 0.9107624292373657, 0.010535258799791336, -0.7600283622741699, -0.7256953716278076, 0.02133117988705635, 0.15711359679698944, 0.527767539024353, 0.7995288372039795, 0.1974124014377594, 0.036556974053382874, 1.4339399337768555, 1.0588890314102173, -0.305680513381958, 0.35958626866340637, -0.8582921028137207, -0.4948614835739136, 0.5986590385437012, 0.26821789145469666, -0.03392776846885681, 0.2943209409713745, -1.0484890937805176, -0.19656561315059662, -0.44853049516677856, -0.8662561178207397, -0.6625316143035889, -0.37711504101753235, -0.3659803867340088, 1.6152615547180176, 0.13882063329219818, -0.5510036945343018, -0.06116022542119026, -0.6838092803955078, -0.05630558729171753, -1.0456428527832031, 0.3515550196170807, -0.15490393340587616, -0.10941334813833237, -0.1845296174287796, 1.7398574352264404, -0.9264208078384399, -2.0399060249328613, 0.1427040547132492, 0.24375972151756287, -0.2681226134300232, 0.15385493636131287, 1.695591688156128, 0.488529235124588, 1.4326488971710205, 1.3990345001220703, 0.9825087785720825, -0.6187044382095337, -1.3298323154449463, 0.6191921234130859, 0.933842658996582, -1.384812355041504, 0.7940845489501953, -0.04201182723045349, -0.5999898910522461, 0.7176730632781982, 1.376439094543457, 0.46701759099960327, -2.0514988899230957, 0.7976726293563843, -0.980729341506958, 0.8912997245788574, 0.8190350532531738, 0.7432830333709717, 0.14983634650707245, 0.8197115659713745, -1.2517858743667603, -1.159339427947998, -0.709166407585144, -0.7894182205200195, 1.9395473003387451, -0.3950323462486267, 0.5269975662231445, -0.13933156430721283, -1.3366097211837769, -0.12475132942199707, 0.7239147424697876, 0.37473055720329285, -0.5159933567047119, 0.8156871795654297, -0.7008556127548218, -1.0452889204025269, -1.3309777975082397, -0.5025460720062256, -1.1479129791259766, -0.930079460144043, 1.021533489227295, 0.812767505645752, 0.4507144093513489, 1.817452311515808, 0.6883411407470703, 0.2585083246231079, -2.563235282897949, 0.8115335702896118, 0.32447922229766846, -0.08415298163890839, 0.8072563409805298, 0.37779858708381653, 1.068713903427124, -0.018361330032348633, 0.5703439712524414, -2.3662798404693604, 2.2932045459747314, -0.22304975986480713, 0.6637303829193115, -0.08107218891382217, -0.11120720207691193, 1.0538586378097534, 0.47591128945350647, 0.5839611291885376, -1.052525520324707, 0.6972700357437134, -0.5707193613052368, 1.1970912218093872, 0.780242919921875, -0.8302226066589355, -0.08917220681905746, 1.4073898792266846, 0.4405529201030731, -0.660406231880188, -0.9371787309646606, -1.0663862228393555, 0.9749780893325806, 1.659022569656372, -0.04441648721694946, -0.03921835124492645, 0.8734556436538696, 0.6325602531433105, -1.2747999429702759, 0.0009528035297989845, -0.6914386749267578, -0.7045696973800659, 1.6430652141571045, 2.0486509799957275, -0.21901747584342957, -0.11734210699796677, -0.6819151639938354, -1.2203729152679443, 0.7126880884170532, -0.0109919598326087, -0.03304611146450043, 0.5867173671722412, -0.5565294027328491, 0.9711215496063232, 0.7970521450042725, 0.874525785446167, 0.10664596408605576, 0.2963626980781555, 0.38036400079727173, -0.3503260314464569, -1.250059723854065, -0.2609047591686249, -1.0226532220840454, -2.4233217239379883, 0.37760743498802185, -0.1915154606103897, -1.4958562850952148, 0.11772818863391876, -0.9978930950164795, 0.9725279808044434, -0.5741943120956421, -1.10452139377594, -1.4358692169189453, 0.2305823266506195, -0.007914653979241848, 0.8594518899917603, -1.585594654083252, -0.08620839565992355, 1.2071160078048706, 0.9740830659866333, -0.7681337594985962, 1.0358036756515503, 0.27821147441864014, 1.0219241380691528, 0.8339054584503174, -0.3638055920600891, 0.46417751908302307, 0.11448486149311066, -1.2689900398254395, 0.4991559088230133, 1.162224292755127, 0.17124247550964355, 1.4340938329696655, -0.5085196495056152, -0.07571529597043991, 0.42453402280807495, -0.5213161706924438, -0.3578287363052368, -0.5752764940261841, 0.6404151916503906, 0.008169226348400116, -0.8173925876617432, -0.025099806487560272, 0.01989663764834404, -0.2908892333507538, 0.25851303339004517, -1.557021141052246, -0.2127934992313385, -0.3629295825958252, -0.6146914958953857, -1.2163496017456055, -0.08453546464443207, 1.3978197574615479, -0.7073724269866943, -0.3057204782962799, 0.5458873510360718, 0.433688223361969, 0.48707151412963867, 0.7224757671356201, -0.6185017824172974, -0.31171050667762756, -0.2794039845466614, -0.34882915019989014, 0.35118231177330017, 1.4097261428833008, -0.09291470795869827, -0.9528692960739136, 0.7359731197357178, -0.37690484523773193, 0.08642716705799103, 1.8258483409881592, 0.1035175770521164, -0.8504104614257812, 0.23783251643180847, -0.8378452062606812, 1.9995920658111572, 1.7964130640029907, 1.3123093843460083, -0.08306469768285751, -1.000522494316101, 0.5696545839309692, -0.34690144658088684, -0.37157711386680603, 0.9430636167526245, 0.4414304494857788, -0.23651540279388428, -1.348982810974121, 0.787596583366394, 1.1209741830825806, -0.8263461589813232, -0.898982048034668, 0.17069010436534882, -0.7560304403305054, 1.1604316234588623, 0.6969902515411377, 0.40082430839538574, 0.20719727873802185, 1.5948504209518433, 0.7903656959533691, -0.40858277678489685, 0.5787184238433838, 0.5730133056640625, -0.15376846492290497, -2.0595834255218506, -1.2172874212265015, 0.2903023362159729, -0.49775180220603943, -1.6807818412780762, 1.3758846521377563, -1.1374590396881104, -1.0274643898010254, 0.522330641746521, 0.05147324874997139, 1.3406972885131836, 0.40089303255081177, 1.5346840620040894, 2.1097872257232666, 0.8139394521713257, 0.4907521903514862, 1.3036071062088013, -0.1927350014448166, -0.4527013897895813, 1.7822149991989136, -0.48490896821022034, 0.4530591368675232, 1.0954666137695312, -0.38799580931663513, -1.052738904953003, -0.7457780838012695, -1.2206488847732544, -0.712590217590332, 0.9750878810882568, 0.09632610529661179, -1.2011338472366333, 0.2664424180984497, 1.5356451272964478, 0.10290533304214478, -0.2807324230670929, 0.6917222738265991, 0.34408968687057495, -0.7843378782272339, -0.038304880261421204, -0.9067419767379761, 0.526864767074585, -0.2802944481372833, -0.34318333864212036, 0.4212380051612854, 0.3711022734642029, 1.2777140140533447, -0.013545999303460121, 0.1336531639099121, 1.1576666831970215, -1.4411370754241943, 1.383894681930542, -0.722612738609314, 0.33399495482444763, -2.414982318878174, 1.3403626680374146, -0.709568977355957, 1.9400361776351929, -2.749262571334839, 0.467193067073822, -0.5982261896133423, -0.5204187631607056, 0.34246233105659485, -0.26803210377693176, 0.09701984375715256, -0.1467217355966568, -1.2067347764968872, -0.04259101301431656, -0.695564866065979, 0.5554020404815674, 1.142015814781189, 1.3369946479797363, -1.1296467781066895, -0.19982437789440155, -1.6300638914108276, -0.1258372962474823, -0.6937898397445679, 0.34178492426872253, -1.933545708656311, -0.15182718634605408, -1.854440450668335, -2.417649507522583, -1.234420895576477, -0.7072272300720215, 1.126919150352478, 0.1583297997713089, -0.9257820844650269, 1.3543312549591064, -0.28491950035095215, -1.8529512882232666, 1.0957094430923462, -2.162186861038208 ]
https://github.com/huggingface/datasets/issues/3763
It's not possible download `20200501.pt` dataset
Hi @jvanz, thanks for reporting. Please note that Wikimedia website does not longer host Wikipedia dumps for so old dates. For a list of accessible dump dates of `pt` Wikipedia, please see: https://dumps.wikimedia.org/ptwiki/ You can load for example `20220220` `pt` Wikipedia: ```python dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") ```
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ```
937
49
It's not possible download `20200501.pt` dataset ## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ``` Hi @jvanz, thanks for reporting. Please note that Wikimedia website does not longer host Wikipedia dumps for so old dates. For a list of accessible dump dates of `pt` Wikipedia, please see: https://dumps.wikimedia.org/ptwiki/ You can load for example `20220220` `pt` Wikipedia: ```python dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") ```
[ -1.2020845413208008, -0.9455378651618958, -0.73639315366745, 1.3781094551086426, -0.13560797274112701, -1.1837013959884644, 0.14426544308662415, -1.0391908884048462, 1.6079790592193604, -0.7198565006256104, 0.18861232697963715, -1.7334610223770142, -0.1576383411884308, -0.4222664535045624, -0.6844441890716553, -0.9024515748023987, -0.36836081743240356, -0.8473464846611023, 0.9484304785728455, 2.532487154006958, 1.2806200981140137, -1.3025075197219849, 2.7928764820098877, 0.6833524703979492, -0.265857070684433, -0.994595468044281, 0.5075019598007202, 0.06725270301103592, -1.2370574474334717, -0.4253996014595032, -0.9533906579017639, 0.0540987029671669, -0.5567724108695984, -0.43882712721824646, 0.07433855533599854, 0.4219818115234375, -0.35015854239463806, -0.3079940974712372, -0.5734537839889526, -0.7237082123756409, 0.47819438576698303, -0.3885675072669983, 0.9426584243774414, -0.31947481632232666, 1.7364405393600464, -0.5567405223846436, 0.408218652009964, 0.7516852617263794, 1.1829267740249634, 0.19185839593410492, 0.07375774532556534, 0.2993065118789673, 0.3552464544773102, -0.026037070900201797, 0.5249586701393127, 1.3092577457427979, 0.5274578928947449, 0.4479946494102478, 0.6738609671592712, -2.217939615249634, 1.3118025064468384, -0.8983190655708313, 0.2786523699760437, 1.3463029861450195, -0.8399400115013123, 0.37991073727607727, -1.8073091506958008, -0.04061969369649887, 0.5721234679222107, -2.3062713146209717, 0.2887488305568695, -1.354594111442566, -0.5540558099746704, 0.9365133047103882, 0.2988707423210144, -1.2009986639022827, 0.194707989692688, -0.531638503074646, 1.0951417684555054, 0.49369698762893677, 1.1637797355651855, -1.7084031105041504, -0.0337492972612381, -0.1623525470495224, 0.1360287368297577, -1.2631009817123413, -1.6528611183166504, 0.5473239421844482, 0.6021546721458435, 0.7193949818611145, -0.09349561482667923, 1.0384615659713745, -1.044727087020874, 0.7444012761116028, -0.9389473795890808, -1.6213362216949463, -1.3701488971710205, -2.3047401905059814, -2.258187770843506, 0.7982071042060852, -0.5187981724739075, -0.5059924721717834, 2.0005245208740234, -0.9652270674705505, -1.8149242401123047, 1.074634313583374, 0.36123669147491455, 0.0218355655670166, 2.3501710891723633, 0.2841971218585968, -0.7547376155853271, 0.47764793038368225, -0.6841765642166138, 0.8500523567199707, -0.30350470542907715, 1.3069806098937988, 0.52541184425354, -0.9526830315589905, 1.651273488998413, -0.46529608964920044, 0.6054074168205261, -0.713782548904419, -0.558245062828064, -0.8086792826652527, 0.24656270444393158, 1.9011293649673462, -0.3934255838394165, 1.5784335136413574, -0.3396131992340088, -1.579938530921936, -1.561821699142456, 0.8800391554832458, 0.5169069766998291, -0.8601856827735901, 0.11090964078903198, -0.47443467378616333, 0.11883561313152313, -0.014584025368094444, 1.0270569324493408, 1.2136701345443726, 0.7298311591148376, -0.2910459637641907, -0.8240241408348083, 0.26100823283195496, -0.0802462249994278, -0.646173894405365, -1.862202763557434, -0.2976832389831543, 0.22834841907024384, 0.6105124354362488, -1.2766764163970947, 1.7051947116851807, 0.847648561000824, 1.9992254972457886, 0.946451723575592, -0.3961983323097229, 1.5270010232925415, 0.053601913154125214, 1.8704500198364258, -0.458597868680954, 0.6294634938240051, -0.3037489950656891, -1.0857945680618286, 0.8849086165428162, -0.35469046235084534, -1.9859240055084229, -0.82925945520401, -0.789377748966217, -0.19162578880786896, -0.8041427135467529, 0.8131357431411743, -0.2827100455760956, -1.5204660892486572, 0.17003929615020752, -0.6772100925445557, 0.1348748356103897, -1.2422454357147217, 0.23837882280349731, 0.7088225483894348, -0.670508086681366, -0.029624905437231064, -0.20034274458885193, -1.32304847240448, -0.40846413373947144, 0.2895144522190094, 1.961917757987976, -0.5975770354270935, 0.9389352202415466, 1.0680177211761475, -0.7670658826828003, 0.15192782878875732, 0.22244210541248322, -0.2649438977241516, 0.8115195631980896, -1.1302955150604248, -0.35861602425575256, 1.1714485883712769, -0.18576914072036743, -0.6936048269271851, 1.4499669075012207, 0.7630199193954468, -1.0846236944198608, -0.2214059829711914, -0.2014046311378479, -0.8310770988464355, -0.05747004225850105, -1.5135629177093506, -0.17558205127716064, 0.3644270598888397, -1.4773386716842651, -0.3958492577075958, -0.2410242259502411, 1.3126025199890137, -0.2075498104095459, 1.4841145277023315, -0.35677608847618103, -0.09450995177030563, -0.3710579574108124, -0.4516279399394989, 0.14060452580451965, -0.2671332061290741, -0.6157007813453674, 0.1957312673330307, -0.8572874665260315, 0.2923643887042999, 1.5431092977523804, 0.3704836368560791, 0.023083969950675964, 0.4413621425628662, 1.1362454891204834, 0.39369136095046997, -0.08941028267145157, -0.8895295262336731, -1.5487825870513916, 1.9510289430618286, -1.4557619094848633, 1.9017528295516968, 0.7716395258903503, -0.07142763584852219, -1.8095049858093262, -1.9522209167480469, 1.2986057996749878, 1.1619495153427124, 2.4029390811920166, 0.5608552694320679, 0.5002478361129761, -0.7198540568351746, -0.7489378452301025, 0.31672102212905884, -1.0164629220962524, -0.6700487732887268, 0.21396544575691223, 2.3458776473999023, 1.7996320724487305, -0.5804666876792908, -0.2342481166124344, -0.9642183780670166, 1.260360598564148, -0.2076362669467926, 0.2079959511756897, 2.0582098960876465, -0.26352977752685547, -1.025202751159668, 1.3900309801101685, -2.277841567993164, 0.19153502583503723, 2.0164787769317627, 0.21758754551410675, 0.15158729255199432, -1.3998245000839233, -0.6775305271148682, -0.261858731508255, -0.4484209418296814, -1.2955403327941895, 0.586692750453949, -0.33422085642814636, -0.839607834815979, -1.4958943128585815, 0.0791819766163826, -1.1239099502563477, -1.6941828727722168, 0.2767286002635956, 1.9660615921020508, 2.0023956298828125, -0.8095138669013977, 1.4131884574890137, -0.24734540283679962, 0.011873935349285603, 1.2433785200119019, 1.3008184432983398, 3.0710647106170654, 1.9086453914642334, -1.2728626728057861, 0.7175714373588562, -0.19663700461387634, -0.49752742052078247, 1.2288110256195068, -1.1768044233322144, 1.0886974334716797, -0.23854389786720276, -1.2253183126449585, -1.2412222623825073, 1.0149403810501099, 0.46763476729393005, 0.030241239815950394, -0.5262660980224609, 1.2560313940048218, 0.06865096837282181, 1.3505663871765137, 0.6298043131828308, -0.4258871376514435, 0.6142327785491943, -0.3931058943271637, -0.46966007351875305, 1.6044050455093384, 0.16281470656394958, -1.5095136165618896, -2.355971097946167, -0.23830673098564148, -0.8747934103012085, -0.007384422700852156, -0.5688701272010803, -1.0711307525634766, 1.6728383302688599, 0.4956575036048889, -1.2029399871826172, -0.2998511493206024, -0.2736014723777771, -0.5486297011375427, 2.600524425506592, -1.2789981365203857, -0.14629027247428894, -0.9725032448768616, -0.5021122097969055, 1.6303900480270386, -1.1607065200805664, -0.19416022300720215, -0.9898054003715515, -0.6039419174194336, -1.3261440992355347, -0.5171579718589783, 0.017976872622966766, -0.9574138522148132, 0.7717756032943726, 0.19915761053562164, -1.1702651977539062, -0.22738611698150635, -0.9061458110809326, 1.047648549079895, -0.10393048077821732, 0.19599837064743042, 1.9026930332183838, 0.41207534074783325, -0.3724114000797272, 0.667487621307373, 1.2119145393371582, 0.5558898448944092, -0.6768350005149841, 0.09866423904895782, -0.7693914771080017, 0.3223482370376587, -1.464993953704834, 0.14415405690670013, -2.932640552520752, 0.7641839385032654, -0.14486008882522583, -0.09677357971668243, -0.05271737650036812, -1.2729943990707397, 1.1004514694213867, 2.582296133041382, -1.191538691520691, 0.4515436291694641, 0.46154701709747314, 1.167974591255188, -1.546723484992981, 0.25604256987571716, -0.46691492199897766, 2.097320318222046, 0.14675040543079376, 1.259880542755127, -0.47348326444625854, -2.2415924072265625, 0.6386491656303406, -1.2023768424987793, -1.138664722442627, 0.8168526291847229, -0.8928749561309814, 0.17914743721485138, -1.4637116193771362, -0.22176510095596313, -0.925081193447113, -1.2280553579330444, 0.7813902497291565, 0.09245772659778595, 0.4257931411266327, -0.5162109136581421, 0.4454958140850067, -2.216752529144287, -1.3285415172576904, -0.27409878373146057, -1.0328103303909302, 0.5670719146728516, -0.338201105594635, 0.618858814239502, -0.15053753554821014, 0.09173951297998428, 0.29714256525039673, 1.3879438638687134, 3.3805758953094482, 0.22542527318000793, 0.21069875359535217, -0.08583363890647888, -1.0854828357696533, 1.4643620252609253, 1.018283724784851, -0.11676572263240814, -0.6189525723457336, -1.0477501153945923, 1.2645857334136963, 2.0192625522613525, 1.1015703678131104, 0.13067708909511566, -0.8854445815086365, -0.7459002137184143, -0.031120792031288147, 0.1729290783405304, 0.49275827407836914, 0.9911729693412781, -0.005618389695882797, 0.10314171761274338, 1.423466682434082, 1.1847001314163208, -0.2957513630390167, 0.45298534631729126, -0.9113958477973938, -0.40062013268470764, 0.4407205283641815, 0.2045910507440567, 0.0760921984910965, 0.49471235275268555, -1.0704983472824097, -0.31080159544944763, -0.3611292243003845, -0.8873835206031799, -0.7535027861595154, -0.3909571170806885, -0.36403220891952515, 1.5705251693725586, 0.09657348692417145, -0.46096599102020264, 0.01359743531793356, -0.7453133463859558, -0.1687529981136322, -1.0996720790863037, 0.2988445460796356, -0.18436424434185028, -0.060345590114593506, -0.13445986807346344, 1.6889265775680542, -0.9255582690238953, -2.109729290008545, 0.15230399370193481, 0.32548943161964417, -0.33693280816078186, 0.22014233469963074, 1.674889087677002, 0.604995608329773, 1.3948613405227661, 1.2573473453521729, 0.9610580801963806, -0.603734016418457, -1.1887753009796143, 0.6532947421073914, 0.9239380359649658, -1.2811816930770874, 0.8874294757843018, -0.08606849610805511, -0.5199684500694275, 0.6851257085800171, 1.3589015007019043, 0.4411194324493408, -1.987456202507019, 0.8756746053695679, -0.8815944194793701, 0.676443874835968, 0.6752752065658569, 0.8348801136016846, 0.1999310404062271, 0.8236286640167236, -1.2765347957611084, -1.1388221979141235, -0.7339989542961121, -0.5984532833099365, 1.923369288444519, -0.2047235518693924, 0.545339047908783, -0.13236983120441437, -1.1974084377288818, -0.08736085146665573, 0.7654487490653992, 0.3570763170719147, -0.4623211920261383, 0.8688156604766846, -0.49907419085502625, -0.9924819469451904, -1.284274935722351, -0.4208071231842041, -1.0585846900939941, -0.8696210980415344, 0.9344027042388916, 0.7932841181755066, 0.41536328196525574, 1.88396155834198, 0.6086817383766174, 0.3030630052089691, -2.716660261154175, 0.9277867078781128, 0.2786968946456909, -0.018607724457979202, 0.9486705660820007, 0.29340633749961853, 1.1202375888824463, -0.02626953274011612, 0.5979794263839722, -2.3367300033569336, 2.188540458679199, -0.22519853711128235, 0.6752218008041382, -0.003267157357186079, -0.11880075931549072, 1.0899683237075806, 0.518412709236145, 0.5363275408744812, -1.104814052581787, 0.7483469247817993, -0.6065539717674255, 1.1022560596466064, 0.9745619893074036, -0.9002347588539124, 0.07164866477251053, 1.4550950527191162, 0.4472145140171051, -0.4334368407726288, -0.931175708770752, -0.8226343989372253, 0.9825401902198792, 1.7344943284988403, -0.08757975697517395, 0.08675131946802139, 0.8518909811973572, 0.6613619327545166, -1.2793201208114624, -0.007953604683279991, -0.7145588397979736, -0.6919004321098328, 1.6974570751190186, 2.011599063873291, -0.12985461950302124, -0.21928991377353668, -0.7082036137580872, -1.2666540145874023, 0.7281438708305359, -0.06300663948059082, 0.13149039447307587, 0.7522462010383606, -0.6910210251808167, 1.1527752876281738, 0.5608956813812256, 1.0068846940994263, 0.04332312196493149, 0.4131357669830322, 0.39629608392715454, -0.3847905099391937, -1.2038450241088867, -0.3463588356971741, -1.1006392240524292, -2.5215632915496826, 0.43846771121025085, -0.2625044584274292, -1.4312398433685303, 0.023750003427267075, -1.0638736486434937, 0.9169050455093384, -0.6273074746131897, -1.1538573503494263, -1.454391360282898, 0.2968190312385559, -0.16657976806163788, 0.9362800121307373, -1.5859006643295288, -0.1756974458694458, 1.271705150604248, 0.9695886373519897, -0.6294713616371155, 1.0242575407028198, 0.2421136051416397, 1.0107614994049072, 0.8299089074134827, -0.40870270133018494, 0.5783924460411072, 0.02381543442606926, -1.2987644672393799, 0.41312509775161743, 1.2308526039123535, 0.21517851948738098, 1.4345169067382812, -0.513484537601471, 0.049733467400074005, 0.4709881544113159, -0.5611023902893066, -0.5406942367553711, -0.4460250437259674, 0.69697505235672, 0.049073800444602966, -1.090415120124817, -0.11619846522808075, -0.13018131256103516, -0.20826272666454315, 0.15462221205234528, -1.4531272649765015, -0.23702919483184814, -0.40287983417510986, -0.5056018233299255, -1.2466042041778564, -0.011675151996314526, 1.2871500253677368, -0.8490614295005798, -0.2117934376001358, 0.4224541485309601, 0.33648353815078735, 0.578153669834137, 0.5108966827392578, -0.6834923028945923, -0.3563845455646515, -0.38169029355049133, -0.30917245149612427, 0.3472226858139038, 1.2453423738479614, -0.03627551719546318, -1.055404782295227, 0.6526861786842346, -0.38475143909454346, 0.11611570417881012, 1.9738701581954956, 0.00458134151995182, -0.698060929775238, 0.3069417476654053, -0.6333128213882446, 1.7467637062072754, 1.720836877822876, 1.3602054119110107, -0.14483705163002014, -0.8207002282142639, 0.5326284766197205, -0.304401159286499, -0.3500911593437195, 0.9031791090965271, 0.4203583598136902, -0.17819447815418243, -1.4057788848876953, 0.6284171342849731, 1.2969416379928589, -0.8541743755340576, -0.7311883568763733, 0.02267112210392952, -0.8851537704467773, 1.166821837425232, 0.6038524508476257, 0.2653505802154541, 0.24691839516162872, 1.5428355932235718, 0.7568513751029968, -0.49485236406326294, 0.5707997679710388, 0.49823683500289917, -0.19130679965019226, -2.1197092533111572, -1.0345109701156616, 0.3574518859386444, -0.3439945578575134, -1.586686611175537, 1.3462884426116943, -1.1360074281692505, -1.0065783262252808, 0.5534257292747498, 0.13326099514961243, 1.321584701538086, 0.3212640881538391, 1.6516748666763306, 2.1570804119110107, 0.9151487946510315, 0.3143113851547241, 1.2390979528427124, -0.1298186331987381, -0.4287656545639038, 1.822108507156372, -0.3866473138332367, 0.46914881467819214, 0.9685288071632385, -0.3883756697177887, -1.1033604145050049, -0.8331258893013, -1.2829785346984863, -0.6391199827194214, 1.1301140785217285, 0.09818550199270248, -1.1314305067062378, 0.13837602734565735, 1.597404956817627, 0.16036759316921234, -0.3046993017196655, 0.7242767810821533, 0.4449062943458557, -0.7472121119499207, -0.08738457411527634, -0.8863536715507507, 0.5657366514205933, -0.09633474051952362, -0.25819823145866394, 0.1960071325302124, 0.5577130913734436, 1.296748399734497, -0.024477407336235046, 0.06669105589389801, 1.2199174165725708, -1.3229186534881592, 1.5555341243743896, -0.6727756857872009, 0.27173587679862976, -2.4727301597595215, 1.3949694633483887, -0.7930136919021606, 1.8844128847122192, -2.545419454574585, 0.4425722062587738, -0.5270515084266663, -0.41067078709602356, 0.21327130496501923, -0.4499845504760742, 0.1508849859237671, -0.118758924305439, -0.9729393124580383, -0.09472741186618805, -0.7361600399017334, 0.5834367871284485, 1.1298773288726807, 1.4125652313232422, -1.157667636871338, -0.29014158248901367, -1.7687342166900635, -0.1448468416929245, -0.7523105144500732, 0.2953352630138397, -1.981166958808899, -0.24839137494564056, -1.9742857217788696, -2.4156250953674316, -1.4010616540908813, -0.8353798389434814, 1.0000935792922974, 0.09906981140375137, -0.9730252027511597, 1.2160590887069702, -0.3711113929748535, -1.8219170570373535, 1.1807868480682373, -2.251009702682495 ]
https://github.com/huggingface/datasets/issues/3763
It's not possible download `20200501.pt` dataset
> ```python > dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") > ``` Thank you! I did not know that I can do this. I was following the example in the error message when I do not define which language dataset I'm trying to download. I've tried something similar changing the date in the `load_dataset` call that I've shared in the bug description. Obviously, it did not work. I need to read the docs more carefully next time. My bad! Thanks again and sorry for the noise.
## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ```
937
85
It's not possible download `20200501.pt` dataset ## Describe the bug The dataset `20200501.pt` is broken. The available datasets: https://dumps.wikimedia.org/ptwiki/ ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') ``` ## Expected results I expect to download the dataset locally. ## Actual results ``` >>> from datasets import load_dataset >>> dataset = load_dataset("wikipedia", "20200501.pt", beam_runner='DirectRunner') Downloading and preparing dataset wikipedia/20200501.pt to /home/jvanz/.cache/huggingface/datasets/wikipedia/20200501.pt/1.0.0/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475... /home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/apache_beam/__init__.py:79: UserWarning: This version of Apache Beam has not been sufficiently tested on Python 3.9. You may encounter bugs or missing features. warnings.warn( 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 1245, in _download_and_prepare super()._download_and_prepare( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/builder.py", line 661, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jvanz/.cache/huggingface/modules/datasets_modules/datasets/wikipedia/009f923d9b6dd00c00c8cdc7f408f2b47f45dd4f5fb7982a21f9448f4afbe475/wikipedia.py", line 420, in _split_generators downloaded_files = dl_manager.download_and_extract({"info": info_url}) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 307, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 260, in map_nested mapped = [ File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 261, in <listcomp> _single_map_nested((function, obj, types, None, True)) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 196, in _single_map_nested return function(data_struct) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 216, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jvanz/anaconda3/envs/tf-gpu/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://dumps.wikimedia.org/ptwiki/20200501/dumpstatus.json ``` ## Environment info ``` - `datasets` version: 1.18.3 - Platform: Linux-5.3.18-150300.59.49-default-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 ``` > ```python > dataset = load_dataset("wikipedia", language="pt", date="20220220", beam_runner="DirectRunner") > ``` Thank you! I did not know that I can do this. I was following the example in the error message when I do not define which language dataset I'm trying to download. I've tried something similar changing the date in the `load_dataset` call that I've shared in the bug description. Obviously, it did not work. I need to read the docs more carefully next time. My bad! Thanks again and sorry for the noise.
[ -1.2020845413208008, -0.9455378651618958, -0.73639315366745, 1.3781094551086426, -0.13560797274112701, -1.1837013959884644, 0.14426544308662415, -1.0391908884048462, 1.6079790592193604, -0.7198565006256104, 0.18861232697963715, -1.7334610223770142, -0.1576383411884308, -0.4222664535045624, -0.6844441890716553, -0.9024515748023987, -0.36836081743240356, -0.8473464846611023, 0.9484304785728455, 2.532487154006958, 1.2806200981140137, -1.3025075197219849, 2.7928764820098877, 0.6833524703979492, -0.265857070684433, -0.994595468044281, 0.5075019598007202, 0.06725270301103592, -1.2370574474334717, -0.4253996014595032, -0.9533906579017639, 0.0540987029671669, -0.5567724108695984, -0.43882712721824646, 0.07433855533599854, 0.4219818115234375, -0.35015854239463806, -0.3079940974712372, -0.5734537839889526, -0.7237082123756409, 0.47819438576698303, -0.3885675072669983, 0.9426584243774414, -0.31947481632232666, 1.7364405393600464, -0.5567405223846436, 0.408218652009964, 0.7516852617263794, 1.1829267740249634, 0.19185839593410492, 0.07375774532556534, 0.2993065118789673, 0.3552464544773102, -0.026037070900201797, 0.5249586701393127, 1.3092577457427979, 0.5274578928947449, 0.4479946494102478, 0.6738609671592712, -2.217939615249634, 1.3118025064468384, -0.8983190655708313, 0.2786523699760437, 1.3463029861450195, -0.8399400115013123, 0.37991073727607727, -1.8073091506958008, -0.04061969369649887, 0.5721234679222107, -2.3062713146209717, 0.2887488305568695, -1.354594111442566, -0.5540558099746704, 0.9365133047103882, 0.2988707423210144, -1.2009986639022827, 0.194707989692688, -0.531638503074646, 1.0951417684555054, 0.49369698762893677, 1.1637797355651855, -1.7084031105041504, -0.0337492972612381, -0.1623525470495224, 0.1360287368297577, -1.2631009817123413, -1.6528611183166504, 0.5473239421844482, 0.6021546721458435, 0.7193949818611145, -0.09349561482667923, 1.0384615659713745, -1.044727087020874, 0.7444012761116028, -0.9389473795890808, -1.6213362216949463, -1.3701488971710205, -2.3047401905059814, -2.258187770843506, 0.7982071042060852, -0.5187981724739075, -0.5059924721717834, 2.0005245208740234, -0.9652270674705505, -1.8149242401123047, 1.074634313583374, 0.36123669147491455, 0.0218355655670166, 2.3501710891723633, 0.2841971218585968, -0.7547376155853271, 0.47764793038368225, -0.6841765642166138, 0.8500523567199707, -0.30350470542907715, 1.3069806098937988, 0.52541184425354, -0.9526830315589905, 1.651273488998413, -0.46529608964920044, 0.6054074168205261, -0.713782548904419, -0.558245062828064, -0.8086792826652527, 0.24656270444393158, 1.9011293649673462, -0.3934255838394165, 1.5784335136413574, -0.3396131992340088, -1.579938530921936, -1.561821699142456, 0.8800391554832458, 0.5169069766998291, -0.8601856827735901, 0.11090964078903198, -0.47443467378616333, 0.11883561313152313, -0.014584025368094444, 1.0270569324493408, 1.2136701345443726, 0.7298311591148376, -0.2910459637641907, -0.8240241408348083, 0.26100823283195496, -0.0802462249994278, -0.646173894405365, -1.862202763557434, -0.2976832389831543, 0.22834841907024384, 0.6105124354362488, -1.2766764163970947, 1.7051947116851807, 0.847648561000824, 1.9992254972457886, 0.946451723575592, -0.3961983323097229, 1.5270010232925415, 0.053601913154125214, 1.8704500198364258, -0.458597868680954, 0.6294634938240051, -0.3037489950656891, -1.0857945680618286, 0.8849086165428162, -0.35469046235084534, -1.9859240055084229, -0.82925945520401, -0.789377748966217, -0.19162578880786896, -0.8041427135467529, 0.8131357431411743, -0.2827100455760956, -1.5204660892486572, 0.17003929615020752, -0.6772100925445557, 0.1348748356103897, -1.2422454357147217, 0.23837882280349731, 0.7088225483894348, -0.670508086681366, -0.029624905437231064, -0.20034274458885193, -1.32304847240448, -0.40846413373947144, 0.2895144522190094, 1.961917757987976, -0.5975770354270935, 0.9389352202415466, 1.0680177211761475, -0.7670658826828003, 0.15192782878875732, 0.22244210541248322, -0.2649438977241516, 0.8115195631980896, -1.1302955150604248, -0.35861602425575256, 1.1714485883712769, -0.18576914072036743, -0.6936048269271851, 1.4499669075012207, 0.7630199193954468, -1.0846236944198608, -0.2214059829711914, -0.2014046311378479, -0.8310770988464355, -0.05747004225850105, -1.5135629177093506, -0.17558205127716064, 0.3644270598888397, -1.4773386716842651, -0.3958492577075958, -0.2410242259502411, 1.3126025199890137, -0.2075498104095459, 1.4841145277023315, -0.35677608847618103, -0.09450995177030563, -0.3710579574108124, -0.4516279399394989, 0.14060452580451965, -0.2671332061290741, -0.6157007813453674, 0.1957312673330307, -0.8572874665260315, 0.2923643887042999, 1.5431092977523804, 0.3704836368560791, 0.023083969950675964, 0.4413621425628662, 1.1362454891204834, 0.39369136095046997, -0.08941028267145157, -0.8895295262336731, -1.5487825870513916, 1.9510289430618286, -1.4557619094848633, 1.9017528295516968, 0.7716395258903503, -0.07142763584852219, -1.8095049858093262, -1.9522209167480469, 1.2986057996749878, 1.1619495153427124, 2.4029390811920166, 0.5608552694320679, 0.5002478361129761, -0.7198540568351746, -0.7489378452301025, 0.31672102212905884, -1.0164629220962524, -0.6700487732887268, 0.21396544575691223, 2.3458776473999023, 1.7996320724487305, -0.5804666876792908, -0.2342481166124344, -0.9642183780670166, 1.260360598564148, -0.2076362669467926, 0.2079959511756897, 2.0582098960876465, -0.26352977752685547, -1.025202751159668, 1.3900309801101685, -2.277841567993164, 0.19153502583503723, 2.0164787769317627, 0.21758754551410675, 0.15158729255199432, -1.3998245000839233, -0.6775305271148682, -0.261858731508255, -0.4484209418296814, -1.2955403327941895, 0.586692750453949, -0.33422085642814636, -0.839607834815979, -1.4958943128585815, 0.0791819766163826, -1.1239099502563477, -1.6941828727722168, 0.2767286002635956, 1.9660615921020508, 2.0023956298828125, -0.8095138669013977, 1.4131884574890137, -0.24734540283679962, 0.011873935349285603, 1.2433785200119019, 1.3008184432983398, 3.0710647106170654, 1.9086453914642334, -1.2728626728057861, 0.7175714373588562, -0.19663700461387634, -0.49752742052078247, 1.2288110256195068, -1.1768044233322144, 1.0886974334716797, -0.23854389786720276, -1.2253183126449585, -1.2412222623825073, 1.0149403810501099, 0.46763476729393005, 0.030241239815950394, -0.5262660980224609, 1.2560313940048218, 0.06865096837282181, 1.3505663871765137, 0.6298043131828308, -0.4258871376514435, 0.6142327785491943, -0.3931058943271637, -0.46966007351875305, 1.6044050455093384, 0.16281470656394958, -1.5095136165618896, -2.355971097946167, -0.23830673098564148, -0.8747934103012085, -0.007384422700852156, -0.5688701272010803, -1.0711307525634766, 1.6728383302688599, 0.4956575036048889, -1.2029399871826172, -0.2998511493206024, -0.2736014723777771, -0.5486297011375427, 2.600524425506592, -1.2789981365203857, -0.14629027247428894, -0.9725032448768616, -0.5021122097969055, 1.6303900480270386, -1.1607065200805664, -0.19416022300720215, -0.9898054003715515, -0.6039419174194336, -1.3261440992355347, -0.5171579718589783, 0.017976872622966766, -0.9574138522148132, 0.7717756032943726, 0.19915761053562164, -1.1702651977539062, -0.22738611698150635, -0.9061458110809326, 1.047648549079895, -0.10393048077821732, 0.19599837064743042, 1.9026930332183838, 0.41207534074783325, -0.3724114000797272, 0.667487621307373, 1.2119145393371582, 0.5558898448944092, -0.6768350005149841, 0.09866423904895782, -0.7693914771080017, 0.3223482370376587, -1.464993953704834, 0.14415405690670013, -2.932640552520752, 0.7641839385032654, -0.14486008882522583, -0.09677357971668243, -0.05271737650036812, -1.2729943990707397, 1.1004514694213867, 2.582296133041382, -1.191538691520691, 0.4515436291694641, 0.46154701709747314, 1.167974591255188, -1.546723484992981, 0.25604256987571716, -0.46691492199897766, 2.097320318222046, 0.14675040543079376, 1.259880542755127, -0.47348326444625854, -2.2415924072265625, 0.6386491656303406, -1.2023768424987793, -1.138664722442627, 0.8168526291847229, -0.8928749561309814, 0.17914743721485138, -1.4637116193771362, -0.22176510095596313, -0.925081193447113, -1.2280553579330444, 0.7813902497291565, 0.09245772659778595, 0.4257931411266327, -0.5162109136581421, 0.4454958140850067, -2.216752529144287, -1.3285415172576904, -0.27409878373146057, -1.0328103303909302, 0.5670719146728516, -0.338201105594635, 0.618858814239502, -0.15053753554821014, 0.09173951297998428, 0.29714256525039673, 1.3879438638687134, 3.3805758953094482, 0.22542527318000793, 0.21069875359535217, -0.08583363890647888, -1.0854828357696533, 1.4643620252609253, 1.018283724784851, -0.11676572263240814, -0.6189525723457336, -1.0477501153945923, 1.2645857334136963, 2.0192625522613525, 1.1015703678131104, 0.13067708909511566, -0.8854445815086365, -0.7459002137184143, -0.031120792031288147, 0.1729290783405304, 0.49275827407836914, 0.9911729693412781, -0.005618389695882797, 0.10314171761274338, 1.423466682434082, 1.1847001314163208, -0.2957513630390167, 0.45298534631729126, -0.9113958477973938, -0.40062013268470764, 0.4407205283641815, 0.2045910507440567, 0.0760921984910965, 0.49471235275268555, -1.0704983472824097, -0.31080159544944763, -0.3611292243003845, -0.8873835206031799, -0.7535027861595154, -0.3909571170806885, -0.36403220891952515, 1.5705251693725586, 0.09657348692417145, -0.46096599102020264, 0.01359743531793356, -0.7453133463859558, -0.1687529981136322, -1.0996720790863037, 0.2988445460796356, -0.18436424434185028, -0.060345590114593506, -0.13445986807346344, 1.6889265775680542, -0.9255582690238953, -2.109729290008545, 0.15230399370193481, 0.32548943161964417, -0.33693280816078186, 0.22014233469963074, 1.674889087677002, 0.604995608329773, 1.3948613405227661, 1.2573473453521729, 0.9610580801963806, -0.603734016418457, -1.1887753009796143, 0.6532947421073914, 0.9239380359649658, -1.2811816930770874, 0.8874294757843018, -0.08606849610805511, -0.5199684500694275, 0.6851257085800171, 1.3589015007019043, 0.4411194324493408, -1.987456202507019, 0.8756746053695679, -0.8815944194793701, 0.676443874835968, 0.6752752065658569, 0.8348801136016846, 0.1999310404062271, 0.8236286640167236, -1.2765347957611084, -1.1388221979141235, -0.7339989542961121, -0.5984532833099365, 1.923369288444519, -0.2047235518693924, 0.545339047908783, -0.13236983120441437, -1.1974084377288818, -0.08736085146665573, 0.7654487490653992, 0.3570763170719147, -0.4623211920261383, 0.8688156604766846, -0.49907419085502625, -0.9924819469451904, -1.284274935722351, -0.4208071231842041, -1.0585846900939941, -0.8696210980415344, 0.9344027042388916, 0.7932841181755066, 0.41536328196525574, 1.88396155834198, 0.6086817383766174, 0.3030630052089691, -2.716660261154175, 0.9277867078781128, 0.2786968946456909, -0.018607724457979202, 0.9486705660820007, 0.29340633749961853, 1.1202375888824463, -0.02626953274011612, 0.5979794263839722, -2.3367300033569336, 2.188540458679199, -0.22519853711128235, 0.6752218008041382, -0.003267157357186079, -0.11880075931549072, 1.0899683237075806, 0.518412709236145, 0.5363275408744812, -1.104814052581787, 0.7483469247817993, -0.6065539717674255, 1.1022560596466064, 0.9745619893074036, -0.9002347588539124, 0.07164866477251053, 1.4550950527191162, 0.4472145140171051, -0.4334368407726288, -0.931175708770752, -0.8226343989372253, 0.9825401902198792, 1.7344943284988403, -0.08757975697517395, 0.08675131946802139, 0.8518909811973572, 0.6613619327545166, -1.2793201208114624, -0.007953604683279991, -0.7145588397979736, -0.6919004321098328, 1.6974570751190186, 2.011599063873291, -0.12985461950302124, -0.21928991377353668, -0.7082036137580872, -1.2666540145874023, 0.7281438708305359, -0.06300663948059082, 0.13149039447307587, 0.7522462010383606, -0.6910210251808167, 1.1527752876281738, 0.5608956813812256, 1.0068846940994263, 0.04332312196493149, 0.4131357669830322, 0.39629608392715454, -0.3847905099391937, -1.2038450241088867, -0.3463588356971741, -1.1006392240524292, -2.5215632915496826, 0.43846771121025085, -0.2625044584274292, -1.4312398433685303, 0.023750003427267075, -1.0638736486434937, 0.9169050455093384, -0.6273074746131897, -1.1538573503494263, -1.454391360282898, 0.2968190312385559, -0.16657976806163788, 0.9362800121307373, -1.5859006643295288, -0.1756974458694458, 1.271705150604248, 0.9695886373519897, -0.6294713616371155, 1.0242575407028198, 0.2421136051416397, 1.0107614994049072, 0.8299089074134827, -0.40870270133018494, 0.5783924460411072, 0.02381543442606926, -1.2987644672393799, 0.41312509775161743, 1.2308526039123535, 0.21517851948738098, 1.4345169067382812, -0.513484537601471, 0.049733467400074005, 0.4709881544113159, -0.5611023902893066, -0.5406942367553711, -0.4460250437259674, 0.69697505235672, 0.049073800444602966, -1.090415120124817, -0.11619846522808075, -0.13018131256103516, -0.20826272666454315, 0.15462221205234528, -1.4531272649765015, -0.23702919483184814, -0.40287983417510986, -0.5056018233299255, -1.2466042041778564, -0.011675151996314526, 1.2871500253677368, -0.8490614295005798, -0.2117934376001358, 0.4224541485309601, 0.33648353815078735, 0.578153669834137, 0.5108966827392578, -0.6834923028945923, -0.3563845455646515, -0.38169029355049133, -0.30917245149612427, 0.3472226858139038, 1.2453423738479614, -0.03627551719546318, -1.055404782295227, 0.6526861786842346, -0.38475143909454346, 0.11611570417881012, 1.9738701581954956, 0.00458134151995182, -0.698060929775238, 0.3069417476654053, -0.6333128213882446, 1.7467637062072754, 1.720836877822876, 1.3602054119110107, -0.14483705163002014, -0.8207002282142639, 0.5326284766197205, -0.304401159286499, -0.3500911593437195, 0.9031791090965271, 0.4203583598136902, -0.17819447815418243, -1.4057788848876953, 0.6284171342849731, 1.2969416379928589, -0.8541743755340576, -0.7311883568763733, 0.02267112210392952, -0.8851537704467773, 1.166821837425232, 0.6038524508476257, 0.2653505802154541, 0.24691839516162872, 1.5428355932235718, 0.7568513751029968, -0.49485236406326294, 0.5707997679710388, 0.49823683500289917, -0.19130679965019226, -2.1197092533111572, -1.0345109701156616, 0.3574518859386444, -0.3439945578575134, -1.586686611175537, 1.3462884426116943, -1.1360074281692505, -1.0065783262252808, 0.5534257292747498, 0.13326099514961243, 1.321584701538086, 0.3212640881538391, 1.6516748666763306, 2.1570804119110107, 0.9151487946510315, 0.3143113851547241, 1.2390979528427124, -0.1298186331987381, -0.4287656545639038, 1.822108507156372, -0.3866473138332367, 0.46914881467819214, 0.9685288071632385, -0.3883756697177887, -1.1033604145050049, -0.8331258893013, -1.2829785346984863, -0.6391199827194214, 1.1301140785217285, 0.09818550199270248, -1.1314305067062378, 0.13837602734565735, 1.597404956817627, 0.16036759316921234, -0.3046993017196655, 0.7242767810821533, 0.4449062943458557, -0.7472121119499207, -0.08738457411527634, -0.8863536715507507, 0.5657366514205933, -0.09633474051952362, -0.25819823145866394, 0.1960071325302124, 0.5577130913734436, 1.296748399734497, -0.024477407336235046, 0.06669105589389801, 1.2199174165725708, -1.3229186534881592, 1.5555341243743896, -0.6727756857872009, 0.27173587679862976, -2.4727301597595215, 1.3949694633483887, -0.7930136919021606, 1.8844128847122192, -2.545419454574585, 0.4425722062587738, -0.5270515084266663, -0.41067078709602356, 0.21327130496501923, -0.4499845504760742, 0.1508849859237671, -0.118758924305439, -0.9729393124580383, -0.09472741186618805, -0.7361600399017334, 0.5834367871284485, 1.1298773288726807, 1.4125652313232422, -1.157667636871338, -0.29014158248901367, -1.7687342166900635, -0.1448468416929245, -0.7523105144500732, 0.2953352630138397, -1.981166958808899, -0.24839137494564056, -1.9742857217788696, -2.4156250953674316, -1.4010616540908813, -0.8353798389434814, 1.0000935792922974, 0.09906981140375137, -0.9730252027511597, 1.2160590887069702, -0.3711113929748535, -1.8219170570373535, 1.1807868480682373, -2.251009702682495 ]
https://github.com/huggingface/datasets/issues/3762
`Dataset.class_encode` should support custom class names
Hi @Dref360, thanks a lot for your proposal. It totally makes sense to have more flexibility when class encoding, I agree. You could even further customize the class encoding by passing an instance of `ClassLabel` itself (instead of replicating `ClassLabel` instantiation arguments as `Dataset.class_encode_column` arguments). And the latter made me think of `Dataset.cast_column`... Maybe better to have some others' opinions @lhoestq @mariosasko
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted.
938
62
`Dataset.class_encode` should support custom class names I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted. Hi @Dref360, thanks a lot for your proposal. It totally makes sense to have more flexibility when class encoding, I agree. You could even further customize the class encoding by passing an instance of `ClassLabel` itself (instead of replicating `ClassLabel` instantiation arguments as `Dataset.class_encode_column` arguments). And the latter made me think of `Dataset.cast_column`... Maybe better to have some others' opinions @lhoestq @mariosasko
[ -1.1685376167297363, -0.9721490144729614, -0.7029739618301392, 1.5022902488708496, -0.2014637142419815, -1.2758300304412842, 0.24777354300022125, -1.0343810319900513, 1.7740278244018555, -0.7180803418159485, 0.315097451210022, -1.6722805500030518, -0.0903722420334816, -0.6097531318664551, -0.8368018269538879, -0.7786388397216797, -0.4111512303352356, -0.8051506280899048, 0.9763021469116211, 2.495338201522827, 1.158340334892273, -1.4171075820922852, 2.6698360443115234, 0.6661888957023621, -0.14177602529525757, -1.018760085105896, 0.47719311714172363, -0.018780581653118134, -1.1251007318496704, -0.5055090188980103, -0.8831999897956848, -0.14418502151966095, -0.62491375207901, -0.5499189496040344, 0.035898156464099884, 0.4942531883716583, -0.2209145873785019, -0.4568280875682831, -0.5525378584861755, -0.7189671397209167, 0.49299755692481995, -0.42339324951171875, 0.9543048739433289, -0.37530410289764404, 1.8360379934310913, -0.6338317394256592, 0.4356440007686615, 0.7389355897903442, 1.4244699478149414, 0.22480085492134094, -0.057346273213624954, 0.3430929183959961, 0.38030675053596497, -0.023039434105157852, 0.49494680762290955, 1.1736295223236084, 0.6816092133522034, 0.5293598175048828, 0.7170673608779907, -2.265489339828491, 1.3189054727554321, -1.1507970094680786, 0.3534100353717804, 1.3856494426727295, -0.9347983598709106, 0.34868288040161133, -1.826342225074768, 0.03932041674852371, 0.6009909510612488, -2.2538392543792725, 0.2072116732597351, -1.314818024635315, -0.516716480255127, 1.0378732681274414, 0.31233158707618713, -1.368827223777771, 0.13173088431358337, -0.40947431325912476, 1.0770089626312256, 0.4408552646636963, 1.1065144538879395, -1.8133264780044556, 0.021084662526845932, -0.2917424142360687, 0.17261649668216705, -1.2606514692306519, -1.5158233642578125, 0.5895543098449707, 0.5226479768753052, 0.5952778458595276, -0.15097427368164062, 0.9983325600624084, -1.0965487957000732, 0.8173605799674988, -1.0877199172973633, -1.7066730260849, -1.3883442878723145, -2.2052652835845947, -2.2810170650482178, 0.7354954481124878, -0.4050252437591553, -0.4497697949409485, 1.9523717164993286, -0.9743520021438599, -1.752268671989441, 1.1077994108200073, 0.2765175402164459, 0.06500004976987839, 2.285017728805542, 0.1944001317024231, -0.6868101954460144, 0.30652889609336853, -0.7818928956985474, 0.8951356410980225, -0.38538858294487, 1.407305121421814, 0.413697212934494, -0.9656982421875, 1.585641622543335, -0.4217374920845032, 0.53178471326828, -0.6219781041145325, -0.539126992225647, -0.7535346150398254, 0.3039324879646301, 1.985485553741455, -0.3122114837169647, 1.5484834909439087, -0.40345945954322815, -1.5954421758651733, -1.5900839567184448, 0.917903482913971, 0.47431737184524536, -0.9016525149345398, 0.0223710834980011, -0.43484002351760864, 0.21592234075069427, -0.09568709880113602, 1.1337090730667114, 1.1931363344192505, 0.7288771867752075, -0.34613731503486633, -0.8768967390060425, 0.20847511291503906, -0.07027100026607513, -0.731472373008728, -1.820265531539917, -0.34660300612449646, 0.1836199015378952, 0.7346065640449524, -1.2375154495239258, 1.7000072002410889, 0.8541790246963501, 1.9189212322235107, 1.0296858549118042, -0.4157800078392029, 1.470550537109375, 0.02270156890153885, 1.8960880041122437, -0.5527418851852417, 0.6407271027565002, -0.37476927042007446, -1.014838695526123, 0.8626448512077332, -0.3161119818687439, -2.111776113510132, -0.7549378871917725, -0.7973170280456543, -0.18990160524845123, -0.7353191375732422, 0.8625674843788147, -0.2757323980331421, -1.4167975187301636, 0.22164851427078247, -0.7411611676216125, 0.10718581825494766, -1.1851131916046143, 0.3608925938606262, 0.7360026836395264, -0.6133737564086914, 0.042244039475917816, -0.29245153069496155, -1.3269767761230469, -0.4532017111778259, 0.29496076703071594, 1.9038783311843872, -0.6763232350349426, 0.90175461769104, 0.9211354851722717, -0.7431818842887878, -0.06944415718317032, 0.2782709300518036, -0.23055484890937805, 0.7960062026977539, -1.022438645362854, -0.422009140253067, 1.0764744281768799, -0.21898657083511353, -0.6008154153823853, 1.5601587295532227, 0.8000653982162476, -0.9998530745506287, -0.15990445017814636, -0.2786922752857208, -0.7683470249176025, 0.07495155930519104, -1.5788666009902954, -0.18778786063194275, 0.4319653809070587, -1.5296205282211304, -0.5010696053504944, -0.1599404215812683, 1.3747820854187012, -0.1202225461602211, 1.3338158130645752, -0.23549120128154755, -0.2281920164823532, -0.36729857325553894, -0.43765366077423096, 0.1807812601327896, -0.14151537418365479, -0.6100382208824158, 0.15152637660503387, -0.7828036546707153, 0.41719555854797363, 1.3622909784317017, 0.3452598452568054, 0.00925097893923521, 0.5388683676719666, 1.1183373928070068, 0.34573793411254883, 0.07534386217594147, -0.8775541186332703, -1.572919249534607, 2.000638246536255, -1.4514245986938477, 2.0265798568725586, 0.6775060296058655, -0.0729370266199112, -1.7395989894866943, -1.8676345348358154, 1.3404914140701294, 1.1828386783599854, 2.311812400817871, 0.5859189033508301, 0.4658070206642151, -0.7667310237884521, -0.6097467541694641, 0.31044209003448486, -1.0524019002914429, -0.7285825610160828, 0.1353418231010437, 2.3982272148132324, 1.7303287982940674, -0.5620728731155396, -0.2026253342628479, -1.0091344118118286, 1.5305589437484741, -0.1582167148590088, 0.21685431897640228, 2.030135154724121, -0.31169819831848145, -1.0400525331497192, 1.3093136548995972, -2.337712049484253, 0.16416536271572113, 2.008694887161255, 0.2972782552242279, 0.0727342963218689, -1.4322733879089355, -0.5624588131904602, -0.20345574617385864, -0.3880803883075714, -1.3178532123565674, 0.457846075296402, -0.25371450185775757, -0.7677288055419922, -1.4786250591278076, 0.1953141987323761, -1.0958811044692993, -1.655704379081726, 0.3089697062969208, 1.9836357831954956, 1.912363052368164, -0.689704179763794, 1.5651742219924927, -0.33179551362991333, 0.17703410983085632, 1.2836374044418335, 1.2289037704467773, 3.0578219890594482, 1.9865275621414185, -1.1597470045089722, 0.7063841819763184, -0.24025844037532806, -0.48783284425735474, 1.1129642724990845, -1.1706072092056274, 1.2169854640960693, -0.13818739354610443, -1.154516339302063, -1.2387276887893677, 0.9598262906074524, 0.542880654335022, -0.03909420594573021, -0.44703927636146545, 1.206816554069519, 0.0863952785730362, 1.3664357662200928, 0.5690461993217468, -0.3861728310585022, 0.681817889213562, -0.46668845415115356, -0.45048511028289795, 1.6748157739639282, 0.2471584528684616, -1.3725333213806152, -2.386695623397827, -0.19218650460243225, -0.8390148282051086, 0.09335223585367203, -0.5568371415138245, -0.937606692314148, 1.6523573398590088, 0.399539977312088, -1.3110851049423218, -0.25632935762405396, -0.4350709021091461, -0.5735296607017517, 2.7097980976104736, -1.3791519403457642, -0.23484481871128082, -0.9352623820304871, -0.6162065267562866, 1.634964942932129, -1.2546340227127075, -0.16994985938072205, -0.993703305721283, -0.6238799691200256, -1.3178324699401855, -0.5956898331642151, -0.004805523436516523, -0.8779909610748291, 0.7927132248878479, 0.1104697436094284, -1.1270787715911865, -0.3545457124710083, -0.8774546980857849, 0.7973443865776062, -0.17213894426822662, 0.27388086915016174, 1.9039191007614136, 0.3584008812904358, -0.3954397141933441, 0.6881428360939026, 1.140260100364685, 0.6139605045318604, -0.5788239240646362, 0.2727712392807007, -0.5412108898162842, 0.3179931342601776, -1.2993272542953491, 0.2718133330345154, -2.883922815322876, 0.6805092096328735, -0.06374134123325348, -0.07693786919116974, -0.02918340638279915, -1.3213608264923096, 1.1240408420562744, 2.590219259262085, -1.2112960815429688, 0.4398302733898163, 0.3247336149215698, 1.166669487953186, -1.5827066898345947, 0.34715256094932556, -0.4533405005931854, 2.120360851287842, 0.2540854513645172, 1.2547739744186401, -0.509130597114563, -2.291048288345337, 0.5485290288925171, -1.2267696857452393, -1.251747488975525, 0.7327051162719727, -0.8897433876991272, 0.08925551176071167, -1.5266587734222412, -0.2035125494003296, -0.911439836025238, -1.2437008619308472, 0.7330509424209595, 0.18906936049461365, 0.3769783079624176, -0.6524407267570496, 0.3275403082370758, -2.1919620037078857, -1.391103982925415, -0.17987912893295288, -0.9583367109298706, 0.5063955783843994, -0.35785460472106934, 0.6528072357177734, -0.07586944103240967, 0.03050636500120163, 0.32473573088645935, 1.5104047060012817, 3.3828327655792236, 0.16765804588794708, 0.3877904713153839, -0.2097623348236084, -0.9110080599784851, 1.4822179079055786, 0.9206392168998718, -0.0220636036247015, -0.5456151962280273, -1.0366789102554321, 1.2803996801376343, 2.018754005432129, 1.0502411127090454, 0.05495641753077507, -0.7870441675186157, -0.63150954246521, 0.008532430045306683, 0.2533376216888428, 0.40360888838768005, 0.9261735677719116, 0.1637132316827774, 0.04197150841355324, 1.3100030422210693, 1.2320269346237183, -0.5062311291694641, 0.38203540444374084, -0.8171325325965881, -0.44681960344314575, 0.3814498484134674, 0.33198851346969604, -0.11089718341827393, 0.24920539557933807, -0.9556043744087219, -0.18082748353481293, -0.35047581791877747, -0.9454586505889893, -0.7496394515037537, -0.39236462116241455, -0.41845187544822693, 1.7017359733581543, 0.10459252446889877, -0.5083962082862854, -0.09507433325052261, -0.7439672946929932, 0.03324301913380623, -1.049811840057373, 0.24493689835071564, -0.10591715574264526, -0.10957437753677368, -0.17984305322170258, 1.7556456327438354, -0.8781771659851074, -2.021277904510498, 0.25118497014045715, 0.2482689470052719, -0.4461866021156311, 0.23946116864681244, 1.6327564716339111, 0.5528605580329895, 1.3560757637023926, 1.3886244297027588, 0.9742414951324463, -0.70259028673172, -1.311869502067566, 0.6007121205329895, 0.902341902256012, -1.3688604831695557, 0.7881212830543518, 0.06897778809070587, -0.4565331041812897, 0.6690135598182678, 1.3046365976333618, 0.4373495280742645, -2.004018545150757, 0.7567504048347473, -0.8922383189201355, 0.7668168544769287, 0.714560866355896, 0.7033894062042236, 0.31323906779289246, 0.8142823576927185, -1.232571005821228, -1.1338578462600708, -0.7902769446372986, -0.7153021097183228, 2.000190496444702, -0.3026919960975647, 0.6503372192382812, -0.08643659949302673, -1.2950140237808228, -0.1323893964290619, 0.780356764793396, 0.4398080110549927, -0.44481906294822693, 0.776450514793396, -0.5824952125549316, -1.0501738786697388, -1.3390700817108154, -0.47403472661972046, -0.9954180717468262, -0.9448459148406982, 0.9754526019096375, 0.8146485090255737, 0.35325849056243896, 1.9124926328659058, 0.5940384268760681, 0.26495540142059326, -2.6359946727752686, 0.8022341728210449, 0.38786882162094116, -0.13789118826389313, 0.9066698551177979, 0.3638049364089966, 1.078399658203125, -0.04790665954351425, 0.5664255619049072, -2.355631113052368, 2.2702696323394775, -0.219611257314682, 0.7635757327079773, -0.06252102553844452, -0.1880190223455429, 1.0958428382873535, 0.5351566076278687, 0.4993540346622467, -1.0596147775650024, 0.6275178790092468, -0.6706671714782715, 1.273810625076294, 0.9167875051498413, -0.7252720594406128, -0.12828513979911804, 1.388005256652832, 0.4854251742362976, -0.5629950761795044, -1.0547834634780884, -1.0135059356689453, 0.8602016568183899, 1.791237235069275, -0.17626674473285675, -0.07511596381664276, 0.8343034386634827, 0.6734597086906433, -1.2263391017913818, 0.07701922953128815, -0.7973892688751221, -0.7933115363121033, 1.6623228788375854, 2.061265230178833, -0.18001757562160492, -0.20965483784675598, -0.726019561290741, -1.2096961736679077, 0.7263745069503784, 0.07519657164812088, 0.08403787761926651, 0.6422684192657471, -0.6303896903991699, 1.0960935354232788, 0.8219055533409119, 0.912108838558197, 0.09360289573669434, 0.42068585753440857, 0.316170871257782, -0.32604533433914185, -1.2364169359207153, -0.24941721558570862, -1.1693590879440308, -2.5143074989318848, 0.4540962278842926, -0.2655268907546997, -1.4493086338043213, 0.027454156428575516, -1.0664680004119873, 0.907792866230011, -0.5491771101951599, -1.131556749343872, -1.5950334072113037, 0.19452759623527527, 0.05128675326704979, 0.9754604697227478, -1.6513564586639404, -0.03835431486368179, 1.2045327425003052, 0.785609245300293, -0.6746865510940552, 0.9745584726333618, 0.28771594166755676, 1.0781257152557373, 0.7924007773399353, -0.40186771750450134, 0.5043458342552185, 0.04856375604867935, -1.2651550769805908, 0.5811123847961426, 1.1116312742233276, 0.14971677958965302, 1.4027363061904907, -0.5454345345497131, 0.11405150592327118, 0.4293287396430969, -0.5823660492897034, -0.4151856601238251, -0.5725306272506714, 0.6237307190895081, 0.004975737072527409, -0.8665076494216919, 0.13763116300106049, -0.10263854265213013, -0.17796114087104797, 0.14771783351898193, -1.530554175376892, -0.18852800130844116, -0.39621293544769287, -0.5131226181983948, -1.2061048746109009, -0.11806176602840424, 1.3818044662475586, -0.7033615708351135, -0.25450968742370605, 0.5251038670539856, 0.5222445726394653, 0.5576924085617065, 0.5345950722694397, -0.6292997598648071, -0.4762095808982849, -0.34064576029777527, -0.3290877342224121, 0.28102415800094604, 1.2811421155929565, -0.19734667241573334, -1.0330849885940552, 0.6832935810089111, -0.34920817613601685, 0.08670394867658615, 1.8824174404144287, 0.06648668646812439, -0.7864119410514832, 0.27181318402290344, -0.7075987458229065, 1.8091446161270142, 1.7089251279830933, 1.299382209777832, -0.1568002700805664, -0.9155148863792419, 0.6250094175338745, -0.39150696992874146, -0.4520149528980255, 0.8637758493423462, 0.4226994514465332, -0.23161211609840393, -1.3733688592910767, 0.669901967048645, 1.3472950458526611, -0.8469321727752686, -0.8425984382629395, 0.1318988800048828, -0.7569385766983032, 1.1896237134933472, 0.5721883177757263, 0.3470733165740967, 0.21813340485095978, 1.5995110273361206, 0.6932514905929565, -0.3448401987552643, 0.5463995933532715, 0.5499019622802734, -0.24693900346755981, -2.2038919925689697, -1.1945667266845703, 0.2668723464012146, -0.550899088382721, -1.620401382446289, 1.4222592115402222, -1.1127797365188599, -0.9582576155662537, 0.49643436074256897, 0.12865358591079712, 1.4965311288833618, 0.43083456158638, 1.6210774183273315, 2.0341689586639404, 0.8875727653503418, 0.46776363253593445, 1.3829243183135986, -0.0882464274764061, -0.4811735451221466, 1.8028165102005005, -0.5433783531188965, 0.48807278275489807, 1.1819883584976196, -0.2480417788028717, -1.0819091796875, -0.8072831630706787, -1.27617609500885, -0.6878450512886047, 1.1298218965530396, 0.10795585811138153, -1.1942113637924194, 0.219732403755188, 1.5713977813720703, 0.24457086622714996, -0.29409193992614746, 0.5167531371116638, 0.3246399164199829, -0.7286244630813599, -0.02916218340396881, -0.9430574178695679, 0.4073951840400696, -0.25172820687294006, -0.3240926265716553, 0.3400289714336395, 0.4792558252811432, 1.2401760816574097, -0.019136644899845123, 0.1364469677209854, 1.1386840343475342, -1.5217338800430298, 1.5476489067077637, -0.5510385036468506, 0.29248860478401184, -2.363046407699585, 1.4256490468978882, -0.7071380019187927, 1.9458316564559937, -2.7191076278686523, 0.30565497279167175, -0.5557132959365845, -0.44931212067604065, 0.3245629668235779, -0.2946060299873352, 0.18224717676639557, -0.1250167042016983, -1.1303420066833496, -0.058957017958164215, -0.6875726580619812, 0.5476493835449219, 1.078926682472229, 1.468194842338562, -1.1496319770812988, -0.27875569462776184, -1.7362247705459595, -0.12868359684944153, -0.6885730624198914, 0.35840508341789246, -2.0178942680358887, -0.1660812795162201, -1.8557696342468262, -2.232842445373535, -1.2722415924072266, -0.7578979730606079, 1.0899720191955566, 0.018803972750902176, -0.7580410242080688, 1.1047143936157227, -0.28622522950172424, -1.7444261312484741, 1.0523309707641602, -2.115172863006592 ]
https://github.com/huggingface/datasets/issues/3762
`Dataset.class_encode` should support custom class names
Hi @Dref360! You can use [`Dataset.align_labels_with_mapping`](https://huggingface.co/docs/datasets/master/package_reference/main_classes.html#datasets.Dataset.align_labels_with_mapping) after `Dataset.class_encode_column` to assign a different mapping of labels to ids. @albertvillanova I'd like to avoid adding more complexity to the API where it's not (absolutely) needed, so I don't think introducing a new param in `Dataset.class_encode_column` is a good idea.
I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted.
938
47
`Dataset.class_encode` should support custom class names I can make a PR, just wanted approval before starting. **Is your feature request related to a problem? Please describe.** It is often the case that classes are not ordered in alphabetical order. Current `class_encode_column` sort the classes before indexing. https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_dataset.py#L1235 **Describe the solution you'd like** I would like to add a **optional** parameter `class_names` to `class_encode_column` that would be used for the mapping instead of sorting the unique values. **Describe alternatives you've considered** One can use map instead. I find it harder to read. ```python CLASS_NAMES = ['apple', 'orange', 'potato'] ds = ds.map(lambda item: CLASS_NAMES.index(item[label_column])) # Proposition ds = ds.class_encode_column(label_column, CLASS_NAMES) ``` **Additional context** I can make the PR if this feature is accepted. Hi @Dref360! You can use [`Dataset.align_labels_with_mapping`](https://huggingface.co/docs/datasets/master/package_reference/main_classes.html#datasets.Dataset.align_labels_with_mapping) after `Dataset.class_encode_column` to assign a different mapping of labels to ids. @albertvillanova I'd like to avoid adding more complexity to the API where it's not (absolutely) needed, so I don't think introducing a new param in `Dataset.class_encode_column` is a good idea.
[ -1.1633527278900146, -0.9835623502731323, -0.7209716439247131, 1.4521758556365967, -0.16965828835964203, -1.2981504201889038, 0.2348974347114563, -1.0151721239089966, 1.8042378425598145, -0.7321069240570068, 0.2828821837902069, -1.7064495086669922, -0.09561457484960556, -0.6153836250305176, -0.826541006565094, -0.7768214344978333, -0.3995167315006256, -0.8185234069824219, 0.989952564239502, 2.482286214828491, 1.1299104690551758, -1.437340259552002, 2.686668872833252, 0.6549577713012695, -0.14463427662849426, -1.014971137046814, 0.47422558069229126, -0.016173917800188065, -1.1540725231170654, -0.4704533517360687, -0.878716230392456, -0.06641750037670135, -0.6130224466323853, -0.5121625065803528, 0.04040919244289398, 0.5108488202095032, -0.2518550753593445, -0.4548741579055786, -0.5858330726623535, -0.7203929424285889, 0.4684045910835266, -0.4064424932003021, 0.9299702048301697, -0.382930725812912, 1.8175663948059082, -0.6118101477622986, 0.4098376929759979, 0.7366544604301453, 1.3698818683624268, 0.20167365670204163, -0.012372558936476707, 0.31408366560935974, 0.389693021774292, -0.004446555860340595, 0.5275998711585999, 1.2038357257843018, 0.624387800693512, 0.552405834197998, 0.6963536739349365, -2.3044698238372803, 1.3592572212219238, -1.0811340808868408, 0.35491880774497986, 1.3474955558776855, -0.8959383368492126, 0.3151784837245941, -1.788007140159607, 0.01356805581599474, 0.664020836353302, -2.240199565887451, 0.22848279774188995, -1.34377920627594, -0.5707554221153259, 1.0088979005813599, 0.3331504464149475, -1.305787205696106, 0.13963042199611664, -0.40184077620506287, 1.0849840641021729, 0.4303600788116455, 1.1018844842910767, -1.747006893157959, 0.0023422064259648323, -0.20980241894721985, 0.12488549947738647, -1.2608259916305542, -1.58879816532135, 0.6045229434967041, 0.5216231346130371, 0.6480292677879333, -0.15684837102890015, 1.0150014162063599, -1.0906662940979004, 0.8012442588806152, -1.0603392124176025, -1.7216088771820068, -1.4147042036056519, -2.2476723194122314, -2.270904064178467, 0.7462906837463379, -0.4168756604194641, -0.41096311807632446, 2.0227317810058594, -0.9634321331977844, -1.751806378364563, 1.1113104820251465, 0.2579878270626068, 0.08068125694990158, 2.2756121158599854, 0.19474776089191437, -0.7015308737754822, 0.3394995629787445, -0.7718689441680908, 0.8893906474113464, -0.3433699905872345, 1.3879278898239136, 0.4517706036567688, -0.9428545236587524, 1.557249903678894, -0.46192872524261475, 0.538792073726654, -0.6082954406738281, -0.5556594729423523, -0.7807177305221558, 0.289671391248703, 1.9060357809066772, -0.31753936409950256, 1.5899481773376465, -0.39894017577171326, -1.6122928857803345, -1.6147645711898804, 0.9049804210662842, 0.5005342960357666, -0.8995006084442139, 0.03483406454324722, -0.49336567521095276, 0.2215343564748764, -0.11636483669281006, 1.232011318206787, 1.2161915302276611, 0.71929532289505, -0.36929988861083984, -0.8649260997772217, 0.20511287450790405, -0.08847742527723312, -0.6765472292900085, -1.829277515411377, -0.3120441436767578, 0.26937633752822876, 0.6540219187736511, -1.2223871946334839, 1.7215214967727661, 0.8761517405509949, 1.9384868144989014, 1.016274094581604, -0.40427467226982117, 1.4354181289672852, 0.018299881368875504, 1.8827747106552124, -0.553246259689331, 0.6182565689086914, -0.3411110043525696, -1.019002079963684, 0.8988808989524841, -0.3503274917602539, -2.102081060409546, -0.7655883431434631, -0.7991066575050354, -0.2212500274181366, -0.7298936247825623, 0.8520321249961853, -0.2680642902851105, -1.4295604228973389, 0.1708887666463852, -0.7518598437309265, 0.12498269975185394, -1.1363872289657593, 0.2722724378108978, 0.7568116188049316, -0.5952325463294983, 0.018714576959609985, -0.26628339290618896, -1.3400126695632935, -0.443800151348114, 0.3885103166103363, 1.8715968132019043, -0.6458538174629211, 0.9374939799308777, 0.9597674608230591, -0.7257493138313293, 0.0056573934853076935, 0.23003241419792175, -0.24138465523719788, 0.8171588778495789, -1.0508586168289185, -0.4227292835712433, 1.0839494466781616, -0.25313571095466614, -0.6319599151611328, 1.540027379989624, 0.7615990042686462, -0.9973176121711731, -0.1797686517238617, -0.27492037415504456, -0.7945054173469543, 0.03782728314399719, -1.580694317817688, -0.2184281051158905, 0.41868898272514343, -1.5061286687850952, -0.4767233729362488, -0.19088158011436462, 1.3791650533676147, -0.15117581188678741, 1.3416818380355835, -0.2407728135585785, -0.20918887853622437, -0.35535967350006104, -0.4581142067909241, 0.1922852098941803, -0.16301865875720978, -0.6110831499099731, 0.12213258445262909, -0.8380876183509827, 0.3717493712902069, 1.4052820205688477, 0.36556604504585266, 0.020781219005584717, 0.5292728543281555, 1.087401270866394, 0.3778924345970154, 0.05642357096076012, -0.8550955653190613, -1.5663671493530273, 2.006392002105713, -1.4202419519424438, 2.007172107696533, 0.6870574951171875, -0.07275626063346863, -1.776963233947754, -1.8888654708862305, 1.3233981132507324, 1.143166184425354, 2.3334670066833496, 0.5384448170661926, 0.4304652512073517, -0.7545073628425598, -0.6907009482383728, 0.33612677454948425, -1.0123305320739746, -0.6801695227622986, 0.10640685260295868, 2.3557236194610596, 1.7665382623672485, -0.5479438900947571, -0.19495327770709991, -0.9918243885040283, 1.5027995109558105, -0.19452762603759766, 0.26437607407569885, 2.0479066371917725, -0.3167096972465515, -0.9984661340713501, 1.294993281364441, -2.394096612930298, 0.1816481351852417, 2.0161449909210205, 0.26279762387275696, 0.09047254920005798, -1.4337539672851562, -0.5479644536972046, -0.23904183506965637, -0.4031260311603546, -1.2765394449234009, 0.5275160074234009, -0.2661820650100708, -0.8064797520637512, -1.4660625457763672, 0.18270687758922577, -1.1006850004196167, -1.691925287246704, 0.30284997820854187, 2.015986919403076, 1.9862263202667236, -0.7213923335075378, 1.5158053636550903, -0.3193773925304413, 0.14088734984397888, 1.2556005716323853, 1.261338710784912, 3.0651304721832275, 1.964604377746582, -1.2174341678619385, 0.7023771405220032, -0.18522602319717407, -0.5260671377182007, 1.147517442703247, -1.16800856590271, 1.1985656023025513, -0.16340206563472748, -1.1302299499511719, -1.2529865503311157, 1.019455075263977, 0.5706560015678406, -0.03843268007040024, -0.4608285129070282, 1.2538150548934937, 0.06433243304491043, 1.3522984981536865, 0.5794270038604736, -0.4479064345359802, 0.656201958656311, -0.46196895837783813, -0.500811755657196, 1.625476360321045, 0.21290022134780884, -1.3919346332550049, -2.3403027057647705, -0.22614893317222595, -0.8971803784370422, 0.08083615452051163, -0.552623450756073, -0.981430172920227, 1.6274129152297974, 0.4172339141368866, -1.306057095527649, -0.2743374705314636, -0.3982417583465576, -0.5659384727478027, 2.6721749305725098, -1.3089388608932495, -0.20278885960578918, -0.9694721102714539, -0.6031343340873718, 1.658935785293579, -1.2532151937484741, -0.20571982860565186, -1.0144832134246826, -0.6439114212989807, -1.351759672164917, -0.5705015659332275, -0.014156156219542027, -0.8679665327072144, 0.8211748600006104, 0.10999131202697754, -1.1423313617706299, -0.3065689206123352, -0.8376800417900085, 0.9003292322158813, -0.20866775512695312, 0.2524315416812897, 1.9065027236938477, 0.2983974814414978, -0.4287717640399933, 0.7121158838272095, 1.1443578004837036, 0.6328788995742798, -0.5927280783653259, 0.22698192298412323, -0.5885149240493774, 0.3346658945083618, -1.3364875316619873, 0.25078412890434265, -2.9184060096740723, 0.6946266889572144, -0.0883861780166626, -0.1115102618932724, -0.03318388760089874, -1.3207043409347534, 1.0860520601272583, 2.561988353729248, -1.2516231536865234, 0.46263861656188965, 0.3489134609699249, 1.1338114738464355, -1.6112195253372192, 0.34622862935066223, -0.4520311653614044, 2.0843489170074463, 0.2513257563114166, 1.2279870510101318, -0.4870823919773102, -2.211552143096924, 0.5916364789009094, -1.2254825830459595, -1.172187089920044, 0.7676482200622559, -0.9002683758735657, 0.14002424478530884, -1.5348734855651855, -0.25070226192474365, -0.9202700853347778, -1.2629185914993286, 0.6870432496070862, 0.16344580054283142, 0.3909381031990051, -0.6510115265846252, 0.3517795205116272, -2.2019898891448975, -1.3647578954696655, -0.1943233460187912, -0.9730969667434692, 0.5501853823661804, -0.3421156406402588, 0.6336449384689331, -0.06659599393606186, 0.08079041540622711, 0.32542720437049866, 1.488785982131958, 3.4266655445098877, 0.15985414385795593, 0.3115934431552887, -0.1711069494485855, -0.885574460029602, 1.4393168687820435, 0.9229111075401306, -0.020296741276979446, -0.5111347436904907, -1.0763453245162964, 1.32157301902771, 2.0334255695343018, 1.01876962184906, 0.05147962644696236, -0.7784645557403564, -0.7034924030303955, 0.01038592029362917, 0.2246863692998886, 0.4433688521385193, 0.9134309887886047, 0.1688746213912964, 0.0895523950457573, 1.348183274269104, 1.2226766347885132, -0.4320443570613861, 0.40802985429763794, -0.8834359645843506, -0.4586647152900696, 0.3556639552116394, 0.3012762665748596, -0.0826622024178505, 0.30735498666763306, -0.9989027976989746, -0.19148191809654236, -0.37016090750694275, -0.92573082447052, -0.7486396431922913, -0.35850268602371216, -0.41426923871040344, 1.6398310661315918, 0.13884854316711426, -0.5200012922286987, -0.08331918716430664, -0.6852320432662964, -0.030212964862585068, -1.039825201034546, 0.23652367293834686, -0.09122033417224884, -0.11698231846094131, -0.21401751041412354, 1.7180094718933105, -0.8637977838516235, -2.0193052291870117, 0.21887141466140747, 0.24027259647846222, -0.443432092666626, 0.22590754926204681, 1.6704634428024292, 0.546045184135437, 1.3586033582687378, 1.3531347513198853, 0.9530267715454102, -0.6386968493461609, -1.2697851657867432, 0.6229384541511536, 0.8800835013389587, -1.3731954097747803, 0.803169846534729, -0.007883874699473381, -0.4594000577926636, 0.7202020287513733, 1.310536503791809, 0.4786560833454132, -2.0253422260284424, 0.7865297794342041, -0.922416627407074, 0.808621883392334, 0.7273176908493042, 0.701374888420105, 0.29939454793930054, 0.8640002608299255, -1.2506550550460815, -1.1663209199905396, -0.7731631994247437, -0.7491560578346252, 2.0314502716064453, -0.3154863119125366, 0.6320021152496338, -0.11238467693328857, -1.2855150699615479, -0.16191574931144714, 0.7962245941162109, 0.4530705511569977, -0.4329422116279602, 0.7951685190200806, -0.5708316564559937, -1.0181447267532349, -1.3072099685668945, -0.4363032281398773, -1.0140783786773682, -0.9177716374397278, 0.9782533645629883, 0.8322383761405945, 0.4195888340473175, 1.9053046703338623, 0.5818471312522888, 0.3014509379863739, -2.6110002994537354, 0.8096189498901367, 0.3679335415363312, -0.07835691422224045, 0.9089680910110474, 0.3663811683654785, 1.0916985273361206, -0.06950480490922928, 0.589138925075531, -2.3217616081237793, 2.24980092048645, -0.20063349604606628, 0.7455631494522095, -0.056586917489767075, -0.1995338797569275, 1.089559555053711, 0.543533980846405, 0.5268300175666809, -1.0639351606369019, 0.6752010583877563, -0.648935854434967, 1.2233548164367676, 0.949631929397583, -0.744940459728241, -0.10097330808639526, 1.4133696556091309, 0.43366220593452454, -0.5702593326568604, -1.0220704078674316, -1.0095293521881104, 0.8775964975357056, 1.7702267169952393, -0.13845886290073395, -0.09326721727848053, 0.8562546372413635, 0.6615827679634094, -1.2033534049987793, 0.11451151221990585, -0.7602027058601379, -0.7334815263748169, 1.6743836402893066, 2.0820140838623047, -0.1562810242176056, -0.18950441479682922, -0.6974425911903381, -1.2303436994552612, 0.6963826417922974, 0.02578408643603325, 0.028634488582611084, 0.683382511138916, -0.6410635709762573, 1.0644046068191528, 0.7687027454376221, 0.9102062582969666, 0.015118234790861607, 0.4050068259239197, 0.36840927600860596, -0.315062016248703, -1.2457683086395264, -0.29731568694114685, -1.1375446319580078, -2.493612051010132, 0.43666601181030273, -0.2542482614517212, -1.4873586893081665, -0.019502265378832817, -1.075577974319458, 0.9123508334159851, -0.5730538368225098, -1.1387580633163452, -1.5753364562988281, 0.2263377457857132, 0.024840503931045532, 0.9913713932037354, -1.6217944622039795, -0.10400909185409546, 1.1861169338226318, 0.7869915962219238, -0.6878650784492493, 1.0112245082855225, 0.26414433121681213, 1.0319998264312744, 0.7339974641799927, -0.38123753666877747, 0.4952373504638672, 0.06395655125379562, -1.2864881753921509, 0.5608699321746826, 1.142120122909546, 0.13461820781230927, 1.4154525995254517, -0.5101983547210693, 0.12735338509082794, 0.4455823600292206, -0.6110011339187622, -0.3987888991832733, -0.49815690517425537, 0.6650856733322144, 0.0063762543722987175, -0.8232790231704712, 0.07400846481323242, -0.07815788686275482, -0.23885369300842285, 0.16696299612522125, -1.5123752355575562, -0.2071150243282318, -0.3628527522087097, -0.5109473466873169, -1.2198162078857422, -0.06910979747772217, 1.395992398262024, -0.7158283591270447, -0.2623758912086487, 0.5653122663497925, 0.4899355471134186, 0.56801837682724, 0.5464801788330078, -0.6347736120223999, -0.35713595151901245, -0.33603906631469727, -0.29025840759277344, 0.29362058639526367, 1.2808680534362793, -0.16059985756874084, -1.0346581935882568, 0.7083602547645569, -0.4368372857570648, 0.08420466631650925, 1.8761489391326904, 0.04322496056556702, -0.7950610518455505, 0.30063313245773315, -0.7437211275100708, 1.8341879844665527, 1.7064886093139648, 1.2935335636138916, -0.10128085315227509, -0.9158117175102234, 0.5926404595375061, -0.3697993755340576, -0.43473589420318604, 0.8993901014328003, 0.41308343410491943, -0.24082767963409424, -1.3588851690292358, 0.6763529181480408, 1.2900781631469727, -0.8963709473609924, -0.8361013531684875, 0.15293088555335999, -0.7661832571029663, 1.2081948518753052, 0.5484879016876221, 0.36894068121910095, 0.1966037005186081, 1.5665018558502197, 0.6979276537895203, -0.35954779386520386, 0.5428524613380432, 0.5585969686508179, -0.22994941473007202, -2.1821324825286865, -1.190935730934143, 0.25505876541137695, -0.5406050086021423, -1.6355990171432495, 1.4134806394577026, -1.1057264804840088, -0.9665026068687439, 0.4811832904815674, 0.08271553367376328, 1.4133929014205933, 0.38906681537628174, 1.634857416152954, 2.0598855018615723, 0.8872138857841492, 0.4673210382461548, 1.3696194887161255, -0.09760265797376633, -0.46502989530563354, 1.8151681423187256, -0.515902042388916, 0.5205410122871399, 1.1119344234466553, -0.28319627046585083, -1.0903838872909546, -0.7972345352172852, -1.2396230697631836, -0.6414342522621155, 1.1323262453079224, 0.09191296994686127, -1.162191390991211, 0.2238873690366745, 1.570284366607666, 0.2514480650424957, -0.26768758893013, 0.5257681608200073, 0.33431798219680786, -0.744525134563446, -0.027286529541015625, -0.8926746249198914, 0.4362758696079254, -0.24889309704303741, -0.2978896498680115, 0.32794713973999023, 0.45339664816856384, 1.2405638694763184, -0.07568004727363586, 0.1445160210132599, 1.1463984251022339, -1.502248764038086, 1.5701154470443726, -0.5345403552055359, 0.292225182056427, -2.4174623489379883, 1.3827767372131348, -0.6943822503089905, 1.9896210432052612, -2.7163338661193848, 0.3529438376426697, -0.5807152986526489, -0.4638608396053314, 0.30815544724464417, -0.2648604214191437, 0.13065849244594574, -0.10806690156459808, -1.1547282934188843, -0.019218550994992256, -0.6906486749649048, 0.5628033876419067, 1.1190255880355835, 1.4712847471237183, -1.1541632413864136, -0.27570366859436035, -1.7242846488952637, -0.15014351904392242, -0.7633495926856995, 0.3748723566532135, -2.014993667602539, -0.12907816469669342, -1.8842216730117798, -2.286881446838379, -1.2834686040878296, -0.7597944736480713, 1.0297801494598389, 0.024224884808063507, -0.7969329357147217, 1.1211488246917725, -0.2602121829986572, -1.7184150218963623, 1.0517511367797852, -2.1300740242004395 ]
https://github.com/huggingface/datasets/issues/3761
Know your data for HF hub
Hi @Muhtasham you should take a look at https://huggingface.co/blog/data-measurements-tool and accompanying demo app at https://huggingface.co/spaces/huggingface/data-measurements-tool We would be interested in your feedback. cc @meg-huggingface @sashavor @yjernite
**Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoogle.com/ for HF hub
939
26
Know your data for HF hub **Is your feature request related to a problem? Please describe.** Would be great to see be able to understand datasets with the goal of improving data quality, and helping mitigate fairness and bias issues. **Describe the solution you'd like** Something like https://knowyourdata.withgoogle.com/ for HF hub Hi @Muhtasham you should take a look at https://huggingface.co/blog/data-measurements-tool and accompanying demo app at https://huggingface.co/spaces/huggingface/data-measurements-tool We would be interested in your feedback. cc @meg-huggingface @sashavor @yjernite
[ -1.1809996366500854, -0.9962359666824341, -0.7757488489151001, 1.4309463500976562, -0.1968851089477539, -1.2809975147247314, 0.14132444560527802, -0.9322972893714905, 1.577775001525879, -0.6418283581733704, 0.3275967240333557, -1.7433557510375977, -0.16571694612503052, -0.48845374584198, -0.7772762775421143, -0.8222070932388306, -0.4491417109966278, -0.7253219485282898, 0.9126673340797424, 2.5412232875823975, 1.2019248008728027, -1.315259337425232, 2.7133562564849854, 0.6690778732299805, -0.2048928588628769, -1.0761349201202393, 0.47453543543815613, 0.17766965925693512, -1.1572171449661255, -0.4576650559902191, -0.9649537205696106, 0.017805222421884537, -0.5539320111274719, -0.46043744683265686, 0.08897122740745544, 0.4308012127876282, -0.0958234965801239, -0.2941053509712219, -0.5456092357635498, -0.6527660489082336, 0.5500250458717346, -0.3770526647567749, 0.9370988607406616, -0.5051741600036621, 1.8546372652053833, -0.6872528195381165, 0.2831151485443115, 0.6565122008323669, 1.3794505596160889, 0.23472993075847626, -0.018231097608804703, 0.3403151333332062, 0.43309661746025085, -0.03189391642808914, 0.3763725459575653, 1.2956666946411133, 0.5084075927734375, 0.6267041563987732, 0.6543669104576111, -2.1079185009002686, 1.4270788431167603, -0.9819079041481018, 0.31239113211631775, 1.351897954940796, -1.0283832550048828, 0.3442562520503998, -1.7652568817138672, -0.12913089990615845, 0.4488931894302368, -2.3199853897094727, 0.19814813137054443, -1.1915868520736694, -0.7232359647750854, 0.8658555150032043, 0.254716694355011, -1.437437653541565, 0.17868532240390778, -0.4950350522994995, 0.9856007099151611, 0.40483352541923523, 1.1615345478057861, -1.7313982248306274, 0.01883293315768242, -0.3737223148345947, -0.01861034333705902, -1.3741816282272339, -1.505120873451233, 0.5409759879112244, 0.6210166215896606, 0.7482702136039734, -0.08262781798839569, 0.84345543384552, -1.073764443397522, 1.0249104499816895, -0.9441462755203247, -1.6570918560028076, -1.336235761642456, -2.3008949756622314, -2.2458786964416504, 0.9410271048545837, -0.435184121131897, -0.5571012496948242, 1.8658499717712402, -1.0355600118637085, -1.7919284105300903, 1.0944634675979614, 0.28033313155174255, 0.06806768476963043, 2.427288293838501, 0.2801643908023834, -0.619257926940918, 0.5250835418701172, -0.7669408917427063, 0.9206764101982117, -0.4964182674884796, 1.4308130741119385, 0.48356443643569946, -1.0122498273849487, 1.6416184902191162, -0.5100755095481873, 0.4606670141220093, -0.6880582571029663, -0.704777181148529, -0.8842790126800537, 0.3527270555496216, 1.95451021194458, -0.37142589688301086, 1.5616003274917603, -0.3764071464538574, -1.595458745956421, -1.4466044902801514, 0.8743718266487122, 0.41676217317581177, -0.8199321031570435, 0.1004486232995987, -0.4142792820930481, 0.0672789216041565, 0.050363603979349136, 1.0183157920837402, 1.1649972200393677, 0.7766751050949097, -0.30511540174484253, -0.905035138130188, 0.1773626059293747, -0.11365573108196259, -0.5531580448150635, -1.8872230052947998, -0.3127806782722473, 0.1551121473312378, 0.5931320190429688, -1.308214545249939, 1.640648603439331, 1.0081430673599243, 2.0338871479034424, 0.9291738867759705, -0.25830426812171936, 1.385571002960205, -0.07183744013309479, 1.863986849784851, -0.5873619914054871, 0.7347551584243774, -0.4293270409107208, -1.0572412014007568, 0.8165631890296936, -0.49706798791885376, -2.0560460090637207, -0.7052428722381592, -0.9266108274459839, -0.23065698146820068, -0.9268227815628052, 1.0956789255142212, -0.21307812631130219, -1.3654117584228516, 0.24000725150108337, -0.6836718916893005, 0.2087431699037552, -1.3250731229782104, 0.23544281721115112, 0.8963801264762878, -0.6147990822792053, -0.10668197274208069, -0.21725976467132568, -1.3536720275878906, -0.5076249837875366, 0.37787044048309326, 1.9730626344680786, -0.6937015652656555, 0.9365032315254211, 0.9582841992378235, -0.6827943325042725, 0.05040871351957321, 0.29627981781959534, -0.3278723955154419, 0.8072125315666199, -1.0297355651855469, -0.3410157561302185, 1.0039514303207397, -0.11905708909034729, -0.6135889887809753, 1.5263421535491943, 0.8794664740562439, -0.9934267401695251, -0.22501367330551147, -0.3134995400905609, -0.7029637694358826, -0.10724999010562897, -1.5278284549713135, -0.07242999970912933, 0.10649429261684418, -1.4445551633834839, -0.5359160900115967, -0.22986336052417755, 1.3758938312530518, -0.1900375336408615, 1.2674461603164673, -0.16077065467834473, -0.3621198832988739, -0.49981459975242615, -0.48774904012680054, 0.2017640769481659, -0.2521672546863556, -0.5938830971717834, 0.40028899908065796, -0.7962417006492615, 0.31912219524383545, 1.5340005159378052, 0.3866944909095764, 0.06068312004208565, 0.5212128758430481, 0.967402458190918, 0.29036474227905273, -0.12224321067333221, -0.926323652267456, -1.5989831686019897, 1.9764238595962524, -1.509423851966858, 1.9975061416625977, 0.8192635774612427, -0.08988121151924133, -1.8507702350616455, -1.857654333114624, 1.3477274179458618, 1.343593955039978, 2.4255151748657227, 0.5924475789070129, 0.3211243152618408, -0.8542401194572449, -0.6645779013633728, 0.3901439309120178, -1.1662923097610474, -0.7308505773544312, 0.06141635403037071, 2.295494794845581, 1.7338731288909912, -0.6360836029052734, -0.19957201182842255, -1.0458803176879883, 1.250686526298523, -0.08192229270935059, 0.2036142498254776, 2.0273501873016357, -0.3718199133872986, -1.079091191291809, 1.2570782899856567, -2.32913875579834, 0.182786226272583, 1.9664698839187622, 0.38193222880363464, 0.06785619258880615, -1.4448918104171753, -0.6351370215415955, -0.30277395248413086, -0.4687345027923584, -1.2035759687423706, 0.47444024682044983, -0.2716485857963562, -0.9365842938423157, -1.4852432012557983, 0.05481017008423805, -1.1285450458526611, -1.627017617225647, 0.4697391092777252, 1.8069536685943604, 2.056931257247925, -0.8058434128761292, 1.4424182176589966, -0.11606244742870331, 0.12008851766586304, 1.2589155435562134, 1.15060293674469, 3.050013303756714, 1.9875011444091797, -1.152093768119812, 0.7271443605422974, -0.15168586373329163, -0.48342418670654297, 1.1940066814422607, -1.031037449836731, 1.284765362739563, -0.24543076753616333, -1.1848088502883911, -1.300380825996399, 1.0937020778656006, 0.4292963445186615, 0.012243995442986488, -0.5185682773590088, 1.1382173299789429, 0.12341421842575073, 1.2817680835723877, 0.5514631271362305, -0.34968098998069763, 0.538526177406311, -0.4695257544517517, -0.5551795959472656, 1.6452374458312988, 0.27764683961868286, -1.465965986251831, -2.3416614532470703, -0.1386042982339859, -0.8447021245956421, -0.11424568295478821, -0.5900107622146606, -1.0849031209945679, 1.6173874139785767, 0.5009417533874512, -1.2071900367736816, -0.2746273875236511, -0.3172997236251831, -0.5874573588371277, 2.693329095840454, -1.5529004335403442, -0.16125497221946716, -0.9103572964668274, -0.4008864164352417, 1.6783536672592163, -1.291436791419983, -0.1118832379579544, -0.9702131748199463, -0.6575527787208557, -1.270367980003357, -0.48745766282081604, -0.12195849418640137, -0.8383073806762695, 0.6286454200744629, 0.07314753532409668, -1.0511746406555176, -0.33052536845207214, -0.994896411895752, 0.8169347643852234, -0.08418120443820953, 0.3015599548816681, 1.8954744338989258, 0.3701525926589966, -0.4173177480697632, 0.7376858592033386, 1.266155481338501, 0.595780611038208, -0.7131479978561401, 0.1823270320892334, -0.7364252209663391, 0.2141529768705368, -1.3071658611297607, 0.2515300512313843, -2.9066970348358154, 0.5813313126564026, -0.06001809611916542, -0.132295623421669, -0.07657349109649658, -1.3064321279525757, 1.2589540481567383, 2.3990817070007324, -1.1329631805419922, 0.5551163554191589, 0.27110421657562256, 1.2121905088424683, -1.4833498001098633, 0.2972138524055481, -0.46011170744895935, 2.0940420627593994, 0.16613520681858063, 1.1248773336410522, -0.6314516067504883, -1.996208906173706, 0.5825796723365784, -1.2549835443496704, -1.1309446096420288, 0.6220433115959167, -0.9277766346931458, 0.17472021281719208, -1.5110472440719604, -0.10452009737491608, -1.0318366289138794, -1.3265798091888428, 0.7162529826164246, 0.11160421371459961, 0.3962772786617279, -0.6435474157333374, 0.3404540717601776, -2.126192331314087, -1.4016607999801636, -0.2323489636182785, -0.9330580830574036, 0.45456957817077637, -0.3343872129917145, 0.6038334369659424, -0.14576832950115204, 0.10319270193576813, 0.3201450705528259, 1.3634707927703857, 3.335068464279175, 0.11343759298324585, 0.5179451704025269, -0.06655175983905792, -0.8969124555587769, 1.5095102787017822, 1.1037242412567139, 0.0036399737000465393, -0.6738451719284058, -0.9562910199165344, 1.403879165649414, 1.9030334949493408, 1.0935583114624023, 0.18528631329536438, -0.7716752886772156, -0.6344560980796814, 0.01511780358850956, 0.2890987992286682, 0.4560127854347229, 1.0675294399261475, 0.006413278169929981, 0.09102971851825714, 1.366115927696228, 1.3328282833099365, -0.5439528822898865, 0.4170466959476471, -0.9329553842544556, -0.31689324975013733, 0.3372689187526703, 0.4080822169780731, 0.005114451050758362, 0.3194730877876282, -1.0294252634048462, -0.3533845543861389, -0.2574275732040405, -1.0270564556121826, -0.7392088770866394, -0.5053582787513733, -0.5105755925178528, 1.720165491104126, 0.04912814870476723, -0.42615675926208496, -0.13455362617969513, -0.7608953714370728, -0.061148032546043396, -1.0761789083480835, 0.3589664101600647, -0.056131936609745026, 0.0525643490254879, -0.14869078993797302, 1.8298060894012451, -0.9905250072479248, -2.2472779750823975, 0.27738305926322937, 0.34761738777160645, -0.5240398049354553, 0.16097158193588257, 1.5148786306381226, 0.5063444375991821, 1.4210947751998901, 1.39594304561615, 1.1158567667007446, -0.5390392541885376, -1.2842869758605957, 0.6265494227409363, 0.9773251414299011, -1.473793625831604, 0.8557006120681763, 0.013416947796940804, -0.4570624828338623, 0.7612972259521484, 1.244340419769287, 0.3549690246582031, -1.94295334815979, 0.7882862091064453, -0.898780882358551, 0.849459707736969, 0.6475066542625427, 0.8093968033790588, 0.3609311282634735, 0.9413982629776001, -1.27340567111969, -1.105960488319397, -0.9641619324684143, -0.6015654802322388, 1.9305059909820557, -0.19399338960647583, 0.5114867687225342, -0.1356319785118103, -1.1964138746261597, -0.12103703618049622, 0.7571462988853455, 0.35525333881378174, -0.39089542627334595, 0.8688855171203613, -0.5509273409843445, -1.123192310333252, -1.3037464618682861, -0.36994385719299316, -0.8976700901985168, -0.902132511138916, 0.9904035925865173, 0.8475953936576843, 0.38983315229415894, 1.9872220754623413, 0.532927930355072, 0.35470715165138245, -2.680410146713257, 0.8718461990356445, 0.30389589071273804, 0.09015825390815735, 0.9172115325927734, 0.3156341016292572, 1.1380670070648193, -0.06653642654418945, 0.4031461179256439, -2.3491573333740234, 2.159787178039551, -0.2701073884963989, 0.7695910334587097, 0.05635545775294304, -0.09931224584579468, 1.1798874139785767, 0.5183295011520386, 0.6259021162986755, -1.1211154460906982, 0.7009505033493042, -0.621004581451416, 1.2131702899932861, 0.9683966636657715, -0.7071586847305298, 0.0008309260010719299, 1.203902006149292, 0.5180292129516602, -0.4033817648887634, -0.9348320960998535, -0.799037516117096, 0.8540800213813782, 1.6930474042892456, -0.0829053670167923, 0.058909203857183456, 0.8337336778640747, 0.6237807273864746, -1.3269577026367188, 0.1399436891078949, -0.7976842522621155, -0.7381455302238464, 1.764406681060791, 2.0733630657196045, -0.06053975224494934, -0.15357579290866852, -0.7864285707473755, -1.264167070388794, 0.7772495150566101, 0.08517177402973175, 0.2713461220264435, 0.7453080415725708, -0.5920140147209167, 1.0960875749588013, 0.7175213694572449, 0.8870747685432434, -0.04364902898669243, 0.4404495358467102, 0.4631263315677643, -0.26615604758262634, -1.1541494131088257, -0.3746850788593292, -1.1779354810714722, -2.5133066177368164, 0.36742448806762695, -0.39157718420028687, -1.4067152738571167, 0.023078225553035736, -1.1043626070022583, 0.8563230037689209, -0.5931135416030884, -1.0586769580841064, -1.5067417621612549, 0.23997610807418823, -0.12937526404857635, 0.8823786377906799, -1.6286314725875854, -0.06541503220796585, 1.1822969913482666, 0.8581562042236328, -0.4848168194293976, 1.0914243459701538, 0.3342997133731842, 0.9985785484313965, 0.7985730171203613, -0.38437625765800476, 0.4375942349433899, 0.2195558249950409, -1.3472849130630493, 0.48513364791870117, 1.2900618314743042, 0.14931879937648773, 1.3315976858139038, -0.589598536491394, 0.12016801536083221, 0.4987433850765228, -0.5934265851974487, -0.5173253417015076, -0.5480124950408936, 0.8061996698379517, 0.11846643686294556, -1.0707242488861084, 0.02829756587743759, -0.22283120453357697, -0.13131679594516754, 0.20916812121868134, -1.5073662996292114, -0.3772944509983063, -0.39339181780815125, -0.5614544749259949, -1.2489993572235107, 0.04602422937750816, 1.2481073141098022, -0.7037477493286133, -0.13202768564224243, 0.5812956690788269, 0.4413194954395294, 0.6764470338821411, 0.5980241894721985, -0.6639868021011353, -0.35086578130722046, -0.2769227921962738, -0.24504858255386353, 0.3744433522224426, 1.213965892791748, -0.17899416387081146, -0.9425846934318542, 0.6843224763870239, -0.36695438623428345, 0.08295181393623352, 2.0808351039886475, 0.021320996806025505, -0.7929096817970276, 0.34791985154151917, -0.6372990012168884, 1.8691706657409668, 1.5936057567596436, 1.290405511856079, -0.02838205359876156, -0.7797903418540955, 0.5366829037666321, -0.10880504548549652, -0.3886479437351227, 0.8544687032699585, 0.6038661599159241, -0.22737707197666168, -1.427074909210205, 0.5025142431259155, 1.3144277334213257, -0.9711034893989563, -0.859653115272522, 0.11174808442592621, -0.7841567397117615, 1.127721905708313, 0.7381324768066406, 0.4144907295703888, 0.23678193986415863, 1.5179407596588135, 0.6355518698692322, -0.4891037940979004, 0.42197170853614807, 0.5454527735710144, -0.11263617873191833, -2.0325064659118652, -1.0628288984298706, 0.309996634721756, -0.4186241924762726, -1.466347336769104, 1.3157380819320679, -1.138274908065796, -0.9604204893112183, 0.5161976218223572, 0.13652482628822327, 1.4977257251739502, 0.339974969625473, 1.6972415447235107, 2.057649850845337, 0.9277746081352234, 0.2915675938129425, 1.463808298110962, 0.025462761521339417, -0.46973347663879395, 1.8576161861419678, -0.42955532670021057, 0.6641260981559753, 1.0655815601348877, -0.3454297184944153, -1.0616843700408936, -0.7632519602775574, -1.0955665111541748, -0.5169302225112915, 1.1620728969573975, 0.22662030160427094, -1.1284945011138916, 0.16501609981060028, 1.4741034507751465, 0.13855871558189392, -0.272072434425354, 0.441142201423645, 0.38345494866371155, -0.69053715467453, -0.03324706107378006, -1.0696711540222168, 0.5335042476654053, -0.19161805510520935, -0.3310162127017975, 0.2853868305683136, 0.4797106683254242, 1.1182785034179688, -0.044958360493183136, 0.2220708429813385, 1.2525047063827515, -1.486045479774475, 1.482845425605774, -0.5955687165260315, 0.18979059159755707, -2.45817232131958, 1.5246108770370483, -0.7030332684516907, 1.8154795169830322, -2.776278018951416, 0.3668699264526367, -0.6631500720977783, -0.49702611565589905, 0.3549714982509613, -0.3506302237510681, 0.12437421083450317, -0.17650172114372253, -1.1206287145614624, 0.03477520868182182, -0.7876175045967102, 0.4374212324619293, 1.0880428552627563, 1.2353497743606567, -1.0827971696853638, -0.34378600120544434, -1.7763447761535645, -0.14642485976219177, -0.7048711776733398, 0.3067907989025116, -2.094475507736206, -0.11855490505695343, -1.936942219734192, -2.1408193111419678, -1.4417452812194824, -0.9265192151069641, 1.0465266704559326, 0.21423153579235077, -0.902389645576477, 1.0233217477798462, -0.3845955729484558, -1.756437063217163, 0.9810042381286621, -2.1735191345214844 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
Hi @kingabzpro. I think you need to create a loading script that creates the dataset from the CSV file and the image paths. As example, you could have a look at the Food-101 dataset: https://huggingface.co/datasets/food101 - Loading script: https://huggingface.co/datasets/food101/blob/main/food101.py Once the loading script is created, the viewer will show a previsualization of your dataset.
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
940
54
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes Hi @kingabzpro. I think you need to create a loading script that creates the dataset from the CSV file and the image paths. As example, you could have a look at the Food-101 dataset: https://huggingface.co/datasets/food101 - Loading script: https://huggingface.co/datasets/food101/blob/main/food101.py Once the loading script is created, the viewer will show a previsualization of your dataset.
[ -1.2094651460647583, -0.8773251175880432, -0.9117984771728516, 1.304244041442871, -0.224848210811615, -1.3316890001296997, -0.008034106343984604, -1.0191518068313599, 1.6458643674850464, -0.7226305603981018, 0.23505498468875885, -1.6898040771484375, -0.0636194497346878, -0.508163571357727, -0.8402959704399109, -0.9133782386779785, -0.40548619627952576, -0.7978487610816956, 0.9679218530654907, 2.5145163536071777, 1.1410353183746338, -1.4198933839797974, 2.728778600692749, 0.6544361114501953, -0.13389526307582855, -1.054003357887268, 0.633251965045929, 0.09872707724571228, -1.2210776805877686, -0.46352311968803406, -0.9441608190536499, -0.02899867668747902, -0.5202729105949402, -0.482595294713974, 0.1608487218618393, 0.3168121874332428, -0.14231343567371368, -0.23605449497699738, -0.5821904540061951, -0.8179190754890442, 0.4826592206954956, -0.41845688223838806, 0.8739380836486816, -0.42322543263435364, 1.8621653318405151, -0.565718948841095, 0.23832066357135773, 0.7222980856895447, 1.2874170541763306, 0.09208643436431885, 0.01369671430438757, 0.304641991853714, 0.472145676612854, 0.030369576066732407, 0.3987610936164856, 1.188045620918274, 0.5243632793426514, 0.4792424142360687, 0.6771112084388733, -2.1741504669189453, 1.4361035823822021, -0.9498089551925659, 0.33664628863334656, 1.4605839252471924, -1.043213129043579, 0.42152926325798035, -1.772888422012329, -0.06002480164170265, 0.5288620591163635, -2.391496419906616, 0.18978768587112427, -1.20624577999115, -0.6393784880638123, 0.8163718581199646, 0.24624449014663696, -1.2380321025848389, 0.20735710859298706, -0.5438607335090637, 1.0612246990203857, 0.5000673532485962, 1.283953070640564, -1.6896182298660278, -0.0780257135629654, -0.22865700721740723, 0.10096192359924316, -1.4277002811431885, -1.503333330154419, 0.5985639095306396, 0.6756782531738281, 0.5810638666152954, -0.09206068515777588, 0.8161225318908691, -0.9759639501571655, 0.9188088178634644, -0.9293824434280396, -1.6090929508209229, -1.5233426094055176, -2.3457279205322266, -2.2473416328430176, 0.8564439415931702, -0.49621859192848206, -0.4700848460197449, 1.949453592300415, -1.07779860496521, -1.7946361303329468, 1.1073933839797974, 0.2231142818927765, 0.11827550828456879, 2.401576042175293, 0.2254655957221985, -0.6949074864387512, 0.2834331691265106, -0.6966024041175842, 0.8925013542175293, -0.42132368683815, 1.3317116498947144, 0.6459816694259644, -0.8738342523574829, 1.6463128328323364, -0.5850629210472107, 0.49554550647735596, -0.7030357122421265, -0.4482576549053192, -0.8657835721969604, 0.3759784400463104, 1.8695095777511597, -0.3328372836112976, 1.621228575706482, -0.4680668115615845, -1.6331180334091187, -1.527766227722168, 0.8289933204650879, 0.5980687737464905, -0.8292466402053833, 0.09016945213079453, -0.346627414226532, 0.13693983852863312, -0.10297994315624237, 1.051375389099121, 1.1384960412979126, 0.6357293128967285, -0.33067962527275085, -0.8121178150177002, 0.2493172287940979, -0.07893472164869308, -0.8028210401535034, -1.8404885530471802, -0.3544370234012604, 0.21903394162654877, 0.6437526941299438, -1.2344015836715698, 1.6679338216781616, 0.8471099138259888, 2.0179920196533203, 0.9294953346252441, -0.3131929636001587, 1.4550265073776245, -0.03999142721295357, 1.885715365409851, -0.5146635174751282, 0.7027571201324463, -0.30823585391044617, -1.1093473434448242, 0.8203689455986023, -0.42539530992507935, -2.0186266899108887, -0.7798926830291748, -0.9860047698020935, -0.16268211603164673, -0.7054733037948608, 0.9624033570289612, -0.27255651354789734, -1.372776746749878, 0.16927587985992432, -0.6327312588691711, 0.0902152732014656, -1.2902392148971558, 0.16322824358940125, 0.8063512444496155, -0.6840840578079224, -0.1408919245004654, -0.2542089521884918, -1.3430837392807007, -0.5194858908653259, 0.2497236728668213, 1.968338131904602, -0.700364351272583, 0.9574998617172241, 0.8455501198768616, -0.6838445067405701, 0.03692886605858803, 0.3026265501976013, -0.22567352652549744, 0.7842002511024475, -0.9940731525421143, -0.3597806990146637, 1.0406975746154785, -0.11708801239728928, -0.6066027879714966, 1.4959288835525513, 0.8498390316963196, -0.9571341276168823, -0.2504708170890808, -0.259692519903183, -0.8067216873168945, -0.07568156719207764, -1.5822033882141113, -0.24163761734962463, 0.06665083765983582, -1.4972437620162964, -0.5302478075027466, -0.2739294171333313, 1.2943274974822998, -0.11394893378019333, 1.381501317024231, -0.3421325981616974, -0.287089079618454, -0.46599194407463074, -0.4562700092792511, 0.24318468570709229, -0.22563053667545319, -0.6595253944396973, 0.33957794308662415, -0.8570504784584045, 0.20775458216667175, 1.4331750869750977, 0.49675601720809937, 0.08336704224348068, 0.6192620396614075, 1.02669358253479, 0.24501323699951172, -0.0054122693836688995, -0.9258832335472107, -1.5736463069915771, 1.9969227313995361, -1.4608074426651, 1.952097773551941, 0.7863128185272217, -0.05123944953083992, -1.7575302124023438, -1.855177402496338, 1.414928913116455, 1.2054153680801392, 2.354994297027588, 0.5646407604217529, 0.3528521955013275, -0.8159311413764954, -0.6467998623847961, 0.26900747418403625, -1.0192458629608154, -0.7530627250671387, 0.021672677248716354, 2.307065486907959, 1.7312041521072388, -0.6707575917243958, -0.17923736572265625, -1.0049958229064941, 1.2833980321884155, -0.12876643240451813, 0.25487402081489563, 2.0449893474578857, -0.32575350999832153, -1.015581488609314, 1.2411335706710815, -2.2684311866760254, 0.15629102289676666, 1.9915528297424316, 0.2586040496826172, 0.16113366186618805, -1.3921829462051392, -0.6973496675491333, -0.23312103748321533, -0.47411778569221497, -1.252152442932129, 0.540556013584137, -0.3967713713645935, -0.8988197445869446, -1.4686909914016724, 0.04188507795333862, -1.1006771326065063, -1.6959195137023926, 0.449095219373703, 1.8352142572402954, 2.0087594985961914, -0.7607152462005615, 1.4146112203598022, -0.26332440972328186, 0.1614002138376236, 1.3260432481765747, 1.1910626888275146, 3.101952314376831, 1.929760456085205, -1.2374409437179565, 0.6819400787353516, -0.1820460855960846, -0.39194607734680176, 1.1737642288208008, -0.9673420190811157, 1.1708643436431885, -0.25003406405448914, -1.176992416381836, -1.1911330223083496, 1.0524729490280151, 0.5205883979797363, 0.003458072431385517, -0.5037003755569458, 1.333048939704895, -0.03412693366408348, 1.3448697328567505, 0.5293411612510681, -0.4419105052947998, 0.623140811920166, -0.40141981840133667, -0.5223507881164551, 1.6754618883132935, 0.10965483635663986, -1.5460245609283447, -2.391608953475952, -0.25019681453704834, -0.8486083745956421, -0.1371893733739853, -0.6267284154891968, -1.0394482612609863, 1.7184884548187256, 0.5375341176986694, -1.247763991355896, -0.3659076690673828, -0.4646061956882477, -0.6631113290786743, 2.613626718521118, -1.5015722513198853, -0.19015729427337646, -0.9017978310585022, -0.43377843499183655, 1.5927622318267822, -1.2144898176193237, -0.1847165822982788, -1.0875219106674194, -0.6350306868553162, -1.3599822521209717, -0.5080149173736572, -0.07234162092208862, -0.9040542840957642, 0.845396876335144, 0.009355391375720501, -1.0146846771240234, -0.21691638231277466, -0.8774317502975464, 0.922434389591217, -0.048594001680612564, 0.2211327999830246, 2.0137939453125, 0.33297720551490784, -0.3869200646877289, 0.5704339146614075, 1.1316436529159546, 0.6238999962806702, -0.6832991242408752, 0.16923530399799347, -0.6213179230690002, 0.2645551860332489, -1.4016196727752686, 0.25515469908714294, -2.909808874130249, 0.7037707567214966, -0.009538078680634499, -0.001346382312476635, -0.05668272823095322, -1.2615727186203003, 1.1520386934280396, 2.645594358444214, -1.1755754947662354, 0.3909741938114166, 0.3257678151130676, 1.1533143520355225, -1.6378668546676636, 0.32096073031425476, -0.41085484623908997, 2.059540271759033, 0.23155681788921356, 1.1999213695526123, -0.48682111501693726, -2.0671768188476562, 0.5951054096221924, -1.1944328546524048, -1.0612486600875854, 0.7352044582366943, -0.7307281494140625, 0.19005464017391205, -1.5377447605133057, -0.047949645668268204, -0.9342551827430725, -1.2509578466415405, 0.8083954453468323, 0.12807461619377136, 0.4971562623977661, -0.6836575269699097, 0.30993184447288513, -2.1476593017578125, -1.3267109394073486, -0.24004356563091278, -0.8770598769187927, 0.5755575895309448, -0.2753375470638275, 0.6521692872047424, -0.054195791482925415, 0.14022774994373322, 0.3362630605697632, 1.3001121282577515, 3.5057785511016846, 0.15562619268894196, 0.3493673801422119, -0.048228323459625244, -0.963800847530365, 1.4949214458465576, 1.0324788093566895, -0.0045632971450686455, -0.56690913438797, -1.0325038433074951, 1.3720687627792358, 1.965062141418457, 1.1523094177246094, 0.11236268281936646, -0.7900704741477966, -0.6572685837745667, 0.1163882315158844, 0.2273978590965271, 0.5156343579292297, 0.9617447257041931, -0.042625900357961655, 0.17135661840438843, 1.4768935441970825, 1.3068416118621826, -0.3592648208141327, 0.5256765484809875, -0.9332942962646484, -0.435488224029541, 0.4474729597568512, 0.34946438670158386, -0.016339074820280075, 0.4825374186038971, -1.0375748872756958, -0.3035324811935425, -0.17324337363243103, -1.0265367031097412, -0.6469610333442688, -0.4148159325122833, -0.5101205706596375, 1.6054023504257202, 0.14056353271007538, -0.3958891034126282, -0.06367196142673492, -0.7301280498504639, -0.16797681152820587, -1.0641796588897705, 0.32839861512184143, -0.09437745809555054, -0.005499057471752167, -0.14751486480236053, 1.7528096437454224, -0.9378069639205933, -2.108647584915161, 0.3152502477169037, 0.35521596670150757, -0.48883554339408875, 0.07540526986122131, 1.5902206897735596, 0.46640512347221375, 1.3617442846298218, 1.3873564004898071, 1.0063000917434692, -0.631277859210968, -1.2460700273513794, 0.6353583335876465, 0.8629225492477417, -1.4053374528884888, 0.869369626045227, -0.11076336354017258, -0.6014150977134705, 0.7647876739501953, 1.3776919841766357, 0.33311212062835693, -1.9626612663269043, 0.8048341870307922, -0.8193380832672119, 0.7656654119491577, 0.6263342499732971, 0.8713998198509216, 0.24137863516807556, 0.9435254335403442, -1.311235785484314, -1.1201988458633423, -0.8831813931465149, -0.4796043634414673, 1.9024972915649414, -0.1047016903758049, 0.49415379762649536, -0.2563909888267517, -1.2074579000473022, -0.13740137219429016, 0.6911785006523132, 0.37355563044548035, -0.295405775308609, 0.8347042798995972, -0.637436032295227, -1.1233055591583252, -1.3543542623519897, -0.48481613397598267, -0.913609504699707, -0.8339671492576599, 0.9627525210380554, 0.9002010822296143, 0.37821656465530396, 1.9705830812454224, 0.5284520983695984, 0.16767115890979767, -2.7151436805725098, 0.8459408283233643, 0.19098487496376038, 0.13774003088474274, 0.9421440362930298, 0.18956492841243744, 1.1707844734191895, 0.03947724774479866, 0.5027053952217102, -2.400007486343384, 2.176515579223633, -0.27713125944137573, 0.6946296691894531, 0.04112529754638672, -0.18235459923744202, 1.085770845413208, 0.6427364945411682, 0.5572012662887573, -1.1223952770233154, 0.7399192452430725, -0.6315295696258545, 1.084648609161377, 1.0321605205535889, -0.7699257135391235, 0.013256101869046688, 1.4077157974243164, 0.5786508917808533, -0.4273756742477417, -0.8909457921981812, -0.8458451628684998, 0.9008437395095825, 1.8276811838150024, -0.06246158108115196, -0.031056907027959824, 0.8001455068588257, 0.6602069735527039, -1.2229180335998535, 0.12315189838409424, -0.7806493639945984, -0.685465395450592, 1.6298027038574219, 2.00544810295105, 0.06261499226093292, -0.12386160343885422, -0.6886010766029358, -1.147163987159729, 0.6964833736419678, 0.004562822170555592, 0.08919712901115417, 0.8650970458984375, -0.6270768046379089, 1.208541750907898, 0.6744534373283386, 1.0005320310592651, -0.006183096673339605, 0.4015289545059204, 0.34886661171913147, -0.2772476375102997, -1.173389196395874, -0.3868718445301056, -1.1296255588531494, -2.4754512310028076, 0.47192880511283875, -0.31607308983802795, -1.4235869646072388, 0.011777554638683796, -1.0769420862197876, 0.9672048687934875, -0.6017720103263855, -1.0649839639663696, -1.506986379623413, 0.23534278571605682, -0.12300803512334824, 0.8532596230506897, -1.6529154777526855, -0.024743424728512764, 1.3589979410171509, 0.7548043131828308, -0.5277810096740723, 1.0800371170043945, 0.28899693489074707, 1.0249345302581787, 0.830845832824707, -0.3819659650325775, 0.35290277004241943, 0.11673144996166229, -1.3459389209747314, 0.5000025033950806, 1.1193537712097168, 0.19103676080703735, 1.3813518285751343, -0.5410978198051453, 0.12212589383125305, 0.48492467403411865, -0.5609110593795776, -0.544158935546875, -0.5681592226028442, 0.8139576315879822, 0.07912038266658783, -0.9655431509017944, 0.06315097212791443, -0.17539207637310028, -0.2204122394323349, 0.300705224275589, -1.3771835565567017, -0.26419684290885925, -0.34454336762428284, -0.4488668143749237, -1.2868155241012573, -0.04734640195965767, 1.3036104440689087, -0.8202064037322998, -0.15474098920822144, 0.5513811111450195, 0.35363492369651794, 0.5705298185348511, 0.6132965087890625, -0.6064359545707703, -0.40274009108543396, -0.30950796604156494, -0.2921837568283081, 0.20543503761291504, 1.1566377878189087, -0.22817419469356537, -1.0290279388427734, 0.7042241096496582, -0.3782397210597992, 0.0663592740893364, 2.025059461593628, 0.03361082077026367, -0.7762519121170044, 0.333676815032959, -0.6040671467781067, 1.847684383392334, 1.6234700679779053, 1.351554036140442, -0.06818996369838715, -0.8487877249717712, 0.3822788596153259, -0.1802627146244049, -0.30494916439056396, 0.8827136754989624, 0.5551180839538574, -0.1780594289302826, -1.4241434335708618, 0.47240543365478516, 1.3181860446929932, -0.9075184464454651, -0.7281444072723389, 0.08206214010715485, -0.8352776169776917, 1.0329697132110596, 0.7072123885154724, 0.42565274238586426, 0.2276032567024231, 1.5720995664596558, 0.6278821229934692, -0.536570131778717, 0.42338472604751587, 0.5490624308586121, -0.1945854276418686, -2.133204698562622, -0.9174565076828003, 0.28987762331962585, -0.34405359625816345, -1.538763165473938, 1.3243762254714966, -1.2217893600463867, -0.8965763449668884, 0.5148178339004517, 0.17336061596870422, 1.3802275657653809, 0.31199532747268677, 1.7631691694259644, 2.0487101078033447, 0.8144010305404663, 0.2350851446390152, 1.3703792095184326, -0.014221633784472942, -0.4438673257827759, 1.7718006372451782, -0.3700622618198395, 0.644851803779602, 1.0196073055267334, -0.4788605272769928, -1.039924144744873, -0.7732461094856262, -1.144777774810791, -0.5814400315284729, 1.2019933462142944, 0.16317181289196014, -1.157887578010559, 0.05874358117580414, 1.4967083930969238, 0.1514897346496582, -0.25914669036865234, 0.6072676181793213, 0.4634472727775574, -0.7439781427383423, -0.08094558119773865, -0.9973819255828857, 0.43066444993019104, -0.16904272139072418, -0.31256312131881714, 0.2555357813835144, 0.5819376111030579, 1.2081228494644165, -0.05473636835813522, 0.17632851004600525, 1.3575496673583984, -1.3363850116729736, 1.4722777605056763, -0.5843305587768555, 0.23266227543354034, -2.522418975830078, 1.4121514558792114, -0.8036140203475952, 1.8944206237792969, -2.6347501277923584, 0.35123202204704285, -0.5706744194030762, -0.39828503131866455, 0.3520500063896179, -0.3126879036426544, 0.08090953528881073, -0.05686403810977936, -1.018762230873108, 0.039752982556819916, -0.8823255896568298, 0.4967934489250183, 1.2469724416732788, 1.4227994680404663, -1.15520441532135, -0.2794094681739807, -1.8261771202087402, -0.19977596402168274, -0.7555010914802551, 0.48705005645751953, -2.039393424987793, -0.09126538783311844, -1.95180344581604, -2.359494209289551, -1.5836373567581177, -0.9449793696403503, 1.0865453481674194, 0.1771872341632843, -0.9005330204963684, 0.9651156067848206, -0.3807860314846039, -1.709081768989563, 1.1000064611434937, -2.1588101387023926 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
@albertvillanova I don't think this is the issue. I have created another dataset with similar files and format and it works. https://huggingface.co/datasets/kingabzpro/savtadepth-flags-V2
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
940
22
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes @albertvillanova I don't think this is the issue. I have created another dataset with similar files and format and it works. https://huggingface.co/datasets/kingabzpro/savtadepth-flags-V2
[ -1.2466498613357544, -0.8999029397964478, -0.8723715543746948, 1.3232790231704712, -0.22026579082012177, -1.3257287740707397, 0.08081017434597015, -0.9999654293060303, 1.6380800008773804, -0.675596296787262, 0.2960202097892761, -1.6662535667419434, -0.07037726044654846, -0.5486710071563721, -0.8119353652000427, -0.8676217794418335, -0.3288101851940155, -0.7907999157905579, 1.02155601978302, 2.466526746749878, 1.0692118406295776, -1.4242924451828003, 2.7308340072631836, 0.6060143709182739, -0.19071118533611298, -1.0512361526489258, 0.6185857057571411, 0.13766855001449585, -1.2857584953308105, -0.5364342331886292, -0.9342755079269409, 0.005813010968267918, -0.4375181794166565, -0.4503098726272583, 0.22502879798412323, 0.3965259790420532, -0.08716996014118195, -0.2481626272201538, -0.568301260471344, -0.8238619565963745, 0.38110101222991943, -0.415724515914917, 0.7834250926971436, -0.42077478766441345, 1.8453001976013184, -0.5508370399475098, 0.2368260771036148, 0.695424497127533, 1.3530009984970093, 0.017577316612005234, -0.06169682741165161, 0.2886584401130676, 0.4854893088340759, 0.05140820890665054, 0.3910532593727112, 1.1645816564559937, 0.4981294274330139, 0.4946785569190979, 0.6150256395339966, -2.1744964122772217, 1.459149956703186, -1.0047508478164673, 0.3169633150100708, 1.5043342113494873, -1.096194863319397, 0.4316551983356476, -1.7787970304489136, -0.06752914935350418, 0.4839668273925781, -2.450669288635254, 0.1844957321882248, -1.2119101285934448, -0.6018155217170715, 0.7524598836898804, 0.23075023293495178, -1.2701212167739868, 0.10270802676677704, -0.531528115272522, 1.0683696269989014, 0.4191090166568756, 1.2696406841278076, -1.6010180711746216, -0.07988186925649643, -0.2596120536327362, 0.09097763150930405, -1.4768993854522705, -1.497374415397644, 0.6712281703948975, 0.7377412915229797, 0.5785136818885803, -0.11919275671243668, 0.8523324131965637, -1.0744824409484863, 0.909052312374115, -0.9298080801963806, -1.6044889688491821, -1.5239334106445312, -2.3365554809570312, -2.157249689102173, 0.8589595556259155, -0.48949334025382996, -0.4495874047279358, 1.956154465675354, -1.0779215097427368, -1.7824167013168335, 1.1060163974761963, 0.1841256469488144, 0.13046668469905853, 2.4186642169952393, 0.22320957481861115, -0.7162144780158997, 0.279939204454422, -0.7280807495117188, 0.8908129334449768, -0.4282422959804535, 1.3332881927490234, 0.57623690366745, -0.8829227089881897, 1.5655491352081299, -0.4490869641304016, 0.4704476594924927, -0.6961881518363953, -0.43527767062187195, -0.8575555682182312, 0.3620031177997589, 1.9132440090179443, -0.30230584740638733, 1.6116952896118164, -0.4612293243408203, -1.6125277280807495, -1.4853780269622803, 0.8222289681434631, 0.6419761776924133, -0.7459372282028198, 0.05620143562555313, -0.3975476026535034, 0.16152450442314148, -0.12448212504386902, 1.0943571329116821, 1.1145316362380981, 0.6292877793312073, -0.3170204758644104, -0.722468376159668, 0.3170648515224457, -0.05200944468379021, -0.7208250761032104, -1.8593471050262451, -0.37093502283096313, 0.21981370449066162, 0.6603024005889893, -1.2484310865402222, 1.651726245880127, 0.8849854469299316, 1.9687622785568237, 0.9977782368659973, -0.2825436592102051, 1.4984444379806519, 0.008422828279435635, 1.8368170261383057, -0.522654116153717, 0.7068851590156555, -0.28501057624816895, -1.020021915435791, 0.8322187066078186, -0.4325562119483948, -1.9323391914367676, -0.7429612278938293, -1.0328052043914795, -0.16512593626976013, -0.6952754259109497, 1.0019131898880005, -0.29677435755729675, -1.446235179901123, 0.12064672261476517, -0.6146579384803772, 0.07721047848463058, -1.256193995475769, 0.16865326464176178, 0.8346012234687805, -0.7059287428855896, -0.0901966243982315, -0.30022284388542175, -1.351707935333252, -0.5305460691452026, 0.24307559430599213, 1.984900712966919, -0.742555558681488, 0.9765704870223999, 0.8372266292572021, -0.7556042075157166, 0.06594707071781158, 0.3191688656806946, -0.21939325332641602, 0.7676390409469604, -0.992949903011322, -0.35768938064575195, 1.0338054895401, -0.1767030954360962, -0.5320273041725159, 1.5351299047470093, 0.7951295375823975, -0.9421499371528625, -0.2660103738307953, -0.27053651213645935, -0.7926672697067261, -0.07520341128110886, -1.6072269678115845, -0.2427213490009308, 0.0716707706451416, -1.5370372533798218, -0.5077113509178162, -0.2647792398929596, 1.2853997945785522, -0.10774107277393341, 1.3507314920425415, -0.24965383112430573, -0.2515815794467926, -0.3892369866371155, -0.4474385380744934, 0.25606968998908997, -0.22433257102966309, -0.6611790657043457, 0.4349226951599121, -0.8692395687103271, 0.24663634598255157, 1.4128963947296143, 0.5375191569328308, 0.02891835942864418, 0.6937469244003296, 0.9723911285400391, 0.32350417971611023, -0.047518547624349594, -0.9650309085845947, -1.5640774965286255, 1.999080777168274, -1.5739436149597168, 1.9382253885269165, 0.7850626707077026, -0.06727961450815201, -1.6953203678131104, -1.8703114986419678, 1.4668961763381958, 1.2438936233520508, 2.3758535385131836, 0.6466568112373352, 0.3301162123680115, -0.7568823099136353, -0.6381760239601135, 0.2606634199619293, -1.0489492416381836, -0.7471261024475098, 0.019172340631484985, 2.2647781372070312, 1.7639083862304688, -0.7007996439933777, -0.1959639936685562, -0.9979550838470459, 1.242272973060608, -0.06647267937660217, 0.32839256525039673, 2.0639612674713135, -0.3518301248550415, -0.9990692734718323, 1.2397733926773071, -2.241447925567627, 0.186475932598114, 1.9874894618988037, 0.22526296973228455, 0.0867510586977005, -1.4123204946517944, -0.6057437062263489, -0.18369291722774506, -0.4931781589984894, -1.2897065877914429, 0.6791346073150635, -0.37520503997802734, -0.8678964376449585, -1.5156991481781006, 0.11790568381547928, -1.1362909078598022, -1.6975898742675781, 0.5232898592948914, 1.9000499248504639, 2.081592321395874, -0.7327160239219666, 1.4098212718963623, -0.2545803189277649, 0.18724046647548676, 1.2569564580917358, 1.1147722005844116, 3.028355121612549, 1.9768351316452026, -1.1780471801757812, 0.6556349992752075, -0.14325784146785736, -0.42062273621559143, 1.1318700313568115, -0.9586893916130066, 1.1500529050827026, -0.19919748604297638, -1.1172981262207031, -1.2057278156280518, 1.0336174964904785, 0.5143130421638489, -0.048195187002420425, -0.5062421560287476, 1.3469783067703247, -0.03532392531633377, 1.329277753829956, 0.5091389417648315, -0.41878005862236023, 0.6662279963493347, -0.479682981967926, -0.44560506939888, 1.6454763412475586, 0.07405341416597366, -1.6116584539413452, -2.4154038429260254, -0.18935734033584595, -0.8500409722328186, -0.036639146506786346, -0.6696061491966248, -0.9613949656486511, 1.719136118888855, 0.6279268860816956, -1.2227803468704224, -0.3141467571258545, -0.4630008637905121, -0.7336170673370361, 2.56552791595459, -1.4804086685180664, -0.2289937138557434, -0.924662172794342, -0.4466099441051483, 1.5561989545822144, -1.244722604751587, -0.1734692007303238, -1.0718883275985718, -0.5795144438743591, -1.3315846920013428, -0.5119646191596985, -0.05814884230494499, -0.9310343265533447, 0.9001505970954895, 0.00016025081276893616, -1.001080870628357, -0.24973691999912262, -0.8846532702445984, 0.9084022045135498, -0.028292350471019745, 0.2294621616601944, 1.995460867881775, 0.29358401894569397, -0.4004729092121124, 0.644135057926178, 1.101405143737793, 0.6448248028755188, -0.6759456992149353, 0.20295634865760803, -0.6106632947921753, 0.29411694407463074, -1.3819468021392822, 0.3106630742549896, -2.9725592136383057, 0.7574695348739624, -0.011792957782745361, 0.02568995952606201, -0.11297450959682465, -1.3157544136047363, 1.2150799036026, 2.628959894180298, -1.1525993347167969, 0.4312274754047394, 0.3683308959007263, 1.1680786609649658, -1.5857517719268799, 0.3755902349948883, -0.4465428590774536, 2.0911073684692383, 0.22611898183822632, 1.1707359552383423, -0.46260982751846313, -2.049344062805176, 0.5927543640136719, -1.215258240699768, -1.0411205291748047, 0.635053277015686, -0.7233760952949524, 0.17130479216575623, -1.6078966856002808, -0.10219529271125793, -0.9080301523208618, -1.2576948404312134, 0.8180745244026184, 0.10934717953205109, 0.45948392152786255, -0.7045425176620483, 0.3603072464466095, -2.112819194793701, -1.3347015380859375, -0.19455602765083313, -0.8762556314468384, 0.5500390529632568, -0.2911982238292694, 0.664840579032898, -0.02695886790752411, 0.18155191838741302, 0.33692052960395813, 1.3056963682174683, 3.4937918186187744, 0.09892811626195908, 0.3883377015590668, -0.0987442284822464, -0.9730907678604126, 1.5569219589233398, 1.1162011623382568, -0.011130948550999165, -0.5877124071121216, -1.100106954574585, 1.3894779682159424, 1.958808183670044, 1.1390365362167358, 0.12191968411207199, -0.8092215061187744, -0.6682544946670532, 0.06876666098833084, 0.18412485718727112, 0.5586892366409302, 0.990374743938446, 0.03647511452436447, 0.24135158956050873, 1.5126961469650269, 1.312960147857666, -0.4351603090763092, 0.5446171760559082, -0.914980947971344, -0.35962697863578796, 0.3761415481567383, 0.3529815077781677, -0.04742217808961868, 0.42158493399620056, -0.9550480246543884, -0.36254969239234924, -0.12359625101089478, -1.0702457427978516, -0.61026531457901, -0.3202376961708069, -0.5096603035926819, 1.5998455286026, 0.14629404246807098, -0.4564451575279236, -0.08492868393659592, -0.7283424139022827, -0.20531296730041504, -1.0760154724121094, 0.31595805287361145, -0.08950242400169373, 0.04928257688879967, -0.1353837251663208, 1.7786409854888916, -0.8631178736686707, -2.158693313598633, 0.2840164303779602, 0.38024869561195374, -0.48335814476013184, 0.04534594342112541, 1.6044273376464844, 0.5090817213058472, 1.315962791442871, 1.3480957746505737, 1.0293571949005127, -0.5755268931388855, -1.2884286642074585, 0.6167053580284119, 0.8333985209465027, -1.3727538585662842, 0.7996115684509277, -0.09829451143741608, -0.5444783568382263, 0.7844833731651306, 1.341947078704834, 0.35355836153030396, -1.9453125, 0.8000742197036743, -0.8804497718811035, 0.7566223740577698, 0.6272044777870178, 0.8144367933273315, 0.29418429732322693, 0.9778690934181213, -1.310758352279663, -1.077353596687317, -0.8927315473556519, -0.470083624124527, 1.913114309310913, -0.16995418071746826, 0.49444806575775146, -0.20365022122859955, -1.215035319328308, -0.2044338881969452, 0.6872669458389282, 0.32042190432548523, -0.2339300960302353, 0.7856783866882324, -0.6547018885612488, -1.1035035848617554, -1.3264299631118774, -0.4211026728153229, -0.9309859871864319, -0.8734132051467896, 0.9719536900520325, 0.8917476534843445, 0.40858492255210876, 1.93885338306427, 0.5230556130409241, 0.15681171417236328, -2.7445292472839355, 0.8384971618652344, 0.2381659597158432, 0.1704137623310089, 0.9659058451652527, 0.22364066541194916, 1.2450823783874512, 0.05496257543563843, 0.4899040162563324, -2.3257718086242676, 2.190558433532715, -0.27162420749664307, 0.7074966430664062, 0.0891009196639061, -0.16964733600616455, 1.092178463935852, 0.605909526348114, 0.6574506759643555, -1.1014708280563354, 0.7940481305122375, -0.6742905974388123, 1.0713413953781128, 1.0872288942337036, -0.7515503764152527, 0.0032685035839676857, 1.3573020696640015, 0.5965119004249573, -0.4411383271217346, -0.9132823348045349, -0.8472013473510742, 0.833362877368927, 1.8078558444976807, -0.07425002753734589, -0.12736275792121887, 0.7910528779029846, 0.6517989039421082, -1.2211852073669434, 0.08914504945278168, -0.7196189165115356, -0.5958598852157593, 1.6496024131774902, 2.074678897857666, 0.09384942799806595, -0.16263309121131897, -0.6711134910583496, -1.1125959157943726, 0.6530548334121704, 0.0004001446068286896, 0.06212547421455383, 0.8798107504844666, -0.63893723487854, 1.1372857093811035, 0.7420881390571594, 1.0453625917434692, -0.02087634615600109, 0.37717196345329285, 0.36189842224121094, -0.2654278576374054, -1.220496654510498, -0.47143784165382385, -1.147050142288208, -2.488576650619507, 0.45177456736564636, -0.37713855504989624, -1.3252869844436646, -0.008456014096736908, -1.1412714719772339, 0.9375778436660767, -0.6144700050354004, -1.0729893445968628, -1.5146790742874146, 0.20611077547073364, -0.18687590956687927, 0.7861146330833435, -1.6507047414779663, -0.09736873209476471, 1.3292534351348877, 0.7841042876243591, -0.5692001581192017, 1.1326547861099243, 0.2641608715057373, 1.0320993661880493, 0.7846516966819763, -0.40018296241760254, 0.36468642950057983, 0.14516712725162506, -1.381752848625183, 0.5591214299201965, 1.1249278783798218, 0.15424393117427826, 1.3672350645065308, -0.5601435303688049, 0.1401921808719635, 0.5703513622283936, -0.602686882019043, -0.541874885559082, -0.5377187728881836, 0.8566253781318665, 0.009040574543178082, -0.9763069748878479, 0.026120811700820923, -0.172796368598938, -0.22954465448856354, 0.28017616271972656, -1.4747238159179688, -0.2805675268173218, -0.2994929552078247, -0.46848228573799133, -1.3549878597259521, -0.034301336854696274, 1.2911449670791626, -0.8047881126403809, -0.2078724205493927, 0.533385694026947, 0.3968314230442047, 0.5430962443351746, 0.5888082385063171, -0.6301906704902649, -0.33574992418289185, -0.28953105211257935, -0.3439136743545532, 0.306259423494339, 1.2786017656326294, -0.2888854444026947, -1.068142056465149, 0.6635535955429077, -0.2830277383327484, 0.06666558980941772, 2.0258288383483887, -0.027196668088436127, -0.7740164995193481, 0.29774248600006104, -0.6398859620094299, 1.8932558298110962, 1.5380445718765259, 1.3443952798843384, -0.08310892432928085, -0.8197288513183594, 0.3712775707244873, -0.18890555202960968, -0.33115866780281067, 0.8119458556175232, 0.5481311082839966, -0.15397128462791443, -1.4375792741775513, 0.48858442902565, 1.2782891988754272, -0.9292489886283875, -0.7164264917373657, 0.055027253925800323, -0.9029006361961365, 1.0403696298599243, 0.6615557074546814, 0.4656051695346832, 0.21375147998332977, 1.546089768409729, 0.629287600517273, -0.5055554509162903, 0.38866445422172546, 0.5234158635139465, -0.20795856416225433, -2.1620938777923584, -0.9832516312599182, 0.31989067792892456, -0.3486096262931824, -1.5389941930770874, 1.3464478254318237, -1.2202097177505493, -0.8876391649246216, 0.5562925338745117, 0.22656938433647156, 1.4253548383712769, 0.3181907534599304, 1.7553043365478516, 2.018893241882324, 0.8023133873939514, 0.22607579827308655, 1.3724308013916016, -0.12703561782836914, -0.4961152970790863, 1.7251124382019043, -0.4181411862373352, 0.630902886390686, 1.041352391242981, -0.48728781938552856, -1.0481109619140625, -0.7818179130554199, -1.1688663959503174, -0.5380375385284424, 1.182241678237915, 0.18108046054840088, -1.272438883781433, 0.006359961815178394, 1.4044060707092285, 0.19243095815181732, -0.19270654022693634, 0.5463516712188721, 0.4795186221599579, -0.7386776804924011, -0.12672273814678192, -0.9562521576881409, 0.4141981601715088, -0.24754245579242706, -0.3141700327396393, 0.2030908316373825, 0.5563642978668213, 1.1876389980316162, -0.08634424209594727, 0.20052199065685272, 1.3781343698501587, -1.3191601037979126, 1.4644687175750732, -0.5675587058067322, 0.21832147240638733, -2.541168689727783, 1.422467589378357, -0.8508529663085938, 1.9638139009475708, -2.677952766418457, 0.33678296208381653, -0.5616551637649536, -0.364599347114563, 0.29983681440353394, -0.24797983467578888, 0.06507125496864319, -0.07217854261398315, -1.0481204986572266, 0.01437081303447485, -0.8646937012672424, 0.4347163736820221, 1.2133420705795288, 1.4065310955047607, -1.06613290309906, -0.29527947306632996, -1.8512587547302246, -0.18333257734775543, -0.7609850764274597, 0.43648433685302734, -2.0469613075256348, -0.105214923620224, -1.9275808334350586, -2.3370563983917236, -1.571245551109314, -0.8993439674377441, 1.0289958715438843, 0.16485436260700226, -0.8730039000511169, 0.9548758268356323, -0.3614608943462372, -1.6715370416641235, 1.0728347301483154, -2.189099073410034 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
Yes, you are right, that was not the issue. Just take into account that sometimes the viewer can take some time until it shows the preview of the dataset. After some time, yours is finally properly shown: https://huggingface.co/datasets/kingabzpro/savtadepth-flags
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
940
38
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes Yes, you are right, that was not the issue. Just take into account that sometimes the viewer can take some time until it shows the preview of the dataset. After some time, yours is finally properly shown: https://huggingface.co/datasets/kingabzpro/savtadepth-flags
[ -1.2179259061813354, -0.8189740777015686, -0.9239372611045837, 1.3241832256317139, -0.20483170449733734, -1.3209941387176514, 0.06593243777751923, -1.0187643766403198, 1.592395544052124, -0.6695559620857239, 0.2930302619934082, -1.6691490411758423, -0.0456777848303318, -0.5290085673332214, -0.8432071208953857, -0.8856943249702454, -0.35715970396995544, -0.800096869468689, 0.978355884552002, 2.51873517036438, 1.0926611423492432, -1.410051941871643, 2.687619209289551, 0.6169564127922058, -0.15541043877601624, -1.07457435131073, 0.6415981650352478, 0.12592123448848724, -1.267238736152649, -0.5380443930625916, -0.9275007247924805, -0.055182307958602905, -0.5054193139076233, -0.42975977063179016, 0.1849733144044876, 0.39725616574287415, -0.07746565341949463, -0.17198103666305542, -0.6104426980018616, -0.8680633306503296, 0.39172497391700745, -0.44286757707595825, 0.8400346040725708, -0.44464409351348877, 1.8412036895751953, -0.5444482564926147, 0.2595386207103729, 0.6724143028259277, 1.3104369640350342, 0.062686488032341, -0.0758896917104721, 0.2557843029499054, 0.4594905972480774, 0.031303584575653076, 0.3973863124847412, 1.1303001642227173, 0.5472068786621094, 0.5164046883583069, 0.6196505427360535, -2.1941964626312256, 1.4060994386672974, -1.0322996377944946, 0.2942221760749817, 1.5206654071807861, -1.0695619583129883, 0.43904805183410645, -1.8176016807556152, -0.03747588023543358, 0.5206992030143738, -2.427734375, 0.2233121395111084, -1.1899187564849854, -0.613241970539093, 0.7901273369789124, 0.25353166460990906, -1.3078644275665283, 0.1483195275068283, -0.5197200775146484, 1.0671782493591309, 0.40565231442451477, 1.2625981569290161, -1.676477313041687, -0.08284899592399597, -0.27855148911476135, 0.10582217574119568, -1.4375122785568237, -1.4847683906555176, 0.6535164713859558, 0.686908483505249, 0.5298798680305481, -0.15635459125041962, 0.8786773085594177, -1.085168719291687, 0.9003857970237732, -0.9761317372322083, -1.6759098768234253, -1.5138556957244873, -2.3425796031951904, -2.156984329223633, 0.8447266817092896, -0.4810805916786194, -0.447402685880661, 1.9596155881881714, -1.083798885345459, -1.7256712913513184, 1.1380457878112793, 0.2083367109298706, 0.10406917333602905, 2.4358413219451904, 0.20803949236869812, -0.6930086016654968, 0.2644565999507904, -0.7281116843223572, 0.9090991020202637, -0.40780705213546753, 1.3583065271377563, 0.6069777607917786, -0.962174117565155, 1.6114999055862427, -0.5105404257774353, 0.4956609904766083, -0.7017241716384888, -0.4307093918323517, -0.8346478939056396, 0.3648148775100708, 1.8957287073135376, -0.267425537109375, 1.6652735471725464, -0.4627877473831177, -1.5444101095199585, -1.5359553098678589, 0.8677918314933777, 0.5931555032730103, -0.8238007426261902, 0.054288510233163834, -0.35743436217308044, 0.15720410645008087, -0.1612061858177185, 1.090773105621338, 1.1098039150238037, 0.6539730429649353, -0.3275214731693268, -0.7799977660179138, 0.29074227809906006, -0.07786232233047485, -0.7262721061706543, -1.831573247909546, -0.40260055661201477, 0.17849060893058777, 0.6860281825065613, -1.236952304840088, 1.690540075302124, 0.8799158930778503, 1.9612905979156494, 1.0065672397613525, -0.3654133081436157, 1.4963396787643433, -0.01523707527667284, 1.8592064380645752, -0.5723938345909119, 0.7304340600967407, -0.2865253984928131, -1.0460633039474487, 0.8280200958251953, -0.3986261785030365, -1.9594730138778687, -0.7499580383300781, -0.9644185304641724, -0.18745057284832, -0.6973392963409424, 0.9514902830123901, -0.269045889377594, -1.4049104452133179, 0.16095539927482605, -0.6471226215362549, 0.031221676617860794, -1.2747329473495483, 0.239729106426239, 0.8189626336097717, -0.6919958591461182, -0.1498136967420578, -0.3053056001663208, -1.379633903503418, -0.5452340245246887, 0.150756374001503, 1.981208086013794, -0.733860433101654, 0.9563126564025879, 0.8295405507087708, -0.7602090239524841, 0.054074887186288834, 0.3229484260082245, -0.23493042588233948, 0.7818956971168518, -0.9932509660720825, -0.4579756557941437, 1.0269666910171509, -0.14121949672698975, -0.5591582655906677, 1.5376107692718506, 0.8367392420768738, -0.9649932980537415, -0.2517368793487549, -0.2551240921020508, -0.7912002205848694, -0.015436584129929543, -1.5995146036148071, -0.20373065769672394, 0.11246711015701294, -1.5162858963012695, -0.5054818391799927, -0.25492653250694275, 1.3132672309875488, -0.1043572723865509, 1.34261953830719, -0.27239903807640076, -0.2460535317659378, -0.451949805021286, -0.43593910336494446, 0.2519550025463104, -0.23488256335258484, -0.6600309610366821, 0.4208008646965027, -0.850263774394989, 0.23475293815135956, 1.3739113807678223, 0.5531185269355774, 0.04490537568926811, 0.6697396039962769, 0.9976460337638855, 0.30498966574668884, -0.001423979178071022, -0.9731676578521729, -1.5295679569244385, 2.005066156387329, -1.487410545349121, 1.9255626201629639, 0.7886039614677429, -0.03579643368721008, -1.703513741493225, -1.8582651615142822, 1.425002932548523, 1.2495619058609009, 2.3497812747955322, 0.6213135123252869, 0.3544996678829193, -0.7633734345436096, -0.6135285496711731, 0.28978338837623596, -1.0186667442321777, -0.7639657258987427, 0.031066130846738815, 2.3145339488983154, 1.7414159774780273, -0.6834067702293396, -0.18612924218177795, -1.0126208066940308, 1.2499327659606934, -0.07821615040302277, 0.29116538166999817, 2.0693490505218506, -0.3472757637500763, -1.0465514659881592, 1.2291799783706665, -2.278123378753662, 0.19963613152503967, 2.039477825164795, 0.26684924960136414, 0.08286209404468536, -1.4221136569976807, -0.6210926175117493, -0.17223571240901947, -0.4655686318874359, -1.2883834838867188, 0.6641902327537537, -0.3893378973007202, -0.8481406569480896, -1.5215539932250977, 0.06747768819332123, -1.1498512029647827, -1.6427662372589111, 0.5381033420562744, 1.827883005142212, 2.029890775680542, -0.7168734669685364, 1.3864375352859497, -0.2814371585845947, 0.08563753962516785, 1.2680046558380127, 1.158575177192688, 3.0623176097869873, 1.980397343635559, -1.2140412330627441, 0.5980048775672913, -0.19665861129760742, -0.4240189492702484, 1.1351332664489746, -0.9996455311775208, 1.1609688997268677, -0.22629414498806, -1.1524884700775146, -1.2172980308532715, 1.0417972803115845, 0.49087926745414734, -0.06438268721103668, -0.5302983522415161, 1.31685209274292, -0.05602063238620758, 1.3332277536392212, 0.576032817363739, -0.4127891957759857, 0.6331867575645447, -0.4869672358036041, -0.44360166788101196, 1.6480683088302612, 0.10521884262561798, -1.5444096326828003, -2.446686267852783, -0.20172491669654846, -0.8437543511390686, -0.029841162264347076, -0.6848016977310181, -0.9804767370223999, 1.7393429279327393, 0.566353440284729, -1.2881228923797607, -0.3488505482673645, -0.4768921136856079, -0.7106075286865234, 2.5839009284973145, -1.5234512090682983, -0.21088047325611115, -0.9734086394309998, -0.39519211649894714, 1.54971182346344, -1.2365009784698486, -0.17792412638664246, -1.1040657758712769, -0.6138533353805542, -1.315832257270813, -0.47549009323120117, -0.03889334946870804, -0.8818495273590088, 0.9310351014137268, 0.06556428968906403, -1.057045340538025, -0.23717382550239563, -0.8592426180839539, 0.8620091080665588, -0.013752274215221405, 0.26842963695526123, 1.9807624816894531, 0.36501333117485046, -0.3969981074333191, 0.6278325319290161, 1.1380735635757446, 0.7009519934654236, -0.6319282650947571, 0.20079562067985535, -0.596738874912262, 0.3026946187019348, -1.401084065437317, 0.2837766110897064, -2.914604425430298, 0.7605488300323486, -0.03566495329141617, 0.027911484241485596, -0.08946657180786133, -1.293363332748413, 1.1653393507003784, 2.5847206115722656, -1.199703574180603, 0.41536062955856323, 0.3126700818538666, 1.104957938194275, -1.6203404664993286, 0.32290878891944885, -0.43797171115875244, 2.074903726577759, 0.22802607715129852, 1.142721176147461, -0.4755861759185791, -2.0381598472595215, 0.5622650980949402, -1.2219711542129517, -1.0354539155960083, 0.6841927170753479, -0.7396663427352905, 0.15693767368793488, -1.5892316102981567, -0.08770038187503815, -0.9248829483985901, -1.3031072616577148, 0.8822091817855835, 0.10858815908432007, 0.4759737253189087, -0.7032885551452637, 0.34071436524391174, -2.0942718982696533, -1.3449147939682007, -0.26348230242729187, -0.8759337663650513, 0.5624681115150452, -0.2919585704803467, 0.6936102509498596, -0.022414900362491608, 0.15794114768505096, 0.3173138499259949, 1.3227235078811646, 3.54075026512146, 0.10388268530368805, 0.406652569770813, -0.12232398986816406, -0.9990271329879761, 1.5250754356384277, 1.1056195497512817, 0.04603048413991928, -0.6214621067047119, -1.0596455335617065, 1.3793153762817383, 1.9347188472747803, 1.1433886289596558, 0.12538748979568481, -0.8396077156066895, -0.6189579367637634, 0.03846745938062668, 0.2658265233039856, 0.539379894733429, 0.9980356097221375, 0.007596813142299652, 0.23074033856391907, 1.5166722536087036, 1.3227399587631226, -0.4177446663379669, 0.5009106993675232, -0.9123542904853821, -0.40867963433265686, 0.40240678191185, 0.3570207357406616, -0.0777353048324585, 0.47602179646492004, -0.9846519231796265, -0.3805975615978241, -0.15501488745212555, -1.1185463666915894, -0.6280600428581238, -0.36258628964424133, -0.5133015513420105, 1.5958338975906372, 0.14027336239814758, -0.40650033950805664, -0.08149513602256775, -0.7602315545082092, -0.19939464330673218, -1.1043392419815063, 0.324539452791214, -0.08623245358467102, -0.03693375736474991, -0.1439165621995926, 1.7915127277374268, -0.8968073129653931, -2.0666372776031494, 0.3132505714893341, 0.3788616359233856, -0.4586014449596405, 0.051831815391778946, 1.6032414436340332, 0.45842844247817993, 1.3257386684417725, 1.2989996671676636, 1.016943097114563, -0.586550772190094, -1.3171430826187134, 0.6136260628700256, 0.9061838388442993, -1.3881248235702515, 0.8683825731277466, -0.08098267018795013, -0.5296361446380615, 0.7845633029937744, 1.341785192489624, 0.3878355026245117, -1.8819957971572876, 0.7995353937149048, -0.851595938205719, 0.8038321137428284, 0.6247854232788086, 0.8672468066215515, 0.27799105644226074, 0.8976494669914246, -1.3761110305786133, -1.1099668741226196, -0.8753252029418945, -0.4632109999656677, 1.9115371704101562, -0.17174114286899567, 0.5144065618515015, -0.17633776366710663, -1.2230250835418701, -0.2305171936750412, 0.71124666929245, 0.32514896988868713, -0.2518806755542755, 0.810789942741394, -0.625676691532135, -1.1091437339782715, -1.4005728960037231, -0.41524460911750793, -0.9242067933082581, -0.8636294007301331, 1.043965220451355, 0.9086762070655823, 0.37751060724258423, 1.9495573043823242, 0.4973868429660797, 0.12710031867027283, -2.7472805976867676, 0.8146572709083557, 0.23705917596817017, 0.10865817964076996, 0.9835454821586609, 0.23247285187244415, 1.2194907665252686, 0.0732225626707077, 0.498426228761673, -2.316086530685425, 2.2291269302368164, -0.26851946115493774, 0.6677253842353821, 0.02820252999663353, -0.16446229815483093, 1.1092734336853027, 0.6039036512374878, 0.5928175449371338, -1.0250519514083862, 0.7444072961807251, -0.6747754812240601, 1.0878413915634155, 1.0812029838562012, -0.7638841867446899, -0.03169383108615875, 1.3598233461380005, 0.5834833979606628, -0.43302661180496216, -0.9023578763008118, -0.8084167242050171, 0.8546777367591858, 1.8813443183898926, -0.019519416615366936, -0.10839210450649261, 0.7844783067703247, 0.6159868836402893, -1.2564054727554321, 0.13348519802093506, -0.7547735571861267, -0.6537837982177734, 1.6245602369308472, 2.051666259765625, 0.09242388606071472, -0.18167588114738464, -0.6784862279891968, -1.0903106927871704, 0.6474642753601074, 0.017500005662441254, 0.06499727070331573, 0.8827862739562988, -0.5960994958877563, 1.119929552078247, 0.7266454100608826, 1.0541189908981323, -0.0037392633967101574, 0.3770292103290558, 0.3817562758922577, -0.27536541223526, -1.1870733499526978, -0.3783837854862213, -1.1293846368789673, -2.551886558532715, 0.4767083525657654, -0.3798435628414154, -1.3259679079055786, -0.0482834167778492, -1.106561303138733, 0.9499390125274658, -0.5944361686706543, -1.1054565906524658, -1.5505753755569458, 0.19898632168769836, -0.1281345933675766, 0.8087894916534424, -1.662028431892395, -0.07235169410705566, 1.3399646282196045, 0.8301030993461609, -0.5718088746070862, 1.0453603267669678, 0.2891327440738678, 1.0563907623291016, 0.7864689230918884, -0.38613536953926086, 0.3121457099914551, 0.09821459650993347, -1.3764835596084595, 0.5403811931610107, 1.1141095161437988, 0.16259342432022095, 1.394485354423523, -0.5319982767105103, 0.10903821885585785, 0.5336134433746338, -0.5065364837646484, -0.5172945857048035, -0.487920343875885, 0.8246058821678162, 0.10837852954864502, -0.9026856422424316, 0.06086945906281471, -0.16935749351978302, -0.20847438275814056, 0.23703765869140625, -1.392845630645752, -0.26926642656326294, -0.3611352741718292, -0.43220388889312744, -1.3638091087341309, -0.06367290019989014, 1.2617645263671875, -0.7565631866455078, -0.1816614717245102, 0.4960584342479706, 0.38619276881217957, 0.5500399470329285, 0.6144341826438904, -0.5862935781478882, -0.44315221905708313, -0.284684956073761, -0.3749954402446747, 0.2571483552455902, 1.2435702085494995, -0.2575376033782959, -1.0539592504501343, 0.7190987467765808, -0.2837778925895691, 0.03326615318655968, 1.9829962253570557, 0.025247499346733093, -0.8279103636741638, 0.294053852558136, -0.5935032963752747, 1.88689124584198, 1.5637025833129883, 1.31930410861969, -0.09945812821388245, -0.7911906242370605, 0.47788846492767334, -0.21125298738479614, -0.3164554238319397, 0.831933319568634, 0.4993700087070465, -0.11236052215099335, -1.4625247716903687, 0.5106244683265686, 1.3247770071029663, -0.9126486778259277, -0.686646044254303, 0.07436962425708771, -0.8837878704071045, 1.0243754386901855, 0.6346620917320251, 0.46169963479042053, 0.24937885999679565, 1.5193381309509277, 0.5980219841003418, -0.451840341091156, 0.40808534622192383, 0.5157065391540527, -0.2391313761472702, -2.1441354751586914, -0.9901708960533142, 0.3231569230556488, -0.3480145037174225, -1.5157424211502075, 1.3424344062805176, -1.2299456596374512, -0.87826007604599, 0.5410104393959045, 0.18950891494750977, 1.4493452310562134, 0.3218941390514374, 1.769765853881836, 2.013759136199951, 0.788366436958313, 0.2597041130065918, 1.3936835527420044, -0.062063608318567276, -0.4420337677001953, 1.7341219186782837, -0.3372982144355774, 0.6303057670593262, 1.0789111852645874, -0.40673303604125977, -1.0519520044326782, -0.7477611899375916, -1.1655739545822144, -0.5426984429359436, 1.2180384397506714, 0.14432093501091003, -1.2542719841003418, 0.0012622382491827011, 1.4470099210739136, 0.19849105179309845, -0.20461097359657288, 0.5218319296836853, 0.4840211570262909, -0.7406843900680542, -0.08375436067581177, -0.9405814409255981, 0.40093064308166504, -0.2489153891801834, -0.2807423174381256, 0.24664297699928284, 0.5796064734458923, 1.2237825393676758, -0.07552149891853333, 0.18045377731323242, 1.3155626058578491, -1.3463151454925537, 1.4998425245285034, -0.5208539962768555, 0.18061858415603638, -2.5068113803863525, 1.4404200315475464, -0.8078363537788391, 1.943494439125061, -2.594080686569214, 0.3164094090461731, -0.5876629948616028, -0.3303357660770416, 0.33805084228515625, -0.2794440984725952, 0.08431015908718109, -0.09277495741844177, -1.0315800905227661, 0.05330278351902962, -0.8988263607025146, 0.42320170998573303, 1.2135229110717773, 1.3728351593017578, -1.0704450607299805, -0.34994739294052124, -1.8202614784240723, -0.15050312876701355, -0.7336322665214539, 0.42158278822898865, -2.040799617767334, -0.11431492865085602, -1.9760926961898804, -2.32755970954895, -1.5836920738220215, -0.9182555079460144, 1.0709850788116455, 0.15536648035049438, -0.8722935914993286, 0.9418631196022034, -0.38965752720832825, -1.710679292678833, 1.0140587091445923, -2.2019529342651367 ]
https://github.com/huggingface/datasets/issues/3760
Unable to view the Gradio flagged call back dataset
The problem was resolved by deleted the dataset and creating new one with similar name and then clicking on flag button.
## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes
940
21
Unable to view the Gradio flagged call back dataset ## Dataset viewer issue for '*savtadepth-flags*' **Link:** *[savtadepth-flags](https://huggingface.co/datasets/kingabzpro/savtadepth-flags)* *with the Gradio 2.8.1 the dataset viers stopped working. I tried to add values manually but its not working. The dataset is also not showing the link with the app https://huggingface.co/spaces/kingabzpro/savtadepth.* Am I the one who added this dataset ? Yes The problem was resolved by deleted the dataset and creating new one with similar name and then clicking on flag button.
[ -1.2761046886444092, -0.8998017907142639, -0.9167807102203369, 1.33564293384552, -0.24929732084274292, -1.3464444875717163, 0.09428374469280243, -1.0089234113693237, 1.6061114072799683, -0.6821718811988831, 0.24104714393615723, -1.6609630584716797, -0.027921590954065323, -0.5234284996986389, -0.8401352763175964, -0.8851186633110046, -0.36860278248786926, -0.7427254915237427, 1.0496841669082642, 2.4160282611846924, 1.075432300567627, -1.4341014623641968, 2.7123007774353027, 0.59919273853302, -0.19874249398708344, -1.0349619388580322, 0.6161518096923828, 0.1953154355287552, -1.2534544467926025, -0.5506911277770996, -0.9524627923965454, 0.012123637832701206, -0.452796071767807, -0.4214264750480652, 0.18077939748764038, 0.41131624579429626, -0.08215269446372986, -0.23204326629638672, -0.5780661702156067, -0.8204019665718079, 0.4100685715675354, -0.41839879751205444, 0.8039804100990295, -0.451431542634964, 1.81548273563385, -0.5461837649345398, 0.24385488033294678, 0.6856650710105896, 1.3742549419403076, 0.049394287168979645, -0.12823155522346497, 0.320891410112381, 0.4692469835281372, 0.023451898247003555, 0.3430464267730713, 1.1919500827789307, 0.5069918036460876, 0.5463860630989075, 0.604630172252655, -2.1387946605682373, 1.467663049697876, -1.0424374341964722, 0.3662077784538269, 1.5457944869995117, -1.1363580226898193, 0.48789870738983154, -1.7433198690414429, -0.09026036411523819, 0.4521983861923218, -2.4825401306152344, 0.19942882657051086, -1.1723670959472656, -0.5982127785682678, 0.7690825462341309, 0.2607971727848053, -1.2716166973114014, 0.11700398474931717, -0.5832936763763428, 1.1038784980773926, 0.37782347202301025, 1.2569785118103027, -1.5828821659088135, -0.07887063175439835, -0.24245066940784454, 0.06824719905853271, -1.4508259296417236, -1.4931710958480835, 0.6771329045295715, 0.7282434701919556, 0.5515851974487305, -0.11575785279273987, 0.8672844767570496, -1.0161200761795044, 0.9267706871032715, -0.9144620895385742, -1.5815763473510742, -1.4844833612442017, -2.3009085655212402, -2.134032726287842, 0.9125332236289978, -0.49925342202186584, -0.5000255107879639, 2.001019239425659, -1.0992451906204224, -1.8021727800369263, 1.1479918956756592, 0.20895794034004211, 0.13235481083393097, 2.4467623233795166, 0.16691218316555023, -0.6649918556213379, 0.2920466661453247, -0.7311926484107971, 0.908912181854248, -0.4756934642791748, 1.3038023710250854, 0.547768235206604, -0.907170832157135, 1.6148749589920044, -0.42125996947288513, 0.5563364028930664, -0.6713064908981323, -0.4884997606277466, -0.9160580039024353, 0.4247201085090637, 1.9086644649505615, -0.29137226939201355, 1.6301844120025635, -0.5034492611885071, -1.5646921396255493, -1.5113357305526733, 0.9166592955589294, 0.6393255591392517, -0.8039804697036743, 0.013166691176593304, -0.33472031354904175, 0.1428479105234146, -0.09653313457965851, 1.0717384815216064, 1.1047041416168213, 0.6472023129463196, -0.3499413728713989, -0.789298951625824, 0.3015563488006592, -0.04273713752627373, -0.7091578841209412, -1.817746639251709, -0.34032461047172546, 0.15132583677768707, 0.6608669757843018, -1.298676609992981, 1.621639609336853, 0.8684577941894531, 2.0049734115600586, 0.9747887849807739, -0.32767242193222046, 1.4936147928237915, -0.005623349454253912, 1.7851272821426392, -0.5203257203102112, 0.7139952182769775, -0.25414881110191345, -1.0893410444259644, 0.8090603351593018, -0.4067433774471283, -1.9747761487960815, -0.7543536424636841, -1.0319929122924805, -0.14562903344631195, -0.7325831055641174, 1.0282204151153564, -0.3151256740093231, -1.4347504377365112, 0.11100916564464569, -0.5968505144119263, 0.09870240837335587, -1.300851821899414, 0.22549818456172943, 0.8508883714675903, -0.6855122447013855, -0.14787864685058594, -0.27216780185699463, -1.3544081449508667, -0.5149653553962708, 0.2531201243400574, 1.9732218980789185, -0.7641182541847229, 0.9940184354782104, 0.843187689781189, -0.7941974401473999, 0.034077372401952744, 0.26720377802848816, -0.22516514360904694, 0.8114297389984131, -0.9717621207237244, -0.3974757492542267, 1.0140280723571777, -0.14225812256336212, -0.5157564878463745, 1.5351053476333618, 0.7748386859893799, -0.9233447909355164, -0.2833879292011261, -0.275531142950058, -0.7952974438667297, -0.09376848489046097, -1.5634214878082275, -0.24780449271202087, 0.08373700082302094, -1.5802723169326782, -0.5282700061798096, -0.29209426045417786, 1.2708076238632202, -0.15569067001342773, 1.3453608751296997, -0.23872442543506622, -0.30115920305252075, -0.4228563904762268, -0.45477184653282166, 0.22763143479824066, -0.2663551867008209, -0.6625951528549194, 0.3915987014770508, -0.8314988017082214, 0.27077051997184753, 1.4196929931640625, 0.5493050217628479, -0.004882067441940308, 0.7523010969161987, 0.9375776052474976, 0.30546835064888, -0.11340796202421188, -0.9873595237731934, -1.5141663551330566, 1.9319524765014648, -1.4952665567398071, 1.8996052742004395, 0.7532982230186462, -0.08544638752937317, -1.6609458923339844, -1.8869928121566772, 1.4863169193267822, 1.2822189331054688, 2.3397912979125977, 0.6026210188865662, 0.3652482032775879, -0.8044292330741882, -0.6648328304290771, 0.2010304480791092, -1.0409271717071533, -0.7450456023216248, -0.020719211548566818, 2.279366970062256, 1.739118218421936, -0.696097195148468, -0.1712123304605484, -1.0482043027877808, 1.2648255825042725, -0.08503800630569458, 0.3316708505153656, 2.026703357696533, -0.3344166576862335, -1.025239109992981, 1.197644829750061, -2.2059569358825684, 0.15590009093284607, 2.0087857246398926, 0.2333487719297409, 0.06610029190778732, -1.4373525381088257, -0.5808601975440979, -0.19954083859920502, -0.48142409324645996, -1.3164423704147339, 0.6055716872215271, -0.3590147793292999, -0.8129399418830872, -1.512452483177185, 0.10355794429779053, -1.1052190065383911, -1.60933518409729, 0.5131896734237671, 1.9579172134399414, 2.0253236293792725, -0.7202420830726624, 1.413336992263794, -0.29896557331085205, 0.1408054530620575, 1.1926230192184448, 1.057572364807129, 3.026324987411499, 1.98031485080719, -1.1520397663116455, 0.6107011437416077, -0.12327303737401962, -0.3976483643054962, 1.1345504522323608, -0.959051251411438, 1.195551872253418, -0.241901695728302, -1.1247936487197876, -1.2301808595657349, 1.0206351280212402, 0.48905473947525024, -0.06183309853076935, -0.49725788831710815, 1.3459631204605103, -0.059727806597948074, 1.3447502851486206, 0.5370123982429504, -0.42821642756462097, 0.6884311437606812, -0.41531234979629517, -0.4637377858161926, 1.631973385810852, 0.05470096319913864, -1.5981736183166504, -2.4482078552246094, -0.2048487812280655, -0.793800950050354, 0.014024184085428715, -0.6692429184913635, -0.9361410140991211, 1.7718442678451538, 0.6343661546707153, -1.2152076959609985, -0.3335990011692047, -0.45988932251930237, -0.7192632555961609, 2.5653743743896484, -1.5118091106414795, -0.19542142748832703, -0.8997608423233032, -0.3917909264564514, 1.6060245037078857, -1.24268639087677, -0.20857028663158417, -1.0168734788894653, -0.5884663462638855, -1.2710472345352173, -0.4890942871570587, -0.09442701935768127, -0.9571731686592102, 0.928381621837616, -0.02364414371550083, -1.0220776796340942, -0.18186016380786896, -0.8649137616157532, 0.8937854170799255, -0.012104153633117676, 0.17432761192321777, 2.005627155303955, 0.30628034472465515, -0.364393413066864, 0.6957027316093445, 1.1081024408340454, 0.6513839364051819, -0.6548469662666321, 0.20713792741298676, -0.592225968837738, 0.3211222290992737, -1.3525927066802979, 0.27678847312927246, -2.992781400680542, 0.6969454884529114, -0.03600363805890083, 0.040108419954776764, -0.10535915940999985, -1.3395636081695557, 1.1847320795059204, 2.597205400466919, -1.1993097066879272, 0.4379904568195343, 0.3340059220790863, 1.1659841537475586, -1.5960402488708496, 0.36246249079704285, -0.4369747042655945, 2.047210931777954, 0.23872941732406616, 1.1586432456970215, -0.4934024512767792, -1.9897754192352295, 0.57408207654953, -1.1815921068191528, -1.1547716856002808, 0.6123477816581726, -0.7654368877410889, 0.17460225522518158, -1.6015228033065796, -0.12784841656684875, -0.8563483357429504, -1.3160855770111084, 0.8089800477027893, 0.10239280760288239, 0.4547373652458191, -0.70632004737854, 0.3165276348590851, -2.152784824371338, -1.3323692083358765, -0.2306666225194931, -0.9358548521995544, 0.5273427963256836, -0.33098986744880676, 0.6674538254737854, -0.014722144231200218, 0.1509038358926773, 0.3131316900253296, 1.3339358568191528, 3.511626720428467, 0.10880998522043228, 0.3335074484348297, -0.10604391247034073, -0.9553691148757935, 1.5714391469955444, 1.132627010345459, 0.05970710515975952, -0.601049542427063, -1.0804871320724487, 1.430588722229004, 1.9411836862564087, 1.1096911430358887, 0.09192243218421936, -0.8240277171134949, -0.6045069098472595, 0.04865583777427673, 0.2254171073436737, 0.5591841340065002, 1.027550220489502, 0.03278937190771103, 0.2588813900947571, 1.5300273895263672, 1.3182659149169922, -0.40287142992019653, 0.5703912377357483, -0.9331706762313843, -0.42945387959480286, 0.3565146327018738, 0.3740396499633789, -0.08855581283569336, 0.42729848623275757, -0.9538568258285522, -0.3864707350730896, -0.13809026777744293, -1.0827512741088867, -0.6305763721466064, -0.2959445118904114, -0.5237798094749451, 1.6375292539596558, 0.15588276088237762, -0.44820302724838257, -0.1322510689496994, -0.7340574860572815, -0.2006969004869461, -1.045239806175232, 0.40448442101478577, -0.10359102487564087, -0.01640920341014862, -0.1299540102481842, 1.7761884927749634, -0.8981717228889465, -2.115330457687378, 0.29727253317832947, 0.38920673727989197, -0.428646057844162, 0.04059111699461937, 1.5613961219787598, 0.4828396141529083, 1.3625677824020386, 1.3893684148788452, 0.9932568073272705, -0.6649494171142578, -1.332324504852295, 0.6086148023605347, 0.8525972366333008, -1.3618532419204712, 0.7268719673156738, -0.07010665535926819, -0.6044952869415283, 0.7356787323951721, 1.324054479598999, 0.4097568988800049, -2.0081448554992676, 0.825167715549469, -0.8876609802246094, 0.7558385729789734, 0.6254649758338928, 0.829620897769928, 0.3238363265991211, 0.9261231422424316, -1.3114123344421387, -1.0730981826782227, -0.8966017961502075, -0.4403116703033447, 1.9187545776367188, -0.24920688569545746, 0.549967348575592, -0.20569747686386108, -1.1978358030319214, -0.23592635989189148, 0.6723505854606628, 0.39541196823120117, -0.2538246810436249, 0.798213005065918, -0.6226260662078857, -1.1318933963775635, -1.328305959701538, -0.42276009917259216, -0.9339066743850708, -0.8702108263969421, 0.956574022769928, 0.8919064402580261, 0.3869197964668274, 1.9393278360366821, 0.48059961199760437, 0.1377285122871399, -2.740900993347168, 0.8560024499893188, 0.28339630365371704, 0.11749044805765152, 0.925805926322937, 0.28118160367012024, 1.209171175956726, 0.08357629179954529, 0.46450334787368774, -2.3122119903564453, 2.182171583175659, -0.2159396857023239, 0.7308945059776306, 0.0500345341861248, -0.14718371629714966, 1.1629775762557983, 0.6003581285476685, 0.6541243195533752, -1.0960291624069214, 0.7850927710533142, -0.6582512855529785, 1.118241548538208, 1.0516718626022339, -0.6769899129867554, -0.028637003153562546, 1.3770962953567505, 0.652695894241333, -0.41616520285606384, -0.9494324326515198, -0.8515405654907227, 0.8655320405960083, 1.8591232299804688, -0.09337516874074936, -0.06967562437057495, 0.7575598359107971, 0.6468484401702881, -1.2195637226104736, 0.09262970834970474, -0.7798940539360046, -0.6287301778793335, 1.6233034133911133, 2.030855655670166, 0.0965091809630394, -0.1697661578655243, -0.6460043787956238, -1.1278680562973022, 0.6591106057167053, -0.020454371348023415, 0.08385605365037918, 0.837605357170105, -0.643359899520874, 1.147202730178833, 0.7874037027359009, 1.030228853225708, -0.045994725078344345, 0.34206894040107727, 0.3674198389053345, -0.20835761725902557, -1.2005667686462402, -0.38663166761398315, -1.1031348705291748, -2.489724636077881, 0.4028901755809784, -0.40714916586875916, -1.2471189498901367, -0.027957744896411896, -1.174573540687561, 0.9347733855247498, -0.6402413249015808, -1.0977803468704224, -1.5800373554229736, 0.1625102460384369, -0.14870503544807434, 0.7949639558792114, -1.6036243438720703, -0.075564444065094, 1.3242684602737427, 0.7796569466590881, -0.5911862850189209, 1.1307687759399414, 0.29929038882255554, 1.0385860204696655, 0.7454608082771301, -0.4172799587249756, 0.306041419506073, 0.1340932995080948, -1.3418511152267456, 0.5882455110549927, 1.1079108715057373, 0.13795067369937897, 1.4294800758361816, -0.6051080822944641, 0.06133192777633667, 0.5872573852539062, -0.5374948382377625, -0.5252013206481934, -0.5489789843559265, 0.8581461906433105, -0.023984303697943687, -0.9800106287002563, 0.06945721805095673, -0.20699390769004822, -0.22075305879116058, 0.3113124966621399, -1.4180192947387695, -0.3108184337615967, -0.34613215923309326, -0.4772297739982605, -1.3514283895492554, 0.002777411602437496, 1.302049994468689, -0.7857936024665833, -0.20893801748752594, 0.5225154757499695, 0.4076041877269745, 0.5486793518066406, 0.6040530800819397, -0.6470641493797302, -0.34537333250045776, -0.2716570496559143, -0.3128388226032257, 0.3003966808319092, 1.2535053491592407, -0.3207515776157379, -1.0601826906204224, 0.6514028310775757, -0.3229711353778839, -0.008104799315333366, 2.0110111236572266, -0.005209722556173801, -0.772448718547821, 0.31055453419685364, -0.6183983087539673, 1.92058265209198, 1.56527841091156, 1.3992522954940796, -0.09016641229391098, -0.7867998480796814, 0.388239324092865, -0.12417325377464294, -0.32821986079216003, 0.8351284861564636, 0.5986688137054443, -0.10151034593582153, -1.4893300533294678, 0.5392681360244751, 1.2790391445159912, -0.9399811625480652, -0.7447589635848999, 0.07382506132125854, -0.8535730242729187, 1.0523042678833008, 0.6398848295211792, 0.4447890818119049, 0.24179914593696594, 1.5880600214004517, 0.6397054195404053, -0.47281381487846375, 0.35132312774658203, 0.5595179796218872, -0.22128866612911224, -2.159780979156494, -1.004213809967041, 0.3514256775379181, -0.33904358744621277, -1.5379984378814697, 1.374171495437622, -1.1497873067855835, -0.8692262768745422, 0.5235439538955688, 0.20855599641799927, 1.480923056602478, 0.28132325410842896, 1.7242051362991333, 2.018825054168701, 0.8621773719787598, 0.2642551362514496, 1.4349998235702515, -0.11792252212762833, -0.42397409677505493, 1.7224507331848145, -0.37164679169654846, 0.6064159870147705, 1.108797311782837, -0.5236806869506836, -1.0344109535217285, -0.714140772819519, -1.1939905881881714, -0.5778814554214478, 1.1566442251205444, 0.18249760568141937, -1.269016146659851, 0.034478314220905304, 1.3615357875823975, 0.2332402914762497, -0.23151493072509766, 0.49868977069854736, 0.4818512201309204, -0.707240104675293, -0.09174032509326935, -0.9401679635047913, 0.4001241624355316, -0.3418597877025604, -0.33314067125320435, 0.24845778942108154, 0.5253171920776367, 1.2074263095855713, -0.08579466491937637, 0.1923731118440628, 1.2955430746078491, -1.331954002380371, 1.4508883953094482, -0.5615225434303284, 0.22000177204608917, -2.5236728191375732, 1.4080268144607544, -0.7884402275085449, 1.9473339319229126, -2.6632232666015625, 0.3373371660709381, -0.6245419383049011, -0.2761193513870239, 0.35242050886154175, -0.25958743691444397, 0.10563067346811295, -0.08569222688674927, -1.1018706560134888, 0.05776480585336685, -0.8740592002868652, 0.44140371680259705, 1.1904890537261963, 1.3707457780838013, -1.0730526447296143, -0.29903191328048706, -1.8602389097213745, -0.15919986367225647, -0.6911234855651855, 0.4396055042743683, -2.123267412185669, -0.10641547292470932, -1.9261244535446167, -2.3306915760040283, -1.4697544574737549, -0.8379096984863281, 1.0622106790542603, 0.14677156507968903, -0.8819403648376465, 1.0368468761444092, -0.35779494047164917, -1.6819555759429932, 1.1257576942443848, -2.236616611480713 ]
https://github.com/huggingface/datasets/issues/3758
head_qa file missing
We usually find issues with files hosted at Google Drive... In this case we download the Google Drive Virus scan warning instead of the data file.
## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expected results The dataset should be loaded ## Actual results ``` Downloading and preparing dataset head_qa/en (download: 75.69 MiB, generated: 2.69 MiB, post-processed: Unknown size, total: 78.38 MiB) to /home/slesage/.cache/huggingface/datasets/head_qa/en/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Downloading data: 2.21kB [00:00, 2.05MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1729, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] ``` ## Environment info - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.11.0-1028-aws-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 6.0.1
941
26
head_qa file missing ## Describe the bug A file for the `head_qa` dataset is missing (https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t/HEAD_EN/train_HEAD_EN.json) ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("head_qa", name="en") ``` ## Expected results The dataset should be loaded ## Actual results ``` Downloading and preparing dataset head_qa/en (download: 75.69 MiB, generated: 2.69 MiB, post-processed: Unknown size, total: 78.38 MiB) to /home/slesage/.cache/huggingface/datasets/head_qa/en/1.1.0/583ab408e8baf54aab378c93715fadc4d8aa51b393e27c3484a877e2ac0278e9... Downloading data: 2.21kB [00:00, 2.05MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/load.py", line 1729, in load_dataset builder_instance.download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/slesage/hf/datasets-preview-backend/.venv/lib/python3.9/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/u/0/uc?export=download&id=1a_95N5zQQoUCq8IBNVZgziHbeM-QxG2t'] ``` ## Environment info - `datasets` version: 1.18.4.dev0 - Platform: Linux-5.11.0-1028-aws-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 6.0.1 We usually find issues with files hosted at Google Drive... In this case we download the Google Drive Virus scan warning instead of the data file.
[ -1.158803105354309, -0.8329497575759888, -0.7052708268165588, 1.4221354722976685, -0.1486968845129013, -1.2379517555236816, 0.15014861524105072, -1.0390516519546509, 1.5456653833389282, -0.7091231942176819, 0.2119758129119873, -1.6626886129379272, -0.13985608518123627, -0.5193684697151184, -0.6965259313583374, -0.8678991794586182, -0.35845664143562317, -0.8747329115867615, 0.975100040435791, 2.527843952178955, 1.3156826496124268, -1.2806850671768188, 2.73758864402771, 0.5938600301742554, -0.308707594871521, -0.9646140933036804, 0.5682058930397034, 0.07504171878099442, -1.2475850582122803, -0.38965490460395813, -0.9342107772827148, -0.0192998256534338, -0.5682814121246338, -0.42292729020118713, 0.12050631642341614, 0.4748425781726837, -0.3307209312915802, -0.26190710067749023, -0.6058785915374756, -0.7253124117851257, 0.5257942080497742, -0.34466052055358887, 0.938438355922699, -0.28911009430885315, 1.7510755062103271, -0.6846016049385071, 0.40422576665878296, 0.7391660213470459, 1.1950913667678833, 0.15804648399353027, 0.07107247412204742, 0.34393760561943054, 0.3331228494644165, -0.020280787721276283, 0.5630804300308228, 1.2837218046188354, 0.498146653175354, 0.5005381107330322, 0.6588718295097351, -2.2365000247955322, 1.284144401550293, -0.9046141505241394, 0.24986685812473297, 1.3267168998718262, -0.9016390442848206, 0.4125412106513977, -1.8600311279296875, -0.05602791905403137, 0.5518526434898376, -2.291003465652466, 0.2755434513092041, -1.3185741901397705, -0.5994523167610168, 0.874998152256012, 0.3061034083366394, -1.2202624082565308, 0.19771666824817657, -0.5778093338012695, 1.0374571084976196, 0.41895440220832825, 1.1209335327148438, -1.7153314352035522, -0.049433398991823196, -0.1575036346912384, 0.13512025773525238, -1.3151443004608154, -1.6669554710388184, 0.6082686185836792, 0.6197605133056641, 0.6340965628623962, -0.059066809713840485, 1.046648621559143, -1.0277297496795654, 0.812049925327301, -0.9236953854560852, -1.6961653232574463, -1.3733234405517578, -2.322993516921997, -2.2235660552978516, 0.7595461010932922, -0.5535721778869629, -0.5104484558105469, 2.0304226875305176, -0.9354361891746521, -1.783754587173462, 1.0511637926101685, 0.3065701425075531, -0.004812443163245916, 2.4064207077026367, 0.26545897126197815, -0.782824695110321, 0.4809010624885559, -0.7291983962059021, 0.8392968773841858, -0.245583638548851, 1.279785394668579, 0.5221630930900574, -0.9687672853469849, 1.5769413709640503, -0.4426485002040863, 0.5519142746925354, -0.6734482049942017, -0.5194039344787598, -0.7993963956832886, 0.19788634777069092, 1.9104748964309692, -0.37793174386024475, 1.5860426425933838, -0.2626367509365082, -1.6269197463989258, -1.529259204864502, 0.8263813257217407, 0.5100848078727722, -0.8721588850021362, 0.05945088341832161, -0.5104143023490906, 0.17793065309524536, -0.009871574118733406, 1.1082664728164673, 1.222833514213562, 0.7914769649505615, -0.23581576347351074, -0.8417401313781738, 0.24570800364017487, -0.10960239171981812, -0.6574200391769409, -1.8505754470825195, -0.3070791959762573, 0.2149447351694107, 0.6285955905914307, -1.2378246784210205, 1.7859638929367065, 0.8526315689086914, 1.9384570121765137, 1.0009926557540894, -0.42379090189933777, 1.5435067415237427, -0.01983991637825966, 1.8541078567504883, -0.4656527638435364, 0.589344322681427, -0.3937947750091553, -1.1136608123779297, 0.9175576567649841, -0.3203936815261841, -2.01872181892395, -0.8223296403884888, -0.8584845066070557, -0.1683938056230545, -0.7692221999168396, 0.8849095106124878, -0.28278622031211853, -1.4487266540527344, 0.11886630952358246, -0.6736665964126587, 0.09546907991170883, -1.274222493171692, 0.23045885562896729, 0.7599383592605591, -0.6495451331138611, -0.01965799555182457, -0.26522091031074524, -1.3368972539901733, -0.45829224586486816, 0.34007033705711365, 1.9173367023468018, -0.6159412860870361, 0.944395899772644, 0.9773844480514526, -0.8072530031204224, 0.11047671735286713, 0.23204106092453003, -0.34875059127807617, 0.7968049645423889, -1.1249182224273682, -0.3425779342651367, 1.1108901500701904, -0.19682203233242035, -0.7172401547431946, 1.3833763599395752, 0.789269745349884, -1.1161646842956543, -0.31705671548843384, -0.2009986937046051, -0.8301957249641418, -0.010212882421910763, -1.5463305711746216, -0.1951114684343338, 0.3977862000465393, -1.4690334796905518, -0.40193483233451843, -0.19328254461288452, 1.3702242374420166, -0.1825236976146698, 1.489885926246643, -0.2524474859237671, -0.13132695853710175, -0.37447696924209595, -0.5091503262519836, 0.12439927458763123, -0.2351687252521515, -0.5488986372947693, 0.2113945186138153, -0.8579210042953491, 0.23416227102279663, 1.4837162494659424, 0.32620969414711, 0.03916788101196289, 0.5084123611450195, 1.1010504961013794, 0.41376882791519165, -0.06430555880069733, -0.872578501701355, -1.5402109622955322, 1.9785826206207275, -1.4227899312973022, 1.9217960834503174, 0.7537256479263306, -0.07036697864532471, -1.8466721773147583, -1.922794222831726, 1.2457834482192993, 1.1755462884902954, 2.3774144649505615, 0.5471411943435669, 0.49121856689453125, -0.6624658703804016, -0.7634500861167908, 0.35687124729156494, -1.0307345390319824, -0.6730622053146362, 0.23232558369636536, 2.384155511856079, 1.7567713260650635, -0.6362643241882324, -0.24319639801979065, -0.8712920546531677, 1.273388147354126, -0.17166511714458466, 0.20332708954811096, 2.0775461196899414, -0.2771676480770111, -0.992601215839386, 1.3778082132339478, -2.305399179458618, 0.28228330612182617, 2.0118236541748047, 0.29573431611061096, 0.1154785305261612, -1.3827393054962158, -0.6662716269493103, -0.22411584854125977, -0.5158051252365112, -1.2346616983413696, 0.6335185170173645, -0.225741907954216, -0.8592516779899597, -1.4418385028839111, 0.03617863357067108, -1.1641123294830322, -1.7977819442749023, 0.2814689874649048, 1.9822664260864258, 2.073910713195801, -0.8064472079277039, 1.336106777191162, -0.25699296593666077, -0.004591642878949642, 1.2596317529678345, 1.3783146142959595, 3.0971481800079346, 1.894339919090271, -1.2483586072921753, 0.7410917282104492, -0.17949143052101135, -0.4945230484008789, 1.150027871131897, -1.160793662071228, 1.0706621408462524, -0.2794252932071686, -1.2402113676071167, -1.1980578899383545, 1.064908742904663, 0.47545579075813293, -0.0029711569659411907, -0.45748376846313477, 1.3014087677001953, 0.08302618563175201, 1.3459323644638062, 0.6495750546455383, -0.3819005787372589, 0.6014705896377563, -0.4058710038661957, -0.5305643081665039, 1.7064756155014038, 0.21365028619766235, -1.452987551689148, -2.403153419494629, -0.2681950032711029, -0.8914225697517395, 0.0059133851900696754, -0.5988665223121643, -1.0963866710662842, 1.5984855890274048, 0.43561235070228577, -1.2308216094970703, -0.3220631778240204, -0.2868348956108093, -0.5660523772239685, 2.630675792694092, -1.3607197999954224, -0.04668241739273071, -0.9592927098274231, -0.5440033078193665, 1.6066542863845825, -1.2026417255401611, -0.2148878127336502, -0.9934730529785156, -0.6083323359489441, -1.3578764200210571, -0.5041033029556274, 0.007194972597062588, -0.9316028356552124, 0.7714224457740784, 0.1608169823884964, -1.1223772764205933, -0.2509654462337494, -0.9221731424331665, 1.0478748083114624, -0.09758707880973816, 0.2198326587677002, 1.835827112197876, 0.3679807782173157, -0.4093966484069824, 0.731424868106842, 1.2290929555892944, 0.6065939664840698, -0.7083994746208191, 0.027362819761037827, -0.7472683787345886, 0.310815691947937, -1.4765772819519043, 0.17914216220378876, -2.9527487754821777, 0.6913453936576843, -0.19161613285541534, -0.08070912957191467, -0.06222430616617203, -1.2834872007369995, 1.1437221765518188, 2.591400623321533, -1.1415166854858398, 0.5109153389930725, 0.4004429280757904, 1.1349693536758423, -1.5758774280548096, 0.21172814071178436, -0.4832571744918823, 2.119875431060791, 0.1565656214952469, 1.2368615865707397, -0.48727333545684814, -2.1766116619110107, 0.6728987693786621, -1.2544516324996948, -1.0780422687530518, 0.8119990825653076, -0.8527187705039978, 0.25953564047813416, -1.4532060623168945, -0.19258485734462738, -0.9139015674591064, -1.2235534191131592, 0.7579827308654785, 0.020749319344758987, 0.4224190413951874, -0.4950798749923706, 0.36855143308639526, -2.1495561599731445, -1.4272562265396118, -0.23598776757717133, -0.9771207571029663, 0.5378461480140686, -0.3210819959640503, 0.6577361226081848, -0.05738217383623123, 0.10436052829027176, 0.26989373564720154, 1.4029757976531982, 3.3591089248657227, 0.1041337326169014, 0.22044424712657928, -0.14580987393856049, -1.0197776556015015, 1.4530361890792847, 0.9489161372184753, -0.12159625440835953, -0.6470934152603149, -1.0085954666137695, 1.2356071472167969, 2.0344364643096924, 1.1678192615509033, 0.12933304905891418, -0.8661743998527527, -0.7855243682861328, 0.036352306604385376, 0.17163799703121185, 0.5363719463348389, 0.9551260471343994, -0.005338049028068781, 0.08858761936426163, 1.34146249294281, 1.1269654035568237, -0.2822990119457245, 0.4117394983768463, -0.9279682040214539, -0.42990216612815857, 0.4424477219581604, 0.13485875725746155, 0.0035027777776122093, 0.5131443738937378, -1.0483958721160889, -0.3027190566062927, -0.2589418590068817, -0.8695486783981323, -0.7691972851753235, -0.37216976284980774, -0.3855281174182892, 1.6717997789382935, 0.07522542029619217, -0.4443965554237366, 0.03372596576809883, -0.7339970469474792, -0.15958918631076813, -1.1162145137786865, 0.19100768864154816, -0.13264214992523193, -0.07871772348880768, -0.14862339198589325, 1.6900382041931152, -0.9328981041908264, -2.0935823917388916, 0.15710406005382538, 0.33186399936676025, -0.3677770793437958, 0.1836259514093399, 1.8051042556762695, 0.5319969654083252, 1.3532906770706177, 1.2545278072357178, 1.0365409851074219, -0.6062563061714172, -1.1998112201690674, 0.6747333407402039, 0.8992714881896973, -1.354790210723877, 0.8536764979362488, -0.1560254842042923, -0.5381181836128235, 0.6219034790992737, 1.3288652896881104, 0.43365007638931274, -2.014875650405884, 0.8930749893188477, -0.879891574382782, 0.7237003445625305, 0.6701289415359497, 0.8349055051803589, 0.2753427028656006, 0.8695739507675171, -1.2669349908828735, -1.1341859102249146, -0.6852443814277649, -0.5490334033966064, 1.9388558864593506, -0.23914875090122223, 0.5239903926849365, -0.1657860428094864, -1.2316516637802124, -0.10824479907751083, 0.8463797569274902, 0.3863452672958374, -0.43008431792259216, 0.8788353800773621, -0.5867241621017456, -0.9687461256980896, -1.2131060361862183, -0.40739139914512634, -1.0808956623077393, -0.8266010880470276, 1.0361329317092896, 0.7525385022163391, 0.47104784846305847, 1.9251230955123901, 0.6004946231842041, 0.2844761610031128, -2.668898820877075, 0.8858794569969177, 0.28351131081581116, -0.028580844402313232, 0.9351566433906555, 0.2575671970844269, 1.1489737033843994, -0.11482828110456467, 0.583171010017395, -2.3187718391418457, 2.2394979000091553, -0.184925839304924, 0.661266028881073, 0.08682297170162201, -0.1447148621082306, 1.067740797996521, 0.5629537105560303, 0.5925965905189514, -1.1133277416229248, 0.7213033437728882, -0.5925472974777222, 1.0577713251113892, 0.9536256194114685, -0.9436847567558289, 0.05082280933856964, 1.4179449081420898, 0.48192864656448364, -0.47293731570243835, -0.9572010636329651, -0.8457344770431519, 1.004744529724121, 1.7497905492782593, -0.049699410796165466, 0.030944455415010452, 0.8716068863868713, 0.6030635237693787, -1.2570065259933472, 0.11381623148918152, -0.6655334234237671, -0.6664283871650696, 1.6857167482376099, 2.046480894088745, -0.10115355253219604, -0.19397026300430298, -0.7849858999252319, -1.2921243906021118, 0.8247992992401123, 0.0038870638236403465, 0.13409622013568878, 0.6629817485809326, -0.6320558786392212, 1.163077712059021, 0.5939497351646423, 1.0557925701141357, 0.04736517742276192, 0.40157556533813477, 0.3837023079395294, -0.323757529258728, -1.1629008054733276, -0.3764662742614746, -1.0643914937973022, -2.612772226333618, 0.4771013557910919, -0.30617275834083557, -1.4756265878677368, 0.016302045434713364, -1.036804437637329, 0.858692467212677, -0.6037901639938354, -1.0955041646957397, -1.5221868753433228, 0.3562471568584442, -0.20645259320735931, 0.981862485408783, -1.6448619365692139, -0.15865182876586914, 1.242195725440979, 0.9106351137161255, -0.6554582118988037, 0.9588441252708435, 0.2683427035808563, 0.9628030061721802, 0.8054049611091614, -0.35985198616981506, 0.5939851999282837, 0.15033046901226044, -1.3101437091827393, 0.40402039885520935, 1.2518783807754517, 0.15528176724910736, 1.4220967292785645, -0.45090335607528687, 0.02273954451084137, 0.4344267249107361, -0.531574547290802, -0.5351454019546509, -0.4776914119720459, 0.6469599604606628, 0.06944574415683746, -1.0892266035079956, -0.18513548374176025, -0.1275234818458557, -0.2901259660720825, 0.22905464470386505, -1.4558675289154053, -0.2074509710073471, -0.35875269770622253, -0.47302722930908203, -1.2993799448013306, 0.021100856363773346, 1.3092443943023682, -0.8064927458763123, -0.24102866649627686, 0.3931853771209717, 0.32186630368232727, 0.5480772852897644, 0.5023168325424194, -0.745227575302124, -0.27482542395591736, -0.31395265460014343, -0.3073921501636505, 0.31251099705696106, 1.2233911752700806, -0.10007006675004959, -1.0595611333847046, 0.6370964050292969, -0.33304309844970703, 0.13780547678470612, 2.0053632259368896, -0.020327499136328697, -0.7123540043830872, 0.3038235008716583, -0.6591519713401794, 1.7520607709884644, 1.6752616167068481, 1.2611838579177856, -0.1080712154507637, -0.8058186173439026, 0.5704430341720581, -0.2583564817905426, -0.33933883905410767, 0.9061093926429749, 0.3799862861633301, -0.26253029704093933, -1.5015977621078491, 0.6347394585609436, 1.3082194328308105, -0.8470475077629089, -0.7052509188652039, 0.031921882182359695, -0.9135494828224182, 1.2357497215270996, 0.5663082599639893, 0.27958446741104126, 0.2267477810382843, 1.5234839916229248, 0.7126225829124451, -0.47137513756752014, 0.5172242522239685, 0.5057692527770996, -0.16820001602172852, -2.0968382358551025, -1.0488696098327637, 0.2950340509414673, -0.37725719809532166, -1.5539342164993286, 1.39589262008667, -1.1185730695724487, -1.0177866220474243, 0.5424569845199585, 0.14322319626808167, 1.374750018119812, 0.3402477204799652, 1.6993191242218018, 2.0594232082366943, 0.9146667122840881, 0.30765169858932495, 1.2618930339813232, -0.12384513765573502, -0.40408846735954285, 1.8269459009170532, -0.4781525433063507, 0.4916885495185852, 0.9520559310913086, -0.35514402389526367, -1.1407829523086548, -0.7866497039794922, -1.2788012027740479, -0.6259350180625916, 1.2095110416412354, 0.12448565661907196, -1.1138293743133545, 0.19346581399440765, 1.6160695552825928, 0.12168291211128235, -0.21145905554294586, 0.7091674208641052, 0.4296002686023712, -0.7377419471740723, -0.08358259499073029, -0.8845793008804321, 0.4782564043998718, -0.08749473094940186, -0.2678227424621582, 0.23523864150047302, 0.5784593224525452, 1.3007786273956299, -0.04825638234615326, 0.10587988048791885, 1.1958441734313965, -1.3926479816436768, 1.5802379846572876, -0.5519963502883911, 0.23872500658035278, -2.4645254611968994, 1.4211530685424805, -0.7916979193687439, 1.9349193572998047, -2.5224387645721436, 0.4087812900543213, -0.5443374514579773, -0.46387583017349243, 0.2461382895708084, -0.3993796110153198, 0.1505579650402069, -0.156793013215065, -1.0105067491531372, -0.12201215326786041, -0.725644588470459, 0.5741470456123352, 1.1308852434158325, 1.44137442111969, -1.1625878810882568, -0.24362339079380035, -1.742964744567871, -0.19095923006534576, -0.7426504492759705, 0.27640393376350403, -1.9217709302902222, -0.19188985228538513, -1.941413164138794, -2.348484992980957, -1.4075952768325806, -0.8682387471199036, 1.0589861869812012, 0.1526789516210556, -0.975355863571167, 1.158326506614685, -0.32702934741973877, -1.8098996877670288, 1.1917229890823364, -2.178813934326172 ]
https://github.com/huggingface/datasets/issues/3756
Images get decoded when using `map()` with `input_columns` argument on a dataset
Hi! If I'm not mistaken, this behavior is intentional, but I agree it could be more intuitive. @albertvillanova Do you remember why you decided not to decode columns in the `Audio` feature PR when `input_columns` is not `None`? IMO we should decode those columns, and we don't even have to use lazy structures here because the user explicitly requires them in the map transform. cc @lhoestq for visibility
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0
942
68
Images get decoded when using `map()` with `input_columns` argument on a dataset ## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0 Hi! If I'm not mistaken, this behavior is intentional, but I agree it could be more intuitive. @albertvillanova Do you remember why you decided not to decode columns in the `Audio` feature PR when `input_columns` is not `None`? IMO we should decode those columns, and we don't even have to use lazy structures here because the user explicitly requires them in the map transform. cc @lhoestq for visibility
[ -1.2058757543563843, -0.9790977239608765, -0.7268433570861816, 1.4273771047592163, -0.25520896911621094, -1.22621488571167, 0.22483646869659424, -1.0585309267044067, 1.7493387460708618, -0.9233894944190979, 0.3127766251564026, -1.6737618446350098, 0.054062142968177795, -0.6437879204750061, -0.7822313904762268, -0.7817108035087585, -0.4463282823562622, -0.7536954283714294, 1.130371332168579, 2.481971263885498, 1.1833549737930298, -1.3388525247573853, 2.716839551925659, 0.6899228096008301, -0.24004711210727692, -0.9708929061889648, 0.4414709508419037, -0.0608818382024765, -1.3669871091842651, -0.45741167664527893, -0.9308105707168579, -0.05844148248434067, -0.6097163558006287, -0.6067249774932861, 0.011095608584582806, 0.3632596433162689, -0.29217419028282166, -0.5390186905860901, -0.46798789501190186, -0.7363966107368469, 0.4132499396800995, -0.4418662190437317, 0.9756444692611694, -0.31239253282546997, 1.797579288482666, -0.616663932800293, 0.4284512996673584, 0.7906860709190369, 1.3170394897460938, 0.1851082444190979, -0.06878157705068588, 0.3918726444244385, 0.3864278197288513, -0.0716530829668045, 0.4853972792625427, 1.106398105621338, 0.6863943338394165, 0.49985888600349426, 0.7536385655403137, -2.3138105869293213, 1.3709298372268677, -1.0180306434631348, 0.33201131224632263, 1.3324997425079346, -0.8626987338066101, 0.365143746137619, -1.7738696336746216, 0.012683401815593243, 0.5958212614059448, -2.195017099380493, 0.22935910522937775, -1.2513561248779297, -0.45245856046676636, 1.0345194339752197, 0.39269113540649414, -1.1851046085357666, 0.14090736210346222, -0.36829158663749695, 1.0163710117340088, 0.42591196298599243, 1.0921435356140137, -1.7499197721481323, -0.016161492094397545, -0.35222870111465454, 0.17221581935882568, -1.2610678672790527, -1.561808466911316, 0.5348036289215088, 0.6974502801895142, 0.5904968976974487, -0.1840025782585144, 1.070120096206665, -0.9482839703559875, 0.7288895845413208, -1.0136669874191284, -1.7012120485305786, -1.3715977668762207, -2.1930651664733887, -2.2580795288085938, 0.6633701920509338, -0.5029379725456238, -0.46965378522872925, 2.069769859313965, -1.0522143840789795, -1.8545539379119873, 1.1510828733444214, 0.2548232078552246, -0.07664749771356583, 2.3065834045410156, 0.26521581411361694, -0.6469098925590515, 0.5369921922683716, -0.7449436187744141, 0.8043432831764221, -0.39721599221229553, 1.2972203493118286, 0.26627084612846375, -1.0974757671356201, 1.5348509550094604, -0.4182586967945099, 0.6238281726837158, -0.6696959733963013, -0.40376725792884827, -0.7996525764465332, 0.3417496979236603, 1.8937870264053345, -0.2907983660697937, 1.4355237483978271, -0.4816591143608093, -1.6391873359680176, -1.6548144817352295, 0.855707585811615, 0.557837963104248, -0.6846752166748047, 0.19793079793453217, -0.33092236518859863, 0.11069492995738983, -0.009054945781826973, 1.160974144935608, 1.3187016248703003, 0.7954363822937012, -0.35685425996780396, -0.8850436210632324, 0.2388618290424347, -0.04484327882528305, -0.7853536009788513, -1.7635103464126587, -0.35034629702568054, 0.14723995327949524, 0.6396061778068542, -1.190438151359558, 1.7906930446624756, 0.8995661735534668, 1.9273300170898438, 1.005042552947998, -0.3791426122188568, 1.4631237983703613, 0.16183467209339142, 1.83623468875885, -0.43743258714675903, 0.6991288065910339, -0.4136503338813782, -1.1512694358825684, 0.8455329537391663, -0.2857459783554077, -2.0576136112213135, -0.7054262757301331, -0.7739580869674683, -0.24284608662128448, -0.7296403050422668, 0.9355573058128357, -0.332853764295578, -1.4142361879348755, 0.2320667952299118, -0.7469049692153931, 0.15793469548225403, -1.2297683954238892, 0.25997576117515564, 0.7512665390968323, -0.6877738237380981, 0.1183338537812233, -0.2422507256269455, -1.300512671470642, -0.4169957935810089, 0.3163715600967407, 1.8674746751785278, -0.7456639409065247, 0.9541237354278564, 1.0437465906143188, -0.6055496335029602, -0.06658931821584702, 0.2846643328666687, -0.29565513134002686, 0.8094695806503296, -1.0345401763916016, -0.42426323890686035, 1.2031465768814087, -0.21489998698234558, -0.601301372051239, 1.4455487728118896, 0.6385232210159302, -1.0453534126281738, -0.1847877949476242, -0.11463019996881485, -0.824033260345459, -0.02055329456925392, -1.6671249866485596, -0.08455335348844528, 0.4717397093772888, -1.578348159790039, -0.505699098110199, -0.24894902110099792, 1.2692153453826904, -0.1468733698129654, 1.4123997688293457, -0.39868783950805664, -0.2506139874458313, -0.31460314989089966, -0.32226455211639404, 0.21911029517650604, -0.17743390798568726, -0.6566646695137024, 0.16513970494270325, -0.7993376851081848, 0.35820674896240234, 1.491813063621521, 0.3096441626548767, 0.038027580827474594, 0.48729780316352844, 1.0515893697738647, 0.3815793991088867, -0.005865688435733318, -0.8926501274108887, -1.5540578365325928, 2.024178981781006, -1.3817535638809204, 1.9071791172027588, 0.772133469581604, -0.013902848586440086, -1.900061845779419, -1.831020712852478, 1.4149549007415771, 1.1492431163787842, 2.2929368019104004, 0.6040363907814026, 0.45773136615753174, -0.7945090532302856, -0.6216573119163513, 0.27341899275779724, -0.9352854490280151, -0.8081170320510864, 0.14735247194766998, 2.407374382019043, 1.7589795589447021, -0.4146546721458435, -0.20371878147125244, -1.037533164024353, 1.4334157705307007, -0.17104150354862213, 0.22173714637756348, 1.9985657930374146, -0.3084602653980255, -1.0605159997940063, 1.349070429801941, -2.2891924381256104, 0.2258293628692627, 1.9134085178375244, 0.16483382880687714, 0.06579948216676712, -1.3546702861785889, -0.6928962469100952, -0.2377203106880188, -0.37622547149658203, -1.2899097204208374, 0.49202486872673035, -0.2266654223203659, -0.7446602582931519, -1.442807912826538, 0.18000376224517822, -1.0421679019927979, -1.6576820611953735, 0.21585430204868317, 1.8304564952850342, 2.047795534133911, -0.7851866483688354, 1.6125982999801636, -0.3047976493835449, 0.26907604932785034, 1.2138950824737549, 1.1425199508666992, 3.042224168777466, 1.8301053047180176, -1.338326096534729, 0.6545479893684387, -0.1443449854850769, -0.48581674695014954, 1.138849139213562, -1.116189956665039, 1.314894676208496, -0.1687936633825302, -1.2086970806121826, -1.2371718883514404, 0.9507650136947632, 0.5228339433670044, 0.11598934978246689, -0.47263991832733154, 1.2285979986190796, 0.053198181092739105, 1.3320746421813965, 0.5826894640922546, -0.34502243995666504, 0.7259461879730225, -0.373950332403183, -0.5201448798179626, 1.5222309827804565, 0.19653718173503876, -1.3769735097885132, -2.2640597820281982, -0.24610236287117004, -0.8082320690155029, 0.12046494334936142, -0.5843846201896667, -0.9393332004547119, 1.6234110593795776, 0.42899230122566223, -1.215635895729065, -0.3034197986125946, -0.37547531723976135, -0.5027138590812683, 2.7213268280029297, -1.3611606359481812, -0.22868642210960388, -0.962326169013977, -0.6314854621887207, 1.5834473371505737, -1.2469154596328735, -0.1605602204799652, -1.0896141529083252, -0.5226587653160095, -1.317710280418396, -0.5768038034439087, -0.030774351209402084, -0.9102197885513306, 0.88298499584198, 0.21747782826423645, -1.1749510765075684, -0.39088869094848633, -0.9178227782249451, 0.8385275602340698, -0.16894976794719696, 0.19685417413711548, 1.8272536993026733, 0.4771058261394501, -0.3815355598926544, 0.8186525106430054, 1.0944470167160034, 0.6140832901000977, -0.6350142955780029, 0.21431739628314972, -0.6984281539916992, 0.2918398380279541, -1.2362079620361328, 0.1918007731437683, -2.8854990005493164, 0.6180241107940674, 0.003612009808421135, -0.08299822360277176, -0.046100832521915436, -1.3624482154846191, 1.0303601026535034, 2.5931215286254883, -1.225230097770691, 0.5029849410057068, 0.3229387700557709, 1.225150227546692, -1.5330219268798828, 0.23606495559215546, -0.46538591384887695, 2.124324321746826, 0.20072250068187714, 1.2302939891815186, -0.507965624332428, -2.29008150100708, 0.6384545564651489, -1.2755153179168701, -1.186198115348816, 0.7602625489234924, -0.8001070618629456, 0.12000560015439987, -1.4053592681884766, -0.2803221642971039, -0.8576825261116028, -1.260166049003601, 0.7291814088821411, 0.15724311769008636, 0.5111061334609985, -0.6265212297439575, 0.2895279824733734, -2.196824789047241, -1.3804678916931152, -0.2552410960197449, -0.9149107336997986, 0.43068352341651917, -0.336947500705719, 0.7662600874900818, -0.19474519789218903, 0.026934493333101273, 0.3459104895591736, 1.3936015367507935, 3.4864747524261475, 0.19020001590251923, 0.3362632989883423, -0.25953012704849243, -0.9177913069725037, 1.3883140087127686, 0.9874637126922607, -0.18443316221237183, -0.5041183829307556, -1.0813719034194946, 1.176833987236023, 1.9846683740615845, 0.9556109309196472, -0.01719619333744049, -0.8641398549079895, -0.7603868842124939, 0.021801505237817764, 0.12943518161773682, 0.4609787166118622, 0.8955276012420654, 0.16182535886764526, 0.10654446482658386, 1.4724631309509277, 1.1603317260742188, -0.4333806037902832, 0.47553253173828125, -0.7545578479766846, -0.5237694382667542, 0.49006548523902893, 0.38305264711380005, 0.031582802534103394, 0.3185563385486603, -1.0027430057525635, -0.15751056373119354, -0.402398020029068, -0.881680428981781, -0.7423598766326904, -0.3953518867492676, -0.3623241186141968, 1.597347617149353, 0.0952441468834877, -0.4985249638557434, -0.07463473081588745, -0.711067259311676, -0.0812826007604599, -0.894909679889679, 0.3151753544807434, -0.16560545563697815, -0.11471935361623764, -0.1324743628501892, 1.7889491319656372, -0.9083541035652161, -1.9716423749923706, 0.2571463882923126, 0.26037198305130005, -0.27327632904052734, 0.24356111884117126, 1.6805402040481567, 0.6195434927940369, 1.4978352785110474, 1.4277082681655884, 0.9508830308914185, -0.6458068490028381, -1.2708991765975952, 0.6314070224761963, 0.9476550817489624, -1.3859068155288696, 0.6670050024986267, 0.014051946811378002, -0.48625385761260986, 0.7102779746055603, 1.2872514724731445, 0.45413437485694885, -2.0419294834136963, 0.7558478713035583, -0.9415909647941589, 0.8157711029052734, 0.7627148628234863, 0.7232416868209839, 0.11844546347856522, 0.740215003490448, -1.167958378791809, -1.1329907178878784, -0.7081348896026611, -0.6543939113616943, 1.946986198425293, -0.3707134425640106, 0.574307382106781, -0.19609814882278442, -1.3761482238769531, -0.11251780390739441, 0.6900233626365662, 0.3481946885585785, -0.5016747117042542, 0.72246915102005, -0.5804209113121033, -1.1077582836151123, -1.3599377870559692, -0.47492295503616333, -1.0407716035842896, -0.9382681250572205, 0.9923974871635437, 0.818040132522583, 0.3107461929321289, 1.8213735818862915, 0.6184173822402954, 0.1924799233675003, -2.58317494392395, 0.8544442653656006, 0.2268374264240265, -0.05934454873204231, 0.935709536075592, 0.3854094445705414, 0.976950466632843, -0.07318141311407089, 0.5504617691040039, -2.452293634414673, 2.3180463314056396, -0.2305266410112381, 0.7137832045555115, -0.10738837718963623, -0.15374329686164856, 1.1373487710952759, 0.5280001163482666, 0.5209294557571411, -1.079627275466919, 0.6432163715362549, -0.6205600500106812, 1.3410412073135376, 0.8336997032165527, -0.8719024658203125, -0.0697813481092453, 1.3973312377929688, 0.3802367150783539, -0.5268969535827637, -0.9165072441101074, -1.107573390007019, 1.001368761062622, 1.762425422668457, -0.15830320119857788, -0.028203021734952927, 0.7744258642196655, 0.7020812034606934, -1.3276386260986328, 0.1020420640707016, -0.7288750410079956, -0.69647216796875, 1.6242057085037231, 2.044635772705078, -0.1847490519285202, -0.1496741622686386, -0.7193074226379395, -1.2522048950195312, 0.8176285028457642, 0.06846650689840317, 0.12250304967164993, 0.667748212814331, -0.59552001953125, 1.161057949066162, 0.8781095147132874, 0.8778403401374817, 0.20662936568260193, 0.3096778392791748, 0.29375800490379333, -0.3905741572380066, -1.20168137550354, -0.17262601852416992, -1.0888727903366089, -2.474001884460449, 0.4017564356327057, -0.13848182559013367, -1.4594247341156006, 0.019002661108970642, -0.9578898549079895, 0.8673380613327026, -0.5203415751457214, -1.1549170017242432, -1.5245004892349243, 0.1491878777742386, -0.04306117072701454, 0.9350432753562927, -1.5320059061050415, -0.07626678794622421, 1.240792989730835, 0.9720934629440308, -0.7026985287666321, 1.008250117301941, 0.23493188619613647, 0.9323496222496033, 0.9097278118133545, -0.3649469017982483, 0.5168110728263855, 0.04805256053805351, -1.3214993476867676, 0.43307390809059143, 1.1369551420211792, 0.24654290080070496, 1.4608558416366577, -0.6183633208274841, 0.014937247149646282, 0.41348347067832947, -0.4573037624359131, -0.4840739667415619, -0.5615282654762268, 0.6029013395309448, 0.0462273508310318, -0.8337693214416504, 0.08524737507104874, 0.026224032044410706, -0.24438190460205078, 0.251187264919281, -1.4891927242279053, -0.06206445023417473, -0.3649066984653473, -0.6948609948158264, -1.1930887699127197, -0.0967230275273323, 1.4466149806976318, -0.7385624647140503, -0.21613197028636932, 0.5615609884262085, 0.2842113673686981, 0.5520696043968201, 0.701482355594635, -0.620694100856781, -0.3647943437099457, -0.21035164594650269, -0.33988314867019653, 0.4295116662979126, 1.3960756063461304, -0.06829401850700378, -1.0029898881912231, 0.740996241569519, -0.4034803509712219, 0.07786275446414948, 1.8787955045700073, 0.1162131205201149, -0.8894758820533752, 0.2705030143260956, -0.7751856446266174, 1.8973091840744019, 1.777186393737793, 1.2583842277526855, -0.03886749967932701, -1.0686341524124146, 0.6309283375740051, -0.25317683815956116, -0.3964296877384186, 1.0589685440063477, 0.39224252104759216, -0.28422442078590393, -1.3898899555206299, 0.7188586592674255, 1.2504502534866333, -0.8106182217597961, -0.8423311114311218, 0.15563349425792694, -0.8005163073539734, 1.1386513710021973, 0.7463563084602356, 0.4095844030380249, 0.2005346566438675, 1.6228927373886108, 0.8595417141914368, -0.41140562295913696, 0.6225875020027161, 0.4958350360393524, -0.22829805314540863, -2.138658285140991, -1.1722451448440552, 0.34063246846199036, -0.5258938670158386, -1.6305875778198242, 1.3912453651428223, -1.1568248271942139, -1.0437582731246948, 0.5869568586349487, 0.0825813040137291, 1.4425846338272095, 0.32129186391830444, 1.5170625448226929, 2.1127121448516846, 0.9230877757072449, 0.3393678367137909, 1.2889842987060547, -0.2574889361858368, -0.44344189763069153, 1.8109138011932373, -0.520334780216217, 0.44212692975997925, 1.1018610000610352, -0.37238436937332153, -1.0224642753601074, -0.7825776934623718, -1.257772445678711, -0.7878153324127197, 1.1601576805114746, 0.06616092473268509, -1.123935580253601, 0.25976553559303284, 1.4896414279937744, 0.16604705154895782, -0.2885529696941376, 0.7197678685188293, 0.4177091419696808, -0.8576987981796265, -0.051151953637599945, -0.8941957950592041, 0.49352189898490906, -0.2425973117351532, -0.3224894106388092, 0.3517115116119385, 0.44329220056533813, 1.3262965679168701, -0.09768616408109665, 0.0728100836277008, 1.1229923963546753, -1.4083139896392822, 1.4672120809555054, -0.685926079750061, 0.28751468658447266, -2.3874351978302, 1.37322998046875, -0.7873290181159973, 1.9108456373214722, -2.707465410232544, 0.43886932730674744, -0.5999159216880798, -0.4915013313293457, 0.3707425594329834, -0.2477329671382904, 0.11420226097106934, -0.1649697870016098, -1.1707741022109985, -0.15820558369159698, -0.7463167905807495, 0.5952751040458679, 1.1264351606369019, 1.3692255020141602, -1.1397109031677246, -0.2650725543498993, -1.6610316038131714, -0.13714711368083954, -0.7439373731613159, 0.4326121211051941, -1.9945476055145264, -0.21096329391002655, -1.9023141860961914, -2.3721249103546143, -1.2992289066314697, -0.816874086856842, 1.1305406093597412, 0.05604754388332367, -0.8567692637443542, 1.1589792966842651, -0.37490734457969666, -1.9301433563232422, 1.120046854019165, -2.2017300128936768 ]
https://github.com/huggingface/datasets/issues/3756
Images get decoded when using `map()` with `input_columns` argument on a dataset
I think I excluded to decorate the function when `input_columns` were passed as a quick fix for some non-passing tests: - https://github.com/huggingface/datasets/pull/2324/commits/9d7c3e8fa53e23ec636859b4407eeec904b1b3f9 That PR was quite complex and I decided to focus on the main feature requests, leaving refinements for subsequent PRs. Note that when `input_columns` are passed, the signature of the function is effectively changed, while the decorated function expects an item (whether an example or a batch) as first arg (which is not the case when passing `input_columns`. I agree we should consider supporting the case when `input_columns` are passed.
## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0
942
92
Images get decoded when using `map()` with `input_columns` argument on a dataset ## Describe the bug The `datasets.features.Image` feature class decodes image data by default. Expectedly, when indexing a dataset or using the `map()` method, images are returned as PIL Image instances. However, when calling `map()` and setting a specific data column with the `input_columns` argument, the image data is passed as raw byte representation to the mapping function. ## Steps to reproduce the bug ```python from datasets import load_dataset from torchvision import transforms from PIL.Image import Image dataset = load_dataset('mnist', split='train') def transform_all_columns(example): # example['image'] is encoded as PIL Image assert isinstance(example['image'], Image) return example def transform_image_column(image): # image is decoded here and represented as raw bytes assert isinstance(image, Image) return image # single-sample dataset for debugging purposes dev = dataset.select([0]) dev.map(transform_all_columns) dev.map(transform_image_column, input_columns='image') ``` ## Expected results Image data should be passed in decoded form, i.e. as PIL Image objects to the mapping function unless the `decode` attribute on the image feature is set to `False`. ## Actual results The mapping function receives images as raw byte data. ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.11.0-49-generic-x86_64-with-glibc2.32 - Python version: 3.8.0b4 - PyArrow version: 7.0.0 I think I excluded to decorate the function when `input_columns` were passed as a quick fix for some non-passing tests: - https://github.com/huggingface/datasets/pull/2324/commits/9d7c3e8fa53e23ec636859b4407eeec904b1b3f9 That PR was quite complex and I decided to focus on the main feature requests, leaving refinements for subsequent PRs. Note that when `input_columns` are passed, the signature of the function is effectively changed, while the decorated function expects an item (whether an example or a batch) as first arg (which is not the case when passing `input_columns`. I agree we should consider supporting the case when `input_columns` are passed.
[ -1.2339340448379517, -0.951544463634491, -0.7762469053268433, 1.4443132877349854, -0.23519748449325562, -1.2432953119277954, 0.1856549084186554, -1.0522340536117554, 1.718489646911621, -0.8929095268249512, 0.3018634021282196, -1.6797592639923096, 0.018966475501656532, -0.6245181560516357, -0.7452371120452881, -0.8055324554443359, -0.4296720623970032, -0.7792619466781616, 1.1364885568618774, 2.499527931213379, 1.1939152479171753, -1.3340320587158203, 2.7117760181427, 0.6980788111686707, -0.2664732336997986, -0.9932853579521179, 0.4384307265281677, -0.05631856247782707, -1.352035641670227, -0.4628543257713318, -0.9259868264198303, -0.012860767543315887, -0.6036427617073059, -0.5818116664886475, 0.04720461741089821, 0.3807337284088135, -0.28818172216415405, -0.5177735090255737, -0.4646643400192261, -0.7210134267807007, 0.41834011673927307, -0.4385559856891632, 0.9467222094535828, -0.28109583258628845, 1.7748515605926514, -0.6133062243461609, 0.41184788942337036, 0.7786146998405457, 1.3112945556640625, 0.15376737713813782, -0.04576755687594414, 0.38387614488601685, 0.33868953585624695, -0.06903935968875885, 0.4663327634334564, 1.1360832452774048, 0.6472240686416626, 0.5019583702087402, 0.7344704270362854, -2.300018787384033, 1.365658164024353, -0.9877842664718628, 0.33008113503456116, 1.3434643745422363, -0.9062696099281311, 0.3707287907600403, -1.7990204095840454, 0.0036588599905371666, 0.5959124565124512, -2.2050230503082275, 0.2599875330924988, -1.2517344951629639, -0.4766886532306671, 0.9900793433189392, 0.3464980721473694, -1.1989761590957642, 0.16310420632362366, -0.4176161587238312, 1.0416035652160645, 0.44097352027893066, 1.1092619895935059, -1.7679109573364258, -0.036184243857860565, -0.30912232398986816, 0.17778559029102325, -1.309949517250061, -1.5565435886383057, 0.5513872504234314, 0.6905660629272461, 0.6481418013572693, -0.17745722830295563, 1.0427896976470947, -0.9201853275299072, 0.7442697882652283, -1.002456784248352, -1.6916128396987915, -1.3759671449661255, -2.220130443572998, -2.259361505508423, 0.6723571419715881, -0.48987048864364624, -0.49538812041282654, 2.0595922470092773, -1.0722332000732422, -1.8575366735458374, 1.127265214920044, 0.2826385200023651, -0.08314283192157745, 2.321666955947876, 0.2947453558444977, -0.6673498749732971, 0.5328917503356934, -0.7388012409210205, 0.8550048470497131, -0.3921472132205963, 1.2896984815597534, 0.35300883650779724, -1.0873639583587646, 1.5801136493682861, -0.41696488857269287, 0.6103550791740417, -0.6825747489929199, -0.3781009614467621, -0.8530426621437073, 0.3671390414237976, 1.895919680595398, -0.2900722324848175, 1.4887322187423706, -0.4730916917324066, -1.6234290599822998, -1.6184163093566895, 0.8534112572669983, 0.5689051747322083, -0.7138487100601196, 0.19795088469982147, -0.34962737560272217, 0.13340996205806732, 0.008601929992437363, 1.1473312377929688, 1.3231992721557617, 0.7747467160224915, -0.34580865502357483, -0.8983116149902344, 0.24734526872634888, -0.03867228329181671, -0.7766401171684265, -1.763952612876892, -0.34819871187210083, 0.1915826052427292, 0.6196945309638977, -1.2140309810638428, 1.7956832647323608, 0.8825763463973999, 1.9299499988555908, 0.9760515689849854, -0.39177966117858887, 1.4687467813491821, 0.1261942833662033, 1.8202261924743652, -0.4675408899784088, 0.7197100520133972, -0.3516466021537781, -1.1580805778503418, 0.8268836140632629, -0.27376604080200195, -2.060988426208496, -0.7225075364112854, -0.7417959570884705, -0.21364828944206238, -0.7332720160484314, 0.9331395030021667, -0.3382653295993805, -1.410748839378357, 0.22468015551567078, -0.7153974175453186, 0.1684074103832245, -1.2507896423339844, 0.19732536375522614, 0.7397328615188599, -0.6577988266944885, 0.06802606582641602, -0.2527238428592682, -1.3204442262649536, -0.4315757751464844, 0.2990610599517822, 1.8551982641220093, -0.6987718939781189, 1.0105878114700317, 1.0352296829223633, -0.6006492376327515, -0.045200321823358536, 0.2624930441379547, -0.29043832421302795, 0.8537183403968811, -1.0271354913711548, -0.43720927834510803, 1.169849157333374, -0.19077491760253906, -0.607144832611084, 1.4692859649658203, 0.6866071224212646, -1.0266488790512085, -0.22555503249168396, -0.14517483115196228, -0.8221064209938049, -0.022788982838392258, -1.6677693128585815, -0.10106593370437622, 0.45888519287109375, -1.5227975845336914, -0.5061057806015015, -0.2600961923599243, 1.2708498239517212, -0.170495867729187, 1.4143224954605103, -0.40957894921302795, -0.27148231863975525, -0.30484578013420105, -0.3531222641468048, 0.21940138936042786, -0.15218563377857208, -0.676845371723175, 0.18381989002227783, -0.7926034331321716, 0.33224377036094666, 1.4823122024536133, 0.33371278643608093, 0.0612734816968441, 0.476374089717865, 1.0794880390167236, 0.36681821942329407, -0.03258027881383896, -0.8954333662986755, -1.5544015169143677, 2.024416208267212, -1.3805490732192993, 1.914713740348816, 0.8062765598297119, 0.0009627034887671471, -1.886743426322937, -1.8056395053863525, 1.3999837636947632, 1.1762639284133911, 2.333441734313965, 0.6156150102615356, 0.4416542649269104, -0.7848502993583679, -0.6429551243782043, 0.27062493562698364, -0.9602224230766296, -0.7834193706512451, 0.16329705715179443, 2.372628688812256, 1.796108603477478, -0.4216001629829407, -0.2370329052209854, -1.0086719989776611, 1.3902889490127563, -0.19263893365859985, 0.20225559175014496, 1.976806879043579, -0.2833642065525055, -1.0434857606887817, 1.3340040445327759, -2.2877438068389893, 0.215820774435997, 1.9515987634658813, 0.19174161553382874, 0.05483878031373024, -1.349703073501587, -0.7335846424102783, -0.2511119246482849, -0.37796372175216675, -1.2854444980621338, 0.5163639187812805, -0.2621195912361145, -0.7638543248176575, -1.44247305393219, 0.1594444215297699, -1.0580494403839111, -1.6627227067947388, 0.24192389845848083, 1.8153809309005737, 2.0486366748809814, -0.8025020956993103, 1.584295392036438, -0.34506845474243164, 0.23628558218479156, 1.1973944902420044, 1.1668164730072021, 3.0409045219421387, 1.7866936922073364, -1.338052749633789, 0.6595204472541809, -0.16651314496994019, -0.49239975214004517, 1.113316297531128, -1.0972959995269775, 1.301633358001709, -0.17599692940711975, -1.2178789377212524, -1.2298555374145508, 0.9554883241653442, 0.5180661678314209, 0.11937291920185089, -0.47175002098083496, 1.2397282123565674, 0.05258066579699516, 1.3391884565353394, 0.596889853477478, -0.3836711049079895, 0.6919718384742737, -0.35964423418045044, -0.5258774757385254, 1.5578508377075195, 0.1523204743862152, -1.3943991661071777, -2.276944160461426, -0.27904704213142395, -0.7808571457862854, 0.08261966705322266, -0.6024080514907837, -0.9780836701393127, 1.6389861106872559, 0.4108985364437103, -1.2013120651245117, -0.3085596263408661, -0.3947161138057709, -0.4940531551837921, 2.7017219066619873, -1.348267912864685, -0.2051011025905609, -0.944075882434845, -0.6190239191055298, 1.5571516752243042, -1.1892175674438477, -0.1830824315547943, -1.0999581813812256, -0.5200207233428955, -1.3337222337722778, -0.580243706703186, -0.04235868901014328, -0.9040213227272034, 0.8383308053016663, 0.17257840931415558, -1.1433013677597046, -0.35051432251930237, -0.9036260843276978, 0.8585996627807617, -0.18223941326141357, 0.1789783239364624, 1.8173021078109741, 0.49788832664489746, -0.3596400320529938, 0.8464783430099487, 1.1048195362091064, 0.6022757291793823, -0.6477155685424805, 0.18865805864334106, -0.7101718187332153, 0.27313029766082764, -1.245764970779419, 0.19779083132743835, -2.90226411819458, 0.6414820551872253, 0.004151634871959686, -0.04588371515274048, -0.03707750514149666, -1.3473185300827026, 1.057288646697998, 2.627321243286133, -1.2359710931777954, 0.4692990481853485, 0.33925580978393555, 1.1915786266326904, -1.5585845708847046, 0.20935285091400146, -0.4385955333709717, 2.1155004501342773, 0.1921212375164032, 1.2558358907699585, -0.546655535697937, -2.261291980743408, 0.6014276742935181, -1.2683358192443848, -1.187690258026123, 0.7867008447647095, -0.8213902115821838, 0.15541258454322815, -1.4285081624984741, -0.26349204778671265, -0.8850164413452148, -1.2434743642807007, 0.7190585136413574, 0.15960414707660675, 0.5168582201004028, -0.6186013221740723, 0.2990233898162842, -2.2132859230041504, -1.3994712829589844, -0.2514760196208954, -0.9304283857345581, 0.474878191947937, -0.33833765983581543, 0.7308916449546814, -0.14710605144500732, 0.05090481787919998, 0.3330913782119751, 1.407660961151123, 3.465409517288208, 0.20821961760520935, 0.32347744703292847, -0.1898544430732727, -0.9350489974021912, 1.4056578874588013, 0.9786471128463745, -0.17121052742004395, -0.5411494374275208, -1.0557563304901123, 1.2015882730484009, 2.001802682876587, 0.9809091687202454, -0.022811690345406532, -0.8728960156440735, -0.7321323156356812, 0.0206819549202919, 0.12317168712615967, 0.48752346634864807, 0.9210124015808105, 0.1485164612531662, 0.11823491752147675, 1.4858015775680542, 1.1839431524276733, -0.4356100261211395, 0.4917658567428589, -0.7831008434295654, -0.5208910703659058, 0.4785493016242981, 0.3479284346103668, 0.025479957461357117, 0.34832441806793213, -1.037321925163269, -0.16671612858772278, -0.37269818782806396, -0.9089424014091492, -0.7407498359680176, -0.41098251938819885, -0.3698650896549225, 1.5781933069229126, 0.08294513821601868, -0.45974016189575195, -0.062189675867557526, -0.7365374565124512, -0.10740542411804199, -0.9115837216377258, 0.29599544405937195, -0.17242662608623505, -0.10491518676280975, -0.15535789728164673, 1.7636812925338745, -0.9133561849594116, -1.9730256795883179, 0.25503572821617126, 0.2779422998428345, -0.27180832624435425, 0.21004274487495422, 1.7318140268325806, 0.6243050694465637, 1.4814895391464233, 1.4069714546203613, 0.9417860507965088, -0.6722725629806519, -1.2245925664901733, 0.6623839139938354, 0.9523698091506958, -1.3309707641601562, 0.705722451210022, -0.033800240606069565, -0.5123515129089355, 0.7126021385192871, 1.3141355514526367, 0.4512436091899872, -2.033177614212036, 0.7890048027038574, -0.948560893535614, 0.7919519543647766, 0.7360153794288635, 0.740977942943573, 0.10746932029724121, 0.7472648024559021, -1.2104445695877075, -1.113928198814392, -0.6987812519073486, -0.6214000582695007, 1.926567554473877, -0.3524287939071655, 0.5651077628135681, -0.22896841168403625, -1.3205516338348389, -0.09994061291217804, 0.7122419476509094, 0.3567463755607605, -0.46583715081214905, 0.7496160864830017, -0.5733185410499573, -1.1130342483520508, -1.3580166101455688, -0.46187669038772583, -0.9867255687713623, -0.9351711869239807, 0.9509168863296509, 0.7980574369430542, 0.3009868562221527, 1.8305065631866455, 0.6226983070373535, 0.15061193704605103, -2.579235792160034, 0.8482721447944641, 0.2220083326101303, -0.048629723489284515, 0.9462130069732666, 0.35586127638816833, 1.0007085800170898, -0.0581376776099205, 0.5274192094802856, -2.4138998985290527, 2.250959873199463, -0.2328590303659439, 0.7035130858421326, -0.11319586634635925, -0.17836107313632965, 1.1658802032470703, 0.5368032455444336, 0.5388031601905823, -1.0895929336547852, 0.6726546287536621, -0.5925630331039429, 1.3183534145355225, 0.8593919277191162, -0.8572216033935547, -0.05275683104991913, 1.4177502393722534, 0.3579559028148651, -0.4844801723957062, -0.9382228851318359, -1.0297523736953735, 1.0017502307891846, 1.7732136249542236, -0.13143081963062286, 0.003200046718120575, 0.7620003819465637, 0.7158562541007996, -1.3565512895584106, 0.06070238724350929, -0.7121304273605347, -0.6972407698631287, 1.673510193824768, 2.041503429412842, -0.1531604528427124, -0.20731471478939056, -0.7469931840896606, -1.2444915771484375, 0.8391284942626953, 0.04114852473139763, 0.15107467770576477, 0.6876161098480225, -0.6027780175209045, 1.188513159751892, 0.8423768877983093, 0.9042791128158569, 0.17374473810195923, 0.28962668776512146, 0.2990451455116272, -0.37591230869293213, -1.2141261100769043, -0.2069544792175293, -1.1240750551223755, -2.4688985347747803, 0.41313427686691284, -0.15578129887580872, -1.4867278337478638, 0.03180057927966118, -0.975780189037323, 0.8756234049797058, -0.5637362003326416, -1.1501471996307373, -1.5386362075805664, 0.1781887412071228, -0.08429208397865295, 0.9038089513778687, -1.518445372581482, -0.09759832918643951, 1.2515519857406616, 0.963350236415863, -0.6732497215270996, 1.0232408046722412, 0.2071332037448883, 0.9073673486709595, 0.8942168951034546, -0.37297749519348145, 0.5150994658470154, 0.05540386959910393, -1.3564213514328003, 0.4208138585090637, 1.149917483329773, 0.26356473565101624, 1.4936470985412598, -0.5939622521400452, 0.025393281131982803, 0.4301110804080963, -0.4610011875629425, -0.46935728192329407, -0.5512695908546448, 0.6303179860115051, 0.041614748537540436, -0.8683720231056213, 0.06900253891944885, 0.030329585075378418, -0.236937016248703, 0.27807241678237915, -1.476440191268921, -0.08882398903369904, -0.38002368807792664, -0.6808286905288696, -1.206202745437622, -0.04508766159415245, 1.409893274307251, -0.7745746970176697, -0.2335101068019867, 0.5243294835090637, 0.3128337264060974, 0.5883274078369141, 0.7019798755645752, -0.6307582259178162, -0.3488888740539551, -0.25979653000831604, -0.34396490454673767, 0.3996114432811737, 1.3634477853775024, -0.09844520688056946, -1.0044620037078857, 0.7155107259750366, -0.4192282557487488, 0.0791790634393692, 1.9178723096847534, 0.11556190252304077, -0.8563145995140076, 0.2692234516143799, -0.7703661322593689, 1.8403916358947754, 1.742753505706787, 1.2735962867736816, -0.0410294234752655, -1.0318416357040405, 0.618529736995697, -0.2518875300884247, -0.35855939984321594, 1.0255212783813477, 0.41605639457702637, -0.23776927590370178, -1.4031378030776978, 0.6857047080993652, 1.2772871255874634, -0.8379310965538025, -0.828555166721344, 0.10893049836158752, -0.8217161893844604, 1.1381903886795044, 0.7520336508750916, 0.4068860709667206, 0.2136194109916687, 1.6368199586868286, 0.8215065598487854, -0.43662211298942566, 0.5883234739303589, 0.477295845746994, -0.24881890416145325, -2.1296255588531494, -1.1506258249282837, 0.3259980380535126, -0.4644811749458313, -1.6280241012573242, 1.3765764236450195, -1.1567742824554443, -1.049048900604248, 0.5985643267631531, 0.10711401700973511, 1.4321434497833252, 0.329314649105072, 1.54219388961792, 2.1466190814971924, 0.9359388947486877, 0.2865924537181854, 1.254180669784546, -0.2627426087856293, -0.4424123764038086, 1.825183391571045, -0.5193499326705933, 0.4876234531402588, 1.0856633186340332, -0.36762166023254395, -1.034017562866211, -0.7950010299682617, -1.243631362915039, -0.7465570569038391, 1.194514513015747, 0.10870923101902008, -1.127206802368164, 0.24708402156829834, 1.501489520072937, 0.16180339455604553, -0.286262571811676, 0.7652499079704285, 0.44118309020996094, -0.8538584113121033, -0.05271657928824425, -0.8745500445365906, 0.46761420369148254, -0.20780642330646515, -0.2955247759819031, 0.31958767771720886, 0.4938009977340698, 1.316088080406189, -0.09555485844612122, 0.05692438408732414, 1.1565942764282227, -1.3783408403396606, 1.4651387929916382, -0.6706821918487549, 0.2928959131240845, -2.4020743370056152, 1.3878782987594604, -0.7950866222381592, 1.8919676542282104, -2.6879093647003174, 0.4328441917896271, -0.5723810195922852, -0.47505640983581543, 0.3552740216255188, -0.30130016803741455, 0.1323583424091339, -0.15323252975940704, -1.1231868267059326, -0.14908209443092346, -0.7773283123970032, 0.5888671278953552, 1.1446809768676758, 1.3647788763046265, -1.1364130973815918, -0.2527891993522644, -1.6615146398544312, -0.17802360653877258, -0.7691465020179749, 0.4221140444278717, -2.005004644393921, -0.20558059215545654, -1.9315837621688843, -2.392636299133301, -1.3055006265640259, -0.8302250504493713, 1.1306732892990112, 0.08085604012012482, -0.8572694659233093, 1.1137218475341797, -0.3959183692932129, -1.9089672565460205, 1.1319338083267212, -2.2024013996124268 ]
https://github.com/huggingface/datasets/issues/3755
Cannot preview dataset
Thanks for reporting. The dataset viewer depends on some backend treatments, and for now, they might take some hours to get processed. We're working on improving it.
## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am I the one who added this dataset ? No
943
27
Cannot preview dataset ## Dataset viewer issue for '*rubrix/news*' **Link:https://huggingface.co/datasets/rubrix/news** *link to the dataset viewer page* Cannot see the dataset preview: ``` Status code: 400 Exception: Status400Error Message: Not found. Cache is waiting to be refreshed. ``` Am I the one who added this dataset ? No Thanks for reporting. The dataset viewer depends on some backend treatments, and for now, they might take some hours to get processed. We're working on improving it.
[ -1.2747448682785034, -0.9321680068969727, -0.7825909852981567, 1.342427134513855, -0.2587451934814453, -1.2879953384399414, 0.13505135476589203, -1.0778381824493408, 1.8259265422821045, -0.5799493789672852, 0.11765455454587936, -1.7095961570739746, -0.059861570596694946, -0.4689359664916992, -0.7755276560783386, -0.8610383868217468, -0.5794021487236023, -0.8211027979850769, 0.9603883624076843, 2.454754590988159, 1.160815954208374, -1.4761326313018799, 2.653008222579956, 0.6645371317863464, -0.18791086971759796, -1.1207208633422852, 0.5345684885978699, 0.12404640763998032, -1.2098830938339233, -0.3672470152378082, -0.972015917301178, -0.14821934700012207, -0.48206043243408203, -0.49758031964302063, 0.05866687744855881, 0.4405866265296936, -0.07873248308897018, -0.4278249442577362, -0.45532071590423584, -0.6883336901664734, 0.4657910168170929, -0.33698105812072754, 0.8910035490989685, -0.4903267025947571, 1.7639929056167603, -0.5497069954872131, 0.3729706108570099, 0.7498795986175537, 1.5120205879211426, 0.1601494997739792, -0.1856115311384201, 0.29352861642837524, 0.44841268658638, -0.048821575939655304, 0.4088241755962372, 1.0614515542984009, 0.4589229226112366, 0.6264185905456543, 0.6233677864074707, -2.290769100189209, 1.2616932392120361, -1.0652079582214355, 0.3056286871433258, 1.5337692499160767, -1.135240077972412, 0.3083263337612152, -1.8272825479507446, -0.040661636739969254, 0.5002740025520325, -2.3144686222076416, 0.2600000500679016, -1.1709952354431152, -0.6050077676773071, 0.9575984477996826, 0.3288640081882477, -1.2549906969070435, 0.16459795832633972, -0.32421937584877014, 0.9333178400993347, 0.5242792963981628, 1.198599100112915, -1.6525484323501587, 0.11123336851596832, -0.37904828786849976, 0.046753689646720886, -1.3688181638717651, -1.4849427938461304, 0.5994638204574585, 0.555290699005127, 0.7125641107559204, -0.15395942330360413, 0.7902927994728088, -0.8999949097633362, 0.8000102043151855, -1.0251356363296509, -1.6370198726654053, -1.3304522037506104, -2.246382713317871, -2.264626979827881, 0.9135499596595764, -0.45066091418266296, -0.5360047817230225, 1.9925676584243774, -0.823560357093811, -1.8425624370574951, 1.260504126548767, 0.3582022786140442, 0.08295942842960358, 2.3978731632232666, 0.28961849212646484, -0.5173900127410889, 0.361812949180603, -0.7382420897483826, 0.9284038543701172, -0.4121224582195282, 1.5096720457077026, 0.5934230089187622, -0.9575636982917786, 1.635694146156311, -0.4041745066642761, 0.6529015898704529, -0.6253915429115295, -0.6425105929374695, -0.8154458403587341, 0.4582323729991913, 1.9613057374954224, -0.40253356099128723, 1.5334906578063965, -0.4879661500453949, -1.5449280738830566, -1.4857991933822632, 0.931452214717865, 0.6092135310173035, -0.8596777319908142, 0.05254504084587097, -0.31564000248908997, 0.0405680313706398, -0.178036630153656, 1.0540131330490112, 1.1597052812576294, 0.6801318526268005, -0.2487925887107849, -0.9090476632118225, 0.23540830612182617, -0.033440716564655304, -0.7814047336578369, -1.7978733777999878, -0.43916216492652893, 0.06970199197530746, 0.5784034729003906, -1.2422642707824707, 1.5667040348052979, 0.8739660978317261, 2.0152904987335205, 0.8409149050712585, -0.4324533939361572, 1.391734004020691, 0.0607597753405571, 1.8745708465576172, -0.5846928954124451, 0.6599318385124207, -0.19164849817752838, -1.097147822380066, 0.8153124451637268, -0.35531026124954224, -2.0649266242980957, -0.8262695670127869, -1.0458581447601318, -0.2036520540714264, -0.6583735942840576, 0.9788603782653809, -0.22517643868923187, -1.4147188663482666, 0.09978745877742767, -0.6401800513267517, 0.1457228809595108, -1.3217875957489014, 0.3111344575881958, 0.7291004657745361, -0.5512593388557434, -0.07974717020988464, -0.22484631836414337, -1.3440641164779663, -0.5082212686538696, 0.2269439399242401, 1.8189117908477783, -0.8000693321228027, 0.957307755947113, 0.8818020820617676, -0.7943779230117798, 0.04365469515323639, 0.2516201436519623, -0.15189805626869202, 0.8278218507766724, -1.0729331970214844, -0.48182106018066406, 1.0134230852127075, -0.08893200010061264, -0.6202650666236877, 1.6126983165740967, 0.7432858347892761, -0.9912567734718323, -0.16952815651893616, -0.3002086579799652, -0.8242683410644531, -0.0922001376748085, -1.6596263647079468, -0.19010135531425476, 0.09725765138864517, -1.496708631515503, -0.5645344853401184, -0.2848215103149414, 1.3486427068710327, -0.16895101964473724, 1.2715421915054321, -0.2684645354747772, -0.29435253143310547, -0.4578855633735657, -0.3354024291038513, 0.2131442427635193, -0.2274540662765503, -0.5050517320632935, 0.23321746289730072, -0.9302922487258911, 0.3387352228164673, 1.5124480724334717, 0.45571985840797424, 0.05847802013158798, 0.7215762138366699, 0.9769501090049744, 0.326842337846756, -0.06286055594682693, -0.9126265048980713, -1.5455892086029053, 1.8933523893356323, -1.531936526298523, 1.8208750486373901, 0.6606813073158264, -0.09330154210329056, -1.7517184019088745, -1.9069328308105469, 1.374018907546997, 1.2719907760620117, 2.3151283264160156, 0.7195639610290527, 0.4258275628089905, -0.8729245066642761, -0.5991950631141663, 0.19059912860393524, -1.0202096700668335, -0.628028154373169, 0.12323259562253952, 2.2051749229431152, 1.6716408729553223, -0.7073345184326172, -0.11829759180545807, -1.0792936086654663, 1.3218799829483032, -0.1335095912218094, 0.3043501079082489, 2.009111166000366, -0.30924883484840393, -1.0290683507919312, 1.284817099571228, -2.285273313522339, 0.1474905014038086, 1.9773876667022705, 0.31048259139060974, 0.12029298394918442, -1.5099601745605469, -0.6706113219261169, -0.11121320724487305, -0.423199325799942, -1.2274632453918457, 0.5647861957550049, -0.2815682590007782, -0.8874499797821045, -1.4840165376663208, 0.1974553018808365, -1.0568952560424805, -1.6251229047775269, 0.43551722168922424, 1.9065111875534058, 1.901280403137207, -0.7747880220413208, 1.4653148651123047, -0.2812894582748413, 0.16582320630550385, 1.3383216857910156, 1.0735000371932983, 2.9326391220092773, 1.971464991569519, -1.115049958229065, 0.7432195544242859, -0.08654323220252991, -0.5938974022865295, 1.218330979347229, -1.1152719259262085, 1.200693964958191, -0.2644643187522888, -1.185666561126709, -1.2724989652633667, 0.9214499592781067, 0.5487873554229736, 0.163754403591156, -0.5276948809623718, 1.243393898010254, 0.00748860277235508, 1.3362853527069092, 0.590281069278717, -0.4802294671535492, 0.6459446549415588, -0.44412121176719666, -0.3749241232872009, 1.7223010063171387, 0.24950076639652252, -1.411707878112793, -2.3951125144958496, -0.27965083718299866, -0.8829876184463501, -0.042515598237514496, -0.5871667265892029, -1.0075899362564087, 1.6369028091430664, 0.5688652992248535, -1.2062162160873413, -0.3820107579231262, -0.33004242181777954, -0.6482420563697815, 2.694952964782715, -1.3631556034088135, -0.21051597595214844, -0.8735517859458923, -0.4358811676502228, 1.805162787437439, -1.1195566654205322, -0.17544206976890564, -1.1910498142242432, -0.6529303789138794, -1.3735264539718628, -0.5626860857009888, 0.038864582777023315, -0.9307453036308289, 0.9599071741104126, 0.003331855870783329, -1.0401437282562256, -0.2712603509426117, -0.800832986831665, 0.8471457362174988, -0.12204080075025558, 0.23892904818058014, 1.966654658317566, 0.4462023377418518, -0.3695661723613739, 0.6358979940414429, 1.1662200689315796, 0.554596483707428, -0.6530076861381531, 0.2958226203918457, -0.6780266165733337, 0.23662373423576355, -1.4482343196868896, 0.11496523767709732, -2.924335241317749, 0.6189117431640625, -0.014547097496688366, 0.04875794053077698, -0.16155298054218292, -1.3388574123382568, 1.1888837814331055, 2.5277891159057617, -1.219172477722168, 0.40912193059921265, 0.38824138045310974, 1.2461042404174805, -1.472021460533142, 0.274638295173645, -0.48145154118537903, 2.1026058197021484, 0.11992285400629044, 1.1491416692733765, -0.5287732481956482, -2.1361851692199707, 0.7093122601509094, -1.2151821851730347, -1.2449915409088135, 0.5913281440734863, -0.7722309231758118, 0.1509377807378769, -1.555176019668579, -0.1441762000322342, -0.8802711367607117, -1.3314272165298462, 0.8974094986915588, 0.21393990516662598, 0.3767566382884979, -0.6620891690254211, 0.44609713554382324, -2.1177637577056885, -1.3994851112365723, -0.22276318073272705, -0.8576427102088928, 0.5079426169395447, -0.2903077006340027, 0.6418960690498352, -0.11018233746290207, 0.07601545751094818, 0.2089206427335739, 1.3223880529403687, 3.4195363521575928, 0.22749590873718262, 0.33241701126098633, -0.13332748413085938, -0.9699732661247253, 1.6171393394470215, 1.1714287996292114, 0.007741529494524002, -0.5719890594482422, -0.999259889125824, 1.2457486391067505, 2.001026153564453, 1.019575595855713, 0.03091469220817089, -0.8723604083061218, -0.4333275556564331, -0.02221130207180977, 0.2517954409122467, 0.4516150653362274, 0.9129061698913574, 0.009124405682086945, 0.0935947522521019, 1.3676341772079468, 1.2562661170959473, -0.43925371766090393, 0.5296366810798645, -0.8918229341506958, -0.49148258566856384, 0.4494902193546295, 0.42924201488494873, 0.0787813663482666, 0.45900529623031616, -1.1069691181182861, -0.2263805866241455, -0.08810380846261978, -0.9857481718063354, -0.6188066005706787, -0.45004943013191223, -0.45226621627807617, 1.6385321617126465, 0.029287369921803474, -0.44049304723739624, -0.10299154371023178, -0.7907626628875732, -0.052000582218170166, -1.114013910293579, 0.40016865730285645, -0.13299745321273804, 0.0034860223531723022, -0.25405630469322205, 1.762644648551941, -0.937334418296814, -2.1178271770477295, 0.2497670203447342, 0.45564699172973633, -0.5629243850708008, 0.19886751472949982, 1.433368444442749, 0.5492640137672424, 1.474081039428711, 1.4034885168075562, 0.9973055720329285, -0.6194005608558655, -1.3147188425064087, 0.530617892742157, 1.058718204498291, -1.3783868551254272, 0.7443282604217529, 0.14014676213264465, -0.5272942781448364, 0.6956362128257751, 1.3338308334350586, 0.3441063463687897, -1.9880975484848022, 0.7637451887130737, -0.7985061407089233, 0.9498305916786194, 0.6717618107795715, 0.9107476472854614, 0.3283470869064331, 0.7946980595588684, -1.4110159873962402, -1.216185212135315, -0.893024206161499, -0.5666841268539429, 2.0863189697265625, -0.18196266889572144, 0.6000701785087585, -0.18227583169937134, -1.1854661703109741, -0.1319027990102768, 0.6565832495689392, 0.5242717266082764, -0.3572821319103241, 0.7501369714736938, -0.4898805320262909, -1.023384690284729, -1.3111883401870728, -0.47529587149620056, -0.8320242762565613, -0.8857824206352234, 0.9826310873031616, 0.8720985651016235, 0.3663828670978546, 1.8562136888504028, 0.47531214356422424, 0.25663283467292786, -2.685493230819702, 0.8692854046821594, 0.3489404320716858, -0.004134927410632372, 0.8367041945457458, 0.3231608271598816, 1.088897943496704, 0.0019790874794125557, 0.5545311570167542, -2.2176408767700195, 2.1787850856781006, -0.23032690584659576, 0.552290678024292, 0.05236584693193436, -0.07232002913951874, 1.1142504215240479, 0.5535979866981506, 0.5480040907859802, -1.0675808191299438, 0.6799960136413574, -0.5783730745315552, 1.2772338390350342, 0.9495174884796143, -0.6398200988769531, -0.14788047969341278, 1.291667103767395, 0.6545611619949341, -0.36152565479278564, -0.9763896465301514, -0.7712752223014832, 0.9721567630767822, 1.6715611219406128, -0.1015099361538887, 0.05868951231241226, 0.9486313462257385, 0.6072037816047668, -1.306154727935791, 0.016923243179917336, -0.7841758131980896, -0.6103593111038208, 1.5946416854858398, 2.0125129222869873, -0.024359922856092453, -0.10051890462636948, -0.7228935360908508, -1.1958577632904053, 0.6967593431472778, 0.016321998089551926, 0.17176932096481323, 0.7483568787574768, -0.5523240566253662, 1.2416441440582275, 0.6641043424606323, 0.8643487691879272, 0.043321289122104645, 0.43307363986968994, 0.2810843288898468, -0.16052155196666718, -1.1682450771331787, -0.2851015329360962, -1.1393826007843018, -2.4829976558685303, 0.5447565317153931, -0.27152019739151, -1.3451626300811768, 0.016161778941750526, -1.1380501985549927, 1.0166059732437134, -0.6973804831504822, -1.200197696685791, -1.6600557565689087, 0.14221526682376862, -0.09294287860393524, 0.9159622192382812, -1.5191891193389893, -0.06462987512350082, 1.2284847497940063, 0.8108094930648804, -0.7340488433837891, 1.0500097274780273, 0.3248766362667084, 1.1484295129776, 0.7257693409919739, -0.39519211649894714, 0.4346553087234497, 0.11923351138830185, -1.3777921199798584, 0.6202462911605835, 1.1305220127105713, 0.09872108697891235, 1.4978939294815063, -0.6639668345451355, 0.031939491629600525, 0.5700916051864624, -0.5662310719490051, -0.5468241572380066, -0.5429731011390686, 0.7277501225471497, 0.13864846527576447, -1.051398754119873, 0.0988704189658165, -0.07580022513866425, -0.0858415961265564, 0.2900862991809845, -1.4678701162338257, -0.31810101866722107, -0.48745763301849365, -0.49380847811698914, -1.2842341661453247, -0.045532628893852234, 1.3095802068710327, -0.6554886698722839, -0.2117644101381302, 0.5456677675247192, 0.37469571828842163, 0.5207474827766418, 0.5907257199287415, -0.6154784560203552, -0.25025349855422974, -0.35942211747169495, -0.41766828298568726, 0.27932417392730713, 1.3375483751296997, -0.25539568066596985, -1.1287472248077393, 0.7421605587005615, -0.32842427492141724, -0.026073627173900604, 2.0368714332580566, 0.08910252153873444, -0.8097836971282959, 0.34226417541503906, -0.7510951161384583, 1.9008771181106567, 1.5148695707321167, 1.4010679721832275, -0.09841957688331604, -0.8442876935005188, 0.4816165864467621, -0.27938270568847656, -0.3380275070667267, 0.7834105491638184, 0.4796125888824463, -0.137681782245636, -1.3558828830718994, 0.5095065832138062, 1.39314603805542, -0.9229877591133118, -0.8959827423095703, 0.1240387037396431, -0.7950775623321533, 1.0901604890823364, 0.7035775184631348, 0.49743518233299255, 0.27917197346687317, 1.557194471359253, 0.6297550201416016, -0.43686652183532715, 0.4777228534221649, 0.5799816250801086, -0.0935334861278534, -2.1327412128448486, -1.14187753200531, 0.31366533041000366, -0.5290839672088623, -1.5383610725402832, 1.3596463203430176, -1.1434001922607422, -0.7735410332679749, 0.5304948687553406, 0.22544994950294495, 1.58431077003479, 0.3694421947002411, 1.672049880027771, 1.9925884008407593, 0.9536171555519104, 0.15467344224452972, 1.428976058959961, -0.04647638648748398, -0.48794254660606384, 1.9518049955368042, -0.43779176473617554, 0.4422132968902588, 1.1400327682495117, -0.3756968379020691, -1.0484899282455444, -0.8011536002159119, -1.2972979545593262, -0.5682873129844666, 1.108843445777893, 0.15399916470050812, -1.2799859046936035, 0.1459057331085205, 1.518807053565979, 0.07268821448087692, -0.26047104597091675, 0.5819335579872131, 0.3459652066230774, -0.9028032422065735, -0.031204670667648315, -0.971538782119751, 0.38312479853630066, -0.21927285194396973, -0.384895920753479, 0.2793794274330139, 0.633831799030304, 1.1876529455184937, -0.10267282277345657, 0.14511586725711823, 1.1775838136672974, -1.3783382177352905, 1.4764994382858276, -0.6736974716186523, 0.1750805526971817, -2.4170901775360107, 1.3513325452804565, -0.6776764988899231, 1.83110511302948, -2.785308837890625, 0.3623104691505432, -0.5409386157989502, -0.34271493554115295, 0.28077587485313416, -0.46523743867874146, 0.02789720706641674, -0.08962938189506531, -1.259636402130127, 0.026666702702641487, -0.7621383666992188, 0.5142523646354675, 1.206052303314209, 1.3670737743377686, -1.1196472644805908, -0.34907302260398865, -1.8895472288131714, -0.11974255740642548, -0.6996690630912781, 0.5135676860809326, -2.1457881927490234, -0.1565970927476883, -1.843772292137146, -2.159632444381714, -1.3327748775482178, -0.851661205291748, 1.0651904344558716, 0.11065452545881271, -1.0081133842468262, 0.9394761323928833, -0.3364149034023285, -1.696565866470337, 1.058467149734497, -2.2118940353393555 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Cool ! `filter` will be very useful. There can be a filter that you can apply on a streaming dataset: ```python load_dataset(..., streaming=True).filter(lambda x: x["lang"] == "sw") ``` Otherwise if you want to apply a filter on the source files that are going to be used for streaming, the logic has to be impIemented directly in the dataset script, or if there's no dataset script this can be done with pattern matching ```python load_dataset(..., lang="sw") # if the dataset script supports this parameter load_dataset(..., data_files="data/lang=sw/*") # if there's no dataset script, but only data files ``` -------------- Here are also some additional ideas of API to convert from iterable to map-style dataset: ```python on_disk_dataset = streaming_dataset.to_disk() on_disk_dataset = streaming_dataset.to_disk(path="path/to/my/dataset/dir") in_memory_dataset = streaming_dataset.take(100).to_memory() # to experiment without having to write files ``` -------------- Finally regarding `push_to_hub`, we can replace `batch_size` by `shard_size` (same API as for on-disk datasets). The default is 500MB per file Let me know what you think !
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
945
160
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova Cool ! `filter` will be very useful. There can be a filter that you can apply on a streaming dataset: ```python load_dataset(..., streaming=True).filter(lambda x: x["lang"] == "sw") ``` Otherwise if you want to apply a filter on the source files that are going to be used for streaming, the logic has to be impIemented directly in the dataset script, or if there's no dataset script this can be done with pattern matching ```python load_dataset(..., lang="sw") # if the dataset script supports this parameter load_dataset(..., data_files="data/lang=sw/*") # if there's no dataset script, but only data files ``` -------------- Here are also some additional ideas of API to convert from iterable to map-style dataset: ```python on_disk_dataset = streaming_dataset.to_disk() on_disk_dataset = streaming_dataset.to_disk(path="path/to/my/dataset/dir") in_memory_dataset = streaming_dataset.take(100).to_memory() # to experiment without having to write files ``` -------------- Finally regarding `push_to_hub`, we can replace `batch_size` by `shard_size` (same API as for on-disk datasets). The default is 500MB per file Let me know what you think !
[ -1.2378753423690796, -0.921877384185791, -0.7427502274513245, 1.3978016376495361, -0.19202034175395966, -1.3183302879333496, 0.21136008203029633, -1.1354832649230957, 1.7685195207595825, -0.8531825542449951, 0.3949827253818512, -1.6604512929916382, 0.059608396142721176, -0.6218402981758118, -0.8093530535697937, -0.8422976136207581, -0.4872516393661499, -0.7326765656471252, 0.9181053042411804, 2.4744768142700195, 1.2381142377853394, -1.4140511751174927, 2.651132583618164, 0.7428340315818787, -0.16920603811740875, -0.997938871383667, 0.41697588562965393, 0.006549774669110775, -1.3248238563537598, -0.42083388566970825, -0.8939232230186462, -0.04664261266589165, -0.5628103017807007, -0.5703645348548889, -0.020642533898353577, 0.46871811151504517, -0.3763595521450043, -0.5072638392448425, -0.5817626118659973, -0.7425898909568787, 0.5262605547904968, -0.3970358371734619, 1.0087928771972656, -0.32948142290115356, 1.8316742181777954, -0.5749559998512268, 0.4998345971107483, 0.7139652967453003, 1.37782621383667, 0.17571662366390228, 0.011976514011621475, 0.29936760663986206, 0.3511337637901306, -0.005702895577996969, 0.5020233392715454, 1.2143266201019287, 0.6577019095420837, 0.6340569257736206, 0.7777998447418213, -2.2806572914123535, 1.2892169952392578, -1.0933163166046143, 0.31937670707702637, 1.2922369241714478, -0.9140247702598572, 0.3039068877696991, -1.749923825263977, -0.052684418857097626, 0.5490953922271729, -2.2825262546539307, 0.2875424921512604, -1.3660123348236084, -0.49115797877311707, 1.0340749025344849, 0.336553156375885, -1.170361042022705, 0.2010156363248825, -0.40401098132133484, 0.9922264814376831, 0.4942541718482971, 1.1364799737930298, -1.6628577709197998, -0.04493621364235878, -0.36095261573791504, 0.14467912912368774, -1.3029550313949585, -1.4924664497375488, 0.5628546476364136, 0.5828689932823181, 0.6204172968864441, -0.11420869827270508, 1.091741919517517, -0.9840870499610901, 0.6829721331596375, -0.9861406087875366, -1.662626028060913, -1.4490487575531006, -2.179074287414551, -2.2134296894073486, 0.7327807545661926, -0.44821059703826904, -0.5784743428230286, 2.029085874557495, -1.0158895254135132, -1.7788208723068237, 1.1366418600082397, 0.23585957288742065, 0.02397735044360161, 2.330392599105835, 0.15538175404071808, -0.6888560652732849, 0.48158755898475647, -0.6094620823860168, 0.8038638234138489, -0.39659762382507324, 1.2480000257492065, 0.3922021687030792, -1.0981611013412476, 1.5792316198349, -0.41529253125190735, 0.6842151284217834, -0.696381151676178, -0.5474138855934143, -0.8165811896324158, 0.33754515647888184, 1.8198820352554321, -0.3272600471973419, 1.6487576961517334, -0.3501650094985962, -1.5708940029144287, -1.7266504764556885, 0.9934107065200806, 0.4731261134147644, -0.726252555847168, 0.10158683359622955, -0.3375324606895447, 0.12823402881622314, -0.16162095963954926, 1.189408302307129, 1.1789753437042236, 0.7198298573493958, -0.3934042751789093, -0.849947988986969, 0.17769598960876465, 0.012845378369092941, -0.7914286851882935, -1.6601347923278809, -0.32597270607948303, 0.21254704892635345, 0.5455954074859619, -1.1207131147384644, 1.7767263650894165, 0.9011157751083374, 1.9040435552597046, 1.07176673412323, -0.2844637930393219, 1.434796690940857, 0.10320264101028442, 1.7930636405944824, -0.4408246874809265, 0.6423995494842529, -0.319987028837204, -1.174254059791565, 0.8112866282463074, -0.31644517183303833, -2.1183793544769287, -0.7345695495605469, -0.7436432242393494, -0.21594522893428802, -0.7403785586357117, 0.9432590007781982, -0.2998462915420532, -1.3951674699783325, 0.16973116993904114, -0.6310842633247375, 0.0986981987953186, -1.1280975341796875, 0.299040824174881, 0.6836583614349365, -0.6679927706718445, 0.04644232988357544, -0.25792139768600464, -1.2588138580322266, -0.4195927083492279, 0.2986214756965637, 1.76255464553833, -0.7473331689834595, 0.8481569290161133, 1.062208652496338, -0.6714028120040894, -0.050525058060884476, 0.28419896960258484, -0.24422378838062286, 0.8518033623695374, -0.9767690896987915, -0.36987000703811646, 1.2524586915969849, -0.1900860071182251, -0.6969119906425476, 1.5292649269104004, 0.5878034830093384, -0.9436706900596619, -0.1153796911239624, -0.12641143798828125, -0.9047614932060242, -0.04570858180522919, -1.576452374458313, -0.0005217310972511768, 0.4057920575141907, -1.5648590326309204, -0.47719570994377136, -0.15847814083099365, 1.1624864339828491, -0.2058810591697693, 1.3681740760803223, -0.3494463562965393, -0.1992281973361969, -0.34552112221717834, -0.3047621250152588, 0.013453708961606026, -0.09053359925746918, -0.6629449725151062, 0.12327620387077332, -0.7815746665000916, 0.3818158507347107, 1.4966614246368408, 0.29798707365989685, 0.09351126849651337, 0.49431461095809937, 1.0996170043945312, 0.3883233070373535, -0.08702819049358368, -0.8172743916511536, -1.5392612218856812, 1.9424381256103516, -1.4417234659194946, 1.9569746255874634, 0.7267292737960815, -0.06546930968761444, -1.8350468873977661, -1.8765159845352173, 1.3557442426681519, 1.144018292427063, 2.3575544357299805, 0.4840075373649597, 0.31722262501716614, -0.8186306357383728, -0.6847957372665405, 0.4345967173576355, -1.0498220920562744, -0.6983506083488464, 0.1516898274421692, 2.3025550842285156, 1.8594961166381836, -0.41251012682914734, -0.1925036460161209, -1.040972113609314, 1.4043916463851929, -0.19720907509326935, 0.23185916244983673, 1.96656334400177, -0.2805979251861572, -1.033612608909607, 1.4261949062347412, -2.305325508117676, 0.10824044048786163, 1.9629244804382324, 0.2652476131916046, 0.044090572744607925, -1.2579090595245361, -0.5643994212150574, -0.2318880259990692, -0.36574310064315796, -1.3186984062194824, 0.4816460907459259, -0.32718199491500854, -0.6157339215278625, -1.3902976512908936, 0.2611643970012665, -1.0690383911132812, -1.574997901916504, 0.21356916427612305, 1.8597913980484009, 1.9254237413406372, -0.6653376221656799, 1.538594365119934, -0.3152352273464203, 0.13878509402275085, 1.2274812459945679, 1.1956548690795898, 3.112513542175293, 1.913857340812683, -1.3402079343795776, 0.6865162253379822, -0.1284705400466919, -0.5479252934455872, 1.1766828298568726, -1.2702597379684448, 1.337896704673767, -0.17157907783985138, -1.1513562202453613, -1.2340264320373535, 0.9390091300010681, 0.5145457983016968, 0.15112055838108063, -0.5285610556602478, 1.1446861028671265, 0.09540456533432007, 1.3027312755584717, 0.5621159076690674, -0.48622339963912964, 0.6925787329673767, -0.39039456844329834, -0.5986429452896118, 1.541022777557373, 0.20953814685344696, -1.2903246879577637, -2.206683874130249, -0.17113187909126282, -0.8575031161308289, 0.1395116150379181, -0.6089757680892944, -0.9489949345588684, 1.7131041288375854, 0.31932640075683594, -1.3571686744689941, -0.17814038693904877, -0.34553205966949463, -0.5808123350143433, 2.7340314388275146, -1.375895380973816, -0.20565453171730042, -1.12656569480896, -0.7069763541221619, 1.656369686126709, -1.1880171298980713, -0.23651978373527527, -1.011867642402649, -0.5000680088996887, -1.3141672611236572, -0.5022314786911011, 0.007918555289506912, -0.8865898847579956, 0.9094017148017883, 0.23993952572345734, -1.2419100999832153, -0.3711779713630676, -0.7783923149108887, 0.8968793153762817, -0.19161345064640045, 0.1953101009130478, 1.9545127153396606, 0.42223602533340454, -0.3625688850879669, 0.7042180895805359, 1.1595556735992432, 0.5559608340263367, -0.695831835269928, 0.2833331227302551, -0.7139690518379211, 0.32588860392570496, -1.3541754484176636, 0.25241464376449585, -2.8106393814086914, 0.6093571186065674, -0.07705573737621307, -0.009922249242663383, 0.044741712510585785, -1.3672945499420166, 0.8825096487998962, 2.7027456760406494, -1.1812210083007812, 0.4189680516719818, 0.3314417600631714, 1.160548448562622, -1.617498517036438, 0.2813301980495453, -0.465717077255249, 2.0799808502197266, 0.17639295756816864, 1.1480714082717896, -0.4910113513469696, -2.338339328765869, 0.55093914270401, -1.1887853145599365, -1.3310860395431519, 0.8609328866004944, -0.8753817677497864, 0.07906739413738251, -1.4022787809371948, -0.2633183002471924, -0.8307723999023438, -1.1990950107574463, 0.7773882746696472, 0.18131710588932037, 0.4536139667034149, -0.7017335295677185, 0.2854636013507843, -2.2257580757141113, -1.3001950979232788, -0.2501658797264099, -0.8708183169364929, 0.5139806270599365, -0.32655900716781616, 0.6443428993225098, -0.1962815225124359, -0.005996644496917725, 0.35599687695503235, 1.4358159303665161, 3.3822240829467773, 0.28094571828842163, 0.2947544753551483, -0.29634031653404236, -0.8533273339271545, 1.3724199533462524, 0.8596315383911133, -0.1350569725036621, -0.6153128743171692, -1.1075140237808228, 1.2253578901290894, 1.860579252243042, 0.9474912285804749, 0.06273321807384491, -0.8114351630210876, -0.6851305961608887, -0.0648052990436554, 0.12168148159980774, 0.41628551483154297, 0.9046913385391235, 0.13550977408885956, 0.16652031242847443, 1.3765395879745483, 1.144553542137146, -0.29752546548843384, 0.3385108411312103, -0.7624821066856384, -0.4910507798194885, 0.5614070296287537, 0.3728748857975006, -0.012756040319800377, 0.31895509362220764, -1.0168637037277222, -0.20273515582084656, -0.5166847109794617, -0.945409893989563, -0.6549389958381653, -0.483125776052475, -0.3112427592277527, 1.666654109954834, 0.05246594175696373, -0.5840033888816833, -0.09621286392211914, -0.7838608026504517, -0.18283012509346008, -1.0342073440551758, 0.3571045696735382, -0.09388116002082825, -0.17496077716350555, -0.049911271780729294, 1.6953309774398804, -0.9607424736022949, -2.013204336166382, 0.2423010766506195, 0.1689452975988388, -0.2948191463947296, 0.1661505103111267, 1.5995489358901978, 0.48054301738739014, 1.3706836700439453, 1.3976078033447266, 0.8741808533668518, -0.6746308207511902, -1.3553603887557983, 0.6190728545188904, 0.9681811332702637, -1.3692938089370728, 0.8188203573226929, 0.10985800623893738, -0.5600087642669678, 0.6573113799095154, 1.1770671606063843, 0.46970534324645996, -2.081282615661621, 0.7319361567497253, -0.9717144966125488, 0.740492582321167, 0.7996703386306763, 0.6836038827896118, 0.2601570785045624, 0.8460811376571655, -1.188490390777588, -1.2390861511230469, -0.7088847756385803, -0.7849010825157166, 2.0190672874450684, -0.2440302073955536, 0.7063271999359131, -0.10669474303722382, -1.376824975013733, -0.08241786062717438, 0.7535570859909058, 0.3695437014102936, -0.538547933101654, 0.7955442070960999, -0.6957970857620239, -0.9838507175445557, -1.4087880849838257, -0.48631054162979126, -1.1104183197021484, -0.8828104138374329, 1.084104061126709, 0.8604371547698975, 0.16193783283233643, 1.9050301313400269, 0.7236561179161072, 0.2867061197757721, -2.655907392501831, 0.7939609885215759, 0.35050246119499207, 0.011248916387557983, 0.8487703800201416, 0.4309525191783905, 0.866908073425293, 0.03990868106484413, 0.5657170414924622, -2.4821650981903076, 2.3108749389648438, -0.25814542174339294, 0.7004558444023132, -0.12578468024730682, -0.3062199652194977, 1.1128432750701904, 0.5592661499977112, 0.5088486671447754, -1.0303435325622559, 0.6556549668312073, -0.5089367628097534, 1.2224165201187134, 0.9155409932136536, -0.8281604647636414, -0.10161133110523224, 1.4158563613891602, 0.47803249955177307, -0.5522023439407349, -0.9543322324752808, -0.9843239188194275, 0.924072802066803, 1.813676118850708, -0.007071578875184059, 0.02940993383526802, 0.8845921754837036, 0.7456028461456299, -1.2466486692428589, 0.12476049363613129, -0.7383696436882019, -0.8563516736030579, 1.6478638648986816, 2.039850950241089, -0.08149003982543945, -0.16373395919799805, -0.7584002614021301, -1.1813887357711792, 0.8678180575370789, -0.0034445375204086304, 0.07495184242725372, 0.6613233685493469, -0.7090383172035217, 1.0695217847824097, 0.9734417200088501, 0.9414687752723694, 0.15649379789829254, 0.25153863430023193, 0.443043977022171, -0.27533671259880066, -1.167634129524231, -0.11826957762241364, -1.0373661518096924, -2.4883546829223633, 0.48861411213874817, -0.14290021359920502, -1.4953374862670898, -0.02362770214676857, -1.0142062902450562, 0.923325777053833, -0.5914636850357056, -1.1745893955230713, -1.5312719345092773, 0.2070368081331253, -0.00901891104876995, 0.9072946310043335, -1.521377444267273, -0.11560216546058655, 1.0897737741470337, 0.9468792080879211, -0.7002126574516296, 0.9847256541252136, 0.14596140384674072, 1.0219866037368774, 0.9292311072349548, -0.3899012506008148, 0.495026171207428, 0.004658984951674938, -1.3508878946304321, 0.43176019191741943, 1.1167670488357544, 0.19960376620292664, 1.5135767459869385, -0.5463820695877075, 0.0788821280002594, 0.3343590199947357, -0.5685295462608337, -0.33398231863975525, -0.6053802967071533, 0.7361064553260803, 0.03301680460572243, -0.8515661954879761, 0.002683192491531372, -0.02337166666984558, -0.269413024187088, 0.113480344414711, -1.4148931503295898, -0.0790078341960907, -0.4164581000804901, -0.6155364513397217, -1.1379029750823975, -0.05908948928117752, 1.5043766498565674, -0.7329288125038147, -0.23040246963500977, 0.5345515012741089, 0.34489378333091736, 0.5464867353439331, 0.6196241974830627, -0.7444998025894165, -0.2516530454158783, -0.16994479298591614, -0.4196380376815796, 0.3742898404598236, 1.4081823825836182, -0.10579283535480499, -0.9084261059761047, 0.7573816180229187, -0.36919862031936646, 0.04842844977974892, 1.955751657485962, 0.1504053771495819, -0.6522745490074158, 0.3020603656768799, -0.7636251449584961, 1.829223394393921, 1.8740440607070923, 1.3243913650512695, -0.08101193606853485, -1.0044039487838745, 0.6478434801101685, -0.4065975546836853, -0.3880397081375122, 0.9893693327903748, 0.3629375696182251, -0.18714863061904907, -1.4085214138031006, 0.723535418510437, 1.194543480873108, -0.7826392650604248, -0.7892389893531799, 0.024097923189401627, -0.7622569799423218, 1.0646735429763794, 0.5316417813301086, 0.38779962062835693, 0.2586078345775604, 1.6274423599243164, 0.7416237592697144, -0.3261561393737793, 0.5740642547607422, 0.5745779871940613, -0.09709255397319794, -2.194334030151367, -1.1563911437988281, 0.37144970893859863, -0.5335802435874939, -1.6353288888931274, 1.418639063835144, -1.2365912199020386, -0.9469271302223206, 0.48601266741752625, 0.05433044955134392, 1.4743528366088867, 0.42185837030410767, 1.5561330318450928, 2.206746816635132, 0.9416995644569397, 0.391039103269577, 1.4023572206497192, -0.12927386164665222, -0.4674149751663208, 1.8129761219024658, -0.5611833333969116, 0.37572723627090454, 1.0783439874649048, -0.3289118707180023, -1.0705984830856323, -0.7167958617210388, -1.3080717325210571, -0.7421696186065674, 1.1410236358642578, 0.04396051540970802, -1.0525131225585938, 0.3196181654930115, 1.6346430778503418, 0.09492798149585724, -0.25760215520858765, 0.6568276286125183, 0.4267866313457489, -0.8898336291313171, -0.09631119668483734, -0.8545311093330383, 0.5609527230262756, -0.23047737777233124, -0.3161165714263916, 0.3448280394077301, 0.4704751670360565, 1.3408883810043335, -0.027498338371515274, 0.06667067110538483, 1.1383895874023438, -1.4748910665512085, 1.4224778413772583, -0.7049279808998108, 0.2243230789899826, -2.4869492053985596, 1.4175478219985962, -0.7021600008010864, 1.930411458015442, -2.622887372970581, 0.487336128950119, -0.6672650575637817, -0.46362850069999695, 0.3444454073905945, -0.34981876611709595, 0.08488611876964569, -0.11946317553520203, -1.1929742097854614, 0.049245405942201614, -0.6459813714027405, 0.6402366161346436, 1.1119126081466675, 1.3295228481292725, -1.1763081550598145, -0.33106744289398193, -1.7467728853225708, -0.18759089708328247, -0.6742843389511108, 0.2723424732685089, -1.9817372560501099, -0.1617240160703659, -1.9395931959152222, -2.4832842350006104, -1.2695939540863037, -0.6937994956970215, 1.0770041942596436, 0.16509616374969482, -0.8886889219284058, 1.2096680402755737, -0.4307954013347626, -1.8929201364517212, 1.0912041664123535, -2.193537712097168 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
Regarding conversion, I'd also ask for some kind of equivalent to `save_to_disk` for an `IterableDataset`. Similarly to the streaming to hub idea, my use case would be to define a sequence of dataset transforms via `.map()`, using an `IterableDataset` as the input (so processing could start without doing whole download up-front), but streaming the resultant processed dataset just to disk.
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
945
60
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova Regarding conversion, I'd also ask for some kind of equivalent to `save_to_disk` for an `IterableDataset`. Similarly to the streaming to hub idea, my use case would be to define a sequence of dataset transforms via `.map()`, using an `IterableDataset` as the input (so processing could start without doing whole download up-front), but streaming the resultant processed dataset just to disk.
[ -1.2378753423690796, -0.921877384185791, -0.7427502274513245, 1.3978016376495361, -0.19202034175395966, -1.3183302879333496, 0.21136008203029633, -1.1354832649230957, 1.7685195207595825, -0.8531825542449951, 0.3949827253818512, -1.6604512929916382, 0.059608396142721176, -0.6218402981758118, -0.8093530535697937, -0.8422976136207581, -0.4872516393661499, -0.7326765656471252, 0.9181053042411804, 2.4744768142700195, 1.2381142377853394, -1.4140511751174927, 2.651132583618164, 0.7428340315818787, -0.16920603811740875, -0.997938871383667, 0.41697588562965393, 0.006549774669110775, -1.3248238563537598, -0.42083388566970825, -0.8939232230186462, -0.04664261266589165, -0.5628103017807007, -0.5703645348548889, -0.020642533898353577, 0.46871811151504517, -0.3763595521450043, -0.5072638392448425, -0.5817626118659973, -0.7425898909568787, 0.5262605547904968, -0.3970358371734619, 1.0087928771972656, -0.32948142290115356, 1.8316742181777954, -0.5749559998512268, 0.4998345971107483, 0.7139652967453003, 1.37782621383667, 0.17571662366390228, 0.011976514011621475, 0.29936760663986206, 0.3511337637901306, -0.005702895577996969, 0.5020233392715454, 1.2143266201019287, 0.6577019095420837, 0.6340569257736206, 0.7777998447418213, -2.2806572914123535, 1.2892169952392578, -1.0933163166046143, 0.31937670707702637, 1.2922369241714478, -0.9140247702598572, 0.3039068877696991, -1.749923825263977, -0.052684418857097626, 0.5490953922271729, -2.2825262546539307, 0.2875424921512604, -1.3660123348236084, -0.49115797877311707, 1.0340749025344849, 0.336553156375885, -1.170361042022705, 0.2010156363248825, -0.40401098132133484, 0.9922264814376831, 0.4942541718482971, 1.1364799737930298, -1.6628577709197998, -0.04493621364235878, -0.36095261573791504, 0.14467912912368774, -1.3029550313949585, -1.4924664497375488, 0.5628546476364136, 0.5828689932823181, 0.6204172968864441, -0.11420869827270508, 1.091741919517517, -0.9840870499610901, 0.6829721331596375, -0.9861406087875366, -1.662626028060913, -1.4490487575531006, -2.179074287414551, -2.2134296894073486, 0.7327807545661926, -0.44821059703826904, -0.5784743428230286, 2.029085874557495, -1.0158895254135132, -1.7788208723068237, 1.1366418600082397, 0.23585957288742065, 0.02397735044360161, 2.330392599105835, 0.15538175404071808, -0.6888560652732849, 0.48158755898475647, -0.6094620823860168, 0.8038638234138489, -0.39659762382507324, 1.2480000257492065, 0.3922021687030792, -1.0981611013412476, 1.5792316198349, -0.41529253125190735, 0.6842151284217834, -0.696381151676178, -0.5474138855934143, -0.8165811896324158, 0.33754515647888184, 1.8198820352554321, -0.3272600471973419, 1.6487576961517334, -0.3501650094985962, -1.5708940029144287, -1.7266504764556885, 0.9934107065200806, 0.4731261134147644, -0.726252555847168, 0.10158683359622955, -0.3375324606895447, 0.12823402881622314, -0.16162095963954926, 1.189408302307129, 1.1789753437042236, 0.7198298573493958, -0.3934042751789093, -0.849947988986969, 0.17769598960876465, 0.012845378369092941, -0.7914286851882935, -1.6601347923278809, -0.32597270607948303, 0.21254704892635345, 0.5455954074859619, -1.1207131147384644, 1.7767263650894165, 0.9011157751083374, 1.9040435552597046, 1.07176673412323, -0.2844637930393219, 1.434796690940857, 0.10320264101028442, 1.7930636405944824, -0.4408246874809265, 0.6423995494842529, -0.319987028837204, -1.174254059791565, 0.8112866282463074, -0.31644517183303833, -2.1183793544769287, -0.7345695495605469, -0.7436432242393494, -0.21594522893428802, -0.7403785586357117, 0.9432590007781982, -0.2998462915420532, -1.3951674699783325, 0.16973116993904114, -0.6310842633247375, 0.0986981987953186, -1.1280975341796875, 0.299040824174881, 0.6836583614349365, -0.6679927706718445, 0.04644232988357544, -0.25792139768600464, -1.2588138580322266, -0.4195927083492279, 0.2986214756965637, 1.76255464553833, -0.7473331689834595, 0.8481569290161133, 1.062208652496338, -0.6714028120040894, -0.050525058060884476, 0.28419896960258484, -0.24422378838062286, 0.8518033623695374, -0.9767690896987915, -0.36987000703811646, 1.2524586915969849, -0.1900860071182251, -0.6969119906425476, 1.5292649269104004, 0.5878034830093384, -0.9436706900596619, -0.1153796911239624, -0.12641143798828125, -0.9047614932060242, -0.04570858180522919, -1.576452374458313, -0.0005217310972511768, 0.4057920575141907, -1.5648590326309204, -0.47719570994377136, -0.15847814083099365, 1.1624864339828491, -0.2058810591697693, 1.3681740760803223, -0.3494463562965393, -0.1992281973361969, -0.34552112221717834, -0.3047621250152588, 0.013453708961606026, -0.09053359925746918, -0.6629449725151062, 0.12327620387077332, -0.7815746665000916, 0.3818158507347107, 1.4966614246368408, 0.29798707365989685, 0.09351126849651337, 0.49431461095809937, 1.0996170043945312, 0.3883233070373535, -0.08702819049358368, -0.8172743916511536, -1.5392612218856812, 1.9424381256103516, -1.4417234659194946, 1.9569746255874634, 0.7267292737960815, -0.06546930968761444, -1.8350468873977661, -1.8765159845352173, 1.3557442426681519, 1.144018292427063, 2.3575544357299805, 0.4840075373649597, 0.31722262501716614, -0.8186306357383728, -0.6847957372665405, 0.4345967173576355, -1.0498220920562744, -0.6983506083488464, 0.1516898274421692, 2.3025550842285156, 1.8594961166381836, -0.41251012682914734, -0.1925036460161209, -1.040972113609314, 1.4043916463851929, -0.19720907509326935, 0.23185916244983673, 1.96656334400177, -0.2805979251861572, -1.033612608909607, 1.4261949062347412, -2.305325508117676, 0.10824044048786163, 1.9629244804382324, 0.2652476131916046, 0.044090572744607925, -1.2579090595245361, -0.5643994212150574, -0.2318880259990692, -0.36574310064315796, -1.3186984062194824, 0.4816460907459259, -0.32718199491500854, -0.6157339215278625, -1.3902976512908936, 0.2611643970012665, -1.0690383911132812, -1.574997901916504, 0.21356916427612305, 1.8597913980484009, 1.9254237413406372, -0.6653376221656799, 1.538594365119934, -0.3152352273464203, 0.13878509402275085, 1.2274812459945679, 1.1956548690795898, 3.112513542175293, 1.913857340812683, -1.3402079343795776, 0.6865162253379822, -0.1284705400466919, -0.5479252934455872, 1.1766828298568726, -1.2702597379684448, 1.337896704673767, -0.17157907783985138, -1.1513562202453613, -1.2340264320373535, 0.9390091300010681, 0.5145457983016968, 0.15112055838108063, -0.5285610556602478, 1.1446861028671265, 0.09540456533432007, 1.3027312755584717, 0.5621159076690674, -0.48622339963912964, 0.6925787329673767, -0.39039456844329834, -0.5986429452896118, 1.541022777557373, 0.20953814685344696, -1.2903246879577637, -2.206683874130249, -0.17113187909126282, -0.8575031161308289, 0.1395116150379181, -0.6089757680892944, -0.9489949345588684, 1.7131041288375854, 0.31932640075683594, -1.3571686744689941, -0.17814038693904877, -0.34553205966949463, -0.5808123350143433, 2.7340314388275146, -1.375895380973816, -0.20565453171730042, -1.12656569480896, -0.7069763541221619, 1.656369686126709, -1.1880171298980713, -0.23651978373527527, -1.011867642402649, -0.5000680088996887, -1.3141672611236572, -0.5022314786911011, 0.007918555289506912, -0.8865898847579956, 0.9094017148017883, 0.23993952572345734, -1.2419100999832153, -0.3711779713630676, -0.7783923149108887, 0.8968793153762817, -0.19161345064640045, 0.1953101009130478, 1.9545127153396606, 0.42223602533340454, -0.3625688850879669, 0.7042180895805359, 1.1595556735992432, 0.5559608340263367, -0.695831835269928, 0.2833331227302551, -0.7139690518379211, 0.32588860392570496, -1.3541754484176636, 0.25241464376449585, -2.8106393814086914, 0.6093571186065674, -0.07705573737621307, -0.009922249242663383, 0.044741712510585785, -1.3672945499420166, 0.8825096487998962, 2.7027456760406494, -1.1812210083007812, 0.4189680516719818, 0.3314417600631714, 1.160548448562622, -1.617498517036438, 0.2813301980495453, -0.465717077255249, 2.0799808502197266, 0.17639295756816864, 1.1480714082717896, -0.4910113513469696, -2.338339328765869, 0.55093914270401, -1.1887853145599365, -1.3310860395431519, 0.8609328866004944, -0.8753817677497864, 0.07906739413738251, -1.4022787809371948, -0.2633183002471924, -0.8307723999023438, -1.1990950107574463, 0.7773882746696472, 0.18131710588932037, 0.4536139667034149, -0.7017335295677185, 0.2854636013507843, -2.2257580757141113, -1.3001950979232788, -0.2501658797264099, -0.8708183169364929, 0.5139806270599365, -0.32655900716781616, 0.6443428993225098, -0.1962815225124359, -0.005996644496917725, 0.35599687695503235, 1.4358159303665161, 3.3822240829467773, 0.28094571828842163, 0.2947544753551483, -0.29634031653404236, -0.8533273339271545, 1.3724199533462524, 0.8596315383911133, -0.1350569725036621, -0.6153128743171692, -1.1075140237808228, 1.2253578901290894, 1.860579252243042, 0.9474912285804749, 0.06273321807384491, -0.8114351630210876, -0.6851305961608887, -0.0648052990436554, 0.12168148159980774, 0.41628551483154297, 0.9046913385391235, 0.13550977408885956, 0.16652031242847443, 1.3765395879745483, 1.144553542137146, -0.29752546548843384, 0.3385108411312103, -0.7624821066856384, -0.4910507798194885, 0.5614070296287537, 0.3728748857975006, -0.012756040319800377, 0.31895509362220764, -1.0168637037277222, -0.20273515582084656, -0.5166847109794617, -0.945409893989563, -0.6549389958381653, -0.483125776052475, -0.3112427592277527, 1.666654109954834, 0.05246594175696373, -0.5840033888816833, -0.09621286392211914, -0.7838608026504517, -0.18283012509346008, -1.0342073440551758, 0.3571045696735382, -0.09388116002082825, -0.17496077716350555, -0.049911271780729294, 1.6953309774398804, -0.9607424736022949, -2.013204336166382, 0.2423010766506195, 0.1689452975988388, -0.2948191463947296, 0.1661505103111267, 1.5995489358901978, 0.48054301738739014, 1.3706836700439453, 1.3976078033447266, 0.8741808533668518, -0.6746308207511902, -1.3553603887557983, 0.6190728545188904, 0.9681811332702637, -1.3692938089370728, 0.8188203573226929, 0.10985800623893738, -0.5600087642669678, 0.6573113799095154, 1.1770671606063843, 0.46970534324645996, -2.081282615661621, 0.7319361567497253, -0.9717144966125488, 0.740492582321167, 0.7996703386306763, 0.6836038827896118, 0.2601570785045624, 0.8460811376571655, -1.188490390777588, -1.2390861511230469, -0.7088847756385803, -0.7849010825157166, 2.0190672874450684, -0.2440302073955536, 0.7063271999359131, -0.10669474303722382, -1.376824975013733, -0.08241786062717438, 0.7535570859909058, 0.3695437014102936, -0.538547933101654, 0.7955442070960999, -0.6957970857620239, -0.9838507175445557, -1.4087880849838257, -0.48631054162979126, -1.1104183197021484, -0.8828104138374329, 1.084104061126709, 0.8604371547698975, 0.16193783283233643, 1.9050301313400269, 0.7236561179161072, 0.2867061197757721, -2.655907392501831, 0.7939609885215759, 0.35050246119499207, 0.011248916387557983, 0.8487703800201416, 0.4309525191783905, 0.866908073425293, 0.03990868106484413, 0.5657170414924622, -2.4821650981903076, 2.3108749389648438, -0.25814542174339294, 0.7004558444023132, -0.12578468024730682, -0.3062199652194977, 1.1128432750701904, 0.5592661499977112, 0.5088486671447754, -1.0303435325622559, 0.6556549668312073, -0.5089367628097534, 1.2224165201187134, 0.9155409932136536, -0.8281604647636414, -0.10161133110523224, 1.4158563613891602, 0.47803249955177307, -0.5522023439407349, -0.9543322324752808, -0.9843239188194275, 0.924072802066803, 1.813676118850708, -0.007071578875184059, 0.02940993383526802, 0.8845921754837036, 0.7456028461456299, -1.2466486692428589, 0.12476049363613129, -0.7383696436882019, -0.8563516736030579, 1.6478638648986816, 2.039850950241089, -0.08149003982543945, -0.16373395919799805, -0.7584002614021301, -1.1813887357711792, 0.8678180575370789, -0.0034445375204086304, 0.07495184242725372, 0.6613233685493469, -0.7090383172035217, 1.0695217847824097, 0.9734417200088501, 0.9414687752723694, 0.15649379789829254, 0.25153863430023193, 0.443043977022171, -0.27533671259880066, -1.167634129524231, -0.11826957762241364, -1.0373661518096924, -2.4883546829223633, 0.48861411213874817, -0.14290021359920502, -1.4953374862670898, -0.02362770214676857, -1.0142062902450562, 0.923325777053833, -0.5914636850357056, -1.1745893955230713, -1.5312719345092773, 0.2070368081331253, -0.00901891104876995, 0.9072946310043335, -1.521377444267273, -0.11560216546058655, 1.0897737741470337, 0.9468792080879211, -0.7002126574516296, 0.9847256541252136, 0.14596140384674072, 1.0219866037368774, 0.9292311072349548, -0.3899012506008148, 0.495026171207428, 0.004658984951674938, -1.3508878946304321, 0.43176019191741943, 1.1167670488357544, 0.19960376620292664, 1.5135767459869385, -0.5463820695877075, 0.0788821280002594, 0.3343590199947357, -0.5685295462608337, -0.33398231863975525, -0.6053802967071533, 0.7361064553260803, 0.03301680460572243, -0.8515661954879761, 0.002683192491531372, -0.02337166666984558, -0.269413024187088, 0.113480344414711, -1.4148931503295898, -0.0790078341960907, -0.4164581000804901, -0.6155364513397217, -1.1379029750823975, -0.05908948928117752, 1.5043766498565674, -0.7329288125038147, -0.23040246963500977, 0.5345515012741089, 0.34489378333091736, 0.5464867353439331, 0.6196241974830627, -0.7444998025894165, -0.2516530454158783, -0.16994479298591614, -0.4196380376815796, 0.3742898404598236, 1.4081823825836182, -0.10579283535480499, -0.9084261059761047, 0.7573816180229187, -0.36919862031936646, 0.04842844977974892, 1.955751657485962, 0.1504053771495819, -0.6522745490074158, 0.3020603656768799, -0.7636251449584961, 1.829223394393921, 1.8740440607070923, 1.3243913650512695, -0.08101193606853485, -1.0044039487838745, 0.6478434801101685, -0.4065975546836853, -0.3880397081375122, 0.9893693327903748, 0.3629375696182251, -0.18714863061904907, -1.4085214138031006, 0.723535418510437, 1.194543480873108, -0.7826392650604248, -0.7892389893531799, 0.024097923189401627, -0.7622569799423218, 1.0646735429763794, 0.5316417813301086, 0.38779962062835693, 0.2586078345775604, 1.6274423599243164, 0.7416237592697144, -0.3261561393737793, 0.5740642547607422, 0.5745779871940613, -0.09709255397319794, -2.194334030151367, -1.1563911437988281, 0.37144970893859863, -0.5335802435874939, -1.6353288888931274, 1.418639063835144, -1.2365912199020386, -0.9469271302223206, 0.48601266741752625, 0.05433044955134392, 1.4743528366088867, 0.42185837030410767, 1.5561330318450928, 2.206746816635132, 0.9416995644569397, 0.391039103269577, 1.4023572206497192, -0.12927386164665222, -0.4674149751663208, 1.8129761219024658, -0.5611833333969116, 0.37572723627090454, 1.0783439874649048, -0.3289118707180023, -1.0705984830856323, -0.7167958617210388, -1.3080717325210571, -0.7421696186065674, 1.1410236358642578, 0.04396051540970802, -1.0525131225585938, 0.3196181654930115, 1.6346430778503418, 0.09492798149585724, -0.25760215520858765, 0.6568276286125183, 0.4267866313457489, -0.8898336291313171, -0.09631119668483734, -0.8545311093330383, 0.5609527230262756, -0.23047737777233124, -0.3161165714263916, 0.3448280394077301, 0.4704751670360565, 1.3408883810043335, -0.027498338371515274, 0.06667067110538483, 1.1383895874023438, -1.4748910665512085, 1.4224778413772583, -0.7049279808998108, 0.2243230789899826, -2.4869492053985596, 1.4175478219985962, -0.7021600008010864, 1.930411458015442, -2.622887372970581, 0.487336128950119, -0.6672650575637817, -0.46362850069999695, 0.3444454073905945, -0.34981876611709595, 0.08488611876964569, -0.11946317553520203, -1.1929742097854614, 0.049245405942201614, -0.6459813714027405, 0.6402366161346436, 1.1119126081466675, 1.3295228481292725, -1.1763081550598145, -0.33106744289398193, -1.7467728853225708, -0.18759089708328247, -0.6742843389511108, 0.2723424732685089, -1.9817372560501099, -0.1617240160703659, -1.9395931959152222, -2.4832842350006104, -1.2695939540863037, -0.6937994956970215, 1.0770041942596436, 0.16509616374969482, -0.8886889219284058, 1.2096680402755737, -0.4307954013347626, -1.8929201364517212, 1.0912041664123535, -2.193537712097168 ]
https://github.com/huggingface/datasets/issues/3753
Expanding streaming capabilities
That makes sense @athewsey , thanks for the suggestion :) Maybe instead of the `to_disk` we could simply have `save_to_disk` instead: ```python streaming_dataset.save_to_disk("path/to/my/dataset/dir") on_disk_dataset = load_from_disk("path/to/my/dataset/dir") in_memory_dataset = Dataset.from_list(list(streaming_dataset.take(100))) # to experiment without having to write files ```
Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova
945
38
Expanding streaming capabilities Some ideas for a few features that could be useful when working with large datasets in streaming mode. ## `filter` for `IterableDataset` Adding filtering to streaming datasets would be useful in several scenarios: - filter a dataset with many languages for a subset of languages - filter a dataset for specific licenses - other custom logic to get a subset The only way to achieve this at the moment is I think through writing a custom loading script and implementing filters there. ## `IterableDataset` to `Dataset` conversion In combination with the above filter a functionality to "play" the whole stream would be useful. The motivation is that often one might filter the dataset to get a manageable size for experimentation. In that case streaming mode is no longer necessary as the filtered dataset is small enough and it would be useful to be able to play through the whole stream to create a normal `Dataset` with all its benefits. ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(lambda x: x["lang"]="fr") ds_filter = ds_filter.stream() # here the `IterableDataset` is converted to a `Dataset` ``` Naturally, this could be expanded with `stream(n=1000)` which creates a `Dataset` with the first `n` elements similar to `take`. ## Stream to the Hub While streaming allows to use a dataset as is without saving the whole dataset on the local machine it is currently not possible to process a dataset and add it to the hub. The only way to do this is by downloading the full dataset and saving the processed dataset again before pushing them to the hub. The API could looks something like: ```python ds = load_dataset("some_large_dataset", streaming=True) ds_filter = ds.filter(some_filter_func) ds_processed = ds_filter.map(some_processing_func) ds_processed.push_to_hub("new_better_dataset", batch_size=100_000) ``` Under the hood this could be done by processing and aggregating `batch_size` elements and then pushing that batch as a single file to the hub. With this functionality one could process and create TB scale datasets while only requiring size of `batch_size` local disk space. cc @lhoestq @albertvillanova That makes sense @athewsey , thanks for the suggestion :) Maybe instead of the `to_disk` we could simply have `save_to_disk` instead: ```python streaming_dataset.save_to_disk("path/to/my/dataset/dir") on_disk_dataset = load_from_disk("path/to/my/dataset/dir") in_memory_dataset = Dataset.from_list(list(streaming_dataset.take(100))) # to experiment without having to write files ```
[ -1.2378753423690796, -0.921877384185791, -0.7427502274513245, 1.3978016376495361, -0.19202034175395966, -1.3183302879333496, 0.21136008203029633, -1.1354832649230957, 1.7685195207595825, -0.8531825542449951, 0.3949827253818512, -1.6604512929916382, 0.059608396142721176, -0.6218402981758118, -0.8093530535697937, -0.8422976136207581, -0.4872516393661499, -0.7326765656471252, 0.9181053042411804, 2.4744768142700195, 1.2381142377853394, -1.4140511751174927, 2.651132583618164, 0.7428340315818787, -0.16920603811740875, -0.997938871383667, 0.41697588562965393, 0.006549774669110775, -1.3248238563537598, -0.42083388566970825, -0.8939232230186462, -0.04664261266589165, -0.5628103017807007, -0.5703645348548889, -0.020642533898353577, 0.46871811151504517, -0.3763595521450043, -0.5072638392448425, -0.5817626118659973, -0.7425898909568787, 0.5262605547904968, -0.3970358371734619, 1.0087928771972656, -0.32948142290115356, 1.8316742181777954, -0.5749559998512268, 0.4998345971107483, 0.7139652967453003, 1.37782621383667, 0.17571662366390228, 0.011976514011621475, 0.29936760663986206, 0.3511337637901306, -0.005702895577996969, 0.5020233392715454, 1.2143266201019287, 0.6577019095420837, 0.6340569257736206, 0.7777998447418213, -2.2806572914123535, 1.2892169952392578, -1.0933163166046143, 0.31937670707702637, 1.2922369241714478, -0.9140247702598572, 0.3039068877696991, -1.749923825263977, -0.052684418857097626, 0.5490953922271729, -2.2825262546539307, 0.2875424921512604, -1.3660123348236084, -0.49115797877311707, 1.0340749025344849, 0.336553156375885, -1.170361042022705, 0.2010156363248825, -0.40401098132133484, 0.9922264814376831, 0.4942541718482971, 1.1364799737930298, -1.6628577709197998, -0.04493621364235878, -0.36095261573791504, 0.14467912912368774, -1.3029550313949585, -1.4924664497375488, 0.5628546476364136, 0.5828689932823181, 0.6204172968864441, -0.11420869827270508, 1.091741919517517, -0.9840870499610901, 0.6829721331596375, -0.9861406087875366, -1.662626028060913, -1.4490487575531006, -2.179074287414551, -2.2134296894073486, 0.7327807545661926, -0.44821059703826904, -0.5784743428230286, 2.029085874557495, -1.0158895254135132, -1.7788208723068237, 1.1366418600082397, 0.23585957288742065, 0.02397735044360161, 2.330392599105835, 0.15538175404071808, -0.6888560652732849, 0.48158755898475647, -0.6094620823860168, 0.8038638234138489, -0.39659762382507324, 1.2480000257492065, 0.3922021687030792, -1.0981611013412476, 1.5792316198349, -0.41529253125190735, 0.6842151284217834, -0.696381151676178, -0.5474138855934143, -0.8165811896324158, 0.33754515647888184, 1.8198820352554321, -0.3272600471973419, 1.6487576961517334, -0.3501650094985962, -1.5708940029144287, -1.7266504764556885, 0.9934107065200806, 0.4731261134147644, -0.726252555847168, 0.10158683359622955, -0.3375324606895447, 0.12823402881622314, -0.16162095963954926, 1.189408302307129, 1.1789753437042236, 0.7198298573493958, -0.3934042751789093, -0.849947988986969, 0.17769598960876465, 0.012845378369092941, -0.7914286851882935, -1.6601347923278809, -0.32597270607948303, 0.21254704892635345, 0.5455954074859619, -1.1207131147384644, 1.7767263650894165, 0.9011157751083374, 1.9040435552597046, 1.07176673412323, -0.2844637930393219, 1.434796690940857, 0.10320264101028442, 1.7930636405944824, -0.4408246874809265, 0.6423995494842529, -0.319987028837204, -1.174254059791565, 0.8112866282463074, -0.31644517183303833, -2.1183793544769287, -0.7345695495605469, -0.7436432242393494, -0.21594522893428802, -0.7403785586357117, 0.9432590007781982, -0.2998462915420532, -1.3951674699783325, 0.16973116993904114, -0.6310842633247375, 0.0986981987953186, -1.1280975341796875, 0.299040824174881, 0.6836583614349365, -0.6679927706718445, 0.04644232988357544, -0.25792139768600464, -1.2588138580322266, -0.4195927083492279, 0.2986214756965637, 1.76255464553833, -0.7473331689834595, 0.8481569290161133, 1.062208652496338, -0.6714028120040894, -0.050525058060884476, 0.28419896960258484, -0.24422378838062286, 0.8518033623695374, -0.9767690896987915, -0.36987000703811646, 1.2524586915969849, -0.1900860071182251, -0.6969119906425476, 1.5292649269104004, 0.5878034830093384, -0.9436706900596619, -0.1153796911239624, -0.12641143798828125, -0.9047614932060242, -0.04570858180522919, -1.576452374458313, -0.0005217310972511768, 0.4057920575141907, -1.5648590326309204, -0.47719570994377136, -0.15847814083099365, 1.1624864339828491, -0.2058810591697693, 1.3681740760803223, -0.3494463562965393, -0.1992281973361969, -0.34552112221717834, -0.3047621250152588, 0.013453708961606026, -0.09053359925746918, -0.6629449725151062, 0.12327620387077332, -0.7815746665000916, 0.3818158507347107, 1.4966614246368408, 0.29798707365989685, 0.09351126849651337, 0.49431461095809937, 1.0996170043945312, 0.3883233070373535, -0.08702819049358368, -0.8172743916511536, -1.5392612218856812, 1.9424381256103516, -1.4417234659194946, 1.9569746255874634, 0.7267292737960815, -0.06546930968761444, -1.8350468873977661, -1.8765159845352173, 1.3557442426681519, 1.144018292427063, 2.3575544357299805, 0.4840075373649597, 0.31722262501716614, -0.8186306357383728, -0.6847957372665405, 0.4345967173576355, -1.0498220920562744, -0.6983506083488464, 0.1516898274421692, 2.3025550842285156, 1.8594961166381836, -0.41251012682914734, -0.1925036460161209, -1.040972113609314, 1.4043916463851929, -0.19720907509326935, 0.23185916244983673, 1.96656334400177, -0.2805979251861572, -1.033612608909607, 1.4261949062347412, -2.305325508117676, 0.10824044048786163, 1.9629244804382324, 0.2652476131916046, 0.044090572744607925, -1.2579090595245361, -0.5643994212150574, -0.2318880259990692, -0.36574310064315796, -1.3186984062194824, 0.4816460907459259, -0.32718199491500854, -0.6157339215278625, -1.3902976512908936, 0.2611643970012665, -1.0690383911132812, -1.574997901916504, 0.21356916427612305, 1.8597913980484009, 1.9254237413406372, -0.6653376221656799, 1.538594365119934, -0.3152352273464203, 0.13878509402275085, 1.2274812459945679, 1.1956548690795898, 3.112513542175293, 1.913857340812683, -1.3402079343795776, 0.6865162253379822, -0.1284705400466919, -0.5479252934455872, 1.1766828298568726, -1.2702597379684448, 1.337896704673767, -0.17157907783985138, -1.1513562202453613, -1.2340264320373535, 0.9390091300010681, 0.5145457983016968, 0.15112055838108063, -0.5285610556602478, 1.1446861028671265, 0.09540456533432007, 1.3027312755584717, 0.5621159076690674, -0.48622339963912964, 0.6925787329673767, -0.39039456844329834, -0.5986429452896118, 1.541022777557373, 0.20953814685344696, -1.2903246879577637, -2.206683874130249, -0.17113187909126282, -0.8575031161308289, 0.1395116150379181, -0.6089757680892944, -0.9489949345588684, 1.7131041288375854, 0.31932640075683594, -1.3571686744689941, -0.17814038693904877, -0.34553205966949463, -0.5808123350143433, 2.7340314388275146, -1.375895380973816, -0.20565453171730042, -1.12656569480896, -0.7069763541221619, 1.656369686126709, -1.1880171298980713, -0.23651978373527527, -1.011867642402649, -0.5000680088996887, -1.3141672611236572, -0.5022314786911011, 0.007918555289506912, -0.8865898847579956, 0.9094017148017883, 0.23993952572345734, -1.2419100999832153, -0.3711779713630676, -0.7783923149108887, 0.8968793153762817, -0.19161345064640045, 0.1953101009130478, 1.9545127153396606, 0.42223602533340454, -0.3625688850879669, 0.7042180895805359, 1.1595556735992432, 0.5559608340263367, -0.695831835269928, 0.2833331227302551, -0.7139690518379211, 0.32588860392570496, -1.3541754484176636, 0.25241464376449585, -2.8106393814086914, 0.6093571186065674, -0.07705573737621307, -0.009922249242663383, 0.044741712510585785, -1.3672945499420166, 0.8825096487998962, 2.7027456760406494, -1.1812210083007812, 0.4189680516719818, 0.3314417600631714, 1.160548448562622, -1.617498517036438, 0.2813301980495453, -0.465717077255249, 2.0799808502197266, 0.17639295756816864, 1.1480714082717896, -0.4910113513469696, -2.338339328765869, 0.55093914270401, -1.1887853145599365, -1.3310860395431519, 0.8609328866004944, -0.8753817677497864, 0.07906739413738251, -1.4022787809371948, -0.2633183002471924, -0.8307723999023438, -1.1990950107574463, 0.7773882746696472, 0.18131710588932037, 0.4536139667034149, -0.7017335295677185, 0.2854636013507843, -2.2257580757141113, -1.3001950979232788, -0.2501658797264099, -0.8708183169364929, 0.5139806270599365, -0.32655900716781616, 0.6443428993225098, -0.1962815225124359, -0.005996644496917725, 0.35599687695503235, 1.4358159303665161, 3.3822240829467773, 0.28094571828842163, 0.2947544753551483, -0.29634031653404236, -0.8533273339271545, 1.3724199533462524, 0.8596315383911133, -0.1350569725036621, -0.6153128743171692, -1.1075140237808228, 1.2253578901290894, 1.860579252243042, 0.9474912285804749, 0.06273321807384491, -0.8114351630210876, -0.6851305961608887, -0.0648052990436554, 0.12168148159980774, 0.41628551483154297, 0.9046913385391235, 0.13550977408885956, 0.16652031242847443, 1.3765395879745483, 1.144553542137146, -0.29752546548843384, 0.3385108411312103, -0.7624821066856384, -0.4910507798194885, 0.5614070296287537, 0.3728748857975006, -0.012756040319800377, 0.31895509362220764, -1.0168637037277222, -0.20273515582084656, -0.5166847109794617, -0.945409893989563, -0.6549389958381653, -0.483125776052475, -0.3112427592277527, 1.666654109954834, 0.05246594175696373, -0.5840033888816833, -0.09621286392211914, -0.7838608026504517, -0.18283012509346008, -1.0342073440551758, 0.3571045696735382, -0.09388116002082825, -0.17496077716350555, -0.049911271780729294, 1.6953309774398804, -0.9607424736022949, -2.013204336166382, 0.2423010766506195, 0.1689452975988388, -0.2948191463947296, 0.1661505103111267, 1.5995489358901978, 0.48054301738739014, 1.3706836700439453, 1.3976078033447266, 0.8741808533668518, -0.6746308207511902, -1.3553603887557983, 0.6190728545188904, 0.9681811332702637, -1.3692938089370728, 0.8188203573226929, 0.10985800623893738, -0.5600087642669678, 0.6573113799095154, 1.1770671606063843, 0.46970534324645996, -2.081282615661621, 0.7319361567497253, -0.9717144966125488, 0.740492582321167, 0.7996703386306763, 0.6836038827896118, 0.2601570785045624, 0.8460811376571655, -1.188490390777588, -1.2390861511230469, -0.7088847756385803, -0.7849010825157166, 2.0190672874450684, -0.2440302073955536, 0.7063271999359131, -0.10669474303722382, -1.376824975013733, -0.08241786062717438, 0.7535570859909058, 0.3695437014102936, -0.538547933101654, 0.7955442070960999, -0.6957970857620239, -0.9838507175445557, -1.4087880849838257, -0.48631054162979126, -1.1104183197021484, -0.8828104138374329, 1.084104061126709, 0.8604371547698975, 0.16193783283233643, 1.9050301313400269, 0.7236561179161072, 0.2867061197757721, -2.655907392501831, 0.7939609885215759, 0.35050246119499207, 0.011248916387557983, 0.8487703800201416, 0.4309525191783905, 0.866908073425293, 0.03990868106484413, 0.5657170414924622, -2.4821650981903076, 2.3108749389648438, -0.25814542174339294, 0.7004558444023132, -0.12578468024730682, -0.3062199652194977, 1.1128432750701904, 0.5592661499977112, 0.5088486671447754, -1.0303435325622559, 0.6556549668312073, -0.5089367628097534, 1.2224165201187134, 0.9155409932136536, -0.8281604647636414, -0.10161133110523224, 1.4158563613891602, 0.47803249955177307, -0.5522023439407349, -0.9543322324752808, -0.9843239188194275, 0.924072802066803, 1.813676118850708, -0.007071578875184059, 0.02940993383526802, 0.8845921754837036, 0.7456028461456299, -1.2466486692428589, 0.12476049363613129, -0.7383696436882019, -0.8563516736030579, 1.6478638648986816, 2.039850950241089, -0.08149003982543945, -0.16373395919799805, -0.7584002614021301, -1.1813887357711792, 0.8678180575370789, -0.0034445375204086304, 0.07495184242725372, 0.6613233685493469, -0.7090383172035217, 1.0695217847824097, 0.9734417200088501, 0.9414687752723694, 0.15649379789829254, 0.25153863430023193, 0.443043977022171, -0.27533671259880066, -1.167634129524231, -0.11826957762241364, -1.0373661518096924, -2.4883546829223633, 0.48861411213874817, -0.14290021359920502, -1.4953374862670898, -0.02362770214676857, -1.0142062902450562, 0.923325777053833, -0.5914636850357056, -1.1745893955230713, -1.5312719345092773, 0.2070368081331253, -0.00901891104876995, 0.9072946310043335, -1.521377444267273, -0.11560216546058655, 1.0897737741470337, 0.9468792080879211, -0.7002126574516296, 0.9847256541252136, 0.14596140384674072, 1.0219866037368774, 0.9292311072349548, -0.3899012506008148, 0.495026171207428, 0.004658984951674938, -1.3508878946304321, 0.43176019191741943, 1.1167670488357544, 0.19960376620292664, 1.5135767459869385, -0.5463820695877075, 0.0788821280002594, 0.3343590199947357, -0.5685295462608337, -0.33398231863975525, -0.6053802967071533, 0.7361064553260803, 0.03301680460572243, -0.8515661954879761, 0.002683192491531372, -0.02337166666984558, -0.269413024187088, 0.113480344414711, -1.4148931503295898, -0.0790078341960907, -0.4164581000804901, -0.6155364513397217, -1.1379029750823975, -0.05908948928117752, 1.5043766498565674, -0.7329288125038147, -0.23040246963500977, 0.5345515012741089, 0.34489378333091736, 0.5464867353439331, 0.6196241974830627, -0.7444998025894165, -0.2516530454158783, -0.16994479298591614, -0.4196380376815796, 0.3742898404598236, 1.4081823825836182, -0.10579283535480499, -0.9084261059761047, 0.7573816180229187, -0.36919862031936646, 0.04842844977974892, 1.955751657485962, 0.1504053771495819, -0.6522745490074158, 0.3020603656768799, -0.7636251449584961, 1.829223394393921, 1.8740440607070923, 1.3243913650512695, -0.08101193606853485, -1.0044039487838745, 0.6478434801101685, -0.4065975546836853, -0.3880397081375122, 0.9893693327903748, 0.3629375696182251, -0.18714863061904907, -1.4085214138031006, 0.723535418510437, 1.194543480873108, -0.7826392650604248, -0.7892389893531799, 0.024097923189401627, -0.7622569799423218, 1.0646735429763794, 0.5316417813301086, 0.38779962062835693, 0.2586078345775604, 1.6274423599243164, 0.7416237592697144, -0.3261561393737793, 0.5740642547607422, 0.5745779871940613, -0.09709255397319794, -2.194334030151367, -1.1563911437988281, 0.37144970893859863, -0.5335802435874939, -1.6353288888931274, 1.418639063835144, -1.2365912199020386, -0.9469271302223206, 0.48601266741752625, 0.05433044955134392, 1.4743528366088867, 0.42185837030410767, 1.5561330318450928, 2.206746816635132, 0.9416995644569397, 0.391039103269577, 1.4023572206497192, -0.12927386164665222, -0.4674149751663208, 1.8129761219024658, -0.5611833333969116, 0.37572723627090454, 1.0783439874649048, -0.3289118707180023, -1.0705984830856323, -0.7167958617210388, -1.3080717325210571, -0.7421696186065674, 1.1410236358642578, 0.04396051540970802, -1.0525131225585938, 0.3196181654930115, 1.6346430778503418, 0.09492798149585724, -0.25760215520858765, 0.6568276286125183, 0.4267866313457489, -0.8898336291313171, -0.09631119668483734, -0.8545311093330383, 0.5609527230262756, -0.23047737777233124, -0.3161165714263916, 0.3448280394077301, 0.4704751670360565, 1.3408883810043335, -0.027498338371515274, 0.06667067110538483, 1.1383895874023438, -1.4748910665512085, 1.4224778413772583, -0.7049279808998108, 0.2243230789899826, -2.4869492053985596, 1.4175478219985962, -0.7021600008010864, 1.930411458015442, -2.622887372970581, 0.487336128950119, -0.6672650575637817, -0.46362850069999695, 0.3444454073905945, -0.34981876611709595, 0.08488611876964569, -0.11946317553520203, -1.1929742097854614, 0.049245405942201614, -0.6459813714027405, 0.6402366161346436, 1.1119126081466675, 1.3295228481292725, -1.1763081550598145, -0.33106744289398193, -1.7467728853225708, -0.18759089708328247, -0.6742843389511108, 0.2723424732685089, -1.9817372560501099, -0.1617240160703659, -1.9395931959152222, -2.4832842350006104, -1.2695939540863037, -0.6937994956970215, 1.0770041942596436, 0.16509616374969482, -0.8886889219284058, 1.2096680402755737, -0.4307954013347626, -1.8929201364517212, 1.0912041664123535, -2.193537712097168 ]
https://github.com/huggingface/datasets/issues/3739
Pubmed dataset does not work in streaming mode
Thanks for reporting, @abhi-mosaic (related to #3655). Please note that `xml.etree.ElementTree.parse` already supports streaming: - #3476 No need to refactor to use `open`/`xopen`. Is is enough with importing the package `as ET` (instead of `as etree`).
## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Expected results I would expect to see the first training sample from the pubmed dataset. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 367, in __iter__ for key, example in self._iter(): File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 364, in _iter yield from ex_iterable File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 79, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/Users/abhinav/.cache/huggingface/modules/datasets_modules/datasets/pubmed/9715addf10c42a7877a2149ae0c5f2fddabefc775cd1bd9b03ac3f012b86ce46/pubmed.py", line 373, in _generate_examples tree = etree.parse(filename) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'gzip://pubmed21n0001.xml::ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed21n0001.xml.gz' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.2 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.2 - PyArrow version: 6.0.0 ## Comments The error looks like an issue with `open` vs. `xopen` inside the `xml` package. It looks like it's trying to open the remote source URL, which has been edited with prefix `gzip://...`. Maybe there can be an explicit `xopen` before passing the raw data to `etree`, something like: ```python # Before tree = etree.parse(filename) root = tree.getroot() # After with xopen(filename) as f: data_str = f.read() root = etree.fromstring(data_str) ```
947
36
Pubmed dataset does not work in streaming mode ## Describe the bug Trying to use the `pubmed` dataset with `streaming=True` fails. ## Steps to reproduce the bug ```python import datasets pubmed_train = datasets.load_dataset('pubmed', split='train', streaming=True) print (next(iter(pubmed_train))) ``` ## Expected results I would expect to see the first training sample from the pubmed dataset. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 367, in __iter__ for key, example in self._iter(): File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 364, in _iter yield from ex_iterable File "/Users/abhinav/Documents/mosaicml/mosaicml_venv/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 79, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/Users/abhinav/.cache/huggingface/modules/datasets_modules/datasets/pubmed/9715addf10c42a7877a2149ae0c5f2fddabefc775cd1bd9b03ac3f012b86ce46/pubmed.py", line 373, in _generate_examples tree = etree.parse(filename) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 1202, in parse tree.parse(source, parser) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/xml/etree/ElementTree.py", line 584, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'gzip://pubmed21n0001.xml::ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed21n0001.xml.gz' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.2 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.2 - PyArrow version: 6.0.0 ## Comments The error looks like an issue with `open` vs. `xopen` inside the `xml` package. It looks like it's trying to open the remote source URL, which has been edited with prefix `gzip://...`. Maybe there can be an explicit `xopen` before passing the raw data to `etree`, something like: ```python # Before tree = etree.parse(filename) root = tree.getroot() # After with xopen(filename) as f: data_str = f.read() root = etree.fromstring(data_str) ``` Thanks for reporting, @abhi-mosaic (related to #3655). Please note that `xml.etree.ElementTree.parse` already supports streaming: - #3476 No need to refactor to use `open`/`xopen`. Is is enough with importing the package `as ET` (instead of `as etree`).
[ -1.2288085222244263, -0.9212403893470764, -0.7657387852668762, 1.4191116094589233, -0.1308913379907608, -1.2606018781661987, 0.1791856586933136, -1.0267080068588257, 1.6007131338119507, -0.7221463918685913, 0.2704916298389435, -1.7038016319274902, -0.11579496413469315, -0.50699383020401, -0.6705943942070007, -0.8404483795166016, -0.3520461320877075, -0.8723004460334778, 0.9996898770332336, 2.478025436401367, 1.3592183589935303, -1.2778043746948242, 2.779475212097168, 0.6405066251754761, -0.29367512464523315, -1.0203992128372192, 0.5364198684692383, 0.009447351098060608, -1.1952762603759766, -0.4783191978931427, -1.0038388967514038, 0.003565092571079731, -0.5106387138366699, -0.3691239356994629, 0.13371260464191437, 0.46957939863204956, -0.2570865750312805, -0.3251793086528778, -0.6559000611305237, -0.7198652029037476, 0.5248280763626099, -0.31015491485595703, 0.999644935131073, -0.3281472325325012, 1.862320899963379, -0.5775130987167358, 0.4102380573749542, 0.7374251484870911, 1.3547587394714355, 0.14505422115325928, 0.016201339662075043, 0.3014715611934662, 0.32678231596946716, -0.04933318495750427, 0.5737111568450928, 1.2303882837295532, 0.5306549072265625, 0.4847022294998169, 0.6022589206695557, -2.2355096340179443, 1.3219311237335205, -0.8891041278839111, 0.26899462938308716, 1.3456989526748657, -0.8815624713897705, 0.3098459839820862, -1.8641990423202515, -0.025522448122501373, 0.6339682936668396, -2.2686779499053955, 0.25118711590766907, -1.3088548183441162, -0.5234876275062561, 0.9467048645019531, 0.2919813096523285, -1.2607427835464478, 0.22510628402233124, -0.509977400302887, 1.1106990575790405, 0.5290599465370178, 1.1355756521224976, -1.7370291948318481, -0.05633784085512161, -0.14850670099258423, 0.10940032452344894, -1.3138214349746704, -1.7219154834747314, 0.5769834518432617, 0.5434513688087463, 0.6948359608650208, -0.05652745068073273, 1.0705456733703613, -1.0379599332809448, 0.8133147358894348, -0.938572347164154, -1.5717946290969849, -1.390170693397522, -2.3923916816711426, -2.279261589050293, 0.7956879734992981, -0.48869746923446655, -0.5206882357597351, 2.0339136123657227, -0.977428674697876, -1.8066926002502441, 1.0232081413269043, 0.2980240285396576, 0.11958737671375275, 2.3886048793792725, 0.246852308511734, -0.7215234041213989, 0.4443773031234741, -0.6620566844940186, 0.79087233543396, -0.3502083420753479, 1.3425533771514893, 0.5550407767295837, -0.9865143299102783, 1.6747833490371704, -0.4367465674877167, 0.5778897404670715, -0.6800668835639954, -0.5269888639450073, -0.8190428018569946, 0.25265273451805115, 1.8842222690582275, -0.39124542474746704, 1.5281223058700562, -0.30801454186439514, -1.61406672000885, -1.5850142240524292, 0.8709680438041687, 0.5066001415252686, -0.873717725276947, 0.053324371576309204, -0.4872123599052429, 0.20757725834846497, -0.012517075054347515, 1.0773890018463135, 1.179862380027771, 0.6620879769325256, -0.2899132966995239, -0.861842691898346, 0.32221466302871704, -0.051504336297512054, -0.665126621723175, -1.8060877323150635, -0.347469300031662, 0.2100934535264969, 0.6493895649909973, -1.1778932809829712, 1.8202178478240967, 0.8650607466697693, 1.99913489818573, 0.9488152265548706, -0.3342576026916504, 1.51242995262146, -0.00019501522183418274, 1.786993384361267, -0.487914502620697, 0.5791361927986145, -0.32892271876335144, -1.160011887550354, 0.833484947681427, -0.32905760407447815, -1.9969857931137085, -0.848423421382904, -0.7820712327957153, -0.12994234263896942, -0.6988706588745117, 0.8628525733947754, -0.340778648853302, -1.4722917079925537, 0.06753342598676682, -0.6585742831230164, 0.21175464987754822, -1.2544491291046143, 0.2083716243505478, 0.7042441368103027, -0.6839367151260376, -0.004255449399352074, -0.26175656914711, -1.2684805393218994, -0.4834955036640167, 0.31279805302619934, 2.0525128841400146, -0.5525345206260681, 0.940596342086792, 0.9528505206108093, -0.7650364637374878, 0.13927602767944336, 0.2329917550086975, -0.28167134523391724, 0.8091772198677063, -1.142393708229065, -0.4309421181678772, 1.1703743934631348, -0.22045521438121796, -0.7520105242729187, 1.4985913038253784, 0.797869086265564, -1.1225651502609253, -0.30566316843032837, -0.24833178520202637, -0.8108422160148621, -0.052428387105464935, -1.5361180305480957, -0.17975039780139923, 0.3827417194843292, -1.4410400390625, -0.4034760594367981, -0.21889594197273254, 1.3584048748016357, -0.2278161197900772, 1.5438224077224731, -0.2940395176410675, -0.2211959809064865, -0.2834435999393463, -0.5244072079658508, 0.1808788776397705, -0.20773440599441528, -0.6200692057609558, 0.1831563413143158, -0.8341573476791382, 0.34105050563812256, 1.5182238817214966, 0.31887680292129517, 0.018439337611198425, 0.48380568623542786, 1.1583009958267212, 0.3794088661670685, -0.049076519906520844, -0.8680023550987244, -1.539657473564148, 1.9079289436340332, -1.3968815803527832, 1.9227393865585327, 0.8125287890434265, -0.07800668478012085, -1.8022621870040894, -1.8169710636138916, 1.322062373161316, 1.2322574853897095, 2.3357551097869873, 0.5388277173042297, 0.392829567193985, -0.7951626777648926, -0.7580403685569763, 0.33633920550346375, -0.9347215890884399, -0.698260486125946, 0.20775890350341797, 2.3011765480041504, 1.8919657468795776, -0.5676002502441406, -0.33691900968551636, -0.9118953347206116, 1.18253755569458, -0.32428106665611267, 0.2100670337677002, 2.052935838699341, -0.28508272767066956, -1.008061408996582, 1.3341906070709229, -2.3880372047424316, 0.2568089962005615, 2.095198154449463, 0.2566630244255066, 0.13168206810951233, -1.4141751527786255, -0.6470673680305481, -0.36045119166374207, -0.41426727175712585, -1.2785218954086304, 0.5483236908912659, -0.30194440484046936, -0.8496158719062805, -1.4377480745315552, 0.11496968567371368, -1.1125743389129639, -1.6917814016342163, 0.2965332865715027, 1.9482076168060303, 2.0356152057647705, -0.7907333970069885, 1.3670158386230469, -0.2758064270019531, 0.04808051139116287, 1.286295771598816, 1.4090664386749268, 3.069446325302124, 1.851668119430542, -1.3238276243209839, 0.7530533075332642, -0.2207213044166565, -0.49458202719688416, 1.2062768936157227, -1.119913935661316, 1.0835157632827759, -0.22655126452445984, -1.2977062463760376, -1.225330114364624, 1.0323851108551025, 0.4997404217720032, 0.006523830816149712, -0.5174452066421509, 1.2517002820968628, 0.10269773006439209, 1.3065675497055054, 0.6245700716972351, -0.4898759424686432, 0.5528984665870667, -0.32649511098861694, -0.5637580752372742, 1.6250972747802734, 0.12435898184776306, -1.5081332921981812, -2.349724054336548, -0.2330615371465683, -0.9247751832008362, -0.0024308478459715843, -0.6214099526405334, -1.0670268535614014, 1.6178207397460938, 0.3844442665576935, -1.1810611486434937, -0.28119876980781555, -0.32900065183639526, -0.4798450767993927, 2.632732391357422, -1.2164756059646606, -0.1206202581524849, -0.9955293536186218, -0.5136541128158569, 1.6722384691238403, -1.1618595123291016, -0.20021480321884155, -1.0272618532180786, -0.6214552521705627, -1.3183963298797607, -0.503967821598053, 0.03446786105632782, -0.9342361688613892, 0.783142626285553, 0.17163945734500885, -1.1285347938537598, -0.26351532340049744, -0.8890444040298462, 1.0360032320022583, -0.08347751200199127, 0.17369136214256287, 1.8442468643188477, 0.3382512629032135, -0.4828024208545685, 0.7133253216743469, 1.1931060552597046, 0.5978367328643799, -0.6452836990356445, 0.1313307136297226, -0.711122989654541, 0.3635755777359009, -1.4005484580993652, 0.2165932059288025, -2.926433801651001, 0.7709788084030151, -0.15966011583805084, -0.19916097819805145, -0.07537800073623657, -1.2674076557159424, 1.0262722969055176, 2.588033676147461, -1.2228163480758667, 0.47551509737968445, 0.4496269226074219, 1.187028169631958, -1.5894932746887207, 0.2740439474582672, -0.4926829934120178, 2.0386598110198975, 0.13072650134563446, 1.2522670030593872, -0.5098933577537537, -2.1072347164154053, 0.63125079870224, -1.203829050064087, -1.0767921209335327, 0.7928107976913452, -0.8867111206054688, 0.21187180280685425, -1.4058799743652344, -0.17201398313045502, -0.916993260383606, -1.2183455228805542, 0.746337890625, 0.08764635026454926, 0.3550410866737366, -0.5327126979827881, 0.3611547350883484, -2.104400873184204, -1.3493207693099976, -0.22700956463813782, -1.0485669374465942, 0.5664923787117004, -0.3616679012775421, 0.5447176694869995, -0.06563183665275574, 0.10646360367536545, 0.31197604537010193, 1.4591885805130005, 3.422523021697998, 0.17796194553375244, 0.2289177030324936, -0.11280249804258347, -1.0245107412338257, 1.4945119619369507, 0.9478859901428223, -0.12472713738679886, -0.612339437007904, -1.0527725219726562, 1.2701560258865356, 1.9711253643035889, 1.1202977895736694, 0.15033522248268127, -0.8405306935310364, -0.7506224513053894, -0.015381318517029285, 0.16444964706897736, 0.5095446109771729, 0.941659688949585, -0.0030136127024888992, 0.09259992092847824, 1.3592281341552734, 1.2143486738204956, -0.313978910446167, 0.37259531021118164, -0.9405504465103149, -0.4184379279613495, 0.4352530241012573, 0.1760442852973938, 0.028766700997948647, 0.5153982639312744, -1.0270490646362305, -0.3017841577529907, -0.30718913674354553, -0.9208351969718933, -0.743480384349823, -0.4256705641746521, -0.38568365573883057, 1.5812788009643555, 0.09325969219207764, -0.46697914600372314, 0.10444873571395874, -0.6669489741325378, -0.1266998052597046, -1.1309195756912231, 0.15327872335910797, -0.08402922749519348, -0.0890628844499588, -0.10971887409687042, 1.6440067291259766, -0.946296215057373, -2.1452853679656982, 0.17096427083015442, 0.3160492479801178, -0.33691760897636414, 0.2715667486190796, 1.6587485074996948, 0.5155403017997742, 1.3666082620620728, 1.3186801671981812, 1.0184868574142456, -0.6703348159790039, -1.2017236948013306, 0.7503321170806885, 0.9152837991714478, -1.3848551511764526, 0.92867511510849, -0.13518968224525452, -0.5039377212524414, 0.6733246445655823, 1.3358681201934814, 0.43991073966026306, -1.9575779438018799, 0.8720928430557251, -0.8895619511604309, 0.6872499585151672, 0.712852418422699, 0.7919761538505554, 0.29234543442726135, 0.8617695569992065, -1.200130581855774, -1.1623305082321167, -0.6762744784355164, -0.6349344253540039, 1.8758420944213867, -0.30300524830818176, 0.6275573372840881, -0.19382326304912567, -1.1862894296646118, -0.1153024360537529, 0.8130905628204346, 0.37990573048591614, -0.37476450204849243, 0.9349207878112793, -0.6515955924987793, -0.929569661617279, -1.2485885620117188, -0.44734394550323486, -1.0371403694152832, -0.8612300157546997, 1.0097140073776245, 0.7771696448326111, 0.38025638461112976, 1.9261300563812256, 0.5881215333938599, 0.29244160652160645, -2.640157699584961, 0.8969851136207581, 0.27877822518348694, 0.002975023351609707, 0.8674411773681641, 0.20428785681724548, 1.168339490890503, 0.03853282332420349, 0.5764080882072449, -2.306046962738037, 2.246562957763672, -0.16069597005844116, 0.6408460736274719, -0.05505404621362686, -0.26916107535362244, 1.1102849245071411, 0.5402801036834717, 0.5977305769920349, -1.1128392219543457, 0.7280259132385254, -0.5981353521347046, 1.1087828874588013, 0.9425327777862549, -0.9303810000419617, 0.08273565769195557, 1.4137027263641357, 0.4734784662723541, -0.4297214448451996, -0.9991922378540039, -0.7740590572357178, 1.0151283740997314, 1.6882891654968262, -0.008089303970336914, -0.008089122362434864, 0.8970706462860107, 0.6345235109329224, -1.231087327003479, 0.08109382539987564, -0.6830437183380127, -0.7553601861000061, 1.678228497505188, 2.0082204341888428, -0.11868660151958466, -0.22042876482009888, -0.7858970165252686, -1.2642741203308105, 0.7334447503089905, -0.018296658992767334, 0.03416275233030319, 0.6618747711181641, -0.7086324691772461, 1.1202822923660278, 0.5963818430900574, 0.9916933178901672, -0.0012074075639247894, 0.3544050455093384, 0.41419750452041626, -0.46429699659347534, -1.196936011314392, -0.31336840987205505, -1.1124154329299927, -2.552234411239624, 0.42422786355018616, -0.23171453177928925, -1.4585862159729004, 0.10235320031642914, -1.0661588907241821, 0.9194724559783936, -0.6002352237701416, -1.2301470041275024, -1.4691798686981201, 0.30308687686920166, -0.22013849020004272, 0.9022903442382812, -1.6697300672531128, -0.2169187366962433, 1.2719556093215942, 0.9273946285247803, -0.5786595344543457, 0.8845970034599304, 0.22638028860092163, 0.9402300119400024, 0.825322687625885, -0.361915647983551, 0.678283154964447, -0.010942194610834122, -1.3698041439056396, 0.44406238198280334, 1.2215510606765747, 0.20535524189472198, 1.3752518892288208, -0.40973925590515137, 0.11387061327695847, 0.4391302168369293, -0.6344913840293884, -0.5709221959114075, -0.43533843755722046, 0.6836298108100891, 0.04760611802339554, -1.0779136419296265, -0.11137247830629349, -0.08826930820941925, -0.2974610924720764, 0.1755346655845642, -1.4882851839065552, -0.30386295914649963, -0.32982969284057617, -0.4749915599822998, -1.334542989730835, 0.013368925079703331, 1.3336366415023804, -0.8081363439559937, -0.30183154344558716, 0.42061516642570496, 0.40394219756126404, 0.5976334810256958, 0.48256590962409973, -0.8327503204345703, -0.2359050065279007, -0.31548967957496643, -0.3777657747268677, 0.3089529573917389, 1.2382490634918213, -0.038906343281269073, -0.9971764087677002, 0.6588373780250549, -0.3651341199874878, 0.16949059069156647, 1.9949032068252563, 0.05143928527832031, -0.6809139251708984, 0.2906906008720398, -0.6839702725410461, 1.7502086162567139, 1.6953188180923462, 1.3066407442092896, -0.17634990811347961, -0.8220024108886719, 0.5616347193717957, -0.3251192569732666, -0.29513654112815857, 0.8575121164321899, 0.3660767376422882, -0.20647697150707245, -1.4234360456466675, 0.6026800274848938, 1.2992907762527466, -0.8268579840660095, -0.7360565066337585, 0.06263197958469391, -0.9567007422447205, 1.1876463890075684, 0.5351952910423279, 0.2666882872581482, 0.21474583446979523, 1.6103565692901611, 0.7031823992729187, -0.4081662893295288, 0.5286428332328796, 0.5263332724571228, -0.24761134386062622, -2.1353635787963867, -1.0644193887710571, 0.31629395484924316, -0.43994373083114624, -1.609055757522583, 1.3387678861618042, -1.1133142709732056, -0.9901089072227478, 0.5689837336540222, 0.126870796084404, 1.3507126569747925, 0.3675159215927124, 1.6544185876846313, 2.0959856510162354, 0.8724235892295837, 0.3192448318004608, 1.260788083076477, -0.019371476024389267, -0.3972645699977875, 1.8436583280563354, -0.37877893447875977, 0.49253541231155396, 0.9697474837303162, -0.3585890531539917, -1.1932191848754883, -0.8173644542694092, -1.2114605903625488, -0.6728151440620422, 1.1745588779449463, 0.1023651510477066, -1.0622814893722534, 0.2184145301580429, 1.559428095817566, 0.13659243285655975, -0.21279539167881012, 0.7416081428527832, 0.3973325788974762, -0.7303068041801453, -0.03625001758337021, -0.8540847897529602, 0.4445663094520569, -0.10092122852802277, -0.292521595954895, 0.24575474858283997, 0.5607025027275085, 1.3518486022949219, -0.04592655599117279, 0.11851496994495392, 1.2399141788482666, -1.2980300188064575, 1.5302108526229858, -0.6089399456977844, 0.3232801854610443, -2.517045497894287, 1.3896487951278687, -0.7395698428153992, 1.9406307935714722, -2.5015408992767334, 0.42537447810173035, -0.5811569094657898, -0.42292681336402893, 0.24881792068481445, -0.416476309299469, 0.12726441025733948, -0.17736132442951202, -0.9433211088180542, -0.034781768918037415, -0.6906969547271729, 0.564382791519165, 1.1227067708969116, 1.4020801782608032, -1.1088954210281372, -0.22249983251094818, -1.8233451843261719, -0.1637742966413498, -0.8029050230979919, 0.325261652469635, -2.0044522285461426, -0.1935432255268097, -1.973586082458496, -2.3838207721710205, -1.3481141328811646, -0.7818595170974731, 1.0897796154022217, 0.2017579823732376, -0.9201444387435913, 1.2021043300628662, -0.3369392156600952, -1.8298985958099365, 1.0833501815795898, -2.2861952781677246 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Note that we might change the heuristic and create a different config per file, at least in that case.
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
19
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Note that we might change the heuristic and create a different config per file, at least in that case.
[ -1.228202223777771, -1.1199108362197876, -0.7908674478530884, 1.6857436895370483, -0.20938965678215027, -1.0296387672424316, 0.08173644542694092, -0.9390313625335693, 1.6220903396606445, -0.7031164765357971, 0.2708522379398346, -1.69324791431427, -0.06922875344753265, -0.7089487314224243, -0.6639694571495056, -0.7688299417495728, -0.3238395154476166, -0.8011429905891418, 1.1466217041015625, 2.448904275894165, 1.1490049362182617, -1.5159261226654053, 2.6832499504089355, 0.7694801092147827, -0.09364840388298035, -1.0989843606948853, 0.5579667091369629, -0.08014766871929169, -1.1456586122512817, -0.49509650468826294, -0.9517446756362915, -0.02840530499815941, -0.5867528915405273, -0.4509296417236328, -0.03957410529255867, 0.5165221691131592, -0.2765733599662781, -0.4766993224620819, -0.5285892486572266, -0.7708766460418701, 0.44057244062423706, -0.38031113147735596, 0.8675640225410461, -0.2568511962890625, 1.7819880247116089, -0.40443843603134155, 0.29673174023628235, 0.6756306290626526, 1.372947335243225, 0.18522317707538605, 0.02366357110440731, 0.3726314902305603, 0.42237576842308044, -0.07983855158090591, 0.5941532850265503, 1.1423234939575195, 0.7072451114654541, 0.3764762580394745, 0.8418197631835938, -2.425067186355591, 1.1852924823760986, -1.1408597230911255, 0.36434608697891235, 1.3681122064590454, -0.850104808807373, 0.4625460207462311, -1.7336822748184204, 0.11518888175487518, 0.6349838376045227, -2.0891499519348145, 0.4216746985912323, -1.1968505382537842, -0.37317389249801636, 0.9587745666503906, 0.41768506169319153, -1.29293954372406, 0.1408848762512207, -0.2630566656589508, 1.0761799812316895, 0.3788857161998749, 1.0205848217010498, -1.7615565061569214, 0.0443282276391983, -0.23323512077331543, 0.13655202090740204, -1.2711200714111328, -1.4883499145507812, 0.3900468647480011, 0.4854118227958679, 0.6492300033569336, -0.13224360346794128, 1.0626003742218018, -1.1756023168563843, 0.6220207214355469, -1.0898853540420532, -1.6427627801895142, -1.3699864149093628, -2.313458204269409, -2.232541799545288, 0.703353762626648, -0.45395153760910034, -0.5322813391685486, 2.0178279876708984, -0.8361740708351135, -1.7815005779266357, 1.2992374897003174, 0.43089374899864197, 0.11132349073886871, 2.419710636138916, 0.19265738129615784, -0.7601637244224548, 0.5345167517662048, -0.8701320290565491, 0.7397446036338806, -0.387545645236969, 1.5152931213378906, 0.45373648405075073, -0.8980754613876343, 1.654797077178955, -0.4490939974784851, 0.6159695386886597, -0.660618007183075, -0.45099034905433655, -0.7546985745429993, 0.3533262610435486, 1.8693227767944336, -0.23303362727165222, 1.4116168022155762, -0.43624672293663025, -1.4746862649917603, -1.513548731803894, 1.00693678855896, 0.33633264899253845, -0.8762518763542175, 0.17700929939746857, -0.38273271918296814, 0.24101179838180542, -0.2336394190788269, 1.1590301990509033, 1.2258745431900024, 0.6049204468727112, -0.3633075952529907, -0.9037419557571411, 0.14076301455497742, -0.19947147369384766, -0.6167391538619995, -1.790678858757019, -0.2488390952348709, 0.17107000946998596, 0.6606588959693909, -1.246293067932129, 1.5915589332580566, 0.8912726044654846, 1.9182405471801758, 0.9266771078109741, -0.4175906181335449, 1.510695219039917, 0.04829797148704529, 1.902750015258789, -0.5990611910820007, 0.5931998491287231, -0.3784092962741852, -1.2408151626586914, 0.950447142124176, -0.2900729775428772, -2.0030739307403564, -0.7882484793663025, -0.8628387451171875, -0.27502599358558655, -0.8299551010131836, 0.9073815941810608, -0.4321160316467285, -1.5263209342956543, 0.23885352909564972, -0.8027910590171814, 0.30439960956573486, -1.1150329113006592, 0.31544873118400574, 0.7225128412246704, -0.5659099817276001, 0.0637621134519577, -0.28106245398521423, -1.2846112251281738, -0.5151193141937256, 0.5442232489585876, 1.8474009037017822, -0.8164661526679993, 0.7407683730125427, 1.1004810333251953, -0.6648622155189514, 0.08557695150375366, 0.21434597671031952, -0.2684951722621918, 0.8419814705848694, -0.9726238250732422, -0.7144197821617126, 1.26429283618927, -0.20619399845600128, -0.6997760534286499, 1.4437530040740967, 0.8217378258705139, -1.049126386642456, -0.28918394446372986, -0.17693713307380676, -0.7553282976150513, 0.040792301297187805, -1.5986138582229614, -0.09558983892202377, 0.41683700680732727, -1.565070629119873, -0.4529380202293396, -0.289055734872818, 1.2975444793701172, -0.16096414625644684, 1.3806008100509644, -0.38634222745895386, -0.06954325735569, -0.2161526381969452, -0.4481973946094513, 0.2620563507080078, -0.29392752051353455, -0.6314933896064758, 0.11447842419147491, -0.8347048163414001, 0.43790778517723083, 1.3826873302459717, 0.3396550118923187, 0.02001025713980198, 0.4998209476470947, 1.1732547283172607, 0.5287683606147766, 0.2039099633693695, -0.9123765230178833, -1.4906727075576782, 1.9523754119873047, -1.6423777341842651, 2.0260162353515625, 0.6050439476966858, 0.031026655808091164, -1.7083649635314941, -1.847271203994751, 1.4074631929397583, 1.1342861652374268, 2.2588467597961426, 0.6453814506530762, 0.35556522011756897, -0.9678888916969299, -0.6769387125968933, 0.1968134492635727, -0.9340416193008423, -0.6891186833381653, 0.19774214923381805, 2.4932613372802734, 1.838705062866211, -0.4070172905921936, -0.22229234874248505, -0.9282901287078857, 1.535048484802246, -0.21714313328266144, 0.3171981871128082, 2.0097005367279053, -0.12548214197158813, -1.0100505352020264, 1.3192567825317383, -2.5113582611083984, 0.22417312860488892, 2.0502638816833496, 0.300422728061676, 0.23451818525791168, -1.371101975440979, -0.7287653088569641, -0.1296309381723404, -0.45977291464805603, -1.2216734886169434, 0.5540362000465393, -0.29033052921295166, -0.6837013959884644, -1.475528359413147, 0.26740869879722595, -1.0834120512008667, -1.5819358825683594, 0.22070156037807465, 1.8897604942321777, 2.2012758255004883, -0.8920655846595764, 1.6962724924087524, -0.19732807576656342, 0.27128610014915466, 1.3179551362991333, 1.248140811920166, 2.9082956314086914, 1.8734056949615479, -1.2409086227416992, 0.536625862121582, -0.1575130820274353, -0.5368414521217346, 1.1659207344055176, -1.2514349222183228, 1.1813478469848633, -0.15702636539936066, -1.095306158065796, -1.2765672206878662, 0.9058604836463928, 0.5299721360206604, -0.004120512865483761, -0.5211847424507141, 1.1013814210891724, 0.009917136281728745, 1.234632134437561, 0.6680113673210144, -0.34889137744903564, 0.4999570846557617, -0.41751527786254883, -0.5552329421043396, 1.5148862600326538, 0.02790975011885166, -1.3965076208114624, -2.1740658283233643, -0.1862921565771103, -0.8670679330825806, -0.0031432006508111954, -0.5765082836151123, -0.9992426037788391, 1.5531551837921143, 0.30088943243026733, -1.195849061012268, -0.2064991593360901, -0.3128194212913513, -0.45423007011413574, 2.7283380031585693, -1.3567783832550049, -0.3905612826347351, -0.9803662896156311, -0.636951744556427, 1.7155317068099976, -1.0447238683700562, -0.23537909984588623, -1.094106912612915, -0.577663242816925, -1.3904392719268799, -0.4905816912651062, -0.031842343509197235, -0.8833450078964233, 0.8993071913719177, 0.39746448397636414, -1.2247053384780884, -0.421975702047348, -0.9152567982673645, 0.9221267700195312, -0.18957452476024628, 0.2132386416196823, 1.9232285022735596, 0.36293959617614746, -0.3388713300228119, 0.8685724139213562, 1.096479892730713, 0.6841493844985962, -0.5686427354812622, 0.2604970335960388, -0.5352208614349365, 0.369518905878067, -1.4187748432159424, 0.2150425761938095, -2.877314567565918, 0.6051779985427856, 0.06573397666215897, -0.08400142937898636, -0.11154638975858688, -1.3611340522766113, 1.1392438411712646, 2.4811604022979736, -1.2818819284439087, 0.5786864161491394, 0.3441154956817627, 1.2840046882629395, -1.7526110410690308, 0.23063190281391144, -0.44450879096984863, 2.1431169509887695, 0.09377674013376236, 1.2182573080062866, -0.4698348641395569, -2.4791488647460938, 0.5615006685256958, -1.3826966285705566, -1.046034336090088, 0.6052089929580688, -0.8992106318473816, 0.21281364560127258, -1.5880168676376343, -0.3179730176925659, -0.963708221912384, -1.2865639925003052, 0.7210982441902161, 0.18625539541244507, 0.22965817153453827, -0.601760983467102, 0.4504064917564392, -2.159008026123047, -1.4611438512802124, -0.20640987157821655, -0.8925413489341736, 0.5674803853034973, -0.42095983028411865, 0.74951171875, -0.1747332364320755, -0.03698580712080002, 0.28560706973075867, 1.438928484916687, 3.4576833248138428, 0.2591443359851837, 0.4322977662086487, -0.1414681226015091, -0.9396347999572754, 1.478530764579773, 0.9514163732528687, -0.14953336119651794, -0.475101113319397, -1.144487977027893, 1.3869132995605469, 1.920035719871521, 0.9525476694107056, -0.01467607170343399, -0.7189016342163086, -0.7015994191169739, -0.00901445746421814, 0.22538486123085022, 0.5191827416419983, 0.7591350078582764, 0.02217813767492771, 0.015365330502390862, 1.3551201820373535, 1.0465750694274902, -0.4090217053890228, 0.2574161887168884, -0.8612669706344604, -0.42377588152885437, 0.5455946326255798, 0.17979805171489716, -0.11280195415019989, 0.31921228766441345, -1.003126621246338, -0.24795906245708466, -0.29112857580184937, -0.8457432985305786, -0.6275502443313599, -0.4132392406463623, -0.32274261116981506, 1.4901199340820312, 0.29111015796661377, -0.5835477113723755, -0.13223330676555634, -0.7061528563499451, -0.10490288585424423, -1.1060937643051147, 0.17178411781787872, -0.1974378079175949, -0.14103005826473236, -0.31062015891075134, 1.7482351064682007, -0.8570118546485901, -2.0576088428497314, 0.05844128131866455, 0.45265188813209534, -0.19443130493164062, 0.3038168251514435, 1.7101460695266724, 0.4586992561817169, 1.3319729566574097, 1.257253885269165, 0.9930700659751892, -0.5652523040771484, -1.3606971502304077, 0.6341996788978577, 1.1145919561386108, -1.3712823390960693, 0.8799306154251099, 0.0030887695029377937, -0.4663611650466919, 0.6045199036598206, 1.4451720714569092, 0.5125308036804199, -2.001072645187378, 0.7034813165664673, -1.1101775169372559, 0.9423837065696716, 0.7473654747009277, 0.7081676721572876, 0.21513153612613678, 0.790989100933075, -1.2231409549713135, -1.1231961250305176, -0.7947721481323242, -0.7927870154380798, 1.9741430282592773, -0.3365967273712158, 0.6299164891242981, -0.04487051069736481, -1.3205841779708862, -0.058809928596019745, 0.7063444256782532, 0.2888869345188141, -0.5024212598800659, 0.8663979768753052, -0.6631137132644653, -1.1911122798919678, -1.2542134523391724, -0.42259031534194946, -0.9903082847595215, -1.0280406475067139, 1.0352897644042969, 0.7973980903625488, 0.19670145213603973, 1.8470587730407715, 0.7043859958648682, 0.17668144404888153, -2.510512590408325, 0.8907488584518433, 0.31540077924728394, -0.08632060885429382, 0.7069419026374817, 0.3793548345565796, 1.1239064931869507, 0.015142349526286125, 0.6085604429244995, -2.3531973361968994, 2.227707862854004, -0.14947673678398132, 0.7782774567604065, -0.13807080686092377, -0.11409533768892288, 1.0648307800292969, 0.4594168961048126, 0.4965968728065491, -0.9593609571456909, 0.6036967039108276, -0.56448894739151, 1.2802855968475342, 0.9396573901176453, -0.8099666237831116, -0.03511805832386017, 1.293440818786621, 0.3298664391040802, -0.6322692632675171, -0.9869992733001709, -0.8709291219711304, 0.9447994828224182, 1.6768673658370972, -0.11885546892881393, -0.053038619458675385, 0.8798586130142212, 0.5891820788383484, -1.2795096635818481, 0.005059877410531044, -0.6069119572639465, -0.6262463927268982, 1.814448356628418, 2.0166563987731934, -0.3640589118003845, -0.13781340420246124, -0.6751036643981934, -1.29190194606781, 0.7065619230270386, -0.07538236677646637, 0.05571664869785309, 0.6194005608558655, -0.6413297653198242, 0.9548402428627014, 0.8068876266479492, 0.8373250961303711, 0.08627225458621979, 0.22192609310150146, 0.45592328906059265, -0.47790586948394775, -1.1450719833374023, -0.2623268961906433, -1.2104653120040894, -2.5364673137664795, 0.35511377453804016, -0.06139293313026428, -1.2558810710906982, 0.055990442633628845, -0.979937732219696, 1.1680513620376587, -0.5405825972557068, -1.2265048027038574, -1.3026167154312134, 0.19902531802654266, -0.017602019011974335, 0.8052402138710022, -1.6628484725952148, -0.04911012202501297, 1.290791630744934, 0.9418399930000305, -0.7707738280296326, 1.0483698844909668, 0.21631528437137604, 1.161536693572998, 0.7170263528823853, -0.2768505811691284, 0.5788853764533997, -0.02047027461230755, -1.2752639055252075, 0.529949426651001, 1.1877422332763672, 0.132477268576622, 1.4622657299041748, -0.5035912394523621, -0.1387087106704712, 0.36844199895858765, -0.6837859749794006, -0.5145102739334106, -0.3776960074901581, 0.5946670770645142, 0.06705775856971741, -0.812923789024353, 0.08230790495872498, 0.07130672037601471, -0.21747031807899475, 0.1446070820093155, -1.5416736602783203, -0.2197524458169937, -0.41817647218704224, -0.46829983592033386, -1.2591556310653687, -0.12461709976196289, 1.343201994895935, -0.6165092587471008, -0.3392089009284973, 0.5921696424484253, 0.23510253429412842, 0.47498980164527893, 0.6000683307647705, -0.6545230746269226, -0.3351869285106659, -0.16799026727676392, -0.3568892776966095, 0.33251073956489563, 1.3888640403747559, -0.09202229976654053, -0.9541425108909607, 0.7407764196395874, -0.3109970986843109, 0.04218006879091263, 1.7285658121109009, -0.08276219666004181, -0.8411825895309448, 0.24673008918762207, -0.8073307871818542, 1.936638355255127, 1.6193461418151855, 1.3295965194702148, -0.3105948269367218, -0.8302376866340637, 0.7293151021003723, -0.4280428886413574, -0.46645861864089966, 0.7946057915687561, 0.4064023494720459, -0.24704723060131073, -1.4394493103027344, 0.7293332815170288, 1.2080028057098389, -0.8304398059844971, -0.8204288482666016, 0.26330703496932983, -0.7366656064987183, 1.1166082620620728, 0.6272907853126526, 0.3579850494861603, 0.2977599501609802, 1.7154804468154907, 0.8411628603935242, -0.4558562934398651, 0.5599781274795532, 0.5990124344825745, -0.25060439109802246, -2.1257495880126953, -1.2194019556045532, 0.22669436037540436, -0.5347446203231812, -1.6465166807174683, 1.3150311708450317, -1.071106195449829, -0.9349623918533325, 0.6366503834724426, 0.08367528766393661, 1.3128163814544678, 0.4137420654296875, 1.4166988134384155, 2.023289203643799, 0.7019543647766113, 0.4908289909362793, 1.1745864152908325, -0.21191205084323883, -0.5029678344726562, 1.8367513418197632, -0.40898093581199646, 0.5555068254470825, 1.161970615386963, -0.26339390873908997, -1.1589800119400024, -0.7120296955108643, -1.3160929679870605, -0.6142693758010864, 1.214074730873108, 0.08266898989677429, -1.128418207168579, 0.3039741814136505, 1.5915148258209229, 0.08197366446256638, -0.4227473735809326, 0.7029622793197632, 0.397372305393219, -0.9515265226364136, 0.0022636419162154198, -0.906456470489502, 0.46895983815193176, -0.1933841109275818, -0.16145801544189453, 0.36989855766296387, 0.46008822321891785, 1.3822135925292969, 0.05690963566303253, 0.21842002868652344, 0.9816828966140747, -1.4134668111801147, 1.5677117109298706, -0.8290629982948303, 0.386333167552948, -2.3653202056884766, 1.3032798767089844, -0.7421308159828186, 2.0355381965637207, -2.6815121173858643, 0.4584394097328186, -0.6378360390663147, -0.5077826380729675, 0.2767210006713867, -0.4108712077140808, -0.021601391956210136, -0.052839212119579315, -1.1162101030349731, 0.1287681609392166, -0.6024969816207886, 0.4510480463504791, 1.2506104707717896, 1.328477382659912, -1.1151022911071777, -0.27004674077033997, -1.7927496433258057, -0.2397095263004303, -0.8129642009735107, 0.3099784851074219, -2.0539169311523438, -0.2793426513671875, -1.848110556602478, -2.1989450454711914, -1.139574408531189, -0.7934492826461792, 1.1841814517974854, 0.10288248211145401, -0.8881147503852844, 1.3229098320007324, -0.36050987243652344, -1.7410202026367188, 1.0703343152999878, -2.060896873474121 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Hi @severo, thanks for reporting. Yes, this happens because when non-streaming, a cast of all data is done in order to "concatenate" it all into a single dataset (thus the error), while this casting is not done while yielding item by item in streaming mode. Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
74
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Hi @severo, thanks for reporting. Yes, this happens because when non-streaming, a cast of all data is done in order to "concatenate" it all into a single dataset (thus the error), while this casting is not done while yielding item by item in streaming mode. Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema?
[ -1.2710429430007935, -1.098393440246582, -0.7429999709129333, 1.6057944297790527, -0.21955285966396332, -1.090627908706665, 0.08329576998949051, -0.9926217794418335, 1.6327447891235352, -0.7439228892326355, 0.26320815086364746, -1.6877937316894531, -0.02860269322991371, -0.7212138772010803, -0.7015175223350525, -0.7527537941932678, -0.3584291934967041, -0.8073407411575317, 1.1119310855865479, 2.465252637863159, 1.1837577819824219, -1.4978482723236084, 2.719820022583008, 0.7745769619941711, -0.10672935098409653, -1.1024255752563477, 0.5497024059295654, -0.12275509536266327, -1.2015961408615112, -0.5183360576629639, -0.9771377444267273, -0.026319656521081924, -0.5887945294380188, -0.4579099416732788, -0.03328583389520645, 0.49472883343696594, -0.2794894278049469, -0.4878603219985962, -0.5294400453567505, -0.7552038431167603, 0.45204469561576843, -0.37692174315452576, 0.9136908054351807, -0.2647472321987152, 1.769470453262329, -0.4438358545303345, 0.3142560124397278, 0.6839995980262756, 1.3712795972824097, 0.17405113577842712, 0.01488273311406374, 0.3372572660446167, 0.42525750398635864, -0.08695115149021149, 0.5808384418487549, 1.1433911323547363, 0.7160244584083557, 0.3796257972717285, 0.8509753942489624, -2.390657424926758, 1.1958974599838257, -1.0919445753097534, 0.3452821671962738, 1.3633004426956177, -0.8237348198890686, 0.4751931130886078, -1.7977609634399414, 0.0910826027393341, 0.6263406872749329, -2.112337827682495, 0.39745402336120605, -1.1996368169784546, -0.39870789647102356, 0.9681927561759949, 0.37605440616607666, -1.2703248262405396, 0.1391870081424713, -0.30457115173339844, 1.0500056743621826, 0.40226584672927856, 1.0490448474884033, -1.7376822233200073, 0.030888237059116364, -0.273934543132782, 0.17260795831680298, -1.25877845287323, -1.5030548572540283, 0.4552389681339264, 0.5031903982162476, 0.6348912119865417, -0.14289605617523193, 1.0661143064498901, -1.162459373474121, 0.6731976270675659, -1.0846166610717773, -1.6281094551086426, -1.4003151655197144, -2.302166223526001, -2.2224974632263184, 0.6963809132575989, -0.45503878593444824, -0.541032612323761, 2.018970489501953, -0.8965116739273071, -1.7607266902923584, 1.2962485551834106, 0.3775978088378906, 0.10884635150432587, 2.4176101684570312, 0.20071223378181458, -0.7661222219467163, 0.5648518800735474, -0.8074426651000977, 0.735548198223114, -0.41680726408958435, 1.4907655715942383, 0.40874573588371277, -0.9368347525596619, 1.6517438888549805, -0.48017922043800354, 0.6013859510421753, -0.6750209927558899, -0.46173036098480225, -0.7420272827148438, 0.3510172963142395, 1.8448339700698853, -0.2304997742176056, 1.4044785499572754, -0.4371373951435089, -1.498294472694397, -1.5375983715057373, 1.0012342929840088, 0.37888848781585693, -0.8542835116386414, 0.17013458907604218, -0.4167128801345825, 0.1961956024169922, -0.21929462254047394, 1.1336050033569336, 1.2275811433792114, 0.6202243566513062, -0.3118428587913513, -0.8775081634521484, 0.1365981251001358, -0.16632646322250366, -0.652119517326355, -1.775284767150879, -0.25734198093414307, 0.1747993528842926, 0.6589723229408264, -1.213466763496399, 1.6239458322525024, 0.928396999835968, 1.9273852109909058, 0.9760774970054626, -0.39504870772361755, 1.5080513954162598, 0.07882203161716461, 1.8506903648376465, -0.6011480689048767, 0.5811858177185059, -0.3799160122871399, -1.2444703578948975, 0.8957021832466125, -0.2836880683898926, -2.0407161712646484, -0.7308768630027771, -0.8219621181488037, -0.281446248292923, -0.8275932669639587, 0.943341851234436, -0.41618144512176514, -1.471753478050232, 0.24723096191883087, -0.7843615412712097, 0.28261053562164307, -1.1249333620071411, 0.30489644408226013, 0.7240518927574158, -0.5902305841445923, 0.09253010898828506, -0.28006845712661743, -1.3018779754638672, -0.5192795991897583, 0.5024534463882446, 1.8282455205917358, -0.8062868118286133, 0.7109296917915344, 1.0802091360092163, -0.6292417645454407, 0.04564610496163368, 0.2623326778411865, -0.26319459080696106, 0.8077557682991028, -0.9820159077644348, -0.6969887018203735, 1.2507619857788086, -0.21126510202884674, -0.656816303730011, 1.4336351156234741, 0.7777969241142273, -1.0504487752914429, -0.26819175481796265, -0.15724027156829834, -0.7966620326042175, 0.01621149480342865, -1.6082522869110107, -0.08760236203670502, 0.421499639749527, -1.5625933408737183, -0.4553540349006653, -0.25569576025009155, 1.2983802556991577, -0.14421774446964264, 1.4021092653274536, -0.397148996591568, -0.03758610785007477, -0.22412161529064178, -0.44024786353111267, 0.24703358113765717, -0.25332146883010864, -0.6079434752464294, 0.1185954138636589, -0.8409067988395691, 0.423796147108078, 1.4279628992080688, 0.3402145802974701, 0.021762780845165253, 0.5121003985404968, 1.154820442199707, 0.49692317843437195, 0.1691734343767166, -0.8819618225097656, -1.5083616971969604, 1.9695868492126465, -1.6331199407577515, 2.0350215435028076, 0.6371593475341797, 0.017482541501522064, -1.7402406930923462, -1.8148826360702515, 1.3768259286880493, 1.1111053228378296, 2.291114091873169, 0.6113387942314148, 0.33674296736717224, -0.9427759051322937, -0.6543188095092773, 0.22914239764213562, -0.9360097050666809, -0.7304357290267944, 0.18274585902690887, 2.4501147270202637, 1.8831242322921753, -0.40516340732574463, -0.224839448928833, -0.9279606938362122, 1.5000096559524536, -0.2192056030035019, 0.28587210178375244, 1.9929146766662598, -0.15321232378482819, -1.0025686025619507, 1.338496446609497, -2.4969582557678223, 0.2276557832956314, 2.023642063140869, 0.2777959406375885, 0.24121825397014618, -1.318550944328308, -0.680690348148346, -0.1525576263666153, -0.4447348415851593, -1.2674702405929565, 0.5527077913284302, -0.3255409300327301, -0.6956097483634949, -1.454298496246338, 0.2574027180671692, -1.0903443098068237, -1.577585220336914, 0.21511636674404144, 1.8617111444473267, 2.218163251876831, -0.8845899701118469, 1.6755220890045166, -0.22408220171928406, 0.2727731168270111, 1.291393518447876, 1.24019193649292, 2.9441628456115723, 1.8896658420562744, -1.243052363395691, 0.5611483454704285, -0.1893445998430252, -0.5573952198028564, 1.1414382457733154, -1.2416845560073853, 1.1922930479049683, -0.1487983763217926, -1.1225718259811401, -1.2208110094070435, 0.8971167802810669, 0.5329183340072632, 0.02644948661327362, -0.515246570110321, 1.1138455867767334, 0.03682262450456619, 1.244876742362976, 0.6648030877113342, -0.35202157497406006, 0.5049880743026733, -0.3791181147098541, -0.5748552083969116, 1.485315203666687, 0.06520736217498779, -1.4034680128097534, -2.1629467010498047, -0.18109048902988434, -0.8580712676048279, 0.023194454610347748, -0.6098598837852478, -0.9636168479919434, 1.5662554502487183, 0.2582644522190094, -1.1956113576889038, -0.19481679797172546, -0.32017576694488525, -0.44819319248199463, 2.727623701095581, -1.3564351797103882, -0.3987100124359131, -0.9767481088638306, -0.6326658129692078, 1.707366704940796, -1.0838557481765747, -0.2413841336965561, -1.1015785932540894, -0.5684787631034851, -1.3914004564285278, -0.5217809081077576, -0.013275634497404099, -0.8826146721839905, 0.9030342698097229, 0.3964739143848419, -1.2365800142288208, -0.42373961210250854, -0.9255729913711548, 0.9264118075370789, -0.185599222779274, 0.21319076418876648, 1.9582644701004028, 0.3596668541431427, -0.36081379652023315, 0.8510332107543945, 1.1169248819351196, 0.6533474326133728, -0.5441756844520569, 0.23778344690799713, -0.5729793310165405, 0.38539278507232666, -1.4155421257019043, 0.24878911674022675, -2.856290340423584, 0.6522873640060425, 0.09408358484506607, -0.07281870394945145, -0.09762111306190491, -1.3517745733261108, 1.0874236822128296, 2.5073723793029785, -1.251120686531067, 0.5583985447883606, 0.37097716331481934, 1.2863906621932983, -1.7197471857070923, 0.24391178786754608, -0.43788623809814453, 2.1376616954803467, 0.08989272266626358, 1.2108120918273926, -0.46611565351486206, -2.496009111404419, 0.5538266897201538, -1.3790130615234375, -1.0624722242355347, 0.619853675365448, -0.9069424867630005, 0.17436766624450684, -1.5803520679473877, -0.3001745343208313, -0.9857759475708008, -1.259599208831787, 0.7599707245826721, 0.2149536907672882, 0.2700934112071991, -0.6285794973373413, 0.42928341031074524, -2.137113571166992, -1.4260810613632202, -0.23649311065673828, -0.8749175071716309, 0.5461147427558899, -0.3885595202445984, 0.7462829947471619, -0.18925343453884125, -0.04054510220885277, 0.31532299518585205, 1.428260326385498, 3.4335925579071045, 0.24886615574359894, 0.40982329845428467, -0.18892674148082733, -0.9196316003799438, 1.475667953491211, 0.9542440176010132, -0.16081586480140686, -0.49042752385139465, -1.0765712261199951, 1.3579362630844116, 1.895709753036499, 0.9116660356521606, 0.01660355180501938, -0.7743548154830933, -0.7118576169013977, 0.008897899650037289, 0.21743717789649963, 0.4924944341182709, 0.7970320582389832, 0.019724473357200623, 0.0264640673995018, 1.372847318649292, 1.054858684539795, -0.41042137145996094, 0.27115434408187866, -0.8205533623695374, -0.43366101384162903, 0.5631853342056274, 0.21168339252471924, -0.09801828116178513, 0.31501904129981995, -0.9825468063354492, -0.2380427122116089, -0.30824732780456543, -0.8815928101539612, -0.6099361181259155, -0.40629568696022034, -0.3004014194011688, 1.518289566040039, 0.2744809687137604, -0.5799543857574463, -0.0782923623919487, -0.7206546664237976, -0.1268029808998108, -1.072685956954956, 0.17745144665241241, -0.1761159598827362, -0.13142743706703186, -0.259149968624115, 1.7321929931640625, -0.8542908430099487, -2.0468618869781494, 0.060111138969659805, 0.4012444317340851, -0.19428585469722748, 0.2750777304172516, 1.7082215547561646, 0.45726439356803894, 1.3597922325134277, 1.2983821630477905, 0.9655256867408752, -0.5618648529052734, -1.3434759378433228, 0.65477454662323, 1.113870620727539, -1.3976376056671143, 0.8911556005477905, 0.0045682936906814575, -0.5100279450416565, 0.6549715995788574, 1.406660556793213, 0.5005238652229309, -1.997085690498352, 0.7180712223052979, -1.1231712102890015, 0.9249410629272461, 0.7316223978996277, 0.6965317726135254, 0.2456977218389511, 0.8222402334213257, -1.200761318206787, -1.1486320495605469, -0.780812680721283, -0.7858399152755737, 1.9696519374847412, -0.3264080584049225, 0.6191594004631042, -0.046249303966760635, -1.3618663549423218, -0.0629119724035263, 0.6886839866638184, 0.2697138786315918, -0.47415223717689514, 0.8323132395744324, -0.7260445356369019, -1.1657332181930542, -1.2520177364349365, -0.4057430028915405, -0.9985713362693787, -1.0263398885726929, 1.0422639846801758, 0.8326317667961121, 0.18489189445972443, 1.8580894470214844, 0.7034040093421936, 0.1988668590784073, -2.5220413208007812, 0.8612820506095886, 0.2859888970851898, -0.07075127214193344, 0.7188820242881775, 0.3607345223426819, 1.0754295587539673, 0.025846581906080246, 0.6002843976020813, -2.4052271842956543, 2.234844207763672, -0.18908540904521942, 0.7899746298789978, -0.13045768439769745, -0.14612974226474762, 1.0811203718185425, 0.47498732805252075, 0.4976740777492523, -0.9378547668457031, 0.6192859411239624, -0.5366541743278503, 1.2913250923156738, 0.9300687909126282, -0.8082714676856995, -0.012923337519168854, 1.2766996622085571, 0.34547147154808044, -0.6508416533470154, -0.9883298277854919, -0.8931028246879578, 0.9252362847328186, 1.7034565210342407, -0.1135375052690506, -0.04992666840553284, 0.879561185836792, 0.6270659565925598, -1.2635577917099, 0.02718387171626091, -0.6157000660896301, -0.6563465595245361, 1.7841130495071411, 2.0597665309906006, -0.3248319625854492, -0.09514608979225159, -0.6435169577598572, -1.2673827409744263, 0.7295637130737305, -0.06567686051130295, 0.11410152912139893, 0.5880995988845825, -0.6564300656318665, 0.9761289954185486, 0.7968255877494812, 0.8438274264335632, 0.12531022727489471, 0.24479497969150543, 0.4427073895931244, -0.4679062068462372, -1.1337124109268188, -0.2316557765007019, -1.1880377531051636, -2.524653434753418, 0.3527134954929352, -0.05109327286481857, -1.2858822345733643, 0.06103019788861275, -0.9651352167129517, 1.107753038406372, -0.5256645083427429, -1.221490740776062, -1.3020230531692505, 0.1917395293712616, 0.011340486817061901, 0.8356406092643738, -1.6627894639968872, -0.06857515126466751, 1.2494292259216309, 0.9442189335823059, -0.7448396682739258, 1.002029538154602, 0.24546991288661957, 1.1792954206466675, 0.7457286715507507, -0.28922373056411743, 0.5430887341499329, -0.010477828793227673, -1.2829428911209106, 0.5083045959472656, 1.187065601348877, 0.13781225681304932, 1.4437986612319946, -0.46742749214172363, -0.10131910443305969, 0.35957789421081543, -0.6756594777107239, -0.47326159477233887, -0.40707874298095703, 0.5760208368301392, 0.055069636553525925, -0.8076676726341248, 0.028339486569166183, 0.03944073244929314, -0.2628669738769531, 0.14324702322483063, -1.5793019533157349, -0.1846972107887268, -0.4246402382850647, -0.47988197207450867, -1.2690753936767578, -0.10533924400806427, 1.387699007987976, -0.6660633087158203, -0.3485425114631653, 0.6069477200508118, 0.257650762796402, 0.49024394154548645, 0.6341512799263, -0.7096332311630249, -0.32718294858932495, -0.16935986280441284, -0.40138617157936096, 0.28648266196250916, 1.4208049774169922, -0.1010863333940506, -0.917420506477356, 0.7015732526779175, -0.33563223481178284, 0.021518588066101074, 1.7472660541534424, -0.037231799215078354, -0.8222525715827942, 0.23263831436634064, -0.799513578414917, 1.9242100715637207, 1.6493254899978638, 1.3362334966659546, -0.306403249502182, -0.8373401165008545, 0.7269852161407471, -0.434109091758728, -0.4587942659854889, 0.8126925826072693, 0.42064812779426575, -0.2571677267551422, -1.4469568729400635, 0.7391637563705444, 1.1778684854507446, -0.8194514513015747, -0.8019950985908508, 0.1938205361366272, -0.735240638256073, 1.119134545326233, 0.6584765315055847, 0.3494079113006592, 0.31869781017303467, 1.721517562866211, 0.8483825922012329, -0.4564715325832367, 0.5725733041763306, 0.6219240427017212, -0.23596049845218658, -2.1634931564331055, -1.2057961225509644, 0.22544895112514496, -0.490483820438385, -1.6223535537719727, 1.308923602104187, -1.0889794826507568, -0.9581024050712585, 0.589316725730896, 0.08120083808898926, 1.3225243091583252, 0.4190463125705719, 1.4173974990844727, 2.023432493209839, 0.7457777261734009, 0.4912027418613434, 1.2236592769622803, -0.2036772519350052, -0.4716132581233978, 1.84053373336792, -0.4356593191623688, 0.5666514039039612, 1.1622260808944702, -0.2907845675945282, -1.1559251546859741, -0.7063382267951965, -1.307320237159729, -0.6350274085998535, 1.2169420719146729, 0.05739380791783333, -1.1039032936096191, 0.3289860188961029, 1.6116942167282104, 0.08242692053318024, -0.41500380635261536, 0.6964413523674011, 0.41855135560035706, -0.9194239377975464, -0.030159812420606613, -0.8933826684951782, 0.4888918697834015, -0.21022972464561462, -0.21904902160167694, 0.36351096630096436, 0.48456984758377075, 1.3881665468215942, 0.03070448338985443, 0.19131049513816833, 0.9927313923835754, -1.420455813407898, 1.4691492319107056, -0.8271649479866028, 0.3490384519100189, -2.3913493156433105, 1.3390005826950073, -0.7461966276168823, 2.0476889610290527, -2.697664499282837, 0.486128568649292, -0.6387266516685486, -0.5208280086517334, 0.2991272211074829, -0.3703818619251251, -0.01275507640093565, -0.05313714221119881, -1.0968282222747803, 0.12673868238925934, -0.5780647993087769, 0.5067424774169922, 1.2193366289138794, 1.3361634016036987, -1.1075598001480103, -0.2575741410255432, -1.7912425994873047, -0.26350364089012146, -0.8241093754768372, 0.27369338274002075, -2.0326201915740967, -0.25153252482414246, -1.9006701707839966, -2.214411735534668, -1.1981899738311768, -0.7880704402923584, 1.2019299268722534, 0.14569517970085144, -0.9090375304222107, 1.3110367059707642, -0.3838874101638794, -1.7698513269424438, 1.0872892141342163, -2.0961272716522217 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Why do we want to concatenate the files? Is it the expected behavior for most datasets that lack a script and dataset info?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
23
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Why do we want to concatenate the files? Is it the expected behavior for most datasets that lack a script and dataset info?
[ -1.2324717044830322, -1.1396528482437134, -0.7814563512802124, 1.6707576513290405, -0.20058387517929077, -1.0544172525405884, 0.06390151381492615, -0.9357845783233643, 1.6305804252624512, -0.7045024037361145, 0.266491174697876, -1.703865885734558, -0.0545627623796463, -0.7043231129646301, -0.6797613501548767, -0.7629560232162476, -0.32484355568885803, -0.8007915019989014, 1.1320481300354004, 2.4670393466949463, 1.1465935707092285, -1.513630986213684, 2.6929168701171875, 0.7576223015785217, -0.09365782886743546, -1.1084624528884888, 0.5515050292015076, -0.1093113124370575, -1.1501628160476685, -0.4927297830581665, -0.9437499642372131, -0.019057797268033028, -0.5961248874664307, -0.4634822607040405, -0.03290082514286041, 0.5109810829162598, -0.2838144600391388, -0.48952287435531616, -0.5401491522789001, -0.7471936345100403, 0.44162821769714355, -0.3680073916912079, 0.8847119808197021, -0.2686789631843567, 1.797977328300476, -0.40306034684181213, 0.29066354036331177, 0.671017050743103, 1.3811917304992676, 0.19353967905044556, 0.03094238042831421, 0.3609367609024048, 0.41094762086868286, -0.07190146297216415, 0.5827199220657349, 1.1328327655792236, 0.6931467056274414, 0.38312071561813354, 0.834909975528717, -2.4240617752075195, 1.1954306364059448, -1.1251088380813599, 0.3583920896053314, 1.3757941722869873, -0.8242613673210144, 0.47749751806259155, -1.7371498346328735, 0.12579362094402313, 0.6425333619117737, -2.0846142768859863, 0.42168527841567993, -1.1907591819763184, -0.3649166226387024, 0.9796817898750305, 0.404794842004776, -1.2878531217575073, 0.15140369534492493, -0.2713330090045929, 1.0914443731307983, 0.3902133107185364, 1.0381277799606323, -1.7561216354370117, 0.05866921693086624, -0.260493665933609, 0.13455668091773987, -1.283998727798462, -1.504475474357605, 0.41577649116516113, 0.4911397099494934, 0.6614073514938354, -0.11373794078826904, 1.0532692670822144, -1.1796749830245972, 0.6307785511016846, -1.0796769857406616, -1.6510982513427734, -1.368937373161316, -2.3176681995391846, -2.2466185092926025, 0.6837689280509949, -0.45063626766204834, -0.5264589190483093, 2.006976366043091, -0.858863115310669, -1.782170295715332, 1.30292809009552, 0.4127453863620758, 0.10874100774526596, 2.4150781631469727, 0.1988518238067627, -0.7582852840423584, 0.5297672152519226, -0.8498793840408325, 0.7335770726203918, -0.3645298182964325, 1.5009255409240723, 0.4485709071159363, -0.9094934463500977, 1.6596648693084717, -0.45233774185180664, 0.6255558133125305, -0.6517010927200317, -0.4714064598083496, -0.7587180137634277, 0.3537353277206421, 1.8622479438781738, -0.25000226497650146, 1.425242304801941, -0.4560435116291046, -1.4732377529144287, -1.5324777364730835, 1.0075592994689941, 0.3403684198856354, -0.8838242292404175, 0.174209326505661, -0.3921741545200348, 0.22487011551856995, -0.24068833887577057, 1.1684684753417969, 1.2085180282592773, 0.6007168292999268, -0.34868723154067993, -0.8993706703186035, 0.14701218903064728, -0.1737373322248459, -0.6334003806114197, -1.7826080322265625, -0.2591477334499359, 0.1878703534603119, 0.6667817234992981, -1.231554627418518, 1.5827624797821045, 0.8913688659667969, 1.9222259521484375, 0.9602324366569519, -0.3998706638813019, 1.5048954486846924, 0.042987316846847534, 1.899843454360962, -0.6077214479446411, 0.579595685005188, -0.3767794072628021, -1.2599091529846191, 0.9284482598304749, -0.2880527079105377, -2.035442352294922, -0.7918953895568848, -0.8603223562240601, -0.27761778235435486, -0.8144974708557129, 0.9010555744171143, -0.4346352219581604, -1.5215928554534912, 0.2439989149570465, -0.8010259866714478, 0.3120090663433075, -1.1214150190353394, 0.31465500593185425, 0.7297123670578003, -0.5918909311294556, 0.05705484002828598, -0.2634040117263794, -1.2809927463531494, -0.5118595957756042, 0.5270279049873352, 1.8530656099319458, -0.8253569006919861, 0.7372552156448364, 1.0930978059768677, -0.6525545120239258, 0.06140783429145813, 0.21182620525360107, -0.2655700743198395, 0.8528942465782166, -0.9757102131843567, -0.7142513990402222, 1.2601559162139893, -0.20393972098827362, -0.7142319083213806, 1.4372804164886475, 0.804758608341217, -1.0548570156097412, -0.29813334345817566, -0.17471244931221008, -0.763042151927948, 0.034329723566770554, -1.5999175310134888, -0.1017388328909874, 0.42460331320762634, -1.5665349960327148, -0.4607149660587311, -0.28963786363601685, 1.2905446290969849, -0.1579650640487671, 1.3727242946624756, -0.3937578797340393, -0.06963668763637543, -0.2073700726032257, -0.44965115189552307, 0.26613736152648926, -0.2842698395252228, -0.6322467923164368, 0.10398644208908081, -0.8516631126403809, 0.4588448107242584, 1.3820116519927979, 0.3412446081638336, 0.021468225866556168, 0.5081337690353394, 1.1722362041473389, 0.5302687883377075, 0.1954062432050705, -0.9084901809692383, -1.5032254457473755, 1.946545124053955, -1.6255817413330078, 2.033271312713623, 0.595957338809967, 0.005346066318452358, -1.719777226448059, -1.8539276123046875, 1.3975756168365479, 1.1334936618804932, 2.2354183197021484, 0.6383782625198364, 0.35539260506629944, -0.9590988159179688, -0.6699514389038086, 0.1942075490951538, -0.9279236793518066, -0.6971754431724548, 0.16905716061592102, 2.476067543029785, 1.851109504699707, -0.41753047704696655, -0.24239994585514069, -0.931523323059082, 1.5025522708892822, -0.21818311512470245, 0.3154720962047577, 2.0165679454803467, -0.13989858329296112, -1.0146667957305908, 1.3530786037445068, -2.4982519149780273, 0.23818950355052948, 2.0446245670318604, 0.2879633903503418, 0.2190188467502594, -1.3578593730926514, -0.7018475532531738, -0.1253248006105423, -0.44655677676200867, -1.2420070171356201, 0.5484520792961121, -0.2869444787502289, -0.6832167506217957, -1.4671735763549805, 0.2637613117694855, -1.091397762298584, -1.5847548246383667, 0.22433629631996155, 1.8954246044158936, 2.192901134490967, -0.8812058568000793, 1.6951402425765991, -0.20072035491466522, 0.30029162764549255, 1.3264580965042114, 1.246788740158081, 2.9180586338043213, 1.8662376403808594, -1.2447975873947144, 0.5489789247512817, -0.15842007100582123, -0.5427535176277161, 1.1760157346725464, -1.238342046737671, 1.1863645315170288, -0.17134398221969604, -1.105195164680481, -1.2613060474395752, 0.912021279335022, 0.5482142567634583, 0.004449741914868355, -0.5039231777191162, 1.10862398147583, -0.006398077122867107, 1.2360570430755615, 0.6698548197746277, -0.36755165457725525, 0.5043280124664307, -0.41642269492149353, -0.5512779951095581, 1.4920741319656372, 0.0190679132938385, -1.3999754190444946, -2.160970687866211, -0.19744879007339478, -0.8650209903717041, 0.011137942783534527, -0.5894191861152649, -1.004404067993164, 1.552532434463501, 0.3016446828842163, -1.2096036672592163, -0.22254012525081635, -0.31801164150238037, -0.44949087500572205, 2.7296335697174072, -1.3435285091400146, -0.38857302069664, -0.9846996068954468, -0.6251490712165833, 1.7035701274871826, -1.0452624559402466, -0.24763348698616028, -1.0978375673294067, -0.6010337471961975, -1.4070935249328613, -0.4986571967601776, -0.01827004738152027, -0.8907391428947449, 0.9038221836090088, 0.3770730197429657, -1.210798978805542, -0.4126783013343811, -0.9231922626495361, 0.9299759864807129, -0.19938039779663086, 0.22640381753444672, 1.9366451501846313, 0.3757290840148926, -0.3301030993461609, 0.8591568470001221, 1.1083308458328247, 0.6872689723968506, -0.5717312097549438, 0.24640551209449768, -0.5425721406936646, 0.3518778681755066, -1.4143517017364502, 0.22437022626399994, -2.86979341506958, 0.6222545504570007, 0.08048246800899506, -0.07419151812791824, -0.08803268522024155, -1.3573764562606812, 1.1200178861618042, 2.4867422580718994, -1.2873930931091309, 0.566272497177124, 0.3597351908683777, 1.2749059200286865, -1.7578397989273071, 0.23850996792316437, -0.45216089487075806, 2.1347689628601074, 0.07976974546909332, 1.2232340574264526, -0.4755856990814209, -2.4626922607421875, 0.5726162195205688, -1.3881958723068237, -1.0656328201293945, 0.6160084009170532, -0.9094950556755066, 0.2031232714653015, -1.5935347080230713, -0.3171437382698059, -0.9796470403671265, -1.281679630279541, 0.7247786521911621, 0.17922712862491608, 0.2278691530227661, -0.5979601740837097, 0.45495083928108215, -2.1602776050567627, -1.4567537307739258, -0.2074720412492752, -0.909440279006958, 0.573178768157959, -0.4112328290939331, 0.7422522306442261, -0.17424802482128143, -0.028909489512443542, 0.2871882915496826, 1.4325990676879883, 3.4544482231140137, 0.2793046832084656, 0.42875245213508606, -0.13892528414726257, -0.9415504336357117, 1.4824333190917969, 0.951206386089325, -0.1433158814907074, -0.4678165912628174, -1.1178309917449951, 1.3841150999069214, 1.9210313558578491, 0.9564838409423828, 0.0033814003691077232, -0.7357726097106934, -0.6893246173858643, 0.004300082102417946, 0.25611066818237305, 0.5165999531745911, 0.7709160447120667, 0.029719077050685883, 0.021617546677589417, 1.3361107110977173, 1.0421303510665894, -0.4093325138092041, 0.253894567489624, -0.8370420932769775, -0.43383339047431946, 0.5634801983833313, 0.16288724541664124, -0.0955684706568718, 0.31342023611068726, -1.0071786642074585, -0.24601803719997406, -0.3133140504360199, -0.8550571799278259, -0.6304799318313599, -0.41414809226989746, -0.32224327325820923, 1.4660893678665161, 0.27597981691360474, -0.5851075649261475, -0.12988196313381195, -0.7128166556358337, -0.12196748703718185, -1.0894325971603394, 0.16957026720046997, -0.19703803956508636, -0.14111271500587463, -0.3142329752445221, 1.7366375923156738, -0.8688704967498779, -2.0587656497955322, 0.0638260543346405, 0.4445192217826843, -0.19333750009536743, 0.29381871223449707, 1.7183343172073364, 0.4493865966796875, 1.336237907409668, 1.265394926071167, 0.9854573607444763, -0.5644140243530273, -1.3346853256225586, 0.6326606273651123, 1.1210227012634277, -1.378130555152893, 0.8722907900810242, 0.014470822177827358, -0.48056739568710327, 0.6262399554252625, 1.4461796283721924, 0.5031697750091553, -1.983582854270935, 0.7065233588218689, -1.1160297393798828, 0.9371363520622253, 0.7380534410476685, 0.719028115272522, 0.22334879636764526, 0.7853810787200928, -1.21136474609375, -1.1216319799423218, -0.7846755385398865, -0.7795385122299194, 1.9673638343811035, -0.322052001953125, 0.6423181295394897, -0.028125882148742676, -1.3197276592254639, -0.07644455134868622, 0.7136961817741394, 0.2867077589035034, -0.49325236678123474, 0.8659960031509399, -0.6849845051765442, -1.1716113090515137, -1.2561599016189575, -0.41780245304107666, -0.976423978805542, -1.0191439390182495, 1.0395249128341675, 0.7942731380462646, 0.19307619333267212, 1.8398600816726685, 0.6984154582023621, 0.18900999426841736, -2.525452136993408, 0.8819675445556641, 0.29471418261528015, -0.09412139654159546, 0.7063556909561157, 0.367265522480011, 1.1057623624801636, 0.017088010907173157, 0.5958150029182434, -2.345729351043701, 2.2216620445251465, -0.15483519434928894, 0.768092930316925, -0.16310878098011017, -0.11803855001926422, 1.0722793340682983, 0.457305371761322, 0.5043202638626099, -0.9577733874320984, 0.6185500621795654, -0.5423031449317932, 1.277624487876892, 0.9402989745140076, -0.8105867505073547, -0.034673772752285004, 1.288780689239502, 0.3412959575653076, -0.6217288374900818, -0.9891971349716187, -0.8594315052032471, 0.9429749250411987, 1.6879868507385254, -0.10632671415805817, -0.056417372077703476, 0.8842692971229553, 0.6099117398262024, -1.2667316198349, 0.0019031818956136703, -0.5926750302314758, -0.6217107772827148, 1.8001747131347656, 2.021436929702759, -0.33866220712661743, -0.14271800220012665, -0.6553164124488831, -1.2732726335525513, 0.7065757513046265, -0.07890143245458603, 0.06576427817344666, 0.6189872026443481, -0.6482072472572327, 0.9738686084747314, 0.8030325174331665, 0.8399131298065186, 0.06847688555717468, 0.21966688334941864, 0.452773779630661, -0.46219614148139954, -1.1551363468170166, -0.23988358676433563, -1.1902302503585815, -2.5206263065338135, 0.34663230180740356, -0.07536104321479797, -1.2705579996109009, 0.054703034460544586, -0.9829776883125305, 1.1787217855453491, -0.5331273674964905, -1.2173385620117188, -1.319653034210205, 0.20834071934223175, -0.00007663480937480927, 0.8166300654411316, -1.676767110824585, -0.0488755889236927, 1.288002371788025, 0.9510343074798584, -0.7614762187004089, 1.0282955169677734, 0.22524423897266388, 1.1577049493789673, 0.7189635634422302, -0.29141461849212646, 0.5601636171340942, -0.008047359064221382, -1.2890522480010986, 0.5250096321105957, 1.1804006099700928, 0.148886039853096, 1.4577841758728027, -0.4811539053916931, -0.1227925717830658, 0.3797726035118103, -0.6804195046424866, -0.48795071244239807, -0.3997511565685272, 0.5932570099830627, 0.07636487483978271, -0.7955203652381897, 0.05938595533370972, 0.054210178554058075, -0.2283824384212494, 0.14506401121616364, -1.5406203269958496, -0.21579356491565704, -0.41706037521362305, -0.4898548126220703, -1.2414642572402954, -0.12010131776332855, 1.367199182510376, -0.6367113590240479, -0.3490165174007416, 0.5973383784294128, 0.2440199851989746, 0.48013612627983093, 0.6171262264251709, -0.6579691171646118, -0.32900699973106384, -0.17486396431922913, -0.3465464413166046, 0.3141810894012451, 1.3943904638290405, -0.09920068085193634, -0.9661475419998169, 0.7451844811439514, -0.320981502532959, 0.033392954617738724, 1.7145112752914429, -0.05840226635336876, -0.843121349811554, 0.23663924634456635, -0.8071622848510742, 1.9420526027679443, 1.6239804029464722, 1.330166220664978, -0.3210141062736511, -0.8379740715026855, 0.7372472286224365, -0.41665133833885193, -0.4663046896457672, 0.8126875162124634, 0.4141440689563751, -0.2505517601966858, -1.4383381605148315, 0.7346157431602478, 1.2034801244735718, -0.8433695435523987, -0.8206291198730469, 0.24067792296409607, -0.7437288165092468, 1.1188877820968628, 0.6235960125923157, 0.3541518449783325, 0.3095540702342987, 1.708385944366455, 0.8283434510231018, -0.44806984066963196, 0.5564477443695068, 0.6135044097900391, -0.2693345248699188, -2.136047601699829, -1.204613447189331, 0.23545946180820465, -0.5239328145980835, -1.6334775686264038, 1.3091791868209839, -1.0808161497116089, -0.9467597603797913, 0.6360605955123901, 0.08111022412776947, 1.332772135734558, 0.426884263753891, 1.430307388305664, 2.03076434135437, 0.708206057548523, 0.4919002652168274, 1.1964415311813354, -0.19562725722789764, -0.482837438583374, 1.819239616394043, -0.4145381450653076, 0.5568347573280334, 1.175571322441101, -0.2845485806465149, -1.1548762321472168, -0.7083005905151367, -1.3084328174591064, -0.6251756548881531, 1.201460361480713, 0.08486394584178925, -1.1139280796051025, 0.31016096472740173, 1.5982980728149414, 0.08793573826551437, -0.4069819748401642, 0.6914452910423279, 0.38497504591941833, -0.946069598197937, -0.0007397839799523354, -0.9033395648002625, 0.4677012264728546, -0.2127007693052292, -0.15908795595169067, 0.35522279143333435, 0.46053546667099, 1.3844404220581055, 0.043721649795770645, 0.21092207729816437, 1.001067042350769, -1.404220461845398, 1.5392366647720337, -0.8123432397842407, 0.3803914487361908, -2.3829782009124756, 1.3194631338119507, -0.7403442859649658, 2.0457799434661865, -2.666957139968872, 0.4574161171913147, -0.6494981646537781, -0.49639692902565, 0.26606521010398865, -0.3965948224067688, -0.038608670234680176, -0.06188971549272537, -1.1012043952941895, 0.11866848915815353, -0.6013953685760498, 0.4858042001724243, 1.2566722631454468, 1.3160518407821655, -1.1143137216567993, -0.26785778999328613, -1.788874864578247, -0.25607597827911377, -0.81303471326828, 0.3009360134601593, -2.0421392917633057, -0.2778266668319702, -1.871259093284607, -2.231267213821411, -1.133038878440857, -0.7698404788970947, 1.1875954866409302, 0.11271138489246368, -0.8903007507324219, 1.318395972251892, -0.36207422614097595, -1.7500393390655518, 1.077006459236145, -2.0724892616271973 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
These files are two different dataset configurations since they don't share the same schema. IMO the streaming mode should fail in this case, as @albertvillanova said. There is one challenge though: inferring the schema from the first example is not robust enough in the general case - especially if some fields are nullable. I guess we can at least make sure that no new columns are added
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
67
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` These files are two different dataset configurations since they don't share the same schema. IMO the streaming mode should fail in this case, as @albertvillanova said. There is one challenge though: inferring the schema from the first example is not robust enough in the general case - especially if some fields are nullable. I guess we can at least make sure that no new columns are added
[ -1.227004885673523, -1.0852794647216797, -0.7723667621612549, 1.629054069519043, -0.21566928923130035, -1.0637288093566895, 0.09960368275642395, -0.9602761268615723, 1.6438612937927246, -0.7254359126091003, 0.2403055876493454, -1.6726396083831787, -0.056479353457689285, -0.698580265045166, -0.6945606470108032, -0.758754312992096, -0.3444737195968628, -0.8053491711616516, 1.108840823173523, 2.43983793258667, 1.162319302558899, -1.496578574180603, 2.723114013671875, 0.7511323094367981, -0.07917138934135437, -1.1088281869888306, 0.5571615099906921, -0.07901183515787125, -1.1896475553512573, -0.49645209312438965, -0.9663892388343811, -0.015866719186306, -0.5858063697814941, -0.43299853801727295, -0.005186541937291622, 0.5063146352767944, -0.27358609437942505, -0.4941193461418152, -0.529487133026123, -0.7310322523117065, 0.45061495900154114, -0.36543139815330505, 0.895089864730835, -0.2657310962677002, 1.7903902530670166, -0.41445454955101013, 0.3004448711872101, 0.704030454158783, 1.3906022310256958, 0.17945118248462677, -0.013678791001439095, 0.3247908651828766, 0.41725584864616394, -0.03708253800868988, 0.5705427527427673, 1.148604154586792, 0.7156004309654236, 0.3890897333621979, 0.8289496898651123, -2.3853650093078613, 1.1989625692367554, -1.1172949075698853, 0.36208203434944153, 1.360934853553772, -0.8601694107055664, 0.45517778396606445, -1.7632988691329956, 0.1023881733417511, 0.6332966089248657, -2.090527296066284, 0.3868902921676636, -1.1985971927642822, -0.3863927125930786, 0.9677069187164307, 0.39306068420410156, -1.2799385786056519, 0.15308308601379395, -0.2749573886394501, 1.0750874280929565, 0.4255114495754242, 1.060497760772705, -1.7352259159088135, 0.05918537825345993, -0.23405197262763977, 0.15315106511116028, -1.2630032300949097, -1.4906682968139648, 0.4198530316352844, 0.505794882774353, 0.6381641030311584, -0.15099167823791504, 1.0502705574035645, -1.174415946006775, 0.6659743785858154, -1.0539720058441162, -1.6454424858093262, -1.3781347274780273, -2.3077850341796875, -2.2064948081970215, 0.7011833786964417, -0.45280998945236206, -0.4969581067562103, 2.0343191623687744, -0.8828393220901489, -1.7623451948165894, 1.2930333614349365, 0.38134947419166565, 0.13558070361614227, 2.3937251567840576, 0.21611902117729187, -0.7504817843437195, 0.5182604789733887, -0.835823655128479, 0.7297964096069336, -0.3916042149066925, 1.4858005046844482, 0.41992220282554626, -0.9185513854026794, 1.6541006565093994, -0.46014243364334106, 0.6094973087310791, -0.6464329361915588, -0.46904343366622925, -0.7502641677856445, 0.35086143016815186, 1.8874984979629517, -0.2580241858959198, 1.4269901514053345, -0.46598413586616516, -1.529349446296692, -1.5348204374313354, 0.9805808663368225, 0.3851468861103058, -0.8488703966140747, 0.15002623200416565, -0.4005160331726074, 0.19157646596431732, -0.2331257164478302, 1.147113561630249, 1.2255457639694214, 0.6382538080215454, -0.3432261049747467, -0.8998708724975586, 0.14120754599571228, -0.15433675050735474, -0.6447973251342773, -1.7894783020019531, -0.27834296226501465, 0.1729014366865158, 0.6735867857933044, -1.2421038150787354, 1.6053552627563477, 0.918655276298523, 1.9221324920654297, 0.9392569661140442, -0.40026599168777466, 1.5256421566009521, 0.0840829536318779, 1.8680346012115479, -0.5848163962364197, 0.5809817314147949, -0.3682560324668884, -1.2330784797668457, 0.9101428985595703, -0.2783952057361603, -2.0062460899353027, -0.7669668793678284, -0.8551869988441467, -0.2691330313682556, -0.8062411546707153, 0.9141103029251099, -0.40390995144844055, -1.506478190422058, 0.22636909782886505, -0.7784413695335388, 0.2880247235298157, -1.126478672027588, 0.32452496886253357, 0.7517252564430237, -0.6024372577667236, 0.05104884132742882, -0.2762497067451477, -1.2965788841247559, -0.505014181137085, 0.5061466693878174, 1.8153210878372192, -0.8072688579559326, 0.734969973564148, 1.0960679054260254, -0.6402080655097961, 0.060798026621341705, 0.22995111346244812, -0.3017060458660126, 0.8200662136077881, -0.9948614239692688, -0.6788291931152344, 1.2413710355758667, -0.21305181086063385, -0.6733049750328064, 1.4063326120376587, 0.797552227973938, -1.0584073066711426, -0.298083633184433, -0.17931008338928223, -0.768014132976532, 0.024960417300462723, -1.6025984287261963, -0.11371277272701263, 0.39223039150238037, -1.5563714504241943, -0.4713975191116333, -0.3050116002559662, 1.301031470298767, -0.16434693336486816, 1.3804866075515747, -0.37723222374916077, -0.04180067032575607, -0.2266162484884262, -0.43969419598579407, 0.2756941020488739, -0.2642817497253418, -0.635559618473053, 0.12820115685462952, -0.8588770627975464, 0.4016815721988678, 1.3932677507400513, 0.35537201166152954, -0.014436283148825169, 0.5045816898345947, 1.1435539722442627, 0.5336428284645081, 0.1801007241010666, -0.9009754061698914, -1.5254104137420654, 1.9655472040176392, -1.64798104763031, 2.031846523284912, 0.6441336870193481, 0.01733456179499626, -1.7457754611968994, -1.8451632261276245, 1.3993817567825317, 1.1097370386123657, 2.2758209705352783, 0.5878106951713562, 0.3606261909008026, -0.9219383597373962, -0.6984016299247742, 0.2121005356311798, -0.9371659159660339, -0.7061751484870911, 0.16722430288791656, 2.4538159370422363, 1.8213939666748047, -0.41083216667175293, -0.235635444521904, -0.9051911234855652, 1.4921303987503052, -0.2089596539735794, 0.3170692026615143, 2.010894536972046, -0.12255310267210007, -1.0164382457733154, 1.3274160623550415, -2.502934694290161, 0.2381972223520279, 2.0386953353881836, 0.27383872866630554, 0.22760911285877228, -1.385145902633667, -0.6982680559158325, -0.11972133070230484, -0.447183221578598, -1.2553306818008423, 0.5512649416923523, -0.3061383366584778, -0.719657838344574, -1.471494436264038, 0.2689925730228424, -1.1132769584655762, -1.586761474609375, 0.22352354228496552, 1.909023642539978, 2.1724843978881836, -0.8866015076637268, 1.694796085357666, -0.23393383622169495, 0.27070799469947815, 1.2735639810562134, 1.2238175868988037, 2.937037944793701, 1.8652580976486206, -1.267767310142517, 0.5439103245735168, -0.14751486480236053, -0.5410837531089783, 1.1236004829406738, -1.2161000967025757, 1.2129403352737427, -0.16503898799419403, -1.102209448814392, -1.2295665740966797, 0.911553680896759, 0.5467560887336731, 0.0011076927185058594, -0.48105359077453613, 1.1097935438156128, 0.024848848581314087, 1.2808061838150024, 0.6791080236434937, -0.38470691442489624, 0.5181453227996826, -0.4297558069229126, -0.5648050308227539, 1.477557897567749, 0.032336995005607605, -1.3979796171188354, -2.1670920848846436, -0.1828267127275467, -0.8762190937995911, 0.014910697005689144, -0.5865280628204346, -0.9714560508728027, 1.5422271490097046, 0.275656133890152, -1.2048842906951904, -0.2415224313735962, -0.3213766813278198, -0.4484817385673523, 2.671421766281128, -1.355370044708252, -0.375558078289032, -0.9537904858589172, -0.6468649506568909, 1.6989176273345947, -1.0704447031021118, -0.2530764043331146, -1.117197871208191, -0.5678711533546448, -1.4026778936386108, -0.5483358502388, 0.014294915832579136, -0.8570370674133301, 0.883808970451355, 0.3903350532054901, -1.2064067125320435, -0.40866437554359436, -0.9020019173622131, 0.9303301572799683, -0.1877346634864807, 0.21017158031463623, 1.9277026653289795, 0.337860643863678, -0.3682937026023865, 0.855451762676239, 1.087839126586914, 0.667168915271759, -0.554252028465271, 0.24569068849086761, -0.5701590776443481, 0.3349466025829315, -1.432611107826233, 0.24287976324558258, -2.8941667079925537, 0.6294224262237549, 0.06586535274982452, -0.06510395556688309, -0.10412619262933731, -1.370827555656433, 1.119450330734253, 2.513265609741211, -1.2511411905288696, 0.5620619058609009, 0.37992820143699646, 1.3014938831329346, -1.745827317237854, 0.24459399282932281, -0.453152596950531, 2.1533656120300293, 0.11695652455091476, 1.2371379137039185, -0.4686151444911957, -2.464801549911499, 0.5702909231185913, -1.3881655931472778, -1.0549060106277466, 0.6272332072257996, -0.8840559124946594, 0.17226779460906982, -1.5923508405685425, -0.3066598176956177, -0.9530358910560608, -1.2792271375656128, 0.7334020733833313, 0.20604804158210754, 0.27058959007263184, -0.6269130706787109, 0.41935011744499207, -2.1480352878570557, -1.417153000831604, -0.19802099466323853, -0.8955469131469727, 0.550471305847168, -0.39422473311424255, 0.7413116693496704, -0.16292902827262878, -0.0319000668823719, 0.29852497577667236, 1.4117029905319214, 3.4642202854156494, 0.25759753584861755, 0.41047120094299316, -0.1688372790813446, -0.934523344039917, 1.483462929725647, 0.9440291523933411, -0.14928951859474182, -0.48691418766975403, -1.1124305725097656, 1.3503680229187012, 1.928416132926941, 0.92742919921875, 0.024878326803445816, -0.736010730266571, -0.7171092629432678, -0.008895893581211567, 0.21073034405708313, 0.5215780735015869, 0.7917506098747253, 0.013039394281804562, 0.00920859444886446, 1.3728994131088257, 1.0566737651824951, -0.42604508996009827, 0.279786616563797, -0.8647202253341675, -0.4363197088241577, 0.5390775203704834, 0.1988382786512375, -0.11986295878887177, 0.31180691719055176, -1.0103845596313477, -0.2397107481956482, -0.3028387129306793, -0.8480411767959595, -0.5970764756202698, -0.3924786150455475, -0.31922605633735657, 1.4847345352172852, 0.2841440737247467, -0.5780697464942932, -0.11039159446954727, -0.6997663378715515, -0.11481577903032303, -1.0840970277786255, 0.17979000508785248, -0.19065897166728973, -0.11301937699317932, -0.2859691083431244, 1.7545404434204102, -0.845577597618103, -2.0412161350250244, 0.07107599824666977, 0.4049379527568817, -0.1835998296737671, 0.25660935044288635, 1.7242237329483032, 0.4618104100227356, 1.3548755645751953, 1.2672889232635498, 1.0077303647994995, -0.5672593116760254, -1.3396528959274292, 0.6563956141471863, 1.099321722984314, -1.3942179679870605, 0.8365623354911804, -0.005311166401952505, -0.4735867977142334, 0.6322076916694641, 1.415611743927002, 0.5112588405609131, -2.019365072250366, 0.7533122897148132, -1.0856374502182007, 0.901652455329895, 0.7410679459571838, 0.6989502906799316, 0.22752602398395538, 0.8204341530799866, -1.2024524211883545, -1.1317274570465088, -0.788040816783905, -0.7908931374549866, 1.9721198081970215, -0.32519635558128357, 0.6057083606719971, -0.05060146376490593, -1.3450210094451904, -0.08490458130836487, 0.6703407764434814, 0.2786799967288971, -0.4898260235786438, 0.8577980995178223, -0.7054734230041504, -1.200018048286438, -1.2893489599227905, -0.40455588698387146, -0.9764571785926819, -1.027559757232666, 1.0356311798095703, 0.8188025951385498, 0.20844942331314087, 1.8377293348312378, 0.6833601593971252, 0.17845365405082703, -2.53592586517334, 0.8800168633460999, 0.31951549649238586, -0.07554035633802414, 0.7360985279083252, 0.37041404843330383, 1.1343902349472046, 0.04908524081110954, 0.5862115025520325, -2.3993165493011475, 2.2284791469573975, -0.168219655752182, 0.7914034724235535, -0.12884311378002167, -0.18174003064632416, 1.058898687362671, 0.4923965632915497, 0.5169256329536438, -0.9673402905464172, 0.6259577870368958, -0.5601820349693298, 1.2596362829208374, 0.9638866782188416, -0.8053603768348694, -0.020515181124210358, 1.2929884195327759, 0.34027278423309326, -0.6455815434455872, -0.9732347726821899, -0.8790909051895142, 0.9034645557403564, 1.6770515441894531, -0.10743167251348495, -0.03392832353711128, 0.8693508505821228, 0.6295840740203857, -1.28020441532135, 0.009742476977407932, -0.6116382479667664, -0.6731923222541809, 1.792358160018921, 2.0451600551605225, -0.3069629371166229, -0.14664936065673828, -0.6997125744819641, -1.2625186443328857, 0.7039557099342346, -0.0959833487868309, 0.07489445805549622, 0.6172909736633301, -0.6470250487327576, 0.991258442401886, 0.8008130788803101, 0.8416034579277039, 0.09651210904121399, 0.246363565325737, 0.4536217749118805, -0.4498913288116455, -1.123745083808899, -0.23664627969264984, -1.1903505325317383, -2.523216724395752, 0.37512412667274475, -0.0701150894165039, -1.2738053798675537, 0.047710731625556946, -0.9705970287322998, 1.1490026712417603, -0.5391626954078674, -1.2176194190979004, -1.3100123405456543, 0.20811216533184052, -0.01571396365761757, 0.8156929612159729, -1.6629732847213745, -0.07811849564313889, 1.2843600511550903, 0.9500812292098999, -0.7428398728370667, 1.0369335412979126, 0.23016364872455597, 1.1667464971542358, 0.7318952083587646, -0.2827013432979584, 0.5470685362815857, 0.019389502704143524, -1.2775306701660156, 0.5080487132072449, 1.1768124103546143, 0.1647196114063263, 1.4568556547164917, -0.48426708579063416, -0.10522031784057617, 0.3927123248577118, -0.6751747131347656, -0.5145983099937439, -0.377065509557724, 0.6121615767478943, 0.025481563061475754, -0.8063687086105347, 0.05571765452623367, 0.022915367037057877, -0.23614312708377838, 0.15248583257198334, -1.5649724006652832, -0.2177882194519043, -0.38991689682006836, -0.4683478772640228, -1.269566297531128, -0.09647702425718307, 1.3652411699295044, -0.6443482041358948, -0.34278514981269836, 0.5925787091255188, 0.2628609538078308, 0.4911108911037445, 0.6420025825500488, -0.6961235404014587, -0.31810328364372253, -0.18840886652469635, -0.39966678619384766, 0.2840321362018585, 1.4232773780822754, -0.09519720077514648, -0.9487635493278503, 0.7001009583473206, -0.34039926528930664, 0.02006983384490013, 1.7615934610366821, -0.04694422334432602, -0.8560037612915039, 0.24879278242588043, -0.8112521767616272, 1.950302004814148, 1.6434799432754517, 1.3560854196548462, -0.2849973440170288, -0.8454940319061279, 0.7363900542259216, -0.4284438490867615, -0.4488238990306854, 0.8288339376449585, 0.4396648406982422, -0.22394490242004395, -1.4481427669525146, 0.7232963442802429, 1.2014955282211304, -0.8526922464370728, -0.7684313654899597, 0.21971356868743896, -0.7320294976234436, 1.135591983795166, 0.6666511297225952, 0.36595064401626587, 0.3009219467639923, 1.7035516500473022, 0.8303931355476379, -0.4742288589477539, 0.5786715149879456, 0.6000494360923767, -0.24181704223155975, -2.169076919555664, -1.189908742904663, 0.2469203621149063, -0.5083799958229065, -1.6325068473815918, 1.3580578565597534, -1.0771737098693848, -0.9495386481285095, 0.5959102511405945, 0.06000242382287979, 1.2998305559158325, 0.430961549282074, 1.4601221084594727, 2.0037786960601807, 0.7402985692024231, 0.4683859944343567, 1.2136874198913574, -0.19101066887378693, -0.4986673593521118, 1.8248554468154907, -0.45575907826423645, 0.5656657218933105, 1.1786456108093262, -0.28932151198387146, -1.1364628076553345, -0.7257698774337769, -1.2776844501495361, -0.6233009696006775, 1.2147765159606934, 0.07041631639003754, -1.1296459436416626, 0.30772730708122253, 1.6235246658325195, 0.09423740208148956, -0.40853989124298096, 0.7040064930915833, 0.4073413908481598, -0.8969889879226685, -0.029412023723125458, -0.9153232574462891, 0.46929049491882324, -0.23578575253486633, -0.1927604228258133, 0.3612375557422638, 0.459917813539505, 1.377976417541504, 0.027194220572710037, 0.21187837421894073, 1.0285214185714722, -1.427314043045044, 1.5047286748886108, -0.8432528972625732, 0.38582873344421387, -2.410088062286377, 1.3232673406600952, -0.7424657940864563, 2.06467342376709, -2.661142349243164, 0.45329010486602783, -0.6279580593109131, -0.4891761243343353, 0.2806569039821625, -0.37530219554901123, -0.04567602649331093, -0.049733370542526245, -1.0936307907104492, 0.10456596314907074, -0.6011607050895691, 0.5201239585876465, 1.2119344472885132, 1.3113551139831543, -1.1004351377487183, -0.2685329020023346, -1.7616541385650635, -0.2613118290901184, -0.8238622546195984, 0.2930527329444885, -2.0377748012542725, -0.27909666299819946, -1.9071627855300903, -2.2285313606262207, -1.1569936275482178, -0.797152042388916, 1.1911005973815918, 0.1553434282541275, -0.8993048667907715, 1.3040627241134644, -0.3336995542049408, -1.741242527961731, 1.0570493936538696, -2.066312551498413 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
OK. So, if we make the streaming also fail, the dataset https://huggingface.co/datasets/huggingface/transformers-metadata will never be [viewable](https://github.com/huggingface/datasets-preview-backend/issues/144) (be it using streaming or fallback to downloading the files), right?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
27
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` OK. So, if we make the streaming also fail, the dataset https://huggingface.co/datasets/huggingface/transformers-metadata will never be [viewable](https://github.com/huggingface/datasets-preview-backend/issues/144) (be it using streaming or fallback to downloading the files), right?
[ -1.234296202659607, -1.09694504737854, -0.7637500762939453, 1.6463714838027954, -0.2102738320827484, -1.0758157968521118, 0.08143515139818192, -0.9192537665367126, 1.6033672094345093, -0.674479067325592, 0.2576480507850647, -1.7022216320037842, -0.06438890844583511, -0.6787887811660767, -0.6872260570526123, -0.7758779525756836, -0.327719122171402, -0.8011749982833862, 1.1086828708648682, 2.4642183780670166, 1.1912519931793213, -1.4773906469345093, 2.7411601543426514, 0.7578020691871643, -0.1021689847111702, -1.1111382246017456, 0.5640299916267395, -0.08734346926212311, -1.19148850440979, -0.49889320135116577, -0.95351642370224, -0.006545445416122675, -0.5732563734054565, -0.4440724849700928, 0.005420149303972721, 0.5186861157417297, -0.2595231235027313, -0.4657118618488312, -0.5385226011276245, -0.7408811450004578, 0.465568870306015, -0.3626227378845215, 0.8868415355682373, -0.25293344259262085, 1.7848353385925293, -0.4339233934879303, 0.2951149344444275, 0.656478762626648, 1.3828988075256348, 0.20322124660015106, 0.02918171137571335, 0.3669087588787079, 0.40856093168258667, -0.03580477088689804, 0.5900464653968811, 1.15711510181427, 0.693142294883728, 0.37842559814453125, 0.8153687119483948, -2.4073569774627686, 1.1854631900787354, -1.100051760673523, 0.35485315322875977, 1.3679916858673096, -0.8388606905937195, 0.4493905305862427, -1.7658036947250366, 0.1109120100736618, 0.6482409834861755, -2.1075005531311035, 0.37742114067077637, -1.2036181688308716, -0.3789760172367096, 0.9706431031227112, 0.3852696716785431, -1.2849303483963013, 0.17310431599617004, -0.30626997351646423, 1.1017353534698486, 0.4008995294570923, 1.0562264919281006, -1.7266747951507568, 0.05783836171030998, -0.23453354835510254, 0.15759770572185516, -1.256824016571045, -1.5105894804000854, 0.42166465520858765, 0.5231052041053772, 0.6632431149482727, -0.1424999237060547, 1.0445319414138794, -1.144134521484375, 0.6636157631874084, -1.0639872550964355, -1.6657105684280396, -1.3861730098724365, -2.309349536895752, -2.2316741943359375, 0.7285110354423523, -0.4558197259902954, -0.5009207725524902, 1.9855433702468872, -0.8875629901885986, -1.789141058921814, 1.2593586444854736, 0.4238452613353729, 0.10661201179027557, 2.407355785369873, 0.20750421285629272, -0.7764245271682739, 0.530139148235321, -0.8257467150688171, 0.737209677696228, -0.3547767102718353, 1.4914350509643555, 0.4513278901576996, -0.930254340171814, 1.6605932712554932, -0.4660700261592865, 0.5963220000267029, -0.6730889678001404, -0.4605885446071625, -0.7469605207443237, 0.32998350262641907, 1.877719521522522, -0.2867076098918915, 1.4389420747756958, -0.455367773771286, -1.4944044351577759, -1.5183188915252686, 0.9841052293777466, 0.3662399649620056, -0.8753315806388855, 0.13623245060443878, -0.43087396025657654, 0.20078280568122864, -0.21279095113277435, 1.1415830850601196, 1.211434245109558, 0.6025604605674744, -0.3443908393383026, -0.8931605815887451, 0.14586696028709412, -0.15723547339439392, -0.624732494354248, -1.7970452308654785, -0.2678888142108917, 0.19660024344921112, 0.6728119254112244, -1.2441812753677368, 1.612465262413025, 0.8922896981239319, 1.9419840574264526, 0.9581100344657898, -0.4250231981277466, 1.5302634239196777, 0.05044174566864967, 1.8967713117599487, -0.6178531050682068, 0.579734206199646, -0.3843870162963867, -1.2395174503326416, 0.9151352643966675, -0.2965256869792938, -2.0199365615844727, -0.7571471929550171, -0.8484697341918945, -0.25851693749427795, -0.8391544222831726, 0.9136918187141418, -0.43428927659988403, -1.520644187927246, 0.21515747904777527, -0.7925496101379395, 0.2874631881713867, -1.1491327285766602, 0.28538504242897034, 0.7422237396240234, -0.5951111316680908, 0.03539985045790672, -0.2817322015762329, -1.3086029291152954, -0.5122659206390381, 0.5259416699409485, 1.8296679258346558, -0.7785097360610962, 0.7501974701881409, 1.1044764518737793, -0.6614042520523071, 0.06887330114841461, 0.24350795149803162, -0.2977873980998993, 0.8451343178749084, -0.9778714179992676, -0.6861999034881592, 1.2361066341400146, -0.19153067469596863, -0.7173020243644714, 1.42904794216156, 0.8292887806892395, -1.0456907749176025, -0.31036555767059326, -0.15925435721874237, -0.7583608031272888, 0.04351688548922539, -1.5888354778289795, -0.10967396944761276, 0.41326040029525757, -1.5527673959732056, -0.4737407863140106, -0.2732102572917938, 1.2963794469833374, -0.1612846553325653, 1.3906683921813965, -0.34837692975997925, -0.05016060173511505, -0.21938158571720123, -0.4332824945449829, 0.2588728964328766, -0.28119543194770813, -0.6498779058456421, 0.1395946443080902, -0.8749136924743652, 0.4307157099246979, 1.3922420740127563, 0.35212957859039307, 0.010382824577391148, 0.5123545527458191, 1.1697701215744019, 0.521443784236908, 0.15338149666786194, -0.9302954077720642, -1.5316935777664185, 1.9673975706100464, -1.6374891996383667, 2.0252389907836914, 0.6234627366065979, -0.020154567435383797, -1.737324595451355, -1.838118076324463, 1.3807121515274048, 1.1096404790878296, 2.284719228744507, 0.619233250617981, 0.37615910172462463, -0.916461706161499, -0.6850712299346924, 0.19825199246406555, -0.9200989007949829, -0.7230150103569031, 0.1902296394109726, 2.4664065837860107, 1.8604471683502197, -0.42459848523139954, -0.2542731761932373, -0.92987060546875, 1.4620883464813232, -0.2463429868221283, 0.314059317111969, 2.000913143157959, -0.12592723965644836, -0.9962537288665771, 1.3503268957138062, -2.4911718368530273, 0.25412532687187195, 2.0500380992889404, 0.2807863652706146, 0.20252543687820435, -1.3853588104248047, -0.7049293518066406, -0.14330099523067474, -0.46773022413253784, -1.2552990913391113, 0.5381255149841309, -0.3118097186088562, -0.7542428970336914, -1.439569354057312, 0.2083207368850708, -1.104349136352539, -1.6110955476760864, 0.24700486660003662, 1.8952115774154663, 2.1840689182281494, -0.8773524761199951, 1.6515940427780151, -0.22005660831928253, 0.285978764295578, 1.3081532716751099, 1.2568533420562744, 2.9506936073303223, 1.8686503171920776, -1.2683732509613037, 0.5817739963531494, -0.1794469952583313, -0.5385153889656067, 1.180159568786621, -1.221440315246582, 1.1798710823059082, -0.19348454475402832, -1.1480227708816528, -1.2588030099868774, 0.9433569312095642, 0.550578236579895, 0.0058425916358828545, -0.5185498595237732, 1.0860531330108643, 0.023255225270986557, 1.242727279663086, 0.6910552382469177, -0.3828091025352478, 0.483782023191452, -0.3891046345233917, -0.5625607371330261, 1.4930908679962158, 0.016589097678661346, -1.4269263744354248, -2.16321063041687, -0.19976702332496643, -0.8878802061080933, -0.023765046149492264, -0.6064484119415283, -0.9989765286445618, 1.5456793308258057, 0.3052516281604767, -1.2025272846221924, -0.21667437255382538, -0.2973642945289612, -0.43239882588386536, 2.7033307552337646, -1.3399574756622314, -0.3605756461620331, -0.9796629548072815, -0.6011908650398254, 1.710837721824646, -1.0413163900375366, -0.22958914935588837, -1.1004992723464966, -0.6082421541213989, -1.3958438634872437, -0.4961043894290924, 0.0003027878701686859, -0.8731138706207275, 0.8580641746520996, 0.32872429490089417, -1.2152702808380127, -0.3968581259250641, -0.9052390456199646, 0.9599718451499939, -0.19385600090026855, 0.2004787176847458, 1.9591399431228638, 0.3682265877723694, -0.35728615522384644, 0.8301627039909363, 1.0994892120361328, 0.6659389138221741, -0.5615971088409424, 0.2402428388595581, -0.5656874775886536, 0.34532904624938965, -1.440779685974121, 0.22129549086093903, -2.87717866897583, 0.6246436834335327, 0.08648739755153656, -0.055909112095832825, -0.09917358309030533, -1.3428503274917603, 1.1224822998046875, 2.498775005340576, -1.276354193687439, 0.5544825196266174, 0.3841385543346405, 1.2828865051269531, -1.7349636554718018, 0.2231980413198471, -0.4645026624202728, 2.1351401805877686, 0.08641359955072403, 1.2187950611114502, -0.4819547235965729, -2.3962345123291016, 0.5604755282402039, -1.3812425136566162, -1.0341458320617676, 0.6357064247131348, -0.9038779139518738, 0.21755020320415497, -1.6000734567642212, -0.28423431515693665, -0.9792550206184387, -1.2795850038528442, 0.7251116037368774, 0.16834968328475952, 0.26125067472457886, -0.5974536538124084, 0.4439149796962738, -2.1416752338409424, -1.4397072792053223, -0.19604896008968353, -0.8953830599784851, 0.5694308876991272, -0.40664979815483093, 0.7231664657592773, -0.1330987960100174, -0.04692889750003815, 0.2848254144191742, 1.4234486818313599, 3.445162296295166, 0.2720821797847748, 0.38744720816612244, -0.12605953216552734, -0.9614748358726501, 1.4750871658325195, 0.9585158824920654, -0.1606251299381256, -0.4689352512359619, -1.078293800354004, 1.3936424255371094, 1.9328460693359375, 1.008235216140747, 0.04872816801071167, -0.7752910256385803, -0.7302623391151428, 0.043336741626262665, 0.2386641502380371, 0.5096874833106995, 0.7840211987495422, 0.002544660121202469, 0.036764953285455704, 1.3526496887207031, 1.0451009273529053, -0.3933805823326111, 0.3134757876396179, -0.880137026309967, -0.4217262268066406, 0.5443630218505859, 0.1715603768825531, -0.09002441167831421, 0.3422585427761078, -1.0484944581985474, -0.2612179219722748, -0.29894527792930603, -0.8481433987617493, -0.6305972337722778, -0.4020124077796936, -0.31890925765037537, 1.4620375633239746, 0.2568764388561249, -0.5700950026512146, -0.10791889578104019, -0.739719808101654, -0.14021943509578705, -1.0803699493408203, 0.18518047034740448, -0.20456020534038544, -0.1075214073061943, -0.3012264668941498, 1.7091879844665527, -0.8654404282569885, -2.068783760070801, 0.062147896736860275, 0.4407869875431061, -0.2241874784231186, 0.2803322672843933, 1.7267805337905884, 0.47017696499824524, 1.3126378059387207, 1.2709906101226807, 0.9951650500297546, -0.5314624309539795, -1.316208839416504, 0.6548203825950623, 1.120267629623413, -1.3819433450698853, 0.8906155824661255, -0.035909730941057205, -0.4955620765686035, 0.6342970728874207, 1.4374667406082153, 0.46319958567619324, -1.9969795942306519, 0.7376335859298706, -1.0711534023284912, 0.9200364351272583, 0.723839282989502, 0.7334797382354736, 0.23123516142368317, 0.8157960176467896, -1.2541842460632324, -1.1217634677886963, -0.7787971496582031, -0.7627347707748413, 1.9477602243423462, -0.2793561518192291, 0.6077678799629211, -0.06297033280134201, -1.3082419633865356, -0.08478168398141861, 0.697188138961792, 0.29577121138572693, -0.5248937606811523, 0.8743671774864197, -0.6766989827156067, -1.1607452630996704, -1.2352043390274048, -0.42218127846717834, -0.9556649923324585, -1.0085231065750122, 1.017486572265625, 0.7976629137992859, 0.24769636988639832, 1.8441095352172852, 0.6627507209777832, 0.18455344438552856, -2.545508623123169, 0.885876476764679, 0.31481418013572693, -0.08723796159029007, 0.7315348982810974, 0.33776214718818665, 1.1380972862243652, 0.013819855637848377, 0.6048998236656189, -2.345078229904175, 2.189870595932007, -0.1619088351726532, 0.7647895216941833, -0.11551521718502045, -0.12843340635299683, 1.0733585357666016, 0.46557870507240295, 0.5243135690689087, -0.9780357480049133, 0.6401375532150269, -0.5515432357788086, 1.2461823225021362, 0.9301198720932007, -0.8357837200164795, -0.0218861922621727, 1.3055453300476074, 0.3420920968055725, -0.5843232274055481, -1.0033388137817383, -0.8315675258636475, 0.9400870203971863, 1.6769490242004395, -0.09001029282808304, -0.05170952528715134, 0.902248740196228, 0.6134105324745178, -1.28154718875885, 0.006983625702559948, -0.5963088870048523, -0.623369038105011, 1.819541335105896, 2.0413944721221924, -0.32333236932754517, -0.14542745053768158, -0.6787428259849548, -1.264160394668579, 0.7040653228759766, -0.11678456515073776, 0.08612881600856781, 0.6567937731742859, -0.665077805519104, 0.9954172968864441, 0.7542597055435181, 0.8691216707229614, 0.05378739908337593, 0.24298718571662903, 0.42716076970100403, -0.45515260100364685, -1.160388708114624, -0.2906248867511749, -1.1912997961044312, -2.531724691390991, 0.34263181686401367, -0.09230877459049225, -1.2680531740188599, 0.09059533476829529, -1.0078266859054565, 1.1266717910766602, -0.5682355165481567, -1.2074191570281982, -1.2922155857086182, 0.2419733703136444, -0.015076665207743645, 0.8160027861595154, -1.6833292245864868, -0.04859737679362297, 1.2648802995681763, 0.9312129020690918, -0.7086373567581177, 1.009626865386963, 0.25669175386428833, 1.15050208568573, 0.7440483570098877, -0.2771431505680084, 0.5475648641586304, 0.029773499816656113, -1.292482614517212, 0.5166692733764648, 1.1881239414215088, 0.16468952596187592, 1.4398268461227417, -0.45777153968811035, -0.09857229143381119, 0.4003795087337494, -0.6967902779579163, -0.5128051042556763, -0.39230507612228394, 0.5897075533866882, 0.05943145230412483, -0.8490639328956604, 0.03786665201187134, 0.0368756465613842, -0.23145195841789246, 0.14217980206012726, -1.5446170568466187, -0.21197634935379028, -0.40022924542427063, -0.5036774277687073, -1.2725038528442383, -0.0923105850815773, 1.3283945322036743, -0.6912451386451721, -0.33962297439575195, 0.5912864804267883, 0.2272731065750122, 0.4835449457168579, 0.6259989738464355, -0.6817067265510559, -0.30811142921447754, -0.18674413859844208, -0.3794681429862976, 0.2868625819683075, 1.3890230655670166, -0.09183494001626968, -0.9575358033180237, 0.7284408211708069, -0.3525409996509552, 0.044602736830711365, 1.7695786952972412, -0.060603272169828415, -0.8193148970603943, 0.2377481907606125, -0.7944377660751343, 1.9390101432800293, 1.624732255935669, 1.3508719205856323, -0.32212406396865845, -0.8228417038917542, 0.6926011443138123, -0.40006887912750244, -0.46662119030952454, 0.812306821346283, 0.41572463512420654, -0.23352943360805511, -1.4532476663589478, 0.7169317603111267, 1.2484591007232666, -0.8528940677642822, -0.7706525921821594, 0.23967266082763672, -0.764332115650177, 1.15461003780365, 0.6502496004104614, 0.3431978225708008, 0.300531804561615, 1.654388666152954, 0.8201073408126831, -0.4542347192764282, 0.5317592024803162, 0.6051806807518005, -0.24774503707885742, -2.1568973064422607, -1.1640206575393677, 0.22796963155269623, -0.4766511619091034, -1.6296358108520508, 1.3025685548782349, -1.0922259092330933, -0.9360589981079102, 0.6134005784988403, 0.11061481386423111, 1.3181716203689575, 0.41377854347229004, 1.477939248085022, 2.04071307182312, 0.7203118801116943, 0.4537893235683441, 1.1915873289108276, -0.15238189697265625, -0.47392240166664124, 1.822217583656311, -0.4280623495578766, 0.5985801219940186, 1.1455146074295044, -0.305433988571167, -1.1487579345703125, -0.7280188202857971, -1.3283666372299194, -0.6048797965049744, 1.2275278568267822, 0.07289070636034012, -1.1044169664382935, 0.3030986785888672, 1.5798656940460205, 0.08232714980840683, -0.3746775984764099, 0.7404761910438538, 0.3999514579772949, -0.9004670977592468, -0.00957321748137474, -0.8860052824020386, 0.47880813479423523, -0.18710000813007355, -0.178973987698555, 0.33526888489723206, 0.47919097542762756, 1.3643362522125244, 0.046756498515605927, 0.18029659986495972, 1.032119631767273, -1.3981367349624634, 1.5276323556900024, -0.8289021849632263, 0.38190215826034546, -2.415877342224121, 1.3291221857070923, -0.7737247943878174, 2.0075736045837402, -2.6557726860046387, 0.47279176115989685, -0.6090763807296753, -0.5051901936531067, 0.25056037306785583, -0.3900411128997803, -0.039754483848810196, -0.049530528485774994, -1.0728979110717773, 0.1105470284819603, -0.6164558529853821, 0.4873334765434265, 1.243091344833374, 1.3436604738235474, -1.1240416765213013, -0.2631659209728241, -1.818042278289795, -0.2442549169063568, -0.8169277906417847, 0.3070032000541687, -2.0357818603515625, -0.2661390006542206, -1.877955436706543, -2.253325939178467, -1.1772414445877075, -0.7933292984962463, 1.1797460317611694, 0.15659722685813904, -0.8969343304634094, 1.3037770986557007, -0.368180513381958, -1.7559665441513062, 1.0394065380096436, -2.090620756149292 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
Yes, until we have a way for the user to specify explicitly that those two files are different configurations. We can maybe have some rule to detect this automatically, maybe checking the first line of each file ? That would mean that for dataset of 10,000+ files we would have to verify every single one of them just to know if there is one ore more configurations, so I'm not sure if this is a good idea
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
77
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` Yes, until we have a way for the user to specify explicitly that those two files are different configurations. We can maybe have some rule to detect this automatically, maybe checking the first line of each file ? That would mean that for dataset of 10,000+ files we would have to verify every single one of them just to know if there is one ore more configurations, so I'm not sure if this is a good idea
[ -1.2283861637115479, -1.093101978302002, -0.7814071178436279, 1.6340899467468262, -0.20562045276165009, -1.0731507539749146, 0.09585843980312347, -0.9584986567497253, 1.6255544424057007, -0.7265067100524902, 0.2716482877731323, -1.6758841276168823, -0.02628025785088539, -0.6963872909545898, -0.6789809465408325, -0.7865737080574036, -0.33293142914772034, -0.8205084800720215, 1.1227720975875854, 2.4648072719573975, 1.1455113887786865, -1.4986865520477295, 2.684661626815796, 0.7853552103042603, -0.11160092055797577, -1.0972145795822144, 0.5538635849952698, -0.06735458970069885, -1.1414079666137695, -0.5056104063987732, -0.9428008198738098, -0.05552259832620621, -0.5953291058540344, -0.4653085172176361, -0.024612363427877426, 0.5223595499992371, -0.2879546880722046, -0.4683631658554077, -0.5368852615356445, -0.7095884084701538, 0.4735960364341736, -0.3817727267742157, 0.9096492528915405, -0.24584878981113434, 1.8010700941085815, -0.4201892912387848, 0.29256075620651245, 0.6675000190734863, 1.3787347078323364, 0.18418839573860168, 0.038340017199516296, 0.31076571345329285, 0.40898022055625916, -0.07865908741950989, 0.5697875618934631, 1.1402790546417236, 0.7137368321418762, 0.4188072681427002, 0.8517811894416809, -2.3894073963165283, 1.2021267414093018, -1.1384507417678833, 0.3657558858394623, 1.3493378162384033, -0.8265552520751953, 0.49267083406448364, -1.7356131076812744, 0.11194689571857452, 0.609250009059906, -2.09152889251709, 0.40187326073646545, -1.1678428649902344, -0.37651968002319336, 0.9609016180038452, 0.3879848122596741, -1.2901908159255981, 0.18856202065944672, -0.30936604738235474, 1.078461766242981, 0.39146822690963745, 1.0620006322860718, -1.739384651184082, 0.05913355201482773, -0.262523353099823, 0.16266897320747375, -1.263830542564392, -1.4680798053741455, 0.4138684868812561, 0.49640053510665894, 0.645612895488739, -0.14558255672454834, 1.0360307693481445, -1.1712806224822998, 0.651543140411377, -1.0817748308181763, -1.618021011352539, -1.3959791660308838, -2.304283857345581, -2.250283718109131, 0.6965578198432922, -0.4450683295726776, -0.525946855545044, 2.000696897506714, -0.8819491267204285, -1.7573826313018799, 1.2921013832092285, 0.4033786356449127, 0.07874972373247147, 2.4201931953430176, 0.2174147665500641, -0.7390191555023193, 0.515418291091919, -0.8557575345039368, 0.7606226205825806, -0.3768111765384674, 1.4877090454101562, 0.4175090789794922, -0.9253638386726379, 1.6456879377365112, -0.4534599184989929, 0.6127612590789795, -0.6523319482803345, -0.4812942445278168, -0.7629077434539795, 0.34485697746276855, 1.858496069908142, -0.24467860162258148, 1.428487777709961, -0.4494934380054474, -1.4989055395126343, -1.5347583293914795, 1.0053393840789795, 0.35980209708213806, -0.8753613829612732, 0.1569126844406128, -0.40888115763664246, 0.1974785178899765, -0.21931828558444977, 1.1282873153686523, 1.2068878412246704, 0.6177389621734619, -0.3462387025356293, -0.9043376445770264, 0.16082850098609924, -0.1878887563943863, -0.6353991627693176, -1.8114783763885498, -0.2858676612377167, 0.15256275236606598, 0.663520097732544, -1.2190085649490356, 1.6123087406158447, 0.9006961584091187, 1.9146320819854736, 0.9574427008628845, -0.4348926246166229, 1.5169012546539307, 0.05445060133934021, 1.8679834604263306, -0.6159437298774719, 0.5947673320770264, -0.3872138559818268, -1.2464869022369385, 0.8913518190383911, -0.28613144159317017, -2.0284781455993652, -0.7749475240707397, -0.8286977410316467, -0.29028019309043884, -0.8437232375144958, 0.8980636596679688, -0.41535335779190063, -1.5119187831878662, 0.2251034677028656, -0.756271243095398, 0.27328160405158997, -1.1376252174377441, 0.3343378007411957, 0.7350782752037048, -0.6072872877120972, 0.0669158473610878, -0.28087446093559265, -1.278728723526001, -0.49008968472480774, 0.48140034079551697, 1.8157320022583008, -0.8017619252204895, 0.7126510739326477, 1.0649827718734741, -0.6401895880699158, 0.06396237760782242, 0.26343369483947754, -0.26801958680152893, 0.8247560262680054, -0.9735037088394165, -0.6990434527397156, 1.2653931379318237, -0.1896304488182068, -0.6886542439460754, 1.398563265800476, 0.8066837787628174, -1.0346275568008423, -0.2745450437068939, -0.15805473923683167, -0.7782903909683228, 0.05047602951526642, -1.5861440896987915, -0.09909196197986603, 0.4184723496437073, -1.5391905307769775, -0.46447017788887024, -0.29146233201026917, 1.2585666179656982, -0.1575244814157486, 1.3733699321746826, -0.3799281120300293, -0.06764362752437592, -0.21187245845794678, -0.4356530010700226, 0.2803134024143219, -0.2729968726634979, -0.6335441470146179, 0.1257646381855011, -0.8616558313369751, 0.43835243582725525, 1.3962979316711426, 0.34473246335983276, 0.0073339007794857025, 0.49604475498199463, 1.1680959463119507, 0.5230756998062134, 0.2027079463005066, -0.9213144183158875, -1.492273211479187, 1.9605674743652344, -1.6284456253051758, 2.057813882827759, 0.6713178157806396, 0.016833996400237083, -1.7304250001907349, -1.8132113218307495, 1.381293535232544, 1.1223158836364746, 2.2646877765655518, 0.6111243963241577, 0.3342024087905884, -0.9480501413345337, -0.6783894300460815, 0.20697928965091705, -0.9483166337013245, -0.7003999948501587, 0.17038178443908691, 2.4824471473693848, 1.871492624282837, -0.4189676344394684, -0.24265994131565094, -0.9288513660430908, 1.4993607997894287, -0.2159605771303177, 0.3017570674419403, 2.0219171047210693, -0.15184374153614044, -0.9994360208511353, 1.3534817695617676, -2.4984476566314697, 0.21863360702991486, 2.0094711780548096, 0.2942739427089691, 0.21126775443553925, -1.3905490636825562, -0.727452278137207, -0.11477090418338776, -0.42751896381378174, -1.2667914628982544, 0.5358618497848511, -0.29901230335235596, -0.6952757835388184, -1.4928302764892578, 0.2564026415348053, -1.1263201236724854, -1.5649127960205078, 0.2612432837486267, 1.8936558961868286, 2.1914217472076416, -0.8686782121658325, 1.6723873615264893, -0.22301797568798065, 0.2641649544239044, 1.3117263317108154, 1.219091773033142, 2.9440481662750244, 1.84744393825531, -1.2637181282043457, 0.5033153891563416, -0.17169401049613953, -0.5417315363883972, 1.1330535411834717, -1.2005337476730347, 1.2026267051696777, -0.16008199751377106, -1.084635615348816, -1.2608590126037598, 0.9264242053031921, 0.5353544354438782, 0.017369622364640236, -0.4953681230545044, 1.0898019075393677, 0.011330446228384972, 1.266918420791626, 0.6958349347114563, -0.3560854494571686, 0.5052558779716492, -0.39965730905532837, -0.5393813252449036, 1.5017123222351074, 0.06552615761756897, -1.3824739456176758, -2.178675889968872, -0.19985729455947876, -0.8465030193328857, 0.015770751982927322, -0.578633725643158, -0.9879491329193115, 1.5529907941818237, 0.2828182876110077, -1.232780933380127, -0.20333614945411682, -0.2858274281024933, -0.4631637632846832, 2.7128102779388428, -1.3582345247268677, -0.38125288486480713, -0.9755765199661255, -0.6234606504440308, 1.6788569688796997, -1.0586024522781372, -0.2118484079837799, -1.1215451955795288, -0.5812654495239258, -1.3821818828582764, -0.5009205341339111, 0.00222088024020195, -0.8759304285049438, 0.9060041904449463, 0.3727266788482666, -1.1986206769943237, -0.44326573610305786, -0.9179589152336121, 0.9360260367393494, -0.18166601657867432, 0.2406574785709381, 1.925451397895813, 0.36957359313964844, -0.3480747640132904, 0.8476566672325134, 1.0882707834243774, 0.6743395328521729, -0.6066455245018005, 0.23184791207313538, -0.5543345808982849, 0.3026082217693329, -1.415494441986084, 0.2567319869995117, -2.8700289726257324, 0.6217515468597412, 0.05105140805244446, -0.0942920446395874, -0.06830969452857971, -1.3712432384490967, 1.1136757135391235, 2.5142955780029297, -1.2338910102844238, 0.5430116653442383, 0.35612329840660095, 1.284471869468689, -1.7363613843917847, 0.25385838747024536, -0.4331653118133545, 2.1444380283355713, 0.10604426264762878, 1.2226814031600952, -0.5179200172424316, -2.4716827869415283, 0.5364311337471008, -1.3913686275482178, -1.0834109783172607, 0.6455540060997009, -0.8927773237228394, 0.1622815728187561, -1.596121072769165, -0.2927555441856384, -0.9720919132232666, -1.3000322580337524, 0.7414847016334534, 0.21943750977516174, 0.2643778324127197, -0.6066336631774902, 0.43568503856658936, -2.1488516330718994, -1.4509294033050537, -0.19367654621601105, -0.8674142360687256, 0.541843593120575, -0.3909238874912262, 0.7405006885528564, -0.1618637889623642, -0.04317266494035721, 0.2766691744327545, 1.434582233428955, 3.451528787612915, 0.26512986421585083, 0.4343070685863495, -0.1710585504770279, -0.9201033711433411, 1.467455506324768, 0.9423801302909851, -0.1362394243478775, -0.5008769035339355, -1.1162612438201904, 1.3597567081451416, 1.9409492015838623, 0.9724888801574707, 0.00028637610375881195, -0.7346549034118652, -0.6875203847885132, -0.006116348318755627, 0.23941507935523987, 0.5243527293205261, 0.7740364670753479, 0.008578626438975334, 0.02260631136596203, 1.3581039905548096, 1.0775353908538818, -0.4553857147693634, 0.2780367434024811, -0.831353485584259, -0.44587939977645874, 0.5477162003517151, 0.1953085958957672, -0.09547869116067886, 0.33565986156463623, -1.0265029668807983, -0.23841246962547302, -0.35416361689567566, -0.8718233108520508, -0.6325762867927551, -0.42411378026008606, -0.340507447719574, 1.490386962890625, 0.2882709801197052, -0.5848403573036194, -0.11308281123638153, -0.7303566932678223, -0.1391746997833252, -1.0900509357452393, 0.16361799836158752, -0.20060378313064575, -0.13533349335193634, -0.27888670563697815, 1.7705498933792114, -0.8536954522132874, -2.0582847595214844, 0.08143092691898346, 0.4146753251552582, -0.20035240054130554, 0.26966041326522827, 1.7043142318725586, 0.4386800527572632, 1.3304883241653442, 1.2545911073684692, 1.0003553628921509, -0.5670390725135803, -1.3374602794647217, 0.6348638534545898, 1.1311125755310059, -1.369726300239563, 0.8573929667472839, -0.005747296381741762, -0.5024989247322083, 0.6487177014350891, 1.4280381202697754, 0.5037500262260437, -2.015456199645996, 0.7342519164085388, -1.0802887678146362, 0.9180130958557129, 0.7674612998962402, 0.7045739889144897, 0.23695042729377747, 0.7844037413597107, -1.246335506439209, -1.1217643022537231, -0.7885184288024902, -0.7526358962059021, 2.0061628818511963, -0.3130173683166504, 0.643208384513855, -0.04700352996587753, -1.3450148105621338, -0.05987374484539032, 0.7102236151695251, 0.3008372485637665, -0.5015706419944763, 0.8635057210922241, -0.6979625225067139, -1.173183560371399, -1.2880003452301025, -0.4085444509983063, -0.9852911233901978, -1.0251727104187012, 1.0582994222640991, 0.8159692287445068, 0.1994217187166214, 1.838636875152588, 0.7026793956756592, 0.19070583581924438, -2.55187726020813, 0.8820688128471375, 0.29748621582984924, -0.08633491396903992, 0.6990439891815186, 0.3733626902103424, 1.0909738540649414, 0.0711740180850029, 0.591691255569458, -2.392167329788208, 2.248443365097046, -0.16805315017700195, 0.7663997411727905, -0.16152051091194153, -0.14784175157546997, 1.092790961265564, 0.47947385907173157, 0.5230752825737, -0.9625013470649719, 0.6092685461044312, -0.5345882177352905, 1.2679096460342407, 0.9723127484321594, -0.8106508255004883, -0.01808355376124382, 1.3102388381958008, 0.3462976813316345, -0.6131857633590698, -0.9792997241020203, -0.8851543664932251, 0.9102746248245239, 1.7134623527526855, -0.10907113552093506, -0.07930029928684235, 0.8940504789352417, 0.6342540383338928, -1.2862942218780518, 0.027735384181141853, -0.6049714684486389, -0.6713536977767944, 1.7871849536895752, 2.0211424827575684, -0.33154311776161194, -0.13774865865707397, -0.6768848896026611, -1.277744174003601, 0.7322958111763, -0.07232800871133804, 0.10667859017848969, 0.6185329556465149, -0.6516215801239014, 0.9701148271560669, 0.8082722425460815, 0.8415851593017578, 0.1106845960021019, 0.2394198328256607, 0.44660013914108276, -0.4821494221687317, -1.1385563611984253, -0.2647272050380707, -1.2087470293045044, -2.5253043174743652, 0.36285531520843506, -0.05765029042959213, -1.2852352857589722, 0.053867705166339874, -0.9779895544052124, 1.1229277849197388, -0.5501977801322937, -1.165347933769226, -1.332858681678772, 0.22299127280712128, 0.008710222318768501, 0.8182591199874878, -1.6799273490905762, -0.0367397777736187, 1.2393773794174194, 0.9428000450134277, -0.7185787558555603, 1.0294166803359985, 0.2188478708267212, 1.1444675922393799, 0.7475303411483765, -0.2983367145061493, 0.5331094264984131, 0.010209141299128532, -1.3056910037994385, 0.4944535493850708, 1.1642485857009888, 0.16064350306987762, 1.448356032371521, -0.4758583605289459, -0.11429772526025772, 0.3803332448005676, -0.6849462985992432, -0.4826681911945343, -0.3912821412086487, 0.5816910862922668, 0.0875738188624382, -0.8037073612213135, 0.04679681360721588, 0.03681249916553497, -0.24161650240421295, 0.13512378931045532, -1.5560731887817383, -0.19492791593074799, -0.43387123942375183, -0.49441254138946533, -1.2666473388671875, -0.10233137011528015, 1.373760461807251, -0.6159259676933289, -0.32611292600631714, 0.599628210067749, 0.28215309977531433, 0.46703293919563293, 0.6344202756881714, -0.6865677237510681, -0.33206093311309814, -0.17461425065994263, -0.35253939032554626, 0.302526593208313, 1.4127609729766846, -0.12892784178256989, -0.9640651941299438, 0.7220516204833984, -0.3131423890590668, 0.04447995871305466, 1.7887952327728271, -0.04659140110015869, -0.8323751091957092, 0.2541477382183075, -0.8304311037063599, 1.948634386062622, 1.6342750787734985, 1.3510948419570923, -0.2934151887893677, -0.8408470749855042, 0.7656987905502319, -0.4187138080596924, -0.453156054019928, 0.8270569443702698, 0.39658844470977783, -0.23310166597366333, -1.463779330253601, 0.7091833353042603, 1.2340967655181885, -0.8357354402542114, -0.7988783121109009, 0.23288093507289886, -0.7529177069664001, 1.1400097608566284, 0.624872624874115, 0.37326711416244507, 0.2890317738056183, 1.7036442756652832, 0.8143289685249329, -0.4628021717071533, 0.5785253047943115, 0.5887763500213623, -0.26890599727630615, -2.1499314308166504, -1.2089738845825195, 0.21863262355327606, -0.5109276175498962, -1.656461238861084, 1.3467397689819336, -1.098490595817566, -0.9423409104347229, 0.6270919442176819, 0.06018601357936859, 1.3176709413528442, 0.4345497786998749, 1.429356336593628, 2.0179097652435303, 0.7112845778465271, 0.4827460050582886, 1.19718599319458, -0.1914004236459732, -0.5157363414764404, 1.8224488496780396, -0.41706591844558716, 0.5588891506195068, 1.192999243736267, -0.25986963510513306, -1.1464293003082275, -0.7054125070571899, -1.2800467014312744, -0.624396800994873, 1.2209433317184448, 0.0643647164106369, -1.114243984222412, 0.3056768774986267, 1.6241027116775513, 0.0615740641951561, -0.4184907078742981, 0.7011698484420776, 0.41430190205574036, -0.8940034508705139, -0.013710152357816696, -0.9077842831611633, 0.46053555607795715, -0.22010841965675354, -0.1964508295059204, 0.3581640422344208, 0.4634806513786316, 1.3614455461502075, 0.03367449343204498, 0.19019854068756104, 0.9909023642539978, -1.4079527854919434, 1.5362361669540405, -0.7790057063102722, 0.3638848662376404, -2.418919801712036, 1.3351550102233887, -0.7454389929771423, 2.032724142074585, -2.6386806964874268, 0.4619885981082916, -0.6421772241592407, -0.5151934623718262, 0.29933056235313416, -0.39412614703178406, -0.008135024458169937, -0.060603246092796326, -1.087781548500061, 0.09769470244646072, -0.6256583333015442, 0.47392717003822327, 1.2273445129394531, 1.312056064605713, -1.1181483268737793, -0.27725258469581604, -1.7412877082824707, -0.24523437023162842, -0.8062672019004822, 0.309917151927948, -2.050196409225464, -0.2920415997505188, -1.8666013479232788, -2.2279889583587646, -1.179113507270813, -0.781326174736023, 1.1903512477874756, 0.1446358561515808, -0.9167616963386536, 1.3155325651168823, -0.35522329807281494, -1.7679463624954224, 1.0626840591430664, -2.039297580718994 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
i think requiring the user to specify that those two files are different configurations is in that case perfectly reasonable. (Maybe at some point we could however detect this type of case and prompt them to define a config mapping etc)
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
41
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` i think requiring the user to specify that those two files are different configurations is in that case perfectly reasonable. (Maybe at some point we could however detect this type of case and prompt them to define a config mapping etc)
[ -1.2250182628631592, -1.1197715997695923, -0.7887561321258545, 1.6832242012023926, -0.19713473320007324, -1.0262467861175537, 0.07576865702867508, -0.9446181058883667, 1.6128631830215454, -0.7148763537406921, 0.27330392599105835, -1.6815637350082397, -0.057997822761535645, -0.7137927412986755, -0.6830929517745972, -0.7660142183303833, -0.33948326110839844, -0.7848787903785706, 1.130112886428833, 2.4604108333587646, 1.1609327793121338, -1.4999006986618042, 2.690659523010254, 0.7770410180091858, -0.07051977515220642, -1.1160672903060913, 0.555627167224884, -0.08266230672597885, -1.1750301122665405, -0.4996202290058136, -0.9415020942687988, -0.03274349123239517, -0.6006526947021484, -0.4616561532020569, -0.03848149999976158, 0.5061476826667786, -0.2665654420852661, -0.4924643039703369, -0.5406326651573181, -0.7435505986213684, 0.4572787880897522, -0.3698465824127197, 0.884171724319458, -0.24838443100452423, 1.7834124565124512, -0.39553356170654297, 0.3115292191505432, 0.6796140670776367, 1.3876676559448242, 0.19299505650997162, 0.024166028946638107, 0.3619915544986725, 0.42408648133277893, -0.08003205060958862, 0.5858258605003357, 1.156511664390564, 0.7311698198318481, 0.38668084144592285, 0.8467703461647034, -2.405641555786133, 1.1941659450531006, -1.1367759704589844, 0.3782789707183838, 1.3457651138305664, -0.8503790497779846, 0.4669509828090668, -1.7467336654663086, 0.10891962051391602, 0.6215007901191711, -2.090851306915283, 0.4001144468784332, -1.2010422945022583, -0.3710893392562866, 0.9567534923553467, 0.40458324551582336, -1.3071476221084595, 0.14578931033611298, -0.2788906693458557, 1.0746432542800903, 0.4002569615840912, 1.0409350395202637, -1.7550541162490845, 0.04437992349267006, -0.261232852935791, 0.15392376482486725, -1.2395522594451904, -1.483536720275879, 0.39321109652519226, 0.4825124740600586, 0.6469575762748718, -0.13433107733726501, 1.0537760257720947, -1.1718719005584717, 0.6363744735717773, -1.0864194631576538, -1.64492666721344, -1.397883415222168, -2.301193952560425, -2.243868827819824, 0.692719578742981, -0.44686204195022583, -0.5298031568527222, 2.020354986190796, -0.8614217638969421, -1.7740875482559204, 1.294757604598999, 0.3978814482688904, 0.10896796733140945, 2.4126908779144287, 0.2049740105867386, -0.7739346027374268, 0.5309177041053772, -0.8457568287849426, 0.7444789409637451, -0.38484230637550354, 1.515871524810791, 0.43231630325317383, -0.904289186000824, 1.6525013446807861, -0.44451195001602173, 0.6177459955215454, -0.6494840979576111, -0.47267305850982666, -0.7430456876754761, 0.3359591066837311, 1.853272557258606, -0.2283460944890976, 1.4180235862731934, -0.45225080847740173, -1.5044727325439453, -1.5181220769882202, 1.003840446472168, 0.35130244493484497, -0.8707045316696167, 0.1629202663898468, -0.3894425332546234, 0.216800257563591, -0.2149667888879776, 1.1503715515136719, 1.218662977218628, 0.6124189496040344, -0.3485901653766632, -0.8985444903373718, 0.11983285844326019, -0.17318932712078094, -0.6259792447090149, -1.7907004356384277, -0.2626347839832306, 0.16233251988887787, 0.6647763848304749, -1.2471609115600586, 1.6070408821105957, 0.9015809893608093, 1.9188055992126465, 0.9553114771842957, -0.4065662920475006, 1.5089889764785767, 0.048308487981557846, 1.8945627212524414, -0.599219024181366, 0.5895190834999084, -0.3840446174144745, -1.2313916683197021, 0.922680139541626, -0.2854894995689392, -2.019306182861328, -0.7883530259132385, -0.8477955460548401, -0.2788161635398865, -0.8221829533576965, 0.9158865213394165, -0.43396511673927307, -1.4961246252059937, 0.23711778223514557, -0.7874633073806763, 0.31031641364097595, -1.109165906906128, 0.32737869024276733, 0.7217662930488586, -0.5923494100570679, 0.08592493832111359, -0.2901526093482971, -1.2719556093215942, -0.5011439919471741, 0.5321633815765381, 1.8140619993209839, -0.8274158239364624, 0.7242394685745239, 1.0809742212295532, -0.6435275077819824, 0.07748829573392868, 0.23793859779834747, -0.24862892925739288, 0.8541292548179626, -0.9736392498016357, -0.703540563583374, 1.2781226634979248, -0.2024185210466385, -0.6850535869598389, 1.432512640953064, 0.8078136444091797, -1.0415289402008057, -0.30220335721969604, -0.1637156754732132, -0.7933794260025024, 0.06077127158641815, -1.6107755899429321, -0.0845719426870346, 0.40840715169906616, -1.5654761791229248, -0.4667213559150696, -0.2944009006023407, 1.3019856214523315, -0.14458653330802917, 1.3753564357757568, -0.3884522020816803, -0.05563126504421234, -0.20714585483074188, -0.44537097215652466, 0.262827068567276, -0.2707797586917877, -0.6406680345535278, 0.12330357730388641, -0.854486346244812, 0.4287451207637787, 1.4037033319473267, 0.35785621404647827, 0.009547223336994648, 0.5039142370223999, 1.1733355522155762, 0.5306309461593628, 0.18344540894031525, -0.8977949023246765, -1.4939277172088623, 1.9834169149398804, -1.6463829278945923, 2.0231330394744873, 0.6208728551864624, 0.023534562438726425, -1.7313270568847656, -1.8356587886810303, 1.4072448015213013, 1.1198904514312744, 2.272505521774292, 0.6398188471794128, 0.35751888155937195, -0.9594883322715759, -0.6613262891769409, 0.19793419539928436, -0.9330568909645081, -0.7093561291694641, 0.17212356626987457, 2.4796414375305176, 1.8604942560195923, -0.40502116084098816, -0.2356625497341156, -0.9337760210037231, 1.5315783023834229, -0.21005411446094513, 0.31124424934387207, 2.016122341156006, -0.12941189110279083, -1.0238779783248901, 1.3352214097976685, -2.4871740341186523, 0.22599740326404572, 2.036839246749878, 0.3030773401260376, 0.23939168453216553, -1.3892648220062256, -0.717943549156189, -0.1320321261882782, -0.4442110061645508, -1.24822998046875, 0.5488158464431763, -0.2948906719684601, -0.6977169513702393, -1.4913344383239746, 0.24035581946372986, -1.1120365858078003, -1.5894496440887451, 0.22890529036521912, 1.8945980072021484, 2.1822187900543213, -0.8804906010627747, 1.6964510679244995, -0.20889528095722198, 0.27817925810813904, 1.312675952911377, 1.2349534034729004, 2.926555633544922, 1.8612096309661865, -1.2544771432876587, 0.5380510091781616, -0.17365305125713348, -0.5402690768241882, 1.1279985904693604, -1.247710108757019, 1.1880179643630981, -0.17354458570480347, -1.089983582496643, -1.2410145998001099, 0.9125504493713379, 0.5354718565940857, 0.006067472510039806, -0.5329930782318115, 1.0971602201461792, 0.0015728333964943886, 1.2460678815841675, 0.6693636775016785, -0.3590644896030426, 0.5002647638320923, -0.4242127239704132, -0.559514582157135, 1.4887281656265259, 0.0572296679019928, -1.386757254600525, -2.1747612953186035, -0.17226490378379822, -0.8577245473861694, -0.0012775352224707603, -0.5844236612319946, -0.9867129325866699, 1.5607852935791016, 0.28935834765434265, -1.2088208198547363, -0.22351065278053284, -0.2900462746620178, -0.4542687237262726, 2.7235679626464844, -1.3526204824447632, -0.3982340693473816, -0.9720076322555542, -0.6392431855201721, 1.700182318687439, -1.043692946434021, -0.23611249029636383, -1.1029579639434814, -0.5715968608856201, -1.38529372215271, -0.5257140398025513, -0.017622526735067368, -0.8753456473350525, 0.8804664015769958, 0.384799599647522, -1.2141625881195068, -0.413371741771698, -0.9153523445129395, 0.9123656749725342, -0.18013717234134674, 0.2266329526901245, 1.9333754777908325, 0.3732617199420929, -0.33119821548461914, 0.8681894540786743, 1.1112656593322754, 0.6934945583343506, -0.5800772309303284, 0.2504275143146515, -0.5509468913078308, 0.3470211923122406, -1.4142731428146362, 0.23312290012836456, -2.869051694869995, 0.6192228198051453, 0.05633872002363205, -0.0736515000462532, -0.09214197844266891, -1.3609864711761475, 1.1296230554580688, 2.477754592895508, -1.2600433826446533, 0.5598790049552917, 0.3458397090435028, 1.2766464948654175, -1.7485395669937134, 0.2511840760707855, -0.4500347971916199, 2.1570234298706055, 0.11154713481664658, 1.225009799003601, -0.48215001821517944, -2.468449831008911, 0.5595595836639404, -1.395044207572937, -1.0533853769302368, 0.6125069856643677, -0.8899731040000916, 0.18319660425186157, -1.600529432296753, -0.3091702163219452, -0.962640106678009, -1.2740737199783325, 0.7286582589149475, 0.21075373888015747, 0.23177917301654816, -0.6135171055793762, 0.4398304224014282, -2.1606085300445557, -1.4573118686676025, -0.19719406962394714, -0.8932769894599915, 0.5699673295021057, -0.4160367548465729, 0.734046220779419, -0.15968108177185059, -0.0430525504052639, 0.2741711437702179, 1.4236615896224976, 3.454939126968384, 0.2596185505390167, 0.42520615458488464, -0.1593308448791504, -0.9449107050895691, 1.478918194770813, 0.936245858669281, -0.16850344836711884, -0.4808293282985687, -1.1305932998657227, 1.3732751607894897, 1.9329427480697632, 0.9419782757759094, -0.01566769741475582, -0.7215356826782227, -0.6942014098167419, -0.003576112911105156, 0.23011721670627594, 0.5178530216217041, 0.7768439054489136, 0.023387599736452103, 0.018727969378232956, 1.3655370473861694, 1.0681878328323364, -0.4293721914291382, 0.26815056800842285, -0.8455103635787964, -0.4271318018436432, 0.5505267977714539, 0.19664856791496277, -0.10128478705883026, 0.29873496294021606, -1.0231555700302124, -0.25355175137519836, -0.3208947479724884, -0.853300154209137, -0.6368229985237122, -0.40806159377098083, -0.31216490268707275, 1.4876837730407715, 0.2844606041908264, -0.5945054888725281, -0.12286890298128128, -0.7105435132980347, -0.12678219377994537, -1.0742297172546387, 0.18614274263381958, -0.18948666751384735, -0.12732434272766113, -0.30799126625061035, 1.753913402557373, -0.8782561421394348, -2.0731987953186035, 0.08090062439441681, 0.42736923694610596, -0.20745159685611725, 0.2984418272972107, 1.7120071649551392, 0.4629408121109009, 1.319234848022461, 1.2877906560897827, 0.9776299595832825, -0.556476891040802, -1.3482879400253296, 0.624056875705719, 1.1218045949935913, -1.3802679777145386, 0.8513488173484802, 0.01037065964192152, -0.474495530128479, 0.6244350671768188, 1.4387551546096802, 0.5040292739868164, -1.988442063331604, 0.7164936065673828, -1.0612963438034058, 0.9318293333053589, 0.744416356086731, 0.6996906399726868, 0.22658614814281464, 0.7797868251800537, -1.226321816444397, -1.1323840618133545, -0.787613570690155, -0.7819937467575073, 1.9902070760726929, -0.33822348713874817, 0.6129547357559204, -0.03362184017896652, -1.3246111869812012, -0.07636308670043945, 0.7164413332939148, 0.2721528112888336, -0.5248450636863708, 0.8583528995513916, -0.6665454506874084, -1.1883821487426758, -1.2761411666870117, -0.4165177345275879, -0.9846602082252502, -1.0304921865463257, 1.0466370582580566, 0.7968286871910095, 0.19336678087711334, 1.8581717014312744, 0.702368974685669, 0.18826673924922943, -2.5294346809387207, 0.877764880657196, 0.3101223409175873, -0.08667953312397003, 0.718346118927002, 0.38786032795906067, 1.0895310640335083, 0.039862919598817825, 0.6111888885498047, -2.3581323623657227, 2.2296972274780273, -0.16712932288646698, 0.7845507860183716, -0.1471364051103592, -0.12856729328632355, 1.0861009359359741, 0.46722808480262756, 0.5133399963378906, -0.9517548084259033, 0.6108352541923523, -0.5498129725456238, 1.2660380601882935, 0.9346985220909119, -0.8098208904266357, -0.025179021060466766, 1.2891385555267334, 0.3235480785369873, -0.6165508031845093, -0.9859126806259155, -0.8738175630569458, 0.9326297044754028, 1.6786872148513794, -0.1089419573545456, -0.04374595358967781, 0.8748676776885986, 0.6054313778877258, -1.2820504903793335, 0.0016421545296907425, -0.6046673059463501, -0.6309906244277954, 1.7901768684387207, 2.0226597785949707, -0.3494841158390045, -0.14719730615615845, -0.6863391995429993, -1.2983590364456177, 0.7095959186553955, -0.08183993399143219, 0.06700685620307922, 0.6145292520523071, -0.64537113904953, 0.978681743144989, 0.8087186813354492, 0.8283021450042725, 0.09184881299734116, 0.2251601368188858, 0.4514569938182831, -0.4643040895462036, -1.1530512571334839, -0.2531571686267853, -1.2213759422302246, -2.5133073329925537, 0.35261574387550354, -0.07111632078886032, -1.2551649808883667, 0.055107541382312775, -0.977630078792572, 1.1536517143249512, -0.5486024022102356, -1.1988078355789185, -1.323006510734558, 0.19316281378269196, -0.008599252440035343, 0.7944842576980591, -1.6734733581542969, -0.052722737193107605, 1.2746822834014893, 0.9520472884178162, -0.7427523732185364, 1.0435895919799805, 0.22610467672348022, 1.1578208208084106, 0.7311950922012329, -0.29086992144584656, 0.5649194121360779, 0.0033982135355472565, -1.2827184200286865, 0.5228222608566284, 1.1820558309555054, 0.14779065549373627, 1.4579353332519531, -0.49715375900268555, -0.1283806413412094, 0.3662639260292053, -0.6883841156959534, -0.4924113154411316, -0.3803960084915161, 0.5955502390861511, 0.07457613199949265, -0.8123375177383423, 0.05034106224775314, 0.057392194867134094, -0.21781857311725616, 0.14015202224254608, -1.5484559535980225, -0.21324874460697174, -0.41093510389328003, -0.47269195318222046, -1.2414382696151733, -0.12431178241968155, 1.358307957649231, -0.6461302638053894, -0.35328131914138794, 0.6114584803581238, 0.24906769394874573, 0.4861491620540619, 0.6284492015838623, -0.6709859371185303, -0.32655757665634155, -0.18987791240215302, -0.3500937521457672, 0.31731489300727844, 1.403214454650879, -0.09699847549200058, -0.9539893865585327, 0.7296849489212036, -0.31986290216445923, 0.028452742844820023, 1.743912935256958, -0.09126031398773193, -0.84476238489151, 0.25977617502212524, -0.8005308508872986, 1.9506498575210571, 1.636406421661377, 1.3328509330749512, -0.3091573715209961, -0.8391687870025635, 0.7416320443153381, -0.42517682909965515, -0.45196273922920227, 0.8062583804130554, 0.41820862889289856, -0.22863008081912994, -1.4428832530975342, 0.71393883228302, 1.2178335189819336, -0.8307750225067139, -0.8035107851028442, 0.24779000878334045, -0.7394701838493347, 1.1201859712600708, 0.6459276080131531, 0.379549503326416, 0.28277984261512756, 1.7026523351669312, 0.8290780186653137, -0.45000872015953064, 0.5365510582923889, 0.5955871939659119, -0.2623682916164398, -2.136003255844116, -1.2098251581192017, 0.23569342494010925, -0.5408064723014832, -1.6446846723556519, 1.3172187805175781, -1.0898866653442383, -0.9192364811897278, 0.6194029450416565, 0.07770984619855881, 1.3234853744506836, 0.42284446954727173, 1.4132037162780762, 2.015238046646118, 0.7163571715354919, 0.5036342144012451, 1.1905514001846313, -0.2023218870162964, -0.5038737654685974, 1.8362246751785278, -0.40660202503204346, 0.5530221462249756, 1.1805691719055176, -0.26589885354042053, -1.1506812572479248, -0.7102696895599365, -1.3103338479995728, -0.6243454217910767, 1.2142118215560913, 0.08083699643611908, -1.1296370029449463, 0.3020164966583252, 1.6098779439926147, 0.0754859670996666, -0.43046867847442627, 0.6746786832809448, 0.38506531715393066, -0.9197173714637756, -0.002262030728161335, -0.931222140789032, 0.47561681270599365, -0.20219342410564423, -0.1956888884305954, 0.3587355315685272, 0.4286680221557617, 1.3691991567611694, 0.05272585153579712, 0.2261241376399994, 0.9868901968002319, -1.42318594455719, 1.5396887063980103, -0.8438299894332886, 0.37216368317604065, -2.380434036254883, 1.3254424333572388, -0.730149507522583, 2.042710542678833, -2.6704182624816895, 0.455153226852417, -0.6324310302734375, -0.4982503056526184, 0.2883566915988922, -0.39076653122901917, -0.018089573830366135, -0.05704504996538162, -1.1002413034439087, 0.09971226751804352, -0.5969803333282471, 0.4686239957809448, 1.2320910692214966, 1.2993221282958984, -1.120134711265564, -0.26870694756507874, -1.7796499729156494, -0.24990224838256836, -0.8013855218887329, 0.2971772253513336, -2.043172597885132, -0.25746017694473267, -1.8408169746398926, -2.2246029376983643, -1.158389925956726, -0.7805910706520081, 1.1911624670028687, 0.1344490945339203, -0.8815420866012573, 1.3340835571289062, -0.35345903038978577, -1.7375948429107666, 1.0719120502471924, -2.076683521270752 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
OK, so, before closing the issue, what do you think should be done? > Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema? or nothing?
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
45
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` OK, so, before closing the issue, what do you think should be done? > Maybe in streaming mode we should keep the schema (inferred from the first item) and throw an exception if a subsequent item does not conform to the inferred schema? or nothing?
[ -1.235285997390747, -1.1193549633026123, -0.7654339075088501, 1.6452041864395142, -0.21327564120292664, -1.0506011247634888, 0.09256704151630402, -0.9670249223709106, 1.6172881126403809, -0.7162622809410095, 0.2716943025588989, -1.6805551052093506, -0.0657379999756813, -0.7107864022254944, -0.6845723986625671, -0.7483029365539551, -0.353158563375473, -0.8257088661193848, 1.1012873649597168, 2.4699206352233887, 1.1646777391433716, -1.502380132675171, 2.7208635807037354, 0.7761180996894836, -0.09249299019575119, -1.1083478927612305, 0.5478143095970154, -0.11051788181066513, -1.1883418560028076, -0.509680986404419, -0.9626070261001587, -0.015298773534595966, -0.5910395383834839, -0.457710862159729, -0.029296625405550003, 0.506575882434845, -0.29021206498146057, -0.4850560128688812, -0.5260214805603027, -0.7747114896774292, 0.45427870750427246, -0.3674219250679016, 0.8875066041946411, -0.2548084557056427, 1.7536945343017578, -0.41422170400619507, 0.31171801686286926, 0.6851476430892944, 1.3583776950836182, 0.20665569603443146, 0.009528501890599728, 0.35640624165534973, 0.429220050573349, -0.05683896318078041, 0.5909227728843689, 1.1553555727005005, 0.7093808054924011, 0.3946189284324646, 0.8481776714324951, -2.407405376434326, 1.181721568107605, -1.1318681240081787, 0.3533637523651123, 1.3427660465240479, -0.7998719215393066, 0.46575114130973816, -1.77406644821167, 0.10226340591907501, 0.6354925632476807, -2.097327709197998, 0.4249514937400818, -1.2099934816360474, -0.3831224739551544, 0.9645705819129944, 0.4060766100883484, -1.287502408027649, 0.14776796102523804, -0.293846070766449, 1.0708575248718262, 0.3831629753112793, 1.0267943143844604, -1.7533655166625977, 0.03718939051032066, -0.2601078152656555, 0.13917797803878784, -1.2620978355407715, -1.4898909330368042, 0.41877076029777527, 0.5032080411911011, 0.6452712416648865, -0.13743725419044495, 1.0762662887573242, -1.1575167179107666, 0.6587325930595398, -1.0715967416763306, -1.648690938949585, -1.3795430660247803, -2.2761576175689697, -2.218322515487671, 0.6860355734825134, -0.4708041846752167, -0.540435791015625, 2.02372145652771, -0.8645389676094055, -1.7626508474349976, 1.3018919229507446, 0.40133732557296753, 0.09386348724365234, 2.415940046310425, 0.2100045084953308, -0.7585493326187134, 0.541388988494873, -0.8243314027786255, 0.7510038018226624, -0.4063552916049957, 1.4819536209106445, 0.44275936484336853, -0.9140496850013733, 1.665453314781189, -0.45167383551597595, 0.5990293025970459, -0.6688030958175659, -0.4859940707683563, -0.7714079022407532, 0.3349553048610687, 1.856368064880371, -0.23375600576400757, 1.4243009090423584, -0.4380424916744232, -1.503082275390625, -1.5344760417938232, 1.0203263759613037, 0.3577692210674286, -0.8969784379005432, 0.15513990819454193, -0.4151933193206787, 0.20419640839099884, -0.223709374666214, 1.1655406951904297, 1.2539082765579224, 0.6178466081619263, -0.32004091143608093, -0.8789441585540771, 0.12971988320350647, -0.16239076852798462, -0.631944477558136, -1.7648261785507202, -0.26538434624671936, 0.18860626220703125, 0.6535152792930603, -1.2335249185562134, 1.6052571535110474, 0.9161418676376343, 1.9171688556671143, 0.9573625922203064, -0.4070301353931427, 1.5091944932937622, 0.08845779299736023, 1.8836995363235474, -0.6191080808639526, 0.5680428147315979, -0.3734986186027527, -1.238791584968567, 0.9450588226318359, -0.28707805275917053, -2.0279622077941895, -0.7337561249732971, -0.8421127796173096, -0.2903456389904022, -0.8262507915496826, 0.9201297163963318, -0.4321243464946747, -1.4890776872634888, 0.24003314971923828, -0.8075250387191772, 0.2961672246456146, -1.1302438974380493, 0.3236514627933502, 0.7254575490951538, -0.584606945514679, 0.06980132311582565, -0.2692469358444214, -1.2881802320480347, -0.5227473378181458, 0.4981563985347748, 1.8279929161071777, -0.8099618554115295, 0.7310426831245422, 1.0889110565185547, -0.6599500775337219, 0.04088838770985603, 0.25260990858078003, -0.2699897885322571, 0.8418992161750793, -0.9872252941131592, -0.6896153092384338, 1.2376322746276855, -0.19991251826286316, -0.6693631410598755, 1.4085439443588257, 0.7731346487998962, -1.0422474145889282, -0.2912854552268982, -0.164271280169487, -0.8199746608734131, 0.023702524602413177, -1.6064049005508423, -0.10050726681947708, 0.4198431968688965, -1.5739666223526, -0.47064635157585144, -0.27021244168281555, 1.2978429794311523, -0.16574223339557648, 1.3778365850448608, -0.4073127210140228, -0.045028749853372574, -0.19916538894176483, -0.428643137216568, 0.2642654478549957, -0.26009488105773926, -0.6232689023017883, 0.10308463871479034, -0.8426874279975891, 0.41298049688339233, 1.4211585521697998, 0.3533473312854767, 0.008447431959211826, 0.5084353089332581, 1.1489883661270142, 0.5272811651229858, 0.19394740462303162, -0.889919638633728, -1.5038293600082397, 1.983019471168518, -1.6579437255859375, 2.0296874046325684, 0.6134517788887024, 0.02316756173968315, -1.74088716506958, -1.8469189405441284, 1.3641893863677979, 1.0948361158370972, 2.2592179775238037, 0.6488466262817383, 0.37675583362579346, -0.940759003162384, -0.678085207939148, 0.21090981364250183, -0.9424870610237122, -0.71787029504776, 0.1788962036371231, 2.456202745437622, 1.8441731929779053, -0.42742300033569336, -0.23122555017471313, -0.9190467000007629, 1.512009620666504, -0.2199694961309433, 0.2993445098400116, 1.9990426301956177, -0.1343187689781189, -1.0298444032669067, 1.33498215675354, -2.5093441009521484, 0.22565960884094238, 2.0487070083618164, 0.2942824959754944, 0.23079748451709747, -1.3379966020584106, -0.6934123635292053, -0.1237349584698677, -0.45072534680366516, -1.2484207153320312, 0.5558236837387085, -0.30553433299064636, -0.6942979693412781, -1.4418312311172485, 0.22754591703414917, -1.0832630395889282, -1.5821477174758911, 0.2187352478504181, 1.9208987951278687, 2.2149176597595215, -0.886032223701477, 1.7079461812973022, -0.22618713974952698, 0.27966079115867615, 1.2930495738983154, 1.2455166578292847, 2.9422223567962646, 1.869478464126587, -1.2522125244140625, 0.5448591709136963, -0.1675270050764084, -0.5624924302101135, 1.151634693145752, -1.2399052381515503, 1.1838243007659912, -0.15831100940704346, -1.105858325958252, -1.232824683189392, 0.9003901481628418, 0.531914234161377, 0.008524089120328426, -0.5234767198562622, 1.0875108242034912, 0.004830893129110336, 1.2259340286254883, 0.6730285882949829, -0.3664686679840088, 0.4966425597667694, -0.39433830976486206, -0.5665186643600464, 1.4926214218139648, 0.03937679901719093, -1.3883146047592163, -2.1858792304992676, -0.18161141872406006, -0.846840500831604, 0.04321970418095589, -0.5953355431556702, -0.9833486080169678, 1.5593712329864502, 0.2800743281841278, -1.1992143392562866, -0.23888419568538666, -0.3054408133029938, -0.43006688356399536, 2.7311511039733887, -1.3593038320541382, -0.38674667477607727, -0.9733530879020691, -0.6319990158081055, 1.7093920707702637, -1.0859209299087524, -0.26070722937583923, -1.0946903228759766, -0.5755566358566284, -1.3724126815795898, -0.5143201351165771, -0.03038978949189186, -0.86439448595047, 0.8994807600975037, 0.38591861724853516, -1.2159351110458374, -0.4036620259284973, -0.9156819581985474, 0.9242842197418213, -0.2080167680978775, 0.2202686369419098, 1.9569084644317627, 0.3526427149772644, -0.3358306586742401, 0.8505275845527649, 1.1114535331726074, 0.6625314354896545, -0.5243625044822693, 0.2161640226840973, -0.5686867237091064, 0.3473135530948639, -1.4124537706375122, 0.22154416143894196, -2.8760528564453125, 0.6188448667526245, 0.08149480074644089, -0.0637035220861435, -0.11093195527791977, -1.3541364669799805, 1.106525182723999, 2.47114634513855, -1.2548450231552124, 0.5663008093833923, 0.35447752475738525, 1.2869594097137451, -1.7604740858078003, 0.2255556434392929, -0.44486740231513977, 2.156520128250122, 0.11041989922523499, 1.2008565664291382, -0.46153563261032104, -2.4664807319641113, 0.5446203351020813, -1.3730087280273438, -1.0548615455627441, 0.6017698049545288, -0.8885177969932556, 0.17731615900993347, -1.586301565170288, -0.31404590606689453, -0.981860876083374, -1.2568409442901611, 0.7467225193977356, 0.19564460217952728, 0.2580556571483612, -0.6142071485519409, 0.4401978552341461, -2.15287446975708, -1.439940094947815, -0.22417010366916656, -0.8845669627189636, 0.5579681396484375, -0.4010961353778839, 0.7275180220603943, -0.18179436028003693, -0.0347062349319458, 0.28982406854629517, 1.424896478652954, 3.443016290664673, 0.2648937404155731, 0.41895735263824463, -0.1702551245689392, -0.9167674779891968, 1.478015422821045, 0.9477762579917908, -0.14559637010097504, -0.4953486919403076, -1.1119208335876465, 1.3819522857666016, 1.9265179634094238, 0.9179317951202393, 0.029266364872455597, -0.7526573538780212, -0.7142137885093689, -0.003649643622338772, 0.22396570444107056, 0.51807701587677, 0.7978127598762512, 0.04385625198483467, 0.0006017610430717468, 1.353439450263977, 1.0540093183517456, -0.4011184275150299, 0.2824031114578247, -0.8381467461585999, -0.4190480709075928, 0.5516713857650757, 0.17608192563056946, -0.1267998367547989, 0.31637534499168396, -0.9896978735923767, -0.24512097239494324, -0.3063737452030182, -0.8595797419548035, -0.6289841532707214, -0.39658114314079285, -0.29606595635414124, 1.4905691146850586, 0.2839040160179138, -0.5913904905319214, -0.11017951369285583, -0.7195734977722168, -0.13200516998767853, -1.1160835027694702, 0.18570083379745483, -0.19286900758743286, -0.13912208378314972, -0.28557178378105164, 1.7402321100234985, -0.8328452110290527, -2.0455567836761475, 0.04777684435248375, 0.42463430762290955, -0.20051176846027374, 0.28888705372810364, 1.7213329076766968, 0.448505163192749, 1.33002507686615, 1.2901009321212769, 0.9676552414894104, -0.5541678071022034, -1.3030678033828735, 0.6307405233383179, 1.108808994293213, -1.4023984670639038, 0.8749145865440369, 0.0016835695132613182, -0.49002328515052795, 0.6440057754516602, 1.4245882034301758, 0.49158427119255066, -1.996491551399231, 0.7411581873893738, -1.1066609621047974, 0.9412909150123596, 0.7283005118370056, 0.7079753279685974, 0.2640509009361267, 0.8018995523452759, -1.216255784034729, -1.1560122966766357, -0.7929144501686096, -0.7973073124885559, 1.9514777660369873, -0.32657113671302795, 0.6182358264923096, -0.04644102230668068, -1.3196362257003784, -0.06781070679426193, 0.7020703554153442, 0.28582966327667236, -0.48967283964157104, 0.8285732865333557, -0.679531991481781, -1.183852195739746, -1.2543160915374756, -0.3957073986530304, -0.9968876838684082, -1.031463384628296, 1.0235322713851929, 0.8106918334960938, 0.19854792952537537, 1.8320332765579224, 0.7105231285095215, 0.1816638559103012, -2.523761510848999, 0.8644171357154846, 0.29867982864379883, -0.09880948811769485, 0.73277348279953, 0.3766111433506012, 1.1025111675262451, 0.026095710694789886, 0.6004295349121094, -2.3826797008514404, 2.2336437702178955, -0.17356784641742706, 0.7863401770591736, -0.14397957921028137, -0.11557453125715256, 1.0821603536605835, 0.4738057851791382, 0.5020758509635925, -0.9528201818466187, 0.6015525460243225, -0.5425652265548706, 1.2696486711502075, 0.9469785094261169, -0.8174118995666504, -0.022924844175577164, 1.2982184886932373, 0.32650071382522583, -0.641338050365448, -0.9882340431213379, -0.8785138130187988, 0.9197959899902344, 1.6920722723007202, -0.09940753132104874, -0.06418267637491226, 0.8889361619949341, 0.6100329160690308, -1.2915019989013672, 0.02831355109810829, -0.5926367044448853, -0.6525688171386719, 1.8117973804473877, 2.0444724559783936, -0.3315885663032532, -0.12959712743759155, -0.658929169178009, -1.304527759552002, 0.7259317636489868, -0.08337818831205368, 0.07403407245874405, 0.5907717347145081, -0.6516110301017761, 0.9882977604866028, 0.7926067113876343, 0.8399817943572998, 0.09779638051986694, 0.24279522895812988, 0.45306116342544556, -0.4617362916469574, -1.1427438259124756, -0.25617098808288574, -1.1957588195800781, -2.5149919986724854, 0.36419177055358887, -0.06977817416191101, -1.2738523483276367, 0.05730324238538742, -0.9586181044578552, 1.138168454170227, -0.5477599501609802, -1.2052470445632935, -1.3168730735778809, 0.1935945451259613, 0.0061436062678694725, 0.8455587029457092, -1.6561754941940308, -0.06397745758295059, 1.2612476348876953, 0.9344149827957153, -0.7643461227416992, 1.0157955884933472, 0.24829921126365662, 1.1749420166015625, 0.7375068068504333, -0.30194807052612305, 0.5592085719108582, -0.009964605793356895, -1.2800700664520264, 0.5276691317558289, 1.21718430519104, 0.1514659970998764, 1.4584742784500122, -0.474310040473938, -0.1272185891866684, 0.3598467707633972, -0.6794188618659973, -0.4623560309410095, -0.3971017897129059, 0.5675598382949829, 0.0797370970249176, -0.8096479177474976, 0.03966343775391579, 0.06597428768873215, -0.2404239922761917, 0.13267895579338074, -1.578942060470581, -0.1955433487892151, -0.4293350875377655, -0.4697094261646271, -1.263245940208435, -0.11029013991355896, 1.3631471395492554, -0.6676027178764343, -0.3230273127555847, 0.6121391654014587, 0.2517209053039551, 0.49036046862602234, 0.6113021373748779, -0.6689469814300537, -0.3127438724040985, -0.18086254596710205, -0.39557451009750366, 0.29559776186943054, 1.4055203199386597, -0.08503199368715286, -0.9225097894668579, 0.7135172486305237, -0.3141747713088989, 0.004413123242557049, 1.7331395149230957, -0.07845193147659302, -0.8302052021026611, 0.2324729710817337, -0.7903516292572021, 1.962127447128296, 1.6464533805847168, 1.3328940868377686, -0.3131321370601654, -0.8480098247528076, 0.7205179929733276, -0.4514535665512085, -0.4698775112628937, 0.7929021120071411, 0.4283488988876343, -0.24501103162765503, -1.4552607536315918, 0.7297670245170593, 1.199737310409546, -0.8399996757507324, -0.80906081199646, 0.20726703107357025, -0.7188897132873535, 1.1228537559509277, 0.6438073515892029, 0.36752229928970337, 0.29281458258628845, 1.7122067213058472, 0.8424587249755859, -0.46586814522743225, 0.563321590423584, 0.6371747255325317, -0.235898956656456, -2.1536009311676025, -1.229036569595337, 0.24321019649505615, -0.48669350147247314, -1.6315691471099854, 1.3411073684692383, -1.0933332443237305, -0.9699685573577881, 0.6237630248069763, 0.0860670730471611, 1.3242006301879883, 0.4218060076236725, 1.4286651611328125, 2.029635429382324, 0.7264842391014099, 0.5094988346099854, 1.2276209592819214, -0.2065512090921402, -0.4792276620864868, 1.832968831062317, -0.41418761014938354, 0.5848718881607056, 1.1699241399765015, -0.2941920757293701, -1.1486846208572388, -0.7034953832626343, -1.320420265197754, -0.6214972138404846, 1.2146737575531006, 0.04054882377386093, -1.0957255363464355, 0.33773544430732727, 1.6283992528915405, 0.07868781685829163, -0.42609331011772156, 0.6972565054893494, 0.3959132432937622, -0.9187963604927063, -0.01122951414436102, -0.9152482748031616, 0.4829936921596527, -0.19366726279258728, -0.2070682942867279, 0.3754597306251526, 0.4542159140110016, 1.3855551481246948, 0.0275743268430233, 0.2102418690919876, 0.9880020022392273, -1.4185857772827148, 1.4913235902786255, -0.8240491151809692, 0.3632565438747406, -2.379106283187866, 1.3284159898757935, -0.7397894263267517, 2.0528554916381836, -2.671556234359741, 0.4662124514579773, -0.6417244076728821, -0.5049802660942078, 0.29110345244407654, -0.38314470648765564, -0.03469596430659294, -0.07912610471248627, -1.0812252759933472, 0.11393797397613525, -0.5852459073066711, 0.49356982111930847, 1.2377122640609741, 1.331510305404663, -1.0982052087783813, -0.258608877658844, -1.7828490734100342, -0.25111377239227295, -0.7941102981567383, 0.26636239886283875, -2.027620315551758, -0.2507825493812561, -1.8924241065979004, -2.211717128753662, -1.1697098016738892, -0.7835288047790527, 1.183382272720337, 0.13592179119586945, -0.9022517800331116, 1.3370578289031982, -0.3623684346675873, -1.7446935176849365, 1.0791916847229004, -2.066211700439453 ]
https://github.com/huggingface/datasets/issues/3738
For data-only datasets, streaming and non-streaming don't behave the same
We should at least raise an error if a new sample has column names that are missing, or if it has extra columns. No need to check for the type for now. I'm in favor of having an error especially because we want to avoid silent issues as much as possible - i.e. when something goes wrong (when schemas don't match or some data are missing) and no errors/warnings are raised. Consistency between streaming and non-streaming is also important.
See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ```
948
79
For data-only datasets, streaming and non-streaming don't behave the same See https://huggingface.co/datasets/huggingface/transformers-metadata: it only contains two JSON files. In streaming mode, the files are concatenated, and thus the rows might be dictionaries with different keys: ```python import datasets as ds iterable_dataset = ds.load_dataset("huggingface/transformers-metadata", split="train", streaming=True); rows = list(iterable_dataset.take(100)) rows[0] # {'model_type': 'albert', 'pytorch': True, 'tensorflow': True, 'flax': True, 'processor': 'AutoTokenizer'} rows[99] # {'model_class': 'BartModel', 'pipeline_tag': 'feature-extraction', 'auto_class': 'AutoModel'} ``` In normal mode, an exception is thrown: ```python import datasets as ds dataset = ds.load_dataset("huggingface/transformers-metadata", split="train"); ``` ``` ValueError: Couldn't cast model_class: string pipeline_tag: string auto_class: string to {'model_type': Value(dtype='string', id=None), 'pytorch': Value(dtype='bool', id=None), 'tensorflow': Value(dtype='bool', id=None), 'flax': Value(dtype='bool', id=None), 'processor': Value(dtype='string', id=None)} because column names don't match ``` We should at least raise an error if a new sample has column names that are missing, or if it has extra columns. No need to check for the type for now. I'm in favor of having an error especially because we want to avoid silent issues as much as possible - i.e. when something goes wrong (when schemas don't match or some data are missing) and no errors/warnings are raised. Consistency between streaming and non-streaming is also important.
[ -1.2620347738265991, -1.1199103593826294, -0.7578030228614807, 1.6373345851898193, -0.21777069568634033, -1.07113778591156, 0.07890342175960541, -0.9778779745101929, 1.6091091632843018, -0.73368901014328, 0.2597108483314514, -1.6828691959381104, -0.00892382487654686, -0.680371105670929, -0.6874151229858398, -0.7620219588279724, -0.3237730860710144, -0.8150836229324341, 1.1310259103775024, 2.4501545429229736, 1.1688522100448608, -1.5049253702163696, 2.699324131011963, 0.7841224670410156, -0.11137133836746216, -1.1004908084869385, 0.5592216849327087, -0.09404902905225754, -1.1868399381637573, -0.4804324805736542, -0.951172947883606, -0.020541707053780556, -0.5780215263366699, -0.4458829164505005, -0.007976021617650986, 0.49432435631752014, -0.2608921229839325, -0.5157237648963928, -0.5409172177314758, -0.7201725840568542, 0.4647769331932068, -0.38043951988220215, 0.8933143019676208, -0.259387344121933, 1.7738069295883179, -0.4239215850830078, 0.31361111998558044, 0.6571311950683594, 1.3912371397018433, 0.18072202801704407, 0.046464525163173676, 0.34591272473335266, 0.42365899682044983, -0.0569351464509964, 0.5646515488624573, 1.1457825899124146, 0.7012364268302917, 0.391544908285141, 0.842734694480896, -2.394019603729248, 1.2027643918991089, -1.1155900955200195, 0.3544783592224121, 1.3705010414123535, -0.8446165323257446, 0.4468057155609131, -1.7683215141296387, 0.11773641407489777, 0.6147480607032776, -2.1091034412384033, 0.3967864215373993, -1.182098627090454, -0.3745255172252655, 0.9582220911979675, 0.38079845905303955, -1.2522573471069336, 0.1732770800590515, -0.3154381811618805, 1.059556007385254, 0.4085330069065094, 1.039123773574829, -1.7416632175445557, 0.031690485775470734, -0.24293246865272522, 0.16579829156398773, -1.2760803699493408, -1.4945051670074463, 0.4358018934726715, 0.5522943139076233, 0.6332494020462036, -0.12492814660072327, 1.048756718635559, -1.1715010404586792, 0.6704306602478027, -1.089481234550476, -1.6328282356262207, -1.3885095119476318, -2.310347080230713, -2.232109785079956, 0.7058383822441101, -0.44432538747787476, -0.5006089210510254, 2.0127739906311035, -0.8805683851242065, -1.7812354564666748, 1.2824828624725342, 0.39145487546920776, 0.10269613564014435, 2.3987042903900146, 0.18328392505645752, -0.7643733024597168, 0.5463246703147888, -0.8362769484519958, 0.7476234436035156, -0.3962033689022064, 1.492916464805603, 0.42116326093673706, -0.9083210825920105, 1.644439697265625, -0.4371274411678314, 0.6279098391532898, -0.6579181551933289, -0.47411707043647766, -0.7628402709960938, 0.3690987229347229, 1.8940684795379639, -0.24544529616832733, 1.4204506874084473, -0.4484301805496216, -1.518384337425232, -1.53305184841156, 0.9864145517349243, 0.39938002824783325, -0.8456069231033325, 0.16724184155464172, -0.40932977199554443, 0.21155591309070587, -0.20307740569114685, 1.1181458234786987, 1.2363895177841187, 0.6476051807403564, -0.3382765054702759, -0.895587682723999, 0.14167477190494537, -0.1708061546087265, -0.6445241570472717, -1.8129314184188843, -0.28253933787345886, 0.18053612112998962, 0.6588623523712158, -1.2436412572860718, 1.6104865074157715, 0.9290531873703003, 1.9305830001831055, 0.9662622809410095, -0.4009743332862854, 1.5346795320510864, 0.08794441819190979, 1.8737112283706665, -0.5879530310630798, 0.6056201457977295, -0.38760197162628174, -1.2193872928619385, 0.8834542036056519, -0.3038596212863922, -2.0217862129211426, -0.7566555142402649, -0.8305378556251526, -0.28393998742103577, -0.8321021199226379, 0.9183834791183472, -0.4322657287120819, -1.5078364610671997, 0.23352962732315063, -0.754059374332428, 0.30719923973083496, -1.1088948249816895, 0.31158387660980225, 0.7384323477745056, -0.6038030385971069, 0.07456482946872711, -0.28635990619659424, -1.2907887697219849, -0.5299385190010071, 0.505602240562439, 1.8277287483215332, -0.806176483631134, 0.7454573512077332, 1.09740149974823, -0.6403023600578308, 0.07753073424100876, 0.2424023449420929, -0.28102028369903564, 0.8154919147491455, -0.9808552861213684, -0.6841793060302734, 1.239412546157837, -0.22386248409748077, -0.6643386483192444, 1.414767861366272, 0.7939277291297913, -1.0526790618896484, -0.2986780107021332, -0.16151441633701324, -0.7674012780189514, 0.02657408080995083, -1.5988500118255615, -0.11449193954467773, 0.3999725878238678, -1.583437204360962, -0.4762481451034546, -0.2918930649757385, 1.279033899307251, -0.14531278610229492, 1.3741416931152344, -0.38868245482444763, -0.055124275386333466, -0.21034838259220123, -0.4445422291755676, 0.2868034541606903, -0.2816237509250641, -0.6501427888870239, 0.11795832216739655, -0.8536011576652527, 0.43967974185943604, 1.4144766330718994, 0.34234824776649475, 0.03701812028884888, 0.4871010184288025, 1.1608262062072754, 0.5250728726387024, 0.16329805552959442, -0.9003472924232483, -1.5095657110214233, 1.970981240272522, -1.638016700744629, 2.0290420055389404, 0.6374544501304626, -0.000018911436200141907, -1.7216988801956177, -1.835382103919983, 1.3878984451293945, 1.1282392740249634, 2.2948825359344482, 0.6293967962265015, 0.35735946893692017, -0.9372555613517761, -0.6722875237464905, 0.21580880880355835, -0.9333395957946777, -0.7162403464317322, 0.1720469444990158, 2.448564291000366, 1.8539626598358154, -0.42895159125328064, -0.22940579056739807, -0.9217034578323364, 1.495253562927246, -0.22124579548835754, 0.3334866762161255, 2.009037494659424, -0.13394448161125183, -0.9994789958000183, 1.358359456062317, -2.4956424236297607, 0.25786346197128296, 2.029306650161743, 0.2959500253200531, 0.2276555746793747, -1.3728253841400146, -0.7173203825950623, -0.13017219305038452, -0.4470638036727905, -1.2593233585357666, 0.5307219624519348, -0.298730731010437, -0.691664457321167, -1.4677984714508057, 0.2516349256038666, -1.1182544231414795, -1.5836851596832275, 0.23623007535934448, 1.908973217010498, 2.191242218017578, -0.8800138235092163, 1.6687811613082886, -0.2406841665506363, 0.26806819438934326, 1.2916213274002075, 1.2285038232803345, 2.943087577819824, 1.853281021118164, -1.2468976974487305, 0.5755506753921509, -0.18439875543117523, -0.5226294994354248, 1.1182698011398315, -1.2079664468765259, 1.2003754377365112, -0.14885982871055603, -1.1058560609817505, -1.2356688976287842, 0.9037892818450928, 0.5321077108383179, 0.009502546861767769, -0.5127207636833191, 1.098568081855774, 0.01785179413855076, 1.2575342655181885, 0.6439977884292603, -0.3540724813938141, 0.5115694403648376, -0.3936658203601837, -0.571078360080719, 1.4902000427246094, 0.04484561085700989, -1.4065924882888794, -2.159099578857422, -0.20467938482761383, -0.8515025973320007, 0.013429170474410057, -0.5796541571617126, -1.0001307725906372, 1.5512615442276, 0.29771459102630615, -1.1874483823776245, -0.19976010918617249, -0.30783048272132874, -0.46654587984085083, 2.7026941776275635, -1.3630127906799316, -0.4030970335006714, -0.953224241733551, -0.6534923315048218, 1.6775057315826416, -1.0808818340301514, -0.22896221280097961, -1.110601782798767, -0.5582671761512756, -1.3809906244277954, -0.5109941959381104, -0.00012453272938728333, -0.8733748197555542, 0.8974552750587463, 0.40072569251060486, -1.214738368988037, -0.41928791999816895, -0.9231424331665039, 0.9397531747817993, -0.1587955355644226, 0.22471314668655396, 1.9302371740341187, 0.35405850410461426, -0.3508453369140625, 0.8683019876480103, 1.094936728477478, 0.65962153673172, -0.5887050628662109, 0.2353607416152954, -0.566645622253418, 0.34761425852775574, -1.4200208187103271, 0.2681693136692047, -2.8664562702178955, 0.638340950012207, 0.07991695404052734, -0.07674484699964523, -0.09068798273801804, -1.372201919555664, 1.1143269538879395, 2.5204341411590576, -1.2523635625839233, 0.5670915246009827, 0.37166616320610046, 1.3058438301086426, -1.7042218446731567, 0.2430281937122345, -0.3985458016395569, 2.141080617904663, 0.11716121435165405, 1.2153546810150146, -0.48941197991371155, -2.4824609756469727, 0.5624978542327881, -1.3710074424743652, -1.0623462200164795, 0.6002478003501892, -0.9229802489280701, 0.18081407248973846, -1.5897636413574219, -0.3168836832046509, -0.9676288962364197, -1.2666161060333252, 0.7147335410118103, 0.21046000719070435, 0.2551288604736328, -0.6315132975578308, 0.4366743862628937, -2.153062343597412, -1.440218448638916, -0.19459949433803558, -0.900729238986969, 0.5409393310546875, -0.4046972990036011, 0.7277631163597107, -0.14975428581237793, -0.030379289761185646, 0.2794254720211029, 1.4397159814834595, 3.447422742843628, 0.2313658595085144, 0.4231756925582886, -0.16883701086044312, -0.9485796093940735, 1.487992525100708, 0.9485653638839722, -0.1636650711297989, -0.4771862328052521, -1.0930266380310059, 1.3650561571121216, 1.92914617061615, 0.9330050945281982, -0.011831553652882576, -0.7557032108306885, -0.7309466004371643, -0.0025745313614606857, 0.20039957761764526, 0.5504845380783081, 0.7959803938865662, 0.0036776401102542877, 0.021053044125437737, 1.377028226852417, 1.0546702146530151, -0.4379722774028778, 0.27771955728530884, -0.8593732714653015, -0.447602242231369, 0.5313048362731934, 0.21068067848682404, -0.08070601522922516, 0.3153569996356964, -1.0157127380371094, -0.22175002098083496, -0.3124667704105377, -0.8616585731506348, -0.623555064201355, -0.4326666295528412, -0.31512606143951416, 1.4994781017303467, 0.28767597675323486, -0.5764310956001282, -0.1299656182527542, -0.733170747756958, -0.13099630177021027, -1.0528422594070435, 0.18878932297229767, -0.17980685830116272, -0.1286047101020813, -0.2746984362602234, 1.7442582845687866, -0.8635091781616211, -2.0319273471832275, 0.06263551861047745, 0.4035383462905884, -0.21015509963035583, 0.2677415609359741, 1.7243967056274414, 0.46136635541915894, 1.337310791015625, 1.2961188554763794, 0.9848007559776306, -0.5543977618217468, -1.3326789140701294, 0.6495314240455627, 1.0942611694335938, -1.3677654266357422, 0.8620377779006958, -0.004416174255311489, -0.48617950081825256, 0.639465868473053, 1.4359182119369507, 0.512525200843811, -2.010983943939209, 0.7443073987960815, -1.100405216217041, 0.9091424345970154, 0.758132815361023, 0.6970874071121216, 0.23150654137134552, 0.8114862442016602, -1.2330900430679321, -1.106630802154541, -0.7855936884880066, -0.787449836730957, 1.986129879951477, -0.3293386399745941, 0.5792548656463623, -0.057408496737480164, -1.3487902879714966, -0.08715449273586273, 0.6844421625137329, 0.30248206853866577, -0.47074565291404724, 0.8423973917961121, -0.7127335071563721, -1.1809935569763184, -1.2610762119293213, -0.43258097767829895, -0.973717212677002, -1.0261746644973755, 1.0436264276504517, 0.813497006893158, 0.20774756371974945, 1.853366494178772, 0.6958568692207336, 0.1739315241575241, -2.520869255065918, 0.8932065367698669, 0.29476484656333923, -0.07350194454193115, 0.7303377985954285, 0.34907880425453186, 1.0868149995803833, 0.03308088332414627, 0.5945289134979248, -2.361778736114502, 2.2126657962799072, -0.19158673286437988, 0.784952700138092, -0.13087023794651031, -0.1242203637957573, 1.0831375122070312, 0.4720456600189209, 0.5386165380477905, -0.9928233027458191, 0.6059018969535828, -0.572088897228241, 1.2684671878814697, 0.924616277217865, -0.8178325295448303, -0.014665939845144749, 1.256166696548462, 0.32513800263404846, -0.6267355680465698, -0.9859787225723267, -0.8778563737869263, 0.9401030540466309, 1.7086989879608154, -0.09625281393527985, -0.05695272982120514, 0.8696677088737488, 0.6227042078971863, -1.3109263181686401, -0.004889096599072218, -0.5966864824295044, -0.6386650800704956, 1.7934324741363525, 2.0420312881469727, -0.31502899527549744, -0.15418493747711182, -0.6340811848640442, -1.2900294065475464, 0.7194628119468689, -0.08397785574197769, 0.08605095744132996, 0.5983439683914185, -0.6344918012619019, 0.9710721373558044, 0.7911200523376465, 0.8554033637046814, 0.07514936476945877, 0.23120379447937012, 0.4549419581890106, -0.48025989532470703, -1.1401036977767944, -0.2825300097465515, -1.1952394247055054, -2.536172389984131, 0.3778199553489685, -0.04862094670534134, -1.2970693111419678, 0.05081871896982193, -0.9695202112197876, 1.125498652458191, -0.5580993890762329, -1.184282660484314, -1.323978066444397, 0.20019838213920593, -0.036471202969551086, 0.7879369854927063, -1.6787633895874023, -0.06443028897047043, 1.2755125761032104, 0.9749524593353271, -0.712508499622345, 1.0569000244140625, 0.24092087149620056, 1.167116403579712, 0.7335269451141357, -0.31212881207466125, 0.5538298487663269, 0.014629881829023361, -1.2904654741287231, 0.49633505940437317, 1.1795612573623657, 0.16367699205875397, 1.4590613842010498, -0.4956693649291992, -0.08699973672628403, 0.38522830605506897, -0.7010034322738647, -0.49448099732398987, -0.40995946526527405, 0.613399863243103, 0.03632824122905731, -0.8267841935157776, 0.027066176757216454, 0.03700101375579834, -0.22037552297115326, 0.15566210448741913, -1.5541112422943115, -0.18579399585723877, -0.42088592052459717, -0.4968408942222595, -1.2612651586532593, -0.07360437512397766, 1.3837724924087524, -0.6628347635269165, -0.3403995633125305, 0.5666272640228271, 0.27867546677589417, 0.47036823630332947, 0.6327371001243591, -0.7089471220970154, -0.3113788068294525, -0.1772165596485138, -0.3968242406845093, 0.3000216782093048, 1.4039663076400757, -0.10044126957654953, -0.9511929154396057, 0.7014850974082947, -0.3540934920310974, 0.039665959775447845, 1.7531909942626953, -0.050664737820625305, -0.8320040702819824, 0.24187397956848145, -0.8337567448616028, 1.9331209659576416, 1.6404592990875244, 1.3531063795089722, -0.30350834131240845, -0.8344355225563049, 0.7243396043777466, -0.4018510580062866, -0.44715994596481323, 0.8195428848266602, 0.44994011521339417, -0.24799281358718872, -1.4420976638793945, 0.7214716672897339, 1.2062315940856934, -0.8362542390823364, -0.7824879884719849, 0.2122475951910019, -0.7433204650878906, 1.157200813293457, 0.663115918636322, 0.3663489818572998, 0.29424095153808594, 1.68765389919281, 0.8362764120101929, -0.4727134704589844, 0.5578219890594482, 0.5926656126976013, -0.2636367678642273, -2.1175012588500977, -1.2021864652633667, 0.2328300029039383, -0.5038480162620544, -1.648079752922058, 1.3315149545669556, -1.0738202333450317, -0.9355883002281189, 0.5937062501907349, 0.07223145663738251, 1.3206416368484497, 0.44295206665992737, 1.4463157653808594, 2.0324454307556152, 0.7508132457733154, 0.47082778811454773, 1.2027428150177002, -0.22329573333263397, -0.5145155191421509, 1.8428082466125488, -0.41474711894989014, 0.5459504723548889, 1.184779405593872, -0.26881399750709534, -1.1257392168045044, -0.7222339510917664, -1.2915698289871216, -0.6185115575790405, 1.1978543996810913, 0.07871145009994507, -1.139678716659546, 0.2884250283241272, 1.60796058177948, 0.09942718595266342, -0.3924225866794586, 0.7220232486724854, 0.4195111393928528, -0.9116301536560059, -0.03813213109970093, -0.894504964351654, 0.4704883098602295, -0.23877283930778503, -0.2051164209842682, 0.33965808153152466, 0.45029643177986145, 1.3627941608428955, 0.03556043654680252, 0.1831722855567932, 1.019415020942688, -1.4226657152175903, 1.502476692199707, -0.8157408833503723, 0.3749333918094635, -2.3819401264190674, 1.3221628665924072, -0.7576752305030823, 2.047569751739502, -2.657531261444092, 0.4750349819660187, -0.6593559980392456, -0.4944072365760803, 0.28133299946784973, -0.40048670768737793, -0.036875169724226, -0.03363931179046631, -1.0917178392410278, 0.10395441204309464, -0.6048415303230286, 0.5026395916938782, 1.2217121124267578, 1.3103927373886108, -1.1014460325241089, -0.2356153279542923, -1.7742732763290405, -0.2608051598072052, -0.8124184608459473, 0.3241462707519531, -2.0525975227355957, -0.2909337282180786, -1.8722374439239502, -2.199678659439087, -1.1734040975570679, -0.805183470249176, 1.1773818731307983, 0.14880791306495667, -0.8818740248680115, 1.3180196285247803, -0.3696480393409729, -1.7510167360305786, 1.0695911645889282, -2.086514472961426 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
The most surprising part to me is the saving time. Wondering if it could be due to compression (`ParquetWriter` uses SNAPPY compression by default; it can be turned off with `to_parquet(..., compression=None)`).
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
949
32
Performance of `datasets` at scale # Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis The most surprising part to me is the saving time. Wondering if it could be due to compression (`ParquetWriter` uses SNAPPY compression by default; it can be turned off with `to_parquet(..., compression=None)`).
[ -1.2459115982055664, -1.085484504699707, -0.5615013241767883, 1.308707356452942, -0.28444039821624756, -1.3703457117080688, 0.1407173126935959, -1.0868443250656128, 1.7061281204223633, -0.7032343745231628, 0.22635433077812195, -1.5785973072052002, 0.0475088469684124, -0.5434489250183105, -0.8737079501152039, -0.738923966884613, -0.49646997451782227, -0.8860553503036499, 0.9798590540885925, 2.4456777572631836, 1.2050249576568604, -1.4585615396499634, 2.764174461364746, 0.6413944959640503, -0.23858147859573364, -0.946540355682373, 0.44864314794540405, 0.17824728786945343, -1.3212333917617798, -0.5166207551956177, -0.8697325587272644, -0.11175984889268875, -0.41231077909469604, -0.47408533096313477, 0.1574353128671646, 0.2854568362236023, -0.06997012346982956, -0.5823003053665161, -0.5916378498077393, -0.5733227729797363, 0.4544323682785034, -0.41112595796585083, 0.8974988460540771, -0.42645740509033203, 1.8936396837234497, -0.6601123213768005, 0.394692599773407, 0.5936354398727417, 1.4607335329055786, 0.20325236022472382, -0.024998528882861137, 0.48341691493988037, 0.509539783000946, -0.07853280752897263, 0.46941232681274414, 1.228735327720642, 0.7072346210479736, 0.5507405996322632, 0.7746281027793884, -2.0826659202575684, 1.406026840209961, -1.0170824527740479, 0.3872658610343933, 1.4283853769302368, -1.0317078828811646, 0.46722251176834106, -1.7995752096176147, -0.00022046547383069992, 0.48144328594207764, -2.454025983810425, 0.11828579008579254, -1.2427647113800049, -0.6528396606445312, 0.9438347220420837, 0.28299713134765625, -1.3245512247085571, 0.20039698481559753, -0.667538583278656, 0.9922962784767151, 0.28738313913345337, 1.1359471082687378, -1.742730975151062, -0.2619478106498718, -0.167596235871315, -0.0022910605184733868, -1.2577019929885864, -1.636776328086853, 0.701421320438385, 0.5780297517776489, 0.49936431646347046, -0.20766432583332062, 0.9451309442520142, -1.0546432733535767, 0.9831545352935791, -0.9741409420967102, -1.6528253555297852, -1.4718810319900513, -2.227277994155884, -2.0518839359283447, 0.9723256826400757, -0.4958450198173523, -0.5753060579299927, 2.0137035846710205, -0.9224995374679565, -1.7223552465438843, 1.0848844051361084, 0.22965727746486664, 0.04713545739650726, 2.3430206775665283, 0.15233024954795837, -0.6208512187004089, 0.2780289649963379, -0.6803231239318848, 0.8611716032028198, -0.5466234683990479, 1.3305562734603882, 0.288685142993927, -1.0410150289535522, 1.4868496656417847, -0.3621891736984253, 0.6338826417922974, -0.646043598651886, -0.5877416133880615, -0.7861722111701965, 0.40991806983947754, 2.036832571029663, -0.267673134803772, 1.5457372665405273, -0.46040380001068115, -1.690617322921753, -1.5661017894744873, 0.8720183968544006, 0.6406159400939941, -0.7675029635429382, 0.004397290758788586, -0.37169313430786133, 0.05453949421644211, -0.0530235692858696, 1.0374401807785034, 1.262500524520874, 0.6713477373123169, -0.43481576442718506, -0.7896360158920288, 0.22802361845970154, -0.1687326282262802, -0.7109725475311279, -1.8449578285217285, -0.4328150749206543, 0.1954198181629181, 0.5924069285392761, -1.1820710897445679, 1.5144972801208496, 0.91934734582901, 1.9595811367034912, 0.9911375641822815, -0.33564233779907227, 1.3839071989059448, 0.11533714085817337, 1.7268816232681274, -0.7146642804145813, 0.7661923170089722, -0.3955622911453247, -1.0368212461471558, 0.7595661282539368, -0.46666067838668823, -2.1064047813415527, -0.6065295934677124, -0.8791414499282837, -0.2298414260149002, -0.7018045783042908, 0.9493044018745422, -0.2830870747566223, -1.2584694623947144, 0.09957564622163773, -0.6581926345825195, 0.18257564306259155, -1.1906613111495972, 0.3771805167198181, 0.9030588269233704, -0.616484522819519, -0.04512552171945572, -0.3278312683105469, -1.1996266841888428, -0.5486714243888855, 0.29387766122817993, 1.8606653213500977, -0.765174150466919, 1.003651738166809, 0.8642367124557495, -0.775795578956604, 0.04538092389702797, 0.3786633014678955, -0.23648913204669952, 0.8776372671127319, -1.0906256437301636, -0.28509610891342163, 1.0110365152359009, -0.250807523727417, -0.26905369758605957, 1.5045201778411865, 0.692654013633728, -0.9629088640213013, -0.18431635200977325, -0.16264192759990692, -1.0015588998794556, -0.003508075140416622, -1.576310157775879, -0.21270690858364105, 0.11725233495235443, -1.5313972234725952, -0.6176426410675049, -0.36899203062057495, 1.233617901802063, -0.09456883370876312, 1.3343409299850464, -0.24059675633907318, -0.4213866591453552, -0.40399008989334106, -0.37064796686172485, 0.19394637644290924, -0.33937251567840576, -0.5945892930030823, 0.2398899793624878, -0.7108475565910339, 0.30073708295822144, 1.5073766708374023, 0.48047155141830444, -0.02179790288209915, 0.604893147945404, 1.0173203945159912, 0.2774544954299927, -0.15108799934387207, -0.8527742028236389, -1.6315099000930786, 1.941739559173584, -1.5965900421142578, 1.9349337816238403, 0.8831770420074463, -0.023314330726861954, -1.572715401649475, -1.9598355293273926, 1.3044748306274414, 1.2788074016571045, 2.3810606002807617, 0.5611491203308105, 0.36126989126205444, -0.8305363655090332, -0.6576316356658936, 0.2951381206512451, -1.0771716833114624, -0.7624456286430359, -0.015434075146913528, 2.2762842178344727, 1.864140510559082, -0.6121077537536621, -0.16119568049907684, -1.1378860473632812, 1.4948409795761108, -0.10946108400821686, 0.18718430399894714, 2.0213284492492676, -0.32911407947540283, -1.0028126239776611, 1.3248178958892822, -2.2356388568878174, 0.18670512735843658, 1.9326287508010864, 0.40738868713378906, 0.1067897155880928, -1.3928070068359375, -0.5255807638168335, -0.2871370315551758, -0.20222097635269165, -1.2759020328521729, 0.47356098890304565, -0.30801427364349365, -0.7136837244033813, -1.6091399192810059, 0.09019429236650467, -1.2131776809692383, -1.5740525722503662, 0.4856516718864441, 1.9868372678756714, 1.8882389068603516, -0.5449538826942444, 1.4877578020095825, -0.34324854612350464, 0.034948304295539856, 1.2038484811782837, 1.1570366621017456, 3.15362286567688, 2.0129554271698, -1.0735015869140625, 0.5321981310844421, -0.19897332787513733, -0.45084071159362793, 0.9794830083847046, -1.0419152975082397, 1.2475764751434326, -0.06578527390956879, -1.0208781957626343, -1.1448253393173218, 0.9586596488952637, 0.5591980814933777, 0.04219341278076172, -0.48081856966018677, 1.0977988243103027, 0.06832216680049896, 1.379523515701294, 0.568589985370636, -0.4016410708427429, 0.682549774646759, -0.4313797354698181, -0.5254173278808594, 1.6491912603378296, 0.24579693377017975, -1.3873010873794556, -2.348768949508667, -0.21013380587100983, -0.8101773858070374, 0.21837544441223145, -0.6485983729362488, -0.9974345564842224, 1.6841684579849243, 0.5265687704086304, -1.199898600578308, -0.2940739393234253, -0.3556514382362366, -0.7555682063102722, 2.5014476776123047, -1.4702547788619995, -0.22803804278373718, -0.9102830290794373, -0.4942137598991394, 1.5558167695999146, -1.2692869901657104, -0.24486200511455536, -0.9909076690673828, -0.4797203540802002, -1.0947084426879883, -0.5089869499206543, -0.1014837697148323, -0.9535539746284485, 1.0087382793426514, 0.08132898062467575, -1.1341193914413452, -0.3044395446777344, -0.871048629283905, 0.7741255760192871, -0.10565152764320374, 0.12850795686244965, 1.8841384649276733, 0.31689387559890747, -0.3654971122741699, 0.7255600690841675, 1.268324851989746, 0.6258646249771118, -0.7210979461669922, 0.19037698209285736, -0.6007939577102661, 0.33197182416915894, -1.3056280612945557, 0.41663217544555664, -2.8566668033599854, 0.5922811627388, -0.12760019302368164, 0.007143665105104446, 0.03955652564764023, -1.4421074390411377, 1.0693587064743042, 2.608949661254883, -1.10871422290802, 0.42954927682876587, 0.2815259099006653, 1.3149943351745605, -1.6548426151275635, 0.43222498893737793, -0.39364832639694214, 2.089731216430664, 0.24128560721874237, 1.146803855895996, -0.6155927181243896, -2.190720558166504, 0.47920507192611694, -1.119803786277771, -1.2110321521759033, 0.4570636749267578, -0.784477174282074, 0.10139758884906769, -1.6030972003936768, -0.14181604981422424, -0.7727633118629456, -1.1431835889816284, 0.5897532105445862, 0.10587701201438904, 0.3070090413093567, -0.7024984955787659, 0.2884320616722107, -2.096721887588501, -1.4098820686340332, -0.2683965563774109, -0.7932614088058472, 0.5726569890975952, -0.452223002910614, 0.673434853553772, -0.06898336112499237, 0.11981399357318878, 0.19509845972061157, 1.4787355661392212, 3.2304627895355225, 0.07774577289819717, 0.32771486043930054, -0.1880512237548828, -0.8386987447738647, 1.3844720125198364, 0.9753804802894592, 0.05052727460861206, -0.639417827129364, -1.0898007154464722, 1.3661874532699585, 1.9550338983535767, 1.024787425994873, 0.05378474295139313, -0.7622554898262024, -0.6812810301780701, -0.08980423957109451, 0.22139494121074677, 0.44062691926956177, 1.0122543573379517, 0.15717816352844238, 0.18880748748779297, 1.4058529138565063, 1.2936089038848877, -0.6051363945007324, 0.4880638122558594, -0.8313747048377991, -0.6068835258483887, 0.3145366311073303, 0.4454522728919983, -0.10758763551712036, 0.1386980414390564, -1.0650155544281006, -0.2908557057380676, -0.35555732250213623, -0.8969869017601013, -0.640812873840332, -0.410062313079834, -0.4445585608482361, 1.765034794807434, 0.1203707605600357, -0.5179769396781921, -0.15114650130271912, -0.6526755094528198, 0.017273791134357452, -1.0205910205841064, 0.4165724515914917, -0.03070823848247528, -0.08339838683605194, -0.08246210217475891, 1.7847870588302612, -0.8251115083694458, -2.1019163131713867, 0.29210054874420166, 0.21987023949623108, -0.4810141324996948, 0.028317414224147797, 1.545642614364624, 0.5668153762817383, 1.555347204208374, 1.4796288013458252, 0.9696490168571472, -0.6550406813621521, -1.4326896667480469, 0.5805115103721619, 0.8343549966812134, -1.427727460861206, 0.6215251088142395, 0.13106060028076172, -0.5480961799621582, 0.7195261716842651, 1.5010249614715576, 0.3884720802307129, -2.0682265758514404, 0.9642407894134521, -0.9325361847877502, 0.8500118851661682, 0.8887795805931091, 0.6653574109077454, 0.30343854427337646, 0.87413090467453, -1.3390333652496338, -1.188852310180664, -0.9635980725288391, -0.6542008519172668, 2.0830416679382324, -0.23463067412376404, 0.45067334175109863, -0.17230764031410217, -1.2301788330078125, -0.12736284732818604, 0.6550357937812805, 0.49723851680755615, -0.3119170069694519, 0.7445542216300964, -0.5626440048217773, -1.075240135192871, -1.5114870071411133, -0.44127368927001953, -0.9122763872146606, -0.8469891548156738, 0.961471438407898, 1.0246648788452148, 0.4076402187347412, 1.9172126054763794, 0.6009277701377869, 0.24514077603816986, -2.619688034057617, 0.89643394947052, 0.3268214464187622, -0.159846231341362, 0.9702691435813904, 0.21203775703907013, 1.0254604816436768, 0.10647230595350266, 0.4853835105895996, -2.4189493656158447, 2.2927744388580322, -0.18275313079357147, 0.8125804662704468, 0.0039046015590429306, -0.11869551241397858, 1.361383080482483, 0.5633914470672607, 0.549182653427124, -1.0729846954345703, 0.747377336025238, -0.47289353609085083, 1.1963738203048706, 0.7839943170547485, -0.661807119846344, -0.08561856299638748, 1.3177276849746704, 0.6060777306556702, -0.5662232637405396, -0.9777100682258606, -1.0408687591552734, 0.8011453747749329, 1.900769829750061, -0.04204617440700531, 0.058594271540641785, 0.7194890379905701, 0.7744873762130737, -1.218035101890564, 0.11103864759206772, -0.7726755738258362, -0.7258076071739197, 1.510989785194397, 2.1084282398223877, 0.008051399141550064, -0.17163482308387756, -0.6198418736457825, -1.2784503698349, 0.7074269652366638, 0.07696875184774399, 0.20703797042369843, 0.7254757881164551, -0.6546854376792908, 1.175117015838623, 0.9419538974761963, 0.958131730556488, 0.05734170973300934, 0.348128080368042, 0.3955993056297302, -0.24397076666355133, -1.090119481086731, -0.21298673748970032, -1.1181256771087646, -2.364732027053833, 0.44487136602401733, -0.2413148134946823, -1.445378303527832, 0.0890747606754303, -1.0593606233596802, 0.8915526866912842, -0.5567567348480225, -1.139286756515503, -1.749943494796753, 0.08766016364097595, -0.008507643826305866, 0.9529123902320862, -1.569706678390503, -0.18448908627033234, 1.1290336847305298, 0.6957939863204956, -0.4949738383293152, 0.8939705491065979, 0.21669813990592957, 0.9733564853668213, 0.8477530479431152, -0.37924647331237793, 0.2584415674209595, 0.08803071081638336, -1.315723180770874, 0.5152037739753723, 1.2228553295135498, 0.20002180337905884, 1.3665075302124023, -0.6372082829475403, 0.12903930246829987, 0.520492672920227, -0.5036487579345703, -0.45331913232803345, -0.41709983348846436, 0.6268783807754517, -0.0009430856443941593, -0.9305761456489563, 0.03607381880283356, -0.12324122339487076, -0.2646580934524536, 0.18157465755939484, -1.5179816484451294, -0.19724203646183014, -0.48133403062820435, -0.5375105738639832, -1.2041971683502197, -0.05529950186610222, 1.421600341796875, -0.7489649057388306, -0.3115631341934204, 0.6663616299629211, 0.5944638848304749, 0.5317005515098572, 0.7382652163505554, -0.6726022362709045, -0.30901360511779785, -0.10070882737636566, -0.3897212743759155, 0.1789889931678772, 1.3120484352111816, -0.20941415429115295, -0.9209741950035095, 0.5166224837303162, -0.3994506001472473, 0.020664013922214508, 1.9781453609466553, 0.04379693791270256, -0.7432399988174438, 0.35656601190567017, -0.7891929745674133, 1.874103307723999, 1.6686874628067017, 1.3248229026794434, -0.029564982280135155, -1.0146840810775757, 0.41792112588882446, -0.14184753596782684, -0.3397948145866394, 0.8780308961868286, 0.5665157437324524, -0.2471618950366974, -1.3693482875823975, 0.5104424357414246, 1.2919961214065552, -0.9859429001808167, -0.7519710659980774, 0.12802442908287048, -0.7650231719017029, 1.0632610321044922, 0.5733033418655396, 0.5143510103225708, 0.23059101402759552, 1.7103606462478638, 0.6515740156173706, -0.39852410554885864, 0.44570833444595337, 0.5694752335548401, -0.22607797384262085, -2.1641921997070312, -1.2519505023956299, 0.2675885558128357, -0.5180150866508484, -1.5377490520477295, 1.3306868076324463, -1.0680032968521118, -0.8335397839546204, 0.4721638560295105, 0.23110119998455048, 1.5206466913223267, 0.4001099467277527, 1.7081074714660645, 2.05607533454895, 0.9977239966392517, 0.370482861995697, 1.403464674949646, -0.004109907429665327, -0.595691978931427, 1.8476462364196777, -0.42740875482559204, 0.41278523206710815, 1.1450656652450562, -0.4302513599395752, -1.2472281455993652, -0.6992220282554626, -1.128064751625061, -0.6685419082641602, 1.0909860134124756, 0.11668375879526138, -1.1885080337524414, 0.18567383289337158, 1.4985774755477905, 0.28255152702331543, -0.3061850070953369, 0.3939640522003174, 0.439151406288147, -0.7356023192405701, -0.12120077759027481, -1.0377172231674194, 0.3894270658493042, -0.2866339683532715, -0.4666748642921448, 0.230389803647995, 0.5288941860198975, 1.2474440336227417, -0.05148550868034363, 0.10207753628492355, 1.1798325777053833, -1.582263708114624, 1.387762188911438, -0.7695527076721191, 0.2550505995750427, -2.5075058937072754, 1.6998504400253296, -0.7366784811019897, 2.009599208831787, -2.670151710510254, 0.4323400855064392, -0.708115816116333, -0.3407406210899353, 0.36827772855758667, -0.2045455127954483, 0.21040572226047516, -0.030731573700904846, -1.2621843814849854, -0.029711134731769562, -0.787212073802948, 0.5918548703193665, 1.2544362545013428, 1.4187663793563843, -1.1274394989013672, -0.21002459526062012, -1.7143058776855469, -0.15556980669498444, -0.639647901058197, 0.3901858329772949, -1.9784098863601685, -0.06301575899124146, -1.7390971183776855, -2.203162670135498, -1.4078843593597412, -0.8880009055137634, 0.92872154712677, 0.12433414161205292, -0.8223596215248108, 1.1281882524490356, -0.42790621519088745, -1.7523399591445923, 1.165893793106079, -2.204569101333618 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
+1 to what @mariosasko mentioned. Also, @lvwerra did you parallelize `to_parquet` using similar approach in #2747? (we used multiprocessing at the shard level). I'm working on a similar PR to add multi_proc in `to_parquet` which might give you further speed up. Stas benchmarked his approach and mine in this [gist](https://gist.github.com/stas00/dc1597a1e245c5915cfeefa0eee6902c) for `lama` dataset when we were working on adding multi_proc support for `to_json`.
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
949
63
Performance of `datasets` at scale # Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis +1 to what @mariosasko mentioned. Also, @lvwerra did you parallelize `to_parquet` using similar approach in #2747? (we used multiprocessing at the shard level). I'm working on a similar PR to add multi_proc in `to_parquet` which might give you further speed up. Stas benchmarked his approach and mine in this [gist](https://gist.github.com/stas00/dc1597a1e245c5915cfeefa0eee6902c) for `lama` dataset when we were working on adding multi_proc support for `to_json`.
[ -1.2459115982055664, -1.085484504699707, -0.5615013241767883, 1.308707356452942, -0.28444039821624756, -1.3703457117080688, 0.1407173126935959, -1.0868443250656128, 1.7061281204223633, -0.7032343745231628, 0.22635433077812195, -1.5785973072052002, 0.0475088469684124, -0.5434489250183105, -0.8737079501152039, -0.738923966884613, -0.49646997451782227, -0.8860553503036499, 0.9798590540885925, 2.4456777572631836, 1.2050249576568604, -1.4585615396499634, 2.764174461364746, 0.6413944959640503, -0.23858147859573364, -0.946540355682373, 0.44864314794540405, 0.17824728786945343, -1.3212333917617798, -0.5166207551956177, -0.8697325587272644, -0.11175984889268875, -0.41231077909469604, -0.47408533096313477, 0.1574353128671646, 0.2854568362236023, -0.06997012346982956, -0.5823003053665161, -0.5916378498077393, -0.5733227729797363, 0.4544323682785034, -0.41112595796585083, 0.8974988460540771, -0.42645740509033203, 1.8936396837234497, -0.6601123213768005, 0.394692599773407, 0.5936354398727417, 1.4607335329055786, 0.20325236022472382, -0.024998528882861137, 0.48341691493988037, 0.509539783000946, -0.07853280752897263, 0.46941232681274414, 1.228735327720642, 0.7072346210479736, 0.5507405996322632, 0.7746281027793884, -2.0826659202575684, 1.406026840209961, -1.0170824527740479, 0.3872658610343933, 1.4283853769302368, -1.0317078828811646, 0.46722251176834106, -1.7995752096176147, -0.00022046547383069992, 0.48144328594207764, -2.454025983810425, 0.11828579008579254, -1.2427647113800049, -0.6528396606445312, 0.9438347220420837, 0.28299713134765625, -1.3245512247085571, 0.20039698481559753, -0.667538583278656, 0.9922962784767151, 0.28738313913345337, 1.1359471082687378, -1.742730975151062, -0.2619478106498718, -0.167596235871315, -0.0022910605184733868, -1.2577019929885864, -1.636776328086853, 0.701421320438385, 0.5780297517776489, 0.49936431646347046, -0.20766432583332062, 0.9451309442520142, -1.0546432733535767, 0.9831545352935791, -0.9741409420967102, -1.6528253555297852, -1.4718810319900513, -2.227277994155884, -2.0518839359283447, 0.9723256826400757, -0.4958450198173523, -0.5753060579299927, 2.0137035846710205, -0.9224995374679565, -1.7223552465438843, 1.0848844051361084, 0.22965727746486664, 0.04713545739650726, 2.3430206775665283, 0.15233024954795837, -0.6208512187004089, 0.2780289649963379, -0.6803231239318848, 0.8611716032028198, -0.5466234683990479, 1.3305562734603882, 0.288685142993927, -1.0410150289535522, 1.4868496656417847, -0.3621891736984253, 0.6338826417922974, -0.646043598651886, -0.5877416133880615, -0.7861722111701965, 0.40991806983947754, 2.036832571029663, -0.267673134803772, 1.5457372665405273, -0.46040380001068115, -1.690617322921753, -1.5661017894744873, 0.8720183968544006, 0.6406159400939941, -0.7675029635429382, 0.004397290758788586, -0.37169313430786133, 0.05453949421644211, -0.0530235692858696, 1.0374401807785034, 1.262500524520874, 0.6713477373123169, -0.43481576442718506, -0.7896360158920288, 0.22802361845970154, -0.1687326282262802, -0.7109725475311279, -1.8449578285217285, -0.4328150749206543, 0.1954198181629181, 0.5924069285392761, -1.1820710897445679, 1.5144972801208496, 0.91934734582901, 1.9595811367034912, 0.9911375641822815, -0.33564233779907227, 1.3839071989059448, 0.11533714085817337, 1.7268816232681274, -0.7146642804145813, 0.7661923170089722, -0.3955622911453247, -1.0368212461471558, 0.7595661282539368, -0.46666067838668823, -2.1064047813415527, -0.6065295934677124, -0.8791414499282837, -0.2298414260149002, -0.7018045783042908, 0.9493044018745422, -0.2830870747566223, -1.2584694623947144, 0.09957564622163773, -0.6581926345825195, 0.18257564306259155, -1.1906613111495972, 0.3771805167198181, 0.9030588269233704, -0.616484522819519, -0.04512552171945572, -0.3278312683105469, -1.1996266841888428, -0.5486714243888855, 0.29387766122817993, 1.8606653213500977, -0.765174150466919, 1.003651738166809, 0.8642367124557495, -0.775795578956604, 0.04538092389702797, 0.3786633014678955, -0.23648913204669952, 0.8776372671127319, -1.0906256437301636, -0.28509610891342163, 1.0110365152359009, -0.250807523727417, -0.26905369758605957, 1.5045201778411865, 0.692654013633728, -0.9629088640213013, -0.18431635200977325, -0.16264192759990692, -1.0015588998794556, -0.003508075140416622, -1.576310157775879, -0.21270690858364105, 0.11725233495235443, -1.5313972234725952, -0.6176426410675049, -0.36899203062057495, 1.233617901802063, -0.09456883370876312, 1.3343409299850464, -0.24059675633907318, -0.4213866591453552, -0.40399008989334106, -0.37064796686172485, 0.19394637644290924, -0.33937251567840576, -0.5945892930030823, 0.2398899793624878, -0.7108475565910339, 0.30073708295822144, 1.5073766708374023, 0.48047155141830444, -0.02179790288209915, 0.604893147945404, 1.0173203945159912, 0.2774544954299927, -0.15108799934387207, -0.8527742028236389, -1.6315099000930786, 1.941739559173584, -1.5965900421142578, 1.9349337816238403, 0.8831770420074463, -0.023314330726861954, -1.572715401649475, -1.9598355293273926, 1.3044748306274414, 1.2788074016571045, 2.3810606002807617, 0.5611491203308105, 0.36126989126205444, -0.8305363655090332, -0.6576316356658936, 0.2951381206512451, -1.0771716833114624, -0.7624456286430359, -0.015434075146913528, 2.2762842178344727, 1.864140510559082, -0.6121077537536621, -0.16119568049907684, -1.1378860473632812, 1.4948409795761108, -0.10946108400821686, 0.18718430399894714, 2.0213284492492676, -0.32911407947540283, -1.0028126239776611, 1.3248178958892822, -2.2356388568878174, 0.18670512735843658, 1.9326287508010864, 0.40738868713378906, 0.1067897155880928, -1.3928070068359375, -0.5255807638168335, -0.2871370315551758, -0.20222097635269165, -1.2759020328521729, 0.47356098890304565, -0.30801427364349365, -0.7136837244033813, -1.6091399192810059, 0.09019429236650467, -1.2131776809692383, -1.5740525722503662, 0.4856516718864441, 1.9868372678756714, 1.8882389068603516, -0.5449538826942444, 1.4877578020095825, -0.34324854612350464, 0.034948304295539856, 1.2038484811782837, 1.1570366621017456, 3.15362286567688, 2.0129554271698, -1.0735015869140625, 0.5321981310844421, -0.19897332787513733, -0.45084071159362793, 0.9794830083847046, -1.0419152975082397, 1.2475764751434326, -0.06578527390956879, -1.0208781957626343, -1.1448253393173218, 0.9586596488952637, 0.5591980814933777, 0.04219341278076172, -0.48081856966018677, 1.0977988243103027, 0.06832216680049896, 1.379523515701294, 0.568589985370636, -0.4016410708427429, 0.682549774646759, -0.4313797354698181, -0.5254173278808594, 1.6491912603378296, 0.24579693377017975, -1.3873010873794556, -2.348768949508667, -0.21013380587100983, -0.8101773858070374, 0.21837544441223145, -0.6485983729362488, -0.9974345564842224, 1.6841684579849243, 0.5265687704086304, -1.199898600578308, -0.2940739393234253, -0.3556514382362366, -0.7555682063102722, 2.5014476776123047, -1.4702547788619995, -0.22803804278373718, -0.9102830290794373, -0.4942137598991394, 1.5558167695999146, -1.2692869901657104, -0.24486200511455536, -0.9909076690673828, -0.4797203540802002, -1.0947084426879883, -0.5089869499206543, -0.1014837697148323, -0.9535539746284485, 1.0087382793426514, 0.08132898062467575, -1.1341193914413452, -0.3044395446777344, -0.871048629283905, 0.7741255760192871, -0.10565152764320374, 0.12850795686244965, 1.8841384649276733, 0.31689387559890747, -0.3654971122741699, 0.7255600690841675, 1.268324851989746, 0.6258646249771118, -0.7210979461669922, 0.19037698209285736, -0.6007939577102661, 0.33197182416915894, -1.3056280612945557, 0.41663217544555664, -2.8566668033599854, 0.5922811627388, -0.12760019302368164, 0.007143665105104446, 0.03955652564764023, -1.4421074390411377, 1.0693587064743042, 2.608949661254883, -1.10871422290802, 0.42954927682876587, 0.2815259099006653, 1.3149943351745605, -1.6548426151275635, 0.43222498893737793, -0.39364832639694214, 2.089731216430664, 0.24128560721874237, 1.146803855895996, -0.6155927181243896, -2.190720558166504, 0.47920507192611694, -1.119803786277771, -1.2110321521759033, 0.4570636749267578, -0.784477174282074, 0.10139758884906769, -1.6030972003936768, -0.14181604981422424, -0.7727633118629456, -1.1431835889816284, 0.5897532105445862, 0.10587701201438904, 0.3070090413093567, -0.7024984955787659, 0.2884320616722107, -2.096721887588501, -1.4098820686340332, -0.2683965563774109, -0.7932614088058472, 0.5726569890975952, -0.452223002910614, 0.673434853553772, -0.06898336112499237, 0.11981399357318878, 0.19509845972061157, 1.4787355661392212, 3.2304627895355225, 0.07774577289819717, 0.32771486043930054, -0.1880512237548828, -0.8386987447738647, 1.3844720125198364, 0.9753804802894592, 0.05052727460861206, -0.639417827129364, -1.0898007154464722, 1.3661874532699585, 1.9550338983535767, 1.024787425994873, 0.05378474295139313, -0.7622554898262024, -0.6812810301780701, -0.08980423957109451, 0.22139494121074677, 0.44062691926956177, 1.0122543573379517, 0.15717816352844238, 0.18880748748779297, 1.4058529138565063, 1.2936089038848877, -0.6051363945007324, 0.4880638122558594, -0.8313747048377991, -0.6068835258483887, 0.3145366311073303, 0.4454522728919983, -0.10758763551712036, 0.1386980414390564, -1.0650155544281006, -0.2908557057380676, -0.35555732250213623, -0.8969869017601013, -0.640812873840332, -0.410062313079834, -0.4445585608482361, 1.765034794807434, 0.1203707605600357, -0.5179769396781921, -0.15114650130271912, -0.6526755094528198, 0.017273791134357452, -1.0205910205841064, 0.4165724515914917, -0.03070823848247528, -0.08339838683605194, -0.08246210217475891, 1.7847870588302612, -0.8251115083694458, -2.1019163131713867, 0.29210054874420166, 0.21987023949623108, -0.4810141324996948, 0.028317414224147797, 1.545642614364624, 0.5668153762817383, 1.555347204208374, 1.4796288013458252, 0.9696490168571472, -0.6550406813621521, -1.4326896667480469, 0.5805115103721619, 0.8343549966812134, -1.427727460861206, 0.6215251088142395, 0.13106060028076172, -0.5480961799621582, 0.7195261716842651, 1.5010249614715576, 0.3884720802307129, -2.0682265758514404, 0.9642407894134521, -0.9325361847877502, 0.8500118851661682, 0.8887795805931091, 0.6653574109077454, 0.30343854427337646, 0.87413090467453, -1.3390333652496338, -1.188852310180664, -0.9635980725288391, -0.6542008519172668, 2.0830416679382324, -0.23463067412376404, 0.45067334175109863, -0.17230764031410217, -1.2301788330078125, -0.12736284732818604, 0.6550357937812805, 0.49723851680755615, -0.3119170069694519, 0.7445542216300964, -0.5626440048217773, -1.075240135192871, -1.5114870071411133, -0.44127368927001953, -0.9122763872146606, -0.8469891548156738, 0.961471438407898, 1.0246648788452148, 0.4076402187347412, 1.9172126054763794, 0.6009277701377869, 0.24514077603816986, -2.619688034057617, 0.89643394947052, 0.3268214464187622, -0.159846231341362, 0.9702691435813904, 0.21203775703907013, 1.0254604816436768, 0.10647230595350266, 0.4853835105895996, -2.4189493656158447, 2.2927744388580322, -0.18275313079357147, 0.8125804662704468, 0.0039046015590429306, -0.11869551241397858, 1.361383080482483, 0.5633914470672607, 0.549182653427124, -1.0729846954345703, 0.747377336025238, -0.47289353609085083, 1.1963738203048706, 0.7839943170547485, -0.661807119846344, -0.08561856299638748, 1.3177276849746704, 0.6060777306556702, -0.5662232637405396, -0.9777100682258606, -1.0408687591552734, 0.8011453747749329, 1.900769829750061, -0.04204617440700531, 0.058594271540641785, 0.7194890379905701, 0.7744873762130737, -1.218035101890564, 0.11103864759206772, -0.7726755738258362, -0.7258076071739197, 1.510989785194397, 2.1084282398223877, 0.008051399141550064, -0.17163482308387756, -0.6198418736457825, -1.2784503698349, 0.7074269652366638, 0.07696875184774399, 0.20703797042369843, 0.7254757881164551, -0.6546854376792908, 1.175117015838623, 0.9419538974761963, 0.958131730556488, 0.05734170973300934, 0.348128080368042, 0.3955993056297302, -0.24397076666355133, -1.090119481086731, -0.21298673748970032, -1.1181256771087646, -2.364732027053833, 0.44487136602401733, -0.2413148134946823, -1.445378303527832, 0.0890747606754303, -1.0593606233596802, 0.8915526866912842, -0.5567567348480225, -1.139286756515503, -1.749943494796753, 0.08766016364097595, -0.008507643826305866, 0.9529123902320862, -1.569706678390503, -0.18448908627033234, 1.1290336847305298, 0.6957939863204956, -0.4949738383293152, 0.8939705491065979, 0.21669813990592957, 0.9733564853668213, 0.8477530479431152, -0.37924647331237793, 0.2584415674209595, 0.08803071081638336, -1.315723180770874, 0.5152037739753723, 1.2228553295135498, 0.20002180337905884, 1.3665075302124023, -0.6372082829475403, 0.12903930246829987, 0.520492672920227, -0.5036487579345703, -0.45331913232803345, -0.41709983348846436, 0.6268783807754517, -0.0009430856443941593, -0.9305761456489563, 0.03607381880283356, -0.12324122339487076, -0.2646580934524536, 0.18157465755939484, -1.5179816484451294, -0.19724203646183014, -0.48133403062820435, -0.5375105738639832, -1.2041971683502197, -0.05529950186610222, 1.421600341796875, -0.7489649057388306, -0.3115631341934204, 0.6663616299629211, 0.5944638848304749, 0.5317005515098572, 0.7382652163505554, -0.6726022362709045, -0.30901360511779785, -0.10070882737636566, -0.3897212743759155, 0.1789889931678772, 1.3120484352111816, -0.20941415429115295, -0.9209741950035095, 0.5166224837303162, -0.3994506001472473, 0.020664013922214508, 1.9781453609466553, 0.04379693791270256, -0.7432399988174438, 0.35656601190567017, -0.7891929745674133, 1.874103307723999, 1.6686874628067017, 1.3248229026794434, -0.029564982280135155, -1.0146840810775757, 0.41792112588882446, -0.14184753596782684, -0.3397948145866394, 0.8780308961868286, 0.5665157437324524, -0.2471618950366974, -1.3693482875823975, 0.5104424357414246, 1.2919961214065552, -0.9859429001808167, -0.7519710659980774, 0.12802442908287048, -0.7650231719017029, 1.0632610321044922, 0.5733033418655396, 0.5143510103225708, 0.23059101402759552, 1.7103606462478638, 0.6515740156173706, -0.39852410554885864, 0.44570833444595337, 0.5694752335548401, -0.22607797384262085, -2.1641921997070312, -1.2519505023956299, 0.2675885558128357, -0.5180150866508484, -1.5377490520477295, 1.3306868076324463, -1.0680032968521118, -0.8335397839546204, 0.4721638560295105, 0.23110119998455048, 1.5206466913223267, 0.4001099467277527, 1.7081074714660645, 2.05607533454895, 0.9977239966392517, 0.370482861995697, 1.403464674949646, -0.004109907429665327, -0.595691978931427, 1.8476462364196777, -0.42740875482559204, 0.41278523206710815, 1.1450656652450562, -0.4302513599395752, -1.2472281455993652, -0.6992220282554626, -1.128064751625061, -0.6685419082641602, 1.0909860134124756, 0.11668375879526138, -1.1885080337524414, 0.18567383289337158, 1.4985774755477905, 0.28255152702331543, -0.3061850070953369, 0.3939640522003174, 0.439151406288147, -0.7356023192405701, -0.12120077759027481, -1.0377172231674194, 0.3894270658493042, -0.2866339683532715, -0.4666748642921448, 0.230389803647995, 0.5288941860198975, 1.2474440336227417, -0.05148550868034363, 0.10207753628492355, 1.1798325777053833, -1.582263708114624, 1.387762188911438, -0.7695527076721191, 0.2550505995750427, -2.5075058937072754, 1.6998504400253296, -0.7366784811019897, 2.009599208831787, -2.670151710510254, 0.4323400855064392, -0.708115816116333, -0.3407406210899353, 0.36827772855758667, -0.2045455127954483, 0.21040572226047516, -0.030731573700904846, -1.2621843814849854, -0.029711134731769562, -0.787212073802948, 0.5918548703193665, 1.2544362545013428, 1.4187663793563843, -1.1274394989013672, -0.21002459526062012, -1.7143058776855469, -0.15556980669498444, -0.639647901058197, 0.3901858329772949, -1.9784098863601685, -0.06301575899124146, -1.7390971183776855, -2.203162670135498, -1.4078843593597412, -0.8880009055137634, 0.92872154712677, 0.12433414161205292, -0.8223596215248108, 1.1281882524490356, -0.42790621519088745, -1.7523399591445923, 1.165893793106079, -2.204569101333618 ]
https://github.com/huggingface/datasets/issues/3735
Performance of `datasets` at scale
@mariosasko I did not turn it off but I can try the next time - I have to run the pipeline again, anyway. @bhavitvyamalik Yes, I also sharded the dataset and used multiprocessing to save each shard. I'll have a closer look at your approach, too.
# Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis
949
46
Performance of `datasets` at scale # Performance of `datasets` at 1TB scale ## What is this? During the processing of a large dataset I monitored the performance of the `datasets` library to see if there are any bottlenecks. The insights of this analysis could guide the decision making to improve the performance of the library. ## Dataset The dataset is a 1.1TB extract from GitHub with 120M code files and is stored as 5000 `.json.gz` files. The goal of the preprocessing is to remove duplicates and filter files based on their stats. While the calculating of the hashes for deduplication and stats for filtering can be parallelized the filtering itself is run with a single process. After processing the files are pushed to the hub. ## Machine The experiment was run on a `m1` machine on GCP with 96 CPU cores and 1.3TB RAM. ## Performance breakdown - Loading the data **3.5h** (_30sec_ from cache) - **1h57min** single core loading (not sure what is going on here, corresponds to second progress bar) - **1h10min** multi core json reading - **20min** remaining time before and after the two main processes mentioned above - Process the data **2h** (_20min_ from cache) - **20min** Getting reading for processing - **40min** Hashing and files stats (96 workers) - **58min** Deduplication filtering (single worker) - Save parquet files **5h** - Saving 1000 parquet files (16 workers) - Push to hub **37min** - **34min** git add - **3min** git push (several hours with `Repository.git_push()`) ## Conclusion It appears that loading and saving the data is the main bottleneck at that scale (**8.5h**) whereas processing (**2h**) and pushing the data to the hub (**0.5h**) is relatively fast. To optimize the performance at this scale it would make sense to consider such an end-to-end example and target the bottlenecks which seem to be loading from and saving to disk. The processing itself seems to run relatively fast. ## Notes - map operation on a 1TB dataset with 96 workers requires >1TB RAM - map operation does not maintain 100% CPU utilization with 96 workers - sometimes when the script crashes all the data files have a corresponding `*.lock` file in the data folder (or multiple e.g. `*.lock.lock` when it happened a several times). This causes the cache **not** to be triggered (which is significant at that scale) - i guess because there are new data files - parallelizing `to_parquet` decreased the saving time from 17h to 5h, however adding more workers at this point had almost no effect. not sure if this is: a) a bug in my parallelization logic, b) i/o limit to load data form disk to memory or c) i/o limit to write from memory to disk. - Using `Repository.git_push()` was much slower than using command line `git-lfs` - 10-20MB/s vs. 300MB/s! The `Dataset.push_to_hub()` function is even slower as it only uploads one file at a time with only a few MB/s, whereas `Repository.git_push()` pushes files in parallel (each at a similar speed). cc @lhoestq @julien-c @LysandreJik @SBrandeis @mariosasko I did not turn it off but I can try the next time - I have to run the pipeline again, anyway. @bhavitvyamalik Yes, I also sharded the dataset and used multiprocessing to save each shard. I'll have a closer look at your approach, too.
[ -1.2459115982055664, -1.085484504699707, -0.5615013241767883, 1.308707356452942, -0.28444039821624756, -1.3703457117080688, 0.1407173126935959, -1.0868443250656128, 1.7061281204223633, -0.7032343745231628, 0.22635433077812195, -1.5785973072052002, 0.0475088469684124, -0.5434489250183105, -0.8737079501152039, -0.738923966884613, -0.49646997451782227, -0.8860553503036499, 0.9798590540885925, 2.4456777572631836, 1.2050249576568604, -1.4585615396499634, 2.764174461364746, 0.6413944959640503, -0.23858147859573364, -0.946540355682373, 0.44864314794540405, 0.17824728786945343, -1.3212333917617798, -0.5166207551956177, -0.8697325587272644, -0.11175984889268875, -0.41231077909469604, -0.47408533096313477, 0.1574353128671646, 0.2854568362236023, -0.06997012346982956, -0.5823003053665161, -0.5916378498077393, -0.5733227729797363, 0.4544323682785034, -0.41112595796585083, 0.8974988460540771, -0.42645740509033203, 1.8936396837234497, -0.6601123213768005, 0.394692599773407, 0.5936354398727417, 1.4607335329055786, 0.20325236022472382, -0.024998528882861137, 0.48341691493988037, 0.509539783000946, -0.07853280752897263, 0.46941232681274414, 1.228735327720642, 0.7072346210479736, 0.5507405996322632, 0.7746281027793884, -2.0826659202575684, 1.406026840209961, -1.0170824527740479, 0.3872658610343933, 1.4283853769302368, -1.0317078828811646, 0.46722251176834106, -1.7995752096176147, -0.00022046547383069992, 0.48144328594207764, -2.454025983810425, 0.11828579008579254, -1.2427647113800049, -0.6528396606445312, 0.9438347220420837, 0.28299713134765625, -1.3245512247085571, 0.20039698481559753, -0.667538583278656, 0.9922962784767151, 0.28738313913345337, 1.1359471082687378, -1.742730975151062, -0.2619478106498718, -0.167596235871315, -0.0022910605184733868, -1.2577019929885864, -1.636776328086853, 0.701421320438385, 0.5780297517776489, 0.49936431646347046, -0.20766432583332062, 0.9451309442520142, -1.0546432733535767, 0.9831545352935791, -0.9741409420967102, -1.6528253555297852, -1.4718810319900513, -2.227277994155884, -2.0518839359283447, 0.9723256826400757, -0.4958450198173523, -0.5753060579299927, 2.0137035846710205, -0.9224995374679565, -1.7223552465438843, 1.0848844051361084, 0.22965727746486664, 0.04713545739650726, 2.3430206775665283, 0.15233024954795837, -0.6208512187004089, 0.2780289649963379, -0.6803231239318848, 0.8611716032028198, -0.5466234683990479, 1.3305562734603882, 0.288685142993927, -1.0410150289535522, 1.4868496656417847, -0.3621891736984253, 0.6338826417922974, -0.646043598651886, -0.5877416133880615, -0.7861722111701965, 0.40991806983947754, 2.036832571029663, -0.267673134803772, 1.5457372665405273, -0.46040380001068115, -1.690617322921753, -1.5661017894744873, 0.8720183968544006, 0.6406159400939941, -0.7675029635429382, 0.004397290758788586, -0.37169313430786133, 0.05453949421644211, -0.0530235692858696, 1.0374401807785034, 1.262500524520874, 0.6713477373123169, -0.43481576442718506, -0.7896360158920288, 0.22802361845970154, -0.1687326282262802, -0.7109725475311279, -1.8449578285217285, -0.4328150749206543, 0.1954198181629181, 0.5924069285392761, -1.1820710897445679, 1.5144972801208496, 0.91934734582901, 1.9595811367034912, 0.9911375641822815, -0.33564233779907227, 1.3839071989059448, 0.11533714085817337, 1.7268816232681274, -0.7146642804145813, 0.7661923170089722, -0.3955622911453247, -1.0368212461471558, 0.7595661282539368, -0.46666067838668823, -2.1064047813415527, -0.6065295934677124, -0.8791414499282837, -0.2298414260149002, -0.7018045783042908, 0.9493044018745422, -0.2830870747566223, -1.2584694623947144, 0.09957564622163773, -0.6581926345825195, 0.18257564306259155, -1.1906613111495972, 0.3771805167198181, 0.9030588269233704, -0.616484522819519, -0.04512552171945572, -0.3278312683105469, -1.1996266841888428, -0.5486714243888855, 0.29387766122817993, 1.8606653213500977, -0.765174150466919, 1.003651738166809, 0.8642367124557495, -0.775795578956604, 0.04538092389702797, 0.3786633014678955, -0.23648913204669952, 0.8776372671127319, -1.0906256437301636, -0.28509610891342163, 1.0110365152359009, -0.250807523727417, -0.26905369758605957, 1.5045201778411865, 0.692654013633728, -0.9629088640213013, -0.18431635200977325, -0.16264192759990692, -1.0015588998794556, -0.003508075140416622, -1.576310157775879, -0.21270690858364105, 0.11725233495235443, -1.5313972234725952, -0.6176426410675049, -0.36899203062057495, 1.233617901802063, -0.09456883370876312, 1.3343409299850464, -0.24059675633907318, -0.4213866591453552, -0.40399008989334106, -0.37064796686172485, 0.19394637644290924, -0.33937251567840576, -0.5945892930030823, 0.2398899793624878, -0.7108475565910339, 0.30073708295822144, 1.5073766708374023, 0.48047155141830444, -0.02179790288209915, 0.604893147945404, 1.0173203945159912, 0.2774544954299927, -0.15108799934387207, -0.8527742028236389, -1.6315099000930786, 1.941739559173584, -1.5965900421142578, 1.9349337816238403, 0.8831770420074463, -0.023314330726861954, -1.572715401649475, -1.9598355293273926, 1.3044748306274414, 1.2788074016571045, 2.3810606002807617, 0.5611491203308105, 0.36126989126205444, -0.8305363655090332, -0.6576316356658936, 0.2951381206512451, -1.0771716833114624, -0.7624456286430359, -0.015434075146913528, 2.2762842178344727, 1.864140510559082, -0.6121077537536621, -0.16119568049907684, -1.1378860473632812, 1.4948409795761108, -0.10946108400821686, 0.18718430399894714, 2.0213284492492676, -0.32911407947540283, -1.0028126239776611, 1.3248178958892822, -2.2356388568878174, 0.18670512735843658, 1.9326287508010864, 0.40738868713378906, 0.1067897155880928, -1.3928070068359375, -0.5255807638168335, -0.2871370315551758, -0.20222097635269165, -1.2759020328521729, 0.47356098890304565, -0.30801427364349365, -0.7136837244033813, -1.6091399192810059, 0.09019429236650467, -1.2131776809692383, -1.5740525722503662, 0.4856516718864441, 1.9868372678756714, 1.8882389068603516, -0.5449538826942444, 1.4877578020095825, -0.34324854612350464, 0.034948304295539856, 1.2038484811782837, 1.1570366621017456, 3.15362286567688, 2.0129554271698, -1.0735015869140625, 0.5321981310844421, -0.19897332787513733, -0.45084071159362793, 0.9794830083847046, -1.0419152975082397, 1.2475764751434326, -0.06578527390956879, -1.0208781957626343, -1.1448253393173218, 0.9586596488952637, 0.5591980814933777, 0.04219341278076172, -0.48081856966018677, 1.0977988243103027, 0.06832216680049896, 1.379523515701294, 0.568589985370636, -0.4016410708427429, 0.682549774646759, -0.4313797354698181, -0.5254173278808594, 1.6491912603378296, 0.24579693377017975, -1.3873010873794556, -2.348768949508667, -0.21013380587100983, -0.8101773858070374, 0.21837544441223145, -0.6485983729362488, -0.9974345564842224, 1.6841684579849243, 0.5265687704086304, -1.199898600578308, -0.2940739393234253, -0.3556514382362366, -0.7555682063102722, 2.5014476776123047, -1.4702547788619995, -0.22803804278373718, -0.9102830290794373, -0.4942137598991394, 1.5558167695999146, -1.2692869901657104, -0.24486200511455536, -0.9909076690673828, -0.4797203540802002, -1.0947084426879883, -0.5089869499206543, -0.1014837697148323, -0.9535539746284485, 1.0087382793426514, 0.08132898062467575, -1.1341193914413452, -0.3044395446777344, -0.871048629283905, 0.7741255760192871, -0.10565152764320374, 0.12850795686244965, 1.8841384649276733, 0.31689387559890747, -0.3654971122741699, 0.7255600690841675, 1.268324851989746, 0.6258646249771118, -0.7210979461669922, 0.19037698209285736, -0.6007939577102661, 0.33197182416915894, -1.3056280612945557, 0.41663217544555664, -2.8566668033599854, 0.5922811627388, -0.12760019302368164, 0.007143665105104446, 0.03955652564764023, -1.4421074390411377, 1.0693587064743042, 2.608949661254883, -1.10871422290802, 0.42954927682876587, 0.2815259099006653, 1.3149943351745605, -1.6548426151275635, 0.43222498893737793, -0.39364832639694214, 2.089731216430664, 0.24128560721874237, 1.146803855895996, -0.6155927181243896, -2.190720558166504, 0.47920507192611694, -1.119803786277771, -1.2110321521759033, 0.4570636749267578, -0.784477174282074, 0.10139758884906769, -1.6030972003936768, -0.14181604981422424, -0.7727633118629456, -1.1431835889816284, 0.5897532105445862, 0.10587701201438904, 0.3070090413093567, -0.7024984955787659, 0.2884320616722107, -2.096721887588501, -1.4098820686340332, -0.2683965563774109, -0.7932614088058472, 0.5726569890975952, -0.452223002910614, 0.673434853553772, -0.06898336112499237, 0.11981399357318878, 0.19509845972061157, 1.4787355661392212, 3.2304627895355225, 0.07774577289819717, 0.32771486043930054, -0.1880512237548828, -0.8386987447738647, 1.3844720125198364, 0.9753804802894592, 0.05052727460861206, -0.639417827129364, -1.0898007154464722, 1.3661874532699585, 1.9550338983535767, 1.024787425994873, 0.05378474295139313, -0.7622554898262024, -0.6812810301780701, -0.08980423957109451, 0.22139494121074677, 0.44062691926956177, 1.0122543573379517, 0.15717816352844238, 0.18880748748779297, 1.4058529138565063, 1.2936089038848877, -0.6051363945007324, 0.4880638122558594, -0.8313747048377991, -0.6068835258483887, 0.3145366311073303, 0.4454522728919983, -0.10758763551712036, 0.1386980414390564, -1.0650155544281006, -0.2908557057380676, -0.35555732250213623, -0.8969869017601013, -0.640812873840332, -0.410062313079834, -0.4445585608482361, 1.765034794807434, 0.1203707605600357, -0.5179769396781921, -0.15114650130271912, -0.6526755094528198, 0.017273791134357452, -1.0205910205841064, 0.4165724515914917, -0.03070823848247528, -0.08339838683605194, -0.08246210217475891, 1.7847870588302612, -0.8251115083694458, -2.1019163131713867, 0.29210054874420166, 0.21987023949623108, -0.4810141324996948, 0.028317414224147797, 1.545642614364624, 0.5668153762817383, 1.555347204208374, 1.4796288013458252, 0.9696490168571472, -0.6550406813621521, -1.4326896667480469, 0.5805115103721619, 0.8343549966812134, -1.427727460861206, 0.6215251088142395, 0.13106060028076172, -0.5480961799621582, 0.7195261716842651, 1.5010249614715576, 0.3884720802307129, -2.0682265758514404, 0.9642407894134521, -0.9325361847877502, 0.8500118851661682, 0.8887795805931091, 0.6653574109077454, 0.30343854427337646, 0.87413090467453, -1.3390333652496338, -1.188852310180664, -0.9635980725288391, -0.6542008519172668, 2.0830416679382324, -0.23463067412376404, 0.45067334175109863, -0.17230764031410217, -1.2301788330078125, -0.12736284732818604, 0.6550357937812805, 0.49723851680755615, -0.3119170069694519, 0.7445542216300964, -0.5626440048217773, -1.075240135192871, -1.5114870071411133, -0.44127368927001953, -0.9122763872146606, -0.8469891548156738, 0.961471438407898, 1.0246648788452148, 0.4076402187347412, 1.9172126054763794, 0.6009277701377869, 0.24514077603816986, -2.619688034057617, 0.89643394947052, 0.3268214464187622, -0.159846231341362, 0.9702691435813904, 0.21203775703907013, 1.0254604816436768, 0.10647230595350266, 0.4853835105895996, -2.4189493656158447, 2.2927744388580322, -0.18275313079357147, 0.8125804662704468, 0.0039046015590429306, -0.11869551241397858, 1.361383080482483, 0.5633914470672607, 0.549182653427124, -1.0729846954345703, 0.747377336025238, -0.47289353609085083, 1.1963738203048706, 0.7839943170547485, -0.661807119846344, -0.08561856299638748, 1.3177276849746704, 0.6060777306556702, -0.5662232637405396, -0.9777100682258606, -1.0408687591552734, 0.8011453747749329, 1.900769829750061, -0.04204617440700531, 0.058594271540641785, 0.7194890379905701, 0.7744873762130737, -1.218035101890564, 0.11103864759206772, -0.7726755738258362, -0.7258076071739197, 1.510989785194397, 2.1084282398223877, 0.008051399141550064, -0.17163482308387756, -0.6198418736457825, -1.2784503698349, 0.7074269652366638, 0.07696875184774399, 0.20703797042369843, 0.7254757881164551, -0.6546854376792908, 1.175117015838623, 0.9419538974761963, 0.958131730556488, 0.05734170973300934, 0.348128080368042, 0.3955993056297302, -0.24397076666355133, -1.090119481086731, -0.21298673748970032, -1.1181256771087646, -2.364732027053833, 0.44487136602401733, -0.2413148134946823, -1.445378303527832, 0.0890747606754303, -1.0593606233596802, 0.8915526866912842, -0.5567567348480225, -1.139286756515503, -1.749943494796753, 0.08766016364097595, -0.008507643826305866, 0.9529123902320862, -1.569706678390503, -0.18448908627033234, 1.1290336847305298, 0.6957939863204956, -0.4949738383293152, 0.8939705491065979, 0.21669813990592957, 0.9733564853668213, 0.8477530479431152, -0.37924647331237793, 0.2584415674209595, 0.08803071081638336, -1.315723180770874, 0.5152037739753723, 1.2228553295135498, 0.20002180337905884, 1.3665075302124023, -0.6372082829475403, 0.12903930246829987, 0.520492672920227, -0.5036487579345703, -0.45331913232803345, -0.41709983348846436, 0.6268783807754517, -0.0009430856443941593, -0.9305761456489563, 0.03607381880283356, -0.12324122339487076, -0.2646580934524536, 0.18157465755939484, -1.5179816484451294, -0.19724203646183014, -0.48133403062820435, -0.5375105738639832, -1.2041971683502197, -0.05529950186610222, 1.421600341796875, -0.7489649057388306, -0.3115631341934204, 0.6663616299629211, 0.5944638848304749, 0.5317005515098572, 0.7382652163505554, -0.6726022362709045, -0.30901360511779785, -0.10070882737636566, -0.3897212743759155, 0.1789889931678772, 1.3120484352111816, -0.20941415429115295, -0.9209741950035095, 0.5166224837303162, -0.3994506001472473, 0.020664013922214508, 1.9781453609466553, 0.04379693791270256, -0.7432399988174438, 0.35656601190567017, -0.7891929745674133, 1.874103307723999, 1.6686874628067017, 1.3248229026794434, -0.029564982280135155, -1.0146840810775757, 0.41792112588882446, -0.14184753596782684, -0.3397948145866394, 0.8780308961868286, 0.5665157437324524, -0.2471618950366974, -1.3693482875823975, 0.5104424357414246, 1.2919961214065552, -0.9859429001808167, -0.7519710659980774, 0.12802442908287048, -0.7650231719017029, 1.0632610321044922, 0.5733033418655396, 0.5143510103225708, 0.23059101402759552, 1.7103606462478638, 0.6515740156173706, -0.39852410554885864, 0.44570833444595337, 0.5694752335548401, -0.22607797384262085, -2.1641921997070312, -1.2519505023956299, 0.2675885558128357, -0.5180150866508484, -1.5377490520477295, 1.3306868076324463, -1.0680032968521118, -0.8335397839546204, 0.4721638560295105, 0.23110119998455048, 1.5206466913223267, 0.4001099467277527, 1.7081074714660645, 2.05607533454895, 0.9977239966392517, 0.370482861995697, 1.403464674949646, -0.004109907429665327, -0.595691978931427, 1.8476462364196777, -0.42740875482559204, 0.41278523206710815, 1.1450656652450562, -0.4302513599395752, -1.2472281455993652, -0.6992220282554626, -1.128064751625061, -0.6685419082641602, 1.0909860134124756, 0.11668375879526138, -1.1885080337524414, 0.18567383289337158, 1.4985774755477905, 0.28255152702331543, -0.3061850070953369, 0.3939640522003174, 0.439151406288147, -0.7356023192405701, -0.12120077759027481, -1.0377172231674194, 0.3894270658493042, -0.2866339683532715, -0.4666748642921448, 0.230389803647995, 0.5288941860198975, 1.2474440336227417, -0.05148550868034363, 0.10207753628492355, 1.1798325777053833, -1.582263708114624, 1.387762188911438, -0.7695527076721191, 0.2550505995750427, -2.5075058937072754, 1.6998504400253296, -0.7366784811019897, 2.009599208831787, -2.670151710510254, 0.4323400855064392, -0.708115816116333, -0.3407406210899353, 0.36827772855758667, -0.2045455127954483, 0.21040572226047516, -0.030731573700904846, -1.2621843814849854, -0.029711134731769562, -0.787212073802948, 0.5918548703193665, 1.2544362545013428, 1.4187663793563843, -1.1274394989013672, -0.21002459526062012, -1.7143058776855469, -0.15556980669498444, -0.639647901058197, 0.3901858329772949, -1.9784098863601685, -0.06301575899124146, -1.7390971183776855, -2.203162670135498, -1.4078843593597412, -0.8880009055137634, 0.92872154712677, 0.12433414161205292, -0.8223596215248108, 1.1281882524490356, -0.42790621519088745, -1.7523399591445923, 1.165893793106079, -2.204569101333618 ]
https://github.com/huggingface/datasets/issues/3730
Checksum Error when loading multi-news dataset
Thanks for reporting @byw2. We are fixing it. In the meantime, you can load the dataset by passing `ignore_verifications=True`: ```python dataset = load_dataset("multi_news", ignore_verifications=True)
## Describe the bug When using the load_dataset function from datasets module to load the Multi-News dataset, does not load the dataset but throws Checksum Error instead. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("multi_news") ``` ## Expected results Should download and load Multi-News dataset. ## Actual results Throws the following error and cannot load data successfully: ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C'] ``` Could this issue please be looked at? Thanks!
950
24
Checksum Error when loading multi-news dataset ## Describe the bug When using the load_dataset function from datasets module to load the Multi-News dataset, does not load the dataset but throws Checksum Error instead. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("multi_news") ``` ## Expected results Should download and load Multi-News dataset. ## Actual results Throws the following error and cannot load data successfully: ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C'] ``` Could this issue please be looked at? Thanks! Thanks for reporting @byw2. We are fixing it. In the meantime, you can load the dataset by passing `ignore_verifications=True`: ```python dataset = load_dataset("multi_news", ignore_verifications=True)
[ -1.16292405128479, -0.8908281326293945, -0.7299791574478149, 1.3952802419662476, -0.181052565574646, -1.247752070426941, 0.19317062199115753, -1.072953224182129, 1.7244575023651123, -0.9034333229064941, 0.24283795058727264, -1.7541199922561646, 0.04333559423685074, -0.6395301222801208, -0.7293384671211243, -0.8965192437171936, -0.4023318290710449, -0.6573101878166199, 0.9251053929328918, 2.4056448936462402, 1.1655787229537964, -1.2851762771606445, 2.6478428840637207, 0.6987653970718384, -0.2726942300796509, -0.9667903780937195, 0.49623191356658936, 0.01751868799328804, -1.2051105499267578, -0.33198282122612, -0.9822565317153931, -0.06994760036468506, -0.5647116899490356, -0.5903529524803162, 0.028501318767666817, 0.4694060981273651, -0.34418460726737976, -0.3389437794685364, -0.5527829527854919, -0.7983042001724243, 0.5095509886741638, -0.3902450203895569, 0.9966817498207092, -0.44883012771606445, 1.9005634784698486, -0.6151993274688721, 0.43963703513145447, 0.7422804832458496, 1.2505837678909302, 0.12129788100719452, -0.01604805327951908, 0.33582332730293274, 0.29694539308547974, 0.03257139027118683, 0.4364831745624542, 1.1042754650115967, 0.4591970443725586, 0.5995144844055176, 0.7268370389938354, -2.2317373752593994, 1.2631796598434448, -1.0085784196853638, 0.27496305108070374, 1.4186439514160156, -1.006352424621582, 0.3747898042201996, -1.7424637079238892, -0.12325578927993774, 0.503423273563385, -2.2657291889190674, 0.2741977870464325, -1.3486829996109009, -0.5474836826324463, 1.0078961849212646, 0.3490937054157257, -1.1800271272659302, 0.18041518330574036, -0.31529149413108826, 1.0706779956817627, 0.5452128052711487, 1.0334590673446655, -1.7426456212997437, -0.03258616104722023, -0.3089107871055603, 0.10730995237827301, -1.4009212255477905, -1.528272271156311, 0.5662838816642761, 0.6282353401184082, 0.6824249029159546, -0.15312017500400543, 1.0614533424377441, -0.9371427297592163, 0.7547603845596313, -1.0300331115722656, -1.6894887685775757, -1.342130422592163, -2.262388229370117, -2.3558030128479004, 0.7379810810089111, -0.5320013761520386, -0.5016789436340332, 1.9983290433883667, -0.9485182166099548, -1.838474154472351, 1.2215542793273926, 0.1931132823228836, -0.08442557603120804, 2.2383573055267334, 0.2583589255809784, -0.6602151393890381, 0.45476076006889343, -0.7212384343147278, 0.8025299906730652, -0.32455727458000183, 1.382702350616455, 0.5662054419517517, -1.0617085695266724, 1.5541824102401733, -0.5307465195655823, 0.5958749055862427, -0.6490094661712646, -0.6407582759857178, -0.784625768661499, 0.27315548062324524, 1.934080719947815, -0.36721593141555786, 1.6820305585861206, -0.2894171476364136, -1.5458272695541382, -1.5571209192276, 0.9646795392036438, 0.4538458287715912, -0.7206961512565613, 0.12716498970985413, -0.2583640217781067, 0.03430856019258499, -0.12898769974708557, 1.2125310897827148, 1.160133957862854, 0.6509093046188354, -0.2712308466434479, -0.7685245871543884, 0.2148410826921463, -0.014253840781748295, -0.7065236568450928, -1.7479556798934937, -0.4043312966823578, 0.16274714469909668, 0.5260118842124939, -1.1840860843658447, 1.7344529628753662, 0.8778683543205261, 1.859747052192688, 0.9631554484367371, -0.2565987706184387, 1.4375251531600952, 0.03753131628036499, 1.9305781126022339, -0.4490477442741394, 0.6854071021080017, -0.29885464906692505, -1.2078089714050293, 0.8041009902954102, -0.3077118992805481, -2.0211150646209717, -0.7605885863304138, -0.9713433980941772, -0.19137458503246307, -0.789651095867157, 0.8950234055519104, -0.3036510944366455, -1.4864715337753296, 0.23181365430355072, -0.6382019519805908, 0.20630282163619995, -1.2677416801452637, 0.29648062586784363, 0.7268532514572144, -0.5882242918014526, -0.06397662311792374, -0.19958549737930298, -1.2851507663726807, -0.4105738401412964, 0.323580265045166, 1.8520214557647705, -0.7935538291931152, 0.947641134262085, 0.9713965058326721, -0.7743961215019226, -0.030200516805052757, 0.2667797803878784, -0.2796097993850708, 0.7884261608123779, -1.0372189283370972, -0.4200422763824463, 1.1770522594451904, -0.1362963318824768, -0.6424350142478943, 1.5594608783721924, 0.7783161401748657, -0.9869232773780823, -0.12957048416137695, -0.33964061737060547, -0.7561089396476746, -0.1291208416223526, -1.6173845529556274, -0.12118113040924072, 0.3370300531387329, -1.41062331199646, -0.5483990907669067, -0.20414413511753082, 1.184424638748169, -0.19656085968017578, 1.3522818088531494, -0.40912652015686035, -0.2505432069301605, -0.4172218143939972, -0.4695795178413391, 0.12257617712020874, -0.15419448912143707, -0.6476976871490479, 0.1043715849518776, -0.7010744214057922, 0.3285645544528961, 1.4520097970962524, 0.33681511878967285, 0.10520221292972565, 0.5257615447044373, 1.145544409751892, 0.35051313042640686, -0.06992260366678238, -0.9163251519203186, -1.5428615808486938, 1.9245141744613647, -1.4385414123535156, 1.9627352952957153, 0.6489698886871338, -0.029644716531038284, -1.8188470602035522, -1.8513603210449219, 1.3846428394317627, 1.2302976846694946, 2.252197504043579, 0.5654346942901611, 0.4152757227420807, -0.8584128618240356, -0.700066089630127, 0.2937147319316864, -1.0396071672439575, -0.6616076231002808, 0.21649684011936188, 2.278114080429077, 1.8167685270309448, -0.5221604108810425, -0.24396027624607086, -0.9950566291809082, 1.3654154539108276, -0.17305760085582733, 0.1819879412651062, 1.982346773147583, -0.3572041690349579, -1.1062541007995605, 1.2197344303131104, -2.2849795818328857, 0.11839799582958221, 2.063281297683716, 0.21905377507209778, 0.11016932129859924, -1.3413125276565552, -0.6872126460075378, -0.2798914313316345, -0.4123101830482483, -1.352131962776184, 0.498068630695343, -0.31099483370780945, -0.7273218631744385, -1.3885289430618286, 0.3074694275856018, -1.0445877313613892, -1.724516749382019, 0.27403879165649414, 1.9288021326065063, 1.9941984415054321, -0.7370331883430481, 1.4770877361297607, -0.28159335255622864, 0.2604691684246063, 1.365031123161316, 1.231784462928772, 3.117140769958496, 1.9081239700317383, -1.2630451917648315, 0.7212014198303223, -0.03208324685692787, -0.5080956220626831, 1.3164079189300537, -1.0289286375045776, 1.2941241264343262, -0.2632185220718384, -1.230354905128479, -1.2927802801132202, 0.8928753137588501, 0.47933483123779297, 0.1278258115053177, -0.503439724445343, 1.2661349773406982, 0.029547685757279396, 1.4171981811523438, 0.6383981108665466, -0.526864230632782, 0.6283671259880066, -0.37783727049827576, -0.5030132532119751, 1.6089427471160889, 0.28298747539520264, -1.4013389348983765, -2.314284563064575, -0.30532434582710266, -0.8702586889266968, -0.02174237370491028, -0.571666955947876, -1.0316990613937378, 1.625563144683838, 0.4929177761077881, -1.3169727325439453, -0.24477817118167877, -0.33221468329429626, -0.5507723689079285, 2.7225494384765625, -1.5030943155288696, -0.14345209300518036, -1.0139509439468384, -0.627970278263092, 1.7292499542236328, -1.2269620895385742, -0.21548065543174744, -1.0675519704818726, -0.6180579662322998, -1.4257906675338745, -0.5677496194839478, -0.05044063180685043, -0.9501846432685852, 0.81805419921875, 0.12152273952960968, -1.1725890636444092, -0.3026471436023712, -0.91754549741745, 1.0032747983932495, -0.19849753379821777, 0.22627149522304535, 1.9098471403121948, 0.48278072476387024, -0.439994752407074, 0.7334583401679993, 1.2096784114837646, 0.6241834163665771, -0.7529473304748535, 0.30308154225349426, -0.7221114635467529, 0.21599902212619781, -1.4579716920852661, 0.2012556791305542, -2.9186105728149414, 0.6390048861503601, -0.08698780834674835, -0.09473720192909241, -0.04395198076963425, -1.3766478300094604, 1.0606210231781006, 2.5920681953430176, -1.280173897743225, 0.3902050852775574, 0.3858519196510315, 1.1862658262252808, -1.6145665645599365, 0.24772490561008453, -0.39307042956352234, 2.065845251083374, 0.18751224875450134, 1.2287392616271973, -0.4903559684753418, -2.235687732696533, 0.6263391375541687, -1.21738862991333, -1.2210123538970947, 0.8776561617851257, -0.7947942018508911, 0.14038757979869843, -1.4211070537567139, -0.2435576170682907, -0.832086980342865, -1.2436802387237549, 0.8500433564186096, 0.13430248200893402, 0.38437414169311523, -0.5612910985946655, 0.36039048433303833, -2.1551525592803955, -1.2815313339233398, -0.21943999826908112, -0.9041452407836914, 0.47374290227890015, -0.22814202308654785, 0.6684760451316833, -0.2287975251674652, 0.08920944482088089, 0.34553176164627075, 1.4390852451324463, 3.4168224334716797, 0.23276174068450928, 0.21987389028072357, -0.10468785464763641, -0.9189978241920471, 1.4342010021209717, 1.0470976829528809, -0.07662659883499146, -0.442555695772171, -0.9280118346214294, 1.1991633176803589, 1.8589831590652466, 1.0284289121627808, -0.05962634086608887, -0.7610622644424438, -0.6208968758583069, 0.008399907499551773, 0.16784396767616272, 0.47019484639167786, 0.8686929941177368, 0.18015830218791962, 0.15529392659664154, 1.375840425491333, 1.1276439428329468, -0.3678971529006958, 0.3580583930015564, -0.8130308389663696, -0.5441714525222778, 0.4876537024974823, 0.301423579454422, 0.011585960164666176, 0.37066373229026794, -1.0217039585113525, -0.31254562735557556, -0.4161100387573242, -0.9691861271858215, -0.6879347562789917, -0.5488755106925964, -0.4293065369129181, 1.5738160610198975, 0.01648232899606228, -0.4839208722114563, -0.01831291988492012, -0.7805484533309937, -0.20121890306472778, -1.140154242515564, 0.27976399660110474, -0.21218127012252808, -0.11944039165973663, -0.06826971471309662, 1.7215259075164795, -0.963003933429718, -2.0268442630767822, 0.28750085830688477, 0.27221134305000305, -0.3323460817337036, 0.17010937631130219, 1.6445891857147217, 0.5311452150344849, 1.3661710023880005, 1.2965573072433472, 0.9414839148521423, -0.6355293989181519, -1.2618142366409302, 0.7114422917366028, 0.9734102487564087, -1.3934180736541748, 0.7373297214508057, 0.06343236565589905, -0.5168007612228394, 0.6780104041099548, 1.2733303308486938, 0.4938613772392273, -1.9347758293151855, 0.7083307504653931, -0.9141086935997009, 0.7310734391212463, 0.810378909111023, 0.7587900161743164, 0.21792113780975342, 0.8668632507324219, -1.221285104751587, -1.1727802753448486, -0.7325645685195923, -0.6273829340934753, 1.9067531824111938, -0.21488629281520844, 0.5282421112060547, -0.18367579579353333, -1.1840333938598633, -0.02253440022468567, 0.6853095293045044, 0.4106934666633606, -0.45576128363609314, 0.8054360151290894, -0.6090487241744995, -0.970013439655304, -1.3778034448623657, -0.440085232257843, -1.0125714540481567, -0.986330509185791, 1.0029797554016113, 0.9558988809585571, 0.30240166187286377, 1.8565280437469482, 0.6993176937103271, 0.2515351176261902, -2.574070453643799, 0.8884789347648621, 0.19864380359649658, 0.002499327063560486, 0.8120505809783936, 0.3652695119380951, 1.0596568584442139, -0.011150927282869816, 0.5736474990844727, -2.353935718536377, 2.25968074798584, -0.3018076419830322, 0.5433151721954346, -0.03158721327781677, -0.18777382373809814, 1.1406267881393433, 0.5619548559188843, 0.4315054416656494, -1.0573405027389526, 0.6912170052528381, -0.5789273977279663, 1.2628494501113892, 0.9461249709129333, -0.9273354411125183, 0.000196944922208786, 1.4567142724990845, 0.5403703451156616, -0.5660444498062134, -0.8807462453842163, -0.8899909853935242, 0.9893829822540283, 1.6282174587249756, 0.03105723299086094, -0.09137318283319473, 0.9788171052932739, 0.6665680408477783, -1.3029617071151733, 0.17735543847084045, -0.6440355181694031, -0.680150032043457, 1.6520321369171143, 1.9300678968429565, -0.14290019869804382, -0.17143455147743225, -0.7993102669715881, -1.1293799877166748, 0.8321292996406555, 0.08342225104570389, 0.08832754194736481, 0.695700466632843, -0.6779881119728088, 1.0737537145614624, 0.8622795343399048, 0.8210034370422363, 0.21504804491996765, 0.4326971173286438, 0.3713916838169098, -0.259280264377594, -1.2675542831420898, -0.19708935916423798, -1.1218839883804321, -2.5315449237823486, 0.5916875004768372, -0.297771155834198, -1.4055148363113403, -0.021389324218034744, -1.0885624885559082, 0.9532818794250488, -0.7215399742126465, -1.1387388706207275, -1.6151448488235474, 0.1940808892250061, -0.039602432399988174, 0.9050294160842896, -1.5597678422927856, -0.053094543516635895, 1.2342402935028076, 0.9229691624641418, -0.6835553050041199, 1.0648390054702759, 0.29815489053726196, 1.06826651096344, 0.7919260263442993, -0.4374391734600067, 0.5581657290458679, 0.04932458698749542, -1.484177589416504, 0.541512131690979, 1.1489412784576416, 0.22139322757720947, 1.522558569908142, -0.5568034052848816, 0.07582410424947739, 0.42457330226898193, -0.5541702508926392, -0.528079092502594, -0.6626046895980835, 0.6795305013656616, 0.13320203125476837, -0.9186317324638367, 0.06136340647935867, -0.018748492002487183, -0.25556254386901855, 0.227884441614151, -1.5290212631225586, -0.18369419872760773, -0.4236833155155182, -0.6913248300552368, -1.23103928565979, -0.11007580161094666, 1.4310476779937744, -0.7475017309188843, -0.12230966240167618, 0.5181017518043518, 0.3284919559955597, 0.4942861795425415, 0.6006565690040588, -0.6632530689239502, -0.24700844287872314, -0.3524329960346222, -0.3227839171886444, 0.31229496002197266, 1.3673707246780396, -0.21454375982284546, -1.0319340229034424, 0.7217537760734558, -0.3153991401195526, 0.08466818928718567, 1.952686071395874, 0.14153096079826355, -0.7646152377128601, 0.26727378368377686, -0.7771924138069153, 1.9840513467788696, 1.6888395547866821, 1.384682059288025, -0.06644855439662933, -0.8944199085235596, 0.5851722955703735, -0.2904244065284729, -0.3324757218360901, 0.9931691288948059, 0.4617251753807068, -0.12141773849725723, -1.3160985708236694, 0.7725069522857666, 1.3172990083694458, -0.9059076905250549, -0.870849609375, 0.06301570683717728, -0.719844400882721, 1.0068238973617554, 0.6349490284919739, 0.31962355971336365, 0.3281404376029968, 1.6352230310440063, 0.7472601532936096, -0.45970824360847473, 0.5876914858818054, 0.5626233220100403, -0.03842202574014664, -2.063030481338501, -1.1256285905838013, 0.4394840896129608, -0.537508487701416, -1.6796929836273193, 1.4511605501174927, -1.1155110597610474, -0.9027977585792542, 0.5782159566879272, 0.1292606145143509, 1.4784361124038696, 0.25747811794281006, 1.5925644636154175, 2.028670310974121, 0.8366637825965881, 0.35302942991256714, 1.3367712497711182, -0.14457803964614868, -0.40740615129470825, 1.7934916019439697, -0.4770350754261017, 0.48234689235687256, 1.021529197692871, -0.2829397916793823, -1.0678261518478394, -0.8269312381744385, -1.3431456089019775, -0.6377947926521301, 1.1489933729171753, 0.09444122761487961, -1.1111537218093872, 0.18495133519172668, 1.5771301984786987, 0.02344072051346302, -0.3764216899871826, 0.7202750444412231, 0.2766783535480499, -0.8370936512947083, -0.0489143505692482, -0.9543624520301819, 0.5843925476074219, -0.07175207138061523, -0.28067171573638916, 0.31336134672164917, 0.5262593030929565, 1.3120603561401367, 0.029682809486985207, 0.19594869017601013, 1.2293750047683716, -1.2566577196121216, 1.3900246620178223, -0.6408133506774902, 0.24461708962917328, -2.4520599842071533, 1.3583663702011108, -0.7226529121398926, 1.8730638027191162, -2.655487537384033, 0.441805899143219, -0.6174277663230896, -0.386438250541687, 0.3526197075843811, -0.5021761655807495, 0.13779863715171814, -0.07982456684112549, -1.1831682920455933, 0.010651348158717155, -0.7544270753860474, 0.6671727895736694, 1.14309823513031, 1.3996632099151611, -1.2096338272094727, -0.30053552985191345, -1.803100347518921, -0.09736046940088272, -0.7016937732696533, 0.36055243015289307, -2.050611734390259, -0.10880836844444275, -1.894487738609314, -2.453913450241089, -1.3116284608840942, -0.7188097238540649, 1.0357189178466797, 0.09641269594430923, -0.8842391967773438, 1.1097818613052368, -0.38020676374435425, -1.743668794631958, 1.1167806386947632, -2.130265235900879 ]
https://github.com/huggingface/datasets/issues/3729
Wrong number of examples when loading a text dataset
Hi @kg-nlp, thanks for reporting. That is weird... I guess we would need some sample data file where this behavior appears to reproduce the bug for further investigation...
## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False) print(len(datasets['train'])) # 1199649 ``` I also use command line operation to verify it ``` $ wc -l train.txt 1199637 train.txt ``` ## Expected results please fix that issue ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.3 - Platform:windows&linux - Python version:3.7 - PyArrow version:6.0.1
951
28
Wrong number of examples when loading a text dataset ## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False) print(len(datasets['train'])) # 1199649 ``` I also use command line operation to verify it ``` $ wc -l train.txt 1199637 train.txt ``` ## Expected results please fix that issue ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.3 - Platform:windows&linux - Python version:3.7 - PyArrow version:6.0.1 Hi @kg-nlp, thanks for reporting. That is weird... I guess we would need some sample data file where this behavior appears to reproduce the bug for further investigation...
[ -1.2383617162704468, -0.9171173572540283, -0.7306709885597229, 1.5293092727661133, -0.1927349716424942, -1.2200044393539429, 0.060696620494127274, -1.0021662712097168, 1.7247523069381714, -0.7301662564277649, 0.31555235385894775, -1.7203158140182495, 0.06150970235466957, -0.6576605439186096, -0.7458875775337219, -0.8577415943145752, -0.33223792910575867, -0.7325851917266846, 1.1245396137237549, 2.4340808391571045, 1.081141710281372, -1.4202632904052734, 2.7024524211883545, 0.6825329661369324, -0.07717106491327286, -1.0632725954055786, 0.5629098415374756, 0.03458910062909126, -1.3233757019042969, -0.3874189853668213, -0.9890071749687195, -0.0950222983956337, -0.6287342309951782, -0.6766972541809082, 0.024139709770679474, 0.38317179679870605, -0.25774574279785156, -0.5199029445648193, -0.4288484752178192, -0.7502011060714722, 0.4621083736419678, -0.4266883134841919, 0.832240641117096, -0.3945644199848175, 1.7757166624069214, -0.5783248543739319, 0.43625107407569885, 0.5823681950569153, 1.4110102653503418, 0.26486504077911377, -0.018770035356283188, 0.49112582206726074, 0.379649817943573, 0.04945489019155502, 0.5198702216148376, 1.1065716743469238, 0.5927131175994873, 0.43120384216308594, 0.8238331079483032, -2.2487101554870605, 1.2544848918914795, -1.0313652753829956, 0.2822566330432892, 1.2623428106307983, -1.042120337486267, 0.4213230013847351, -1.7315868139266968, -0.020023785531520844, 0.5401976108551025, -2.1917521953582764, 0.270241916179657, -1.2941502332687378, -0.4514560401439667, 0.9282737970352173, 0.3736173212528229, -1.333281397819519, 0.0900420993566513, -0.4745153486728668, 1.000089406967163, 0.4229305386543274, 1.088276982307434, -1.6825506687164307, -0.02604237198829651, -0.3143045902252197, 0.15867957472801208, -1.2863116264343262, -1.4510459899902344, 0.555535614490509, 0.7346066236495972, 0.5754560232162476, -0.12928515672683716, 0.9553121328353882, -1.0876798629760742, 0.7390827536582947, -1.0224478244781494, -1.7975414991378784, -1.4655792713165283, -2.2384490966796875, -2.2613120079040527, 0.7506519556045532, -0.4405997395515442, -0.5176427960395813, 2.0503461360931396, -1.0420151948928833, -1.7937203645706177, 1.1453938484191895, 0.2929091453552246, -0.11931754648685455, 2.4064412117004395, 0.1469944268465042, -0.7470638751983643, 0.5207089781761169, -0.7842119932174683, 0.6501389741897583, -0.4462035000324249, 1.3805755376815796, 0.4192458689212799, -0.9986051917076111, 1.7033114433288574, -0.3325802981853485, 0.5860982537269592, -0.6813463568687439, -0.4110371768474579, -0.8374550938606262, 0.2173638492822647, 2.015216588973999, -0.19804984331130981, 1.530273199081421, -0.32393208146095276, -1.547778844833374, -1.4975396394729614, 0.9129096269607544, 0.3809967041015625, -0.79655522108078, 0.2110826075077057, -0.28510111570358276, 0.21136300265789032, -0.03713638335466385, 1.1037983894348145, 1.2578498125076294, 0.7127604484558105, -0.2381872683763504, -0.9178004860877991, 0.22748807072639465, -0.08743932098150253, -0.6877570748329163, -1.7657504081726074, -0.4108020067214966, 0.09824492782354355, 0.6897778511047363, -1.1852688789367676, 1.6940984725952148, 0.8436745405197144, 1.8624151945114136, 1.0390734672546387, -0.3546598255634308, 1.5147593021392822, 0.0804438441991806, 1.9198486804962158, -0.5335540771484375, 0.7503159642219543, -0.4219665229320526, -1.1662739515304565, 0.7415243983268738, -0.37025338411331177, -1.9764372110366821, -0.6695787906646729, -0.8698304295539856, -0.10684069991111755, -0.7520676851272583, 1.0219476222991943, -0.34415337443351746, -1.3917150497436523, 0.31794506311416626, -0.7649075388908386, 0.21972240507602692, -1.2291710376739502, 0.3698168694972992, 0.7463542819023132, -0.6082497239112854, 0.1637527495622635, -0.3760073781013489, -1.2882885932922363, -0.49375757575035095, 0.337621808052063, 1.851154088973999, -0.9082909226417542, 0.9624807238578796, 0.9630507826805115, -0.736486554145813, -0.13018305599689484, 0.3891420066356659, -0.19554974138736725, 0.8667032718658447, -1.0797772407531738, -0.45819371938705444, 1.2748987674713135, -0.207942396402359, -0.6090729236602783, 1.4198541641235352, 0.8155423402786255, -0.9417510628700256, -0.13929541409015656, -0.20864208042621613, -0.8229663968086243, -0.01665523834526539, -1.7051981687545776, -0.07081758230924606, 0.4394300878047943, -1.612546682357788, -0.4446742534637451, -0.12115341424942017, 1.2350871562957764, -0.047712914645671844, 1.4198092222213745, -0.30709391832351685, -0.26564866304397583, -0.3661743998527527, -0.4429745078086853, 0.22581563889980316, -0.20436614751815796, -0.7214007377624512, 0.16665740311145782, -0.7028185129165649, 0.3645566701889038, 1.3584091663360596, 0.3397287428379059, 0.06707233190536499, 0.6119937300682068, 1.1558951139450073, 0.2857637405395508, -0.031482797116041183, -0.8408156633377075, -1.6016147136688232, 2.0579514503479004, -1.4459751844406128, 2.016357898712158, 0.6386573314666748, -0.09327208250761032, -1.8138370513916016, -1.8812968730926514, 1.4748793840408325, 1.2197831869125366, 2.3549129962921143, 0.6492884159088135, 0.43444153666496277, -0.8804033398628235, -0.6330457329750061, 0.2580406069755554, -0.9720894694328308, -0.7987640500068665, 0.11858253180980682, 2.4110159873962402, 1.7847548723220825, -0.471408873796463, -0.15069328248500824, -1.121224045753479, 1.4403185844421387, -0.17433138191699982, 0.2737411558628082, 1.8998186588287354, -0.2653600871562958, -1.0936235189437866, 1.228791356086731, -2.3294637203216553, 0.1149882897734642, 2.0279910564422607, 0.24705660343170166, 0.07922688871622086, -1.4094394445419312, -0.7351638078689575, -0.20434515178203583, -0.35165154933929443, -1.249375343322754, 0.5296549797058105, -0.2644278407096863, -0.7308609485626221, -1.4683151245117188, 0.11767587065696716, -1.129227876663208, -1.6665186882019043, 0.22464609146118164, 1.8899115324020386, 1.9765427112579346, -0.7458799481391907, 1.5949180126190186, -0.19385072588920593, 0.38307392597198486, 1.323551893234253, 1.181657314300537, 3.0449695587158203, 1.9804422855377197, -1.1902673244476318, 0.6939286589622498, -0.11724863201379776, -0.4453520178794861, 1.262597680091858, -1.1815143823623657, 1.2271301746368408, -0.1732414811849594, -1.175958514213562, -1.1969201564788818, 0.8582040071487427, 0.4431019127368927, -0.05473726987838745, -0.45214396715164185, 1.2317686080932617, 0.01416956726461649, 1.2459790706634521, 0.5546219348907471, -0.3560183048248291, 0.6524147987365723, -0.39756253361701965, -0.4626580774784088, 1.6065374612808228, 0.13806387782096863, -1.3562699556350708, -2.3485262393951416, -0.22611086070537567, -0.797340989112854, -0.01598486676812172, -0.5794112682342529, -0.948691189289093, 1.6060184240341187, 0.38175827264785767, -1.2172459363937378, -0.20646260678768158, -0.30489763617515564, -0.678254246711731, 2.7436935901641846, -1.4310599565505981, -0.37051013112068176, -0.994788646697998, -0.6225503087043762, 1.6254278421401978, -1.1316395998001099, -0.22374922037124634, -1.0198626518249512, -0.5130100846290588, -1.375691533088684, -0.5646640658378601, -0.0824832022190094, -0.8925679326057434, 0.8336301445960999, 0.20216763019561768, -1.2471998929977417, -0.3250155746936798, -0.8997913002967834, 0.7625358700752258, -0.14502884447574615, 0.24383756518363953, 1.8058507442474365, 0.39451152086257935, -0.385987788438797, 0.7339145541191101, 1.1175707578659058, 0.686240553855896, -0.6271923780441284, 0.3475062847137451, -0.6208385229110718, 0.3470971882343292, -1.327554702758789, 0.264373242855072, -2.825981378555298, 0.6111540794372559, -0.1015617772936821, -0.06895466148853302, -0.06490522623062134, -1.3304234743118286, 1.086279273033142, 2.5187785625457764, -1.2098034620285034, 0.4595860242843628, 0.17140129208564758, 1.2748911380767822, -1.634570598602295, 0.3083859980106354, -0.40437549352645874, 2.17726469039917, 0.2832217514514923, 1.153512954711914, -0.40962347388267517, -2.3170406818389893, 0.5350281000137329, -1.230254888534546, -1.1861032247543335, 0.717646062374115, -0.8807092308998108, 0.0979621484875679, -1.4283820390701294, -0.13294540345668793, -0.9051938652992249, -1.1576741933822632, 0.7139946222305298, 0.15270623564720154, 0.4316169321537018, -0.5757588744163513, 0.34907084703445435, -2.0951287746429443, -1.3853542804718018, -0.19903285801410675, -0.9057406187057495, 0.4490991532802582, -0.2961110472679138, 0.7689650654792786, -0.18727126717567444, 0.020444899797439575, 0.3017933666706085, 1.4361217021942139, 3.3474247455596924, 0.18454274535179138, 0.35451140999794006, -0.14826111495494843, -0.9253793358802795, 1.4684604406356812, 0.959754228591919, -0.25693172216415405, -0.549312174320221, -1.058527946472168, 1.3376911878585815, 1.9128398895263672, 0.9625553488731384, 0.038953039795160294, -0.7460007071495056, -0.6586987376213074, 0.007419009692966938, 0.08640582859516144, 0.4987959861755371, 0.8779835104942322, 0.14406926929950714, 0.08565724641084671, 1.4461714029312134, 1.1764785051345825, -0.4394635558128357, 0.35656994581222534, -0.7973098158836365, -0.4507158398628235, 0.5454761385917664, 0.34506577253341675, -0.05756119266152382, 0.2768571078777313, -1.0642626285552979, -0.15314997732639313, -0.38751301169395447, -0.8747596740722656, -0.7354204058647156, -0.40861061215400696, -0.3755556643009186, 1.6708952188491821, 0.06866803765296936, -0.6225154995918274, -0.14099262654781342, -0.7680636644363403, 0.015551016665995121, -0.9718652963638306, 0.3180813193321228, -0.15995372831821442, -0.05408187210559845, -0.06146156042814255, 1.8030811548233032, -0.9785366058349609, -2.075237274169922, 0.2490609884262085, 0.2218461036682129, -0.2512139081954956, 0.1742141991853714, 1.6416349411010742, 0.5739777088165283, 1.397888422012329, 1.4486942291259766, 0.9724507331848145, -0.7601683735847473, -1.3489115238189697, 0.6450204849243164, 0.9108641147613525, -1.4539438486099243, 0.7958428263664246, 0.09163045138120651, -0.5852441191673279, 0.5532413125038147, 1.2975234985351562, 0.4554641544818878, -1.9638367891311646, 0.7655665874481201, -1.0027978420257568, 0.7889586091041565, 0.7853468656539917, 0.7227672338485718, 0.24277904629707336, 0.824888288974762, -1.2243059873580933, -1.1233594417572021, -0.803948700428009, -0.6729909181594849, 1.9003174304962158, -0.2738147974014282, 0.5088571906089783, -0.12810082733631134, -1.3230717182159424, -0.09607543051242828, 0.6330390572547913, 0.3320262134075165, -0.42867711186408997, 0.8581423163414001, -0.659654438495636, -1.242526650428772, -1.3963487148284912, -0.5941179394721985, -0.972093403339386, -0.9425286054611206, 1.0503166913986206, 0.8225678205490112, 0.29553014039993286, 1.8345333337783813, 0.6202318668365479, 0.1205286979675293, -2.621772527694702, 0.9490790963172913, 0.25348788499832153, -0.07632604986429214, 0.7451356649398804, 0.31780773401260376, 1.0399566888809204, -0.09580053389072418, 0.5999438166618347, -2.3613836765289307, 2.237495183944702, -0.2844831645488739, 0.6205536127090454, -0.13055506348609924, -0.05008011311292648, 1.0581583976745605, 0.46576249599456787, 0.621793806552887, -0.9508783221244812, 0.7131701707839966, -0.6087552905082703, 1.2804203033447266, 0.951048731803894, -0.8469449877738953, -0.007861854508519173, 1.290992021560669, 0.42534390091896057, -0.5700701475143433, -0.9878687858581543, -0.9149526953697205, 0.98799729347229, 1.7855550050735474, -0.04573578014969826, -0.034142110496759415, 0.9057357907295227, 0.6486845016479492, -1.4015463590621948, 0.0015949811786413193, -0.7037062048912048, -0.6427381038665771, 1.7281769514083862, 2.044006109237671, -0.15343216061592102, -0.17502613365650177, -0.742877721786499, -1.2620974779129028, 0.7849357724189758, 0.09588930010795593, 0.02081425115466118, 0.7908000946044922, -0.6095030307769775, 1.0590826272964478, 0.8387635946273804, 0.9267159104347229, 0.18208669126033783, 0.22559940814971924, 0.3041532635688782, -0.2615971565246582, -1.201149582862854, -0.19721075892448425, -1.0377691984176636, -2.50607967376709, 0.473389595746994, -0.22447453439235687, -1.3783997297286987, 0.11773772537708282, -1.0327420234680176, 0.9403018951416016, -0.4481286108493805, -1.1093850135803223, -1.4542388916015625, 0.17326240241527557, -0.10704851150512695, 0.7893494367599487, -1.5918829441070557, -0.011244651861488819, 1.2455264329910278, 0.9819410443305969, -0.756096601486206, 1.055657148361206, 0.29288896918296814, 1.114902138710022, 0.9010397791862488, -0.3516225516796112, 0.5387996435165405, 0.08451434224843979, -1.307948112487793, 0.5179027318954468, 1.1713095903396606, 0.14465133845806122, 1.5512527227401733, -0.5727643370628357, -0.04298180341720581, 0.3903655409812927, -0.49139612913131714, -0.3871370255947113, -0.6606848239898682, 0.6880481839179993, 0.026913262903690338, -0.8515114784240723, -0.03564602509140968, -0.01447373814880848, -0.18344099819660187, 0.25611498951911926, -1.6312212944030762, -0.03576100617647171, -0.3281797766685486, -0.709805428981781, -1.15514075756073, -0.060741789638996124, 1.3825600147247314, -0.7165282964706421, -0.20355087518692017, 0.5532500147819519, 0.33321914076805115, 0.518934428691864, 0.5968461036682129, -0.6364964246749878, -0.3667028546333313, -0.12150415033102036, -0.41141676902770996, 0.32672104239463806, 1.3181525468826294, -0.15332604944705963, -1.0800130367279053, 0.7422919869422913, -0.3362308740615845, 0.030287008732557297, 1.8581424951553345, 0.001369154080748558, -0.9010257720947266, 0.26173698902130127, -0.7854344844818115, 2.0078580379486084, 1.6964335441589355, 1.3210525512695312, -0.13417604565620422, -0.9580186009407043, 0.6507335305213928, -0.27714160084724426, -0.40901872515678406, 0.8313806056976318, 0.46026837825775146, -0.16287830471992493, -1.2453111410140991, 0.70066899061203, 1.3093812465667725, -0.8685411214828491, -0.8080843091011047, 0.12119729816913605, -0.783366858959198, 1.0768572092056274, 0.7809625267982483, 0.40563273429870605, 0.24716442823410034, 1.6920112371444702, 0.7487549185752869, -0.514300525188446, 0.4927167296409607, 0.5195639729499817, -0.1760239601135254, -2.0339443683624268, -1.1575260162353516, 0.3378790318965912, -0.5088670253753662, -1.739414930343628, 1.301866888999939, -1.20188570022583, -0.8215125799179077, 0.5697524547576904, 0.11157553642988205, 1.4373855590820312, 0.39178597927093506, 1.4874426126480103, 1.9794398546218872, 0.8697643280029297, 0.3776620626449585, 1.2201309204101562, -0.15414437651634216, -0.4305321276187897, 1.7607944011688232, -0.42433008551597595, 0.49504655599594116, 1.098522424697876, -0.2984049320220947, -1.1093285083770752, -0.7679290771484375, -1.2795904874801636, -0.6409992575645447, 1.1560171842575073, 0.14404256641864777, -1.271091341972351, 0.20922021567821503, 1.4898570775985718, 0.04064447805285454, -0.3725423514842987, 0.6432732939720154, 0.33455073833465576, -0.7702270150184631, -0.0005628764629364014, -0.9375573396682739, 0.4855514466762543, -0.25583329796791077, -0.3374877870082855, 0.35701218247413635, 0.4158990681171417, 1.3007071018218994, 0.12000367045402527, 0.20763003826141357, 1.3547817468643188, -1.3409044742584229, 1.4535309076309204, -0.7358792424201965, 0.23213040828704834, -2.3494813442230225, 1.4231277704238892, -0.8530015349388123, 1.946777582168579, -2.655900001525879, 0.4413047134876251, -0.6722692251205444, -0.4065198004245758, 0.32303348183631897, -0.3364088237285614, 0.11914476752281189, -0.11232224106788635, -1.1807771921157837, -0.040608908981084824, -0.7429937124252319, 0.5014636516571045, 1.1004188060760498, 1.3028736114501953, -1.1305054426193237, -0.2588891386985779, -1.781191110610962, -0.1708509922027588, -0.5833116769790649, 0.3649480938911438, -2.033834934234619, -0.17763133347034454, -1.9039452075958252, -2.404301881790161, -1.299049735069275, -0.785355806350708, 1.1243237257003784, 0.11044254899024963, -0.793271541595459, 1.1537110805511475, -0.3168429136276245, -1.7933804988861084, 1.094821572303772, -2.1890182495117188 ]
https://github.com/huggingface/datasets/issues/3729
Wrong number of examples when loading a text dataset
ok, I found the reason why that two results are not same. there is /u2029 in the text, the datasets will split sentence according to the /u2029,but when I use open function will not do that . so I want to know which function shell do that thanks
## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False) print(len(datasets['train'])) # 1199649 ``` I also use command line operation to verify it ``` $ wc -l train.txt 1199637 train.txt ``` ## Expected results please fix that issue ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.3 - Platform:windows&linux - Python version:3.7 - PyArrow version:6.0.1
951
48
Wrong number of examples when loading a text dataset ## Describe the bug when I use load_dataset to read a txt file I find that the number of the samples is incorrect ## Steps to reproduce the bug ``` fr = open('train.txt','r',encoding='utf-8').readlines() print(len(fr)) # 1199637 datasets = load_dataset('text', data_files={'train': ['train.txt']}, streaming=False) print(len(datasets['train'])) # 1199649 ``` I also use command line operation to verify it ``` $ wc -l train.txt 1199637 train.txt ``` ## Expected results please fix that issue ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.3 - Platform:windows&linux - Python version:3.7 - PyArrow version:6.0.1 ok, I found the reason why that two results are not same. there is /u2029 in the text, the datasets will split sentence according to the /u2029,but when I use open function will not do that . so I want to know which function shell do that thanks
[ -1.21846342086792, -0.9189545512199402, -0.7785519957542419, 1.4966208934783936, -0.1617184430360794, -1.2009694576263428, 0.028873205184936523, -1.0466110706329346, 1.6746559143066406, -0.7456032037734985, 0.3226085603237152, -1.7180166244506836, 0.002013453282415867, -0.6747039556503296, -0.7083083987236023, -0.867560088634491, -0.35496047139167786, -0.7822534441947937, 1.0910651683807373, 2.4034311771392822, 1.0968992710113525, -1.4638750553131104, 2.742514133453369, 0.6696907877922058, -0.0928439125418663, -1.080564022064209, 0.5770459175109863, -0.01616068370640278, -1.2606749534606934, -0.4682115316390991, -0.9816200137138367, -0.07756371051073074, -0.6303986310958862, -0.6530596017837524, 0.02621512860059738, 0.3838218152523041, -0.2588505744934082, -0.45033708214759827, -0.45838528871536255, -0.7714613676071167, 0.490122526884079, -0.4257315397262573, 0.8427023887634277, -0.420796275138855, 1.8234353065490723, -0.5279670357704163, 0.37900814414024353, 0.6297799348831177, 1.4356610774993896, 0.25902169942855835, -0.06756260991096497, 0.481241911649704, 0.3764648139476776, 0.02148444578051567, 0.534217119216919, 1.1206519603729248, 0.5753399133682251, 0.4480931758880615, 0.803108274936676, -2.227928876876831, 1.2449793815612793, -0.9953756332397461, 0.30262354016304016, 1.3028302192687988, -1.0470924377441406, 0.4204685091972351, -1.7528657913208008, -0.01690649427473545, 0.5309526324272156, -2.209447145462036, 0.2607532739639282, -1.27132248878479, -0.4434839189052582, 0.9512025117874146, 0.37152099609375, -1.3539659976959229, 0.11044067144393921, -0.4651354253292084, 0.9999662041664124, 0.46364060044288635, 1.0851969718933105, -1.6759006977081299, -0.006284929346293211, -0.2991153299808502, 0.13970622420310974, -1.3007161617279053, -1.444488286972046, 0.5220152139663696, 0.7534924149513245, 0.5681564807891846, -0.10824839770793915, 0.9945239424705505, -1.0515804290771484, 0.7301111817359924, -0.9774019718170166, -1.718843936920166, -1.4254958629608154, -2.226240873336792, -2.2297801971435547, 0.7763767838478088, -0.4821663200855255, -0.5195808410644531, 2.0660953521728516, -1.0517206192016602, -1.7932500839233398, 1.1716327667236328, 0.32042497396469116, -0.09310067445039749, 2.4227895736694336, 0.1483081877231598, -0.7430108785629272, 0.4956483244895935, -0.7503791451454163, 0.7164158821105957, -0.4543253481388092, 1.3772363662719727, 0.44654330611228943, -1.0253596305847168, 1.724992036819458, -0.3492637276649475, 0.5676144957542419, -0.6888946294784546, -0.44359439611434937, -0.8646535277366638, 0.2761557996273041, 2.026456832885742, -0.24740207195281982, 1.5548875331878662, -0.33444082736968994, -1.552206039428711, -1.537719488143921, 0.9142252802848816, 0.39149630069732666, -0.839048445224762, 0.20400221645832062, -0.2975873649120331, 0.17077307403087616, -0.06351007521152496, 1.1288933753967285, 1.2511217594146729, 0.6673394441604614, -0.24737516045570374, -0.9097162485122681, 0.21714560687541962, -0.07955107092857361, -0.6862937808036804, -1.7761363983154297, -0.46924471855163574, 0.08867689967155457, 0.6601293683052063, -1.1884238719940186, 1.7006170749664307, 0.8904452919960022, 1.8799402713775635, 1.0506517887115479, -0.33367130160331726, 1.5068812370300293, 0.10037464648485184, 1.8713867664337158, -0.4851142168045044, 0.7222005128860474, -0.38417941331863403, -1.1990118026733398, 0.7836669087409973, -0.35355058312416077, -1.9599103927612305, -0.7017104029655457, -0.8770288228988647, -0.08048515766859055, -0.7375229597091675, 0.9649463295936584, -0.3709156811237335, -1.3653345108032227, 0.3173430562019348, -0.7439717650413513, 0.23720289766788483, -1.244872808456421, 0.37843021750450134, 0.781427800655365, -0.6412087082862854, 0.09206411987543106, -0.37844645977020264, -1.2668132781982422, -0.4673905670642853, 0.35398417711257935, 1.8864514827728271, -0.8754518628120422, 0.9213557839393616, 0.9531005620956421, -0.7084033489227295, -0.11412248015403748, 0.3876531422138214, -0.23137007653713226, 0.8449469804763794, -1.0633292198181152, -0.4298790395259857, 1.2681360244750977, -0.19260644912719727, -0.6344213485717773, 1.4401752948760986, 0.826575517654419, -0.9669255018234253, -0.15579116344451904, -0.2409178465604782, -0.8308600783348083, -0.032837286591529846, -1.6808393001556396, -0.029477184638381004, 0.3808576464653015, -1.5702126026153564, -0.4557402431964874, -0.12522459030151367, 1.260558843612671, -0.05546299368143082, 1.433650255203247, -0.3983975052833557, -0.24350060522556305, -0.3835504949092865, -0.4996998906135559, 0.2260436713695526, -0.2328968197107315, -0.6962116360664368, 0.17617301642894745, -0.6808421611785889, 0.3556465804576874, 1.3488576412200928, 0.37692660093307495, 0.0630076602101326, 0.6173875331878662, 1.1796095371246338, 0.27729636430740356, -0.01662200130522251, -0.842023491859436, -1.5689234733581543, 2.062828779220581, -1.4498400688171387, 1.98433518409729, 0.6859793066978455, -0.07404430210590363, -1.7995905876159668, -1.833193302154541, 1.4731147289276123, 1.2286796569824219, 2.328340768814087, 0.6797404289245605, 0.44614729285240173, -0.9364268779754639, -0.6744309663772583, 0.3000178039073944, -0.9846789836883545, -0.7928484678268433, 0.0808553621172905, 2.378772497177124, 1.8247926235198975, -0.4896485209465027, -0.16326399147510529, -1.093384027481079, 1.4170725345611572, -0.22065086662769318, 0.26500213146209717, 1.9012749195098877, -0.2778104543685913, -1.1052119731903076, 1.2135710716247559, -2.345985174179077, 0.11392262578010559, 2.0463645458221436, 0.24979975819587708, 0.10883628576993942, -1.4039306640625, -0.6927827000617981, -0.1686694473028183, -0.32791849970817566, -1.2695012092590332, 0.5301876068115234, -0.30152323842048645, -0.7453129887580872, -1.4576849937438965, 0.11599326133728027, -1.1355104446411133, -1.620734453201294, 0.2667689621448517, 1.8564021587371826, 1.9900281429290771, -0.7248139381408691, 1.6278393268585205, -0.1973792314529419, 0.36332061886787415, 1.2911980152130127, 1.2466330528259277, 3.046502113342285, 1.9393925666809082, -1.2349376678466797, 0.6255837678909302, -0.11605795472860336, -0.4840256869792938, 1.2665140628814697, -1.1320075988769531, 1.2296068668365479, -0.2099253386259079, -1.190783977508545, -1.1917619705200195, 0.8742228150367737, 0.44488558173179626, -0.012585713528096676, -0.4589918851852417, 1.2808148860931396, 0.0026583457365632057, 1.228736400604248, 0.5591726899147034, -0.35728269815444946, 0.6826652884483337, -0.3654780387878418, -0.5110273361206055, 1.5431840419769287, 0.12069644033908844, -1.3810594081878662, -2.3459889888763428, -0.23295120894908905, -0.7905817627906799, 0.018731797114014626, -0.5964974761009216, -0.9472218155860901, 1.601119041442871, 0.3691455125808716, -1.2602262496948242, -0.2708108723163605, -0.3018513023853302, -0.6381160616874695, 2.6935067176818848, -1.4185380935668945, -0.34895995259284973, -0.9712070226669312, -0.5771979093551636, 1.6390817165374756, -1.1480131149291992, -0.17270492017269135, -1.031489610671997, -0.5472920536994934, -1.332000970840454, -0.5750972032546997, -0.1427404284477234, -0.9026566743850708, 0.8540778160095215, 0.23485538363456726, -1.2208425998687744, -0.2887749969959259, -0.9174415469169617, 0.7939345836639404, -0.1626024842262268, 0.2142849564552307, 1.800804615020752, 0.3979232907295227, -0.4239059090614319, 0.7434710264205933, 1.1506104469299316, 0.6778746843338013, -0.6070889234542847, 0.34990382194519043, -0.5804556012153625, 0.3203181028366089, -1.353846549987793, 0.226896733045578, -2.883127450942993, 0.620067834854126, -0.07157536596059799, -0.052770812064409256, -0.09513524919748306, -1.3497865200042725, 1.0599017143249512, 2.505284547805786, -1.2361340522766113, 0.43622326850891113, 0.18145868182182312, 1.303056001663208, -1.6742727756500244, 0.29697418212890625, -0.4401739239692688, 2.1570565700531006, 0.28264617919921875, 1.1579816341400146, -0.4106002748012543, -2.3163585662841797, 0.49340081214904785, -1.2163233757019043, -1.1309895515441895, 0.7351034283638, -0.8521068096160889, 0.10405004769563675, -1.4166920185089111, -0.11821410804986954, -0.8807257413864136, -1.1505002975463867, 0.7456703782081604, 0.14955812692642212, 0.43730777502059937, -0.5622105598449707, 0.3400247395038605, -2.074094533920288, -1.4061758518218994, -0.20956645905971527, -0.9151551723480225, 0.4681178033351898, -0.2849670946598053, 0.751930832862854, -0.19061513245105743, 0.027000267058610916, 0.2944723963737488, 1.4404895305633545, 3.3560221195220947, 0.19721552729606628, 0.35930103063583374, -0.134963721036911, -0.9005032777786255, 1.521803379058838, 0.9606480002403259, -0.22182221710681915, -0.5676707029342651, -1.0463995933532715, 1.3358862400054932, 1.9188756942749023, 0.9526036977767944, 0.012974509969353676, -0.7830642461776733, -0.6736538410186768, -0.06212102621793747, 0.09972535073757172, 0.4982678294181824, 0.8332179188728333, 0.13206319510936737, 0.10909092426300049, 1.3859453201293945, 1.1523871421813965, -0.45044153928756714, 0.39560505747795105, -0.8117903470993042, -0.4645823836326599, 0.5506776571273804, 0.3238033354282379, -0.02950209751725197, 0.3286531865596771, -1.043541669845581, -0.17499478161334991, -0.35763296484947205, -0.8794462084770203, -0.7057765126228333, -0.4273315966129303, -0.3612845540046692, 1.6753673553466797, 0.06707430630922318, -0.629259467124939, -0.06623916327953339, -0.7728583812713623, -0.04474921524524689, -1.0452167987823486, 0.2733598053455353, -0.13710743188858032, -0.08962266147136688, -0.060826849192380905, 1.7611167430877686, -0.96624356508255, -2.0937232971191406, 0.24607011675834656, 0.2522488534450531, -0.25396299362182617, 0.16356831789016724, 1.658672571182251, 0.5589925646781921, 1.3992493152618408, 1.4612507820129395, 0.9786856174468994, -0.7877826690673828, -1.2915375232696533, 0.6539663076400757, 0.912517249584198, -1.4699969291687012, 0.8275760412216187, 0.08677951246500015, -0.5918331742286682, 0.610032320022583, 1.3101131916046143, 0.47551652789115906, -1.9657902717590332, 0.802139401435852, -0.9855795502662659, 0.7993858456611633, 0.7913771271705627, 0.6793520450592041, 0.27184417843818665, 0.8141674995422363, -1.2161905765533447, -1.1885018348693848, -0.7993090152740479, -0.6603010296821594, 1.9032790660858154, -0.28884172439575195, 0.5379663705825806, -0.11794169247150421, -1.3661625385284424, -0.09551588445901871, 0.6696064472198486, 0.3208474814891815, -0.3915185034275055, 0.8387299180030823, -0.672766923904419, -1.2539923191070557, -1.4096393585205078, -0.5166884660720825, -1.0294685363769531, -0.9822623133659363, 1.0764031410217285, 0.8002272844314575, 0.25724780559539795, 1.8402988910675049, 0.6305908560752869, 0.11269034445285797, -2.588512420654297, 0.9717882871627808, 0.2682121992111206, -0.09267507493495941, 0.7654944062232971, 0.2828750014305115, 1.0810081958770752, -0.04519185051321983, 0.6219807863235474, -2.367905378341675, 2.2235684394836426, -0.2641298770904541, 0.6088382601737976, -0.07649417221546173, -0.10837265849113464, 1.0363993644714355, 0.48188385367393494, 0.6335375308990479, -0.996461033821106, 0.7242900729179382, -0.6268445253372192, 1.2304201126098633, 0.9485047459602356, -0.87200927734375, 0.023009486496448517, 1.31308913230896, 0.4426291882991791, -0.5972471237182617, -0.9830170273780823, -0.9418522715568542, 0.9887816309928894, 1.7806389331817627, -0.05017951503396034, -0.04696328565478325, 0.8917801380157471, 0.6286830306053162, -1.3820490837097168, 0.04571925103664398, -0.6783646941184998, -0.6526283621788025, 1.7209289073944092, 2.0046274662017822, -0.18053707480430603, -0.14571160078048706, -0.7414963245391846, -1.2865815162658691, 0.7707222104072571, 0.09655048698186874, 0.04746728390455246, 0.7545652985572815, -0.6274023652076721, 1.0696454048156738, 0.8471944332122803, 0.8917457461357117, 0.17453636229038239, 0.18840950727462769, 0.34205329418182373, -0.26501980423927307, -1.1752307415008545, -0.20675529539585114, -1.019089698791504, -2.5560433864593506, 0.4593818485736847, -0.23415310680866241, -1.3509368896484375, 0.06992567330598831, -1.0377590656280518, 0.9465276002883911, -0.4814826548099518, -1.0972256660461426, -1.5008163452148438, 0.20271897315979004, -0.09493126720190048, 0.7714918255805969, -1.575852632522583, 0.005808159708976746, 1.255491018295288, 0.9904974102973938, -0.7768369913101196, 1.0409009456634521, 0.3274807929992676, 1.1316194534301758, 0.8855769634246826, -0.3642328083515167, 0.5747669339179993, 0.05514248460531235, -1.3411035537719727, 0.5089285969734192, 1.1753618717193604, 0.13868069648742676, 1.5158216953277588, -0.5542132258415222, -0.026397835463285446, 0.38223156332969666, -0.47758758068084717, -0.4247615933418274, -0.6412102580070496, 0.6724984645843506, 0.043876372277736664, -0.8899164795875549, -0.03792373090982437, -0.037579797208309174, -0.23906448483467102, 0.2665290832519531, -1.6242237091064453, -0.091948002576828, -0.3631660044193268, -0.6443948745727539, -1.1796150207519531, -0.05145607888698578, 1.4116802215576172, -0.682009220123291, -0.22801046073436737, 0.5639939904212952, 0.35781070590019226, 0.5131791830062866, 0.6148552298545837, -0.6314548850059509, -0.34861254692077637, -0.12676802277565002, -0.4148862659931183, 0.3300570845603943, 1.290952444076538, -0.1645582616329193, -1.0238702297210693, 0.7420303821563721, -0.331580251455307, 0.02754700928926468, 1.8816940784454346, 0.04830542579293251, -0.9132304191589355, 0.2662002742290497, -0.7706298232078552, 2.012486457824707, 1.7004687786102295, 1.3399436473846436, -0.1256200671195984, -0.9302061796188354, 0.6620399951934814, -0.2717532515525818, -0.3945101499557495, 0.8572663068771362, 0.4540941119194031, -0.15305081009864807, -1.3182644844055176, 0.6895849108695984, 1.28926420211792, -0.8016330003738403, -0.7503246068954468, 0.026833169162273407, -0.7890510559082031, 1.0322206020355225, 0.7743756771087646, 0.4380382001399994, 0.23340871930122375, 1.6675012111663818, 0.7334423661231995, -0.504730224609375, 0.4846097528934479, 0.5089892745018005, -0.1779710203409195, -2.0323915481567383, -1.165865421295166, 0.3384760320186615, -0.48240742087364197, -1.7535710334777832, 1.2878103256225586, -1.2035102844238281, -0.8410810232162476, 0.5455324649810791, 0.07805664837360382, 1.4137439727783203, 0.35653239488601685, 1.4866788387298584, 1.994368314743042, 0.8703650236129761, 0.3650849759578705, 1.2342605590820312, -0.15206389129161835, -0.3464723825454712, 1.778411865234375, -0.4011463522911072, 0.4420183002948761, 1.1098604202270508, -0.28127995133399963, -1.1165378093719482, -0.7382543683052063, -1.2679409980773926, -0.6705507040023804, 1.1338167190551758, 0.1264381855726242, -1.2768523693084717, 0.20878416299819946, 1.51173996925354, 0.04920925945043564, -0.35131946206092834, 0.6391242742538452, 0.39733076095581055, -0.7619403600692749, 0.03965289890766144, -0.9267681837081909, 0.48468348383903503, -0.24351866543293, -0.350185751914978, 0.37761759757995605, 0.4159342646598816, 1.3311114311218262, 0.07870277762413025, 0.2170015573501587, 1.3363795280456543, -1.2899811267852783, 1.3963582515716553, -0.7377194166183472, 0.24236580729484558, -2.369795799255371, 1.4178581237792969, -0.8322131037712097, 1.9580028057098389, -2.6159591674804688, 0.4639055132865906, -0.6882933974266052, -0.39645007252693176, 0.3645072281360626, -0.3429235816001892, 0.12003655731678009, -0.11087964475154877, -1.1626546382904053, -0.04553068056702614, -0.7363395690917969, 0.5054730772972107, 1.1076087951660156, 1.298482894897461, -1.0952038764953613, -0.2730028033256531, -1.7572929859161377, -0.13043296337127686, -0.6006329655647278, 0.35096877813339233, -2.0601468086242676, -0.17899732291698456, -1.9545221328735352, -2.408626079559326, -1.3224272727966309, -0.7914000153541565, 1.139345407485962, 0.14262709021568298, -0.7855820059776306, 1.1797914505004883, -0.3031248152256012, -1.7894387245178223, 1.069164514541626, -2.158967971801758 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
Hi @aasem, thanks for reporting. Please note that currently Commom Voice is hosted on our Hub as a community dataset by the Mozilla Foundation. See all Common Voice versions here: https://huggingface.co/mozilla-foundation Maybe we should add an explaining note in our "legacy" Common Voice canonical script? What do you think @lhoestq @mariosasko ?
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
953
52
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No Hi @aasem, thanks for reporting. Please note that currently Commom Voice is hosted on our Hub as a community dataset by the Mozilla Foundation. See all Common Voice versions here: https://huggingface.co/mozilla-foundation Maybe we should add an explaining note in our "legacy" Common Voice canonical script? What do you think @lhoestq @mariosasko ?
[ -1.2242391109466553, -0.9456772208213806, -0.8170012831687927, 1.3557244539260864, -0.19582755863666534, -1.20811128616333, 0.1560380607843399, -1.0715523958206177, 1.6052354574203491, -0.7906132340431213, 0.1782779097557068, -1.6577545404434204, -0.044020216912031174, -0.5301982164382935, -0.7552235722541809, -0.9692555069923401, -0.45504000782966614, -0.7834804654121399, 0.9356929063796997, 2.441922187805176, 1.275421142578125, -1.264410138130188, 2.75645112991333, 0.6744936108589172, -0.19872578978538513, -1.1245261430740356, 0.5985670685768127, 0.014484168961644173, -1.1416422128677368, -0.44232770800590515, -0.9669155478477478, -0.014066778123378754, -0.6026206612586975, -0.4351252019405365, 0.0472089983522892, 0.38700827956199646, -0.26375797390937805, -0.23887014389038086, -0.6524546146392822, -0.823233425617218, 0.5236491560935974, -0.37187811732292175, 1.0481303930282593, -0.45153647661209106, 1.8463737964630127, -0.6461290121078491, 0.3539949655532837, 0.7592705488204956, 1.3366559743881226, 0.15561817586421967, 0.03975905850529671, 0.221467062830925, 0.34051504731178284, -0.03921954333782196, 0.4801701009273529, 1.1223472356796265, 0.5373303294181824, 0.4659941792488098, 0.6736637353897095, -2.1720826625823975, 1.264390468597412, -0.9848736524581909, 0.33625608682632446, 1.511684536933899, -0.923518180847168, 0.3830461800098419, -1.8577730655670166, -0.12731388211250305, 0.5544993877410889, -2.306851625442505, 0.11908406019210815, -1.2485078573226929, -0.6824284791946411, 0.8827115893363953, 0.28717556595802307, -1.2337936162948608, 0.2030256986618042, -0.4214155972003937, 1.0705344676971436, 0.5533136129379272, 1.145708441734314, -1.6828361749649048, -0.05053097754716873, -0.30318281054496765, 0.10974524915218353, -1.3665211200714111, -1.5666937828063965, 0.5349552035331726, 0.575578510761261, 0.5869492292404175, -0.0963277667760849, 0.9126831889152527, -0.9478120803833008, 0.8722895979881287, -0.9426798224449158, -1.523979663848877, -1.423067569732666, -2.2911627292633057, -2.33056902885437, 0.8072577118873596, -0.5383808016777039, -0.44874611496925354, 1.9156951904296875, -1.0491451025009155, -1.774389386177063, 1.175737977027893, 0.2326185405254364, 0.16418999433517456, 2.38079571723938, 0.1826770305633545, -0.6711720824241638, 0.3814985454082489, -0.6753818392753601, 0.9128736853599548, -0.27393701672554016, 1.3988205194473267, 0.6085809469223022, -1.021849513053894, 1.6567214727401733, -0.47637972235679626, 0.5423781275749207, -0.6060312390327454, -0.541049599647522, -0.8193778991699219, 0.32316097617149353, 1.840065360069275, -0.32165154814720154, 1.6367617845535278, -0.30586764216423035, -1.5774509906768799, -1.5584708452224731, 0.8380643725395203, 0.5442383885383606, -0.8991830945014954, 0.020839665085077286, -0.3687230348587036, 0.08716897666454315, -0.04188231751322746, 1.0970427989959717, 1.1748709678649902, 0.6908510327339172, -0.3707921802997589, -0.7787152528762817, 0.2231859266757965, -0.06327469646930695, -0.7102612257003784, -1.8313977718353271, -0.3531598746776581, 0.31638672947883606, 0.6046679615974426, -1.2351396083831787, 1.670451045036316, 0.9141818881034851, 1.8703995943069458, 0.9748284816741943, -0.2622356116771698, 1.4609668254852295, 0.0008013667538762093, 1.7606868743896484, -0.5301828980445862, 0.6857718825340271, -0.28169748187065125, -1.1309410333633423, 0.8161785006523132, -0.34605711698532104, -2.045649766921997, -0.8952676653862, -0.8803814649581909, -0.19095391035079956, -0.7535884976387024, 0.9050331711769104, -0.4415793716907501, -1.3531272411346436, 0.2463945895433426, -0.5388178825378418, 0.11250428855419159, -1.2371387481689453, 0.22416165471076965, 0.7213366031646729, -0.6870213747024536, -0.07591402530670166, -0.08186429738998413, -1.2530841827392578, -0.4677720069885254, 0.24353526532649994, 1.9612724781036377, -0.6108576059341431, 0.887954831123352, 0.8914961814880371, -0.7187334895133972, 0.05143650993704796, 0.29894664883613586, -0.2740042507648468, 0.7659652233123779, -0.9624796509742737, -0.4342673718929291, 1.0596661567687988, -0.16849808394908905, -0.6881892085075378, 1.5279065370559692, 0.8617665767669678, -0.9893827438354492, -0.19409587979316711, -0.28699442744255066, -0.8148800730705261, -0.07002632319927216, -1.5494176149368286, -0.21124328672885895, 0.17594614624977112, -1.5208367109298706, -0.49016380310058594, -0.23892934620380402, 1.2565089464187622, -0.2674556076526642, 1.3709094524383545, -0.46331703662872314, -0.32331711053848267, -0.3045335114002228, -0.5747201442718506, 0.2433134764432907, -0.1973755955696106, -0.6259017586708069, 0.24205394089221954, -0.8906087279319763, 0.402292937040329, 1.4032355546951294, 0.4422862231731415, 0.0733615905046463, 0.5107113122940063, 1.0459997653961182, 0.3530789911746979, -0.07075239717960358, -0.9369204044342041, -1.534650206565857, 2.053591728210449, -1.3774136304855347, 1.940428614616394, 0.7045677304267883, -0.07746231555938721, -1.7898650169372559, -1.753190040588379, 1.239061951637268, 1.2376693487167358, 2.3376095294952393, 0.5600385069847107, 0.314289927482605, -0.8026555776596069, -0.7199263572692871, 0.2476239651441574, -1.1141390800476074, -0.6575803160667419, 0.13073128461837769, 2.300340175628662, 1.788294792175293, -0.5944194793701172, -0.21754463016986847, -0.9866865277290344, 1.2521940469741821, -0.18211568892002106, 0.21309225261211395, 2.093712329864502, -0.3603914678096771, -1.0619633197784424, 1.290979027748108, -2.2269296646118164, 0.15703809261322021, 1.9975099563598633, 0.28635337948799133, 0.13851504027843475, -1.5059946775436401, -0.7496469020843506, -0.32801422476768494, -0.48650896549224854, -1.4023873805999756, 0.5742835402488708, -0.2803683578968048, -0.9393767714500427, -1.3859143257141113, 0.09464748203754425, -1.1873464584350586, -1.5992035865783691, 0.4997003972530365, 1.8343552350997925, 1.9900339841842651, -0.718675434589386, 1.458534598350525, -0.301089882850647, 0.1397356390953064, 1.3794102668762207, 1.2085086107254028, 3.1349306106567383, 1.9269766807556152, -1.2560220956802368, 0.7087030410766602, -0.22601158916950226, -0.47592031955718994, 1.192622423171997, -1.036154866218567, 1.2441171407699585, -0.2213687002658844, -1.2482424974441528, -1.2394800186157227, 1.1093471050262451, 0.42739802598953247, 0.07679876685142517, -0.530968427658081, 1.3290249109268188, 0.041704703122377396, 1.4150745868682861, 0.5618316531181335, -0.46947845816612244, 0.5469104647636414, -0.3917792737483978, -0.5676476955413818, 1.685436725616455, 0.10868020355701447, -1.5622377395629883, -2.340338945388794, -0.3316943049430847, -0.8050978183746338, -0.14037147164344788, -0.4499908983707428, -1.0750548839569092, 1.6545722484588623, 0.43449926376342773, -1.379238247871399, -0.3352888226509094, -0.3963930904865265, -0.5133530497550964, 2.6421995162963867, -1.4001423120498657, -0.20836254954338074, -0.958502471446991, -0.5640010833740234, 1.7197215557098389, -1.2215086221694946, -0.1874338537454605, -1.0512882471084595, -0.6599615216255188, -1.4079300165176392, -0.5453613996505737, -0.002608541864901781, -0.9596946835517883, 0.7239434123039246, 0.11927691102027893, -0.8758798241615295, -0.3275480270385742, -0.8419756889343262, 0.9353682398796082, -0.07622796297073364, 0.24616719782352448, 1.9866349697113037, 0.3572078049182892, -0.3536754250526428, 0.6169425249099731, 1.1095529794692993, 0.6420124173164368, -0.7411911487579346, 0.06933671236038208, -0.7365353107452393, 0.21284230053424835, -1.3558435440063477, 0.19373159110546112, -2.9205331802368164, 0.7442642450332642, -0.10389748215675354, -0.1101280152797699, 0.0008483026176691055, -1.2910552024841309, 1.247299075126648, 2.610069751739502, -1.0944898128509521, 0.2983710467815399, 0.3570661246776581, 1.1413713693618774, -1.5944859981536865, 0.4154520630836487, -0.45869144797325134, 2.0679683685302734, 0.17904306948184967, 1.256872296333313, -0.512348473072052, -2.220681667327881, 0.6806042194366455, -1.1833373308181763, -1.2263637781143188, 0.8176224231719971, -0.7645150423049927, 0.2006082534790039, -1.5660426616668701, -0.2391708940267563, -0.9366980195045471, -1.3173234462738037, 0.865673840045929, 0.14735150337219238, 0.4535437822341919, -0.5765492916107178, 0.3392390012741089, -2.183199882507324, -1.4284929037094116, -0.16223372519016266, -0.9336991906166077, 0.4745379090309143, -0.321210116147995, 0.6071239113807678, -0.03175319731235504, 0.13712331652641296, 0.3183850646018982, 1.4182149171829224, 3.469144582748413, 0.23912711441516876, 0.275512158870697, -0.06271018832921982, -0.9680580496788025, 1.5318899154663086, 1.0217233896255493, 0.03137604519724846, -0.5180141925811768, -0.8959308862686157, 1.2333279848098755, 1.9733613729476929, 1.0750885009765625, 0.022472675889730453, -0.7575197815895081, -0.6063831448554993, 0.05247320979833603, 0.21948403120040894, 0.5005294680595398, 0.9202004671096802, -0.07612746953964233, 0.06509241461753845, 1.4910979270935059, 1.328833818435669, -0.3492753207683563, 0.2877556085586548, -0.8976922631263733, -0.5023866891860962, 0.43198299407958984, 0.3022530972957611, -0.008421155624091625, 0.5895567536354065, -1.0451536178588867, -0.2622245252132416, -0.3043098747730255, -1.0506746768951416, -0.6979633569717407, -0.5345433950424194, -0.41578733921051025, 1.5143227577209473, 0.14006491005420685, -0.45102179050445557, 0.00796155259013176, -0.7960596084594727, -0.14393754303455353, -1.0914684534072876, 0.20544563233852386, -0.043596476316452026, -0.1341947466135025, -0.19946512579917908, 1.7515897750854492, -0.9665021896362305, -2.0481669902801514, 0.2458508461713791, 0.3536721467971802, -0.3741430640220642, 0.14540334045886993, 1.5757173299789429, 0.38864049315452576, 1.3793244361877441, 1.2791669368743896, 0.9172884821891785, -0.5256909728050232, -1.2541532516479492, 0.6596664190292358, 0.928123414516449, -1.3366854190826416, 0.9287076592445374, -0.14161399006843567, -0.5132750868797302, 0.7795764207839966, 1.2395203113555908, 0.3528735935688019, -1.8176538944244385, 0.8703465461730957, -0.7834821343421936, 0.70045006275177, 0.6694855093955994, 0.8326719999313354, 0.25015902519226074, 0.9594613909721375, -1.2665674686431885, -1.1228160858154297, -0.8421698212623596, -0.4860682785511017, 1.9043899774551392, -0.22881582379341125, 0.5380882024765015, -0.2604697346687317, -1.0924073457717896, -0.05682322755455971, 0.7963886260986328, 0.45264700055122375, -0.3688325881958008, 0.8077008724212646, -0.6422483325004578, -1.011561393737793, -1.3419910669326782, -0.3898690640926361, -0.8906157612800598, -0.9879966974258423, 1.0488945245742798, 0.9050275683403015, 0.37826356291770935, 1.9276082515716553, 0.6174097657203674, 0.3305536210536957, -2.618335247039795, 0.8937002420425415, 0.22390055656433105, 0.08738306164741516, 1.0185409784317017, 0.22718019783496857, 1.097724437713623, 0.0018247738480567932, 0.41093653440475464, -2.283681631088257, 2.1466238498687744, -0.23887261748313904, 0.7231200933456421, -0.026506828144192696, -0.19933411478996277, 1.1957818269729614, 0.5834686756134033, 0.48945853114128113, -1.1969101428985596, 0.7347490787506104, -0.49012836813926697, 1.0788066387176514, 1.0538002252578735, -0.8512328863143921, 0.016499614343047142, 1.47871732711792, 0.5446487665176392, -0.4161936938762665, -0.7901207208633423, -0.7837957143783569, 0.9346146583557129, 1.7124141454696655, -0.010965564288198948, -0.006934239529073238, 0.9573604464530945, 0.669036328792572, -1.2729921340942383, 0.0911489725112915, -0.8427983522415161, -0.6485776305198669, 1.7116302251815796, 1.9241427183151245, -0.0722917914390564, -0.1682775765657425, -0.7030872106552124, -1.280683994293213, 0.8070317506790161, -0.0138277942314744, 0.2097623348236084, 0.6536824703216553, -0.680441677570343, 1.1114500761032104, 0.8182889819145203, 1.0410985946655273, 0.11973462998867035, 0.4931701123714447, 0.45563849806785583, -0.28786540031433105, -1.1868324279785156, -0.379149466753006, -1.15237557888031, -2.5545146465301514, 0.5361902117729187, -0.3548302948474884, -1.4466040134429932, 0.038537003099918365, -1.053836703300476, 0.9742100238800049, -0.7038121819496155, -0.9957152605056763, -1.6263917684555054, 0.25316062569618225, -0.11824479699134827, 0.8695628046989441, -1.5895535945892334, -0.08723011612892151, 1.339908242225647, 0.7870233058929443, -0.49755483865737915, 1.0067251920700073, 0.2758980989456177, 0.9608178734779358, 0.7135040760040283, -0.5140097737312317, 0.509067714214325, 0.05110625922679901, -1.4717427492141724, 0.46855428814888, 1.1091228723526, 0.1686779111623764, 1.4765719175338745, -0.5291728973388672, 0.10093167424201965, 0.4814119338989258, -0.6913724541664124, -0.4668765962123871, -0.48216450214385986, 0.6937490701675415, 0.14344970881938934, -1.0182876586914062, 0.02105472981929779, -0.18837130069732666, -0.3095471262931824, 0.2445848435163498, -1.4073121547698975, -0.261127769947052, -0.4004672169685364, -0.5592772364616394, -1.3238557577133179, 0.027570627629756927, 1.3947112560272217, -0.7975307703018188, -0.20309710502624512, 0.43792724609375, 0.4011891782283783, 0.5451739430427551, 0.6373412013053894, -0.7223554849624634, -0.2850843667984009, -0.4836829900741577, -0.22585614025592804, 0.2298896312713623, 1.1711218357086182, -0.2227310687303543, -1.091795802116394, 0.7114030122756958, -0.3926962614059448, 0.08885101974010468, 2.0789120197296143, 0.09303140640258789, -0.714728057384491, 0.33623284101486206, -0.7086542844772339, 1.8256903886795044, 1.6936333179473877, 1.3329071998596191, -0.029537957161664963, -0.8283790349960327, 0.5887455344200134, -0.2597421407699585, -0.2967526316642761, 0.9439029693603516, 0.513256311416626, -0.12416712939739227, -1.3742883205413818, 0.5825127363204956, 1.301086664199829, -0.9403464794158936, -0.6592878103256226, 0.09833499789237976, -0.8733745217323303, 1.0749573707580566, 0.6273078322410583, 0.40286344289779663, 0.22298407554626465, 1.5758768320083618, 0.6514725089073181, -0.4621654152870178, 0.4496206045150757, 0.5758107900619507, -0.13900144398212433, -2.086277961730957, -1.048328161239624, 0.42530372738838196, -0.4553755521774292, -1.5612952709197998, 1.421103835105896, -1.0843472480773926, -0.9638093709945679, 0.4869832992553711, 0.1264982968568802, 1.3975677490234375, 0.25138431787490845, 1.6770200729370117, 2.015479564666748, 0.8623387217521667, 0.2959182858467102, 1.2851684093475342, 0.04544730857014656, -0.4119674563407898, 1.922292947769165, -0.395847350358963, 0.5825129151344299, 1.0443421602249146, -0.35630887746810913, -1.0313243865966797, -0.8078088760375977, -1.0498712062835693, -0.6119058728218079, 1.2445611953735352, 0.1457403600215912, -1.1392191648483276, 0.10955046117305756, 1.5836845636367798, 0.19297078251838684, -0.332592248916626, 0.5635676383972168, 0.35059890151023865, -0.7373003959655762, -0.07881547510623932, -0.954880952835083, 0.4899080693721771, -0.1482073813676834, -0.27376627922058105, 0.2450464814901352, 0.435342013835907, 1.2110761404037476, -0.1663609743118286, 0.1692720353603363, 1.2242026329040527, -1.3551554679870605, 1.537413477897644, -0.5679799914360046, 0.19155572354793549, -2.5025103092193604, 1.3771089315414429, -0.7917786836624146, 1.8606308698654175, -2.5985805988311768, 0.3131803572177887, -0.5774165391921997, -0.44873011112213135, 0.3425113260746002, -0.511296272277832, 0.12104356288909912, -0.055694688111543655, -0.9910961389541626, 0.04788481816649437, -0.8282639980316162, 0.6653957366943359, 1.175476312637329, 1.4233059883117676, -1.2490653991699219, -0.30463340878486633, -1.702449083328247, -0.23928402364253998, -0.7517619729042053, 0.39768102765083313, -2.136110305786133, -0.050232984125614166, -1.8977915048599243, -2.4545788764953613, -1.397733449935913, -0.8311817646026611, 1.111215353012085, 0.20024172961711884, -0.9138506054878235, 1.1057538986206055, -0.3741382956504822, -1.8616582155227661, 1.1836432218551636, -2.119577169418335 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
Thank you, @albertvillanova, for the quick response. I am not sure about the exact flow but I guess adding the following lines under the `_Languages` dictionary definition in [common_voice.py](https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py) might resolve the issue. I guess the dataset is recently made available so the file needs updating. ``` "ur": { "Language": "Urdu", "Date": "2022-01-19", "Size": "68 MB", "Version": "ur_3h_2022-01-19", "Validated_Hr_Total": 1, "Overall_Hr_Total": 3, "Number_Of_Voice": 48, }, ```
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
953
66
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No Thank you, @albertvillanova, for the quick response. I am not sure about the exact flow but I guess adding the following lines under the `_Languages` dictionary definition in [common_voice.py](https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py) might resolve the issue. I guess the dataset is recently made available so the file needs updating. ``` "ur": { "Language": "Urdu", "Date": "2022-01-19", "Size": "68 MB", "Version": "ur_3h_2022-01-19", "Validated_Hr_Total": 1, "Overall_Hr_Total": 3, "Number_Of_Voice": 48, }, ```
[ -1.167836308479309, -0.8568052053451538, -0.8256738185882568, 1.4531714916229248, -0.18554742634296417, -1.2270581722259521, 0.20614628493785858, -1.1003998517990112, 1.598892092704773, -0.7699824571609497, 0.2736586034297943, -1.652665615081787, -0.11758992075920105, -0.5615940093994141, -0.6972368955612183, -0.9924131035804749, -0.4884983003139496, -0.7648426294326782, 0.9501005411148071, 2.4185421466827393, 1.3313864469528198, -1.30020272731781, 2.68878173828125, 0.6160964965820312, -0.11507536470890045, -1.051801323890686, 0.613156795501709, 0.030402574688196182, -1.123178482055664, -0.4661569893360138, -0.8956063985824585, -0.11650154739618301, -0.5728288292884827, -0.4299410283565521, 0.022926900535821915, 0.5263583064079285, -0.37388095259666443, -0.36036252975463867, -0.7259856462478638, -0.943938136100769, 0.5028611421585083, -0.3280694782733917, 1.0106526613235474, -0.5028654932975769, 1.836795449256897, -0.6304689645767212, 0.4456697404384613, 0.7911599278450012, 1.3179593086242676, 0.26870131492614746, 0.10798994451761246, 0.23966017365455627, 0.3167801797389984, -0.07314487546682358, 0.578227162361145, 1.1165193319320679, 0.5505398511886597, 0.49811047315597534, 0.7232620716094971, -2.2081868648529053, 1.2203645706176758, -1.0696356296539307, 0.2847900688648224, 1.530696153640747, -0.8227512836456299, 0.3483525514602661, -1.9365066289901733, -0.048284467309713364, 0.5984241366386414, -2.261580467224121, 0.2153063267469406, -1.2729476690292358, -0.6611216068267822, 0.9555156230926514, 0.33572322130203247, -1.207187533378601, 0.1613302081823349, -0.37274739146232605, 1.0206187963485718, 0.48126837611198425, 1.0891876220703125, -1.6503719091415405, -0.03115522488951683, -0.2239847332239151, 0.07797541469335556, -1.2753254175186157, -1.5907753705978394, 0.5298745036125183, 0.4939565658569336, 0.5567405819892883, -0.13046659529209137, 0.9722201824188232, -0.9744987487792969, 0.8167656660079956, -0.9878876805305481, -1.5971693992614746, -1.4407278299331665, -2.2915594577789307, -2.2918031215667725, 0.8569273352622986, -0.5514546632766724, -0.4371717870235443, 1.9706884622573853, -0.9503704905509949, -1.6683348417282104, 1.165205717086792, 0.3315974771976471, 0.15148168802261353, 2.431131601333618, 0.2210812270641327, -0.7649544477462769, 0.45449498295783997, -0.7243641018867493, 0.8595510125160217, -0.25619369745254517, 1.3530564308166504, 0.48955708742141724, -1.0345410108566284, 1.663738489151001, -0.4523240923881531, 0.6065046787261963, -0.6145979166030884, -0.4969511926174164, -0.7520766854286194, 0.3390220105648041, 1.7733107805252075, -0.2778133153915405, 1.5936501026153564, -0.19549560546875, -1.5156035423278809, -1.564318060874939, 0.8577285408973694, 0.46526727080345154, -0.8436821699142456, 0.00015875976532697678, -0.34117284417152405, 0.15243346989154816, -0.12666679918766022, 1.1674911975860596, 1.2063205242156982, 0.7235512137413025, -0.4307371973991394, -0.7858421802520752, 0.1362062394618988, -0.01365568581968546, -0.7596161365509033, -1.7091064453125, -0.35242658853530884, 0.26343685388565063, 0.5343629121780396, -1.275970220565796, 1.774601697921753, 0.8981482982635498, 1.9107060432434082, 0.9572353959083557, -0.39886972308158875, 1.5058432817459106, 0.04598762094974518, 1.8048254251480103, -0.5092946887016296, 0.5896421670913696, -0.20255674421787262, -1.1340484619140625, 0.8845966458320618, -0.27780112624168396, -2.0350492000579834, -1.0219330787658691, -0.8146212100982666, -0.18718811869621277, -0.696901798248291, 0.8821943402290344, -0.3816065788269043, -1.374764084815979, 0.1879444718360901, -0.6032477617263794, 0.029644522815942764, -1.2827577590942383, 0.21911515295505524, 0.6886471509933472, -0.7046135663986206, -0.04038422554731369, -0.09657558798789978, -1.2813093662261963, -0.46761712431907654, 0.25215116143226624, 1.9935393333435059, -0.5696983933448792, 0.9327559471130371, 1.0176632404327393, -0.8033860921859741, 0.08548535406589508, 0.25525400042533875, -0.3589189350605011, 0.7823463678359985, -0.9697478413581848, -0.5625531673431396, 1.12925124168396, -0.20481541752815247, -0.7211712002754211, 1.4807748794555664, 0.792557954788208, -1.021976113319397, -0.223862424492836, -0.23455989360809326, -0.8169916272163391, 0.01736713945865631, -1.4994192123413086, -0.13085003197193146, 0.2751656472682953, -1.482753872871399, -0.4564254581928253, -0.17600516974925995, 1.2604416608810425, -0.32626187801361084, 1.4215154647827148, -0.4479658305644989, -0.21883776783943176, -0.3606264293193817, -0.518348753452301, 0.12684938311576843, -0.22147569060325623, -0.7014089226722717, 0.20973075926303864, -0.8844277858734131, 0.3457683026790619, 1.3848499059677124, 0.39920568466186523, 0.0023747868835926056, 0.4854543209075928, 1.1456890106201172, 0.36428138613700867, 0.03707542270421982, -0.9274861812591553, -1.4448354244232178, 2.010040760040283, -1.3781611919403076, 1.9668388366699219, 0.6806012392044067, -0.10188965499401093, -1.7968924045562744, -1.8185744285583496, 1.2463692426681519, 1.2342420816421509, 2.339357852935791, 0.5062141418457031, 0.36163046956062317, -0.8044713139533997, -0.7673003673553467, 0.23737218976020813, -1.082455039024353, -0.5578488111495972, 0.18981938064098358, 2.3397727012634277, 1.757490873336792, -0.5607298612594604, -0.2134276181459427, -0.9437963962554932, 1.2953827381134033, -0.2777988612651825, 0.20143605768680573, 2.0750157833099365, -0.27268674969673157, -1.0439037084579468, 1.3303362131118774, -2.2512447834014893, 0.17889951169490814, 2.019101619720459, 0.3380913734436035, 0.12557469308376312, -1.4218127727508545, -0.6988959312438965, -0.37510234117507935, -0.4351184666156769, -1.3125810623168945, 0.5665590167045593, -0.21097837388515472, -0.9129012227058411, -1.3237096071243286, 0.09332257509231567, -1.1727287769317627, -1.6377203464508057, 0.38594502210617065, 1.8716639280319214, 2.0056872367858887, -0.7654140591621399, 1.455200433731079, -0.30855080485343933, 0.041200511157512665, 1.3123973608016968, 1.3027211427688599, 3.093418836593628, 1.8326425552368164, -1.2602916955947876, 0.6348275542259216, -0.24512484669685364, -0.49280136823654175, 1.1789829730987549, -1.176460862159729, 1.2682290077209473, -0.21606937050819397, -1.1754342317581177, -1.2020704746246338, 1.030318260192871, 0.45265430212020874, 0.10758942365646362, -0.530196487903595, 1.2055796384811401, 0.11589754372835159, 1.4057151079177856, 0.6085236072540283, -0.4578426778316498, 0.5497815012931824, -0.3483317196369171, -0.5270581245422363, 1.6749387979507446, 0.10857539623975754, -1.5300030708312988, -2.297600746154785, -0.2801821231842041, -0.9129157662391663, -0.022001732140779495, -0.49850359559059143, -1.071839451789856, 1.7188918590545654, 0.4144912362098694, -1.3039630651474, -0.34298041462898254, -0.40917104482650757, -0.5845430493354797, 2.768224000930786, -1.3081895112991333, -0.1763201653957367, -0.9868927597999573, -0.5834652781486511, 1.7053710222244263, -1.142697811126709, -0.13955895602703094, -1.074485182762146, -0.5833182334899902, -1.3794697523117065, -0.5303954482078552, 0.08143473416566849, -0.9744078516960144, 0.8029052019119263, 0.165921151638031, -1.016785740852356, -0.38957977294921875, -0.8384636044502258, 0.9394845962524414, -0.1568753868341446, 0.18192733824253082, 1.941074013710022, 0.3903237283229828, -0.2830078899860382, 0.7516728043556213, 1.175514817237854, 0.6572092771530151, -0.623170018196106, 0.07877574861049652, -0.6549287438392639, 0.27222102880477905, -1.3206195831298828, 0.15202897787094116, -2.867245674133301, 0.7131567597389221, -0.15498632192611694, -0.11975498497486115, -0.015074988827109337, -1.2547526359558105, 1.2029948234558105, 2.6030020713806152, -1.1348172426223755, 0.3311329483985901, 0.40123045444488525, 1.113402009010315, -1.6773141622543335, 0.3385177552700043, -0.5326924324035645, 2.063459873199463, 0.054529767483472824, 1.1568825244903564, -0.5483927726745605, -2.224343776702881, 0.6996802091598511, -1.2530136108398438, -1.1973731517791748, 0.8418492078781128, -0.8448130488395691, 0.2788575291633606, -1.4655075073242188, -0.26343461871147156, -0.8747265934944153, -1.3051676750183105, 0.7938562631607056, 0.06957876682281494, 0.37112703919410706, -0.48460373282432556, 0.3301914632320404, -2.2426531314849854, -1.4873287677764893, -0.2852439284324646, -0.9543306827545166, 0.5555750131607056, -0.4381331205368042, 0.7401708960533142, -0.04977276548743248, 0.0788339376449585, 0.31876805424690247, 1.4973440170288086, 3.4462170600891113, 0.24151897430419922, 0.1970004439353943, -0.13745149970054626, -0.994422197341919, 1.5602178573608398, 0.9227288365364075, 0.014756918884813786, -0.5170851945877075, -0.9530104994773865, 1.2061525583267212, 2.0074105262756348, 1.1063164472579956, 0.020231660455465317, -0.8145301342010498, -0.6391725540161133, -0.04795950651168823, 0.2354465126991272, 0.4877607524394989, 0.9353809356689453, -0.07418687641620636, 0.04919498413801193, 1.4639004468917847, 1.2351655960083008, -0.2855525314807892, 0.2376665621995926, -0.8783439993858337, -0.44403567910194397, 0.5730804204940796, 0.19558385014533997, 0.02230394259095192, 0.6337899565696716, -1.0594285726547241, -0.29034003615379333, -0.3258611261844635, -0.9416643381118774, -0.6618186831474304, -0.524517834186554, -0.4072495996952057, 1.5585227012634277, 0.13208839297294617, -0.49061834812164307, 0.0666922777891159, -0.7651811838150024, -0.09929614514112473, -1.183297038078308, 0.1722339391708374, -0.09592041373252869, -0.15534745156764984, -0.25250139832496643, 1.7633005380630493, -0.9651743769645691, -2.072446346282959, 0.11689089983701706, 0.3645198941230774, -0.2965788245201111, 0.15928439795970917, 1.6280053853988647, 0.3910410404205322, 1.409269094467163, 1.2211196422576904, 0.9473256468772888, -0.5958162546157837, -1.2536289691925049, 0.6280097961425781, 1.0156604051589966, -1.2943586111068726, 0.8925155997276306, -0.10925658792257309, -0.5097708106040955, 0.6281514763832092, 1.2565151453018188, 0.3708219826221466, -1.795474886894226, 0.8669145703315735, -0.8470569252967834, 0.7990773916244507, 0.6291888952255249, 0.799113392829895, 0.16346554458141327, 0.9132339358329773, -1.2339218854904175, -1.1456489562988281, -0.7670257687568665, -0.5681703686714172, 1.9345722198486328, -0.2555341124534607, 0.6136088967323303, -0.2843010425567627, -1.174477219581604, -0.03764895722270012, 0.7782243490219116, 0.48006221652030945, -0.3693785071372986, 0.849747359752655, -0.6393263936042786, -0.9437617659568787, -1.3407429456710815, -0.3043653070926666, -1.0124748945236206, -0.9904958009719849, 1.0901111364364624, 0.829548716545105, 0.4068843722343445, 1.819532036781311, 0.7376087307929993, 0.35964176058769226, -2.596229076385498, 0.9086101651191711, 0.28133463859558105, -0.017257608473300934, 0.8997204899787903, 0.339229017496109, 1.155015230178833, -0.02956504002213478, 0.4445745646953583, -2.3284783363342285, 2.2389729022979736, -0.19012896716594696, 0.6857073903083801, 0.015991028398275375, -0.23478278517723083, 1.1237967014312744, 0.5949215292930603, 0.45017436146736145, -1.1473217010498047, 0.6825104355812073, -0.4559015929698944, 1.080708622932434, 0.9739512801170349, -0.8082115054130554, 0.06991247087717056, 1.487009882926941, 0.5807021260261536, -0.4498152732849121, -0.9350771307945251, -0.7187678217887878, 1.0328675508499146, 1.631531000137329, -0.05355161055922508, -0.0012157401069998741, 0.9422968029975891, 0.6366167068481445, -1.2612206935882568, 0.07055828720331192, -0.8142774701118469, -0.743614912033081, 1.737370491027832, 2.0036468505859375, -0.0874909907579422, -0.2533224821090698, -0.739393949508667, -1.3217902183532715, 0.7874623537063599, -0.09571117907762527, 0.2231866419315338, 0.6119202375411987, -0.6696584224700928, 1.0769755840301514, 0.7651293277740479, 1.0072191953659058, 0.11443348973989487, 0.3958680033683777, 0.4660128355026245, -0.3679708242416382, -1.1581051349639893, -0.263278990983963, -1.1047143936157227, -2.621243715286255, 0.46123817563056946, -0.31380802392959595, -1.4746394157409668, -0.06113150715827942, -1.018380045890808, 0.9951736330986023, -0.6722013354301453, -1.0406091213226318, -1.533454418182373, 0.29068422317504883, -0.04157308116555214, 0.9300580620765686, -1.618840217590332, -0.25213995575904846, 1.3284658193588257, 0.792091965675354, -0.6328181028366089, 0.8764100670814514, 0.19955773651599884, 1.000649333000183, 0.6887293457984924, -0.4405798614025116, 0.5172911286354065, -0.03217725083231926, -1.4975143671035767, 0.413570374250412, 1.1253811120986938, 0.11954741925001144, 1.4680659770965576, -0.4454408884048462, 0.13269096612930298, 0.4008615016937256, -0.6087701916694641, -0.5509511232376099, -0.49574169516563416, 0.6070284843444824, 0.05438118055462837, -1.0514861345291138, -0.030352141708135605, -0.12779639661312103, -0.28086182475090027, 0.2242574393749237, -1.3590412139892578, -0.2336347997188568, -0.41624313592910767, -0.5299544930458069, -1.2607462406158447, -0.05367197468876839, 1.3141348361968994, -0.7205365300178528, -0.11558042466640472, 0.42257729172706604, 0.2645884156227112, 0.5971905589103699, 0.5679527521133423, -0.7907986044883728, -0.25085362792015076, -0.41476374864578247, -0.25044018030166626, 0.2559630274772644, 1.2153732776641846, -0.14611230790615082, -1.044274926185608, 0.68628990650177, -0.33167946338653564, 0.1404598206281662, 2.090278148651123, 0.10069853067398071, -0.6993106007575989, 0.3358479142189026, -0.7152155041694641, 1.761810064315796, 1.704494833946228, 1.3373881578445435, -0.1058962494134903, -0.8072988390922546, 0.6373547911643982, -0.394260048866272, -0.3742668032646179, 0.8392423391342163, 0.4146251678466797, -0.16171424090862274, -1.481941819190979, 0.713009238243103, 1.3242048025131226, -0.8325644135475159, -0.7227665185928345, 0.18039679527282715, -0.8952349424362183, 1.1093909740447998, 0.5261966586112976, 0.40665823221206665, 0.32482483983039856, 1.5845149755477905, 0.7256606817245483, -0.3968046307563782, 0.4783691167831421, 0.6698210835456848, -0.17650282382965088, -2.0487794876098633, -1.2285887002944946, 0.385991632938385, -0.5854682922363281, -1.589792013168335, 1.4846652746200562, -1.0912115573883057, -1.0911974906921387, 0.5489810109138489, 0.12652578949928284, 1.3852931261062622, 0.3437120020389557, 1.6239149570465088, 2.006622076034546, 0.8345346450805664, 0.3874332308769226, 1.2320963144302368, -0.025015713647007942, -0.4179389178752899, 1.9222772121429443, -0.4138416051864624, 0.5345073342323303, 1.0216803550720215, -0.35801902413368225, -1.1588371992111206, -0.7904684543609619, -1.1469993591308594, -0.7056378126144409, 1.2453807592391968, 0.10338915884494781, -1.0342116355895996, 0.16599392890930176, 1.6495866775512695, 0.12277209013700485, -0.34678810834884644, 0.6414162516593933, 0.38969898223876953, -0.8336147665977478, -0.05150509253144264, -0.9535729289054871, 0.513837456703186, -0.0722951591014862, -0.2738647162914276, 0.28913089632987976, 0.53180330991745, 1.3591006994247437, -0.1796988844871521, 0.20049498975276947, 1.0432676076889038, -1.375863790512085, 1.601360559463501, -0.6298115849494934, 0.2822250425815582, -2.40994930267334, 1.3423199653625488, -0.7890587449073792, 1.8870295286178589, -2.5325307846069336, 0.3739732801914215, -0.5051090717315674, -0.43248212337493896, 0.2907811999320984, -0.569555938243866, 0.17389515042304993, -0.0783730149269104, -1.0302175283432007, 0.014036840759217739, -0.761987030506134, 0.6840411424636841, 1.1502892971038818, 1.5019358396530151, -1.1826709508895874, -0.38267385959625244, -1.6790279150009155, -0.21080394089221954, -0.7518214583396912, 0.35563915967941284, -2.0294716358184814, -0.16122204065322876, -1.8796974420547485, -2.3599815368652344, -1.306894302368164, -0.842063307762146, 1.1420141458511353, 0.19631367921829224, -0.962928295135498, 1.2347502708435059, -0.4179648458957672, -1.8864539861679077, 1.2251285314559937, -2.1519017219543457 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@aasem for compliance reasons, we are no longer updating the `common_voice.py` script. We agreed with Mozilla Foundation to use their community datasets instead, which will ask you to accept their terms of use: ``` You need to share your contact information to access this dataset. This repository is publicly accessible, but you have to register to access its content — don't worry, it's just one click! By clicking on “Access repository” below, you accept that your contact information (email address and username) can be shared with the repository authors. This will let the authors get in touch for instance if some parts of the repository's contents need to be taken down for licensing reasons. By clicking on “Access repository” below, you also agree to not attempt to determine the identity of speakers in the Common Voice dataset. You will immediately be granted access to the contents of the dataset. ``` In order to use e.g. their Common Voice dataset version 8.0, please: - First visit their dataset page: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Accept their term of use by clicking "Access repository" - You can then load their dataset with: ```python load_dataset("mozilla-foundation/common_voice_8_0", "ur", split="train+validation") ```
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
953
192
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No @aasem for compliance reasons, we are no longer updating the `common_voice.py` script. We agreed with Mozilla Foundation to use their community datasets instead, which will ask you to accept their terms of use: ``` You need to share your contact information to access this dataset. This repository is publicly accessible, but you have to register to access its content — don't worry, it's just one click! By clicking on “Access repository” below, you accept that your contact information (email address and username) can be shared with the repository authors. This will let the authors get in touch for instance if some parts of the repository's contents need to be taken down for licensing reasons. By clicking on “Access repository” below, you also agree to not attempt to determine the identity of speakers in the Common Voice dataset. You will immediately be granted access to the contents of the dataset. ``` In order to use e.g. their Common Voice dataset version 8.0, please: - First visit their dataset page: https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Accept their term of use by clicking "Access repository" - You can then load their dataset with: ```python load_dataset("mozilla-foundation/common_voice_8_0", "ur", split="train+validation") ```
[ -1.1867225170135498, -0.9130833745002747, -0.7578511238098145, 1.4000780582427979, -0.20968997478485107, -1.1477097272872925, 0.1774677038192749, -1.0994921922683716, 1.665103554725647, -0.7833917737007141, 0.19328933954238892, -1.6573307514190674, -0.008537743240594864, -0.5185205340385437, -0.7302286028862, -0.936697781085968, -0.5229957699775696, -0.7783136367797852, 1.0081325769424438, 2.4258854389190674, 1.261965036392212, -1.3601142168045044, 2.6947109699249268, 0.701747477054596, -0.1323850452899933, -1.097785234451294, 0.5189803838729858, -0.012250060215592384, -1.1958746910095215, -0.4202023148536682, -0.936356246471405, -0.048365820199251175, -0.5695768594741821, -0.460999071598053, 0.03995019197463989, 0.42498722672462463, -0.32301560044288635, -0.3360864818096161, -0.6429206132888794, -0.8400927186012268, 0.4836794435977936, -0.3835795819759369, 1.009108066558838, -0.4417555630207062, 1.8149237632751465, -0.5510873794555664, 0.46649205684661865, 0.7664103507995605, 1.2948224544525146, 0.16607177257537842, 0.04475972056388855, 0.20790481567382812, 0.36822623014450073, -0.015373451635241508, 0.5321219563484192, 1.1799896955490112, 0.5980364084243774, 0.5204024910926819, 0.6717609763145447, -2.235647439956665, 1.2588845491409302, -0.9813317656517029, 0.3748818039894104, 1.437811255455017, -0.9172345399856567, 0.3510372042655945, -1.8789130449295044, -0.08066406100988388, 0.5736636519432068, -2.2149863243103027, 0.1961372345685959, -1.2548894882202148, -0.6167354583740234, 0.9441983103752136, 0.3284126818180084, -1.225290060043335, 0.2419719696044922, -0.3768204152584076, 1.0514806509017944, 0.482425332069397, 1.1587005853652954, -1.672595739364624, 0.004902487620711327, -0.3022198975086212, 0.10676681995391846, -1.2297574281692505, -1.5840702056884766, 0.5427597165107727, 0.5977428555488586, 0.5372109413146973, -0.14155352115631104, 0.9628668427467346, -1.0060397386550903, 0.8314109444618225, -1.059105396270752, -1.5849546194076538, -1.3696321249008179, -2.249661445617676, -2.2931532859802246, 0.8299968242645264, -0.4862235188484192, -0.4584801495075226, 2.058478355407715, -1.0042227506637573, -1.7622073888778687, 1.164845585823059, 0.32589030265808105, 0.09354092180728912, 2.3955225944519043, 0.17854715883731842, -0.7123990058898926, 0.4348161816596985, -0.6762346625328064, 0.8908398747444153, -0.33391129970550537, 1.4205502271652222, 0.49425920844078064, -1.1037784814834595, 1.654975414276123, -0.40674516558647156, 0.6066846251487732, -0.6723235249519348, -0.5464840531349182, -0.7414678335189819, 0.3220767080783844, 1.8545690774917603, -0.3385384976863861, 1.5735942125320435, -0.31904706358909607, -1.5478630065917969, -1.6151094436645508, 0.8979085683822632, 0.5310730338096619, -0.764928936958313, -0.025808602571487427, -0.35808733105659485, 0.09185616672039032, -0.08023487031459808, 1.0894429683685303, 1.2035413980484009, 0.7618201971054077, -0.38550037145614624, -0.8086310625076294, 0.12773649394512177, -0.05986279249191284, -0.7455569505691528, -1.7731457948684692, -0.34149184823036194, 0.1997278928756714, 0.5245715379714966, -1.2062163352966309, 1.7242810726165771, 0.9053040742874146, 1.9231661558151245, 1.0063575506210327, -0.36454322934150696, 1.5491127967834473, 0.14212174713611603, 1.7463185787200928, -0.5026018619537354, 0.6181579828262329, -0.25295907258987427, -1.1223126649856567, 0.8506197333335876, -0.2825872004032135, -2.052736520767212, -0.7754985690116882, -0.7797468900680542, -0.2278539389371872, -0.7259045839309692, 0.8844215869903564, -0.3671271502971649, -1.3746037483215332, 0.21920664608478546, -0.6091964840888977, 0.1240580603480339, -1.2068461179733276, 0.26668354868888855, 0.7418391704559326, -0.7097924947738647, 0.001246434636414051, -0.19461849331855774, -1.2811304330825806, -0.49798086285591125, 0.3290610611438751, 1.8528836965560913, -0.5914006233215332, 0.8362802863121033, 1.0308120250701904, -0.7288258075714111, -0.02960481494665146, 0.3170931339263916, -0.3131554424762726, 0.7426015138626099, -0.9956328272819519, -0.5511376261711121, 1.1493581533432007, -0.17873696982860565, -0.7176215648651123, 1.4754796028137207, 0.7194532155990601, -0.972683310508728, -0.20849817991256714, -0.15905149281024933, -0.8421710133552551, 0.009602219797670841, -1.565221905708313, -0.1471382975578308, 0.29618412256240845, -1.5997101068496704, -0.46641144156455994, -0.25457265973091125, 1.256557583808899, -0.2527783215045929, 1.4175422191619873, -0.40825721621513367, -0.21439550817012787, -0.32652807235717773, -0.4655471742153168, 0.1604519486427307, -0.19105924665927887, -0.6634361147880554, 0.210584819316864, -0.8165603280067444, 0.3758819103240967, 1.49822998046875, 0.3899466395378113, -0.024538910016417503, 0.4912641942501068, 1.087796926498413, 0.3832976520061493, -0.04316645860671997, -0.9070096611976624, -1.4981518983840942, 1.9332295656204224, -1.3944529294967651, 2.021895170211792, 0.8049753308296204, -0.06528405845165253, -1.8701778650283813, -1.8292396068572998, 1.2710442543029785, 1.170847773551941, 2.3735315799713135, 0.5299703478813171, 0.3659001588821411, -0.8093526363372803, -0.7180330157279968, 0.31091564893722534, -1.0202128887176514, -0.6764650344848633, 0.14388015866279602, 2.366926431655884, 1.8234901428222656, -0.49854305386543274, -0.21402901411056519, -1.0472681522369385, 1.3638123273849487, -0.2118847817182541, 0.2454870343208313, 2.0177977085113525, -0.3057713210582733, -1.0440438985824585, 1.2873787879943848, -2.2360174655914307, 0.24160167574882507, 2.0145771503448486, 0.22898757457733154, 0.08583632111549377, -1.4713590145111084, -0.634082019329071, -0.2959187924861908, -0.4356352686882019, -1.3614351749420166, 0.5356388688087463, -0.261888325214386, -0.8199091553688049, -1.37153160572052, 0.15570101141929626, -1.1979831457138062, -1.567775845527649, 0.3920230269432068, 1.9298263788223267, 1.965031623840332, -0.7265918254852295, 1.5052034854888916, -0.29800280928611755, 0.12777356803417206, 1.307796597480774, 1.203822374343872, 3.083604097366333, 1.8850889205932617, -1.33988356590271, 0.6244449019432068, -0.18637371063232422, -0.51249098777771, 1.1699223518371582, -1.1036759614944458, 1.2852319478988647, -0.2512212097644806, -1.2102752923965454, -1.2371379137039185, 1.0667566061019897, 0.49437573552131653, 0.09778030216693878, -0.512222945690155, 1.1673613786697388, 0.07974758744239807, 1.294109582901001, 0.6129091382026672, -0.48760032653808594, 0.6417593955993652, -0.3308015465736389, -0.5688876509666443, 1.60922372341156, 0.14240236580371857, -1.4763166904449463, -2.2615957260131836, -0.28792446851730347, -0.8928087949752808, -0.020945556461811066, -0.5556939840316772, -0.9931315183639526, 1.6383017301559448, 0.4066134989261627, -1.382953405380249, -0.30065274238586426, -0.30734968185424805, -0.5874264240264893, 2.6454901695251465, -1.3447532653808594, -0.21906030178070068, -0.9978033900260925, -0.6039130687713623, 1.68233323097229, -1.1699235439300537, -0.16655826568603516, -1.040250301361084, -0.6032406687736511, -1.2788636684417725, -0.5081766843795776, 0.048102132976055145, -0.886038064956665, 0.8579028844833374, 0.17302857339382172, -1.0218141078948975, -0.36851561069488525, -0.8709865808486938, 0.9422463774681091, -0.1431179642677307, 0.1341656595468521, 1.9301388263702393, 0.3674648106098175, -0.4173583984375, 0.6710366606712341, 1.126427173614502, 0.6471555233001709, -0.653161346912384, 0.14872553944587708, -0.7414626479148865, 0.27753177285194397, -1.3657184839248657, 0.18989965319633484, -2.8917479515075684, 0.6912025213241577, -0.08834471553564072, -0.11118803173303604, 0.00006239768117666245, -1.2879481315612793, 1.131227731704712, 2.613555669784546, -1.1746078729629517, 0.4061828553676605, 0.3630627691745758, 1.1387172937393188, -1.6230617761611938, 0.3531924784183502, -0.4718954861164093, 2.079594373703003, 0.12463056296110153, 1.1716731786727905, -0.5319132208824158, -2.3090596199035645, 0.6412716507911682, -1.1854592561721802, -1.2047333717346191, 0.7917182445526123, -0.8247700929641724, 0.1515495330095291, -1.4708529710769653, -0.2937372922897339, -0.9177402853965759, -1.3025643825531006, 0.7613609433174133, 0.16856743395328522, 0.417976975440979, -0.6091663241386414, 0.264060914516449, -2.1672585010528564, -1.4113191366195679, -0.2596181035041809, -0.9078306555747986, 0.5013550519943237, -0.31961068511009216, 0.6616293787956238, -0.0921185314655304, 0.046199358999729156, 0.2593226730823517, 1.4277141094207764, 3.4049203395843506, 0.24315452575683594, 0.2782038152217865, -0.16671182215213776, -0.9776421189308167, 1.5087237358093262, 0.9591813087463379, 0.017022833228111267, -0.5654575824737549, -1.0018010139465332, 1.2083529233932495, 1.9674859046936035, 1.0361979007720947, 0.05324052274227142, -0.7931153178215027, -0.6812776327133179, -0.038148149847984314, 0.2254916876554489, 0.5090214014053345, 0.8872721791267395, -0.004155097529292107, 0.12706217169761658, 1.401114821434021, 1.3296263217926025, -0.33364856243133545, 0.29938751459121704, -0.8223772644996643, -0.48941561579704285, 0.4663180112838745, 0.2789558470249176, -0.005855148658156395, 0.47268304228782654, -1.0969843864440918, -0.3060564696788788, -0.4041878283023834, -1.006860613822937, -0.6698976159095764, -0.4384855329990387, -0.41040608286857605, 1.5815216302871704, 0.1409587562084198, -0.5262712240219116, 0.010210256092250347, -0.7551165819168091, -0.14596648514270782, -1.1079431772232056, 0.25984495878219604, -0.10292314738035202, -0.13389137387275696, -0.18638227880001068, 1.7394131422042847, -0.9756504893302917, -2.0946967601776123, 0.20747233927249908, 0.28395023941993713, -0.3028995096683502, 0.20410911738872528, 1.6488198041915894, 0.4402238726615906, 1.388686180114746, 1.3602852821350098, 0.9540392160415649, -0.5741815567016602, -1.2539945840835571, 0.6633089184761047, 1.0032477378845215, -1.350858211517334, 0.8355342149734497, -0.03794492408633232, -0.5454913377761841, 0.7927056550979614, 1.2164407968521118, 0.43346402049064636, -1.9487091302871704, 0.9153691530227661, -0.8366571068763733, 0.7177501916885376, 0.6992407441139221, 0.7627623677253723, 0.19636955857276917, 0.8900487422943115, -1.2698432207107544, -1.1771719455718994, -0.7281628847122192, -0.5564905405044556, 1.9282835721969604, -0.24738429486751556, 0.6029447913169861, -0.2236793041229248, -1.2684141397476196, -0.06528928875923157, 0.7647838592529297, 0.4286467134952545, -0.49587246775627136, 0.7732023596763611, -0.6487617492675781, -1.0269180536270142, -1.3540526628494263, -0.3732195794582367, -1.0142598152160645, -0.8970754742622375, 1.0449299812316895, 0.9047794342041016, 0.3525603711605072, 1.9046337604522705, 0.6923448443412781, 0.34117591381073, -2.617506504058838, 0.845176637172699, 0.31207379698753357, -0.039117828011512756, 0.9116585850715637, 0.29340946674346924, 1.0411536693572998, 0.04243336617946625, 0.46563267707824707, -2.32220721244812, 2.303252935409546, -0.2529643774032593, 0.7868368029594421, -0.015681633725762367, -0.19900037348270416, 1.203654408454895, 0.5543254017829895, 0.521079421043396, -1.1100424528121948, 0.7389205694198608, -0.497882217168808, 1.1467870473861694, 0.9642903208732605, -0.8132476806640625, -0.0036343056708574295, 1.449921727180481, 0.502116858959198, -0.5087741017341614, -0.8418090343475342, -0.8570643067359924, 0.9252340793609619, 1.7710083723068237, -0.04372219741344452, 0.061121866106987, 0.9452826380729675, 0.6548888683319092, -1.2971490621566772, 0.10952969640493393, -0.7620519399642944, -0.7148488759994507, 1.6178239583969116, 1.938677430152893, -0.09902440011501312, -0.17899638414382935, -0.7479492425918579, -1.2586760520935059, 0.7819106578826904, -0.04655587673187256, 0.1667236089706421, 0.6044976711273193, -0.6480134725570679, 1.063394546508789, 0.854274570941925, 0.99979168176651, 0.10427539795637131, 0.38027140498161316, 0.4629652500152588, -0.3752744495868683, -1.146401047706604, -0.25241634249687195, -1.1058223247528076, -2.6003429889678955, 0.5155368447303772, -0.2606326937675476, -1.4028372764587402, -0.023702498525381088, -1.0329582691192627, 0.9544305801391602, -0.6308555603027344, -1.110153079032898, -1.6241657733917236, 0.23299674689769745, -0.08809792995452881, 0.915470540523529, -1.606892704963684, -0.13208739459514618, 1.1939442157745361, 0.861484944820404, -0.6120573878288269, 0.9684788584709167, 0.28121793270111084, 1.0087023973464966, 0.8166875839233398, -0.42423075437545776, 0.4847765862941742, 0.024266283959150314, -1.4722909927368164, 0.3692869544029236, 1.158281683921814, 0.1669500768184662, 1.3953511714935303, -0.5657461285591125, 0.07072881609201431, 0.437207967042923, -0.5664070248603821, -0.4623037278652191, -0.49101898074150085, 0.6371241807937622, -0.014288672246038914, -0.9869377017021179, 0.0338890478014946, -0.1022379994392395, -0.2683975398540497, 0.18129660189151764, -1.4473743438720703, -0.17985913157463074, -0.4449044466018677, -0.5671746730804443, -1.2897435426712036, 0.009714228101074696, 1.3917399644851685, -0.744335949420929, -0.27228182554244995, 0.48575469851493835, 0.3730982840061188, 0.5828027725219727, 0.5784798264503479, -0.7150247097015381, -0.3087281882762909, -0.34016740322113037, -0.32253268361091614, 0.25536084175109863, 1.3501157760620117, -0.1665273904800415, -0.9620348811149597, 0.7336984872817993, -0.4002332389354706, 0.08624416589736938, 2.069702625274658, 0.1342187523841858, -0.719775915145874, 0.3525750935077667, -0.7027459144592285, 1.805078387260437, 1.8043242692947388, 1.422272801399231, -0.06464137881994247, -0.8841356635093689, 0.6374139785766602, -0.40330544114112854, -0.36629506945610046, 0.9294478297233582, 0.40708962082862854, -0.16059505939483643, -1.3915923833847046, 0.6346361637115479, 1.2671186923980713, -0.8329799175262451, -0.6787288188934326, 0.1684599667787552, -0.8504843711853027, 1.1242743730545044, 0.5855798125267029, 0.4348837733268738, 0.19791804254055023, 1.5377668142318726, 0.6761033535003662, -0.44366833567619324, 0.5547872185707092, 0.6057034134864807, -0.1951492726802826, -2.115924119949341, -1.1934913396835327, 0.38307467103004456, -0.45207053422927856, -1.6390782594680786, 1.4568305015563965, -1.1417300701141357, -1.039927363395691, 0.44836825132369995, 0.06785990297794342, 1.420806646347046, 0.3463238477706909, 1.585314154624939, 2.0628700256347656, 0.8690693378448486, 0.4354569911956787, 1.354285478591919, -0.08048452436923981, -0.4030604362487793, 1.9328181743621826, -0.47309860587120056, 0.5053297281265259, 1.096770167350769, -0.31963998079299927, -1.0815895795822144, -0.7461630702018738, -1.1424394845962524, -0.6128107309341431, 1.2462352514266968, 0.04822293296456337, -1.085179090499878, 0.2676200568675995, 1.5839571952819824, 0.09750345349311829, -0.3197243809700012, 0.632742702960968, 0.37156936526298523, -0.7895154356956482, -0.08325333893299103, -0.9303779006004333, 0.47812217473983765, -0.19947780668735504, -0.25810813903808594, 0.32310742139816284, 0.4575056731700897, 1.251802921295166, -0.14467260241508484, 0.14321891963481903, 1.1726950407028198, -1.381593108177185, 1.4848847389221191, -0.6798899173736572, 0.25098878145217896, -2.49147891998291, 1.3829691410064697, -0.6815090179443359, 1.858726978302002, -2.574754476547241, 0.402462363243103, -0.5959773063659668, -0.4656224548816681, 0.3257233500480652, -0.4053628444671631, 0.10445571690797806, -0.13612893223762512, -1.0726532936096191, 0.014589807949960232, -0.7321537733078003, 0.6418880820274353, 1.1358277797698975, 1.4353058338165283, -1.211125373840332, -0.3104276955127716, -1.712756872177124, -0.17657825350761414, -0.7240018844604492, 0.3395703434944153, -2.076960563659668, -0.16129395365715027, -1.8756358623504639, -2.413226842880249, -1.3132365942001343, -0.8470419049263, 1.073407530784607, 0.17467601597309113, -0.9111862182617188, 1.2178610563278198, -0.4082125127315521, -1.9228713512420654, 1.0993365049362183, -2.1425511837005615 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@albertvillanova >Maybe we should add an explaining note in our "legacy" Common Voice canonical script? Yes, I agree we should have a deprecation notice in the canonical script to redirect users to the new script.
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
953
35
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No @albertvillanova >Maybe we should add an explaining note in our "legacy" Common Voice canonical script? Yes, I agree we should have a deprecation notice in the canonical script to redirect users to the new script.
[ -1.2379536628723145, -0.9527426958084106, -0.8421258330345154, 1.4234516620635986, -0.23772884905338287, -1.2079486846923828, 0.17475897073745728, -1.096785306930542, 1.64267098903656, -0.8441212177276611, 0.20732064545154572, -1.6417101621627808, -0.04401206225156784, -0.5203136801719666, -0.7351237535476685, -1.012313723564148, -0.43898171186447144, -0.8281468749046326, 0.9698780179023743, 2.3925325870513916, 1.2667840719223022, -1.2847329378128052, 2.7298223972320557, 0.6460000872612, -0.18063408136367798, -1.141915202140808, 0.6329753398895264, 0.02404964342713356, -1.1083227396011353, -0.45914095640182495, -0.9490332007408142, -0.010529020801186562, -0.5788358449935913, -0.4453587830066681, 0.029677458107471466, 0.3908786177635193, -0.3098049461841583, -0.24802358448505402, -0.6558650732040405, -0.8621381521224976, 0.46538010239601135, -0.3878980875015259, 1.0238163471221924, -0.5277860760688782, 1.8624809980392456, -0.6219986081123352, 0.3296660780906677, 0.7319543957710266, 1.3915818929672241, 0.18148379027843475, 0.056126948446035385, 0.19095546007156372, 0.33149489760398865, -0.08103632181882858, 0.4908215403556824, 1.0513426065444946, 0.48226627707481384, 0.5118542313575745, 0.7100672721862793, -2.192141056060791, 1.3018733263015747, -0.9709188938140869, 0.3260095417499542, 1.4930939674377441, -0.8643652200698853, 0.4112868010997772, -1.8651715517044067, -0.13587243854999542, 0.5800517201423645, -2.351396083831787, 0.12404929101467133, -1.234634518623352, -0.7363010048866272, 0.8727868795394897, 0.2816643714904785, -1.213173747062683, 0.18132860958576202, -0.41402995586395264, 1.047980785369873, 0.5103903412818909, 1.1544315814971924, -1.628717064857483, -0.007436712272465229, -0.32608404755592346, 0.05264628306031227, -1.351001262664795, -1.5811799764633179, 0.5542882084846497, 0.5367679595947266, 0.6326653957366943, -0.08593039959669113, 0.899413526058197, -0.9046912789344788, 0.8422681093215942, -0.875845193862915, -1.5410290956497192, -1.3734997510910034, -2.3157248497009277, -2.2413547039031982, 0.8220070600509644, -0.5547012090682983, -0.46543991565704346, 1.9713095426559448, -1.0881640911102295, -1.8002644777297974, 1.225780963897705, 0.25038594007492065, 0.15351511538028717, 2.397643804550171, 0.16633763909339905, -0.6975612640380859, 0.4173501133918762, -0.6449711322784424, 0.9829001426696777, -0.26209038496017456, 1.4126787185668945, 0.5620687007904053, -0.9916287064552307, 1.6616475582122803, -0.43160778284072876, 0.5854542851448059, -0.586269199848175, -0.5703104138374329, -0.8787021636962891, 0.3385384976863861, 1.8184541463851929, -0.32466480135917664, 1.6348751783370972, -0.2868887782096863, -1.5544404983520508, -1.582210898399353, 0.8762673139572144, 0.5866906046867371, -0.8761081695556641, -0.0010509034618735313, -0.35986632108688354, 0.09273114055395126, -0.023447509855031967, 1.1752185821533203, 1.1762248277664185, 0.6898393630981445, -0.36149299144744873, -0.7929549813270569, 0.17901472747325897, -0.06945082545280457, -0.7182386517524719, -1.8530434370040894, -0.3652321398258209, 0.28532862663269043, 0.6093993186950684, -1.1876826286315918, 1.6688189506530762, 0.9297977685928345, 1.9279799461364746, 1.0311685800552368, -0.24663786590099335, 1.4623632431030273, 0.003868306986987591, 1.7354192733764648, -0.4834027588367462, 0.6698720455169678, -0.18043796718120575, -1.1086894273757935, 0.8327881097793579, -0.3470700681209564, -2.0096445083618164, -0.9639468193054199, -0.8694826364517212, -0.24988944828510284, -0.6842734217643738, 0.9146181344985962, -0.5061359405517578, -1.3573964834213257, 0.1957196742296219, -0.5755161046981812, 0.08572669327259064, -1.2595850229263306, 0.18101520836353302, 0.696989893913269, -0.7558318376541138, -0.11976465582847595, -0.1333940178155899, -1.2606885433197021, -0.49227288365364075, 0.2234368771314621, 2.0142226219177246, -0.6304317116737366, 0.9258668422698975, 0.9046825766563416, -0.7598053216934204, 0.10003498941659927, 0.3088802993297577, -0.26368439197540283, 0.7843680381774902, -0.990593433380127, -0.4630920886993408, 1.077499270439148, -0.16371315717697144, -0.7367334365844727, 1.491162896156311, 0.8331413865089417, -1.0171144008636475, -0.1722003072500229, -0.2712497413158417, -0.8095790147781372, -0.04996410384774208, -1.5340874195098877, -0.24692203104496002, 0.18006905913352966, -1.458917260169983, -0.49977216124534607, -0.2774694263935089, 1.2561094760894775, -0.2500968873500824, 1.3478460311889648, -0.46298959851264954, -0.30849722027778625, -0.3543570041656494, -0.5803905725479126, 0.21204039454460144, -0.16538549959659576, -0.6603155732154846, 0.2692710757255554, -0.9087991714477539, 0.3550792932510376, 1.391749620437622, 0.45616400241851807, 0.09449772536754608, 0.5743098855018616, 1.0400562286376953, 0.40950196981430054, -0.0815940871834755, -0.9373274445533752, -1.5448639392852783, 2.023282289505005, -1.3887211084365845, 1.920443058013916, 0.6938551664352417, -0.10029624402523041, -1.8195538520812988, -1.8055121898651123, 1.2551027536392212, 1.281156301498413, 2.3452954292297363, 0.5679616928100586, 0.30652564764022827, -0.755180299282074, -0.7407238483428955, 0.21032939851284027, -1.1092791557312012, -0.6483664512634277, 0.09966443479061127, 2.218249797821045, 1.7513611316680908, -0.6041204333305359, -0.21363109350204468, -0.9828617572784424, 1.2110553979873657, -0.17132766544818878, 0.20603448152542114, 2.0781753063201904, -0.3499906659126282, -1.0951104164123535, 1.3262510299682617, -2.174130916595459, 0.13285024464130402, 1.9582289457321167, 0.2614603638648987, 0.1017194464802742, -1.449924111366272, -0.7244515419006348, -0.3152829110622406, -0.47324272990226746, -1.4474773406982422, 0.5963498950004578, -0.3093429505825043, -0.9113628268241882, -1.4076346158981323, 0.11837778985500336, -1.1887980699539185, -1.5965242385864258, 0.5257483720779419, 1.8876131772994995, 1.9887621402740479, -0.7109732627868652, 1.430762767791748, -0.27549105882644653, 0.07628479599952698, 1.364409327507019, 1.1894681453704834, 3.082122564315796, 1.8960477113723755, -1.2798538208007812, 0.6547982692718506, -0.1964116245508194, -0.5059546232223511, 1.2204996347427368, -1.0302847623825073, 1.2851163148880005, -0.26601094007492065, -1.2495676279067993, -1.24313223361969, 1.055362343788147, 0.4579700529575348, 0.11119986325502396, -0.5196052193641663, 1.3425716161727905, 0.0021780598908662796, 1.3714786767959595, 0.5261203646659851, -0.476541668176651, 0.5888735055923462, -0.37820929288864136, -0.601324737071991, 1.6857103109359741, 0.10246872156858444, -1.5702823400497437, -2.3244988918304443, -0.294745534658432, -0.7756842970848083, -0.04702228680253029, -0.4880175292491913, -1.0501720905303955, 1.6769673824310303, 0.4081944227218628, -1.3387506008148193, -0.3709897994995117, -0.36782845854759216, -0.5898323655128479, 2.6312122344970703, -1.3125022649765015, -0.2043362706899643, -0.9802077412605286, -0.521764874458313, 1.6754668951034546, -1.2286289930343628, -0.1569526642560959, -1.0899642705917358, -0.6338707804679871, -1.3927791118621826, -0.5145209431648254, 0.04335249587893486, -0.9934070110321045, 0.798410177230835, 0.07698988169431686, -0.9080472588539124, -0.308131605386734, -0.8716739416122437, 0.9555519223213196, -0.08034322410821915, 0.27202698588371277, 1.964060664176941, 0.39914727210998535, -0.32205677032470703, 0.6695794463157654, 1.1485856771469116, 0.636491060256958, -0.6996869444847107, 0.08650053292512894, -0.7144990563392639, 0.23068194091320038, -1.3474833965301514, 0.2048429697751999, -2.964491128921509, 0.77974534034729, -0.10303507000207901, -0.15372823178768158, 0.033355116844177246, -1.261582374572754, 1.2045831680297852, 2.6190550327301025, -1.1037672758102417, 0.26562952995300293, 0.3650321364402771, 1.1339737176895142, -1.589818000793457, 0.48929673433303833, -0.4848281443119049, 2.033338785171509, 0.12157653272151947, 1.1670128107070923, -0.5411877632141113, -2.214165687561035, 0.7574321627616882, -1.1617506742477417, -1.2087243795394897, 0.7932190895080566, -0.7230950593948364, 0.18619398772716522, -1.50791335105896, -0.2248004525899887, -0.8916211128234863, -1.3243333101272583, 0.8828026652336121, 0.1703876405954361, 0.4339914321899414, -0.5237348675727844, 0.3156258463859558, -2.2161448001861572, -1.4641034603118896, -0.2372659295797348, -0.9800547361373901, 0.5390499234199524, -0.36556416749954224, 0.6219927668571472, -0.0444517619907856, 0.20770467817783356, 0.29664936661720276, 1.4135205745697021, 3.5359690189361572, 0.2240644246339798, 0.30339160561561584, -0.082057423889637, -0.9450708031654358, 1.574546217918396, 0.9891914129257202, 0.05246993526816368, -0.5424025654792786, -0.8959447145462036, 1.214911937713623, 1.9877699613571167, 1.048173427581787, 0.05269297584891319, -0.8028894662857056, -0.5663906335830688, -0.0011574486270546913, 0.2787914276123047, 0.5174717903137207, 0.9333284497261047, -0.06684870272874832, 0.07169578224420547, 1.480518102645874, 1.3133068084716797, -0.35320258140563965, 0.2669936716556549, -0.8904059529304504, -0.47498053312301636, 0.5234625935554504, 0.2995728552341461, 0.012284058146178722, 0.5961190462112427, -1.0100582838058472, -0.2640431225299835, -0.3090508282184601, -1.054381012916565, -0.6828489899635315, -0.48351630568504333, -0.4628048837184906, 1.5156134366989136, 0.1353156864643097, -0.4467127323150635, 0.03452938795089722, -0.79462069272995, -0.12287312746047974, -1.120581030845642, 0.18810215592384338, -0.0338587760925293, -0.1896994411945343, -0.1619701087474823, 1.7920970916748047, -1.0465283393859863, -2.096885919570923, 0.23371687531471252, 0.32217133045196533, -0.35012221336364746, 0.1399008184671402, 1.6021950244903564, 0.35799074172973633, 1.39149010181427, 1.2251677513122559, 0.9078624844551086, -0.5417771935462952, -1.2178425788879395, 0.6041766405105591, 0.8859809637069702, -1.3109763860702515, 0.9062843918800354, -0.11088956892490387, -0.5882506370544434, 0.8067550659179688, 1.2039477825164795, 0.4061548113822937, -1.8085557222366333, 0.8951546549797058, -0.7618044018745422, 0.7618637084960938, 0.658144474029541, 0.8498568534851074, 0.20735225081443787, 0.9972118139266968, -1.235493540763855, -1.1310592889785767, -0.8277673125267029, -0.4895053505897522, 1.880810260772705, -0.20427246391773224, 0.5225260853767395, -0.2565717101097107, -1.1057332754135132, -0.059312883764505386, 0.7715852856636047, 0.46674028038978577, -0.31185826659202576, 0.7998718023300171, -0.7119412422180176, -0.9866058826446533, -1.3849536180496216, -0.36880725622177124, -0.9194164872169495, -0.9834252595901489, 1.0583782196044922, 0.8962780833244324, 0.33180949091911316, 1.9041638374328613, 0.6080548167228699, 0.35818955302238464, -2.638918876647949, 0.8693336844444275, 0.20639009773731232, 0.07714366167783737, 0.9736974835395813, 0.3050314784049988, 1.1314895153045654, 0.01885225623846054, 0.3942229747772217, -2.254666328430176, 2.1726748943328857, -0.30264246463775635, 0.6944272518157959, -0.01802242547273636, -0.1880122423171997, 1.1740361452102661, 0.5375527143478394, 0.49134349822998047, -1.1697136163711548, 0.7666000127792358, -0.4960270822048187, 1.0847431421279907, 1.0901384353637695, -0.7814255952835083, 0.051568515598773956, 1.4877891540527344, 0.5757367610931396, -0.4537241756916046, -0.7891817688941956, -0.7869099974632263, 0.9625126719474792, 1.6801742315292358, -0.03302972391247749, -0.016177715733647346, 0.8829529881477356, 0.6618293523788452, -1.2552140951156616, 0.09588927030563354, -0.7927481532096863, -0.655407726764679, 1.6619503498077393, 1.9118493795394897, -0.021770786494016647, -0.155526265501976, -0.7049354314804077, -1.274845004081726, 0.7884314060211182, -0.021457158029079437, 0.20889101922512054, 0.627832293510437, -0.6806747317314148, 1.0798404216766357, 0.8449292182922363, 1.0480053424835205, 0.07512509822845459, 0.5102466940879822, 0.5465667247772217, -0.2817540466785431, -1.1935017108917236, -0.3801218569278717, -1.1264945268630981, -2.5442299842834473, 0.4483731985092163, -0.3988535702228546, -1.471599817276001, -0.05304086208343506, -1.0765931606292725, 0.9654912352561951, -0.6727920770645142, -0.9473268985748291, -1.618317723274231, 0.24493761360645294, -0.07571019232273102, 0.8859490156173706, -1.5962660312652588, -0.15122337639331818, 1.3700886964797974, 0.8312041759490967, -0.5767540335655212, 1.0121902227401733, 0.237662672996521, 0.9710296392440796, 0.7352297902107239, -0.5325355529785156, 0.4735046327114105, 0.05757142975926399, -1.4995391368865967, 0.42292487621307373, 1.069154143333435, 0.1758052557706833, 1.3827980756759644, -0.4954681694507599, 0.09691885113716125, 0.4732157588005066, -0.6443934440612793, -0.5213460922241211, -0.48023778200149536, 0.6358227729797363, 0.060833778232336044, -0.9881194233894348, 0.02828374132514, -0.1977861076593399, -0.32255738973617554, 0.2914380431175232, -1.4197757244110107, -0.3038230836391449, -0.42647743225097656, -0.5334450006484985, -1.3547050952911377, 0.01553539838641882, 1.3750886917114258, -0.7505799531936646, -0.13933637738227844, 0.41604509949684143, 0.39925500750541687, 0.5660131573677063, 0.6705807447433472, -0.765387237071991, -0.287076473236084, -0.46641218662261963, -0.2325635701417923, 0.22005534172058105, 1.1928069591522217, -0.2219030112028122, -1.0802674293518066, 0.7307273745536804, -0.3490094244480133, 0.08743522316217422, 2.084559917449951, 0.08438123762607574, -0.7818948030471802, 0.27058035135269165, -0.7204282283782959, 1.7796317338943481, 1.6392161846160889, 1.366668462753296, -0.033866073936223984, -0.7835099697113037, 0.6205402612686157, -0.24075506627559662, -0.33674705028533936, 0.9486045837402344, 0.5555158257484436, -0.12760686874389648, -1.4146604537963867, 0.5992962121963501, 1.28031587600708, -0.8861789107322693, -0.6728732585906982, 0.06118575111031532, -0.858733057975769, 1.0552815198898315, 0.6375742554664612, 0.4432861804962158, 0.24848388135433197, 1.561447024345398, 0.6244368553161621, -0.4845632016658783, 0.42576393485069275, 0.6311019659042358, -0.14777857065200806, -2.1478781700134277, -1.0518736839294434, 0.3780803084373474, -0.47005361318588257, -1.5822168588638306, 1.4458823204040527, -1.1081749200820923, -0.9978306889533997, 0.5199543237686157, 0.1392921805381775, 1.424369215965271, 0.27579525113105774, 1.679767370223999, 1.9869025945663452, 0.8504520654678345, 0.30875033140182495, 1.328850507736206, -0.009605605155229568, -0.3788072168827057, 1.911300778388977, -0.3613846004009247, 0.5672368407249451, 1.0400946140289307, -0.34913042187690735, -1.066996693611145, -0.7760902047157288, -1.0507677793502808, -0.6018204689025879, 1.221377968788147, 0.19390930235385895, -1.1513274908065796, 0.09065283834934235, 1.5776437520980835, 0.1858249455690384, -0.2982933223247528, 0.5351276397705078, 0.35671621561050415, -0.7755283117294312, -0.10440592467784882, -0.9887735247612, 0.4819803535938263, -0.15022067725658417, -0.28008103370666504, 0.23999015986919403, 0.4442541003227234, 1.2530946731567383, -0.18076130747795105, 0.1889464110136032, 1.1826672554016113, -1.3445090055465698, 1.5164250135421753, -0.5246007442474365, 0.26098859310150146, -2.482849597930908, 1.3899929523468018, -0.7559525370597839, 1.8883172273635864, -2.6087160110473633, 0.3744618892669678, -0.577298641204834, -0.4312235713005066, 0.36012229323387146, -0.4836863875389099, 0.136148139834404, -0.12638437747955322, -0.9277316927909851, 0.04215354099869728, -0.7805578112602234, 0.6642526388168335, 1.241690754890442, 1.4185194969177246, -1.162635326385498, -0.3077201843261719, -1.6828596591949463, -0.23989970982074738, -0.7749412655830383, 0.3905627727508545, -2.1728062629699707, -0.11471854895353317, -1.9035135507583618, -2.445021629333496, -1.2996433973312378, -0.839396059513092, 1.14593505859375, 0.27257975935935974, -0.9134761691093445, 1.1822503805160522, -0.36785054206848145, -1.855128526687622, 1.2117102146148682, -2.109328031539917 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@albertvillanova, I now get the following error after downloading my access token from the huggingface and passing it to `load_dataset` call: `AttributeError: 'DownloadManager' object has no attribute 'download_config'` Any quick pointer on how it might be resolved?
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
953
37
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No @albertvillanova, I now get the following error after downloading my access token from the huggingface and passing it to `load_dataset` call: `AttributeError: 'DownloadManager' object has no attribute 'download_config'` Any quick pointer on how it might be resolved?
[ -1.2134809494018555, -0.9663960933685303, -0.8537659049034119, 1.4590667486190796, -0.16838787496089935, -1.2035726308822632, 0.14344894886016846, -1.0452767610549927, 1.6763877868652344, -0.8440168499946594, 0.17943140864372253, -1.7125197649002075, -0.04848732426762581, -0.5591232180595398, -0.7322601079940796, -0.9017284512519836, -0.43411657214164734, -0.8016478419303894, 0.9607898592948914, 2.333869695663452, 1.2544833421707153, -1.3201730251312256, 2.7651119232177734, 0.6513528227806091, -0.16645199060440063, -1.154858946800232, 0.5977005958557129, 0.04482026398181915, -1.1248435974121094, -0.4301331043243408, -0.9541539549827576, -0.025312010198831558, -0.590076208114624, -0.48471730947494507, 0.014728675596415997, 0.4539424180984497, -0.3025200366973877, -0.2882900536060333, -0.6460345387458801, -0.8395419120788574, 0.4600076675415039, -0.35254615545272827, 1.0424821376800537, -0.5116236209869385, 1.849639892578125, -0.5848695039749146, 0.2916211485862732, 0.7692041397094727, 1.341785192489624, 0.17557069659233093, 0.02084856852889061, 0.22083090245723724, 0.3403805196285248, -0.045119691640138626, 0.4516550302505493, 1.1144890785217285, 0.5131492018699646, 0.5148576498031616, 0.6788454651832581, -2.2472126483917236, 1.2984830141067505, -1.0450061559677124, 0.32323166728019714, 1.459011435508728, -0.9294501543045044, 0.3920821249485016, -1.8784805536270142, -0.0722431018948555, 0.6062110662460327, -2.272169351577759, 0.13880933821201324, -1.2517871856689453, -0.6793491840362549, 0.8830852508544922, 0.29256105422973633, -1.2491405010223389, 0.18308360874652863, -0.4173838794231415, 1.0659390687942505, 0.5341721177101135, 1.1424760818481445, -1.664297342300415, 0.032175250351428986, -0.2838534712791443, 0.09046653658151627, -1.3726989030838013, -1.5760648250579834, 0.5662171840667725, 0.5763056874275208, 0.6605771780014038, -0.1525866538286209, 0.9666832685470581, -0.9053005576133728, 0.8267291188240051, -0.9793760180473328, -1.545745849609375, -1.3434094190597534, -2.25228214263916, -2.2645201683044434, 0.8030154705047607, -0.5402546525001526, -0.486307293176651, 1.9589636325836182, -1.0194220542907715, -1.8085819482803345, 1.2388818264007568, 0.2686983346939087, 0.15690599381923676, 2.376400947570801, 0.14084848761558533, -0.7112975716590881, 0.4091348350048065, -0.6398225426673889, 1.0061365365982056, -0.2578321695327759, 1.4404774904251099, 0.6116107702255249, -1.014072060585022, 1.6392040252685547, -0.4661736786365509, 0.5469159483909607, -0.603417694568634, -0.5871395468711853, -0.8523813486099243, 0.34609827399253845, 1.8228262662887573, -0.3294341266155243, 1.630614161491394, -0.3482922315597534, -1.5615525245666504, -1.5508503913879395, 0.8925648927688599, 0.5264580249786377, -0.8822909593582153, 0.06306496262550354, -0.39319878816604614, 0.11823979020118713, -0.0449545718729496, 1.1738388538360596, 1.1588053703308105, 0.662310779094696, -0.3257242441177368, -0.7742723226547241, 0.17787815630435944, -0.08663161844015121, -0.6910373568534851, -1.8313034772872925, -0.3277609646320343, 0.26006048917770386, 0.631141185760498, -1.233655571937561, 1.6867632865905762, 0.8858394622802734, 1.9200477600097656, 0.9655397534370422, -0.24515566229820251, 1.5088551044464111, 0.010367319919168949, 1.790334939956665, -0.5314298868179321, 0.6367548704147339, -0.21366643905639648, -1.0460630655288696, 0.8760004639625549, -0.36109188199043274, -2.0020153522491455, -0.9348466396331787, -0.9006370902061462, -0.20347118377685547, -0.7589254975318909, 0.859278678894043, -0.42215991020202637, -1.4322364330291748, 0.2591308355331421, -0.5544111132621765, 0.13681380450725555, -1.230082631111145, 0.20475000143051147, 0.7273034453392029, -0.6994181871414185, -0.1118391826748848, -0.15787780284881592, -1.3128676414489746, -0.4918123781681061, 0.33480405807495117, 1.9838405847549438, -0.6136504411697388, 0.9343979358673096, 0.9303898811340332, -0.7241485714912415, 0.04381420090794563, 0.2680620551109314, -0.23343895375728607, 0.7506775259971619, -0.9957541227340698, -0.5096234679222107, 1.1157625913619995, -0.1959623545408249, -0.709528386592865, 1.517080307006836, 0.832089900970459, -1.0076359510421753, -0.1940191239118576, -0.2975948452949524, -0.8138952851295471, -0.07596126943826675, -1.5465242862701416, -0.2079469859600067, 0.19610223174095154, -1.47294020652771, -0.4568970203399658, -0.25514984130859375, 1.2126652002334595, -0.27271831035614014, 1.3584859371185303, -0.4775969386100769, -0.32363298535346985, -0.29087740182876587, -0.5387468338012695, 0.21953904628753662, -0.21810391545295715, -0.6815720200538635, 0.1926364153623581, -0.8801187872886658, 0.3489846885204315, 1.3786700963974, 0.47746628522872925, 0.034395817667245865, 0.5599327087402344, 1.114556908607483, 0.3821727931499481, 0.022393837571144104, -0.922461211681366, -1.5132189989089966, 1.9980854988098145, -1.4110207557678223, 1.916496992111206, 0.6674802303314209, -0.06590253859758377, -1.7956116199493408, -1.7537623643875122, 1.299968957901001, 1.2818785905838013, 2.274272918701172, 0.6192716360092163, 0.2793339192867279, -0.8025591373443604, -0.7320084571838379, 0.25193777680397034, -1.0845370292663574, -0.6200093030929565, 0.14067617058753967, 2.292379140853882, 1.775612473487854, -0.5805822014808655, -0.2771787643432617, -0.9393591284751892, 1.2839428186416626, -0.2153504490852356, 0.22896677255630493, 2.0875630378723145, -0.3416633605957031, -1.0708301067352295, 1.2602869272232056, -2.252957344055176, 0.17591340839862823, 2.0181047916412354, 0.2767215371131897, 0.1109858974814415, -1.5212552547454834, -0.7300565242767334, -0.27035248279571533, -0.4619549512863159, -1.3990623950958252, 0.6154388189315796, -0.33483803272247314, -0.8754372596740723, -1.4065558910369873, 0.15732678771018982, -1.167360782623291, -1.6149486303329468, 0.44681912660598755, 1.8782907724380493, 1.9898604154586792, -0.725643515586853, 1.486353874206543, -0.3081834614276886, 0.15559136867523193, 1.4227561950683594, 1.2079325914382935, 3.0984249114990234, 1.8702906370162964, -1.272670030593872, 0.6874483823776245, -0.18567821383476257, -0.5742805600166321, 1.250900149345398, -1.09451425075531, 1.282871961593628, -0.26554638147354126, -1.2041194438934326, -1.2757530212402344, 1.0498095750808716, 0.4579564034938812, 0.10309614986181259, -0.5443786978721619, 1.3254685401916504, 0.002399859018623829, 1.3215012550354004, 0.5538498163223267, -0.5126098394393921, 0.5288538932800293, -0.39954662322998047, -0.6090043187141418, 1.665919542312622, 0.10329217463731766, -1.5336171388626099, -2.285886764526367, -0.33017605543136597, -0.7987456917762756, -0.012568512000143528, -0.5111903548240662, -1.0252326726913452, 1.704176902770996, 0.40404894948005676, -1.3871527910232544, -0.33651110529899597, -0.3875543773174286, -0.5633667707443237, 2.6317994594573975, -1.3345398902893066, -0.22959136962890625, -0.944570004940033, -0.5812242031097412, 1.7103259563446045, -1.2048109769821167, -0.1644454449415207, -1.0632033348083496, -0.6499947905540466, -1.419550895690918, -0.5455462336540222, 0.02547663450241089, -0.9100900888442993, 0.7866834998130798, 0.13387124240398407, -0.9471060037612915, -0.34346649050712585, -0.8321443796157837, 0.9327873587608337, -0.13743121922016144, 0.2668039798736572, 2.0034868717193604, 0.416194349527359, -0.37861278653144836, 0.6975046396255493, 1.0924551486968994, 0.6712644100189209, -0.6518594622612, 0.11282995343208313, -0.6891530752182007, 0.23198550939559937, -1.3872994184494019, 0.20864608883857727, -2.9972000122070312, 0.7093926072120667, -0.045905958861112595, -0.134276881814003, -0.038970835506916046, -1.3069945573806763, 1.1992053985595703, 2.6053123474121094, -1.107384443283081, 0.3165995478630066, 0.36470675468444824, 1.1528741121292114, -1.629498839378357, 0.43214479088783264, -0.45926129817962646, 2.026979923248291, 0.10446207225322723, 1.1924651861190796, -0.5094799399375916, -2.2274770736694336, 0.7280808687210083, -1.2333784103393555, -1.1410521268844604, 0.7768205404281616, -0.7899162173271179, 0.22847814857959747, -1.5215280055999756, -0.26407599449157715, -0.8947558999061584, -1.2962932586669922, 0.898329496383667, 0.15121854841709137, 0.4089219272136688, -0.5457127690315247, 0.3417021930217743, -2.17218017578125, -1.4973362684249878, -0.21458368003368378, -0.9504373073577881, 0.5542711019515991, -0.3634597063064575, 0.6190972328186035, -0.05261138454079628, 0.1760278344154358, 0.2647184729576111, 1.4415826797485352, 3.4708380699157715, 0.25419625639915466, 0.3430711627006531, -0.04576202109456062, -0.9306815266609192, 1.572072148323059, 0.966087818145752, -0.010773708112537861, -0.49327388405799866, -0.9123625755310059, 1.221615195274353, 1.9509174823760986, 1.0378836393356323, 0.060021135956048965, -0.7164189219474792, -0.6081552505493164, 0.012830984778702259, 0.2094886302947998, 0.534172534942627, 0.8657006025314331, -0.029885705560445786, 0.12234237790107727, 1.4325164556503296, 1.2710931301116943, -0.37314683198928833, 0.2808642089366913, -0.8941843509674072, -0.46555960178375244, 0.495383620262146, 0.28296926617622375, -0.026155665516853333, 0.605452835559845, -0.9823506474494934, -0.29094138741493225, -0.2862049639225006, -1.0219820737838745, -0.6824721097946167, -0.5165901184082031, -0.44374555349349976, 1.4870065450668335, 0.16404832899570465, -0.5378822088241577, -0.030510790646076202, -0.8088886737823486, -0.14896659553050995, -1.110581874847412, 0.1706697940826416, -0.10398606210947037, -0.1570987105369568, -0.1721586138010025, 1.774003267288208, -1.005919098854065, -2.050551414489746, 0.18743903934955597, 0.377069890499115, -0.34805724024772644, 0.1551138460636139, 1.6331405639648438, 0.34689879417419434, 1.355813980102539, 1.2797458171844482, 0.9192984104156494, -0.5448052883148193, -1.2398840188980103, 0.6092399954795837, 0.9030947685241699, -1.3582459688186646, 0.9265372157096863, -0.0956849530339241, -0.5401128530502319, 0.7869821190834045, 1.306226372718811, 0.4404783844947815, -1.826768159866333, 0.849241316318512, -0.7704665064811707, 0.7623709440231323, 0.6917507648468018, 0.7966292500495911, 0.23470503091812134, 0.9699234962463379, -1.2353636026382446, -1.1344094276428223, -0.8447909355163574, -0.5183659791946411, 1.8946146965026855, -0.22524642944335938, 0.537500262260437, -0.2547619640827179, -1.1478266716003418, -0.10183776170015335, 0.7651715278625488, 0.5013285279273987, -0.35825175046920776, 0.7755199074745178, -0.6501648426055908, -1.0212602615356445, -1.332550287246704, -0.420876681804657, -0.8862911462783813, -0.9578306674957275, 1.081058382987976, 0.9262662529945374, 0.32634925842285156, 1.9137425422668457, 0.6541191935539246, 0.28414303064346313, -2.613194704055786, 0.849183201789856, 0.24082136154174805, 0.07068005949258804, 0.9359012842178345, 0.276186466217041, 1.1527860164642334, 0.016758855432271957, 0.43691486120224, -2.2237045764923096, 2.1827147006988525, -0.33125001192092896, 0.7118135690689087, -0.03345482423901558, -0.23551230132579803, 1.1970309019088745, 0.5495976805686951, 0.4918676018714905, -1.2212761640548706, 0.7119423151016235, -0.48627230525016785, 1.0890071392059326, 1.062379002571106, -0.8303132057189941, 0.05586620047688484, 1.4732197523117065, 0.5169630646705627, -0.5005073547363281, -0.8287246823310852, -0.7979462146759033, 0.9948768615722656, 1.6246249675750732, -0.01836242713034153, 0.00805871281772852, 0.9119135737419128, 0.660622775554657, -1.2312071323394775, 0.12682370841503143, -0.7465935349464417, -0.6504207849502563, 1.6885923147201538, 1.964211344718933, -0.07989584654569626, -0.1412672996520996, -0.7311025857925415, -1.214708685874939, 0.8124189376831055, -0.020206475630402565, 0.14601001143455505, 0.6404141783714294, -0.6591414213180542, 1.061033010482788, 0.7952607870101929, 1.0320552587509155, 0.08460453152656555, 0.5125583410263062, 0.5015611052513123, -0.2789643406867981, -1.203407883644104, -0.3595188558101654, -1.192590355873108, -2.491858959197998, 0.48677894473075867, -0.37782007455825806, -1.4019941091537476, -0.03432174399495125, -1.0468249320983887, 0.9538098573684692, -0.7070891857147217, -1.0549811124801636, -1.5816411972045898, 0.24899223446846008, -0.11550749093294144, 0.8380700945854187, -1.6127240657806396, -0.1306624412536621, 1.3356224298477173, 0.828481137752533, -0.6111161112785339, 1.0017707347869873, 0.25725314021110535, 1.040228247642517, 0.7560898661613464, -0.49120333790779114, 0.5393444895744324, 0.029866289347410202, -1.4596385955810547, 0.4960266351699829, 1.0891443490982056, 0.17470425367355347, 1.4791001081466675, -0.4734904170036316, 0.08769139647483826, 0.4710588753223419, -0.661756157875061, -0.5080415606498718, -0.5426564812660217, 0.6627703905105591, 0.03200742229819298, -0.9475420117378235, 0.07020634412765503, -0.14543676376342773, -0.28268593549728394, 0.2808571457862854, -1.4682719707489014, -0.2464853674173355, -0.3703088164329529, -0.5081756114959717, -1.3329451084136963, 0.01047795731574297, 1.376489520072937, -0.7100784182548523, -0.1787247508764267, 0.41182586550712585, 0.3649322986602783, 0.5251250267028809, 0.5897901058197021, -0.7440372109413147, -0.25012296438217163, -0.45021867752075195, -0.25541841983795166, 0.2675313353538513, 1.1862086057662964, -0.23563818633556366, -1.042177677154541, 0.7068771123886108, -0.3623746931552887, 0.08916424959897995, 2.0355772972106934, 0.07380526512861252, -0.7362595200538635, 0.3305681645870209, -0.7493049502372742, 1.81332528591156, 1.7569817304611206, 1.341286540031433, -0.04926937073469162, -0.8327018618583679, 0.5920577645301819, -0.2874540388584137, -0.34178707003593445, 0.8983554840087891, 0.5205917358398438, -0.11438397318124771, -1.39322030544281, 0.6074177622795105, 1.3034154176712036, -0.8982001543045044, -0.686023473739624, 0.06596540659666061, -0.8564955592155457, 1.0441288948059082, 0.5911741852760315, 0.4194103181362152, 0.26485365629196167, 1.5732171535491943, 0.6182182431221008, -0.42959946393966675, 0.47354042530059814, 0.5521782040596008, -0.14322565495967865, -2.102479934692383, -1.1336286067962646, 0.3837297260761261, -0.4698018729686737, -1.592998743057251, 1.4028176069259644, -1.0697224140167236, -0.9696660041809082, 0.5271801352500916, 0.12856832146644592, 1.451582670211792, 0.24411872029304504, 1.6200183629989624, 2.0175962448120117, 0.8063905239105225, 0.3140714168548584, 1.2753275632858276, -0.014009982347488403, -0.43141791224479675, 1.9649057388305664, -0.36642763018608093, 0.563647985458374, 1.0652523040771484, -0.3523578643798828, -1.0846103429794312, -0.8256092071533203, -1.1015225648880005, -0.5949699878692627, 1.228380560874939, 0.17182521522045135, -1.2099581956863403, 0.13952159881591797, 1.555198073387146, 0.18101924657821655, -0.2810623049736023, 0.5627071261405945, 0.38366588950157166, -0.7833184599876404, -0.07529381662607193, -0.9409313797950745, 0.488884836435318, -0.18153107166290283, -0.2725506126880646, 0.2691905200481415, 0.4621313810348511, 1.2156789302825928, -0.15382981300354004, 0.16513454914093018, 1.2010842561721802, -1.3610271215438843, 1.5137144327163696, -0.5560386180877686, 0.28102466464042664, -2.4561269283294678, 1.3714429140090942, -0.7766769528388977, 1.9426932334899902, -2.621650457382202, 0.3191588819026947, -0.5866719484329224, -0.45227617025375366, 0.3599952459335327, -0.4894677400588989, 0.11791378259658813, -0.10076630115509033, -0.962857186794281, 0.11408473551273346, -0.8065908551216125, 0.6661026477813721, 1.2197105884552002, 1.4529640674591064, -1.203764796257019, -0.31620272994041443, -1.715051293373108, -0.2774098217487335, -0.7497183680534363, 0.4156831204891205, -2.137861967086792, -0.09683430194854736, -1.9193705320358276, -2.403167486190796, -1.3242466449737549, -0.8548599481582642, 1.071951985359192, 0.19398978352546692, -0.9418454170227051, 1.1552485227584839, -0.38480839133262634, -1.7865386009216309, 1.156827449798584, -2.077894687652588 ]
https://github.com/huggingface/datasets/issues/3720
Builder Configuration Update Required on Common Voice Dataset
@aasem What version of `datasets` are you using? We renamed that attribute from `_download_config` to `download_conig` fairly recently, so updating to the newest version should resolve the issue: ``` pip install -U datasets ```
Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No
953
34
Builder Configuration Update Required on Common Voice Dataset Missing language in Common Voice dataset **Link:** https://huggingface.co/datasets/common_voice I tried to call the Urdu dataset using `load_dataset("common_voice", "ur", split="train+validation")` but couldn't due to builder configuration not found. I checked the source file here for the languages support: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py and Urdu isn't included there. I assume a quick update will fix the issue as Urdu speech is now available at the Common Voice dataset. Am I the one who added this dataset? No @aasem What version of `datasets` are you using? We renamed that attribute from `_download_config` to `download_conig` fairly recently, so updating to the newest version should resolve the issue: ``` pip install -U datasets ```
[ -1.2012007236480713, -0.9187330603599548, -0.8462251424789429, 1.4340999126434326, -0.1538214087486267, -1.2965114116668701, 0.19677972793579102, -1.08803129196167, 1.7194979190826416, -0.8078235387802124, 0.20719468593597412, -1.686599612236023, -0.055570147931575775, -0.608320415019989, -0.7627664804458618, -0.947374701499939, -0.4878307282924652, -0.767622709274292, 0.9031547904014587, 2.3396897315979004, 1.3065019845962524, -1.2602741718292236, 2.7070865631103516, 0.6881819367408752, -0.18970805406570435, -1.1069432497024536, 0.5631544589996338, 0.009473942220211029, -1.1440807580947876, -0.45734211802482605, -0.9187087416648865, -0.0353551022708416, -0.6090136766433716, -0.5308206081390381, 0.009433168917894363, 0.47691547870635986, -0.35392510890960693, -0.3136500418186188, -0.6463854312896729, -0.8698008060455322, 0.499397337436676, -0.3102949559688568, 1.0215911865234375, -0.5188771486282349, 1.8368275165557861, -0.6114810109138489, 0.3424919545650482, 0.7869799137115479, 1.3541200160980225, 0.15036332607269287, 0.028580691665410995, 0.2315577268600464, 0.30657458305358887, -0.03165481239557266, 0.478919118642807, 1.1233247518539429, 0.5209084153175354, 0.5369294881820679, 0.7271238565444946, -2.2235167026519775, 1.2744261026382446, -1.0339986085891724, 0.3718090057373047, 1.4768165349960327, -0.9694256782531738, 0.33625364303588867, -1.8725886344909668, -0.056154511868953705, 0.5648248791694641, -2.2725653648376465, 0.19567403197288513, -1.2428278923034668, -0.6620043516159058, 0.939121425151825, 0.38275814056396484, -1.1705899238586426, 0.1860392689704895, -0.3532814383506775, 1.0415724515914917, 0.5372180938720703, 1.1016844511032104, -1.7139137983322144, 0.03783505782485008, -0.3399483263492584, 0.058874137699604034, -1.336021900177002, -1.5698717832565308, 0.5381360054016113, 0.5869185328483582, 0.6583135724067688, -0.1912352442741394, 0.9848610162734985, -0.8485648036003113, 0.7884343862533569, -0.9428643584251404, -1.5581541061401367, -1.3573789596557617, -2.2327613830566406, -2.2682876586914062, 0.8269562721252441, -0.5067412853240967, -0.45766276121139526, 1.96748685836792, -1.0170284509658813, -1.845386028289795, 1.1586642265319824, 0.2672620713710785, 0.1279241442680359, 2.298689603805542, 0.20851346850395203, -0.6670736074447632, 0.4133247435092926, -0.6359070539474487, 0.9180812835693359, -0.29146161675453186, 1.42121160030365, 0.5863658785820007, -1.1170529127120972, 1.6626273393630981, -0.4346585273742676, 0.6104077696800232, -0.6419813632965088, -0.5508162379264832, -0.8594361543655396, 0.31882980465888977, 1.8199435472488403, -0.3090626299381256, 1.6100695133209229, -0.2701103687286377, -1.5715522766113281, -1.5771631002426147, 0.9121835827827454, 0.49413609504699707, -0.8091543912887573, 0.05644742399454117, -0.37966614961624146, 0.10690358281135559, -0.07743501663208008, 1.1948893070220947, 1.144826054573059, 0.6892523169517517, -0.38903000950813293, -0.7403169870376587, 0.19410985708236694, 0.012345600873231888, -0.7443810105323792, -1.7910082340240479, -0.35593271255493164, 0.25921887159347534, 0.5676833987236023, -1.1483150720596313, 1.7331417798995972, 0.8831039667129517, 1.8940943479537964, 0.9765455722808838, -0.25099053978919983, 1.455859661102295, -0.021621987223625183, 1.853562831878662, -0.4880627393722534, 0.6757639646530151, -0.16645047068595886, -1.0636301040649414, 0.9032085537910461, -0.3225092589855194, -2.0687060356140137, -0.9179065227508545, -0.8897373080253601, -0.1679924726486206, -0.7026649117469788, 0.9087779521942139, -0.43172574043273926, -1.3740506172180176, 0.2123764157295227, -0.5578670501708984, 0.14171883463859558, -1.2568928003311157, 0.22030481696128845, 0.7316755056381226, -0.7119297385215759, -0.10116072744131088, -0.15673470497131348, -1.2702782154083252, -0.49157530069351196, 0.2881539463996887, 1.9702179431915283, -0.5981364250183105, 0.9933816194534302, 0.9550459384918213, -0.818023681640625, 0.02428659051656723, 0.3066329061985016, -0.23725634813308716, 0.7808374762535095, -1.019665241241455, -0.46967196464538574, 1.1154407262802124, -0.17222312092781067, -0.7056624293327332, 1.549762487411499, 0.8302651047706604, -1.0182958841323853, -0.10971684753894806, -0.31436723470687866, -0.8353132009506226, -0.05395513400435448, -1.512770175933838, -0.15419325232505798, 0.24918973445892334, -1.4672657251358032, -0.5074934959411621, -0.22213751077651978, 1.265974521636963, -0.26431161165237427, 1.3371810913085938, -0.4201275408267975, -0.32180094718933105, -0.3316066861152649, -0.5181549191474915, 0.17260846495628357, -0.21737250685691833, -0.7199313044548035, 0.22300392389297485, -0.832714855670929, 0.36608800292015076, 1.3967770338058472, 0.3840353786945343, 0.05609501898288727, 0.5934757590293884, 1.125930666923523, 0.3063604235649109, -0.044874850660562515, -0.8828930854797363, -1.5353624820709229, 1.9692209959030151, -1.3412796258926392, 1.8836908340454102, 0.5997280478477478, -0.0611879788339138, -1.7968703508377075, -1.7884817123413086, 1.3207677602767944, 1.2854491472244263, 2.2854530811309814, 0.6134341955184937, 0.29252389073371887, -0.8193956017494202, -0.7462697625160217, 0.26365697383880615, -1.0808192491531372, -0.6042191982269287, 0.13538476824760437, 2.2690269947052, 1.8303210735321045, -0.6125078797340393, -0.30070653557777405, -1.0488994121551514, 1.2383226156234741, -0.2526194751262665, 0.1948499083518982, 2.054211378097534, -0.3471199572086334, -1.080777883529663, 1.3173141479492188, -2.23490834236145, 0.16047489643096924, 1.9911272525787354, 0.24169185757637024, 0.15150004625320435, -1.5008418560028076, -0.7343235015869141, -0.2806534469127655, -0.4733792543411255, -1.4089276790618896, 0.5993617177009583, -0.31520211696624756, -0.8308842182159424, -1.3267402648925781, 0.16273093223571777, -1.1279486417770386, -1.5971348285675049, 0.45644834637641907, 1.8731788396835327, 1.9263858795166016, -0.6341748237609863, 1.51474928855896, -0.3041657507419586, 0.15491080284118652, 1.4199963808059692, 1.2716357707977295, 3.150465726852417, 1.8761286735534668, -1.3127307891845703, 0.7108846306800842, -0.1598140299320221, -0.5669652819633484, 1.2655240297317505, -1.1077522039413452, 1.2890316247940063, -0.302707701921463, -1.206263780593872, -1.2769787311553955, 1.033984899520874, 0.494021475315094, 0.12532415986061096, -0.5481746792793274, 1.2841776609420776, -0.04118450731039047, 1.3191181421279907, 0.5629245638847351, -0.5361992120742798, 0.558662474155426, -0.35074880719184875, -0.5733593106269836, 1.6300243139266968, 0.13883930444717407, -1.464436411857605, -2.3102781772613525, -0.28409838676452637, -0.8188154101371765, -0.0615229569375515, -0.5178061723709106, -0.9891649484634399, 1.6789056062698364, 0.4509256184101105, -1.386589765548706, -0.28920626640319824, -0.34414806962013245, -0.5825992822647095, 2.6682958602905273, -1.3472402095794678, -0.2513141334056854, -1.006338357925415, -0.5820687413215637, 1.7389392852783203, -1.177994966506958, -0.20528525114059448, -1.047413945198059, -0.6337430477142334, -1.4122235774993896, -0.5610053539276123, 0.010940104722976685, -0.921583354473114, 0.8532453775405884, 0.08999405801296234, -0.9761829972267151, -0.34869298338890076, -0.8481177687644958, 0.942222535610199, -0.1389586329460144, 0.2410818338394165, 1.9679324626922607, 0.4475407004356384, -0.34855443239212036, 0.6517301201820374, 1.1104238033294678, 0.6594980955123901, -0.6643951535224915, 0.18650323152542114, -0.7250078916549683, 0.1932373344898224, -1.356113076210022, 0.19756925106048584, -2.94114351272583, 0.7155361175537109, -0.10798905044794083, -0.08566279709339142, -0.026019608601927757, -1.3522776365280151, 1.1104377508163452, 2.603792428970337, -1.148915410041809, 0.2928321361541748, 0.34458982944488525, 1.1334865093231201, -1.6033719778060913, 0.34010201692581177, -0.4930286407470703, 2.0399281978607178, 0.0957532748579979, 1.2169969081878662, -0.4659702479839325, -2.1733109951019287, 0.6951532959938049, -1.201285719871521, -1.1964917182922363, 0.8110163807868958, -0.7087640166282654, 0.22506436705589294, -1.4597747325897217, -0.2659321427345276, -0.8949586749076843, -1.3194324970245361, 0.9252746105194092, 0.15174457430839539, 0.4489889442920685, -0.5652444958686829, 0.3320663869380951, -2.142371654510498, -1.4107306003570557, -0.2421993613243103, -0.9321293234825134, 0.5339535474777222, -0.3184186816215515, 0.592780351638794, -0.07547126710414886, 0.11805399507284164, 0.2983613908290863, 1.467599868774414, 3.4585564136505127, 0.1663450002670288, 0.2667524218559265, -0.0703006461262703, -0.9082589745521545, 1.5426325798034668, 0.9949815273284912, -0.005567600484937429, -0.5249339938163757, -0.9303185939788818, 1.1898646354675293, 1.9481847286224365, 1.0835269689559937, 0.038300223648548126, -0.7857425212860107, -0.6229563355445862, 0.02363106980919838, 0.22859477996826172, 0.48613855242729187, 0.8421635627746582, 0.01619635336101055, 0.06268423050642014, 1.396409034729004, 1.2553199529647827, -0.317426860332489, 0.27375367283821106, -0.8699508905410767, -0.4634658992290497, 0.5160746574401855, 0.30061185359954834, 0.013922223821282387, 0.5568714737892151, -1.051538109779358, -0.24190711975097656, -0.2994958460330963, -1.0107898712158203, -0.7173835635185242, -0.5678845047950745, -0.4679502546787262, 1.4800187349319458, 0.07873299717903137, -0.5369513034820557, -0.05617988482117653, -0.7667717337608337, -0.12940561771392822, -1.0988308191299438, 0.20822441577911377, -0.08358234167098999, -0.13991156220436096, -0.20057523250579834, 1.6940165758132935, -1.0317955017089844, -2.0292019844055176, 0.2643516957759857, 0.33595332503318787, -0.397544264793396, 0.16597244143486023, 1.5832579135894775, 0.41652193665504456, 1.3841933012008667, 1.3127244710922241, 0.9351829886436462, -0.5606281161308289, -1.2396163940429688, 0.624884307384491, 0.9156595468521118, -1.3827272653579712, 0.8877840042114258, -0.041835617274045944, -0.5443872213363647, 0.7732481956481934, 1.2677136659622192, 0.4144360423088074, -1.8407434225082397, 0.8346273899078369, -0.7725358605384827, 0.7579559087753296, 0.6880236268043518, 0.8287155032157898, 0.23462894558906555, 0.9834046959877014, -1.2887237071990967, -1.179939866065979, -0.7744329571723938, -0.5414853692054749, 1.8918733596801758, -0.2084602415561676, 0.5600612163543701, -0.2803395092487335, -1.1759775876998901, -0.10248847305774689, 0.8051915168762207, 0.5061380863189697, -0.4028606712818146, 0.7744374871253967, -0.6398661732673645, -1.0047444105148315, -1.3202908039093018, -0.40143054723739624, -0.9578885436058044, -0.9116914868354797, 1.0505280494689941, 0.9270187616348267, 0.355426162481308, 1.8723796606063843, 0.6763215661048889, 0.3005392849445343, -2.6083035469055176, 0.846849799156189, 0.2404932975769043, 0.06650435924530029, 0.9017822742462158, 0.33398446440696716, 1.1185145378112793, -0.020507432520389557, 0.4431239068508148, -2.2576351165771484, 2.1813039779663086, -0.2994936406612396, 0.6210454106330872, -0.07021491229534149, -0.23897919058799744, 1.2077192068099976, 0.523770272731781, 0.46051207184791565, -1.1905237436294556, 0.7089194655418396, -0.5509164333343506, 1.0918176174163818, 1.0248746871948242, -0.8650351762771606, 0.03375740721821785, 1.5139950513839722, 0.5547401309013367, -0.43027225136756897, -0.8351725339889526, -0.8293600082397461, 0.9965039491653442, 1.65181303024292, -0.0038867522962391376, 0.0160134918987751, 0.9495595097541809, 0.7182558178901672, -1.2520825862884521, 0.15633103251457214, -0.8155173063278198, -0.6564004421234131, 1.7068015336990356, 1.9002559185028076, -0.10662282258272171, -0.14688441157341003, -0.822734534740448, -1.2074860334396362, 0.8450129628181458, 0.011403337121009827, 0.08190270513296127, 0.6363030076026917, -0.6642369031906128, 1.1134592294692993, 0.8781774044036865, 1.0043646097183228, 0.1280263364315033, 0.49299633502960205, 0.5046991109848022, -0.2776440680027008, -1.2164945602416992, -0.3253583312034607, -1.1315574645996094, -2.5613596439361572, 0.5375911593437195, -0.37423884868621826, -1.4332787990570068, -0.02046368271112442, -1.082746982574463, 0.9575290083885193, -0.6724187731742859, -1.08240807056427, -1.5905728340148926, 0.26413610577583313, -0.08816775679588318, 0.8582391738891602, -1.582969069480896, -0.08163951337337494, 1.3495886325836182, 0.8290588855743408, -0.6339861154556274, 0.9262421131134033, 0.22102248668670654, 0.9691027998924255, 0.7911315560340881, -0.5048801898956299, 0.49380314350128174, 0.010102273896336555, -1.5086359977722168, 0.5072709321975708, 1.0970354080200195, 0.131996750831604, 1.4467424154281616, -0.5076946020126343, 0.08459650725126266, 0.4347512722015381, -0.5865693688392639, -0.5150913000106812, -0.573355495929718, 0.657494843006134, 0.07416855543851852, -0.9595474004745483, 0.07311493903398514, -0.11692304164171219, -0.2768218219280243, 0.24359732866287231, -1.434792160987854, -0.22727030515670776, -0.37756434082984924, -0.5399990677833557, -1.2704411745071411, -0.010794481262564659, 1.356436848640442, -0.6878799200057983, -0.17145532369613647, 0.446804404258728, 0.32903680205345154, 0.5541377067565918, 0.5948770046234131, -0.7339594960212708, -0.23112741112709045, -0.45695674419403076, -0.2828841507434845, 0.23939257860183716, 1.1933614015579224, -0.19007468223571777, -1.0593196153640747, 0.7444223165512085, -0.3870983123779297, 0.08932751417160034, 2.032771348953247, 0.0956358015537262, -0.7535078525543213, 0.3430272340774536, -0.7555145621299744, 1.7870538234710693, 1.8060497045516968, 1.3281341791152954, -0.017701856791973114, -0.8785329461097717, 0.5398611426353455, -0.3192722201347351, -0.35535234212875366, 0.9409186840057373, 0.4838344156742096, -0.12946613132953644, -1.3584842681884766, 0.6417561769485474, 1.3427428007125854, -0.8518187999725342, -0.7212631702423096, 0.09746798127889633, -0.8387591242790222, 1.0191662311553955, 0.618245542049408, 0.41342175006866455, 0.3045192062854767, 1.5351115465164185, 0.5975671410560608, -0.3753414750099182, 0.5019275546073914, 0.5493257641792297, -0.15549761056900024, -2.062688112258911, -1.1847952604293823, 0.41357335448265076, -0.5003843307495117, -1.64595365524292, 1.3997002840042114, -1.0860971212387085, -0.9458199739456177, 0.5117989182472229, 0.17590606212615967, 1.4821122884750366, 0.2751806676387787, 1.612209439277649, 2.036025285720825, 0.8097020387649536, 0.3100665211677551, 1.3055660724639893, -0.03142812103033066, -0.4325878620147705, 1.943116307258606, -0.4192873239517212, 0.5583096146583557, 1.0482324361801147, -0.3368835151195526, -1.1316108703613281, -0.8084549903869629, -1.116923451423645, -0.6661195158958435, 1.2494261264801025, 0.11540550738573074, -1.1323846578598022, 0.14697912335395813, 1.5867241621017456, 0.13619881868362427, -0.263305127620697, 0.6278670430183411, 0.299504816532135, -0.7873255014419556, -0.05268467217683792, -1.0075513124465942, 0.5231349468231201, -0.17258429527282715, -0.28568002581596375, 0.26398134231567383, 0.46666961908340454, 1.2110141515731812, -0.12631523609161377, 0.14994925260543823, 1.1785962581634521, -1.3717501163482666, 1.5457186698913574, -0.5985517501831055, 0.26307639479637146, -2.4980084896087646, 1.3995968103408813, -0.7832804322242737, 1.9012503623962402, -2.6064090728759766, 0.3042615056037903, -0.5136929750442505, -0.4245103895664215, 0.36782681941986084, -0.5119683742523193, 0.15634620189666748, -0.1276928186416626, -1.0298058986663818, 0.10658048093318939, -0.7924613356590271, 0.6749248504638672, 1.2246567010879517, 1.5155917406082153, -1.2043925523757935, -0.3227274417877197, -1.706935167312622, -0.23377862572669983, -0.695587694644928, 0.47504305839538574, -2.099492073059082, -0.07623902708292007, -1.8760960102081299, -2.500480890274048, -1.2883191108703613, -0.8511037230491638, 1.1175189018249512, 0.18891498446464539, -0.9279072284698486, 1.1475905179977417, -0.42932945489883423, -1.889892578125, 1.1673513650894165, -2.1617677211761475 ]
https://github.com/huggingface/datasets/issues/3717
wrong condition in `Features ClassLabel encode_example`
Hi @Tudyx, Please note that in Python, the boolean NOT operator (`not`) has lower precedence than comparison operators (`<=`, `<`), thus the expression you mention is equivalent to: ```python not (-1 <= example_data < self.num_classes) ``` Also note that as expected, the exception is raised if: - `example_data < -1` - or `example_data >= self.num_classes` The raise of the exception is expected when `example_data` equals 4 and `self.num_classes` equals 4 too.
## Describe the bug The `encode_example` function in *features.py* seems to have a wrong condition. ```python if not -1 <= example_data < self.num_classes: raise ValueError(f"Class label {example_data:d} greater than configured num_classes {self.num_classes}") ``` ## Expected results The `not - 1` condition change the result of the condition. For instance, if `example_data` equals 4 and ` self.num_classes` equals 4 too, `example_data < self.num_classes` will give `False` as expected . But if i add the `not - 1` condition, `not -1 <= example_data < self.num_classes` will give `True` and raise an exception. ## Environment info - `datasets` version: 1.18.3 - Python version: 3.8.10 - PyArrow version: 7.00
954
71
wrong condition in `Features ClassLabel encode_example` ## Describe the bug The `encode_example` function in *features.py* seems to have a wrong condition. ```python if not -1 <= example_data < self.num_classes: raise ValueError(f"Class label {example_data:d} greater than configured num_classes {self.num_classes}") ``` ## Expected results The `not - 1` condition change the result of the condition. For instance, if `example_data` equals 4 and ` self.num_classes` equals 4 too, `example_data < self.num_classes` will give `False` as expected . But if i add the `not - 1` condition, `not -1 <= example_data < self.num_classes` will give `True` and raise an exception. ## Environment info - `datasets` version: 1.18.3 - Python version: 3.8.10 - PyArrow version: 7.00 Hi @Tudyx, Please note that in Python, the boolean NOT operator (`not`) has lower precedence than comparison operators (`<=`, `<`), thus the expression you mention is equivalent to: ```python not (-1 <= example_data < self.num_classes) ``` Also note that as expected, the exception is raised if: - `example_data < -1` - or `example_data >= self.num_classes` The raise of the exception is expected when `example_data` equals 4 and `self.num_classes` equals 4 too.
[ -1.1305794715881348, -0.8720899820327759, -0.6484058499336243, 1.5662486553192139, -0.11327719688415527, -1.3016365766525269, 0.27315571904182434, -1.1172295808792114, 1.76250422000885, -0.7605685591697693, 0.46701037883758545, -1.7568608522415161, 0.03223332017660141, -0.6502406001091003, -0.8142539262771606, -0.8623476028442383, -0.4299299716949463, -0.67752605676651, 0.9845210909843445, 2.3013808727264404, 1.2728153467178345, -1.4032361507415771, 2.5383567810058594, 0.6101993322372437, -0.18163372576236725, -0.9257424473762512, 0.47577670216560364, -0.18492724001407623, -1.1927530765533447, -0.41917386651039124, -0.8975982069969177, -0.1775757223367691, -0.6408059000968933, -0.6258023381233215, -0.014447499997913837, 0.5235206484794617, -0.3101288378238678, -0.5894601345062256, -0.4744143784046173, -0.9822613596916199, 0.4874173700809479, -0.36872708797454834, 0.8650645017623901, -0.4888000190258026, 1.789507269859314, -0.6820801496505737, 0.5348906517028809, 0.83575040102005, 1.3127694129943848, 0.14712679386138916, -0.14158028364181519, 0.36729979515075684, 0.3210486173629761, -0.06380048394203186, 0.4904443919658661, 1.1198291778564453, 0.5856084227561951, 0.5861409306526184, 0.7649186253547668, -2.2457668781280518, 1.3019646406173706, -1.0814214944839478, 0.2637335956096649, 1.3003729581832886, -0.9424903392791748, 0.22565536201000214, -1.7668726444244385, 0.01596374623477459, 0.5602800250053406, -2.1335222721099854, 0.25967511534690857, -1.2938016653060913, -0.41818922758102417, 1.157709002494812, 0.46962055563926697, -1.229871392250061, -0.07823926210403442, -0.23338113725185394, 1.0277109146118164, 0.42449650168418884, 1.0296070575714111, -1.7139114141464233, 0.007638668641448021, -0.31936123967170715, 0.18737660348415375, -1.400296688079834, -1.4974428415298462, 0.5090345144271851, 0.7278924584388733, 0.4767895042896271, -0.17769542336463928, 1.026869535446167, -0.9446288347244263, 0.7310224175453186, -1.0944722890853882, -1.8011953830718994, -1.3388569355010986, -2.010084629058838, -2.328691244125366, 0.6226843595504761, -0.4532677233219147, -0.4090057909488678, 2.1045291423797607, -0.9467495679855347, -1.7851307392120361, 1.0381767749786377, 0.24772559106349945, -0.015604384243488312, 2.2682135105133057, 0.25072112679481506, -0.6857820749282837, 0.396487832069397, -0.7620391249656677, 0.5713534355163574, -0.3857935070991516, 1.3261018991470337, 0.41082024574279785, -1.1275007724761963, 1.63401460647583, -0.3209661841392517, 0.5791753530502319, -0.7652102708816528, -0.4214104115962982, -0.6261491179466248, 0.30752044916152954, 1.8759808540344238, -0.32206621766090393, 1.4488747119903564, -0.4357593059539795, -1.5128732919692993, -1.5436917543411255, 0.8930355906486511, 0.4577942490577698, -0.7157527208328247, 0.17498792707920074, -0.3149447739124298, 0.15577633678913116, -0.1276700347661972, 1.2092697620391846, 1.3503483533859253, 0.9390674829483032, -0.3415084779262543, -0.6913730502128601, 0.20202848315238953, 0.1299860179424286, -0.7062650918960571, -1.729145884513855, -0.3106033504009247, 0.08704613149166107, 0.5680754780769348, -1.036763072013855, 1.9904625415802002, 0.8315943479537964, 1.8941948413848877, 0.9291803240776062, -0.34378060698509216, 1.5400315523147583, 0.05221978947520256, 1.9839774370193481, -0.2704935669898987, 0.7233638167381287, -0.39585447311401367, -1.1486343145370483, 0.8722162842750549, -0.27222102880477905, -2.058300733566284, -0.7572096586227417, -0.8161642551422119, -0.04055926948785782, -0.7656044960021973, 1.036696434020996, -0.14440304040908813, -1.3141719102859497, 0.175869420170784, -0.7361047267913818, 0.12854833900928497, -1.2261906862258911, 0.37765443325042725, 0.7327849268913269, -0.7017863392829895, 0.21328479051589966, -0.30758655071258545, -1.2124223709106445, -0.5921961069107056, 0.2992057204246521, 1.9125404357910156, -0.7814010381698608, 0.8958399295806885, 1.1083197593688965, -0.6684006452560425, -0.1178286075592041, 0.3097836971282959, -0.2805670201778412, 0.808890700340271, -1.015921950340271, -0.485052227973938, 1.1744310855865479, -0.19232375919818878, -0.7135099172592163, 1.577086091041565, 0.683660626411438, -0.984406054019928, -0.07428613305091858, -0.3216782808303833, -0.7934646010398865, 0.06622575223445892, -1.6394022703170776, 0.046440768986940384, 0.503561794757843, -1.5315978527069092, -0.4793185293674469, -0.09451952576637268, 1.4292882680892944, -0.13800765573978424, 1.4298714399337769, -0.2977241575717926, -0.18221983313560486, -0.40140753984451294, -0.2726878821849823, 0.10059027373790741, -0.24174976348876953, -0.7582094669342041, 0.18081042170524597, -0.6832787394523621, 0.3895001709461212, 1.3486623764038086, 0.19188441336154938, -0.025710653513669968, 0.4577251672744751, 1.151574730873108, 0.3233514428138733, -0.0006023813039064407, -0.902461051940918, -1.428901195526123, 1.8992562294006348, -1.423171877861023, 2.027184247970581, 0.7382687330245972, -0.05859357491135597, -1.7410776615142822, -1.9199438095092773, 1.4332679510116577, 1.1249799728393555, 2.3327531814575195, 0.7052397131919861, 0.45721104741096497, -0.9684518575668335, -0.6059753894805908, 0.434825599193573, -0.948935329914093, -0.7736635804176331, 0.18683229386806488, 2.3963558673858643, 1.6682332754135132, -0.49281197786331177, -0.2376578003168106, -1.0592608451843262, 1.3446484804153442, -0.09248395264148712, 0.27046871185302734, 2.08493709564209, -0.22093336284160614, -1.114569067955017, 1.2478621006011963, -2.362855911254883, 0.1574319750070572, 2.0540804862976074, 0.13476727902889252, 0.1791399121284485, -1.4035048484802246, -0.5751174092292786, -0.19079412519931793, -0.41000959277153015, -1.2135846614837646, 0.4351826608181, -0.10568264126777649, -0.7324665784835815, -1.3243553638458252, 0.2594427168369293, -1.0300133228302002, -1.678650975227356, 0.17221508920192719, 1.8468176126480103, 1.9613173007965088, -0.7571800351142883, 1.6729416847229004, -0.3291538953781128, 0.26166820526123047, 1.2855252027511597, 1.2402628660202026, 3.122602939605713, 1.964253306388855, -1.4084216356277466, 0.730694591999054, -0.15724018216133118, -0.5106857419013977, 1.2465929985046387, -1.1970245838165283, 1.194174885749817, -0.2578774392604828, -1.2113327980041504, -1.3444585800170898, 0.8586956858634949, 0.45468366146087646, -0.014242615550756454, -0.5379229784011841, 1.3126155138015747, 0.17111092805862427, 1.4450830221176147, 0.5027902126312256, -0.2408560961484909, 0.7179316878318787, -0.381585031747818, -0.48591482639312744, 1.617776870727539, 0.27450627088546753, -1.2552769184112549, -2.270329236984253, -0.17106619477272034, -0.8799348473548889, 0.14623744785785675, -0.599521815776825, -0.9042817950248718, 1.6649951934814453, 0.4594888389110565, -1.3520662784576416, -0.2947101593017578, -0.35708528757095337, -0.5887334942817688, 2.685579776763916, -1.3672302961349487, -0.263301819562912, -1.020405650138855, -0.5617926716804504, 1.7345980405807495, -1.2737102508544922, -0.23641163110733032, -1.0048274993896484, -0.4085843861103058, -1.2805814743041992, -0.5939056873321533, -0.03334823250770569, -0.8810552358627319, 0.9546442031860352, 0.1664949357509613, -1.2791478633880615, -0.416246235370636, -0.7952988743782043, 0.7678470015525818, -0.23268164694309235, 0.18654924631118774, 1.8347983360290527, 0.42702800035476685, -0.3481088876724243, 0.7850418090820312, 0.9853492379188538, 0.5690935850143433, -0.4747900664806366, 0.4505399167537689, -0.5321916341781616, 0.27855607867240906, -1.3195111751556396, 0.23490729928016663, -2.870124578475952, 0.5386878848075867, -0.07186585664749146, 0.04839225858449936, -0.16528671979904175, -1.3835161924362183, 1.022127628326416, 2.599195957183838, -1.2185417413711548, 0.560148298740387, 0.26300713419914246, 1.2674506902694702, -1.626583456993103, 0.2415882796049118, -0.4440336227416992, 2.1236135959625244, 0.17748576402664185, 1.147749900817871, -0.3944399952888489, -2.3023250102996826, 0.6084998846054077, -1.2390186786651611, -1.1722136735916138, 0.8503361344337463, -0.7718164324760437, 0.020453471690416336, -1.2502057552337646, -0.24896638095378876, -0.8178429007530212, -1.1449074745178223, 0.7548438906669617, 0.10668294131755829, 0.5688322186470032, -0.686663031578064, 0.38562023639678955, -2.0971639156341553, -1.356987476348877, -0.3555877208709717, -0.9054275155067444, 0.2952439486980438, -0.2903279662132263, 0.7632460594177246, -0.21348440647125244, 0.07785439491271973, 0.36724868416786194, 1.4483391046524048, 3.373793601989746, 0.267355352640152, 0.27523475885391235, -0.32910606265068054, -0.8802937269210815, 1.4757570028305054, 0.881662905216217, -0.0867486298084259, -0.45326218008995056, -1.054645299911499, 1.129507064819336, 1.8838437795639038, 0.9118062257766724, 0.059814248234033585, -0.8752405643463135, -0.8817546963691711, -0.08060914278030396, 0.07606060802936554, 0.5613988637924194, 0.8150962591171265, 0.22861647605895996, 0.0679476261138916, 1.3257728815078735, 1.1475595235824585, -0.4435369372367859, 0.4803571105003357, -0.9204314351081848, -0.48687708377838135, 0.5597928166389465, 0.328122615814209, 0.0167864803224802, 0.21336166560649872, -0.9173237681388855, -0.18690484762191772, -0.32423102855682373, -0.8757838010787964, -0.7851967215538025, -0.5139659643173218, -0.3597797751426697, 1.6729867458343506, -0.005696867126971483, -0.5433372259140015, -0.07679224014282227, -0.7321204543113708, -0.042490534484386444, -1.0798473358154297, 0.2174794226884842, -0.11132492125034332, -0.09759728610515594, -0.11444211006164551, 1.6681162118911743, -0.9114180207252502, -2.0161688327789307, 0.35856154561042786, 0.20118463039398193, -0.4403150677680969, 0.264021098613739, 1.6568211317062378, 0.5713402628898621, 1.4161638021469116, 1.488944172859192, 1.0516468286514282, -0.7796639800071716, -1.3167338371276855, 0.6847043633460999, 0.9219989776611328, -1.5549153089523315, 0.656826913356781, 0.16053807735443115, -0.386846125125885, 0.5457878112792969, 1.2363533973693848, 0.5329902768135071, -2.1018471717834473, 0.6698941588401794, -1.0069379806518555, 0.890866219997406, 0.7837856411933899, 0.6511849164962769, 0.19759060442447662, 0.7557605504989624, -1.030319333076477, -1.1518625020980835, -0.6845274567604065, -0.75332111120224, 1.87027907371521, -0.424990177154541, 0.550491988658905, -0.1259228140115738, -1.4238612651824951, -0.15907588601112366, 0.8100704550743103, 0.4077324867248535, -0.5292539000511169, 0.710204541683197, -0.554372251033783, -1.00689697265625, -1.265934944152832, -0.5243112444877625, -1.1768654584884644, -0.9804605841636658, 1.0097119808197021, 0.8759689927101135, 0.27645689249038696, 1.7405750751495361, 0.7130030393600464, 0.22147496044635773, -2.5741240978240967, 0.850642204284668, 0.36477169394493103, -0.08953249454498291, 0.7736162543296814, 0.4170897305011749, 0.9869503378868103, -0.10736903548240662, 0.6028475761413574, -2.5922982692718506, 2.4177465438842773, -0.24948500096797943, 0.5481000542640686, 0.0030218875035643578, -0.32997414469718933, 1.0570651292800903, 0.5345324873924255, 0.4665747582912445, -1.0560356378555298, 0.6203739047050476, -0.7513116002082825, 1.2787785530090332, 0.6651963591575623, -0.8718395829200745, -0.13954798877239227, 1.2812761068344116, 0.4295809864997864, -0.6355599164962769, -0.8899744749069214, -1.1684120893478394, 0.9668388962745667, 1.6729587316513062, -0.19401191174983978, -0.13208436965942383, 0.8844523429870605, 0.7720035910606384, -1.2892812490463257, 0.12781324982643127, -0.8154506683349609, -0.8008012771606445, 1.6824746131896973, 2.00260853767395, -0.18696938455104828, -0.16272218525409698, -0.8324264883995056, -1.2042583227157593, 0.8244537115097046, 0.09616494178771973, -0.06550328433513641, 0.5541048049926758, -0.5442479848861694, 1.1262364387512207, 0.8849167823791504, 0.9087882041931152, 0.30621814727783203, 0.2669258713722229, 0.30623048543930054, -0.3766861855983734, -1.179612636566162, -0.1736396849155426, -1.118722677230835, -2.5450682640075684, 0.48449158668518066, -0.15994824469089508, -1.3027427196502686, -0.022930406033992767, -0.9839937090873718, 0.7732731103897095, -0.5450024008750916, -1.2149040699005127, -1.4377803802490234, 0.1751861274242401, -0.02352193370461464, 0.8792015314102173, -1.542091727256775, 0.027455080300569534, 1.2928115129470825, 0.8669527769088745, -0.8934144973754883, 0.8586645722389221, 0.3305255174636841, 1.1209216117858887, 0.9325689077377319, -0.37772977352142334, 0.5613560080528259, -0.012550787068903446, -1.3643049001693726, 0.46326494216918945, 1.169072151184082, 0.11551719903945923, 1.6577818393707275, -0.5178780555725098, 0.04445648938417435, 0.2860616445541382, -0.4870336651802063, -0.5389343500137329, -0.8065970540046692, 0.6939967274665833, 0.01992751471698284, -0.9629750847816467, 0.15844419598579407, 0.08221948146820068, -0.1370759904384613, 0.19082853198051453, -1.563332438468933, -0.013077011331915855, -0.3077637851238251, -0.622783899307251, -1.208162546157837, -0.09094586968421936, 1.3667020797729492, -0.5322506427764893, -0.21677009761333466, 0.5249419212341309, 0.24168206751346588, 0.4575432538986206, 0.5943272709846497, -0.730901300907135, -0.47283440828323364, -0.24383661150932312, -0.3215310871601105, 0.5233396887779236, 1.3384311199188232, -0.016084233298897743, -0.9680414795875549, 0.7287645936012268, -0.42666810750961304, 0.02934887260198593, 1.8640656471252441, 0.05525382235646248, -0.76036137342453, 0.23841774463653564, -0.8182917833328247, 1.9825607538223267, 1.8518034219741821, 1.3092279434204102, -0.0809222161769867, -1.1186177730560303, 0.652881920337677, -0.5434402823448181, -0.40462160110473633, 0.9706057906150818, 0.4187569320201874, -0.22239474952220917, -1.3433746099472046, 0.6740249395370483, 1.3336271047592163, -0.7207071185112, -1.00843346118927, 0.13712766766548157, -0.6252471804618835, 1.1044976711273193, 0.7898993492126465, 0.3734397888183594, 0.3032298982143402, 1.55919349193573, 0.8651657104492188, -0.29560551047325134, 0.695080578327179, 0.3859580457210541, -0.13368374109268188, -2.017137289047241, -1.3828823566436768, 0.4052467942237854, -0.4613018035888672, -1.6684013605117798, 1.4998739957809448, -1.2083351612091064, -0.9892114400863647, 0.5043097138404846, 0.013571169227361679, 1.5043230056762695, 0.24958311021327972, 1.5250078439712524, 1.8774073123931885, 0.8833120465278625, 0.4135465621948242, 1.2839736938476562, -0.17343588173389435, -0.4918564558029175, 1.813202977180481, -0.529999852180481, 0.39029330015182495, 1.1033177375793457, -0.23789094388484955, -1.1488038301467896, -0.8955449461936951, -1.2715427875518799, -0.862835168838501, 1.185413122177124, 0.047814954072237015, -1.2089945077896118, 0.3896046578884125, 1.578389286994934, 0.03708948940038681, -0.3182516396045685, 0.6018579006195068, 0.29350119829177856, -0.8637778759002686, 0.027111124247312546, -0.8042184114456177, 0.4860222041606903, -0.2161199301481247, -0.30161917209625244, 0.4777020514011383, 0.4495749771595001, 1.2903023958206177, -0.0324360653758049, 0.16496993601322174, 1.139896273612976, -1.4026107788085938, 1.51345956325531, -0.6809422969818115, 0.3191637694835663, -2.3334410190582275, 1.3619145154953003, -0.8059710264205933, 1.9580413103103638, -2.720512628555298, 0.38389962911605835, -0.38142630457878113, -0.49347013235092163, 0.3310273289680481, -0.2594171166419983, 0.08671537041664124, -0.18512623012065887, -1.2880233526229858, -0.08778241276741028, -0.7600620985031128, 0.6251708269119263, 1.012155532836914, 1.3784348964691162, -1.1223691701889038, -0.2741982638835907, -1.7334744930267334, -0.06136668846011162, -0.6012535691261292, 0.39091697335243225, -1.9630858898162842, -0.1561025083065033, -2.1534104347229004, -2.3020102977752686, -1.2575420141220093, -0.7195283770561218, 1.040970802307129, 0.11316753923892975, -0.6704035997390747, 1.062743902206421, -0.294752836227417, -1.843963861465454, 1.112397313117981, -2.101470470428467 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
Hi ! Note that it does `block_size *= 2` until `block_size > len(batch)`, so it doesn't loop indefinitely. What do you mean by "get stuck indefinitely" then ? Is this the actual call to `paj.read_json` that hangs ? > increasing the `chunksize` argument decreases the chance of getting stuck Could you share the values of chunksize that you're using to observe this ? And maybe the order of magnitude of number of bytes per line of JSON ?
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
78
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) Hi ! Note that it does `block_size *= 2` until `block_size > len(batch)`, so it doesn't loop indefinitely. What do you mean by "get stuck indefinitely" then ? Is this the actual call to `paj.read_json` that hangs ? > increasing the `chunksize` argument decreases the chance of getting stuck Could you share the values of chunksize that you're using to observe this ? And maybe the order of magnitude of number of bytes per line of JSON ?
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
To clarify, I don't think it loops indefinitely but the `paj.read_json` gets stuck after the first try. That's why I think it could be an issue with a lock somewhere. Using `load_dataset(..., chunksize=40<<20)` worked without errors.
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
36
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) To clarify, I don't think it loops indefinitely but the `paj.read_json` gets stuck after the first try. That's why I think it could be an issue with a lock somewhere. Using `load_dataset(..., chunksize=40<<20)` worked without errors.
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
@lhoestq I encountered another related issue. I use load_dataset() for my json data and set_transform() for preprocessing. But it hangs at the end of the epoch if `dataloader_num_workers>=1`. It appears to be working fine with num_worker=0, but it's slow. ``` train_dataset = datasets.load_dataset("json", data_files=corpus_jsonl_path, keep_in_memory=False, cache_dir=model_args.cache_dir, streaming=False) train_dataset.set_transform(psg_parse_fn) ```
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
49
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) @lhoestq I encountered another related issue. I use load_dataset() for my json data and set_transform() for preprocessing. But it hangs at the end of the epoch if `dataloader_num_workers>=1`. It appears to be working fine with num_worker=0, but it's slow. ``` train_dataset = datasets.load_dataset("json", data_files=corpus_jsonl_path, keep_in_memory=False, cache_dir=model_args.cache_dir, streaming=False) train_dataset.set_transform(psg_parse_fn) ```
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I couldn't I think your problem is unrelated to this issue @memray Indeed this issue discusses a bug when doing `load_dataset`, while your case has to do with the dataloader in a multiprocessing setup. Can you open a new issue and provide more details (share your env and what psg_parse_fn does) ?
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
52
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) I couldn't I think your problem is unrelated to this issue @memray Indeed this issue discusses a bug when doing `load_dataset`, while your case has to do with the dataloader in a multiprocessing setup. Can you open a new issue and provide more details (share your env and what psg_parse_fn does) ?
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I also encountered a similar issue when loading a 190GB dataset of jsonl files (255 files with less than 1Gb) where it got stuck for over 20h at tables generation (fig below), increasing the `chunksize` with `load_dataset(..., chunksize=40<<20)` fixed the issue <img width="560" alt="image" src="https://user-images.githubusercontent.com/44069155/195605603-548a106e-7ad3-4269-8cdd-2ad3e975bf16.png">
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
45
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) I also encountered a similar issue when loading a 190GB dataset of jsonl files (255 files with less than 1Gb) where it got stuck for over 20h at tables generation (fig below), increasing the `chunksize` with `load_dataset(..., chunksize=40<<20)` fixed the issue <img width="560" alt="image" src="https://user-images.githubusercontent.com/44069155/195605603-548a106e-7ad3-4269-8cdd-2ad3e975bf16.png">
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
> @lhoestq I encountered another related issue. I use load_dataset() for my json data and set_transform() for preprocessing. But it hangs at the end of the epoch if `dataloader_num_workers>=1`. It appears to be working fine with num_worker=0, but it's slow. > > ``` > train_dataset = datasets.load_dataset("json", > data_files=corpus_jsonl_path, > keep_in_memory=False, > cache_dir=model_args.cache_dir, > streaming=False) > train_dataset.set_transform(psg_parse_fn) > ``` In case people also get this problem, I found a way to fix it by adding `persistent_workers=True` when initializing DataLoader, like: `train_loader = DataLoader( train_dataset, batch_size=self._train_batch_size, sampler=train_sampler, collate_fn=data_collator, num_workers=self.args.dataloader_num_workers, persistent_workers=True )` The error was `CUDA error: initialization error Exception raised from insert_events at ../c10/cuda/CUDACachingAllocator.cpp:1266` after the 1st epoch, I guess it's because the data_loader worker is killed after each epoch and the data supply is cut off. This error only occurs when num_workers>1.
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
132
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) > @lhoestq I encountered another related issue. I use load_dataset() for my json data and set_transform() for preprocessing. But it hangs at the end of the epoch if `dataloader_num_workers>=1`. It appears to be working fine with num_worker=0, but it's slow. > > ``` > train_dataset = datasets.load_dataset("json", > data_files=corpus_jsonl_path, > keep_in_memory=False, > cache_dir=model_args.cache_dir, > streaming=False) > train_dataset.set_transform(psg_parse_fn) > ``` In case people also get this problem, I found a way to fix it by adding `persistent_workers=True` when initializing DataLoader, like: `train_loader = DataLoader( train_dataset, batch_size=self._train_batch_size, sampler=train_sampler, collate_fn=data_collator, num_workers=self.args.dataloader_num_workers, persistent_workers=True )` The error was `CUDA error: initialization error Exception raised from insert_events at ../c10/cuda/CUDACachingAllocator.cpp:1266` after the 1st epoch, I guess it's because the data_loader worker is killed after each epoch and the data supply is cut off. This error only occurs when num_workers>1.
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I can confirm the issue using datasets (2.12.0) with the following code and Accelerate (0.20.3) env: ```` trainDataloader = DataLoader(trainSplit, batch_size=args.train_batch_size, shuffle=True) evalDataloader = DataLoader(validSplit, batch_size=args.valid_batch_size) // Here is where it gets stuck. ```` ```` - `Accelerate` version: 0.20.3 - Platform: Linux-5.4.0-150-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - Numpy version: 1.24.3 - PyTorch version (GPU?): 2.0.1+cu117 (True) - PyTorch XPU available: False - System RAM: 503.28 GB - GPU type: Tesla V100-SXM2-32GB - `Accelerate` default config: - compute_environment: LOCAL_MACHINE - distributed_type: MULTI_GPU - mixed_precision: fp16 - use_cpu: False - num_processes: 2 - machine_rank: 0 - num_machines: 1 - gpu_ids: 0,1 - rdzv_backend: static - same_network: True - main_training_function: main - downcast_bf16: no - tpu_use_cluster: False - tpu_use_sudo: False - tpu_env: [] ```` Notable that with Accelerate configured for one GPU only, **it doesn't get stuck.** The suggestion made by @memray worked in my case. This is how it was applied: ```` trainDataloader = DataLoader(trainSplit, batch_size=args.train_batch_size, shuffle=True, num_workers=2, persistent_workers=True) evalDataloader = DataLoader(validSplit, batch_size=args.valid_batch_size, num_workers=2, persistent_workers=True) ````
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
164
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) I can confirm the issue using datasets (2.12.0) with the following code and Accelerate (0.20.3) env: ```` trainDataloader = DataLoader(trainSplit, batch_size=args.train_batch_size, shuffle=True) evalDataloader = DataLoader(validSplit, batch_size=args.valid_batch_size) // Here is where it gets stuck. ```` ```` - `Accelerate` version: 0.20.3 - Platform: Linux-5.4.0-150-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - Numpy version: 1.24.3 - PyTorch version (GPU?): 2.0.1+cu117 (True) - PyTorch XPU available: False - System RAM: 503.28 GB - GPU type: Tesla V100-SXM2-32GB - `Accelerate` default config: - compute_environment: LOCAL_MACHINE - distributed_type: MULTI_GPU - mixed_precision: fp16 - use_cpu: False - num_processes: 2 - machine_rank: 0 - num_machines: 1 - gpu_ids: 0,1 - rdzv_backend: static - same_network: True - main_training_function: main - downcast_bf16: no - tpu_use_cluster: False - tpu_use_sudo: False - tpu_env: [] ```` Notable that with Accelerate configured for one GPU only, **it doesn't get stuck.** The suggestion made by @memray worked in my case. This is how it was applied: ```` trainDataloader = DataLoader(trainSplit, batch_size=args.train_batch_size, shuffle=True, num_workers=2, persistent_workers=True) evalDataloader = DataLoader(validSplit, batch_size=args.valid_batch_size, num_workers=2, persistent_workers=True) ````
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3708
Loading JSON gets stuck with many workers/threads
I think your issue is related to `accelerate`, feel free to open an issue there: https://github.com/huggingface/accelerate/issues `Dataset` objects generally work fine with the torch DataLoader, idk what `accelerate` does that could make it get stuck.
## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :)
957
35
Loading JSON gets stuck with many workers/threads ## Describe the bug Loading a JSON dataset with `load_dataset` can get stuck when running on a machine with many CPUs. This is especially an issue when loading a large dataset on a large machine. ## Steps to reproduce the bug I originally created the following script to reproduce the issue: ```python from datasets import load_dataset from multiprocessing import Process from tqdm import tqdm import datasets from transformers import set_seed def run_tasks_in_parallel(tasks, ds_list): for _ in tqdm(range(1000)): print('new batch') running_tasks = [Process(target=task, args=(ds, i)) for i, (task, ds) in enumerate(zip(tasks, ds_list))] for running_task in running_tasks: running_task.start() for running_task in running_tasks: running_task.join() def get_dataset(): dataset_name = 'transformersbook/codeparrot' ds = load_dataset(dataset_name+'-train', split="train", streaming=True) ds = ds.shuffle(buffer_size=1000, seed=1) return iter(ds) def get_next_element(ds, process_id, N=10000): for _ in range(N): _ = next(ds)['content'] print(f'process {process_id} done') return set_seed(1) datasets.utils.logging.set_verbosity_debug() n_processes = 8 tasks = [get_next_element for _ in range(n_processes)] args = [get_dataset() for _ in range(n_processes)] run_tasks_in_parallel(tasks, args) ``` Today I noticed that it can happen when running it on a single process on a machine with many cores without streaming. So just `load_dataset("transformersbook/codeparrot-train")` alone might cause the issue after waiting long enough or trying many times. It's a slightly random process which makes it especially hard to track down. When I encountered it today it had already processed 17GB of data (the size of the cache folder when it got stuck) before getting stuck. Here's my current understanding of the error. As far as I can tell it happens in the following block: https://github.com/huggingface/datasets/blob/be701e9e89ab38022612c7263edc015bc7feaff9/src/datasets/packaged_modules/json/json.py#L119-L139 When the try on line 121 fails and the `block_size` is increased it can happen that it can't read the JSON again and gets stuck indefinitely. A hint that points in that direction is that increasing the `chunksize` argument decreases the chance of getting stuck and vice versa. Maybe it is an issue with a lock on the file that is not properly released. ## Expected results Read a JSON before the end of the universe. ## Actual results Read a JSON not before the end of the universe. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.3 - Platform: Linux-4.19.0-18-cloud-amd64-x86_64-with-glibc2.28 - Python version: 3.9.10 - PyArrow version: 7.0.0 @lhoestq we dicsussed this a while ago. @albertvillanova we discussed this today :) I think your issue is related to `accelerate`, feel free to open an issue there: https://github.com/huggingface/accelerate/issues `Dataset` objects generally work fine with the torch DataLoader, idk what `accelerate` does that could make it get stuck.
[ -1.3588454723358154, -0.9822155833244324, -0.6611469984054565, 1.5454912185668945, -0.12725158035755157, -1.1891372203826904, 0.11826659739017487, -1.0655556917190552, 1.6375678777694702, -0.8186373710632324, 0.36273080110549927, -1.6067540645599365, -0.012276757508516312, -0.6235161423683167, -0.7786104679107666, -0.841914713382721, -0.4737732410430908, -0.8001624345779419, 1.109973669052124, 2.401259422302246, 1.2633498907089233, -1.3780815601348877, 2.811873435974121, 0.6823550462722778, -0.24437712132930756, -1.1148295402526855, 0.4846886694431305, -0.16022656857967377, -1.2131900787353516, -0.4721416234970093, -0.9708698987960815, -0.06229672580957413, -0.6220159530639648, -0.41309207677841187, -0.027349963784217834, 0.5093163251876831, -0.24715326726436615, -0.4523621201515198, -0.5337275266647339, -0.7981792688369751, 0.5015405416488647, -0.3706684708595276, 0.887306272983551, -0.23266465961933136, 1.7529120445251465, -0.569397509098053, 0.4843693673610687, 0.646475613117218, 1.4434406757354736, 0.15970148146152496, -0.07314018905162811, 0.46154898405075073, 0.27009493112564087, 0.0407019704580307, 0.6574571132659912, 1.2046083211898804, 0.6902608275413513, 0.42531904578208923, 0.6811596751213074, -2.2517998218536377, 1.24137544631958, -1.0689680576324463, 0.4137605130672455, 1.289302945137024, -0.900910496711731, 0.3378954529762268, -1.6713958978652954, -0.12184086441993713, 0.6823834776878357, -2.210289716720581, 0.30142152309417725, -1.3069956302642822, -0.4479467570781708, 1.0459147691726685, 0.42433658242225647, -1.2841670513153076, 0.13052453100681305, -0.47878536581993103, 1.116532564163208, 0.35923391580581665, 1.017893671989441, -1.6776947975158691, 0.010268223471939564, -0.2699641287326813, 0.11633312702178955, -1.1663938760757446, -1.5074206590652466, 0.6096561551094055, 0.5591575503349304, 0.6611183285713196, -0.1766592413187027, 1.120088815689087, -1.1419541835784912, 0.8029882907867432, -1.0413769483566284, -1.688041090965271, -1.5107372999191284, -2.375278949737549, -2.22263240814209, 0.703442394733429, -0.4180024564266205, -0.5820474028587341, 2.0896730422973633, -1.0062562227249146, -1.7167991399765015, 1.183608055114746, 0.24355149269104004, 0.032808832824230194, 2.402642011642456, 0.16631795465946198, -0.8714784383773804, 0.5366520285606384, -0.7915694713592529, 0.8516047596931458, -0.3839801847934723, 1.350868582725525, 0.4615408778190613, -0.9795440435409546, 1.5706809759140015, -0.3460765779018402, 0.526748538017273, -0.5424749851226807, -0.5422288179397583, -0.7646926045417786, 0.30233973264694214, 1.8988068103790283, -0.221263125538826, 1.5386956930160522, -0.3822939991950989, -1.5351721048355103, -1.4975659847259521, 0.8707212209701538, 0.4403218626976013, -0.8166730999946594, 0.12256528437137604, -0.5322595834732056, 0.2165418118238449, -0.03530532121658325, 1.2461124658584595, 1.2820724248886108, 0.6603745818138123, -0.463243305683136, -0.8762236833572388, 0.15079377591609955, -0.09057123214006424, -0.7011966705322266, -1.7276357412338257, -0.395420104265213, 0.10918736457824707, 0.5959720015525818, -1.136418104171753, 1.8209614753723145, 0.9681882262229919, 1.9124442338943481, 1.0528029203414917, -0.29087501764297485, 1.4938184022903442, 0.04194818437099457, 1.8036011457443237, -0.5304799675941467, 0.5582288503646851, -0.3957541584968567, -1.1603405475616455, 0.8112501502037048, -0.34168481826782227, -2.055264711380005, -0.8123394250869751, -0.6268364191055298, -0.1697433441877365, -0.8640872836112976, 0.8810302019119263, -0.4452880620956421, -1.4893816709518433, 0.2686152160167694, -0.7829468250274658, 0.24681413173675537, -1.133205771446228, 0.3096965551376343, 0.6311836838722229, -0.5877856016159058, 0.06480792909860611, -0.22347445785999298, -1.191017985343933, -0.420526385307312, 0.3474580645561218, 1.8485416173934937, -0.7084434628486633, 0.9090450406074524, 1.020639181137085, -0.6211174726486206, -0.012945644557476044, 0.23597055673599243, -0.19995981454849243, 0.8775225877761841, -0.9589426517486572, -0.513979971408844, 1.28116774559021, -0.2840510904788971, -0.6172430515289307, 1.4054263830184937, 0.7148374915122986, -0.9923550486564636, -0.24455413222312927, -0.12112227827310562, -0.9187314510345459, 0.05261925235390663, -1.5791568756103516, -0.09093523025512695, 0.5848858952522278, -1.5451189279556274, -0.33066755533218384, -0.1765570044517517, 1.25629460811615, -0.1935315579175949, 1.435789942741394, -0.4102475643157959, -0.026313766837120056, -0.18744859099388123, -0.4238285720348358, 0.13784413039684296, -0.09611041843891144, -0.5735105276107788, 0.0769038051366806, -0.7584804892539978, 0.4143794775009155, 1.4718375205993652, 0.35838550329208374, 0.12293797731399536, 0.442413866519928, 1.1704611778259277, 0.37395405769348145, -0.06793179363012314, -0.8271652460098267, -1.636671543121338, 2.0659162998199463, -1.4858819246292114, 2.0503437519073486, 0.7738891839981079, -0.06463982164859772, -1.7618097066879272, -1.7491754293441772, 1.2512154579162598, 1.1738389730453491, 2.3432366847991943, 0.4878319799900055, 0.3843235969543457, -0.8253722786903381, -0.7498920559883118, 0.2709234952926636, -1.051116943359375, -0.7528550624847412, 0.131094828248024, 2.3630354404449463, 1.9234925508499146, -0.2821885645389557, -0.23117759823799133, -0.9420928955078125, 1.5014572143554688, -0.3454682528972626, 0.3042762577533722, 1.9485355615615845, -0.2390739470720291, -1.0640472173690796, 1.3323144912719727, -2.4533214569091797, 0.1542152762413025, 2.1219980716705322, 0.3238723576068878, 0.12556026875972748, -1.3943430185317993, -0.5188403725624084, -0.298373281955719, -0.34682244062423706, -1.2751468420028687, 0.5623069405555725, -0.33469370007514954, -0.7999569177627563, -1.3250484466552734, 0.15604113042354584, -1.1115437746047974, -1.6629332304000854, 0.24611800909042358, 1.896723747253418, 2.1361746788024902, -0.7444427013397217, 1.5116409063339233, -0.32878756523132324, 0.25901082158088684, 1.2023166418075562, 1.2932814359664917, 3.043660879135132, 1.8214285373687744, -1.3177353143692017, 0.5887841582298279, -0.2496439665555954, -0.5516631603240967, 1.1603167057037354, -1.3216482400894165, 1.277354121208191, -0.08586723357439041, -1.1846821308135986, -1.1916488409042358, 1.0372447967529297, 0.48925596475601196, -0.0043891421519219875, -0.5425050854682922, 1.1776795387268066, 0.061743948608636856, 1.2766908407211304, 0.5594503879547119, -0.3914502263069153, 0.4894687533378601, -0.36956727504730225, -0.6330491304397583, 1.4607571363449097, 0.17603406310081482, -1.4701083898544312, -2.21256160736084, -0.1921261101961136, -0.8605548143386841, 0.08237210661172867, -0.6382623910903931, -0.9518423676490784, 1.5807418823242188, 0.22750237584114075, -1.311996579170227, -0.19274720549583435, -0.3033159375190735, -0.4989950954914093, 2.6784749031066895, -1.1423490047454834, -0.25670939683914185, -1.0003806352615356, -0.701300323009491, 1.650808334350586, -1.1462684869766235, -0.28963449597358704, -1.035690188407898, -0.5949215888977051, -1.2097325325012207, -0.5237895250320435, 0.044160328805446625, -0.9546865224838257, 0.7112911343574524, 0.26416900753974915, -1.1405161619186401, -0.3552854657173157, -0.7719458937644958, 1.0494838953018188, -0.19456051290035248, 0.1506137102842331, 1.8404728174209595, 0.21832458674907684, -0.32996755838394165, 0.8649051189422607, 1.2224712371826172, 0.6079524159431458, -0.6240079998970032, 0.11658507585525513, -0.6705953478813171, 0.4186330735683441, -1.2732198238372803, 0.3330150842666626, -2.8824427127838135, 0.6561732888221741, -0.07450971007347107, -0.09074639528989792, -0.07550755143165588, -1.4081135988235474, 0.9891163110733032, 2.595329761505127, -1.1405346393585205, 0.5728536248207092, 0.34842294454574585, 1.1125669479370117, -1.7258884906768799, 0.2485150694847107, -0.5811370611190796, 2.1607303619384766, 0.23482315242290497, 1.307088017463684, -0.47990643978118896, -2.386652946472168, 0.633086085319519, -1.299139142036438, -1.1351213455200195, 0.7229431867599487, -0.9941188097000122, 0.22840629518032074, -1.418826699256897, -0.2855898141860962, -0.9304981827735901, -1.0860316753387451, 0.6439992189407349, 0.26931339502334595, 0.379634827375412, -0.5761310458183289, 0.301648885011673, -2.262861490249634, -1.353132963180542, -0.09761124104261398, -0.9877240657806396, 0.5424858331680298, -0.4800010621547699, 0.592459499835968, -0.12115760892629623, -0.08141225576400757, 0.2848860025405884, 1.5084525346755981, 3.376683473587036, 0.2296413779258728, 0.24560680985450745, -0.14740905165672302, -0.9335107803344727, 1.4033924341201782, 0.8534311652183533, -0.25514712929725647, -0.543526828289032, -1.0396093130111694, 1.3104578256607056, 1.9457224607467651, 0.877589225769043, 0.008135623298585415, -0.7700839042663574, -0.7045081257820129, -0.08404326438903809, 0.151274636387825, 0.44912803173065186, 0.8041123151779175, 0.0847679078578949, 0.10385589301586151, 1.3767271041870117, 1.074706792831421, -0.3864598870277405, 0.34463849663734436, -0.878219723701477, -0.45426762104034424, 0.4386153817176819, 0.16810332238674164, -0.12071181833744049, 0.39000415802001953, -0.9561483860015869, -0.2505982220172882, -0.46464449167251587, -0.7898065447807312, -0.7270690202713013, -0.33354872465133667, -0.3801056444644928, 1.5676990747451782, 0.1633100062608719, -0.5864008665084839, 0.021277979016304016, -0.7475456595420837, -0.22504913806915283, -1.1240819692611694, 0.20991934835910797, -0.07818573713302612, -0.1160125806927681, -0.20756712555885315, 1.703609585762024, -0.8666920065879822, -2.1114938259124756, 0.17456626892089844, 0.23524276912212372, -0.19764137268066406, 0.19447654485702515, 1.715427279472351, 0.5158082246780396, 1.3887126445770264, 1.3921922445297241, 0.9351224899291992, -0.6101973652839661, -1.2034789323806763, 0.8250842690467834, 0.9537731409072876, -1.381259560585022, 0.8636336326599121, -0.10218864679336548, -0.4815557599067688, 0.6304624676704407, 1.235426902770996, 0.5173944234848022, -2.0665414333343506, 0.891402006149292, -1.1399190425872803, 0.8221402764320374, 0.7567427158355713, 0.6226052045822144, 0.3466512858867645, 0.9055365324020386, -1.205905795097351, -1.1687300205230713, -0.7749056816101074, -0.8386980295181274, 2.001114845275879, -0.3306618630886078, 0.6598482728004456, -0.16481317579746246, -1.292878270149231, -0.14247120916843414, 0.6910250186920166, 0.31211188435554504, -0.5241907835006714, 0.8242632150650024, -0.7501747012138367, -1.090471625328064, -1.4218579530715942, -0.3731738328933716, -0.9974290728569031, -1.027943730354309, 0.9877214431762695, 0.7489537000656128, 0.2564360201358795, 1.9137927293777466, 0.7123507857322693, 0.34061726927757263, -2.501296281814575, 0.8598450422286987, 0.24121412634849548, -0.07117470353841782, 0.768336832523346, 0.31660938262939453, 1.049027442932129, 0.1372055858373642, 0.5487185716629028, -2.371124029159546, 2.2159993648529053, -0.15750160813331604, 0.7180324196815491, -0.08760247379541397, -0.18882450461387634, 1.1281957626342773, 0.5945815443992615, 0.5430218577384949, -1.041308879852295, 0.6940447688102722, -0.5020869970321655, 1.2013962268829346, 0.9138290882110596, -0.9015452861785889, -0.02088724821805954, 1.470018982887268, 0.34527647495269775, -0.6366845965385437, -0.9832624197006226, -0.8977503180503845, 0.9515891075134277, 1.6735255718231201, -0.02287271060049534, 0.01879359781742096, 0.7963875532150269, 0.6764832735061646, -1.2374873161315918, -0.0034867809154093266, -0.5944172143936157, -0.7608785033226013, 1.7147502899169922, 2.116919994354248, -0.22504109144210815, -0.10101710259914398, -0.6620392799377441, -1.3078688383102417, 0.7251438498497009, -0.1878025233745575, -0.04799410328269005, 0.626926839351654, -0.6863813996315002, 1.0343992710113525, 0.8870648145675659, 0.9283839464187622, 0.1336354911327362, 0.15875622630119324, 0.36961349844932556, -0.24273012578487396, -1.188629388809204, -0.2563939690589905, -1.0863763093948364, -2.5336380004882812, 0.27940183877944946, -0.15249627828598022, -1.3931076526641846, 0.16691704094409943, -0.9699646830558777, 0.9246851205825806, -0.6366767883300781, -1.0646564960479736, -1.4563013315200806, 0.28034862875938416, 0.008151859976351261, 0.9062044024467468, -1.6439629793167114, -0.1300305426120758, 1.079660415649414, 0.8748051524162292, -0.697316586971283, 1.0400233268737793, 0.30287015438079834, 1.0096650123596191, 0.8077796101570129, -0.4317076802253723, 0.682991087436676, -0.010702126659452915, -1.3722251653671265, 0.5165443420410156, 1.2009066343307495, 0.1762225329875946, 1.462229609489441, -0.42947903275489807, -0.026654083281755447, 0.4644661247730255, -0.7726532220840454, -0.4026547968387604, -0.4248869717121124, 0.6951184272766113, 0.013682843185961246, -0.8591199517250061, -0.13097204267978668, -0.033427175134420395, -0.38605770468711853, 0.18093417584896088, -1.5300496816635132, -0.15882453322410583, -0.4044191837310791, -0.5476786494255066, -1.292822003364563, -0.04582075774669647, 1.4748458862304688, -0.8342758417129517, -0.24451062083244324, 0.5076922178268433, 0.4172559380531311, 0.5052921175956726, 0.7292367815971375, -0.7271902561187744, -0.21563178300857544, -0.22005362808704376, -0.33846309781074524, 0.26794517040252686, 1.3405414819717407, -0.03578770160675049, -0.9001587629318237, 0.6590461134910583, -0.387419193983078, 0.043122485280036926, 1.7761015892028809, 0.09609071910381317, -0.7203118205070496, 0.3037690818309784, -0.7964048981666565, 1.98076593875885, 1.6547741889953613, 1.306368112564087, -0.17520563304424286, -0.9803866744041443, 0.6959562301635742, -0.3790057897567749, -0.34777116775512695, 0.7486505508422852, 0.3685060441493988, -0.21462766826152802, -1.4202378988265991, 0.8550887107849121, 1.192259430885315, -0.8413237929344177, -0.719656765460968, 0.13377830386161804, -0.772416353225708, 1.1618578433990479, 0.6170771718025208, 0.38530275225639343, 0.2973220646381378, 1.7343677282333374, 0.7906316518783569, -0.43335461616516113, 0.511202335357666, 0.5753818154335022, -0.11202612519264221, -2.2177295684814453, -1.0955153703689575, 0.3057050108909607, -0.5011706948280334, -1.5490275621414185, 1.2885127067565918, -1.062505841255188, -0.92986661195755, 0.5503187775611877, 0.012158519588410854, 1.354145884513855, 0.41158410906791687, 1.5159837007522583, 2.1034090518951416, 0.8741436004638672, 0.5134967565536499, 1.2636070251464844, -0.18818460404872894, -0.38282182812690735, 1.769507646560669, -0.3560512959957123, 0.5330452919006348, 1.0416440963745117, -0.3631233870983124, -1.1710247993469238, -0.760490894317627, -1.277168869972229, -0.675281286239624, 1.060446858406067, 0.08100059628486633, -1.0775154829025269, 0.27027082443237305, 1.5896084308624268, 0.1895066648721695, -0.1966797262430191, 0.6315969824790955, 0.37205955386161804, -0.7363390922546387, -0.0008932286873459816, -0.9335139393806458, 0.4934706389904022, -0.2581738531589508, -0.3561554253101349, 0.30608829855918884, 0.4542750418186188, 1.3643605709075928, -0.0023570372723042965, 0.1246565729379654, 1.0200798511505127, -1.4936226606369019, 1.4264596700668335, -0.7442106604576111, 0.3820173740386963, -2.3934662342071533, 1.3319681882858276, -0.772250235080719, 2.0460715293884277, -2.7072086334228516, 0.552636444568634, -0.6755777597427368, -0.540303111076355, 0.3064187467098236, -0.3401148021221161, 0.044565409421920776, -0.07239057123661041, -1.129658579826355, 0.06319697201251984, -0.6024807095527649, 0.5997410416603088, 1.1196295022964478, 1.4168294668197632, -1.0950449705123901, -0.30330267548561096, -1.7125645875930786, -0.0986224114894867, -0.7943804860115051, 0.26979976892471313, -2.0494706630706787, -0.06520996242761612, -1.9439696073532104, -2.321197032928467, -1.1703577041625977, -0.7498146891593933, 1.1232439279556274, 0.17872241139411926, -0.8498294353485107, 1.3415359258651733, -0.4008145034313202, -1.728295087814331, 1.0254908800125122, -2.1612815856933594 ]
https://github.com/huggingface/datasets/issues/3707
`.select`: unexpected behavior with `indices`
Hi! Currently, we compute the final index as `index % len(dset)`. I agree this behavior is somewhat unexpected and that it would be more appropriate to raise an error instead (this is what `df.iloc` in Pandas does, for instance). @albertvillanova @lhoestq wdyt?
## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": ["d", "e", "f"], "label": [4, 5, 6]}) res1 = ds.select([1, 2, 3])['text'] res2 = ds.select([1000])['text'] ``` ## Expected results Both results should throw an `Error`. ## Actual results `res1` will give `['e', 'f', 'd']` `res2` will give `['e']` ## Environment info Bug found from this environment: - `datasets` version: 1.16.1 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.7 - PyArrow version: 6.0.1 It was also replicated on `master`.
958
42
`.select`: unexpected behavior with `indices` ## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": ["d", "e", "f"], "label": [4, 5, 6]}) res1 = ds.select([1, 2, 3])['text'] res2 = ds.select([1000])['text'] ``` ## Expected results Both results should throw an `Error`. ## Actual results `res1` will give `['e', 'f', 'd']` `res2` will give `['e']` ## Environment info Bug found from this environment: - `datasets` version: 1.16.1 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.7 - PyArrow version: 6.0.1 It was also replicated on `master`. Hi! Currently, we compute the final index as `index % len(dset)`. I agree this behavior is somewhat unexpected and that it would be more appropriate to raise an error instead (this is what `df.iloc` in Pandas does, for instance). @albertvillanova @lhoestq wdyt?
[ -1.1399608850479126, -0.8225215673446655, -0.7387295961380005, 1.6028274297714233, -0.19822517037391663, -1.1659972667694092, 0.1871435046195984, -1.1183029413223267, 1.7268693447113037, -0.801422655582428, 0.3482305705547333, -1.707660436630249, -0.012883447110652924, -0.7142015099525452, -0.739190399646759, -0.8537970781326294, -0.3902103900909424, -0.6522728204727173, 1.0583940744400024, 2.4709010124206543, 1.1546639204025269, -1.4053066968917847, 2.6283488273620605, 0.6802554726600647, -0.10795824974775314, -1.0390052795410156, 0.462586373090744, -0.04398908466100693, -1.3071656227111816, -0.4014635682106018, -0.9217800498008728, -0.18081210553646088, -0.6055818796157837, -0.6760742664337158, -0.02378552407026291, 0.4474377930164337, -0.3265734612941742, -0.5264482498168945, -0.3624361753463745, -0.8602240085601807, 0.42069029808044434, -0.39695537090301514, 0.9645023941993713, -0.310698002576828, 1.8302698135375977, -0.6277713179588318, 0.4681089222431183, 0.6705222725868225, 1.369187355041504, 0.30133333802223206, -0.01714148558676243, 0.38362008333206177, 0.37671971321105957, -0.003791766706854105, 0.6056435108184814, 1.0717275142669678, 0.7228915095329285, 0.4164997637271881, 0.8421265482902527, -2.20363187789917, 1.1716972589492798, -1.1090505123138428, 0.2642870247364044, 1.261877179145813, -0.9464735388755798, 0.3158552050590515, -1.788727045059204, -0.014580909162759781, 0.5556474328041077, -2.1790008544921875, 0.2483326643705368, -1.3471699953079224, -0.4360508322715759, 1.1201761960983276, 0.43421950936317444, -1.3150200843811035, 0.015896381810307503, -0.306843101978302, 0.9640543460845947, 0.3048846423625946, 1.0675811767578125, -1.7402563095092773, -0.01847345568239689, -0.39730438590049744, 0.22700397670269012, -1.216651201248169, -1.4327666759490967, 0.5749450922012329, 0.6490862965583801, 0.5189631581306458, -0.12873391807079315, 0.9623350501060486, -0.9672513008117676, 0.6609058976173401, -1.096304178237915, -1.803399920463562, -1.4262983798980713, -2.162871837615967, -2.31555438041687, 0.7685827016830444, -0.47403615713119507, -0.5009473562240601, 1.9766186475753784, -0.898124098777771, -1.8001681566238403, 1.1047017574310303, 0.3621249198913574, -0.022701913490891457, 2.4140493869781494, 0.1651459038257599, -0.7840777039527893, 0.5104731321334839, -0.7654217481613159, 0.6665152907371521, -0.42899638414382935, 1.396155595779419, 0.32461482286453247, -1.0787642002105713, 1.6336350440979004, -0.3346889615058899, 0.6322473883628845, -0.7706092000007629, -0.3939887285232544, -0.6701905131340027, 0.29278630018234253, 1.9464445114135742, -0.26013922691345215, 1.481941819190979, -0.276400625705719, -1.5082697868347168, -1.5581954717636108, 0.851188600063324, 0.4299950897693634, -0.7083637118339539, 0.1383449137210846, -0.26939791440963745, 0.19699276983737946, -0.11407220363616943, 1.156836986541748, 1.2379882335662842, 0.7547056674957275, -0.2723199725151062, -0.8792972564697266, 0.21209672093391418, -0.037298403680324554, -0.8598976135253906, -1.6857091188430786, -0.35861337184906006, 0.02296389453113079, 0.6622534394264221, -1.2815191745758057, 1.779163122177124, 0.7427954077720642, 1.84998619556427, 1.0742071866989136, -0.3727761209011078, 1.5709868669509888, 0.14985567331314087, 1.9541993141174316, -0.4720401167869568, 0.6306357383728027, -0.4554954767227173, -1.1578960418701172, 0.8091692328453064, -0.337531715631485, -2.0384528636932373, -0.7159794569015503, -0.8592689633369446, -0.15704278647899628, -0.7454932332038879, 0.9411569833755493, -0.27230849862098694, -1.424421787261963, 0.32733154296875, -0.8114927411079407, 0.0785810723900795, -1.2688647508621216, 0.3616853654384613, 0.7878482341766357, -0.6335543990135193, 0.20409536361694336, -0.34084397554397583, -1.3668851852416992, -0.4876517951488495, 0.23669011890888214, 1.9059990644454956, -0.8688889145851135, 0.8827002048492432, 1.0125892162322998, -0.7140283584594727, -0.09673294425010681, 0.37905195355415344, -0.2832026481628418, 0.8246023654937744, -1.0481081008911133, -0.517217755317688, 1.2037607431411743, -0.13223743438720703, -0.5740411281585693, 1.4421395063400269, 0.7133671641349792, -0.9619300365447998, -0.11793166399002075, -0.12592144310474396, -0.7630738615989685, 0.0882875993847847, -1.696065068244934, -0.058160774409770966, 0.38285255432128906, -1.55087411403656, -0.5331377387046814, -0.2129611074924469, 1.292401671409607, -0.14743167161941528, 1.4102981090545654, -0.2676045000553131, -0.22635683417320251, -0.3520360291004181, -0.33831238746643066, 0.03172345459461212, -0.23774634301662445, -0.6631547808647156, 0.2554549276828766, -0.6441500186920166, 0.3422795236110687, 1.352230191230774, 0.3084144592285156, 0.022448958829045296, 0.5655797719955444, 1.1440744400024414, 0.4022223949432373, -0.0012666098773479462, -0.8449079990386963, -1.478416919708252, 2.0348258018493652, -1.4084888696670532, 2.013704538345337, 0.7074007987976074, -0.007287108339369297, -1.6719706058502197, -1.9193284511566162, 1.5407085418701172, 1.184226393699646, 2.350879430770874, 0.6384727954864502, 0.44996222853660583, -0.8751839399337769, -0.5779485702514648, 0.25814110040664673, -0.910261869430542, -0.7715244293212891, 0.1348617970943451, 2.4719464778900146, 1.684097170829773, -0.4495585858821869, -0.2106296867132187, -1.0688073635101318, 1.4850643873214722, -0.21944007277488708, 0.2777641713619232, 1.9081835746765137, -0.23195089399814606, -1.1627287864685059, 1.2846022844314575, -2.341430425643921, 0.11778227239847183, 1.9726738929748535, 0.22420378029346466, 0.07081738114356995, -1.3621492385864258, -0.6985058784484863, -0.2903035581111908, -0.3780299723148346, -1.238585114479065, 0.47046905755996704, -0.12331722676753998, -0.7548357248306274, -1.4867942333221436, 0.22599537670612335, -1.0987452268600464, -1.5695910453796387, 0.1370491236448288, 1.8739473819732666, 1.9104071855545044, -0.7382475733757019, 1.5961717367172241, -0.263813853263855, 0.2910713851451874, 1.2976480722427368, 1.1911873817443848, 3.099964141845703, 1.9606163501739502, -1.2050217390060425, 0.6932077407836914, -0.1434517353773117, -0.48389869928359985, 1.1917492151260376, -1.2622121572494507, 1.2034791707992554, -0.1989048272371292, -1.157987117767334, -1.247621774673462, 0.7635332345962524, 0.5103044509887695, -0.0019606961868703365, -0.4559439420700073, 1.179864764213562, 0.08197183161973953, 1.314332365989685, 0.5337904691696167, -0.15828584134578705, 0.628750741481781, -0.4539085328578949, -0.42157527804374695, 1.533492922782898, 0.1993580162525177, -1.3140519857406616, -2.2638299465179443, -0.14294816553592682, -0.9490546584129333, 0.023481598123908043, -0.5874719023704529, -1.02776300907135, 1.7047988176345825, 0.3924010396003723, -1.1963720321655273, -0.2517329156398773, -0.32388338446617126, -0.6191655993461609, 2.7195708751678467, -1.4415404796600342, -0.37186458706855774, -1.0327950716018677, -0.6492314338684082, 1.6660525798797607, -1.0961496829986572, -0.13079297542572021, -1.0063145160675049, -0.4388267397880554, -1.2783485651016235, -0.5933436751365662, -0.03290300443768501, -0.9174555540084839, 0.9073366522789001, 0.2848331332206726, -1.3529646396636963, -0.4478202164173126, -0.9344330430030823, 0.8086979985237122, -0.0643368735909462, 0.207415372133255, 1.8903340101242065, 0.45786985754966736, -0.3411511182785034, 0.7142933011054993, 1.1604582071304321, 0.676146924495697, -0.5682821869850159, 0.4592847228050232, -0.6523621082305908, 0.3816150426864624, -1.354815125465393, 0.21293412148952484, -2.8081867694854736, 0.5952208638191223, -0.024016544222831726, -0.05067066848278046, 0.004664773121476173, -1.3011280298233032, 1.1705647706985474, 2.615036725997925, -1.1353989839553833, 0.43854764103889465, 0.2687399387359619, 1.2869552373886108, -1.5734803676605225, 0.2384508103132248, -0.44199830293655396, 2.1984446048736572, 0.13372650742530823, 1.1271167993545532, -0.41394856572151184, -2.401338815689087, 0.6135289669036865, -1.3245975971221924, -1.2766131162643433, 0.7958343625068665, -0.8184680342674255, 0.025604648515582085, -1.3890429735183716, -0.1513073891401291, -0.7944425344467163, -1.196041464805603, 0.7416887283325195, 0.06213913857936859, 0.42690208554267883, -0.6246293783187866, 0.3871317207813263, -2.101109266281128, -1.4378963708877563, -0.2745475471019745, -0.9542198777198792, 0.39522701501846313, -0.32443249225616455, 0.802042543888092, -0.220534086227417, -0.11623043566942215, 0.3189994692802429, 1.4593909978866577, 3.3781721591949463, 0.18552331626415253, 0.4154888391494751, -0.20692279934883118, -0.909425675868988, 1.4073548316955566, 0.9200689196586609, -0.24335286021232605, -0.42541205883026123, -1.0901145935058594, 1.2207233905792236, 2.0156805515289307, 0.9927667379379272, 0.003829388879239559, -0.7241362929344177, -0.7416190505027771, -0.016219953075051308, 0.16987234354019165, 0.3756636083126068, 0.8640410304069519, 0.19593000411987305, 0.03879399597644806, 1.3845398426055908, 1.2024297714233398, -0.4488251209259033, 0.3417342007160187, -0.821966826915741, -0.4628964066505432, 0.7090021371841431, 0.28103107213974, -0.029760660603642464, 0.23939937353134155, -1.027459740638733, -0.26595622301101685, -0.35251447558403015, -0.8614234924316406, -0.7114579081535339, -0.3993637263774872, -0.29221397638320923, 1.6460158824920654, -0.020918458700180054, -0.5730395317077637, -0.03596287965774536, -0.7544637322425842, 0.047782525420188904, -0.9884653091430664, 0.25126925110816956, -0.22144192457199097, -0.13005481660366058, -0.09170368313789368, 1.7676501274108887, -0.9295752048492432, -2.0054142475128174, 0.1764165610074997, 0.30726414918899536, -0.3371014893054962, 0.2792552411556244, 1.6597201824188232, 0.6598768830299377, 1.497544765472412, 1.3789660930633545, 0.9993189573287964, -0.7163475155830383, -1.3535070419311523, 0.5901938080787659, 0.977474570274353, -1.354259967803955, 0.7317559719085693, 0.13449542224407196, -0.45851168036460876, 0.4644133448600769, 1.2709709405899048, 0.4839778244495392, -1.9824297428131104, 0.654349684715271, -0.867703914642334, 0.7691339254379272, 0.7408742308616638, 0.725440502166748, 0.21574276685714722, 0.7236459255218506, -1.1556168794631958, -1.1008045673370361, -0.7323691248893738, -0.6584052443504333, 1.9000836610794067, -0.3242989182472229, 0.5388503670692444, -0.11109064519405365, -1.4439318180084229, -0.10289999842643738, 0.6351237893104553, 0.37064996361732483, -0.5579648017883301, 0.7524266242980957, -0.6792581677436829, -1.125881552696228, -1.378218412399292, -0.5508870482444763, -1.0793014764785767, -0.9160251617431641, 1.0620282888412476, 0.8964362740516663, 0.3347437381744385, 1.8384920358657837, 0.7339934706687927, 0.14010421931743622, -2.547041654586792, 0.9046815633773804, 0.31891119480133057, -0.12727098166942596, 0.7844674587249756, 0.41665539145469666, 1.0011610984802246, -0.11708638072013855, 0.6169843077659607, -2.4072959423065186, 2.360238790512085, -0.195648655295372, 0.6644541025161743, 0.03467927873134613, -0.13311780989170074, 1.0028818845748901, 0.4549948573112488, 0.5465937852859497, -1.029898762702942, 0.592200517654419, -0.6656667590141296, 1.3748353719711304, 0.8578017354011536, -0.8085216283798218, -0.05710931867361069, 1.2697949409484863, 0.47734639048576355, -0.5856061577796936, -0.9925829172134399, -0.9613052010536194, 0.9694784879684448, 1.7463783025741577, -0.06589559465646744, -0.03896719962358475, 0.9520791172981262, 0.6477480530738831, -1.353110432624817, 0.007689991965889931, -0.7985446453094482, -0.7728999853134155, 1.6885548830032349, 2.0962026119232178, -0.19683027267456055, -0.24840609729290009, -0.7707210779190063, -1.2051830291748047, 0.7889618277549744, 0.08845540881156921, 0.03462276607751846, 0.724376380443573, -0.6494645476341248, 1.119814157485962, 0.9130104780197144, 0.8792502284049988, 0.31372106075286865, 0.3084309995174408, 0.30612438917160034, -0.32824626564979553, -1.2020258903503418, -0.16256417334079742, -1.065259337425232, -2.5693423748016357, 0.494579941034317, -0.16637536883354187, -1.336747646331787, 0.04652880132198334, -1.025212049484253, 0.9414747357368469, -0.49462592601776123, -1.1538387537002563, -1.4007503986358643, 0.19370640814304352, 0.033683277666568756, 0.8895013928413391, -1.6520190238952637, -0.0011604828760027885, 1.2908155918121338, 0.9986867904663086, -0.7470808625221252, 0.8846850991249084, 0.26354125142097473, 1.136478304862976, 0.9819379448890686, -0.32989630103111267, 0.4661604166030884, -0.05499640852212906, -1.2977283000946045, 0.46628227829933167, 1.1868563890457153, 0.12628059089183807, 1.4901602268218994, -0.598003089427948, -0.04166471213102341, 0.35732799768447876, -0.4153313636779785, -0.4382314682006836, -0.8005173802375793, 0.6200953125953674, 0.10825138539075851, -0.806473970413208, -0.00404784781858325, 0.12081833928823471, -0.17181386053562164, 0.11213719099760056, -1.4983736276626587, -0.03197202831506729, -0.27474042773246765, -0.6755475997924805, -1.1318919658660889, -0.10444910824298859, 1.3358396291732788, -0.7138909697532654, -0.1666857749223709, 0.49740853905677795, 0.18839947879314423, 0.5036370158195496, 0.6262014508247375, -0.6647528409957886, -0.4998472034931183, -0.1886235624551773, -0.45706379413604736, 0.3395901322364807, 1.4009549617767334, -0.09378471970558167, -1.0371828079223633, 0.7098957300186157, -0.3503956198692322, -0.01767772249877453, 1.8252700567245483, 0.022785672917962074, -0.8825485706329346, 0.22701284289360046, -0.6999089121818542, 1.9981709718704224, 1.7890912294387817, 1.268601655960083, -0.13910190761089325, -1.0821055173873901, 0.6897278428077698, -0.4095315635204315, -0.4925305247306824, 0.8457609415054321, 0.33741432428359985, -0.23594354093074799, -1.3418442010879517, 0.6599476337432861, 1.3827859163284302, -0.8590809106826782, -0.840475857257843, 0.20347119867801666, -0.7838665246963501, 1.0014715194702148, 0.7044603228569031, 0.3354436457157135, 0.27633121609687805, 1.620997667312622, 0.845701277256012, -0.4261515438556671, 0.5896133780479431, 0.5891105532646179, -0.09242593497037888, -2.0339479446411133, -1.2449842691421509, 0.3065517842769623, -0.5404546856880188, -1.6609026193618774, 1.3661381006240845, -1.1664632558822632, -0.8308461904525757, 0.5800744891166687, 0.09240028262138367, 1.4892104864120483, 0.3901642858982086, 1.4289305210113525, 1.980406641960144, 0.8675240278244019, 0.40241727232933044, 1.2394241094589233, -0.25606492161750793, -0.5195578336715698, 1.803795337677002, -0.49145498871803284, 0.4726567566394806, 1.1129260063171387, -0.24132297933101654, -1.0947339534759521, -0.8136330246925354, -1.3754597902297974, -0.7629655003547668, 1.1332024335861206, 0.09887807071208954, -1.2592803239822388, 0.3119966387748718, 1.561811089515686, -0.0185219869017601, -0.43164071440696716, 0.6287572979927063, 0.38810962438583374, -0.872617781162262, -0.004590426106005907, -0.911541223526001, 0.545792818069458, -0.19942407310009003, -0.3117343783378601, 0.4017779529094696, 0.5024000406265259, 1.3837586641311646, 0.035243310034275055, 0.19725537300109863, 1.1272821426391602, -1.4340733289718628, 1.517240047454834, -0.8075681328773499, 0.3364701569080353, -2.3346805572509766, 1.3664219379425049, -0.8141759037971497, 1.9023346900939941, -2.643416404724121, 0.47072598338127136, -0.5510551929473877, -0.4236656129360199, 0.28556302189826965, -0.2935250997543335, 0.21109063923358917, -0.12167838215827942, -1.2210980653762817, -0.14841683208942413, -0.7116014361381531, 0.5403006672859192, 1.0003814697265625, 1.3890420198440552, -1.0741066932678223, -0.32367977499961853, -1.7146774530410767, -0.13849703967571259, -0.5126498937606812, 0.3312501311302185, -1.9706767797470093, -0.17346221208572388, -1.9004929065704346, -2.345912456512451, -1.3357768058776855, -0.8097719550132751, 1.0996428728103638, 0.008884776383638382, -0.8539689779281616, 1.2002344131469727, -0.3286624252796173, -1.8757567405700684, 1.1968696117401123, -2.160223960876465 ]
https://github.com/huggingface/datasets/issues/3707
`.select`: unexpected behavior with `indices`
I agree. I think `index % len(dset)` was used to support negative indices. I think this needs to be fixed in `datasets.formatting.formatting._check_valid_index_key` if I'm not mistaken
## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": ["d", "e", "f"], "label": [4, 5, 6]}) res1 = ds.select([1, 2, 3])['text'] res2 = ds.select([1000])['text'] ``` ## Expected results Both results should throw an `Error`. ## Actual results `res1` will give `['e', 'f', 'd']` `res2` will give `['e']` ## Environment info Bug found from this environment: - `datasets` version: 1.16.1 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.7 - PyArrow version: 6.0.1 It was also replicated on `master`.
958
26
`.select`: unexpected behavior with `indices` ## Describe the bug The `.select` method will not throw when sending `indices` bigger than the dataset length; `indices` will be wrapped instead. This behavior is not documented anywhere, and is not intuitive. ## Steps to reproduce the bug ```python from datasets import Dataset ds = Dataset.from_dict({"text": ["d", "e", "f"], "label": [4, 5, 6]}) res1 = ds.select([1, 2, 3])['text'] res2 = ds.select([1000])['text'] ``` ## Expected results Both results should throw an `Error`. ## Actual results `res1` will give `['e', 'f', 'd']` `res2` will give `['e']` ## Environment info Bug found from this environment: - `datasets` version: 1.16.1 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.7 - PyArrow version: 6.0.1 It was also replicated on `master`. I agree. I think `index % len(dset)` was used to support negative indices. I think this needs to be fixed in `datasets.formatting.formatting._check_valid_index_key` if I'm not mistaken
[ -1.1537957191467285, -0.8261917233467102, -0.7585328817367554, 1.5538326501846313, -0.18162596225738525, -1.2042943239212036, 0.20470179617404938, -1.1463910341262817, 1.7669157981872559, -0.808142900466919, 0.36813440918922424, -1.691225528717041, 0.01600594073534012, -0.6804418563842773, -0.7313148975372314, -0.8556791543960571, -0.37002885341644287, -0.6537803411483765, 1.0288710594177246, 2.424478054046631, 1.1220126152038574, -1.414376139640808, 2.6240992546081543, 0.6841293573379517, -0.10138702392578125, -1.0626766681671143, 0.4652267098426819, -0.03884660825133324, -1.3092740774154663, -0.420075386762619, -0.8976128697395325, -0.14986388385295868, -0.6128755807876587, -0.6940991282463074, -0.01438308134675026, 0.4705989956855774, -0.34669435024261475, -0.5375401973724365, -0.38580194115638733, -0.881223738193512, 0.4340510964393616, -0.4122609794139862, 0.936462938785553, -0.37495869398117065, 1.8161793947219849, -0.6234819293022156, 0.4751451909542084, 0.7108547687530518, 1.3640832901000977, 0.3124949038028717, -0.03539619967341423, 0.4017983376979828, 0.3914758265018463, 0.027261726558208466, 0.5751354694366455, 1.040776014328003, 0.6737017631530762, 0.40359267592430115, 0.8259701728820801, -2.2371609210968018, 1.1611829996109009, -1.0880464315414429, 0.2565644085407257, 1.2642940282821655, -0.9588624835014343, 0.30309006571769714, -1.7570902109146118, -0.02629915252327919, 0.5939254760742188, -2.1810617446899414, 0.2864232659339905, -1.4092109203338623, -0.45809149742126465, 1.1508204936981201, 0.47901251912117004, -1.2928320169448853, -0.02816282957792282, -0.32293185591697693, 0.9486733078956604, 0.3292354643344879, 1.0551615953445435, -1.6966956853866577, -0.01965329609811306, -0.40842050313949585, 0.21422319114208221, -1.2348558902740479, -1.448394536972046, 0.5857807993888855, 0.6486875414848328, 0.5382315516471863, -0.15420816838741302, 0.9653013348579407, -0.9902523756027222, 0.6504420042037964, -1.1231778860092163, -1.8484039306640625, -1.3951526880264282, -2.1685945987701416, -2.3046791553497314, 0.7682188749313354, -0.43985068798065186, -0.48166656494140625, 2.008376359939575, -0.9043931365013123, -1.7701703310012817, 1.111966848373413, 0.33458611369132996, -0.023406635969877243, 2.3934803009033203, 0.15130741894245148, -0.7855774164199829, 0.5053186416625977, -0.7816745638847351, 0.6392470598220825, -0.3910679221153259, 1.3449407815933228, 0.3504069149494171, -1.055616021156311, 1.6239818334579468, -0.3643367886543274, 0.6128256320953369, -0.7534689903259277, -0.3801165223121643, -0.6688462495803833, 0.2877887487411499, 1.939428448677063, -0.24561770260334015, 1.454520344734192, -0.26248547434806824, -1.5098531246185303, -1.581140160560608, 0.8390557169914246, 0.39328479766845703, -0.718837559223175, 0.13775652647018433, -0.3019225597381592, 0.20905303955078125, -0.16444870829582214, 1.20730459690094, 1.278822422027588, 0.7786665558815002, -0.2859346866607666, -0.8846361637115479, 0.20408371090888977, -0.009410563856363297, -0.8609421253204346, -1.689965844154358, -0.35439908504486084, 0.0644603818655014, 0.6620943546295166, -1.2609217166900635, 1.7893133163452148, 0.7736994028091431, 1.886894941329956, 1.0840805768966675, -0.3786633014678955, 1.5848110914230347, 0.17378556728363037, 1.9812209606170654, -0.4745883345603943, 0.6472740173339844, -0.40174582600593567, -1.123723030090332, 0.8057196736335754, -0.34244123101234436, -2.0292909145355225, -0.7177145481109619, -0.8756978511810303, -0.15271256864070892, -0.7546588182449341, 0.9527834057807922, -0.2873985469341278, -1.4530210494995117, 0.31073418259620667, -0.828194260597229, 0.06585434079170227, -1.2241151332855225, 0.3428020775318146, 0.7668482065200806, -0.6201919317245483, 0.18711452186107635, -0.3569369316101074, -1.3801870346069336, -0.47137337923049927, 0.2885332405567169, 1.883278489112854, -0.8471742272377014, 0.9113399386405945, 1.0239026546478271, -0.731181263923645, -0.07368239015340805, 0.3845561444759369, -0.2785499095916748, 0.8138698935508728, -1.0804980993270874, -0.5252456068992615, 1.1976370811462402, -0.15654708445072174, -0.5643563866615295, 1.4586302042007446, 0.7042597532272339, -0.9479979872703552, -0.10207735002040863, -0.14963661134243011, -0.7649274468421936, 0.09427676349878311, -1.695840835571289, -0.037319835275411606, 0.3947485387325287, -1.53866446018219, -0.5283705592155457, -0.1999044269323349, 1.2802002429962158, -0.13999968767166138, 1.3715730905532837, -0.2679150104522705, -0.23002570867538452, -0.32850831747055054, -0.3302750587463379, 0.04176221415400505, -0.24130506813526154, -0.689991295337677, 0.22870029509067535, -0.6631261110305786, 0.35434719920158386, 1.320285677909851, 0.3105287551879883, 0.007626988925039768, 0.5667579770088196, 1.1843305826187134, 0.3708701729774475, -0.029902823269367218, -0.8506448268890381, -1.517042875289917, 2.0530641078948975, -1.4163578748703003, 2.009848117828369, 0.6596720814704895, -0.03222549334168434, -1.7025507688522339, -1.9043723344802856, 1.5006871223449707, 1.0930718183517456, 2.3536736965179443, 0.6435902714729309, 0.45284900069236755, -0.8727661371231079, -0.6036065816879272, 0.2515108585357666, -0.9032301902770996, -0.7417879104614258, 0.13899895548820496, 2.467888355255127, 1.694105625152588, -0.4381425976753235, -0.18894438445568085, -1.0657844543457031, 1.4790648221969604, -0.2289809286594391, 0.2876443564891815, 1.928380012512207, -0.23970606923103333, -1.1372934579849243, 1.2572017908096313, -2.3447017669677734, 0.13723495602607727, 1.9914127588272095, 0.17432239651679993, 0.07628131657838821, -1.347819209098816, -0.6943886280059814, -0.3186742961406708, -0.39462828636169434, -1.2568148374557495, 0.4710553288459778, -0.1471778154373169, -0.7836585640907288, -1.415876030921936, 0.22272059321403503, -1.067832589149475, -1.5685960054397583, 0.14981430768966675, 1.9075735807418823, 1.9309204816818237, -0.7304993271827698, 1.6144843101501465, -0.2927933633327484, 0.27231255173683167, 1.2854363918304443, 1.1846587657928467, 3.0801632404327393, 1.9598262310028076, -1.2497203350067139, 0.7210729718208313, -0.12302754819393158, -0.4694398045539856, 1.2165127992630005, -1.2547357082366943, 1.2116608619689941, -0.1966984122991562, -1.1619921922683716, -1.2420934438705444, 0.7942920923233032, 0.510314404964447, 0.004511512815952301, -0.4686723053455353, 1.2198516130447388, 0.07554713636636734, 1.326451063156128, 0.5396151542663574, -0.18213507533073425, 0.654674232006073, -0.42810797691345215, -0.42866620421409607, 1.5223873853683472, 0.1959381252527237, -1.3099360466003418, -2.271688461303711, -0.15157200396060944, -0.9672843217849731, 0.030371546745300293, -0.5921317934989929, -1.0201973915100098, 1.7045124769210815, 0.38852253556251526, -1.178510069847107, -0.2618524432182312, -0.30988937616348267, -0.6281421184539795, 2.7484688758850098, -1.3636271953582764, -0.35350745916366577, -1.0557706356048584, -0.6561869382858276, 1.666090726852417, -1.1218314170837402, -0.14045193791389465, -1.0590177774429321, -0.44364917278289795, -1.2808794975280762, -0.6070095896720886, -0.019307658076286316, -0.9195224642753601, 0.953811764717102, 0.2732512950897217, -1.32370126247406, -0.43211132287979126, -0.9631721377372742, 0.8087067008018494, -0.07414578646421432, 0.1974571943283081, 1.8676722049713135, 0.4255737364292145, -0.3422362506389618, 0.7033776640892029, 1.136960744857788, 0.6861675381660461, -0.549981415271759, 0.46202903985977173, -0.6391037106513977, 0.37973475456237793, -1.3295146226882935, 0.23854616284370422, -2.824082374572754, 0.6266053318977356, -0.020260171964764595, -0.014433848671615124, -0.046652115881443024, -1.3252087831497192, 1.167052149772644, 2.595829486846924, -1.1748961210250854, 0.4638805091381073, 0.2402445524930954, 1.274734377861023, -1.5689809322357178, 0.26291343569755554, -0.45928242802619934, 2.22200608253479, 0.14673632383346558, 1.125503659248352, -0.3935253918170929, -2.3831145763397217, 0.6518473029136658, -1.2748322486877441, -1.255832314491272, 0.8152857422828674, -0.8332788348197937, 0.026204373687505722, -1.365323543548584, -0.19641701877117157, -0.779772162437439, -1.1840417385101318, 0.7251970171928406, 0.07954251021146774, 0.45562633872032166, -0.6416736245155334, 0.36620596051216125, -2.150376319885254, -1.4248878955841064, -0.25020548701286316, -0.9489637613296509, 0.41280683875083923, -0.2999136447906494, 0.7777922749519348, -0.19422216713428497, -0.08784063160419464, 0.31256601214408875, 1.4681333303451538, 3.364678382873535, 0.19287818670272827, 0.3700534403324127, -0.2017665058374405, -0.948299765586853, 1.382806658744812, 0.8923594355583191, -0.22276176512241364, -0.40555083751678467, -1.095150351524353, 1.208797574043274, 2.0299458503723145, 0.9843855500221252, -0.013916132971644402, -0.7496559619903564, -0.7484878301620483, -0.005354750901460648, 0.18555976450443268, 0.43705102801322937, 0.8519563674926758, 0.22682134807109833, 0.038841016590595245, 1.4132895469665527, 1.188005805015564, -0.43465179204940796, 0.395601361989975, -0.8486651182174683, -0.4242226183414459, 0.7200573682785034, 0.26611411571502686, 0.01625223085284233, 0.22212252020835876, -1.0461406707763672, -0.2496543675661087, -0.32692188024520874, -0.8653973937034607, -0.7187071442604065, -0.39977097511291504, -0.30387717485427856, 1.6349467039108276, -0.006386116147041321, -0.568792998790741, -0.03279135748744011, -0.7681597471237183, 0.03871942311525345, -1.0153957605361938, 0.2435484081506729, -0.21675355732440948, -0.12114609032869339, -0.10818585753440857, 1.7424839735031128, -0.930865466594696, -1.9766613245010376, 0.15288841724395752, 0.2914576828479767, -0.35968950390815735, 0.28741195797920227, 1.6480271816253662, 0.671838641166687, 1.5038502216339111, 1.3661589622497559, 0.9888738393783569, -0.7105386853218079, -1.348751187324524, 0.56456059217453, 0.9529120922088623, -1.3302662372589111, 0.7365036010742188, 0.1240646168589592, -0.4899098575115204, 0.4903203547000885, 1.2921364307403564, 0.46139463782310486, -1.9987378120422363, 0.6814229488372803, -0.8733991980552673, 0.7746616005897522, 0.7476634383201599, 0.7395452857017517, 0.21025916934013367, 0.7715061902999878, -1.1845067739486694, -1.0958435535430908, -0.7381158471107483, -0.6842961311340332, 1.915578842163086, -0.3484964370727539, 0.5330546498298645, -0.10783401131629944, -1.4245933294296265, -0.07563433051109314, 0.6166467070579529, 0.41292139887809753, -0.5412954688072205, 0.7317720651626587, -0.6684749126434326, -1.116693377494812, -1.348691701889038, -0.5331370830535889, -1.092057228088379, -0.9508744478225708, 1.0373789072036743, 0.8687586784362793, 0.35343286395072937, 1.8391096591949463, 0.7444965839385986, 0.12931449711322784, -2.5514023303985596, 0.8984536528587341, 0.3330039978027344, -0.12227649241685867, 0.756593644618988, 0.42204153537750244, 1.0535972118377686, -0.11797118932008743, 0.6203268766403198, -2.4034736156463623, 2.3210794925689697, -0.1828373521566391, 0.6435765027999878, 0.005415249615907669, -0.13069985806941986, 1.0049810409545898, 0.4957886040210724, 0.5764498114585876, -1.0206272602081299, 0.6208720803260803, -0.6881387233734131, 1.3654093742370605, 0.8787382245063782, -0.837631344795227, -0.07291057705879211, 1.2946476936340332, 0.4739091098308563, -0.5654808282852173, -1.0209602117538452, -0.9784374833106995, 0.9139314889907837, 1.7385470867156982, -0.06196816265583038, -0.05717036500573158, 0.9500179290771484, 0.6476418972015381, -1.353200912475586, 0.00240929052233696, -0.8034672737121582, -0.7623838186264038, 1.7299774885177612, 2.106492042541504, -0.2113124281167984, -0.2337869256734848, -0.7787296772003174, -1.2041043043136597, 0.7819287180900574, 0.05917094275355339, -0.00817025639116764, 0.7036687731742859, -0.6416222453117371, 1.113010048866272, 0.917686402797699, 0.8937661051750183, 0.31209221482276917, 0.3086705207824707, 0.2952749729156494, -0.3476603627204895, -1.2120113372802734, -0.20012277364730835, -1.060750961303711, -2.538679599761963, 0.49045267701148987, -0.17526835203170776, -1.3581854104995728, 0.027349285781383514, -1.030836820602417, 0.959040641784668, -0.5238582491874695, -1.1480964422225952, -1.3847407102584839, 0.2161073088645935, 0.05409299209713936, 0.8997312188148499, -1.6028146743774414, 0.004112855531275272, 1.2817704677581787, 0.9810497760772705, -0.7372527122497559, 0.8751810789108276, 0.29497528076171875, 1.1857248544692993, 0.956916868686676, -0.3465241491794586, 0.4719354510307312, -0.06537055224180222, -1.291357159614563, 0.49069902300834656, 1.1787446737289429, 0.10627999901771545, 1.4960304498672485, -0.5789375901222229, -0.032514289021492004, 0.3607129156589508, -0.45466411113739014, -0.40419813990592957, -0.754957914352417, 0.6265966892242432, 0.11151549220085144, -0.8403650522232056, 0.008243820630013943, 0.1073228269815445, -0.15861749649047852, 0.15853065252304077, -1.4919486045837402, -0.07028687000274658, -0.2864015996456146, -0.694303035736084, -1.1213716268539429, -0.10998273640871048, 1.3062849044799805, -0.7172426581382751, -0.1585925966501236, 0.4948503077030182, 0.2021004557609558, 0.5160946249961853, 0.6310094594955444, -0.6764270067214966, -0.4639199376106262, -0.21605534851551056, -0.44861486554145813, 0.3320053219795227, 1.3915570974349976, -0.08723671734333038, -1.043703317642212, 0.7023174166679382, -0.3400682508945465, 0.0007470957934856415, 1.8414757251739502, 0.02895258367061615, -0.8670903444290161, 0.23192347586154938, -0.7318137288093567, 2.0178394317626953, 1.7818862199783325, 1.2747769355773926, -0.13869136571884155, -1.0860295295715332, 0.6554700136184692, -0.4794086515903473, -0.5237302184104919, 0.8135095834732056, 0.37808674573898315, -0.20703278481960297, -1.3040955066680908, 0.7014618515968323, 1.3558979034423828, -0.8737020492553711, -0.8778850436210632, 0.2144322544336319, -0.7586765885353088, 1.0517784357070923, 0.7073731422424316, 0.3802444636821747, 0.27690911293029785, 1.5918201208114624, 0.8380995392799377, -0.4104745090007782, 0.5658634305000305, 0.5822209119796753, -0.10818447172641754, -2.051112174987793, -1.2659348249435425, 0.2925187945365906, -0.5649250745773315, -1.6757549047470093, 1.3884562253952026, -1.1897610425949097, -0.8208510875701904, 0.5617669224739075, 0.12133630365133286, 1.4402923583984375, 0.39979827404022217, 1.4717594385147095, 1.9681544303894043, 0.8824441432952881, 0.42479580640792847, 1.2543389797210693, -0.26819613575935364, -0.5141509771347046, 1.760593295097351, -0.4923526346683502, 0.47651055455207825, 1.1303600072860718, -0.24646423757076263, -1.0952701568603516, -0.8289856314659119, -1.3682312965393066, -0.7427515387535095, 1.098867654800415, 0.10248619318008423, -1.236717939376831, 0.3084407150745392, 1.590259313583374, -0.018035799264907837, -0.4341537654399872, 0.6510464549064636, 0.3637465536594391, -0.8500170111656189, -0.01886489987373352, -0.9290440678596497, 0.5507919192314148, -0.2320752739906311, -0.3171752095222473, 0.39999568462371826, 0.47622358798980713, 1.408805012702942, 0.0233936607837677, 0.20541734993457794, 1.1714756488800049, -1.4129515886306763, 1.506608009338379, -0.792577862739563, 0.3385363519191742, -2.311298370361328, 1.314903974533081, -0.8283823728561401, 1.9081130027770996, -2.6324803829193115, 0.46263551712036133, -0.5398839712142944, -0.404443621635437, 0.2542067766189575, -0.32445546984672546, 0.17865797877311707, -0.08633410930633545, -1.2508758306503296, -0.11161636561155319, -0.7417761087417603, 0.5140239000320435, 1.0452802181243896, 1.3866527080535889, -1.0576242208480835, -0.27850544452667236, -1.7230279445648193, -0.13436110317707062, -0.5745585560798645, 0.36170533299446106, -1.950265884399414, -0.13685937225818634, -1.8991053104400635, -2.378572702407837, -1.2990092039108276, -0.795686662197113, 1.1029951572418213, 0.003078628331422806, -0.8235595226287842, 1.2044482231140137, -0.3320605754852295, -1.8490009307861328, 1.1964190006256104, -2.139479398727417 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
Hi @ankitk2109, Have you tried passing the split name with the keyword `split=`? See e.g. an example in our Quick Start docs: https://huggingface.co/docs/datasets/quickstart.html#load-the-dataset-and-model ```python ds = load_dataset("big_patent", "d", split="validation")
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
959
29
Unable to load dataset 'big_patent' ## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0 Hi @ankitk2109, Have you tried passing the split name with the keyword `split=`? See e.g. an example in our Quick Start docs: https://huggingface.co/docs/datasets/quickstart.html#load-the-dataset-and-model ```python ds = load_dataset("big_patent", "d", split="validation")
[ -1.1856504678726196, -0.8474939465522766, -0.7596476674079895, 1.4328240156173706, -0.11016807705163956, -1.2186431884765625, 0.14683924615383148, -0.9861974120140076, 1.7612757682800293, -0.7401872873306274, 0.2955687642097473, -1.6973224878311157, -0.02849050611257553, -0.6077088713645935, -0.7143574357032776, -0.8746653199195862, -0.31620919704437256, -0.6936826109886169, 1.026451587677002, 2.5093700885772705, 1.0970680713653564, -1.3474041223526, 2.651745557785034, 0.6826310753822327, -0.2206164449453354, -0.9415555000305176, 0.44041502475738525, -0.049043670296669006, -1.274786114692688, -0.42177408933639526, -0.9000776410102844, -0.026863619685173035, -0.5590874552726746, -0.6192607283592224, -0.02138090506196022, 0.4555210769176483, -0.3710358738899231, -0.41119584441185, -0.4700346887111664, -0.9224520325660706, 0.40175819396972656, -0.42730438709259033, 0.882342517375946, -0.3703564703464508, 1.8153795003890991, -0.5521318316459656, 0.47903603315353394, 0.7118085026741028, 1.2661311626434326, 0.16723592579364777, 0.02227446250617504, 0.4180511236190796, 0.3027403950691223, -0.021786434575915337, 0.46488258242607117, 1.172128677368164, 0.5860675573348999, 0.420791894197464, 0.7341365814208984, -2.298560857772827, 1.2900340557098389, -0.9895933270454407, 0.20595061779022217, 1.3401349782943726, -1.0082536935806274, 0.3689439296722412, -1.7539805173873901, -0.01518944464623928, 0.5371406078338623, -2.2582552433013916, 0.3071103096008301, -1.2833032608032227, -0.47057488560676575, 0.9981938004493713, 0.362994909286499, -1.1954394578933716, 0.12235818058252335, -0.41425517201423645, 0.9997696280479431, 0.4514501690864563, 1.1132932901382446, -1.7131091356277466, -0.11186250299215317, -0.2708387076854706, 0.1403481662273407, -1.395809531211853, -1.5446299314498901, 0.48380357027053833, 0.6380674839019775, 0.7023685574531555, -0.07953205704689026, 0.9913985133171082, -1.0458123683929443, 0.7003504633903503, -1.0355439186096191, -1.778794765472412, -1.335074782371521, -2.301767110824585, -2.286442995071411, 0.7659143209457397, -0.40194499492645264, -0.45878538489341736, 2.0702178478240967, -1.0394448041915894, -1.7346253395080566, 1.1886935234069824, 0.3284780979156494, -0.052007608115673065, 2.389084815979004, 0.2669655978679657, -0.8196721076965332, 0.5078524947166443, -0.7851302027702332, 0.7195801734924316, -0.42298585176467896, 1.3586766719818115, 0.48480984568595886, -1.0653661489486694, 1.5628772974014282, -0.40902093052864075, 0.5853561162948608, -0.6946682929992676, -0.5038411021232605, -0.770048201084137, 0.30505818128585815, 1.9074492454528809, -0.3128504157066345, 1.6443171501159668, -0.2944888770580292, -1.5279629230499268, -1.5372153520584106, 0.8535168766975403, 0.452558308839798, -0.7630210518836975, 0.15125980973243713, -0.3235165476799011, 0.15537410974502563, -0.10757008194923401, 1.0973501205444336, 1.2581760883331299, 0.6606218814849854, -0.21966037154197693, -0.9009806513786316, 0.24328558146953583, -0.050310470163822174, -0.6610140800476074, -1.74073326587677, -0.31483882665634155, 0.2059582769870758, 0.6297764182090759, -1.3244811296463013, 1.7119083404541016, 0.8687866926193237, 1.9022504091262817, 1.0048344135284424, -0.26636528968811035, 1.497260570526123, 0.11430768668651581, 1.9192893505096436, -0.41344189643859863, 0.7305448055267334, -0.39072689414024353, -1.1448986530303955, 0.7700598835945129, -0.33505260944366455, -2.0327911376953125, -0.7440184354782104, -0.8363615274429321, -0.11556665599346161, -0.7748039364814758, 0.9774603843688965, -0.2595002353191376, -1.456521987915039, 0.2677432894706726, -0.6918747425079346, 0.17351213097572327, -1.3198529481887817, 0.2664578855037689, 0.7665080428123474, -0.5239342451095581, 0.05639997869729996, -0.2353290319442749, -1.352465033531189, -0.37842828035354614, 0.337568074464798, 1.840748906135559, -0.7896090745925903, 0.967467725276947, 1.0546506643295288, -0.6910171508789062, 0.005788237787783146, 0.3685969114303589, -0.29952168464660645, 0.819034993648529, -1.0503782033920288, -0.35051417350769043, 1.1982547044754028, -0.21445313096046448, -0.6672415733337402, 1.390181064605713, 0.7675427794456482, -1.0194522142410278, -0.20599421858787537, -0.17461968958377838, -0.7863460183143616, 0.0453798845410347, -1.6446306705474854, -0.0909966453909874, 0.34031176567077637, -1.5440361499786377, -0.4633299708366394, -0.18835701048374176, 1.3118805885314941, -0.21346095204353333, 1.3717306852340698, -0.332043319940567, -0.11669635772705078, -0.3867879807949066, -0.48446962237358093, 0.14197677373886108, -0.25276240706443787, -0.6989532113075256, 0.22508971393108368, -0.7315403819084167, 0.3450908660888672, 1.406290888786316, 0.40870431065559387, 0.015570195391774178, 0.5593597292900085, 1.1420687437057495, 0.3272337019443512, -0.055336080491542816, -0.8402721881866455, -1.6176385879516602, 1.9859665632247925, -1.4973727464675903, 2.0407235622406006, 0.6900739073753357, -0.06670031696557999, -1.752943515777588, -1.9328163862228394, 1.4025148153305054, 1.1256201267242432, 2.3412318229675293, 0.6154168248176575, 0.4680095613002777, -0.8393359184265137, -0.7130740880966187, 0.3182889521121979, -1.004496455192566, -0.7090460658073425, 0.12454726547002792, 2.409184455871582, 1.6901628971099854, -0.4478294253349304, -0.21330086886882782, -1.0374687910079956, 1.3706775903701782, -0.16048510372638702, 0.2580065429210663, 1.9529976844787598, -0.3280493915081024, -1.0470010042190552, 1.2249274253845215, -2.3247108459472656, 0.15697143971920013, 2.0198633670806885, 0.21615974605083466, 0.048868730664253235, -1.354228138923645, -0.7188133597373962, -0.24011005461215973, -0.382786363363266, -1.2716017961502075, 0.45970791578292847, -0.22142094373703003, -0.8221122026443481, -1.3954331874847412, 0.1614299714565277, -1.0955511331558228, -1.6582682132720947, 0.298567533493042, 1.8965308666229248, 2.0308549404144287, -0.7733550667762756, 1.5574159622192383, -0.2196168154478073, 0.26142993569374084, 1.2405661344528198, 1.228166103363037, 3.0829050540924072, 1.8745691776275635, -1.2827829122543335, 0.6656452417373657, -0.06346464157104492, -0.4328470528125763, 1.2224560976028442, -1.139815092086792, 1.2782987356185913, -0.11211922019720078, -1.158095359802246, -1.266032099723816, 0.8847187757492065, 0.47565725445747375, -0.005029782187193632, -0.4576355516910553, 1.203210711479187, 0.031122678890824318, 1.3731582164764404, 0.5300306677818298, -0.33072027564048767, 0.5987908244132996, -0.4624147415161133, -0.557585597038269, 1.5319194793701172, 0.1006801500916481, -1.428497076034546, -2.352846145629883, -0.24671684205532074, -0.8373541831970215, 0.036832816898822784, -0.6729267835617065, -0.9828786849975586, 1.6478782892227173, 0.3993445932865143, -1.1642745733261108, -0.214264914393425, -0.4006972014904022, -0.5921993851661682, 2.741769552230835, -1.4678828716278076, -0.2401147037744522, -1.0093047618865967, -0.6129139065742493, 1.6500985622406006, -1.108383297920227, -0.16669441759586334, -1.081681251525879, -0.5926570892333984, -1.3121721744537354, -0.5611118674278259, -0.08987388014793396, -0.9109227657318115, 0.8417766690254211, 0.1777476817369461, -1.1960772275924683, -0.2921184003353119, -0.9430212378501892, 0.8747727274894714, -0.14531587064266205, 0.21419115364551544, 1.8433270454406738, 0.45832380652427673, -0.3561059534549713, 0.7709029316902161, 1.1803412437438965, 0.6225634217262268, -0.6429191827774048, 0.207729309797287, -0.654047429561615, 0.3084353804588318, -1.3175392150878906, 0.21464164555072784, -2.8312370777130127, 0.6134762763977051, -0.08681666105985641, -0.05759196728467941, -0.0484040230512619, -1.3182607889175415, 1.1011008024215698, 2.5706913471221924, -1.1789791584014893, 0.544662356376648, 0.35024556517601013, 1.2344390153884888, -1.685644507408142, 0.2411109060049057, -0.4746650457382202, 2.1656768321990967, 0.17672154307365417, 1.1498645544052124, -0.4857432544231415, -2.301107406616211, 0.6254973411560059, -1.2188305854797363, -1.1791495084762573, 0.8300341367721558, -0.8965662717819214, 0.13267987966537476, -1.3384343385696411, -0.1939830332994461, -0.8544744253158569, -1.2600411176681519, 0.7137172222137451, 0.11852774769067764, 0.5261819362640381, -0.5828032493591309, 0.3721652925014496, -2.2223896980285645, -1.3212825059890747, -0.30003780126571655, -0.8859884738922119, 0.4953504204750061, -0.2722949981689453, 0.7057578563690186, -0.1803566813468933, 0.038250185549259186, 0.3165383040904999, 1.360379934310913, 3.37692928314209, 0.23027577996253967, 0.3367948532104492, -0.1621212661266327, -0.9232312440872192, 1.4312610626220703, 0.985640287399292, -0.16631630063056946, -0.5485324859619141, -1.0062133073806763, 1.3050739765167236, 2.0114831924438477, 1.0292218923568726, 0.015824129804968834, -0.8059641122817993, -0.7397266626358032, 0.02828020043671131, 0.1264890432357788, 0.4939402937889099, 0.811103880405426, 0.054329581558704376, 0.09483164548873901, 1.4429932832717896, 1.165030598640442, -0.3967520296573639, 0.34021517634391785, -0.8306880593299866, -0.4069962501525879, 0.5126951932907104, 0.310013085603714, 0.002180294133722782, 0.34163132309913635, -0.9809337854385376, -0.21228955686092377, -0.3086736500263214, -0.9239451289176941, -0.7624775171279907, -0.47091713547706604, -0.33823806047439575, 1.6882165670394897, 0.09453888982534409, -0.4515412151813507, -0.04905591160058975, -0.7418160438537598, -0.07657258957624435, -1.1155421733856201, 0.2848927676677704, -0.20606164634227753, -0.04092460125684738, -0.11009281128644943, 1.7655870914459229, -0.9698124527931213, -2.0849997997283936, 0.16772659122943878, 0.26437246799468994, -0.34457728266716003, 0.09134132415056229, 1.702368140220642, 0.5850165486335754, 1.4143922328948975, 1.3826247453689575, 0.9871188402175903, -0.7630141377449036, -1.2645597457885742, 0.6241649389266968, 0.9883295893669128, -1.373220443725586, 0.8266895413398743, 0.028058292344212532, -0.5288277864456177, 0.6023676991462708, 1.333212971687317, 0.4775618016719818, -1.9360108375549316, 0.7732927799224854, -0.9785604476928711, 0.8005495667457581, 0.6865019202232361, 0.7691841721534729, 0.16963264346122742, 0.8287918567657471, -1.2392481565475464, -1.140206217765808, -0.7419173121452332, -0.5901367664337158, 1.8864710330963135, -0.26236265897750854, 0.5538081526756287, -0.11870896816253662, -1.2348649501800537, -0.0300130657851696, 0.7502868175506592, 0.36866995692253113, -0.34607774019241333, 0.7918882966041565, -0.6234248280525208, -1.0958993434906006, -1.381780743598938, -0.4401191174983978, -0.9974446892738342, -0.9493047595024109, 0.9902819991111755, 0.7906444072723389, 0.34116414189338684, 1.8716989755630493, 0.7073065638542175, 0.2149973064661026, -2.598006248474121, 0.8899824619293213, 0.35806146264076233, -0.07784541696310043, 0.8257451057434082, 0.2823833227157593, 1.0912531614303589, -0.0661817342042923, 0.532255232334137, -2.402967929840088, 2.1833624839782715, -0.2977157235145569, 0.7000290155410767, 0.02901768498122692, -0.0877092182636261, 0.9984871745109558, 0.4889557659626007, 0.50001460313797, -1.0469104051589966, 0.8010579943656921, -0.633042573928833, 1.268800973892212, 0.9988263249397278, -0.8491541147232056, 0.046608440577983856, 1.3150568008422852, 0.42282313108444214, -0.5127835869789124, -0.9404679536819458, -0.9158093333244324, 0.9281107187271118, 1.783814549446106, -0.0673675388097763, -0.010378669016063213, 0.9522050619125366, 0.6740729212760925, -1.3096041679382324, 0.05266369879245758, -0.7052620649337769, -0.7608006596565247, 1.7305470705032349, 2.0418996810913086, -0.08583573251962662, -0.20225875079631805, -0.7721133828163147, -1.2005658149719238, 0.7950988411903381, 0.030015932396054268, 0.05744652450084686, 0.762488603591919, -0.6551693677902222, 1.0767467021942139, 0.8079397082328796, 0.8820428848266602, 0.1398434191942215, 0.2698299288749695, 0.3983282446861267, -0.3067956268787384, -1.1565126180648804, -0.2977026104927063, -1.0325292348861694, -2.5572221279144287, 0.5351974368095398, -0.2312811315059662, -1.424999475479126, 0.02233297936618328, -1.0447226762771606, 0.9659624695777893, -0.5817076563835144, -1.1676942110061646, -1.5020791292190552, 0.18720707297325134, -0.10584268718957901, 0.7884066104888916, -1.5424401760101318, -0.15872757136821747, 1.278956651687622, 1.0212794542312622, -0.6574798226356506, 1.0810660123825073, 0.21610073745250702, 1.0586916208267212, 0.8527988195419312, -0.3858155906200409, 0.531627357006073, 0.06267204135656357, -1.3769512176513672, 0.5224253535270691, 1.2611883878707886, 0.18069860339164734, 1.4922306537628174, -0.5719150304794312, -0.003042696975171566, 0.4107430875301361, -0.4222097396850586, -0.5130255222320557, -0.6296103596687317, 0.7395349740982056, 0.10413883626461029, -0.9217483401298523, 0.02095845155417919, -0.06912064552307129, -0.24638216197490692, 0.2553231418132782, -1.4923129081726074, -0.15833216905593872, -0.3730427622795105, -0.6495159864425659, -1.2487431764602661, -0.04669739305973053, 1.3620649576187134, -0.804159939289093, -0.16689789295196533, 0.5584443211555481, 0.26780056953430176, 0.4921271800994873, 0.6053728461265564, -0.7023662328720093, -0.3205619156360626, -0.29191458225250244, -0.34813496470451355, 0.37684887647628784, 1.3080809116363525, -0.0690435990691185, -1.071130394935608, 0.6597278118133545, -0.3147185444831848, 0.10079267621040344, 1.926643967628479, 0.04251408576965332, -0.7959539294242859, 0.31767943501472473, -0.7778903841972351, 1.9802473783493042, 1.6525707244873047, 1.4076505899429321, -0.14771749079227448, -1.0327256917953491, 0.6607454419136047, -0.3303089439868927, -0.41940975189208984, 0.9213992357254028, 0.44188642501831055, -0.16662651300430298, -1.3557292222976685, 0.6514699459075928, 1.2235398292541504, -0.8481411933898926, -0.8186823725700378, 0.1332082748413086, -0.8478094935417175, 1.0884217023849487, 0.6385527849197388, 0.2890838086605072, 0.3091229796409607, 1.6916478872299194, 0.765016496181488, -0.5256475210189819, 0.5025550127029419, 0.48455139994621277, -0.21587809920310974, -2.0884745121002197, -1.119793176651001, 0.3620825707912445, -0.44765329360961914, -1.576351523399353, 1.418710708618164, -1.1729260683059692, -0.9281602501869202, 0.5413286089897156, 0.09840908646583557, 1.3840203285217285, 0.2678612470626831, 1.5811817646026611, 2.0687406063079834, 0.8245373368263245, 0.3655453026294708, 1.2570034265518188, -0.2623148560523987, -0.47467997670173645, 1.7663466930389404, -0.46692150831222534, 0.5047104954719543, 1.0546945333480835, -0.37425118684768677, -1.0862218141555786, -0.7925693988800049, -1.2334014177322388, -0.6929425001144409, 1.1512186527252197, 0.08312219381332397, -1.1587879657745361, 0.2153152972459793, 1.6021875143051147, 0.07061109691858292, -0.3715023994445801, 0.6456467509269714, 0.39995795488357544, -0.7864627838134766, -0.08816105127334595, -0.9832684993743896, 0.5476675033569336, -0.1304851919412613, -0.2593097686767578, 0.22870314121246338, 0.5240474939346313, 1.2718939781188965, -0.007204894907772541, 0.16743427515029907, 1.2545613050460815, -1.294317364692688, 1.489782691001892, -0.7427693009376526, 0.2826246917247772, -2.36761474609375, 1.3945480585098267, -0.8509272933006287, 1.8376553058624268, -2.605945587158203, 0.4473058879375458, -0.5000710487365723, -0.41082221269607544, 0.2889515161514282, -0.3494740128517151, 0.1512305587530136, -0.08300162106752396, -1.1492736339569092, -0.07456009835004807, -0.7634322047233582, 0.6058276295661926, 1.1360740661621094, 1.3225681781768799, -1.0994608402252197, -0.3076348602771759, -1.7164325714111328, -0.18807819485664368, -0.7234684824943542, 0.300161749124527, -1.9391666650772095, -0.17249897122383118, -1.9940673112869263, -2.4634106159210205, -1.4110363721847534, -0.7850093245506287, 1.1010432243347168, 0.0977637842297554, -0.9745186567306519, 1.1722359657287598, -0.3477318584918976, -1.7849032878875732, 1.1718957424163818, -2.166733741760254 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
Hi @albertvillanova, Thanks for your response. Yes, I tried the `split='validation'` as well. But getting the same issue.
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
959
18
Unable to load dataset 'big_patent' ## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0 Hi @albertvillanova, Thanks for your response. Yes, I tried the `split='validation'` as well. But getting the same issue.
[ -1.1941391229629517, -0.8636878132820129, -0.765353262424469, 1.4725230932235718, -0.15544293820858002, -1.1891350746154785, 0.14219550788402557, -0.9951003193855286, 1.7418303489685059, -0.7481470704078674, 0.2602355182170868, -1.694483757019043, -0.0034279339015483856, -0.6479270458221436, -0.7253924012184143, -0.8652037978172302, -0.30107980966567993, -0.665913462638855, 1.0443342924118042, 2.530848503112793, 1.0842100381851196, -1.3439809083938599, 2.6879281997680664, 0.7003557085990906, -0.21319259703159332, -0.9778833389282227, 0.4414292275905609, -0.03262349218130112, -1.2531064748764038, -0.41863080859184265, -0.8934856057167053, -0.01312515139579773, -0.5759286284446716, -0.604154109954834, 0.007089077495038509, 0.4552435278892517, -0.3277204632759094, -0.45384296774864197, -0.4383954107761383, -0.8969686031341553, 0.4044252634048462, -0.4364791810512543, 0.8933612108230591, -0.33279311656951904, 1.8243968486785889, -0.5528481602668762, 0.4296407997608185, 0.7354395985603333, 1.2854912281036377, 0.15119527280330658, -0.031681161373853683, 0.4337906241416931, 0.3490462601184845, -0.017823951318860054, 0.4319847524166107, 1.0921000242233276, 0.5549989342689514, 0.4112626314163208, 0.7880446910858154, -2.2848472595214844, 1.348336935043335, -0.9960421323776245, 0.19337071478366852, 1.344969391822815, -1.0365771055221558, 0.3919632136821747, -1.7540754079818726, -0.00484933378174901, 0.5026301741600037, -2.212366819381714, 0.322422057390213, -1.317759394645691, -0.490028977394104, 0.93320232629776, 0.33858513832092285, -1.2277843952178955, 0.1105828657746315, -0.4479195475578308, 1.0009771585464478, 0.4418802261352539, 1.061754584312439, -1.741409420967102, -0.09771594405174255, -0.2701109051704407, 0.17536205053329468, -1.4123830795288086, -1.495937466621399, 0.5098864436149597, 0.6225259304046631, 0.7196246385574341, -0.05690516531467438, 0.9740285277366638, -1.059880018234253, 0.6582357883453369, -1.009830355644226, -1.7674163579940796, -1.3105053901672363, -2.31451678276062, -2.300724744796753, 0.7304293513298035, -0.4010430574417114, -0.47457632422447205, 2.090319871902466, -1.0749181509017944, -1.756908655166626, 1.2026276588439941, 0.2551916837692261, -0.054127275943756104, 2.3802452087402344, 0.27391165494918823, -0.8195242285728455, 0.5169985294342041, -0.8007692694664001, 0.7052626013755798, -0.4808110296726227, 1.4043775796890259, 0.4853959381580353, -0.9990166425704956, 1.608299732208252, -0.3877919912338257, 0.5989437699317932, -0.7032060027122498, -0.4732697606086731, -0.796734094619751, 0.29927536845207214, 1.939721703529358, -0.2651534378528595, 1.6211538314819336, -0.35473960638046265, -1.539848804473877, -1.5369656085968018, 0.884455680847168, 0.43180933594703674, -0.7475264668464661, 0.18275271356105804, -0.2951369881629944, 0.18573632836341858, -0.1273462176322937, 1.0737916231155396, 1.2846546173095703, 0.6444891095161438, -0.18140721321105957, -0.941235363483429, 0.24568264186382294, -0.052655767649412155, -0.6619224548339844, -1.7871748208999634, -0.29913008213043213, 0.17192520201206207, 0.7042814493179321, -1.295733094215393, 1.6653624773025513, 0.8618167638778687, 1.8685753345489502, 1.019116759300232, -0.26045823097229004, 1.4602426290512085, 0.13681140542030334, 1.8966212272644043, -0.43019986152648926, 0.7360776662826538, -0.41429537534713745, -1.1025859117507935, 0.7889170050621033, -0.31815826892852783, -1.983549952507019, -0.7125881314277649, -0.83943110704422, -0.1678534597158432, -0.7724156379699707, 1.0206059217453003, -0.28991302847862244, -1.417157530784607, 0.32812944054603577, -0.7211515307426453, 0.24315772950649261, -1.2809258699417114, 0.2741032540798187, 0.7601720690727234, -0.4910133183002472, 0.10665535926818848, -0.2576966881752014, -1.3856240510940552, -0.39722636342048645, 0.35940074920654297, 1.8292373418807983, -0.8097264766693115, 0.956801176071167, 0.9720759987831116, -0.6368606686592102, -0.057806532829999924, 0.383296936750412, -0.2656494081020355, 0.808495819568634, -1.087570071220398, -0.3324858546257019, 1.1845380067825317, -0.26467010378837585, -0.6160412430763245, 1.414236307144165, 0.8172687292098999, -0.9996412396430969, -0.17835907638072968, -0.1845659613609314, -0.7927904725074768, 0.036596037447452545, -1.7005650997161865, -0.15359698235988617, 0.3837566375732422, -1.5393612384796143, -0.471346378326416, -0.19038040935993195, 1.2861690521240234, -0.14779138565063477, 1.3525660037994385, -0.3123386800289154, -0.13532483577728271, -0.3774794638156891, -0.47997918725013733, 0.17035913467407227, -0.22319984436035156, -0.6753540635108948, 0.1930609941482544, -0.7433410882949829, 0.3976595997810364, 1.3946837186813354, 0.37482666969299316, 0.016984526067972183, 0.5752455592155457, 1.171826958656311, 0.3154902756214142, -0.03992462903261185, -0.8391788601875305, -1.608808159828186, 2.017707347869873, -1.5357356071472168, 2.0499022006988525, 0.6625860929489136, -0.028772268444299698, -1.7776179313659668, -1.90580153465271, 1.4540104866027832, 1.129347562789917, 2.2749366760253906, 0.6293902397155762, 0.42568251490592957, -0.8528108596801758, -0.6533886194229126, 0.2622814476490021, -1.0146028995513916, -0.7143322825431824, 0.12905165553092957, 2.3973419666290283, 1.6930277347564697, -0.44708794355392456, -0.23032988607883453, -1.0321201086044312, 1.3810639381408691, -0.1687401831150055, 0.25413694977760315, 1.930310845375061, -0.2889317274093628, -1.0657824277877808, 1.1843852996826172, -2.324345827102661, 0.13406027853488922, 2.0258755683898926, 0.1686560958623886, 0.09563896059989929, -1.3882170915603638, -0.7808263897895813, -0.2371719628572464, -0.3306680917739868, -1.290917158126831, 0.4975055158138275, -0.2661654055118561, -0.8165461421012878, -1.4339648485183716, 0.1991037279367447, -1.0984218120574951, -1.672756314277649, 0.31210318207740784, 1.9130297899246216, 2.0314078330993652, -0.7470739483833313, 1.595043659210205, -0.1602855920791626, 0.3031328618526459, 1.2804806232452393, 1.1720056533813477, 3.0583994388580322, 1.8876092433929443, -1.2250745296478271, 0.6015275716781616, -0.029050182551145554, -0.4364207684993744, 1.2614151239395142, -1.1279098987579346, 1.2748621702194214, -0.11799392104148865, -1.1485357284545898, -1.2254765033721924, 0.8455922603607178, 0.4462738335132599, -0.005269873421639204, -0.42482060194015503, 1.2375458478927612, -0.03360498324036598, 1.3422605991363525, 0.5218268036842346, -0.3083927631378174, 0.6298526525497437, -0.5181760787963867, -0.47928375005722046, 1.516013741493225, 0.11286193877458572, -1.441762089729309, -2.340933322906494, -0.22190162539482117, -0.7876114249229431, 0.01890387386083603, -0.655857264995575, -1.0140191316604614, 1.6179139614105225, 0.396100789308548, -1.1440467834472656, -0.19313742220401764, -0.408196359872818, -0.6116743087768555, 2.7446396350860596, -1.4957911968231201, -0.28672975301742554, -1.0356593132019043, -0.5807674527168274, 1.6510021686553955, -1.1269395351409912, -0.13518120348453522, -1.0963194370269775, -0.5008728504180908, -1.3572800159454346, -0.5705779790878296, -0.1359550803899765, -0.9115874171257019, 0.820792555809021, 0.2514120042324066, -1.1936283111572266, -0.27554601430892944, -0.9419593214988708, 0.8153981566429138, -0.1262635737657547, 0.24920319020748138, 1.8627082109451294, 0.45888224244117737, -0.3771350085735321, 0.7879980802536011, 1.14116370677948, 0.6431980133056641, -0.6401762366294861, 0.2104969024658203, -0.6142069697380066, 0.3051524758338928, -1.320725917816162, 0.2524731457233429, -2.8194785118103027, 0.614202082157135, -0.06869959086179733, -0.08759783208370209, -0.023052651435136795, -1.3154222965240479, 1.0999736785888672, 2.599055528640747, -1.2341874837875366, 0.5589697957038879, 0.29070359468460083, 1.2855175733566284, -1.6824461221694946, 0.2691187560558319, -0.4383080005645752, 2.195173978805542, 0.20512457191944122, 1.1689486503601074, -0.4853299558162689, -2.385260581970215, 0.6420262455940247, -1.2362933158874512, -1.221861720085144, 0.7398163676261902, -0.8533564209938049, 0.06317067891359329, -1.3450167179107666, -0.17221024632453918, -0.9252025485038757, -1.2742326259613037, 0.7287558913230896, 0.16820260882377625, 0.5214181542396545, -0.5660243034362793, 0.3345062732696533, -2.1867706775665283, -1.3093489408493042, -0.28183990716934204, -0.9029464721679688, 0.5102165341377258, -0.2868749499320984, 0.7229645252227783, -0.22785885632038116, 0.023507550358772278, 0.32377567887306213, 1.400781512260437, 3.4255166053771973, 0.20217591524124146, 0.3729868233203888, -0.20589424669742584, -0.8957384824752808, 1.407618761062622, 1.0346380472183228, -0.1745515614748001, -0.5772870779037476, -1.0296438932418823, 1.2803843021392822, 2.0137786865234375, 0.9501259922981262, 0.025835275650024414, -0.7402607202529907, -0.6984763741493225, 0.023131489753723145, 0.1023087427020073, 0.4949049651622772, 0.8343511819839478, 0.11743906885385513, 0.022540491074323654, 1.402235984802246, 1.1496505737304688, -0.4297003448009491, 0.2973204255104065, -0.8002853393554688, -0.3576003909111023, 0.5534430146217346, 0.3250454366207123, -0.06432752311229706, 0.30806902050971985, -0.9412164688110352, -0.20096425712108612, -0.3082934319972992, -0.9749664068222046, -0.7914295792579651, -0.4379505217075348, -0.32124724984169006, 1.6609556674957275, 0.16672572493553162, -0.49182379245758057, -0.10641298443078995, -0.7166626453399658, -0.03852035105228424, -1.0628350973129272, 0.2989305555820465, -0.23684491217136383, -0.03958963602781296, -0.041724395006895065, 1.777492880821228, -0.9781869053840637, -2.084446907043457, 0.17593444883823395, 0.20683033764362335, -0.3333396017551422, 0.1301250010728836, 1.668813943862915, 0.6167330145835876, 1.4272773265838623, 1.4075788259506226, 0.9635258913040161, -0.7986258268356323, -1.2677785158157349, 0.6301286816596985, 0.8997350931167603, -1.4371464252471924, 0.8001776337623596, 0.07112738490104675, -0.5386003851890564, 0.6247415542602539, 1.3447184562683105, 0.5182432532310486, -1.9316186904907227, 0.7140557169914246, -0.9775114059448242, 0.8167753219604492, 0.7178588509559631, 0.7773913145065308, 0.2262047976255417, 0.8412541151046753, -1.212367057800293, -1.126465916633606, -0.7392227053642273, -0.628451943397522, 1.877286672592163, -0.2921648621559143, 0.5663889646530151, -0.11329228430986404, -1.2087241411209106, -0.041743114590644836, 0.7099120020866394, 0.33516570925712585, -0.3100738525390625, 0.7610358595848083, -0.6633954644203186, -1.1772382259368896, -1.3544431924819946, -0.5209748148918152, -0.9467512369155884, -0.9697411060333252, 0.9709102511405945, 0.8162081837654114, 0.31486043334007263, 1.8601254224777222, 0.6914158463478088, 0.15810726583003998, -2.5967934131622314, 0.8889393210411072, 0.3461289703845978, -0.03329731523990631, 0.8219958543777466, 0.2743029296398163, 1.0859966278076172, -0.08215394616127014, 0.5609056949615479, -2.413214683532715, 2.2191646099090576, -0.32694482803344727, 0.7049220204353333, -0.0064987484365701675, -0.06435482203960419, 1.0335469245910645, 0.4691390097141266, 0.49846598505973816, -1.0178406238555908, 0.840336263179779, -0.6593234539031982, 1.2798620462417603, 1.0218836069107056, -0.8590391874313354, 0.05325154960155487, 1.32247793674469, 0.3982876241207123, -0.5453049540519714, -0.9568660259246826, -0.9201954007148743, 0.9064618945121765, 1.8100824356079102, -0.1141565665602684, -0.05094122141599655, 0.9064730405807495, 0.6604066491127014, -1.3211795091629028, 0.054875850677490234, -0.6639230251312256, -0.7673079371452332, 1.7201404571533203, 2.0104312896728516, -0.08260471373796463, -0.1697590947151184, -0.7921287417411804, -1.1782258749008179, 0.7937159538269043, 0.08519907295703888, 0.01002481672912836, 0.7007811069488525, -0.6258175373077393, 1.0731133222579956, 0.8204171061515808, 0.8844315409660339, 0.11195839196443558, 0.34609735012054443, 0.4134719967842102, -0.3434680104255676, -1.1626302003860474, -0.29683977365493774, -1.0718753337860107, -2.51678729057312, 0.5243052244186401, -0.24956274032592773, -1.4595483541488647, 0.05185696482658386, -1.0225696563720703, 0.9541767239570618, -0.5598403811454773, -1.1943613290786743, -1.498956322669983, 0.11854752153158188, -0.12562137842178345, 0.8037446737289429, -1.563963770866394, -0.10049694776535034, 1.3256725072860718, 1.025572419166565, -0.6366291046142578, 1.1082313060760498, 0.2079065889120102, 1.0653409957885742, 0.8859807848930359, -0.3852194547653198, 0.5001457929611206, 0.05863010883331299, -1.3553837537765503, 0.5659865140914917, 1.2458758354187012, 0.17864970862865448, 1.4751811027526855, -0.563292920589447, -0.03865543752908707, 0.4085407555103302, -0.43793782591819763, -0.4671320617198944, -0.5985969305038452, 0.7494271993637085, 0.13653166592121124, -0.8378450870513916, -0.0013877833262085915, -0.0680752694606781, -0.266147643327713, 0.2750096917152405, -1.5657356977462769, -0.17765015363693237, -0.4226185381412506, -0.6622448563575745, -1.221388578414917, -0.09056970477104187, 1.3459067344665527, -0.7354100942611694, -0.19202996790409088, 0.5519384741783142, 0.281833291053772, 0.48550766706466675, 0.5890775918960571, -0.6956449151039124, -0.3790019154548645, -0.2871403992176056, -0.39796024560928345, 0.38105878233909607, 1.2657363414764404, -0.07317838817834854, -1.1030497550964355, 0.6572251319885254, -0.32880717515945435, 0.1018313616514206, 1.89959716796875, -0.03310259059071541, -0.8245103359222412, 0.3009835183620453, -0.780960202217102, 2.0231738090515137, 1.6295785903930664, 1.3462833166122437, -0.16240398585796356, -1.0613960027694702, 0.6475746631622314, -0.2877821624279022, -0.4060533344745636, 0.8839995265007019, 0.4769797623157501, -0.19362156093120575, -1.3165411949157715, 0.6778566837310791, 1.18898344039917, -0.858672559261322, -0.8245651721954346, 0.09215426445007324, -0.8052100539207458, 1.0727119445800781, 0.6497312784194946, 0.29592397809028625, 0.31283891201019287, 1.7105050086975098, 0.7383214235305786, -0.5419822931289673, 0.5227857232093811, 0.45734354853630066, -0.20356927812099457, -2.132892608642578, -1.1147781610488892, 0.3659173846244812, -0.4140971302986145, -1.6271814107894897, 1.3972607851028442, -1.169701099395752, -0.8751011490821838, 0.5343002676963806, 0.14247894287109375, 1.4056987762451172, 0.2670454680919647, 1.5391020774841309, 2.0312087535858154, 0.7753609418869019, 0.4095921516418457, 1.245973825454712, -0.26245588064193726, -0.516550600528717, 1.8074637651443481, -0.49377691745758057, 0.5538529753684998, 1.0743708610534668, -0.3584127724170685, -1.0851889848709106, -0.7854878306388855, -1.2447319030761719, -0.6688253283500671, 1.1536294221878052, 0.09852375090122223, -1.1873258352279663, 0.21015331149101257, 1.5991113185882568, 0.10074354708194733, -0.3835151195526123, 0.6064465641975403, 0.4068107008934021, -0.7849834561347961, -0.10568433254957199, -0.9735199809074402, 0.5425125360488892, -0.14822344481945038, -0.24287866055965424, 0.3126636743545532, 0.5121527314186096, 1.2449982166290283, 0.022256046533584595, 0.17529384791851044, 1.3125476837158203, -1.302615761756897, 1.4925451278686523, -0.7262185215950012, 0.2669401168823242, -2.3523991107940674, 1.3799198865890503, -0.8181911706924438, 1.8956018686294556, -2.6181700229644775, 0.39235880970954895, -0.569360077381134, -0.40061184763908386, 0.2753874957561493, -0.2837708294391632, 0.16240397095680237, -0.11225336045026779, -1.113441824913025, -0.05412730574607849, -0.7640982866287231, 0.565521240234375, 1.1517261266708374, 1.3235622644424438, -1.0600024461746216, -0.20818577706813812, -1.714646577835083, -0.20211495459079742, -0.7447963953018188, 0.322907030582428, -1.9592872858047485, -0.13768449425697327, -1.9966332912445068, -2.445727586746216, -1.4063150882720947, -0.7848491072654724, 1.1143723726272583, 0.06698209792375565, -0.9144259691238403, 1.1897084712982178, -0.3152676224708557, -1.7409015893936157, 1.1282519102096558, -2.1327004432678223 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
I'm sorry, but I can't reproduce your problem: ```python In [5]: ds = load_dataset("big_patent", "d", split="validation") Downloading and preparing dataset big_patent/d (download: 6.01 GiB, generated: 169.61 MiB, post-processed: Unknown size, total: 6.17 GiB) to .../.cache/big_patent/d/1.0.0/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.45G/6.45G [27:36<00:00, 3.89MB/s] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [03:18<00:00, 66.08s/it] Dataset big_patent downloaded and prepared to .../.cache/big_patent/d/1.0.0/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c. Subsequent calls will reuse this data. In [6]: ds Out[6]: Dataset({ features: ['description', 'abstract'], num_rows: 565 })
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
959
72
Unable to load dataset 'big_patent' ## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0 I'm sorry, but I can't reproduce your problem: ```python In [5]: ds = load_dataset("big_patent", "d", split="validation") Downloading and preparing dataset big_patent/d (download: 6.01 GiB, generated: 169.61 MiB, post-processed: Unknown size, total: 6.17 GiB) to .../.cache/big_patent/d/1.0.0/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.45G/6.45G [27:36<00:00, 3.89MB/s] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [03:18<00:00, 66.08s/it] Dataset big_patent downloaded and prepared to .../.cache/big_patent/d/1.0.0/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c. Subsequent calls will reuse this data. In [6]: ds Out[6]: Dataset({ features: ['description', 'abstract'], num_rows: 565 })
[ -1.1916494369506836, -0.8267470002174377, -0.7258738875389099, 1.3974298238754272, -0.17519748210906982, -1.1635854244232178, 0.1949690282344818, -1.0624064207077026, 1.6784957647323608, -0.6763592958450317, 0.2324453890323639, -1.6469682455062866, -0.01774629019200802, -0.5261496901512146, -0.7386916875839233, -0.8374624848365784, -0.3681398928165436, -0.7498326301574707, 1.0261485576629639, 2.5954015254974365, 1.1313107013702393, -1.4018405675888062, 2.695800542831421, 0.6790928840637207, -0.26061511039733887, -0.9775300025939941, 0.5068430304527283, 0.019866639748215675, -1.3259544372558594, -0.3829324245452881, -0.9190686345100403, -0.01051890105009079, -0.5777360796928406, -0.4907640218734741, 0.043045446276664734, 0.4358932375907898, -0.28699108958244324, -0.41103395819664, -0.48012277483940125, -0.8158891201019287, 0.46007925271987915, -0.4232984185218811, 0.882191002368927, -0.2937700152397156, 1.748660922050476, -0.575100839138031, 0.4564371705055237, 0.762256383895874, 1.2255481481552124, 0.15949320793151855, 0.058772012591362, 0.3984447419643402, 0.3467501401901245, -0.015202034264802933, 0.43502193689346313, 1.1840438842773438, 0.5900461077690125, 0.36946314573287964, 0.7373756170272827, -2.252512216567993, 1.3018953800201416, -0.9219086170196533, 0.26544398069381714, 1.3376200199127197, -0.9613155722618103, 0.28761571645736694, -1.803775668144226, -0.025492288172245026, 0.5565873980522156, -2.2470760345458984, 0.36296969652175903, -1.3263895511627197, -0.5288064479827881, 0.9461675882339478, 0.348212867975235, -1.1663446426391602, 0.18340188264846802, -0.5065778493881226, 1.004316806793213, 0.43339306116104126, 1.1037722826004028, -1.701445460319519, -0.13163909316062927, -0.23585820198059082, 0.1577262580394745, -1.31650710105896, -1.5985020399093628, 0.5040637254714966, 0.6187822222709656, 0.6717026233673096, -0.09094227105379105, 1.00187087059021, -1.1083143949508667, 0.7510582804679871, -1.0293686389923096, -1.7557203769683838, -1.339928388595581, -2.3174407482147217, -2.2695963382720947, 0.7368027567863464, -0.36522117257118225, -0.4352761507034302, 2.0905263423919678, -1.003685712814331, -1.712221622467041, 1.1315279006958008, 0.3204635977745056, -0.06206858158111572, 2.3642773628234863, 0.25399285554885864, -0.7974062561988831, 0.514518678188324, -0.8076055645942688, 0.7277578115463257, -0.36349478363990784, 1.3880345821380615, 0.47324320673942566, -0.9186983108520508, 1.5549510717391968, -0.37647488713264465, 0.6102561354637146, -0.6864474415779114, -0.5104495286941528, -0.7951550483703613, 0.23208120465278625, 1.9640973806381226, -0.3380611836910248, 1.5521496534347534, -0.32785964012145996, -1.6221174001693726, -1.522749662399292, 0.857222318649292, 0.5461981296539307, -0.7791065573692322, 0.10652933269739151, -0.39163675904273987, 0.15524867177009583, -0.12819387018680573, 1.037045955657959, 1.2866958379745483, 0.7354731559753418, -0.2651824653148651, -0.9787388443946838, 0.20819047093391418, -0.10928386449813843, -0.7388591170310974, -1.8029499053955078, -0.27102985978126526, 0.16799616813659668, 0.6936386823654175, -1.2987966537475586, 1.6965638399124146, 0.8717833161354065, 1.93776535987854, 0.9807542562484741, -0.38951802253723145, 1.5368443727493286, 0.11017478257417679, 1.8671057224273682, -0.4684414565563202, 0.677243709564209, -0.3957708775997162, -1.110534429550171, 0.8359649777412415, -0.29122573137283325, -2.017033338546753, -0.7424947023391724, -0.7715715765953064, -0.20658618211746216, -0.7846986055374146, 0.9184389710426331, -0.2520543932914734, -1.5249536037445068, 0.21510851383209229, -0.6858232021331787, 0.13185560703277588, -1.222625732421875, 0.25133016705513, 0.7404175400733948, -0.5304873585700989, 0.06328358501195908, -0.2006215751171112, -1.31706702709198, -0.3936021029949188, 0.34456953406333923, 1.8034251928329468, -0.7151060700416565, 0.9765218496322632, 1.0939639806747437, -0.6544337272644043, 0.09613040834665298, 0.3470323979854584, -0.32288894057273865, 0.8353233933448792, -1.125154733657837, -0.35507258772850037, 1.1665804386138916, -0.19143825769424438, -0.5823469161987305, 1.4338279962539673, 0.7893491983413696, -1.0210580825805664, -0.20601755380630493, -0.10732124000787735, -0.7809963822364807, 0.08162049204111099, -1.6625317335128784, -0.18448269367218018, 0.3798573315143585, -1.549716591835022, -0.4788995385169983, -0.2697397768497467, 1.2835973501205444, -0.1763901710510254, 1.424721598625183, -0.2489168643951416, -0.09738320112228394, -0.3992316424846649, -0.3926619589328766, 0.15472713112831116, -0.2590368390083313, -0.6167041063308716, 0.2380911111831665, -0.814817488193512, 0.33796805143356323, 1.4975205659866333, 0.34755396842956543, 0.0413939543068409, 0.5012927055358887, 1.1171977519989014, 0.38147231936454773, -0.04992884397506714, -0.8410730361938477, -1.6044563055038452, 2.0134801864624023, -1.5364793539047241, 1.9960676431655884, 0.7558712959289551, -0.052824851125478745, -1.7945605516433716, -1.9547715187072754, 1.3648123741149902, 1.0720621347427368, 2.363743543624878, 0.5639894008636475, 0.4514158070087433, -0.7323580384254456, -0.6956748962402344, 0.3091202974319458, -1.0051814317703247, -0.6844958066940308, 0.15972712635993958, 2.4074149131774902, 1.670310378074646, -0.48977410793304443, -0.2194984257221222, -0.9755128026008606, 1.3643590211868286, -0.11187612265348434, 0.25511497259140015, 2.003833532333374, -0.23008832335472107, -1.047561764717102, 1.270371437072754, -2.316406011581421, 0.17763295769691467, 2.005058526992798, 0.23108428716659546, 0.11147504299879074, -1.4112763404846191, -0.7150255441665649, -0.3090798258781433, -0.4752715229988098, -1.271010398864746, 0.5148682594299316, -0.2778284251689911, -0.8759247064590454, -1.472277045249939, 0.13065853714942932, -1.1563119888305664, -1.7134222984313965, 0.29220038652420044, 1.9328879117965698, 2.041921377182007, -0.7898085117340088, 1.5158358812332153, -0.24416670203208923, 0.15546956658363342, 1.1868120431900024, 1.226978063583374, 3.049809694290161, 1.8694629669189453, -1.2636135816574097, 0.7000941634178162, -0.11008869111537933, -0.38970914483070374, 1.1468183994293213, -1.1647911071777344, 1.2295856475830078, -0.11476419866085052, -1.151708722114563, -1.1994379758834839, 0.9592233896255493, 0.4755011796951294, 0.04951808974146843, -0.4256124794483185, 1.1696505546569824, 0.058558493852615356, 1.3342349529266357, 0.5372180938720703, -0.2880195081233978, 0.6357885599136353, -0.48025768995285034, -0.490100234746933, 1.5784748792648315, 0.11148981004953384, -1.436759114265442, -2.4113221168518066, -0.27277320623397827, -0.8504687547683716, 0.04561806842684746, -0.632768452167511, -1.063595175743103, 1.6300125122070312, 0.36743268370628357, -1.191150426864624, -0.19947460293769836, -0.36275485157966614, -0.586923360824585, 2.674473524093628, -1.3986810445785522, -0.14898255467414856, -0.9675458669662476, -0.5655962228775024, 1.5698672533035278, -1.1271891593933105, -0.18003511428833008, -1.1000585556030273, -0.5222437977790833, -1.2873616218566895, -0.5432748794555664, -0.012426236644387245, -0.9170912504196167, 0.8117240071296692, 0.2205633819103241, -1.1628234386444092, -0.2941662669181824, -0.9239605665206909, 0.9371281862258911, -0.04032253101468086, 0.14434942603111267, 1.835404396057129, 0.40055203437805176, -0.3342594504356384, 0.7756701111793518, 1.1610311269760132, 0.63583904504776, -0.6587396860122681, 0.12555953860282898, -0.6738861799240112, 0.2862195670604706, -1.3307850360870361, 0.2616203725337982, -2.771491765975952, 0.6988082528114319, -0.07989007234573364, -0.059702206403017044, -0.017290178686380386, -1.3115167617797852, 1.1441036462783813, 2.6291611194610596, -1.1693580150604248, 0.6081960797309875, 0.3424969017505646, 1.1974244117736816, -1.572983980178833, 0.2284858226776123, -0.443690687417984, 2.1707000732421875, 0.18775498867034912, 1.2059249877929688, -0.5189869403839111, -2.3597326278686523, 0.681267261505127, -1.201970100402832, -1.17970609664917, 0.7468920350074768, -0.8999283909797668, 0.1448405385017395, -1.3938443660736084, -0.2527286410331726, -0.9606672525405884, -1.2171576023101807, 0.6177144646644592, 0.16250762343406677, 0.5041363835334778, -0.6026865839958191, 0.34650319814682007, -2.2503650188446045, -1.302356481552124, -0.22307413816452026, -0.9331707954406738, 0.5563180446624756, -0.2955131530761719, 0.6626260280609131, -0.11403241753578186, 0.018197517842054367, 0.34744149446487427, 1.3710516691207886, 3.3990302085876465, 0.12449771910905838, 0.2806728184223175, -0.1829630732536316, -0.9954187273979187, 1.3660982847213745, 1.0024030208587646, -0.128292977809906, -0.6570364832878113, -1.057000994682312, 1.2066947221755981, 2.0711989402770996, 1.0352760553359985, -0.018638428300619125, -0.7727943658828735, -0.7765977382659912, 0.041531894356012344, 0.179379403591156, 0.5344146490097046, 0.8997786045074463, -0.012111128307878971, 0.03829825669527054, 1.4642914533615112, 1.1629054546356201, -0.3985981047153473, 0.33895766735076904, -0.8649753332138062, -0.387442022562027, 0.47551313042640686, 0.25328895449638367, 0.03805870935320854, 0.400890052318573, -1.0656678676605225, -0.2232900857925415, -0.3078528940677643, -0.9482353925704956, -0.7944510579109192, -0.4063572883605957, -0.34251928329467773, 1.6516518592834473, 0.11644578725099564, -0.4219553768634796, -0.0439240038394928, -0.7092379331588745, -0.09591224044561386, -1.0999693870544434, 0.26208436489105225, -0.1985345184803009, -0.01402093842625618, -0.11829003691673279, 1.789278507232666, -0.9341808557510376, -2.0531938076019287, 0.1630023717880249, 0.17070519924163818, -0.35212013125419617, 0.20647478103637695, 1.7044633626937866, 0.6761032342910767, 1.3868868350982666, 1.3082014322280884, 0.9349820613861084, -0.6749083399772644, -1.276869773864746, 0.6251150369644165, 0.9522538781166077, -1.325133204460144, 0.7879883646965027, -0.012784598395228386, -0.5151389837265015, 0.6862590312957764, 1.3604785203933716, 0.48443636298179626, -2.061469078063965, 0.8116471767425537, -0.9327598810195923, 0.7648038864135742, 0.6878393888473511, 0.7623624801635742, 0.16659381985664368, 0.8323526978492737, -1.2732065916061401, -1.0974138975143433, -0.7156586647033691, -0.6610437035560608, 1.9412680864334106, -0.27811703085899353, 0.549858570098877, -0.1688370406627655, -1.2284338474273682, -0.07797545194625854, 0.6858552694320679, 0.38514775037765503, -0.39657261967658997, 0.7941257357597351, -0.611407995223999, -1.1606941223144531, -1.3008811473846436, -0.5347763895988464, -0.9744846820831299, -0.8701333999633789, 0.9656369686126709, 0.7675089240074158, 0.42896780371665955, 1.9046905040740967, 0.6454508900642395, 0.23091039061546326, -2.661371946334839, 0.8904303312301636, 0.41657498478889465, -0.027337316423654556, 0.8917714357376099, 0.2627545893192291, 1.1114962100982666, -0.04407009109854698, 0.6041842699050903, -2.385385751724243, 2.2417476177215576, -0.2633458375930786, 0.7858555912971497, 0.00423307903110981, -0.09130213409662247, 0.9984638690948486, 0.5356772541999817, 0.514107882976532, -1.0664005279541016, 0.736537754535675, -0.6780164837837219, 1.222655177116394, 0.9862298965454102, -0.8125449419021606, 0.04926031827926636, 1.3051453828811646, 0.4032169282436371, -0.4567064344882965, -0.9460393786430359, -0.88655686378479, 0.9250302910804749, 1.8175212144851685, -0.15664049983024597, 0.060208097100257874, 0.888163149356842, 0.6467507481575012, -1.3653281927108765, -0.026104316115379333, -0.7198247909545898, -0.7504127025604248, 1.7195390462875366, 2.053105354309082, -0.09909645467996597, -0.17313972115516663, -0.7181839942932129, -1.2569727897644043, 0.7548108100891113, -0.01886659301817417, 0.12238670140504837, 0.6366881728172302, -0.6403321623802185, 1.0883249044418335, 0.7312250137329102, 0.9737651944160461, 0.05987983196973801, 0.3253961205482483, 0.3878716826438904, -0.36549657583236694, -1.1301323175430298, -0.3929559290409088, -1.0586289167404175, -2.5553722381591797, 0.518976628780365, -0.1692008078098297, -1.4870684146881104, 0.009616503491997719, -1.0578665733337402, 0.9232087135314941, -0.581200361251831, -1.1047956943511963, -1.487622857093811, 0.25502973794937134, -0.13038894534111023, 0.9049363732337952, -1.5841847658157349, -0.1555699110031128, 1.2550946474075317, 1.0086427927017212, -0.5699203610420227, 1.0665838718414307, 0.24612411856651306, 1.0455440282821655, 0.8550713062286377, -0.37311315536499023, 0.5135070085525513, 0.11919418722391129, -1.2869855165481567, 0.5149791240692139, 1.258652687072754, 0.16758769750595093, 1.4751912355422974, -0.5655087232589722, -0.0033047962933778763, 0.4048253297805786, -0.4702316224575043, -0.4987817406654358, -0.5361130237579346, 0.6994733214378357, 0.1590856909751892, -0.9932854771614075, -0.054771844297647476, -0.12190138548612595, -0.22099745273590088, 0.26342153549194336, -1.4720103740692139, -0.20263433456420898, -0.40211808681488037, -0.5722308158874512, -1.2658461332321167, -0.05625031143426895, 1.3151944875717163, -0.7753269076347351, -0.20324289798736572, 0.4532352089881897, 0.3284592032432556, 0.5431330800056458, 0.6413841247558594, -0.7014431953430176, -0.3920421898365021, -0.2950661778450012, -0.4188263416290283, 0.3448505103588104, 1.3124725818634033, -0.06887848675251007, -1.06200110912323, 0.6551965475082397, -0.37007012963294983, 0.1395714282989502, 1.9207395315170288, -0.016922976821660995, -0.7331696152687073, 0.31785449385643005, -0.7185609340667725, 1.9196985960006714, 1.6366941928863525, 1.3755605220794678, -0.19018509984016418, -0.9429450035095215, 0.6113986372947693, -0.34140944480895996, -0.41041281819343567, 0.915474534034729, 0.4320680797100067, -0.2234632670879364, -1.3572834730148315, 0.6046056747436523, 1.253696322441101, -0.9297213554382324, -0.732950747013092, 0.09546240419149399, -0.8428797721862793, 1.1467164754867554, 0.617823600769043, 0.3135088384151459, 0.2961053252220154, 1.642447590827942, 0.7831771373748779, -0.5509610772132874, 0.5836608409881592, 0.41857972741127014, -0.17777374386787415, -2.1733880043029785, -1.0932927131652832, 0.3339388370513916, -0.4206179082393646, -1.6390167474746704, 1.4248698949813843, -1.1632838249206543, -0.9436092972755432, 0.5095798373222351, 0.0843559131026268, 1.2995624542236328, 0.3278994560241699, 1.6249336004257202, 2.0931901931762695, 0.8917742967605591, 0.3903367221355438, 1.2837951183319092, -0.19460877776145935, -0.5046549439430237, 1.8600013256072998, -0.4827083349227905, 0.5338112115859985, 1.062911033630371, -0.36933189630508423, -1.0054807662963867, -0.8018631339073181, -1.248570203781128, -0.6734793782234192, 1.154136061668396, 0.034595832228660583, -1.1496082544326782, 0.2208738923072815, 1.635707139968872, 0.07419472932815552, -0.3064662516117096, 0.6940485835075378, 0.3824472427368164, -0.8078987002372742, -0.14809438586235046, -0.9166309237480164, 0.5191771984100342, -0.1478901505470276, -0.2586285471916199, 0.21595659852027893, 0.5190210342407227, 1.2903636693954468, -0.03096959926187992, 0.09042749553918839, 1.2784496545791626, -1.3725056648254395, 1.536534309387207, -0.7139140367507935, 0.27352485060691833, -2.397738218307495, 1.3230112791061401, -0.7883602380752563, 1.8972324132919312, -2.6052699089050293, 0.3968487083911896, -0.5234885811805725, -0.4267207980155945, 0.21808546781539917, -0.2877778112888336, 0.1915050446987152, -0.10998610407114029, -1.0982885360717773, -0.09998276084661484, -0.7726221680641174, 0.5446289777755737, 1.1307822465896606, 1.326180100440979, -1.0298174619674683, -0.2138950228691101, -1.699280023574829, -0.1982516050338745, -0.7286256551742554, 0.2872686982154846, -1.961808681488037, -0.18125981092453003, -1.9735305309295654, -2.387566566467285, -1.3922333717346191, -0.8961887359619141, 1.0678606033325195, 0.08999907225370407, -0.9699681997299194, 1.1546577215194702, -0.34465262293815613, -1.7722870111465454, 1.127750277519226, -2.186039686203003 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
Maybe you had a connection issue while downloading the file and this was corrupted? Our cache system uses the file you downloaded first time. If so, you could try forcing redownload of the file with: ```python ds = load_dataset("big_patent", "d", split="validation", download_mode="force_redownload")
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
959
42
Unable to load dataset 'big_patent' ## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0 Maybe you had a connection issue while downloading the file and this was corrupted? Our cache system uses the file you downloaded first time. If so, you could try forcing redownload of the file with: ```python ds = load_dataset("big_patent", "d", split="validation", download_mode="force_redownload")
[ -1.179880142211914, -0.837503969669342, -0.7849198579788208, 1.4732693433761597, -0.15438245236873627, -1.1653681993484497, 0.13731874525547028, -0.9702789187431335, 1.7403342723846436, -0.7493139505386353, 0.2980223298072815, -1.652793526649475, -0.035483669489622116, -0.6102783679962158, -0.7055782079696655, -0.8847337365150452, -0.3292500674724579, -0.7158876061439514, 1.0376977920532227, 2.496994972229004, 1.1171494722366333, -1.3871732950210571, 2.6687612533569336, 0.6863827109336853, -0.19128096103668213, -0.9595299959182739, 0.43755656480789185, -0.026140335947275162, -1.1992183923721313, -0.4660035967826843, -0.8871870636940002, -0.06248018145561218, -0.562339186668396, -0.5894525051116943, -0.06052463501691818, 0.46091222763061523, -0.36382725834846497, -0.44869744777679443, -0.4902704358100891, -0.9237335920333862, 0.41226330399513245, -0.4229987561702728, 0.8685247302055359, -0.373971551656723, 1.8410261869430542, -0.5546023845672607, 0.4470648467540741, 0.7491902709007263, 1.2634010314941406, 0.20141807198524475, 0.008324169553816319, 0.40242570638656616, 0.337884783744812, -0.036534156650304794, 0.47005054354667664, 1.1190991401672363, 0.5893892049789429, 0.43634936213493347, 0.7409201264381409, -2.288602113723755, 1.3193154335021973, -1.0390950441360474, 0.21736004948616028, 1.327636480331421, -0.9647440314292908, 0.3592616319656372, -1.7368226051330566, 0.01341868657618761, 0.5253462195396423, -2.242292642593384, 0.37768229842185974, -1.3150074481964111, -0.4842226207256317, 0.9925532937049866, 0.3535889983177185, -1.2320603132247925, 0.08057968318462372, -0.4135624170303345, 1.004550814628601, 0.388947457075119, 1.0764191150665283, -1.695655345916748, -0.11124230176210403, -0.297810822725296, 0.12131830304861069, -1.380859375, -1.5201308727264404, 0.4890226125717163, 0.5801581144332886, 0.676110029220581, -0.05831658095121384, 1.0317319631576538, -1.0676672458648682, 0.7127941250801086, -1.0218385457992554, -1.7177958488464355, -1.3915482759475708, -2.3022892475128174, -2.2913589477539062, 0.7741484045982361, -0.41841012239456177, -0.4826319217681885, 2.071553945541382, -1.0393766164779663, -1.6897114515304565, 1.2245959043502808, 0.3087748885154724, -0.048424653708934784, 2.409600019454956, 0.2758352756500244, -0.8323192596435547, 0.5309098362922668, -0.7948054671287537, 0.7190043330192566, -0.4617803990840912, 1.3888095617294312, 0.4526408016681671, -1.0675029754638672, 1.599066972732544, -0.41921037435531616, 0.5985142588615417, -0.6713575720787048, -0.5239385366439819, -0.8165661692619324, 0.27889999747276306, 1.905702829360962, -0.2551688551902771, 1.6222609281539917, -0.30621519684791565, -1.5223016738891602, -1.6010385751724243, 0.8984841108322144, 0.40977737307548523, -0.7915641069412231, 0.13905242085456848, -0.2940881848335266, 0.20142249763011932, -0.16611456871032715, 1.097122073173523, 1.2646183967590332, 0.6769058108329773, -0.24643118679523468, -0.884393572807312, 0.21787922084331512, -0.06630795449018478, -0.6807733774185181, -1.7514371871948242, -0.29494041204452515, 0.15982964634895325, 0.6309303045272827, -1.3296725749969482, 1.6957927942276, 0.8946006298065186, 1.8801482915878296, 1.0150213241577148, -0.2824942171573639, 1.4546610116958618, 0.10784592479467392, 1.9008312225341797, -0.45452308654785156, 0.696221113204956, -0.34907102584838867, -1.1102672815322876, 0.7825913429260254, -0.2939547896385193, -2.037519693374634, -0.7770241498947144, -0.78001868724823, -0.15251831710338593, -0.7841176986694336, 0.9766913652420044, -0.28451502323150635, -1.4528589248657227, 0.30582183599472046, -0.7203478217124939, 0.1943347156047821, -1.2848103046417236, 0.2981901466846466, 0.7149274349212646, -0.5464029312133789, 0.07267565280199051, -0.20758967101573944, -1.308476209640503, -0.35605213046073914, 0.31972700357437134, 1.8520060777664185, -0.810122549533844, 0.9682880640029907, 1.0226291418075562, -0.6788812279701233, -0.010017362423241138, 0.3572738468647003, -0.281638503074646, 0.8293155431747437, -1.0555776357650757, -0.4193823039531708, 1.2469704151153564, -0.29868605732917786, -0.6274235844612122, 1.3949086666107178, 0.7380198240280151, -0.9972321391105652, -0.1602289080619812, -0.17344121634960175, -0.8323686718940735, 0.04772951081395149, -1.631710171699524, -0.09768182039260864, 0.39419907331466675, -1.5368175506591797, -0.43884968757629395, -0.20532377064228058, 1.287490725517273, -0.23669564723968506, 1.3597912788391113, -0.365948885679245, -0.11070393025875092, -0.3406360447406769, -0.41259026527404785, 0.13620851933956146, -0.2162354439496994, -0.6601470112800598, 0.1652580350637436, -0.7564806342124939, 0.3435802459716797, 1.3877547979354858, 0.4094114303588867, 0.013834821991622448, 0.5788876414299011, 1.1749876737594604, 0.3456604778766632, -0.019262412562966347, -0.8162323832511902, -1.553024411201477, 1.9630002975463867, -1.5245827436447144, 2.0607588291168213, 0.7051794528961182, -0.07256326079368591, -1.7633934020996094, -1.9204189777374268, 1.3751908540725708, 1.1091647148132324, 2.321199893951416, 0.570655345916748, 0.45595085620880127, -0.8281965851783752, -0.7298383712768555, 0.29972583055496216, -1.0685681104660034, -0.7031644582748413, 0.10024102032184601, 2.3921475410461426, 1.6852068901062012, -0.391125351190567, -0.1691339612007141, -1.0465272665023804, 1.3938382863998413, -0.1600341945886612, 0.24472200870513916, 1.9709243774414062, -0.31577685475349426, -1.0628730058670044, 1.2338502407073975, -2.3340511322021484, 0.12672124803066254, 2.032803535461426, 0.2013099193572998, 0.07456782460212708, -1.3742570877075195, -0.7265661358833313, -0.23663538694381714, -0.33593302965164185, -1.2860599756240845, 0.5056386590003967, -0.24410013854503632, -0.7955978512763977, -1.4045518636703491, 0.14868572354316711, -1.068966031074524, -1.645047664642334, 0.3086993992328644, 1.908875823020935, 2.0156710147857666, -0.7421759963035583, 1.5581135749816895, -0.19636018574237823, 0.208676278591156, 1.2455248832702637, 1.215123176574707, 3.098813533782959, 1.84720778465271, -1.2842451333999634, 0.5695265531539917, -0.04450242221355438, -0.44494113326072693, 1.2050373554229736, -1.14708411693573, 1.2889604568481445, -0.09207410365343094, -1.1173059940338135, -1.230930209159851, 0.858909010887146, 0.46219322085380554, 0.0063113002106547356, -0.46259352564811707, 1.2168024778366089, 0.0528317354619503, 1.3578425645828247, 0.5244724154472351, -0.2915215492248535, 0.6108259558677673, -0.47993627190589905, -0.49871233105659485, 1.5539343357086182, 0.15924879908561707, -1.4128226041793823, -2.366412401199341, -0.1892968714237213, -0.8276979923248291, 0.0692911446094513, -0.6330045461654663, -1.0022947788238525, 1.6891252994537354, 0.3776046633720398, -1.1947840452194214, -0.23430117964744568, -0.3986137807369232, -0.6276177763938904, 2.7878401279449463, -1.4336999654769897, -0.24936135113239288, -1.0216045379638672, -0.6282274723052979, 1.6412512063980103, -1.145609736442566, -0.1759670376777649, -1.1142088174819946, -0.5627992153167725, -1.3206104040145874, -0.5846848487854004, -0.052626196295022964, -0.9613286256790161, 0.8536765575408936, 0.25554418563842773, -1.2118078470230103, -0.33129286766052246, -0.9466772675514221, 0.8432713747024536, -0.12174355983734131, 0.2469853162765503, 1.7961002588272095, 0.44585689902305603, -0.3731861412525177, 0.778075098991394, 1.1808356046676636, 0.6362590789794922, -0.6301665902137756, 0.18159881234169006, -0.6101374626159668, 0.3538673520088196, -1.278478741645813, 0.2618660032749176, -2.836249589920044, 0.6470479965209961, -0.1258024275302887, -0.05454498156905174, -0.06110319867730141, -1.2819098234176636, 1.1043156385421753, 2.565798044204712, -1.1756036281585693, 0.5387001037597656, 0.3034169673919678, 1.257418155670166, -1.7156428098678589, 0.2900623679161072, -0.48075398802757263, 2.181612253189087, 0.16153259575366974, 1.1674598455429077, -0.5018569827079773, -2.356029748916626, 0.6544190645217896, -1.1984314918518066, -1.2153234481811523, 0.8301279544830322, -0.8748590350151062, 0.14277583360671997, -1.3346035480499268, -0.2350073754787445, -0.8781515955924988, -1.2632967233657837, 0.7085723876953125, 0.16668550670146942, 0.47663208842277527, -0.574521005153656, 0.3308851420879364, -2.248570680618286, -1.3516714572906494, -0.29451221227645874, -0.8762565851211548, 0.5096584558486938, -0.31001725792884827, 0.7206878066062927, -0.19122065603733063, 0.009095109067857265, 0.3277980089187622, 1.4166831970214844, 3.390395402908325, 0.2152099758386612, 0.3623521327972412, -0.186322882771492, -0.9047247767448425, 1.4285740852355957, 0.9648861289024353, -0.14994043111801147, -0.6067774891853333, -1.039708137512207, 1.3045507669448853, 1.9985097646713257, 0.9371232986450195, 0.0031940769404172897, -0.7388648390769958, -0.6703537702560425, -0.014326687902212143, 0.11170762032270432, 0.5006398558616638, 0.8117162585258484, 0.07921883463859558, 0.07838251441717148, 1.4202558994293213, 1.2020336389541626, -0.4067159593105316, 0.3014431297779083, -0.7788926959037781, -0.40826472640037537, 0.5353424549102783, 0.2899148762226105, -0.003511388786137104, 0.33293023705482483, -0.9641391634941101, -0.260170578956604, -0.31234562397003174, -0.9694300889968872, -0.7816870808601379, -0.42777255177497864, -0.3524993062019348, 1.6538007259368896, 0.11367645114660263, -0.4881351590156555, -0.04744391515851021, -0.7548006772994995, -0.0763721689581871, -1.1066009998321533, 0.282011479139328, -0.18900030851364136, -0.07460364699363708, -0.09642818570137024, 1.7943812608718872, -0.9717724323272705, -2.0956032276153564, 0.15089809894561768, 0.2603580355644226, -0.27066561579704285, 0.12414626032114029, 1.6670665740966797, 0.600174069404602, 1.4150488376617432, 1.345941424369812, 0.9143079519271851, -0.7867961525917053, -1.2630667686462402, 0.636715292930603, 0.9995654225349426, -1.4188965559005737, 0.7918021082878113, 0.04879843071103096, -0.5117297172546387, 0.6440362930297852, 1.321056604385376, 0.5125197768211365, -1.9131004810333252, 0.7317134141921997, -0.9717915058135986, 0.8216204047203064, 0.7045267820358276, 0.7220274806022644, 0.20444615185260773, 0.8371735215187073, -1.2272061109542847, -1.1520568132400513, -0.7275254130363464, -0.6420885324478149, 1.8947848081588745, -0.3030737340450287, 0.5754283666610718, -0.08304732292890549, -1.2491865158081055, -0.02598784863948822, 0.7138116955757141, 0.3472796678543091, -0.3472733795642853, 0.7734399437904358, -0.6508176922798157, -1.1185048818588257, -1.392531394958496, -0.45341965556144714, -1.0160863399505615, -0.9438463449478149, 0.9847918748855591, 0.8270664215087891, 0.28975167870521545, 1.8936700820922852, 0.7146586179733276, 0.21536268293857574, -2.5852975845336914, 0.9436084628105164, 0.35409849882125854, -0.06366322189569473, 0.8219757080078125, 0.2942565679550171, 1.0721139907836914, -0.027367204427719116, 0.5480626821517944, -2.452638626098633, 2.234452724456787, -0.32100969552993774, 0.7045867443084717, -0.03643883019685745, -0.10042715072631836, 1.043327808380127, 0.5215080380439758, 0.4945201873779297, -0.998572826385498, 0.7910470366477966, -0.5971460938453674, 1.2757928371429443, 1.062462329864502, -0.8234890699386597, 0.030955765396356583, 1.3300272226333618, 0.41977497935295105, -0.49391716718673706, -0.9359127283096313, -0.8932622671127319, 0.9196409583091736, 1.7943928241729736, -0.06294267624616623, -0.055019889026880264, 0.8913636803627014, 0.6477869153022766, -1.2832345962524414, 0.0810881182551384, -0.6984182000160217, -0.8088148832321167, 1.7472078800201416, 2.0432939529418945, -0.10301878303289413, -0.19613529741764069, -0.7554497122764587, -1.2231488227844238, 0.8125888705253601, 0.03214365988969803, 0.08263050764799118, 0.6919946074485779, -0.6626401543617249, 1.0242594480514526, 0.8199774622917175, 0.9161273241043091, 0.11659242957830429, 0.2907610833644867, 0.4485103487968445, -0.3269158899784088, -1.1682331562042236, -0.2625476121902466, -1.0775043964385986, -2.573815107345581, 0.5106201171875, -0.19947203993797302, -1.4307444095611572, 0.04463529959321022, -1.0355223417282104, 0.982295572757721, -0.5464814901351929, -1.1573201417922974, -1.5112512111663818, 0.14319412410259247, -0.06149262189865112, 0.8250175714492798, -1.5288355350494385, -0.1577320098876953, 1.3134232759475708, 1.008192539215088, -0.6897151470184326, 1.0697914361953735, 0.19924865663051605, 1.0472604036331177, 0.8524233102798462, -0.4116528630256653, 0.5514692068099976, 0.002719588577747345, -1.3611340522766113, 0.538038969039917, 1.2473459243774414, 0.13698291778564453, 1.5657864809036255, -0.5419477820396423, -0.01874000020325184, 0.4006288945674896, -0.47711294889450073, -0.4953276515007019, -0.5917810797691345, 0.6853671669960022, 0.12635734677314758, -0.9091165661811829, 0.017982330173254013, -0.07069339603185654, -0.27266567945480347, 0.2252935767173767, -1.523395299911499, -0.1499340683221817, -0.41693273186683655, -0.6682890057563782, -1.2416588068008423, -0.10509692132472992, 1.326622724533081, -0.7310368418693542, -0.17194828391075134, 0.551154375076294, 0.2606438994407654, 0.5144643783569336, 0.6137472987174988, -0.7117587924003601, -0.36015158891677856, -0.2696617543697357, -0.3753320276737213, 0.362581342458725, 1.3179869651794434, -0.04082227870821953, -1.0407963991165161, 0.6693904399871826, -0.2933668792247772, 0.1152116060256958, 1.9222532510757446, 0.035984139889478683, -0.7913060784339905, 0.3276505768299103, -0.7918708920478821, 1.969541311264038, 1.627035140991211, 1.365730881690979, -0.16101990640163422, -1.013870358467102, 0.688920259475708, -0.353176087141037, -0.4517556130886078, 0.8990570902824402, 0.4112299084663391, -0.1748000681400299, -1.3415511846542358, 0.7283507585525513, 1.1659660339355469, -0.8549638390541077, -0.8002777099609375, 0.11593220382928848, -0.8362856507301331, 1.0703474283218384, 0.6087209582328796, 0.3278997242450714, 0.3249555826187134, 1.6903456449508667, 0.7501401901245117, -0.526166558265686, 0.5008398294448853, 0.5044777989387512, -0.21066690981388092, -2.1137609481811523, -1.148508906364441, 0.3699589967727661, -0.48353350162506104, -1.582564353942871, 1.4608919620513916, -1.1230695247650146, -0.926185667514801, 0.5746329426765442, 0.12854498624801636, 1.3611935377120972, 0.31384560465812683, 1.5561470985412598, 2.0409021377563477, 0.8302180171012878, 0.4141545593738556, 1.2653725147247314, -0.2675013244152069, -0.4980126917362213, 1.8120237588882446, -0.4631761312484741, 0.47650980949401855, 1.071168303489685, -0.3784608542919159, -1.113486886024475, -0.7620046734809875, -1.2520580291748047, -0.7172837257385254, 1.1230891942977905, 0.0570443794131279, -1.1237757205963135, 0.20216841995716095, 1.6273317337036133, 0.09326457977294922, -0.3878577947616577, 0.6173535585403442, 0.4091828763484955, -0.8154022097587585, -0.1118556335568428, -0.9308417439460754, 0.573136568069458, -0.14476822316646576, -0.280988484621048, 0.2298983335494995, 0.5391873121261597, 1.2991586923599243, -0.037542834877967834, 0.12985371053218842, 1.2155959606170654, -1.3484885692596436, 1.4955278635025024, -0.710934579372406, 0.26004016399383545, -2.346970796585083, 1.3610607385635376, -0.7977412939071655, 1.8581055402755737, -2.5884017944335938, 0.45819899439811707, -0.5437541007995605, -0.40332314372062683, 0.29871606826782227, -0.3658689558506012, 0.1926560252904892, -0.11131273210048676, -1.1053378582000732, -0.04294446110725403, -0.7128211855888367, 0.556448757648468, 1.1580415964126587, 1.3263294696807861, -1.0949013233184814, -0.2730216085910797, -1.6820188760757446, -0.1790473610162735, -0.7419946193695068, 0.28795525431632996, -1.9723703861236572, -0.164932519197464, -1.9831511974334717, -2.3889341354370117, -1.3716634511947632, -0.8117042779922485, 1.127321720123291, 0.09557285904884338, -0.960117757320404, 1.2305735349655151, -0.3174554705619812, -1.8024470806121826, 1.1597896814346313, -2.1361799240112305 ]
https://github.com/huggingface/datasets/issues/3706
Unable to load dataset 'big_patent'
I am able to download the dataset with ``` download_mode="force_redownload"```. As you mentioned it was an issue with the cached version which was failed earlier due to a network issue. I am closing the issue now, once again thank you.
## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0
959
40
Unable to load dataset 'big_patent' ## Describe the bug Unable to load the "big_patent" dataset ## Steps to reproduce the bug ```python load_dataset('big_patent', 'd', 'validation') ``` ## Expected results Download big_patents' validation split from the 'd' subset ## Getting an error saying: {FileNotFoundError}Local file ..\huggingface\datasets\downloads\6159313604f4f2c01e7d1cac52139343b6c07f73f6de348d09be6213478455c5\bigPatentData\train.tar.gz doesn't exist ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version:1.18.3 - Platform: Windows - Python version:3.8 - PyArrow version:7.0.0 I am able to download the dataset with ``` download_mode="force_redownload"```. As you mentioned it was an issue with the cached version which was failed earlier due to a network issue. I am closing the issue now, once again thank you.
[ -1.183066725730896, -0.8217491507530212, -0.7723513245582581, 1.4076290130615234, -0.12136542797088623, -1.1567103862762451, 0.15704749524593353, -1.012648582458496, 1.771967887878418, -0.7536246180534363, 0.2785283923149109, -1.678881287574768, 0.020428335294127464, -0.6087642908096313, -0.7741241455078125, -0.83701491355896, -0.3078884482383728, -0.6666557788848877, 1.0346801280975342, 2.4916229248046875, 1.1127634048461914, -1.378499984741211, 2.6717662811279297, 0.686683714389801, -0.1854851394891739, -0.9798219799995422, 0.4141857624053955, -0.021518949419260025, -1.2630959749221802, -0.4462525248527527, -0.8900948166847229, -0.042269911617040634, -0.6122229099273682, -0.6218043565750122, -0.013770097866654396, 0.45520904660224915, -0.3582547605037689, -0.48400062322616577, -0.4561273455619812, -0.9097496271133423, 0.41040897369384766, -0.406342089176178, 0.9017082452774048, -0.3561137616634369, 1.8056479692459106, -0.5568327903747559, 0.45029303431510925, 0.7422407269477844, 1.2932926416397095, 0.1656443476676941, -0.00688573531806469, 0.4293847680091858, 0.3315657079219818, -0.006620946805924177, 0.4135483503341675, 1.1014773845672607, 0.5793811082839966, 0.42876070737838745, 0.740760326385498, -2.280815362930298, 1.3505162000656128, -1.007287621498108, 0.20144614577293396, 1.2974178791046143, -0.9961704015731812, 0.34037771821022034, -1.7646770477294922, 0.008365567773580551, 0.5245603322982788, -2.238699197769165, 0.3396068215370178, -1.3261101245880127, -0.4919821619987488, 0.9516919851303101, 0.3423705995082855, -1.2351126670837402, 0.12128855288028717, -0.42939725518226624, 1.0406845808029175, 0.4467455744743347, 1.0619251728057861, -1.7189584970474243, -0.09865663945674896, -0.31243470311164856, 0.1865452080965042, -1.4242852926254272, -1.540419101715088, 0.5003494024276733, 0.5867547392845154, 0.6596529483795166, -0.08136825263500214, 1.01606285572052, -1.0513275861740112, 0.6813535690307617, -1.013912558555603, -1.7801830768585205, -1.324145793914795, -2.2892606258392334, -2.2886464595794678, 0.7195228934288025, -0.4140937328338623, -0.4453543424606323, 2.0882606506347656, -1.0546128749847412, -1.763352632522583, 1.2083964347839355, 0.2841808497905731, -0.06020991876721382, 2.377096176147461, 0.23515963554382324, -0.7889181971549988, 0.5065684914588928, -0.7720016241073608, 0.7205076217651367, -0.47600188851356506, 1.3792144060134888, 0.46423593163490295, -1.0376302003860474, 1.6158626079559326, -0.3706689178943634, 0.6240211725234985, -0.7122361063957214, -0.49038979411125183, -0.8048387169837952, 0.269474059343338, 1.9340870380401611, -0.2829434871673584, 1.6433013677597046, -0.36898040771484375, -1.5297383069992065, -1.555848240852356, 0.8939438462257385, 0.422595739364624, -0.7497079372406006, 0.17375604808330536, -0.28438785672187805, 0.18650592863559723, -0.1449151337146759, 1.0913091897964478, 1.2762401103973389, 0.6590237617492676, -0.20108656585216522, -0.8988946080207825, 0.25594696402549744, -0.04401824623346329, -0.6459547877311707, -1.7717525959014893, -0.311601847410202, 0.15385477244853973, 0.6734064817428589, -1.2962809801101685, 1.698279857635498, 0.8515951037406921, 1.8958299160003662, 0.9933838248252869, -0.3005411922931671, 1.4548940658569336, 0.1338673084974289, 1.9076565504074097, -0.4231436550617218, 0.7152984142303467, -0.3879704475402832, -1.117009162902832, 0.8216336369514465, -0.2995073199272156, -2.0168144702911377, -0.7237330079078674, -0.8199518322944641, -0.1540648490190506, -0.7719405293464661, 1.000718355178833, -0.27643483877182007, -1.4247372150421143, 0.30679160356521606, -0.7087658643722534, 0.20395606756210327, -1.2807658910751343, 0.28220370411872864, 0.733989417552948, -0.5354189872741699, 0.10410325229167938, -0.23413565754890442, -1.3652293682098389, -0.40550416707992554, 0.35943928360939026, 1.8085284233093262, -0.7669755220413208, 0.9579141139984131, 1.018966555595398, -0.6565268635749817, -0.043784014880657196, 0.38907358050346375, -0.28610959649086, 0.8258028030395508, -1.094894289970398, -0.4013703465461731, 1.2113174200057983, -0.26928016543388367, -0.6182030439376831, 1.3906030654907227, 0.7385469079017639, -1.0064194202423096, -0.12417221069335938, -0.18516799807548523, -0.8251557946205139, 0.03651299327611923, -1.6499239206314087, -0.12833935022354126, 0.39295822381973267, -1.5752413272857666, -0.45707806944847107, -0.18851421773433685, 1.2545803785324097, -0.21020008623600006, 1.3893811702728271, -0.3159099519252777, -0.1263435035943985, -0.3501651883125305, -0.4278993010520935, 0.13004416227340698, -0.20921041071414948, -0.7080201506614685, 0.1748228669166565, -0.7692241072654724, 0.39594414830207825, 1.3621994256973267, 0.3795132637023926, 0.010891379788517952, 0.5774864554405212, 1.1492016315460205, 0.29248133301734924, -0.06117483228445053, -0.8255342841148376, -1.6015018224716187, 1.9776955842971802, -1.5040878057479858, 2.0602128505706787, 0.6767176389694214, -0.06042852625250816, -1.772379994392395, -1.886751413345337, 1.4228194952011108, 1.1097511053085327, 2.3272197246551514, 0.6344636082649231, 0.43292728066444397, -0.8246051073074341, -0.7024693489074707, 0.3020539879798889, -1.041975975036621, -0.7355315685272217, 0.13173462450504303, 2.371631383895874, 1.66103196144104, -0.4282267391681671, -0.20186063647270203, -1.030623197555542, 1.3587040901184082, -0.15539982914924622, 0.2520079016685486, 1.9543753862380981, -0.316449373960495, -1.0705159902572632, 1.1969057321548462, -2.3464419841766357, 0.1734672337770462, 2.009983539581299, 0.16942298412322998, 0.11621543765068054, -1.3593248128890991, -0.7289138436317444, -0.26506945490837097, -0.30177950859069824, -1.2764747142791748, 0.4928513765335083, -0.24669113755226135, -0.7994399666786194, -1.4342433214187622, 0.17546609044075012, -1.0853241682052612, -1.6598798036575317, 0.3040187954902649, 1.9336574077606201, 1.990229606628418, -0.7246395349502563, 1.5775002241134644, -0.1743711233139038, 0.2468058317899704, 1.2783511877059937, 1.1621206998825073, 3.0846805572509766, 1.8802855014801025, -1.2538129091262817, 0.6266275644302368, -0.03509789705276489, -0.48137497901916504, 1.265661358833313, -1.1455217599868774, 1.264954686164856, -0.10925674438476562, -1.112837553024292, -1.2595642805099487, 0.8587790131568909, 0.4557172656059265, -0.021218037232756615, -0.45032188296318054, 1.2523367404937744, 0.021806811913847923, 1.3500020503997803, 0.5279504656791687, -0.3374549150466919, 0.6216545104980469, -0.48865529894828796, -0.4973764717578888, 1.5211365222930908, 0.12511436641216278, -1.4143612384796143, -2.341705560684204, -0.22064927220344543, -0.8036087155342102, 0.06710603833198547, -0.6333224773406982, -1.0166444778442383, 1.6506820917129517, 0.3827899992465973, -1.1636171340942383, -0.2170012891292572, -0.41682660579681396, -0.6478230357170105, 2.7466821670532227, -1.4390827417373657, -0.26689809560775757, -1.03228759765625, -0.6192522644996643, 1.6126128435134888, -1.1743024587631226, -0.19703972339630127, -1.0766650438308716, -0.5304837822914124, -1.339310884475708, -0.595782995223999, -0.08901114761829376, -0.8888733983039856, 0.8408165574073792, 0.2467784434556961, -1.192026972770691, -0.3152409791946411, -0.9082258939743042, 0.8176939487457275, -0.11095401644706726, 0.26875442266464233, 1.831168293952942, 0.4771149158477783, -0.35924720764160156, 0.7633054852485657, 1.1254969835281372, 0.6266075968742371, -0.5967305302619934, 0.23119379580020905, -0.6286609172821045, 0.33483296632766724, -1.3125507831573486, 0.28929510712623596, -2.805248975753784, 0.6348366141319275, -0.10300783812999725, -0.038023293018341064, -0.05090554431080818, -1.3125630617141724, 1.0685865879058838, 2.5984318256378174, -1.2458499670028687, 0.5582424402236938, 0.3162667453289032, 1.2549980878829956, -1.6815253496170044, 0.26391807198524475, -0.46557775139808655, 2.1941027641296387, 0.22152483463287354, 1.151458501815796, -0.4864359498023987, -2.3637635707855225, 0.6330036520957947, -1.2214057445526123, -1.2327200174331665, 0.8034916520118713, -0.8677866458892822, 0.07203845679759979, -1.31987464427948, -0.21178004145622253, -0.9269107580184937, -1.2883296012878418, 0.7161923050880432, 0.13445532321929932, 0.5288349390029907, -0.5993335247039795, 0.3506697118282318, -2.1997787952423096, -1.3054571151733398, -0.3141483962535858, -0.9089897274971008, 0.48387518525123596, -0.28962308168411255, 0.7017422318458557, -0.21736417710781097, 0.03625786304473877, 0.3172568678855896, 1.4064058065414429, 3.399944305419922, 0.21335755288600922, 0.3730408251285553, -0.18854224681854248, -0.8844584226608276, 1.3966412544250488, 0.9881541132926941, -0.17021910846233368, -0.5843709707260132, -1.001905083656311, 1.286470651626587, 1.9992836713790894, 0.9283803105354309, 0.052236877381801605, -0.7386485934257507, -0.737048327922821, 0.017079642042517662, 0.09215660393238068, 0.4641420543193817, 0.8213499784469604, 0.12873609364032745, 0.07313115894794464, 1.4108814001083374, 1.1877429485321045, -0.39541539549827576, 0.30941125750541687, -0.798810601234436, -0.40656164288520813, 0.5415811538696289, 0.3431338667869568, -0.036721404641866684, 0.2983095347881317, -0.9374554753303528, -0.23386827111244202, -0.35162147879600525, -0.9801390767097473, -0.7975683212280273, -0.4214842915534973, -0.3193434178829193, 1.6712700128555298, 0.11422404646873474, -0.47427892684936523, -0.09960423409938812, -0.7366877198219299, -0.05645517632365227, -1.0782376527786255, 0.3006093502044678, -0.21221840381622314, -0.03856419026851654, -0.0588013119995594, 1.7729679346084595, -1.000362753868103, -2.0756099224090576, 0.1870868057012558, 0.21479851007461548, -0.32060614228248596, 0.1480412632226944, 1.68571138381958, 0.5812702178955078, 1.428308129310608, 1.3978052139282227, 0.9303790926933289, -0.7873238325119019, -1.2766538858413696, 0.6248541474342346, 0.9493801593780518, -1.4676568508148193, 0.7683709263801575, 0.1431538164615631, -0.5233865976333618, 0.6333671808242798, 1.314042329788208, 0.5082424879074097, -1.9294236898422241, 0.7066200971603394, -0.9598541855812073, 0.8076030015945435, 0.7001764178276062, 0.7601231336593628, 0.21957023441791534, 0.8873833417892456, -1.19473397731781, -1.1239241361618042, -0.7295576930046082, -0.6269791722297668, 1.8918919563293457, -0.31924664974212646, 0.5784294009208679, -0.09431684017181396, -1.2688097953796387, -0.03789661452174187, 0.7264218926429749, 0.34350499510765076, -0.35226088762283325, 0.7620239853858948, -0.6352354288101196, -1.1541420221328735, -1.3868483304977417, -0.4859176576137543, -1.0058627128601074, -0.9643241763114929, 0.9865590929985046, 0.8464876413345337, 0.2695568799972534, 1.8690098524093628, 0.6821762323379517, 0.17842155694961548, -2.632328748703003, 0.8866134285926819, 0.3469545245170593, -0.051673438400030136, 0.8314110636711121, 0.31873854994773865, 1.0283267498016357, -0.07571817934513092, 0.5739723443984985, -2.4185898303985596, 2.244210958480835, -0.35177841782569885, 0.7189985513687134, -0.04087773337960243, -0.09939953684806824, 1.0510962009429932, 0.5107192993164062, 0.48926839232444763, -1.0506970882415771, 0.7988520860671997, -0.6442974805831909, 1.277505874633789, 1.0329660177230835, -0.8631057739257812, 0.028400976210832596, 1.3012398481369019, 0.4013311266899109, -0.5032793879508972, -0.955130934715271, -0.8873332738876343, 0.9334976673126221, 1.7951200008392334, -0.07217903435230255, -0.042006392031908035, 0.9193356037139893, 0.6715030074119568, -1.3117321729660034, 0.11034397780895233, -0.7137972712516785, -0.809920608997345, 1.7187602519989014, 2.033303737640381, -0.07557855546474457, -0.177461177110672, -0.7776294946670532, -1.1921509504318237, 0.7979415059089661, 0.08477945625782013, 0.022811535745859146, 0.6825716495513916, -0.661179780960083, 1.0510218143463135, 0.8250473737716675, 0.9331624507904053, 0.13284292817115784, 0.294797420501709, 0.4312601387500763, -0.3297732472419739, -1.1464722156524658, -0.23307828605175018, -1.0700417757034302, -2.525852918624878, 0.5388879179954529, -0.227728933095932, -1.4649715423583984, 0.040207453072071075, -1.0210180282592773, 0.950394332408905, -0.5367056131362915, -1.179853916168213, -1.4956183433532715, 0.12157043814659119, -0.08210115134716034, 0.8241869807243347, -1.5415786504745483, -0.11021314561367035, 1.3147090673446655, 1.02234947681427, -0.6536076664924622, 1.075019359588623, 0.1881256252527237, 1.0510306358337402, 0.8895227909088135, -0.3839915692806244, 0.5292896628379822, 0.07612231373786926, -1.344674825668335, 0.5493963956832886, 1.2472801208496094, 0.17523932456970215, 1.5316534042358398, -0.5569329261779785, -0.013456743210554123, 0.39619600772857666, -0.44499272108078003, -0.4932587742805481, -0.5949262380599976, 0.7441895008087158, 0.13576221466064453, -0.8584632277488708, 0.012532612308859825, -0.059585507959127426, -0.2490553855895996, 0.2555842399597168, -1.5527735948562622, -0.1415812075138092, -0.4008987247943878, -0.6443638205528259, -1.2171986103057861, -0.06461479514837265, 1.3571702241897583, -0.727516233921051, -0.20306804776191711, 0.5424273014068604, 0.31811878085136414, 0.5055526494979858, 0.6091290712356567, -0.7205113768577576, -0.3845018148422241, -0.27612462639808655, -0.39543700218200684, 0.3628614842891693, 1.2787213325500488, -0.05866968631744385, -1.063446283340454, 0.6586305499076843, -0.33672213554382324, 0.06873354315757751, 1.8850761651992798, 0.02288302779197693, -0.8247610330581665, 0.2972612679004669, -0.7784846425056458, 2.0111255645751953, 1.6962924003601074, 1.347052812576294, -0.15012091398239136, -1.0491697788238525, 0.6731120347976685, -0.329908549785614, -0.4398938715457916, 0.8942315578460693, 0.46263250708580017, -0.18029336631298065, -1.3160606622695923, 0.7020413875579834, 1.1879128217697144, -0.8663061857223511, -0.854769229888916, 0.09275062382221222, -0.8038735389709473, 1.0713999271392822, 0.6561715602874756, 0.3246934711933136, 0.3156381845474243, 1.706872820854187, 0.7299026846885681, -0.550882875919342, 0.5375227928161621, 0.45733869075775146, -0.20492962002754211, -2.118600368499756, -1.175359845161438, 0.3960206210613251, -0.47992560267448425, -1.5830107927322388, 1.4618325233459473, -1.138487458229065, -0.8980121612548828, 0.5474677681922913, 0.1404116302728653, 1.391469955444336, 0.25347915291786194, 1.545261025428772, 2.0280215740203857, 0.8042974472045898, 0.41616183519363403, 1.2550448179244995, -0.2264247089624405, -0.49880215525627136, 1.7981237173080444, -0.4885672926902771, 0.5398710370063782, 1.1096848249435425, -0.3692404627799988, -1.0956624746322632, -0.7715062499046326, -1.2266167402267456, -0.6741584539413452, 1.1531023979187012, 0.07916517555713654, -1.1751916408538818, 0.21405287086963654, 1.6509747505187988, 0.11080504953861237, -0.3668000102043152, 0.6007291078567505, 0.38574960827827454, -0.7968229055404663, -0.09701588749885559, -0.9633875489234924, 0.5705984234809875, -0.16821305453777313, -0.2663070857524872, 0.2798443138599396, 0.5030379891395569, 1.2641948461532593, 0.0024200379848480225, 0.12288223206996918, 1.2924702167510986, -1.331388235092163, 1.4717234373092651, -0.7262517213821411, 0.27011382579803467, -2.3520991802215576, 1.390024185180664, -0.7895230054855347, 1.8838316202163696, -2.5996901988983154, 0.4236675500869751, -0.584514856338501, -0.38192155957221985, 0.30767038464546204, -0.3111913204193115, 0.17093630135059357, -0.11562049388885498, -1.101427674293518, -0.06395044922828674, -0.7535545825958252, 0.5845510959625244, 1.1163806915283203, 1.3160333633422852, -1.0397096872329712, -0.25130191445350647, -1.6945866346359253, -0.1932164877653122, -0.7436984181404114, 0.35969266295433044, -1.9544891119003296, -0.16983675956726074, -2.023778200149536, -2.4541687965393066, -1.3954819440841675, -0.7509480118751526, 1.0989172458648682, 0.09670057892799377, -0.9038827419281006, 1.200331449508667, -0.32858240604400635, -1.8018169403076172, 1.1503877639770508, -2.1349053382873535 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Hi @adrianeboyd, thanks for reporting. There is indeed a bug in that community dataset: Line: ```python metadata_and_text_files = list(zip(metadata_files, text_files)) ``` should be replaced with ```python metadata_and_text_files = list(zip(sorted(metadata_files), sorted(text_files))) ``` I am going to contact their owners (https://huggingface.co/oscar-corpus) in order to inform them about the bug. I keep you informed.
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
51
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. Hi @adrianeboyd, thanks for reporting. There is indeed a bug in that community dataset: Line: ```python metadata_and_text_files = list(zip(metadata_files, text_files)) ``` should be replaced with ```python metadata_and_text_files = list(zip(sorted(metadata_files), sorted(text_files))) ``` I am going to contact their owners (https://huggingface.co/oscar-corpus) in order to inform them about the bug. I keep you informed.
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
That fix is part of it, but it's clearly not the only issue. I also already contacted the OSCAR creators, but I reported it here because it looked like huggingface members were the main authors in the git history. Is there a better place to have reported this?
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
48
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. That fix is part of it, but it's clearly not the only issue. I also already contacted the OSCAR creators, but I reported it here because it looked like huggingface members were the main authors in the git history. Is there a better place to have reported this?
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Hello, We've had an issue that could be linked to this one here: https://github.com/oscar-corpus/corpus/issues/15. I have been spot checking the source (`.txt`/`.jsonl`) files for a while, and have not found issues, especially in the start/end of corpora (but I conceed that more integration testing would be necessary on our side). The text and metadata files are designed to be used in sync (with `lang_part_n.txt` and `lang_meta_part_n.jsonl` working together), while staying independent from part to part, so that anyone could randomly choose a part and work with it. The fix @albertvillanova proposed should fix the problem, as the parts will be in sync again. Let me know if you need help or more details, I'd be glad to help!
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
118
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. Hello, We've had an issue that could be linked to this one here: https://github.com/oscar-corpus/corpus/issues/15. I have been spot checking the source (`.txt`/`.jsonl`) files for a while, and have not found issues, especially in the start/end of corpora (but I conceed that more integration testing would be necessary on our side). The text and metadata files are designed to be used in sync (with `lang_part_n.txt` and `lang_meta_part_n.jsonl` working together), while staying independent from part to part, so that anyone could randomly choose a part and work with it. The fix @albertvillanova proposed should fix the problem, as the parts will be in sync again. Let me know if you need help or more details, I'd be glad to help!
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
I'm happy to move the discussion to the other repo! Merely sorting the files only **maybe** fixes the processing of the first part. If the first part contains non-unix newlines, it will still be misaligned/truncated, and all the following parts will be truncated with incorrect text offsets and metadata due the offset and newline bugs.
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
55
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. I'm happy to move the discussion to the other repo! Merely sorting the files only **maybe** fixes the processing of the first part. If the first part contains non-unix newlines, it will still be misaligned/truncated, and all the following parts will be truncated with incorrect text offsets and metadata due the offset and newline bugs.
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Hi @Uinelj, This is a total noobs question but how can I integrate that bugfix into my code? I reinstalled the datasets library this time from source. Should that have fixed the issue? I am still facing the misalignment issue. Do I need to download the dataset from scratch?
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
49
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. Hi @Uinelj, This is a total noobs question but how can I integrate that bugfix into my code? I reinstalled the datasets library this time from source. Should that have fixed the issue? I am still facing the misalignment issue. Do I need to download the dataset from scratch?
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Sorry @norakassner for the late reply. There are indeed several issues creating the misalignment, as @adrianeboyd cleverly pointed out: - https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/3cd7e95aa1799b73c5ea8afc3989635f3e19b86b fixed one of them - but there are still others to be fixed
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
34
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. Sorry @norakassner for the late reply. There are indeed several issues creating the misalignment, as @adrianeboyd cleverly pointed out: - https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/3cd7e95aa1799b73c5ea8afc3989635f3e19b86b fixed one of them - but there are still others to be fixed
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Normally, the issues should be fixed now: - Fix offset initialization for each file: https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/1ad9b7bfe00798a9258a923b887bb1c8d732b833 - Disable default universal newline support: https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/0c2f307d3167f03632f502af361ac6c3c393f510 Feel free to reopen if you find additional misalignments/truncations. CC: @adrianeboyd @norakassner @Uinelj
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
35
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. Normally, the issues should be fixed now: - Fix offset initialization for each file: https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/1ad9b7bfe00798a9258a923b887bb1c8d732b833 - Disable default universal newline support: https://huggingface.co/datasets/oscar-corpus/OSCAR-2109/commit/0c2f307d3167f03632f502af361ac6c3c393f510 Feel free to reopen if you find additional misalignments/truncations. CC: @adrianeboyd @norakassner @Uinelj
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3704
OSCAR-2109 datasets are misaligned and truncated
Thanks for the updates! The purist in me would still like to have the rstrip not strip additional characters from the original text (unicode whitespace mainly in practice, I think), but the differences are extremely small in practice and it doesn't actually matter for my current task: ```python text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip("\n") ```
## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data.
960
56
OSCAR-2109 datasets are misaligned and truncated ## Describe the bug The `oscar-corpus/OSCAR-2109` data appears to be misaligned and truncated by the dataset builder for subsets that contain more than one part and for cases where the texts contain non-unix newlines. ## Steps to reproduce the bug A few examples, although I'm not sure how deterministic the particular (mis)alignment is in various configurations: ```python from datasets import load_dataset dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_fi", split="train", use_auth_token=True) entry = dataset[0] # entry["text"] is from fi_part_3.txt.gz # entry["meta"] is from fi_meta_part_2.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_no", split="train", use_auth_token=True) entry = dataset[900000] # entry["text"] is from no_part_3.txt.gz and contains a blank line # entry["meta"] is from no_meta_part_1.jsonl.gz dataset = load_dataset("oscar-corpus/OSCAR-2109", "deduplicated_mk", split="train", streaming=True, use_auth_token=True) # 9088 texts in the dataset are empty ``` For `deduplicated_fi`, all exported raw texts from the dataset are 17GB rather than 20GB as reported in the data splits overview table. The token count with `wc -w` for the raw texts is 2,067,556,874 rather than the expected 2,357,264,196 from the data splits table. For `deduplicated_no` all exported raw texts contain 624,040,887 rather than the expected 776,354,517 tokens. For `deduplicated_mk` it is 122,236,936 rather than 134,544,934 tokens. I'm not expecting the `wc -w` counts to line up exactly with the data splits table, but for comparison the `wc -w` count for `deduplicated_mk` on the raw texts is 134,545,424. ## Issues * The meta / text files are not paired correctly when loading, so the extracted texts do not have the right offsets, the metadata is not associated with the correct text, and the text files may not be processed to the end or may be processed beyond the end (empty texts). * The line count offset is not reset per file so the texts aren't aligned to the right offsets in any parts beyond the first part, leading to truncation when in effect blank lines are not skipped. * Non-unix newline characters are treated as newlines when reading the text files while the metadata only counts unix newlines for its line offsets, leading to further misalignments between the metadata and the extracted texts, and which also results in truncation. ## Expected results All texts from the OSCAR release are extracted according to the metadata and aligned with the correct metadata. ## Fixes Not necessarily the exact fixes/checks you may want to use (I didn't test all languages or do any cross-platform testing, I'm not sure all the details are compatible with streaming), however to highlight the issues: ```diff diff --git a/OSCAR-2109.py b/OSCAR-2109.py index bbac1076..5eee8de7 100644 --- a/OSCAR-2109.py +++ b/OSCAR-2109.py @@ -20,6 +20,7 @@ import collections import gzip import json +import os import datasets @@ -387,9 +388,20 @@ class Oscar2109(datasets.GeneratorBasedBuilder): with open(checksum_file, encoding="utf-8") as f: data_filenames = [line.split()[1] for line in f if line] data_urls = [self.config.base_data_path + data_filename for data_filename in data_filenames] - text_files = dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")]) - metadata_files = dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")]) + # sort filenames so corresponding parts are aligned + text_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".txt.gz")])) + metadata_files = sorted(dl_manager.download([url for url in data_urls if url.endswith(".jsonl.gz")])) + assert len(text_files) == len(metadata_files) metadata_and_text_files = list(zip(metadata_files, text_files)) + for meta_path, text_path in metadata_and_text_files: + # check that meta/text part numbers are the same + if "part" in os.path.basename(text_path): + assert ( + os.path.basename(text_path).replace(".txt.gz", "").split("_")[-1] + == os.path.basename(meta_path).replace(".jsonl.gz", "").split("_")[-1] + ) + else: + assert len(metadata_and_text_files) == 1 return [ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"metadata_and_text_files": metadata_and_text_files}), ] @@ -397,10 +409,14 @@ class Oscar2109(datasets.GeneratorBasedBuilder): def _generate_examples(self, metadata_and_text_files): """This function returns the examples in the raw (text) form by iterating on all the files.""" id_ = 0 - offset = 0 for meta_path, text_path in metadata_and_text_files: + # line offsets are per text file + offset = 0 logger.info("generating examples from = %s", text_path) - with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8") as text_f: + # some texts contain non-Unix newlines that should not be + # interpreted as line breaks for the line counts in the metadata + # with readline() + with gzip.open(open(text_path, "rb"), "rt", encoding="utf-8", newline="\n") as text_f: with gzip.open(open(meta_path, "rb"), "rt", encoding="utf-8") as meta_f: for line in meta_f: # read meta @@ -411,7 +427,12 @@ class Oscar2109(datasets.GeneratorBasedBuilder): offset += 1 text_f.readline() # read text - text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip() + text_lines = [text_f.readline() for _ in range(meta["nb_sentences"])] + # all lines contain text (no blank lines or EOF) + assert all(text_lines) + assert "\n" not in text_lines offset += meta["nb_sentences"] + # only strip the trailing newline + text = "".join(text_lines).rstrip("\n") yield id_, {"id": id_, "text": text, "meta": meta} id_ += 1 ``` I've tested this with a number of smaller deduplicated languages with 1-20 parts and the resulting datasets looked correct in terms of word count and size when compared to the data splits table and raw texts, and the text/metadata alignments were correct in all my spot checks. However, there are many many languages I didn't test and I'm not sure that there aren't any texts containing blank lines in the corpus, for instance. For the cases I tested, the assertions related to blank lines and EOF made it easier to verify that the text and metadata were aligned as intended, since there would be little chance of spurious alignments of variable-length texts across so much data. Thanks for the updates! The purist in me would still like to have the rstrip not strip additional characters from the original text (unicode whitespace mainly in practice, I think), but the differences are extremely small in practice and it doesn't actually matter for my current task: ```python text = "".join([text_f.readline() for _ in range(meta["nb_sentences"])]).rstrip("\n") ```
[ -1.1975055932998657, -0.8714083433151245, -0.7631029486656189, 1.4836257696151733, -0.15009334683418274, -1.2373532056808472, 0.140203595161438, -1.1476554870605469, 1.6946775913238525, -0.8680822849273682, 0.21534185111522675, -1.6449066400527954, 0.028736881911754608, -0.6202892065048218, -0.7099281549453735, -0.9067912101745605, -0.44146081805229187, -0.7890322208404541, 1.0047938823699951, 2.4352195262908936, 1.2328948974609375, -1.3101636171340942, 2.74240779876709, 0.7504042387008667, -0.1510031819343567, -0.9624353647232056, 0.551794707775116, -0.07938823848962784, -1.2415320873260498, -0.4714476466178894, -0.9986010193824768, -0.06705767661333084, -0.5501659512519836, -0.4378240704536438, -0.05080380290746689, 0.38934189081192017, -0.4004497528076172, -0.32615479826927185, -0.537043035030365, -0.7737088799476624, 0.43544629216194153, -0.3322913646697998, 0.9965081214904785, -0.3190215826034546, 1.832840919494629, -0.5699306726455688, 0.4817827641963959, 0.7437034249305725, 1.207794427871704, 0.234712153673172, 0.043668411672115326, 0.20611783862113953, 0.343736857175827, -0.020791426301002502, 0.554076611995697, 1.1812199354171753, 0.6409953832626343, 0.591216504573822, 0.7306768894195557, -2.2061870098114014, 1.2580524682998657, -1.0072987079620361, 0.2180487960577011, 1.441202998161316, -0.935632050037384, 0.41506239771842957, -1.7666857242584229, -0.04686606302857399, 0.5530750155448914, -2.2519025802612305, 0.34638017416000366, -1.3093751668930054, -0.501342236995697, 0.9874051809310913, 0.33054471015930176, -1.1503806114196777, 0.20217061042785645, -0.42823418974876404, 1.0282975435256958, 0.48484545946121216, 1.0916529893875122, -1.6479332447052002, -0.05100849270820618, -0.2732924520969391, 0.1493074893951416, -1.317552924156189, -1.5281476974487305, 0.5862574577331543, 0.6081202030181885, 0.6358691453933716, -0.19273526966571808, 1.1394364833831787, -1.1294993162155151, 0.786369800567627, -1.054029107093811, -1.6005911827087402, -1.448804497718811, -2.2800605297088623, -2.2635860443115234, 0.7913935780525208, -0.5786908268928528, -0.5804139971733093, 2.122421979904175, -1.061671495437622, -1.6479485034942627, 1.1552423238754272, 0.23246991634368896, -0.016600919887423515, 2.4302337169647217, 0.2138749212026596, -0.6949971318244934, 0.490505576133728, -0.7687510251998901, 0.7142912745475769, -0.3585376739501953, 1.3035078048706055, 0.45392081141471863, -1.1283283233642578, 1.5977370738983154, -0.3907408118247986, 0.637566089630127, -0.6156768798828125, -0.5214118957519531, -0.7359092831611633, 0.25980401039123535, 1.8674947023391724, -0.25710397958755493, 1.5800930261611938, -0.23051364719867706, -1.5210325717926025, -1.658992886543274, 0.9654037952423096, 0.3744250535964966, -0.8107102513313293, 0.16146044433116913, -0.3730775713920593, 0.06450147181749344, -0.1372973769903183, 1.1617910861968994, 1.3387001752853394, 0.6792717576026917, -0.36594101786613464, -0.8024309277534485, 0.1491147130727768, -0.14535397291183472, -0.803352952003479, -1.6468945741653442, -0.39881983399391174, 0.16432136297225952, 0.5882142782211304, -1.183635950088501, 1.8223482370376587, 0.8885340094566345, 1.8489642143249512, 1.0228559970855713, -0.4574768543243408, 1.3492439985275269, 0.1064976304769516, 1.738038420677185, -0.5623367428779602, 0.6674591898918152, -0.30335575342178345, -1.168784260749817, 0.8778854608535767, -0.32341834902763367, -1.9222257137298584, -0.8082636594772339, -0.7773827910423279, -0.18756477534770966, -0.7688220143318176, 0.9114221930503845, -0.25129562616348267, -1.4717535972595215, 0.2710387408733368, -0.6744722127914429, 0.12972158193588257, -1.2848734855651855, 0.3516670763492584, 0.7024590969085693, -0.6518149375915527, 0.021058976650238037, -0.19163727760314941, -1.3113446235656738, -0.4294112026691437, 0.2642267048358917, 1.8898379802703857, -0.7169021368026733, 0.8921566605567932, 1.0205587148666382, -0.792089581489563, -0.06324898451566696, 0.3232738673686981, -0.3241034150123596, 0.8332213163375854, -1.0994634628295898, -0.5578687787055969, 1.1879152059555054, -0.23841363191604614, -0.5585007667541504, 1.449626088142395, 0.6758782863616943, -1.0705327987670898, -0.2067275047302246, -0.18659193813800812, -0.8975834250450134, 0.005546468310058117, -1.5082091093063354, -0.13424251973628998, 0.4020596742630005, -1.5127027034759521, -0.4778197109699249, -0.18794205784797668, 1.3363806009292603, -0.2441013604402542, 1.4174275398254395, -0.3217189908027649, -0.22186484932899475, -0.3402768671512604, -0.4359661638736725, 0.22724179923534393, -0.1655922383069992, -0.5157337784767151, 0.18719124794006348, -0.7798812389373779, 0.33207622170448303, 1.3984456062316895, 0.3365475833415985, 0.011846034787595272, 0.47738420963287354, 1.0807826519012451, 0.4124148488044739, -0.0546804778277874, -0.9642193913459778, -1.4498052597045898, 1.9730502367019653, -1.4741183519363403, 1.9567710161209106, 0.7412884831428528, -0.08303076773881912, -1.7354869842529297, -1.86741304397583, 1.33927583694458, 1.23173189163208, 2.2766170501708984, 0.51936274766922, 0.41673898696899414, -0.8428173661231995, -0.7440643906593323, 0.3270493745803833, -1.0905184745788574, -0.6388068795204163, 0.2418150156736374, 2.3496062755584717, 1.7261886596679688, -0.4604376554489136, -0.1713024228811264, -0.9640622735023499, 1.2892550230026245, -0.24136175215244293, 0.23433208465576172, 1.9900017976760864, -0.3214209973812103, -1.0234884023666382, 1.3638604879379272, -2.325324058532715, 0.19480612874031067, 2.029250144958496, 0.2924547493457794, 0.06632155925035477, -1.3504283428192139, -0.6732260584831238, -0.25466522574424744, -0.4677128493785858, -1.295667290687561, 0.5231794118881226, -0.2908971607685089, -0.7119193077087402, -1.4568548202514648, 0.16307233273983002, -1.107361078262329, -1.6296441555023193, 0.21173305809497833, 1.9024351835250854, 2.0632426738739014, -0.8153939247131348, 1.5324838161468506, -0.24370843172073364, 0.13266396522521973, 1.169590950012207, 1.3058829307556152, 3.083875894546509, 1.8145842552185059, -1.26133394241333, 0.6064013838768005, -0.2069321572780609, -0.5038474798202515, 1.1476948261260986, -1.2190489768981934, 1.3131864070892334, -0.15591922402381897, -1.2281856536865234, -1.2677353620529175, 0.9057562947273254, 0.4412018954753876, 0.05903319641947746, -0.45096689462661743, 1.1631522178649902, 0.1351158171892166, 1.3819787502288818, 0.599787712097168, -0.3585643172264099, 0.5811371207237244, -0.4525745213031769, -0.5156078338623047, 1.569324254989624, 0.23066623508930206, -1.4475221633911133, -2.292980194091797, -0.2851119339466095, -0.9137870669364929, 0.10008012503385544, -0.5798330307006836, -1.0006123781204224, 1.685953140258789, 0.34894055128097534, -1.223159670829773, -0.29616597294807434, -0.2921214699745178, -0.5273836255073547, 2.7450942993164062, -1.3514189720153809, -0.17293305695056915, -1.0051504373550415, -0.6822393536567688, 1.6334329843521118, -1.1846179962158203, -0.19684183597564697, -1.0949708223342896, -0.5508131980895996, -1.3518753051757812, -0.48057103157043457, 0.04859325289726257, -0.930453896522522, 0.8511396050453186, 0.2580317556858063, -1.1844621896743774, -0.3244648575782776, -0.9186199307441711, 0.9242631793022156, -0.13145773112773895, 0.182304248213768, 1.851215124130249, 0.28410905599594116, -0.4514416754245758, 0.7017174363136292, 1.1812463998794556, 0.6804473996162415, -0.6379576921463013, 0.12289364635944366, -0.6477893590927124, 0.33621054887771606, -1.3431508541107178, 0.2088475078344345, -2.9018468856811523, 0.644119143486023, -0.1266026496887207, -0.06496214866638184, -0.02458260953426361, -1.3212817907333374, 1.0855624675750732, 2.589228630065918, -1.1481497287750244, 0.4668099284172058, 0.39133697748184204, 1.2440210580825806, -1.679630994796753, 0.2692139446735382, -0.4839714765548706, 2.087197780609131, 0.24124829471111298, 1.2305458784103394, -0.45243746042251587, -2.3568625450134277, 0.6382437944412231, -1.2361079454421997, -1.1104207038879395, 0.8904532790184021, -0.8836961984634399, 0.17274656891822815, -1.3615117073059082, -0.22913052141666412, -0.8711991906166077, -1.1932264566421509, 0.7010172605514526, 0.0635489746928215, 0.454041451215744, -0.5691349506378174, 0.3330140709877014, -2.176492929458618, -1.3419055938720703, -0.15478886663913727, -0.8989154100418091, 0.4308006763458252, -0.4675651788711548, 0.7379227876663208, -0.18035832047462463, 0.0372602716088295, 0.380585640668869, 1.5364618301391602, 3.3507885932922363, 0.1906956285238266, 0.34294942021369934, -0.15635323524475098, -0.9774501323699951, 1.4669917821884155, 0.9087281823158264, -0.036327291280031204, -0.5497520565986633, -1.0392448902130127, 1.1938271522521973, 1.9653135538101196, 1.01077139377594, -0.0028246999718248844, -0.8646209239959717, -0.6627944111824036, -0.017283283174037933, 0.17429308593273163, 0.47715115547180176, 0.919283390045166, 0.061580393463373184, 0.0501430407166481, 1.4838309288024902, 1.1030969619750977, -0.44293272495269775, 0.28988462686538696, -0.80684894323349, -0.47651082277297974, 0.5307667851448059, 0.23577691614627838, 0.002673424780368805, 0.4143806993961334, -0.982252299785614, -0.2063206136226654, -0.3914220929145813, -0.8698019981384277, -0.7256255149841309, -0.4075425863265991, -0.3783445954322815, 1.6854010820388794, 0.09333651512861252, -0.5798246264457703, -0.011311613954603672, -0.8061246871948242, -0.14052918553352356, -1.1159833669662476, 0.14153504371643066, -0.12991206347942352, -0.15184302628040314, -0.1314511001110077, 1.7255561351776123, -0.9168936014175415, -1.9670206308364868, 0.15316760540008545, 0.29500019550323486, -0.18832388520240784, 0.1471233367919922, 1.7065690755844116, 0.42094913125038147, 1.5230556726455688, 1.2618287801742554, 0.9940282106399536, -0.6935635209083557, -1.3480401039123535, 0.648761510848999, 1.0086069107055664, -1.3266346454620361, 0.851975679397583, -0.11862169206142426, -0.5484901070594788, 0.5351812243461609, 1.2715299129486084, 0.4408102035522461, -1.968400239944458, 0.8121959567070007, -1.0173977613449097, 0.7695336937904358, 0.7503276467323303, 0.7252444624900818, 0.22005699574947357, 0.7927250862121582, -1.1193360090255737, -1.1642231941223145, -0.637768566608429, -0.6386123299598694, 1.9275939464569092, -0.31421440839767456, 0.6263802647590637, -0.2090519368648529, -1.2804479598999023, -0.014887894503772259, 0.7308192253112793, 0.3908379077911377, -0.4382607936859131, 0.7916945219039917, -0.6747178435325623, -1.0302801132202148, -1.3837096691131592, -0.44219163060188293, -1.0673242807388306, -1.017544150352478, 1.1357303857803345, 0.6907606720924377, 0.30405861139297485, 1.8816425800323486, 0.7261589169502258, 0.3115095794200897, -2.5449299812316895, 0.8849483132362366, 0.2784762978553772, -0.0899280309677124, 0.8493838310241699, 0.37754708528518677, 1.0860869884490967, 0.040203265845775604, 0.5616862773895264, -2.506362199783325, 2.3495867252349854, -0.21737869083881378, 0.6199953556060791, -0.012342646718025208, -0.3201758563518524, 1.1833574771881104, 0.5995262861251831, 0.482601523399353, -1.0647332668304443, 0.6833309531211853, -0.4905140995979309, 1.2295010089874268, 0.9319778680801392, -0.8359839916229248, 0.06796808540821075, 1.3703635931015015, 0.5474398732185364, -0.489849716424942, -0.915431559085846, -0.9871743321418762, 0.9382165670394897, 1.6696357727050781, -0.05606325715780258, -0.026742346584796906, 0.8523886799812317, 0.6775772571563721, -1.2861212491989136, 0.1270657181739807, -0.7002771496772766, -0.7720505595207214, 1.6711641550064087, 2.109278678894043, -0.15722784399986267, -0.1576186716556549, -0.6535126566886902, -1.20433509349823, 0.7834091186523438, -0.014319265261292458, 0.18800415098667145, 0.6850941181182861, -0.6020948886871338, 1.0530308485031128, 0.8419239521026611, 0.8490079641342163, 0.3060412108898163, 0.26235365867614746, 0.4418042302131653, -0.3312976658344269, -1.0791157484054565, -0.08895877748727798, -1.0537952184677124, -2.6416757106781006, 0.416517049074173, -0.25439947843551636, -1.446241855621338, 0.017700374126434326, -0.9614827632904053, 0.8879275918006897, -0.5977120399475098, -1.1077948808670044, -1.5870983600616455, 0.24383018910884857, -0.03840472176671028, 0.9995484352111816, -1.5930463075637817, -0.15918608009815216, 1.203016996383667, 0.8934534192085266, -0.7162380814552307, 0.9452196955680847, 0.12996205687522888, 1.0870318412780762, 0.8163328766822815, -0.35600370168685913, 0.5716158747673035, 0.024527791887521744, -1.4105066061019897, 0.4449155330657959, 1.1768183708190918, 0.19776733219623566, 1.4892659187316895, -0.47732576727867126, 0.01753423735499382, 0.4214916229248047, -0.5871706604957581, -0.5204135179519653, -0.4861880838871002, 0.6536603569984436, 0.03605569899082184, -0.8294371366500854, -0.04628807306289673, -0.12405633181333542, -0.31780436635017395, 0.16832008957862854, -1.470518946647644, -0.14696919918060303, -0.4772682189941406, -0.6343055963516235, -1.23868989944458, -0.027564313262701035, 1.381801962852478, -0.6828627586364746, -0.20219245553016663, 0.4775427579879761, 0.40676349401474, 0.4858325719833374, 0.5801013112068176, -0.7786414623260498, -0.23397110402584076, -0.26447418332099915, -0.3615482449531555, 0.343210369348526, 1.36386239528656, -0.1183641254901886, -0.9779418706893921, 0.6907445788383484, -0.3193358778953552, -0.01963185891509056, 1.9476453065872192, 0.08441162109375, -0.7770453095436096, 0.2910037636756897, -0.6982292532920837, 1.9425418376922607, 1.7446929216384888, 1.3129771947860718, -0.10961957275867462, -0.9048895835876465, 0.7078857421875, -0.37697455286979675, -0.3324357867240906, 0.8526609539985657, 0.2948461174964905, -0.21113191545009613, -1.505357265472412, 0.7489569187164307, 1.2401660680770874, -0.8199855089187622, -0.7616387009620667, 0.10139437019824982, -0.7635360956192017, 1.0986617803573608, 0.6137605309486389, 0.41224873065948486, 0.33470407128334045, 1.667822003364563, 0.9092367887496948, -0.5435464382171631, 0.5127869248390198, 0.5872873067855835, -0.16468492150306702, -2.077136278152466, -1.1588610410690308, 0.30540695786476135, -0.6221981644630432, -1.5050431489944458, 1.507561445236206, -1.192433476448059, -1.042141079902649, 0.5199904441833496, 0.11132372170686722, 1.3147268295288086, 0.43867263197898865, 1.591266393661499, 2.0921337604522705, 0.786810040473938, 0.3966957628726959, 1.269936203956604, -0.22219805419445038, -0.4222169816493988, 1.800022840499878, -0.5169747471809387, 0.42538052797317505, 1.10302734375, -0.2779620885848999, -1.051149845123291, -0.7626752257347107, -1.234439730644226, -0.6321882009506226, 1.15737783908844, 0.022143397480249405, -1.051285743713379, 0.26432403922080994, 1.5966471433639526, 0.044191278517246246, -0.3650277256965637, 0.6811898350715637, 0.4875974655151367, -0.7303496599197388, -0.07966002821922302, -0.8517024517059326, 0.6197706460952759, -0.2697465419769287, -0.3321901857852936, 0.33986184000968933, 0.49689048528671265, 1.4076391458511353, -0.03482374548912048, 0.22191473841667175, 1.088529109954834, -1.4874156713485718, 1.5554262399673462, -0.7379689812660217, 0.24667496979236603, -2.3926732540130615, 1.349665641784668, -0.6769029498100281, 2.0149993896484375, -2.620271921157837, 0.43171679973602295, -0.5313476920127869, -0.4892130494117737, 0.301104873418808, -0.413274884223938, 0.16598181426525116, -0.10823549330234528, -1.0699410438537598, 0.019047725945711136, -0.7168056964874268, 0.5856613516807556, 1.0701483488082886, 1.2846182584762573, -1.0859382152557373, -0.37025198340415955, -1.6453863382339478, -0.14166533946990967, -0.7210855484008789, 0.26163381338119507, -1.9394632577896118, -0.27206742763519287, -1.9509503841400146, -2.467719078063965, -1.3639379739761353, -0.7965777516365051, 1.16116464138031, 0.1297251135110855, -1.0081026554107666, 1.331892490386963, -0.42570677399635315, -1.8734806776046753, 1.1197068691253662, -2.1056368350982666 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue.
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
961
26
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you** Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue.
[ -1.2947144508361816, -0.9828996658325195, -0.7856833934783936, 1.613226056098938, -0.16457679867744446, -1.1877700090408325, 0.0665641650557518, -1.013619303703308, 1.5474923849105835, -0.7312503457069397, 0.21981041133403778, -1.6653035879135132, 0.026162657886743546, -0.5408941507339478, -0.752967119216919, -0.8208835124969482, -0.37083345651626587, -0.8607373237609863, 1.0007470846176147, 2.536437749862671, 1.2905863523483276, -1.4348427057266235, 2.879817247390747, 0.6888107657432556, -0.21670852601528168, -1.0627154111862183, 0.48694270849227905, -0.0745883584022522, -1.1377041339874268, -0.5425108075141907, -0.8910218477249146, -0.03147033974528313, -0.5896158218383789, -0.40975263714790344, 0.1265673041343689, 0.42983195185661316, -0.29249054193496704, -0.2662302255630493, -0.6008431315422058, -0.6112534999847412, 0.536821722984314, -0.4301968812942505, 0.8678656220436096, -0.2575351893901825, 1.832572102546692, -0.6583946347236633, 0.42878252267837524, 0.7819894552230835, 1.3843451738357544, 0.18276703357696533, 0.041833117604255676, 0.37670931220054626, 0.3579564094543457, -0.03452017530798912, 0.6210282444953918, 1.2788197994232178, 0.6399631500244141, 0.4236821234226227, 0.6102433204650879, -2.1779637336730957, 1.3329179286956787, -1.0304616689682007, 0.2706259489059448, 1.2356150150299072, -0.7842350602149963, 0.44615375995635986, -1.8173733949661255, 0.012046714313328266, 0.6689113974571228, -2.2930328845977783, 0.2904370129108429, -1.2826383113861084, -0.4987276494503021, 0.9934386610984802, 0.2971622049808502, -1.3428573608398438, 0.18636858463287354, -0.5584648251533508, 1.1020296812057495, 0.4049913287162781, 1.0424147844314575, -1.7478984594345093, 0.032508283853530884, -0.14403380453586578, 0.0863838717341423, -1.2312432527542114, -1.6394226551055908, 0.5615251064300537, 0.4479943513870239, 0.8078038692474365, 0.0059212576597929, 1.0258923768997192, -1.1281219720840454, 0.8891082406044006, -1.0767889022827148, -1.5460950136184692, -1.3939155340194702, -2.4345943927764893, -2.1481709480285645, 0.7900204062461853, -0.5535615682601929, -0.5346545577049255, 1.9868552684783936, -0.9984644055366516, -1.749528169631958, 1.2436541318893433, 0.3833927810192108, 0.19905930757522583, 2.409994125366211, 0.10475151240825653, -0.7565682530403137, 0.4976917505264282, -0.755893886089325, 0.846964418888092, -0.43458878993988037, 1.3273314237594604, 0.4792536497116089, -1.0985262393951416, 1.561401605606079, -0.5034835934638977, 0.6066503524780273, -0.6533316969871521, -0.505575954914093, -0.7338271141052246, 0.28119969367980957, 1.9122486114501953, -0.3395007252693176, 1.54093337059021, -0.3601061999797821, -1.4859237670898438, -1.5824685096740723, 0.8472521901130676, 0.5078355669975281, -0.9304731488227844, 0.12673386931419373, -0.5080910921096802, 0.11221981048583984, -0.07724118232727051, 1.16250741481781, 1.2414135932922363, 0.5647194981575012, -0.24029682576656342, -0.8475183248519897, 0.14335133135318756, -0.27764105796813965, -0.6064264178276062, -1.8840820789337158, -0.35704243183135986, 0.22387218475341797, 0.6544031500816345, -1.2668910026550293, 1.6989386081695557, 0.9071349501609802, 1.86386239528656, 1.0017389059066772, -0.25763046741485596, 1.4284316301345825, 0.011198830790817738, 1.803056240081787, -0.5788920521736145, 0.6300836205482483, -0.44738316535949707, -1.077660083770752, 0.8582358360290527, -0.40385398268699646, -2.048875331878662, -0.8458511829376221, -0.7106150388717651, -0.31250613927841187, -0.7791629433631897, 0.7208268046379089, -0.416807621717453, -1.430899739265442, 0.23022335767745972, -0.7539212107658386, 0.2865055799484253, -1.1960269212722778, 0.35184067487716675, 0.7509576082229614, -0.6794394850730896, 0.026167839765548706, -0.29957765340805054, -1.2374939918518066, -0.5806422233581543, 0.3541727066040039, 1.9355636835098267, -0.6601104140281677, 0.880344569683075, 1.0352555513381958, -0.7114323973655701, 0.012098238803446293, 0.285599023103714, -0.31694430112838745, 0.7632626295089722, -1.057519793510437, -0.4685699939727783, 1.153427004814148, -0.23450614511966705, -0.6526167988777161, 1.3835289478302002, 0.874011218547821, -1.0763899087905884, -0.33361363410949707, -0.2984667122364044, -0.8418445587158203, 0.032421089708805084, -1.4412294626235962, -0.18888258934020996, 0.3628532588481903, -1.5521336793899536, -0.45448312163352966, -0.28286677598953247, 1.348738431930542, -0.2190871387720108, 1.4585918188095093, -0.2970520853996277, -0.11043759435415268, -0.1756868213415146, -0.5158195495605469, 0.2206207662820816, -0.2280672788619995, -0.6120190620422363, 0.08660227060317993, -0.7205061912536621, 0.35741373896598816, 1.5090223550796509, 0.3953070342540741, 0.07539365440607071, 0.39886459708213806, 1.1709260940551758, 0.36015334725379944, 0.1417853981256485, -0.8479397892951965, -1.488048791885376, 1.8677036762237549, -1.5410627126693726, 2.055297613143921, 0.8593913912773132, -0.030810300260782242, -1.8013770580291748, -1.812216877937317, 1.3162494897842407, 1.1653213500976562, 2.288623094558716, 0.503236711025238, 0.3712274432182312, -0.8177276849746704, -0.7909571528434753, 0.3183273673057556, -1.0281336307525635, -0.7444495558738708, 0.06302658468484879, 2.4621026515960693, 1.8288700580596924, -0.5272786617279053, -0.2814362943172455, -0.93603515625, 1.37642502784729, -0.2515577971935272, 0.33344659209251404, 2.115252733230591, -0.18384186923503876, -1.0223687887191772, 1.217734694480896, -2.4421772956848145, 0.30961164832115173, 2.05806303024292, 0.2594517767429352, 0.09033902734518051, -1.4709147214889526, -0.5967626571655273, -0.21473795175552368, -0.416465699672699, -1.2918897867202759, 0.5679236054420471, -0.27241095900535583, -0.8427930474281311, -1.3734796047210693, 0.036241862922906876, -1.2289522886276245, -1.5696355104446411, 0.33795028924942017, 1.9885908365249634, 2.169445037841797, -0.7858326435089111, 1.4852523803710938, -0.2235095351934433, 0.04096679016947746, 1.3297101259231567, 1.384694218635559, 3.077141761779785, 1.775352120399475, -1.1671993732452393, 0.5798595547676086, -0.36985576152801514, -0.5065016150474548, 1.1458353996276855, -1.0310943126678467, 1.119565486907959, -0.13809888064861298, -1.130294680595398, -1.257185459136963, 1.0702126026153564, 0.5391069650650024, -0.05587258189916611, -0.5068243741989136, 1.114796757698059, 0.09157775342464447, 1.2517881393432617, 0.5714198350906372, -0.34377846121788025, 0.5340121984481812, -0.43577641248703003, -0.5825726389884949, 1.551864743232727, 0.09894700348377228, -1.584197759628296, -2.3107011318206787, -0.1901700347661972, -0.9948683381080627, 0.007069445215165615, -0.5637975931167603, -1.0715036392211914, 1.5875849723815918, 0.29613813757896423, -1.2468500137329102, -0.14456801116466522, -0.30988064408302307, -0.5182730555534363, 2.600992441177368, -1.2967725992202759, -0.1712573617696762, -0.9270952343940735, -0.48911556601524353, 1.662309169769287, -1.2128419876098633, -0.17133678495883942, -1.0362039804458618, -0.6830040812492371, -1.2685927152633667, -0.46849021315574646, -0.03598182648420334, -0.9978426694869995, 0.7999612092971802, 0.26969656348228455, -1.1138468980789185, -0.26313287019729614, -0.8035595417022705, 0.9823959469795227, -0.0782945528626442, 0.24398119747638702, 1.940437912940979, 0.26286742091178894, -0.34463194012641907, 0.8249466419219971, 1.2618613243103027, 0.5864551663398743, -0.6140849590301514, 0.13526467978954315, -0.561225950717926, 0.3960072994232178, -1.3034214973449707, 0.21613620221614838, -2.9203014373779297, 0.7261636257171631, -0.007259673438966274, -0.22809776663780212, -0.06132977083325386, -1.3118422031402588, 1.1002275943756104, 2.624098062515259, -1.106674313545227, 0.4751638174057007, 0.4244592785835266, 1.1849814653396606, -1.6258084774017334, 0.21008670330047607, -0.477056086063385, 2.125643014907837, 0.21741598844528198, 1.2804287672042847, -0.5664921998977661, -2.4104323387145996, 0.5834346413612366, -1.2047134637832642, -1.0450900793075562, 0.7573177218437195, -0.80649334192276, 0.2568991780281067, -1.512155532836914, -0.17710502445697784, -0.982494056224823, -1.2221405506134033, 0.7538084983825684, 0.15705542266368866, 0.3775983154773712, -0.5589601993560791, 0.2317967414855957, -2.1465344429016113, -1.442284107208252, -0.1876908391714096, -0.8607441782951355, 0.6235395073890686, -0.29267168045043945, 0.5828927755355835, -0.02844611182808876, 0.02016294375061989, 0.1937980055809021, 1.5339633226394653, 3.320791482925415, 0.10746549069881439, 0.3066372871398926, -0.16753041744232178, -0.9559392333030701, 1.3549914360046387, 0.9021461009979248, -0.08177008479833603, -0.6615928411483765, -1.048722743988037, 1.307533860206604, 2.0003209114074707, 0.9793012142181396, 0.1308964192867279, -0.806535542011261, -0.665480375289917, -0.1058768630027771, 0.21766962110996246, 0.5164682865142822, 0.9468512535095215, -0.11340823024511337, 0.04712611809372902, 1.3781505823135376, 1.249338984489441, -0.4153132438659668, 0.3529089689254761, -0.8804010152816772, -0.3448430597782135, 0.36485856771469116, 0.19435907900333405, -0.036260273307561874, 0.42648807168006897, -0.957941472530365, -0.4083341062068939, -0.28210264444351196, -0.8986519575119019, -0.829633355140686, -0.3932163715362549, -0.38769859075546265, 1.5609896183013916, 0.1981835663318634, -0.41306695342063904, 0.15665526688098907, -0.696500837802887, -0.1886337548494339, -1.1043833494186401, 0.020398885011672974, -0.14522679150104523, -0.19779394567012787, -0.16379417479038239, 1.7123104333877563, -0.9399760365486145, -2.06781268119812, 0.13926805555820465, 0.369782030582428, -0.2250470221042633, 0.24693156778812408, 1.6814813613891602, 0.48011454939842224, 1.4276748895645142, 1.28695547580719, 0.966416597366333, -0.5583885312080383, -1.260339379310608, 0.7048048377037048, 1.0485260486602783, -1.3688068389892578, 0.9599418640136719, -0.24164965748786926, -0.4924190640449524, 0.7289072275161743, 1.359113335609436, 0.45459944009780884, -1.9811749458312988, 0.8482563495635986, -0.9075506329536438, 0.7569035291671753, 0.7273241281509399, 0.7249986529350281, 0.40760570764541626, 0.8335649371147156, -1.1963863372802734, -1.2295631170272827, -0.7721816897392273, -0.7544455528259277, 1.9622609615325928, -0.26002973318099976, 0.5963923335075378, -0.07971315085887909, -1.2717458009719849, -0.17376424372196198, 0.7694048881530762, 0.4509013295173645, -0.34859105944633484, 0.9073489904403687, -0.7347433567047119, -0.9847235679626465, -1.2676942348480225, -0.4635576605796814, -0.9789800047874451, -0.9002802968025208, 0.9571778774261475, 0.9827573895454407, 0.42514917254447937, 2.0048470497131348, 0.647987425327301, 0.37040209770202637, -2.574223518371582, 0.9424225687980652, 0.3106019198894501, -0.17102017998695374, 0.9246359467506409, 0.19675703346729279, 1.1273939609527588, 0.06849344819784164, 0.636298656463623, -2.334176540374756, 2.2786309719085693, -0.16605691611766815, 0.7322931289672852, -0.04355550929903984, -0.15501458942890167, 1.0962109565734863, 0.4843743145465851, 0.5637551546096802, -1.025189995765686, 0.6503888964653015, -0.5210792422294617, 1.2626550197601318, 0.8909849524497986, -0.8996381163597107, 0.05529606342315674, 1.3649773597717285, 0.2758418023586273, -0.47549471259117126, -0.9234199523925781, -0.8991891145706177, 0.9957749247550964, 1.773010492324829, -0.05134059861302376, 0.015559987165033817, 0.7976847887039185, 0.580653727054596, -1.2767809629440308, 0.01687190681695938, -0.7192652225494385, -0.7416760921478271, 1.6967296600341797, 2.0150680541992188, -0.23458851873874664, -0.1498381644487381, -0.710556149482727, -1.2982596158981323, 0.7133310437202454, -0.07326561957597733, 0.04365941509604454, 0.5805091261863708, -0.6507037281990051, 1.0144420862197876, 0.6940069198608398, 1.0689013004302979, 0.008468841202557087, 0.4080653488636017, 0.345914363861084, -0.42523080110549927, -1.1132307052612305, -0.3818505108356476, -1.1677124500274658, -2.578472137451172, 0.3095562756061554, -0.2008754163980484, -1.446655511856079, 0.07732411473989487, -0.9797098636627197, 0.8967843055725098, -0.5666294693946838, -1.244591474533081, -1.466936707496643, 0.27356958389282227, -0.2256082445383072, 0.9398065805435181, -1.7063051462173462, -0.07348637282848358, 1.1025153398513794, 0.8824813365936279, -0.490500807762146, 0.9061793684959412, 0.3016304671764374, 0.9778196215629578, 0.8248483538627625, -0.44997313618659973, 0.67402583360672, -0.012553682550787926, -1.3301914930343628, 0.43970298767089844, 1.2301982641220093, 0.21206995844841003, 1.2725841999053955, -0.4206118583679199, -0.06127738207578659, 0.4556630849838257, -0.749661922454834, -0.4714967906475067, -0.439269095659256, 0.720530092716217, -0.01740431785583496, -1.0062469244003296, -0.05538134276866913, -0.09582937508821487, -0.3612525761127472, 0.15385664999485016, -1.4621119499206543, -0.3425944447517395, -0.36057278513908386, -0.5053746104240417, -1.3549973964691162, 0.02894400805234909, 1.3282864093780518, -0.7677868008613586, -0.36001670360565186, 0.4364471137523651, 0.4380897879600525, 0.47746241092681885, 0.545480489730835, -0.7005638480186462, -0.38942405581474304, -0.20213942229747772, -0.31827592849731445, 0.28994491696357727, 1.2449074983596802, -0.07862228900194168, -0.9477120041847229, 0.7317824363708496, -0.4076497256755829, 0.16601617634296417, 1.9014009237289429, -0.04045189544558525, -0.7740578651428223, 0.38382694125175476, -0.6963537335395813, 1.8550786972045898, 1.66647207736969, 1.2100366353988647, -0.22671687602996826, -0.8265114426612854, 0.6709510684013367, -0.32584819197654724, -0.30066367983818054, 0.8603664636611938, 0.40367233753204346, -0.28593409061431885, -1.4386191368103027, 0.6025373339653015, 1.3147627115249634, -0.7458558678627014, -0.7910361289978027, 0.09246879816055298, -0.9512587189674377, 1.1987277269363403, 0.6139208078384399, 0.2949155867099762, 0.1255047619342804, 1.6586891412734985, 0.7969546318054199, -0.5019989013671875, 0.5151148438453674, 0.5731092691421509, -0.21750850975513458, -2.1429684162139893, -1.035544514656067, 0.19101405143737793, -0.3031916618347168, -1.5935606956481934, 1.2609723806381226, -1.0501177310943604, -0.9073600172996521, 0.557228684425354, 0.10991381108760834, 1.3181957006454468, 0.28136909008026123, 1.555817723274231, 1.9880421161651611, 0.8158565759658813, 0.4714709222316742, 1.1623520851135254, -0.09674453735351562, -0.4789019227027893, 1.880293846130371, -0.36307230591773987, 0.5330809950828552, 1.0734626054763794, -0.356292724609375, -1.1319409608840942, -0.7386325597763062, -1.1503173112869263, -0.6898108720779419, 1.2452540397644043, 0.12903019785881042, -1.0012156963348389, 0.18081659078598022, 1.649453043937683, 0.11299033463001251, -0.33918362855911255, 0.6408470273017883, 0.4570215940475464, -0.6913198232650757, -0.07441258430480957, -0.8897971510887146, 0.5749606490135193, -0.14293216168880463, -0.2679087817668915, 0.325671523809433, 0.5217193961143494, 1.2680076360702515, -0.08814193308353424, 0.06010349094867706, 1.0128850936889648, -1.4646167755126953, 1.5594685077667236, -0.6907554864883423, 0.39035314321517944, -2.432124376296997, 1.3300470113754272, -0.7241056561470032, 2.072930097579956, -2.536548614501953, 0.45300036668777466, -0.6268710494041443, -0.48318442702293396, 0.287859171628952, -0.3294360935688019, 0.09540671110153198, -0.18513835966587067, -0.9181544780731201, 0.015022925101220608, -0.7474818825721741, 0.5381478071212769, 1.1904455423355103, 1.3872671127319336, -1.1601159572601318, -0.14330346882343292, -1.6589858531951904, -0.1328229457139969, -0.9823635816574097, 0.21128126978874207, -2.0424976348876953, -0.1300978809595108, -2.0037267208099365, -2.1806724071502686, -1.369447112083435, -0.8004213571548462, 1.0603928565979004, 0.2434951514005661, -0.8711735010147095, 1.2915822267532349, -0.32394516468048096, -1.7774378061294556, 1.191114902496338, -2.089488983154297 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
> Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue. I installed seqeval, but still reported the same error. That's too bad.
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
961
39
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you** > Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue. I installed seqeval, but still reported the same error. That's too bad.
[ -1.2914772033691406, -0.9802976846694946, -0.7921580672264099, 1.6158086061477661, -0.16643506288528442, -1.190293550491333, 0.06297346949577332, -1.0137650966644287, 1.542764663696289, -0.731974184513092, 0.22063151001930237, -1.6682641506195068, 0.025529645383358, -0.542124330997467, -0.751162588596344, -0.8260084390640259, -0.37009942531585693, -0.8602762222290039, 1.0049313306808472, 2.533719778060913, 1.2918636798858643, -1.4358476400375366, 2.874911069869995, 0.6807458996772766, -0.22384586930274963, -1.0611867904663086, 0.4939422905445099, -0.07506492733955383, -1.137192964553833, -0.5469135642051697, -0.8853704333305359, -0.036104246973991394, -0.5882594585418701, -0.4119517505168915, 0.1320405900478363, 0.43874961137771606, -0.2919921576976776, -0.261424720287323, -0.5959809422492981, -0.6159026622772217, 0.5332446098327637, -0.4331340491771698, 0.8708082437515259, -0.2563122510910034, 1.8303685188293457, -0.654129683971405, 0.42568638920783997, 0.7747313976287842, 1.383615255355835, 0.18485993146896362, 0.04020119458436966, 0.3666698634624481, 0.35454538464546204, -0.03492576628923416, 0.6266928911209106, 1.27687406539917, 0.6363894939422607, 0.4254166781902313, 0.605577290058136, -2.174705743789673, 1.3293826580047607, -1.0226918458938599, 0.266287624835968, 1.234745740890503, -0.7875190377235413, 0.4429769217967987, -1.8158029317855835, 0.011111067607998848, 0.6684960722923279, -2.29502272605896, 0.281061053276062, -1.2913141250610352, -0.4987218677997589, 0.9866286516189575, 0.29508358240127563, -1.338568091392517, 0.18598461151123047, -0.5585102438926697, 1.100792407989502, 0.41625702381134033, 1.042089581489563, -1.7515629529953003, 0.03316196799278259, -0.145818293094635, 0.08950816839933395, -1.2353169918060303, -1.6488900184631348, 0.5580676794052124, 0.45172756910324097, 0.8049776554107666, 0.016843652352690697, 1.0256803035736084, -1.1263002157211304, 0.8833900690078735, -1.0721309185028076, -1.545905351638794, -1.3889251947402954, -2.432680368423462, -2.1524837017059326, 0.7857891917228699, -0.5596705079078674, -0.5377733111381531, 1.990914225578308, -1.0000628232955933, -1.752142310142517, 1.2477457523345947, 0.3885522484779358, 0.20250704884529114, 2.4102890491485596, 0.10367373377084732, -0.750741183757782, 0.49091389775276184, -0.7480064034461975, 0.8508281111717224, -0.43164145946502686, 1.326987385749817, 0.47732314467430115, -1.0947930812835693, 1.5613552331924438, -0.5092947483062744, 0.6115913391113281, -0.6485525965690613, -0.5022305846214294, -0.7289848923683167, 0.2818072438240051, 1.914617896080017, -0.3418048918247223, 1.548264503479004, -0.35589200258255005, -1.487966775894165, -1.5821799039840698, 0.8483788371086121, 0.5141540169715881, -0.9339755177497864, 0.13355863094329834, -0.5071043372154236, 0.10925503075122833, -0.07203694432973862, 1.1557022333145142, 1.2453867197036743, 0.560722827911377, -0.24047493934631348, -0.8501362204551697, 0.1464298963546753, -0.27542999386787415, -0.6022229790687561, -1.8836840391159058, -0.3613845407962799, 0.2230440378189087, 0.6671103239059448, -1.2687175273895264, 1.6945695877075195, 0.9005956649780273, 1.8645614385604858, 0.9995994567871094, -0.2605885863304138, 1.4335105419158936, 0.013503527268767357, 1.7981008291244507, -0.584830641746521, 0.6320792436599731, -0.44347018003463745, -1.0745798349380493, 0.8587045669555664, -0.39910680055618286, -2.046052932739258, -0.8428471088409424, -0.7103352546691895, -0.3080599009990692, -0.7789288759231567, 0.7272740602493286, -0.41229987144470215, -1.4262458086013794, 0.23134011030197144, -0.7586538791656494, 0.282186895608902, -1.201181173324585, 0.35098934173583984, 0.7501808404922485, -0.6760356426239014, 0.024759136140346527, -0.30219554901123047, -1.2394425868988037, -0.5748321413993835, 0.3569525182247162, 1.9292329549789429, -0.6566826105117798, 0.8779429197311401, 1.0320639610290527, -0.7124968767166138, 0.020826011896133423, 0.28106608986854553, -0.3113221526145935, 0.7630399465560913, -1.0595898628234863, -0.46412745118141174, 1.1557146310806274, -0.2383042275905609, -0.6507161855697632, 1.3822251558303833, 0.8756012916564941, -1.0734496116638184, -0.32819655537605286, -0.29878371953964233, -0.8374524116516113, 0.030319008976221085, -1.4433588981628418, -0.19177451729774475, 0.36162713170051575, -1.5564806461334229, -0.45574450492858887, -0.28329330682754517, 1.3424971103668213, -0.21816524863243103, 1.4605975151062012, -0.2983533442020416, -0.10634751617908478, -0.17587068676948547, -0.5102059245109558, 0.21717968583106995, -0.230092853307724, -0.6168345808982849, 0.09394155442714691, -0.7222490310668945, 0.3511847257614136, 1.5068901777267456, 0.3983118236064911, 0.08004093915224075, 0.39843669533729553, 1.1715623140335083, 0.36228516697883606, 0.13630670309066772, -0.849746823310852, -1.4910155534744263, 1.8727689981460571, -1.5417054891586304, 2.0533289909362793, 0.8640656471252441, -0.02913512848317623, -1.7993073463439941, -1.8143609762191772, 1.3161958456039429, 1.1593732833862305, 2.287722587585449, 0.500788152217865, 0.37292277812957764, -0.8174009323120117, -0.78940349817276, 0.3199349343776703, -1.0320243835449219, -0.7473642826080322, 0.060808517038822174, 2.464174270629883, 1.8289803266525269, -0.5301927924156189, -0.281739741563797, -0.9290945529937744, 1.3715204000473022, -0.2508959174156189, 0.3350578546524048, 2.1058013439178467, -0.18324178457260132, -1.027721643447876, 1.2132149934768677, -2.447704553604126, 0.308700829744339, 2.0561270713806152, 0.2589970827102661, 0.09240133315324783, -1.4742670059204102, -0.6075255870819092, -0.21558716893196106, -0.4170153737068176, -1.2950536012649536, 0.5634951591491699, -0.26937708258628845, -0.8367331027984619, -1.372695803642273, 0.0365925095975399, -1.2296050786972046, -1.5644205808639526, 0.3293227553367615, 1.989263653755188, 2.1696012020111084, -0.7851362824440002, 1.4871954917907715, -0.22535577416419983, 0.03664300590753555, 1.3295297622680664, 1.3909581899642944, 3.074007272720337, 1.7760720252990723, -1.1683743000030518, 0.583511471748352, -0.36658453941345215, -0.5062165260314941, 1.1506638526916504, -1.0326616764068604, 1.120376706123352, -0.15273866057395935, -1.135166883468628, -1.2623541355133057, 1.065605640411377, 0.5365025401115417, -0.05807710438966751, -0.5025030970573425, 1.1207629442214966, 0.09437862038612366, 1.253129005432129, 0.5780243873596191, -0.3418682813644409, 0.5366020202636719, -0.4360538423061371, -0.5845845341682434, 1.557113766670227, 0.09869503229856491, -1.584792971611023, -2.311213970184326, -0.1857372224330902, -0.9928786754608154, 0.003060813993215561, -0.565373957157135, -1.069075107574463, 1.584930181503296, 0.29476913809776306, -1.2435024976730347, -0.15117669105529785, -0.31787246465682983, -0.5151343941688538, 2.5931148529052734, -1.2927364110946655, -0.16391924023628235, -0.9211972951889038, -0.493446409702301, 1.6553065776824951, -1.2133934497833252, -0.16754084825515747, -1.035642385482788, -0.6829953193664551, -1.266689419746399, -0.4701618254184723, -0.03156913071870804, -0.9952753186225891, 0.7921726703643799, 0.27245277166366577, -1.1179770231246948, -0.2653678357601166, -0.8084284663200378, 0.9841227531433105, -0.07576935738325119, 0.2465338110923767, 1.9489799737930298, 0.2672760784626007, -0.3440342843532562, 0.8365492224693298, 1.262733817100525, 0.5838170051574707, -0.6170943975448608, 0.1323838233947754, -0.5552104711532593, 0.40056368708610535, -1.3099862337112427, 0.21529105305671692, -2.9169929027557373, 0.7270098328590393, -0.009482488967478275, -0.22777721285820007, -0.06032904237508774, -1.3147042989730835, 1.099851369857788, 2.628775119781494, -1.1068153381347656, 0.47878336906433105, 0.4209703207015991, 1.1911944150924683, -1.6278412342071533, 0.21142295002937317, -0.4795134961605072, 2.1277124881744385, 0.21988126635551453, 1.2920143604278564, -0.5696373581886292, -2.4128055572509766, 0.5819839835166931, -1.2068917751312256, -1.03873872756958, 0.7554322481155396, -0.8159632086753845, 0.2531219720840454, -1.5201282501220703, -0.17821326851844788, -0.9785029292106628, -1.2236263751983643, 0.7490345239639282, 0.15017524361610413, 0.3801804184913635, -0.554941713809967, 0.23265337944030762, -2.144451856613159, -1.441604733467102, -0.17815673351287842, -0.8616387248039246, 0.6236960887908936, -0.29169589281082153, 0.5809955596923828, -0.019607247784733772, 0.01851975917816162, 0.20013877749443054, 1.5304794311523438, 3.318035840988159, 0.10454188287258148, 0.3007456958293915, -0.17190483212471008, -0.9540020227432251, 1.3575222492218018, 0.8984191417694092, -0.08581762760877609, -0.662190318107605, -1.0421833992004395, 1.312339425086975, 2.0002713203430176, 0.9783571362495422, 0.13758790493011475, -0.8039087653160095, -0.6667278409004211, -0.10595632344484329, 0.22551047801971436, 0.512675404548645, 0.9424208998680115, -0.11341521143913269, 0.048272211104631424, 1.378090739250183, 1.2450517416000366, -0.40943971276283264, 0.3555891513824463, -0.8798230886459351, -0.346311092376709, 0.3684752285480499, 0.1914457380771637, -0.0345139279961586, 0.4291032552719116, -0.9567887783050537, -0.4067690670490265, -0.27584871649742126, -0.8892159461975098, -0.832612156867981, -0.39156219363212585, -0.3879498839378357, 1.5692745447158813, 0.19469568133354187, -0.4219851493835449, 0.15777751803398132, -0.7013891339302063, -0.19163379073143005, -1.1080809831619263, 0.02155761420726776, -0.150936096906662, -0.1937929093837738, -0.16306248307228088, 1.7043312788009644, -0.9420761466026306, -2.069526195526123, 0.1412988305091858, 0.36768779158592224, -0.22794389724731445, 0.24941369891166687, 1.6861727237701416, 0.4838874638080597, 1.427795171737671, 1.2894443273544312, 0.9642137289047241, -0.560677707195282, -1.266385793685913, 0.6977396011352539, 1.048091173171997, -1.364109754562378, 0.9588111042976379, -0.2451649010181427, -0.49609941244125366, 0.7195916771888733, 1.3599129915237427, 0.4619651436805725, -1.9803223609924316, 0.8496227860450745, -0.899747371673584, 0.7617727518081665, 0.7319809198379517, 0.7319340705871582, 0.40730634331703186, 0.8319642543792725, -1.2019202709197998, -1.225978970527649, -0.7737426161766052, -0.7514104843139648, 1.9584609270095825, -0.26040658354759216, 0.5917763710021973, -0.07968609780073166, -1.2746241092681885, -0.17670753598213196, 0.7640816569328308, 0.4478560984134674, -0.34733515977859497, 0.9187183976173401, -0.7306059002876282, -0.9859321117401123, -1.2773693799972534, -0.4646282494068146, -0.9730309844017029, -0.8956866264343262, 0.9631706476211548, 0.9846999645233154, 0.4214886724948883, 2.0032732486724854, 0.6410067677497864, 0.37056294083595276, -2.5712571144104004, 0.9428441524505615, 0.30910566449165344, -0.1694048047065735, 0.9220157861709595, 0.2002914845943451, 1.1269205808639526, 0.07283557206392288, 0.6402875185012817, -2.3282699584960938, 2.282116651535034, -0.1651913821697235, 0.7359911799430847, -0.03651446849107742, -0.1522197127342224, 1.0914322137832642, 0.48927292227745056, 0.5663125514984131, -1.0269325971603394, 0.6589697599411011, -0.5255609750747681, 1.2590770721435547, 0.8907792568206787, -0.8987212181091309, 0.05612212419509888, 1.369404911994934, 0.27534595131874084, -0.487831175327301, -0.93125319480896, -0.8923255801200867, 0.9900491237640381, 1.773249626159668, -0.05118110030889511, 0.02001185528934002, 0.7853023409843445, 0.5788148641586304, -1.2738951444625854, 0.019881896674633026, -0.718235969543457, -0.7351289987564087, 1.6986602544784546, 2.0120842456817627, -0.2310100793838501, -0.15245845913887024, -0.7081689834594727, -1.3020039796829224, 0.7139822244644165, -0.07143151760101318, 0.04616351053118706, 0.579965353012085, -0.6525236368179321, 1.0206891298294067, 0.6947897672653198, 1.0726051330566406, 0.005831272341310978, 0.4105646014213562, 0.3513796627521515, -0.42663899064064026, -1.1044753789901733, -0.37769147753715515, -1.1672847270965576, -2.5753793716430664, 0.31200361251831055, -0.20856034755706787, -1.4460660219192505, 0.07012736797332764, -0.9869736433029175, 0.896986186504364, -0.5704334378242493, -1.246791958808899, -1.468162178993225, 0.27053576707839966, -0.23000961542129517, 0.9396171569824219, -1.7134931087493896, -0.07084347307682037, 1.1002947092056274, 0.883502721786499, -0.4935174286365509, 0.9046311974525452, 0.2995937466621399, 0.9851230978965759, 0.8256220817565918, -0.44566142559051514, 0.6724267601966858, -0.02012576162815094, -1.3223230838775635, 0.4405178427696228, 1.2288622856140137, 0.21366313099861145, 1.275736689567566, -0.4202231466770172, -0.06125868484377861, 0.4556756913661957, -0.7407172322273254, -0.47149384021759033, -0.4412870705127716, 0.7176699638366699, -0.008115495555102825, -1.0100512504577637, -0.05730479210615158, -0.09608752280473709, -0.3572753965854645, 0.14821398258209229, -1.4635183811187744, -0.33933940529823303, -0.36099717020988464, -0.5053731203079224, -1.351171851158142, 0.02545386552810669, 1.333510398864746, -0.7635005116462708, -0.3604181706905365, 0.4322149455547333, 0.4380556643009186, 0.4756333827972412, 0.5474212765693665, -0.715477705001831, -0.3914249539375305, -0.20678815245628357, -0.31651875376701355, 0.2796337306499481, 1.2395350933074951, -0.07921955734491348, -0.9481166005134583, 0.7310605645179749, -0.40618056058883667, 0.16596463322639465, 1.9061490297317505, -0.04426266625523567, -0.779261589050293, 0.3808998167514801, -0.6917752623558044, 1.8583264350891113, 1.6648014783859253, 1.216208815574646, -0.2288353443145752, -0.8248262405395508, 0.6681899428367615, -0.32372546195983887, -0.2996973395347595, 0.861453652381897, 0.40197810530662537, -0.28490859270095825, -1.4448469877243042, 0.6030754446983337, 1.3133946657180786, -0.7500429153442383, -0.7813341617584229, 0.08666764944791794, -0.9529680609703064, 1.1981017589569092, 0.6142597794532776, 0.29013505578041077, 0.12697860598564148, 1.6572751998901367, 0.7932187914848328, -0.5051953196525574, 0.5122169256210327, 0.565670371055603, -0.22507014870643616, -2.1371476650238037, -1.0404952764511108, 0.1948232352733612, -0.3034173548221588, -1.5920121669769287, 1.2658478021621704, -1.0541542768478394, -0.8999437689781189, 0.5519407987594604, 0.10654335469007492, 1.3267254829406738, 0.28194868564605713, 1.5577325820922852, 1.9875410795211792, 0.8223705887794495, 0.47784483432769775, 1.1672883033752441, -0.09900987148284912, -0.4763340950012207, 1.8773307800292969, -0.3586661219596863, 0.5295541882514954, 1.0754420757293701, -0.3554357588291168, -1.1270420551300049, -0.7416442632675171, -1.1555839776992798, -0.6903321743011475, 1.2431468963623047, 0.12830087542533875, -0.9973427057266235, 0.18644028902053833, 1.6497286558151245, 0.11572571843862534, -0.33719125390052795, 0.643930971622467, 0.46718117594718933, -0.6940736174583435, -0.07646576315164566, -0.8931928277015686, 0.5696876049041748, -0.14565342664718628, -0.2689070403575897, 0.3182535469532013, 0.5156254768371582, 1.2664753198623657, -0.08656671643257141, 0.058053284883499146, 1.0151124000549316, -1.4582895040512085, 1.5616470575332642, -0.6895662546157837, 0.38490989804267883, -2.4332022666931152, 1.3333230018615723, -0.7264880537986755, 2.0719587802886963, -2.5409703254699707, 0.453477680683136, -0.6228752136230469, -0.48177680373191833, 0.28694042563438416, -0.32720911502838135, 0.0948139876127243, -0.18277013301849365, -0.9151957631111145, 0.009729970246553421, -0.7479888200759888, 0.537097692489624, 1.1881095170974731, 1.3789085149765015, -1.167256474494934, -0.13884922862052917, -1.659400463104248, -0.13106325268745422, -0.977321207523346, 0.20742550492286682, -2.0384466648101807, -0.12786772847175598, -2.0053136348724365, -2.1882529258728027, -1.362121820449829, -0.7964293360710144, 1.0585544109344482, 0.24266251921653748, -0.8664825558662415, 1.298051357269287, -0.32151782512664795, -1.7752785682678223, 1.1931437253952026, -2.0903191566467285 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
> > Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue. > > I installed seqeval, but still reported the same error. That's too bad. Same issue here. What should I do to fix this error? Please help! Thank you.
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
961
57
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you** > > Hi! Some of our metrics require additional dependencies to work. In your case, simply installing the `seqeval` package with `pip install seqeval` should resolve the issue. > > I installed seqeval, but still reported the same error. That's too bad. Same issue here. What should I do to fix this error? Please help! Thank you.
[ -1.297714114189148, -0.9720885157585144, -0.7958030104637146, 1.6149345636367798, -0.16710995137691498, -1.1862573623657227, 0.06006142497062683, -1.0171579122543335, 1.5378354787826538, -0.7332401275634766, 0.21941915154457092, -1.6697038412094116, 0.027236299589276314, -0.538699746131897, -0.7518458366394043, -0.8246750831604004, -0.3686806857585907, -0.8615795969963074, 1.002854585647583, 2.5357882976531982, 1.2951343059539795, -1.4334889650344849, 2.8743698596954346, 0.6840277910232544, -0.21857738494873047, -1.0608930587768555, 0.4959510862827301, -0.0780201107263565, -1.1331546306610107, -0.5451313853263855, -0.8845747709274292, -0.03602119907736778, -0.5853895545005798, -0.4022558033466339, 0.12785391509532928, 0.4314415156841278, -0.29200857877731323, -0.2572430372238159, -0.6006757616996765, -0.613983154296875, 0.5310822129249573, -0.43617674708366394, 0.8690471053123474, -0.2536981403827667, 1.8270667791366577, -0.6554495096206665, 0.42103374004364014, 0.7747401595115662, 1.384423851966858, 0.1844816952943802, 0.043681226670742035, 0.3691784143447876, 0.35336095094680786, -0.030655190348625183, 0.6204788088798523, 1.2731585502624512, 0.6376001834869385, 0.4218912720680237, 0.6090936660766602, -2.175039768218994, 1.332129716873169, -1.0233559608459473, 0.268035352230072, 1.231305718421936, -0.7862275242805481, 0.44578614830970764, -1.8162418603897095, 0.015736069530248642, 0.6721816062927246, -2.2971177101135254, 0.2795870304107666, -1.2920112609863281, -0.5038484930992126, 0.9814108610153198, 0.29113245010375977, -1.3398044109344482, 0.18151240050792694, -0.5612762570381165, 1.1004325151443481, 0.40914252400398254, 1.0475895404815674, -1.7498008012771606, 0.03345879167318344, -0.14800840616226196, 0.08592887967824936, -1.238228440284729, -1.6410847902297974, 0.5626623034477234, 0.4498494267463684, 0.8057463765144348, 0.010881854221224785, 1.0246026515960693, -1.1253178119659424, 0.8841537833213806, -1.0713956356048584, -1.5417680740356445, -1.388794183731079, -2.437185049057007, -2.1548829078674316, 0.7904241681098938, -0.5689252614974976, -0.5345486998558044, 1.9922927618026733, -1.0011389255523682, -1.754464030265808, 1.2392278909683228, 0.38516807556152344, 0.20080620050430298, 2.418076276779175, 0.10025405138731003, -0.7540781497955322, 0.4912136495113373, -0.7533596158027649, 0.8499498963356018, -0.43044090270996094, 1.3273183107376099, 0.47265297174453735, -1.0975122451782227, 1.5597058534622192, -0.5096240639686584, 0.6044372320175171, -0.6486063599586487, -0.5066917538642883, -0.7262204885482788, 0.2797377407550812, 1.916882872581482, -0.3386267125606537, 1.5469321012496948, -0.3541126549243927, -1.4898555278778076, -1.5825268030166626, 0.8449649214744568, 0.5093085765838623, -0.9406777024269104, 0.13409103453159332, -0.5119735598564148, 0.11293072253465652, -0.06838872283697128, 1.1540385484695435, 1.243550419807434, 0.5639268159866333, -0.23833058774471283, -0.8545309901237488, 0.1485651135444641, -0.2770182192325592, -0.6045480370521545, -1.8878798484802246, -0.35443395376205444, 0.21876868605613708, 0.6681357026100159, -1.2676643133163452, 1.6935123205184937, 0.9014521241188049, 1.86519193649292, 1.0042738914489746, -0.2623390853404999, 1.4291483163833618, 0.01437445916235447, 1.7983592748641968, -0.5893814563751221, 0.6338121891021729, -0.4471781253814697, -1.073427438735962, 0.8612899780273438, -0.4048560559749603, -2.045485019683838, -0.8457640409469604, -0.701974093914032, -0.31220105290412903, -0.7819450497627258, 0.7239057421684265, -0.41452252864837646, -1.419479250907898, 0.24089549481868744, -0.7562352418899536, 0.27846214175224304, -1.202838659286499, 0.3551342785358429, 0.7481910586357117, -0.6752964854240417, 0.02077021636068821, -0.30597198009490967, -1.2375147342681885, -0.5845302939414978, 0.35770145058631897, 1.934630036354065, -0.6538251042366028, 0.8787710070610046, 1.0342137813568115, -0.7131227254867554, 0.015622779726982117, 0.2807786464691162, -0.31261664628982544, 0.762728750705719, -1.0591367483139038, -0.46782755851745605, 1.1582022905349731, -0.24126237630844116, -0.6451572775840759, 1.3795171976089478, 0.8678638935089111, -1.07582688331604, -0.3335120379924774, -0.2980588674545288, -0.8398579359054565, 0.03461174666881561, -1.442641258239746, -0.18409143388271332, 0.3582268953323364, -1.557827353477478, -0.45610928535461426, -0.2810439169406891, 1.3513193130493164, -0.21903924643993378, 1.4596636295318604, -0.2999405562877655, -0.10503245890140533, -0.1764792948961258, -0.5089934468269348, 0.22315309941768646, -0.2371925711631775, -0.6069923043251038, 0.0931716114282608, -0.7193326950073242, 0.3510993421077728, 1.5085334777832031, 0.3986843228340149, 0.07688110321760178, 0.3945353031158447, 1.1614800691604614, 0.36197084188461304, 0.13223394751548767, -0.8495117425918579, -1.4908734560012817, 1.8740878105163574, -1.5454983711242676, 2.059889078140259, 0.8654063940048218, -0.03373374044895172, -1.8016753196716309, -1.8138655424118042, 1.3082051277160645, 1.1642885208129883, 2.287407636642456, 0.5065048336982727, 0.3696669340133667, -0.8148288726806641, -0.7882817983627319, 0.31729790568351746, -1.0266560316085815, -0.7459014654159546, 0.058838360011577606, 2.4634270668029785, 1.8245658874511719, -0.5312930345535278, -0.27788710594177246, -0.9261241555213928, 1.3727693557739258, -0.24792060256004333, 0.33511894941329956, 2.100572347640991, -0.18565262854099274, -1.0267317295074463, 1.2127227783203125, -2.4449150562286377, 0.3078634738922119, 2.0542964935302734, 0.2595904767513275, 0.09530801326036453, -1.474236249923706, -0.6043185591697693, -0.21780180931091309, -0.41665640473365784, -1.2923436164855957, 0.5675119757652283, -0.27321988344192505, -0.8353145718574524, -1.3773850202560425, 0.038484856486320496, -1.2255803346633911, -1.5717068910598755, 0.33030834794044495, 1.9881831407546997, 2.173689126968384, -0.7829147577285767, 1.4824639558792114, -0.23002180457115173, 0.038664259016513824, 1.3223860263824463, 1.391169548034668, 3.072155237197876, 1.7759418487548828, -1.167413353919983, 0.5843009352684021, -0.36402684450149536, -0.5059279799461365, 1.1467208862304688, -1.0306000709533691, 1.1192963123321533, -0.14638133347034454, -1.1372243165969849, -1.2553778886795044, 1.0695637464523315, 0.5362288951873779, -0.05606824904680252, -0.501014769077301, 1.1226948499679565, 0.08953606337308884, 1.2540357112884521, 0.5714026689529419, -0.3458983302116394, 0.5338034629821777, -0.4409703314304352, -0.5860376954078674, 1.552160620689392, 0.09608664363622665, -1.5914952754974365, -2.314551591873169, -0.1888970285654068, -0.9933784008026123, 0.0053245909512043, -0.5641261339187622, -1.07672917842865, 1.5853941440582275, 0.2967563271522522, -1.2383400201797485, -0.15613935887813568, -0.31710338592529297, -0.514999508857727, 2.59543776512146, -1.3005919456481934, -0.16445131599903107, -0.921744704246521, -0.4904739260673523, 1.6594836711883545, -1.2171403169631958, -0.1688631922006607, -1.037452220916748, -0.6814360618591309, -1.2666436433792114, -0.4642074406147003, -0.03206586465239525, -0.9921753406524658, 0.7981541752815247, 0.275463730096817, -1.1163805723190308, -0.2634661793708801, -0.8055878281593323, 0.9811765551567078, -0.07083500921726227, 0.2509494423866272, 1.947277545928955, 0.2655058801174164, -0.34717512130737305, 0.8311166167259216, 1.2624754905700684, 0.5867524147033691, -0.621887743473053, 0.13021601736545563, -0.5588029623031616, 0.401188462972641, -1.3122131824493408, 0.21405386924743652, -2.9245877265930176, 0.7339462637901306, -0.007204313762485981, -0.226227268576622, -0.05698814243078232, -1.3179347515106201, 1.1015177965164185, 2.6337993144989014, -1.1090373992919922, 0.47612661123275757, 0.42108699679374695, 1.1843657493591309, -1.625710129737854, 0.21427105367183685, -0.4799599051475525, 2.1365139484405518, 0.22042299807071686, 1.2867467403411865, -0.5681213736534119, -2.4174582958221436, 0.5843974351882935, -1.2060141563415527, -1.0397611856460571, 0.7527757883071899, -0.8107473850250244, 0.24580241739749908, -1.519038438796997, -0.17474670708179474, -0.978215754032135, -1.2245105504989624, 0.7511066198348999, 0.15088437497615814, 0.3772202432155609, -0.555091381072998, 0.22881372272968292, -2.1463239192962646, -1.443067193031311, -0.18150651454925537, -0.8587371706962585, 0.6248114705085754, -0.29345643520355225, 0.5849952697753906, -0.025528624653816223, 0.022967034950852394, 0.20690490305423737, 1.5342262983322144, 3.320577383041382, 0.10075654834508896, 0.30097562074661255, -0.16542792320251465, -0.9537882804870605, 1.357842206954956, 0.90011066198349, -0.08431757986545563, -0.660237729549408, -1.0455085039138794, 1.314731478691101, 2.0034806728363037, 0.9751707911491394, 0.1377454251050949, -0.8013303279876709, -0.6629422307014465, -0.10536076873540878, 0.23017394542694092, 0.5146588683128357, 0.9471590518951416, -0.12003973871469498, 0.04791899025440216, 1.3785998821258545, 1.249523401260376, -0.4075625538825989, 0.35369980335235596, -0.8831820487976074, -0.34369218349456787, 0.37126174569129944, 0.19048446416854858, -0.03854139894247055, 0.4327120780944824, -0.9529737830162048, -0.40528249740600586, -0.2779829204082489, -0.8904358744621277, -0.8301048874855042, -0.3909870684146881, -0.3909567594528198, 1.5618699789047241, 0.1965104043483734, -0.4122444987297058, 0.1589978039264679, -0.6966035962104797, -0.18832284212112427, -1.1092779636383057, 0.01823241449892521, -0.14731445908546448, -0.1918954700231552, -0.15901242196559906, 1.7076300382614136, -0.9371511936187744, -2.0670926570892334, 0.14209453761577606, 0.37098053097724915, -0.2236834168434143, 0.2510789632797241, 1.6869897842407227, 0.4846998453140259, 1.4300320148468018, 1.286270022392273, 0.9682636857032776, -0.5595004558563232, -1.2633588314056396, 0.7000777721405029, 1.0593292713165283, -1.3654619455337524, 0.9654399752616882, -0.24995726346969604, -0.4974060654640198, 0.7206442356109619, 1.3570705652236938, 0.46287643909454346, -1.9821120500564575, 0.8529451489448547, -0.905916690826416, 0.7615407109260559, 0.7239843010902405, 0.7255767583847046, 0.40610599517822266, 0.831299364566803, -1.2008161544799805, -1.227728009223938, -0.771111249923706, -0.7547086477279663, 1.9609471559524536, -0.2634619176387787, 0.5924515128135681, -0.08337830007076263, -1.2713291645050049, -0.17329919338226318, 0.7630600929260254, 0.44692838191986084, -0.344511479139328, 0.9124438166618347, -0.7311732769012451, -0.9887143969535828, -1.276643991470337, -0.46041300892829895, -0.9736367464065552, -0.9031145572662354, 0.963735818862915, 0.9773886799812317, 0.41932204365730286, 2.0020592212677, 0.633617639541626, 0.3657921552658081, -2.570505380630493, 0.9407113194465637, 0.31130626797676086, -0.1661551296710968, 0.9253937005996704, 0.19481563568115234, 1.1280195713043213, 0.07759159803390503, 0.6398371458053589, -2.324477434158325, 2.278153896331787, -0.1631936877965927, 0.734563946723938, -0.03299983590841293, -0.1552089899778366, 1.0854593515396118, 0.4901931881904602, 0.5684478878974915, -1.0243141651153564, 0.6574990153312683, -0.521751880645752, 1.257044792175293, 0.8904489278793335, -0.8935531377792358, 0.05667326599359512, 1.362682580947876, 0.2797398269176483, -0.4829866588115692, -0.9230533838272095, -0.8915586471557617, 0.991054356098175, 1.780364751815796, -0.04836038500070572, 0.022724555805325508, 0.7827567458152771, 0.5782090425491333, -1.2732510566711426, 0.014800690114498138, -0.7191755175590515, -0.7405983805656433, 1.6956982612609863, 2.0142576694488525, -0.22532117366790771, -0.14990228414535522, -0.7094227075576782, -1.3006439208984375, 0.7140060067176819, -0.07954204082489014, 0.04769904911518097, 0.580030083656311, -0.6507900953292847, 1.0155702829360962, 0.6893170475959778, 1.07317054271698, 0.009319670498371124, 0.41132789850234985, 0.3560558557510376, -0.4246179759502411, -1.1026734113693237, -0.37752237915992737, -1.176058292388916, -2.57828426361084, 0.31554150581359863, -0.20745953917503357, -1.4429965019226074, 0.07018910348415375, -0.9802674055099487, 0.8979551196098328, -0.5642653107643127, -1.2425302267074585, -1.4625630378723145, 0.2728005051612854, -0.233746737241745, 0.9420843720436096, -1.7045530080795288, -0.07374779134988785, 1.1012053489685059, 0.8879563808441162, -0.49626633524894714, 0.9083128571510315, 0.3007018566131592, 0.9845453500747681, 0.8245055675506592, -0.4482393264770508, 0.6718014478683472, -0.013927427120506763, -1.324268102645874, 0.44096675515174866, 1.2364767789840698, 0.21311454474925995, 1.2668836116790771, -0.42174747586250305, -0.06401940435171127, 0.4540407955646515, -0.7385366559028625, -0.470458984375, -0.4371744990348816, 0.7217468619346619, -0.013080728240311146, -1.0085082054138184, -0.05792719125747681, -0.09541067481040955, -0.35862404108047485, 0.1519182026386261, -1.460536241531372, -0.3435286581516266, -0.3620383143424988, -0.498842716217041, -1.3504530191421509, 0.026693062856793404, 1.3353744745254517, -0.7682576775550842, -0.353855699300766, 0.4294722378253937, 0.4439460337162018, 0.47611722350120544, 0.5482786297798157, -0.7068867087364197, -0.38811248540878296, -0.20570069551467896, -0.31905126571655273, 0.28647592663764954, 1.2318754196166992, -0.08196759968996048, -0.9476734399795532, 0.729180097579956, -0.4074420928955078, 0.16729648411273956, 1.9058022499084473, -0.036430180072784424, -0.7717481851577759, 0.3816026449203491, -0.6958016157150269, 1.8559597730636597, 1.6645996570587158, 1.2138557434082031, -0.23009373247623444, -0.8214892148971558, 0.6719178557395935, -0.3227129876613617, -0.3019731640815735, 0.8569002747535706, 0.406825989484787, -0.2827928364276886, -1.4489479064941406, 0.6035575866699219, 1.314443826675415, -0.7560683488845825, -0.7854579091072083, 0.08751407265663147, -0.9535885453224182, 1.1945563554763794, 0.6167259812355042, 0.2971106171607971, 0.1309155374765396, 1.6556885242462158, 0.7925988435745239, -0.5145357251167297, 0.5060657262802124, 0.5570285320281982, -0.22553810477256775, -2.141228199005127, -1.0408434867858887, 0.1933845579624176, -0.30199936032295227, -1.5879974365234375, 1.2653260231018066, -1.054856777191162, -0.9017937183380127, 0.5486159920692444, 0.10970450937747955, 1.3227843046188354, 0.2755843997001648, 1.5618213415145874, 1.9907485246658325, 0.8250808119773865, 0.4693291187286377, 1.167345643043518, -0.09486718475818634, -0.47581154108047485, 1.883155107498169, -0.3565518260002136, 0.5301291346549988, 1.0846282243728638, -0.3588668704032898, -1.1262112855911255, -0.7424393892288208, -1.1518665552139282, -0.6876870393753052, 1.240159034729004, 0.1278063952922821, -0.9989923238754272, 0.18242396414279938, 1.6470363140106201, 0.11981086432933807, -0.34089672565460205, 0.6399517059326172, 0.46121853590011597, -0.6911375522613525, -0.08053378015756607, -0.8980121612548828, 0.5756202340126038, -0.1498386561870575, -0.2724805772304535, 0.32124507427215576, 0.513701856136322, 1.270650863647461, -0.08545947074890137, 0.05890350043773651, 1.0170974731445312, -1.4584108591079712, 1.5608092546463013, -0.6862248182296753, 0.38394784927368164, -2.427299976348877, 1.3341630697250366, -0.7215831279754639, 2.0749828815460205, -2.537714958190918, 0.45724615454673767, -0.6228761672973633, -0.4799417555332184, 0.2909144163131714, -0.32526448369026184, 0.1018303707242012, -0.1842721700668335, -0.9139958620071411, 0.011671189218759537, -0.7482552528381348, 0.5352206826210022, 1.188895344734192, 1.3772295713424683, -1.1578668355941772, -0.14080484211444855, -1.6627527475357056, -0.13795235753059387, -0.9790788888931274, 0.20182868838310242, -2.037400245666504, -0.1322687268257141, -2.006422519683838, -2.1828997135162354, -1.3657642602920532, -0.7992967963218689, 1.0570042133331299, 0.2424335926771164, -0.8713537454605103, 1.2994446754455566, -0.3254331648349762, -1.7740912437438965, 1.189600944519043, -2.0928258895874023 ]
https://github.com/huggingface/datasets/issues/3703
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
I tried to install **seqeval** package through anaconda instead of pip: `conda install -c conda-forge seqeval` It worked for me!
hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you**
961
20
ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' hi : I want to use the seqeval indicator because of direct load_ When metric ('seqeval '), it will prompt that the network connection fails. So I downloaded the seqeval Py to load locally. Loading code: metric = load_ metric(path='mymetric/seqeval/seqeval.py') But tips: Traceback (most recent call last): File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 604, in <module> main() File "/home/ubuntu/Python3.6_project/zyf_project/transformers/examples/pytorch/token-classification/run_ner.py", line 481, in main metric = load_metric(path='mymetric/seqeval/seqeval.py') File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 610, in load_metric dataset=False, File "/home/ubuntu/Python3.6_project/zyf_project/transformers_venv_0209/lib/python3.7/site-packages/datasets/load.py", line 450, in prepare_module f"To be able to use this {module_type}, you need to install the following dependencies" ImportError: To be able to use this metric, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance' **What should I do? Please help me, thank you** I tried to install **seqeval** package through anaconda instead of pip: `conda install -c conda-forge seqeval` It worked for me!
[ -1.3096107244491577, -0.9831188917160034, -0.7887311577796936, 1.6115339994430542, -0.16661988198757172, -1.2061525583267212, 0.060674622654914856, -0.9978777766227722, 1.5474973917007446, -0.7134191989898682, 0.20926739275455475, -1.6749070882797241, 0.031135858967900276, -0.5327929854393005, -0.7522310018539429, -0.8146826028823853, -0.3745107650756836, -0.8849084973335266, 1.0276635885238647, 2.521580934524536, 1.308363914489746, -1.45248281955719, 2.8856489658355713, 0.6802957653999329, -0.23002709448337555, -1.0679337978363037, 0.46898671984672546, -0.06198592483997345, -1.1343270540237427, -0.5651280283927917, -0.880724310874939, -0.03451099991798401, -0.5681846737861633, -0.40295669436454773, 0.13344205915927887, 0.4260171353816986, -0.2844434678554535, -0.27450868487358093, -0.5997636318206787, -0.6030958294868469, 0.5490992069244385, -0.42513307929039, 0.8545897603034973, -0.26762935519218445, 1.8233699798583984, -0.653186023235321, 0.4244483411312103, 0.7707878351211548, 1.3739941120147705, 0.16733227670192719, 0.045374080538749695, 0.379909873008728, 0.34769201278686523, -0.03587395325303078, 0.6305084824562073, 1.2837274074554443, 0.6406352519989014, 0.42610427737236023, 0.620331883430481, -2.1624934673309326, 1.3360135555267334, -1.0226448774337769, 0.2714068293571472, 1.2365695238113403, -0.7970566153526306, 0.4435252249240875, -1.8074768781661987, 0.01422416977584362, 0.6635562181472778, -2.285691499710083, 0.2865285873413086, -1.2803038358688354, -0.4979122281074524, 0.9872276782989502, 0.2834218442440033, -1.340336561203003, 0.18970751762390137, -0.5730403661727905, 1.096209168434143, 0.3900567591190338, 1.0512326955795288, -1.7393226623535156, 0.031383998692035675, -0.14381562173366547, 0.07473829388618469, -1.2317943572998047, -1.6365735530853271, 0.56244295835495, 0.4502215087413788, 0.808021605014801, -0.009618197567760944, 1.023606777191162, -1.1279056072235107, 0.8966829180717468, -1.076313853263855, -1.532036304473877, -1.413873314857483, -2.4387435913085938, -2.150789499282837, 0.8136828541755676, -0.5633431077003479, -0.5415900945663452, 1.9718122482299805, -1.0062628984451294, -1.7552249431610107, 1.2353156805038452, 0.3777236044406891, 0.2074165940284729, 2.407391309738159, 0.11687497049570084, -0.7554788589477539, 0.5166736245155334, -0.7389200925827026, 0.8401949405670166, -0.4201202988624573, 1.3386328220367432, 0.4804183542728424, -1.0949664115905762, 1.5601133108139038, -0.5122210383415222, 0.6048018336296082, -0.651552677154541, -0.5154574513435364, -0.7373168468475342, 0.27695387601852417, 1.9231575727462769, -0.325962096452713, 1.548871636390686, -0.3440778851509094, -1.4884634017944336, -1.5657490491867065, 0.8413530588150024, 0.50586998462677, -0.9339441061019897, 0.1347072869539261, -0.519712507724762, 0.10535318404436111, -0.06668033450841904, 1.1516848802566528, 1.240885853767395, 0.5506607890129089, -0.23869283497333527, -0.8510646224021912, 0.15898263454437256, -0.263616144657135, -0.5896887183189392, -1.8892531394958496, -0.3638571500778198, 0.2295752465724945, 0.6550487279891968, -1.2875630855560303, 1.6727020740509033, 0.9031541347503662, 1.8753801584243774, 1.0051336288452148, -0.25011345744132996, 1.4374080896377563, 0.004495060071349144, 1.8038474321365356, -0.5709936618804932, 0.6453823447227478, -0.4175527095794678, -1.0722005367279053, 0.8611294031143188, -0.4205430746078491, -2.0538055896759033, -0.8462539315223694, -0.6966734528541565, -0.30160123109817505, -0.7817113995552063, 0.7314980030059814, -0.41472354531288147, -1.4196206331253052, 0.23075354099273682, -0.749305009841919, 0.2959250509738922, -1.2059842348098755, 0.345590740442276, 0.7448694109916687, -0.671815037727356, 0.020456647500395775, -0.3051183223724365, -1.2456520795822144, -0.5795573592185974, 0.35259559750556946, 1.931093454360962, -0.6608405113220215, 0.8947433233261108, 1.0447535514831543, -0.7036131024360657, 0.028282390907406807, 0.28551068902015686, -0.3101942539215088, 0.7688139081001282, -1.0662721395492554, -0.469389408826828, 1.1524467468261719, -0.24348260462284088, -0.6286520957946777, 1.3825838565826416, 0.8681546449661255, -1.0756226778030396, -0.3357359766960144, -0.2911601662635803, -0.8562906384468079, 0.026796283200383186, -1.4311470985412598, -0.19388867914676666, 0.34916767477989197, -1.5606067180633545, -0.4570307731628418, -0.27307528257369995, 1.3339440822601318, -0.2282467633485794, 1.4567137956619263, -0.31565406918525696, -0.11583378165960312, -0.16025406122207642, -0.5032705068588257, 0.22642990946769714, -0.23350384831428528, -0.6192523837089539, 0.08071637153625488, -0.7257199883460999, 0.34939783811569214, 1.4997897148132324, 0.42563143372535706, 0.07297471910715103, 0.3976295590400696, 1.168969988822937, 0.374870628118515, 0.12367435544729233, -0.8277587294578552, -1.4882588386535645, 1.8781284093856812, -1.5338096618652344, 2.0553138256073, 0.8594881296157837, -0.034105345606803894, -1.784277081489563, -1.7926571369171143, 1.3148545026779175, 1.174394130706787, 2.2968578338623047, 0.5184218883514404, 0.36984574794769287, -0.8308743834495544, -0.785941481590271, 0.3053855895996094, -1.038377285003662, -0.7461593151092529, 0.05578635632991791, 2.465970277786255, 1.843425989151001, -0.5239854454994202, -0.27892327308654785, -0.9225096702575684, 1.3669487237930298, -0.2636904716491699, 0.3234815001487732, 2.1054341793060303, -0.17057611048221588, -1.0146708488464355, 1.2255011796951294, -2.4392645359039307, 0.31151819229125977, 2.0620338916778564, 0.2809014916419983, 0.1029820665717125, -1.4901409149169922, -0.5876513123512268, -0.2172728180885315, -0.4152596592903137, -1.2854259014129639, 0.5768620371818542, -0.28192138671875, -0.8403697609901428, -1.3774476051330566, 0.04251831769943237, -1.2195982933044434, -1.5639194250106812, 0.34114813804626465, 1.9782633781433105, 2.1737918853759766, -0.7760222554206848, 1.4779324531555176, -0.23241785168647766, 0.04894144833087921, 1.3291640281677246, 1.3811396360397339, 3.0761165618896484, 1.7752065658569336, -1.1616307497024536, 0.5672752261161804, -0.37047410011291504, -0.5160990357398987, 1.1483933925628662, -1.0302321910858154, 1.1310954093933105, -0.14273621141910553, -1.1372166872024536, -1.2496392726898193, 1.0827155113220215, 0.549471914768219, -0.05543920397758484, -0.5084739923477173, 1.1231409311294556, 0.0751199871301651, 1.2377182245254517, 0.5623798966407776, -0.3562031686306, 0.5265045166015625, -0.4315943717956543, -0.5799280405044556, 1.5503997802734375, 0.09081229567527771, -1.608279824256897, -2.2962827682495117, -0.18827173113822937, -0.9945849776268005, -0.005671401508152485, -0.5726450085639954, -1.077595591545105, 1.5877468585968018, 0.30383819341659546, -1.2509220838546753, -0.14722512662410736, -0.3022763133049011, -0.5290257930755615, 2.600020408630371, -1.2931753396987915, -0.16914060711860657, -0.9209904074668884, -0.48864027857780457, 1.6701405048370361, -1.210929274559021, -0.1797342598438263, -1.020139455795288, -0.7115477323532104, -1.2462080717086792, -0.4726654291152954, -0.044745005667209625, -0.9955718517303467, 0.7959936261177063, 0.2553407847881317, -1.1116257905960083, -0.2636569142341614, -0.8149802088737488, 0.9778661131858826, -0.08352510631084442, 0.2489185929298401, 1.9384829998016357, 0.2618165612220764, -0.35234835743904114, 0.8327643275260925, 1.257978081703186, 0.5880839228630066, -0.637789249420166, 0.11473190039396286, -0.5550390481948853, 0.4047567546367645, -1.3083289861679077, 0.21960477530956268, -2.9235527515411377, 0.7205690741539001, -0.001459077000617981, -0.21365034580230713, -0.056609176099300385, -1.3185129165649414, 1.1112028360366821, 2.6325631141662598, -1.1039025783538818, 0.4734490215778351, 0.43626612424850464, 1.1839746236801147, -1.6372298002243042, 0.2103116661310196, -0.4691241383552551, 2.128307342529297, 0.21437837183475494, 1.2860589027404785, -0.5643109679222107, -2.410313844680786, 0.5969191193580627, -1.195967674255371, -1.032555341720581, 0.728851318359375, -0.8237672448158264, 0.2621149718761444, -1.5244677066802979, -0.17846019566059113, -0.966424286365509, -1.2205561399459839, 0.74056077003479, 0.16618113219738007, 0.36769920587539673, -0.5543415546417236, 0.23617900907993317, -2.13971209526062, -1.4505740404129028, -0.1793324202299118, -0.8653652667999268, 0.6356555223464966, -0.3046170771121979, 0.5823105573654175, -0.0109945647418499, 0.02954530529677868, 0.1960878074169159, 1.5395091772079468, 3.30604887008667, 0.11393602192401886, 0.29671844840049744, -0.1592773199081421, -0.9496811628341675, 1.364591360092163, 0.8914859890937805, -0.0880555808544159, -0.654656708240509, -1.0389443635940552, 1.3264845609664917, 2.0000133514404297, 0.9724336862564087, 0.13623203337192535, -0.8263159990310669, -0.6769329309463501, -0.09636489301919937, 0.22587619721889496, 0.5207244157791138, 0.9548659920692444, -0.10789623111486435, 0.043589718639850616, 1.3852932453155518, 1.2340507507324219, -0.4105985462665558, 0.3628884255886078, -0.8748199343681335, -0.34375518560409546, 0.3556906580924988, 0.18934834003448486, -0.02638249471783638, 0.44222989678382874, -0.9635831117630005, -0.4155566692352295, -0.2696845531463623, -0.894303023815155, -0.8344239592552185, -0.3934324383735657, -0.4074046015739441, 1.557358741760254, 0.1999877542257309, -0.4323902130126953, 0.1555599868297577, -0.6945867538452148, -0.18916361033916473, -1.1115065813064575, 0.024124952033162117, -0.12117983400821686, -0.19007405638694763, -0.1596018373966217, 1.7114156484603882, -0.9371194839477539, -2.0767650604248047, 0.13819769024848938, 0.384433388710022, -0.23051708936691284, 0.22627077996730804, 1.684497356414795, 0.49442222714424133, 1.4336057901382446, 1.2892818450927734, 0.9638482332229614, -0.568722665309906, -1.2640042304992676, 0.698685884475708, 1.0446981191635132, -1.365824818611145, 0.9622078537940979, -0.262764573097229, -0.49233517050743103, 0.7204024791717529, 1.380334496498108, 0.46797874569892883, -1.9861949682235718, 0.8506133556365967, -0.9263503551483154, 0.7696326375007629, 0.7372880578041077, 0.7243605256080627, 0.41336503624916077, 0.8278239965438843, -1.2109553813934326, -1.2171804904937744, -0.7776297330856323, -0.7610175013542175, 1.9590680599212646, -0.25835543870925903, 0.5976429581642151, -0.08776113390922546, -1.277955174446106, -0.16830001771450043, 0.7694447040557861, 0.4478553235530853, -0.3212198317050934, 0.90437251329422, -0.725752592086792, -0.9937927722930908, -1.261258840560913, -0.44940394163131714, -0.9658483266830444, -0.9014014005661011, 0.9544265270233154, 0.9807881712913513, 0.43198147416114807, 1.9951199293136597, 0.6446138620376587, 0.37466827034950256, -2.579792022705078, 0.9545925855636597, 0.30376747250556946, -0.16548915207386017, 0.9119036197662354, 0.19473081827163696, 1.1124571561813354, 0.0932091549038887, 0.627440869808197, -2.3268442153930664, 2.255889892578125, -0.15971843898296356, 0.7169777154922485, -0.02785797230899334, -0.16126883029937744, 1.1086020469665527, 0.49650922417640686, 0.5689021348953247, -1.0385973453521729, 0.670427680015564, -0.5172850489616394, 1.266701340675354, 0.8830991983413696, -0.8869074583053589, 0.06501324474811554, 1.3490487337112427, 0.2711135149002075, -0.46543294191360474, -0.9471036791801453, -0.890087366104126, 1.0018155574798584, 1.7758325338363647, -0.046710774302482605, 0.0098776426166296, 0.7826274037361145, 0.5901870131492615, -1.277072787284851, 0.019871121272444725, -0.7069072723388672, -0.7218568921089172, 1.6981149911880493, 2.028548240661621, -0.2385263890028, -0.1616116166114807, -0.6894996166229248, -1.3045614957809448, 0.7224979400634766, -0.08530402183532715, 0.04756959527730942, 0.5739174485206604, -0.6707887053489685, 1.0124499797821045, 0.7028809785842896, 1.0716898441314697, -0.008477865718305111, 0.4055751860141754, 0.3449278175830841, -0.40763139724731445, -1.1160715818405151, -0.37227773666381836, -1.1629228591918945, -2.5771937370300293, 0.2936808466911316, -0.2001037895679474, -1.4354225397109985, 0.08654601871967316, -0.9895744323730469, 0.9029591083526611, -0.5565061569213867, -1.2467811107635498, -1.4770328998565674, 0.2604585289955139, -0.23592498898506165, 0.936237633228302, -1.6998289823532104, -0.09212899208068848, 1.0959714651107788, 0.8736351728439331, -0.4931792616844177, 0.9164936542510986, 0.29760488867759705, 0.9672862887382507, 0.823454737663269, -0.4571802020072937, 0.6708593368530273, -0.005898045375943184, -1.33193039894104, 0.4424479007720947, 1.2394388914108276, 0.22134660184383392, 1.2862144708633423, -0.4299122095108032, -0.05103194713592529, 0.46809184551239014, -0.759784460067749, -0.47158294916152954, -0.44415003061294556, 0.7264369130134583, -0.019825592637062073, -1.0265344381332397, -0.07274119555950165, -0.10417605191469193, -0.35665327310562134, 0.1578226536512375, -1.478720784187317, -0.34337881207466125, -0.3652757704257965, -0.49246662855148315, -1.3612083196640015, 0.022721661254763603, 1.3396670818328857, -0.7747588157653809, -0.3488445580005646, 0.4296962320804596, 0.4519534707069397, 0.47747185826301575, 0.5478567481040955, -0.7137988805770874, -0.3806396722793579, -0.19340021908283234, -0.30732277035713196, 0.28994986414909363, 1.2306643724441528, -0.08495664596557617, -0.9505364894866943, 0.7265275716781616, -0.41392651200294495, 0.16258428990840912, 1.9168589115142822, -0.02898421511054039, -0.750803530216217, 0.39823663234710693, -0.7175630331039429, 1.8508100509643555, 1.6606833934783936, 1.2262438535690308, -0.22755184769630432, -0.81886887550354, 0.6483619213104248, -0.31220635771751404, -0.31268826127052307, 0.8524715304374695, 0.4082295298576355, -0.29303187131881714, -1.4550070762634277, 0.5891202688217163, 1.3191601037979126, -0.7548234462738037, -0.7904661893844604, 0.09189711511135101, -0.9579929113388062, 1.210310935974121, 0.5957645177841187, 0.30509552359580994, 0.1376756876707077, 1.6457017660140991, 0.7760171890258789, -0.49396052956581116, 0.5011332631111145, 0.5614679455757141, -0.22126446664333344, -2.131312608718872, -1.0400863885879517, 0.20989057421684265, -0.29579395055770874, -1.5828863382339478, 1.2546974420547485, -1.0594161748886108, -0.9066890478134155, 0.5594776272773743, 0.12568844854831696, 1.327640175819397, 0.2764922082424164, 1.564455509185791, 2.0029520988464355, 0.831851065158844, 0.4578736126422882, 1.1391258239746094, -0.09627281874418259, -0.4867583215236664, 1.8754503726959229, -0.3572026193141937, 0.5362839102745056, 1.0583553314208984, -0.36611998081207275, -1.139315128326416, -0.7442185282707214, -1.148001790046692, -0.6977342963218689, 1.2217227220535278, 0.1364460438489914, -1.010783314704895, 0.16488045454025269, 1.6404261589050293, 0.12855204939842224, -0.3313353657722473, 0.6155857443809509, 0.461835116147995, -0.6946961283683777, -0.0814630463719368, -0.8948885798454285, 0.5721564888954163, -0.1508137434720993, -0.2638572156429291, 0.2933878004550934, 0.5413222312927246, 1.2533074617385864, -0.08954709768295288, 0.05113203078508377, 1.0243256092071533, -1.4656280279159546, 1.554931640625, -0.692916214466095, 0.375605970621109, -2.434290647506714, 1.3352774381637573, -0.727928102016449, 2.085347890853882, -2.534287214279175, 0.457868367433548, -0.6216986179351807, -0.4857928454875946, 0.29504549503326416, -0.33747920393943787, 0.0940638929605484, -0.16600410640239716, -0.919653058052063, 0.03132541477680206, -0.7600703239440918, 0.5398001074790955, 1.1975436210632324, 1.3934502601623535, -1.152182936668396, -0.13641668856143951, -1.655458688735962, -0.13562346994876862, -0.9812119603157043, 0.2111661434173584, -2.0239999294281006, -0.12750589847564697, -2.003596544265747, -2.1853649616241455, -1.3656233549118042, -0.816294252872467, 1.0519012212753296, 0.24777978658676147, -0.8701298832893372, 1.2814695835113525, -0.33792775869369507, -1.7630155086517334, 1.1836017370224, -2.0996947288513184 ]
https://github.com/huggingface/datasets/issues/3700
Unable to load a dataset
Hi! `load_dataset` is intended to be used to load a canonical dataset (`wikipedia`), a packaged dataset (`csv`, `json`, ...) or a dataset hosted on the Hub. For local datasets saved with `save_to_disk("path/to/dataset")`, use `load_from_disk("path/to/dataset")`.
## Describe the bug Unable to load a dataset from Huggingface that I have just saved. ## Steps to reproduce the bug On Google colab `! pip install datasets ` `from datasets import load_dataset` `my_path = "wiki_dataset"` `dataset = load_dataset('wikipedia', "20200501.fr")` `dataset.save_to_disk(my_path)` `dataset = load_dataset(my_path)` ## Expected results Loading the dataset ## Actual results ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: null _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: string to {'builder_name': Value(dtype='string', id=None), 'citation': Value(dtype='string', id=None), 'config_name': Value(dtype='string', id=None), 'dataset_size': Value(dtype='int64', id=None), 'description': Value(dtype='string', id=None), 'download_checksums': {}, 'download_size': Value(dtype='int64', id=None), 'features': {'title': {'dtype': Value(dtype='string', id=None), 'id': Value(dtype='null', id=None), '_type': Value(dtype='string', id=None)}, 'text': {'dtype': Value(dtype='string', id=None), 'id': Value(dtype='null', id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'post_processed': Value(dtype='null', id=None), 'post_processing_size': Value(dtype='null', id=None), 'size_in_bytes': Value(dtype='int64', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='string', id=None)}}, 'supervised_keys': Value(dtype='null', id=None), 'task_templates': Value(dtype='null', id=None), 'version': {'version_str': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'major': Value(dtype='int64', id=None), 'minor': Value(dtype='int64', id=None), 'patch': Value(dtype='int64', id=None)}} because column names don't match ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1
962
34
Unable to load a dataset ## Describe the bug Unable to load a dataset from Huggingface that I have just saved. ## Steps to reproduce the bug On Google colab `! pip install datasets ` `from datasets import load_dataset` `my_path = "wiki_dataset"` `dataset = load_dataset('wikipedia', "20200501.fr")` `dataset.save_to_disk(my_path)` `dataset = load_dataset(my_path)` ## Expected results Loading the dataset ## Actual results ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: null _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: string to {'builder_name': Value(dtype='string', id=None), 'citation': Value(dtype='string', id=None), 'config_name': Value(dtype='string', id=None), 'dataset_size': Value(dtype='int64', id=None), 'description': Value(dtype='string', id=None), 'download_checksums': {}, 'download_size': Value(dtype='int64', id=None), 'features': {'title': {'dtype': Value(dtype='string', id=None), 'id': Value(dtype='null', id=None), '_type': Value(dtype='string', id=None)}, 'text': {'dtype': Value(dtype='string', id=None), 'id': Value(dtype='null', id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'post_processed': Value(dtype='null', id=None), 'post_processing_size': Value(dtype='null', id=None), 'size_in_bytes': Value(dtype='int64', id=None), 'splits': {'train': {'name': Value(dtype='string', id=None), 'num_bytes': Value(dtype='int64', id=None), 'num_examples': Value(dtype='int64', id=None), 'dataset_name': Value(dtype='string', id=None)}}, 'supervised_keys': Value(dtype='null', id=None), 'task_templates': Value(dtype='null', id=None), 'version': {'version_str': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'major': Value(dtype='int64', id=None), 'minor': Value(dtype='int64', id=None), 'patch': Value(dtype='int64', id=None)}} because column names don't match ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 6.0.1 Hi! `load_dataset` is intended to be used to load a canonical dataset (`wikipedia`), a packaged dataset (`csv`, `json`, ...) or a dataset hosted on the Hub. For local datasets saved with `save_to_disk("path/to/dataset")`, use `load_from_disk("path/to/dataset")`.
[ -1.269356369972229, -1.1193338632583618, -0.741323709487915, 1.7288026809692383, -0.2830789089202881, -1.013467788696289, 0.10051163285970688, -1.0111786127090454, 1.5560415983200073, -0.6015633344650269, 0.20408694446086884, -1.5847927331924438, -0.06679694354534149, -0.7487083673477173, -0.6781901121139526, -0.8167003393173218, -0.3094650208950043, -0.7617591619491577, 1.2415642738342285, 2.39330792427063, 1.1818186044692993, -1.5332216024398804, 2.7275431156158447, 0.8693039417266846, -0.1360127031803131, -1.1419830322265625, 0.5177731513977051, -0.08587872236967087, -1.1222103834152222, -0.5477396845817566, -0.814517080783844, -0.11682996898889542, -0.5880546569824219, -0.3466871678829193, -0.10091239213943481, 0.5821256041526794, -0.24276277422904968, -0.49072030186653137, -0.5773836970329285, -0.7777676582336426, 0.5100011825561523, -0.4308234751224518, 0.7546702027320862, -0.19648967683315277, 1.7483692169189453, -0.37329843640327454, 0.25230294466018677, 0.6617709398269653, 1.348533034324646, 0.14845801889896393, 0.045093707740306854, 0.4247870147228241, 0.410403847694397, -0.1005392074584961, 0.5390181541442871, 1.0632432699203491, 0.7441307306289673, 0.3471316993236542, 0.8224209547042847, -2.3994181156158447, 1.1370104551315308, -1.1516571044921875, 0.4204477369785309, 1.3876614570617676, -0.8639426231384277, 0.5514424443244934, -1.7451767921447754, 0.05264242738485336, 0.7198092341423035, -2.039898157119751, 0.5203386545181274, -1.1485655307769775, -0.4225507378578186, 0.9199598431587219, 0.43670767545700073, -1.221605896949768, 0.0964350476861, -0.37529411911964417, 1.0902950763702393, 0.2782133221626282, 0.9464975595474243, -1.7516101598739624, 0.10954984277486801, -0.2601586580276489, 0.08590817451477051, -1.2776505947113037, -1.5070329904556274, 0.4521813988685608, 0.4153476059436798, 0.7007756233215332, -0.21687619388103485, 1.1153497695922852, -1.0996915102005005, 0.6053763628005981, -1.163263201713562, -1.6419118642807007, -1.3949869871139526, -2.4398727416992188, -2.1683897972106934, 0.6092022657394409, -0.4046381711959839, -0.5114771127700806, 2.05311918258667, -0.8323647379875183, -1.7531194686889648, 1.3165476322174072, 0.43805721402168274, 0.09371160715818405, 2.4327447414398193, 0.1984606385231018, -0.7286570072174072, 0.47861072421073914, -0.8970373868942261, 0.7267669439315796, -0.41772836446762085, 1.4739611148834229, 0.4402337372303009, -0.852994441986084, 1.6083616018295288, -0.4118255376815796, 0.6382532119750977, -0.6963476538658142, -0.42824241518974304, -0.833180844783783, 0.39842453598976135, 1.8701497316360474, -0.14205814898014069, 1.3559540510177612, -0.4779985547065735, -1.5091594457626343, -1.5067726373672485, 1.0710731744766235, 0.33057913184165955, -0.9353788495063782, 0.29058098793029785, -0.49288231134414673, 0.24251770973205566, -0.23383168876171112, 1.1611467599868774, 1.213011622428894, 0.5642719268798828, -0.40547388792037964, -0.898713231086731, 0.11985640227794647, -0.169142484664917, -0.6664896607398987, -1.8442449569702148, -0.2417970597743988, 0.11755433678627014, 0.6594358682632446, -1.2506011724472046, 1.5563539266586304, 0.9464022517204285, 1.9083399772644043, 0.9924341440200806, -0.5087363123893738, 1.5104690790176392, 0.09321965277194977, 1.8468005657196045, -0.6825548410415649, 0.6710148453712463, -0.34060540795326233, -1.187758207321167, 0.9442516565322876, -0.20658141374588013, -2.014981269836426, -0.8364121913909912, -0.7821666598320007, -0.3125309944152832, -0.8050640821456909, 0.8518720269203186, -0.4636993408203125, -1.4880468845367432, 0.26375812292099, -0.8867565989494324, 0.4063907265663147, -1.0113787651062012, 0.3673306107521057, 0.7105042338371277, -0.5550839900970459, 0.05875764042139053, -0.24855642020702362, -1.2454341650009155, -0.5301308035850525, 0.5936688780784607, 1.8116497993469238, -0.8193976283073425, 0.6885969638824463, 1.0510321855545044, -0.5675646662712097, 0.11752170324325562, 0.12294252216815948, -0.24699413776397705, 0.8068966269493103, -1.0964701175689697, -0.8087055087089539, 1.221487045288086, -0.2776873707771301, -0.656047523021698, 1.4258619546890259, 0.8033901453018188, -1.0398058891296387, -0.2875060439109802, -0.20163625478744507, -0.8144001364707947, 0.061632342636585236, -1.593306303024292, -0.10222581773996353, 0.6133443117141724, -1.6302142143249512, -0.4625023305416107, -0.2756079137325287, 1.364485502243042, -0.07994283735752106, 1.3628202676773071, -0.44731995463371277, -0.048442643135786057, -0.16997946798801422, -0.2944076657295227, 0.2950665354728699, -0.3000361919403076, -0.6017653346061707, -0.031171340495347977, -0.8763896822929382, 0.43976497650146484, 1.4624791145324707, 0.3132655620574951, 0.0890643373131752, 0.540616512298584, 1.2019774913787842, 0.497791051864624, 0.20292411744594574, -0.8119962811470032, -1.4813123941421509, 1.8987252712249756, -1.6349672079086304, 2.0173096656799316, 0.6202468872070312, 0.03559168428182602, -1.6681219339370728, -1.85654878616333, 1.3841266632080078, 1.170804500579834, 2.183227300643921, 0.6227468252182007, 0.40148186683654785, -0.9913981556892395, -0.702224850654602, 0.05109766125679016, -0.8928636312484741, -0.746098518371582, 0.22070196270942688, 2.537899971008301, 1.881553292274475, -0.3867420554161072, -0.28447356820106506, -0.8786969184875488, 1.6033978462219238, -0.2410285323858261, 0.2814001441001892, 2.100773572921753, -0.021196862682700157, -1.004085659980774, 1.2032482624053955, -2.6009366512298584, 0.2654692530632019, 2.0161426067352295, 0.3354739844799042, 0.31137508153915405, -1.360044240951538, -0.7248384356498718, -0.19179822504520416, -0.5190899968147278, -1.2150120735168457, 0.5131943225860596, -0.34702321887016296, -0.6465234756469727, -1.4451241493225098, 0.30490046739578247, -1.104422688484192, -1.565828800201416, 0.17027239501476288, 1.936737060546875, 2.17511248588562, -0.8372927904129028, 1.7486598491668701, -0.19700077176094055, 0.26058560609817505, 1.2916446924209595, 1.2273651361465454, 2.8614983558654785, 1.8470124006271362, -1.2474919557571411, 0.3974694609642029, -0.14032495021820068, -0.5234377980232239, 1.096382975578308, -1.229549527168274, 1.136938452720642, -0.14801812171936035, -1.112757921218872, -1.1970112323760986, 0.8698281049728394, 0.5566226243972778, -0.006156160030514002, -0.5347070693969727, 1.1078331470489502, -0.08260128647089005, 1.3107225894927979, 0.715979814529419, -0.3836321532726288, 0.5016372203826904, -0.42130109667778015, -0.5492314696311951, 1.5072426795959473, 0.07514773309230804, -1.3940925598144531, -2.1678295135498047, -0.2107783854007721, -0.8313891291618347, -0.03580942749977112, -0.5551422834396362, -1.006325364112854, 1.501002311706543, 0.2184988260269165, -1.2119600772857666, -0.2105111926794052, -0.25506487488746643, -0.4398215711116791, 2.742631435394287, -1.273725986480713, -0.41446030139923096, -0.9424198865890503, -0.6231768131256104, 1.7009984254837036, -1.035420298576355, -0.32616692781448364, -1.2124683856964111, -0.5861728191375732, -1.2695014476776123, -0.490961492061615, 0.011831839568912983, -0.8307580351829529, 1.0066752433776855, 0.3993162512779236, -1.273478388786316, -0.39826664328575134, -0.9012050032615662, 1.0431792736053467, -0.11573583632707596, 0.18315517902374268, 1.8076351881027222, 0.39392200112342834, -0.31558701395988464, 0.9642208814620972, 1.0995680093765259, 0.6853277087211609, -0.625640332698822, 0.20361308753490448, -0.4615861177444458, 0.29762691259384155, -1.3761471509933472, 0.23856133222579956, -2.9068217277526855, 0.636461615562439, 0.11153847724199295, -0.06228457763791084, -0.050809554755687714, -1.3692891597747803, 1.1087597608566284, 2.4770002365112305, -1.2744759321212769, 0.603077232837677, 0.39008063077926636, 1.286628246307373, -1.8398674726486206, 0.22583813965320587, -0.3820487856864929, 2.177861452102661, 0.11503228545188904, 1.3679929971694946, -0.44495558738708496, -2.570288896560669, 0.4851147532463074, -1.4026662111282349, -1.1240606307983398, 0.5254175662994385, -0.9787873029708862, 0.27895206212997437, -1.6893559694290161, -0.38270166516304016, -1.0007647275924683, -1.2540260553359985, 0.7299809455871582, 0.19916918873786926, 0.12939637899398804, -0.5227677822113037, 0.39363667368888855, -2.217010498046875, -1.444352388381958, -0.16581906378269196, -0.8660145998001099, 0.5545064806938171, -0.5205000638961792, 0.8026255369186401, -0.12602324783802032, -0.05267363414168358, 0.2952258884906769, 1.5200780630111694, 3.367466688156128, 0.22575826942920685, 0.38314512372016907, -0.24543021619319916, -0.870463490486145, 1.474217176437378, 0.8907737731933594, -0.18037690222263336, -0.446229487657547, -1.1960225105285645, 1.4039658308029175, 1.9351803064346313, 0.9570013880729675, -0.0655473992228508, -0.660830020904541, -0.5796090364456177, -0.0308929905295372, 0.2778831124305725, 0.5605539083480835, 0.739685595035553, -0.10904085636138916, -0.07034290581941605, 1.3297349214553833, 1.0280611515045166, -0.41570740938186646, 0.34749943017959595, -0.8635089993476868, -0.4646280109882355, 0.5604625940322876, 0.0565221831202507, -0.11502885073423386, 0.3341534435749054, -0.9589207172393799, -0.25809016823768616, -0.3802470564842224, -0.7661755084991455, -0.6330459117889404, -0.3922187089920044, -0.41136324405670166, 1.438069224357605, 0.37310591340065, -0.6572802066802979, -0.17158101499080658, -0.634162962436676, -0.1522919237613678, -1.109994649887085, 0.07015566527843475, -0.1705743670463562, -0.19070374965667725, -0.3078383803367615, 1.6839264631271362, -0.9115188717842102, -2.1001384258270264, 0.04917529225349426, 0.44015562534332275, -0.10146641731262207, 0.32452455163002014, 1.788478970527649, 0.4439380168914795, 1.315413236618042, 1.230927586555481, 0.9375817179679871, -0.6082251667976379, -1.3452728986740112, 0.6774859428405762, 1.17875337600708, -1.3657692670822144, 0.8128076791763306, -0.04979877173900604, -0.4691903293132782, 0.6155929565429688, 1.4947178363800049, 0.5155713558197021, -2.0354549884796143, 0.8469576239585876, -1.120646595954895, 1.0699660778045654, 0.7706843018531799, 0.6152822375297546, 0.2728438377380371, 0.8270182013511658, -1.2331767082214355, -1.046292781829834, -0.8002181053161621, -0.7757256031036377, 2.08119535446167, -0.38673099875450134, 0.60260009765625, -0.06889072805643082, -1.2996253967285156, 0.047068141400814056, 0.6761410236358643, 0.2831324636936188, -0.576579213142395, 0.8748175501823425, -0.6766442656517029, -1.2305606603622437, -1.1475143432617188, -0.42730677127838135, -0.9848330020904541, -1.0569905042648315, 1.0873751640319824, 0.8257272243499756, 0.09325440227985382, 1.7621116638183594, 0.7086760401725769, 0.13734063506126404, -2.4564621448516846, 0.9008371829986572, 0.27158963680267334, -0.05967176333069801, 0.6574276685714722, 0.4181019067764282, 1.116031289100647, 0.18872933089733124, 0.5921183228492737, -2.400045156478882, 2.257340669631958, -0.12070991843938828, 0.7531200051307678, -0.2041494995355606, -0.2015790492296219, 1.0780540704727173, 0.4955812692642212, 0.47795361280441284, -0.8222564458847046, 0.5580016374588013, -0.43014973402023315, 1.2439683675765991, 0.9377727508544922, -0.8659878969192505, -0.07988724857568741, 1.3054509162902832, 0.3560229539871216, -0.7471395134925842, -1.017192006111145, -0.8470059633255005, 0.9891321659088135, 1.6201051473617554, -0.0914563536643982, 0.028780512511730194, 0.7890127301216125, 0.6048969626426697, -1.2160307168960571, 0.03539719060063362, -0.6372945308685303, -0.6286346912384033, 1.7850033044815063, 2.006030797958374, -0.4313241243362427, -0.11946836113929749, -0.6509530544281006, -1.3538211584091187, 0.7136833667755127, -0.20388013124465942, 0.054410286247730255, 0.5498425364494324, -0.5665030479431152, 0.836381733417511, 0.7690251469612122, 0.8796639442443848, 0.03726010397076607, 0.19523389637470245, 0.4929899573326111, -0.5421914458274841, -1.0851327180862427, -0.2588174045085907, -1.3075283765792847, -2.492969036102295, 0.3255040645599365, -0.10009215772151947, -1.1985918283462524, 0.05858391523361206, -0.9726736545562744, 1.271942138671875, -0.5658242106437683, -1.1495972871780396, -1.308761715888977, 0.1920967549085617, 0.008833321742713451, 0.832270622253418, -1.717726469039917, 0.005104151554405689, 1.2288202047348022, 0.8347681760787964, -0.8137597441673279, 0.9846121072769165, 0.21584424376487732, 1.2327598333358765, 0.638583779335022, -0.2580006420612335, 0.59110426902771, -0.12784001231193542, -1.3054927587509155, 0.6335791349411011, 1.136690616607666, 0.155861958861351, 1.4897717237472534, -0.4477042555809021, -0.1611161082983017, 0.3366965353488922, -0.689569890499115, -0.42524391412734985, -0.2887284457683563, 0.5196362137794495, 0.09988729655742645, -0.7392651438713074, 0.025052234530448914, 0.08519580215215683, -0.34357717633247375, 0.12203659117221832, -1.5250513553619385, -0.21344612538814545, -0.4725630581378937, -0.4371563196182251, -1.223008394241333, -0.19666147232055664, 1.2854105234146118, -0.5188039541244507, -0.4199448525905609, 0.6054990887641907, 0.2787061333656311, 0.4939994812011719, 0.6475642919540405, -0.6692133545875549, -0.2857000529766083, -0.11343269795179367, -0.33000484108924866, 0.2601765990257263, 1.4506982564926147, -0.040746212005615234, -0.9491389393806458, 0.7358130812644958, -0.31845709681510925, 0.07217112183570862, 1.7206487655639648, -0.042919620871543884, -0.8094828128814697, 0.26762211322784424, -0.8369202613830566, 1.9580280780792236, 1.6350412368774414, 1.3183082342147827, -0.3962051570415497, -0.8270034193992615, 0.742160975933075, -0.5301122069358826, -0.4617714583873749, 0.7492107152938843, 0.4903871417045593, -0.23766300082206726, -1.398703694343567, 0.9103917479515076, 1.2252968549728394, -0.7505182027816772, -0.8539941906929016, 0.28107982873916626, -0.6837218403816223, 1.1668884754180908, 0.5914590954780579, 0.41998910903930664, 0.28853270411491394, 1.7278233766555786, 0.8523945212364197, -0.4699932038784027, 0.6431899070739746, 0.5826306939125061, -0.2785733640193939, -2.1206605434417725, -1.269019603729248, 0.2733365297317505, -0.5337195992469788, -1.6903384923934937, 1.2958353757858276, -1.0763040781021118, -0.9204759001731873, 0.6591987013816833, 0.06951365619897842, 1.2872151136398315, 0.5060468316078186, 1.3773837089538574, 1.975361943244934, 0.6620628833770752, 0.5821311473846436, 1.1459091901779175, -0.18869730830192566, -0.5128607153892517, 1.7834724187850952, -0.33070600032806396, 0.5083230137825012, 1.176376223564148, -0.22176671028137207, -1.2451472282409668, -0.7056536078453064, -1.3514087200164795, -0.6725128293037415, 1.1903148889541626, 0.07929646968841553, -1.0842204093933105, 0.31590208411216736, 1.6125096082687378, -0.01960984617471695, -0.515166163444519, 0.7651570439338684, 0.2745974361896515, -1.0166577100753784, -0.06779348850250244, -0.8705761432647705, 0.4795341193675995, -0.2697675824165344, -0.1618836671113968, 0.46562403440475464, 0.4525412321090698, 1.3971049785614014, 0.09938672184944153, 0.2081780582666397, 0.899398684501648, -1.3498400449752808, 1.504201889038086, -0.75236576795578, 0.382577121257782, -2.353549003601074, 1.2801250219345093, -0.6309850811958313, 2.1033244132995605, -2.718679904937744, 0.5328773260116577, -0.697111189365387, -0.5002691149711609, 0.2943461835384369, -0.31548553705215454, 0.005202719010412693, -0.06255722045898438, -1.0861200094223022, 0.18182694911956787, -0.5073902606964111, 0.4362011253833771, 1.3141860961914062, 1.2570021152496338, -1.091762900352478, -0.14362606406211853, -1.7141344547271729, -0.2669757008552551, -0.9188262820243835, 0.3077349066734314, -2.0633528232574463, -0.286117821931839, -1.8568121194839478, -2.136652708053589, -1.060591697692871, -0.8336531519889832, 1.2239344120025635, 0.13234253227710724, -0.9087614417076111, 1.4605478048324585, -0.3508930504322052, -1.6759936809539795, 1.029898762702942, -2.038604736328125 ]