html_url
stringlengths
47
49
title
stringlengths
4
111
comments
stringlengths
71
20.4k
body
stringlengths
0
12.9k
βŒ€
comment_length_in_words
int64
16
1.61k
text
stringlengths
100
20.5k
embedding
sequencelengths
768
768
https://github.com/huggingface/datasets/pull/2819
Added XL-Sum dataset
Hi ! Ideally everything should be in the same place, so feel free to create a community dataset on the Hub and upload your data files as well as you dataset script (and also the readme.md and dataset_infos.json). The only change you have to do in your dataset script is use a relative path to your data files instead of urls. For example if your repository looks like this: ``` xlsum/ β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ amharic_XLSum_v2.0.tar.bz2 β”‚ β”œβ”€β”€ ... β”‚ └── yoruba_XLSum_v2.0.tar.bz2 β”œβ”€β”€ xlsum.py β”œβ”€β”€ README.md └── dataset_infos.json ``` Then you just need to pass `"data/amharic_XLSum_v2.0.tar.bz2"` to `dl_manager.download_and_extract(...)`, instead of an url. Locally you can test that it's working as expected with ```python load_dataset("path/to/my/directory/named/xlsum") ``` Then once it's on the Hub, you can load it with ```python load_dataset("username/xlsum") ``` Let me know if you have questions :)
Added XL-Sum dataset published in ACL-IJCNLP 2021. (https://aclanthology.org/2021.findings-acl.413/). The default timeout values in `src/datasets/utils/file_utls.py` were increased to enable downloading from the original google drive links.
137
text: Added XL-Sum dataset Added XL-Sum dataset published in ACL-IJCNLP 2021. (https://aclanthology.org/2021.findings-acl.413/). The default timeout values in `src/datasets/utils/file_utls.py` were increased to enable downloading from the original google drive links. Hi ! Ideally everything should be in the same place, so feel free to create a community dataset on the Hub and upload your data files as well as you dataset script (and also the readme.md and dataset_infos.json). The only change you have to do in your dataset script is use a relative path to your data files instead of urls. For example if your repository looks like this: ``` xlsum/ β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ amharic_XLSum_v2.0.tar.bz2 β”‚ β”œβ”€β”€ ... β”‚ └── yoruba_XLSum_v2.0.tar.bz2 β”œβ”€β”€ xlsum.py β”œβ”€β”€ README.md └── dataset_infos.json ``` Then you just need to pass `"data/amharic_XLSum_v2.0.tar.bz2"` to `dl_manager.download_and_extract(...)`, instead of an url. Locally you can test that it's working as expected with ```python load_dataset("path/to/my/directory/named/xlsum") ``` Then once it's on the Hub, you can load it with ```python load_dataset("username/xlsum") ``` Let me know if you have questions :)
[ -0.3766728341579437, 0.24956196546554565, -0.10540680587291718, 0.1630920171737671, 0.029196735471487045, 0.027347825467586517, 0.0853855162858963, 0.12383097410202026, -0.03145097196102142, 0.32356762886047363, -0.3977700471878052, 0.2237471044063568, 0.22732926905155182, 0.3552933633327484, 0.19055064022541046, 0.0414678230881691, -0.20751863718032837, 0.020678356289863586, 0.0431847907602787, -0.19092947244644165, -0.1863357126712799, 0.23297186195850372, -0.09893352538347244, -0.18351002037525177, 0.05093292519450188, 0.09540087729692459, -0.060652829706668854, 0.1683877855539322, -0.18338102102279663, -0.4560180902481079, 0.20769749581813812, 0.3644026517868042, 0.1269676387310028, 0.35178929567337036, -0.00010991589078912511, -0.3174401521682739, 0.2199605256319046, -0.1632690578699112, -0.3089129626750946, -0.062651127576828, -0.2830233573913574, -0.2006276249885559, 0.09323708713054657, -0.2450929880142212, -0.021214963868260384, -0.05654805526137352, -0.02972477115690708, 0.009430661797523499, -0.08837810158729553, 0.16980144381523132, 0.19139227271080017, 0.22027243673801422, 0.404996782541275, -0.3155379295349121, 0.11437380313873291, -0.2790737748146057, -0.0588238500058651, 0.5306870341300964, 0.44721442461013794, 0.14893393218517303, 0.26451483368873596, 0.05127780884504318, 0.002882862463593483, 0.08719287812709808, 0.29940861463546753, 0.14468906819820404, -0.1327562928199768, -0.31367069482803345, -0.11230767518281937, 0.3041002154350281, 0.5702947974205017, -0.40645328164100647, -0.161207377910614, -0.05400741845369339, 0.11154865473508835, -0.36965468525886536, 0.19522684812545776, 0.16377303004264832, -0.013981475494801998, 0.03824734315276146, 0.04584195464849472, -0.17823632061481476, -0.21580499410629272, 0.2930041551589966, -0.3310578465461731, 0.27365535497665405, -0.0499812550842762, -0.0001424551010131836, 0.20041316747665405, 0.07106681168079376, 0.06843854486942291, -0.12054906785488129, -0.1759575605392456, 0.12308204174041748, -0.08698153495788574, -0.25691404938697815, 0.1978202760219574, 0.05305583029985428, 0.15796425938606262, 0.2497841864824295, 0.23061923682689667, -0.21625569462776184, -0.529274046421051, 0.12760144472122192, 0.18071772158145905, 0.42663130164146423, -0.08979270607233047, -0.012731123715639114, 0.5253813862800598, 0.27015450596809387, 0.39896824955940247, -0.06275593489408493, 0.086518794298172, -0.0798652172088623, -0.3663467764854431, 0.12047271430492401, -0.011840643361210823, -0.1335567831993103, -0.21086053550243378, -0.1281120479106903, 0.015352383255958557, -0.16401827335357666, 0.07916107028722763, 0.17750194668769836, -0.03424719348549843, -0.01659110188484192, 0.04277676343917847, 0.29107826948165894, -0.016609668731689453, -0.1106070950627327, -0.23640096187591553, 0.36163806915283203, -0.034777965396642685, -0.044367581605911255, 0.32734328508377075, -0.15158462524414062, 0.07731188833713531, -0.21499373018741608, 0.12625467777252197, 0.04599275439977646, 0.0588701069355011, -0.012232322245836258, -0.09706450253725052, 0.2915710210800171, 0.4939342439174652, 0.33372679352760315, -0.1258024424314499, -0.15090328454971313, -0.29304808378219604, -0.05888617783784866, -0.1294277310371399, -0.3288537859916687, -0.0521613210439682, 0.22765786945819855, -0.31003957986831665, -0.16102880239486694, -0.3651968240737915, -0.10568641126155853, -0.1930966079235077, -0.1545896977186203, -0.04636558145284653, 0.12047727406024933, 0.04844563826918602, -0.14503471553325653, 0.25327372550964355, 0.48045772314071655, -0.3721972405910492, 0.26406583189964294, -0.373430997133255, -0.12434634566307068, -0.15481284260749817, -0.021273773163557053, -0.14986048638820648, 0.37556955218315125, -0.2983669936656952, 0.3649721145629883, 0.19780772924423218, -0.8181321620941162, -0.7574769258499146, 0.041995007544755936, -0.11818928271532059, -0.5151132345199585, 0.09244219213724136, 0.09404037147760391, 0.41401174664497375, -0.13167345523834229, 0.0631951242685318, 0.33034253120422363, 0.059818096458911896, 0.13373427093029022, -0.13071388006210327, -0.39361411333084106, -0.32509589195251465, 0.04450170323252678, 0.02586374059319496, 0.031315144151449203, 0.4256109893321991, 0.10488409548997879, 0.340912789106369, -0.020644735544919968, 0.2777039408683777, 0.20259325206279755, 0.36069464683532715, -0.2152821272611618, 0.05090253800153732, 0.15403470396995544, -0.2661645710468292, 0.16847214102745056, -0.20653586089611053, 0.31479817628860474, -0.2272757738828659, -0.1771153062582016, -0.43863096833229065, -0.24505870044231415, -0.19565854966640472, -0.13592465221881866, 0.13178086280822754, 0.11114917695522308, 0.26696473360061646, 0.059604134410619736, -0.06454811245203018, 0.18791109323501587, 0.08082644641399384, -0.036292336881160736, -0.3858220875263214, 0.42591381072998047, -0.0023963898420333862, -0.0487448088824749, 0.3503599464893341, -0.03296726197004318, 0.13239127397537231, -0.16547083854675293, -0.1675931215286255, 0.3787296712398529, -0.2752915918827057, 0.7198174595832825, 0.3967097997665405, 0.29805153608322144, 0.2605181932449341, -0.0644274577498436, 0.6784912943840027, 0.14255371689796448, 0.24393321573734283, -0.013364579528570175, -0.3200515806674957, 0.06682458519935608, -0.08573520183563232, -0.016243450343608856, 0.23064078390598297, 0.20470453798770905, 0.35675665736198425, -0.106076180934906, -0.09137802571058273, -0.2694165110588074, -0.262859970331192, 0.4204167425632477, 0.25519803166389465, -0.30400198698043823, -0.11011521518230438, 0.41366076469421387, 0.39051833748817444, 0.019941270351409912, 0.16578291356563568, -0.04730416089296341, -0.39204779267311096, 0.03131747618317604, 0.18698500096797943, 0.5281086564064026, 0.39103615283966064, 0.2133372575044632, 0.1630007028579712, 0.17338915169239044, 0.09697362035512924, -0.30395957827568054, 0.08846284449100494, 0.04230022430419922, -0.1674974411725998, 0.22441792488098145, 0.150223970413208, 0.1154429242014885, -0.408999502658844, 0.054082777351140976, 0.07768423855304718, 0.3160855770111084, -0.1033451110124588, -0.21427099406719208, -0.10950969159603119, -0.1463385969400406, 0.04848494380712509, -0.32538771629333496, 0.00847015343606472, -0.46051448583602905, 0.04703829437494278, 0.5078620314598083, -0.1378367692232132, -0.03440147638320923, 0.34854158759117126, 0.29330140352249146, -0.15276703238487244, -0.1265108436346054, -0.17505747079849243, 0.13037116825580597, -0.0750124379992485, 0.1697787344455719, 0.2240525782108307, 0.15965503454208374, 0.42149731516838074, -0.17865851521492004, 0.28624212741851807, -0.42905500531196594, -0.07766261696815491, 0.1695018708705902, -0.15238793194293976, -0.14273874461650848, 0.04249850660562515, 0.025151744484901428, 0.12592259049415588, -0.017060155048966408, 0.032516222447156906, 0.04156632721424103, -0.06552540510892868, -0.17637330293655396, 0.049029428511857986, -0.038095902651548386, -0.29338932037353516, -0.5013837814331055, -0.28942403197288513, -0.45756155252456665, 0.11315394937992096, 0.182424858212471, 0.1258958876132965, -0.4700349271297455, 0.010755450464785099, 0.1828203946352005, 0.33080193400382996, -0.25716206431388855, -0.23703300952911377, 0.08321259915828705, 0.49467411637306213, -0.5287610292434692, -0.37889939546585083, 0.3273841440677643, -0.10046237707138062, 0.28288722038269043, -0.2847461700439453, -0.4440630078315735, -0.4584396481513977, -0.27032142877578735, -0.16138122975826263, 0.28627264499664307, 0.42259180545806885, 0.500213623046875, -0.03831592947244644, -0.04919929802417755, 0.09775010496377945, -0.12856794893741608, 0.05177145078778267, 0.37233826518058777, 0.21118119359016418, -0.07557602971792221, 0.05333128571510315, -0.05329296365380287, 0.1715674102306366, 0.2981618046760559, 0.2935085594654083, 0.36004838347435, -0.023563412949442863, 0.18459004163742065, -0.1933700442314148, -0.030865907669067383, 0.10410609841346741, 0.1816047579050064, 0.0008772779256105423, 0.21459423005580902, 0.18234261870384216, 0.07221496850252151, -0.215469628572464, -0.17863716185092926, -0.18906620144844055, -0.2591608762741089, -0.20024533569812775, -0.04331769794225693, 0.05077027156949043, 0.2046264111995697, -0.011412348598241806, -0.1441488415002823, -0.29721763730049133, 0.04141539707779884, 0.23308247327804565, -0.05645603686571121, 0.026347216218709946, -0.19783617556095123, -0.007125813513994217, -0.7330471277236938, 0.43031102418899536, -0.2549300789833069, -0.1587618738412857, 0.051149290055036545, 0.042755916714668274, 0.27887973189353943, -0.2508585453033447, 0.30839282274246216, -0.3961013853549957, 0.10371413826942444, 0.20687001943588257, 0.106251060962677, -0.045310135930776596, -0.0883091390132904, -0.3039023280143738, -0.2726295292377472, 0.061516955494880676, 0.09873513132333755, -0.283125102519989, -0.19351959228515625, 0.4112965762615204, 0.06402920931577682, -0.18553426861763, -0.04361040145158768, 0.11206077039241791, -0.5668185353279114, -0.522566020488739, -0.17481151223182678, -0.13728956878185272, 0.19226312637329102, -0.17473948001861572, -0.2024562954902649, 0.22281506657600403, -0.253099262714386, 0.13936737179756165, 0.0672493427991867, 0.5339130163192749, 0.2627583146095276, 0.21677130460739136, 0.14130547642707825, -0.1141175627708435, 0.4108174741268158, 0.42989808320999146, -0.04549674317240715, 0.11882202327251434, 0.31213268637657166, -0.5385717749595642, -0.00713706761598587, 0.4165877103805542, -0.07893016189336777, -0.01790349930524826, -0.34398359060287476, 0.09741926938295364, -0.42361435294151306, 0.020767327398061752, 0.13426508009433746, 0.0750313475728035, -0.0583377368748188, -0.27825435996055603, 0.41403067111968994, 0.06179140880703926, -0.31450819969177246, 0.1624813675880432, 0.10164177417755127, -0.37720248103141785, 0.013185586780309677, -0.049319274723529816, 0.8750066757202148, -0.04161082208156586, 0.05258297175168991, 0.3489283323287964, -0.025763195008039474, 0.20158925652503967, -0.37866586446762085, 0.04744856059551239, -0.3563459813594818, 0.26456502079963684, -0.11336661875247955, -0.02190990000963211, -0.19191256165504456, 0.13255974650382996, -0.23822949826717377, 0.22083310782909393, -0.15084868669509888, 0.06161562353372574, -0.11542463302612305, 0.6866242289543152, -0.468260258436203, -0.22754578292369843, -0.03453110530972481, 0.19482959806919098, 0.2785932719707489, 0.4860595762729645, -0.0679580569267273, -0.2970261573791504, -0.34151577949523926, -0.14072953164577484, -0.20788004994392395, 0.18594196438789368, 0.1401054412126541, 0.023632466793060303, -0.22353526949882507, -0.3100090026855469, 0.11811661720275879, 0.2976171672344208, 0.4998130202293396, 0.1312156319618225, -0.3831564784049988, 0.1145324856042862, -0.1526855230331421, -0.09864296019077301, 0.16138359904289246, 0.07492297887802124, 0.11630535870790482, -0.3725249469280243, -0.18419262766838074, 0.18797823786735535, 0.21741019189357758, -0.3344358801841736, 0.11091578006744385, 0.1619986891746521, -0.025080472230911255, -0.2174626886844635, -0.06429378688335419, 0.34884345531463623, -0.2692409157752991, -0.08391477167606354, 0.1633809506893158, 0.26302972435951233, -0.12684011459350586, 0.3742847442626953, -0.10938228666782379, -0.008805453777313232, -0.10512824356555939, 0.17038488388061523, 0.2377156913280487, -0.2848438024520874, 0.3309312164783478, 0.055764470249414444, 0.015668828040361404, -0.27433204650878906, -0.1398337185382843, 0.08736913651227951, -0.3405122756958008, 0.15510080754756927, 0.09870447218418121, -0.08472612500190735, 0.05314977839589119, 0.4430445432662964, -0.06645815074443817, 0.3501991331577301, -0.2716529369354248, -0.386264830827713, -0.10326891392469406, 0.29693055152893066, 0.028842207044363022, 0.21745476126670837, -0.15448781847953796, 0.11478939652442932, 0.12314203381538391, -0.20868928730487823, -0.4066391885280609, 0.28484398126602173, -0.11362705379724503, -0.17513014376163483, 0.059093158692121506, 0.06522748619318008, 0.31356561183929443, -0.1530919075012207, 0.10180134326219559, -0.02096562460064888, -0.5124069452285767, -0.18573269248008728, -0.12277090549468994, 0.1504620611667633, -0.03302094712853432, -0.12196194380521774, -0.011177308857440948, -0.48635268211364746, -0.22589626908302307, 0.04518179967999458, 0.21854159235954285, -0.07304652780294418, -0.12582090497016907, -0.22850912809371948, 0.19861385226249695, 0.07342991977930069, 0.027263596653938293, 0.23328851163387299, 0.11850167065858841, 0.32648634910583496, 0.02155139483511448, 0.40966591238975525, -0.251720130443573, -0.0011513903737068176, 0.11196741461753845, 0.21413755416870117, -0.024403147399425507, 0.1851065754890442, 0.41332271695137024, 0.08117562532424927, 0.01287812739610672, -0.23295995593070984, 0.3688841462135315, -0.0017435699701309204, -0.36597445607185364, -0.005404772236943245, -0.06721405684947968, 0.20229142904281616, -0.2635482847690582, -0.10337870568037033, -0.21177463233470917, 0.04136263579130173, 0.1546212136745453, 0.12816563248634338, 0.6526874303817749, 0.1902671754360199, -0.08452999591827393, 0.1643751561641693, 0.5977222323417664, 0.13385319709777832, 0.030116965994238853, 0.2445448338985443, -0.28119227290153503, 0.2050478756427765, 0.2638123333454132, 0.18848538398742676, -0.07950294762849808, 0.045806169509887695, -0.07247553020715714, -0.022393690422177315, 0.1126486137509346, 0.18941505253314972, 0.16420841217041016, -0.38985612988471985, 0.13909535109996796, -0.06465877592563629, -0.011336930096149445, -0.0075147077441215515, 0.15321283042430878, 0.29612013697624207, -0.2902080714702606, 0.12191947549581528, -0.2692147195339203, 0.17305995523929596, 0.1565486490726471, 0.0565539188683033, -0.14635717868804932, -0.3496440351009369, -0.06094742566347122, 0.13172875344753265, -0.04562802240252495, -0.2584632635116577, -0.0843786895275116, -0.07303471863269806, -0.03611059486865997, -0.061945877969264984, 0.09350436925888062, 0.03708437457680702, 0.14806531369686127, -0.20685428380966187, 0.13767454028129578, -0.031298696994781494, 0.10879527032375336, -0.165070042014122, 0.4689643383026123, 0.2673870623111725, 0.05011966824531555, 0.08761468529701233, 0.2558583915233612, 0.1024707704782486, -0.07496970146894455, 0.0034779421985149384, -0.11902002990245819, 0.277437686920166, -0.03897241875529289, 0.05623464658856392, 0.21002496778964996, -0.21474803984165192, -0.1182299256324768, -0.06565937399864197, 0.019248701632022858, 0.12822943925857544, 0.5119227766990662, -0.02955532819032669, -0.09965553879737854, -0.24109315872192383, -0.07043453305959702, -0.4450204074382782, -0.1521056592464447, 0.28958752751350403, -0.21323929727077484, 0.13109639286994934, -0.4101543724536896, 0.0949128121137619, -0.155790776014328, 0.24995867908000946, 0.33812853693962097, 0.2576361894607544, -0.1482640653848648, -0.49833548069000244, -0.6420992612838745, 0.16995839774608612, 0.06021442264318466, 0.0694839134812355, -0.30629757046699524, 0.3203386068344116, 0.036168042570352554, -0.02855030447244644, 0.3335513770580292, 0.2658306956291199, -0.16298682987689972, -0.015834234654903412, -0.22208988666534424, -0.08449278771877289, -0.03168810158967972, 0.17188528180122375, -0.11210606247186661, -0.24634307622909546, 0.006734885275363922, -0.210828498005867, 0.05152531713247299, -0.11766849458217621, 0.3018471300601959, 0.10825100541114807, -0.01130513846874237, 0.47345033288002014, 0.04360490292310715, 0.3665269911289215, -0.04000474512577057, 0.005045810714364052, -0.17800503969192505, 0.037617675960063934, -0.2089330106973648, -0.21869796514511108, 0.032478149980306625, 0.1485546976327896, -0.07926277816295624, -0.03051237389445305, -0.1791469007730484, 0.15254005789756775, -0.02117864415049553, -0.051111795008182526, -0.15946164727210999, 0.13936999440193176, -0.19035100936889648, 0.10026617348194122, 0.19231650233268738, 0.009854443371295929, 0.10717780888080597, -0.04742129147052765, -0.20889180898666382, -0.19594664871692657, 0.25332146883010864, 0.3637652099132538, -0.02851780690252781, -0.044094014912843704, 0.25253796577453613, -0.09407415241003036, -0.10041869431734085, -0.2734988033771515, 0.27137306332588196, 0.08882047235965729, -0.059330135583877563, -0.36297905445098877, 0.2577468752861023, 0.12457782030105591, -0.1318465769290924, -0.11460241675376892, -0.10375453531742096, 0.2641753554344177, -0.09983720630407333, -0.2510164678096771, -0.18884524703025818 ]
https://github.com/huggingface/datasets/pull/2819
Added XL-Sum dataset
Thank you for your detailed response regarding the community dataset building process. However, will this pull request be merged into the main branch?
Added XL-Sum dataset published in ACL-IJCNLP 2021. (https://aclanthology.org/2021.findings-acl.413/). The default timeout values in `src/datasets/utils/file_utls.py` were increased to enable downloading from the original google drive links.
23
text: Added XL-Sum dataset Added XL-Sum dataset published in ACL-IJCNLP 2021. (https://aclanthology.org/2021.findings-acl.413/). The default timeout values in `src/datasets/utils/file_utls.py` were increased to enable downloading from the original google drive links. Thank you for your detailed response regarding the community dataset building process. However, will this pull request be merged into the main branch?
[ -0.37899336218833923, 0.08230076730251312, -0.19581268727779388, 0.009799879044294357, -0.2099616974592209, 0.07980673760175705, -0.12688258290290833, 0.13497887551784515, -0.0726710706949234, 0.034379661083221436, -0.09363673627376556, -0.14255137741565704, 0.2435351461172104, 0.19274385273456573, 0.10039011389017105, 0.16378642618656158, 0.15827055275440216, 0.04157410189509392, -0.026212498545646667, -0.2671310603618622, -0.4595862329006195, 0.4449089467525482, -0.19672071933746338, -0.09974953532218933, 0.2131786048412323, -0.10555083304643631, -0.16001783311367035, 0.14361947774887085, -0.4230753779411316, -0.17505672574043274, 0.1476786732673645, 0.2874341905117035, -0.16984443366527557, 0.16385148465633392, -0.00011598420678637922, -0.42815858125686646, 0.2979205250740051, -0.0009708758443593979, -0.29756858944892883, -0.12146635353565216, -0.4334949254989624, -0.32621416449546814, -0.023477736860513687, 0.09995251148939133, 0.05760005861520767, -0.25604820251464844, -0.0017776694148778915, -0.13522446155548096, 0.2259749174118042, 0.044030457735061646, 0.15271428227424622, -0.12529638409614563, 0.29843443632125854, -0.09468142688274384, 0.015822678804397583, 0.3095385432243347, -0.07014480978250504, 0.21845582127571106, 0.4077889621257782, 0.018098656088113785, 0.3363102078437805, 0.06620551645755768, 0.20597098767757416, -0.2523306608200073, 0.25926631689071655, -0.22500662505626678, -0.33374205231666565, -0.39243391156196594, 0.1500306874513626, 0.079655721783638, 0.5389265418052673, -0.31639063358306885, -0.16163215041160583, 0.06120751053094864, 0.16881504654884338, -0.2688402533531189, -0.046417079865932465, 0.28681331872940063, -0.04044128209352493, -0.15718093514442444, -0.06499921530485153, -0.54097980260849, -0.26843148469924927, 0.05841746926307678, -0.13894417881965637, 0.3223784565925598, -0.04631204903125763, 0.003319256007671356, 0.05888346955180168, -0.049339279532432556, 0.021160293370485306, -0.2770669758319855, -0.024748545140028, 0.1305677741765976, -0.12428352236747742, -0.3769855797290802, 0.18437810242176056, -0.06441961973905563, 0.3381589949131012, 0.20044653117656708, 0.024440748617053032, -0.35985374450683594, -0.36467623710632324, 0.051059842109680176, 0.4916062355041504, 0.059903521090745926, -0.07693368941545486, -0.04168006405234337, 0.25965213775634766, -0.10145783424377441, 0.32991042733192444, -0.0041199177503585815, 0.16931794583797455, -0.029752817004919052, -0.3904787302017212, 0.018911276012659073, 0.1457311064004898, -0.22547964751720428, -0.1389072984457016, -0.11872775107622147, -0.06301604956388474, -0.12848246097564697, -0.24649503827095032, -0.14225125312805176, 0.021983731538057327, 0.16768336296081543, 0.16681614518165588, 0.21566253900527954, 0.13173654675483704, 0.05197842791676521, -0.20674976706504822, 0.12501640617847443, 0.0555378682911396, -0.1940218061208725, 0.03476114198565483, -0.2105657160282135, 0.002831379882991314, 0.015484889037907124, 0.17511145770549774, 0.051371872425079346, 0.04725591093301773, 0.16485607624053955, 0.2968919277191162, 0.4629043638706207, 0.1337849348783493, 0.19029539823532104, 0.013360710814595222, 0.18328580260276794, -0.30869394540786743, 0.16789697110652924, -0.03979552537202835, -0.278173565864563, -0.08769432455301285, 0.15407432615756989, -0.008286479860544205, -0.05486735701560974, -0.13872501254081726, 0.07946746051311493, -0.11411062628030777, 0.05855250731110573, 0.07900277525186539, 0.02549433708190918, 0.12370935082435608, 0.006897399201989174, 0.054743483662605286, 0.11607439815998077, -0.43954071402549744, 0.030759572982788086, -0.4816274344921112, -0.12623679637908936, -0.15640872716903687, 0.5285552740097046, -0.14691053330898285, -0.08413007110357285, -0.2576553225517273, 0.24340878427028656, 0.23703253269195557, -0.502050518989563, -0.43753325939178467, 0.31257936358451843, -0.31429994106292725, -0.5652481317520142, 0.0847468227148056, 0.19811870157718658, 0.26126396656036377, -0.21619945764541626, 0.12006853520870209, 0.2574848532676697, -0.2699069082736969, 0.015001239255070686, -0.19798369705677032, -0.3271499276161194, -0.27489006519317627, -0.04382059723138809, 0.04739977791905403, 0.062481995671987534, 0.2046245038509369, 0.029911652207374573, 0.41799208521842957, 0.06397664546966553, 0.11170333623886108, 0.1621018499135971, 0.6102051734924316, -0.21973194181919098, 0.2501855194568634, 0.3553025424480438, -0.00010078400373458862, -0.2543164789676666, -0.06241576001048088, 0.31527772545814514, -0.20273302495479584, -0.3517756462097168, -0.3947349190711975, 0.10077720135450363, 0.1012912169098854, 0.0881614163517952, 0.013979472219944, 0.1087905764579773, 0.05209071561694145, -0.24348032474517822, -0.20232155919075012, 0.19632434844970703, -0.5514950752258301, -0.015400025062263012, -0.1883595734834671, 0.10456506907939911, -0.02392696402966976, 0.35007697343826294, 0.295206755399704, 0.038454923778772354, 0.0862494558095932, -0.13799215853214264, -0.05796879529953003, 0.24028447270393372, -0.37881770730018616, 0.4987553358078003, 0.3325416147708893, 0.22669246792793274, 0.3468867540359497, -0.20187148451805115, 0.3071382939815521, 0.1089613139629364, -0.008333496749401093, -0.08492870628833771, -0.33324888348579407, 0.2793927788734436, 0.025099581107497215, 0.14824073016643524, 0.22137804329395294, 0.1193348839879036, 0.02631950192153454, 0.22455576062202454, -0.279243528842926, -0.07523247599601746, -0.3019489645957947, 0.2546286880970001, 0.38721764087677, -0.08996815234422684, -0.22024767100811005, 0.36621585488319397, 0.4765852689743042, -0.0037107784301042557, -0.06448826938867569, 0.1185753121972084, -0.30739378929138184, -0.19465911388397217, 0.24347519874572754, 0.38466960191726685, 0.17179660499095917, 0.18860448896884918, 0.08392585813999176, 0.10485915094614029, 0.21727001667022705, -0.29543545842170715, 0.16045615077018738, 0.1901681274175644, -0.12970854341983795, 0.11381775140762329, 0.32186025381088257, 0.13701999187469482, -0.552734911441803, 0.2533417046070099, 0.020915979519486427, 0.08765917271375656, -0.04866640642285347, -0.159257173538208, 0.19192123413085938, -0.5279041528701782, -0.03561192378401756, 0.05395452678203583, -0.035567883402109146, -0.6080837845802307, -0.056030601263046265, 0.13034018874168396, -0.13066478073596954, 0.22265449166297913, 0.409874826669693, 0.5572931170463562, -0.0445566400885582, -0.12312658876180649, -0.15068431198596954, 0.12010554224252701, 0.1985781192779541, 0.2366887629032135, 0.11843737959861755, -0.14023566246032715, 0.4989206790924072, 0.057949624955654144, 0.12953388690948486, -0.5594593286514282, -0.4097101390361786, 0.2083602249622345, -0.36129385232925415, -0.4317426383495331, 0.12513048946857452, 0.10234542191028595, 0.07515611499547958, -0.17809703946113586, -0.2907845079898834, -0.07683506608009338, -0.2739020884037018, -0.5227290391921997, -0.1383528858423233, 0.1574438214302063, -0.26748916506767273, -0.55027836561203, -0.01147661916911602, -0.27490416169166565, 0.5053303837776184, 0.11036641895771027, 0.043456532061100006, -0.15915696322917938, -0.010788338258862495, -0.11281544715166092, 0.27836889028549194, -0.30675962567329407, -0.03570171445608139, 0.05347920581698418, 0.1872970014810562, -0.3397023677825928, -0.2375464290380478, 0.22306829690933228, 0.0217428021132946, 0.29828864336013794, -0.10618460923433304, -0.43391603231430054, -0.11775849759578705, -0.2268611341714859, 0.10490681231021881, 0.21926459670066833, 0.15884919464588165, 0.46710121631622314, -0.09583080559968948, -0.18042677640914917, 0.037699490785598755, -0.00888553261756897, 0.03427804261445999, 0.6017715930938721, 0.2695648968219757, 0.0039290934801101685, 0.20744925737380981, -0.24412068724632263, 0.7020788788795471, 0.29757845401763916, 0.23045557737350464, 0.05627751350402832, 0.24918074905872345, 0.27531251311302185, -0.15617454051971436, -0.09774518013000488, 0.13748665153980255, 0.12900342047214508, 0.06563100218772888, 0.16961823403835297, 0.45701318979263306, -0.08740690350532532, -0.04658183455467224, -0.1789989173412323, -0.1585160195827484, -0.026551801711320877, -0.23588629066944122, 0.024435371160507202, 0.3830420970916748, 0.2955474853515625, -0.33203884959220886, -0.22542895376682281, -0.009445816278457642, -0.005917413160204887, 0.150745689868927, 0.5334359407424927, -0.08358664810657501, 0.1661408543586731, 0.07669027149677277, -0.722099781036377, 0.20353630185127258, -0.11859602481126785, -0.07931073755025864, -0.13377581536769867, -0.02657492645084858, 0.25427550077438354, -0.26137927174568176, 0.21605059504508972, -0.2851041853427887, -0.17129290103912354, 0.24119630455970764, 0.15069329738616943, 0.1740032136440277, 0.14910070598125458, -0.16875223815441132, -0.10898146033287048, 0.7502020597457886, 0.3049280047416687, -0.19381266832351685, -0.3232351243495941, 0.4418153166770935, -0.0065771182999014854, 0.05587069317698479, -0.04426749795675278, 0.17048123478889465, -0.6155493855476379, -0.4170350730419159, -0.07090073078870773, 0.17388881742954254, 0.03048037178814411, -0.2764165699481964, 0.012751005589962006, 0.26224634051322937, -0.3613927662372589, 0.043548502027988434, -0.3540767729282379, 0.1390368640422821, 0.21607033908367157, 0.02387625351548195, -0.17103725671768188, -0.05814872682094574, 0.3355710208415985, 0.3759365975856781, 0.2681061923503876, -0.1143035888671875, 0.4475651979446411, -0.3334735333919525, 0.174652099609375, 0.5027265548706055, -0.027328722178936005, 0.1803005486726761, -0.058737613260746, 0.15266072750091553, -0.17091456055641174, -0.05612902343273163, 0.17399196326732635, 0.05918402224779129, -0.18056319653987885, -0.36295899748802185, 0.5092800259590149, 0.19298164546489716, -0.31852883100509644, 0.3674890697002411, 0.09170173108577728, -0.15108327567577362, -0.004838464315980673, 0.2413182556629181, 1.039839744567871, -0.12153390049934387, 0.12330865859985352, 0.06274302303791046, -0.31518590450286865, 0.5178037881851196, -0.37746959924697876, 0.05353176221251488, -0.34717074036598206, 0.2749304175376892, -0.1590670347213745, -0.054994892328977585, -0.03661389648914337, 0.13925567269325256, -0.07264412939548492, 0.10299129784107208, -0.11803894490003586, 0.3347104787826538, 0.20740818977355957, 0.747840940952301, -0.4035731852054596, 0.0010013449937105179, -0.050703004002571106, 0.10088662803173065, 0.35068440437316895, 0.3718710243701935, -0.059142835438251495, -0.3988943099975586, -0.13942179083824158, -0.048427075147628784, -0.45332252979278564, 0.034350838512182236, 0.2303185760974884, 0.06868106126785278, -0.2388700544834137, -0.5926259756088257, 0.4903397858142853, 0.23144923150539398, 0.7201567888259888, 0.07779653370380402, -0.21917960047721863, 0.3740490972995758, 0.16965225338935852, -0.29030507802963257, 0.08736462146043777, 0.17833107709884644, -0.05304699391126633, -0.344913125038147, -0.008024051785469055, 0.1021006852388382, -0.08653850853443146, -0.5669723749160767, -0.23717844486236572, 0.09005896002054214, -0.03440110385417938, -0.3386043608188629, 0.02028234489262104, 0.3394099175930023, -0.3276217579841614, -0.09429366886615753, 0.07880935072898865, 0.24011489748954773, 0.034328579902648926, 0.07840898633003235, -0.0031172633171081543, -0.1025407463312149, -0.23979009687900543, 0.03715142980217934, 0.5131020545959473, -0.34519892930984497, 0.4250696897506714, 0.13141296803951263, -0.004992377012968063, -0.3223234713077545, -0.3167676627635956, 0.014061192981898785, -0.32451292872428894, 0.22619539499282837, 0.14632894098758698, -0.06211887300014496, 0.011572188697755337, 0.5731590986251831, -0.04997469484806061, 0.5019567012786865, -0.3756386637687683, -0.1832188367843628, -0.12041489034891129, 0.14172042906284332, -0.4534907937049866, 0.15305493772029877, 0.17825081944465637, 0.1265895962715149, 0.2589819133281708, -0.13158097863197327, -0.3357614278793335, 0.12089520692825317, -0.10323061048984528, -0.1998412013053894, 0.26058822870254517, 0.03551650047302246, -0.011102139949798584, -0.0926007479429245, 0.04714430123567581, -0.08861692994832993, -0.43672990798950195, -0.1416277289390564, 0.17711743712425232, 0.15292632579803467, 0.0074758343398571014, 0.014456430450081825, 0.0637110248208046, -0.26743990182876587, -0.3867107331752777, 0.3248927891254425, 0.1116468608379364, -0.3632354140281677, 0.06516782939434052, -0.3404964804649353, -0.23352251946926117, -0.06205321103334427, -0.02321220561861992, 0.29531610012054443, 0.1954764425754547, 0.27497267723083496, -0.017738424241542816, 0.4392476975917816, -0.031845446676015854, -0.012885399162769318, -0.12232931703329086, 0.3656730651855469, -0.02241816371679306, 0.08482557535171509, 0.4113539457321167, -0.11292830109596252, -0.3230033218860626, -0.2767169773578644, 0.39958861470222473, -0.13320665061473846, -0.06978999078273773, -0.07432456314563751, -0.2975992262363434, 0.08238209784030914, -0.3554306924343109, -0.03603244572877884, -0.2905365824699402, 0.06246483325958252, 0.021262984722852707, 0.04785118252038956, 0.7130772471427917, -0.010231085121631622, 0.3205030858516693, 0.21362078189849854, 0.4934840202331543, -0.04810197651386261, 0.31922978162765503, 0.24836599826812744, 0.0672285407781601, 0.11682172864675522, 0.26221349835395813, 0.25787171721458435, -0.17558720707893372, -0.1982729583978653, 0.2087002396583557, -0.049420081079006195, 0.14016354084014893, 0.15811248123645782, 0.3350324034690857, -0.3175748884677887, 0.5321877002716064, 0.06653345376253128, -0.261441171169281, 0.05665779858827591, 0.4320344924926758, 0.4869242310523987, 0.015188930556178093, -0.1599424183368683, -0.14960059523582458, 0.4030265212059021, -0.1072973981499672, 0.12736308574676514, -0.2747814953327179, -0.15372499823570251, 0.2243937849998474, 0.145006000995636, -0.03646930679678917, -0.043150924146175385, -0.05269178748130798, -0.11799339950084686, 0.19791796803474426, -0.0240787360817194, 0.1230468600988388, -0.022072147578001022, 0.2283347249031067, -0.19460774958133698, 0.2709123492240906, -0.006116919219493866, 0.06574447453022003, 0.08905534446239471, 0.5379951000213623, 0.41117995977401733, -0.10616761445999146, 0.2037038654088974, 0.23835845291614532, 0.1933608055114746, -0.09625870734453201, 0.2440478801727295, -0.22882679104804993, 0.2968488931655884, -0.015747740864753723, 0.11425527930259705, 0.15390270948410034, -0.04871044307947159, -0.08924661576747894, -0.06380937993526459, -0.03903716802597046, -0.1372007429599762, 0.2721993625164032, -0.2130347192287445, -0.303178995847702, -0.34486040472984314, 0.1626053750514984, -0.05879935249686241, -0.1708400547504425, 0.33489832282066345, -0.04001924768090248, 0.03275667876005173, -0.3159128427505493, 0.0886940211057663, -0.28417837619781494, 0.1687127947807312, 0.4916786253452301, 0.32023245096206665, -0.1611267477273941, -0.828977644443512, -0.41364169120788574, -0.041087351739406586, 0.08062206208705902, 0.19839946925640106, -0.17875757813453674, 0.34518954157829285, 0.3727577328681946, -0.030353523790836334, 0.11333537101745605, 0.06265274435281754, -0.38208746910095215, -0.009395137429237366, -0.10357111692428589, 0.025896787643432617, 0.226610466837883, 0.18233484029769897, -0.20072083175182343, -0.09780046343803406, 0.17872445285320282, -0.11040402948856354, 0.053541816771030426, -0.26189661026000977, 0.183509960770607, 0.16589051485061646, -0.07886496186256409, 0.06622476130723953, 0.2375710904598236, 0.2981799244880676, -0.1210826188325882, -0.3046693801879883, 0.18073806166648865, -0.0610264427959919, -0.1820172518491745, 0.13946771621704102, 0.015280475839972496, 0.35222968459129333, -0.1021215096116066, -0.14145146310329437, 0.03481737896800041, 0.14978499710559845, -0.09852880239486694, -0.11815724521875381, -0.10165000706911087, 0.026100164279341698, -0.46656107902526855, 0.05364760011434555, 0.07109726965427399, 0.023215467110276222, 0.18287086486816406, -0.2452695220708847, -0.2727751135826111, -0.3508356511592865, 0.2100251168012619, 0.13259217143058777, -0.16943983733654022, -0.0442948155105114, 0.2860897183418274, -0.09749025851488113, -0.017375970259308815, -0.18882101774215698, 0.0402548685669899, 0.16646626591682434, 0.05473705008625984, -0.16679242253303528, 0.15507154166698456, 0.19309408962726593, -0.006702478975057602, -0.2776772081851959, 0.13013657927513123, 0.1616668701171875, -0.2605227530002594, -0.2748292088508606, -0.42482131719589233 ]
https://github.com/huggingface/datasets/pull/2819
Added XL-Sum dataset
If XL-sum is available via the Hub we don't need to add it again in the `datasets` github repo ;)
Added XL-Sum dataset published in ACL-IJCNLP 2021. (https://aclanthology.org/2021.findings-acl.413/). The default timeout values in `src/datasets/utils/file_utls.py` were increased to enable downloading from the original google drive links.
20
text: Added XL-Sum dataset Added XL-Sum dataset published in ACL-IJCNLP 2021. (https://aclanthology.org/2021.findings-acl.413/). The default timeout values in `src/datasets/utils/file_utls.py` were increased to enable downloading from the original google drive links. If XL-sum is available via the Hub we don't need to add it again in the `datasets` github repo ;)
[ -0.32736122608184814, -0.028273649513721466, -0.1912524551153183, -0.10325166583061218, -0.002192877233028412, 0.09179932624101639, 0.11422021687030792, 0.22057944536209106, -0.10812525451183319, 0.37210893630981445, -0.2397780865430832, 0.019857967272400856, 0.2401832491159439, 0.29406845569610596, 0.12284279614686966, -0.007423680275678635, -0.06000085920095444, 0.1397521197795868, 0.2083072066307068, -0.20494063198566437, -0.3326214551925659, 0.28912195563316345, -0.17295947670936584, -0.14569368958473206, 0.06649430841207504, -0.022630902007222176, -0.042223840951919556, -0.00960085541009903, -0.29586130380630493, -0.3731069266796112, 0.06096433848142624, 0.23770712316036224, -0.1411512941122055, 0.07730385661125183, -0.00010469689732417464, -0.2118818610906601, 0.2389032244682312, -0.1117149293422699, -0.23336824774742126, 0.14719292521476746, -0.1646171510219574, -0.2927365005016327, -0.00017179286805912852, -0.2456572949886322, -0.0015727654099464417, -0.09033028781414032, -0.03870042413473129, 0.05453477054834366, -0.12968885898590088, 0.16007478535175323, 0.28441593050956726, 0.20263274013996124, 0.365712970495224, -0.27715614438056946, 0.2992389500141144, -0.38740092515945435, -0.15667088329792023, 0.2843566834926605, 0.47436219453811646, 0.11665156483650208, 0.23967024683952332, 0.18507380783557892, 0.13220323622226715, 0.030968714505434036, 0.06523292511701584, -0.05970583111047745, -0.1116480752825737, -0.19485469162464142, 0.10830886662006378, 0.14300329983234406, 0.5493592619895935, -0.20489156246185303, -0.1515973061323166, 0.007755480706691742, 0.33498236536979675, -0.3612317144870758, 0.17883837223052979, 0.21157459914684296, 0.06160577014088631, -0.09561119973659515, -0.026190971955657005, -0.17925246059894562, -0.1811179220676422, 0.31568220257759094, -0.20137517154216766, 0.15191709995269775, -0.1132628321647644, 0.08815662562847137, 0.1134437769651413, 0.138150155544281, -0.17437037825584412, -0.1020643562078476, -0.22571247816085815, 0.04778241366147995, -0.06810551881790161, -0.20471800863742828, 0.27489855885505676, -0.049075111746788025, 0.04680895805358887, 0.09316955506801605, 0.07679956406354904, -0.3108331859111786, -0.3361269533634186, 0.11597597599029541, 0.14229895174503326, 0.2283211052417755, -0.03978913277387619, 0.028547324240207672, 0.44862139225006104, 0.22714300453662872, 0.408894807100296, -0.06867599487304688, 0.2577708661556244, -0.18674291670322418, -0.2899587154388428, 0.08397478610277176, 0.04970228672027588, -0.1726999133825302, -0.39366456866264343, -0.028630312532186508, -0.1439601480960846, -0.12198351323604584, 0.03112751990556717, 0.15361028909683228, 0.04441588371992111, -0.1166834756731987, 0.151399165391922, 0.17817702889442444, -0.11459663510322571, -0.11001544445753098, -0.3239244222640991, 0.34949833154678345, -0.050216034054756165, -0.23935051262378693, 0.18609336018562317, -0.11167116463184357, 0.1248752549290657, -0.08819776028394699, 0.1267535388469696, 0.06812603026628494, 0.0961894765496254, 0.01538386195898056, -0.04068811982870102, 0.356075257062912, 0.2485617697238922, 0.31160297989845276, -0.05717559531331062, 0.007222414016723633, -0.16051781177520752, 0.03242635726928711, -0.2043234407901764, -0.28019991517066956, -0.016928503289818764, 0.3027506470680237, -0.14522406458854675, -0.17044460773468018, -0.14195016026496887, -0.08771078288555145, -0.1874317228794098, -0.35621726512908936, 0.16509991884231567, -0.06603822112083435, 0.00007670000195503235, -0.19091454148292542, 0.18748526275157928, 0.20983853936195374, -0.3757108747959137, 0.10528461635112762, -0.37441959977149963, -0.3089680075645447, -0.09098220616579056, 0.23548702895641327, -0.12385650724172592, 0.2306252121925354, -0.3673354685306549, 0.3407771587371826, 0.13307513296604156, -0.5490448474884033, -0.8207679986953735, -0.09820491820573807, -0.04336004704236984, -0.4480277895927429, 0.07914016395807266, 0.15327872335910797, 0.1933850198984146, -0.15258634090423584, 0.2944697141647339, 0.06306330859661102, -0.029700716957449913, -0.07209009677171707, -0.17021329700946808, -0.3054262697696686, -0.2826029062271118, 0.027828380465507507, 0.10836371779441833, 0.013733386993408203, 0.4435551166534424, -0.01862984150648117, 0.35652071237564087, -0.12667015194892883, 0.07697480916976929, 0.31400448083877563, 0.5515045523643494, -0.24799828231334686, 0.17847464978694916, 0.17701363563537598, -0.11941166967153549, 0.046950824558734894, -0.3030608892440796, 0.23824511468410492, -0.226655051112175, -0.19230280816555023, -0.32067593932151794, -0.17311722040176392, -0.06254614889621735, -0.1446421891450882, 0.2199784815311432, 0.09921801835298538, 0.11332504451274872, 0.06127164885401726, 0.08869068324565887, -0.13548341393470764, -0.19254688918590546, -0.24967126548290253, -0.13302025198936462, 0.33169233798980713, -0.03485414385795593, 0.0226491317152977, 0.3439328670501709, 0.07921463251113892, 0.0784255713224411, -0.16945287585258484, -0.08399110287427902, 0.3805290460586548, -0.1493520438671112, 0.5626471042633057, 0.5515068173408508, 0.2631911337375641, 0.10661860555410385, -0.08995388448238373, 0.36772534251213074, 0.17809392511844635, 0.18849843740463257, -0.011988192796707153, -0.21496185660362244, 0.17719964683055878, 0.0014217346906661987, -0.08181210607290268, 0.15219035744667053, 0.19901159405708313, 0.32900944352149963, 0.042516518384218216, -0.11935484409332275, -0.17357760667800903, -0.01156001165509224, 0.2617972493171692, 0.26641061902046204, -0.24812190234661102, -0.32468703389167786, 0.2753697335720062, 0.5957596898078918, -0.11626003682613373, 0.183345764875412, 0.07313019037246704, -0.30219098925590515, -0.018454495817422867, 0.18067045509815216, 0.3988727629184723, 0.22209110856056213, 0.33816298842430115, 0.03581278771162033, 0.02601807378232479, -0.06799721717834473, -0.3548938035964966, 0.1594545841217041, 0.1041204184293747, -0.21434566378593445, 0.18773490190505981, 0.2193688303232193, -0.053123097866773605, -0.6432473063468933, 0.075587198138237, 0.03743985295295715, 0.2631067931652069, -0.06178755685687065, -0.19419801235198975, -0.007620338350534439, -0.20195454359054565, 0.12141260504722595, -0.14205339550971985, -0.05150387063622475, -0.48836633563041687, 0.12391030788421631, 0.3026224672794342, -0.21766644716262817, 0.0712234377861023, 0.30246448516845703, 0.35067442059516907, 0.09315422177314758, -0.0980437621474266, -0.2014276385307312, 0.05454109609127045, -0.0801435336470604, 0.31552475690841675, -0.001133570447564125, -0.1524244248867035, 0.5617130994796753, -0.1780226081609726, 0.25197070837020874, -0.5168087482452393, -0.32918214797973633, 0.08760454505681992, -0.24461834132671356, -0.2265089601278305, 0.13106639683246613, 0.028048180043697357, 0.00539553165435791, 0.10339280217885971, 0.04821695387363434, -0.085797980427742, -0.060647182166576385, -0.14347508549690247, -0.15242835879325867, -0.0632307156920433, -0.2746763825416565, -0.5611143708229065, -0.08955100923776627, -0.3711933493614197, 0.34053540229797363, 0.0832429826259613, -0.0017033964395523071, -0.2608810365200043, 0.06239498779177666, 0.3472640812397003, 0.21010148525238037, -0.22148028016090393, -0.34151434898376465, 0.15692287683486938, 0.49107158184051514, -0.25316745042800903, -0.4498695731163025, 0.25180524587631226, -0.005082206800580025, 0.1632058471441269, -0.15294398367404938, -0.5698040127754211, -0.40895548462867737, -0.35778433084487915, -0.08143003284931183, 0.1759527325630188, 0.26294487714767456, 0.3756169378757477, -0.11493884772062302, -0.2212708592414856, -0.15127825736999512, -0.08188530802726746, -0.005990616977214813, 0.293161004781723, 0.25096237659454346, -0.356525182723999, 0.16936659812927246, 0.03774699941277504, 0.37449878454208374, 0.2534787058830261, 0.35471779108047485, 0.26443594694137573, -0.014776306226849556, 0.24268919229507446, -0.3108908236026764, -0.021142393350601196, 0.25670337677001953, 0.15892551839351654, 0.02243875339627266, 0.2809763252735138, 0.1008896678686142, -0.06834781914949417, -0.06063461676239967, -0.20178115367889404, -0.07374022901058197, -0.21236388385295868, -0.19452959299087524, 0.1345205307006836, 0.20507264137268066, 0.2965213358402252, -0.1316765397787094, -0.17736715078353882, -0.19698816537857056, 0.029467575252056122, 0.16453644633293152, 0.1533820927143097, -0.01736871898174286, -0.12266460061073303, -0.17652098834514618, -0.6540137529373169, 0.3844642639160156, -0.18019483983516693, 0.02253095805644989, -0.14786244928836823, 0.14186963438987732, 0.35079479217529297, -0.12095483392477036, 0.35877975821495056, -0.31320425868034363, 0.023115726187825203, 0.2525157928466797, 0.07126012444496155, -0.18143190443515778, -0.126780167222023, -0.46231549978256226, -0.1375579684972763, 0.3880762457847595, 0.21474382281303406, -0.1049383133649826, -0.07803266495466232, 0.4288513660430908, 0.11449792236089706, -0.06480129063129425, -0.016990428790450096, 0.031043928116559982, -0.5197180509567261, -0.40986859798431396, -0.10231079906225204, -0.005075396969914436, 0.17162466049194336, -0.005655035842210054, -0.18791978061199188, 0.2326935976743698, -0.363308846950531, 0.022224359214305878, -0.09292842447757721, 0.40826383233070374, 0.1756693720817566, 0.1602799892425537, -0.04494976997375488, -0.1569991111755371, 0.35569339990615845, 0.43911874294281006, 0.11577606201171875, 0.10054226219654083, 0.4109809696674347, -0.6103416085243225, -0.025191910564899445, 0.29179009795188904, -0.18223056197166443, 0.17043644189834595, -0.282161682844162, 0.2906419038772583, -0.27973002195358276, -0.03389967605471611, 0.33326786756515503, 0.17323079705238342, -0.044938407838344574, -0.22996821999549866, 0.37340813875198364, 0.02886660024523735, -0.23924900591373444, 0.35925862193107605, 0.30198219418525696, -0.18197081983089447, 0.006041309796273708, -0.07201922684907913, 0.7496339678764343, -0.011925123631954193, -0.007415205240249634, 0.43080809712409973, -0.19557717442512512, 0.248381569981575, -0.34113752841949463, 0.2033928632736206, -0.19100156426429749, 0.06610481441020966, -0.04640966281294823, -0.08192848414182663, -0.0019729435443878174, 0.04904261603951454, -0.15088753402233124, 0.18534627556800842, -0.03220590204000473, -0.0094730444252491, 0.015166593715548515, 0.3999810814857483, -0.39522483944892883, 0.03671186789870262, 0.16965317726135254, 0.23824366927146912, 0.23583480715751648, 0.3674675524234772, -0.029246242716908455, -0.14468596875667572, -0.29864487051963806, -0.21474666893482208, -0.2658059000968933, 0.0985167846083641, 0.28274235129356384, 0.2519056797027588, -0.10973814129829407, -0.32027339935302734, 0.1442827433347702, 0.07638741284608841, 0.40516990423202515, 0.10384918749332428, -0.38280126452445984, 0.30408281087875366, -0.1332375705242157, -0.22377429902553558, 0.00040858867578208447, 0.27271464467048645, 0.1626937985420227, -0.3246014714241028, -0.11737512797117233, 0.20013421773910522, 0.0605928972363472, -0.45019376277923584, -0.09469011425971985, 0.24688203632831573, -0.25689226388931274, -0.11845292896032333, -0.037777893245220184, 0.27708548307418823, -0.3804130554199219, -0.21516837179660797, 0.21787753701210022, 0.294086217880249, -0.0117363715544343, 0.27689892053604126, -0.07648482918739319, -0.17524248361587524, -0.1403915286064148, 0.13753025233745575, 0.40900301933288574, -0.05749262124300003, 0.5653297901153564, 0.011857189238071442, -0.07501797378063202, -0.35992729663848877, -0.24504590034484863, -0.008008950389921665, -0.42587047815322876, 0.27218806743621826, 0.12308575958013535, 0.10014200210571289, 0.012308981269598007, 0.33866846561431885, -0.16204635798931122, 0.3478536605834961, -0.28439775109291077, -0.3868161141872406, -0.026874076575040817, 0.19127747416496277, -0.19622164964675903, 0.2807340621948242, 0.049848467111587524, 0.2209904044866562, 0.20892100036144257, -0.23752853274345398, -0.45592495799064636, 0.30315402150154114, -0.20278692245483398, -0.05354331433773041, 0.11464133858680725, -0.057556331157684326, 0.39109835028648376, -0.08339415490627289, 0.1964835226535797, -0.0747772604227066, -0.5228785872459412, -0.2837853729724884, -0.0461435467004776, 0.08902470767498016, -0.052389077842235565, 0.054082103073596954, 0.11932645738124847, -0.3371446132659912, -0.3430314362049103, 0.18451181054115295, 0.13291282951831818, -0.08609414100646973, -0.05711090564727783, -0.12101144343614578, -0.014753688126802444, -0.11767161637544632, 0.21029673516750336, 0.024252641946077347, 0.07113831490278244, 0.10978937149047852, 0.01902025006711483, 0.37040188908576965, -0.1386595219373703, 0.0634496659040451, -0.07864607870578766, 0.18990369141101837, -0.2261856645345688, 0.13131046295166016, 0.35373038053512573, 0.005479674786329269, 0.10549862682819366, -0.2800252139568329, 0.38782140612602234, -0.22275099158287048, -0.3748096823692322, -0.17332178354263306, -0.21428930759429932, 0.2759658396244049, -0.4482651352882385, -0.1949571669101715, -0.16413767635822296, 0.17601637542247772, 0.25806665420532227, -0.1040424183011055, 0.6311084032058716, 0.14757975935935974, 0.06534333527088165, 0.08248277008533478, 0.3850363492965698, -0.07497087121009827, 0.16042426228523254, 0.2725326716899872, -0.04660240560770035, 0.10908837616443634, 0.171407088637352, 0.030023619532585144, -0.11094098538160324, 0.18633952736854553, 0.031111687421798706, -0.11325587332248688, 0.22017738223075867, 0.18038776516914368, 0.1061631441116333, -0.26175376772880554, 0.21459636092185974, -0.022823765873908997, -0.16965651512145996, 0.054318491369485855, 0.2885485589504242, 0.23128458857536316, -0.25334301590919495, 0.25492072105407715, -0.25449663400650024, 0.11340296268463135, 0.06396322697401047, -0.04181431606411934, -0.12877637147903442, -0.287039190530777, -0.014113891869783401, 0.13744257390499115, 0.05993608757853508, 0.11207376420497894, -0.0010262876749038696, -0.045609913766384125, 0.06662657856941223, -0.05660737305879593, 0.10426392406225204, 0.07447949796915054, 0.25538310408592224, -0.24453411996364594, 0.0030048154294490814, 0.002237670123577118, 0.019504960626363754, 0.13448888063430786, 0.4690649211406708, 0.31648439168930054, -0.1305290162563324, 0.29807424545288086, 0.2108301818370819, 0.1651776283979416, -0.13122136890888214, 0.024584315717220306, 0.001998862251639366, 0.40768441557884216, 0.050367116928100586, 0.1881834864616394, 0.26865124702453613, -0.2592427730560303, 0.04281724989414215, -0.04311404749751091, 0.06095403432846069, -0.06821322441101074, 0.34848809242248535, -0.27305153012275696, -0.1594027578830719, -0.31635963916778564, 0.025944508612155914, -0.3661028742790222, -0.20941142737865448, 0.23337794840335846, -0.16544656455516815, 0.044481873512268066, -0.3951572775840759, 0.1253901571035385, -0.29009145498275757, 0.28413546085357666, 0.34545955061912537, 0.2528148293495178, -0.07497074455022812, -0.4302219748497009, -0.46525365114212036, 0.15675784647464752, -0.02820802852511406, 0.06825439631938934, -0.1738586127758026, 0.29803499579429626, 0.07960502803325653, -0.22411693632602692, 0.6628431081771851, 0.19732439517974854, -0.306185781955719, -0.20391526818275452, -0.21103349328041077, -0.05777207389473915, 0.10134989768266678, 0.03594617918133736, -0.10098350048065186, -0.17038056254386902, 0.032764729112386703, -0.2284204363822937, 0.20440134406089783, -0.1625732183456421, 0.14137138426303864, 0.09273326396942139, -0.048023439943790436, 0.3834228217601776, 0.16079963743686676, 0.368950217962265, -0.16263902187347412, -0.061392009258270264, -0.01967424526810646, -0.19481272995471954, -0.02320042997598648, -0.07550252228975296, 0.04939291253685951, 0.2992311716079712, -0.13276375830173492, -0.23474128544330597, 0.013658489100635052, 0.35834601521492004, -0.14552544057369232, 0.05082300677895546, -0.07495643943548203, 0.3926892578601837, -0.2688877284526825, 0.1571885347366333, 0.013301420025527477, -0.03175267577171326, 0.19251219928264618, -0.19132594764232635, -0.135613352060318, -0.3552621603012085, 0.27447450160980225, 0.19451451301574707, -0.039256397634744644, 0.09688495844602585, 0.2618946433067322, 0.057285431772470474, -0.07261250913143158, -0.39191684126853943, 0.18531841039657593, 0.2262672781944275, -0.003485940396785736, -0.4024272859096527, 0.28558698296546936, 0.11298567056655884, -0.07387000322341919, -0.06343463063240051, 0.1503031998872757, 0.1767883598804474, -0.18279384076595306, -0.01718706637620926, -0.27478548884391785 ]
https://github.com/huggingface/datasets/pull/2817
Rename The Pile subsets
I think the main `the_pile` datasets will be the one that is the mix of all the subsets: https://the-eye.eu/public/AI/pile/ We can also add configurations for each subset, and even allow users to specify the subsets they want: ```python from datasets import load_dataset load_dataset("the_pile", subsets=["openwebtext2", "books3", "hn"]) ``` We're alrady doing something similar for mC4, where users can specify the list of languages they want to load.
After discussing with @yjernite we think it's better to have the subsets of The Pile explicitly have "the_pile" in their names. I'm doing the changes for the subsets that @richarddwang added: - [x] books3 -> the_pile_books3 https://github.com/huggingface/datasets/pull/2801 - [x] stack_exchange -> the_pile_stack_exchange https://github.com/huggingface/datasets/pull/2803 - [x] openwebtext2 -> the_pile_openwebtext2 https://github.com/huggingface/datasets/pull/2802 For consistency we should also rename `bookcorpusopen` to `the_pile_bookcorpus` IMO, but let me know what you think. (we can just add a deprecation message to `bookcorpusopen` for now and add `the_pile_bookcorpus`)
66
text: Rename The Pile subsets After discussing with @yjernite we think it's better to have the subsets of The Pile explicitly have "the_pile" in their names. I'm doing the changes for the subsets that @richarddwang added: - [x] books3 -> the_pile_books3 https://github.com/huggingface/datasets/pull/2801 - [x] stack_exchange -> the_pile_stack_exchange https://github.com/huggingface/datasets/pull/2803 - [x] openwebtext2 -> the_pile_openwebtext2 https://github.com/huggingface/datasets/pull/2802 For consistency we should also rename `bookcorpusopen` to `the_pile_bookcorpus` IMO, but let me know what you think. (we can just add a deprecation message to `bookcorpusopen` for now and add `the_pile_bookcorpus`) I think the main `the_pile` datasets will be the one that is the mix of all the subsets: https://the-eye.eu/public/AI/pile/ We can also add configurations for each subset, and even allow users to specify the subsets they want: ```python from datasets import load_dataset load_dataset("the_pile", subsets=["openwebtext2", "books3", "hn"]) ``` We're alrady doing something similar for mC4, where users can specify the list of languages they want to load.
[ 0.24405156075954437, 0.00023051351308822632, -0.16514728963375092, 0.03584868088364601, -0.09688116610050201, 0.22604194283485413, 0.5062816739082336, 0.11072710156440735, 0.12447229027748108, -0.05606120824813843, -0.4951053857803345, 0.28183895349502563, 0.11259700357913971, 0.30279919505119324, 0.1576082706451416, -0.05568809062242508, 0.24750348925590515, -0.25942787528038025, -0.10595709085464478, -0.25034961104393005, -0.3323603868484497, 0.06219341605901718, -0.0032575875520706177, -0.08221271634101868, 0.25726714730262756, 0.003946056589484215, -0.10417797416448593, 0.17470362782478333, -0.192967027425766, -0.31142744421958923, 0.10995408892631531, 0.4809970557689667, 0.060006700456142426, 0.599856436252594, -0.00010194911737926304, -0.17364591360092163, 0.020656507462263107, -0.11215171962976456, -0.30277112126350403, -0.3642887473106384, -0.1312965750694275, -0.35261526703834534, 0.01612227037549019, -0.2252320647239685, 0.12716156244277954, -0.2745690643787384, 0.22004640102386475, -0.0743175745010376, 0.04966415837407112, -0.07216406613588333, 0.22859272360801697, 0.3897586464881897, -0.00968349352478981, -0.04954725503921509, 0.12912413477897644, 0.0023970529437065125, -0.34234365820884705, 0.4970201253890991, 0.3920232653617859, 0.18666253983974457, -0.02098657190799713, 0.4184720516204834, 0.11268222332000732, 0.056660763919353485, 0.3269379138946533, 0.21730360388755798, 0.12252633273601532, -0.1282501369714737, -0.12645375728607178, 0.21508640050888062, 0.4729662239551544, -0.4055308699607849, -0.45704981684684753, -0.14006707072257996, 0.0558820515871048, -0.1924467384815216, -0.04194454848766327, 0.2729729115962982, 0.077336385846138, 0.10681384801864624, 0.08139070868492126, -0.17569848895072937, -0.0036178529262542725, 0.37417447566986084, 0.13875369727611542, 0.4726370573043823, -0.07570206373929977, -0.009439393877983093, 0.2529555559158325, -0.08241534233093262, 0.2834480404853821, -0.08764379471540451, -0.019808348268270493, 0.007292945869266987, -0.3148358464241028, -0.14425940811634064, -0.22321167588233948, 0.4743412733078003, -0.014225799590349197, -0.000040881335735321045, 0.13522131741046906, 0.20086508989334106, -0.046802062541246414, 0.059128232300281525, 0.3116609752178192, -0.03465127572417259, 0.33694207668304443, -0.23770345747470856, 0.1945323646068573, 0.37508484721183777, 0.1707877218723297, 0.10180860012769699, -0.15617787837982178, -0.04178299009799957, -0.11559607088565826, -0.2267567217350006, 0.08427702635526657, -0.013327229768037796, 0.11628422886133194, -0.06565959006547928, 0.06198076158761978, -0.3973409831523895, -0.06569880992174149, 0.31029951572418213, -0.03568607568740845, 0.1642758548259735, 0.027250774204730988, 0.3011436462402344, -0.08149899542331696, -0.0339469276368618, -0.21022523939609528, -0.015025757253170013, -0.42191773653030396, 0.14682264626026154, 0.20127703249454498, -0.4012465178966522, 0.3419790267944336, -0.12629343569278717, 0.3307461738586426, -0.02777428925037384, 0.07923605293035507, 0.12127852439880371, 0.048171259462833405, -0.05527781322598457, 0.027731824666261673, -0.1064901128411293, 0.22512361407279968, 0.11485865712165833, -0.21661889553070068, -0.047323741018772125, -0.2011222541332245, -0.055854201316833496, -0.24950356781482697, 0.19415132701396942, -0.031353190541267395, -0.20421060919761658, -0.5426695346832275, 0.2781050503253937, -0.028589390218257904, 0.3261268734931946, 0.31652459502220154, 0.03929177671670914, 0.06560555100440979, -0.08615873008966446, -0.09714455902576447, 0.2907465696334839, -0.2100142240524292, -0.2995976209640503, -0.36498868465423584, 0.002670479938387871, -0.11696737259626389, 0.20906054973602295, -0.15400446951389313, -0.18548446893692017, -0.06554058194160461, 0.10688890516757965, 0.3294598162174225, -0.06180696189403534, -0.09750236570835114, 0.01371432188898325, 0.037011370062828064, 0.14926232397556305, 0.23322010040283203, -0.047867678105831146, -0.2325952798128128, -0.3441998064517975, 0.22831185162067413, -0.007097957655787468, 0.19266386330127716, -0.0269496887922287, -0.139677032828331, -0.33890002965927124, 0.1529739797115326, 0.31319671869277954, 0.04113195836544037, -0.15537410974502563, 0.055474355816841125, -0.29207053780555725, 0.37153175473213196, -0.03774700686335564, 0.051861271262168884, -0.10429839789867401, 0.29541754722595215, 0.3620675802230835, 0.15872018039226532, 0.05723945051431656, -0.5625439286231995, 0.08850271254777908, -0.262515127658844, 0.3954853117465973, 0.1502690315246582, -0.2906748652458191, -0.40796852111816406, -0.23770788311958313, -0.1665544956922531, 0.022571824491024017, 0.17458698153495789, 0.0788760781288147, -0.2199746072292328, -0.12032522261142731, -0.3912864625453949, -0.009834777563810349, -0.2520627975463867, 0.269260972738266, -0.6096847653388977, 0.16674064099788666, -0.12691904604434967, -0.019344590604305267, -0.1845739185810089, 0.22884780168533325, -0.138218492269516, -0.1898203194141388, 0.15973350405693054, 0.3596607446670532, -0.2095455825328827, -0.027729973196983337, 0.09375335276126862, 0.32014548778533936, 0.27473294734954834, -0.15873993933200836, 0.4069865942001343, -0.14146630465984344, 0.009025249630212784, 0.10254179686307907, -0.04739665985107422, 0.25700145959854126, 0.11853457987308502, 0.16199085116386414, -0.02465243823826313, -0.2363366335630417, -0.08804591745138168, -0.04944927990436554, -0.07579772919416428, -0.34875479340553284, -0.03885481879115105, -0.03551635146141052, 0.20576097071170807, 0.15824052691459656, -0.30390238761901855, -0.011969968676567078, 0.23454421758651733, -0.03815338388085365, -0.03783278167247772, 0.2034621238708496, -0.11565708369016647, -0.15125232934951782, 0.07424934953451157, -0.18537890911102295, 0.20797739923000336, 0.3168077766895294, 0.01854809746146202, 0.022339941933751106, 0.325752317905426, -0.262393593788147, 0.1635981649160385, 0.35772716999053955, 0.08318261802196503, -0.22893452644348145, 0.2147081047296524, -0.26978614926338196, -0.34454748034477234, -0.051270581781864166, 0.05126485228538513, -0.04997141659259796, -0.04582282900810242, -0.16240018606185913, -0.03153406083583832, -0.1986956000328064, -0.22736282646656036, 0.024887286126613617, -0.30234384536743164, -0.2678016424179077, -0.09524637460708618, 0.0820867195725441, -0.20552663505077362, 0.21365869045257568, -0.11947871744632721, 0.11691035330295563, -0.33222535252571106, 0.1657794564962387, -0.24722906947135925, -0.2337276190519333, 0.0015257447957992554, 0.15653355419635773, 0.17612792551517487, -0.08759032189846039, 0.11845261603593826, -0.3083023130893707, -0.2933284640312195, -0.3416508138179779, -0.39538121223449707, 0.14216171205043793, -0.35794997215270996, 0.0975755900144577, 0.08290311694145203, 0.1191054955124855, -0.361550509929657, -0.49588191509246826, 0.20164157450199127, -0.017790254205465317, -0.1609760820865631, -0.19015367329120636, 0.02991613931953907, 0.000626097375061363, 0.026678550988435745, -0.6231189966201782, -0.5109630227088928, -0.40428659319877625, 0.40919798612594604, -0.043086882680654526, -0.017729386687278748, 0.2938026189804077, -0.21533086895942688, -0.10112838447093964, -0.057581398636102676, -0.025528667494654655, -0.21139207482337952, -0.3309476971626282, 0.27412334084510803, -0.2424725890159607, 0.006987927481532097, 0.046480488032102585, -0.0209975503385067, 0.13499945402145386, -0.16186535358428955, -0.24771076440811157, -0.23642978072166443, -0.15581105649471283, -0.0023287348449230194, 0.1680731177330017, 0.5090214610099792, 0.04359965771436691, 0.12151668965816498, -0.25191280245780945, 0.07586000859737396, -0.21940399706363678, 0.16967043280601501, 0.5025400519371033, 0.2525326907634735, 0.0211910642683506, -0.07180793583393097, 0.03408364579081535, 0.506911039352417, 0.07264819741249084, 0.1295899599790573, 0.3287332057952881, 0.4307917356491089, 0.2739170491695404, -0.014618702232837677, -0.2615678906440735, 0.1925157755613327, -0.21480002999305725, 0.1342121958732605, 0.5105710029602051, 0.01593696139752865, -0.19724062085151672, -0.12380145490169525, 0.009483005851507187, -0.4466688632965088, -0.31269362568855286, 0.026312891393899918, 0.12976127862930298, 0.04293312504887581, 0.1800164431333542, -0.20070454478263855, -0.13049736618995667, -0.32760855555534363, 0.15881219506263733, 0.4508770704269409, -0.2160913050174713, 0.034913163632154465, -0.49499091506004333, 0.32138174772262573, -0.38466572761535645, 0.3439367711544037, -0.048689696937799454, 0.06781813502311707, 0.033476170152425766, -0.1804932951927185, 0.05677606165409088, 0.3248178958892822, 0.5540921092033386, -0.02026340924203396, -0.3074653148651123, 0.08319507539272308, 0.109787717461586, -0.18011030554771423, -0.09362984448671341, -0.2946203947067261, -0.028646232560276985, 0.3925226628780365, 0.3244393467903137, -0.33744391798973083, -0.28028973937034607, 0.25304704904556274, 0.22012674808502197, 0.10065022110939026, -0.14509136974811554, -0.32426735758781433, -0.28669899702072144, -0.18943893909454346, 0.05993025749921799, 0.1929970234632492, 0.1001816987991333, -0.1514071524143219, 0.18889689445495605, 0.36528995633125305, -0.14330369234085083, 0.41597580909729004, 0.20502687990665436, 0.2054181694984436, 0.5512449145317078, -0.019055120646953583, 0.08244279026985168, 0.2313854992389679, 0.36749380826950073, 0.5005956292152405, -0.3702155649662018, -0.6290842294692993, -0.017816442996263504, -0.18304459750652313, 0.4196569621562958, 0.37494227290153503, 0.24958686530590057, 0.11547832190990448, 0.16770613193511963, 0.12528955936431885, 0.12287487834692001, 0.15908226370811462, -0.024003034457564354, 0.03687629848718643, -0.37851881980895996, -0.5874455571174622, 0.4519728422164917, -0.17660456895828247, -0.0425398014485836, 0.271057665348053, 0.33314868807792664, -0.3878815770149231, 0.3949998617172241, -0.018053531646728516, 0.9463406801223755, -0.15970033407211304, 0.22344382107257843, -0.02581840008497238, 0.08722251653671265, 0.20251582562923431, -0.27035027742385864, 0.027777191251516342, -0.14261628687381744, -0.13276058435440063, 0.08546111732721329, -0.11668112128973007, 0.13509546220302582, 0.5381607413291931, -0.22800585627555847, 0.370792955160141, -0.1358715295791626, -0.055333275347948074, -0.09272954612970352, 0.2471258044242859, -0.33819639682769775, -0.46288350224494934, -0.33621466159820557, 0.19864065945148468, 0.04342613369226456, 0.09732961654663086, -0.12845832109451294, 0.025416314601898193, -0.22702011466026306, 0.25025415420532227, -0.08199156075716019, -0.1456795632839203, -0.30864670872688293, 0.014149531722068787, 0.08153140544891357, -0.24909158051013947, 0.3091643452644348, 0.31050190329551697, 0.6068136096000671, 0.1905147284269333, 0.019458165392279625, 0.11584247648715973, 0.089447520673275, 0.031871210783720016, 0.10060595721006393, -0.1205124780535698, 0.287019282579422, 0.09996666759252548, -0.2666739523410797, -0.17506709694862366, 0.06957658380270004, -0.1857168972492218, -0.33822858333587646, 0.07679760456085205, 0.19795724749565125, -0.24023663997650146, -0.14530299603939056, 0.15834102034568787, -0.00486023910343647, -0.19870451092720032, 0.160505011677742, 0.01695913076400757, -0.1566990166902542, -0.06672915071249008, 0.021062470972537994, -0.2648610472679138, -0.2041919231414795, 0.20757433772087097, 0.12775340676307678, -0.5172243118286133, 0.333192378282547, 0.4198438227176666, -0.18418076634407043, -0.24790963530540466, -0.03197914734482765, 0.18615810573101044, -0.2051328718662262, 0.15282803773880005, 0.34429076313972473, -0.1470584273338318, -0.213042750954628, 0.32935062050819397, 0.21468278765678406, 0.2808532118797302, 0.03919529542326927, -0.07463887333869934, -0.051889196038246155, 0.3867036700248718, 0.23068192601203918, 0.17803321778774261, 0.06824934482574463, 0.19151228666305542, -0.03703443706035614, -0.137964129447937, -0.3978976607322693, 0.23239341378211975, -0.08468706160783768, -0.03908679634332657, -0.011488042771816254, -0.14413070678710938, 0.10635757446289062, -0.12811176478862762, 0.19508019089698792, -0.142399400472641, -0.2677992582321167, -0.3338671624660492, -0.28888747096061707, 0.11656197160482407, -0.020526714622974396, -0.09405087679624557, 0.09683931618928909, -0.02818775549530983, 0.16264013946056366, -0.2292264848947525, 0.18338367342948914, 0.3070388734340668, 0.2500845193862915, 0.25528791546821594, 0.3251247704029083, -0.027517735958099365, 0.20331516861915588, -0.021576542407274246, -0.03454083949327469, 0.052560511976480484, 0.40800684690475464, 0.0021738149225711823, 0.08161884546279907, 0.07943236827850342, 0.23564870655536652, 0.14509469270706177, 0.06486006081104279, 0.3265218138694763, -0.17553257942199707, 0.08180467039346695, -0.1544029712677002, 0.1791478544473648, 0.13105833530426025, 0.33734044432640076, -0.005189590156078339, -0.18922235071659088, 0.2721345126628876, 0.2815872132778168, -0.36719849705696106, 0.010139670222997665, 0.2925621271133423, -0.07602939754724503, 0.1638069748878479, 0.3060416579246521, 0.2803401052951813, 0.21566849946975708, -0.18709741532802582, 0.10408870875835419, 0.04591645672917366, -0.04399191588163376, 0.5687164664268494, -0.15046994388103485, 0.16630136966705322, -0.007576916366815567, 0.27486342191696167, 0.04952140897512436, 0.14116649329662323, -0.26691049337387085, 0.03790518641471863, 0.2735027074813843, -0.008273843675851822, 0.2755768299102783, 0.037325676530599594, -0.10651491582393646, 0.11912889778614044, 0.32639533281326294, 0.14254263043403625, 0.36527788639068604, 0.0195702463388443, 0.48243018984794617, -0.11619535833597183, -0.2099611461162567, -0.041605144739151, -0.12744075059890747, 0.018031777814030647, -0.22136875987052917, 0.17009536921977997, -0.2583755850791931, -0.20291811227798462, -0.0024295486509799957, -0.12071910500526428, -0.7007558941841125, 0.07118306308984756, 0.027451876550912857, 0.08565935492515564, -0.5880507826805115, -0.2268843650817871, 0.1480816900730133, 0.2994503676891327, -0.024392500519752502, 0.04401887580752373, 0.20023362338542938, -0.2398201823234558, 0.121132031083107, 0.17614249885082245, -0.15954244136810303, -0.02453959733247757, 0.16340501606464386, 0.055379174649715424, 0.14537256956100464, 0.04467844218015671, -0.0639612153172493, -0.1266486495733261, 0.13826166093349457, 0.37592020630836487, 0.10049964487552643, 0.23139283061027527, -0.2739923894405365, -0.20006690919399261, 0.05391509085893631, -0.0703192949295044, -0.29226669669151306, 0.28452804684638977, 0.0009672120213508606, -0.15819643437862396, -0.04181312024593353, 0.03657131642103195, -0.5973645448684692, -0.011722101829946041, 0.423138827085495, -0.06495854258537292, -0.03965191915631294, -0.012227908708155155, 0.12711158394813538, 0.18262247741222382, 0.3837703764438629, 0.3717901110649109, -0.015182338654994965, -0.3460313081741333, -0.1795271337032318, -0.3515244424343109, 0.09162537008523941, 0.19686828553676605, 0.26590484380722046, -0.028961919248104095, 0.1279262900352478, 0.4040836989879608, 0.16725555062294006, -0.029064714908599854, 0.1700550615787506, -0.08068635314702988, 0.10279984772205353, -0.4388769567012787, -0.053333159536123276, 0.04953509569168091, 0.5014505982398987, 0.2758801281452179, 0.07055399566888809, -0.26174578070640564, 0.12702792882919312, -0.08071588724851608, -0.45099472999572754, 0.039685919880867004, 0.34069421887397766, -0.3292829990386963, 0.29106032848358154, -0.14106342196464539, -0.04911234974861145, -0.060708507895469666, -0.3203214406967163, -0.1609867960214615, -0.6239967346191406, -0.24342645704746246, 0.34981152415275574, -0.16954374313354492, 0.3048028349876404, -0.0941862240433693, -0.17292892932891846, -0.015480462461709976, 0.3362060487270355, 0.13277897238731384, -0.03732139244675636, -0.2021651417016983, 0.20365051925182343, 0.334235817193985, -0.252151221036911, 0.035817164927721024, 0.3456532061100006, 0.05361178144812584, 0.12028361856937408, -0.06075577437877655, -0.3548944890499115, 0.5327808856964111, -0.21377849578857422, -0.26213327050209045, -0.040548380464315414, 0.10943232476711273, 0.01643551141023636, -0.004075175151228905, -0.6926499009132385, 0.2467760443687439, 0.2099803239107132, -0.08483380079269409, -0.1505771279335022, 0.13640035688877106, -0.2361958622932434, -0.10521140694618225, -0.29128164052963257, 0.1078382059931755, 0.16062584519386292, -0.2880949079990387, -0.178630068898201, -0.1790858805179596 ]
https://github.com/huggingface/datasets/pull/2811
Fix stream oscar
One additional note: if we can try to not change the code of oscar.py too often, I'm sure users that have it in their cache directory will be happy to not have to redownload it every time they update the library ;) (since changing the code changes the cache directory of the dataset)
Previously, an additional `open` was added to oscar to make it stream-compatible: 587bbb94e891b22863b312b99696e32708c379f4. This was argued that might be problematic: https://github.com/huggingface/datasets/pull/2786#discussion_r690045921 This PR: - removes that additional `open` - patches `gzip.open` with `xopen` + `compression="gzip"`
53
text: Fix stream oscar Previously, an additional `open` was added to oscar to make it stream-compatible: 587bbb94e891b22863b312b99696e32708c379f4. This was argued that might be problematic: https://github.com/huggingface/datasets/pull/2786#discussion_r690045921 This PR: - removes that additional `open` - patches `gzip.open` with `xopen` + `compression="gzip"` One additional note: if we can try to not change the code of oscar.py too often, I'm sure users that have it in their cache directory will be happy to not have to redownload it every time they update the library ;) (since changing the code changes the cache directory of the dataset)
[ -0.24223552644252777, 0.021069318056106567, -0.04032079875469208, 0.04852791130542755, 0.13925623893737793, -0.117234006524086, -0.1371762752532959, 0.38411691784858704, -0.055571068078279495, 0.15845991671085358, -0.2034863978624344, 0.40360087156295776, 0.012122642248868942, 0.22063922882080078, -0.0734013170003891, -0.3410200774669647, -0.08633755892515182, 0.28512075543403625, -0.0016284734010696411, -0.15123772621154785, -0.2887312173843384, 0.06859751045703888, -0.00013399124145507812, 0.10791520774364471, 0.0788600891828537, -0.10339050740003586, 0.22784703969955444, 0.1789952516555786, -0.4902157783508301, -0.17739924788475037, -0.10001850128173828, 0.3386867046356201, -0.046032343059778214, 0.007573939859867096, -0.00010754413233371451, -0.04798094183206558, 0.39951449632644653, -0.0403888002038002, -0.08758415281772614, -0.24172784388065338, 0.12692725658416748, -0.10521401464939117, 0.16827580332756042, 0.1374455690383911, -0.04242204874753952, -0.6445047855377197, 0.2756254971027374, -0.24673552811145782, 0.406055212020874, 0.2847675085067749, 0.2377474009990692, 0.02663402259349823, 0.4149334132671356, -0.1754416525363922, 0.1720186173915863, -0.28421688079833984, -0.17828179895877838, 0.02857736125588417, 0.21554197371006012, 0.05643519014120102, -0.10616178065538406, 0.4706536829471588, -0.14814738929271698, 0.006753537803888321, 0.5758848190307617, -0.1545572280883789, -0.26883095502853394, -0.30552828311920166, -0.06081167608499527, 0.2748817503452301, 0.16826295852661133, -0.29105910658836365, -0.42791005969047546, -0.23610392212867737, 0.17636367678642273, -0.612490177154541, 0.2655995488166809, 0.3151954710483551, -0.15128648281097412, 0.1420402079820633, -0.030247528105974197, -0.33135154843330383, -0.18870578706264496, 0.14135655760765076, 0.09721873700618744, 0.19279052317142487, -0.06216572970151901, -0.0016916841268539429, 0.4459405541419983, 0.1241508200764656, 0.02211838588118553, -0.03415549919009209, -0.12742459774017334, -0.19716529548168182, -0.12358403205871582, 0.06517209857702255, 0.010853692889213562, 0.16253703832626343, 0.15226221084594727, 0.3507543206214905, 0.17693506181240082, 0.1777777075767517, -0.12868495285511017, -0.05811753869056702, 0.21119973063468933, 0.18488143384456635, -0.11734005063772202, -0.08625416457653046, 0.21879372000694275, 0.28218889236450195, 0.025549311190843582, -0.24259215593338013, 0.08865254372358322, -0.3568399250507355, -0.005788763985037804, -0.029942456632852554, 0.5225531458854675, -0.18797771632671356, 0.008339745923876762, 0.00048359017819166183, -0.28591683506965637, -0.131595641374588, -0.09542369097471237, 0.28128790855407715, -0.21789084374904633, 0.12102029472589493, 0.033380597829818726, 0.17920809984207153, 0.0019799303263425827, 0.1479794681072235, -0.24084728956222534, -0.03617805987596512, -0.14236243069171906, 0.2255406677722931, -0.0884094089269638, -0.6034931540489197, 0.23658035695552826, 0.1502799689769745, 0.6085740327835083, 0.03843244910240173, 0.2217921018600464, 0.13261142373085022, 0.1610822230577469, 0.35726115107536316, -0.016745107248425484, 0.0811748057603836, 0.2169821858406067, -0.06684082746505737, -0.15599893033504486, 0.14055165648460388, -0.14077553153038025, -0.3251354396343231, -0.1396418660879135, 0.23895250260829926, -0.040613338351249695, 0.00973924808204174, 0.09386183321475983, 0.05879279971122742, -0.3907351493835449, -0.33680933713912964, 0.12249204516410828, -0.08637415617704391, 0.15780676901340485, -0.23087389767169952, 0.22813992202281952, 0.23952335119247437, -0.017184462398290634, 0.0728478729724884, -0.18935279548168182, -0.011156842112541199, 0.4983370006084442, 0.3453651964664459, -0.13893505930900574, -0.5830073952674866, -0.16099806129932404, -0.005184084177017212, 0.2688995599746704, -0.13384197652339935, -0.4943612515926361, 0.2740894854068756, -0.048988454043865204, 0.23986203968524933, 0.21058812737464905, -0.0715220496058464, 0.28849297761917114, -0.0858006477355957, 0.21280650794506073, 0.08515927195549011, -0.08157063275575638, 0.043558984994888306, -0.38009583950042725, -0.10602151602506638, -0.05947158485651016, -0.008504940196871758, -0.10199736058712006, 0.12822234630584717, -0.09363194555044174, 0.21448539197444916, 0.24246802926063538, 0.0030658692121505737, 0.05697178095579147, -0.22504915297031403, 0.35416239500045776, 0.3156033158302307, -0.07607397437095642, 0.23206773400306702, 0.020507264882326126, -0.14554660022258759, 0.007425803691148758, 0.06285621970891953, -0.16864551603794098, -0.28843384981155396, -0.14681768417358398, -0.19374756515026093, -0.07097914814949036, -0.30741092562675476, 0.16900865733623505, 0.08782710880041122, 0.05703621730208397, 0.11500602960586548, -0.358597069978714, 0.3909722566604614, -0.17469170689582825, 0.14843012392520905, -0.1962818056344986, 0.01747722737491131, -0.10653018206357956, 0.021860655397176743, 0.09064118564128876, -0.030998192727565765, 0.07283110171556473, -0.16873906552791595, -0.23518770933151245, 0.4692234992980957, -0.4953702986240387, 0.3551137447357178, -0.03958304971456528, 0.2612205147743225, 0.2709468901157379, -0.31775516271591187, 0.19664928317070007, 0.20517729222774506, 0.15027466416358948, 0.1336137354373932, -0.02158311754465103, 0.36118364334106445, 0.10610596835613251, -0.12976068258285522, 0.16489391028881073, 0.14032794535160065, 0.0865233987569809, -0.046083204448223114, -0.3607393503189087, 0.023600153625011444, 0.06555143743753433, -0.2366606742143631, 0.4155007004737854, 0.07806485891342163, -0.502244234085083, 0.1605280339717865, 0.4524213671684265, -0.08853841572999954, -0.054329901933670044, 0.5139389634132385, -0.208543062210083, -0.1376066952943802, -0.012553973123431206, 0.36818259954452515, 0.3951649069786072, 0.33851784467697144, 0.10431109368801117, 0.3313900828361511, 0.001392698846757412, -0.34218931198120117, 0.32670968770980835, 0.1010376363992691, 0.0991763174533844, 0.1332816481590271, 0.059637751430273056, 0.1703239530324936, -0.41362231969833374, 0.11861209571361542, -0.1977207213640213, 0.15519005060195923, 0.04053996130824089, 0.09691958874464035, -0.2578917443752289, -0.30703845620155334, -0.11620780825614929, -0.16124209761619568, -0.1852772831916809, -0.1529836505651474, 0.22508254647254944, 0.2220166176557541, -0.20164033770561218, 0.28091558814048767, -0.1524389088153839, 0.11720933020114899, -0.027472425252199173, 0.0430445671081543, -0.29460015892982483, -0.06452676653862, -0.030819416046142578, 0.1553206443786621, -0.0492929145693779, -0.3083149492740631, 0.23747463524341583, 0.05154198408126831, -0.13466942310333252, -0.31313949823379517, -0.26986268162727356, 0.08883299678564072, -0.07398038357496262, -0.10958516597747803, 0.19221261143684387, 0.08305072039365768, 0.09495551884174347, -0.24463923275470734, 0.22073301672935486, -0.4234749674797058, 0.025112757459282875, -0.1651684045791626, -0.0280917938798666, 0.2749582827091217, -0.19854553043842316, -0.3943435549736023, -0.13510842621326447, -0.6086590886116028, 0.3382754325866699, -0.08190202713012695, 0.12387476116418839, 0.3062146306037903, -0.01662943884730339, -0.07264860719442368, -0.12400741875171661, 0.03072117082774639, -0.31556838750839233, -0.32024508714675903, 0.2763952910900116, -0.1780022829771042, -0.477504163980484, -0.1346261203289032, 0.018738575279712677, -0.3067725896835327, 0.08263556659221649, -0.21929773688316345, -0.4559592306613922, -0.3404134213924408, -0.3032997250556946, -0.01057739183306694, -0.07019899040460587, 0.1914626806974411, -0.03847696632146835, -0.36713868379592896, -0.20123013854026794, -0.11838777363300323, -0.043507494032382965, -0.04455101490020752, 0.24987119436264038, -0.05376133322715759, 0.26207947731018066, -0.08378487825393677, 0.2555517256259918, 0.28731217980384827, 0.08098801970481873, 0.45062729716300964, 0.09256597608327866, 0.49104270339012146, -0.08464335650205612, -0.16356459259986877, 0.244174987077713, 0.0073936134576797485, -0.06564665585756302, 0.10739575326442719, 0.17358490824699402, -0.16741904616355896, -0.10152430087327957, 0.07374641299247742, -0.3049338757991791, -0.2671259641647339, 0.18522578477859497, 0.18616840243339539, -0.1540706753730774, 0.23878347873687744, 0.0092083141207695, -0.08675749599933624, 0.029971450567245483, 0.09272775053977966, 0.3898010849952698, 0.3786931335926056, 0.00034866214264184237, 0.11936235427856445, 0.09831979870796204, -0.6144444346427917, 0.3514931797981262, -0.2186836451292038, 0.060686808079481125, -0.09924554824829102, -0.28621357679367065, 0.146700918674469, 0.06879922747612, 0.45207351446151733, -0.29278358817100525, -0.2990582585334778, 0.1674160212278366, 0.11776585876941681, 0.01998951844871044, -0.04784313216805458, -0.2759150266647339, 0.14685691893100739, 0.12386593222618103, 0.2765060067176819, -0.21375228464603424, -0.3126373887062073, 0.19839759171009064, -0.181712806224823, 0.08288313448429108, 0.01991182565689087, -0.2582774758338928, -0.4940088093280792, -0.26786378026008606, 0.05356753244996071, 0.06507568806409836, 0.14887307584285736, -0.08644212037324905, -0.12310658395290375, -0.0862136259675026, 0.16163504123687744, 0.31173190474510193, 0.006457315757870674, 0.4229004681110382, 0.2733502686023712, -0.130576953291893, -0.10367892682552338, 0.46126788854599, 0.1606033891439438, 0.33235958218574524, 0.048307307064533234, -0.3635376989841461, -0.029865678399801254, -0.05263814702630043, 0.17797638475894928, 0.3036333918571472, -0.14144428074359894, -0.03159472346305847, -0.07037250697612762, 0.41134434938430786, -0.12824462354183197, 0.26972144842147827, 0.24585826694965363, -0.13140395283699036, -0.21742136776447296, -0.5255435705184937, 0.3130059838294983, 0.11987239122390747, -0.14750851690769196, 0.7825905680656433, 0.24007079005241394, 0.07252275943756104, 0.14956286549568176, 0.05420587956905365, 1.0945719480514526, -0.22012372314929962, 0.06315737962722778, 0.27043625712394714, -0.37439388036727905, 0.4984912574291229, -0.09310055524110794, 0.18770556151866913, -0.0012265779078006744, -0.6710225343704224, 0.015653667971491814, 0.06395182013511658, 0.16722334921360016, -0.38167184591293335, -0.3992239534854889, 0.17828238010406494, 0.17943574488162994, -0.32942473888397217, 0.12246759980916977, -0.03441634401679039, -0.34157949686050415, -0.30080050230026245, -0.5573054552078247, 0.19502636790275574, -0.07519274950027466, 0.42044538259506226, 0.07796651870012283, -0.4511677026748657, 0.20157548785209656, -0.27334970235824585, -0.3543276786804199, 0.11744491010904312, -0.22868698835372925, -0.36667418479919434, -0.1093597263097763, -0.27779215574264526, -0.009898602031171322, -0.011377807706594467, 0.05851402133703232, -0.12091144919395447, 0.006230825558304787, 0.23792573809623718, -0.15701216459274292, -0.02448449283838272, -0.11063893884420395, 0.10137369483709335, 0.20942558348178864, -0.2408868670463562, -0.039358898997306824, 0.1928200125694275, -0.005052319727838039, -0.2834039330482483, 0.1671704649925232, -0.06982782483100891, 0.24321645498275757, 0.012470178306102753, -0.1077718585729599, -0.3719427287578583, -0.2486049234867096, -0.2888268232345581, 0.1576002836227417, -0.1394539624452591, -0.12482986599206924, -0.24585437774658203, 0.18996481597423553, -0.4353417158126831, -0.06397219002246857, 0.1441991776227951, -0.06094928830862045, 0.045226700603961945, 0.24603182077407837, 0.039825189858675, -0.01866428181529045, -0.1221892386674881, -0.32039874792099, -0.08372838795185089, -0.27630433440208435, 0.1674754023551941, -0.005773571319878101, -0.18164297938346863, -0.05743357539176941, 0.22289155423641205, 0.2208416908979416, 0.2093614637851715, 0.018995460122823715, -0.2935001254081726, -0.1756284236907959, 0.04219484329223633, -0.18862807750701904, 0.11612120270729065, 0.0678647980093956, -0.13131000101566315, 0.17489925026893616, 0.00654282420873642, -0.3924585282802582, 0.04552295058965683, -0.011423055082559586, -0.10720503330230713, -0.053923167288303375, -0.060501642525196075, 0.38432931900024414, -0.12432023882865906, 0.11406254768371582, 0.23365418612957, -0.3367616832256317, -0.24798783659934998, -0.1727016121149063, 0.13482892513275146, -0.16609424352645874, -0.2446756511926651, 0.020650610327720642, 0.14128682017326355, -0.1494126319885254, -0.12300160527229309, 0.24289774894714355, 0.01877555623650551, 0.06955006718635559, 0.016845207661390305, 0.25950631499290466, -0.08403829485177994, -0.07022619247436523, -0.2836499810218811, 0.10019339621067047, 0.49222642183303833, -0.007944080978631973, -0.13769160211086273, -0.12591268122196198, -0.22136525809764862, -0.07153128832578659, -0.11406592279672623, 0.00975797325372696, 0.2091865837574005, 0.3742532730102539, 0.04440219700336456, -0.1058868020772934, 0.23109015822410583, 0.5095793008804321, 0.23265568912029266, 0.07973039895296097, -0.0800870805978775, 0.15083634853363037, 0.21146656572818756, -0.3313630223274231, 0.09026726335287094, 0.09205090999603271, 0.2569755017757416, 0.01970876380801201, 0.05473625659942627, -0.009022783488035202, 0.13629521429538727, -0.19319798052310944, 0.07468785345554352, 0.1947525292634964, 0.032811831682920456, 0.5031360983848572, 0.31019774079322815, 0.059058237820863724, 0.07726935297250748, 0.14973382651805878, 0.04111948981881142, 0.11904454231262207, 0.1952468752861023, -0.23273080587387085, 0.42322930693626404, -0.04424310475587845, 0.19682221114635468, -0.16109412908554077, -0.31050363183021545, 0.015352064743638039, 0.3416135311126709, -0.03277304768562317, 0.3197289705276489, 0.3765738904476166, 0.35044580698013306, -0.040408965200185776, -0.18789523839950562, -0.0011949613690376282, 0.2071606069803238, 0.16926473379135132, -0.16997213661670685, 0.056902170181274414, -0.11372366547584534, -0.09104246646165848, 0.1873377412557602, 0.11892081797122955, 0.2947399914264679, 0.4948766231536865, 0.11711245775222778, 0.11303165555000305, -0.21829453110694885, -0.12537327408790588, -0.031934939324855804, 0.44940176606178284, -0.09759818017482758, 0.1401519924402237, 0.24492976069450378, -0.18280604481697083, 0.21283671259880066, 0.44277694821357727, 0.4617660343647003, 0.13625335693359375, 0.1559896618127823, 0.3417602777481079, -0.12274514138698578, -0.006341803818941116, -0.0692577213048935, 0.1335034966468811, 0.5039854049682617, 0.13142159581184387, 0.07261911034584045, 0.23020437359809875, -0.23876316845417023, 0.4814477562904358, -0.40911865234375, 0.14792923629283905, -0.11371979117393494, 0.5333686470985413, 0.12762224674224854, -0.016866587102413177, -0.3194105625152588, -0.04546850174665451, -0.34788355231285095, 0.18854784965515137, 0.05193721875548363, 0.1334913671016693, -0.12610873579978943, -0.28268954157829285, 0.11624078452587128, 0.2789318859577179, 0.4395524561405182, 0.23625482618808746, -0.0064346641302108765, -0.08962734788656235, -0.28037965297698975, -0.6979330778121948, 0.4090784192085266, -0.054016437381505966, -0.04514040797948837, 0.17555679380893707, 0.016109326854348183, 0.17087402939796448, 0.10803734511137009, 0.10701500624418259, 0.26812171936035156, 0.18308430910110474, -0.07033930718898773, -0.2421293407678604, 0.21540620923042297, 0.33539479970932007, -0.0006000343710184097, 0.12491022050380707, -0.06212906166911125, 0.2389456033706665, -0.30377310514450073, 0.2033350169658661, 0.008609574288129807, 0.15599225461483002, -0.34341225028038025, -0.14546708762645721, 0.4152570068836212, 0.31789299845695496, 0.029167458415031433, -0.3858286142349243, -0.28053927421569824, -0.14030078053474426, 0.1217060387134552, -0.2525273859500885, 0.01373082771897316, -0.02853742614388466, 0.2835865914821625, -0.06676831096410751, -0.246784970164299, -0.5335233211517334, 0.48724842071533203, -0.04322022944688797, -0.42271795868873596, -0.3409230709075928, 0.2484433352947235, 0.16115382313728333, -0.06805429607629776, 0.057595785707235336, 0.35555654764175415, -0.014033637940883636, -0.1561591476202011, -0.25959181785583496, -0.6353517174720764, 0.8223048448562622, -0.42952629923820496, -0.10483290255069733, 0.07910027354955673, 0.1389356553554535, 0.44315043091773987, -0.12868632376194, -0.5596013069152832, 0.20323628187179565, -0.07550890743732452, 0.07043606042861938, -0.16710105538368225, 0.09836141765117645, -0.33857545256614685, -0.03989744931459427, -0.05378592386841774, 0.27137237787246704, 0.16534411907196045, -0.4119505286216736, 0.047694358974695206, -0.14895766973495483 ]
https://github.com/huggingface/datasets/pull/2811
Fix stream oscar
I don't think this is confusing for users because users don't even know we have patched `open`. The only thing users care is that if the pass `streaming=True`, they want to be able to load the dataset in streaming mode. I don't see any other dataset where patching `open` with `fsspec.open`+`compression` is an "underlying issue". Are there other datasets where this is an issue? The only dataset where this was an issue is in oscar and the issue is indeed due to the additional `open` you added inside `zip.open`.
Previously, an additional `open` was added to oscar to make it stream-compatible: 587bbb94e891b22863b312b99696e32708c379f4. This was argued that might be problematic: https://github.com/huggingface/datasets/pull/2786#discussion_r690045921 This PR: - removes that additional `open` - patches `gzip.open` with `xopen` + `compression="gzip"`
89
text: Fix stream oscar Previously, an additional `open` was added to oscar to make it stream-compatible: 587bbb94e891b22863b312b99696e32708c379f4. This was argued that might be problematic: https://github.com/huggingface/datasets/pull/2786#discussion_r690045921 This PR: - removes that additional `open` - patches `gzip.open` with `xopen` + `compression="gzip"` I don't think this is confusing for users because users don't even know we have patched `open`. The only thing users care is that if the pass `streaming=True`, they want to be able to load the dataset in streaming mode. I don't see any other dataset where patching `open` with `fsspec.open`+`compression` is an "underlying issue". Are there other datasets where this is an issue? The only dataset where this was an issue is in oscar and the issue is indeed due to the additional `open` you added inside `zip.open`.
[ -0.31397923827171326, -0.2145826518535614, -0.0004565287381410599, 0.03737284988164902, 0.0028820615261793137, -0.1907917559146881, -0.21968595683574677, 0.242665633559227, -0.02078239619731903, 0.10901195555925369, 0.02774243801832199, 0.295046865940094, 0.1623983085155487, 0.31621304154396057, -0.16783946752548218, -0.35031720995903015, 0.2523580491542816, 0.012514084577560425, 0.20682930946350098, -0.002653028815984726, -0.4610726833343506, 0.23518896102905273, -0.11799120903015137, -0.018071793019771576, 0.1151873916387558, -0.0007191244512796402, 0.2418965995311737, 0.1455991566181183, -0.2567298114299774, -0.1574290692806244, -0.049737147986888885, 0.36089885234832764, -0.0678190290927887, -0.08404455333948135, -0.00012073254038114101, -0.05942843109369278, 0.282042533159256, -0.08202752470970154, -0.20302365720272064, -0.06756123900413513, -0.0794951468706131, -0.17162084579467773, 0.06599278748035431, 0.20909705758094788, -0.0785684883594513, -0.49512383341789246, 0.18921762704849243, -0.6259489059448242, 0.458962619304657, 0.22843629121780396, 0.0598774254322052, 0.14059077203273773, 0.04901304468512535, -0.13828743994235992, 0.28658270835876465, -0.26846301555633545, -0.3257840871810913, -0.07604044675827026, 0.27536898851394653, 0.11552242934703827, -0.016619972884655, 0.4798346757888794, -0.11074472963809967, 0.08182913064956665, 0.536884069442749, -0.2571702301502228, -0.1905125081539154, -0.31966432929039, 0.08001159876585007, 0.22421741485595703, 0.12144828587770462, 0.10668283700942993, -0.4782056212425232, -0.3142643868923187, -0.15438340604305267, -0.44350531697273254, 0.3157208561897278, 0.11631093174219131, 0.09356005489826202, 0.09542335569858551, -0.012934564612805843, -0.22574669122695923, 0.10589505732059479, 0.10211528837680817, -0.00691884383559227, 0.23461179435253143, -0.08567699790000916, 0.20801213383674622, 0.4207226634025574, 0.24972666800022125, -0.0028039738535881042, -0.06530854851007462, -0.04739831015467644, -0.42269086837768555, -0.10788750648498535, 0.13428398966789246, -0.08743315190076828, 0.09492900222539902, -0.07308022677898407, 0.3364464044570923, 0.12434283643960953, 0.34551435708999634, -0.2038208544254303, 0.046079203486442566, 0.15214091539382935, 0.01851944625377655, -0.11258330196142197, 0.15609782934188843, 0.02383938804268837, 0.010233275592327118, 0.13686783611774445, -0.26826274394989014, 0.24307073652744293, -0.24847711622714996, -0.35012203454971313, -0.06897488981485367, 0.5128953456878662, -0.14260993897914886, -0.273713082075119, 0.0063645909540355206, -0.26311346888542175, -0.19165202975273132, -0.20695212483406067, 0.11411529779434204, 0.013194228522479534, 0.24884912371635437, -0.060777001082897186, 0.20450788736343384, -0.07145106047391891, 0.053670015186071396, -0.15093520283699036, -0.22915278375148773, -0.2027669996023178, 0.3271859884262085, -0.1546803116798401, -0.7037782669067383, 0.24962040781974792, 0.14077237248420715, 0.43880927562713623, 0.04841315746307373, 0.004016108810901642, 0.1605062633752823, 0.18086935579776764, 0.5206103324890137, -0.17453709244728088, 0.13003292679786682, 0.24874012172222137, 0.030929721891880035, -0.12947861850261688, 0.31120365858078003, -0.14318040013313293, -0.261425256729126, -0.12360592186450958, 0.06444720178842545, -0.15198670327663422, 0.07532405108213425, 0.10581955313682556, 0.09407500177621841, -0.47893741726875305, -0.6663215160369873, 0.26429128646850586, -0.0991118997335434, -0.17925071716308594, -0.22006770968437195, 0.002052800729870796, 0.17201116681098938, 0.0008023902773857117, -0.13468697667121887, -0.07944214344024658, 0.10014268755912781, 0.5359205603599548, 0.38302335143089294, -0.17013700306415558, -0.645072877407074, -0.16793309152126312, -0.1124788224697113, 0.45813608169555664, -0.22142527997493744, -0.5396121740341187, 0.4437989890575409, -0.013671737164258957, 0.514164924621582, 0.39092427492141724, -0.14953801035881042, 0.2911889851093292, -0.14494851231575012, 0.04123275727033615, -0.16887453198432922, -0.029438449069857597, -0.02596435882151127, -0.35152679681777954, 0.07023878395557404, 0.18117696046829224, 0.0672687441110611, -0.060368914157152176, 0.24893486499786377, -0.033935658633708954, 0.15192674100399017, 0.1410280466079712, 0.19873064756393433, -0.021553155034780502, -0.4043501615524292, 0.17909018695354462, 0.27861666679382324, -0.1370665282011032, 0.16128909587860107, -0.09232505410909653, -0.08314042538404465, 0.06338153779506683, -0.20382148027420044, 0.05680525675415993, -0.2588905692100525, -0.12754273414611816, -0.17021726071834564, 0.1046275720000267, -0.40406399965286255, -0.08919897675514221, 0.35211998224258423, -0.13043753802776337, -0.21105225384235382, -0.42265215516090393, 0.3440493643283844, -0.0832020565867424, 0.12930867075920105, -0.1023944616317749, 0.07572289556264877, -0.04647787660360336, 0.024254757910966873, -0.05562163144350052, -0.040578410029411316, 0.1874963343143463, -0.23689506947994232, -0.16641926765441895, 0.5259029269218445, -0.2347031682729721, 0.28825193643569946, -0.07648161798715591, 0.49948054552078247, 0.2755530774593353, -0.42906343936920166, -0.09143991768360138, 0.31307828426361084, 0.08846960961818695, 0.13763335347175598, -0.27316465973854065, 0.30631616711616516, 0.03586103394627571, -0.14942556619644165, 0.01573595404624939, 0.09715019911527634, 0.011617159470915794, 0.012704882770776749, -0.5493969321250916, 0.17042428255081177, 0.13961192965507507, 0.006657483987510204, 0.45759254693984985, 0.16599401831626892, -0.3823665380477905, 0.09181065857410431, 0.48689326643943787, -0.21285836398601532, -0.2622652053833008, 0.4440053403377533, -0.0803186222910881, -0.21398571133613586, -0.009244080632925034, 0.2312108427286148, 0.5760940909385681, 0.264496386051178, 0.09227564185857773, 0.2880599796772003, 0.015464218333363533, -0.33548057079315186, 0.4417605400085449, 0.21562603116035461, -0.06423705816268921, 0.11540067195892334, 0.08815505355596542, 0.3397268056869507, -0.3657488524913788, 0.23545590043067932, 0.009628500789403915, -0.023955119773745537, -0.17139920592308044, 0.20394346117973328, -0.28045162558555603, -0.31710824370384216, -0.17463137209415436, -0.0013723326846957207, -0.05927182361483574, -0.20293255150318146, 0.16611747443675995, 0.12671148777008057, -0.21087317168712616, 0.2921549379825592, -0.015230637043714523, 0.5166654586791992, -0.2305094301700592, 0.11430247128009796, -0.2027410864830017, 0.05912436544895172, -0.07468636333942413, 0.037109363824129105, 0.04234389215707779, -0.339657187461853, 0.188761904835701, -0.025320207700133324, -0.0510125569999218, -0.5540719032287598, -0.3672634959220886, 0.0060065314173698425, -0.0015339106321334839, 0.040951382368803024, 0.13289982080459595, -0.1397988647222519, -0.060986414551734924, -0.272538959980011, 0.021566156297922134, -0.3192656934261322, 0.05377953499555588, -0.329394668340683, -0.10674027353525162, 0.19912682473659515, -0.1708027720451355, -0.35035231709480286, 0.25478971004486084, -0.5417883992195129, 0.5385421514511108, -0.258731484413147, 0.049893323332071304, 0.258242130279541, -0.17386455833911896, -0.20118603110313416, -0.03304635360836983, -0.12661033868789673, -0.5403870344161987, -0.4044699966907501, 0.018496587872505188, -0.011064326390624046, -0.3057916462421417, -0.11384419351816177, 0.15316426753997803, -0.32168295979499817, 0.20575223863124847, -0.3189049959182739, -0.08134540170431137, -0.24762918055057526, 0.010330680757761002, -0.18245640397071838, -0.213211327791214, 0.3787134289741516, -0.07949548959732056, -0.19619522988796234, -0.23911741375923157, -0.36202743649482727, -0.026133380830287933, 0.10442133992910385, 0.2762877345085144, -0.2033340036869049, 0.11741651594638824, -0.07955705374479294, 0.45898330211639404, 0.24518465995788574, 0.27921047806739807, 0.47594407200813293, 0.11522215604782104, 0.4757400453090668, -0.12909185886383057, -0.029658589512109756, 0.31881409883499146, -0.10645991563796997, -0.02338556945323944, 0.14680121839046478, 0.08303111791610718, -0.05435284227132797, -0.04382767900824547, 0.18823495507240295, -0.2841129004955292, -0.1108090877532959, 0.14506332576274872, -0.018015988171100616, -0.043597228825092316, 0.20878250896930695, 0.08228527754545212, -0.04535375535488129, 0.2221207618713379, 0.08122123777866364, 0.3470800817012787, 0.6946419477462769, -0.07134514302015305, -0.052840426564216614, 0.12478375434875488, -0.1709785759449005, 0.40967804193496704, -0.1920974850654602, 0.09626367688179016, -0.2998930513858795, -0.22733435034751892, 0.16045412421226501, 0.16183210909366608, 0.6546632647514343, -0.39625635743141174, -0.2607411742210388, 0.11075016856193542, 0.16564390063285828, -0.20654937624931335, -0.21495668590068817, -0.20394697785377502, 0.08990608900785446, 0.18613401055335999, 0.29343700408935547, -0.31423696875572205, -0.22257070243358612, 0.22281593084335327, -0.3924373388290405, 0.15145520865917206, -0.10980615019798279, -0.3479539752006531, -0.20312237739562988, -0.19173961877822876, -0.07453911751508713, 0.08190015703439713, -0.005728170275688171, -0.2237870693206787, -0.020221667364239693, 0.010504736565053463, 0.11683770269155502, 0.19494420289993286, -0.17223376035690308, 0.27168187499046326, 0.47146984934806824, -0.16777586936950684, 0.09372702240943909, 0.536879301071167, 0.03016689419746399, 0.5343387126922607, 0.14376012980937958, -0.45075052976608276, 0.36889976263046265, 0.13535656034946442, 0.16207164525985718, 0.5667669773101807, 0.048517245799303055, 0.04900169372558594, -0.0483458936214447, 0.33918678760528564, -0.16928105056285858, 0.30139806866645813, 0.31462159752845764, -0.15485550463199615, -0.11087653040885925, -0.49503985047340393, 0.4269726872444153, 0.13626573979854584, -0.20596003532409668, 0.8562765717506409, 0.26482123136520386, 0.122270368039608, 0.2846498489379883, 0.011827945709228516, 1.2129617929458618, -0.0828694999217987, 0.04905138537287712, 0.22557401657104492, -0.4534573554992676, 0.5316841006278992, -0.2613934874534607, 0.06587275117635727, 0.2907734215259552, -0.6284624338150024, -0.11499408632516861, 0.026559289544820786, 0.2903425693511963, -0.600510835647583, -0.3732740581035614, 0.19275088608264923, 0.21851913630962372, -0.25974223017692566, 0.1975221484899521, -0.06913730502128601, -0.3304789364337921, -0.12267616391181946, -0.41241154074668884, 0.004015475511550903, -0.06970734894275665, 0.3582478165626526, 0.010211065411567688, -0.2758501172065735, 0.22582730650901794, -0.2777833938598633, -0.41822105646133423, -0.1129198744893074, -0.10836265981197357, -0.3021341562271118, 0.18225790560245514, -0.03646494075655937, 0.17920149862766266, 0.12034128606319427, 0.06398880481719971, -0.3272179961204529, -0.14791139960289001, 0.28806155920028687, -0.046282581984996796, 0.039377447217702866, 0.10915778577327728, -0.006028337404131889, 0.19761556386947632, -0.168269544839859, -0.07408057153224945, 0.1866893470287323, -0.28228554129600525, -0.2816160321235657, 0.07022121548652649, 0.005663171410560608, 0.4331558346748352, -0.07764150947332382, -0.16008052229881287, -0.1926880180835724, -0.17608019709587097, -0.37391677498817444, 0.0205681249499321, -0.22973187267780304, 0.16219177842140198, -0.3098960518836975, 0.22462202608585358, -0.5482389330863953, -0.13021109998226166, 0.1165061742067337, -0.2368450164794922, -0.03483273833990097, 0.2256196141242981, -0.3479560911655426, -0.003944646567106247, 0.048824772238731384, -0.09026055037975311, -0.18055510520935059, -0.1513359248638153, -0.08670023828744888, -0.00785671453922987, -0.28591006994247437, -0.05302364006638527, 0.5344009399414062, 0.2826167047023773, 0.29101184010505676, 0.06731827557086945, -0.269538938999176, 0.027080049738287926, -0.04109272360801697, -0.2746020257472992, 0.0045404210686683655, 0.03973114490509033, -0.028965584933757782, 0.1734941452741623, 0.09284380078315735, -0.22446180880069733, 0.15134020149707794, 0.18951798975467682, -0.07835784554481506, -0.03695987910032272, 0.16053645312786102, 0.2973543703556061, -0.2070399522781372, -0.0781952366232872, 0.2728326916694641, -0.3701627254486084, -0.03623345121741295, -0.2171429842710495, 0.2818894386291504, 0.01242100540548563, -0.47027355432510376, -0.16104017198085785, 0.20681792497634888, 0.09317991137504578, -0.058892183005809784, 0.08476240932941437, 0.14218181371688843, 0.0703945979475975, -0.12850850820541382, 0.100553497672081, 0.1086510419845581, -0.04167613759636879, -0.1193050891160965, 0.059831652790308, 0.428366482257843, -0.07327932119369507, -0.2107658088207245, -0.18775731325149536, -0.21435709297657013, -0.053174782544374466, -0.09353712946176529, 0.381287157535553, 0.3466188907623291, 0.3731573224067688, 0.06816518306732178, -0.0029312074184417725, 0.059130288660526276, 0.33913204073905945, 0.20906488597393036, -0.02430933713912964, -0.1602606475353241, -0.0610525906085968, 0.03856069967150688, -0.22323910892009735, -0.016933955252170563, 0.13523900508880615, 0.40865427255630493, -0.00818384438753128, 0.0902964323759079, 0.39053279161453247, -0.0031930357217788696, 0.15906275808811188, -0.01319264154881239, -0.014692372642457485, 0.14657485485076904, 0.5604398846626282, 0.24827276170253754, 0.07432465255260468, 0.2807278037071228, 0.21061715483665466, -0.10912230610847473, -0.006619259715080261, -0.005180563777685165, -0.16785284876823425, 0.36624428629875183, 0.12790155410766602, 0.24053990840911865, -0.2810301184654236, -0.3631870746612549, 0.28787311911582947, 0.2592514753341675, -0.20920288562774658, 0.395266056060791, 0.29973962903022766, 0.03465374931693077, -0.26173675060272217, -0.02717786282300949, -0.03403400629758835, 0.08795690536499023, 0.12282408773899078, -0.38094890117645264, 0.18611997365951538, -0.06669074296951294, -0.05217209458351135, 0.3143564760684967, -0.11866308748722076, 0.33667588233947754, 0.7509019374847412, -0.016454458236694336, 0.005388371646404266, 0.12895630300045013, -0.3486104905605316, -0.1342352330684662, 0.42869287729263306, -0.17199543118476868, 0.28642433881759644, 0.05424319952726364, -0.15559349954128265, 0.5484667420387268, 0.5119898319244385, 0.45282649993896484, -0.008334144949913025, 0.16305530071258545, 0.23343439400196075, -0.01976383477449417, 0.08632113039493561, 0.049881353974342346, 0.2973637282848358, 0.4873288571834564, 0.1679154485464096, 0.15702314674854279, 0.07225465029478073, -0.13706034421920776, 0.5047268867492676, -0.3799336850643158, 0.35134467482566833, -0.43948400020599365, 0.30879440903663635, -0.1511659026145935, 0.045185305178165436, -0.035349927842617035, 0.10948461294174194, -0.1763780564069748, 0.22394174337387085, -0.07126212120056152, 0.08915211260318756, -0.011136019602417946, -0.08564988523721695, 0.042632460594177246, 0.41397106647491455, 0.5181151032447815, 0.10818228125572205, -0.1461675465106964, -0.28176313638687134, -0.3991152048110962, -0.5959485769271851, 0.3715653121471405, 0.21423782408237457, 0.14020931720733643, 0.2799918055534363, -0.06370992958545685, 0.3263426423072815, 0.16957572102546692, -0.1057615876197815, -0.055240511894226074, 0.27511852979660034, -0.08856314420700073, -0.09384571015834808, 0.2687753438949585, 0.5264881253242493, 0.08206921815872192, -0.0024339277297258377, 0.09852642565965652, 0.4600555896759033, -0.056976210325956345, 0.0394531711935997, 0.0482921302318573, 0.03833387792110443, -0.2608683705329895, -0.1439453512430191, 0.36373499035835266, 0.2755025625228882, 0.2129911631345749, -0.31703588366508484, -0.20478171110153198, 0.025093432515859604, 0.01674346998333931, -0.07758433371782303, 0.08261869102716446, -0.28638336062431335, 0.26442182064056396, -0.17418956756591797, -0.13349241018295288, -0.376135915517807, 0.19818063080310822, -0.16304470598697662, -0.2739025354385376, -0.4796622395515442, 0.10688531398773193, 0.021274223923683167, -0.12375462800264359, 0.10215537250041962, 0.3448362350463867, 0.008537258952856064, -0.20565038919448853, -0.2833455502986908, -0.38619497418403625, 0.6662670373916626, -0.4357619285583496, 0.0013819243758916855, 0.07737226039171219, 0.19851262867450714, 0.5338132381439209, -0.029844490811228752, -0.6655853986740112, -0.12164954841136932, 0.14341939985752106, 0.04188281297683716, -0.06274790316820145, 0.008721844293177128, -0.5057809352874756, -0.10648426413536072, -0.05658983439207077, 0.5554967522621155, 0.1100161224603653, -0.41957202553749084, 0.22908154129981995, -0.31530702114105225 ]
https://github.com/huggingface/datasets/pull/2806
Fix streaming tar files from canonical datasets
In case it's relevant for this PR, I'm finding that I cannot stream the `bookcorpus` dataset (using the `master` branch of `datasets`), which is a `.tar.bz2` file: ```python from datasets import load_dataset books_dataset_streamed = load_dataset("bookcorpus", split="train", streaming=True) # Throws a 404 HTTP error next(iter(books_dataset_streamed)) ``` The full stack trace is: ``` --------------------------------------------------------------------------- ClientResponseError Traceback (most recent call last) <ipython-input-11-5ebbbe110b13> in <module>() ----> 1 next(iter(books_dataset_streamed)) 11 frames /usr/local/lib/python3.7/dist-packages/datasets/iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example /usr/local/lib/python3.7/dist-packages/datasets/iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): /usr/local/lib/python3.7/dist-packages/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 /root/.cache/huggingface/modules/datasets_modules/datasets/bookcorpus/44662c4a114441c35200992bea923b170e6f13f2f0beb7c14e43759cec498700/bookcorpus.py in _generate_examples(self, directory) 98 for txt_file in files: 99 with open(txt_file, mode="r", encoding="utf-8") as f: --> 100 for line in f: 101 yield _id, {"text": line.strip()} 102 _id += 1 /usr/local/lib/python3.7/dist-packages/fsspec/implementations/http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): /usr/local/lib/python3.7/dist-packages/fsspec/spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out /usr/local/lib/python3.7/dist-packages/fsspec/caching.py in _fetch(self, start, end) 374 ): 375 # First read, or extending both before and after --> 376 self.cache = self.fetcher(start, bend) 377 self.start = start 378 elif start < self.start: /usr/local/lib/python3.7/dist-packages/fsspec/asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper /usr/local/lib/python3.7/dist-packages/fsspec/asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 /usr/local/lib/python3.7/dist-packages/fsspec/asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex /usr/local/lib/python3.7/dist-packages/fsspec/implementations/http.py in async_fetch_range(self, start, end) 535 # range request outside file 536 return b"" --> 537 r.raise_for_status() 538 if r.status == 206: 539 # partial content, as expected /usr/local/lib/python3.7/dist-packages/aiohttp/client_reqrep.py in raise_for_status(self) 1003 status=self.status, 1004 message=self.reason, -> 1005 headers=self.headers, 1006 ) 1007 ClientResponseError: 404, message='Not Found', url=URL('https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2/books_large_p1.txt') ``` Let me know if this is unrelated and I'll open a separate issue :) Environment info: ``` - `datasets` version: 1.11.1.dev0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 ```
Previous PR #2800 implemented support to stream remote tar files when passing the parameter `data_files`: they required a glob string `"*"`. However, this glob string creates an error when streaming canonical datasets (with a `join` after the `open`). This PR fixes this issue and allows streaming tar files both from: - canonical datasets scripts and - data files. This PR also adds support for compressed tar files: `.tar.gz`, `.tar.bz2`,...
401
text: Fix streaming tar files from canonical datasets Previous PR #2800 implemented support to stream remote tar files when passing the parameter `data_files`: they required a glob string `"*"`. However, this glob string creates an error when streaming canonical datasets (with a `join` after the `open`). This PR fixes this issue and allows streaming tar files both from: - canonical datasets scripts and - data files. This PR also adds support for compressed tar files: `.tar.gz`, `.tar.bz2`,... In case it's relevant for this PR, I'm finding that I cannot stream the `bookcorpus` dataset (using the `master` branch of `datasets`), which is a `.tar.bz2` file: ```python from datasets import load_dataset books_dataset_streamed = load_dataset("bookcorpus", split="train", streaming=True) # Throws a 404 HTTP error next(iter(books_dataset_streamed)) ``` The full stack trace is: ``` --------------------------------------------------------------------------- ClientResponseError Traceback (most recent call last) <ipython-input-11-5ebbbe110b13> in <module>() ----> 1 next(iter(books_dataset_streamed)) 11 frames /usr/local/lib/python3.7/dist-packages/datasets/iterable_dataset.py in __iter__(self) 339 340 def __iter__(self): --> 341 for key, example in self._iter(): 342 if self.features: 343 # we encode the example for ClassLabel feature types for example /usr/local/lib/python3.7/dist-packages/datasets/iterable_dataset.py in _iter(self) 336 else: 337 ex_iterable = self._ex_iterable --> 338 yield from ex_iterable 339 340 def __iter__(self): /usr/local/lib/python3.7/dist-packages/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 /root/.cache/huggingface/modules/datasets_modules/datasets/bookcorpus/44662c4a114441c35200992bea923b170e6f13f2f0beb7c14e43759cec498700/bookcorpus.py in _generate_examples(self, directory) 98 for txt_file in files: 99 with open(txt_file, mode="r", encoding="utf-8") as f: --> 100 for line in f: 101 yield _id, {"text": line.strip()} 102 _id += 1 /usr/local/lib/python3.7/dist-packages/fsspec/implementations/http.py in read(self, length) 496 else: 497 length = min(self.size - self.loc, length) --> 498 return super().read(length) 499 500 async def async_fetch_all(self): /usr/local/lib/python3.7/dist-packages/fsspec/spec.py in read(self, length) 1481 # don't even bother calling fetch 1482 return b"" -> 1483 out = self.cache._fetch(self.loc, self.loc + length) 1484 self.loc += len(out) 1485 return out /usr/local/lib/python3.7/dist-packages/fsspec/caching.py in _fetch(self, start, end) 374 ): 375 # First read, or extending both before and after --> 376 self.cache = self.fetcher(start, bend) 377 self.start = start 378 elif start < self.start: /usr/local/lib/python3.7/dist-packages/fsspec/asyn.py in wrapper(*args, **kwargs) 86 def wrapper(*args, **kwargs): 87 self = obj or args[0] ---> 88 return sync(self.loop, func, *args, **kwargs) 89 90 return wrapper /usr/local/lib/python3.7/dist-packages/fsspec/asyn.py in sync(loop, func, timeout, *args, **kwargs) 67 raise FSTimeoutError 68 if isinstance(result[0], BaseException): ---> 69 raise result[0] 70 return result[0] 71 /usr/local/lib/python3.7/dist-packages/fsspec/asyn.py in _runner(event, coro, result, timeout) 23 coro = asyncio.wait_for(coro, timeout=timeout) 24 try: ---> 25 result[0] = await coro 26 except Exception as ex: 27 result[0] = ex /usr/local/lib/python3.7/dist-packages/fsspec/implementations/http.py in async_fetch_range(self, start, end) 535 # range request outside file 536 return b"" --> 537 r.raise_for_status() 538 if r.status == 206: 539 # partial content, as expected /usr/local/lib/python3.7/dist-packages/aiohttp/client_reqrep.py in raise_for_status(self) 1003 status=self.status, 1004 message=self.reason, -> 1005 headers=self.headers, 1006 ) 1007 ClientResponseError: 404, message='Not Found', url=URL('https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2/books_large_p1.txt') ``` Let me know if this is unrelated and I'll open a separate issue :) Environment info: ``` - `datasets` version: 1.11.1.dev0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 ```
[ -0.28423160314559937, 0.08311241865158081, 0.026411566883325577, 0.14112305641174316, -0.05731599032878876, 0.03730035573244095, -0.13493606448173523, 0.5143747329711914, 0.013031698763370514, -0.19115693867206573, -0.15491461753845215, 0.14929135143756866, -0.14475016295909882, -0.04831613600254059, 0.18566158413887024, -0.31939899921417236, -0.1649535894393921, 0.18786773085594177, -0.17178019881248474, 0.1484169363975525, -0.010579977184534073, 0.29970377683639526, -0.021038271486759186, -0.002718977630138397, 0.1241190955042839, 0.16747258603572845, 0.19731929898262024, 0.26741349697113037, -0.3779590129852295, -0.27819859981536865, 0.3874862492084503, 0.2231946438550949, 0.42123594880104065, 0.5939051508903503, -0.0001164178247563541, 0.16585515439510345, 0.3663102388381958, -0.14911605417728424, -0.4675236940383911, -0.3965495824813843, -0.21268731355667114, 0.09994236379861832, 0.021992702037096024, -0.036825090646743774, -0.11772390455007553, -0.1218295618891716, 0.02075834572315216, -0.26980000734329224, 0.3265782594680786, 0.3718658685684204, 0.10878139734268188, 0.22023695707321167, 0.0259561724960804, -0.08695167303085327, 0.243608295917511, 0.2172345370054245, -0.17820242047309875, 0.20390991866588593, 0.0879472866654396, 0.06481212377548218, 0.020839199423789978, 0.14578182995319366, -0.23599326610565186, 0.20715948939323425, 0.3290129601955414, -0.045365944504737854, -0.09866765886545181, -0.1830340474843979, -0.10437612980604172, 0.2287013828754425, 0.6648803949356079, -0.2960602045059204, -0.4158121645450592, -0.012926384806632996, -0.1438269019126892, -0.3050493896007538, 0.14143329858779907, 0.2670377492904663, -0.21839849650859833, 0.18213924765586853, -0.07069912552833557, -0.007680153474211693, -0.3008841276168823, 0.07089599221944809, 0.04645674675703049, 0.17448978126049042, -0.0533030666410923, 0.03474678471684456, 0.09549689292907715, 0.07514502853155136, 0.20747797191143036, -0.01101476326584816, -0.18683171272277832, -0.10916305333375931, -0.1505270004272461, 0.02403063327074051, 0.19023555517196655, -0.027805842459201813, 0.04520142078399658, 0.24094197154045105, 0.4348877966403961, 0.0554354190826416, 0.03536387160420418, 0.14742545783519745, 0.39881014823913574, -0.09871901571750641, -0.008829981088638306, 0.059891678392887115, 0.301200270652771, 0.7663208842277527, 0.13539360463619232, -0.030619017779827118, -0.0915205180644989, -0.19477763772010803, -0.13266274333000183, 0.22519737482070923, 0.6351361274719238, -0.2485627681016922, -0.23585589230060577, 0.0679672434926033, -0.07122495770454407, -0.2529783844947815, 0.025522470474243164, 0.02821039780974388, -0.3443875014781952, 0.20050567388534546, 0.0800168439745903, -0.008777037262916565, -0.1256086826324463, -0.37906527519226074, -0.07779994606971741, -0.14510409533977509, -0.05066431686282158, 0.08503346145153046, 0.23217155039310455, -0.02357669174671173, 0.23172613978385925, -0.03240423649549484, 0.5720695853233337, 0.2856520712375641, 0.06191752851009369, -0.03743569552898407, 0.019309796392917633, 0.3997046649456024, 0.06462323665618896, 0.04811345785856247, 0.2865370810031891, -0.19833309948444366, -0.22098249197006226, 0.034216780215501785, -0.2982349097728729, -0.46235236525535583, -0.3232029378414154, 0.11510656774044037, -0.19605380296707153, 0.2141469568014145, -0.3671741783618927, -0.03141045197844505, 0.0350283607840538, -0.3965650796890259, -0.07851644605398178, -0.3795509934425354, 0.020068611949682236, -0.07712523639202118, 0.3711012601852417, 0.13305695354938507, -0.4841812551021576, 0.014234758913516998, -0.08237560838460922, 0.2111910581588745, 0.5011773109436035, 0.36095190048217773, -0.3477306365966797, -0.042909443378448486, -0.1633213609457016, -0.023705020546913147, 0.3921000063419342, -0.07132058590650558, -0.47785675525665283, 0.36031875014305115, -0.2654085159301758, 0.3712525963783264, 0.45584729313850403, -0.146330326795578, 0.45253100991249084, -0.3641960620880127, 0.4895375072956085, 0.280375599861145, 0.03214108943939209, -0.19154848158359528, -0.28780004382133484, 0.10152073204517365, -0.1344812512397766, 0.08665379881858826, -0.17186042666435242, 0.06024397909641266, -0.06356758624315262, 0.39928948879241943, 0.36435142159461975, 0.0554555207490921, 0.2679081857204437, 0.08706309646368027, 0.34384357929229736, 0.2246234267950058, 0.18127180635929108, 0.006784625351428986, -0.13784247636795044, 0.1326085925102234, -0.11085502803325653, 0.1197981908917427, -0.1818305104970932, -0.2801528573036194, -0.1271757185459137, -0.046142157167196274, -0.21102358400821686, -0.1260509192943573, 0.07183387130498886, 0.35555118322372437, -0.027514623478055, -0.1324223428964615, -0.2406436800956726, 0.13200148940086365, -0.17160214483737946, 0.07523579895496368, -0.2445133477449417, 0.30258405208587646, -0.12544773519039154, -0.1094210222363472, 0.11721020936965942, -0.06431704014539719, 0.11456455290317535, -0.15306349098682404, -0.0020079584792256355, 0.25484728813171387, -0.26018697023391724, -0.022831253707408905, 0.009739246219396591, 0.14043352007865906, 0.29362770915031433, -0.277416855096817, 0.018919669091701508, 0.5854362845420837, 0.09704709053039551, 0.168172687292099, -0.2502088248729706, 0.0681806206703186, -0.09370824694633484, 0.3050290048122406, 0.10527653992176056, -0.008282980881631374, 0.2775779366493225, 0.0695393979549408, -0.3901132047176361, 0.12227742373943329, 0.1691703498363495, -0.062489766627550125, -0.35401806235313416, -0.16741198301315308, -0.20867039263248444, 0.28509557247161865, 0.36148032546043396, 0.008052688091993332, -0.30177536606788635, 0.23994335532188416, -0.12914890050888062, -0.11752583086490631, 0.32568010687828064, 0.43705156445503235, 0.38262617588043213, 0.09347536414861679, 0.4076872766017914, 0.02992505207657814, -0.07164917886257172, -0.18957079946994781, 0.25161343812942505, -0.010044828057289124, -0.4241814911365509, 0.22324207425117493, -0.010925369337201118, 0.06639344245195389, -0.1381169855594635, -0.3375258445739746, 0.09978418052196503, 0.08157144486904144, -0.30086925625801086, 0.06716462224721909, -0.4643622636795044, -0.41174396872520447, -0.06787629425525665, 0.16967438161373138, 0.06547940522432327, -0.2379758059978485, -0.06706061214208603, 0.6195175051689148, -0.12718212604522705, 0.07808780670166016, 0.08137603104114532, 0.17226582765579224, 0.07691771537065506, -0.3699498474597931, -0.04265090450644493, -0.24349208176136017, -0.20885857939720154, 0.04551038518548012, 0.01706843450665474, -0.31250476837158203, 0.234415203332901, -0.38004258275032043, -0.32387852668762207, -0.48683100938796997, -0.24006739258766174, 0.05046829208731651, -0.11128751933574677, 0.14089401066303253, 0.10710171610116959, 0.34368884563446045, 0.10143837332725525, -0.40684354305267334, 0.32644087076187134, -0.10371025651693344, 0.08960133045911789, 0.07868248224258423, -0.1256398856639862, -0.022612281143665314, -0.12180504202842712, -0.19772616028785706, -0.08215966820716858, -0.5389794707298279, 0.3407667279243469, 0.10577572882175446, -0.009399637579917908, 0.11421401053667068, -0.0358797125518322, -0.044754814356565475, 0.132977694272995, 0.10014066845178604, -0.13297897577285767, -0.6664713621139526, 0.3595981299877167, -0.19561758637428284, -0.19028571248054504, 0.059089940041303635, 0.2961640954017639, 0.09073565155267715, 0.43839019536972046, -0.41308557987213135, -0.14693999290466309, -0.028573794290423393, 0.28051453828811646, 0.1144450381398201, -0.015191825106739998, 0.11525213718414307, 0.21928927302360535, -0.12453044205904007, -0.03417418152093887, -0.25721287727355957, -0.1948317289352417, 0.50189208984375, 0.39473503828048706, 0.4175509214401245, 0.3679158687591553, 0.14572982490062714, 0.595085084438324, 0.27483683824539185, 0.18560662865638733, 0.44220083951950073, 0.1453748196363449, 0.4185444116592407, -0.10701925307512283, -0.20364774763584137, 0.10713423043489456, -0.3699876368045807, -0.19323080778121948, 0.1822446882724762, 0.06759022176265717, -0.10093175619840622, -0.24485290050506592, 0.11836221814155579, -0.02413797192275524, -0.3783024251461029, 0.12853659689426422, -0.12539757788181305, 0.09316659718751907, 0.004644317552447319, -0.07747167348861694, -0.07044951617717743, -0.07541560381650925, 0.09482552111148834, 0.45203375816345215, 0.22210407257080078, 0.14645913243293762, -0.03566969186067581, 0.2740709185600281, -0.44341742992401123, 0.10863243788480759, -0.09127366542816162, 0.4051740765571594, -0.31805557012557983, -0.15473952889442444, 0.020980000495910645, 0.05835476517677307, 0.4797043800354004, -0.11643856018781662, 0.18357063829898834, 0.1992339938879013, -0.1550792008638382, -0.06260644644498825, -0.18700213730335236, -0.16383665800094604, 0.3757774531841278, -0.13237886130809784, 0.1884230375289917, -0.41640809178352356, 0.019644785672426224, 0.15730653703212738, 0.11489226669073105, 0.08396610617637634, 0.141742542386055, -0.22961439192295074, -0.4878302812576294, -0.14451494812965393, -0.1383328139781952, 0.3690297305583954, 0.137125164270401, -0.20227141678333282, 0.16748109459877014, 0.1881735473871231, 0.04790209233760834, 0.3035784363746643, -0.10428081452846527, 0.1454763412475586, 0.16550402343273163, 0.12179465591907501, 0.15502171218395233, -0.05344109982252121, 0.42936083674430847, 0.6856548190116882, -0.01839263364672661, -0.8141229152679443, -0.016382280737161636, 0.1189623773097992, 0.10330614447593689, 0.4686006009578705, 0.02511495351791382, -0.06883382052183151, 0.15618151426315308, 0.21521073579788208, -0.005895932205021381, 0.3275204002857208, 0.3033543527126312, -0.35711562633514404, -0.3960910141468048, -0.698655366897583, -0.006540752947330475, 0.0851094126701355, 0.015218980610370636, 0.5553818345069885, 0.008041545748710632, -0.18490628898143768, 0.1520984023809433, -0.03888993710279465, 0.8681176900863647, 0.12750500440597534, 0.23529267311096191, -0.05103418976068497, -0.24270372092723846, 0.5526743531227112, -0.5776702165603638, 0.2582229971885681, 0.08801834285259247, -0.2644595205783844, -0.1425335854291916, 0.13877859711647034, -0.11705852299928665, -0.11825555562973022, -0.5340563654899597, 0.32998529076576233, -0.16894808411598206, 0.3446531593799591, 0.38171878457069397, -0.09655892848968506, -0.08882420510053635, -0.17166411876678467, -0.2643616795539856, 0.08875555545091629, -0.26421254873275757, 0.009033884853124619, -0.05588945746421814, -0.4722541570663452, 0.19039729237556458, -0.274966299533844, -0.37978994846343994, 0.09478922933340073, -0.17456082999706268, -0.0707167536020279, -0.25040844082832336, -0.6821804046630859, -0.11165092885494232, 0.10674498975276947, -0.0044721439480781555, 0.0020276643335819244, -0.17674043774604797, -0.0037340670824050903, -0.1393360197544098, 0.013870607130229473, -0.18204230070114136, -0.0691007524728775, 0.035809800028800964, 0.04550551623106003, -0.134346604347229, 0.08065398782491684, -0.1464817374944687, -0.24327842891216278, 0.22124704718589783, 0.01831434667110443, 0.24522541463375092, -0.08599680662155151, 0.01735510118305683, -0.2808334529399872, -0.15496568381786346, -0.21792040765285492, 0.07492893934249878, -0.271605908870697, -0.2697813808917999, -0.29732197523117065, 0.10131452977657318, -0.17507264018058777, 0.004726529121398926, 0.4371558427810669, -0.09400031715631485, 0.2706865966320038, 0.23842571675777435, -0.05540301278233528, -0.15608352422714233, 0.007706202566623688, -0.2686777412891388, -0.06331557035446167, -0.5497917532920837, 0.15634502470493317, -0.05516983941197395, 0.025855079293251038, 0.01448859740048647, 0.1918339729309082, 0.356431782245636, -0.037156425416469574, -0.23972530663013458, -0.27178579568862915, -0.0357242077589035, 0.13874033093452454, -0.41309854388237, 0.09763327240943909, 0.17518547177314758, 0.021456018090248108, 0.15382912755012512, -0.10881833732128143, -0.27593955397605896, -0.07368239760398865, -0.1326979547739029, 0.10765302926301956, 0.16682137548923492, 0.02464819885790348, 0.11113578826189041, 0.08674849569797516, 0.008074766024947166, 0.05519802123308182, -0.20084580779075623, -0.10879115760326385, -0.16898266971111298, 0.2110055536031723, 0.10659810900688171, -0.17069512605667114, -0.0771808922290802, -0.1994161754846573, -0.16208116710186005, -0.13155312836170197, 0.13836662471294403, -0.005379822105169296, 0.1163327544927597, 0.06267184019088745, 0.33509981632232666, -0.018067970871925354, -0.25341570377349854, 0.1702268123626709, 0.022222962230443954, 0.4758293628692627, -0.08631682395935059, 0.1177627295255661, -0.18077735602855682, -0.005815528333187103, -0.16299626231193542, 0.06081631779670715, 0.17859235405921936, 0.0886983871459961, 0.5723361968994141, -0.2831442356109619, -0.023917609825730324, -0.342171847820282, 0.5418941974639893, 0.6488173604011536, 0.03376980870962143, -0.1950892060995102, 0.2504290044307709, 0.10419891029596329, -0.08080317080020905, -0.13224296271800995, 0.28259673714637756, 0.2973470389842987, -0.12371185421943665, 0.03621643781661987, 0.24087560176849365, -0.21331043541431427, 0.2722986936569214, 0.19841420650482178, 0.6729704141616821, -0.08556271344423294, 0.3804926574230194, 0.5207040905952454, 0.09404586255550385, 0.19879953563213348, -0.21119670569896698, -0.02188801020383835, 0.16924622654914856, -0.1058296412229538, -0.21649068593978882, 0.215297669172287, 0.23222848773002625, 0.010674558579921722, -0.050178952515125275, -0.29478341341018677, -0.02063952013850212, -0.031122788786888123, 0.3276510238647461, 0.1347244679927826, 0.22776846587657928, 0.4078109860420227, -0.3313038647174835, 0.043749868869781494, -0.20000123977661133, -0.06557773053646088, 0.18977108597755432, -0.09907513856887817, -0.2700743079185486, -0.11984248459339142, -0.09155596047639847, 0.0753428041934967, 0.07768861949443817, 0.40319299697875977, 0.29436713457107544, 0.00011654198169708252, 0.13875436782836914, -0.40443816781044006, -0.4093566834926605, -0.09670347720384598, 0.021691717207431793, -0.23727843165397644, 0.1409873068332672, 0.47398316860198975, -0.025692403316497803, 0.23069502413272858, 0.20144222676753998, 0.6262545585632324, 0.27269524335861206, -0.05635498836636543, -0.04081721231341362, -0.02085227146744728, -0.0807274654507637, -0.027349306270480156, 0.16088122129440308, 0.2275417447090149, -0.2735707759857178, 0.2516614496707916, 0.13208328187465668, -0.06995642930269241, 0.4144803285598755, -0.1564355343580246, -0.16190288960933685, -0.07884630560874939, 0.02691890299320221, -0.007851041853427887, -0.07022517919540405, 0.12068124115467072, -0.2695150673389435, -0.38670819997787476, -0.053304217755794525, 0.41921812295913696, -0.021803108975291252, -0.046633899211883545, 0.17041955888271332, 0.06098683923482895, 0.08153701573610306, 0.5444251298904419, 0.24954542517662048, -0.06295682489871979, -0.211869016289711, -0.17223156988620758, -0.5798694491386414, 0.1729947328567505, -0.1241411566734314, -0.15455693006515503, 0.1442587673664093, 0.1758584976196289, 0.18581610918045044, 0.23061838746070862, -0.2526683807373047, -0.6293659210205078, -0.03706156089901924, 0.08677677810192108, -0.2922402024269104, -0.2873958647251129, 0.5548690557479858, 0.14871013164520264, 0.0034414678812026978, -0.30091938376426697, 0.07970099151134491, -0.04573387652635574, 0.023870021104812622, -0.23157887160778046, -0.2565513849258423, 0.22152267396450043, -0.04098089784383774, 0.20168974995613098, 0.16300703585147858, 0.3103945255279541, -0.12877029180526733, -0.3177795708179474, -0.22384005784988403, 0.020973846316337585, -0.19897067546844482, 0.07250876724720001, -0.06923700869083405, 0.3737711012363434, -0.17031291127204895, -0.08289569616317749, -0.5861852765083313, 0.5111554265022278, -0.09793483465909958, 0.09830553084611893, -0.36886537075042725, 0.011420460417866707, -0.3028615713119507, 0.08467220515012741, -0.021538838744163513, -0.004209522157907486, -0.09898720681667328, 0.03670964390039444, -0.3680102825164795, -0.6108392477035522, 0.891553521156311, -0.4266320466995239, -0.20424938201904297, 0.13346615433692932, 0.08987834304571152, -0.06419437378644943, -0.0041688960045576096, -0.31703129410743713, 0.11272221058607101, 0.11806077510118484, -0.10943777114152908, -0.3349032402038574, 0.16032692790031433, -0.026243876665830612, 0.18708163499832153, -0.04019216075539589, 0.3014453649520874, 0.06901975721120834, -0.47620394825935364, -0.11948810517787933, -0.19287759065628052 ]
https://github.com/huggingface/datasets/pull/2806
Fix streaming tar files from canonical datasets
> @lewtun: `.tar.compression-extension` files are not supported yet. That is the objective of this PR. thanks for the context and the great work on the streaming features (right now i'm writing the streaming section of the HF course, so am acting like a beta tester πŸ˜„)
Previous PR #2800 implemented support to stream remote tar files when passing the parameter `data_files`: they required a glob string `"*"`. However, this glob string creates an error when streaming canonical datasets (with a `join` after the `open`). This PR fixes this issue and allows streaming tar files both from: - canonical datasets scripts and - data files. This PR also adds support for compressed tar files: `.tar.gz`, `.tar.bz2`,...
46
text: Fix streaming tar files from canonical datasets Previous PR #2800 implemented support to stream remote tar files when passing the parameter `data_files`: they required a glob string `"*"`. However, this glob string creates an error when streaming canonical datasets (with a `join` after the `open`). This PR fixes this issue and allows streaming tar files both from: - canonical datasets scripts and - data files. This PR also adds support for compressed tar files: `.tar.gz`, `.tar.bz2`,... > @lewtun: `.tar.compression-extension` files are not supported yet. That is the objective of this PR. thanks for the context and the great work on the streaming features (right now i'm writing the streaming section of the HF course, so am acting like a beta tester πŸ˜„)
[ -0.4799213707447052, -0.0912514477968216, 0.016936130821704865, -0.1047588586807251, 0.1040029227733612, -0.10408461093902588, -0.39712759852409363, 0.5203751921653748, -0.05098017677664757, 0.010900318622589111, -0.0682891309261322, 0.27313557267189026, 0.01965642347931862, -0.015637066215276718, 0.41442057490348816, -0.5134871006011963, 0.07799674570560455, 0.19646567106246948, -0.06712213158607483, 0.0666097104549408, -0.2031605988740921, 0.25449687242507935, 0.015268482267856598, -0.0042686983942985535, 0.14254267513751984, 0.2189343124628067, 0.10092251002788544, 0.1663815677165985, -0.300243616104126, -0.0908479392528534, 0.24808530509471893, 0.30701619386672974, 0.3762153387069702, 0.1632671356201172, -0.00011349130363669246, 0.09201180934906006, 0.40317320823669434, -0.061568520963191986, -0.08550034463405609, -0.2140990048646927, 0.050046972930431366, 0.05119594186544418, -0.024900125339627266, 0.2090398073196411, -0.16583046317100525, -0.25363656878471375, 0.05660305917263031, -0.17981640994548798, 0.25437724590301514, 0.3487301468849182, 0.17368382215499878, 0.02994624897837639, 0.20494569838047028, -0.35216203331947327, 0.2066517174243927, 0.2885967195034027, -0.173600971698761, 0.04554104059934616, 0.14780494570732117, 0.021891271695494652, 0.13292069733142853, 0.16382603347301483, -0.1978234201669693, 0.08374351263046265, 0.4398832619190216, -0.1900254637002945, -0.26869747042655945, -0.23459967970848083, 0.08482418954372406, 0.2548985481262207, 0.7148545384407043, -0.08026466518640518, -0.16128331422805786, 0.2437950074672699, -0.07405652850866318, -0.3348408341407776, 0.10753864049911499, 0.26689252257347107, -0.20370586216449738, 0.11114312708377838, -0.0019787142518907785, 0.018151720985770226, -0.3083972930908203, 0.07125627249479294, 0.1882573813199997, 0.0036966800689697266, 0.08755326271057129, -0.013749130070209503, 0.25390997529029846, 0.02129993960261345, 0.17060941457748413, -0.0534948855638504, -0.25165724754333496, -0.26212674379348755, -0.08296109735965729, 0.020584166049957275, 0.08168841898441315, 0.17869970202445984, 0.25143003463745117, 0.09980864077806473, 0.14065822958946228, 0.24450597167015076, 0.055504489690065384, 0.06513197720050812, 0.19121842086315155, -0.19312092661857605, -0.016002915799617767, 0.09006788581609726, 0.16667237877845764, 0.5018272399902344, 0.16284677386283875, -0.12356539815664291, -0.001627058140002191, -0.19329886138439178, -0.5062035918235779, 0.1565108299255371, 0.30525505542755127, -0.28065305948257446, -0.23091454803943634, 0.13711662590503693, 0.34217414259910583, -0.1537424474954605, -0.225738987326622, 0.2015569508075714, -0.19817940890789032, 0.2673755884170532, 0.014628108590841293, 0.08013308793306351, -0.18328499794006348, -0.49188801646232605, -0.14783576130867004, -0.038208283483982086, -0.19343878328800201, 0.06318258494138718, 0.0714721828699112, 0.008077166974544525, 0.1825752705335617, 0.04168642684817314, 0.6588276028633118, 0.11839167773723602, -0.014524327591061592, 0.018875543028116226, 0.21397671103477478, 0.4413302540779114, 0.006617583334445953, -0.219686821103096, 0.3110041320323944, -0.045271530747413635, -0.1860727071762085, 0.21515247225761414, -0.15929755568504333, -0.5528016090393066, -0.40689119696617126, 0.20640143752098083, -0.09587904065847397, 0.06907647848129272, -0.10490257292985916, 0.23251283168792725, -0.2596532702445984, -0.359022855758667, 0.05492019280791283, -0.29030072689056396, -0.13236406445503235, 0.0028294434305280447, 0.3065806031227112, 0.15172724425792694, -0.6728968620300293, 0.10364896059036255, -0.049309201538562775, 0.06005696579813957, 0.5016544461250305, 0.32512167096138, -0.3942694365978241, -0.29703712463378906, -0.11753399670124054, -0.18791884183883667, 0.39770665764808655, -0.011842899024486542, -0.3133263885974884, 0.4262375235557556, -0.23228605091571808, 0.0351685956120491, 0.4994374215602875, -0.0986151248216629, 0.5046840310096741, -0.2845282554626465, 0.34367701411247253, 0.0814698338508606, -0.028090642765164375, -0.10372747480869293, -0.39273011684417725, 0.028756698593497276, -0.3146440386772156, 0.04155680909752846, -0.021843742579221725, 0.1832987368106842, 0.01232660561800003, 0.3752685785293579, 0.27953577041625977, 0.1898636370897293, 0.15414893627166748, 0.08222011476755142, 0.2969802916049957, 0.19833368062973022, 0.09194500744342804, 0.1088797077536583, -0.053650304675102234, -0.1330672949552536, -0.056335002183914185, 0.05202798172831535, 0.2828258275985718, -0.42793434858322144, -0.0110852662473917, -0.05890979617834091, 0.10113442689180374, -0.338593453168869, 0.07668686658143997, 0.24879543483257294, -0.046164195984601974, -0.2138223499059677, -0.2823933959007263, 0.14804863929748535, -0.17936143279075623, -0.018808607012033463, -0.0323663130402565, 0.304546058177948, -0.31660595536231995, -0.09144626557826996, 0.06112153083086014, -0.16172683238983154, 0.13010762631893158, -0.09005051106214523, -0.017332714051008224, 0.21856221556663513, -0.26665255427360535, -0.02018153667449951, 0.04657986760139465, 0.06816518306732178, 0.34101223945617676, -0.48254191875457764, 0.09682371467351913, 0.40192535519599915, 0.035712867975234985, 0.2283676564693451, -0.2733473777770996, 0.14592771232128143, -0.13366128504276276, -0.10082729905843735, 0.04624157398939133, -0.025392765179276466, 0.23483440279960632, -0.01030895859003067, -0.053191088140010834, 0.09127448499202728, 0.18238550424575806, 0.10798674821853638, -0.3100789785385132, -0.20975172519683838, -0.43923163414001465, 0.39412420988082886, 0.2805143892765045, 0.01607581600546837, -0.4841383099555969, 0.28499001264572144, -0.03641897439956665, -0.25178638100624084, 0.2744823694229126, 0.39282700419425964, 0.47860997915267944, 0.3103654086589813, 0.2358967810869217, 0.13421101868152618, -0.06511538475751877, -0.34573736786842346, 0.24501577019691467, -0.09338456392288208, -0.42714723944664, 0.26935556530952454, -0.14618633687496185, 0.1493983268737793, -0.301936537027359, -0.1298719048500061, 0.15669222176074982, 0.07327625155448914, -0.16933827102184296, -0.11450083553791046, -0.40838494896888733, -0.8081650733947754, -0.09416058659553528, 0.46490490436553955, 0.1553187519311905, -0.22749698162078857, 0.17189502716064453, 0.2741996943950653, -0.38794657588005066, 0.15440133213996887, 0.1801588088274002, 0.3151931166648865, -0.16910633444786072, -0.03463347256183624, -0.20799484848976135, -0.08633551746606827, -0.17834314703941345, 0.11746565997600555, -0.11609654128551483, -0.19301119446754456, 0.1712758094072342, -0.22710686922073364, -0.2603307366371155, -0.5710511207580566, -0.2741468846797943, 0.16503413021564484, -0.0726257935166359, -0.01203862763941288, 0.12273695319890976, 0.1955142468214035, 0.1724640130996704, -0.48491159081459045, 0.10514003783464432, -0.3983830213546753, 0.08194312453269958, -0.008108935318887234, -0.15639936923980713, 0.00957665964961052, -0.3100578188896179, -0.13318875432014465, 0.10841227322816849, -0.5561184287071228, 0.30915510654449463, 0.01106654480099678, 0.017682936042547226, -0.030070755630731583, 0.051242537796497345, -0.1603633463382721, -0.0874931812286377, -0.15925070643424988, -0.22102105617523193, -0.5314285755157471, 0.15153515338897705, -0.2572992146015167, -0.36653369665145874, 0.05264264717698097, 0.3286362290382385, -0.26100900769233704, 0.23617738485336304, -0.22782470285892487, -0.3333130478858948, -0.005624163895845413, 0.3791806399822235, 0.07403115183115005, -0.12436310946941376, 0.22661948204040527, -0.067703977227211, -0.24013656377792358, -0.05026145651936531, -0.2024475485086441, -0.14055132865905762, 0.24738740921020508, 0.3252409100532532, 0.2550209164619446, 0.2938225567340851, 0.02734101191163063, 0.4137271046638489, 0.3408615291118622, 0.062062039971351624, 0.3882400691509247, 0.09780214726924896, 0.542150616645813, -0.2822589576244354, 0.1715783178806305, 0.33439090847969055, -0.13599202036857605, -0.14989931881427765, 0.26950398087501526, -0.021040085703134537, -0.065647192299366, -0.04290543496608734, 0.10852690041065216, 0.1853187382221222, -0.13238359987735748, 0.11034810543060303, -0.16350890696048737, 0.042922768741846085, 0.022265363484621048, -0.19105610251426697, -0.09083719551563263, -0.06209889054298401, 0.14223507046699524, 0.4915176033973694, 0.3219226896762848, 0.21756885945796967, 0.07648611068725586, 0.42926403880119324, -0.2293560802936554, 0.18444228172302246, -0.1020362451672554, 0.20342279970645905, -0.5816473960876465, -0.16410747170448303, 0.12330101430416107, 0.18587470054626465, 0.5985333323478699, -0.4435873031616211, 0.07365477830171585, 0.10678113996982574, 0.11395442485809326, 0.16783922910690308, -0.1469034105539322, -0.06906290352344513, -0.06318582594394684, -0.11066794395446777, 0.2789328098297119, -0.14760048687458038, -0.13352519273757935, 0.2708887755870819, -0.05500221252441406, 0.25746747851371765, 0.11903468519449234, -0.2214958518743515, -0.3380414545536041, -0.08180508017539978, 0.05649580433964729, 0.3857973515987396, -0.15926209092140198, -0.37072718143463135, 0.1889968067407608, 0.2935546636581421, 0.2241705060005188, 0.09967121481895447, -0.2873251438140869, 0.31349536776542664, 0.10131023824214935, -0.03356800600886345, 0.023882636800408363, -0.09451635181903839, 0.4380866289138794, 0.48422154784202576, -0.13180361688137054, -0.6490668058395386, 0.14276735484600067, 0.021847430616617203, 0.08008232712745667, 0.4464063346385956, 0.11266887933015823, 0.045877378433942795, -0.029829829931259155, 0.3201955556869507, 0.05934179574251175, 0.04815153777599335, 0.20445170998573303, -0.40821823477745056, -0.08180802315473557, -0.5810472965240479, 0.0933123454451561, 0.06582152843475342, -0.03447271138429642, 0.26077479124069214, 0.05099118873476982, 0.03926444798707962, 0.18889109790325165, 0.1945066750049591, 0.9015921354293823, 0.058547940105199814, 0.14990046620368958, -0.2561313807964325, -0.579025387763977, 0.5716863870620728, -0.5772112607955933, 0.1996079981327057, -0.050249867141246796, -0.39892467856407166, -0.12710660696029663, 0.1636764109134674, 0.10783804953098297, -0.2251792997121811, -0.6329284906387329, 0.1977057307958603, 0.0024288520216941833, 0.3038962781429291, 0.44058606028556824, -0.08047384023666382, -0.12326408177614212, -0.03488665446639061, 0.004711518995463848, 0.13048729300498962, -0.19875185191631317, 0.06421812623739243, -0.07204718887805939, -0.46723663806915283, 0.4072524607181549, -0.303705096244812, -0.4762105345726013, 0.1203133687376976, 0.03210551664233208, -0.2452833503484726, -0.08994106948375702, -0.5113976001739502, 0.04911177232861519, 0.32694748044013977, 0.24752601981163025, -0.029556091874837875, -0.12149597704410553, 0.10532279312610626, 0.01269116997718811, 0.018706470727920532, -0.2487677037715912, -0.12823326885700226, 0.037737246602773666, -0.08545942604541779, -0.15059469640254974, -0.03699733316898346, -0.23754313588142395, -0.07276910543441772, -0.07539312541484833, -0.09092490375041962, 0.17756658792495728, 0.07363995909690857, 0.11693339049816132, -0.2307606339454651, -0.25464755296707153, -0.2315484881401062, 0.13056428730487823, -0.345953106880188, -0.22504112124443054, -0.4101295471191406, 0.2144070714712143, -0.11784880608320236, -0.07677246630191803, 0.3316987454891205, -0.11159322410821915, 0.19873058795928955, -0.03534959256649017, -0.12132807075977325, -0.23351959884166718, -0.18158197402954102, -0.35715192556381226, -0.05176831781864166, -0.6301800608634949, -0.0031199147924780846, -0.06917975842952728, -0.04878058284521103, 0.36378270387649536, 0.17219778895378113, 0.23289138078689575, 0.030657820403575897, -0.14985273778438568, -0.025074712932109833, -0.0857100784778595, 0.05189573019742966, -0.6766050457954407, 0.017590750008821487, 0.20227450132369995, 0.16483862698078156, 0.3154091238975525, -0.0010181739926338196, -0.33222833275794983, -0.014441322535276413, 0.06743910163640976, 0.05203565955162048, -0.17548735439777374, -0.11969006806612015, -0.1374695599079132, 0.01988498494029045, -0.025645412504673004, 0.1071605384349823, -0.30424293875694275, -0.11497589945793152, -0.12662385404109955, 0.20163673162460327, 0.10165996104478836, -0.03135428577661514, -0.13924886286258698, -0.05714352801442146, -0.2639979422092438, 0.11933054029941559, 0.17211304605007172, -0.1136956736445427, -0.16479210555553436, 0.22318635880947113, 0.38169485330581665, 0.04329562932252884, -0.10429633408784866, 0.055673591792583466, 0.19465012848377228, 0.6727112531661987, -0.22317302227020264, -0.06288828700780869, -0.31228965520858765, -0.09188082814216614, -0.23276787996292114, 0.136164128780365, 0.2617444396018982, 0.12838716804981232, 0.49501335620880127, -0.08308111131191254, -0.031149182468652725, -0.39021924138069153, 0.5023411512374878, 0.2811100482940674, 0.07542361319065094, -0.17746031284332275, 0.26507213711738586, 0.12509626150131226, -0.14275556802749634, -0.24920876324176788, -0.02376186102628708, 0.2732641398906708, -0.16269688308238983, -0.0910564437508583, 0.6404757499694824, -0.2558671832084656, 0.36514806747436523, 0.20514658093452454, 0.6694039106369019, -0.17935900390148163, 0.36699000000953674, 0.35436853766441345, 0.17573143541812897, 0.2731359899044037, -0.2487439513206482, 0.030009327456355095, -0.006868131458759308, -0.2107473760843277, -0.03359624743461609, 0.1826218217611313, 0.21768245100975037, 0.06047038361430168, -0.05042862147092819, -0.3461924195289612, 0.34884849190711975, 0.10162602365016937, 0.13076849281787872, 0.0951584130525589, 0.29517054557800293, 0.31079572439193726, -0.1743333637714386, 0.03602162376046181, -0.10089734196662903, -0.10282981395721436, 0.1265706717967987, -0.06343057751655579, -0.196654811501503, -0.05420426279306412, -0.1366051733493805, 0.20721867680549622, 0.05619144067168236, 0.6301041841506958, 0.5437531471252441, 0.01701057329773903, 0.14230579137802124, -0.08751796185970306, -0.10211021453142166, -0.0879187360405922, 0.11654575169086456, -0.12992161512374878, 0.20431293547153473, 0.10881803184747696, -0.08628982305526733, 0.45885100960731506, 0.250760555267334, 0.5021649599075317, 0.09735538810491562, 0.0737525001168251, -0.08003462851047516, 0.04393693059682846, 0.07154467701911926, 0.07041480392217636, 0.10735350102186203, 0.4851153790950775, -0.22036220133304596, 0.25382283329963684, 0.13810911774635315, -0.07801704853773117, 0.5137162208557129, -0.14650753140449524, 0.011689417064189911, 0.03532491996884346, 0.0882028192281723, 0.2542559504508972, -0.055943820625543594, 0.13583415746688843, -0.12301894277334213, -0.33213433623313904, 0.11014280468225479, 0.32864391803741455, 0.0625263974070549, -0.07025879621505737, -0.019306518137454987, 0.08553675562143326, 0.1279894858598709, 0.4771276116371155, 0.2098631113767624, -0.22224324941635132, -0.15065906941890717, -0.39760106801986694, -0.3476792573928833, 0.40145525336265564, 0.0044092461466789246, 0.008735550567507744, 0.20435017347335815, -0.09314603358507156, 0.31318312883377075, 0.14450667798519135, -0.29529064893722534, -0.7232550978660583, 0.003966058604419231, 0.2468656748533249, -0.2680148482322693, -0.09896592795848846, 0.5318517088890076, 0.29565754532814026, -0.01769731193780899, -0.22916966676712036, 0.16389475762844086, 0.2385864108800888, 0.07693808525800705, -0.16396182775497437, -0.06205032020807266, 0.12142595648765564, -0.18172705173492432, -0.06099581718444824, 0.19203193485736847, 0.3548148572444916, -0.20714879035949707, -0.14807714521884918, -0.007299851626157761, 0.043325893580913544, -0.21297213435173035, -0.11719370633363724, -0.0824691653251648, 0.1358736902475357, -0.021512970328330994, -0.18230591714382172, -0.43516412377357483, 0.20601247251033783, -0.17027147114276886, 0.29880666732788086, -0.43972787261009216, 0.002024862915277481, -0.17381049692630768, -0.07763106375932693, 0.13186804950237274, 0.09143984317779541, 0.021782800555229187, -0.10787791013717651, -0.48153525590896606, -0.45050835609436035, 0.7540275454521179, -0.17720989882946014, -0.10172297060489655, 0.12083915621042252, 0.23211707174777985, -0.0058063119649887085, -0.1913612335920334, -0.3829914629459381, 0.01586966961622238, 0.017615195363759995, -0.1648121476173401, -0.1569911390542984, 0.1524520218372345, -0.08872997760772705, 0.09420798718929291, -0.09333504736423492, 0.2907645106315613, 0.14274132251739502, -0.2847789525985718, -0.20895610749721527, -0.31155288219451904 ]
https://github.com/huggingface/datasets/pull/2806
Fix streaming tar files from canonical datasets
@lewtun this PR fixes previous issue with xjoin: Given: ```python xjoin( "https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2", "books_large_p1.txt" ) ``` - Before it gave: `"https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2/books_large_p1.txt"` thus raising the 404 error - Now it gives: `tar://books_large_p1.txt::https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2` (this is the expected format for `fsspec`) and additionally passes the parameter `compression="bz2"`. See: https://github.com/huggingface/datasets/pull/2806/files#diff-97bb2d08db65ce3b679aefc43cadad76d053c1e58ecc315e49b80873d0fbdabeR15
Previous PR #2800 implemented support to stream remote tar files when passing the parameter `data_files`: they required a glob string `"*"`. However, this glob string creates an error when streaming canonical datasets (with a `join` after the `open`). This PR fixes this issue and allows streaming tar files both from: - canonical datasets scripts and - data files. This PR also adds support for compressed tar files: `.tar.gz`, `.tar.bz2`,...
45
text: Fix streaming tar files from canonical datasets Previous PR #2800 implemented support to stream remote tar files when passing the parameter `data_files`: they required a glob string `"*"`. However, this glob string creates an error when streaming canonical datasets (with a `join` after the `open`). This PR fixes this issue and allows streaming tar files both from: - canonical datasets scripts and - data files. This PR also adds support for compressed tar files: `.tar.gz`, `.tar.bz2`,... @lewtun this PR fixes previous issue with xjoin: Given: ```python xjoin( "https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2", "books_large_p1.txt" ) ``` - Before it gave: `"https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2/books_large_p1.txt"` thus raising the 404 error - Now it gives: `tar://books_large_p1.txt::https://storage.googleapis.com/huggingface-nlp/datasets/bookcorpus/bookcorpus.tar.bz2` (this is the expected format for `fsspec`) and additionally passes the parameter `compression="bz2"`. See: https://github.com/huggingface/datasets/pull/2806/files#diff-97bb2d08db65ce3b679aefc43cadad76d053c1e58ecc315e49b80873d0fbdabeR15
[ -0.2815250754356384, -0.09949293732643127, 0.06263142824172974, 0.09526654332876205, 0.034026287496089935, -0.20542889833450317, -0.4928087890148163, 0.4656643867492676, 0.05016780272126198, 0.01341933012008667, -0.1781662106513977, 0.10222136229276657, 0.011117413640022278, 0.30626216530799866, 0.19379089772701263, -0.21155360341072083, -0.0070790573954582214, 0.06849555671215057, -0.2249538004398346, 0.10198220610618591, -0.16948886215686798, 0.4556681215763092, 0.025401875376701355, -0.06657667458057404, -0.0923834890127182, 0.2595162093639374, 0.011537274345755577, 0.40859130024909973, -0.44422784447669983, -0.13008294999599457, 0.42582055926322937, 0.16826969385147095, 0.3164583444595337, 0.45389872789382935, -0.00011439024819992483, 0.04385200887918472, 0.3960261344909668, -0.07079003751277924, -0.07315386831760406, -0.2995985150337219, -0.04482525214552879, 0.02201361395418644, 0.09303867071866989, 0.09406795352697372, -0.21289527416229248, -0.1544230580329895, 0.058522049337625504, -0.17846955358982086, 0.4357590079307556, 0.4164724349975586, 0.17448782920837402, 0.25797244906425476, 0.14815689623355865, -0.26681068539619446, 0.26155218482017517, 0.26971495151519775, -0.21151968836784363, -0.007742859423160553, 0.4062976539134979, 0.01507880911231041, 0.31889814138412476, 0.10756085813045502, -0.11827734112739563, -0.2472250908613205, 0.2811027467250824, -0.22338102757930756, -0.24995183944702148, -0.27578696608543396, -0.0257122740149498, 0.1614667773246765, 0.46504268050193787, -0.20186907052993774, -0.3698725998401642, -0.004680447280406952, -0.05042438581585884, -0.04553527012467384, 0.21046185493469238, 0.1399475783109665, -0.17866042256355286, 0.1548513025045395, -0.08417602628469467, -0.06775779277086258, -0.17977486550807953, -0.02146221697330475, 0.3164466619491577, -0.115013986825943, -0.018721554428339005, -0.024020962417125702, 0.09053773432970047, -0.09445640444755554, -0.2181723415851593, -0.028742436319589615, -0.10831144452095032, -0.13783736526966095, -0.20371051132678986, -0.17084893584251404, 0.205054372549057, 0.2251732051372528, 0.15814170241355896, 0.21345245838165283, 0.06387858092784882, 0.08859799057245255, -0.08064169436693192, 0.15012004971504211, 0.3059583306312561, 0.02024494856595993, 0.18390145897865295, -0.22863520681858063, 0.17895396053791046, 0.43664446473121643, 0.1881762444972992, -0.10444734245538712, 0.010838018730282784, -0.3569628596305847, -0.5877754092216492, 0.21571457386016846, 0.5403895378112793, -0.34579890966415405, -0.27623215317726135, 0.10133390873670578, 0.29765790700912476, -0.04227222874760628, -0.07108338177204132, 0.23852309584617615, -0.21524707973003387, 0.26977595686912537, 0.11545482277870178, 0.06393563002347946, -0.3279916048049927, -0.4701990783214569, -0.18525701761245728, 0.0266894418746233, -0.19899161159992218, 0.1541675180196762, 0.0687827616930008, -0.07848459482192993, 0.35001060366630554, -0.04837626591324806, 0.6846272945404053, 0.10489517450332642, -0.07730133831501007, 0.139383003115654, -0.05553584545850754, 0.34290382266044617, 0.0231282040476799, -0.09446734189987183, 0.19900080561637878, -0.14542075991630554, -0.27361878752708435, -0.000810481607913971, -0.32287922501564026, -0.4920945167541504, -0.2919693887233734, 0.16315780580043793, -0.1409589946269989, 0.17122821509838104, -0.4496363699436188, 0.1325710415840149, -0.2783094644546509, -0.2865484654903412, -0.005155876278877258, -0.24021120369434357, 0.01755288615822792, -0.013248135335743427, 0.20910196006298065, 0.21200120449066162, -0.2492169886827469, 0.02002766728401184, 0.18119367957115173, 0.027321645990014076, 0.42487770318984985, 0.3924819529056549, -0.29657918214797974, -0.27760761976242065, -0.247074156999588, 0.15883439779281616, 0.27942368388175964, -0.32974162697792053, -0.2785903513431549, 0.4577001631259918, -0.2662021815776825, 0.1523289829492569, 0.49824127554893494, -0.28384876251220703, 0.3846091032028198, -0.3868193030357361, 0.35646453499794006, 0.12888453900814056, 0.1338135004043579, 0.0007755514234304428, -0.3813323676586151, -0.06633929908275604, -0.2814054489135742, 0.021920669823884964, -0.2264632135629654, 0.09702903032302856, 0.09080862998962402, 0.19916307926177979, 0.43041855096817017, 0.17434552311897278, 0.09540066123008728, 0.34406858682632446, 0.3356473743915558, 0.18266433477401733, 0.16082139313220978, -0.03644736111164093, -0.14119407534599304, -0.025629721581935883, -0.14644759893417358, 0.12338409572839737, 0.08105325698852539, -0.5679636597633362, -0.12638162076473236, -0.031141942366957664, -0.1032218486070633, -0.3002563714981079, 0.04165735840797424, 0.10249342024326324, 0.16694098711013794, -0.13487178087234497, -0.22677002847194672, -0.04415541887283325, -0.07290273904800415, 0.1609702855348587, -0.34068185091018677, 0.30064061284065247, -0.11865822225809097, -0.19990336894989014, 0.16943717002868652, 0.08094250410795212, 0.25732672214508057, -0.17467820644378662, 0.03282976150512695, 0.3738066554069519, -0.10061828047037125, 0.25260674953460693, 0.10512368381023407, 0.12682920694351196, 0.3029802739620209, -0.40469738841056824, -0.1504242867231369, 0.5645338892936707, 0.0608631893992424, 0.18117865920066833, -0.18030163645744324, 0.17931301891803741, -0.14389917254447937, 0.09563840925693512, 0.17371977865695953, -0.05004876106977463, 0.32951533794403076, -0.10341343283653259, -0.26511314511299133, 0.16521888971328735, 0.38343143463134766, 0.28141966462135315, -0.2525981068611145, -0.06985656172037125, -0.485838919878006, 0.35445287823677063, 0.3306635022163391, 0.016094248741865158, -0.4988245368003845, 0.23971500992774963, -0.009227029979228973, -0.0775216743350029, 0.3495456874370575, 0.3852027356624603, 0.40571683645248413, 0.2523134648799896, 0.22405321896076202, 0.2597913146018982, 0.0763745978474617, -0.3474429249763489, 0.35188478231430054, -0.1515519618988037, -0.4582092761993408, 0.20429134368896484, 0.004918916150927544, 0.11456066370010376, -0.29460006952285767, -0.297585129737854, -0.018202699720859528, -0.08801920711994171, -0.3070618808269501, -0.23628132045269012, -0.2980996072292328, -0.7153815627098083, -0.2904545068740845, 0.40125519037246704, 0.029166793450713158, -0.22498127818107605, 0.14515027403831482, 0.4057716131210327, -0.3928803503513336, 0.090645931661129, 0.18633434176445007, 0.21719691157341003, -0.17712387442588806, -0.25615230202674866, -0.20761846005916595, 0.054997701197862625, -0.12973898649215698, 0.006898745894432068, 0.059277214109897614, -0.1019679382443428, 0.1641993522644043, -0.25345709919929504, -0.17892667651176453, -0.5789881348609924, -0.41042372584342957, 0.11755859106779099, -0.030809611082077026, 0.08018579334020615, 0.06896017491817474, 0.13243380188941956, 0.26731622219085693, -0.5309031009674072, 0.209787517786026, -0.3129654824733734, 0.005701866000890732, -0.03040151298046112, -0.03451760113239288, -0.10949211567640305, -0.399382621049881, -0.16883578896522522, 0.04972606897354126, -0.45088282227516174, 0.4637700915336609, -0.05842014402151108, -0.0938962996006012, 0.035587288439273834, -0.05153193697333336, -0.05322607234120369, -0.10696378350257874, 0.029395947232842445, -0.16157954931259155, -0.8615254759788513, 0.22682923078536987, -0.26375555992126465, -0.3363368809223175, 0.12394024431705475, 0.25309866666793823, -0.1298002004623413, 0.2177935242652893, -0.20225128531455994, -0.38808414340019226, -0.20158320665359497, 0.23610472679138184, 0.20567665994167328, 0.10597741603851318, 0.3520980775356293, 0.08194786310195923, -0.23689255118370056, 0.013981156051158905, -0.22795385122299194, -0.11260790377855301, 0.3875732123851776, 0.41722372174263, 0.2348942756652832, 0.07021451741456985, 0.05459648743271828, 0.3497210741043091, 0.4239761233329773, 0.32933416962623596, 0.4518663287162781, 0.06970921903848648, 0.5145667791366577, -0.12487749010324478, 0.027388034388422966, 0.1687362939119339, -0.26108384132385254, -0.13689571619033813, 0.2424812912940979, 0.31395143270492554, 0.18857526779174805, -0.1424587070941925, 0.021963775157928467, -0.08983778953552246, -0.2744789123535156, -0.1265353411436081, 0.08030746877193451, 0.015235714614391327, 0.08966323733329773, -0.04106307029724121, 0.05902884528040886, -0.010486410930752754, 0.2080005705356598, 0.5389896631240845, 0.13223305344581604, 0.1163334921002388, -0.07610854506492615, 0.1262781023979187, -0.7440245151519775, 0.18955710530281067, -0.13033504784107208, 0.08196424692869186, -0.34815239906311035, -0.15736518800258636, 0.17675846815109253, 0.05563928931951523, 0.6930140256881714, -0.14480431377887726, 0.11519636958837509, -0.02717636153101921, -0.2031451016664505, -0.08897283673286438, -0.06496656686067581, 0.02324443683028221, 0.02522173896431923, 0.12860095500946045, 0.43508052825927734, -0.38048991560935974, -0.1457500159740448, -0.03580215573310852, -0.09938546270132065, 0.220536470413208, 0.06017386540770531, -0.21385805308818817, -0.5603196024894714, -0.08045483380556107, -0.1636502742767334, 0.3839349150657654, 0.06048988923430443, -0.27322688698768616, 0.2262512594461441, 0.19750875234603882, 0.101450614631176, 0.2552572786808014, -0.33237719535827637, 0.34866759181022644, 0.09818073362112045, 0.043543491512537, 0.1889098435640335, 0.05138218775391579, 0.35540321469306946, 0.7418810129165649, -0.13539555668830872, -0.6975021362304688, -0.085053451359272, 0.07701261341571808, 0.12427962571382523, 0.5822546482086182, 0.06557347625494003, 0.07752824574708939, -0.13911262154579163, 0.3390432596206665, -0.13618046045303345, 0.2844867408275604, 0.3559567630290985, -0.239313006401062, -0.01828562282025814, -0.4344390332698822, 0.08400816470384598, 0.10273027420043945, 0.0009950101375579834, 0.2958311438560486, 0.33357977867126465, -0.14320769906044006, 0.04080590605735779, -0.12441924959421158, 1.093713402748108, 0.07651946693658829, 0.2533551752567291, -0.007539041340351105, -0.357413649559021, 0.6387088894844055, -0.3555487394332886, 0.11438237875699997, 0.05353881046175957, -0.18963170051574707, -0.044613033533096313, 0.13770553469657898, 0.010473918169736862, -0.2898828387260437, -0.5085435509681702, 0.35673895478248596, 0.009029239416122437, 0.11788935959339142, 0.22957709431648254, 0.09064973890781403, -0.2658108174800873, -0.0837278962135315, -0.2732122838497162, 0.11412572860717773, -0.04094155132770538, 0.049982015043497086, -0.06406509876251221, -0.4710286259651184, 0.26410484313964844, -0.442022442817688, -0.34758663177490234, 0.2536293864250183, -0.04133112356066704, -0.14095774292945862, 0.1281137466430664, -0.395892858505249, 0.04899469390511513, 0.3707869350910187, 0.04543275386095047, -0.09622588753700256, -0.33723628520965576, 0.13014739751815796, -0.09870339184999466, 0.010246844962239265, -0.15699292719364166, -0.2085481584072113, -0.016338737681508064, 0.010767299681901932, -0.03677920252084732, 0.02898986265063286, -0.1882469654083252, -0.06432624906301498, -0.06299903243780136, -0.06659120321273804, -0.13794434070587158, -0.021745042875409126, -0.07985267043113708, -0.08291919529438019, -0.12836650013923645, -0.20140837132930756, 0.10201627016067505, -0.3040047287940979, -0.23773574829101562, -0.29486188292503357, 0.19751054048538208, -0.17154434323310852, -0.0487205944955349, 0.36151763796806335, -0.07288236171007156, 0.12175209820270538, 0.25429826974868774, 0.0072337910532951355, -0.19617107510566711, -0.07330996543169022, -0.31516405940055847, 0.1437976062297821, -0.47349563241004944, 0.13706114888191223, -0.035667914897203445, -0.01836540549993515, 0.29466357827186584, 0.42688578367233276, 0.22770211100578308, -0.11011014133691788, 0.0020848363637924194, -0.09467718750238419, -0.00785177294164896, 0.27207037806510925, -0.4242791533470154, 0.17525532841682434, 0.21575301885604858, 0.38920146226882935, 0.14743535220623016, -0.20788708329200745, -0.31898871064186096, 0.16377709805965424, -0.1189066544175148, 0.07045595347881317, 0.18229448795318604, 0.05330711603164673, 0.14215393364429474, -0.010914233513176441, -0.060872599482536316, 0.2305120825767517, -0.282653272151947, -0.07615083456039429, -0.14208146929740906, 0.16896666586399078, 0.11829272657632828, -0.0875425860285759, -0.08640339225530624, -0.09623163193464279, -0.08958977460861206, -0.005637322552502155, 0.04420333728194237, 0.1258051097393036, -0.03661400079727173, 0.006323055364191532, 0.11453243345022202, -0.04115791618824005, -0.11296039074659348, 0.1933678239583969, 0.09685725718736649, 0.659834623336792, -0.2112051248550415, -0.028671108186244965, -0.518295407295227, -0.1023823618888855, -0.00019532798614818603, 0.08592932671308517, 0.2655048370361328, 0.223399817943573, 0.356926828622818, -0.09505195915699005, -0.09383490681648254, -0.15147794783115387, 0.6707425117492676, 0.3647933304309845, -0.036176618188619614, -0.017722150310873985, 0.3273840546607971, 0.11708153784275055, -0.10831811279058456, -0.12448351085186005, 0.21765883266925812, 0.34738537669181824, -0.17940457165241241, -0.11081541329622269, 0.32756730914115906, -0.13538652658462524, 0.41556215286254883, 0.16832241415977478, 0.48470646142959595, 0.11565878242254257, 0.38651910424232483, 0.0244891457259655, 0.13115465641021729, 0.15927256643772125, -0.17603933811187744, 0.18155157566070557, 0.07706775516271591, -0.08603747189044952, -0.2201855182647705, 0.39142975211143494, -0.05569792538881302, 0.09602902829647064, -0.20015698671340942, -0.31480690836906433, 0.2379256635904312, 0.04231589287519455, 0.12034271657466888, 0.0745907723903656, 0.18748652935028076, 0.5714380741119385, -0.4213040769100189, 0.04702484607696533, -0.10004112869501114, 0.08290731906890869, 0.12262248247861862, -0.11683401465415955, 0.015737317502498627, -0.10776805877685547, -0.034502170979976654, 0.22707319259643555, 0.07298029959201813, 0.3640344738960266, 0.5261294841766357, -0.1451428085565567, 0.13330022990703583, -0.413093626499176, -0.27847933769226074, -0.10992393642663956, 0.12756024301052094, -0.1309232860803604, 0.17621921002864838, 0.19832594692707062, -0.07346287369728088, 0.36303287744522095, 0.30108749866485596, 0.6479081511497498, 0.1139620989561081, -0.01012367568910122, -0.15001031756401062, -0.013744726777076721, 0.11175023019313812, 0.05173679441213608, 0.17429664731025696, 0.2723731994628906, -0.08730846643447876, 0.3214758634567261, 0.1304398775100708, -0.12150712311267853, 0.10903075337409973, -0.16679508984088898, 0.09374478459358215, -0.11075641214847565, 0.005806878209114075, -0.10265082120895386, 0.05138371139764786, -0.07794339209794998, -0.16869604587554932, -0.5839167237281799, -0.08020038157701492, 0.2558653652667999, 0.040252067148685455, -0.012963484972715378, -0.07821016013622284, 0.08150133490562439, 0.16643108427524567, 0.3855355679988861, 0.3851071298122406, -0.009875454008579254, -0.1611064076423645, -0.4276432394981384, -0.42431214451789856, 0.2678454518318176, 0.08880814909934998, -0.06595694273710251, 0.017474565654993057, 0.11519336700439453, 0.07939254492521286, 0.025448128581047058, -0.24665148556232452, -0.44472572207450867, 0.10383106768131256, -0.0245983749628067, -0.17899420857429504, 0.07927104830741882, 0.415307879447937, 0.03651246428489685, 0.18299460411071777, -0.21349945664405823, 0.13501985371112823, 0.0017776666209101677, 0.01109999418258667, -0.13221535086631775, 0.057335808873176575, -0.144151508808136, -0.34139952063560486, -0.020955204963684082, 0.19324666261672974, 0.26635777950286865, -0.2581758201122284, -0.32619184255599976, -0.04079594835639, -0.11748336255550385, -0.23254509270191193, -0.055686481297016144, -0.12003862857818604, 0.1720970869064331, -0.22493486106395721, 0.004587195813655853, -0.43232980370521545, 0.37266024947166443, -0.053792666643857956, 0.0111058559268713, -0.3989012837409973, 0.07875631749629974, -0.2927337884902954, 0.021261250600218773, -0.03849693015217781, 0.2653703987598419, -0.07521212100982666, -0.01975412108004093, -0.22496047616004944, -0.5439144372940063, 0.860162079334259, -0.36085090041160583, -0.08248898386955261, 0.027538590133190155, 0.2741999626159668, 0.04331174120306969, -0.12818005681037903, -0.39410191774368286, 0.12584978342056274, -0.13475865125656128, 0.06955850124359131, -0.2646830677986145, 0.18600516021251678, -0.21501846611499786, -0.028747286647558212, -0.022146236151456833, 0.27280712127685547, 0.263972669839859, -0.27459996938705444, 0.18622301518917084, -0.2500893473625183 ]
https://github.com/huggingface/datasets/pull/2803
add stack exchange
Hi ! Merging this one since it's all good :) However I think it would also be better to actually rename it `the_pile_stack_exchange` to make things clearer and to avoid name collisions in the future. I would like to do the same for `books3` as well. If you don't mind I'll open a PR to do the renaming
stack exchange is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. I also change default `timeout` to 100 seconds instead of 10 seconds, otherwise I keep getting read time out when downloading source data of stack exchange and cc100 dataset. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
58
text: add stack exchange stack exchange is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. I also change default `timeout` to 100 seconds instead of 10 seconds, otherwise I keep getting read time out when downloading source data of stack exchange and cc100 dataset. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 Hi ! Merging this one since it's all good :) However I think it would also be better to actually rename it `the_pile_stack_exchange` to make things clearer and to avoid name collisions in the future. I would like to do the same for `books3` as well. If you don't mind I'll open a PR to do the renaming
[ 0.07217182219028473, -0.04472663253545761, -0.1346130669116974, 0.31287527084350586, 0.0018122419714927673, 0.2893993854522705, 0.14531417191028595, 0.004467649385333061, -0.041669413447380066, -0.08001801371574402, -0.23614200949668884, 0.3539382219314575, 0.369901567697525, 0.0852862000465393, -0.10920185595750809, 0.3434946835041046, 0.24493339657783508, 0.013419173657894135, 0.07463380694389343, -0.09589464962482452, -0.22660383582115173, -0.054460324347019196, -0.09788365662097931, -0.16715504229068756, 0.11662978678941727, -0.09892196208238602, -0.3085256516933441, 0.1489068865776062, -0.3205386698246002, -0.10185528546571732, 0.24434305727481842, 0.5171746611595154, -0.17101965844631195, 0.4666109085083008, -0.00010984866094077006, -0.21296925842761993, 0.17332860827445984, 0.04179263859987259, -0.3289433717727661, -0.21111999452114105, -0.5031998753547668, -0.24876536428928375, 0.11923332512378693, -0.19796404242515564, 0.1353968381881714, -0.22253094613552094, 0.027906697243452072, -0.2141394019126892, 0.04683646559715271, 0.057804156094789505, 0.1936415135860443, 0.1019606664776802, 0.2721426486968994, -0.16150319576263428, 0.43576303124427795, 0.37231600284576416, -0.13138531148433685, 0.31755417585372925, 0.2976922392845154, 0.3098210394382477, 0.3325631320476532, 0.15685084462165833, 0.17886437475681305, -0.175694078207016, 0.6022085547447205, 0.19715319573879242, 0.26708710193634033, -0.3337849974632263, -0.06333182752132416, 0.19362717866897583, 0.5922015905380249, -0.3001616895198822, -0.24200667440891266, -0.02532556653022766, 0.27628886699676514, -0.24874049425125122, 0.16331583261489868, 0.18209409713745117, 0.09226268529891968, -0.00250423327088356, 0.2800426483154297, -0.10057006776332855, -0.13187584280967712, 0.31697794795036316, 0.1502738744020462, 0.12811991572380066, 0.03491071239113808, 0.1371781975030899, 0.15156057476997375, 0.023523345589637756, 0.41004782915115356, -0.10605818033218384, -0.10941462218761444, -0.1750628799200058, -0.30186352133750916, -0.08824682235717773, -0.12410875409841537, 0.21302607655525208, 0.010523747652769089, -0.025317974388599396, 0.038870133459568024, -0.0076398178935050964, 0.2992102801799774, 0.12887758016586304, 0.4194054901599884, 0.020675484091043472, 0.11779524385929108, -0.25613200664520264, -0.027229689061641693, 0.13440482318401337, 0.228139728307724, -0.09384579211473465, -0.1680498868227005, 0.1620084047317505, -0.2813636064529419, -0.3682636320590973, 0.20329917967319489, -0.06077055260539055, 0.2812255918979645, -0.1697709709405899, 0.23746541142463684, -0.1330944448709488, -0.09104268997907639, 0.23096302151679993, -0.06280818581581116, 0.12214188277721405, -0.004244353622198105, 0.12918439507484436, 0.15702654421329498, -0.031569015234708786, -0.12229611724615097, 0.1364104300737381, -0.4188949167728424, -0.2870762050151825, -0.019595207646489143, -0.3685174286365509, 0.11260191351175308, 0.010345564223825932, 0.3477921485900879, -0.009235657751560211, -0.050711922347545624, -0.1598108857870102, 0.3508487045764923, 0.004292678087949753, 0.1967959851026535, 0.1854439228773117, 0.01977006532251835, 0.1619391292333603, -0.1575966477394104, -0.005442813038825989, -0.16145935654640198, -0.3420349359512329, -0.7415140867233276, 0.24417608976364136, 0.2753564119338989, 0.07993946224451065, -0.32102689146995544, -0.01711401715874672, 0.12269598245620728, -0.14951921999454498, 0.16045545041561127, 0.11754639446735382, 0.2592511773109436, -0.10000117868185043, -0.07173385471105576, -0.10996510088443756, -0.6383031010627747, 0.04373696446418762, -0.755668580532074, -0.30250468850135803, -0.014521263539791107, 0.22181116044521332, -0.2731946110725403, 0.05229273810982704, -0.14263397455215454, -0.1786017119884491, 0.34885093569755554, -0.16562269628047943, -0.49814286828041077, -0.013210021890699863, -0.14604732394218445, -0.11707263439893723, 0.01088879257440567, 0.23804081976413727, -0.012796323746442795, -0.3257784843444824, 0.11899228394031525, 0.15161727368831635, -0.25422194600105286, -0.2050086408853531, -0.2632896900177002, -0.14037011563777924, -0.08147072792053223, 0.0036697611212730408, -0.18738500773906708, -0.16888973116874695, 0.14879624545574188, -0.14993809163570404, 0.11426252871751785, 0.031130576506257057, 0.2527276873588562, 0.02983149141073227, 0.4350254535675049, 0.24618583917617798, -0.07460390031337738, 0.34582531452178955, -0.4543420076370239, -0.05814391002058983, -0.05041704326868057, 0.40796321630477905, 0.2689847946166992, -0.2460622936487198, -0.39184752106666565, -0.11688549071550369, -0.05888626351952553, -0.10559046268463135, 0.14139050245285034, 0.048006027936935425, -0.1504358947277069, -0.38181939721107483, -0.33236491680145264, 0.29254981875419617, -0.20813614130020142, 0.27332603931427, -0.6955755352973938, -0.0272371806204319, -0.33265751600265503, 0.2582663297653198, -0.1426863968372345, 0.21490713953971863, -0.15557259321212769, -0.007669731043279171, 0.1045830249786377, 0.2587176561355591, -0.5193193554878235, 0.15736527740955353, -0.01295585185289383, 0.09960611164569855, 0.21066775918006897, -0.3078053891658783, 0.1899242103099823, -0.5032655596733093, 0.24082361161708832, -0.23562252521514893, -0.17295026779174805, -0.0465560108423233, 0.07957026362419128, 0.25042641162872314, 0.000039480626583099365, -0.24787180125713348, -0.1452927589416504, -0.12495465576648712, 0.0022934339940547943, -0.25550204515457153, -0.15047629177570343, 0.18684373795986176, 0.27519136667251587, 0.1638534963130951, 0.3096334934234619, 0.2514330744743347, 0.12049980461597443, 0.05297592654824257, -0.08631167560815811, 0.3277396261692047, -0.2605479955673218, -0.5039879083633423, -0.1713051050901413, 0.03157496824860573, 0.24006953835487366, 0.32069090008735657, 0.08548961579799652, 0.2750438153743744, 0.3463686406612396, -0.07773198187351227, 0.2962433397769928, 0.42342907190322876, 0.031029315665364265, -0.13734224438667297, 0.36045488715171814, -0.001412658952176571, 0.016557861119508743, -0.2670629918575287, 0.24205318093299866, 0.15700405836105347, -0.15886014699935913, -0.25862061977386475, 0.02312636189162731, -0.4300137758255005, 0.15399618446826935, 0.06537487357854843, -0.1754496991634369, -0.6089913845062256, -0.06229560077190399, 0.20072387158870697, -0.22951731085777283, 0.1004428043961525, 0.03319822624325752, 0.21318817138671875, -0.18595777451992035, 0.2249092310667038, -0.18841080367565155, -0.392890065908432, -0.08389770984649658, 0.18711574375629425, 0.09371498972177505, 0.2733718752861023, 0.541713297367096, -0.1877707988023758, -0.06180271878838539, -0.27876073122024536, -0.3682189881801605, 0.26139238476753235, -0.3398944139480591, 0.10868667811155319, 0.10222150385379791, 0.0793614313006401, -0.09490591287612915, -0.4956226944923401, -0.046851929277181625, -0.18136188387870789, -0.24281544983386993, -0.3170640468597412, -0.13651703298091888, -0.10228816419839859, -0.025425653904676437, -0.7042769193649292, -0.17969951033592224, -0.28734394907951355, 0.15841931104660034, -0.2569037973880768, -0.012072175741195679, -0.0816422626376152, -0.1107180267572403, 0.15404635667800903, -0.06232183054089546, -0.1705886721611023, -0.2898539900779724, -0.5077193379402161, 0.11254093796014786, -0.18209122121334076, -0.08603569865226746, 0.32146191596984863, -0.2549620270729065, 0.28248104453086853, -0.20611272752285004, -0.0939750149846077, -0.08310627937316895, -0.07327939569950104, -0.12308838963508606, 0.039913177490234375, 0.24312303960323334, 0.2993599772453308, -0.04347020015120506, -0.28712084889411926, 0.08371689170598984, -0.27088338136672974, 0.11646424978971481, 0.48434314131736755, 0.3858368396759033, -0.048682354390621185, 0.3331941068172455, -0.2037017047405243, 0.5295076966285706, 0.09297308325767517, 0.1063278466463089, 0.06352736800909042, 0.26397523283958435, 0.3345796465873718, -0.05979394167661667, -0.3468365967273712, 0.23965677618980408, 0.022435978055000305, 0.012482333928346634, 0.3997001051902771, 0.006875349208712578, -0.18679951131343842, -0.21058276295661926, 0.02103518694639206, -0.44919657707214355, -0.19663886725902557, 0.023093003779649734, 0.09252022206783295, -0.07733655720949173, 0.1230054497718811, -0.5108407735824585, -0.0963297188282013, -0.3481350541114807, -0.19013439118862152, 0.24334828555583954, -0.2648102045059204, -0.19675695896148682, -0.558846116065979, 0.36093005537986755, -0.36851900815963745, 0.3315553069114685, 0.036966241896152496, -0.055948831140995026, 0.13266903162002563, -0.18422743678092957, 0.1337468922138214, 0.3063746690750122, 0.5498853921890259, -0.2379753738641739, -0.41342437267303467, 0.1654452234506607, 0.34297510981559753, -0.25636526942253113, 0.05748961493372917, -0.197050079703331, -0.34353625774383545, 0.5895265936851501, -0.2643580734729767, -0.4493783712387085, 0.006899559870362282, 0.3849034905433655, 0.10313054919242859, 0.21089696884155273, -0.05775366351008415, -0.01439528539776802, -0.35948994755744934, -0.36397215723991394, 0.061880603432655334, 0.20725281536579132, 0.020693762227892876, 0.0000569961266592145, -0.08753661066293716, 0.23491068184375763, -0.07119034975767136, 0.3856189250946045, 0.029476914554834366, 0.13399791717529297, 0.15315313637256622, 0.13978229463100433, -0.032956548035144806, 0.2871553301811218, 0.7577303051948547, 0.6180406808853149, -0.08255109190940857, -0.2791302502155304, 0.2225746214389801, -0.44978079199790955, 0.5338445901870728, 0.3236179053783417, 0.2879966199398041, 0.14595291018486023, -0.1840316355228424, 0.246207594871521, 0.26922842860221863, 0.22530966997146606, 0.07950197160243988, -0.20616157352924347, -0.6806355118751526, -0.18115903437137604, 0.10151797533035278, 0.08858677744865417, -0.11932380497455597, 0.3114423453807831, 0.350949764251709, -0.14190877974033356, 0.34369218349456787, -0.01871984452009201, 1.4208672046661377, 0.05637887865304947, 0.020727332681417465, 0.02088193967938423, -0.08931522071361542, 0.5205762386322021, -0.5417235493659973, 0.051973503082990646, -0.17654623091220856, -0.272682249546051, 0.03589910268783569, -0.11778190732002258, -0.027263663709163666, 0.43297266960144043, -0.19532789289951324, 0.25454893708229065, -0.077976755797863, 0.07954268157482147, -0.14301572740077972, 0.5119258165359497, -0.016568498685956, -0.4138680100440979, -0.03626982495188713, 0.10277427732944489, 0.2527775168418884, -0.008154306560754776, -0.08684194833040237, -0.09992878139019012, -0.26759523153305054, -0.009363071992993355, -0.13949915766716003, -0.05939542129635811, -0.029853790998458862, -0.07126336544752121, -0.08900904655456543, -0.19982683658599854, 0.36653992533683777, -0.05487668141722679, 0.600823163986206, 0.10565994679927826, 0.06440077722072601, 0.16545496881008148, 0.22603291273117065, -0.009921962395310402, -0.006466577760875225, -0.3551894724369049, 0.20664933323860168, -0.014629671350121498, -0.20329436659812927, -0.009977445006370544, -0.038283705711364746, -0.2023012936115265, -0.11353384703397751, 0.10699067264795303, 0.2936916649341583, -0.3179510235786438, -0.09647220373153687, 0.2902173399925232, -0.013797536492347717, -0.3161002993583679, 0.10850125551223755, 0.057043351233005524, -0.012001828290522099, -0.052644677460193634, 0.13112735748291016, -0.23065799474716187, -0.2733032703399658, 0.14922040700912476, 0.11097018420696259, -0.49822115898132324, 0.16276396811008453, 0.3712059259414673, -0.15176361799240112, -0.23197218775749207, -0.05206891521811485, 0.2509109079837799, -0.4353621006011963, -0.14279542863368988, 0.13607975840568542, -0.10762324929237366, -0.08041168004274368, 0.21820619702339172, 0.31920039653778076, 0.6560925245285034, 0.09594999253749847, -0.14811073243618011, -0.176529198884964, 0.24911876022815704, 0.016758102923631668, 0.27856260538101196, -0.0477118119597435, 0.10399608314037323, 0.14769159257411957, 0.23731662333011627, -0.3746058940887451, 0.2125626802444458, -0.27673545479774475, 0.1369365006685257, 0.3234058916568756, -0.10148680955171585, 0.18922904133796692, -0.323618620634079, 0.1850232630968094, -0.10411520302295685, -0.202324777841568, -0.2091321349143982, 0.040300410240888596, 0.175309419631958, -0.006113419309258461, -0.14895017445087433, 0.06826678663492203, -0.05954586714506149, -0.06154299154877663, -0.04523400589823723, 0.2440025508403778, -0.005290865898132324, 0.18029260635375977, -0.13976021111011505, 0.0625813752412796, 0.15512987971305847, -0.05630636215209961, 0.14268913865089417, 0.15941110253334045, 0.13648195564746857, 0.12400366365909576, -0.01307501271367073, -0.11807356029748917, -0.11379151046276093, 0.15053944289684296, 0.18966154754161835, 0.18265485763549805, 0.17859512567520142, 0.09106817841529846, 0.14445839822292328, -0.23509618639945984, 0.4106195867061615, -0.012919226661324501, 0.16627034544944763, -0.07052277773618698, -0.08098577708005905, 0.11344870179891586, 0.25824281573295593, -0.31211182475090027, 0.1423909068107605, 0.1725606918334961, -0.049802638590335846, 0.09971696138381958, 0.13342095911502838, 0.26069220900535583, 0.05418133735656738, -0.25035232305526733, 0.1923755705356598, 0.1833495795726776, -0.1815972924232483, 0.3844062089920044, 0.10035961866378784, -0.16273827850818634, -0.04041890427470207, 0.15515555441379547, 0.16318286955356598, 0.1921328753232956, -0.032897934317588806, 0.09401524066925049, 0.3549281358718872, 0.18621420860290527, 0.5074800848960876, 0.32485178112983704, -0.2650878429412842, 0.2517332434654236, 0.4662211835384369, 0.12057219445705414, 0.05670985206961632, 0.09882593899965286, 0.03347272798418999, 0.1015724241733551, 0.011158416047692299, -0.14584770798683167, 0.2305750846862793, 0.07391569018363953, 0.1276201456785202, 0.3027104437351227, -0.31625795364379883, -0.010458528995513916, -0.26321741938591003, 0.004757475107908249, -0.44707781076431274, -0.027328789234161377, 0.19624343514442444, 0.03448028117418289, -0.340800017118454, 0.13187275826931, 0.19460362195968628, 0.21228332817554474, -0.15961621701717377, 0.08719636499881744, 0.08790081739425659, -0.19565549492835999, 0.10505856573581696, 0.3081947863101959, 0.1595359444618225, 0.07147401571273804, 0.09178715944290161, 0.28736016154289246, 0.35048696398735046, -0.261390745639801, -0.03728995472192764, -0.0889449492096901, 0.22738906741142273, 0.24759699404239655, 0.12718239426612854, 0.18909522891044617, -0.2198968082666397, -0.3540506660938263, -0.003304671496152878, 0.1938246339559555, -0.2979729473590851, 0.25789862871170044, -0.023583874106407166, -0.2572372257709503, 0.009072614833712578, 0.2067609578371048, -0.39127683639526367, -0.24373339116573334, 0.5029146075248718, -0.33179694414138794, 0.059760577976703644, -0.11968052387237549, 0.09525313228368759, -0.08807435631752014, 0.3028479516506195, 0.3714992105960846, -0.3662896752357483, -0.24520418047904968, -0.29080256819725037, -0.41013896465301514, 0.2300630807876587, 0.053805653005838394, 0.23264196515083313, -0.11171577870845795, 0.1932048499584198, 0.38540950417518616, 0.11180458217859268, 0.16199147701263428, -0.15337145328521729, -0.2984175384044647, 0.14388558268547058, -0.2927562892436981, 0.04363787919282913, -0.017271481454372406, 0.012104086577892303, 0.2739405632019043, 0.06711765378713608, -0.12651412189006805, 0.2408744990825653, -0.03425271436572075, -0.30859410762786865, 0.020169444382190704, 0.4253288209438324, -0.19205383956432343, 0.26371508836746216, 0.03103185072541237, 0.20348915457725525, -0.019653845578432083, -0.05606511980295181, 0.029373526573181152, -0.2630024552345276, -0.017239490523934364, 0.7346857786178589, 0.22785504162311554, 0.12644478678703308, -0.10993707180023193, -0.09700891375541687, 0.004400759469717741, -0.11710276454687119, 0.040041469037532806, 0.03172491490840912, -0.46397674083709717, 0.07839076220989227, 0.15296494960784912, 0.18421196937561035, 0.21881286799907684, -0.08996374160051346, 0.19447465240955353, -0.032877564430236816, -0.16145911812782288, -0.43971189856529236, 0.2979118227958679, 0.159828782081604, -0.19750292599201202, -0.09995926916599274, 0.2914559841156006, -0.0708434209227562, 0.00395018607378006, -0.36659231781959534, 0.14849066734313965, 0.30750373005867004, -0.0951051265001297, -0.20107373595237732, -0.01871773973107338, -0.1244632750749588, 0.16443465650081635, -0.31806665658950806, 0.4109463393688202, -0.05418924242258072, -0.3656458556652069, -0.27683237195014954, -0.28359007835388184 ]
https://github.com/huggingface/datasets/pull/2803
add stack exchange
> If you don't mind I'll open a PR to do the renaming @lhoestq That will be nice !!
stack exchange is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. I also change default `timeout` to 100 seconds instead of 10 seconds, otherwise I keep getting read time out when downloading source data of stack exchange and cc100 dataset. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
19
text: add stack exchange stack exchange is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. I also change default `timeout` to 100 seconds instead of 10 seconds, otherwise I keep getting read time out when downloading source data of stack exchange and cc100 dataset. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 > If you don't mind I'll open a PR to do the renaming @lhoestq That will be nice !!
[ -0.05440352112054825, -0.011028923094272614, -0.09146064519882202, 0.3453267812728882, 0.1297341138124466, 0.179916650056839, 0.04511185735464096, -0.06342656910419464, -0.048213109374046326, 0.03555912524461746, -0.26618847250938416, 0.3123493492603302, 0.3632562458515167, 0.11432874947786331, -0.09078842401504517, 0.2281680405139923, 0.004977971315383911, 0.0805271565914154, -0.09472228586673737, -0.17914515733718872, -0.1742744892835617, -0.12734128534793854, -0.19802072644233704, -0.15799152851104736, 0.0016418269369751215, -0.15404513478279114, -0.27401530742645264, 0.08879333734512329, -0.31283241510391235, -0.11089140176773071, 0.2057083249092102, 0.4143052399158478, -0.1287178248167038, 0.36129412055015564, -0.00011043549602618441, -0.20634020864963531, 0.22762413322925568, -0.04698796942830086, -0.29028376936912537, -0.14566008746623993, -0.5538224577903748, -0.23644794523715973, 0.15055198967456818, -0.1623804271221161, 0.03519607335329056, -0.21289515495300293, 0.11835958063602448, -0.33633825182914734, 0.20299549400806427, 0.14186003804206848, 0.19015514850616455, 0.25757601857185364, 0.2929593324661255, -0.24776531755924225, 0.3379725217819214, 0.2348039448261261, -0.1515515148639679, 0.3359183371067047, 0.29029354453086853, 0.21173308789730072, 0.1697445511817932, 0.03496966511011124, 0.3130830228328705, -0.15383824706077576, 0.5184151530265808, 0.1440175473690033, 0.29297852516174316, -0.476433664560318, 0.044462189078330994, 0.25074124336242676, 0.6609445214271545, -0.17463231086730957, -0.21327091753482819, 0.010963104665279388, 0.22796228528022766, -0.21678830683231354, 0.3156780004501343, 0.2846689522266388, 0.028146523982286453, 0.1412263661623001, 0.21570828557014465, -0.0578853115439415, -0.15303602814674377, 0.30001044273376465, 0.016616813838481903, -0.06801678240299225, 0.04304880648851395, 0.08387716859579086, 0.03637804836034775, 0.15132802724838257, 0.36836639046669006, -0.08019690215587616, -0.09245236217975616, -0.12128578126430511, -0.39734947681427, -0.014499194920063019, 0.07032439857721329, 0.29168689250946045, 0.01474941149353981, -0.09486182034015656, 0.12462067604064941, 0.05431479960680008, 0.18684759736061096, 0.06751828640699387, 0.41895315051078796, 0.10349144041538239, -0.006740748882293701, -0.20443075895309448, 0.061077844351530075, -0.056905247271060944, 0.17465810477733612, -0.1181621327996254, -0.12218096852302551, 0.11070641130208969, -0.29955506324768066, -0.2536047697067261, 0.19127529859542847, -0.0853644385933876, 0.21861444413661957, -0.18519073724746704, 0.24509352445602417, -0.10662062466144562, -0.06152230128645897, 0.2912108898162842, -0.07493140548467636, 0.12192165851593018, -0.11597003042697906, 0.2087365984916687, 0.11351434141397476, -0.13695751130580902, -0.2135036736726761, 0.2409151941537857, -0.5018720030784607, -0.34864866733551025, -0.049157556146383286, -0.38438838720321655, 0.12854433059692383, -0.002536386251449585, 0.36691033840179443, 0.0414721742272377, 0.010342435911297798, -0.08973097801208496, 0.23582512140274048, 0.08371146768331528, 0.13479402661323547, 0.25203558802604675, -0.0646258145570755, 0.25484371185302734, -0.1255975365638733, 0.09243325144052505, -0.21030724048614502, -0.4293469786643982, -0.6530081629753113, 0.22947396337985992, 0.22586974501609802, 0.1163947805762291, -0.2612992227077484, -0.12052419781684875, 0.07034739851951599, -0.08935381472110748, 0.12500090897083282, 0.06721353530883789, 0.265667200088501, -0.060220248997211456, -0.06028982996940613, -0.007596954703330994, -0.7430741190910339, 0.11490972340106964, -0.6365207433700562, -0.2876136600971222, 0.19178801774978638, 0.24742791056632996, -0.34876036643981934, 0.07973401248455048, -0.2035215049982071, -0.2605787217617035, 0.45665714144706726, -0.18447482585906982, -0.5508399605751038, 0.04309437423944473, -0.25573068857192993, -0.18514131009578705, -0.08456843346357346, 0.2732469141483307, 0.15204910933971405, -0.22860577702522278, -0.0029338374733924866, 0.2271522730588913, -0.2962827682495117, -0.15089760720729828, -0.34010785818099976, -0.2799074053764343, -0.11739782989025116, -0.034620434045791626, -0.08229652047157288, 0.05905935540795326, 0.16483688354492188, -0.10693522542715073, 0.11768253892660141, 0.06254210323095322, 0.27915331721305847, -0.06745915114879608, 0.3021935522556305, 0.1486627757549286, -0.0885690376162529, 0.3145919740200043, -0.436301589012146, 0.022996336221694946, -0.1560043841600418, 0.4559646546840668, 0.18655246496200562, -0.18696220219135284, -0.4072977602481842, -0.08849988877773285, -0.07044875621795654, -0.0813731700181961, 0.1264641135931015, 0.06935576349496841, -0.029430663213133812, -0.31655076146125793, -0.21853624284267426, 0.3738393187522888, -0.1039673388004303, 0.2346508800983429, -0.5959877371788025, 0.06008502095937729, -0.32899507880210876, 0.1574689894914627, -0.021801132708787918, 0.0796835869550705, -0.18334808945655823, -0.06448835879564285, -0.017261624336242676, 0.28868532180786133, -0.47767606377601624, 0.22582268714904785, -0.07113242894411087, -0.01872207224369049, 0.22888551652431488, -0.47618094086647034, 0.24513372778892517, -0.42973265051841736, 0.24277973175048828, -0.2747142016887665, -0.13727325201034546, -0.012243375182151794, -0.07835924625396729, 0.14000076055526733, -0.03278706967830658, -0.19121384620666504, -0.058313943445682526, -0.10280214995145798, 0.033681392669677734, -0.2671672999858856, -0.13970869779586792, 0.30906835198402405, 0.3246817886829376, 0.06483043730258942, 0.22987475991249084, 0.2349286675453186, 0.07653908431529999, 0.05386890843510628, -0.10020189732313156, 0.28557106852531433, -0.20131319761276245, -0.5362897515296936, -0.0768558457493782, -0.02765066549181938, 0.1842498928308487, 0.31094104051589966, 0.17058582603931427, 0.22302432358264923, 0.2661789655685425, -0.15014401078224182, 0.28541144728660583, 0.3921469449996948, -0.14335130155086517, -0.07950574904680252, 0.34063369035720825, 0.0005371617153286934, -0.05299299210309982, -0.20970787107944489, 0.30711784958839417, 0.25661125779151917, -0.17462141811847687, -0.42012304067611694, -0.19173045456409454, -0.3680141866207123, 0.28314176201820374, 0.0857444554567337, 0.03637685254216194, -0.6196889281272888, -0.017279978841543198, 0.08601478487253189, -0.27054139971733093, 0.14433623850345612, -0.1337941288948059, 0.1898910105228424, -0.09009550511837006, 0.283119797706604, -0.21187977492809296, -0.3793947994709015, -0.07386379688978195, 0.18880999088287354, 0.09389007836580276, 0.3963296115398407, 0.5640849471092224, -0.15935181081295013, -0.008311613462865353, -0.24439233541488647, -0.29202407598495483, 0.31034353375434875, -0.13286064565181732, 0.18739363551139832, 0.06075136736035347, 0.23301945626735687, -0.02100646123290062, -0.2958432734012604, 0.014268001541495323, -0.31301265954971313, -0.21866223216056824, -0.3133705258369446, -0.18315072357654572, 0.05842721834778786, -0.05095133185386658, -0.7038235068321228, -0.2750612795352936, -0.32440006732940674, 0.08531363308429718, -0.28428885340690613, 0.006571836769580841, -0.08413348346948624, -0.013793513178825378, 0.1282563954591751, -0.053784605115652084, -0.2886970341205597, -0.24715329706668854, -0.5683084726333618, 0.28929826617240906, -0.3023066520690918, -0.2118416577577591, 0.3028319180011749, -0.2637949585914612, 0.19710564613342285, -0.10775332152843475, -0.06749296188354492, -0.17688067257404327, -0.2159411758184433, 0.08488500118255615, 0.035672347992658615, 0.17994244396686554, 0.38602185249328613, -0.15781797468662262, -0.23198868334293365, 0.05153794586658478, -0.18017640709877014, 0.16053184866905212, 0.4936748743057251, 0.2824169099330902, -0.10135243088006973, 0.5267289876937866, -0.23963014781475067, 0.586291491985321, -0.09612300992012024, 0.1858862191438675, 0.1964281052350998, 0.09416338056325912, 0.29743698239326477, -0.2164408266544342, -0.23598408699035645, 0.3666810691356659, 0.15138982236385345, -0.08134348690509796, 0.4584207534790039, -0.054620690643787384, -0.23066340386867523, -0.13017511367797852, -0.04540282487869263, -0.3608067035675049, -0.15656954050064087, 0.0241470355540514, 0.10783904790878296, -0.07752618938684464, 0.20924705266952515, -0.42037883400917053, -0.07206089794635773, -0.3420502543449402, -0.19647201895713806, 0.09350558370351791, -0.1467689573764801, -0.21898509562015533, -0.5625200867652893, 0.3997902274131775, -0.372852623462677, 0.2788079082965851, 0.017298508435487747, -0.10998832434415817, 0.1905263513326645, -0.13002732396125793, 0.30403029918670654, 0.3350619673728943, 0.42341679334640503, -0.20934659242630005, -0.27784353494644165, 0.15599308907985687, 0.3135416805744171, -0.17071223258972168, 0.09477557241916656, -0.19273008406162262, -0.28767070174217224, 0.6086779236793518, -0.5795610547065735, -0.4639154374599457, 0.04426838457584381, 0.3850873112678528, 0.09403762221336365, 0.12741291522979736, -0.04579295963048935, 0.04585804417729378, -0.3307906687259674, -0.32792460918426514, 0.12657111883163452, 0.20726658403873444, 0.08627969771623611, 0.08044605702161789, -0.1864141821861267, 0.1383446455001831, -0.013764476403594017, 0.3173118829727173, 0.06226744130253792, 0.19904133677482605, 0.024972546845674515, 0.26963087916374207, -0.022097408771514893, 0.3613413870334625, 0.7540931105613708, 0.5934671759605408, -0.0888691246509552, -0.185328871011734, 0.3476487398147583, -0.4810468554496765, 0.35743048787117004, 0.3606114983558655, 0.15001092851161957, 0.05577189475297928, -0.2594304382801056, 0.27437520027160645, 0.19042427837848663, 0.30790379643440247, -0.021231645718216896, -0.3020722568035126, -0.6453389525413513, -0.24266131222248077, 0.0029881224036216736, -0.06111225113272667, -0.13604086637496948, 0.31496548652648926, 0.4586940407752991, -0.10129276663064957, 0.35448360443115234, -0.014850802719593048, 1.4495519399642944, 0.00038935989141464233, -0.11648792028427124, 0.0609666109085083, -0.052313726395368576, 0.49676474928855896, -0.44554752111434937, 0.016110898926854134, -0.19170145690441132, -0.28406915068626404, 0.040482208132743835, -0.11254902929067612, 0.035576481372117996, 0.4958653450012207, -0.1186516284942627, 0.2912014424800873, -0.047623906284570694, 0.09570249915122986, -0.15078915655612946, 0.5249441862106323, -0.02366607077419758, -0.32809939980506897, 0.05416479706764221, 0.11114789545536041, 0.3280365467071533, 0.07624878734350204, -0.0459013357758522, -0.1759309321641922, -0.19697226583957672, -0.014743765816092491, -0.07053502649068832, -0.054024264216423035, -0.2979370355606079, -0.17412836849689484, -0.15244100987911224, -0.15734732151031494, 0.446535587310791, -0.0179634727537632, 0.574680745601654, 0.04043401777744293, -0.03839420527219772, 0.2894713580608368, 0.08551765978336334, 0.008021911606192589, 0.07300754636526108, -0.13314314186573029, 0.11980793625116348, -0.03540536016225815, -0.26694628596305847, 0.06568125635385513, -0.14000636339187622, -0.2200896292924881, -0.059194356203079224, 0.05902580916881561, 0.3289021849632263, -0.18965883553028107, -0.13822408020496368, 0.12026403844356537, 0.03417256101965904, -0.30539757013320923, 0.10880467295646667, 0.20299546420574188, 0.14495408535003662, 0.05078836530447006, 0.1001097708940506, -0.22335626184940338, -0.36774250864982605, 0.1141534298658371, 0.12938274443149567, -0.39815467596054077, 0.2583717107772827, 0.22386835515499115, -0.18615208566188812, -0.27894723415374756, -0.009409435093402863, 0.22033286094665527, -0.522990345954895, -0.18582996726036072, 0.09722879528999329, -0.0923881083726883, -0.12275739759206772, 0.3292448818683624, 0.2834715247154236, 0.616032600402832, 0.139041930437088, -0.15719729661941528, -0.2507931888103485, 0.1540011167526245, 0.015557250007987022, 0.23025451600551605, -0.18039533495903015, 0.16550517082214355, 0.19802629947662354, 0.30112653970718384, -0.37519022822380066, 0.14454679191112518, -0.172513946890831, 0.21522900462150574, 0.365909218788147, -0.11136465519666672, 0.25880593061447144, -0.27238333225250244, 0.16645342111587524, -0.04118402302265167, -0.240213543176651, -0.16041797399520874, 0.0586036778986454, 0.18221381306648254, -0.06148604303598404, -0.18776224553585052, 0.06012159213423729, -0.11383968591690063, -0.19604885578155518, -0.01364058069884777, 0.320592999458313, -0.024594508111476898, 0.15154536068439484, -0.24280785024166107, 0.22719037532806396, 0.11313563585281372, -0.14553040266036987, 0.22257860004901886, 0.2538382411003113, 0.17276012897491455, 0.0899701863527298, 0.04220806434750557, -0.11292577534914017, -0.16013048589229584, 0.07558167725801468, 0.11862051486968994, 0.16571971774101257, 0.18519964814186096, 0.10904129594564438, 0.1304214596748352, -0.2382163405418396, 0.48009049892425537, -0.01066738273948431, 0.1682681441307068, 0.05095462128520012, -0.1532365083694458, 0.16560441255569458, 0.24805110692977905, -0.3095729351043701, 0.29716363549232483, 0.1762486696243286, -0.11246836930513382, 0.21618321537971497, 0.09424404054880142, 0.2643294036388397, 0.06512215733528137, -0.09834867715835571, 0.16160911321640015, 0.22235770523548126, -0.23990388214588165, 0.2524105906486511, 0.14882218837738037, -0.21372348070144653, 0.011317647993564606, 0.23783858120441437, 0.18186619877815247, 0.04753263667225838, 0.030044203624129295, -0.014697067439556122, 0.2675239145755768, 0.20876818895339966, 0.5245577096939087, 0.3313121497631073, -0.43346959352493286, 0.09903222322463989, 0.561883270740509, -0.006855815649032593, 0.01429545134305954, -0.0062039196491241455, 0.020428799092769623, 0.15843331813812256, 0.1272059828042984, -0.21801722049713135, 0.2785193920135498, 0.04985089972615242, 0.0022231638431549072, 0.24575290083885193, -0.35551491379737854, -0.05098186433315277, -0.23254050314426422, 0.04099410027265549, -0.2985811233520508, -0.09278111159801483, 0.17108294367790222, -0.020740419626235962, -0.27131226658821106, 0.024119965732097626, 0.09543590247631073, 0.10964891314506531, -0.1816786676645279, 0.24604462087154388, 0.011715911328792572, -0.2520003318786621, 0.17105215787887573, 0.3530360460281372, 0.11921559274196625, 0.15859568119049072, 0.18266677856445312, 0.21492540836334229, 0.3946809470653534, -0.2961946725845337, -0.09757047891616821, 0.04205114394426346, 0.15298917889595032, 0.20471125841140747, 0.11554762721061707, 0.15676523745059967, -0.2709628641605377, -0.32889223098754883, 0.04570068418979645, 0.22518374025821686, -0.2337610125541687, 0.1875009834766388, 0.013556687161326408, -0.2033393383026123, 0.03606818616390228, 0.0555342361330986, -0.25875067710876465, -0.11525201797485352, 0.3081151247024536, -0.4514048993587494, 0.059496939182281494, -0.18033558130264282, 0.08337325602769852, -0.2332555055618286, 0.3922939598560333, 0.36154764890670776, -0.38820359110832214, -0.19512531161308289, -0.33470213413238525, -0.5332704782485962, 0.29975563287734985, 0.02483801543712616, 0.14497043192386627, -0.16420875489711761, 0.36112838983535767, 0.3471274971961975, 0.09662823379039764, 0.18532702326774597, -0.19753342866897583, -0.16683070361614227, 0.3056480884552002, -0.22746367752552032, 0.11621642112731934, -0.05356602370738983, 0.07301657646894455, 0.17505022883415222, -0.0889759510755539, -0.03138982132077217, 0.274038165807724, -0.033439695835113525, -0.26593613624572754, 0.06346049904823303, 0.28582534193992615, -0.23750299215316772, 0.2736437916755676, 0.13955673575401306, 0.2985441982746124, 0.035466261208057404, 0.1081177368760109, -0.08512410521507263, -0.32627469301223755, 0.11033491790294647, 0.5095341801643372, 0.3534099757671356, 0.17186997830867767, -0.002557293511927128, -0.07595460116863251, -0.07360251247882843, -0.09874678403139114, -0.08559131622314453, -0.03099890612065792, -0.3659106492996216, 0.1241871789097786, 0.0939287319779396, 0.21250420808792114, 0.254027396440506, -0.17428046464920044, 0.21549786627292633, -0.09277098625898361, -0.1835450828075409, -0.47638875246047974, 0.213380828499794, 0.09526139497756958, -0.15158192813396454, -0.10746943950653076, 0.3052319884300232, -0.031501881778240204, -0.06387997418642044, -0.21050089597702026, 0.19635069370269775, 0.33979690074920654, -0.08511815220117569, -0.04585132747888565, 0.03164516016840935, 0.10429777204990387, 0.26123422384262085, -0.32243719696998596, 0.4308958947658539, 0.01535346545279026, -0.31667661666870117, -0.351619690656662, -0.2515909671783447 ]
https://github.com/huggingface/datasets/pull/2802
add openwebtext2
Hi ! Do you really need `jsonlines` ? I think it simply uses `json.loads` under the hood. Currently the test are failing because `jsonlines` is not part of the extra requirements `TESTS_REQUIRE` in setup.py So either you can replace `jsonlines` with a simple for loop on the lines of the files and use `json.loads`, or you can add `TESTS_REQUIRE` to the test requirements (but in this case users will have to install it as well).
openwebtext2 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
75
text: add openwebtext2 openwebtext2 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 Hi ! Do you really need `jsonlines` ? I think it simply uses `json.loads` under the hood. Currently the test are failing because `jsonlines` is not part of the extra requirements `TESTS_REQUIRE` in setup.py So either you can replace `jsonlines` with a simple for loop on the lines of the files and use `json.loads`, or you can add `TESTS_REQUIRE` to the test requirements (but in this case users will have to install it as well).
[ 0.11326344311237335, 0.1209937185049057, -0.14015136659145355, 0.25718703866004944, 0.011017991229891777, 0.21617373824119568, 0.2882820665836334, 0.3046034276485443, 0.1735312044620514, -0.20467494428157806, -0.10657624155282974, 0.26299312710762024, 0.18585342168807983, 0.04507233202457428, -0.07053851336240768, 0.09480323642492294, -0.18459641933441162, 0.21638908982276917, -0.03298691660165787, -0.15978071093559265, -0.27927088737487793, -0.012264495715498924, -0.2747468054294586, -0.07488018274307251, -0.1614597737789154, -0.06177966296672821, -0.28494760394096375, 0.3311395049095154, -0.31120726466178894, -0.25816234946250916, 0.22792218625545502, 0.3131130337715149, -0.1917053759098053, 0.5096991658210754, -0.00010841891344171017, -0.08114492148160934, 0.15603454411029816, -0.11853676289319992, -0.18964064121246338, -0.2637500762939453, -0.34891167283058167, -0.3150826692581177, 0.17422309517860413, -0.3501397371292114, 0.05265539884567261, -0.5758711099624634, -0.09936323761940002, -0.13179060816764832, 0.4785435199737549, 0.29519057273864746, 0.21246884763240814, 0.41272518038749695, 0.24091793596744537, -0.10780133306980133, 0.4200882613658905, 0.10494187474250793, -0.15468516945838928, 0.23598109185695648, 0.1053069606423378, 0.06518979370594025, 0.06671563535928726, 0.02960168570280075, 0.28814059495925903, 0.11663778126239777, 0.23153534531593323, -0.007796577177941799, 0.30814704298973083, -0.2825332283973694, -0.10279209166765213, 0.28907883167266846, 0.5065118670463562, -0.18956390023231506, -0.3562996983528137, -0.14688563346862793, -0.13954320549964905, 0.09188426285982132, 0.1527283489704132, 0.34229546785354614, 0.06537780165672302, 0.17937932908535004, 0.09190145134925842, -0.16663172841072083, -0.23839445412158966, 0.17689460515975952, -0.02775617316365242, 0.039823245257139206, 0.11736782640218735, 0.08601333200931549, 0.05767112225294113, -0.013552572578191757, 0.13199657201766968, -0.06812306493520737, -0.24597075581550598, 0.03676053136587143, -0.11344583332538605, -0.3022158741950989, 0.20866447687149048, -0.12421087175607681, 0.23539793491363525, 0.2215382307767868, 0.35464024543762207, 0.05450442433357239, -0.23116222023963928, 0.20925146341323853, 0.4684044122695923, 0.314297616481781, 0.21307319402694702, -0.15713053941726685, 0.15944625437259674, 0.15596479177474976, -0.006661076098680496, -0.04898601770401001, -0.010086280293762684, -0.20421050488948822, -0.13224954903125763, -0.07100365310907364, 0.42772388458251953, -0.2888648211956024, 0.15283726155757904, -0.19225701689720154, -0.017899170517921448, -0.2232040911912918, -0.022065460681915283, 0.4186570644378662, -0.009872532449662685, 0.05168571323156357, 0.2644733786582947, 0.4532647728919983, 0.059616632759571075, 0.15904933214187622, -0.155019611120224, 0.25054097175598145, -0.13841083645820618, -0.07438299804925919, 0.21762634813785553, -0.12048362195491791, 0.6058274507522583, -0.18702474236488342, 0.28306323289871216, 0.022030800580978394, 0.2963290512561798, 0.11417625844478607, 0.29294127225875854, 0.319065123796463, 0.08704344928264618, -0.12493077665567398, 0.10769869387149811, 0.23287583887577057, -0.12262845039367676, 0.1270425021648407, -0.05364265292882919, -0.387367844581604, -0.0025467928498983383, 0.22681128978729248, -0.1376003921031952, 0.05082237720489502, -0.20853877067565918, -0.17200005054473877, -0.16672196984291077, -0.11400938034057617, 0.0648389458656311, -0.15885016322135925, 0.3904034197330475, -0.22498026490211487, 0.03640995919704437, 0.17895831167697906, -0.2815263271331787, -0.01513676717877388, -0.2685449719429016, -0.2903542220592499, -0.12561944127082825, 0.2503390908241272, -0.20411837100982666, 0.29126229882240295, -0.22364185750484467, 0.1436069905757904, 0.5706478953361511, -0.16074863076210022, -0.2005881518125534, 0.24036931991577148, 0.04613038897514343, 0.11067312210798264, 0.11157224327325821, -0.1054934486746788, -0.17920707166194916, -0.24094675481319427, 0.03560739755630493, 0.20854906737804413, -0.09801147878170013, 0.06540729105472565, -0.3566344380378723, -0.25675421953201294, 0.07811254262924194, 0.15498992800712585, -0.22989599406719208, -0.13726088404655457, 0.04738403111696243, -0.17135873436927795, 0.1448686420917511, -0.19421231746673584, 0.017200395464897156, -0.2502847909927368, 0.39833366870880127, -0.08428755402565002, 0.055061183869838715, 0.23972970247268677, -0.30952996015548706, 0.1265861690044403, -0.31600579619407654, 0.36287176609039307, 0.10599224269390106, -0.15865549445152283, -0.28370654582977295, -0.04054095596075058, -0.1642121821641922, -0.12327989935874939, 0.19997811317443848, -0.08784516155719757, -0.004770694300532341, -0.3755621910095215, -0.2969321012496948, -0.010455382987856865, -0.057287223637104034, 0.18762892484664917, -0.407097727060318, 0.0950622409582138, -0.25643932819366455, 0.01480973232537508, 0.16899888217449188, 0.1441039890050888, -0.09935382753610611, -0.3113981783390045, -0.1287267804145813, 0.32955488562583923, -0.17305639386177063, -0.05683319270610809, 0.17043736577033997, 0.2768345773220062, 0.10224565863609314, -0.46856600046157837, 0.159145787358284, 0.08983471989631653, 0.1712932288646698, -0.28972405195236206, -0.12380368262529373, 0.2824442684650421, 0.13317160308361053, 0.11932075768709183, 0.1765134185552597, -0.19165119528770447, 0.013998443260788918, -0.14810049533843994, -0.25724008679389954, -0.1820088028907776, -0.037855926901102066, 0.2672119140625, -0.050724923610687256, -0.016543062403798103, 0.30111634731292725, -0.004294492304325104, 0.23549126088619232, -0.009833885356783867, 0.09273471683263779, 0.32277989387512207, 0.025825951248407364, -0.4562573730945587, -0.21210528910160065, -0.1976497769355774, 0.5935758948326111, 0.27372488379478455, 0.2290521264076233, 0.25692954659461975, 0.07919135689735413, -0.25222545862197876, 0.2613691985607147, 0.2399415820837021, 0.014739795587956905, -0.04014211148023605, 0.2789619266986847, -0.2306412309408188, -0.14330711960792542, -0.15376617014408112, 0.024951843544840813, 0.3361732065677643, -0.4905688762664795, -0.3509237468242645, -0.014274011366069317, -0.0720621645450592, 0.13171927630901337, -0.2092946618795395, 0.05748549848794937, -0.31010517477989197, 0.13814958930015564, -0.05627606436610222, -0.30433389544487, 0.09920723736286163, -0.01989900879561901, 0.35891294479370117, -0.2179546058177948, 0.25837552547454834, -0.2667166590690613, -0.3367427885532379, -0.13301634788513184, 0.17610587179660797, 0.21755623817443848, 0.3415597379207611, 0.41816335916519165, -0.12241724878549576, -0.14043603837490082, -0.08629004657268524, -0.27367308735847473, -0.012554563581943512, -0.09687604010105133, 0.18876118957996368, 0.31399208307266235, 0.297355055809021, 0.25522899627685547, -0.4359496831893921, 0.1353824883699417, -0.3614795506000519, -0.18631283938884735, -0.26913172006607056, -0.016540266573429108, 0.00982675887644291, -0.19267982244491577, -1.0071380138397217, -0.03268387168645859, -0.36426985263824463, 0.5053253769874573, 0.036549877375364304, 0.07233117520809174, -0.23882660269737244, 0.10649466514587402, 0.14549745619297028, -0.0009311661124229431, 0.052210234105587006, -0.05609426647424698, -0.5613129138946533, 0.18491779267787933, -0.2645982503890991, -0.4309545159339905, 0.2983025014400482, -0.2507154941558838, 0.13799987733364105, -0.17584729194641113, -0.1764497458934784, -0.35695695877075195, -0.06777089089155197, 0.05759718641638756, 0.018686389550566673, 0.18439064919948578, 0.2726094722747803, 0.05831070616841316, -0.22447693347930908, -0.17992442846298218, -0.30531394481658936, 0.3297468423843384, 0.40401366353034973, 0.2800474464893341, -0.2108357846736908, 0.5648233294487, -0.1608385145664215, 0.16620749235153198, 0.020041942596435547, 0.15917345881462097, 0.3821731507778168, 0.06485702842473984, 0.15603946149349213, -0.13191825151443481, -0.19870100915431976, 0.042279306799173355, 0.0360991433262825, 0.044117122888565063, 0.47037559747695923, 0.18049979209899902, -0.2248203158378601, -0.2629433274269104, 0.017737239599227905, -0.5270394682884216, -0.17527523636817932, 0.08152324706315994, 0.007005311548709869, -0.10701393336057663, 0.011232633143663406, -0.2989770770072937, -0.24046142399311066, 0.07769034057855606, -0.15723538398742676, 0.20886117219924927, 0.15342232584953308, -0.16552139818668365, -0.4039260447025299, 0.2731289863586426, -0.11258808523416519, 0.32725274562835693, 0.029437391087412834, 0.11700473725795746, 0.04010390117764473, -0.10696520656347275, 0.055292267352342606, -0.1328630894422531, 0.43902456760406494, -0.28826653957366943, -0.12673068046569824, 0.33646297454833984, 0.07149221748113632, -0.42556533217430115, 0.08467786014080048, -0.3182811141014099, -0.2374802827835083, 0.8362258672714233, -0.10872496664524078, -0.4481876790523529, -0.12578579783439636, 0.2683819532394409, 0.11614669859409332, 0.0191805399954319, -0.13431678712368011, -0.10680108517408371, -0.5310680270195007, -0.42254579067230225, -0.11530012637376785, 0.029940178617835045, -0.05892002955079079, -0.14809376001358032, -0.11178331077098846, 0.13684028387069702, -0.23957094550132751, 0.3260120153427124, 0.22140604257583618, 0.13712632656097412, -0.029709627851843834, 0.12313374876976013, 0.06551525741815567, 0.25837475061416626, 0.5710198283195496, 0.4825572371482849, -0.02274186536669731, -0.09494753181934357, -0.127206951379776, -0.29609414935112, 0.5222702026367188, 0.2292141616344452, 0.04826601594686508, -0.08159960061311722, -0.508089542388916, 0.0318402536213398, 0.1380535066127777, 0.37543511390686035, 0.2874659299850464, -0.28006163239479065, -0.19407705962657928, -0.3614460527896881, 0.3299672305583954, -0.26437222957611084, -0.07528790086507797, 0.33571657538414, -0.052015870809555054, -0.2506696879863739, 0.5816043019294739, -0.23233342170715332, 0.9825100302696228, 0.15786942839622498, -0.13470180332660675, 0.31366467475891113, -0.2620386481285095, 0.25585100054740906, -0.40518873929977417, -0.09779816120862961, -0.15955986082553864, -0.09596070647239685, 0.13086365163326263, -0.26906636357307434, 0.18956348299980164, 0.4554758071899414, -0.2899313271045685, 0.2997925281524658, -0.06845393031835556, -0.4729136526584625, -0.009737621992826462, 0.5151268839836121, 0.0971657857298851, -0.2069176435470581, -0.4668671190738678, 0.1761889010667801, 0.33046388626098633, 0.08776131272315979, -0.13844874501228333, -0.22048524022102356, -0.07933374494314194, -0.36389684677124023, -0.044479187577962875, 0.08289635926485062, -0.017466597259044647, 0.08622533828020096, 0.1389286369085312, 0.2343093901872635, 0.39028722047805786, -0.010449301451444626, 0.4239134192466736, 0.0449216291308403, -0.2614712715148926, 0.0911155641078949, -0.09593529254198074, -0.11448924243450165, 0.16188108921051025, 0.28887876868247986, 0.24083755910396576, -0.29492008686065674, -0.48315367102622986, 0.09047025442123413, -0.323086678981781, -0.40617096424102783, 0.07041855156421661, -0.1273760348558426, 0.13889461755752563, -0.3612830936908722, -0.19834819436073303, 0.16644184291362762, -0.17506565153598785, -0.26872166991233826, 0.17473554611206055, 0.380290150642395, -0.3109375536441803, 0.3122352063655853, 0.13179701566696167, -0.3454435169696808, -0.22907929122447968, 0.11568419635295868, -0.1494344174861908, -0.08887398988008499, 0.35345035791397095, 0.12195117771625519, 0.12123216688632965, -0.34562093019485474, 0.09874378889799118, 0.6297752857208252, -0.24410158395767212, 0.09998659044504166, 0.26006388664245605, -0.09855388104915619, -0.10459928214550018, 0.4419938921928406, 0.37596654891967773, 0.5123244524002075, 0.01679220423102379, -0.2530950605869293, -0.2678762376308441, 0.15025585889816284, 0.15401534736156464, 0.4123886227607727, -0.25386691093444824, 0.2821423411369324, 0.18208742141723633, 0.3883365988731384, -0.40343308448791504, 0.26877695322036743, -0.3192741572856903, 0.1285664290189743, 0.034001026302576065, -0.03947848826646805, 0.268051415681839, 0.052496396005153656, 0.19554896652698517, -0.2310975044965744, -0.4324294328689575, -0.24264198541641235, -0.020638752728700638, 0.14153727889060974, 0.12745508551597595, -0.08923356235027313, -0.022686030715703964, -0.11528445035219193, -0.16106806695461273, -0.10523805022239685, 0.14839619398117065, -0.2883441746234894, -0.07978516817092896, -0.023096567019820213, 0.4102672040462494, -0.15044459700584412, -0.1708487719297409, 0.06563830375671387, 0.015338078141212463, 0.01863640546798706, 0.08657186478376389, -0.07865358889102936, -0.22739070653915405, -0.20885780453681946, 0.27997010946273804, 0.06724219769239426, 0.16206906735897064, 0.25495555996894836, 0.11420079320669174, 0.18283364176750183, -0.12579649686813354, 0.0830499678850174, 0.04681859165430069, 0.2868359088897705, -0.024769894778728485, 0.3883110284805298, -0.08253982663154602, 0.19443492591381073, -0.32715344429016113, 0.2735474705696106, 0.2278604656457901, -0.005526253022253513, 0.18807047605514526, 0.14230048656463623, 0.11008037626743317, 0.09362463653087616, -0.041269563138484955, 0.04148443043231964, 0.18114501237869263, -0.033500734716653824, 0.08096987009048462, 0.13389116525650024, -0.5061938762664795, -0.08368520438671112, -0.052819639444351196, -0.1027674525976181, 0.4021422863006592, -0.3568020462989807, 0.0027856528759002686, 0.4774687588214874, 0.015770206227898598, 0.2407190352678299, -0.01730400323867798, -0.17019198834896088, 0.0014155320823192596, 0.34951552748680115, 0.436516135931015, 0.022642888128757477, 0.1279355138540268, 0.23374921083450317, -0.045640528202056885, 0.04065895825624466, -0.3783723711967468, 0.08269792795181274, 0.24425911903381348, -0.19828112423419952, 0.07515738159418106, -0.3491816222667694, -0.00005908310413360596, -0.29088982939720154, -0.10164451599121094, -0.05129546672105789, -0.30914440751075745, 0.08271460235118866, -0.11600233614444733, -0.1777317374944687, 0.0006708167493343353, -0.023483768105506897, 0.08569131791591644, -0.09494031965732574, 0.1411532610654831, 0.2779371440410614, -0.17675773799419403, 0.1838337630033493, 0.562152624130249, 0.337772011756897, 0.1703726053237915, 0.010568518191576004, 0.0424625501036644, -0.013626709580421448, -0.18929719924926758, -0.1095089316368103, 0.1331615000963211, -0.0010978356003761292, 0.17347267270088196, 0.23417966067790985, 0.22924958169460297, -0.2223920226097107, -0.10825313627719879, -0.10866628587245941, -0.16223779320716858, -0.1797153353691101, 0.6203318238258362, -0.022187933325767517, -0.2756616771221161, 0.05618949607014656, -0.098439060151577, -0.2719784379005432, -0.17779755592346191, 0.09202730655670166, -0.17782607674598694, 0.02611057087779045, 0.09901431202888489, 0.10368194431066513, -0.20713266730308533, 0.5919809341430664, 0.23590388894081116, -0.10952135175466537, -0.2188074141740799, -0.2990852892398834, -0.6933296918869019, -0.01933968812227249, 0.050611138343811035, 0.10379061102867126, 0.19644442200660706, 0.11196303367614746, 0.3997652232646942, 0.016612177714705467, -0.12847520411014557, 0.07031653076410294, 0.006966703571379185, -0.054723262786865234, -0.472690224647522, 0.10172468423843384, 0.2916772961616516, 0.27579179406166077, 0.16082239151000977, -0.015427157282829285, -0.10593743622303009, -0.04571960121393204, 0.035078808665275574, -0.04826033115386963, 0.16424302756786346, 0.1542249172925949, -0.1735001802444458, 0.3863087296485901, 0.08450842648744583, 0.46825918555259705, 0.007635988295078278, 0.12205425649881363, -0.16096775233745575, -0.3902299702167511, 0.23956212401390076, 0.3177763819694519, 0.18128548562526703, 0.37159380316734314, -0.04870280623435974, 0.08863717317581177, -0.016389274969697, 0.03336121514439583, -0.1074213981628418, -0.2308843731880188, -0.17975740134716034, 0.11591354757547379, 0.03830511122941971, 0.04445269703865051, 0.19694600999355316, -0.08769600838422775, -0.190447136759758, -0.14315639436244965, -0.16118624806404114, -0.19066962599754333, 0.7149832248687744, 0.09447353333234787, -0.12144729495048523, -0.13637462258338928, 0.4215918183326721, -0.12546902894973755, -0.0844011977314949, -0.3908347189426422, 0.06295003741979599, 0.40233302116394043, 0.08531650900840759, -0.4379909634590149, 0.07777221500873566, 0.09217917919158936, 0.08781716227531433, -0.1341516077518463, 0.14109599590301514, -0.05709875375032425, -0.038186006247997284, -0.2593386769294739, -0.12326382100582123 ]
https://github.com/huggingface/datasets/pull/2802
add openwebtext2
Thanks for your suggestion. I now know `io` and json lines format better and has changed `jsonlines` to just `readlines`.
openwebtext2 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
20
text: add openwebtext2 openwebtext2 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 Thanks for your suggestion. I now know `io` and json lines format better and has changed `jsonlines` to just `readlines`.
[ 0.07489579916000366, 0.029253795742988586, -0.17292068898677826, 0.39578402042388916, 0.00912761501967907, 0.07816915959119797, 0.10008889436721802, 0.16075734794139862, 0.02570471167564392, -0.021325036883354187, -0.2488744556903839, 0.37049591541290283, 0.3757944107055664, 0.182608500123024, -0.1588534414768219, 0.14908935129642487, -0.1239510104060173, 0.19046840071678162, -0.18349942564964294, -0.22310903668403625, -0.23674263060092926, 0.017155257984995842, -0.2403143048286438, -0.18221567571163177, -0.14063572883605957, -0.07710018754005432, -0.24297238886356354, 0.25660672783851624, -0.4111853837966919, 0.02131885290145874, 0.10440103709697723, 0.2932834029197693, -0.1184692233800888, 0.3490140438079834, -0.00010598255903460085, -0.10343500971794128, 0.12508252263069153, -0.11552227288484573, -0.14113767445087433, -0.1921403557062149, -0.4561036229133606, -0.4114764928817749, 0.0832923874258995, -0.36792486906051636, 0.1203811839222908, -0.455008864402771, 0.05134524405002594, -0.1461867243051529, 0.43070727586746216, 0.08792538940906525, 0.2428644597530365, 0.33254098892211914, 0.35357150435447693, -0.04270508885383606, 0.41644471883773804, 0.28517889976501465, -0.18825584650039673, 0.21059945225715637, 0.16841661930084229, 0.2745307981967926, 0.04877203330397606, 0.1256515085697174, 0.22599729895591736, -0.058497410267591476, 0.3252744972705841, 0.03546832874417305, 0.2555936276912689, -0.16137874126434326, -0.0468522310256958, 0.23031410574913025, 0.6208657622337341, -0.17481163144111633, -0.2649952173233032, -0.05755877494812012, 0.0010813712142407894, 0.06510777026414871, 0.1586582362651825, 0.2903413772583008, 0.18651388585567474, 0.20787163078784943, 0.2684729993343353, -0.1876790076494217, -0.3086605370044708, 0.12837910652160645, 0.01894858479499817, 0.1525539606809616, 0.010251668281853199, -0.0395309254527092, -0.03317621722817421, -0.01719076558947563, 0.18294194340705872, -0.003957362845540047, -0.2999221384525299, -0.06544522196054459, -0.03745410218834877, -0.21820001304149628, 0.12217073142528534, -0.09263656288385391, 0.08846697956323624, 0.07450051605701447, 0.5523110032081604, 0.1795470416545868, -0.18543380498886108, 0.10335196554660797, 0.5893447399139404, 0.14340537786483765, 0.1482529640197754, -0.25879865884780884, 0.14547064900398254, -0.041386011987924576, 0.1355241984128952, -0.15504315495491028, -0.09357922524213791, -0.10235196352005005, -0.25124332308769226, -0.19712111353874207, 0.360797643661499, -0.10219794511795044, 0.040926896035671234, -0.22581364214420319, 0.06781147420406342, -0.2652409076690674, -0.07009577751159668, 0.18896162509918213, -0.10110145062208176, 0.07563798129558563, 0.3053337335586548, 0.25318676233291626, 0.0586538091301918, -0.1376602053642273, -0.18828371167182922, 0.1614859700202942, -0.2045390009880066, -0.16637276113033295, -0.01603456772863865, -0.1459188014268875, 0.3582461476325989, -0.06973006576299667, 0.27131208777427673, 0.10001334547996521, 0.033262476325035095, 0.01467425748705864, 0.4215189218521118, 0.2528195381164551, 0.13703641295433044, -0.08517243713140488, 0.015931501984596252, 0.2179894596338272, -0.04032401368021965, 0.2012571096420288, -0.17432868480682373, -0.3484902083873749, -0.4897874593734741, 0.23920418322086334, -0.026352614164352417, -0.02142854407429695, -0.24631178379058838, -0.08407260477542877, -0.10789553076028824, -0.15521736443042755, 0.006628826260566711, -0.0009740032255649567, 0.18080410361289978, -0.19290028512477875, -0.04399065300822258, -0.013024568557739258, -0.3680543601512909, 0.03786797076463699, -0.35876038670539856, -0.24334871768951416, 0.038691386580467224, 0.36302298307418823, -0.1873597502708435, 0.2799491882324219, -0.12501530349254608, 0.07829783856868744, 0.6664667129516602, -0.041800450533628464, -0.3472345769405365, 0.2896296977996826, 0.025847144424915314, -0.03227870911359787, 0.13236191868782043, 0.047793999314308167, 0.19063563644886017, -0.251321405172348, 0.13933241367340088, 0.1709202229976654, -0.07167544960975647, -0.016889851540327072, -0.3098958432674408, -0.3118789494037628, -0.19086158275604248, 0.11571094393730164, -0.26570993661880493, -0.05560065060853958, 0.164208322763443, -0.2119525969028473, 0.2516152858734131, -0.0596361868083477, 0.22294721007347107, -0.10043160617351532, 0.4253104329109192, 0.015853967517614365, 0.07754892855882645, 0.13027971982955933, -0.35028135776519775, -0.09660156071186066, -0.283006489276886, 0.31803280115127563, 0.22295938432216644, -0.13672727346420288, -0.20974275469779968, -0.13314466178417206, -0.12734732031822205, 0.13103225827217102, 0.2241622805595398, -0.12548600137233734, -0.19768592715263367, -0.4816560447216034, -0.3298608958721161, 0.19070850312709808, -0.031894151121377945, 0.07913181930780411, -0.49675703048706055, 0.13516490161418915, -0.24215207993984222, -0.10825079679489136, 0.2085447907447815, 0.14709337055683136, -0.2596539556980133, -0.10423454642295837, -0.07059494405984879, 0.22112825512886047, -0.3609011173248291, 0.04228898882865906, 0.04919181019067764, 0.3566666841506958, 0.19646356999874115, -0.3980749845504761, 0.2501475512981415, -0.13477900624275208, 0.21841762959957123, -0.23884835839271545, -0.1577237844467163, 0.13070979714393616, 0.05907701700925827, 0.011883899569511414, 0.013102494180202484, -0.18791918456554413, -0.011806443333625793, -0.12296351790428162, -0.17583699524402618, -0.3639500141143799, -0.22677616775035858, 0.3851003646850586, 0.009950123727321625, 0.07967041432857513, 0.215460866689682, 0.23858395218849182, 0.41879990696907043, -0.003942824900150299, 0.010506723076105118, 0.413016676902771, -0.07677268236875534, -0.4684966504573822, -0.23001155257225037, -0.1402999758720398, 0.29297885298728943, 0.4123266339302063, 0.2680579423904419, 0.16044019162654877, 0.22351153194904327, -0.23918931186199188, 0.3369544446468353, 0.3899143934249878, 0.12772449851036072, 0.09224261343479156, 0.2785770893096924, -0.06197820231318474, -0.052895404398441315, -0.04828650504350662, 0.10322614759206772, 0.3520086705684662, -0.3370243310928345, -0.4481270909309387, -0.2347341626882553, -0.2238941490650177, 0.19206438958644867, -0.0693320631980896, 0.09043645113706589, -0.35348859429359436, 0.018535885959863663, 0.0031154006719589233, -0.4650461673736572, 0.010426762513816357, 0.20090250670909882, 0.2846645414829254, -0.2176535278558731, 0.500340461730957, -0.2025456428527832, -0.366484671831131, -0.18456318974494934, 0.2075922191143036, 0.29852014780044556, 0.39207103848457336, 0.4074137508869171, -0.20422786474227905, 0.08494477719068527, -0.22619830071926117, -0.20359820127487183, 0.11473327875137329, 0.007734136655926704, 0.03640848770737648, 0.3044396638870239, 0.2251238077878952, 0.11380299925804138, -0.3928985297679901, 0.03909451514482498, -0.22984755039215088, -0.3124453127384186, -0.40717875957489014, -0.35027191042900085, 0.020632769912481308, -0.16144420206546783, -0.7666771411895752, -0.015480199828743935, -0.49955374002456665, 0.4385930895805359, -0.17501600086688995, 0.2662144601345062, -0.2430087774991989, 0.048923879861831665, 0.18347975611686707, 0.09748788177967072, -0.049035049974918365, -0.17418520152568817, -0.6458095908164978, 0.28406262397766113, -0.27022191882133484, -0.37917548418045044, 0.289307564496994, -0.09510134905576706, 0.03882971405982971, -0.1676231324672699, -0.12416575849056244, -0.21517877280712128, -0.15349778532981873, -0.005246154963970184, -0.08178079128265381, 0.26989176869392395, 0.37165284156799316, -0.027034560218453407, -0.2399081289768219, -0.18922582268714905, -0.3239522874355316, 0.35525020956993103, 0.5471663475036621, 0.23245051503181458, -0.1000664010643959, 0.6657207608222961, -0.019784465432167053, 0.09557560831308365, -0.10878987610340118, 0.12201011180877686, 0.2815118730068207, 0.24451322853565216, 0.24125279486179352, -0.10607721656560898, -0.0378909558057785, 0.12670332193374634, 0.0724230483174324, 0.055513568222522736, 0.5392705798149109, 0.11830051988363266, -0.20571117103099823, -0.0940859466791153, -0.09911045432090759, -0.46023017168045044, -0.1296856552362442, 0.14987297356128693, 0.21464872360229492, -0.16396820545196533, 0.10202500224113464, -0.43145233392715454, -0.3335326910018921, 0.02047293446958065, -0.10371430218219757, 0.1716247797012329, 0.17394757270812988, -0.12178534269332886, -0.2707380950450897, 0.3460196852684021, -0.19957128167152405, 0.293407678604126, 0.05023974925279617, -0.06865095347166061, -0.015843454748392105, -0.17339539527893066, 0.14482024312019348, 0.03349555656313896, 0.419908344745636, -0.32679468393325806, -0.25218963623046875, 0.37315455079078674, 0.14739449322223663, -0.3353818356990814, 0.09171949326992035, -0.3200029134750366, -0.10443702340126038, 1.1075173616409302, -0.17322522401809692, -0.471767783164978, -0.1785256415605545, 0.4360639154911041, -0.049047764390707016, 0.03961842134594917, -0.24395187199115753, -0.0010571889579296112, -0.42295554280281067, -0.3232368528842926, -0.15665805339813232, 0.26372113823890686, -0.07100541889667511, 0.10132382810115814, -0.24276846647262573, 0.04782889410853386, -0.17235320806503296, 0.19742032885551453, 0.026049446314573288, 0.15669912099838257, 0.09534036368131638, 0.1382516771554947, 0.08749010413885117, 0.5131762027740479, 0.6339179873466492, 0.42835572361946106, -0.01032969355583191, -0.2350442111492157, 0.21137642860412598, -0.43640804290771484, 0.42421433329582214, 0.21150898933410645, 0.32855334877967834, -0.10903320461511612, -0.25421762466430664, 0.04477818310260773, 0.12071121484041214, 0.22090089321136475, 0.03602759540081024, -0.2751387357711792, -0.3046358823776245, -0.25566020607948303, 0.3300763964653015, -0.2437596321105957, -0.0716196671128273, 0.3877556324005127, 0.155450239777565, -0.20008185505867004, 0.5069141983985901, 0.01978503167629242, 1.1577732563018799, 0.07967154681682587, -0.15487143397331238, 0.2758144438266754, -0.4491006135940552, 0.2615903317928314, -0.41806644201278687, -0.15393996238708496, -0.10764841735363007, -0.1036652997136116, 0.16593961417675018, -0.09546412527561188, 0.1356925666332245, 0.40836185216903687, -0.17472025752067566, 0.08045917749404907, -0.054498203098773956, -0.28716596961021423, 0.013613811694085598, 0.38927996158599854, 0.13236509263515472, -0.35639140009880066, -0.17095603048801422, 0.13808125257492065, 0.21259473264217377, -0.084785595536232, -0.1085137352347374, -0.4495701789855957, 0.018869850784540176, -0.03555096685886383, -0.09485658258199692, -0.06285588443279266, -0.13330969214439392, 0.015979841351509094, 0.0726487934589386, 0.053627267479896545, 0.35987624526023865, 0.0703614130616188, 0.5661452412605286, -0.12369707226753235, -0.13743408024311066, 0.1881100982427597, -0.0344177782535553, -0.046364009380340576, 0.008494393900036812, 0.19421179592609406, 0.2148035317659378, -0.28622958064079285, -0.4459305703639984, -0.10601747781038284, -0.1704065501689911, -0.433418869972229, 0.04600168764591217, -0.022620610892772675, 0.2771299481391907, -0.2649206817150116, -0.22406141459941864, 0.19807982444763184, -0.11727911233901978, -0.2930048704147339, 0.1826719045639038, 0.33568882942199707, -0.08029583096504211, 0.23427832126617432, 0.16510793566703796, -0.29400596022605896, -0.24054758250713348, 0.20415249466896057, -0.017001498490571976, -0.22968526184558868, 0.20988759398460388, 0.08983568847179413, -0.13235005736351013, -0.36440789699554443, 0.15060153603553772, 0.5053406357765198, -0.17467525601387024, -0.03019529953598976, 0.12672878801822662, -0.142110675573349, -0.09968499839305878, 0.4080609381198883, 0.2945634722709656, 0.516182541847229, -0.09815983474254608, -0.15363946557044983, -0.29250654578208923, 0.22428520023822784, 0.09576314687728882, 0.2937330901622772, -0.2048962116241455, 0.19157224893569946, 0.11143067479133606, 0.32459694147109985, -0.43302983045578003, 0.30948010087013245, -0.10312633216381073, 0.0367966890335083, 0.1384643316268921, -0.14108100533485413, 0.19182038307189941, -0.019367575645446777, 0.1525292545557022, -0.12334311008453369, -0.337300568819046, -0.21590092778205872, -0.08315815031528473, 0.1321910321712494, -0.015347640961408615, -0.12150449305772781, -0.032368119806051254, -0.16833630204200745, -0.3555649518966675, -0.07474866509437561, 0.22899195551872253, -0.13152119517326355, 0.0122344009578228, -0.13763007521629333, 0.3393039107322693, -0.07273399084806442, -0.08421312272548676, 0.08664977550506592, 0.26081085205078125, 0.1299036294221878, 0.02706671506166458, -0.044568806886672974, -0.2644875645637512, -0.1813751757144928, 0.32568544149398804, -0.015665143728256226, 0.27272897958755493, 0.19032177329063416, 0.13013797998428345, 0.10950511693954468, -0.20464502274990082, 0.3466433882713318, -0.12573400139808655, 0.02525506541132927, 0.11270427703857422, 0.05654728412628174, -0.047580912709236145, 0.2492503821849823, -0.2171841561794281, 0.20892837643623352, 0.18995529413223267, -0.07832987606525421, 0.06287071108818054, 0.020937345921993256, 0.220240980386734, 0.13796424865722656, -0.10376836359500885, 0.14864051342010498, 0.19591543078422546, -0.1946452260017395, 0.06557387858629227, -0.01803295686841011, -0.33640462160110474, -0.1310141682624817, -0.016321683302521706, -0.004749957472085953, 0.3354295790195465, -0.1816595494747162, 0.0423966608941555, 0.3776174485683441, 0.3143518567085266, 0.4823198914527893, 0.08905728161334991, -0.32635632157325745, 0.005193457007408142, 0.514061689376831, 0.2617655396461487, 0.10561326146125793, 0.1590496450662613, -0.055636145174503326, 0.1417088806629181, 0.156300351023674, -0.3451768755912781, 0.14298740029335022, 0.042816586792469025, -0.13885317742824554, -0.05087978392839432, -0.33720681071281433, 0.08536005020141602, -0.29615893959999084, -0.1008157879114151, 0.04980737715959549, -0.3095308244228363, 0.10160695761442184, -0.06907175481319427, -0.053598999977111816, -0.14873474836349487, -0.04922656714916229, 0.1204332634806633, -0.15569572150707245, 0.2246108502149582, 0.17667827010154724, -0.20990735292434692, 0.13071545958518982, 0.5225403308868408, 0.18145908415317535, 0.22039395570755005, 0.17633695900440216, 0.14385272562503815, 0.05348878726363182, -0.2806125283241272, -0.22721032798290253, 0.0012002792209386826, 0.14448806643486023, 0.16323256492614746, 0.07287803292274475, 0.2074507772922516, -0.24831947684288025, -0.15695852041244507, -0.12857435643672943, 0.014593060128390789, -0.042610909789800644, 0.2866106629371643, -0.10413739085197449, -0.3754139840602875, 0.15350326895713806, -0.0975087508559227, -0.26322945952415466, -0.1894872784614563, 0.12132948637008667, -0.2588706314563751, -0.04656258225440979, 0.16333894431591034, 0.11835204064846039, -0.22237342596054077, 0.4471287429332733, 0.23896488547325134, -0.4053863286972046, -0.0021587135270237923, -0.39802587032318115, -0.5918297171592712, 0.13158971071243286, 0.20608048141002655, 0.1812325417995453, 0.21867971122264862, 0.381547212600708, 0.3638320863246918, -0.0775517076253891, 0.03918763995170593, -0.18365485966205597, 0.07862678915262222, -0.01503046602010727, -0.4668842852115631, 0.16707055270671844, 0.4662342667579651, 0.1696297973394394, 0.20731009542942047, -0.0057327523827552795, -0.12320275604724884, 0.12984906136989594, 0.0938933864235878, -0.2944839596748352, 0.21573415398597717, 0.07721224427223206, -0.08726286888122559, 0.32764291763305664, 0.1630362570285797, 0.17133569717407227, -0.08360272645950317, 0.03307967633008957, -0.1378031224012375, -0.34705010056495667, 0.1442585289478302, 0.4849080741405487, 0.27231451869010925, 0.40521299839019775, -0.23298639059066772, 0.03965136036276817, 0.0579129233956337, -0.09860607981681824, -0.25801876187324524, -0.03922437131404877, -0.33670148253440857, 0.18218082189559937, 0.04388906806707382, 0.009559227153658867, 0.19025367498397827, -0.10009916871786118, 0.03939509019255638, -0.21333396434783936, -0.22064754366874695, -0.18552523851394653, 0.4591851234436035, 0.11340069025754929, -0.1053975522518158, -0.15002290904521942, 0.3675804138183594, -0.017810337245464325, 0.04063422977924347, -0.3485909104347229, 0.05188996344804764, 0.4136875569820404, 0.0358579084277153, -0.2957192063331604, 0.14584535360336304, 0.19211159646511078, 0.1705779731273651, -0.19905439019203186, 0.1622544825077057, 0.03102255053818226, -0.3031719923019409, -0.3088763654232025, -0.18156002461910248 ]
https://github.com/huggingface/datasets/pull/2801
add books3
> When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Thanks for the message, we'll definitely improve this > Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 Well currently no, but I think @lewtun was about to do it (though he's currently on vacations)
books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
71
text: add books3 books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 > When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Thanks for the message, we'll definitely improve this > Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 Well currently no, but I think @lewtun was about to do it (though he's currently on vacations)
[ 0.1489393264055252, -0.03631218522787094, -0.24331729114055634, 0.34257692098617554, -0.05087386816740036, 0.19023758172988892, 0.10943567752838135, 0.14475864171981812, -0.1176578551530838, -0.08493898808956146, -0.1427462100982666, 0.34082499146461487, 0.1282046139240265, -0.021275412291288376, -0.013975820504128933, 0.16953545808792114, 0.007111959159374237, 0.11576057970523834, 0.06858203560113907, -0.24297285079956055, -0.18384364247322083, -0.16650547087192535, -0.15564540028572083, -0.24183426797389984, -0.24141082167625427, -0.09432131052017212, -0.45635613799095154, 0.32050663232803345, -0.20189911127090454, -0.1201464906334877, 0.2683762311935425, 0.362406462430954, -0.118034228682518, 0.19146671891212463, -0.00010211364133283496, -0.08664258569478989, 0.2261323183774948, -0.04525373876094818, -0.3418511748313904, -0.08081656694412231, -0.20812904834747314, -0.36002179980278015, -0.06588011980056763, -0.30401110649108887, -0.04999636486172676, -0.2727726995944977, 0.0029076188802719116, -0.055164311081171036, 0.35503461956977844, -0.020634405314922333, 0.2559332251548767, 0.14723536372184753, 0.4599466323852539, -0.19121842086315155, 0.3606854975223541, 0.14779134094715118, -0.1509670615196228, 0.22765742242336273, 0.3560565710067749, 0.25436219573020935, 0.13593322038650513, 0.3283872902393341, 0.1367957442998886, -0.13487687706947327, 0.4158220589160919, -0.02406170591711998, 0.4152694046497345, -0.24020254611968994, -0.00948340818285942, 0.07376748323440552, 0.48895975947380066, -0.18127566576004028, -0.36373698711395264, -0.287058562040329, 0.2540610730648041, -0.036693260073661804, 0.012136455625295639, 0.09834130853414536, 0.011876991018652916, 0.08787132799625397, 0.3840567469596863, -0.27819523215293884, -0.22879570722579956, 0.3087916374206543, 0.11803968250751495, 0.1220494881272316, -0.09145677834749222, -0.09718886762857437, 0.054573770612478256, -0.0034361109137535095, 0.17025312781333923, 0.09366722404956818, -0.20320628583431244, -0.15805262327194214, -0.04345350340008736, -0.20124785602092743, 0.15275737643241882, 0.15214145183563232, -0.10522749274969101, -0.14514784514904022, 0.08375510573387146, 0.13016736507415771, -0.13769769668579102, 0.05404159799218178, 0.5959348678588867, 0.057118531316518784, 0.30068185925483704, -0.05503213033080101, -0.20659784972667694, 0.26041972637176514, 0.20174191892147064, -0.08548314869403839, -0.20142397284507751, -0.14634786546230316, -0.26064348220825195, -0.004151536151766777, 0.22101634740829468, -0.00702507421374321, -0.03700590133666992, 0.014957644045352936, 0.19671902060508728, -0.21597939729690552, -0.2002054750919342, 0.38333627581596375, -0.06410375237464905, 0.04967430606484413, -0.07129580527544022, 0.20035022497177124, 0.25605082511901855, -0.12524878978729248, -0.20232579112052917, 0.26962628960609436, -0.3816126585006714, -0.16475354135036469, -0.13832469284534454, -0.09702472388744354, 0.042182646691799164, -0.1453648954629898, 0.35466957092285156, 0.1749420315027237, -0.06732305139303207, -0.23012518882751465, 0.5838037729263306, 0.2940135598182678, 0.05436031147837639, 0.1641550213098526, 0.14923128485679626, 0.06425654888153076, -0.1387830525636673, 0.25914889574050903, 0.0939808189868927, -0.32745230197906494, -0.47262293100357056, 0.26007190346717834, 0.19413648545742035, 0.026192981749773026, -0.4430334270000458, 0.032859429717063904, 0.009535938501358032, -0.0635066032409668, 0.38117721676826477, -0.03672375530004501, -0.006504468619823456, -0.12403473258018494, -0.1154247522354126, 0.002074524760246277, -0.5519838333129883, 0.009798116981983185, -0.7338886857032776, -0.33780696988105774, -0.026171065866947174, 0.2605135142803192, -0.16928990185260773, 0.1476452648639679, -0.10126186907291412, -0.0034408271312713623, 0.36696597933769226, 0.025272313505411148, -0.44609537720680237, 0.19503630697727203, -0.07740254700183868, 0.07412700355052948, 0.17863279581069946, 0.181820347905159, 0.01662502810359001, -0.3671010434627533, 0.40165001153945923, -0.006449809297919273, -0.09694534540176392, -0.2935669720172882, -0.3155689537525177, -0.24889707565307617, -0.06488567590713501, 0.23973028361797333, -0.17893117666244507, -0.1533074975013733, 0.23788931965827942, -0.15441450476646423, 0.36714041233062744, 0.059543196111917496, 0.1834241896867752, 0.1345737874507904, 0.6140360832214355, 0.20064327120780945, 0.0025536143220961094, 0.00636686384677887, -0.292991042137146, 0.06840060651302338, -0.06944155693054199, 0.2161458283662796, 0.015287034213542938, -0.2157750278711319, -0.26177170872688293, -0.0018155090510845184, -0.11022944748401642, -0.16483741998672485, 0.17637163400650024, -0.09624578058719635, -0.270663321018219, -0.37150874733924866, -0.36486634612083435, 0.20078730583190918, -0.2849717438220978, 0.07106397300958633, -0.48322466015815735, 0.1195116937160492, -0.28858453035354614, -0.016056794673204422, -0.018778247758746147, 0.2511087656021118, -0.26855558156967163, -0.06088115647435188, 0.16799995303153992, 0.005613315850496292, -0.43111202120780945, 0.017037369310855865, -0.03802742063999176, 0.12437248229980469, 0.12626731395721436, -0.2874402701854706, 0.18621277809143066, -0.2117581069469452, 0.0953177660703659, -0.20099228620529175, -0.09465252608060837, 0.21983402967453003, -0.09845548868179321, 0.10196240991353989, 0.03450258821249008, -0.21340976655483246, -0.05517611652612686, -0.11188727617263794, 0.03987163305282593, -0.36870962381362915, -0.03996117040514946, 0.2597847878932953, 0.02781323716044426, 0.07343463599681854, 0.35746821761131287, 0.3249606490135193, 0.2775413990020752, 0.09403690695762634, 0.08631628751754761, 0.37626028060913086, -0.1663873791694641, -0.31441542506217957, -0.0005390122532844543, 0.028903257101774216, 0.2583099603652954, 0.3688393235206604, 0.11004047095775604, 0.1528654843568802, 0.31063517928123474, -0.11584687978029251, 0.3498604893684387, 0.26955950260162354, 0.08977700024843216, 0.13129469752311707, 0.16159014403820038, 0.09995868802070618, 0.005192525684833527, -0.0623922199010849, -0.010441768914461136, 0.24758093059062958, -0.11858497560024261, -0.3783048391342163, 0.17104975879192352, -0.5121440887451172, -0.08228304237127304, -0.16968679428100586, -0.019422456622123718, -0.32009872794151306, 0.11175660043954849, -0.025018882006406784, -0.3182951509952545, 0.08913607150316238, 0.10696548223495483, 0.1938014030456543, -0.15290185809135437, 0.29557156562805176, -0.17463769018650055, -0.33273810148239136, -0.12247166782617569, 0.30314749479293823, 0.07942130416631699, 0.3889610469341278, 0.4279105067253113, -0.1830589324235916, 0.021042857319116592, -0.34679895639419556, -0.31633153557777405, 0.12249717116355896, -0.23058868944644928, 0.1687294989824295, 0.32530760765075684, 0.13286450505256653, -0.022017421200871468, -0.5806728601455688, 0.11655279248952866, -0.15108366310596466, -0.1825316846370697, -0.39736783504486084, -0.1572209596633911, 0.02640337496995926, -0.10578648746013641, -0.7320492267608643, -0.11266174167394638, -0.39816659688949585, 0.4688054919242859, -0.1201184093952179, 0.0954599529504776, 0.018318742513656616, 0.3324810564517975, 0.13256897032260895, 0.009099544957280159, -0.051671892404556274, -0.0610908642411232, -0.2599182426929474, 0.07490495592355728, 0.056378770619630814, -0.1638084352016449, 0.10532675683498383, -0.2993471622467041, -0.01190917193889618, -0.3381602168083191, -0.2296634316444397, -0.25996893644332886, -0.17275989055633545, -0.025332065299153328, -0.1287909299135208, 0.19032800197601318, 0.18428930640220642, -0.16662102937698364, -0.381902277469635, 0.0011775530874729156, -0.3602246046066284, -0.023348629474639893, 0.39278119802474976, 0.303661048412323, -0.24779775738716125, 0.4509078860282898, -0.012848127633333206, 0.18535485863685608, -0.08626709878444672, 0.14310698211193085, 0.23267574608325958, 0.33169320225715637, 0.4281821846961975, -0.05659153312444687, -0.4594151973724365, 0.1813845932483673, -0.03980974853038788, -0.21815605461597443, 0.3687950372695923, -0.029475245624780655, -0.2447073608636856, 0.05093248188495636, -0.31541284918785095, -0.29086458683013916, -0.18258221447467804, 0.08625580370426178, 0.051628999412059784, -0.1855497658252716, 0.028878170996904373, -0.46801576018333435, 0.03438464179635048, 0.00959780253469944, -0.17629902064800262, 0.3442177176475525, 0.060925696045160294, -0.1661491096019745, -0.2766152024269104, 0.33208850026130676, -0.14340531826019287, 0.241032212972641, 0.19835908710956573, 0.028589390218257904, -0.051131755113601685, -0.1147521361708641, 0.266826868057251, 0.023371364921331406, 0.5040431618690491, -0.3159154951572418, -0.33569878339767456, 0.4047764241695404, 0.16852667927742004, -0.3087731599807739, 0.10447454452514648, -0.3540448844432831, -0.06463170796632767, 0.7409186959266663, -0.04881095886230469, -0.32235246896743774, 0.06878909468650818, 0.2761043608188629, 0.13523302972316742, 0.2122930884361267, -0.10650911182165146, -0.26083308458328247, -0.2456217110157013, -0.6405559182167053, 0.3691157102584839, 0.3444063365459442, -0.13089796900749207, 0.011723014526069164, -0.14269527792930603, 0.17698922753334045, 0.069025918841362, 0.2858130931854248, -0.1302814930677414, -0.017018478363752365, 0.20956842601299286, 0.08325153589248657, 0.016540197655558586, 0.2979629635810852, 0.696021556854248, 0.3739912509918213, -0.20115703344345093, -0.08855205774307251, 0.02590244449675083, -0.38203755021095276, 0.49473169445991516, 0.29885828495025635, 0.27887630462646484, 0.09093433618545532, 0.011906231753528118, 0.11534526199102402, 0.2693208158016205, 0.05938835069537163, 0.14522649347782135, -0.28365665674209595, -0.4264243543148041, -0.3934467136859894, 0.08244652301073074, -0.1568477600812912, -0.04939483478665352, 0.12552857398986816, 0.21774715185165405, -0.03710766136646271, 0.36383605003356934, 0.16948632895946503, 1.084659457206726, 0.028227228671312332, 0.20182868838310242, -0.0954357236623764, -0.11614334583282471, 0.4282234311103821, -0.25676214694976807, 0.059887174516916275, -0.24985796213150024, -0.3018244802951813, -0.004572553560137749, -0.06968893110752106, 0.021953802555799484, 0.4031994342803955, -0.27051883935928345, 0.04895006865262985, -0.15729588270187378, -0.17937126755714417, -0.08538946509361267, 0.1903543323278427, 0.03301773965358734, -0.20809122920036316, -0.35958966612815857, 0.10258617997169495, 0.41884177923202515, 0.024191737174987793, -0.1785150170326233, -0.16744543612003326, 0.02245478704571724, -0.11585550010204315, -0.3273311257362366, -0.09196853637695312, -0.15745441615581512, -0.06342784315347672, 0.23070870339870453, -0.02251923829317093, 0.49122753739356995, 0.07727766782045364, 0.5634917616844177, 0.05654997378587723, 0.1322011500597, 0.04118970036506653, 0.14843018352985382, -0.1295298933982849, 0.0026456168852746487, -0.1555950790643692, 0.31981176137924194, -0.096865713596344, -0.34026002883911133, -0.026866517961025238, -0.10886861383914948, -0.3561381697654724, -0.2988169193267822, 0.2725679278373718, 0.26417645812034607, -0.23924653232097626, -0.20445792376995087, 0.21758469939231873, -0.066578209400177, -0.3022322654724121, 0.1862308830022812, 0.16566872596740723, 0.02949318289756775, -0.005992785096168518, 0.1299465000629425, -0.47230374813079834, -0.18852294981479645, 0.24013569951057434, 0.07200014591217041, -0.41781356930732727, 0.349342405796051, 0.16703557968139648, -0.23720011115074158, -0.47740328311920166, -0.19969555735588074, 0.39179128408432007, -0.3260418772697449, -0.10004226863384247, 0.4094986021518707, -0.08322517573833466, -0.0661986693739891, 0.2209888994693756, 0.3907262682914734, 0.4701768457889557, -0.05763142555952072, -0.16867473721504211, -0.24267233908176422, 0.3334457278251648, -0.02264639362692833, 0.37860748171806335, -0.0868065357208252, 0.04162394255399704, 0.1914258748292923, 0.23083357512950897, -0.4539428949356079, 0.20835648477077484, -0.17268668115139008, -0.13007023930549622, 0.28150516748428345, -0.06668075919151306, 0.08697293698787689, -0.020479420199990273, 0.22149336338043213, -0.011395342648029327, -0.33502572774887085, -0.26905426383018494, 0.02844071015715599, 0.15740901231765747, 0.06682142615318298, 0.15276604890823364, 0.11332935094833374, -0.0967995747923851, -0.12311270833015442, -0.007835159078240395, 0.16969437897205353, 0.08461499214172363, 0.20487378537654877, 0.01172779779881239, 0.27443307638168335, 0.14952954649925232, -0.38909000158309937, 0.10840416699647903, 0.20919308066368103, 0.04786353558301926, 0.016586260870099068, -0.07015679031610489, -0.2216438502073288, -0.024691708385944366, 0.38937437534332275, 0.03478420898318291, 0.3135038912296295, 0.2299359142780304, -0.1405017077922821, 0.16331776976585388, -0.24249492585659027, 0.23405058681964874, -0.005264885723590851, 0.1927400380373001, 0.06429991871118546, -0.21722473204135895, 0.1321510374546051, 0.2896886169910431, -0.381696492433548, 0.12979480624198914, -0.06345093250274658, -0.32393011450767517, 0.012518767267465591, 0.13358502089977264, 0.312509149312973, 0.15125228464603424, 0.17260408401489258, 0.1765163540840149, 0.011224236339330673, -0.21725928783416748, -0.016131898388266563, 0.19892074167728424, -0.19607670605182648, -0.1709822118282318, 0.1296778917312622, -0.009063772857189178, 0.3035247325897217, 0.12361191213130951, -0.012458659708499908, 0.3849200904369354, 0.25513479113578796, 0.32250022888183594, 0.046343401074409485, -0.2847791612148285, 0.3248134255409241, 0.6556677222251892, 0.18490657210350037, -0.006764344871044159, -0.013314038515090942, 0.09624981880187988, 0.2632877826690674, 0.25658556818962097, -0.15410840511322021, 0.026393409818410873, -0.047933466732501984, 0.02548307552933693, 0.30026668310165405, -0.26507025957107544, -0.26328980922698975, -0.2520923614501953, -0.04836198315024376, -0.006040945649147034, -0.1007714718580246, -0.00009927153587341309, -0.09727421402931213, -0.12295319139957428, -0.10588786751031876, -0.020997993648052216, 0.07460211962461472, -0.17938102781772614, 0.1627804934978485, 0.07916433364152908, -0.1692219078540802, 0.16765402257442474, 0.34747153520584106, 0.3007120192050934, 0.23510266840457916, 0.17114463448524475, 0.17680619657039642, 0.11187000572681427, -0.09040790796279907, -0.18958528339862823, 0.006876569241285324, 0.10140366852283478, 0.33530691266059875, 0.05493823066353798, 0.23621448874473572, -0.3223765194416046, -0.025750424712896347, -0.0010090842843055725, 0.17957575619220734, -0.2820570468902588, 0.3744947612285614, -0.10124759376049042, -0.20354080200195312, -0.03352391719818115, 0.19545862078666687, -0.4312150776386261, -0.1893417090177536, 0.4375535249710083, -0.3330686390399933, -0.023478364571928978, -0.072750024497509, 0.13538490235805511, -0.2063228189945221, 0.4276816248893738, 0.6099454760551453, -0.25273072719573975, -0.10489561408758163, -0.1632958948612213, -0.823287844657898, 0.2744106352329254, 0.16693459451198578, 0.3653285503387451, 0.15372556447982788, 0.10646718740463257, 0.34870854020118713, 0.13797976076602936, 0.16275623440742493, -0.1718074232339859, -0.17165838181972504, -0.026139378547668457, -0.31517839431762695, 0.22177237272262573, 0.4238784909248352, 0.19729579985141754, 0.2831003665924072, -0.17708426713943481, -0.24255813658237457, 0.15755003690719604, 0.0665382519364357, -0.37357449531555176, 0.006628513336181641, 0.19316725432872772, 0.04361579567193985, 0.33174586296081543, 0.041513293981552124, 0.2855062484741211, -0.11557481437921524, -0.23527170717716217, -0.10371723771095276, -0.3147166073322296, 0.020008504390716553, 0.5976656079292297, 0.3069811165332794, 0.4123717248439789, -0.16278934478759766, 0.011763343587517738, 0.04546913877129555, -0.03821824863553047, 0.1040656566619873, 0.1408262550830841, -0.29902681708335876, 0.16877853870391846, 0.01256311684846878, 0.040642037987709045, -0.0045368000864982605, 0.12029722332954407, 0.16126009821891785, -0.08242413401603699, -0.33887431025505066, -0.4162818491458893, 0.4512907564640045, -0.04180199280381203, -0.2896479070186615, -0.2851940989494324, 0.33564499020576477, -0.025838255882263184, -0.013621652498841286, -0.4289170801639557, 0.051163993775844574, 0.4070279002189636, 0.18450012803077698, -0.3470900058746338, -0.05219702795147896, 0.16781896352767944, 0.09555786848068237, -0.24136702716350555, 0.1873728632926941, -0.191410630941391, -0.3596668839454651, -0.16757255792617798, -0.3394075632095337 ]
https://github.com/huggingface/datasets/pull/2801
add books3
> > Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 > > Well currently no, but I think @lewtun was about to do it (though he's currently on vacations) yes i plan to start working on this next week #2185 one question for @richarddwang - do you know if eleutherai happened to also release the "existing" datasets like enron emails and opensubtitles? in appendix c of their paper, they provide details on how they extracted these datasets, but it would be nice if we could just point to a url so we can be as close as possible to original implementation.
books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
114
text: add books3 books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 > > Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 > > Well currently no, but I think @lewtun was about to do it (though he's currently on vacations) yes i plan to start working on this next week #2185 one question for @richarddwang - do you know if eleutherai happened to also release the "existing" datasets like enron emails and opensubtitles? in appendix c of their paper, they provide details on how they extracted these datasets, but it would be nice if we could just point to a url so we can be as close as possible to original implementation.
[ 0.1541360318660736, 0.018045008182525635, -0.10303351283073425, 0.4892319440841675, -0.26448798179626465, 0.14820602536201477, 0.2484007328748703, 0.11495120823383331, 0.021385520696640015, -0.10730166733264923, -0.44819918274879456, 0.46326279640197754, 0.0008210372179746628, 0.029995238408446312, 0.09084738790988922, 0.17953138053417206, 0.024794042110443115, -0.01952139288187027, -0.0258965864777565, -0.4480975270271301, -0.2885754704475403, -0.055838681757450104, -0.14159323275089264, -0.3021748661994934, -0.07681575417518616, 0.040093667805194855, -0.5530173182487488, 0.1879529058933258, -0.30125218629837036, -0.012402569875121117, 0.42640388011932373, 0.23746027052402496, -0.00965687446296215, 0.25530171394348145, -0.00010876267333514988, -0.17247769236564636, 0.06688135862350464, -0.1601359099149704, -0.21227553486824036, -0.048562824726104736, -0.19341447949409485, -0.27663373947143555, 0.0927375853061676, -0.44451647996902466, 0.09491712599992752, -0.22572508454322815, -0.09269541501998901, -0.2170850932598114, 0.33741945028305054, 0.1367281675338745, 0.19097381830215454, 0.208311527967453, 0.3509198725223541, -0.24103733897209167, 0.4454938471317291, 0.004239022731781006, -0.07920686155557632, 0.18095819652080536, 0.42819175124168396, 0.25018540024757385, 0.02544204145669937, 0.20973588526248932, 0.30567437410354614, -0.17507696151733398, 0.3093619644641876, 0.08041162043809891, 0.28997933864593506, -0.4328190088272095, -0.10715445131063461, 0.3192022144794464, 0.5740581154823303, -0.16057926416397095, -0.44800499081611633, -0.0741695687174797, 0.06599171459674835, 0.21538600325584412, 0.12571752071380615, 0.2877332866191864, 0.011171109974384308, 0.10702624917030334, 0.2557532489299774, -0.15782468020915985, -0.2911365330219269, 0.28183817863464355, 0.010382533073425293, 0.2589578330516815, -0.09317215532064438, -0.1587809920310974, 0.18969948589801788, 0.03329438716173172, 0.327985018491745, -0.13602812588214874, 0.02289528213441372, 0.06835035234689713, 0.000029414892196655273, -0.26536786556243896, 0.20467856526374817, 0.26757708191871643, -0.02654210850596428, -0.08846398442983627, 0.16156290471553802, 0.12854385375976562, -0.07110843062400818, 0.025740226730704308, 0.6724030375480652, 0.044730763882398605, 0.07746220380067825, -0.09119034558534622, -0.11495111882686615, 0.3387260138988495, 0.28480207920074463, -0.004700228571891785, -0.23739442229270935, 0.24541006982326508, -0.4499148428440094, -0.40020227432250977, 0.08865631371736526, -0.33713069558143616, 0.1539970189332962, 0.07616644352674484, 0.17764726281166077, -0.1315377801656723, -0.20538535714149475, 0.10736638307571411, -0.16612815856933594, -0.012999404221773148, 0.024282343685626984, 0.1626800298690796, 0.1456666886806488, 0.10483572632074356, -0.19913707673549652, 0.1399262249469757, -0.32946884632110596, -0.19391143321990967, 0.13379178941249847, -0.26474958658218384, 0.3000897467136383, 0.04385166987776756, 0.26937171816825867, 0.14395560324192047, 0.08405142277479172, -0.06661844253540039, 0.43433821201324463, 0.18952007591724396, -0.09584477543830872, 0.026552299037575722, 0.06975330412387848, 0.015978731215000153, -0.3158382177352905, 0.11150990426540375, 0.027314811944961548, -0.3347741365432739, -0.3685554265975952, 0.2098516821861267, -0.00007073208689689636, -0.09157121181488037, -0.23348265886306763, 0.08768339455127716, -0.08238685876131058, 0.05893602594733238, 0.26375436782836914, -0.12979134917259216, 0.2904730439186096, -0.15050192177295685, 0.0031558312475681305, 0.04729767143726349, -0.5284760594367981, -0.03885163366794586, -0.7112610340118408, -0.22288256883621216, -0.13399559259414673, 0.21840476989746094, -0.2898450195789337, 0.12171278893947601, -0.10898810625076294, -0.054000675678253174, 0.22187399864196777, -0.07026016712188721, -0.38941115140914917, 0.06423594057559967, 0.20070378482341766, 0.20557919144630432, 0.14661797881126404, 0.19527259469032288, 0.072880320250988, -0.3833283483982086, 0.2465486079454422, -0.036783367395401, -0.18785043060779572, -0.30077147483825684, -0.15637807548046112, -0.34753966331481934, -0.18592095375061035, 0.22175893187522888, -0.0998363047838211, -0.06249801069498062, 0.28289520740509033, -0.07389958202838898, 0.17382808029651642, -0.10063810646533966, 0.17129144072532654, 0.11211738735437393, 0.320811003446579, 0.30536046624183655, 0.0827287808060646, 0.16009971499443054, -0.34429535269737244, 0.07458318769931793, -0.07333019375801086, 0.3348046541213989, 0.06279256939888, -0.25683945417404175, -0.06348805129528046, -0.10282002389431, -0.062136296182870865, -0.36143261194229126, 0.13660413026809692, -0.1273268759250641, -0.1614394634962082, -0.25457388162612915, -0.4331296384334564, 0.08579268306493759, -0.26191526651382446, 0.12627889215946198, -0.7377257943153381, 0.2317456156015396, -0.20296238362789154, 0.09129907190799713, -0.010205723345279694, 0.32627740502357483, -0.3230154514312744, -0.05669340118765831, 0.14092367887496948, -0.05008358508348465, -0.26839226484298706, -0.11287830770015717, 0.20365262031555176, 0.3884255290031433, 0.26220080256462097, -0.485007107257843, 0.4867015480995178, -0.019960489124059677, 0.14687053859233856, -0.10503211617469788, -0.28815093636512756, 0.3977832794189453, 0.0813799649477005, -0.036925144493579865, 0.2921706438064575, -0.09218568354845047, -0.02738010883331299, -0.1868388056755066, 0.023619065061211586, -0.3832278251647949, -0.018428970128297806, 0.28060516715049744, 0.1506595015525818, 0.07726576924324036, 0.03370566666126251, 0.2042243480682373, 0.20355762541294098, 0.1100483387708664, -0.015551738440990448, 0.36814141273498535, -0.3944143056869507, -0.45351850986480713, 0.06485497951507568, 0.0778825432062149, 0.20902863144874573, 0.29562997817993164, 0.3812296390533447, 0.16905492544174194, 0.16926828026771545, -0.17227232456207275, 0.17235195636749268, 0.3969678282737732, -0.0317116342484951, 0.004164267331361771, 0.09951592981815338, 0.053928837180137634, -0.22168242931365967, -0.0542033389210701, -0.01671791635453701, 0.05550755560398102, -0.04196437448263168, -0.19713620841503143, 0.005114668980240822, -0.28116509318351746, -0.07146060466766357, -0.12858900427818298, 0.12723101675510406, -0.2659660875797272, 0.1985028237104416, -0.03658273443579674, -0.39579176902770996, -0.05489365756511688, -0.11993367969989777, 0.19940735399723053, -0.3033329248428345, 0.5168332457542419, -0.2738317847251892, -0.45833685994148254, -0.1292576789855957, 0.26915255188941956, 0.11243069916963577, 0.051690395921468735, 0.34957852959632874, -0.16690997779369354, -0.08164369314908981, -0.376857191324234, -0.4651918113231659, 0.1338152289390564, -0.26853036880493164, 0.1049034371972084, 0.17351245880126953, -0.1435057371854782, -0.1293005347251892, -0.49986669421195984, -0.1405991017818451, -0.2022019475698471, -0.20711800456047058, -0.2484750598669052, -0.1143559068441391, -0.06186836212873459, -0.04977062717080116, -1.114310622215271, -0.13917744159698486, -0.1238688975572586, 0.47703784704208374, 0.015008367598056793, 0.14684909582138062, -0.13957510888576508, 0.09100418537855148, 0.2512301504611969, -0.02152898721396923, -0.0972050279378891, -0.13886018097400665, -0.24132616817951202, 0.3382253050804138, -0.33710020780563354, -0.4119178354740143, 0.20383143424987793, -0.31684553623199463, -0.00010262802243232727, -0.260699987411499, -0.25493085384368896, -0.10833343863487244, -0.12182910740375519, -0.06497923284769058, -0.041445471346378326, 0.20281663537025452, 0.1952551156282425, 0.020532984286546707, -0.29615941643714905, -0.01713154837489128, -0.08728662878274918, 0.22592461109161377, 0.3534523546695709, 0.20420192182064056, -0.214156836271286, 0.5312160849571228, 0.1066521406173706, 0.06333469599485397, 0.02306026592850685, 0.09731021523475647, 0.21976561844348907, 0.3510826528072357, 0.2592937648296356, -0.05618720501661301, -0.18269187211990356, 0.17144803702831268, -0.1540294885635376, -0.07374991476535797, 0.4645922780036926, 0.17594659328460693, -0.45683449506759644, -0.018136058002710342, 0.22731882333755493, -0.3286142349243164, -0.0623568594455719, 0.05792498588562012, 0.10916388779878616, -0.03780467063188553, 0.07328051328659058, -0.4017314910888672, -0.08155213296413422, -0.23898670077323914, -0.23698152601718903, 0.14716309309005737, 0.14042547345161438, -0.19772151112556458, -0.3078940212726593, 0.5168009400367737, -0.20395320653915405, 0.34561172127723694, 0.07179975509643555, -0.1225089430809021, 0.05951849743723869, -0.19596028327941895, 0.16143208742141724, 0.12923663854599, 0.2385905683040619, -0.30667322874069214, -0.1428193897008896, 0.3682307302951813, 0.032484106719493866, -0.3545796275138855, 0.08221451938152313, -0.5757248401641846, -0.30889904499053955, 0.7414141893386841, 0.0008035898208618164, -0.30722734332084656, 0.010189671069383621, 0.4597550630569458, 0.08528666943311691, 0.19066719710826874, 0.11541516333818436, 0.12839475274085999, -0.47091659903526306, -0.2739425599575043, 0.16548246145248413, 0.1840953677892685, -0.15082484483718872, -0.2000640481710434, -0.19246923923492432, 0.11440428346395493, 0.23409512639045715, 0.2444266378879547, -0.21865317225456238, 0.005769691430032253, 0.08387114107608795, 0.16275176405906677, 0.04165838658809662, 0.38745513558387756, 0.8437927961349487, 0.5882905125617981, -0.2273816168308258, -0.18432554602622986, 0.1553921103477478, -0.4686354100704193, 0.3343871831893921, 0.353992223739624, 0.22148454189300537, -0.04594894498586655, 0.01839868724346161, -0.09538774192333221, 0.38987383246421814, -0.05674681439995766, 0.15649238228797913, -0.24331896007061005, -0.45651566982269287, -0.35064589977264404, 0.2900504767894745, -0.05731455609202385, -0.028735220432281494, 0.11240781098604202, 0.1178012490272522, -0.1108323186635971, 0.29683226346969604, 0.10857325047254562, 1.1740617752075195, 0.10585834085941315, 0.21471360325813293, -0.044403865933418274, -0.2584100067615509, 0.3113875687122345, -0.4189615845680237, -0.12801460921764374, -0.18271052837371826, -0.31372812390327454, -0.11953664571046829, -0.0910281240940094, 0.07686062902212143, 0.4587836265563965, -0.12066914141178131, 0.11576908826828003, -0.053087931126356125, -0.09793451428413391, 0.040882378816604614, 0.35410603880882263, -0.008126012980937958, -0.17622001469135284, -0.23939165472984314, 0.1370185762643814, 0.5173203945159912, 0.000543348491191864, -0.11067201942205429, -0.11152353882789612, -0.23519808053970337, -0.012798439711332321, -0.2727108597755432, 0.15542399883270264, 0.00471508176997304, 0.18292465806007385, 0.05162785202264786, -0.20457613468170166, 0.31463032960891724, 0.26360028982162476, 0.5609410405158997, -0.0971105694770813, -0.04140080511569977, 0.06927856802940369, -0.042519621551036835, -0.05216275155544281, 0.42621323466300964, -0.03727800026535988, 0.42122572660446167, -0.08353470265865326, -0.22645944356918335, 0.07789970189332962, -0.08179743587970734, -0.40691542625427246, -0.15505672991275787, -0.005531929433345795, 0.16190987825393677, -0.18242356181144714, -0.09129297733306885, 0.2528338134288788, -0.14842216670513153, -0.34994760155677795, 0.1443318873643875, 0.23229791224002838, 0.012265325523912907, 0.1960475891828537, -0.057492274791002274, -0.23884573578834534, -0.22727985680103302, 0.5491060018539429, 0.2580072283744812, -0.3488317131996155, 0.13604389131069183, 0.33165982365608215, -0.16891367733478546, -0.35105326771736145, -0.16947242617607117, 0.49259844422340393, -0.45375239849090576, -0.20599158108234406, -0.05036231875419617, 0.019983962178230286, -0.0264898594468832, 0.3872053623199463, 0.38434481620788574, 0.23183095455169678, -0.1443672925233841, -0.056103069335222244, -0.1037641167640686, 0.47768497467041016, 0.09517274051904678, 0.42149341106414795, -0.2774306535720825, -0.11507521569728851, 0.14177556335926056, 0.3380783498287201, -0.40342697501182556, 0.4346775412559509, -0.07137208431959152, 0.0068428367376327515, 0.2999151051044464, 0.04768297076225281, 0.2841084897518158, -0.11078421771526337, 0.15082824230194092, -0.2190956324338913, -0.2687075734138489, -0.21966350078582764, -0.04152326285839081, 0.1238090991973877, 0.01922646164894104, -0.003363514319062233, -0.07939940690994263, -0.18461988866329193, -0.21738843619823456, -0.0274471677839756, 0.16514910757541656, -0.08522076904773712, 0.23228555917739868, 0.04626498371362686, 0.34518975019454956, 0.12007959932088852, -0.1564977914094925, 0.10916057974100113, 0.23085258901119232, 0.04059094190597534, -0.0012468528002500534, -0.0738687664270401, -0.12266319990158081, -0.2012576460838318, 0.2410927414894104, 0.12169533222913742, 0.12645140290260315, 0.25976452231407166, 0.16771209239959717, 0.17264313995838165, -0.14364686608314514, 0.2818889915943146, -0.007778564468026161, 0.24852719902992249, 0.09525618702173233, -0.07881619781255722, 0.16308632493019104, 0.2263774424791336, -0.2670780420303345, 0.03446535766124725, 0.20142962038516998, -0.1485581398010254, -0.05813216418027878, 0.12760882079601288, 0.37834855914115906, 0.08528690040111542, 0.10227405279874802, 0.0733223408460617, 0.06700170040130615, -0.29656755924224854, 0.22924591600894928, 0.2992387115955353, -0.162490114569664, 0.07339923828840256, 0.07778335362672806, 0.009021900594234467, 0.3669954538345337, 0.04337785765528679, 0.025654807686805725, 0.21324577927589417, 0.349995493888855, 0.477239727973938, 0.23853954672813416, -0.19521692395210266, -0.050038743764162064, 0.2267288714647293, 0.3764333426952362, 0.13707159459590912, 0.03694325312972069, 0.16510382294654846, 0.19556115567684174, 0.26509785652160645, -0.38118189573287964, 0.07083345204591751, 0.030964160338044167, -0.021379943937063217, 0.3858037292957306, -0.4819514751434326, -0.07432086020708084, -0.16169705986976624, -0.12211599946022034, -0.07699668407440186, 0.11475621908903122, 0.0933053195476532, -0.10767106711864471, -0.23177118599414825, 0.09253181517124176, -0.08088941127061844, 0.03915709629654884, -0.04028397426009178, 0.22798308730125427, 0.08202904462814331, -0.0031920447945594788, -0.048655252903699875, 0.5089833736419678, -0.08380447328090668, -0.020957060158252716, 0.02386162057518959, 0.35478994250297546, 0.22512269020080566, -0.20785373449325562, -0.1640782207250595, 0.25847798585891724, 0.28324294090270996, 0.14878325164318085, 0.010768860578536987, 0.18066318333148956, -0.2264905869960785, -0.06947806477546692, -0.15089939534664154, 0.16767902672290802, -0.1509317308664322, 0.5475357174873352, 0.12099497765302658, -0.32233020663261414, 0.23914629220962524, -0.054987840354442596, -0.38966989517211914, -0.28475260734558105, 0.3890603184700012, -0.17349310219287872, -0.09978777170181274, 0.2005210965871811, 0.08455710858106613, -0.03852502256631851, 0.08608496934175491, 0.6293399333953857, -0.25648680329322815, -0.12620624899864197, -0.3618432283401489, -0.6219561100006104, 0.16669005155563354, 0.3220241963863373, -0.01199578307569027, 0.014851139858365059, 0.2447332888841629, 0.3931889832019806, 0.07261765748262405, -0.07879561185836792, -0.4084393084049225, -0.07671887427568436, 0.13284310698509216, -0.35058194398880005, 0.1955072581768036, 0.3363261818885803, 0.2804911434650421, 0.054460734128952026, 0.0068811774253845215, -0.24594514071941376, 0.027347423136234283, -0.012516260147094727, -0.29097479581832886, -0.006648018956184387, 0.21249334514141083, -0.062172070145606995, 0.4470963180065155, -0.02267005853354931, 0.38806483149528503, -0.026239771395921707, -0.17133255302906036, -0.13117344677448273, -0.375948429107666, 0.15313184261322021, 0.40385809540748596, -0.07454624772071838, 0.18808287382125854, -0.2110871523618698, -0.019474435597658157, 0.08995714038610458, -0.036024853587150574, 0.000954069197177887, 0.15654624998569489, -0.39575862884521484, 0.13216333091259003, 0.013266071677207947, -0.07432829588651657, 0.31556427478790283, 0.30092868208885193, 0.057724084705114365, -0.08005407452583313, -0.14714716374874115, -0.25042787194252014, 0.33508333563804626, -0.049853432923555374, -0.10812602937221527, -0.14549782872200012, 0.3104172945022583, -0.030694633722305298, -0.04170772433280945, -0.44701147079467773, 0.04470715671777725, 0.4023493528366089, -0.03756072372198105, -0.2625166177749634, -0.1357719898223877, 0.19400206208229065, 0.07995440065860748, -0.4347047209739685, 0.25982290506362915, -0.060240380465984344, -0.20321224629878998, -0.3138614594936371, -0.300925612449646 ]
https://github.com/huggingface/datasets/pull/2801
add books3
@lewtun > yes i plan to start working on this next week Nice! Looking forward to it. > one question for @richarddwang - do you know if eleutherai happened to also release the "existing" datasets like enron emails and opensubtitles? Sadly, I don't know any existing dataset of enron emails, but I believe opensubtitles dataset is hosted at here. https://the-eye.eu/public/AI/pile_preliminary_components/ ![image](https://user-images.githubusercontent.com/17963619/130061667-8c17985a-1c2f-432f-89f0-66a5288611b8.png)
books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
61
text: add books3 books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 @lewtun > yes i plan to start working on this next week Nice! Looking forward to it. > one question for @richarddwang - do you know if eleutherai happened to also release the "existing" datasets like enron emails and opensubtitles? Sadly, I don't know any existing dataset of enron emails, but I believe opensubtitles dataset is hosted at here. https://the-eye.eu/public/AI/pile_preliminary_components/ ![image](https://user-images.githubusercontent.com/17963619/130061667-8c17985a-1c2f-432f-89f0-66a5288611b8.png)
[ -0.03173431009054184, 0.06290651857852936, -0.12272822856903076, 0.4528369903564453, -0.17628279328346252, 0.14710083603858948, 0.2881493866443634, 0.13088035583496094, 0.052027273923158646, -0.21616627275943756, -0.4316101670265198, 0.2901766002178192, 0.11515319347381592, 0.13204115629196167, 0.02893100306391716, 0.2508367598056793, 0.1190837100148201, -0.057884663343429565, 0.05591971427202225, -0.48093652725219727, -0.2814980447292328, -0.07290653139352798, -0.09250449389219284, -0.36421555280685425, -0.23274902999401093, 0.026321910321712494, -0.5241345763206482, 0.1449315845966339, -0.23934490978717804, -0.012126345187425613, 0.36161962151527405, 0.1676144003868103, 0.1431083083152771, 0.2545085549354553, -0.00010969833238050342, -0.15931996703147888, 0.10827720165252686, -0.1303471028804779, -0.29969653487205505, -0.12614043056964874, -0.1869569718837738, -0.2647138237953186, 0.058436475694179535, -0.3299897015094757, 0.017876222729682922, -0.3070029616355896, 0.020209964364767075, -0.21167400479316711, 0.29384976625442505, 0.20902299880981445, 0.17798151075839996, 0.24435928463935852, 0.42298781871795654, -0.15913307666778564, 0.5078956484794617, 0.07506106048822403, -0.15180987119674683, 0.11308929324150085, 0.3200165033340454, 0.23249667882919312, 0.0878010243177414, 0.2117062658071518, 0.3233587443828583, -0.14914990961551666, 0.33367782831192017, 0.17317703366279602, 0.4175396263599396, -0.41584789752960205, -0.1007033959031105, 0.28608500957489014, 0.5800021290779114, -0.223212331533432, -0.5174721479415894, -0.15856680274009705, 0.21071280539035797, 0.10238991677761078, 0.100000761449337, 0.33327147364616394, 0.12071742117404938, 0.1159190982580185, 0.45217621326446533, -0.16840077936649323, -0.2805255949497223, 0.3839361071586609, 0.09531737864017487, 0.24413196742534637, -0.058683402836322784, -0.11980361491441727, 0.23427137732505798, -0.00902831181883812, 0.3523046374320984, -0.10228477418422699, -0.06730106472969055, 0.12429994344711304, -0.17021596431732178, -0.263450562953949, 0.07937609404325485, 0.32510051131248474, -0.16013646125793457, -0.029312003403902054, 0.06735789030790329, 0.15405535697937012, 0.000982413999736309, 0.033239174634218216, 0.7382063269615173, 0.05169311538338661, 0.06456437706947327, -0.04138273373246193, -0.06600844115018845, 0.24559719860553741, 0.23052701354026794, -0.027486860752105713, -0.3116128742694855, 0.11765120923519135, -0.36114901304244995, -0.38103336095809937, 0.09870094060897827, -0.22751781344413757, 0.051851049065589905, -0.05328470468521118, 0.22787603735923767, -0.11655105650424957, -0.16992798447608948, 0.18276149034500122, -0.09616267681121826, 0.05981883034110069, 0.03150615841150284, 0.2862112522125244, 0.13340000808238983, 0.11014647781848907, -0.161326602101326, 0.20037885010242462, -0.2842188775539398, -0.24270619451999664, 0.13200350105762482, -0.31390929222106934, 0.102595254778862, 0.01323427353054285, 0.30528053641319275, 0.1890321969985962, 0.1694573611021042, -0.1565321385860443, 0.37875571846961975, 0.22839143872261047, -0.027929067611694336, -0.006194158457219601, 0.0978042334318161, 0.0029982328414916992, -0.2658930718898773, 0.10212898254394531, 0.10937196761369705, -0.2264164537191391, -0.5654189586639404, 0.2018103450536728, 0.017664983868598938, -0.07321184128522873, -0.2648839056491852, 0.13258706033229828, -0.062435828149318695, -0.007272668182849884, 0.18721482157707214, -0.08064756542444229, 0.30301526188850403, -0.11631365120410919, -0.06785856932401657, 0.05059952288866043, -0.6007280945777893, -0.08128448575735092, -0.8047327399253845, -0.263742059469223, -0.18776807188987732, 0.22966580092906952, -0.19865815341472626, 0.06746053695678711, -0.09653744101524353, -0.10010212659835815, 0.20147323608398438, -0.09041734039783478, -0.5020008683204651, 0.09339979290962219, 0.09990333020687103, 0.06743963807821274, 0.15704043209552765, 0.3755698502063751, -0.07750580459833145, -0.4148402214050293, 0.19664186239242554, 0.08579160273075104, -0.19809263944625854, -0.3098790645599365, -0.17020191252231598, -0.34111684560775757, -0.16110652685165405, 0.3273521065711975, 0.007164020091295242, -0.1450229287147522, 0.2199891209602356, -0.13220186531543732, 0.13401663303375244, -0.00006273388862609863, 0.28790155053138733, 0.11212373524904251, 0.405867338180542, 0.3358162045478821, 0.10731511563062668, 0.01660093292593956, -0.3593105673789978, 0.08874399214982986, -0.13314183056354523, 0.27325159311294556, 0.053952377289533615, -0.27669090032577515, -0.015670139342546463, -0.10337838530540466, -0.155178040266037, -0.18445535004138947, 0.1348574459552765, -0.026363976299762726, -0.19559670984745026, -0.330879807472229, -0.44015637040138245, 0.10876430571079254, -0.12453149259090424, 0.1389157474040985, -0.709492564201355, 0.21174004673957825, -0.2484212964773178, 0.008629071526229382, -0.07611442357301712, 0.26481732726097107, -0.40279626846313477, -0.09235856682062149, 0.21280315518379211, -0.009073615074157715, -0.30402255058288574, -0.09541189670562744, 0.23546051979064941, 0.37065589427948, 0.2167014181613922, -0.3426955044269562, 0.3806402385234833, -0.11679711937904358, 0.1460210233926773, -0.13378775119781494, -0.23907962441444397, 0.32147860527038574, 0.06376735866069794, 0.014662131667137146, 0.13548950850963593, -0.16687126457691193, -0.0690954402089119, -0.1472732573747635, 0.010474786162376404, -0.4612490236759186, -0.06120913848280907, 0.1910528689622879, 0.13938072323799133, 0.05820561200380325, 0.1370822787284851, 0.13286378979682922, 0.18551187217235565, 0.14116120338439941, 0.07081825286149979, 0.38527798652648926, -0.3728550970554352, -0.3186633288860321, 0.08065296709537506, -0.016006864607334137, 0.3039042353630066, 0.3061978220939636, 0.26595979928970337, 0.12699326872825623, 0.22087068855762482, -0.12058264017105103, 0.1839405596256256, 0.3474857807159424, 0.016921985894441605, 0.018495507538318634, 0.19758667051792145, 0.05606169253587723, -0.11827883124351501, -0.0019075237214565277, 0.0423324853181839, 0.030770178884267807, -0.08372941613197327, -0.2343059778213501, 0.07946395128965378, -0.28434455394744873, -0.07645238190889359, -0.1275315284729004, 0.1198451817035675, -0.16794823110103607, 0.1747177243232727, -0.023511279374361038, -0.3096682131290436, -0.010265998542308807, -0.11848047375679016, 0.10350655019283295, -0.3767031729221344, 0.357379674911499, -0.26382821798324585, -0.4116153419017792, -0.11638768762350082, 0.26139044761657715, 0.17413656413555145, 0.15157948434352875, 0.34518930315971375, -0.15134769678115845, -0.0723864883184433, -0.32141461968421936, -0.4790228009223938, 0.09491376578807831, -0.19119003415107727, 0.24643659591674805, 0.1335327923297882, -0.12407222390174866, -0.1395733654499054, -0.5037297606468201, -0.00039541255682706833, -0.12548516690731049, -0.18940088152885437, -0.3310268223285675, -0.1646285355091095, -0.07147711515426636, 0.08556747436523438, -0.8764763474464417, -0.19142787158489227, -0.19365453720092773, 0.41645848751068115, 0.004940934479236603, -0.0016299821436405182, -0.18833039700984955, 0.11784997582435608, 0.17715099453926086, 0.11215538531541824, -0.10290461033582687, -0.0739872083067894, -0.12113331258296967, 0.31738153100013733, -0.20194505155086517, -0.4062603712081909, 0.2078048586845398, -0.47353023290634155, -0.034664515405893326, -0.1888560801744461, -0.2675495147705078, -0.12289070338010788, -0.09636219590902328, -0.10894820094108582, 0.004232443869113922, 0.13519583642482758, 0.35887205600738525, -0.0035062753595411777, -0.24773430824279785, -0.012437477707862854, -0.11927743256092072, 0.12648248672485352, 0.47325316071510315, 0.22925114631652832, -0.2668951749801636, 0.5363912582397461, 0.04400532320141792, 0.25552165508270264, -0.06250070035457611, 0.016766365617513657, 0.26689985394477844, 0.2775059938430786, 0.319868266582489, -0.09676455706357956, -0.25531649589538574, 0.13042189180850983, -0.11802473664283752, -0.06972460448741913, 0.4751766324043274, 0.08254922926425934, -0.4793793261051178, -0.1300237476825714, 0.16077066957950592, -0.36032548546791077, -0.06396627426147461, 0.1174503043293953, 0.037753768265247345, 0.008345581591129303, 0.13363492488861084, -0.4113892912864685, -0.05834801867604256, -0.2123563289642334, -0.24707168340682983, 0.15669329464435577, 0.08840731531381607, -0.18709033727645874, -0.3113960325717926, 0.4449506103992462, -0.15153905749320984, 0.3534777760505676, 0.12264920026063919, -0.07581987231969833, 0.04759634658694267, -0.21424773335456848, 0.20116013288497925, 0.06492229551076889, 0.386197566986084, -0.27408164739608765, -0.2541927099227905, 0.3766946792602539, 0.0350467786192894, -0.4811991751194, 0.123674675822258, -0.5476685762405396, -0.30908364057540894, 0.7932057976722717, -0.0457330122590065, -0.33130672574043274, 0.08462734520435333, 0.4840118885040283, 0.09126266837120056, 0.15631121397018433, -0.00423354422673583, -0.0692775622010231, -0.3256314992904663, -0.43122678995132446, 0.18464519083499908, 0.19748660922050476, -0.19091078639030457, -0.02464696206152439, -0.1456260234117508, -0.02630317397415638, 0.046097733080387115, 0.24043528735637665, -0.21925750374794006, -0.004447861574590206, 0.17537757754325867, 0.2754295766353607, 0.11299601197242737, 0.4372762441635132, 0.8802855014801025, 0.5630049705505371, -0.24758195877075195, -0.38386738300323486, 0.13372072577476501, -0.4418359398841858, 0.3505435585975647, 0.35730236768722534, 0.285133957862854, -0.009564191102981567, 0.0032713841646909714, -0.10068534314632416, 0.30094507336616516, 0.09944155812263489, 0.23573079705238342, -0.1831778883934021, -0.4904840290546417, -0.3310375511646271, 0.24763327836990356, -0.16778019070625305, -0.06360086053609848, 0.0064044855535030365, 0.15619957447052002, -0.06539743393659592, 0.36205238103866577, 0.09528140723705292, 1.1992199420928955, 0.1009446531534195, 0.21666668355464935, -0.13093441724777222, -0.2793746590614319, 0.2925652265548706, -0.35097992420196533, 0.00205894373357296, -0.2071155458688736, -0.32302719354629517, -0.03185401111841202, -0.045872919261455536, 0.03849460184574127, 0.5121147632598877, -0.0805741623044014, 0.1508866250514984, -0.06842280179262161, -0.19307999312877655, -0.025605710223317146, 0.3823898434638977, 0.0010991021990776062, -0.3025342524051666, -0.13565312325954437, 0.1346045434474945, 0.5142490267753601, 0.050757911056280136, -0.15968039631843567, -0.10321128368377686, -0.176422581076622, 0.03848060965538025, -0.252902090549469, 0.10094328969717026, -0.06471004337072372, 0.10252764821052551, 0.04374945908784866, -0.20658613741397858, 0.34564515948295593, 0.27370697259902954, 0.6199021935462952, -0.1071363091468811, 0.05606142804026604, 0.18683457374572754, 0.04328455403447151, -0.13489803671836853, 0.3327334225177765, -0.15169066190719604, 0.45185229182243347, -0.10178517550230026, -0.2968677878379822, 0.019110988825559616, -0.011419147253036499, -0.3319266438484192, -0.17875784635543823, 0.05544096976518631, 0.2930481433868408, -0.23890259861946106, -0.08610557019710541, 0.17181673645973206, -0.09950439631938934, -0.26817214488983154, 0.16290493309497833, 0.14891213178634644, 0.0680319145321846, 0.10732512176036835, -0.06871908903121948, -0.2673669159412384, -0.27124539017677307, 0.6281370520591736, 0.2517716884613037, -0.29354143142700195, 0.2661648690700531, 0.32138732075691223, -0.15947137773036957, -0.3078133761882782, -0.14161528646945953, 0.5010761618614197, -0.4537571370601654, -0.20558321475982666, 0.1983533650636673, -0.13935641944408417, 0.01082568522542715, 0.30339324474334717, 0.37665289640426636, 0.17137260735034943, -0.18145759403705597, -0.017396289855241776, -0.19195407629013062, 0.35638970136642456, 0.18501168489456177, 0.3641963005065918, -0.1510644257068634, -0.15131622552871704, 0.1753467470407486, 0.36249303817749023, -0.38730233907699585, 0.3462890684604645, -0.07605569064617157, 0.07142605632543564, 0.22290509939193726, -0.012335911393165588, 0.2549333870410919, -0.04233082756400108, 0.16950488090515137, -0.21671108901500702, -0.2670193016529083, -0.21523422002792358, -0.08151568472385406, 0.13516148924827576, 0.03389774635434151, 0.008201444521546364, -0.09709207713603973, -0.20762266218662262, -0.2498343288898468, -0.10459836572408676, 0.21520361304283142, -0.068227618932724, 0.19705450534820557, -0.04333631321787834, 0.35806044936180115, 0.03399387001991272, -0.11834162473678589, 0.08323796093463898, 0.13649851083755493, 0.032160818576812744, 0.05708513781428337, -0.017267420887947083, -0.012605968862771988, -0.1104920357465744, 0.2894608676433563, 0.04848877340555191, 0.29568368196487427, 0.26663923263549805, 0.05767181143164635, 0.12321725487709045, -0.1749810129404068, 0.33305591344833374, -0.060263633728027344, 0.20195730030536652, 0.09750687330961227, -0.027238471433520317, 0.23039987683296204, 0.24341467022895813, -0.40081456303596497, 0.07348404079675674, 0.051168493926525116, -0.18597570061683655, -0.0060762204229831696, 0.1286938339471817, 0.36428114771842957, 0.12873785197734833, 0.19313707947731018, 0.1930094063282013, 0.05997572839260101, -0.26242494583129883, 0.18325354158878326, 0.20903131365776062, -0.18178072571754456, -0.03896916285157204, 0.14634333550930023, 0.07130680978298187, 0.3808818459510803, 0.15761741995811462, 0.03914015367627144, 0.19050899147987366, 0.18807247281074524, 0.49717092514038086, 0.20141848921775818, -0.2469363659620285, -0.0317361019551754, 0.4025532603263855, 0.40358245372772217, 0.12978532910346985, 0.03641624376177788, 0.16359446942806244, 0.22001397609710693, 0.23963816463947296, -0.3670634329319, 0.03703756630420685, 0.02810201793909073, -0.04374803602695465, 0.3794705271720886, -0.3789890706539154, -0.0906573086977005, -0.14518168568611145, -0.0752478539943695, -0.1258898228406906, -0.15440142154693604, 0.12904737889766693, -0.06325636804103851, -0.18063393235206604, 0.024888359010219574, 0.02368052303791046, 0.062072742730379105, -0.12815572321414948, 0.229498490691185, 0.11657288670539856, -0.06559140980243683, 0.09486399590969086, 0.3465750217437744, -0.04976261034607887, 0.02565920725464821, -0.046461548656225204, 0.41039782762527466, 0.24827824532985687, -0.21846303343772888, -0.22150751948356628, 0.19712430238723755, 0.23241965472698212, 0.340999573469162, 0.08422555029392242, 0.19750167429447174, -0.26695409417152405, -0.14380323886871338, -0.2231825441122055, 0.17435091733932495, -0.2710481286048889, 0.5108486413955688, -0.06411630660295486, -0.32648253440856934, 0.036234334111213684, -0.033429257571697235, -0.4195592999458313, -0.2628052234649658, 0.29265639185905457, -0.3654913604259491, -0.1243068277835846, 0.17555125057697296, 0.06948743015527725, -0.07026322185993195, 0.24002425372600555, 0.508054256439209, -0.29016584157943726, -0.12489809840917587, -0.34893059730529785, -0.6224111914634705, 0.24187982082366943, 0.24349240958690643, 0.1364448517560959, 0.004894518759101629, 0.23122559487819672, 0.34757959842681885, 0.011190086603164673, -0.03803050518035889, -0.3250490427017212, -0.1277022808790207, 0.1403881013393402, -0.2845079004764557, 0.1965179592370987, 0.19575205445289612, 0.271017462015152, 0.15650248527526855, -0.05998588353395462, -0.31908318400382996, 0.12104466557502747, -0.025141587480902672, -0.30441784858703613, -0.079367496073246, 0.17282547056674957, -0.2029050886631012, 0.5284371376037598, -0.046746090054512024, 0.40523576736450195, -0.08301270008087158, -0.0408705472946167, -0.15063801407814026, -0.4322080910205841, -0.018796510994434357, 0.4633694291114807, 0.06384304165840149, 0.25446346402168274, -0.2965080738067627, 0.0848814994096756, 0.11150890588760376, -0.033694613724946976, -0.013290934264659882, 0.14825035631656647, -0.3178975582122803, 0.14767277240753174, -0.034498509019613266, -0.01579906977713108, 0.25578615069389343, 0.23819628357887268, 0.12296256422996521, -0.17400193214416504, -0.13729846477508545, -0.28790611028671265, 0.38890326023101807, -0.04945691302418709, -0.12233547866344452, -0.22854946553707123, 0.23784705996513367, 0.0005392506718635559, -0.03827490657567978, -0.3142232596874237, 0.10871116071939468, 0.35063061118125916, 0.09762535989284515, -0.2702864110469818, -0.18076114356517792, 0.23557351529598236, 0.11100631952285767, -0.3892248272895813, 0.1597370207309723, -0.04588810354471207, -0.11404605954885483, -0.273780882358551, -0.3012251853942871 ]
https://github.com/huggingface/datasets/pull/2801
add books3
thanks for the link @richarddwang! i think that corpus is actually the youtube subtitles one and my impression is that eleutherai have only uploaded the 14 new datasets they created. i've contacted one of the authors so hopefully they can share some additional info for us :) btw it might take a while to put together all the corpora if i also need to preprocess them (e.g. the open subtitles / enron email etc), but i expect no longer than a few weeks.
books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675
83
text: add books3 books3 is part of EleutherAI/The Pile, but AFAIK, The Pile dataset blend all sub datasets together thus we are not able to use just one of its sub dataset from The Pile data. So I create an independent dataset using The Pile preliminary components. When I was creating dataset card. I found there is room for creating / editing dataset card. I've made it an issue. #2797 Also I am wondering whether the import of The Pile dataset is actively undertaken (because I may need it recently)? #1675 thanks for the link @richarddwang! i think that corpus is actually the youtube subtitles one and my impression is that eleutherai have only uploaded the 14 new datasets they created. i've contacted one of the authors so hopefully they can share some additional info for us :) btw it might take a while to put together all the corpora if i also need to preprocess them (e.g. the open subtitles / enron email etc), but i expect no longer than a few weeks.
[ 0.16851650178432465, 0.02184303104877472, -0.14169442653656006, 0.4721744656562805, -0.07986319065093994, 0.13082611560821533, 0.1036871001124382, 0.09680546820163727, -0.19023855030536652, -0.1441584974527359, -0.3798748254776001, 0.33336368203163147, 0.26599156856536865, -0.1258610635995865, 0.1299634426832199, 0.04280680790543556, 0.08054780960083008, -0.08525879681110382, 0.05518186837434769, -0.39143627882003784, -0.23664404451847076, -0.03007441572844982, -0.20613400638103485, -0.47206437587738037, -0.008434152230620384, -0.050237029790878296, -0.4452458620071411, 0.09599578380584717, -0.2166009545326233, -0.19370193779468536, 0.2524300515651703, 0.375514417886734, 0.07444309443235397, 0.4534044563770294, -0.000110802793642506, -0.24393558502197266, 0.0961553305387497, -0.1689707338809967, -0.219842329621315, -0.051330044865608215, -0.13583937287330627, -0.2764245569705963, 0.005464997608214617, -0.29901108145713806, -0.17582595348358154, -0.12649071216583252, 0.06003384292125702, -0.23535877466201782, 0.08684045821428299, 0.07543453574180603, 0.1891484409570694, 0.13529923558235168, 0.11435846984386444, -0.16139033436775208, 0.3630858361721039, 0.25769472122192383, -0.07311820983886719, 0.23027871549129486, 0.6090946197509766, 0.2736697793006897, 0.05081905424594879, 0.30515652894973755, 0.19530846178531647, -0.1348990797996521, 0.29430335760116577, -0.10323493927717209, 0.21346160769462585, -0.5877453088760376, 0.05442997068166733, 0.2620328962802887, 0.7948804497718811, -0.24040821194648743, -0.34807154536247253, 0.0062410905957221985, 0.1914016306400299, 0.3336709439754486, 0.11843665689229965, 0.34746989607810974, 0.08858288824558258, -0.05832221731543541, 0.24819274246692657, -0.0341973751783371, -0.2249755710363388, 0.15792831778526306, 0.10571426153182983, 0.05065841227769852, -0.06010616570711136, -0.052657581865787506, 0.045005638152360916, -0.06567803770303726, 0.06838220357894897, -0.10400940477848053, -0.12704189121723175, 0.15158995985984802, -0.032685596495866776, -0.2606698274612427, 0.1540972888469696, 0.12755842506885529, -0.14649657905101776, -0.19493329524993896, 0.24802301824092865, 0.22964462637901306, 0.06840483099222183, -0.029039643704891205, 0.7260503768920898, -0.10949505865573883, 0.16989856958389282, -0.030962664633989334, -0.10212685167789459, 0.21583232283592224, 0.13568247854709625, -0.015179254114627838, -0.29047611355781555, 0.06398935616016388, -0.4192911982536316, -0.1015387773513794, 0.24707578122615814, -0.3282119035720825, 0.23895880579948425, 0.05239387974143028, 0.17280203104019165, -0.019883129745721817, -0.10743346065282822, 0.2563461661338806, -0.23006445169448853, 0.004577251151204109, -0.035599496215581894, 0.19226157665252686, 0.08057942241430283, -0.10182026773691177, -0.16891223192214966, 0.14162351191043854, -0.32340869307518005, -0.20925170183181763, 0.18612158298492432, -0.36602550745010376, 0.1804446429014206, -0.05249210074543953, 0.1554066240787506, 0.044797904789447784, 0.07100657373666763, -0.23964619636535645, 0.5231336355209351, 0.2974701225757599, 0.1320657879114151, 0.20633096992969513, 0.09689792990684509, 0.07085484266281128, -0.24766868352890015, 0.11392956227064133, 0.019772779196500778, -0.28334611654281616, -0.3088936507701874, 0.2298528403043747, 0.0834905132651329, -0.07767849415540695, -0.414558082818985, 0.18664002418518066, 0.2401190996170044, -0.035086777061223984, 0.3259943127632141, -0.06619226932525635, 0.0660569816827774, -0.14332108199596405, -0.1977531462907791, 0.14439062774181366, -0.46345531940460205, 0.055950962007045746, -0.5894080996513367, -0.20721663534641266, 0.06864182651042938, 0.05295434966683388, -0.13826453685760498, 0.11777886748313904, -0.011004243046045303, 0.08562630414962769, 0.2688392102718353, -0.2681617736816406, -0.3475840091705322, 0.2532620131969452, 0.20458610355854034, 0.13410182297229767, 0.07229109853506088, 0.1977802813053131, 0.292441725730896, -0.5045379996299744, 0.2484753429889679, -0.04711287468671799, -0.12068994343280792, -0.15205299854278564, -0.20105205476284027, 0.021235836669802666, -0.3370535373687744, 0.20718523859977722, -0.13096925616264343, -0.14482897520065308, 0.2526159882545471, -0.13256719708442688, 0.1758536845445633, -0.010561544448137283, 0.33942320942878723, 0.36403387784957886, 0.30871304869651794, 0.24375495314598083, 0.16870194673538208, 0.08510509133338928, -0.2535577714443207, 0.09717937558889389, -0.08001752197742462, 0.46586349606513977, 0.2399778515100479, -0.3531176447868347, -0.027390822768211365, -0.12650173902511597, -0.13328197598457336, -0.211077019572258, 0.140607550740242, -0.06573641300201416, -0.3998984694480896, -0.3792950510978699, -0.3324487805366516, -0.02875428833067417, -0.20489607751369476, 0.01218448206782341, -0.734003484249115, 0.09500245004892349, -0.2692562937736511, 0.047085460275411606, 0.03616580367088318, 0.2835279703140259, -0.19207054376602173, -0.010242978110909462, 0.2097579836845398, 0.04591407626867294, -0.2568560540676117, 0.18480730056762695, 0.03725587576627731, 0.1252763420343399, 0.2553337514400482, -0.475670725107193, 0.31951481103897095, -0.0690959244966507, 0.23459601402282715, -0.22662761807441711, -0.07179903239011765, 0.14277686178684235, 0.07607313990592957, -0.015633098781108856, 0.21547584235668182, -0.19469787180423737, 0.049228034913539886, -0.032282754778862, -0.14401382207870483, -0.3478262722492218, 0.020975399762392044, 0.29087570309638977, 0.185929074883461, 0.14894385635852814, -0.040602974593639374, 0.34920522570610046, 0.1285330057144165, 0.13291500508785248, -0.04167405515909195, 0.334097683429718, -0.44343286752700806, -0.40905943512916565, 0.034039415419101715, 0.006942521780729294, 0.1309061050415039, 0.22788909077644348, 0.39307722449302673, 0.027754761278629303, 0.21207308769226074, -0.16942547261714935, 0.2205267995595932, 0.26340043544769287, -0.010894018225371838, 0.11494570970535278, 0.14759454131126404, 0.10185189545154572, -0.20500892400741577, 0.07973551750183105, 0.1475026160478592, 0.0993538498878479, -0.14823253452777863, -0.222112238407135, 0.10041739046573639, -0.48391059041023254, 0.016164736822247505, -0.1874103993177414, 0.18894654512405396, -0.12748154997825623, 0.10393580049276352, 0.04612283408641815, -0.37500712275505066, 0.0609409436583519, 0.021705910563468933, 0.17658966779708862, -0.33545243740081787, 0.309929221868515, -0.10734787583351135, -0.43235278129577637, -0.12155813723802567, 0.22293159365653992, 0.10497558116912842, 0.1652524471282959, 0.3633682429790497, -0.1328805536031723, -0.02133174240589142, -0.35189446806907654, -0.37949469685554504, 0.11755331605672836, -0.1981203854084015, -0.0311132725328207, 0.1281488835811615, -0.04891465604305267, -0.021610228344798088, -0.4003511369228363, -0.03760800138115883, -0.06679172813892365, -0.2663690149784088, -0.2243550568819046, -0.22014182806015015, -0.18385520577430725, -0.06869606673717499, -0.8402719497680664, -0.0539424791932106, -0.3662039637565613, 0.15866580605506897, 0.013038620352745056, 0.22617003321647644, 0.07997960597276688, -0.07942144572734833, 0.06357424706220627, 0.1764274686574936, 0.0874909833073616, -0.1280786246061325, -0.303941935300827, 0.2844308912754059, -0.2598479986190796, -0.490815669298172, 0.2973179221153259, -0.34306877851486206, 0.1328994631767273, -0.057814180850982666, -0.1424654722213745, 0.06660476326942444, -0.10078038275241852, -0.2589842677116394, 0.03202664107084274, 0.09044642746448517, 0.37270671129226685, -0.011401278898119926, -0.27743658423423767, -0.10048381984233856, -0.08385413885116577, 0.13837996125221252, 0.5564611554145813, 0.2697526812553406, -0.424125611782074, 0.4297742545604706, -0.020009174942970276, 0.14607509970664978, 0.11168037354946136, 0.06936492770910263, 0.2929317355155945, 0.42497092485427856, 0.270551860332489, 0.008578203618526459, -0.330651193857193, 0.18100237846374512, -0.07605256140232086, -0.07229137420654297, 0.657696008682251, 0.1098005548119545, -0.514448881149292, -0.10365504771471024, 0.017813295125961304, -0.24963849782943726, 0.0033035650849342346, 0.09139751642942429, -0.08725802600383759, 0.07168813794851303, 0.19812288880348206, -0.33375367522239685, -0.15066538751125336, -0.2757817208766937, -0.2867702841758728, 0.1977052539587021, 0.0642525777220726, -0.08399594575166702, -0.2255953997373581, 0.5128003358840942, -0.3353936970233917, 0.25704750418663025, 0.1496870219707489, -0.15957869589328766, -0.05688526853919029, -0.1845734715461731, 0.1681891530752182, 0.15011689066886902, 0.37161684036254883, -0.5011001229286194, -0.17322485148906708, 0.3662051856517792, -0.046110525727272034, -0.35333889722824097, 0.034029651433229446, -0.47344520688056946, -0.08939285576343536, 0.6835939884185791, -0.12229254841804504, -0.2696859538555145, 0.13908182084560394, 0.3375924825668335, 0.022289492189884186, 0.15714949369430542, 0.05476069822907448, -0.07195207476615906, -0.4754839837551117, -0.3264005482196808, 0.04362085834145546, 0.31691545248031616, -0.08485211431980133, -0.0038865525275468826, -0.28013351559638977, 0.016224555671215057, 0.2450472116470337, 0.38344806432724, -0.08319142460823059, 0.13006016612052917, 0.3858175277709961, 0.30319830775260925, -0.1325080394744873, 0.24361258745193481, 0.9166169166564941, 0.489917129278183, -0.26258525252342224, -0.02616848796606064, 0.17621546983718872, -0.5459710955619812, 0.3706856667995453, 0.34853029251098633, 0.370248019695282, -0.08620616048574448, -0.04195154458284378, -0.1304941028356552, 0.06793255358934402, 0.18358376622200012, 0.055881112813949585, -0.14520201086997986, -0.6546211838722229, -0.418212354183197, 0.16225840151309967, -0.12279701232910156, -0.09587544202804565, 0.15759390592575073, 0.04834672436118126, -0.21410289406776428, 0.35890400409698486, 0.24244257807731628, 1.2442090511322021, -0.0855429470539093, 0.10212311893701553, -0.10477972775697708, 0.0737602561712265, 0.2818336486816406, -0.4120579957962036, 0.05144848674535751, -0.2491179257631302, -0.47730112075805664, -0.14523400366306305, -0.08560627698898315, 0.07312202453613281, 0.5005636215209961, -0.32606473565101624, 0.14561104774475098, 0.04128040373325348, -0.0786268413066864, -0.029577946290373802, 0.13690173625946045, 0.2235405296087265, -0.2700185775756836, -0.10386361181735992, 0.13480480015277863, 0.26334482431411743, 0.16727812588214874, -0.17160117626190186, -0.11989858746528625, -0.10051306337118149, 0.010612815618515015, -0.2619682550430298, 0.11103598028421402, 0.12723802030086517, -0.08572360873222351, 0.05718611180782318, -0.1643056571483612, 0.3600478768348694, 0.32243460416793823, 0.5795937180519104, -0.01659001037478447, 0.01528757344931364, 0.18157075345516205, 0.2612195312976837, -0.2237156331539154, 0.3102012872695923, -0.020236365497112274, 0.43646907806396484, -0.20927280187606812, -0.1492639034986496, -0.017245955765247345, -0.009557267650961876, -0.16194188594818115, -0.08982688188552856, 0.10071291029453278, 0.16545891761779785, -0.2525588870048523, -0.38085663318634033, 0.308891236782074, -0.17589150369167328, -0.24410636723041534, 0.1425253301858902, 0.054983288049697876, -0.1428936868906021, 0.1915377825498581, -0.013194013386964798, -0.2879570722579956, -0.17606423795223236, 0.530178427696228, 0.3274458050727844, -0.3542408347129822, 0.23250067234039307, 0.4487718939781189, -0.19628514349460602, -0.36573103070259094, -0.32154831290245056, 0.332806795835495, -0.45020708441734314, -0.08338280022144318, 0.0012021457077935338, -0.13906650245189667, 0.06281644850969315, 0.3894365131855011, 0.15092521905899048, 0.2437210977077484, -0.1408313661813736, 0.054704755544662476, -0.200618714094162, 0.22188730537891388, 0.06030423194169998, 0.2444486767053604, -0.18526840209960938, -0.1275588423013687, 0.26365646719932556, 0.49005958437919617, -0.39256343245506287, 0.20805813372135162, -0.304730087518692, 0.2156292051076889, 0.18559278547763824, -0.0052295103669166565, 0.01448635570704937, -0.17989102005958557, 0.13817177712917328, -0.19800511002540588, -0.2504015862941742, -0.22183269262313843, 0.009382858872413635, 0.1476026326417923, 0.015472086146473885, -0.039273202419281006, 0.005280192010104656, -0.17620036005973816, -0.36461588740348816, -0.1616152822971344, -0.004674050956964493, 0.04148354381322861, 0.20581690967082977, -0.0814765989780426, 0.2846263349056244, 0.17891080677509308, -0.06545281410217285, 0.18852545320987701, 0.18451270461082458, 0.09613564610481262, -0.005869499407708645, -0.21024996042251587, -0.09107542783021927, -0.1825001984834671, 0.15636765956878662, 0.13669006526470184, 0.3144013285636902, 0.03881673514842987, 0.15310992300510406, 0.19609753787517548, 0.007145252078771591, 0.3128455877304077, -0.049889370799064636, 0.1298450529575348, -0.020679326727986336, -0.06708259880542755, -0.022124946117401123, 0.2231714129447937, -0.35820820927619934, 0.09550827741622925, -0.058257441967725754, -0.2328716367483139, -0.01578444242477417, 0.18745988607406616, 0.28917649388313293, 0.1578027755022049, 0.27352702617645264, 0.2365710735321045, 0.22555463016033173, -0.18936291337013245, 0.25804874300956726, 0.08104531466960907, -0.04874326288700104, -0.05036325380206108, 0.026685819029808044, 0.1908981204032898, 0.2531546354293823, -0.13601557910442352, 0.10055398941040039, 0.25104713439941406, 0.5647200345993042, 0.40254518389701843, 0.26851686835289, -0.29620811343193054, 0.24213005602359772, 0.5837583541870117, 0.3988966941833496, 0.06442324817180634, 0.10672285407781601, -0.15630954504013062, 0.2188965231180191, 0.04394049569964409, -0.2813417911529541, 0.117139533162117, -0.10619079321622849, -0.0630892813205719, 0.08810225129127502, -0.335853636264801, 0.0354059636592865, -0.2547754645347595, -0.12973849475383759, -0.07610052824020386, -0.156850665807724, 0.09502571821212769, -0.033444955945014954, -0.2850305736064911, 0.1303022801876068, -0.14475014805793762, 0.13299259543418884, -0.042244937270879745, 0.41331323981285095, 0.11875379830598831, -0.03844224661588669, 0.0637127235531807, 0.448470801115036, 0.058606989681720734, 0.2150903046131134, -0.03426947072148323, 0.43706387281417847, 0.18509866297245026, -0.2387179434299469, -0.11133060604333878, 0.13814476132392883, 0.17888104915618896, 0.2969924807548523, 0.06603109836578369, 0.1745586395263672, -0.16615405678749084, -0.0994996428489685, -0.03397028520703316, 0.1622512936592102, 0.053830087184906006, 0.6087069511413574, -0.12322980165481567, -0.28431805968284607, 0.15766043961048126, 0.009528502821922302, -0.49856263399124146, -0.1595604568719864, 0.5988897085189819, -0.3021697402000427, 0.021153844892978668, 0.028314925730228424, 0.08779581636190414, -0.1318407654762268, 0.2525986433029175, 0.4443749487400055, -0.2717081308364868, -0.16481097042560577, -0.3167102336883545, -0.6031596660614014, 0.2717256247997284, 0.17953909933567047, -0.03372263163328171, 0.053183771669864655, 0.327009916305542, 0.4550701975822449, 0.0442981943488121, -0.1380704790353775, -0.4260854721069336, -0.06017455458641052, 0.1265178918838501, -0.27154266834259033, 0.10839980840682983, -0.04379107058048248, 0.29399123787879944, 0.06659959256649017, -0.021365897729992867, -0.19353072345256805, -0.04613199457526207, 0.043897904455661774, -0.23986516892910004, -0.1555810272693634, 0.31025299429893494, 0.04038185626268387, 0.25919297337532043, -0.18490566313266754, 0.34401535987854004, -0.03290320187807083, -0.04257110506296158, -0.017113562673330307, -0.3607850670814514, 0.13299499452114105, 0.4947144687175751, 0.11726607382297516, 0.24871250987052917, -0.17760233581066132, 0.209678053855896, 0.19556774199008942, -0.1679786890745163, 0.05575678497552872, 0.23890747129917145, -0.3320299983024597, 0.10577322542667389, 0.013460196554660797, -0.016306128352880478, 0.2430756837129593, 0.19154956936836243, 0.1885245442390442, -0.14148230850696564, -0.3335670828819275, -0.470425009727478, 0.559747040271759, -0.09562142938375473, -0.17563031613826752, -0.26338979601860046, 0.32494914531707764, -0.09391661733388901, -0.023707157000899315, -0.48870140314102173, 0.054494284093379974, 0.36071211099624634, -0.13962578773498535, -0.373477578163147, -0.06463909149169922, -0.1142147034406662, 0.09746380150318146, -0.40952181816101074, 0.06644675135612488, -0.04042532294988632, -0.13844968378543854, -0.4227510690689087, -0.29219895601272583 ]
https://github.com/huggingface/datasets/pull/2800
Support streaming tar files
Hi ! Why do we need the custom `readline` for exactly ? feel free to add a comment to say why it's needed
This PR adds support to stream tar files by using the `fsspec` tar protocol. It also uses the custom `readline` implemented in PR #2786. The corresponding test is implemented in PR #2786.
23
text: Support streaming tar files This PR adds support to stream tar files by using the `fsspec` tar protocol. It also uses the custom `readline` implemented in PR #2786. The corresponding test is implemented in PR #2786. Hi ! Why do we need the custom `readline` for exactly ? feel free to add a comment to say why it's needed
[ -0.15804025530815125, -0.6269318461418152, -0.17320875823497772, 0.015758082270622253, -0.08351318538188934, -0.2600640654563904, -0.17883099615573883, 0.03967059403657913, 0.14870694279670715, 0.24596180021762848, 0.3665529787540436, 0.25851675868034363, 0.0345379076898098, 0.31007128953933716, 0.0967424139380455, -0.4722020924091339, 0.10575222223997116, 0.40568357706069946, 0.3143782615661621, 0.31034570932388306, -0.2460659295320511, 0.22945554554462433, -0.12004254758358002, -0.34838706254959106, 0.2062591165304184, 0.4256172478199005, -0.04051357880234718, 0.14870309829711914, -0.38867849111557007, -0.41702622175216675, 0.10689026117324829, 0.2471439093351364, 0.22878135740756989, 0.1258830577135086, -0.00011639418517006561, -0.08616387844085693, 0.10957889258861542, -0.18445457518100739, 0.054195839911699295, -0.23749156296253204, -0.055727388709783554, 0.11468124389648438, 0.13590316474437714, -0.08847165107727051, -0.24559921026229858, -0.05468552187085152, -0.030926818028092384, -0.17445403337478638, 0.3687050938606262, 0.5035976767539978, 0.1612229347229004, 0.25537529587745667, -0.28887102007865906, -0.2401307225227356, 0.46813473105430603, 0.13893947005271912, -0.30107665061950684, -0.28750553727149963, 0.2757783532142639, 0.33305713534355164, -0.043317414820194244, -0.19958756864070892, 0.046743668615818024, 0.05079234018921852, 0.3279634118080139, -0.20790736377239227, 0.07090263068675995, -0.3165748119354248, -0.151275634765625, 0.3106454610824585, 0.49728113412857056, 0.06297075748443604, 0.09919089823961258, 0.08445396274328232, -0.2560301423072815, -0.3489605784416199, 0.02148199826478958, -0.0691184252500534, -0.08843520283699036, 0.22235754132270813, -0.09338878095149994, -0.09400101006031036, -0.3899841010570526, -0.22024540603160858, 0.05459236353635788, 0.06802399456501007, -0.09738841652870178, 0.02506810426712036, 0.4931964576244354, 0.4714275598526001, 0.0980021059513092, 0.007708407938480377, -0.16160708665847778, -0.3235054016113281, 0.35932278633117676, -0.16626758873462677, -0.07218828052282333, 0.14196595549583435, -0.027013622224330902, 0.4361189007759094, 0.3867614269256592, 0.1438748687505722, -0.0524764247238636, 0.14368027448654175, -0.17935062944889069, 0.08845996856689453, 0.03203671798110008, -0.1250205934047699, -0.15827016532421112, 0.2877367436885834, 0.15555086731910706, -0.15759053826332092, 0.24527591466903687, 0.12566639482975006, -0.45959603786468506, 0.159359872341156, 0.09508942067623138, -0.26817259192466736, -0.04498189315199852, 0.012973256409168243, 0.06695779412984848, -0.4173893332481384, -0.06151846423745155, 0.21803301572799683, 0.051393281668424606, 0.2649807929992676, -0.1264435350894928, -0.0976121574640274, -0.11718534678220749, -0.20648445188999176, 0.015268458053469658, 0.08193272352218628, -0.2602377235889435, 0.07810313999652863, 0.008759591728448868, 0.01950843818485737, 0.4204292595386505, -0.14599481225013733, 0.12167303264141083, -0.05386829748749733, -0.03886028379201889, -0.20118334889411926, 0.41575539112091064, 0.5287853479385376, -0.12664571404457092, -0.4522037208080292, 0.010421928018331528, -0.05913873389363289, -0.2776632010936737, 0.1914961040019989, 0.11418405175209045, -0.5106893181800842, 0.1335001289844513, 0.20197944343090057, -0.23734891414642334, -0.09369678795337677, -0.04825334995985031, 0.08917316049337387, -0.3666962683200836, -0.33578309416770935, 0.4576248526573181, -0.1000332236289978, -0.363534152507782, -0.017923401668667793, -0.06853043287992477, -0.15534724295139313, -0.5012156367301941, 0.007174044847488403, -0.19172941148281097, -0.23451021313667297, 0.5366171598434448, 0.01648586615920067, -0.08475486934185028, -0.17882168292999268, -0.17513427138328552, 0.11341176927089691, 0.7608794569969177, -0.16311514377593994, -0.19697412848472595, 0.5890104174613953, 0.007125750184059143, 0.19754792749881744, 0.5982480049133301, -0.09450536221265793, 0.6028317213058472, -0.10584594309329987, -0.2763693928718567, -0.2566412091255188, -0.05529388040304184, -0.09378299862146378, -0.11869767308235168, 0.16474474966526031, -0.006867900490760803, -0.10502047836780548, -0.30132633447647095, 0.08384330570697784, 0.13755783438682556, -0.11017083376646042, 0.23763445019721985, 0.08082398772239685, -0.18740683794021606, -0.36436372995376587, 0.38703542947769165, 0.14608249068260193, -0.12966495752334595, 0.09586579352617264, 0.13887891173362732, 0.023384355008602142, -0.1811133772134781, 0.11958534270524979, 0.32999667525291443, -0.18122369050979614, -0.24942386150360107, 0.15362179279327393, 0.27955949306488037, -0.4911690056324005, 0.009671971201896667, 0.3112374544143677, 0.07146823406219482, -0.0905766636133194, -0.17977555096149445, -0.10384501516819, -0.3543190360069275, -0.09054026752710342, 0.17698034644126892, 0.055035509169101715, -0.1628263294696808, 0.16718603670597076, -0.05844610184431076, 0.25523892045021057, 0.11959975957870483, -0.1705460250377655, 0.01943865418434143, 0.27783745527267456, 0.2583090364933014, -0.06874032318592072, -0.16429883241653442, 0.23358102142810822, 0.08660367876291275, -0.42798417806625366, 0.013073397800326347, 0.25180813670158386, 0.1298471838235855, -0.027532242238521576, -0.310868501663208, 0.0342043861746788, 0.09863923490047455, -0.03524915128946304, -0.02361101657152176, -0.16793593764305115, -0.03588992357254028, -0.03361304849386215, -0.24008217453956604, 0.08639641106128693, 0.19684679806232452, 0.02087252028286457, -0.04441392794251442, -0.011850999668240547, -0.2849884033203125, 0.027300767600536346, 0.49093782901763916, -0.26709893345832825, -0.32949957251548767, 0.3706899583339691, 0.19601856172084808, -0.5392148494720459, 0.2424619197845459, 0.27113109827041626, 0.44644391536712646, 0.31469234824180603, 0.4130041003227234, 0.26935675740242004, 0.04292045533657074, -0.3836216330528259, 0.33837077021598816, -0.10226625204086304, -0.32563522458076477, -0.20415708422660828, -0.16507187485694885, 0.12120864540338516, -0.3049803078174591, -0.16005073487758636, -0.1732838898897171, 0.0191724244505167, -0.18495769798755646, 0.05760934203863144, -0.12104020267724991, -0.2639160454273224, -0.1562015861272812, 0.09933395683765411, 0.32218873500823975, -0.12574414908885956, 0.022276874631643295, 0.11936977505683899, -0.09790408611297607, -0.08290862292051315, 0.1387902796268463, 0.76705402135849, -0.1113976389169693, -0.144929900765419, -0.5160924196243286, 0.07988882064819336, -0.16369393467903137, 0.18019825220108032, -0.17239955067634583, -0.08919496834278107, 0.3317534625530243, -0.051252081990242004, -0.06601598858833313, -0.18630929291248322, -0.4148990511894226, -0.047223806381225586, -0.04090402275323868, -0.11350946128368378, 0.4516936242580414, 0.13238222897052765, 0.5302298069000244, -0.2522549629211426, -0.2114892601966858, -0.3462526798248291, -0.17000029981136322, -0.2000342160463333, -0.12690308690071106, -0.15756450593471527, -0.5421723127365112, -0.4617255628108978, 0.37610357999801636, -0.31466197967529297, 0.8526360392570496, 0.12347593903541565, -0.03559324890375137, -0.17014576494693756, -0.12383071333169937, 0.2772373557090759, -0.15967148542404175, 0.05270181596279144, -0.11504753679037094, -0.4833749234676361, -0.09070107340812683, -0.07487118989229202, -0.10774260759353638, 0.17664062976837158, 0.16151218116283417, 0.02220740169286728, 0.0617138110101223, -0.6808059811592102, -0.05708322674036026, -0.09321507811546326, 0.4078042805194855, 0.02877592109143734, -0.07714715600013733, 0.41501131653785706, 0.021895306184887886, -0.13891816139221191, -0.08965978026390076, -0.2931751012802124, -0.07278052717447281, 0.05104418843984604, 0.09937305003404617, 0.12829288840293884, 0.19417694211006165, 0.13635365664958954, 0.33408743143081665, -0.02467123046517372, 0.02490701898932457, 0.3096499443054199, -0.0031771529465913773, 0.33649227023124695, -0.3655961751937866, 0.2700970470905304, 0.18546488881111145, -0.04531799256801605, -0.06882025301456451, 0.4869406223297119, -0.18826615810394287, -0.2646074891090393, -0.05309663712978363, 0.03750014677643776, 0.09923339635133743, 0.13778376579284668, -0.027482958510518074, 0.03504220396280289, 0.21549645066261292, -0.2615714967250824, 0.08285742253065109, 0.07286714017391205, 0.20557433366775513, 0.09814804792404175, 0.3229510486125946, 0.24797981977462769, -0.10829243063926697, -0.24605095386505127, 0.24584238231182098, -0.2702997624874115, 0.30726683139801025, 0.18819546699523926, -0.009841580875217915, -0.24375678598880768, -0.1640443205833435, 0.08255834877490997, -0.1334501951932907, 0.24839898943901062, -0.25323426723480225, -0.14359375834465027, 0.05415385589003563, -0.00009943917393684387, 0.08557090908288956, -0.01645369455218315, 0.08549335598945618, -0.009866578504443169, 0.08428589999675751, -0.052820757031440735, -0.04848179966211319, -0.17310672998428345, 0.49050968885421753, -0.37550386786460876, 0.17791064083576202, -0.27262580394744873, -0.13647906482219696, -0.21728640794754028, 0.3621833324432373, 0.13872608542442322, 0.08936528116464615, -0.23586395382881165, -0.46479833126068115, 0.12862339615821838, 0.40612226724624634, -0.04023267328739166, 0.09947169572114944, -0.049396734684705734, -0.1786995828151703, -0.03092830255627632, -0.3046592175960541, -0.002381935715675354, -0.24872496724128723, 0.03767187520861626, 0.2880932688713074, -0.4583466649055481, -0.3895438611507416, -0.035642627626657486, -0.07044941186904907, 0.3142678439617157, 0.3018447160720825, 0.08272865414619446, 0.15235817432403564, 0.14081871509552002, 0.043215733021497726, -0.1999301165342331, 0.09790968149900436, 0.12152958661317825, -0.2633998394012451, 0.06515806168317795, -0.6949372291564941, 0.37285053730010986, -0.08924248814582825, -0.08635687828063965, 0.0025833286345005035, 0.0075719356536865234, -0.05380570888519287, 0.5239035487174988, -0.14802443981170654, 0.9811040163040161, 0.12874795496463776, 0.05155285447835922, 0.2543536126613617, -0.5601087808609009, 0.03353995829820633, -0.6485211849212646, -0.15090946853160858, 0.005978595465421677, -0.06551962345838547, -0.3468969166278839, -0.04916812852025032, 0.703366756439209, -0.1783079206943512, -0.5561488270759583, 0.08247890323400497, 0.5162657499313354, -0.26119276881217957, 0.3874020576477051, 0.01477254182100296, 0.08634992688894272, 0.10378213226795197, -0.1570991724729538, 0.13357602059841156, 0.11860476434230804, -0.1525220274925232, 0.07127531617879868, -0.04460960254073143, 0.3890060782432556, -0.4123076796531677, -0.39186036586761475, -0.2559850215911865, -0.14448703825473785, -0.381730854511261, 0.21888066828250885, -0.06695803254842758, 0.426669716835022, 0.41855427622795105, 0.023742947727441788, 0.02829645946621895, -0.2648555636405945, 0.23107938468456268, 0.20407098531723022, -0.0028120880015194416, 0.028845345601439476, -0.0807265043258667, -0.22211331129074097, -0.23250532150268555, -0.22705474495887756, 0.23688733577728271, -0.38974425196647644, -0.2368774563074112, 0.08546067774295807, 0.19327494502067566, 0.4808240532875061, -0.1501787155866623, -0.05978730693459511, 0.07722429186105728, -0.1876712441444397, -0.19082020223140717, 0.09546668827533722, -0.2751970887184143, -0.16305343806743622, -0.21982493996620178, 0.06920897960662842, -0.25811970233917236, -0.1726156771183014, -0.16263818740844727, -0.2196824550628662, 0.3591884672641754, -0.14867061376571655, -0.23352539539337158, -0.12255491316318512, -0.29250192642211914, -0.11393080651760101, -0.33409613370895386, -0.21817108988761902, -0.2842506766319275, 0.059045083820819855, -0.22740459442138672, 0.1350671350955963, 0.7345759868621826, 0.13832437992095947, 0.1353130042552948, -0.06793513894081116, 0.056453630328178406, -0.061595045030117035, -0.5486833453178406, -0.46033480763435364, 0.3526919186115265, 0.2003541886806488, 0.2106701135635376, 0.1808895319700241, -0.04453518986701965, -0.30975964665412903, 0.13619454205036163, 0.0058366041630506516, 0.053427986800670624, 0.1356375366449356, -0.1788773238658905, 0.2639549672603607, 0.11709348857402802, 0.10247783362865448, 0.29535162448883057, -0.33964529633522034, -0.11800439655780792, -0.13300232589244843, 0.19001418352127075, 0.07462267577648163, 0.0003635035827755928, -0.3298434913158417, 0.31041938066482544, -0.12492726743221283, 0.11571858823299408, 0.019241057336330414, -0.013222480192780495, -0.0844317227602005, 0.43868863582611084, 0.3255007266998291, 0.15966391563415527, -0.3608331084251404, 0.11923113465309143, -0.09034061431884766, 0.5733281373977661, -0.12541823089122772, -0.031790390610694885, -0.517876148223877, -0.1264159381389618, 0.09076221287250519, 0.18233110010623932, 0.602800726890564, 0.08101818710565567, 0.3331003785133362, 0.3700738549232483, 0.04584488645195961, -0.3611786663532257, 0.1694219559431076, 0.10072541236877441, -0.04140390828251839, -0.1684761345386505, 0.25261732935905457, 0.1448749601840973, 0.08966119587421417, 0.18402498960494995, 0.1883663535118103, 0.29255226254463196, 0.0639922171831131, 0.28459465503692627, 0.46447619795799255, 0.015635184943675995, 0.2346520870923996, 0.1098894253373146, 0.22022929787635803, -0.08901751041412354, 0.009246747940778732, -0.17677785456180573, -0.04781259596347809, 0.08454057574272156, -0.14113199710845947, -0.07802842557430267, -0.01386977732181549, -0.22311051189899445, 0.13526591658592224, 0.2623598873615265, 0.06943155080080032, 0.20537728071212769, -0.09546151012182236, -0.27319905161857605, 0.43393418192863464, -0.12952160835266113, -0.06968221068382263, 0.21736174821853638, 0.37596428394317627, 0.2900134325027466, 0.0479656420648098, 0.34596022963523865, -0.16378037631511688, -0.12402160465717316, 0.12801948189735413, -0.2973802089691162, 0.25270622968673706, -0.005110226571559906, 0.060622438788414, 0.021564796566963196, 0.1958085149526596, 0.511605978012085, 0.49956515431404114, 0.03964974731206894, 0.14626812934875488, 0.36966627836227417, -0.12783017754554749, -0.33115363121032715, 0.1458803117275238, -0.22518643736839294, 0.10314606875181198, 0.07926206290721893, 0.004058465361595154, 0.4597904086112976, -0.079778753221035, 0.25821107625961304, -0.060534216463565826, -0.11949284374713898, -0.17867672443389893, -0.1563318818807602, -0.09036370366811752, -0.06931707262992859, 0.2804511785507202, 0.2719840407371521, 0.4958193302154541, 0.22599579393863678, 0.12498140335083008, -0.08803898841142654, 0.7439313530921936, -0.15382078289985657, -0.03775150701403618, -0.48819851875305176, 0.3434763550758362, 0.28884559869766235, -0.07514799386262894, -0.1439734846353531, 0.32310721278190613, -0.26768574118614197, -0.021663982421159744, -0.15832455456256866, -0.028961334377527237, 0.10534727573394775, 0.041380785405635834, 0.04093880206346512, 0.15608899295330048, 0.3958755135536194, 0.22163954377174377, 0.07332304865121841, -0.015589072369039059, -0.28666314482688904, 0.07544627785682678, 0.0324140340089798, 0.17558765411376953, -0.046916328370571136, -0.09886948019266129, -0.05467270314693451, 0.1478516012430191, 0.07499334216117859, -0.29150086641311646, -0.3698033392429352, 0.017017275094985962, 0.24603751301765442, -0.1479535549879074, 0.03333617001771927, 0.3822953701019287, -0.0403129905462265, -0.05653725564479828, 0.13704133033752441, 0.1572330743074417, 0.17040865123271942, 0.11653368920087814, -0.10368631780147552, 0.12116430699825287, 0.2590075433254242, 0.11576291173696518, 0.15303020179271698, 0.005148772150278091, 0.513964056968689, -0.15102428197860718, -0.10392988473176956, 0.14948055148124695, 0.47451865673065186, 0.12744252383708954, -0.11255528777837753, -0.10083556175231934, 0.23203065991401672, 0.011320054531097412, -0.09180465340614319, -0.2209686040878296, 0.17984433472156525, 0.07199468463659286, 0.020271772518754005, -0.3161153197288513, 0.12546944618225098, -0.45429733395576477, 0.0299900583922863, 0.03491675481200218, -0.006355606019496918, 0.07430803775787354, -0.33049172163009644, -0.092343270778656, 0.02817983739078045, 0.5667009949684143, 0.04106844961643219, 0.11525583267211914, 0.13965807855129242, 0.12584185600280762, -0.032779499888420105, 0.09152032434940338, -0.8322845697402954, -0.26939377188682556, 0.3325099050998688, -0.1139800176024437, -0.15777769684791565, 0.233982115983963, -0.25221726298332214, 0.14639067649841309, -0.029573168605566025, 0.5508480668067932, -0.05699445307254791, -0.010696273297071457, -0.14408674836158752, -0.42635637521743774 ]
https://github.com/huggingface/datasets/pull/2798
Fix streaming zip files
Hi ! I don't fully understand this change @albertvillanova The `_extract` method used to return the compound URL that points to the root of the inside of the archive. This way users can use the usual os.path.join or other functions to point to the relevant files. I don't see why you're using a glob pattern ?
Currently, streaming remote zip data files gives `FileNotFoundError` message: ```python data_files = f"https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip" ds = load_dataset("json", split="train", data_files=data_files, streaming=True) next(iter(ds)) ``` This PR fixes it by adding a glob string. The corresponding test is implemented in PR #2786.
56
text: Fix streaming zip files Currently, streaming remote zip data files gives `FileNotFoundError` message: ```python data_files = f"https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip" ds = load_dataset("json", split="train", data_files=data_files, streaming=True) next(iter(ds)) ``` This PR fixes it by adding a glob string. The corresponding test is implemented in PR #2786. Hi ! I don't fully understand this change @albertvillanova The `_extract` method used to return the compound URL that points to the root of the inside of the archive. This way users can use the usual os.path.join or other functions to point to the relevant files. I don't see why you're using a glob pattern ?
[ -0.1290787309408188, -0.06978297233581543, 0.004349138587713242, 0.05662112310528755, -0.07854738086462021, -0.18946832418441772, -0.18363651633262634, 0.6244072914123535, -0.1017870157957077, 0.1592349112033844, 0.1433112621307373, 0.18322211503982544, -0.022877585142850876, 0.04857178032398224, 0.11169308423995972, -0.2086639702320099, 0.020001627504825592, 0.26564741134643555, -0.037570685148239136, 0.16061720252037048, -0.2844754457473755, 0.3123890459537506, -0.43869125843048096, -0.1690046340227127, 0.06232485547661781, 0.042760737240314484, -0.07429427653551102, 0.39729511737823486, -0.3594513237476349, -0.2687906324863434, -0.07014819234609604, -0.07270251214504242, 0.08850287646055222, 0.3178364634513855, -0.00011160159920109436, 0.03951931744813919, 0.4065079689025879, -0.16564306616783142, -0.29295870661735535, -0.44553059339523315, -0.08814455568790436, -0.23215435445308685, -0.22125296294689178, -0.14280946552753448, -0.016031529754400253, -0.27740252017974854, 0.3179038465023041, -0.2190713733434677, 0.3884819746017456, 0.4882911741733551, 0.12208853662014008, 0.35510319471359253, 0.12564317882061005, 0.03945659473538399, 0.08298119157552719, 0.036848124116659164, -0.1554124355316162, 0.3343277871608734, 0.2306586354970932, -0.0962292030453682, -0.15348654985427856, 0.264217734336853, -0.06495928764343262, 0.11254541575908661, 0.2642827332019806, 0.07000112533569336, -0.2391701638698578, -0.41472652554512024, -0.2577110528945923, 0.035621222108602524, 0.4186708629131317, -0.15568140149116516, -0.2965976893901825, -0.026379413902759552, -0.0852414220571518, -0.32120993733406067, 0.19881153106689453, 0.4466930329799652, -0.2605755031108856, 0.2695557177066803, -0.008134051226079464, -0.21926599740982056, -0.44119149446487427, -0.02283482253551483, -0.06995592266321182, 0.5826877355575562, -0.013265916146337986, 0.08679667860269547, 0.2705119848251343, 0.3259900212287903, 0.21685054898262024, -0.16292263567447662, -0.18100109696388245, -0.1703823357820511, 0.08625397086143494, -0.14336903393268585, -0.04067058861255646, -0.006805650889873505, 0.21586179733276367, 0.4906311631202698, 0.11581271886825562, -0.0927027016878128, 0.045650023967027664, 0.09799673408269882, -0.08383575081825256, 0.2514050304889679, 0.1915408968925476, 0.34887656569480896, 0.14245539903640747, 0.3760540187358856, 0.027048315852880478, -0.15729352831840515, 0.2739439010620117, -0.23316554725170135, -0.31485190987586975, 0.0883823037147522, 0.39825552701950073, -0.19059813022613525, -0.197356715798378, 0.015207040123641491, -0.4620774984359741, -0.34589317440986633, -0.0506342388689518, 0.14889079332351685, -0.13958264887332916, 0.19792404770851135, -0.02786269783973694, 0.21147841215133667, -0.014689929783344269, -0.2755022943019867, -0.06705566495656967, 0.2141309529542923, -0.1788558065891266, 0.170017808675766, 0.014202877879142761, -0.3595421612262726, 0.26892149448394775, -0.18256345391273499, 0.10756220668554306, 0.03685200959444046, 0.14170950651168823, -0.06301295757293701, 0.4683067500591278, 0.28974565863609314, -0.08271228522062302, -0.13064159452915192, 0.43839287757873535, -0.05788669362664223, -0.18795308470726013, 0.29162317514419556, -0.16955646872520447, -0.4643234312534332, -0.11358870565891266, 0.1454716920852661, -0.43028247356414795, -0.16730785369873047, 0.2971053719520569, 0.08439503610134125, -0.5975157022476196, -0.45202261209487915, 0.32706597447395325, 0.1416093111038208, -0.07636473327875137, -0.05325737223029137, 0.1539304554462433, 0.5780062079429626, -0.46726328134536743, 0.06798303127288818, 0.17000393569469452, -0.04500463232398033, 0.6125931739807129, 0.12316778302192688, -0.17974792420864105, -0.1038227453827858, -0.3330351710319519, 0.37664222717285156, 0.4833625555038452, -0.0382087267935276, -0.460360586643219, 0.6622041463851929, -0.3570989966392517, 0.33188751339912415, 0.3839128911495209, -0.13002467155456543, -0.0936369076371193, -0.06549244374036789, 0.19822409749031067, 0.21269561350345612, -0.017124420031905174, 0.020026328042149544, -0.48983344435691833, 0.061256371438503265, 0.17917144298553467, 0.03738480433821678, -0.10504582524299622, 0.2539500296115875, -0.01151372492313385, -0.3911772072315216, 0.3135155737400055, -0.025592941790819168, -0.07609230279922485, -0.01921544224023819, 0.4304910898208618, 0.07699476182460785, -0.13469694554805756, 0.2758938670158386, -0.16455206274986267, 0.12220766395330429, -0.293750137090683, -0.006956331431865692, -0.28767722845077515, 0.04164336621761322, -0.1869596540927887, -0.07463318109512329, -0.06417042016983032, -0.4489084780216217, 0.047703757882118225, 0.2995831072330475, 0.2860393226146698, 0.025516897439956665, -0.3445087671279907, 0.33498692512512207, -0.09467042237520218, 0.1525879204273224, -0.3885047137737274, 0.5017152428627014, -0.08825649321079254, -0.07497511804103851, 0.003147527575492859, -0.25027790665626526, 0.04132121056318283, -0.3110194504261017, -0.23067033290863037, 0.5324641466140747, -0.33953857421875, -0.06791703402996063, 0.3992222845554352, -0.23767443001270294, 0.10330888628959656, -0.3397769331932068, 0.22343364357948303, 0.47029560804367065, 0.13139715790748596, 0.2257566750049591, -0.2642136514186859, 0.1845429390668869, -0.031103912740945816, -0.004851438105106354, -0.030907105654478073, -0.031655870378017426, 0.08996046334505081, -0.04982153698801994, -0.32873937487602234, 0.16091331839561462, 0.22004340589046478, 0.11429977416992188, 0.08240815997123718, -0.01773168332874775, -0.3554432988166809, -0.14541393518447876, 0.22084656357765198, -0.31072181463241577, -0.3282299339771271, 0.4920370578765869, -0.10268119722604752, -0.2127213478088379, 0.04460488259792328, 0.5968608856201172, 0.8022974133491516, 0.2068227082490921, 0.06833772361278534, 0.20997603237628937, 0.0498717837035656, -0.3280327320098877, 0.4085210859775543, 0.024753443896770477, -0.10240337997674942, 0.3235516846179962, -0.07792138308286667, 0.05743570253252983, -0.2543684244155884, -0.3111620247364044, -0.05756574869155884, 0.20391693711280823, -0.12126781046390533, 0.05580545961856842, -0.12664800882339478, -0.6565578579902649, -0.2470102608203888, -0.006702641025185585, -0.05848955735564232, -0.21093302965164185, 0.05539397895336151, 0.052426550537347794, -0.28788691759109497, 0.06353448331356049, 0.05199776217341423, 0.3976467251777649, -0.10790805518627167, -0.35714030265808105, -0.3361373245716095, -0.03487773984670639, -0.0991131141781807, 0.10672533512115479, 0.2511465847492218, -0.04621674492955208, 0.23732344806194305, -0.27134591341018677, 0.017270084470510483, -0.6754469275474548, -0.09115629643201828, 0.053144004195928574, -0.14923425018787384, 0.2496703565120697, 0.1829085797071457, 0.3310924172401428, 0.0891905277967453, -0.41912633180618286, 0.16174976527690887, -0.3780190050601959, -0.0889681801199913, 0.03407633677124977, -0.0020607835613191128, 0.16229736804962158, -0.28705471754074097, -0.606062114238739, -0.2725183665752411, -0.436748206615448, 0.47202932834625244, -0.08288198709487915, 0.05618973821401596, 0.4261077642440796, 0.08610127866268158, 0.02681807056069374, 0.08936683088541031, -0.31673675775527954, -0.05978871136903763, -0.7889955043792725, 0.48279887437820435, -0.07276687026023865, -0.1476454883813858, 0.03727163001894951, -0.025573745369911194, -0.2736312747001648, 0.23380737006664276, -0.2756034731864929, -0.42766353487968445, -0.11400367319583893, 0.1548520028591156, -0.0581425204873085, 0.04452997446060181, 0.3162914514541626, -0.1753557026386261, -0.15228281915187836, -0.0165938138961792, -0.08325672149658203, -0.01985650509595871, 0.3470959961414337, 0.5102174878120422, 0.198879212141037, 0.2455998659133911, 0.10165339708328247, 0.38220882415771484, 0.07431630790233612, 0.09344354271888733, 0.38280531764030457, -0.03729792684316635, 0.3924540877342224, -0.08341944962739944, 0.10365764796733856, 0.061191607266664505, -0.015752315521240234, -0.2994128465652466, 0.1291799396276474, 0.02191665582358837, -0.10335500538349152, -0.12158820033073425, -0.007652007043361664, -0.3703345060348511, -0.13848887383937836, 0.2274356186389923, 0.02408565953373909, -0.011144846677780151, -0.02359304204583168, -0.2709902822971344, 0.006511639803647995, 0.0802023634314537, 0.1326594054698944, 0.2694894075393677, 0.4183266758918762, 0.013404197059571743, -0.05207079276442528, -0.13822919130325317, -0.4100141227245331, 0.4813687801361084, 0.2763672471046448, 0.011367138475179672, 0.017736855894327164, -0.34761926531791687, -0.018549270927906036, -0.06570624560117722, 0.614723265171051, -0.24902816116809845, -0.13432413339614868, 0.030543427914381027, -0.01103002019226551, 0.20159871876239777, -0.3111547827720642, -0.1788361370563507, 0.2739192247390747, -0.06324265897274017, 0.298658549785614, -0.15007002651691437, -0.10230445116758347, 0.3318217992782593, -0.025409648194909096, 0.1870448738336563, -0.16684794425964355, -0.17655813694000244, -0.27013182640075684, -0.24525941908359528, 0.1176079660654068, 0.15916143357753754, 0.038339342921972275, -0.19631768763065338, 0.11862729489803314, 0.3956237733364105, 0.09991440922021866, 0.02566865086555481, -0.12372313439846039, 0.3858824074268341, -0.03669202700257301, -0.12460233271121979, 0.2346072643995285, 0.2767006456851959, 0.15355579555034637, 0.42634955048561096, 0.10369525849819183, -0.24395862221717834, -0.015151675790548325, 0.1395796686410904, 0.25068482756614685, 0.33946090936660767, 0.055144622921943665, 0.02572821080684662, -0.06634411960840225, 0.38242220878601074, -0.1923826038837433, 0.12745143473148346, 0.29372745752334595, -0.30864495038986206, -0.027506284415721893, -0.37687623500823975, 0.37253716588020325, 0.15076787769794464, 0.10842303931713104, 0.6651690006256104, -0.10105670988559723, 0.03805633634328842, 0.07300075888633728, -0.1289796233177185, 0.8443006277084351, 0.14973703026771545, 0.051275089383125305, 0.308748334646225, -0.1676284372806549, 0.37570706009864807, -0.5987740755081177, 0.235812246799469, -0.1510239690542221, -0.5362135171890259, -0.1432061791419983, -0.04290634021162987, 0.3386659324169159, -0.11155317723751068, -0.6229971051216125, 0.40153440833091736, 0.18442891538143158, 0.052472248673439026, 0.3016904890537262, -0.09634655714035034, -0.5784287452697754, 0.10039331018924713, -0.29349836707115173, 0.033551059663295746, -0.08136829733848572, 0.27470263838768005, -0.08345157653093338, -0.42923885583877563, -0.003987178206443787, -0.33544325828552246, -0.16935282945632935, 0.2194288671016693, -0.29881173372268677, -0.1728547215461731, 0.24414756894111633, -0.12080232799053192, -0.22592081129550934, 0.3891449570655823, -0.26546329259872437, -0.1593388468027115, -0.19151203334331512, 0.13637270033359528, -0.19956055283546448, 0.023340046405792236, 0.054737433791160583, 0.022342581301927567, 0.11264418065547943, -0.08830477297306061, -0.25353777408599854, 0.11501526832580566, -0.45064741373062134, -0.28201913833618164, 0.14475083351135254, -0.023726195096969604, 0.14613673090934753, 0.04717544838786125, -0.1805112510919571, 0.05364642292261124, -0.40271028876304626, -0.10634852945804596, 0.10822701454162598, -0.14462387561798096, -0.3112833499908447, -0.12401214987039566, -0.11934134364128113, -0.39571237564086914, 0.004381498321890831, 0.21244481205940247, -0.3642081320285797, 0.21974307298660278, 0.2336525022983551, -0.19069617986679077, 0.07206902652978897, -0.18763062357902527, 0.010910004377365112, -0.18082797527313232, -0.15015335381031036, 0.1787300407886505, -0.024144871160387993, 0.20518167316913605, 0.10963739454746246, 0.12221605330705643, 0.31228315830230713, 0.23865929245948792, -0.10172618925571442, -0.09921038895845413, -0.045344822108745575, -0.07687343657016754, -0.21022959053516388, 0.28750285506248474, 0.09436876326799393, -0.014242928475141525, 0.49458447098731995, -0.2061067819595337, -0.32296493649482727, 0.06863752752542496, -0.0567045733332634, 0.14163784682750702, -0.23273822665214539, 0.1026926189661026, 0.4019851088523865, -0.09812614321708679, 0.05618571490049362, 0.46425044536590576, -0.07921187579631805, -0.16924437880516052, -0.023026786744594574, 0.15536272525787354, 0.1446663737297058, -0.31388968229293823, -0.09614106267690659, 0.04959492385387421, 0.033941447734832764, 0.09346683323383331, -0.08241663128137589, -0.01262889988720417, -0.06948484480381012, 0.15792566537857056, 0.2646326422691345, -0.04242514818906784, -0.22867463529109955, -0.03760343790054321, -0.11784243583679199, 0.5695415735244751, -0.0018807495944201946, 0.01093129813671112, -0.3767419755458832, -0.05441560596227646, -0.2939542531967163, 0.04297487810254097, 0.16619156301021576, 0.3867788016796112, 0.3331909477710724, -0.014317698776721954, -0.14988520741462708, -0.3677593171596527, 0.4360155165195465, 0.4063928425312042, -0.19045059382915497, -0.005004158243536949, 0.27464428544044495, 0.13476133346557617, -0.06143346056342125, -0.053343918174505234, 0.02338337153196335, 0.00549895316362381, 0.054738473147153854, 0.015689626336097717, 0.21452230215072632, 0.05733583867549896, 0.11822983622550964, -0.030409226194024086, 0.33000847697257996, 0.26054322719573975, 0.24741706252098083, 0.47354352474212646, -0.06407816708087921, 0.06814460456371307, -0.06703152507543564, -0.19677689671516418, 0.24719366431236267, -0.25350189208984375, -0.18401983380317688, 0.28421521186828613, 0.010743532329797745, 0.10876642167568207, -0.3473198413848877, -0.35663902759552, -0.03327019140124321, 0.2105139195919037, 0.11320345103740692, 0.3149442672729492, 0.26089024543762207, 0.33352601528167725, -0.43070149421691895, -0.00639524357393384, -0.011675072833895683, 0.05050124600529671, 0.2702036499977112, 0.06859174370765686, -0.3431028723716736, -0.12721194326877594, -0.32396385073661804, 0.2555491030216217, 0.15733622014522552, 0.1448998749256134, 0.19796538352966309, 0.12648382782936096, -0.007168762385845184, 0.029120709747076035, 0.03778868168592453, -0.05986905097961426, 0.28682467341423035, -0.4499770998954773, 0.023060422390699387, 0.25982242822647095, -0.17720088362693787, 0.32639551162719727, 0.2538606524467468, 0.5242965817451477, 0.15864044427871704, 0.17073051631450653, -0.009841185994446278, -0.1824876070022583, -0.04196573421359062, 0.09376933425664902, 0.07087966799736023, 0.07100189477205276, -0.29315629601478577, 0.20107676088809967, 0.21209941804409027, -0.14749085903167725, 0.7408736348152161, -0.11857980489730835, 0.18188394606113434, -0.13619031012058258, -0.04184143990278244, 0.2615009546279907, -0.029069453477859497, -0.18476121127605438, -0.2847885489463806, -0.41179361939430237, 0.056045565754175186, 0.017509639263153076, -0.111312635242939, -0.024169310927391052, 0.20646986365318298, 0.07733084261417389, 0.17093758285045624, 0.37071511149406433, 0.5635610818862915, -0.15790894627571106, -0.49447476863861084, -0.44059568643569946, -0.465274453163147, -0.04195854812860489, 0.133893683552742, 0.13913780450820923, -0.07013824582099915, 0.07939089834690094, 0.009514294564723969, 0.03287089616060257, -0.33651018142700195, 0.010439690202474594, -0.09576176106929779, 0.16911223530769348, -0.4328121244907379, -0.007073976099491119, 0.35529273748397827, 0.34139445424079895, 0.05164425075054169, -0.15781286358833313, 0.007333371788263321, 0.003495544195175171, 0.0570995956659317, 0.06264448165893555, -0.11426346004009247, -0.09814698994159698, -0.17321957647800446, 0.3577999770641327, 0.044688642024993896, 0.21497578918933868, -0.26238754391670227, -0.17570260167121887, 0.009211186319589615, 0.0821557492017746, -0.10254552215337753, -0.2588481605052948, 0.0915999561548233, 0.5421323776245117, 0.04641968756914139, 0.10538557171821594, -0.3749750852584839, 0.2508403956890106, -0.01579703576862812, 0.12318138033151627, -0.28407755494117737, -0.011085957288742065, -0.12834715843200684, 0.03913100063800812, 0.005496311001479626, 0.2619920074939728, -0.041857630014419556, -0.04652463272213936, -0.41856902837753296, -0.16132523119449615, 0.6932932138442993, -0.21683141589164734, -0.1614910513162613, 0.23324072360992432, 0.06814263015985489, 0.27208438515663147, 0.09950628876686096, -0.3581487536430359, 0.10923469811677933, 0.17333540320396423, -0.02250351384282112, -0.16706663370132446, 0.18997223675251007, 0.0736474096775055, 0.1450018584728241, 0.06140441074967384, 0.2183767557144165, 0.11986470222473145, -0.255391389131546, 0.11431659758090973, -0.14013434946537018 ]
https://github.com/huggingface/datasets/pull/2798
Fix streaming zip files
This change is to allow this: ```python data_files = f"https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip" ds = load_dataset("json", split="train", data_files=data_files, streaming=True) assert isinstance(ds, IterableDataset) ``` Note that in this case the user will not call os.path.join. Before this PR it gave error because pointing to the root, without any subsequent join, gives error: ```python fsspec.open("zip://::https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip") ```
Currently, streaming remote zip data files gives `FileNotFoundError` message: ```python data_files = f"https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip" ds = load_dataset("json", split="train", data_files=data_files, streaming=True) next(iter(ds)) ``` This PR fixes it by adding a glob string. The corresponding test is implemented in PR #2786.
51
text: Fix streaming zip files Currently, streaming remote zip data files gives `FileNotFoundError` message: ```python data_files = f"https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip" ds = load_dataset("json", split="train", data_files=data_files, streaming=True) next(iter(ds)) ``` This PR fixes it by adding a glob string. The corresponding test is implemented in PR #2786. This change is to allow this: ```python data_files = f"https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip" ds = load_dataset("json", split="train", data_files=data_files, streaming=True) assert isinstance(ds, IterableDataset) ``` Note that in this case the user will not call os.path.join. Before this PR it gave error because pointing to the root, without any subsequent join, gives error: ```python fsspec.open("zip://::https://huggingface.co/datasets/albertvillanova/datasets-tests-compression/resolve/main/sample.zip") ```
[ -0.29066598415374756, -0.18002454936504364, -0.015624337829649448, -0.02739403396844864, -0.09774762392044067, -0.269691526889801, -0.23924820125102997, 0.5161339044570923, -0.0742914080619812, 0.14273762702941895, -0.002059381455183029, 0.1085103377699852, 0.03024175763130188, 0.07898487150669098, -0.06655815243721008, -0.0067076534032821655, 0.064358651638031, 0.282274067401886, -0.21767401695251465, 0.16251684725284576, -0.26699966192245483, 0.3888806104660034, -0.41902071237564087, -0.047524869441986084, -0.022123390808701515, -0.09436987340450287, -0.04139713943004608, 0.5744858384132385, -0.21586382389068604, -0.39281681180000305, 0.050818875432014465, 0.05767129734158516, 0.008457839488983154, 0.4322354793548584, -0.00011920857650693506, 0.12039382755756378, 0.3490930199623108, -0.0870010033249855, -0.26672282814979553, -0.3551334738731384, -0.013739172369241714, -0.14068889617919922, -0.03442481905221939, -0.10134746134281158, -0.13949856162071228, -0.03428076207637787, 0.3540964424610138, -0.3606843948364258, 0.5257934331893921, 0.5636202096939087, 0.05071210488677025, 0.5110770463943481, 0.21260936558246613, -0.0023972527123987675, -0.015265122056007385, 0.07127370685338974, -0.15478217601776123, 0.28284305334091187, 0.2044350802898407, -0.30165424942970276, -0.009641677141189575, 0.12230062484741211, 0.037672750651836395, 0.009902683086693287, 0.2608812153339386, -0.23568382859230042, -0.09512258321046829, -0.3573475480079651, -0.30759069323539734, 0.1515112817287445, 0.18636225163936615, -0.1505785882472992, -0.44619300961494446, -0.06697887182235718, -0.2821056842803955, -0.18664157390594482, 0.29418590664863586, 0.37043774127960205, -0.3302222788333893, 0.29624152183532715, 0.1478232890367508, 0.1016477718949318, -0.30598947405815125, -0.0386771559715271, -0.09823350608348846, 0.47871366143226624, -0.03819954767823219, 0.1285904198884964, 0.2334720641374588, 0.16960924863815308, -0.04471497982740402, -0.11829812824726105, -0.1772114336490631, -0.2594144344329834, -0.1674058884382248, -0.054568156599998474, 0.08340729773044586, 0.010804377496242523, 0.16946062445640564, 0.40141111612319946, -0.06737350672483444, -0.12749555706977844, -0.05314043536782265, 0.07611209154129028, 0.04552082717418671, 0.0451224260032177, 0.17700375616550446, 0.2675004005432129, 0.2088526338338852, 0.31263136863708496, 0.0023372843861579895, -0.053958356380462646, 0.2876247763633728, -0.4617920517921448, -0.4468139708042145, 0.19448316097259521, 0.6030746102333069, -0.09068209677934647, -0.40306755900382996, 0.015530159696936607, -0.4086690843105316, -0.19319099187850952, 0.10420956462621689, 0.2726764678955078, -0.11875103414058685, 0.21448132395744324, 0.0246378555893898, 0.21877454221248627, -0.18129239976406097, -0.09711790084838867, 0.014396721497178078, 0.18929199874401093, -0.1701580286026001, 0.09886406362056732, 0.01902695745229721, -0.3642643094062805, 0.3787846863269806, -0.30300456285476685, 0.20806212723255157, -0.06080743297934532, 0.06551934778690338, -0.1720825731754303, 0.4243386387825012, 0.3795691132545471, -0.08262662589550018, -0.2521757185459137, 0.2559731602668762, -0.16535095870494843, -0.2141377329826355, 0.15740615129470825, -0.08133713155984879, -0.4405970573425293, -0.1965126395225525, 0.06391465663909912, -0.440607488155365, -0.10413582623004913, 0.2985993027687073, -0.11187532544136047, -0.5912429690361023, -0.5083979368209839, 0.3457482159137726, 0.09897412359714508, -0.173317551612854, 0.044204503297805786, 0.14175216853618622, 0.5408100485801697, -0.24355940520763397, -0.005921654403209686, 0.16738669574260712, -0.07149626314640045, 0.39314597845077515, 0.2025597095489502, -0.09690156579017639, -0.013021044433116913, -0.5301687717437744, 0.38885581493377686, 0.35395345091819763, -0.33863240480422974, -0.5021141171455383, 0.6175466179847717, -0.19072487950325012, 0.31128689646720886, 0.5552897453308105, -0.22889210283756256, -0.18819506466388702, -0.19122542440891266, 0.28132230043411255, 0.17340977489948273, 0.12582333385944366, 0.04416605830192566, -0.3629966080188751, -0.06126780807971954, 0.16247224807739258, 0.04607168212532997, -0.12347714602947235, 0.12640133500099182, 0.132440447807312, -0.4561631977558136, 0.43927469849586487, 0.03799508512020111, -0.24904373288154602, 0.09743919223546982, 0.45223650336265564, -0.05540373921394348, -0.17974311113357544, 0.07539444416761398, -0.15907084941864014, 0.20211485028266907, -0.09414921700954437, -0.03417148441076279, -0.32431459426879883, -0.08343283832073212, -0.20036378502845764, 0.13247090578079224, -0.015552934259176254, -0.29918166995048523, 0.015982255339622498, 0.4742451608181, 0.19091352820396423, -0.16173796355724335, -0.2710990011692047, 0.253699392080307, -0.16405189037322998, 0.0743292048573494, -0.30400702357292175, 0.4431919455528259, -0.04019533842802048, -0.060796551406383514, 0.018449250608682632, -0.002840764820575714, 0.23755863308906555, -0.3171919882297516, -0.17191395163536072, 0.6302350759506226, -0.030800769105553627, 0.15138190984725952, 0.35330256819725037, -0.11097963154315948, 0.08377186954021454, -0.4127768874168396, -0.22550749778747559, 0.38468748331069946, 0.08552563935518265, 0.1761855185031891, -0.22024494409561157, 0.19632408022880554, -0.14376693964004517, 0.07048298418521881, 0.12658777832984924, 0.0680607259273529, 0.179342120885849, -0.09998956322669983, -0.4716053307056427, 0.27240291237831116, 0.3581114709377289, 0.36542508006095886, 0.13349232077598572, 0.10759595781564713, -0.4009076654911041, -0.1487831175327301, 0.197413831949234, -0.2860369086265564, -0.19846701622009277, 0.3001693785190582, 0.06128004938364029, -0.11948709934949875, 0.24564754962921143, 0.3301037847995758, 0.7018006443977356, 0.17350879311561584, 0.10214942693710327, 0.2502647340297699, 0.07851006835699081, -0.24990220367908478, 0.4517507553100586, 0.06225065886974335, -0.07977154105901718, 0.41941729187965393, -0.04411628469824791, 0.006680638529360294, -0.4220501482486725, -0.3764626681804657, -0.03389504551887512, 0.04044561833143234, -0.3707306385040283, -0.06584121286869049, -0.0758533701300621, -0.5590502619743347, -0.20002982020378113, -0.0279870443046093, -0.005694638937711716, -0.20135624706745148, -0.08853263407945633, 0.30855879187583923, -0.3551124632358551, 0.22909754514694214, 0.034008465707302094, 0.41736823320388794, -0.09544403851032257, -0.42558321356773376, -0.3223048448562622, 0.09792539477348328, 0.04065593704581261, 0.02189261093735695, 0.343551367521286, -0.02596345730125904, 0.26833000779151917, -0.1493196189403534, 0.014953980222344398, -0.5912091135978699, -0.20719921588897705, -0.06117616593837738, 0.012264709919691086, 0.3544536530971527, 0.32161176204681396, 0.21485725045204163, 0.33319735527038574, -0.3927247226238251, 0.11618790775537491, -0.34229686856269836, -0.1787370890378952, -0.057690467685461044, -0.03547150641679764, -0.1391238123178482, -0.2277396023273468, -0.36172574758529663, -0.3347340226173401, -0.47157910466194153, 0.6764381527900696, -0.09344173222780228, 0.005099862813949585, 0.35287559032440186, 0.009201002307236195, 0.1090235486626625, 0.037702471017837524, -0.11054175347089767, -0.0010280010756105185, -0.6792572140693665, 0.28696927428245544, 0.0699130967259407, -0.194462850689888, -0.007945999503135681, -0.1679680347442627, -0.1527099758386612, 0.02027524635195732, -0.2691425085067749, -0.5120087265968323, -0.3145599067211151, 0.5039100646972656, -0.08968053758144379, 0.04037307947874069, 0.3534905016422272, -0.12087621539831161, -0.11889621615409851, 0.02798599749803543, -0.14165538549423218, 0.00025325268507003784, 0.3635951578617096, 0.2218516319990158, 0.1772077977657318, 0.22773981094360352, 0.07614946365356445, 0.3962956666946411, 0.38426563143730164, 0.27574989199638367, 0.4205690622329712, -0.24317967891693115, 0.44465649127960205, -0.15004205703735352, 0.0011461134999990463, 0.06001259759068489, 0.08657216280698776, -0.2913084626197815, 0.13601920008659363, -0.012813223525881767, 0.23946548998355865, -0.07296649366617203, 0.07968699932098389, -0.46880239248275757, -0.20253552496433258, -0.017778700217604637, -0.21538230776786804, 0.06986454874277115, -0.0771704912185669, -0.23330450057983398, 0.05978820100426674, 0.11884988099336624, 0.07568064332008362, 0.30701345205307007, 0.3758056163787842, -0.15083225071430206, -0.07363377511501312, -0.26118388772010803, -0.35851749777793884, 0.3316553235054016, 0.3193648159503937, 0.3431944251060486, -0.17219355702400208, -0.34176257252693176, -0.01986101269721985, -0.1642884612083435, 0.7477940320968628, 0.03281974792480469, 0.0941556841135025, 0.035691674798727036, 0.004211895167827606, -0.03288540989160538, -0.1720568686723709, -0.01089274138212204, 0.12789785861968994, -0.07506659626960754, 0.4886852204799652, -0.13413187861442566, -0.09679616987705231, 0.22371582686901093, -0.2151748239994049, 0.2567942440509796, -0.05275020748376846, -0.32144346833229065, -0.25795966386795044, -0.22840292751789093, 0.09567584842443466, 0.2320663183927536, -0.060989417135715485, -0.0295841246843338, 0.14903080463409424, 0.1480661928653717, -0.010871723294258118, -0.010107502341270447, -0.1613660603761673, 0.3793453276157379, -0.07575829327106476, -0.051642708480358124, 0.16166669130325317, 0.18270598351955414, 0.05581958591938019, 0.7163272500038147, 0.18487489223480225, -0.3049832284450531, -0.04762966185808182, 0.22867590188980103, 0.2795697748661041, 0.4250543713569641, -0.1396583616733551, 0.023417308926582336, -0.06581989675760269, 0.304394006729126, -0.30063897371292114, 0.1691516488790512, 0.367927223443985, -0.13600754737854004, 0.14252257347106934, -0.13471020758152008, 0.31273043155670166, 0.12014533579349518, -0.014976248145103455, 0.4681337773799896, 0.07368194311857224, 0.05203939974308014, -0.04167262464761734, -0.31234806776046753, 0.862413763999939, 0.2376132309436798, 0.08089151978492737, 0.44524309039115906, -0.3158299922943115, 0.28333157300949097, -0.46659940481185913, 0.057453934103250504, 0.013566944748163223, -0.40761566162109375, -0.15910209715366364, -0.058425646275281906, 0.4027840793132782, -0.2723037004470825, -0.572875440120697, 0.26181602478027344, 0.37547963857650757, 0.02758926898241043, 0.22303666174411774, 0.06611593067646027, -0.35513269901275635, 0.1320286989212036, -0.4575350284576416, -0.023375561460852623, 0.07470134645700455, 0.14678286015987396, -0.048927538096904755, -0.37212902307510376, 0.05154838040471077, -0.37788307666778564, -0.14491397142410278, 0.17742720246315002, -0.31471946835517883, -0.11134305596351624, 0.32706311345100403, 0.1394273191690445, -0.18134872615337372, 0.40937939286231995, -0.2794498801231384, -0.09211863577365875, -0.18537932634353638, 0.2658158242702484, -0.16711115837097168, 0.1562468260526657, 0.06060260161757469, 0.06857483088970184, 0.025459986180067062, -0.0635557472705841, -0.24804991483688354, 0.09628500044345856, -0.5728530883789062, -0.2967434227466583, 0.1344265341758728, 0.0067471787333488464, 0.18646948039531708, 0.030031604692339897, -0.09915252029895782, 0.05388224124908447, -0.42017748951911926, -0.08415721356868744, 0.04961521923542023, -0.28226518630981445, -0.343746155500412, -0.2098877727985382, -0.09811542928218842, -0.5456129312515259, 0.036642611026763916, 0.33155277371406555, -0.43213120102882385, 0.4724362790584564, 0.3941614329814911, -0.2678646743297577, 0.10539510846138, -0.19720607995986938, 0.08492545038461685, -0.2426212877035141, -0.08975568413734436, 0.18232132494449615, 0.029744187369942665, -0.016945265233516693, 0.10914644598960876, 0.34184935688972473, 0.41457146406173706, 0.1084461361169815, -0.009558185935020447, -0.15160521864891052, -0.021972237154841423, -0.1065329760313034, -0.16698487102985382, 0.38951706886291504, 0.21107900142669678, 0.10755246877670288, 0.2837560772895813, -0.20064589381217957, -0.258304238319397, -0.0176602341234684, -0.3660300374031067, 0.13503184914588928, -0.12734289467334747, 0.11876252293586731, 0.2734734117984772, -0.13673262298107147, 0.07119935005903244, 0.4621018171310425, -0.034916020929813385, -0.1312038004398346, -0.05078204721212387, 0.16951192915439606, 0.29269781708717346, -0.3303868770599365, -0.04180555418133736, 0.0002691466361284256, -0.007334612309932709, 0.08599540591239929, -0.12399205565452576, -0.043565113097429276, -0.052074603736400604, 0.26759466528892517, 0.17028996348381042, -0.081349678337574, -0.18969540297985077, 0.013749761506915092, 0.0032028034329414368, 0.38123059272766113, -0.17979656159877777, 0.1255689263343811, -0.5553013682365417, -0.07358423620462418, -0.24527931213378906, 0.10589960217475891, 0.29216742515563965, 0.41873419284820557, 0.074222631752491, -0.024814561009407043, -0.3628685176372528, -0.4484035074710846, 0.5385881662368774, 0.3294476270675659, -0.24545666575431824, 0.08400264382362366, 0.24103984236717224, 0.08527549356222153, -0.23092201352119446, 0.012621872127056122, 0.06323952227830887, -0.04731569439172745, 0.3402803838253021, -0.10551997274160385, 0.11701987683773041, 0.03798047453165054, 0.28501808643341064, -0.03127662092447281, 0.004164708312600851, 0.30135780572891235, 0.38891229033470154, 0.3998068869113922, -0.007962323725223541, 0.09172773361206055, -0.07711566239595413, -0.0892878919839859, 0.32424071431159973, -0.013617075979709625, -0.2298385500907898, 0.32419347763061523, -0.06007050722837448, 0.16363005340099335, -0.18837085366249084, -0.36912426352500916, 0.2549767792224884, -0.10172376036643982, -0.006924614310264587, 0.015403099358081818, 0.21634894609451294, 0.47799524664878845, -0.6895080208778381, -0.16500456631183624, -0.1465483158826828, -0.09721072018146515, 0.223366379737854, -0.1460133194923401, -0.155682772397995, -0.03429127857089043, -0.24012504518032074, 0.10320931673049927, 0.21666623651981354, 0.1660073697566986, 0.22844743728637695, 0.19081628322601318, 0.06573491543531418, -0.03788682818412781, -0.07130357623100281, 0.08659753203392029, 0.3203357756137848, -0.44938087463378906, 0.09100034832954407, 0.23095597326755524, -0.15002278983592987, 0.2098202109336853, 0.4310242533683777, 0.6120368242263794, 0.006131988018751144, 0.14504610002040863, -0.021504297852516174, -0.10494257509708405, 0.04717280715703964, 0.07965077459812164, 0.10759267210960388, -0.05293983221054077, 0.07747457176446915, 0.35071685910224915, 0.16970449686050415, -0.12047427892684937, 0.5670304894447327, -0.19140498340129852, 0.1291469782590866, -0.4642661213874817, 0.03455650061368942, -0.04129473865032196, -0.06995260715484619, -0.1033850759267807, -0.1667667031288147, -0.47266218066215515, 0.005762949585914612, 0.00617184117436409, -0.17761307954788208, 0.15806511044502258, 0.06446601450443268, 0.05626727640628815, 0.1565181314945221, 0.3938944339752197, 0.5347147583961487, 0.010811541229486465, -0.3336542546749115, -0.34820300340652466, -0.4485495686531067, -0.00035309046506881714, 0.21189135313034058, -0.03805870935320854, 0.04101775586605072, 0.022156765684485435, -0.019533857703208923, -0.018928397446870804, -0.2434311956167221, -0.03542318567633629, -0.03255297616124153, 0.16585925221443176, -0.2397903949022293, 0.008932709693908691, 0.3313174247741699, 0.1342862993478775, 0.047467947006225586, -0.3450227975845337, 0.11470496654510498, 0.028897296637296677, 0.03250593692064285, 0.3222595453262329, -0.2213316559791565, -0.15698477625846863, -0.2815588712692261, 0.1811678409576416, 0.150034099817276, 0.24925248324871063, -0.4013327360153198, 0.007955467328429222, -0.01723557338118553, -0.12911617755889893, -0.08479957282543182, -0.3145732283592224, -0.03903033211827278, 0.437959223985672, -0.011704711243510246, 0.27847757935523987, -0.3563688397407532, 0.09661868959665298, -0.0222270879894495, -0.0007733857491984963, -0.11981213837862015, 0.05531695485115051, -0.26021721959114075, 0.14654043316841125, -0.1491219699382782, 0.32286834716796875, -0.05879928916692734, -0.06751244515180588, -0.27901700139045715, -0.26100102066993713, 0.559124231338501, -0.23381073772907257, -0.12301504611968994, 0.16560770571231842, 0.2400422990322113, 0.2921544015407562, 0.15183666348457336, -0.23084330558776855, 0.11033088713884354, 0.22585685551166534, 0.03324882686138153, -0.1160251647233963, 0.27257928252220154, -0.02450186014175415, 0.2113816887140274, 0.04473743215203285, 0.24197623133659363, 0.12674835324287415, -0.1427505910396576, 0.31322047114372253, -0.14971160888671875 ]
https://github.com/huggingface/datasets/pull/2796
add cedr dataset
> Hi ! Thanks a lot for adding this one :) > > Good job with the dataset card and the dataset script ! > > I left a few suggestions Thank you very much for your helpful suggestions. I have tried to carry them all out.
null
47
text: add cedr dataset > Hi ! Thanks a lot for adding this one :) > > Good job with the dataset card and the dataset script ! > > I left a few suggestions Thank you very much for your helpful suggestions. I have tried to carry them all out.
[ -0.36141929030418396, -0.3088690936565399, -0.17858335375785828, -0.15062440931797028, 0.19374194741249084, 0.11392403393983841, 0.3041730225086212, -0.07094323635101318, -0.03471789509057999, 0.3278117775917053, 0.2001824826002121, 0.33908936381340027, 0.027148060500621796, 0.4924910068511963, 0.12273534387350082, 0.056719303131103516, -0.021153539419174194, 0.36759594082832336, -0.030603647232055664, -0.03816216439008713, -0.18486587703227997, -0.16021117568016052, -0.019010789692401886, -0.15914395451545715, -0.45197853446006775, -0.24119606614112854, -0.06875883042812347, 0.16672031581401825, -0.1138506606221199, -0.4568965435028076, -0.10659091174602509, 0.3853144347667694, 0.03414847329258919, 0.05408785119652748, -0.00010424535139463842, -0.26276981830596924, 0.16640737652778625, -0.01746821403503418, -0.5394569039344788, 0.050070635974407196, -0.059313416481018066, 0.068541020154953, 0.14354069530963898, -0.2464262843132019, -0.12975595891475677, -0.26622211933135986, 0.10864492505788803, -0.14997196197509766, 0.12964797019958496, 0.08401519805192947, 0.3104638457298279, -0.039003416895866394, -0.12968778610229492, -0.4202117621898651, 0.0803598165512085, 0.13792401552200317, 0.05512641370296478, -0.0807819813489914, 0.42717620730400085, -0.08696939796209335, 0.03898022696375847, 0.3767576813697815, 0.08211949467658997, -0.27347275614738464, 0.462988942861557, -0.02898135408759117, 0.10177917778491974, -0.2703723609447479, 0.21302542090415955, 0.09091073274612427, 1.0915616750717163, -0.23489409685134888, 0.0648944303393364, -0.006444104015827179, 0.11971762031316757, -0.30836376547813416, -0.07759439200162888, -0.03840351849794388, -0.08342292904853821, -0.040519844740629196, -0.039051543921232224, -0.20394901931285858, -0.36521008610725403, 0.02821657806634903, -0.08397101610898972, 0.0438598096370697, 0.03709694370627403, -0.09301521629095078, -0.06755699217319489, 0.02742786705493927, 0.08762000501155853, 0.05864936113357544, -0.2104639708995819, 0.027282491326332092, 0.1505759209394455, -0.14531299471855164, 0.08838152140378952, 0.15330013632774353, 0.005301773548126221, 0.34989112615585327, 0.1505780816078186, 0.05362744629383087, 0.05741124972701073, 0.13205543160438538, -0.00015339627861976624, -0.15650177001953125, 0.27083247900009155, 0.21393565833568573, 0.1054815948009491, -0.18303023278713226, 0.3168356716632843, -0.16310077905654907, -0.10798705369234085, -0.07553751766681671, 0.24804584681987762, -0.032704371958971024, 0.018567193299531937, -0.025162197649478912, -0.14066487550735474, 0.16349096596240997, 0.49615079164505005, -0.0323716439306736, -0.0716947689652443, 0.6389303803443909, 0.0034302598796784878, -0.16774702072143555, 0.3274271488189697, -0.029517415910959244, 0.1386016309261322, -0.0533699169754982, -0.15001392364501953, 0.19261953234672546, -0.13414868712425232, -0.07592619955539703, 0.09211227297782898, -0.03887978941202164, 0.06010995805263519, -0.04795094206929207, 0.21995770931243896, 0.089390829205513, -0.07323525846004486, -0.019865047186613083, 0.35960233211517334, 0.2265162616968155, 0.12853972613811493, 0.07684127986431122, -0.10648766160011292, -0.16088038682937622, -0.07324061542749405, 0.38851386308670044, 0.07560274749994278, -0.08914770185947418, -0.530807375907898, 0.3507139980792999, 0.2078493982553482, -0.4989244043827057, 0.006181120872497559, 0.07097885012626648, -0.12201943248510361, -0.1519101858139038, 0.21260517835617065, 0.11785347759723663, -0.18738973140716553, -0.016126012429594994, 0.056564897298812866, 0.5057542324066162, -0.6317347288131714, -0.0661000907421112, -0.06867612898349762, -0.22544550895690918, 0.12839177250862122, -0.12874867022037506, -0.09040573984384537, 0.2636563181877136, -0.11103829741477966, 0.043139055371284485, 0.36130329966545105, -0.32834136486053467, -0.27413511276245117, 0.018092283979058266, -0.2407759726047516, -0.4117540717124939, 0.11496718227863312, 0.33286765217781067, 0.3474014103412628, -0.01977701671421528, 0.14640694856643677, 0.060336776077747345, -0.11789622902870178, 0.09636685997247696, -0.12367916107177734, 0.13584329187870026, -0.1171269416809082, 0.33441537618637085, 0.07722581177949905, 0.06319187581539154, 0.22162660956382751, 0.05430538207292557, 0.30684325098991394, -0.00411677360534668, 0.13963240385055542, 0.15311475098133087, 0.4476326107978821, -0.052875958383083344, 0.05454743281006813, -0.10012059658765793, -0.16054880619049072, -0.05139121785759926, 0.38041937351226807, 0.309082955121994, -0.10362812876701355, -0.2302907109260559, -0.41799238324165344, -0.05087846517562866, -0.2983880043029785, -0.02069605141878128, 0.22999820113182068, 0.17791077494621277, -0.16185232996940613, -0.07176065444946289, -0.08426716923713684, 0.13453692197799683, -0.08237443119287491, 0.016553524881601334, 0.2248852550983429, 0.07401034981012344, -0.15109795331954956, -0.16795526444911957, -0.04784945026040077, 0.016919076442718506, -0.13423901796340942, 0.1645641177892685, 0.02268427610397339, 0.27706435322761536, -0.2643277943134308, 0.036305416375398636, 0.10782703757286072, -0.06915122270584106, 0.09996184706687927, -0.29902246594429016, 0.05658307671546936, -0.04496140405535698, 0.10159663110971451, -0.06584271788597107, -0.30879151821136475, -0.16779421269893646, 0.10988317430019379, -0.18576788902282715, -0.07882890105247498, 0.031219618394970894, -0.059404466301202774, 0.0022705011069774628, 0.05421232432126999, -0.33654841780662537, 0.03938381373882294, 0.2984291613101959, 0.23391474783420563, -0.18288370966911316, -0.17234960198402405, 0.32011130452156067, 0.26446589827537537, -0.0930309146642685, 0.08193669468164444, 0.13426584005355835, -0.12702545523643494, 0.272352010011673, 0.06466939300298691, 0.33837541937828064, 0.09110946953296661, 0.37963324785232544, 0.06510896235704422, 0.1381363719701767, 0.1162310391664505, -0.15684282779693604, 0.1202879548072815, -0.08606547117233276, 0.01822548732161522, 0.23368024826049805, -0.06599044054746628, -0.08529552817344666, -0.18067210912704468, -0.2523138225078583, 0.049902528524398804, 0.3000473976135254, -0.13808396458625793, -0.052446089684963226, -0.008409278467297554, -0.5567936301231384, 0.041351884603500366, 0.07495211064815521, 0.06862518936395645, -0.24035228788852692, 0.2374134212732315, -0.1143839955329895, -0.08518491685390472, 0.26086413860321045, 0.018870759755373, 0.5262213349342346, -0.0488974004983902, -0.06165026128292084, -0.2438414841890335, -0.0006222417578101158, -0.09476498514413834, 0.23437979817390442, -0.09383246302604675, -0.0051864031702280045, 0.7593371272087097, -0.09621963649988174, 0.33368808031082153, -0.3658127784729004, -0.16775968670845032, 0.26189732551574707, 0.009873943403363228, -0.06475568562746048, 0.14673295617103577, 0.3757666349411011, -0.004974547773599625, -0.1262219250202179, 0.053762566298246384, 0.03364492952823639, -0.20450279116630554, -0.30013400316238403, -0.12901653349399567, -0.14334432780742645, -0.19069804251194, -0.4370720684528351, -0.20342780649662018, -0.2832648754119873, -0.037964873015880585, -0.05109817534685135, 0.1735721230506897, 0.11288350820541382, -0.05379825085401535, -0.10347314924001694, -0.1942209005355835, 0.05796956270933151, -0.04797455668449402, -0.14418357610702515, 0.3016127943992615, -0.2986759543418884, -0.3133322596549988, 0.05273401364684105, 0.006154688075184822, 0.13296380639076233, -0.1423133909702301, -0.21362227201461792, -0.07709173858165741, -0.22967000305652618, 0.024805907160043716, -0.22216764092445374, 0.10879766941070557, 0.4137062132358551, 0.07686150819063187, -0.2815393805503845, -0.061914656311273575, -0.2254907637834549, 0.05955382436513901, -0.08484312891960144, 0.2727094888687134, -0.319719523191452, 0.21441572904586792, -0.27213430404663086, 0.1385921835899353, -0.017351707443594933, -0.14815190434455872, 0.18402431905269623, -0.22919344902038574, 0.3768828213214874, 0.004781506955623627, -0.26810306310653687, 0.06190689280629158, 0.1973225176334381, 0.001778189092874527, 0.2605398893356323, -0.14912888407707214, -0.16881109774112701, -0.14393937587738037, -0.3355080783367157, -0.45558932423591614, 0.024948295205831528, 0.02180139161646366, -0.3030625879764557, -0.037851251661777496, -0.1579626053571701, -0.1360010951757431, -0.181610107421875, 0.023487262427806854, -0.21239374577999115, 0.33610638976097107, 0.169385626912117, -0.13091544806957245, -0.32771530747413635, 0.2530924081802368, -0.3156353831291199, 0.06073543801903725, -0.0022532178554683924, -0.2929812967777252, -0.45787495374679565, -0.06771500408649445, 0.047701433300971985, 0.014582999050617218, 0.31294548511505127, -0.3055852949619293, -0.1464201807975769, 0.03433651849627495, 0.2896309494972229, -0.08354738354682922, 0.15332205593585968, -0.23348355293273926, 0.08577413111925125, 0.2130080759525299, -0.04569125175476074, -0.0165993794798851, 0.12141084671020508, 0.35983771085739136, -0.12535281479358673, -0.2545756697654724, -0.40576571226119995, -0.2153363674879074, -0.15852904319763184, -0.4673911929130554, 0.2402130365371704, 0.22265712916851044, 0.11619671434164047, 0.020324861630797386, -0.3542481064796448, 0.30873697996139526, 0.024938106536865234, 0.16710147261619568, 0.12507647275924683, 0.21331802010536194, 0.14562278985977173, 0.11213222146034241, -0.058005817234516144, 0.35051634907722473, 0.32247447967529297, 0.2708294093608856, -0.11850586533546448, -0.1935269832611084, 0.250777006149292, -0.43685382604599, 0.5251696705818176, 0.13806654512882233, 0.19087152183055878, 0.21646654605865479, 0.00759844109416008, 0.3460032343864441, -0.2798354923725128, -0.00273898639716208, -0.07507995516061783, -0.05471282824873924, -0.5488677024841309, -0.41060176491737366, 0.2636043131351471, -0.19878479838371277, -0.014126233756542206, 0.13119575381278992, 0.22237007319927216, -0.1786975860595703, 0.12782181799411774, 0.08313673734664917, 0.8913708925247192, -0.19503889977931976, 0.16315476596355438, -0.18080782890319824, -0.07502814382314682, 0.4438827633857727, -0.15390144288539886, -0.026917021721601486, -0.36688682436943054, -0.18253415822982788, -0.05124592036008835, -0.1145768016576767, -0.08163221925497055, 0.2714792490005493, -0.4816969633102417, -0.0314161442220211, -0.14720293879508972, -0.1615716964006424, -0.056404903531074524, 0.48360592126846313, -0.2437119483947754, -0.21843163669109344, 0.11527722328901291, 0.21546483039855957, 0.020539607852697372, 0.11552244424819946, -0.24017539620399475, -0.046420902013778687, 0.047755274921655655, -0.291628360748291, -0.24668705463409424, 0.04050733894109726, -0.17448458075523376, -0.3336399793624878, -0.05743871256709099, -0.1854308843612671, 0.3061348795890808, 0.3109358549118042, 0.4077334403991699, 0.2868313491344452, -0.09824133664369583, 0.28854215145111084, -0.03199616074562073, -0.05984342470765114, -0.303718239068985, -0.1960018128156662, 0.3694216012954712, -0.2586137652397156, -0.5787076354026794, 0.15146493911743164, 0.1186094582080841, -0.27639609575271606, -0.12262056767940521, 0.1244644969701767, 0.09993008524179459, -0.0038959267549216747, 0.14385256171226501, 0.06825236976146698, -0.04685524106025696, -0.18619051575660706, 0.23949255049228668, 0.13739116489887238, 0.0711846873164177, 0.07516607642173767, 0.26369017362594604, -0.20890651643276215, -0.17648231983184814, 0.1448853313922882, -0.1349082589149475, -0.2671579122543335, 0.5825941562652588, 0.17632657289505005, -0.2572847008705139, -0.4883970320224762, -0.2386086881160736, 0.5482593774795532, -0.27111804485321045, -0.18405422568321228, 0.16986188292503357, 0.048237547278404236, 0.060151394456624985, 0.45402687788009644, 0.02729119174182415, 0.20632895827293396, -0.28955644369125366, -0.02854660525918007, -0.5412214398384094, -0.06655547022819519, -0.11728562414646149, 0.35896438360214233, 0.041436970233917236, 0.04762550815939903, 0.32784754037857056, -0.0026865527033805847, -0.5055318474769592, -0.057199642062187195, -0.1444581300020218, 0.016382720321416855, 0.49192866683006287, -0.05913805961608887, 0.13878914713859558, -0.11083458364009857, 0.2829122841358185, 0.0535600483417511, -0.16373826563358307, -0.3199671804904938, -0.02467990852892399, 0.09563877433538437, -0.050082333385944366, -0.04227696359157562, -0.23185060918331146, -0.1454896330833435, -0.062377069145441055, 0.11112368106842041, 0.4794018864631653, 0.08625314384698868, -0.10299178957939148, 0.24457107484340668, -0.029548581689596176, 0.09203217178583145, -0.08008250594139099, -0.08938656747341156, 0.14676550030708313, 0.2241908758878708, -0.002412724308669567, -0.016238093376159668, -0.12187627702951431, -0.10774878412485123, 0.15561328828334808, 0.3245678246021271, 0.32327598333358765, 0.08994930982589722, -0.053232595324516296, -0.13346955180168152, 0.15595638751983643, 0.14071868360042572, 0.14278735220432281, -0.1636059731245041, -0.37520602345466614, -0.1731601357460022, 0.18314066529273987, 0.3741920292377472, -0.32182765007019043, -0.059512022882699966, -0.36727049946784973, -0.14749158918857574, 0.18089750409126282, 0.18665450811386108, 0.08038164675235748, -0.18585750460624695, 0.0018940865993499756, 0.18595248460769653, 0.10078262537717819, -0.43488121032714844, -0.07902804017066956, 0.134268119931221, -0.06177768483757973, 0.04523219168186188, 0.24711443483829498, 0.2818072438240051, -0.08493823558092117, 0.37535029649734497, 0.033751655369997025, 0.39719873666763306, 0.0703083723783493, 0.09597304463386536, 0.16350162029266357, -0.19855467975139618, 0.7429371476173401, 0.12109436839818954, -0.21897369623184204, -0.23007315397262573, 0.3806959390640259, -0.03409738838672638, 0.1760677844285965, 0.1830793172121048, -0.32177242636680603, 0.021171625703573227, -0.15243372321128845, 0.08698944747447968, -0.11102283746004105, -0.19592483341693878, 0.04727236181497574, -0.04211916774511337, 0.09126909077167511, -0.09079539775848389, -0.18328535556793213, -0.05569174885749817, -0.08155213296413422, 0.15960824489593506, 0.014756405726075172, 0.16910624504089355, 0.15022429823875427, -0.18038970232009888, -0.15325772762298584, 0.1036093607544899, -0.046689413487911224, 0.34771373867988586, 0.31163519620895386, 0.4074818193912506, 0.2730310559272766, 0.15924309194087982, 0.37987279891967773, -0.08126594126224518, -0.20954830944538116, 0.04108615964651108, -0.03240571916103363, 0.2484508901834488, 0.20969700813293457, 0.13337695598602295, 0.3315957486629486, -0.2694043219089508, -0.06317423284053802, 0.15050682425498962, 0.09772045910358429, 0.15002571046352386, -0.16479551792144775, 0.24222028255462646, -0.1419648975133896, -0.432434618473053, 0.35117754340171814, -0.5279362201690674, -0.10163602977991104, 0.53558349609375, 0.00400318019092083, 0.044918231666088104, -0.25924453139305115, 0.14596344530582428, 0.12843196094036102, 0.3543192148208618, 0.3941059112548828, 0.1790536642074585, -0.04780163615942001, -0.2864149212837219, -0.37699753046035767, 0.15465903282165527, 0.13132156431674957, -0.1182602271437645, -0.03053724393248558, -0.03189302980899811, 0.18463289737701416, -0.23252882063388824, 0.32754063606262207, -0.1405537873506546, -0.07502519339323044, 0.1268301159143448, -0.18201790750026703, -0.09104263782501221, 0.3302554488182068, 0.11305118352174759, -0.011157723143696785, 0.0483831912279129, -0.045118216425180435, 0.17583104968070984, 0.2683866620063782, -0.3867303133010864, 0.24592441320419312, -0.10021045804023743, -0.13653706014156342, 0.2753276526927948, -0.13184072077274323, 0.6345975399017334, -0.2638580799102783, 0.10204055160284042, 0.23426859080791473, 0.11175409704446793, -0.19765211641788483, 0.29578861594200134, 0.40853583812713623, 0.2034793347120285, 0.23951372504234314, -0.0693482756614685, -0.12839801609516144, -0.0808994397521019, -0.11684216558933258, -0.014901051297783852, -0.30640730261802673, 0.2403392493724823, 0.26266947388648987, 0.038932979106903076, -0.04877527430653572, -0.13150349259376526, 0.04307615011930466, -0.0855969786643982, -0.26710572838783264, -0.4025612473487854, 0.31095361709594727, 0.2889864444732666, -0.1913115680217743, -0.1767294704914093, 0.2173771858215332, -0.03838769346475601, 0.3091720640659332, -0.646696925163269, 0.21892216801643372, 0.24926048517227173, -0.18367865681648254, -0.26697492599487305, 0.38310566544532776, -0.06511162221431732, 0.2439642697572708, -0.016488827764987946, 0.5005536675453186, 0.058388251811265945, 0.025132158771157265, -0.4135974645614624, -0.3868336081504822 ]
https://github.com/huggingface/datasets/pull/2792
Update: GooAQ - add train/val/test splits
@albertvillanova my tests are failing here: ``` dataset_name = 'gooaq' def test_load_dataset(self, dataset_name): configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1] > self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True, use_local_dummy_data=True) tests/test_dataset_common.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_dataset_common.py:187: in check_load_dataset self.parent.assertTrue(len(dataset[split]) > 0) E AssertionError: False is not true ``` When I try loading dataset on local machine it works fine. Any suggestions on how can I avoid this error?
[GooAQ](https://github.com/allenai/gooaq) dataset was recently updated after splits were added for the same. This PR contains new updated GooAQ with train/val/test splits and updated README as well.
96
text: Update: GooAQ - add train/val/test splits [GooAQ](https://github.com/allenai/gooaq) dataset was recently updated after splits were added for the same. This PR contains new updated GooAQ with train/val/test splits and updated README as well. @albertvillanova my tests are failing here: ``` dataset_name = 'gooaq' def test_load_dataset(self, dataset_name): configs = self.dataset_tester.load_all_configs(dataset_name, is_local=True)[:1] > self.dataset_tester.check_load_dataset(dataset_name, configs, is_local=True, use_local_dummy_data=True) tests/test_dataset_common.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_dataset_common.py:187: in check_load_dataset self.parent.assertTrue(len(dataset[split]) > 0) E AssertionError: False is not true ``` When I try loading dataset on local machine it works fine. Any suggestions on how can I avoid this error?
[ -0.305544376373291, -0.18019351363182068, -0.019576910883188248, 0.06852135807275772, 0.022485602647066116, -0.07308589667081833, 0.46307966113090515, 0.39825618267059326, 0.20206673443317413, 0.2748658061027527, -0.030351219698786736, 0.14150090515613556, -0.27828681468963623, 0.37207838892936707, -0.11550010740756989, -0.2536334991455078, 0.022821933031082153, 0.07629923522472382, 0.23873333632946014, -0.02549409121274948, -0.2436179369688034, 0.1785866618156433, -0.37329959869384766, 0.1064315065741539, -0.002179115079343319, -0.16991308331489563, -0.148093119263649, 0.14796993136405945, -0.13908663392066956, -0.5543964505195618, 0.39614659547805786, -0.11656074225902557, -0.05758463218808174, 0.5544626712799072, -0.00012033843813696876, 0.10811185836791992, 0.3038656711578369, -0.07277969270944595, 0.036050330847501755, -0.08595038950443268, -0.2483694851398468, -0.06513757258653641, 0.0005905668949708343, 0.0005638450384140015, 0.015388786792755127, -0.4598257839679718, -0.2396051436662674, -0.4223973751068115, 0.05830537900328636, 0.5794618129730225, 0.08995204418897629, 0.29358920454978943, 0.04046254977583885, -0.2440289855003357, 0.3069368004798889, -0.27339082956314087, 0.14513224363327026, 0.7228275537490845, 0.1574806571006775, -0.11766212433576584, -0.03615226596593857, 0.08829769492149353, 0.037293367087841034, 0.0019042808562517166, -0.07230982929468155, -0.1052345335483551, 0.4011194705963135, -0.2706299126148224, 0.005978994071483612, 0.2824374735355377, 0.26769426465034485, -0.2788263261318207, -0.4691463112831116, 0.14401042461395264, -0.10063127428293228, -0.14541102945804596, 0.4081088602542877, 0.043433524668216705, 0.031507812440395355, 0.25181466341018677, -0.21783098578453064, -0.3003643751144409, -0.1976972371339798, 0.05752597376704216, -0.3203306496143341, 0.15910139679908752, 0.08073966205120087, 0.21999579668045044, 0.08468382060527802, -0.004777427762746811, -0.083382248878479, -0.0052557457238435745, -0.18484292924404144, 0.23311717808246613, -0.3898807764053345, -0.11404113471508026, -0.26531681418418884, -0.17081326246261597, 0.2301441729068756, 0.3133809566497803, -0.3981456160545349, 0.0665895864367485, -0.2166973203420639, 0.28219524025917053, 0.16446071863174438, 0.4147593379020691, 0.12020838260650635, 0.4043515920639038, 0.11189201474189758, 0.31007665395736694, -0.25045108795166016, 0.07995405048131943, -0.037860020995140076, -0.5005215406417847, -0.12057383358478546, 0.029908735305070877, 0.4350128173828125, -0.19969895482063293, -0.22498458623886108, 0.1342446655035019, -0.6413264870643616, -0.19975964725017548, 0.22643430531024933, 0.34466060996055603, -0.11927905678749084, 0.1400490403175354, -0.10277140885591507, 0.47239333391189575, -0.09194160997867584, -0.11954805254936218, -0.2817951440811157, 0.4363645911216736, -0.08604380488395691, 0.14556534588336945, 0.13426026701927185, -0.4354816675186157, 0.20801804959774017, 0.031387679278850555, -0.2028944045305252, -0.08485402166843414, 0.08202634006738663, -0.23402920365333557, 0.16509534418582916, 0.29871562123298645, -0.17493894696235657, -0.05622322857379913, 0.1857420653104782, -0.03235694020986557, -0.14830107986927032, 0.21591851115226746, 0.00543246790766716, -0.6857417225837708, 0.01734268106520176, 0.09899680316448212, -0.12459976226091385, 0.09028357267379761, 0.12685604393482208, -0.018002759665250778, 0.15178509056568146, -0.22715291380882263, 0.09116426855325699, -0.26610511541366577, -0.3678824305534363, -0.042045146226882935, 0.7176350355148315, 0.3527946174144745, -0.6324863433837891, -0.004934985190629959, -0.3968970775604248, -0.28359246253967285, 0.07321876287460327, 0.22663339972496033, -0.04733900725841522, 0.38645151257514954, -0.29877781867980957, -0.08387987315654755, -0.10872595757246017, -0.36950165033340454, -0.27995628118515015, 0.15824131667613983, -0.014676138758659363, -0.016609031707048416, 0.13951170444488525, -0.3361227512359619, -0.11371506005525589, -0.09387453645467758, 0.4572279751300812, 0.16371403634548187, 0.016638755798339844, -0.13561612367630005, -0.3913653790950775, -0.12614162266254425, 0.25937849283218384, 0.054281387478113174, 0.2528577148914337, -0.02867159992456436, 0.13236194849014282, -0.23377425968647003, 0.0032727420330047607, 0.12800531089305878, -0.1498725414276123, 0.10395273566246033, 0.5244390368461609, -0.10486242175102234, -0.051640234887599945, -0.01331346295773983, -0.2143723964691162, 0.441816121339798, -0.3716057240962982, 0.052101925015449524, 0.008604273200035095, 0.02412654459476471, -0.5830719470977783, 0.18728289008140564, -0.0990912914276123, -0.3769454061985016, -0.015299724414944649, 0.0667954832315445, 0.24669304490089417, 0.3879513740539551, -0.1455553025007248, -0.03744122385978699, -0.2844255566596985, 0.026314614340662956, -0.21720311045646667, 0.24213753640651703, -0.05280250310897827, 0.03515687584877014, -0.0421028696000576, 0.0457681380212307, 0.021018020808696747, -0.12736405432224274, -0.1455211043357849, 0.5140876173973083, 0.08906888961791992, 0.12994959950447083, -0.10975966602563858, -0.3335273861885071, 0.08958745002746582, -0.29384645819664, 0.17119938135147095, -0.22191235423088074, -0.06700856983661652, 0.08405754715204239, -0.24307087063789368, 0.22503513097763062, -0.2683541476726532, 0.08938831835985184, -0.006577868014574051, 0.07862179726362228, 0.21318887174129486, -0.09614993631839752, -0.061878614127635956, -0.14493009448051453, 0.01034475490450859, 0.12441028654575348, 0.8379191160202026, 0.0023411307483911514, -0.00545143336057663, -0.33351677656173706, 0.24686601758003235, 0.012277726083993912, -0.14229020476341248, 0.056445591151714325, -0.001924559473991394, -0.04556979611515999, 0.3214736580848694, 0.23927821218967438, 0.5204039812088013, 0.11492002755403519, 0.14222602546215057, 0.30627113580703735, 0.022105775773525238, -0.017133262008428574, 0.05896802246570587, 0.02333534136414528, 0.0024166395887732506, 0.24942940473556519, 0.07336040586233139, -0.0028656506910920143, -0.2743009030818939, 0.013512644916772842, 0.3744395077228546, 0.40198081731796265, -0.46593165397644043, 0.026437709107995033, -0.21179978549480438, 0.12888017296791077, -0.3730989396572113, -0.17759884893894196, -0.2832636535167694, -0.25983497500419617, 0.11605291068553925, 0.06224900856614113, -0.07751554250717163, 0.505853533744812, 0.1355932354927063, 0.17519120872020721, -0.03408133611083031, -0.4992316961288452, 0.06378333270549774, 0.04258309677243233, -0.29530996084213257, -0.007755426689982414, 0.304910808801651, 0.02044249325990677, 0.31231755018234253, 0.022847136482596397, -0.39948636293411255, -0.05259422957897186, -0.35056376457214355, 0.14000394940376282, -0.16152501106262207, 0.3628709614276886, 0.20121583342552185, 0.03430796414613724, 0.17662039399147034, -0.43808087706565857, 0.202632874250412, -0.3251687288284302, -0.2437349408864975, -0.12641072273254395, 0.3307935893535614, 0.25821492075920105, -0.22873736917972565, -0.9309180974960327, -0.1939583122730255, -0.24390043318271637, 0.20104041695594788, -0.14372587203979492, -0.03515957295894623, 0.10262028127908707, 0.25760945677757263, 0.11745607852935791, -0.0009805499576032162, -0.21137665212154388, 0.03279728814959526, -0.2653574049472809, 0.0018714331090450287, -0.06140892207622528, -0.1675482541322708, -0.10120296478271484, -0.3527641296386719, 0.2104330211877823, -0.014736542478203773, -0.3202270269393921, -0.11746186763048172, -0.21157748997211456, 0.0966891348361969, 0.07696591317653656, -0.014226855710148811, 0.24863962829113007, -0.16125820577144623, -0.08217725157737732, -0.08440212905406952, -0.11178290843963623, 0.3648538291454315, -0.014841612428426743, 0.044582583010196686, 0.11584647744894028, 0.3872196078300476, -0.041389349848032, 0.4937342405319214, 0.1574552208185196, -0.022136662155389786, 0.20230166614055634, -0.21235114336013794, 0.40144845843315125, -0.16707110404968262, -0.43700897693634033, -0.031645312905311584, 0.04812406003475189, -0.28398799896240234, 0.03864920139312744, -0.06421171873807907, 0.17173120379447937, -0.09087765216827393, -0.15930993854999542, 0.23762905597686768, -0.20207157731056213, 0.007949287071824074, -0.7738165259361267, 0.2942473292350769, -0.23234805464744568, 0.06217954307794571, 0.10753627121448517, 0.05051441490650177, -0.02573317289352417, -0.04926523566246033, -0.054221607744693756, -0.03663245216012001, -0.6321731209754944, -0.09279049932956696, -0.25551584362983704, 0.3313868045806885, 0.2528727948665619, 0.6954478621482849, -0.07787933945655823, -0.08124495297670364, 0.13842272758483887, 0.14273695647716522, 0.7795622944831848, -0.3269197940826416, 0.07440000027418137, 0.29180631041526794, -0.16030558943748474, -0.2699228823184967, -0.20787662267684937, -0.332016259431839, -0.07632119208574295, 0.17124275863170624, 0.47151124477386475, -0.1884923279285431, -0.044538307934999466, 0.3698679506778717, 0.08443945646286011, -0.026015887036919594, -0.047295041382312775, -0.3482947051525116, -0.0915716141462326, -0.3222009837627411, 0.15762706100940704, -0.04245217144489288, 0.19562499225139618, -0.3703853189945221, 0.0367688424885273, 0.09234338253736496, -0.1063748374581337, 0.03245503455400467, 0.001049291342496872, 0.21830153465270996, 0.0047707511112093925, 0.18612156808376312, 0.02622806280851364, -0.09947118163108826, 0.21835990250110626, 0.5514531135559082, -0.365167498588562, -0.25887346267700195, -0.22567936778068542, 0.052252430468797684, 0.5391650199890137, 0.12974895536899567, -0.099421426653862, -0.1734580099582672, 0.015310658141970634, -0.0018646419048309326, -0.037123147398233414, 0.36711615324020386, 0.24086618423461914, -0.18275411427021027, -0.17772182822227478, -0.3075200915336609, 0.36861318349838257, 0.21739636361598969, -0.037227317690849304, 0.4265274107456207, 0.13288086652755737, -0.1071581095457077, 0.24048295617103577, -0.06183513253927231, 0.6392521858215332, -0.1321212202310562, -0.31344252824783325, 0.35647207498550415, 0.08815236389636993, 0.32738491892814636, -0.20992928743362427, 0.10999458283185959, -0.4482540488243103, -0.09683940559625626, 0.10258109867572784, -0.12719711661338806, 0.14018376171588898, 0.003212612122297287, -0.48131051659584045, 0.23516884446144104, 0.08855949342250824, -0.18283504247665405, 0.09630199521780014, 0.5004006624221802, 0.03404366970062256, 0.158547043800354, -0.17232301831245422, 0.019233323633670807, 0.31877601146698, 0.31452038884162903, -0.016996953636407852, -0.05263795703649521, 0.02159031853079796, -0.29424822330474854, -0.33997130393981934, 0.15465572476387024, 0.033485449850559235, 0.17171521484851837, 0.4112986624240875, -0.212785542011261, 0.09684193134307861, 0.10820744931697845, 0.4597369432449341, 0.22416211664676666, -0.1719931811094284, -0.01924341917037964, -0.03806404024362564, 0.13587035238742828, 0.3754284977912903, 0.07041440159082413, 0.30694761872291565, 0.09708365052938461, -0.6769240498542786, 0.11219215393066406, -0.39163655042648315, -0.20597870647907257, -0.13598084449768066, 0.06416715681552887, 0.08878513425588608, -0.4499500095844269, -0.004367093555629253, -0.16608834266662598, 0.07409726083278656, -0.09554571658372879, 0.059677548706531525, -0.09421268105506897, -0.20075109601020813, 0.24377450346946716, -0.018072713166475296, -0.47063615918159485, -0.03771859034895897, 0.5069586038589478, -0.2831486761569977, 0.3693026602268219, 0.6549588441848755, 0.07370805740356445, 0.3325052857398987, -0.1821592152118683, -0.0048267170786857605, 0.502108633518219, -0.2896033525466919, 0.032901253551244736, -0.19743525981903076, -0.08056585490703583, 0.1654248982667923, 0.2249586582183838, 0.15323221683502197, -0.024305373430252075, 0.22309093177318573, -0.33266720175743103, -0.08466179668903351, 0.28092479705810547, -0.002071153372526169, 0.376796692609787, 0.2869221270084381, 0.2656031847000122, 0.07066302746534348, 0.36790889501571655, -0.20457017421722412, 0.05219688266515732, -0.4822255074977875, 0.058567844331264496, -0.30005377531051636, 0.12121541053056717, 0.15841494500637054, -0.06405442953109741, 0.08618208765983582, -0.2825055718421936, -0.07856632024049759, -0.10153436660766602, 0.02128569781780243, 0.1678207367658615, 0.07547114789485931, 0.02459796518087387, -0.22695142030715942, -0.098756343126297, 0.03651878237724304, 0.004068554379045963, 0.1330193728208542, 0.1431780457496643, -0.1416567713022232, 0.36602354049682617, -0.20089448988437653, 0.292644202709198, -0.2844589948654175, 0.038187965750694275, -0.08379161357879639, -0.08437418937683105, 0.24035649001598358, 0.17882883548736572, 0.12865573167800903, -0.15441277623176575, -0.07478039711713791, -0.03616941720247269, 0.12363535165786743, -0.025372140109539032, 0.07889960706233978, -0.09644593298435211, -0.09284593909978867, -0.40745869278907776, 0.34134021401405334, 0.2815379500389099, -0.2946096360683441, 0.1461952179670334, 0.16609278321266174, 0.09977994859218597, -0.4992503523826599, -0.09147011488676071, 0.21022386848926544, 0.005156111437827349, 0.11277256906032562, 0.23604999482631683, 0.2365231215953827, -0.16418063640594482, 0.3291112184524536, 0.1650700569152832, 0.2565457820892334, -0.0016774721443653107, 0.05687600374221802, 0.32061100006103516, -0.40659642219543457, 0.08252529799938202, -0.05035247653722763, 0.12321169674396515, 0.30293646454811096, 0.22725185751914978, 0.15559038519859314, 0.08058996498584747, -0.3541140854358673, 0.19792096316814423, 0.12183962762355804, -0.4642258584499359, 0.18295380473136902, 0.09682953357696533, 0.0010728910565376282, -0.4590807259082794, 0.012756966054439545, 0.5853034257888794, -0.21633268892765045, -0.12587422132492065, -0.00883750431239605, -0.011355496942996979, 0.13258346915245056, -0.004184361081570387, -0.24348312616348267, 0.017540208995342255, -0.23397694528102875, -0.07142221927642822, 0.21962584555149078, -0.1202477365732193, 0.3542304039001465, 0.13081279397010803, -0.29209285974502563, -0.09514928609132767, -0.07717327028512955, 0.2692890465259552, -0.025899052619934082, -0.2295018434524536, 0.3769007623195648, 0.307853102684021, -0.2000211477279663, 0.4337003529071808, 0.13992318511009216, 0.3804073631763458, 0.1318303793668747, -0.0728045105934143, -0.08600355684757233, -0.2262197881937027, -0.005250154063105583, 0.014917004853487015, -0.029980875551700592, -0.19736188650131226, 0.0971767008304596, 0.47794851660728455, 0.062298066914081573, 0.016850419342517853, 0.1745252162218094, 0.1909429132938385, 0.1241350919008255, -0.4972931742668152, 0.7169171571731567, 0.2197621911764145, 0.03675926476716995, -0.2024591714143753, 0.09615947306156158, -0.2765657603740692, 0.19002877175807953, 0.029948975890874863, -0.10516655445098877, 0.0778319388628006, 0.17198027670383453, 0.020976033061742783, -0.07579006254673004, 0.43463999032974243, 0.5646526217460632, 0.03711717575788498, -0.24217072129249573, -0.12376269698143005, -0.7713873982429504, 0.17258302867412567, -0.04404878988862038, -0.052406102418899536, 0.29756781458854675, 0.08652660995721817, 0.13906823098659515, 0.06388638913631439, -0.11139561235904694, 0.07327332347631454, -0.344637930393219, -0.08597734570503235, -0.2816237509250641, -0.046976540237665176, -0.3326336741447449, 0.006709461100399494, 0.023569636046886444, -0.19200843572616577, 0.3621271848678589, -0.4401019215583801, -0.08935436606407166, 0.3471422791481018, -0.295748233795166, 0.2219816893339157, -0.07583437860012054, 0.33268558979034424, 0.2695716619491577, 0.4536775052547455, 0.12774550914764404, 0.27732402086257935, -0.2662072479724884, 0.06494560092687607, -0.20008563995361328, 0.21464267373085022, -0.23823490738868713, 0.23452964425086975, 0.012114489451050758, -0.29762059450149536, -0.21829551458358765, 0.5930686593055725, 0.24338321387767792, 0.057281751185655594, -0.026724163442850113, 0.07659453898668289, 0.23973259329795837, -0.058094561100006104, 0.15336963534355164, 0.13057264685630798, -0.010125264525413513, 0.24691496789455414, -0.3754158020019531, -0.08812306076288223, 0.39225175976753235, -0.3160184919834137, -0.00870264507830143, -0.23715543746948242, 0.29274314641952515, 0.20002488791942596, -0.31816568970680237, -0.3173503875732422, -0.02499525249004364, 0.36826032400131226, -0.020989537239074707, -0.14318715035915375, -0.07761676609516144, 0.35393980145454407, 0.29225823283195496, 0.04176006838679314, -0.051902636885643005, -0.09013782441616058, 0.07618897408246994, 0.24803122878074646, -0.15152209997177124 ]
https://github.com/huggingface/datasets/pull/2783
Add KS task to SUPERB
thanks a lot for implementing this @anton-l !! i won't have time to review this while i'm away, so happy for @albertvillanova and @patrickvonplaten to decide when to merge :)
Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619.
30
text: Add KS task to SUPERB Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619. thanks a lot for implementing this @anton-l !! i won't have time to review this while i'm away, so happy for @albertvillanova and @patrickvonplaten to decide when to merge :)
[ 0.022924963384866714, -0.577778697013855, -0.06284467875957489, -0.2974287271499634, -0.06915748864412308, -0.3812158405780792, 0.15514150261878967, 0.058874741196632385, -0.5389379858970642, 0.2593139708042145, -0.09400908648967743, 0.5316078066825867, -0.2868291437625885, 0.1652030497789383, 0.1520773321390152, 0.05856883153319359, 0.1556471288204193, 0.2595510184764862, -0.15943197906017303, 0.005455993115901947, 0.09374649822711945, 0.003998236730694771, -0.30023181438446045, -0.21413953602313995, -0.034774187952280045, 0.06357109546661377, 0.050102464854717255, -0.21281641721725464, -0.32984408736228943, -0.22316811978816986, 0.03234008699655533, 0.4489367604255676, 0.006415748968720436, 0.5456283688545227, -0.00010820642637554556, -0.2038286328315735, 0.3139585852622986, -0.3107357323169708, -0.16803760826587677, 0.005849182605743408, -0.5825940370559692, 0.12477989494800568, -0.2604089677333832, -0.23732805252075195, -0.29203853011131287, -0.0026308754459023476, -0.0003792084753513336, 0.1700989305973053, 0.5687223076820374, 0.22778329253196716, 0.20791813731193542, 0.2620229125022888, -0.07822488248348236, 0.1323723942041397, 0.43230727314949036, -0.08195671439170837, -0.2556396722793579, -0.24082046747207642, 0.12293487042188644, -0.2196834534406662, -0.003679320216178894, 0.5182905197143555, -0.2411784827709198, -0.16555996239185333, 0.5711493492126465, -0.24940912425518036, -0.2933849096298218, -0.3930201232433319, 0.1498987078666687, 0.41657763719558716, 0.1577175408601761, -0.11469379812479019, -0.22711040079593658, -0.30331718921661377, -0.0912342444062233, -0.2764849364757538, -0.1528928279876709, -0.18231786787509918, -0.44879308342933655, -0.1845620572566986, 0.001434764708392322, -0.03341646119952202, -0.13635164499282837, -0.24169768393039703, 0.12046507000923157, 0.5013983249664307, -0.10726386308670044, -0.30579397082328796, 0.4575726389884949, -0.004600849002599716, -0.3752176761627197, -0.06900206953287125, 0.11798931658267975, 0.08938175439834595, -0.5738519430160522, -0.2885317802429199, 0.41910165548324585, -0.2566916048526764, 0.10224967449903488, -0.19272181391716003, 0.12352804839611053, 0.041370637714862823, 0.15604156255722046, 0.10641385614871979, -0.04276150092482567, 0.39862632751464844, 0.25989118218421936, -0.05224629491567612, 0.0011634491384029388, 0.17836187779903412, -0.05137628689408302, 0.14468544721603394, 0.06034788489341736, -0.17316687107086182, -0.3397310972213745, -0.0606674998998642, 0.010464917868375778, 0.03800151124596596, -0.2664535343647003, 0.12722517549991608, -0.17544624209403992, -0.08340881764888763, 0.013280829414725304, 0.2171303629875183, 0.12108489125967026, 0.07255098223686218, -0.0626583993434906, 0.00238179974257946, -0.2047421932220459, 0.17390072345733643, -0.08892680704593658, 0.08870528638362885, -0.18901100754737854, -0.00015789363533258438, -0.058065906167030334, -0.10230377316474915, 0.11763180047273636, -0.059952348470687866, 0.07189333438873291, 0.03692743182182312, -0.050180584192276, 0.20519736409187317, 0.20457735657691956, 0.08047973364591599, -0.11116337776184082, -0.0516178272664547, -0.38311994075775146, 0.08731032907962799, -0.1203615814447403, 0.1501992642879486, 0.11321486532688141, -0.09053202718496323, 0.26953741908073425, 0.2696184813976288, -0.5518991947174072, -0.13048000633716583, -0.15368309617042542, 0.6105420589447021, -0.2273637354373932, -0.07062088698148727, 0.3710867762565613, -0.11768156290054321, -0.42855164408683777, -0.027744360268115997, 0.3840349316596985, 0.1778680980205536, -0.27993491291999817, -0.015014667063951492, -0.10146421939134598, 0.012436119839549065, 0.07959826290607452, -0.2607276737689972, 0.10626670718193054, 0.38388875126838684, 0.12810344994068146, 0.42879486083984375, 0.21412158012390137, -0.359907329082489, -0.25396639108657837, 0.27045783400535583, -0.20315420627593994, 0.23425154387950897, 0.34931161999702454, -0.3465292453765869, 0.21521097421646118, -0.16361668705940247, -0.1600855439901352, 0.059375617653131485, -0.16052496433258057, -0.03576253354549408, -0.14762651920318604, -0.19669121503829956, -0.18170152604579926, 0.10071441531181335, 0.15789011120796204, -0.3590739071369171, -0.3224879801273346, 0.3203636109828949, 0.1176755353808403, -0.1623469591140747, 0.19228436052799225, 0.10761082917451859, 0.44024619460105896, 0.2387201488018036, 0.07475248724222183, -0.09782056510448456, -0.03508324176073074, -0.07807952165603638, -0.015586781315505505, 0.4581216871738434, -0.17062894999980927, -0.36677706241607666, -0.09091046452522278, -0.2082555592060089, -0.24284683167934418, -0.27619442343711853, 0.2656184434890747, 0.044704366475343704, 0.07214990258216858, 0.013793740421533585, -0.1615721881389618, -0.47714197635650635, 0.10922783613204956, -0.15375488996505737, -0.08304236829280853, -0.03868366777896881, -0.09758435934782028, 0.09691131860017776, 0.10004043579101562, 0.4412066638469696, 0.043578870594501495, -0.0009014497045427561, 0.0511547327041626, 0.2979356646537781, -0.06869997829198837, 0.40603435039520264, 0.059761080890893936, 0.48486268520355225, -0.0517505407333374, -0.28446972370147705, 0.04450289532542229, 0.24305890500545502, 0.11065192520618439, -0.053783200681209564, 0.05157805234193802, 0.130257248878479, -0.04905251786112785, 0.0523078516125679, 0.1435517966747284, -0.38797760009765625, 0.02441762201488018, -0.14969657361507416, -0.2763955891132355, 0.15403683483600616, 0.03188857063651085, -0.3397888243198395, 0.03416796401143074, 0.22881953418254852, -0.22849491238594055, 0.11634339392185211, 0.2566683292388916, -0.27641361951828003, -0.015416853129863739, 0.17341133952140808, -0.058092810213565826, -0.23876357078552246, 0.06438806653022766, 0.2398226410150528, 0.22771653532981873, 0.23946619033813477, 0.3762902617454529, -0.12026097625494003, 0.12339477986097336, -0.10031021386384964, 0.19378361105918884, 0.30406904220581055, -0.09974679350852966, 0.5180082321166992, 0.005196228623390198, 0.1515144556760788, -0.38839849829673767, 0.06337320804595947, 0.05370369553565979, -0.03785927593708038, -0.026260636746883392, -0.041839905083179474, -0.05854059010744095, -0.6868489980697632, -0.09908527135848999, 0.16215506196022034, 0.26290950179100037, -0.06460865586996078, 0.514072597026825, 0.021716292947530746, -0.35764074325561523, 0.2184685915708542, 0.09439049661159515, 0.6224693655967712, -0.0209931880235672, -0.0278304610401392, -0.12761223316192627, -0.14612138271331787, -0.059820711612701416, 0.2006499469280243, 0.20675718784332275, -0.0449044331908226, 0.2599163353443146, 0.3627181053161621, -0.11767646670341492, 0.00794411264359951, -0.4823514521121979, 0.1879480481147766, -0.2586629390716553, 0.0706227570772171, 0.18091781437397003, 0.01346539705991745, -0.2898736596107483, -0.41521793603897095, -0.12512774765491486, -0.34077584743499756, -0.16539627313613892, -0.11001928150653839, -0.06354455649852753, -0.003491874085739255, -0.3981631398200989, -0.4327807128429413, 0.16461500525474548, -0.340160995721817, -0.011684007942676544, -0.4545919597148895, -0.11593332886695862, 0.26570531725883484, -0.20448258519172668, 0.17436262965202332, -0.051013823598623276, 0.27363935112953186, -0.11013183742761612, -0.029198918491601944, 0.04775851219892502, -0.25268441438674927, -0.11773455142974854, -0.11555196344852448, -0.24800755083560944, 0.26048848032951355, -0.2968193292617798, -0.2331998646259308, -0.3155427873134613, 0.04204016178846359, -0.020271632820367813, 0.032495010644197464, 0.0744655504822731, 0.03285563737154007, -0.03604462742805481, -0.0880575031042099, -0.3804284930229187, 0.20407043397426605, 0.032617561519145966, 0.13681387901306152, 0.44795656204223633, 0.1905917227268219, 0.21120911836624146, 0.3602517545223236, 0.6891952157020569, 0.2133672684431076, 0.10009194165468216, 0.15648964047431946, 0.08046211302280426, -0.012698430567979813, -0.04168642312288284, 0.05714232474565506, 0.16854512691497803, -0.033045604825019836, -0.2402063012123108, 0.41976577043533325, 0.03417711704969406, 0.05168958008289337, -0.11574983596801758, 0.1281406581401825, -0.4120124578475952, -0.20801755785942078, 0.013624672777950764, 0.031767837703228, 0.03592607378959656, 0.0252094604074955, 0.05183020234107971, 0.1541476994752884, -0.013273883610963821, 0.17185373604297638, 0.05796455964446068, 0.40337154269218445, -0.10071897506713867, -0.3524788022041321, -0.0017007275018841028, -0.6750265955924988, -0.005318164825439453, 0.10873956233263016, 0.21917147934436798, -0.10080812871456146, -0.1905498504638672, -0.09481516480445862, -0.0651535615324974, 0.37711167335510254, -0.4964720606803894, 0.2534506916999817, -0.04940524697303772, 0.17215004563331604, 0.17783403396606445, -0.15160705149173737, -0.34656551480293274, -0.5099256038665771, 0.27057328820228577, 0.019741926342248917, -0.3300882875919342, -0.07331667840480804, 0.09765800833702087, -0.292790025472641, 0.13104164600372314, 0.02279737964272499, -0.04273234307765961, -0.5496664643287659, 0.13827571272850037, 0.13746264576911926, 0.44925764203071594, 0.19899897277355194, -0.24539431929588318, 0.03600307181477547, 0.6227042078971863, 0.20415356755256653, 0.2779694199562073, 0.13978807628154755, 0.07154203206300735, 0.40073251724243164, 0.15431953966617584, 0.06411336362361908, -0.30815547704696655, 0.02531624212861061, 0.22271637618541718, -0.14667777717113495, -0.15503640472888947, -0.07773818075656891, 0.001794358715415001, 0.43662944436073303, 0.40007132291793823, -0.08343441039323807, 0.5408383011817932, -0.20851461589336395, 0.14321491122245789, -0.47613343596458435, 0.27911046147346497, 0.32236942648887634, 0.22245438396930695, 0.2478616088628769, -0.395752876996994, 0.28704747557640076, -0.002422347664833069, -0.23586320877075195, 0.09502120316028595, -0.040389806032180786, -0.22551196813583374, 0.45508241653442383, -0.021816693246364594, 0.9312729239463806, 0.2062934786081314, 0.0075775086879730225, 0.37041759490966797, 0.04634711146354675, 0.39058223366737366, -0.559204638004303, 0.17088954150676727, 0.10460440814495087, -0.20700693130493164, 0.036573052406311035, 0.03712090477347374, -0.061864979565143585, 0.0068838149309158325, -0.12132090330123901, 0.16723988950252533, 0.5354426503181458, 0.5413220524787903, 0.1234184056520462, 0.14280666410923004, 0.25006386637687683, -0.003217918798327446, -0.021926332265138626, 0.12582653760910034, 0.1646251529455185, 0.20683246850967407, -0.06152796000242233, -0.2980930209159851, -0.019710443913936615, -0.21555621922016144, -0.15738141536712646, 0.12402398139238358, 0.03549753874540329, -0.0762871652841568, -0.18533451855182648, -0.3842690587043762, 0.2928950786590576, 0.39382922649383545, -0.10453124344348907, 0.1526506245136261, -0.14899814128875732, 0.1615561991930008, 0.22190824151039124, 0.2697186768054962, -0.03274306654930115, -0.029009371995925903, 0.2879084348678589, -0.2827205955982208, -0.025059938430786133, 0.1342061460018158, 0.0736604779958725, -0.122810497879982, -0.19035197794437408, -0.13055144250392914, -0.02331656962633133, 0.05492175370454788, -0.18616747856140137, 0.2063814103603363, -0.3483399450778961, -0.18687382340431213, 0.192937433719635, -0.22077764570713043, -0.5655859708786011, 0.3216695785522461, -0.1678040325641632, -0.004501603543758392, 0.0568733885884285, 0.13699159026145935, -0.09747297316789627, -0.009615056216716766, 0.15464559197425842, 0.13589058816432953, -0.16475678980350494, -0.2778163254261017, -0.014291714876890182, -0.1117698922753334, 0.22954291105270386, 0.03175521641969681, 0.20554661750793457, -0.34451934695243835, 0.27265259623527527, 0.4281028211116791, 0.047200098633766174, 0.07583476603031158, -0.1528250128030777, 0.155613973736763, 0.11088597029447556, 0.23557978868484497, -0.13058507442474365, 0.4115279018878937, -0.08762386441230774, 0.2098759114742279, 0.16062508523464203, 0.26135602593421936, -0.4007727801799774, -0.10747479647397995, -0.23916925489902496, 0.28888145089149475, 0.17357029020786285, -0.18354934453964233, 0.17999278008937836, -0.06608419120311737, 0.15982520580291748, 0.31455254554748535, -0.15463787317276, -0.2724517285823822, 0.050130825489759445, 0.10934128612279892, 0.16399231553077698, -0.0339096263051033, 0.08427850157022476, 0.18602870404720306, -0.2624970078468323, -0.017227208241820335, 0.3741805851459503, 0.17801570892333984, 0.09168875962495804, 0.5000041723251343, -0.13335028290748596, -0.08780809491872787, 0.10584451258182526, -0.0607113316655159, 0.18964913487434387, 0.043618474155664444, 0.151129812002182, -0.0025903023779392242, 0.16071948409080505, -0.20182976126670837, -0.09093397855758667, 0.291208952665329, 0.13304245471954346, -0.05504260212182999, 0.23285195231437683, 0.049421243369579315, -0.26354745030403137, -0.09738482534885406, 0.46784600615501404, 0.15764307975769043, -0.22035051882266998, -0.015823978930711746, 0.17941203713417053, 0.3097412586212158, -0.24790824949741364, -0.10075981914997101, -0.31003835797309875, -0.143964484333992, 0.29120662808418274, 0.03626100718975067, 0.21478667855262756, 0.0070588961243629456, -0.253711462020874, 0.08001463860273361, -0.17611312866210938, 0.025025395676493645, 0.26312056183815, 0.4671820104122162, -0.009266525506973267, -0.054134879261255264, 0.0922871008515358, -0.428418904542923, 0.04375080019235611, 0.2514987587928772, 0.2118784487247467, 0.5743402242660522, 0.24557703733444214, 0.3270460069179535, 0.31029391288757324, -0.009349046275019646, -0.17969690263271332, 0.10940258949995041, -0.23591256141662598, 0.2993968427181244, -0.11701951920986176, 0.25639766454696655, -0.004123079590499401, -0.07393249869346619, -0.06607954204082489, -0.07507359981536865, -0.17211493849754333, -0.20282329618930817, -0.20963798463344574, -0.2661963105201721, 0.1425677239894867, -0.018050989136099815, 0.24504144489765167, 0.14382410049438477, 0.06967388838529587, -0.04624521732330322, 0.07618436217308044, 0.6159114241600037, -0.15092265605926514, 0.02656366303563118, 0.42811083793640137, -0.17757625877857208, 0.0669260323047638, 0.03484076261520386, 0.07699644565582275, 0.0940198004245758, 0.12364338338375092, 0.2219235897064209, 0.021062050014734268, -0.2607578933238983, 0.04917847737669945, 0.027499474585056305, -0.08763556182384491, -0.008243772201240063, 0.39831510186195374, 0.17766119539737701, -0.07642737030982971, 0.30532529950141907, 0.12833376228809357, -0.26300299167633057, 0.03382144868373871, 0.24755968153476715, -0.36948657035827637, -0.2492552101612091, 0.07790623605251312, 0.13236036896705627, 0.01909860223531723, -0.11778660118579865, 0.13218194246292114, -0.46136319637298584, -0.1845574975013733, 0.3028678297996521, -0.07478339970111847, 0.08136128634214401, -0.35058078169822693, 0.12322506308555603, -0.18128222227096558, 0.32795315980911255, 0.14354056119918823, 0.18364104628562927, -0.13536767661571503, -0.17965780198574066, -0.45709800720214844, -0.1065547838807106, 0.25642600655555725, -0.054379142820835114, -0.04284927248954773, 0.05468742549419403, 0.14510297775268555, 0.07063651084899902, -0.12979669868946075, -0.166241854429245, -0.008942615240812302, 0.24400049448013306, -0.29853808879852295, 0.2676226496696472, -0.2732420563697815, 0.13544249534606934, 0.03422870486974716, -0.22589272260665894, -0.1313249170780182, -0.15275079011917114, 0.08131081610918045, 0.1829235702753067, 0.15798431634902954, 0.2490604817867279, -0.008860979229211807, 0.10267376154661179, -0.06479813903570175, 0.672641396522522, -0.38522782921791077, 0.021601369604468346, 0.019434742629528046, 0.23714764416217804, -0.38706886768341064, -0.3920770585536957, -0.15538913011550903, 0.39784201979637146, 0.17073330283164978, 0.010660890489816666, -0.022958016023039818, -0.05118505284190178, 0.14584487676620483, 0.030402230098843575, -0.3409338593482971, -0.025044044479727745, -0.4374372363090515, 0.17029693722724915, 0.14734511077404022, 0.2387409806251526, -0.1324492245912552, -0.11710220575332642, -0.33183062076568604, -0.529768705368042, 0.4695071280002594, -0.20495210587978363, -0.08644519746303558, -0.43802574276924133, 0.15321344137191772, 0.146151602268219, 0.05265326797962189, -0.6534605622291565, -0.11821556836366653, 0.018259618431329727, 0.27129822969436646, 0.04216863587498665, 0.4419298768043518, 0.021364089101552963, -0.14379772543907166, -0.022043315693736076, -0.11205875873565674, 0.10763125121593475, 0.2039230912923813, 0.038538482040166855, -0.5174657702445984 ]
https://github.com/huggingface/datasets/pull/2783
Add KS task to SUPERB
> The _background_noise_/_silence_ audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) @anton-l I was thinking that maybe we could give some hints in the dataset card (in a Usage section); something similar as for diarization: https://github.com/huggingface/datasets/blob/master/datasets/superb/README.md#example-of-usage Note that for diarization it is not yet finished: we have to test it and then provide an end-to-end example: https://github.com/huggingface/datasets/pull/2661/files#r680224909
Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619.
94
text: Add KS task to SUPERB Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619. > The _background_noise_/_silence_ audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) @anton-l I was thinking that maybe we could give some hints in the dataset card (in a Usage section); something similar as for diarization: https://github.com/huggingface/datasets/blob/master/datasets/superb/README.md#example-of-usage Note that for diarization it is not yet finished: we have to test it and then provide an end-to-end example: https://github.com/huggingface/datasets/pull/2661/files#r680224909
[ 0.04745729640126228, -0.6833490133285522, -0.08294281363487244, -0.09909427165985107, 0.24178941547870636, -0.240995854139328, -0.007339019328355789, 0.020346935838460922, -0.5692981481552124, 0.23761436343193054, 0.030773092061281204, 0.5521116256713867, -0.21775393187999725, 0.2475108951330185, 0.11934193968772888, -0.05300585925579071, 0.1678788959980011, 0.180853009223938, -0.18702292442321777, -0.10695704817771912, 0.07634373754262924, -0.13741059601306915, -0.2225685864686966, -0.0972764790058136, -0.1258920282125473, -0.02144780196249485, 0.039758890867233276, -0.23743796348571777, -0.3251281678676605, -0.41855737566947937, -0.03311550244688988, 0.4809027314186096, 0.1986413449048996, 0.5145267844200134, -0.00011628182983258739, -0.299923837184906, 0.34989702701568604, -0.37049880623817444, -0.3086886703968048, 0.005200996994972229, -0.6218895316123962, -0.0949447751045227, -0.08566438406705856, -0.3710063695907593, -0.34883561730384827, -0.039520516991615295, 0.01580880954861641, 0.06673760712146759, 0.5248823761940002, 0.10354107618331909, 0.1486959606409073, 0.1575312465429306, -0.205301895737648, 0.11251667886972427, 0.3734963536262512, 0.021905552595853806, -0.2833797037601471, -0.20777495205402374, 0.09829524159431458, -0.2613662779331207, 0.09586512297391891, 0.5701907277107239, -0.09500722587108612, -0.02195698395371437, 0.6869219541549683, -0.19118857383728027, -0.2527965009212494, -0.32582637667655945, 0.07431036233901978, 0.4579099416732788, 0.14282840490341187, -0.14854750037193298, -0.3463704288005829, -0.3673126697540283, -0.1219119131565094, -0.2926200032234192, -0.17675331234931946, -0.24985769391059875, -0.4113599956035614, -0.24100103974342346, -0.02459336817264557, -0.04199233278632164, -0.10454852133989334, -0.20767991244792938, 0.1234656423330307, 0.5342592597007751, -0.19529490172863007, -0.21910467743873596, 0.3873556852340698, 0.09773296862840652, -0.4807533025741577, 0.02556479535996914, 0.18748590350151062, 0.10959210246801376, -0.5418184995651245, -0.21787899732589722, 0.43725210428237915, -0.17502453923225403, 0.07251492142677307, -0.18655149638652802, 0.34637024998664856, 0.030185503885149956, 0.19859439134597778, 0.06545424461364746, 0.11181658506393433, 0.2935490906238556, 0.373674601316452, -0.08447815477848053, -0.06822245568037033, 0.1600380390882492, -0.059537794440984726, 0.024609539657831192, -0.11078405380249023, -0.16147150099277496, -0.1710982620716095, 0.006129749119281769, 0.04907582700252533, 0.06476609408855438, -0.14225834608078003, -0.04870900511741638, -0.16910424828529358, -0.12885832786560059, 0.12087836116552353, 0.3721013367176056, 0.011818181723356247, 0.042220115661621094, -0.1984051614999771, -0.08559148013591766, -0.2304885983467102, 0.10179226845502853, -0.04355517402291298, 0.07019831985235214, -0.35416293144226074, 0.031385406851768494, -0.09255291521549225, -0.2560718059539795, 0.044451527297496796, -0.0346563458442688, -0.06779535114765167, -0.01996190845966339, -0.08410259336233139, 0.10940364003181458, 0.3264079689979553, 0.06630068272352219, -0.19816502928733826, -0.0004329737275838852, -0.3879660367965698, 0.21241678297519684, -0.2760588228702545, 0.11243648082017899, 0.18485000729560852, -0.06372067332267761, 0.22873346507549286, 0.18122228980064392, -0.583575427532196, -0.09187154471874237, -0.27987444400787354, 0.5949041247367859, -0.25242361426353455, -0.0877646803855896, 0.34758543968200684, -0.22049139440059662, -0.40862125158309937, -0.10619589686393738, 0.3856429159641266, 0.17813460528850555, -0.29276400804519653, -0.23247858881950378, -0.14258472621440887, -0.019741393625736237, 0.10902593284845352, -0.2233414500951767, 0.12838798761367798, 0.44371718168258667, 0.2047707587480545, 0.41946864128112793, 0.3542068898677826, -0.4467768669128418, -0.24532434344291687, 0.22378672659397125, -0.0992882251739502, 0.24400605261325836, 0.3987368643283844, -0.2910926043987274, 0.28319600224494934, -0.2012224644422531, -0.13854333758354187, 0.023574918508529663, -0.15645231306552887, -0.09399648755788803, -0.1723158061504364, -0.24757051467895508, -0.2287987321615219, 0.0895647257566452, 0.04058554768562317, -0.36088693141937256, -0.2869489789009094, 0.41059669852256775, 0.03927411139011383, -0.1102980524301529, 0.16915008425712585, -0.00677388533949852, 0.3571891188621521, 0.2661493420600891, -0.004842531867325306, -0.0882541835308075, -0.146704763174057, -0.013578644022345543, 0.08995552361011505, 0.31127646565437317, -0.22306551039218903, -0.5187047123908997, -0.16834679245948792, -0.1867222636938095, -0.27931660413742065, -0.14343367516994476, 0.18643303215503693, -0.039904311299324036, 0.21040205657482147, -0.0498165488243103, -0.13139380514621735, -0.5990654230117798, -0.05853470787405968, -0.08294621855020523, -0.11271794140338898, -0.025706181302666664, -0.016070665791630745, 0.12806546688079834, 0.08284284174442291, 0.5006868839263916, 0.14022843539714813, -0.11053162068128586, 0.004273856524378061, 0.25598955154418945, -0.09533769637346268, 0.40415674448013306, 0.005488265305757523, 0.6889613270759583, -0.09671709686517715, -0.2406521439552307, -0.04682242125272751, 0.06490854918956757, 0.066331647336483, 0.06784725934267044, -0.09659311920404434, 0.1771182417869568, -0.10170628130435944, 0.06088851019740105, 0.14342612028121948, -0.39216554164886475, -0.01716272160410881, -0.09577865898609161, -0.22927695512771606, -0.010600917041301727, 0.021364040672779083, -0.13755692541599274, 0.13465164601802826, 0.2249007374048233, -0.21722470223903656, 0.1301252394914627, 0.3427194356918335, -0.2951548397541046, 0.019642423838377, 0.15553145110607147, -0.020469456911087036, -0.22053629159927368, 0.13600321114063263, 0.25549009442329407, 0.13681092858314514, 0.24137969315052032, 0.38847655057907104, -0.129791259765625, 0.06499844789505005, -0.058487821370363235, 0.1576959490776062, 0.4223458766937256, -0.11206752806901932, 0.3172781765460968, -0.055709078907966614, 0.23551565408706665, -0.2289767563343048, 0.025849130004644394, 0.13598798215389252, 0.06919746100902557, -0.024315480142831802, -0.09628590941429138, -0.1158963292837143, -0.6591957807540894, 0.08998916298151016, 0.02810826525092125, 0.3777717053890228, -0.04514197260141373, 0.4498399496078491, -0.07221673429012299, -0.3359627425670624, 0.1334475576877594, 0.023850906640291214, 0.6415780782699585, -0.1518656611442566, 0.07056889683008194, -0.21841683983802795, -0.2232917845249176, -0.002547822892665863, 0.11694660782814026, 0.3023926019668579, -0.025809647515416145, 0.3597252368927002, 0.18698516488075256, -0.016931354999542236, 0.05222242325544357, -0.6057065725326538, 0.33651497960090637, -0.24118395149707794, 0.14962050318717957, 0.1374119222164154, 0.09472615271806717, -0.23515194654464722, -0.24006333947181702, -0.08274896442890167, -0.2994735538959503, -0.06404545158147812, -0.19522155821323395, -0.009370693005621433, 0.020257018506526947, -0.29491060972213745, -0.41401609778404236, 0.2070019394159317, -0.3655221462249756, 0.04012126103043556, -0.5540280938148499, -0.028843380510807037, 0.33679911494255066, -0.16448868811130524, 0.14791624248027802, -0.022542815655469894, 0.2989036738872528, -0.14803184568881989, -0.08620524406433105, -0.0004513785243034363, -0.257259726524353, -0.09609873592853546, -0.027063464745879173, -0.336905837059021, 0.3600335717201233, -0.1487465500831604, -0.21824409067630768, -0.38758623600006104, 0.03442631661891937, -0.048756301403045654, 0.02582559920847416, -0.1228751391172409, 0.11918546259403229, -0.0008365921676158905, -0.05034942179918289, -0.29840606451034546, 0.14625215530395508, 0.024487189948558807, 0.1641404628753662, 0.28399917483329773, 0.1382811963558197, 0.1914207637310028, 0.44097965955734253, 0.6286317110061646, 0.13847163319587708, 0.021461406722664833, 0.1945999413728714, 0.1156136617064476, -0.005702052265405655, 0.10259432345628738, 0.12448008358478546, 0.12367890030145645, 0.05186925828456879, -0.19084015488624573, 0.4375096559524536, 0.12108735740184784, 0.14428754150867462, 0.04524294286966324, 0.22307270765304565, -0.5177855491638184, -0.2597115933895111, 0.151571124792099, 0.040432143956422806, -0.00021773576736450195, -0.057245999574661255, 0.165059894323349, 0.13121184706687927, 0.017841050401329994, 0.13656535744667053, 0.1491406112909317, 0.4489591419696808, -0.11868555098772049, -0.4746013879776001, -0.1538071185350418, -0.48858392238616943, 0.093007393181324, 0.21147632598876953, 0.24929864704608917, -0.3287682831287384, -0.08273264765739441, 0.027349546551704407, -0.05275825038552284, 0.31715214252471924, -0.6692243218421936, 0.18682050704956055, 0.07167698442935944, 0.04986110329627991, 0.09122580289840698, -0.11327074468135834, -0.36201342940330505, -0.4422575831413269, 0.21546640992164612, -0.03841155022382736, -0.4003162682056427, -0.28378644585609436, 0.25741636753082275, -0.24603614211082458, 0.09728235006332397, 0.0810767188668251, -0.021783124655485153, -0.5453044772148132, 0.07684046775102615, 0.20016446709632874, 0.4018738865852356, 0.1540285348892212, -0.33500927686691284, 0.011046066880226135, 0.4132915139198303, 0.17146971821784973, 0.31844639778137207, 0.3146109879016876, 0.082020103931427, 0.49504345655441284, 0.06046837195754051, 0.16722382605075836, -0.23385551571846008, 0.19188416004180908, 0.34381920099258423, -0.08908933401107788, -0.20217719674110413, 0.06141146644949913, 0.1214381605386734, 0.42401638627052307, 0.5087089538574219, -0.024484843015670776, 0.530072808265686, -0.26787886023521423, 0.14279603958129883, -0.6332959532737732, 0.4765569865703583, 0.416437029838562, 0.32214123010635376, -0.051530465483665466, -0.5280472040176392, 0.4760349988937378, 0.13491292297840118, -0.3836684823036194, 0.1894458681344986, 0.009938828647136688, -0.2339043915271759, 0.3818356990814209, 0.06605079025030136, 1.0988657474517822, 0.035565342754125595, 0.016997165977954865, 0.31285786628723145, 0.0633239820599556, 0.40681564807891846, -0.4836943745613098, 0.04628220945596695, 0.15652470290660858, -0.2472205013036728, -0.04167144000530243, 0.046427588909864426, 0.14055314660072327, 0.14384032785892487, -0.17312617599964142, 0.1682058423757553, 0.3298993706703186, 0.4905109107494354, 0.09738299995660782, 0.19963371753692627, 0.2544151246547699, -0.07504850625991821, -0.17006073892116547, 0.04810330271720886, 0.05953039973974228, 0.29037684202194214, -0.11433558166027069, -0.22442927956581116, -0.1069636344909668, -0.10891897976398468, -0.16753177344799042, -0.06330212950706482, -0.0592571496963501, -0.22023388743400574, -0.3750326931476593, -0.4921284317970276, 0.3852865695953369, 0.48312076926231384, -0.044586315751075745, 0.03662726283073425, -0.11730864644050598, 0.15527740120887756, -0.10217202454805374, 0.1906651258468628, -0.019312437623739243, -0.0068120756186544895, 0.369564026594162, -0.16533493995666504, 0.01817672699689865, 0.21886661648750305, 0.10677596181631088, 0.05822322517633438, -0.334173321723938, -0.06920762360095978, -0.02843761444091797, -0.10488694161176682, -0.22724898159503937, 0.08686798810958862, -0.3628442585468292, -0.06167864799499512, 0.12879732251167297, -0.167690247297287, -0.44105494022369385, 0.3233104348182678, 0.02584296092391014, -0.049566131085157394, 0.01101963222026825, 0.09924744069576263, -0.10184098035097122, -0.12901607155799866, 0.17058928310871124, -0.05924813449382782, -0.08261176943778992, -0.2501041293144226, 0.02651551365852356, 0.04900509491562843, 0.2725276052951813, -0.0571921281516552, 0.3533487617969513, -0.3218262493610382, 0.19863949716091156, 0.5254399180412292, 0.12098102271556854, -0.08544371277093887, -0.1845862865447998, 0.17897330224514008, 0.08689283579587936, 0.35760724544525146, 0.01178910955786705, 0.46330562233924866, -0.1791124939918518, 0.2908135652542114, 0.15931299328804016, 0.44958817958831787, -0.31999683380126953, -0.055636852979660034, -0.288125216960907, 0.3046635389328003, 0.15465883910655975, 0.006866753101348877, 0.20899417996406555, -0.19934071600437164, 0.06675545126199722, 0.2387503683567047, -0.20351698994636536, -0.19962182641029358, -0.017351800575852394, 0.1524241715669632, 0.10005395114421844, 0.03267360106110573, 0.08072280138731003, 0.27435457706451416, -0.1261773407459259, -0.14746907353401184, 0.390300452709198, 0.2309039831161499, 0.1109345555305481, 0.6558755040168762, -0.04480329528450966, 0.038232237100601196, 0.05346858501434326, -0.023335125297307968, 0.15362751483917236, 0.21284838020801544, 0.2437271922826767, 0.002445761114358902, 0.18250878155231476, -0.12896768748760223, -0.08713662624359131, 0.2494695484638214, 0.2318888157606125, -0.05376729369163513, 0.13576902449131012, 0.21447350084781647, -0.058282021433115005, -0.05592230334877968, 0.30712175369262695, 0.12234852463006973, -0.2181619107723236, -0.10371783375740051, 0.06741073727607727, 0.254611998796463, -0.14695334434509277, -0.05820275470614433, -0.3269446790218353, -0.17220959067344666, 0.3323022425174713, 0.11144420504570007, 0.21982577443122864, 0.16587205231189728, -0.1970384269952774, -0.0783577635884285, -0.16481037437915802, 0.022836409509181976, 0.4538976550102234, 0.49672529101371765, -0.0008597448468208313, 0.06468496471643448, 0.274845689535141, -0.30613768100738525, 0.029968775808811188, 0.25303518772125244, 0.20516204833984375, 0.6838202476501465, 0.22508543729782104, 0.4534492492675781, 0.17830030620098114, -0.0791928768157959, -0.14775514602661133, 0.2785757780075073, -0.2260589897632599, 0.4782473146915436, -0.15592361986637115, 0.41170644760131836, -0.022626254707574844, -0.06016432121396065, -0.11278359591960907, -0.15779514610767365, -0.11377275735139847, -0.20540635287761688, -0.1653011441230774, -0.2569259703159332, 0.10517860949039459, -0.1256103813648224, 0.16821935772895813, -0.055860355496406555, 0.09211813658475876, -0.06618958711624146, 0.07314172387123108, 0.5525181293487549, -0.12885600328445435, 0.15946757793426514, 0.5639618039131165, -0.10937128961086273, 0.07565914839506149, 0.04922354221343994, 0.1726282835006714, 0.16414201259613037, 0.12738846242427826, 0.31463828682899475, 0.09861461818218231, -0.18154080212116241, -0.026422318071126938, 0.0545484758913517, -0.056731320917606354, 0.013410691171884537, 0.31208911538124084, 0.10668100416660309, -0.010281544178724289, 0.18183812499046326, 0.0896303728222847, -0.19538134336471558, 0.017743052914738655, 0.09392775595188141, -0.32041671872138977, -0.28869566321372986, 0.15345792472362518, 0.03880027309060097, -0.02110055461525917, -0.028110668063163757, 0.10762707889080048, -0.5889734625816345, -0.16931705176830292, 0.2884812653064728, -0.15530553460121155, 0.11161399632692337, -0.2796255052089691, 0.0715312659740448, -0.08058223128318787, 0.33977171778678894, -0.05043874308466911, 0.10406896471977234, -0.1785435676574707, -0.15599122643470764, -0.51175856590271, -0.2800906300544739, 0.27340614795684814, -0.14136305451393127, 0.10269483178853989, 0.01620691828429699, 0.07934845983982086, 0.06414095312356949, -0.21210910379886627, -0.3045519292354584, -0.02351382002234459, 0.3577485680580139, -0.36322441697120667, 0.18142978847026825, -0.2913665771484375, 0.19427885115146637, -0.01443294994533062, -0.17554497718811035, -0.08228683471679688, -0.21952927112579346, -0.08546392619609833, 0.07368235290050507, 0.25067126750946045, 0.1529429703950882, -0.09985408186912537, 0.11349092423915863, -0.059508100152015686, 0.8736099004745483, -0.29090481996536255, -0.027732569724321365, 0.14545980095863342, 0.2020092010498047, -0.37687093019485474, -0.10519593209028244, -0.23548761010169983, 0.32795870304107666, 0.2053912878036499, 0.00047187134623527527, -0.07493744045495987, -0.15379729866981506, 0.08155958354473114, 0.10376011580228806, -0.27699631452560425, -0.048782020807266235, -0.37305667996406555, 0.15261821448802948, 0.13864153623580933, 0.31163567304611206, -0.045852966606616974, -0.07376167923212051, -0.3768259286880493, -0.5253307223320007, 0.4357175827026367, -0.1335742473602295, -0.038593076169490814, -0.3447597026824951, 0.1459524780511856, 0.16579583287239075, 0.1071593165397644, -0.6991621255874634, -0.05433167144656181, 0.10047741234302521, 0.302399218082428, 0.04228578880429268, 0.5847282409667969, -0.0016039805486798286, -0.13106690347194672, -0.05096171051263809, -0.02407289296388626, -0.018104687333106995, 0.11206646263599396, 0.06107759848237038, -0.4809338450431824 ]
https://github.com/huggingface/datasets/pull/2783
Add KS task to SUPERB
@albertvillanova yeah, I'm not sure how to best implement it in pure `datasets` yet. It's something like this, where `sample_noise()` needs to be called from a pytorch batch collator or other framework-specific variant: ```python def map_to_array(example): import soundfile as sf speech_array, sample_rate = sf.read(example["file"]) example["speech"] = speech_array example["sample_rate"] = sample_rate return example def sample_noise(example): # Use a version of this function in a stateless way to extract random 1 sec slices of background noise # on each epoch from random import randint # _silence_ audios are longer than 1 sec if example["label"] == "_silence_": random_offset = randint(0, len(example["speech"]) - example["sample_rate"] - 1) example["speech"] = example["speech"][random_offset : random_offset + example["sample_rate"]] return example ```
Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619.
112
text: Add KS task to SUPERB Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619. @albertvillanova yeah, I'm not sure how to best implement it in pure `datasets` yet. It's something like this, where `sample_noise()` needs to be called from a pytorch batch collator or other framework-specific variant: ```python def map_to_array(example): import soundfile as sf speech_array, sample_rate = sf.read(example["file"]) example["speech"] = speech_array example["sample_rate"] = sample_rate return example def sample_noise(example): # Use a version of this function in a stateless way to extract random 1 sec slices of background noise # on each epoch from random import randint # _silence_ audios are longer than 1 sec if example["label"] == "_silence_": random_offset = randint(0, len(example["speech"]) - example["sample_rate"] - 1) example["speech"] = example["speech"][random_offset : random_offset + example["sample_rate"]] return example ```
[ -0.08783061057329178, -0.4196072220802307, -0.055951859802007675, -0.2589816451072693, -0.11360503733158112, -0.3545907735824585, 0.22333548963069916, 0.08417727053165436, -0.4757077693939209, 0.2435176819562912, -0.0768517255783081, 0.5576096773147583, -0.32392486929893494, 0.09413084387779236, 0.18212197721004486, -0.013365291059017181, 0.09722393751144409, 0.20536300539970398, -0.14005422592163086, 0.03457484394311905, 0.08761268854141235, -0.09441664814949036, -0.3454345464706421, -0.20071755349636078, -0.0968327671289444, -0.10940077155828476, 0.09173869341611862, -0.1839577555656433, -0.32089418172836304, -0.2475973665714264, 0.052090227603912354, 0.5049107074737549, 0.1444443315267563, 0.5758112072944641, -0.00010948505951091647, -0.25701063871383667, 0.27280735969543457, -0.2670160233974457, -0.17875421047210693, 0.016660213470458984, -0.4870316982269287, 0.029104022309184074, -0.3422701358795166, -0.3639584481716156, -0.28433775901794434, -0.06069771572947502, -0.00026081129908561707, 0.004891764372587204, 0.600240170955658, 0.28839701414108276, 0.17808932065963745, 0.2527293562889099, -0.1125631108880043, 0.09778253734111786, 0.46907877922058105, 0.027111459523439407, -0.19812552630901337, -0.2625150680541992, 0.06251472979784012, -0.28660252690315247, -0.08262371271848679, 0.48380082845687866, -0.29168468713760376, -0.03439098224043846, 0.5852309465408325, -0.15710040926933289, -0.42234429717063904, -0.3478546738624573, 0.09996163845062256, 0.44208601117134094, 0.13583675026893616, -0.2141398787498474, -0.3072415590286255, -0.36435988545417786, -0.1750786155462265, -0.3391999304294586, -0.20434391498565674, -0.18193894624710083, -0.5239119529724121, -0.2128569483757019, -0.10427726805210114, 0.05852825939655304, -0.10456375777721405, -0.08003269135951996, 0.1301988661289215, 0.4381130039691925, -0.148348867893219, -0.2123768925666809, 0.545825183391571, -0.08799821138381958, -0.2327881157398224, -0.10132930427789688, 0.23522675037384033, 0.18755945563316345, -0.552381157875061, -0.27382415533065796, 0.40654700994491577, -0.37301257252693176, 0.13378435373306274, -0.1707739531993866, 0.0050722407177090645, 0.054356418550014496, 0.20253358781337738, 0.10630558431148529, 0.006850713863968849, 0.2301483154296875, 0.22544196248054504, -0.0648992657661438, 0.10017330944538116, 0.17481482028961182, -0.021404346451163292, 0.17656949162483215, 0.005350825376808643, -0.20229101181030273, -0.30430033802986145, -0.004062578082084656, 0.05517035722732544, 0.056333620101213455, -0.28084424138069153, 0.16930831968784332, -0.2519446015357971, -0.09396610409021378, 0.007137056905776262, 0.19692838191986084, 0.1652444452047348, -0.013615503907203674, -0.027925483882427216, -0.05031374841928482, -0.2207733392715454, 0.12118884176015854, -0.07764098048210144, 0.09994632005691528, -0.27369654178619385, 0.03380386531352997, -0.00045645982027053833, 0.04930456727743149, 0.1732511818408966, -0.04198190197348595, 0.08260516822338104, 0.05531056225299835, 0.006965631619095802, 0.1533709019422531, 0.1979295313358307, 0.039756353944540024, -0.13359636068344116, -0.04511385038495064, -0.3587181866168976, 0.1589604914188385, -0.20121486485004425, 0.11802288889884949, 0.13365593552589417, -0.06931748241186142, 0.26635995507240295, 0.2129017412662506, -0.6018640398979187, -0.12593433260917664, -0.1856464445590973, 0.6004118323326111, -0.17897972464561462, -0.14643946290016174, 0.36683231592178345, -0.16208375990390778, -0.4180201292037964, -0.04306980222463608, 0.4443036913871765, 0.231069415807724, -0.3379754424095154, 0.0747680515050888, -0.17539569735527039, 0.03688134625554085, 0.13651703298091888, -0.25517144799232483, 0.06512865424156189, 0.3782155215740204, 0.0776258334517479, 0.4928572177886963, 0.2192177176475525, -0.2878408432006836, -0.28525325655937195, 0.25351059436798096, -0.18105199933052063, 0.26534131169319153, 0.3493615984916687, -0.2365187406539917, 0.20078472793102264, -0.15974600613117218, -0.05052417516708374, 0.1582721471786499, -0.15859755873680115, -0.08179018646478653, -0.09744054079055786, -0.20523561537265778, -0.2281397134065628, 0.1880301535129547, 0.16611409187316895, -0.31982988119125366, -0.31598934531211853, 0.3510802686214447, 0.14253762364387512, -0.21658167243003845, 0.18454349040985107, 0.09511519968509674, 0.49191439151763916, 0.24191005527973175, -0.007694846950471401, -0.23467209935188293, -0.09138717502355576, -0.05094717815518379, 0.07482083886861801, 0.36882027983665466, -0.15871621668338776, -0.40262824296951294, -0.08023495972156525, -0.1881466954946518, -0.24115334451198578, -0.2181897759437561, 0.24057579040527344, 0.06284689158201218, 0.1713738739490509, -0.12276966869831085, -0.1930457204580307, -0.5020038485527039, 0.07102454453706741, -0.15132391452789307, -0.1911398321390152, -0.0600418895483017, -0.03998442739248276, -0.019365038722753525, 0.1436537206172943, 0.45559975504875183, 0.022903967648744583, -0.005192013457417488, 0.040803708136081696, 0.2622376084327698, 0.1165291890501976, 0.34109237790107727, -0.008084788918495178, 0.5045843720436096, -0.08703099191188812, -0.1794152557849884, 0.004133880138397217, 0.29076558351516724, 0.09344106167554855, 0.05294711887836456, -0.02578643709421158, 0.2858705222606659, -0.015784475952386856, 0.04867536574602127, 0.06378473341464996, -0.32213395833969116, 0.030928121879696846, -0.1340469866991043, -0.22708387672901154, 0.17415480315685272, 0.048957619816064835, -0.2941957414150238, 0.15775567293167114, 0.19443941116333008, -0.20880289375782013, 0.10494814813137054, 0.19162112474441528, -0.30540233850479126, 0.04948195815086365, 0.126591295003891, -0.08668086677789688, -0.18989521265029907, 0.1778421849012375, 0.32106664776802063, 0.2646408677101135, 0.2396543025970459, 0.32094961404800415, -0.10258675366640091, 0.14906185865402222, -0.10619227588176727, 0.14835157990455627, 0.2838832139968872, -0.06997448951005936, 0.4339335858821869, -0.04516725614666939, 0.0955265536904335, -0.3859372138977051, -0.07550971210002899, 0.06340643018484116, 0.09293272346258163, -0.03686496987938881, 0.012386830523610115, -0.05239870399236679, -0.6378208994865417, -0.08859163522720337, 0.14686916768550873, 0.3458193242549896, 0.019754676148295403, 0.37572288513183594, 0.10897470265626907, -0.46970826387405396, 0.1616201549768448, 0.05069190636277199, 0.6039214730262756, 0.028821704909205437, -0.04159142076969147, -0.1513354480266571, -0.22752311825752258, -0.06455644965171814, 0.17726780474185944, 0.2724646329879761, 0.07396747171878815, 0.26500946283340454, 0.3237448036670685, -0.04158109426498413, -0.010171422734856606, -0.4104960858821869, 0.13274575769901276, -0.21838076412677765, 0.11905094236135483, 0.20039796829223633, 0.05762910842895508, -0.31875574588775635, -0.4157332479953766, -0.07719731330871582, -0.3828950524330139, -0.11768393218517303, -0.04754906892776489, -0.09570277482271194, -0.0036570080555975437, -0.337373286485672, -0.37654244899749756, 0.024424228817224503, -0.32847997546195984, -0.047174111008644104, -0.46768033504486084, -0.052492253482341766, 0.29507529735565186, -0.13804912567138672, 0.21499788761138916, -0.06279097497463226, 0.22401738166809082, -0.16126348078250885, -0.13382256031036377, 0.10719769448041916, -0.2538300156593323, -0.13068382441997528, -0.13076873123645782, -0.295396625995636, 0.13842609524726868, -0.08646824955940247, -0.21201542019844055, -0.42816561460494995, -0.03349209576845169, 0.06286628544330597, 0.04489382356405258, 0.12390296906232834, -0.003598444163799286, -0.08863252401351929, -0.08157035708427429, -0.3665025532245636, 0.24727952480316162, 0.11215601116418839, 0.10100573301315308, 0.4033143222332001, 0.21447783708572388, 0.24568259716033936, 0.38880032300949097, 0.7353641986846924, 0.3258915841579437, -0.012851089239120483, 0.16696038842201233, 0.02147149294614792, -0.10729050636291504, 0.07816356420516968, 0.1025296002626419, 0.15140105783939362, -0.01698644459247589, -0.292900025844574, 0.34278202056884766, 0.01447366178035736, 0.02675667591392994, -0.03131503984332085, 0.17515425384044647, -0.3831344544887543, -0.26520130038261414, 0.09264633059501648, 0.1081506609916687, 0.07735716551542282, -0.016198545694351196, 0.13744285702705383, 0.04645397886633873, -0.046911563724279404, 0.12892860174179077, -0.06867852807044983, 0.42221182584762573, -0.06849239766597748, -0.44482889771461487, -0.06657922267913818, -0.6284255385398865, 0.0775003656744957, 0.12961897253990173, 0.3713705241680145, -0.11412766575813293, -0.1629026234149933, -0.10291393101215363, -0.015470651909708977, 0.35158440470695496, -0.505071222782135, 0.23905397951602936, -0.033894166350364685, 0.18636348843574524, 0.09678272157907486, -0.1331014335155487, -0.4465619623661041, -0.4141276776790619, 0.1960441917181015, 0.06795687973499298, -0.334087073802948, -0.07329855114221573, 0.1384691596031189, -0.17555490136146545, 0.1560186892747879, 0.07157270610332489, -0.02126619778573513, -0.6509005427360535, 0.11880229413509369, 0.19419696927070618, 0.4173847436904907, 0.2524982988834381, -0.20182257890701294, 0.08801759779453278, 0.5147351026535034, 0.2841815650463104, 0.3074910044670105, 0.21614180505275726, 0.16564401984214783, 0.4226047098636627, 0.09184043109416962, 0.1515081822872162, -0.40810203552246094, 0.16238270699977875, 0.20288605988025665, -0.1773461401462555, -0.2753474712371826, -0.07313168048858643, 0.08038046211004257, 0.3917507231235504, 0.40898701548576355, -0.1209631934762001, 0.4826586842536926, -0.1569196581840515, 0.19721075892448425, -0.5431703925132751, 0.3191279470920563, 0.30784735083580017, 0.24612116813659668, 0.2327781468629837, -0.5629956722259521, 0.4163018465042114, 0.08532361686229706, -0.18183012306690216, 0.05118048936128616, -0.10376134514808655, -0.25127115845680237, 0.4860578179359436, -0.0044067054986953735, 0.8259050846099854, 0.2248670607805252, 0.014085505157709122, 0.39528805017471313, 0.1643107384443283, 0.3788038492202759, -0.527409017086029, 0.11878020316362381, 0.0968923270702362, -0.22456404566764832, 0.02120218239724636, -0.015240535140037537, 0.04900094121694565, 0.13260503113269806, -0.08982735872268677, 0.15002618730068207, 0.4082704186439514, 0.4994032084941864, 0.1266537755727768, 0.1322905272245407, 0.1617269217967987, -0.027392815798521042, -0.1431308090686798, 0.10599176585674286, 0.07954099774360657, 0.2839186191558838, 0.004537487402558327, -0.2951487898826599, -0.11182716488838196, -0.11434292048215866, -0.14375470578670502, 0.06567378342151642, 0.03351873159408569, -0.04530235379934311, -0.2626517117023468, -0.4245723485946655, 0.18111620843410492, 0.3774986267089844, -0.07230277359485626, 0.16625897586345673, -0.10347360372543335, 0.10863685607910156, 0.16888922452926636, 0.2340955138206482, 0.01719019189476967, -0.107356958091259, 0.2703291177749634, -0.19042542576789856, -0.07127197086811066, 0.1811414659023285, 0.08659994602203369, -0.11546072363853455, -0.136194109916687, -0.1867886334657669, -0.03736710548400879, 0.00467849662527442, -0.23382407426834106, 0.16667088866233826, -0.33083435893058777, -0.15158690512180328, 0.16408634185791016, -0.1696876585483551, -0.55558842420578, 0.4187554717063904, -0.2705061435699463, 0.042998626828193665, 0.13620918989181519, 0.1325937956571579, -0.08010389655828476, 0.018280256539583206, 0.14852319657802582, 0.14143162965774536, -0.15541505813598633, -0.2570846676826477, 0.10539286583662033, -0.032235804945230484, 0.22243520617485046, 0.10821425169706345, 0.18209655582904816, -0.2591579854488373, 0.2200200855731964, 0.41596412658691406, 0.04186596721410751, -0.04663640260696411, -0.17118845880031586, 0.040665365755558014, 0.08648036420345306, 0.24532197415828705, 0.033338144421577454, 0.45364871621131897, -0.026828128844499588, 0.26152679324150085, 0.038227640092372894, 0.217094287276268, -0.3748204708099365, -0.06456168740987778, -0.22130051255226135, 0.3260979950428009, 0.08078761398792267, -0.16499203443527222, 0.1079070121049881, -0.0752168595790863, 0.09755023568868637, 0.3065280318260193, -0.19095396995544434, -0.24033010005950928, 0.040104690939188004, 0.12310638278722763, 0.18332016468048096, -0.1144077330827713, 0.14557619392871857, 0.10059438645839691, -0.28600019216537476, -0.13491593301296234, 0.4131452739238739, 0.2231362760066986, 0.09086152166128159, 0.4963235855102539, -0.1682547777891159, -0.022585228085517883, 0.07507994771003723, -0.026875615119934082, 0.11414571851491928, 0.009134642779827118, 0.17979618906974792, 0.10766198486089706, 0.18070538341999054, -0.16691800951957703, 0.024451809003949165, 0.23893210291862488, 0.173100084066391, -0.10012923926115036, 0.17432135343551636, 0.000629376620054245, -0.2051776796579361, -0.04616758972406387, 0.5011011362075806, 0.33511775732040405, -0.22752238810062408, -0.003572089597582817, 0.19629281759262085, 0.3173583149909973, -0.2637937366962433, -0.03815658390522003, -0.20576302707195282, -0.14294062554836273, 0.37570515275001526, 0.035619452595710754, 0.13094787299633026, 0.025715596973896027, -0.3371509313583374, 0.010817158967256546, -0.05815468356013298, 0.029060889035463333, 0.3041052520275116, 0.5566031336784363, 0.010716039687395096, -0.05944843962788582, 0.09321312606334686, -0.3560625910758972, 0.08277322351932526, 0.33193618059158325, 0.1146928071975708, 0.652542769908905, 0.27100345492362976, 0.2959435284137726, 0.25707000494003296, -0.13623745739459991, -0.07395787537097931, 0.21711239218711853, -0.16133233904838562, 0.2928859293460846, -0.1722269356250763, 0.33895009756088257, -0.14405511319637299, 0.002471714047715068, -0.0744033083319664, -0.08877444267272949, -0.15506106615066528, -0.18264701962471008, -0.23437844216823578, -0.26104941964149475, 0.16208595037460327, -0.019841782748699188, 0.1906019002199173, 0.07494475692510605, 0.07033053785562515, -0.12430663406848907, 0.13803407549858093, 0.49598488211631775, -0.10036743432283401, 0.05248118191957474, 0.40122097730636597, -0.15083695948123932, 0.028617722913622856, 0.046820349991321564, 0.025806743651628494, 0.11377404630184174, 0.14954102039337158, 0.18786564469337463, 0.03756966441869736, -0.30372023582458496, 0.07998714596033096, 0.016423424705863, -0.09531127661466599, -0.07811270654201508, 0.3852333724498749, 0.16752144694328308, -0.026919923722743988, 0.3386935889720917, 0.10677172988653183, -0.2521404027938843, -0.07132613658905029, 0.21335017681121826, -0.3931286633014679, -0.2052929848432541, 0.09499333798885345, 0.06895257532596588, 0.027566201984882355, 0.020132772624492645, -0.025558121502399445, -0.4173358380794525, -0.34651979804039, 0.3868454098701477, -0.18642665445804596, 0.1032429113984108, -0.2436777502298355, 0.11783657968044281, -0.33635979890823364, 0.2870514988899231, 0.0770336464047432, 0.2277929186820984, -0.16135752201080322, -0.13320094347000122, -0.5403508543968201, -0.10226178914308548, 0.18986482918262482, -0.18413394689559937, -0.049435727298259735, 0.0727272555232048, 0.07826238125562668, 0.20331577956676483, -0.22697515785694122, -0.17622648179531097, -0.07718489319086075, 0.4420437812805176, -0.3244057297706604, 0.2519025504589081, -0.39271974563598633, 0.13061539828777313, 0.030462596565485, -0.3189554512500763, -0.17050988972187042, -0.14496435225009918, 0.038539230823516846, 0.12432672828435898, 0.13714924454689026, 0.27594539523124695, -0.05692095309495926, 0.13222000002861023, -0.04532156139612198, 0.6981394290924072, -0.3151707053184509, 0.022861560806632042, -0.04848447069525719, 0.260593444108963, -0.353152334690094, -0.399685800075531, -0.1356322467327118, 0.44125470519065857, 0.13058078289031982, 0.12482790648937225, -0.055695462971925735, 0.038383811712265015, 0.18462051451206207, -0.001232322072610259, -0.2815781533718109, 0.014037137851119041, -0.5266109108924866, 0.21106526255607605, 0.1692287027835846, 0.23826661705970764, -0.126948744058609, -0.0009998008608818054, -0.2761746942996979, -0.4926283359527588, 0.5097122192382812, -0.39866214990615845, -0.09479309618473053, -0.3911140561103821, 0.13941144943237305, 0.05197446048259735, 0.002106335014104843, -0.6294681429862976, -0.041404638439416885, 0.01244162768125534, 0.20882657170295715, 0.11691515147686005, 0.4458092749118805, -0.022658895701169968, -0.20197425782680511, -0.004847370088100433, 0.04905565828084946, 0.08831660449504852, 0.12684722244739532, 0.005520068109035492, -0.5099119544029236 ]
https://github.com/huggingface/datasets/pull/2783
Add KS task to SUPERB
I see... Yes, not trivial indeed. Maybe for the moment you could add those functions above to the README (as it is the case for now in diarization)? What do you think?
Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619.
32
text: Add KS task to SUPERB Add the KS (keyword spotting) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051). - [s3prl instructions](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/README.md#ks-keyword-spotting) - [s3prl implementation](https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/speech_commands/dataset.py) - [TFDS implementation](https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/audio/speech_commands.py) Some notable quirks: - The dataset is originally single-archive (train+val+test all in one), but the test set has a "canonical" distribution in a separate archive, which is also used here (see `_split_ks_files()`). - The `_background_noise_`/`_silence_` audio files are much longer than others, so they require some sort of slicing for downstream training. I decided to leave the implementation of that up to the users, since TFDS and s3prl take different approaches (either slicing wavs deterministically, or subsampling randomly at runtime) Related to #2619. I see... Yes, not trivial indeed. Maybe for the moment you could add those functions above to the README (as it is the case for now in diarization)? What do you think?
[ 0.023252349346876144, -0.5938268899917603, -0.036474451422691345, -0.23701323568820953, 0.00986199826002121, -0.25572535395622253, 0.0830916166305542, 0.00923127494752407, -0.5797963738441467, 0.19052764773368835, -0.11817829310894012, 0.4760131537914276, -0.3554169237613678, 0.17845419049263, 0.11059681326150894, 0.019283801317214966, 0.18170678615570068, 0.22606560587882996, -0.13804009556770325, -0.006279241293668747, 0.042466744780540466, -0.10376356542110443, -0.34122025966644287, -0.16584835946559906, 0.09710264950990677, 0.059370748698711395, 0.13523593544960022, -0.3089732825756073, -0.3512839078903198, -0.2569575905799866, 0.009875448420643806, 0.5259667634963989, 0.09273362159729004, 0.49633705615997314, -0.0001169351817225106, -0.25574517250061035, 0.3362373113632202, -0.3794218599796295, -0.1406075805425644, 0.11318954825401306, -0.5975326299667358, 0.09181809425354004, -0.24002493917942047, -0.3199836313724518, -0.2555858790874481, -0.02652602270245552, 0.04147421941161156, 0.14709709584712982, 0.5646834373474121, 0.13612967729568481, 0.15764710307121277, 0.14370405673980713, -0.11633375287055969, 0.2553929090499878, 0.5418040752410889, 0.0012151673436164856, -0.2688862979412079, -0.23019368946552277, -0.02111341804265976, -0.25938671827316284, 0.09684426337480545, 0.5468055009841919, -0.3439282774925232, -0.131834477186203, 0.7090969681739807, -0.18044880032539368, -0.17181867361068726, -0.4171332120895386, 0.15911106765270233, 0.4651539623737335, 0.14611946046352386, -0.16557076573371887, -0.3961132764816284, -0.3402814269065857, -0.09548573195934296, -0.30973947048187256, -0.18255457282066345, -0.2357218712568283, -0.41553404927253723, -0.201027050614357, -0.024629754945635796, -0.11859938502311707, -0.07324086129665375, -0.24994178116321564, 0.17705288529396057, 0.5039504766464233, -0.11955848336219788, -0.2547066807746887, 0.5080052018165588, 0.005111007019877434, -0.40249019861221313, -0.0553780272603035, 0.14584848284721375, 0.11027279496192932, -0.564010500907898, -0.2352162003517151, 0.35278287529945374, -0.24981164932250977, -0.019140981137752533, -0.18637192249298096, 0.148899108171463, 0.016165200620889664, 0.18902616202831268, 0.05553567409515381, -0.027068831026554108, 0.2958790957927704, 0.26862913370132446, 0.03907602280378342, 0.04532073810696602, 0.1849622130393982, 0.03128274902701378, 0.11766655743122101, -0.00032933265902101994, -0.25281426310539246, -0.3291061222553253, 0.00958208553493023, 0.07645012438297272, 0.02899511530995369, -0.2345091849565506, 0.05016917735338211, -0.29402899742126465, -0.11573921144008636, 0.043534401804208755, 0.1536162793636322, 0.14612451195716858, 0.04944418743252754, -0.07183974981307983, -0.0644151046872139, -0.23391962051391602, 0.18208174407482147, 0.016615964472293854, 0.11605055630207062, -0.11197951436042786, 0.10721370577812195, -0.17979131639003754, -0.13645030558109283, -0.05928238481283188, -0.21606817841529846, 0.09423292428255081, 0.06662903726100922, -0.2012915164232254, 0.17480528354644775, 0.1760738641023636, 0.13141484558582306, -0.23547303676605225, -0.0234147347509861, -0.5166171193122864, 0.08571749925613403, -0.22559696435928345, 0.14585624635219574, 0.11491259932518005, -0.11464583873748779, 0.3119286894798279, 0.17734871804714203, -0.48957037925720215, -0.047220148146152496, -0.20085343718528748, 0.6278691291809082, -0.18295761942863464, -0.2011670023202896, 0.3537992537021637, -0.14003391563892365, -0.44759401679039, -0.06308028101921082, 0.31805601716041565, 0.19760507345199585, -0.24904340505599976, -0.05756581947207451, -0.10158511996269226, -0.026110604405403137, 0.1716080754995346, -0.3681475520133972, 0.13944393396377563, 0.413849413394928, 0.15610070526599884, 0.44503962993621826, 0.3202648460865021, -0.3223355710506439, -0.26446354389190674, 0.2491273134946823, -0.10088823735713959, 0.28209027647972107, 0.3811187744140625, -0.27271074056625366, 0.11894240230321884, -0.2709355354309082, -0.1761404573917389, 0.06260789930820465, -0.18224608898162842, -0.1213308572769165, -0.11061827838420868, -0.2558771073818207, -0.09737458825111389, 0.15905413031578064, 0.2569746673107147, -0.3441714644432068, -0.3299841582775116, 0.5048456192016602, 0.04980031028389931, -0.14274565875530243, 0.19737906754016876, 0.05852719023823738, 0.4868496358394623, 0.20143550634384155, 0.0789097473025322, -0.12560701370239258, -0.07771921902894974, -0.11449723690748215, 0.08068059384822845, 0.4745088815689087, -0.18862102925777435, -0.527036726474762, 0.038223814219236374, -0.17659957706928253, -0.24143873155117035, -0.20644566416740417, 0.18005186319351196, -0.08363382518291473, 0.1300184577703476, -0.04295872524380684, -0.17773820459842682, -0.5711058974266052, 0.11500267684459686, -0.2224768102169037, -0.08593328297138214, -0.10605396330356598, -0.06098116934299469, 0.19258219003677368, 0.08766120672225952, 0.5212926864624023, 0.11988834291696548, -0.11196286231279373, 0.041164811700582504, 0.3009430468082428, -0.0485658161342144, 0.4151887893676758, -0.0585169792175293, 0.6037337779998779, -0.017066987231373787, -0.2034480720758438, -0.059434838593006134, 0.24368909001350403, 0.11004365235567093, -0.03814126178622246, 0.042636528611183167, 0.18101198971271515, -0.11863584816455841, 0.14178267121315002, 0.1941259503364563, -0.3703981935977936, -0.020557278767228127, -0.09247881174087524, -0.35145866870880127, 0.14954543113708496, -0.05630860850214958, -0.36363542079925537, 0.07503348588943481, 0.20531101524829865, -0.12854211032390594, 0.15034788846969604, 0.16187627613544464, -0.3358459174633026, -0.09961176663637161, 0.2718254327774048, 0.03477155417203903, -0.26179754734039307, 0.029309306293725967, 0.25811970233917236, 0.2600719630718231, 0.2210247963666916, 0.36284512281417847, 0.019402403384447098, 0.24815373122692108, -0.010757014155387878, 0.1855325698852539, 0.3461551070213318, -0.09563760459423065, 0.432451456785202, -0.08660035580396652, 0.2319081425666809, -0.2976027727127075, 0.0697510838508606, 0.11369980126619339, 0.008767317049205303, -0.08316858857870102, -0.046637434512376785, 0.007094191387295723, -0.6902065277099609, 0.027267836034297943, 0.22553116083145142, 0.2857213616371155, -0.07774624228477478, 0.4823053479194641, -0.04545648768544197, -0.4466656446456909, 0.19342289865016937, 0.05952982231974602, 0.6805087327957153, -0.06416065990924835, 0.03924703598022461, -0.1544799655675888, -0.15674260258674622, -0.03777848184108734, 0.10609687864780426, 0.30056020617485046, -0.07784989476203918, 0.2697579562664032, 0.17980140447616577, -0.0773465633392334, -0.10827694088220596, -0.5021073818206787, 0.2630881667137146, -0.1349909007549286, 0.07011395692825317, 0.216704323887825, -0.008926920592784882, -0.33205920457839966, -0.32075273990631104, -0.1809670627117157, -0.4009419083595276, -0.15108691155910492, -0.16576187312602997, -0.07955749332904816, 0.038908425718545914, -0.34694597125053406, -0.32637453079223633, 0.13074642419815063, -0.3272565007209778, -0.050176918506622314, -0.5045888423919678, -0.02213391661643982, 0.3147558271884918, -0.3328278660774231, 0.13239417970180511, 0.018056638538837433, 0.2557755410671234, -0.11705195903778076, 0.06023629382252693, 0.0423283725976944, -0.21346741914749146, -0.1136309802532196, -0.11438339203596115, -0.2708359956741333, 0.3260328471660614, -0.15242834389209747, -0.2575985789299011, -0.3514319062232971, 0.11415518075227737, -0.06681182235479355, -0.05302681773900986, 0.1284814029932022, 0.008484512567520142, -0.009806785732507706, -0.030484605580568314, -0.25230520963668823, 0.2553168833255768, -0.014461979269981384, 0.13238346576690674, 0.34491580724716187, 0.23892411589622498, 0.24190464615821838, 0.3741690218448639, 0.5875817537307739, 0.24481037259101868, 0.17645683884620667, 0.13396728038787842, 0.023740548640489578, 0.030411748215556145, 0.06702829897403717, 0.08775213360786438, 0.1585148572921753, 0.017653942108154297, -0.36068302392959595, 0.34741395711898804, 0.0609436072409153, 0.0730120912194252, -0.0960724949836731, 0.20957769453525543, -0.4490702748298645, -0.29372531175613403, 0.013165252283215523, 0.023248644545674324, -0.0015677586197853088, 0.01662607118487358, 0.15343323349952698, 0.13566376268863678, -0.04817100986838341, 0.18660730123519897, 0.13423073291778564, 0.478452205657959, -0.035878583788871765, -0.40078577399253845, -0.07770243287086487, -0.6324396729469299, 0.07481606304645538, 0.1872381716966629, 0.25459733605384827, -0.09552383422851562, -0.1499319076538086, -0.1300024837255478, -0.08343928307294846, 0.3368641138076782, -0.5916849374771118, 0.20869563519954681, 0.0036877524107694626, 0.1493978202342987, 0.18137547373771667, -0.23429641127586365, -0.2694317698478699, -0.4685044586658478, 0.20864753425121307, -0.04980623722076416, -0.40077999234199524, -0.18477724492549896, 0.18538276851177216, -0.27238544821739197, 0.08828218281269073, -0.015250181779265404, -0.08317344635725021, -0.6546268463134766, 0.2179737389087677, 0.06023826077580452, 0.43341565132141113, 0.1317395567893982, -0.2843535244464874, 0.11158360540866852, 0.4757770597934723, 0.2902044653892517, 0.3914666175842285, 0.1752733588218689, 0.07450787723064423, 0.47393351793289185, 0.12305231392383575, 0.10495955497026443, -0.33653920888900757, 0.033111680299043655, 0.2673032879829407, -0.13288339972496033, -0.251529723405838, -0.07184775918722153, 0.0019006291404366493, 0.4830041229724884, 0.5490621328353882, -0.13075761497020721, 0.5050914287567139, -0.2526044547557831, 0.19415751099586487, -0.5855839252471924, 0.3309771418571472, 0.3648677468299866, 0.1691529005765915, 0.10593099147081375, -0.4541483521461487, 0.4103005826473236, 0.11145895719528198, -0.2806435823440552, 0.077313631772995, 0.04926222562789917, -0.2365378588438034, 0.4032924771308899, 0.08121843636035919, 1.045166015625, 0.08527084439992905, 0.036849670112133026, 0.3257014751434326, 0.11477625370025635, 0.46392425894737244, -0.6076188683509827, 0.16230487823486328, 0.08096113801002502, -0.16723544895648956, -0.039877746254205704, 0.06468810141086578, -0.05262032896280289, 0.037292346358299255, -0.0661139264702797, 0.2702955901622772, 0.4916647672653198, 0.5888457298278809, 0.10278657078742981, 0.10849688947200775, 0.3517434895038605, -0.022752773016691208, 0.010458992794156075, 0.03840562701225281, 0.09332699328660965, 0.2681054174900055, -0.10319285094738007, -0.29319632053375244, 0.018613774329423904, -0.25596073269844055, -0.17777636647224426, 0.039496488869190216, 0.08731777966022491, -0.06393523514270782, -0.2597428560256958, -0.3614634871482849, 0.23744747042655945, 0.4154438376426697, -0.15923082828521729, 0.08777421712875366, -0.1516529768705368, 0.05642039328813553, 0.15224890410900116, 0.31134194135665894, -0.022564761340618134, -0.05548180639743805, 0.3110930323600769, -0.24623912572860718, 0.09520275145769119, 0.07970145344734192, 0.021222256124019623, -0.07828271389007568, -0.2201315462589264, -0.13611187040805817, 0.061472147703170776, 0.12945783138275146, -0.21929652988910675, 0.16566351056098938, -0.3894815444946289, -0.13464044034481049, 0.10838042199611664, -0.34212279319763184, -0.471315860748291, 0.3572200834751129, -0.11164246499538422, 0.03886636346578598, 0.11411435902118683, 0.1390221267938614, -0.06656590849161148, -0.05273529887199402, 0.12318583577871323, -0.02063881605863571, -0.24609488248825073, -0.20694366097450256, 0.05061037838459015, -0.12059444189071655, 0.2549891173839569, 0.022760294377803802, 0.2567107081413269, -0.27233898639678955, 0.19839593768119812, 0.49039506912231445, 0.08377116918563843, 0.012494213879108429, -0.18241767585277557, 0.19425907731056213, 0.21989187598228455, 0.251956969499588, -0.037898700684309006, 0.38530105352401733, -0.09634731709957123, 0.21727705001831055, 0.10750094056129456, 0.30829259753227234, -0.2969764769077301, -0.09947790205478668, -0.18247771263122559, 0.23247595131397247, 0.11245305836200714, 0.010491885244846344, 0.07626082748174667, -0.053609974682331085, 0.060414962470531464, 0.33007460832595825, -0.14659400284290314, -0.1468706578016281, 0.03504454717040062, 0.16930656135082245, 0.19290629029273987, -0.05444997549057007, 0.18573428690433502, 0.212373286485672, -0.37039244174957275, -0.088506318628788, 0.3171847462654114, 0.28091514110565186, 0.08230937272310257, 0.5178407430648804, -0.14804145693778992, 0.02822665497660637, 0.06469421088695526, 0.03339308500289917, 0.158479243516922, 0.25134798884391785, 0.07855817675590515, 0.06092006713151932, 0.23200953006744385, -0.1175817996263504, -0.011310899630188942, 0.24933505058288574, 0.16215454041957855, -0.13339444994926453, 0.1830376386642456, 0.09058952331542969, -0.15844637155532837, -0.023764925077557564, 0.42129257321357727, 0.3426721692085266, -0.24198320508003235, -0.02422529272735119, 0.23118197917938232, 0.2160278707742691, -0.3198651969432831, -0.08409672230482101, -0.2887316048145294, -0.15075747668743134, 0.21204572916030884, 0.055967263877391815, 0.18968769907951355, 0.11046504974365234, -0.25095468759536743, -0.025016624480485916, -0.2254936248064041, 0.005721338093280792, 0.33436840772628784, 0.5401820540428162, 0.001266825944185257, 0.02706739865243435, 0.1638834923505783, -0.3975997865200043, -0.02203495055437088, 0.2704956829547882, 0.12417963147163391, 0.5494797825813293, 0.2247912585735321, 0.4243887960910797, 0.3097054064273834, -0.06792053580284119, -0.16043062508106232, 0.184088334441185, -0.11909912526607513, 0.2881704568862915, -0.10419471561908722, 0.2067394107580185, -0.03690844401717186, -0.04833301156759262, -0.08732953667640686, -0.18573838472366333, -0.12656643986701965, -0.12443295121192932, -0.08293377608060837, -0.27527275681495667, 0.14418421685695648, -0.037113700062036514, 0.17016607522964478, 0.08775557577610016, 0.07905039936304092, -0.0429205447435379, 0.27009111642837524, 0.7093440890312195, -0.15669649839401245, -0.036186181008815765, 0.5508248209953308, -0.22467252612113953, -0.12477920204401016, 0.0415777862071991, 0.1780869960784912, 0.10401645302772522, 0.13537874817848206, 0.2119465172290802, 0.2101009041070938, -0.28759586811065674, -0.052909307181835175, 0.08119820058345795, -0.0336822085082531, 0.06450816243886948, 0.39170393347740173, 0.20284774899482727, -0.05262375250458717, 0.25766444206237793, 0.022017749026417732, -0.21163275837898254, 0.07988139986991882, 0.20295153558254242, -0.3652682602405548, -0.2561855614185333, 0.15843811631202698, 0.054533783346414566, 0.03375302255153656, -0.053813636302948, 0.09771081805229187, -0.3695066273212433, -0.24654428660869598, 0.28091779351234436, -0.09127067029476166, 0.1672249138355255, -0.2807912528514862, 0.07586132735013962, -0.09591060876846313, 0.3924497663974762, 0.01744048297405243, 0.1672370731830597, -0.12022951990365982, -0.0487147718667984, -0.542923092842102, -0.1769556701183319, 0.3353133499622345, -0.10308763384819031, 0.09675741195678711, -0.0030493540689349174, 0.12904062867164612, 0.16189466416835785, -0.20186980068683624, -0.2576838433742523, 0.0035424018278717995, 0.3078995645046234, -0.3217260539531708, 0.2373868227005005, -0.2867751717567444, 0.09810997545719147, 0.0073247067630290985, -0.29842817783355713, -0.047751475125551224, -0.2205265313386917, -0.01923193968832493, 0.1412259042263031, 0.2810526192188263, 0.24492734670639038, 0.0909879058599472, 0.17103037238121033, -0.1265631914138794, 0.709813117980957, -0.3392693102359772, -0.00858205184340477, 0.0606202594935894, 0.28031954169273376, -0.3162979781627655, -0.2594282627105713, -0.21795260906219482, 0.2609754502773285, 0.15111754834651947, -0.0002079606056213379, -0.1630842238664627, -0.15284763276576996, 0.07604513317346573, 0.07259749621152878, -0.4415142238140106, -0.05794896185398102, -0.45650652050971985, 0.26710888743400574, 0.06331928819417953, 0.14471715688705444, -0.14131146669387817, -0.1275043487548828, -0.3395395874977112, -0.49006325006484985, 0.5932790040969849, -0.19814865291118622, -0.015175615437328815, -0.35164183378219604, 0.13867872953414917, 0.2720681130886078, 0.05313810706138611, -0.6683938503265381, -0.09766227006912231, 0.026118069887161255, 0.26711714267730713, 0.13020479679107666, 0.5367492437362671, -0.10446494817733765, -0.23106475174427032, -0.061893533915281296, -0.14225244522094727, -0.07340405136346817, 0.205629363656044, 0.015164930373430252, -0.49693381786346436 ]
https://github.com/huggingface/datasets/pull/2774
Prevent .map from using multiprocessing when loading from cache
Hi @thomasw21, yes you are right: those failing tests were fixed with #2779. Would you mind to merge current upstream master branch and push again? ``` git checkout sequential_map_when_cached git fetch upstream master git merge upstream/master git push -u origin sequential_map_when_cached ```
## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable.
42
text: Prevent .map from using multiprocessing when loading from cache ## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable. Hi @thomasw21, yes you are right: those failing tests were fixed with #2779. Would you mind to merge current upstream master branch and push again? ``` git checkout sequential_map_when_cached git fetch upstream master git merge upstream/master git push -u origin sequential_map_when_cached ```
[ -0.2461632788181305, -0.23170338571071625, -0.010192660614848137, 0.027171041816473007, -0.034653276205062866, -0.2256254255771637, 0.5539514422416687, 0.24334993958473206, 0.10571758449077606, 0.2275431752204895, 0.23166993260383606, 0.009406824596226215, -0.1177866980433464, 0.11072651296854019, -0.10160737484693527, -0.04868263006210327, -0.012218482792377472, -0.2539461851119995, 0.15727654099464417, 0.22817657887935638, -0.1379045844078064, 0.17799535393714905, 0.013395123183727264, 0.1071297749876976, -0.4547217786312103, -0.13417156040668488, 0.16225354373455048, 0.48716941475868225, -0.10922058671712875, -0.3822057247161865, -0.06440559774637222, 0.27880266308784485, -0.11572378128767014, 0.1183311864733696, -0.00011881058162543923, -0.010925840586423874, 0.12449069321155548, 0.004468973726034164, 0.30118662118911743, -0.01987968385219574, -0.12342094630002975, 0.003518505021929741, 0.15886785089969635, -0.4235374331474304, 0.11692959815263748, 0.4804534912109375, -0.07620895653963089, -0.23777787387371063, 0.5218636989593506, -0.0865962952375412, 0.14325402677059174, 0.09756039828062057, -0.2261856198310852, 0.17632606625556946, -0.13098761439323425, -0.10686448216438293, -0.07570617645978928, -0.04578305780887604, 0.16055163741111755, -0.14201520383358002, -0.31998211145401, 0.24796585738658905, -0.3363519012928009, 0.15739531815052032, -0.26702284812927246, -0.04184577614068985, 0.8216482400894165, -0.38979384303092957, 0.2147313356399536, 0.3028174638748169, -0.3364695608615875, -0.0653420090675354, -0.13037735223770142, -0.29042643308639526, -0.18873192369937897, -0.34338656067848206, 0.20870080590248108, 0.03015223518013954, -0.29846078157424927, -0.044496115297079086, -0.5122179388999939, -0.09570889919996262, 0.21022987365722656, -0.15513594448566437, 0.18111595511436462, 0.09827670454978943, 0.26463279128074646, 0.21427282691001892, 0.38720473647117615, 0.1684822142124176, -0.15804897248744965, 0.046013906598091125, 0.20594003796577454, -0.04781747981905937, -0.2536081373691559, 0.08026866614818573, 0.00939435139298439, 0.33517059683799744, 0.19944626092910767, 0.08514940738677979, 0.19885101914405823, 0.3413829803466797, -0.011284706182777882, 0.2533854842185974, -0.04671807959675789, -0.12190964818000793, 0.10726664215326309, -0.12702859938144684, 0.014900576323270798, 0.24523311853408813, -0.284859299659729, 0.23184067010879517, 0.31369271874427795, -0.5076594352722168, 0.09607699513435364, 0.4170818328857422, -0.09337838739156723, -0.11806859076023102, 0.1246747151017189, -0.03518166393041611, 0.027571633458137512, -0.30860692262649536, 0.25219789147377014, 0.2109459638595581, 0.08639484643936157, 0.3816613554954529, -0.11546444892883301, 0.12239210307598114, -0.5304088592529297, -0.0650317445397377, -0.12916505336761475, 0.14390848577022552, -0.4324854016304016, 0.3224097490310669, -0.10176725685596466, -0.04861781373620033, 0.08282839506864548, 0.30881452560424805, 0.37456178665161133, -0.13035432994365692, 0.3174501061439514, -0.14223666489124298, 0.39762595295906067, 0.2958628237247467, -0.08379414677619934, -0.12505364418029785, 0.2291349470615387, -0.04410448670387268, -0.21165317296981812, 0.3249439597129822, -0.3542185425758362, -0.46261128783226013, 0.046949468553066254, 0.08436918258666992, -0.052123893052339554, 0.39746856689453125, -0.15663868188858032, -0.1576494425535202, 0.5264325141906738, -0.1928730607032776, 0.1263371855020523, -0.22974474728107452, -0.6139616370201111, -0.3776123523712158, 0.30029115080833435, 0.2718406319618225, 0.2886159420013428, 0.008536331355571747, -0.027288945391774178, -0.1084665060043335, 0.403971791267395, 0.21234378218650818, -0.24821971356868744, -0.04635465890169144, -0.16966314613819122, 0.22683630883693695, -0.07267909497022629, -0.41515329480171204, 0.09837932139635086, 0.3614971339702606, -0.2689377963542938, 0.20983298122882843, 0.30029425024986267, -0.1675167977809906, -0.009087501093745232, -0.1683197021484375, 0.08755888044834137, 0.15712329745292664, -0.10788638889789581, 0.20190370082855225, -0.3254907727241516, -0.382366806268692, -0.20233480632305145, -0.04714013636112213, 0.1919514685869217, 0.0652632787823677, -0.02341434359550476, -0.2565564513206482, 0.2931874096393585, -0.08578979969024658, 0.09190855920314789, -0.09981861710548401, -0.10199342668056488, -0.15903159976005554, -0.11710183322429657, 0.09281256049871445, -0.2546200156211853, 0.47321370244026184, -0.37924349308013916, -0.2203349471092224, -0.23780657351016998, -0.03145095705986023, 0.5378777384757996, -0.10366744548082352, -0.24955542385578156, -0.037501152604818344, 0.03294584900140762, -0.1136452704668045, -0.10816216468811035, -0.26871350407600403, 0.049084823578596115, 0.26678767800331116, 0.10199469327926636, 0.030441490933299065, -0.2847713828086853, -0.03500746935606003, -0.11924143880605698, -0.04894842952489853, -0.4351016581058502, 0.17844358086585999, 0.0692734569311142, -0.0040042586624622345, 0.13587096333503723, 0.3006592392921448, 0.2846878170967102, 0.07827991992235184, -0.13220158219337463, 0.5271983742713928, 0.1418682485818863, 0.2971973717212677, -0.04847224801778793, -0.3765803873538971, -0.3012523353099823, -0.20794376730918884, 0.22288164496421814, 0.5237023234367371, -0.037237685173749924, 0.24530622363090515, -0.05516687408089638, -0.028511662036180496, 0.11847420036792755, -0.27453476190567017, 0.048919208347797394, -0.29278120398521423, 0.18362362682819366, 0.2506278157234192, 0.12988802790641785, 0.0827488973736763, -0.20146965980529785, 0.11018465459346771, 0.10415416955947876, 0.28120607137680054, -0.15992990136146545, 0.01836942322552204, 0.35952603816986084, -0.18280285596847534, 0.13859869539737701, 0.06366932392120361, 0.3673393726348877, 0.1254814863204956, 0.13179774582386017, 0.036210473626852036, -0.1250992864370346, -0.23947395384311676, -0.07969244569540024, 0.0023434609174728394, 0.16867291927337646, 0.12097509950399399, -0.01890411227941513, -0.008636576123535633, -0.034030403941869736, -0.1926998645067215, 0.1464473009109497, -0.17864857614040375, -0.29130375385284424, 0.10307767242193222, -0.31174126267433167, 0.428123414516449, -0.1083805114030838, -0.11913128942251205, -0.199371337890625, -0.12231417000293732, 0.17396453022956848, 0.4296890199184418, 0.0160844549536705, 0.15189103782176971, 0.006639469414949417, -0.006691470742225647, -0.3044828772544861, -0.39926469326019287, -0.03694029152393341, -0.22491028904914856, 0.159054234623909, -0.022825703024864197, 0.33274728059768677, -0.004879870917648077, 0.2471594214439392, 0.05688735842704773, -0.42841213941574097, -0.07825462520122528, -0.1137857586145401, -0.015453249216079712, 0.054060276597738266, -0.05685633420944214, 0.040830954909324646, -0.09506188333034515, -0.17731168866157532, -0.32950732111930847, 0.23645621538162231, -0.3527090847492218, -0.13121995329856873, 0.0052049532532691956, -0.08619532734155655, -0.0870460644364357, -0.10133233666419983, 0.06280140578746796, -0.15739145874977112, -0.16635842621326447, 0.10701918601989746, 0.07247059047222137, 0.3148093819618225, -0.07165569812059402, 0.11331908404827118, -0.1036229357123375, -0.13259084522724152, 0.14298567175865173, -0.17437312006950378, -0.6119470000267029, -0.16277311742305756, -0.10643943399190903, -0.03338795527815819, 0.03950301930308342, -0.00543883815407753, 0.24597351253032684, 0.5788246393203735, -0.1892659068107605, -0.4112362563610077, 0.08384990692138672, 0.27921050786972046, 0.02898474968969822, -0.048832967877388, 0.5595872402191162, 0.356088787317276, -0.13110487163066864, 0.09832140058279037, 0.1397707164287567, 0.2510061264038086, -0.04479820281267166, 0.15670403838157654, 0.2134968340396881, 0.21342232823371887, 0.2714202105998993, 1.2308655977249146, 0.15208449959754944, -0.17531944811344147, 0.1300983726978302, 0.07859724014997482, -0.2275248020887375, -0.29913169145584106, -0.057776279747486115, -0.07653312385082245, -0.14904791116714478, -0.04986663907766342, 0.1288955807685852, -0.14829495549201965, -0.2606408894062042, -0.054157376289367676, 0.5537511706352234, -0.2536499798297882, -0.43603673577308655, 0.15723472833633423, -0.2389746606349945, 0.19630052149295807, -0.13154885172843933, -0.07087723165750504, -0.11614523828029633, -0.0340043306350708, -0.04321206733584404, 0.18469476699829102, 0.043217770755290985, -0.13685449957847595, -0.09430289268493652, 0.10257799178361893, -0.6591214537620544, 0.38356083631515503, 0.3607986271381378, 0.11063215881586075, -0.3083828091621399, -0.18601694703102112, 0.270935595035553, 0.052184898406267166, 0.5281824469566345, -0.26821744441986084, 0.18215160071849823, 0.10149259865283966, -0.6575872898101807, 0.25328466296195984, -0.11996617913246155, 0.19472843408584595, 0.5823594331741333, 0.39136120676994324, 0.2513970136642456, -0.23662638664245605, -0.03944595158100128, -0.34985992312431335, -0.14443467557430267, 0.06397584080696106, -0.4235014021396637, -0.2376994788646698, -0.008171241730451584, -0.3274039328098297, 0.13342252373695374, 0.2194795161485672, 0.09706340730190277, -0.13202351331710815, -0.10086250305175781, -0.00519958883523941, 0.04215545952320099, 0.25471800565719604, -0.12456339597702026, -0.08960161358118057, 0.010762105695903301, 0.05434876307845116, 0.23440545797348022, 0.10513460636138916, -0.07956340163946152, 0.303986519575119, -0.2977186441421509, 0.14466708898544312, -0.1482393443584442, -0.05654735118150711, -0.2004614770412445, 0.5174747109413147, 0.12182198464870453, 0.12487275898456573, 0.31067171692848206, 0.16023939847946167, -0.10375282168388367, -0.0028019133023917675, -0.1001027375459671, 0.07589462399482727, -0.23783189058303833, -0.1053917333483696, 0.23562213778495789, 0.33754032850265503, -0.30817705392837524, 0.3774681091308594, -0.5501739382743835, -0.2404818832874298, 0.3411775231361389, 0.36382418870925903, 0.9773930907249451, -0.6237591505050659, 0.10503847151994705, -0.07141396403312683, 0.32866495847702026, 0.07918664813041687, -0.1002412885427475, 0.10041195154190063, -0.3568965196609497, -0.20098991692066193, -0.05729813128709793, -0.17837472259998322, 0.17080864310264587, 0.394520103931427, -0.04661698639392853, 0.22372785210609436, 0.011628307402133942, -0.26045745611190796, 0.07602603733539581, 0.15312235057353973, 0.5615997314453125, -0.4029851257801056, 0.09155409038066864, 0.023358099162578583, 0.16441188752651215, -0.15738819539546967, -0.05247962102293968, 0.01044732891023159, 0.2703622579574585, -0.21420328319072723, -0.0706021785736084, 0.05293307453393936, -0.32887232303619385, 0.4100356698036194, 0.014214454218745232, -0.0565696582198143, -0.00447579100728035, 0.3751200735569, 0.09098134934902191, -0.3469938039779663, 0.05347578227519989, 0.025863053277134895, 0.42254161834716797, -0.08278699964284897, -0.09761086106300354, -0.19320376217365265, 0.21773746609687805, -0.10638384521007538, -0.1070830300450325, -0.1283574104309082, -0.07248319685459137, -0.4933263659477234, -0.021071240305900574, 0.36148083209991455, 0.24846364557743073, 0.21318598091602325, -0.10821512341499329, -0.03323906660079956, -0.06081690639257431, 0.07120455801486969, 0.03475801646709442, 0.22622883319854736, -0.25253134965896606, 0.40180251002311707, -0.15520082414150238, -0.3298461437225342, 0.17564179003238678, 0.3753991425037384, 0.08915477246046066, 0.04665330797433853, -0.05602213740348816, 0.036521974951028824, -0.12859737873077393, -0.05987245589494705, -0.4702131450176239, -0.08416850864887238, 0.04029048979282379, -0.13615572452545166, 0.17644034326076508, -0.18320852518081665, 0.07097839564085007, -0.28524866700172424, 0.15277543663978577, 0.350195050239563, -0.024578019976615906, -0.31023091077804565, -0.258350133895874, -0.06747691333293915, -0.6047511100769043, 0.1423448920249939, 0.31818264722824097, 0.11723853647708893, -0.05963931232690811, 0.5384202599525452, -0.2332453429698944, 0.03839189559221268, -0.22282949090003967, 0.1514664739370346, 0.03397269546985626, -0.26476427912712097, -0.004925872199237347, 0.0992051512002945, 0.038159795105457306, 0.16976793110370636, -0.4738582670688629, -0.16907942295074463, -0.041526034474372864, 0.1661277562379837, -0.05737728625535965, -0.0538131445646286, 0.23948781192302704, 0.1105373203754425, -0.06978723406791687, -0.24135996401309967, 0.23936673998832703, 0.2782628834247589, -0.052915945649147034, -0.30296051502227783, 0.38079437613487244, 0.2403033971786499, -0.46501028537750244, 0.04032892361283302, -0.24210390448570251, 0.05637737736105919, 0.08576732128858566, 0.15091371536254883, -0.16399237513542175, -0.08448637276887894, 0.13806675374507904, -0.06271962076425552, 0.40149354934692383, -0.02713388204574585, -0.07215576618909836, 0.18186739087104797, -0.25766727328300476, -0.04532875493168831, 0.16919489204883575, -0.11703804135322571, -0.2377588152885437, -0.09865771234035492, 0.19811812043190002, 0.12550607323646545, -0.008889013901352882, -0.25931012630462646, 0.4489039182662964, 0.06087128072977066, 0.16652540862560272, 0.44328612089157104, 0.5414141416549683, -0.1477372944355011, 0.13743165135383606, 0.20914199948310852, -0.09430012851953506, -0.8231092691421509, -0.008534515276551247, -0.3312123715877533, -0.17649832367897034, 0.00015636906027793884, 0.4875025749206543, 0.07797901332378387, 0.09294465184211731, 0.08493392169475555, 0.00560508668422699, 0.5639195442199707, -0.00308903306722641, 0.17469194531440735, -0.16847127676010132, -0.5935748815536499, -0.013424154371023178, 0.44970232248306274, -0.03584367036819458, 0.1109512597322464, -0.06568822264671326, 0.5236334800720215, -0.08905388414859772, -0.05783015117049217, -0.0711277574300766, 0.32870641350746155, 0.045449160039424896, -0.3315662741661072, 0.14655403792858124, 0.07401648908853531, -0.3571239113807678, 0.02085782214999199, 0.10783937573432922, 0.21120832860469818, 1.1305060386657715, 0.2189210206270218, -0.03304725140333176, 0.0709662139415741, -0.40211766958236694, 0.04326457530260086, 0.18166840076446533, -0.43410465121269226, 0.11640213429927826, -0.028473928570747375, -0.24944666028022766, 0.19744162261486053, -0.18607884645462036, 0.4021248519420624, 0.18394243717193604, -0.1345493495464325, -0.023858599364757538, -0.08544157445430756, 0.2919228672981262, -0.37987020611763, 0.22815421223640442, 0.14714190363883972, 0.1772664338350296, 0.15443865954875946, 0.03474315255880356, -0.15501296520233154, -0.10112087428569794, 0.17217093706130981, 0.345043808221817, 0.1073964536190033, 0.40673404932022095, 0.4150906205177307, -0.02471766248345375, 0.2531554400920868, 0.2438054084777832, -0.41608941555023193, 0.002961968071758747, 0.07013925909996033, -0.33710184693336487, 0.10969618707895279, 0.1378876268863678, 0.03219296410679817, 0.029809407889842987, 0.3300023376941681, 0.17865720391273499, 0.06848116964101791, -0.4470282793045044, 0.04699946939945221, -0.4657120406627655, 0.042448341846466064, -0.23638546466827393, 0.06644518673419952, 0.09282093495130539, 0.236851766705513, -0.04778295010328293, 0.2944711446762085, -0.1113085150718689, -0.5256273746490479, 0.34018760919570923, 0.383131742477417, -0.23607775568962097, 0.5561866760253906, 0.1366051882505417, -0.21823497116565704, 0.14272750914096832, -0.3238149881362915, 0.27196717262268066, 0.12511292099952698, 0.0070265792310237885, -0.02175631746649742, -0.19413888454437256, 0.20313456654548645, 0.1633785367012024, 0.15354382991790771, 0.32823315262794495, 0.3083537220954895, -0.22102832794189453, 0.02472284995019436, -0.10354655981063843, 0.2855862081050873, -0.140521839261055, -0.08050069957971573, 0.07464414834976196, 0.3196917474269867, -0.3053898215293884, 0.10320429503917694, -0.3163098394870758, 0.44413116574287415, -0.16288432478904724, 0.08230766654014587, -0.1980673223733902, -0.007095706183463335, 0.11321238428354263, 0.4045073091983795, -0.03364536911249161, 0.5239613652229309, 0.1506677269935608, 0.18684759736061096, -0.1268881857395172, -0.24480099976062775, 0.3629812002182007, -0.47938016057014465, -0.1273891180753708, -0.2317768633365631, 0.40843191742897034, -0.30568888783454895, 0.05193592235445976, -0.31157389283180237, -0.19907626509666443, -0.06130397319793701, -0.026867181062698364, -0.5178492069244385, 0.07027976214885712, -0.3260759115219116, -0.15112896263599396, -0.18333524465560913, -0.25510624051094055, -0.07665561139583588, -0.008336324244737625, -0.1532920002937317, -0.2853076457977295 ]
https://github.com/huggingface/datasets/pull/2774
Prevent .map from using multiprocessing when loading from cache
Thanks for working on this ! I'm sure we can figure something out ;) Currently `map` starts a process to apply the map function on each shard. If the shard has already been processed, then the process that has been spawned loads the processed shard from the cache and returns it. I think we should be able to simply not start a process if a shard is already processed and cached. This way: - you won't need to specify `sequential=True` - it won't create new processes if the dataset is already processed and cached - it will properly reload each processed shard that is cached To know if we have to start a new process for a shard you can use the function `update_fingerprint` from fingerprint.py to know the expected fingerprint of the processed shard. Then, if the shard has already been processed, there will be a cache file named `cached-<new_fingerprint>.arrow` and you can load it with ``` Dataset.from_file(path_to_cache_file, info=self.info, split=self.split) ``` Let me know if that makes sense !
## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable.
170
text: Prevent .map from using multiprocessing when loading from cache ## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable. Thanks for working on this ! I'm sure we can figure something out ;) Currently `map` starts a process to apply the map function on each shard. If the shard has already been processed, then the process that has been spawned loads the processed shard from the cache and returns it. I think we should be able to simply not start a process if a shard is already processed and cached. This way: - you won't need to specify `sequential=True` - it won't create new processes if the dataset is already processed and cached - it will properly reload each processed shard that is cached To know if we have to start a new process for a shard you can use the function `update_fingerprint` from fingerprint.py to know the expected fingerprint of the processed shard. Then, if the shard has already been processed, there will be a cache file named `cached-<new_fingerprint>.arrow` and you can load it with ``` Dataset.from_file(path_to_cache_file, info=self.info, split=self.split) ``` Let me know if that makes sense !
[ -0.2461632788181305, -0.23170338571071625, -0.010192660614848137, 0.027171041816473007, -0.034653276205062866, -0.2256254255771637, 0.5539514422416687, 0.24334993958473206, 0.10571758449077606, 0.2275431752204895, 0.23166993260383606, 0.009406824596226215, -0.1177866980433464, 0.11072651296854019, -0.10160737484693527, -0.04868263006210327, -0.012218482792377472, -0.2539461851119995, 0.15727654099464417, 0.22817657887935638, -0.1379045844078064, 0.17799535393714905, 0.013395123183727264, 0.1071297749876976, -0.4547217786312103, -0.13417156040668488, 0.16225354373455048, 0.48716941475868225, -0.10922058671712875, -0.3822057247161865, -0.06440559774637222, 0.27880266308784485, -0.11572378128767014, 0.1183311864733696, -0.00011881058162543923, -0.010925840586423874, 0.12449069321155548, 0.004468973726034164, 0.30118662118911743, -0.01987968385219574, -0.12342094630002975, 0.003518505021929741, 0.15886785089969635, -0.4235374331474304, 0.11692959815263748, 0.4804534912109375, -0.07620895653963089, -0.23777787387371063, 0.5218636989593506, -0.0865962952375412, 0.14325402677059174, 0.09756039828062057, -0.2261856198310852, 0.17632606625556946, -0.13098761439323425, -0.10686448216438293, -0.07570617645978928, -0.04578305780887604, 0.16055163741111755, -0.14201520383358002, -0.31998211145401, 0.24796585738658905, -0.3363519012928009, 0.15739531815052032, -0.26702284812927246, -0.04184577614068985, 0.8216482400894165, -0.38979384303092957, 0.2147313356399536, 0.3028174638748169, -0.3364695608615875, -0.0653420090675354, -0.13037735223770142, -0.29042643308639526, -0.18873192369937897, -0.34338656067848206, 0.20870080590248108, 0.03015223518013954, -0.29846078157424927, -0.044496115297079086, -0.5122179388999939, -0.09570889919996262, 0.21022987365722656, -0.15513594448566437, 0.18111595511436462, 0.09827670454978943, 0.26463279128074646, 0.21427282691001892, 0.38720473647117615, 0.1684822142124176, -0.15804897248744965, 0.046013906598091125, 0.20594003796577454, -0.04781747981905937, -0.2536081373691559, 0.08026866614818573, 0.00939435139298439, 0.33517059683799744, 0.19944626092910767, 0.08514940738677979, 0.19885101914405823, 0.3413829803466797, -0.011284706182777882, 0.2533854842185974, -0.04671807959675789, -0.12190964818000793, 0.10726664215326309, -0.12702859938144684, 0.014900576323270798, 0.24523311853408813, -0.284859299659729, 0.23184067010879517, 0.31369271874427795, -0.5076594352722168, 0.09607699513435364, 0.4170818328857422, -0.09337838739156723, -0.11806859076023102, 0.1246747151017189, -0.03518166393041611, 0.027571633458137512, -0.30860692262649536, 0.25219789147377014, 0.2109459638595581, 0.08639484643936157, 0.3816613554954529, -0.11546444892883301, 0.12239210307598114, -0.5304088592529297, -0.0650317445397377, -0.12916505336761475, 0.14390848577022552, -0.4324854016304016, 0.3224097490310669, -0.10176725685596466, -0.04861781373620033, 0.08282839506864548, 0.30881452560424805, 0.37456178665161133, -0.13035432994365692, 0.3174501061439514, -0.14223666489124298, 0.39762595295906067, 0.2958628237247467, -0.08379414677619934, -0.12505364418029785, 0.2291349470615387, -0.04410448670387268, -0.21165317296981812, 0.3249439597129822, -0.3542185425758362, -0.46261128783226013, 0.046949468553066254, 0.08436918258666992, -0.052123893052339554, 0.39746856689453125, -0.15663868188858032, -0.1576494425535202, 0.5264325141906738, -0.1928730607032776, 0.1263371855020523, -0.22974474728107452, -0.6139616370201111, -0.3776123523712158, 0.30029115080833435, 0.2718406319618225, 0.2886159420013428, 0.008536331355571747, -0.027288945391774178, -0.1084665060043335, 0.403971791267395, 0.21234378218650818, -0.24821971356868744, -0.04635465890169144, -0.16966314613819122, 0.22683630883693695, -0.07267909497022629, -0.41515329480171204, 0.09837932139635086, 0.3614971339702606, -0.2689377963542938, 0.20983298122882843, 0.30029425024986267, -0.1675167977809906, -0.009087501093745232, -0.1683197021484375, 0.08755888044834137, 0.15712329745292664, -0.10788638889789581, 0.20190370082855225, -0.3254907727241516, -0.382366806268692, -0.20233480632305145, -0.04714013636112213, 0.1919514685869217, 0.0652632787823677, -0.02341434359550476, -0.2565564513206482, 0.2931874096393585, -0.08578979969024658, 0.09190855920314789, -0.09981861710548401, -0.10199342668056488, -0.15903159976005554, -0.11710183322429657, 0.09281256049871445, -0.2546200156211853, 0.47321370244026184, -0.37924349308013916, -0.2203349471092224, -0.23780657351016998, -0.03145095705986023, 0.5378777384757996, -0.10366744548082352, -0.24955542385578156, -0.037501152604818344, 0.03294584900140762, -0.1136452704668045, -0.10816216468811035, -0.26871350407600403, 0.049084823578596115, 0.26678767800331116, 0.10199469327926636, 0.030441490933299065, -0.2847713828086853, -0.03500746935606003, -0.11924143880605698, -0.04894842952489853, -0.4351016581058502, 0.17844358086585999, 0.0692734569311142, -0.0040042586624622345, 0.13587096333503723, 0.3006592392921448, 0.2846878170967102, 0.07827991992235184, -0.13220158219337463, 0.5271983742713928, 0.1418682485818863, 0.2971973717212677, -0.04847224801778793, -0.3765803873538971, -0.3012523353099823, -0.20794376730918884, 0.22288164496421814, 0.5237023234367371, -0.037237685173749924, 0.24530622363090515, -0.05516687408089638, -0.028511662036180496, 0.11847420036792755, -0.27453476190567017, 0.048919208347797394, -0.29278120398521423, 0.18362362682819366, 0.2506278157234192, 0.12988802790641785, 0.0827488973736763, -0.20146965980529785, 0.11018465459346771, 0.10415416955947876, 0.28120607137680054, -0.15992990136146545, 0.01836942322552204, 0.35952603816986084, -0.18280285596847534, 0.13859869539737701, 0.06366932392120361, 0.3673393726348877, 0.1254814863204956, 0.13179774582386017, 0.036210473626852036, -0.1250992864370346, -0.23947395384311676, -0.07969244569540024, 0.0023434609174728394, 0.16867291927337646, 0.12097509950399399, -0.01890411227941513, -0.008636576123535633, -0.034030403941869736, -0.1926998645067215, 0.1464473009109497, -0.17864857614040375, -0.29130375385284424, 0.10307767242193222, -0.31174126267433167, 0.428123414516449, -0.1083805114030838, -0.11913128942251205, -0.199371337890625, -0.12231417000293732, 0.17396453022956848, 0.4296890199184418, 0.0160844549536705, 0.15189103782176971, 0.006639469414949417, -0.006691470742225647, -0.3044828772544861, -0.39926469326019287, -0.03694029152393341, -0.22491028904914856, 0.159054234623909, -0.022825703024864197, 0.33274728059768677, -0.004879870917648077, 0.2471594214439392, 0.05688735842704773, -0.42841213941574097, -0.07825462520122528, -0.1137857586145401, -0.015453249216079712, 0.054060276597738266, -0.05685633420944214, 0.040830954909324646, -0.09506188333034515, -0.17731168866157532, -0.32950732111930847, 0.23645621538162231, -0.3527090847492218, -0.13121995329856873, 0.0052049532532691956, -0.08619532734155655, -0.0870460644364357, -0.10133233666419983, 0.06280140578746796, -0.15739145874977112, -0.16635842621326447, 0.10701918601989746, 0.07247059047222137, 0.3148093819618225, -0.07165569812059402, 0.11331908404827118, -0.1036229357123375, -0.13259084522724152, 0.14298567175865173, -0.17437312006950378, -0.6119470000267029, -0.16277311742305756, -0.10643943399190903, -0.03338795527815819, 0.03950301930308342, -0.00543883815407753, 0.24597351253032684, 0.5788246393203735, -0.1892659068107605, -0.4112362563610077, 0.08384990692138672, 0.27921050786972046, 0.02898474968969822, -0.048832967877388, 0.5595872402191162, 0.356088787317276, -0.13110487163066864, 0.09832140058279037, 0.1397707164287567, 0.2510061264038086, -0.04479820281267166, 0.15670403838157654, 0.2134968340396881, 0.21342232823371887, 0.2714202105998993, 1.2308655977249146, 0.15208449959754944, -0.17531944811344147, 0.1300983726978302, 0.07859724014997482, -0.2275248020887375, -0.29913169145584106, -0.057776279747486115, -0.07653312385082245, -0.14904791116714478, -0.04986663907766342, 0.1288955807685852, -0.14829495549201965, -0.2606408894062042, -0.054157376289367676, 0.5537511706352234, -0.2536499798297882, -0.43603673577308655, 0.15723472833633423, -0.2389746606349945, 0.19630052149295807, -0.13154885172843933, -0.07087723165750504, -0.11614523828029633, -0.0340043306350708, -0.04321206733584404, 0.18469476699829102, 0.043217770755290985, -0.13685449957847595, -0.09430289268493652, 0.10257799178361893, -0.6591214537620544, 0.38356083631515503, 0.3607986271381378, 0.11063215881586075, -0.3083828091621399, -0.18601694703102112, 0.270935595035553, 0.052184898406267166, 0.5281824469566345, -0.26821744441986084, 0.18215160071849823, 0.10149259865283966, -0.6575872898101807, 0.25328466296195984, -0.11996617913246155, 0.19472843408584595, 0.5823594331741333, 0.39136120676994324, 0.2513970136642456, -0.23662638664245605, -0.03944595158100128, -0.34985992312431335, -0.14443467557430267, 0.06397584080696106, -0.4235014021396637, -0.2376994788646698, -0.008171241730451584, -0.3274039328098297, 0.13342252373695374, 0.2194795161485672, 0.09706340730190277, -0.13202351331710815, -0.10086250305175781, -0.00519958883523941, 0.04215545952320099, 0.25471800565719604, -0.12456339597702026, -0.08960161358118057, 0.010762105695903301, 0.05434876307845116, 0.23440545797348022, 0.10513460636138916, -0.07956340163946152, 0.303986519575119, -0.2977186441421509, 0.14466708898544312, -0.1482393443584442, -0.05654735118150711, -0.2004614770412445, 0.5174747109413147, 0.12182198464870453, 0.12487275898456573, 0.31067171692848206, 0.16023939847946167, -0.10375282168388367, -0.0028019133023917675, -0.1001027375459671, 0.07589462399482727, -0.23783189058303833, -0.1053917333483696, 0.23562213778495789, 0.33754032850265503, -0.30817705392837524, 0.3774681091308594, -0.5501739382743835, -0.2404818832874298, 0.3411775231361389, 0.36382418870925903, 0.9773930907249451, -0.6237591505050659, 0.10503847151994705, -0.07141396403312683, 0.32866495847702026, 0.07918664813041687, -0.1002412885427475, 0.10041195154190063, -0.3568965196609497, -0.20098991692066193, -0.05729813128709793, -0.17837472259998322, 0.17080864310264587, 0.394520103931427, -0.04661698639392853, 0.22372785210609436, 0.011628307402133942, -0.26045745611190796, 0.07602603733539581, 0.15312235057353973, 0.5615997314453125, -0.4029851257801056, 0.09155409038066864, 0.023358099162578583, 0.16441188752651215, -0.15738819539546967, -0.05247962102293968, 0.01044732891023159, 0.2703622579574585, -0.21420328319072723, -0.0706021785736084, 0.05293307453393936, -0.32887232303619385, 0.4100356698036194, 0.014214454218745232, -0.0565696582198143, -0.00447579100728035, 0.3751200735569, 0.09098134934902191, -0.3469938039779663, 0.05347578227519989, 0.025863053277134895, 0.42254161834716797, -0.08278699964284897, -0.09761086106300354, -0.19320376217365265, 0.21773746609687805, -0.10638384521007538, -0.1070830300450325, -0.1283574104309082, -0.07248319685459137, -0.4933263659477234, -0.021071240305900574, 0.36148083209991455, 0.24846364557743073, 0.21318598091602325, -0.10821512341499329, -0.03323906660079956, -0.06081690639257431, 0.07120455801486969, 0.03475801646709442, 0.22622883319854736, -0.25253134965896606, 0.40180251002311707, -0.15520082414150238, -0.3298461437225342, 0.17564179003238678, 0.3753991425037384, 0.08915477246046066, 0.04665330797433853, -0.05602213740348816, 0.036521974951028824, -0.12859737873077393, -0.05987245589494705, -0.4702131450176239, -0.08416850864887238, 0.04029048979282379, -0.13615572452545166, 0.17644034326076508, -0.18320852518081665, 0.07097839564085007, -0.28524866700172424, 0.15277543663978577, 0.350195050239563, -0.024578019976615906, -0.31023091077804565, -0.258350133895874, -0.06747691333293915, -0.6047511100769043, 0.1423448920249939, 0.31818264722824097, 0.11723853647708893, -0.05963931232690811, 0.5384202599525452, -0.2332453429698944, 0.03839189559221268, -0.22282949090003967, 0.1514664739370346, 0.03397269546985626, -0.26476427912712097, -0.004925872199237347, 0.0992051512002945, 0.038159795105457306, 0.16976793110370636, -0.4738582670688629, -0.16907942295074463, -0.041526034474372864, 0.1661277562379837, -0.05737728625535965, -0.0538131445646286, 0.23948781192302704, 0.1105373203754425, -0.06978723406791687, -0.24135996401309967, 0.23936673998832703, 0.2782628834247589, -0.052915945649147034, -0.30296051502227783, 0.38079437613487244, 0.2403033971786499, -0.46501028537750244, 0.04032892361283302, -0.24210390448570251, 0.05637737736105919, 0.08576732128858566, 0.15091371536254883, -0.16399237513542175, -0.08448637276887894, 0.13806675374507904, -0.06271962076425552, 0.40149354934692383, -0.02713388204574585, -0.07215576618909836, 0.18186739087104797, -0.25766727328300476, -0.04532875493168831, 0.16919489204883575, -0.11703804135322571, -0.2377588152885437, -0.09865771234035492, 0.19811812043190002, 0.12550607323646545, -0.008889013901352882, -0.25931012630462646, 0.4489039182662964, 0.06087128072977066, 0.16652540862560272, 0.44328612089157104, 0.5414141416549683, -0.1477372944355011, 0.13743165135383606, 0.20914199948310852, -0.09430012851953506, -0.8231092691421509, -0.008534515276551247, -0.3312123715877533, -0.17649832367897034, 0.00015636906027793884, 0.4875025749206543, 0.07797901332378387, 0.09294465184211731, 0.08493392169475555, 0.00560508668422699, 0.5639195442199707, -0.00308903306722641, 0.17469194531440735, -0.16847127676010132, -0.5935748815536499, -0.013424154371023178, 0.44970232248306274, -0.03584367036819458, 0.1109512597322464, -0.06568822264671326, 0.5236334800720215, -0.08905388414859772, -0.05783015117049217, -0.0711277574300766, 0.32870641350746155, 0.045449160039424896, -0.3315662741661072, 0.14655403792858124, 0.07401648908853531, -0.3571239113807678, 0.02085782214999199, 0.10783937573432922, 0.21120832860469818, 1.1305060386657715, 0.2189210206270218, -0.03304725140333176, 0.0709662139415741, -0.40211766958236694, 0.04326457530260086, 0.18166840076446533, -0.43410465121269226, 0.11640213429927826, -0.028473928570747375, -0.24944666028022766, 0.19744162261486053, -0.18607884645462036, 0.4021248519420624, 0.18394243717193604, -0.1345493495464325, -0.023858599364757538, -0.08544157445430756, 0.2919228672981262, -0.37987020611763, 0.22815421223640442, 0.14714190363883972, 0.1772664338350296, 0.15443865954875946, 0.03474315255880356, -0.15501296520233154, -0.10112087428569794, 0.17217093706130981, 0.345043808221817, 0.1073964536190033, 0.40673404932022095, 0.4150906205177307, -0.02471766248345375, 0.2531554400920868, 0.2438054084777832, -0.41608941555023193, 0.002961968071758747, 0.07013925909996033, -0.33710184693336487, 0.10969618707895279, 0.1378876268863678, 0.03219296410679817, 0.029809407889842987, 0.3300023376941681, 0.17865720391273499, 0.06848116964101791, -0.4470282793045044, 0.04699946939945221, -0.4657120406627655, 0.042448341846466064, -0.23638546466827393, 0.06644518673419952, 0.09282093495130539, 0.236851766705513, -0.04778295010328293, 0.2944711446762085, -0.1113085150718689, -0.5256273746490479, 0.34018760919570923, 0.383131742477417, -0.23607775568962097, 0.5561866760253906, 0.1366051882505417, -0.21823497116565704, 0.14272750914096832, -0.3238149881362915, 0.27196717262268066, 0.12511292099952698, 0.0070265792310237885, -0.02175631746649742, -0.19413888454437256, 0.20313456654548645, 0.1633785367012024, 0.15354382991790771, 0.32823315262794495, 0.3083537220954895, -0.22102832794189453, 0.02472284995019436, -0.10354655981063843, 0.2855862081050873, -0.140521839261055, -0.08050069957971573, 0.07464414834976196, 0.3196917474269867, -0.3053898215293884, 0.10320429503917694, -0.3163098394870758, 0.44413116574287415, -0.16288432478904724, 0.08230766654014587, -0.1980673223733902, -0.007095706183463335, 0.11321238428354263, 0.4045073091983795, -0.03364536911249161, 0.5239613652229309, 0.1506677269935608, 0.18684759736061096, -0.1268881857395172, -0.24480099976062775, 0.3629812002182007, -0.47938016057014465, -0.1273891180753708, -0.2317768633365631, 0.40843191742897034, -0.30568888783454895, 0.05193592235445976, -0.31157389283180237, -0.19907626509666443, -0.06130397319793701, -0.026867181062698364, -0.5178492069244385, 0.07027976214885712, -0.3260759115219116, -0.15112896263599396, -0.18333524465560913, -0.25510624051094055, -0.07665561139583588, -0.008336324244737625, -0.1532920002937317, -0.2853076457977295 ]
https://github.com/huggingface/datasets/pull/2774
Prevent .map from using multiprocessing when loading from cache
Yes that makes total sense, I tried to initially do that, except the way fingerprint is handled doesn't allow to easily manipulate such a field. Typically the fingerprinting is handled in `@fingerprint_transform` which has a bunch of params that aren't quite easy to extract. Those params are used to manipulate args, kwargs in fancy ways in order to finally obtain a dictionary used for fingerprint. I could duplicate everything, but this look like a very risky thing to do. I'll take a look if I can make something work with `inspect` if I can make a very simple wrapper. A much more simpler solution I think is adding an optional `shard: Optional[int] = None` parameter. If None, we use the number of proc as the number of shards, otherwise we pass down the expected number of shards and use either sequential/multiprocessing (with arbitrary number of workers) to load the shards? This would allow the weird case where one wants a large number of shards with a limited amount of processes. Not the smartest thing to do, but it's not an absurd behaviour. Would this be acceptable?
## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable.
186
text: Prevent .map from using multiprocessing when loading from cache ## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable. Yes that makes total sense, I tried to initially do that, except the way fingerprint is handled doesn't allow to easily manipulate such a field. Typically the fingerprinting is handled in `@fingerprint_transform` which has a bunch of params that aren't quite easy to extract. Those params are used to manipulate args, kwargs in fancy ways in order to finally obtain a dictionary used for fingerprint. I could duplicate everything, but this look like a very risky thing to do. I'll take a look if I can make something work with `inspect` if I can make a very simple wrapper. A much more simpler solution I think is adding an optional `shard: Optional[int] = None` parameter. If None, we use the number of proc as the number of shards, otherwise we pass down the expected number of shards and use either sequential/multiprocessing (with arbitrary number of workers) to load the shards? This would allow the weird case where one wants a large number of shards with a limited amount of processes. Not the smartest thing to do, but it's not an absurd behaviour. Would this be acceptable?
[ -0.2461632788181305, -0.23170338571071625, -0.010192660614848137, 0.027171041816473007, -0.034653276205062866, -0.2256254255771637, 0.5539514422416687, 0.24334993958473206, 0.10571758449077606, 0.2275431752204895, 0.23166993260383606, 0.009406824596226215, -0.1177866980433464, 0.11072651296854019, -0.10160737484693527, -0.04868263006210327, -0.012218482792377472, -0.2539461851119995, 0.15727654099464417, 0.22817657887935638, -0.1379045844078064, 0.17799535393714905, 0.013395123183727264, 0.1071297749876976, -0.4547217786312103, -0.13417156040668488, 0.16225354373455048, 0.48716941475868225, -0.10922058671712875, -0.3822057247161865, -0.06440559774637222, 0.27880266308784485, -0.11572378128767014, 0.1183311864733696, -0.00011881058162543923, -0.010925840586423874, 0.12449069321155548, 0.004468973726034164, 0.30118662118911743, -0.01987968385219574, -0.12342094630002975, 0.003518505021929741, 0.15886785089969635, -0.4235374331474304, 0.11692959815263748, 0.4804534912109375, -0.07620895653963089, -0.23777787387371063, 0.5218636989593506, -0.0865962952375412, 0.14325402677059174, 0.09756039828062057, -0.2261856198310852, 0.17632606625556946, -0.13098761439323425, -0.10686448216438293, -0.07570617645978928, -0.04578305780887604, 0.16055163741111755, -0.14201520383358002, -0.31998211145401, 0.24796585738658905, -0.3363519012928009, 0.15739531815052032, -0.26702284812927246, -0.04184577614068985, 0.8216482400894165, -0.38979384303092957, 0.2147313356399536, 0.3028174638748169, -0.3364695608615875, -0.0653420090675354, -0.13037735223770142, -0.29042643308639526, -0.18873192369937897, -0.34338656067848206, 0.20870080590248108, 0.03015223518013954, -0.29846078157424927, -0.044496115297079086, -0.5122179388999939, -0.09570889919996262, 0.21022987365722656, -0.15513594448566437, 0.18111595511436462, 0.09827670454978943, 0.26463279128074646, 0.21427282691001892, 0.38720473647117615, 0.1684822142124176, -0.15804897248744965, 0.046013906598091125, 0.20594003796577454, -0.04781747981905937, -0.2536081373691559, 0.08026866614818573, 0.00939435139298439, 0.33517059683799744, 0.19944626092910767, 0.08514940738677979, 0.19885101914405823, 0.3413829803466797, -0.011284706182777882, 0.2533854842185974, -0.04671807959675789, -0.12190964818000793, 0.10726664215326309, -0.12702859938144684, 0.014900576323270798, 0.24523311853408813, -0.284859299659729, 0.23184067010879517, 0.31369271874427795, -0.5076594352722168, 0.09607699513435364, 0.4170818328857422, -0.09337838739156723, -0.11806859076023102, 0.1246747151017189, -0.03518166393041611, 0.027571633458137512, -0.30860692262649536, 0.25219789147377014, 0.2109459638595581, 0.08639484643936157, 0.3816613554954529, -0.11546444892883301, 0.12239210307598114, -0.5304088592529297, -0.0650317445397377, -0.12916505336761475, 0.14390848577022552, -0.4324854016304016, 0.3224097490310669, -0.10176725685596466, -0.04861781373620033, 0.08282839506864548, 0.30881452560424805, 0.37456178665161133, -0.13035432994365692, 0.3174501061439514, -0.14223666489124298, 0.39762595295906067, 0.2958628237247467, -0.08379414677619934, -0.12505364418029785, 0.2291349470615387, -0.04410448670387268, -0.21165317296981812, 0.3249439597129822, -0.3542185425758362, -0.46261128783226013, 0.046949468553066254, 0.08436918258666992, -0.052123893052339554, 0.39746856689453125, -0.15663868188858032, -0.1576494425535202, 0.5264325141906738, -0.1928730607032776, 0.1263371855020523, -0.22974474728107452, -0.6139616370201111, -0.3776123523712158, 0.30029115080833435, 0.2718406319618225, 0.2886159420013428, 0.008536331355571747, -0.027288945391774178, -0.1084665060043335, 0.403971791267395, 0.21234378218650818, -0.24821971356868744, -0.04635465890169144, -0.16966314613819122, 0.22683630883693695, -0.07267909497022629, -0.41515329480171204, 0.09837932139635086, 0.3614971339702606, -0.2689377963542938, 0.20983298122882843, 0.30029425024986267, -0.1675167977809906, -0.009087501093745232, -0.1683197021484375, 0.08755888044834137, 0.15712329745292664, -0.10788638889789581, 0.20190370082855225, -0.3254907727241516, -0.382366806268692, -0.20233480632305145, -0.04714013636112213, 0.1919514685869217, 0.0652632787823677, -0.02341434359550476, -0.2565564513206482, 0.2931874096393585, -0.08578979969024658, 0.09190855920314789, -0.09981861710548401, -0.10199342668056488, -0.15903159976005554, -0.11710183322429657, 0.09281256049871445, -0.2546200156211853, 0.47321370244026184, -0.37924349308013916, -0.2203349471092224, -0.23780657351016998, -0.03145095705986023, 0.5378777384757996, -0.10366744548082352, -0.24955542385578156, -0.037501152604818344, 0.03294584900140762, -0.1136452704668045, -0.10816216468811035, -0.26871350407600403, 0.049084823578596115, 0.26678767800331116, 0.10199469327926636, 0.030441490933299065, -0.2847713828086853, -0.03500746935606003, -0.11924143880605698, -0.04894842952489853, -0.4351016581058502, 0.17844358086585999, 0.0692734569311142, -0.0040042586624622345, 0.13587096333503723, 0.3006592392921448, 0.2846878170967102, 0.07827991992235184, -0.13220158219337463, 0.5271983742713928, 0.1418682485818863, 0.2971973717212677, -0.04847224801778793, -0.3765803873538971, -0.3012523353099823, -0.20794376730918884, 0.22288164496421814, 0.5237023234367371, -0.037237685173749924, 0.24530622363090515, -0.05516687408089638, -0.028511662036180496, 0.11847420036792755, -0.27453476190567017, 0.048919208347797394, -0.29278120398521423, 0.18362362682819366, 0.2506278157234192, 0.12988802790641785, 0.0827488973736763, -0.20146965980529785, 0.11018465459346771, 0.10415416955947876, 0.28120607137680054, -0.15992990136146545, 0.01836942322552204, 0.35952603816986084, -0.18280285596847534, 0.13859869539737701, 0.06366932392120361, 0.3673393726348877, 0.1254814863204956, 0.13179774582386017, 0.036210473626852036, -0.1250992864370346, -0.23947395384311676, -0.07969244569540024, 0.0023434609174728394, 0.16867291927337646, 0.12097509950399399, -0.01890411227941513, -0.008636576123535633, -0.034030403941869736, -0.1926998645067215, 0.1464473009109497, -0.17864857614040375, -0.29130375385284424, 0.10307767242193222, -0.31174126267433167, 0.428123414516449, -0.1083805114030838, -0.11913128942251205, -0.199371337890625, -0.12231417000293732, 0.17396453022956848, 0.4296890199184418, 0.0160844549536705, 0.15189103782176971, 0.006639469414949417, -0.006691470742225647, -0.3044828772544861, -0.39926469326019287, -0.03694029152393341, -0.22491028904914856, 0.159054234623909, -0.022825703024864197, 0.33274728059768677, -0.004879870917648077, 0.2471594214439392, 0.05688735842704773, -0.42841213941574097, -0.07825462520122528, -0.1137857586145401, -0.015453249216079712, 0.054060276597738266, -0.05685633420944214, 0.040830954909324646, -0.09506188333034515, -0.17731168866157532, -0.32950732111930847, 0.23645621538162231, -0.3527090847492218, -0.13121995329856873, 0.0052049532532691956, -0.08619532734155655, -0.0870460644364357, -0.10133233666419983, 0.06280140578746796, -0.15739145874977112, -0.16635842621326447, 0.10701918601989746, 0.07247059047222137, 0.3148093819618225, -0.07165569812059402, 0.11331908404827118, -0.1036229357123375, -0.13259084522724152, 0.14298567175865173, -0.17437312006950378, -0.6119470000267029, -0.16277311742305756, -0.10643943399190903, -0.03338795527815819, 0.03950301930308342, -0.00543883815407753, 0.24597351253032684, 0.5788246393203735, -0.1892659068107605, -0.4112362563610077, 0.08384990692138672, 0.27921050786972046, 0.02898474968969822, -0.048832967877388, 0.5595872402191162, 0.356088787317276, -0.13110487163066864, 0.09832140058279037, 0.1397707164287567, 0.2510061264038086, -0.04479820281267166, 0.15670403838157654, 0.2134968340396881, 0.21342232823371887, 0.2714202105998993, 1.2308655977249146, 0.15208449959754944, -0.17531944811344147, 0.1300983726978302, 0.07859724014997482, -0.2275248020887375, -0.29913169145584106, -0.057776279747486115, -0.07653312385082245, -0.14904791116714478, -0.04986663907766342, 0.1288955807685852, -0.14829495549201965, -0.2606408894062042, -0.054157376289367676, 0.5537511706352234, -0.2536499798297882, -0.43603673577308655, 0.15723472833633423, -0.2389746606349945, 0.19630052149295807, -0.13154885172843933, -0.07087723165750504, -0.11614523828029633, -0.0340043306350708, -0.04321206733584404, 0.18469476699829102, 0.043217770755290985, -0.13685449957847595, -0.09430289268493652, 0.10257799178361893, -0.6591214537620544, 0.38356083631515503, 0.3607986271381378, 0.11063215881586075, -0.3083828091621399, -0.18601694703102112, 0.270935595035553, 0.052184898406267166, 0.5281824469566345, -0.26821744441986084, 0.18215160071849823, 0.10149259865283966, -0.6575872898101807, 0.25328466296195984, -0.11996617913246155, 0.19472843408584595, 0.5823594331741333, 0.39136120676994324, 0.2513970136642456, -0.23662638664245605, -0.03944595158100128, -0.34985992312431335, -0.14443467557430267, 0.06397584080696106, -0.4235014021396637, -0.2376994788646698, -0.008171241730451584, -0.3274039328098297, 0.13342252373695374, 0.2194795161485672, 0.09706340730190277, -0.13202351331710815, -0.10086250305175781, -0.00519958883523941, 0.04215545952320099, 0.25471800565719604, -0.12456339597702026, -0.08960161358118057, 0.010762105695903301, 0.05434876307845116, 0.23440545797348022, 0.10513460636138916, -0.07956340163946152, 0.303986519575119, -0.2977186441421509, 0.14466708898544312, -0.1482393443584442, -0.05654735118150711, -0.2004614770412445, 0.5174747109413147, 0.12182198464870453, 0.12487275898456573, 0.31067171692848206, 0.16023939847946167, -0.10375282168388367, -0.0028019133023917675, -0.1001027375459671, 0.07589462399482727, -0.23783189058303833, -0.1053917333483696, 0.23562213778495789, 0.33754032850265503, -0.30817705392837524, 0.3774681091308594, -0.5501739382743835, -0.2404818832874298, 0.3411775231361389, 0.36382418870925903, 0.9773930907249451, -0.6237591505050659, 0.10503847151994705, -0.07141396403312683, 0.32866495847702026, 0.07918664813041687, -0.1002412885427475, 0.10041195154190063, -0.3568965196609497, -0.20098991692066193, -0.05729813128709793, -0.17837472259998322, 0.17080864310264587, 0.394520103931427, -0.04661698639392853, 0.22372785210609436, 0.011628307402133942, -0.26045745611190796, 0.07602603733539581, 0.15312235057353973, 0.5615997314453125, -0.4029851257801056, 0.09155409038066864, 0.023358099162578583, 0.16441188752651215, -0.15738819539546967, -0.05247962102293968, 0.01044732891023159, 0.2703622579574585, -0.21420328319072723, -0.0706021785736084, 0.05293307453393936, -0.32887232303619385, 0.4100356698036194, 0.014214454218745232, -0.0565696582198143, -0.00447579100728035, 0.3751200735569, 0.09098134934902191, -0.3469938039779663, 0.05347578227519989, 0.025863053277134895, 0.42254161834716797, -0.08278699964284897, -0.09761086106300354, -0.19320376217365265, 0.21773746609687805, -0.10638384521007538, -0.1070830300450325, -0.1283574104309082, -0.07248319685459137, -0.4933263659477234, -0.021071240305900574, 0.36148083209991455, 0.24846364557743073, 0.21318598091602325, -0.10821512341499329, -0.03323906660079956, -0.06081690639257431, 0.07120455801486969, 0.03475801646709442, 0.22622883319854736, -0.25253134965896606, 0.40180251002311707, -0.15520082414150238, -0.3298461437225342, 0.17564179003238678, 0.3753991425037384, 0.08915477246046066, 0.04665330797433853, -0.05602213740348816, 0.036521974951028824, -0.12859737873077393, -0.05987245589494705, -0.4702131450176239, -0.08416850864887238, 0.04029048979282379, -0.13615572452545166, 0.17644034326076508, -0.18320852518081665, 0.07097839564085007, -0.28524866700172424, 0.15277543663978577, 0.350195050239563, -0.024578019976615906, -0.31023091077804565, -0.258350133895874, -0.06747691333293915, -0.6047511100769043, 0.1423448920249939, 0.31818264722824097, 0.11723853647708893, -0.05963931232690811, 0.5384202599525452, -0.2332453429698944, 0.03839189559221268, -0.22282949090003967, 0.1514664739370346, 0.03397269546985626, -0.26476427912712097, -0.004925872199237347, 0.0992051512002945, 0.038159795105457306, 0.16976793110370636, -0.4738582670688629, -0.16907942295074463, -0.041526034474372864, 0.1661277562379837, -0.05737728625535965, -0.0538131445646286, 0.23948781192302704, 0.1105373203754425, -0.06978723406791687, -0.24135996401309967, 0.23936673998832703, 0.2782628834247589, -0.052915945649147034, -0.30296051502227783, 0.38079437613487244, 0.2403033971786499, -0.46501028537750244, 0.04032892361283302, -0.24210390448570251, 0.05637737736105919, 0.08576732128858566, 0.15091371536254883, -0.16399237513542175, -0.08448637276887894, 0.13806675374507904, -0.06271962076425552, 0.40149354934692383, -0.02713388204574585, -0.07215576618909836, 0.18186739087104797, -0.25766727328300476, -0.04532875493168831, 0.16919489204883575, -0.11703804135322571, -0.2377588152885437, -0.09865771234035492, 0.19811812043190002, 0.12550607323646545, -0.008889013901352882, -0.25931012630462646, 0.4489039182662964, 0.06087128072977066, 0.16652540862560272, 0.44328612089157104, 0.5414141416549683, -0.1477372944355011, 0.13743165135383606, 0.20914199948310852, -0.09430012851953506, -0.8231092691421509, -0.008534515276551247, -0.3312123715877533, -0.17649832367897034, 0.00015636906027793884, 0.4875025749206543, 0.07797901332378387, 0.09294465184211731, 0.08493392169475555, 0.00560508668422699, 0.5639195442199707, -0.00308903306722641, 0.17469194531440735, -0.16847127676010132, -0.5935748815536499, -0.013424154371023178, 0.44970232248306274, -0.03584367036819458, 0.1109512597322464, -0.06568822264671326, 0.5236334800720215, -0.08905388414859772, -0.05783015117049217, -0.0711277574300766, 0.32870641350746155, 0.045449160039424896, -0.3315662741661072, 0.14655403792858124, 0.07401648908853531, -0.3571239113807678, 0.02085782214999199, 0.10783937573432922, 0.21120832860469818, 1.1305060386657715, 0.2189210206270218, -0.03304725140333176, 0.0709662139415741, -0.40211766958236694, 0.04326457530260086, 0.18166840076446533, -0.43410465121269226, 0.11640213429927826, -0.028473928570747375, -0.24944666028022766, 0.19744162261486053, -0.18607884645462036, 0.4021248519420624, 0.18394243717193604, -0.1345493495464325, -0.023858599364757538, -0.08544157445430756, 0.2919228672981262, -0.37987020611763, 0.22815421223640442, 0.14714190363883972, 0.1772664338350296, 0.15443865954875946, 0.03474315255880356, -0.15501296520233154, -0.10112087428569794, 0.17217093706130981, 0.345043808221817, 0.1073964536190033, 0.40673404932022095, 0.4150906205177307, -0.02471766248345375, 0.2531554400920868, 0.2438054084777832, -0.41608941555023193, 0.002961968071758747, 0.07013925909996033, -0.33710184693336487, 0.10969618707895279, 0.1378876268863678, 0.03219296410679817, 0.029809407889842987, 0.3300023376941681, 0.17865720391273499, 0.06848116964101791, -0.4470282793045044, 0.04699946939945221, -0.4657120406627655, 0.042448341846466064, -0.23638546466827393, 0.06644518673419952, 0.09282093495130539, 0.236851766705513, -0.04778295010328293, 0.2944711446762085, -0.1113085150718689, -0.5256273746490479, 0.34018760919570923, 0.383131742477417, -0.23607775568962097, 0.5561866760253906, 0.1366051882505417, -0.21823497116565704, 0.14272750914096832, -0.3238149881362915, 0.27196717262268066, 0.12511292099952698, 0.0070265792310237885, -0.02175631746649742, -0.19413888454437256, 0.20313456654548645, 0.1633785367012024, 0.15354382991790771, 0.32823315262794495, 0.3083537220954895, -0.22102832794189453, 0.02472284995019436, -0.10354655981063843, 0.2855862081050873, -0.140521839261055, -0.08050069957971573, 0.07464414834976196, 0.3196917474269867, -0.3053898215293884, 0.10320429503917694, -0.3163098394870758, 0.44413116574287415, -0.16288432478904724, 0.08230766654014587, -0.1980673223733902, -0.007095706183463335, 0.11321238428354263, 0.4045073091983795, -0.03364536911249161, 0.5239613652229309, 0.1506677269935608, 0.18684759736061096, -0.1268881857395172, -0.24480099976062775, 0.3629812002182007, -0.47938016057014465, -0.1273891180753708, -0.2317768633365631, 0.40843191742897034, -0.30568888783454895, 0.05193592235445976, -0.31157389283180237, -0.19907626509666443, -0.06130397319793701, -0.026867181062698364, -0.5178492069244385, 0.07027976214885712, -0.3260759115219116, -0.15112896263599396, -0.18333524465560913, -0.25510624051094055, -0.07665561139583588, -0.008336324244737625, -0.1532920002937317, -0.2853076457977295 ]
https://github.com/huggingface/datasets/pull/2774
Prevent .map from using multiprocessing when loading from cache
The CI error is unrelated to the changes of this PR - it looks like an SSL issue with conda
## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable.
20
text: Prevent .map from using multiprocessing when loading from cache ## Context On our setup, we use different setup to train vs proprocessing datasets. Usually we are able to obtain a high number of cpus to preprocess, which allows us to use `num_proc` however we can't use as many during training phase. Currently if we use `num_proc={whatever the preprocessing value was}` we load from cache, but we get: ``` Traceback (most recent call last): File "lib/python3.8/site-packages/multiprocess/pool.py", line 131, in worker put((job, i, result)) File "lib/python3.8/site-packages/multiprocess/queues.py", line 371, in put self._writer.send_bytes(obj) File "lib/python3.8/site-packages/multiprocess/connection.py", line 203, in send_bytes self._send_bytes(m[offset:offset + size]) File "lib/python3.8/site-packages/multiprocess/connection.py", line 414, in _send_bytes self._send(header + buf) File "lib/python3.8/site-packages/multiprocess/connection.py", line 371, in _send n = write(self._handle, buf) BrokenPipeError: [Errno 32] Broken pipe ``` Our current guess, is that we're spawning too many processes compared to the number of cpus available, and it's running OOM. Also we're loading this in DDP setting which means that for each gpu, I need to spawn a high number of processes to match the preprocessing fingerprint. Instead what we suggest: - Allow loading shard sequentially, sharing the same fingerprint as the multiprocessed one, in order to leverage multiprocessing when we actually generate the cache, and remove it when loading from cache. ## Current issues ~I'm having a hard time making fingerprints match. For some reason, the multiprocessing and the sequential version generate two different hash.~ **EDIT**: Turns out multiprocessing and sequential have different `transform` value for fingerprinting (check `fingerprint_transform`) when running `_map_single`: - sequential : `datasets.arrow_dataset.Dataset._map_single` - multiprocessing: `datasets.arrow_dataset._map_single` This discrepancy is caused by multiprocessing pickling the transformer function, it doesn't seem to keep the `Dataset` hierarchy. I'm still unclear on why `func.__qual_name__` isn't handled correctly in multiprocessing. But replacing `__qualname__` by `__name__` fixes the issue. ## What was done ~We try to prevent the usage of multiprocessing when loading a dataset. Instead we load all cached shards sequentially.~ I couldn't find a nice way to obtain the cached_file_name and check they all exist before deciding to use the multiprocessing flow or not. Instead I expose an optional boolean `sequential` in `map` method. ## TODO - [x] Check that the multiprocessed version and the sequential version output the same output - [x] Check that sequential can load multiprocessed - [x] Check that multiprocessed can load sequential ## Test ```python from datasets import load_dataset from multiprocessing import Pool import random def process(batch, rng): length = len(batch["text"]) return {**batch, "processed_text": [f"PROCESSED {rng.random()}" for _ in range(length)]} dataset = load_dataset("stas/openwebtext-10k", split="train") print(dataset.column_names) print(type(dataset)) rng = random.Random(42) dataset1 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}) # This one should be loaded from cache rng = random.Random(42) dataset2 = dataset.map(process, batched=True, batch_size=50, num_proc=4, fn_kwargs={"rng": rng}, sequential=True) # Just to check that the random generator was correct print(dataset1[-1]["processed_text"]) print(dataset2[-1]["processed_text"]) ``` ## Other solutions I chose to load everything sequentially, but we can probably find a way to load shards in parallel using another number of workers (essentially this would be an argument not used for fingerprinting, allowing to allow `m` shards using `n` processes, which would be very useful when same dataset have to be loaded on two different setup, and we still want to leverage cache). Also we can use a env variable similarly to `TOKENIZERS_PARALLELISM` as this seems generally setup related (though this changes slightly if we use multiprocessing). cc @lhoestq (since I had asked you previously on `num_proc` being used for fingerprinting). Don't know if this is acceptable. The CI error is unrelated to the changes of this PR - it looks like an SSL issue with conda
[ -0.2461632788181305, -0.23170338571071625, -0.010192660614848137, 0.027171041816473007, -0.034653276205062866, -0.2256254255771637, 0.5539514422416687, 0.24334993958473206, 0.10571758449077606, 0.2275431752204895, 0.23166993260383606, 0.009406824596226215, -0.1177866980433464, 0.11072651296854019, -0.10160737484693527, -0.04868263006210327, -0.012218482792377472, -0.2539461851119995, 0.15727654099464417, 0.22817657887935638, -0.1379045844078064, 0.17799535393714905, 0.013395123183727264, 0.1071297749876976, -0.4547217786312103, -0.13417156040668488, 0.16225354373455048, 0.48716941475868225, -0.10922058671712875, -0.3822057247161865, -0.06440559774637222, 0.27880266308784485, -0.11572378128767014, 0.1183311864733696, -0.00011881058162543923, -0.010925840586423874, 0.12449069321155548, 0.004468973726034164, 0.30118662118911743, -0.01987968385219574, -0.12342094630002975, 0.003518505021929741, 0.15886785089969635, -0.4235374331474304, 0.11692959815263748, 0.4804534912109375, -0.07620895653963089, -0.23777787387371063, 0.5218636989593506, -0.0865962952375412, 0.14325402677059174, 0.09756039828062057, -0.2261856198310852, 0.17632606625556946, -0.13098761439323425, -0.10686448216438293, -0.07570617645978928, -0.04578305780887604, 0.16055163741111755, -0.14201520383358002, -0.31998211145401, 0.24796585738658905, -0.3363519012928009, 0.15739531815052032, -0.26702284812927246, -0.04184577614068985, 0.8216482400894165, -0.38979384303092957, 0.2147313356399536, 0.3028174638748169, -0.3364695608615875, -0.0653420090675354, -0.13037735223770142, -0.29042643308639526, -0.18873192369937897, -0.34338656067848206, 0.20870080590248108, 0.03015223518013954, -0.29846078157424927, -0.044496115297079086, -0.5122179388999939, -0.09570889919996262, 0.21022987365722656, -0.15513594448566437, 0.18111595511436462, 0.09827670454978943, 0.26463279128074646, 0.21427282691001892, 0.38720473647117615, 0.1684822142124176, -0.15804897248744965, 0.046013906598091125, 0.20594003796577454, -0.04781747981905937, -0.2536081373691559, 0.08026866614818573, 0.00939435139298439, 0.33517059683799744, 0.19944626092910767, 0.08514940738677979, 0.19885101914405823, 0.3413829803466797, -0.011284706182777882, 0.2533854842185974, -0.04671807959675789, -0.12190964818000793, 0.10726664215326309, -0.12702859938144684, 0.014900576323270798, 0.24523311853408813, -0.284859299659729, 0.23184067010879517, 0.31369271874427795, -0.5076594352722168, 0.09607699513435364, 0.4170818328857422, -0.09337838739156723, -0.11806859076023102, 0.1246747151017189, -0.03518166393041611, 0.027571633458137512, -0.30860692262649536, 0.25219789147377014, 0.2109459638595581, 0.08639484643936157, 0.3816613554954529, -0.11546444892883301, 0.12239210307598114, -0.5304088592529297, -0.0650317445397377, -0.12916505336761475, 0.14390848577022552, -0.4324854016304016, 0.3224097490310669, -0.10176725685596466, -0.04861781373620033, 0.08282839506864548, 0.30881452560424805, 0.37456178665161133, -0.13035432994365692, 0.3174501061439514, -0.14223666489124298, 0.39762595295906067, 0.2958628237247467, -0.08379414677619934, -0.12505364418029785, 0.2291349470615387, -0.04410448670387268, -0.21165317296981812, 0.3249439597129822, -0.3542185425758362, -0.46261128783226013, 0.046949468553066254, 0.08436918258666992, -0.052123893052339554, 0.39746856689453125, -0.15663868188858032, -0.1576494425535202, 0.5264325141906738, -0.1928730607032776, 0.1263371855020523, -0.22974474728107452, -0.6139616370201111, -0.3776123523712158, 0.30029115080833435, 0.2718406319618225, 0.2886159420013428, 0.008536331355571747, -0.027288945391774178, -0.1084665060043335, 0.403971791267395, 0.21234378218650818, -0.24821971356868744, -0.04635465890169144, -0.16966314613819122, 0.22683630883693695, -0.07267909497022629, -0.41515329480171204, 0.09837932139635086, 0.3614971339702606, -0.2689377963542938, 0.20983298122882843, 0.30029425024986267, -0.1675167977809906, -0.009087501093745232, -0.1683197021484375, 0.08755888044834137, 0.15712329745292664, -0.10788638889789581, 0.20190370082855225, -0.3254907727241516, -0.382366806268692, -0.20233480632305145, -0.04714013636112213, 0.1919514685869217, 0.0652632787823677, -0.02341434359550476, -0.2565564513206482, 0.2931874096393585, -0.08578979969024658, 0.09190855920314789, -0.09981861710548401, -0.10199342668056488, -0.15903159976005554, -0.11710183322429657, 0.09281256049871445, -0.2546200156211853, 0.47321370244026184, -0.37924349308013916, -0.2203349471092224, -0.23780657351016998, -0.03145095705986023, 0.5378777384757996, -0.10366744548082352, -0.24955542385578156, -0.037501152604818344, 0.03294584900140762, -0.1136452704668045, -0.10816216468811035, -0.26871350407600403, 0.049084823578596115, 0.26678767800331116, 0.10199469327926636, 0.030441490933299065, -0.2847713828086853, -0.03500746935606003, -0.11924143880605698, -0.04894842952489853, -0.4351016581058502, 0.17844358086585999, 0.0692734569311142, -0.0040042586624622345, 0.13587096333503723, 0.3006592392921448, 0.2846878170967102, 0.07827991992235184, -0.13220158219337463, 0.5271983742713928, 0.1418682485818863, 0.2971973717212677, -0.04847224801778793, -0.3765803873538971, -0.3012523353099823, -0.20794376730918884, 0.22288164496421814, 0.5237023234367371, -0.037237685173749924, 0.24530622363090515, -0.05516687408089638, -0.028511662036180496, 0.11847420036792755, -0.27453476190567017, 0.048919208347797394, -0.29278120398521423, 0.18362362682819366, 0.2506278157234192, 0.12988802790641785, 0.0827488973736763, -0.20146965980529785, 0.11018465459346771, 0.10415416955947876, 0.28120607137680054, -0.15992990136146545, 0.01836942322552204, 0.35952603816986084, -0.18280285596847534, 0.13859869539737701, 0.06366932392120361, 0.3673393726348877, 0.1254814863204956, 0.13179774582386017, 0.036210473626852036, -0.1250992864370346, -0.23947395384311676, -0.07969244569540024, 0.0023434609174728394, 0.16867291927337646, 0.12097509950399399, -0.01890411227941513, -0.008636576123535633, -0.034030403941869736, -0.1926998645067215, 0.1464473009109497, -0.17864857614040375, -0.29130375385284424, 0.10307767242193222, -0.31174126267433167, 0.428123414516449, -0.1083805114030838, -0.11913128942251205, -0.199371337890625, -0.12231417000293732, 0.17396453022956848, 0.4296890199184418, 0.0160844549536705, 0.15189103782176971, 0.006639469414949417, -0.006691470742225647, -0.3044828772544861, -0.39926469326019287, -0.03694029152393341, -0.22491028904914856, 0.159054234623909, -0.022825703024864197, 0.33274728059768677, -0.004879870917648077, 0.2471594214439392, 0.05688735842704773, -0.42841213941574097, -0.07825462520122528, -0.1137857586145401, -0.015453249216079712, 0.054060276597738266, -0.05685633420944214, 0.040830954909324646, -0.09506188333034515, -0.17731168866157532, -0.32950732111930847, 0.23645621538162231, -0.3527090847492218, -0.13121995329856873, 0.0052049532532691956, -0.08619532734155655, -0.0870460644364357, -0.10133233666419983, 0.06280140578746796, -0.15739145874977112, -0.16635842621326447, 0.10701918601989746, 0.07247059047222137, 0.3148093819618225, -0.07165569812059402, 0.11331908404827118, -0.1036229357123375, -0.13259084522724152, 0.14298567175865173, -0.17437312006950378, -0.6119470000267029, -0.16277311742305756, -0.10643943399190903, -0.03338795527815819, 0.03950301930308342, -0.00543883815407753, 0.24597351253032684, 0.5788246393203735, -0.1892659068107605, -0.4112362563610077, 0.08384990692138672, 0.27921050786972046, 0.02898474968969822, -0.048832967877388, 0.5595872402191162, 0.356088787317276, -0.13110487163066864, 0.09832140058279037, 0.1397707164287567, 0.2510061264038086, -0.04479820281267166, 0.15670403838157654, 0.2134968340396881, 0.21342232823371887, 0.2714202105998993, 1.2308655977249146, 0.15208449959754944, -0.17531944811344147, 0.1300983726978302, 0.07859724014997482, -0.2275248020887375, -0.29913169145584106, -0.057776279747486115, -0.07653312385082245, -0.14904791116714478, -0.04986663907766342, 0.1288955807685852, -0.14829495549201965, -0.2606408894062042, -0.054157376289367676, 0.5537511706352234, -0.2536499798297882, -0.43603673577308655, 0.15723472833633423, -0.2389746606349945, 0.19630052149295807, -0.13154885172843933, -0.07087723165750504, -0.11614523828029633, -0.0340043306350708, -0.04321206733584404, 0.18469476699829102, 0.043217770755290985, -0.13685449957847595, -0.09430289268493652, 0.10257799178361893, -0.6591214537620544, 0.38356083631515503, 0.3607986271381378, 0.11063215881586075, -0.3083828091621399, -0.18601694703102112, 0.270935595035553, 0.052184898406267166, 0.5281824469566345, -0.26821744441986084, 0.18215160071849823, 0.10149259865283966, -0.6575872898101807, 0.25328466296195984, -0.11996617913246155, 0.19472843408584595, 0.5823594331741333, 0.39136120676994324, 0.2513970136642456, -0.23662638664245605, -0.03944595158100128, -0.34985992312431335, -0.14443467557430267, 0.06397584080696106, -0.4235014021396637, -0.2376994788646698, -0.008171241730451584, -0.3274039328098297, 0.13342252373695374, 0.2194795161485672, 0.09706340730190277, -0.13202351331710815, -0.10086250305175781, -0.00519958883523941, 0.04215545952320099, 0.25471800565719604, -0.12456339597702026, -0.08960161358118057, 0.010762105695903301, 0.05434876307845116, 0.23440545797348022, 0.10513460636138916, -0.07956340163946152, 0.303986519575119, -0.2977186441421509, 0.14466708898544312, -0.1482393443584442, -0.05654735118150711, -0.2004614770412445, 0.5174747109413147, 0.12182198464870453, 0.12487275898456573, 0.31067171692848206, 0.16023939847946167, -0.10375282168388367, -0.0028019133023917675, -0.1001027375459671, 0.07589462399482727, -0.23783189058303833, -0.1053917333483696, 0.23562213778495789, 0.33754032850265503, -0.30817705392837524, 0.3774681091308594, -0.5501739382743835, -0.2404818832874298, 0.3411775231361389, 0.36382418870925903, 0.9773930907249451, -0.6237591505050659, 0.10503847151994705, -0.07141396403312683, 0.32866495847702026, 0.07918664813041687, -0.1002412885427475, 0.10041195154190063, -0.3568965196609497, -0.20098991692066193, -0.05729813128709793, -0.17837472259998322, 0.17080864310264587, 0.394520103931427, -0.04661698639392853, 0.22372785210609436, 0.011628307402133942, -0.26045745611190796, 0.07602603733539581, 0.15312235057353973, 0.5615997314453125, -0.4029851257801056, 0.09155409038066864, 0.023358099162578583, 0.16441188752651215, -0.15738819539546967, -0.05247962102293968, 0.01044732891023159, 0.2703622579574585, -0.21420328319072723, -0.0706021785736084, 0.05293307453393936, -0.32887232303619385, 0.4100356698036194, 0.014214454218745232, -0.0565696582198143, -0.00447579100728035, 0.3751200735569, 0.09098134934902191, -0.3469938039779663, 0.05347578227519989, 0.025863053277134895, 0.42254161834716797, -0.08278699964284897, -0.09761086106300354, -0.19320376217365265, 0.21773746609687805, -0.10638384521007538, -0.1070830300450325, -0.1283574104309082, -0.07248319685459137, -0.4933263659477234, -0.021071240305900574, 0.36148083209991455, 0.24846364557743073, 0.21318598091602325, -0.10821512341499329, -0.03323906660079956, -0.06081690639257431, 0.07120455801486969, 0.03475801646709442, 0.22622883319854736, -0.25253134965896606, 0.40180251002311707, -0.15520082414150238, -0.3298461437225342, 0.17564179003238678, 0.3753991425037384, 0.08915477246046066, 0.04665330797433853, -0.05602213740348816, 0.036521974951028824, -0.12859737873077393, -0.05987245589494705, -0.4702131450176239, -0.08416850864887238, 0.04029048979282379, -0.13615572452545166, 0.17644034326076508, -0.18320852518081665, 0.07097839564085007, -0.28524866700172424, 0.15277543663978577, 0.350195050239563, -0.024578019976615906, -0.31023091077804565, -0.258350133895874, -0.06747691333293915, -0.6047511100769043, 0.1423448920249939, 0.31818264722824097, 0.11723853647708893, -0.05963931232690811, 0.5384202599525452, -0.2332453429698944, 0.03839189559221268, -0.22282949090003967, 0.1514664739370346, 0.03397269546985626, -0.26476427912712097, -0.004925872199237347, 0.0992051512002945, 0.038159795105457306, 0.16976793110370636, -0.4738582670688629, -0.16907942295074463, -0.041526034474372864, 0.1661277562379837, -0.05737728625535965, -0.0538131445646286, 0.23948781192302704, 0.1105373203754425, -0.06978723406791687, -0.24135996401309967, 0.23936673998832703, 0.2782628834247589, -0.052915945649147034, -0.30296051502227783, 0.38079437613487244, 0.2403033971786499, -0.46501028537750244, 0.04032892361283302, -0.24210390448570251, 0.05637737736105919, 0.08576732128858566, 0.15091371536254883, -0.16399237513542175, -0.08448637276887894, 0.13806675374507904, -0.06271962076425552, 0.40149354934692383, -0.02713388204574585, -0.07215576618909836, 0.18186739087104797, -0.25766727328300476, -0.04532875493168831, 0.16919489204883575, -0.11703804135322571, -0.2377588152885437, -0.09865771234035492, 0.19811812043190002, 0.12550607323646545, -0.008889013901352882, -0.25931012630462646, 0.4489039182662964, 0.06087128072977066, 0.16652540862560272, 0.44328612089157104, 0.5414141416549683, -0.1477372944355011, 0.13743165135383606, 0.20914199948310852, -0.09430012851953506, -0.8231092691421509, -0.008534515276551247, -0.3312123715877533, -0.17649832367897034, 0.00015636906027793884, 0.4875025749206543, 0.07797901332378387, 0.09294465184211731, 0.08493392169475555, 0.00560508668422699, 0.5639195442199707, -0.00308903306722641, 0.17469194531440735, -0.16847127676010132, -0.5935748815536499, -0.013424154371023178, 0.44970232248306274, -0.03584367036819458, 0.1109512597322464, -0.06568822264671326, 0.5236334800720215, -0.08905388414859772, -0.05783015117049217, -0.0711277574300766, 0.32870641350746155, 0.045449160039424896, -0.3315662741661072, 0.14655403792858124, 0.07401648908853531, -0.3571239113807678, 0.02085782214999199, 0.10783937573432922, 0.21120832860469818, 1.1305060386657715, 0.2189210206270218, -0.03304725140333176, 0.0709662139415741, -0.40211766958236694, 0.04326457530260086, 0.18166840076446533, -0.43410465121269226, 0.11640213429927826, -0.028473928570747375, -0.24944666028022766, 0.19744162261486053, -0.18607884645462036, 0.4021248519420624, 0.18394243717193604, -0.1345493495464325, -0.023858599364757538, -0.08544157445430756, 0.2919228672981262, -0.37987020611763, 0.22815421223640442, 0.14714190363883972, 0.1772664338350296, 0.15443865954875946, 0.03474315255880356, -0.15501296520233154, -0.10112087428569794, 0.17217093706130981, 0.345043808221817, 0.1073964536190033, 0.40673404932022095, 0.4150906205177307, -0.02471766248345375, 0.2531554400920868, 0.2438054084777832, -0.41608941555023193, 0.002961968071758747, 0.07013925909996033, -0.33710184693336487, 0.10969618707895279, 0.1378876268863678, 0.03219296410679817, 0.029809407889842987, 0.3300023376941681, 0.17865720391273499, 0.06848116964101791, -0.4470282793045044, 0.04699946939945221, -0.4657120406627655, 0.042448341846466064, -0.23638546466827393, 0.06644518673419952, 0.09282093495130539, 0.236851766705513, -0.04778295010328293, 0.2944711446762085, -0.1113085150718689, -0.5256273746490479, 0.34018760919570923, 0.383131742477417, -0.23607775568962097, 0.5561866760253906, 0.1366051882505417, -0.21823497116565704, 0.14272750914096832, -0.3238149881362915, 0.27196717262268066, 0.12511292099952698, 0.0070265792310237885, -0.02175631746649742, -0.19413888454437256, 0.20313456654548645, 0.1633785367012024, 0.15354382991790771, 0.32823315262794495, 0.3083537220954895, -0.22102832794189453, 0.02472284995019436, -0.10354655981063843, 0.2855862081050873, -0.140521839261055, -0.08050069957971573, 0.07464414834976196, 0.3196917474269867, -0.3053898215293884, 0.10320429503917694, -0.3163098394870758, 0.44413116574287415, -0.16288432478904724, 0.08230766654014587, -0.1980673223733902, -0.007095706183463335, 0.11321238428354263, 0.4045073091983795, -0.03364536911249161, 0.5239613652229309, 0.1506677269935608, 0.18684759736061096, -0.1268881857395172, -0.24480099976062775, 0.3629812002182007, -0.47938016057014465, -0.1273891180753708, -0.2317768633365631, 0.40843191742897034, -0.30568888783454895, 0.05193592235445976, -0.31157389283180237, -0.19907626509666443, -0.06130397319793701, -0.026867181062698364, -0.5178492069244385, 0.07027976214885712, -0.3260759115219116, -0.15112896263599396, -0.18333524465560913, -0.25510624051094055, -0.07665561139583588, -0.008336324244737625, -0.1532920002937317, -0.2853076457977295 ]
https://github.com/huggingface/datasets/pull/2771
[WIP][Common Voice 7] Add common voice 7.0
Hi ! I think the name `common_voice_7` is fine :) Moreover if the dataset_infos.json is missing I'm pretty sure you don't need to specify `ignore_verifications=True`
This PR allows to load the new common voice dataset manually as explained when doing: ```python from datasets import load_dataset ds = load_dataset("./datasets/datasets/common_voice_7", "ab") ``` => ``` Please follow the manual download instructions: You need to manually the dataset from `https://commonvoice.mozilla.org/en/datasets`. Make sure you choose the version `Common Voice Corpus 7.0`. Choose a language of your choice and find the corresponding language-id, *e.g.*, `Abkhaz` with language-id `ab`. The following language-ids are available: ['ab', 'ar', 'as', 'az', 'ba', 'bas', 'be', 'bg', 'br', 'ca', 'cnh', 'cs', 'cv', 'cy', 'de', 'dv', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'fy-NL', 'ga-IE', 'gl', 'gn', 'ha', 'hi', 'hsb', 'hu', 'hy-AM', 'ia', 'id', 'it', 'ja', 'ka', 'kab', 'kk', 'kmr', 'ky', 'lg', 'lt', 'lv', 'mn', 'mt', 'nl', 'or', 'pa-IN', 'pl', 'pt', 'rm-sursilv', 'rm-vallader', 'ro', 'ru', 'rw', 'sah', 'sk', 'sl', 'sr', 'sv-SE', 'ta', 'th', 'tr', 'tt', 'ug', 'uk', 'ur', 'uz', 'vi', 'vot', 'zh-CN', 'zh-HK', 'zh-TW'] Next, you will have to enter your email address to download the dataset in the `tar.gz` format. Save the file under <path-to-file>. The file should then be extracted with: ``tar -xvzf <path-to-file>`` which will extract a folder called ``cv-corpus-7.0-2021-07-21``. The dataset can then be loaded with `datasets.load_dataset("common_voice", <language-id>, data_dir="<path-to-'cv-corpus-7.0-2021-07-21'-folder>", ignore_verifications=True). ``` Having followed those instructions one can then download the data as follows: ```python from datasets import load_dataset ds = load_dataset("./datasets/datasets/common_voice_7", "ab", data_dir="./cv-corpus-7.0-2021-07-21/", ignore_verifications=True) ``` ## TODO - [ ] Discuss naming. Is the name ok here "common_voice_7"? The dataset script differs only really in one point from `common_voice.py` in that all the metadata is different (more hours etc...) and that it has to use manual data dir for now - [ ] Ideally we should get a bundled download link. For `common_voice.py` there is a bundled download link: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/{}.tar.gz` that allows one to directly download the data. However such a link is missing for Common Voice 7. I guess we should try to contact common voice about it and ask whether we could host the data or help otherwise somehow. See: https://github.com/common-voice/common-voice-bundler/issues/15 cc @yjernite - [ ] I did not compute the dataset.json and it would mean that I'd have to download 76 datasets totalling around 1TB manually before running the checksum command. This just takes too much time. For now the user will have to add a `ignore_verifications=True` to download the data. This step would also be much easier if we could get a bundled link - [ ] Add dummy data
25
text: [WIP][Common Voice 7] Add common voice 7.0 This PR allows to load the new common voice dataset manually as explained when doing: ```python from datasets import load_dataset ds = load_dataset("./datasets/datasets/common_voice_7", "ab") ``` => ``` Please follow the manual download instructions: You need to manually the dataset from `https://commonvoice.mozilla.org/en/datasets`. Make sure you choose the version `Common Voice Corpus 7.0`. Choose a language of your choice and find the corresponding language-id, *e.g.*, `Abkhaz` with language-id `ab`. The following language-ids are available: ['ab', 'ar', 'as', 'az', 'ba', 'bas', 'be', 'bg', 'br', 'ca', 'cnh', 'cs', 'cv', 'cy', 'de', 'dv', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fr', 'fy-NL', 'ga-IE', 'gl', 'gn', 'ha', 'hi', 'hsb', 'hu', 'hy-AM', 'ia', 'id', 'it', 'ja', 'ka', 'kab', 'kk', 'kmr', 'ky', 'lg', 'lt', 'lv', 'mn', 'mt', 'nl', 'or', 'pa-IN', 'pl', 'pt', 'rm-sursilv', 'rm-vallader', 'ro', 'ru', 'rw', 'sah', 'sk', 'sl', 'sr', 'sv-SE', 'ta', 'th', 'tr', 'tt', 'ug', 'uk', 'ur', 'uz', 'vi', 'vot', 'zh-CN', 'zh-HK', 'zh-TW'] Next, you will have to enter your email address to download the dataset in the `tar.gz` format. Save the file under <path-to-file>. The file should then be extracted with: ``tar -xvzf <path-to-file>`` which will extract a folder called ``cv-corpus-7.0-2021-07-21``. The dataset can then be loaded with `datasets.load_dataset("common_voice", <language-id>, data_dir="<path-to-'cv-corpus-7.0-2021-07-21'-folder>", ignore_verifications=True). ``` Having followed those instructions one can then download the data as follows: ```python from datasets import load_dataset ds = load_dataset("./datasets/datasets/common_voice_7", "ab", data_dir="./cv-corpus-7.0-2021-07-21/", ignore_verifications=True) ``` ## TODO - [ ] Discuss naming. Is the name ok here "common_voice_7"? The dataset script differs only really in one point from `common_voice.py` in that all the metadata is different (more hours etc...) and that it has to use manual data dir for now - [ ] Ideally we should get a bundled download link. For `common_voice.py` there is a bundled download link: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/{}.tar.gz` that allows one to directly download the data. However such a link is missing for Common Voice 7. I guess we should try to contact common voice about it and ask whether we could host the data or help otherwise somehow. See: https://github.com/common-voice/common-voice-bundler/issues/15 cc @yjernite - [ ] I did not compute the dataset.json and it would mean that I'd have to download 76 datasets totalling around 1TB manually before running the checksum command. This just takes too much time. For now the user will have to add a `ignore_verifications=True` to download the data. This step would also be much easier if we could get a bundled link - [ ] Add dummy data Hi ! I think the name `common_voice_7` is fine :) Moreover if the dataset_infos.json is missing I'm pretty sure you don't need to specify `ignore_verifications=True`
[ -0.20816464722156525, -0.4000881612300873, -0.11533685028553009, -0.13392361998558044, -0.08171938359737396, 0.09040502458810806, 0.16984325647354126, 0.24212777614593506, 0.1643412709236145, 0.13779032230377197, -0.2341255098581314, 0.1579331010580063, 0.05928279086947441, -0.1754462569952011, -0.17019346356391907, -0.1446973830461502, -0.020342066884040833, 0.3688153028488159, 0.3410241901874542, -0.21659065783023834, -0.260150671005249, 0.325601726770401, -0.2181006371974945, 0.05089439079165459, -0.03517100214958191, -0.18411919474601746, -0.030503829941153526, 0.15385276079177856, -0.3255739212036133, -0.33144766092300415, -0.07973609119653702, 0.1940464973449707, -0.02160259149968624, 0.3815346956253052, -0.00009998847963288426, -0.23797707259655, 0.06695117801427841, -0.12897427380084991, -0.12459886074066162, -0.12726826965808868, -0.1636316180229187, 0.1252913624048233, -0.2973800301551819, -0.14208805561065674, -0.021412160247564316, -0.19258782267570496, -0.028747109696269035, -0.40940961241722107, 0.3360903859138489, 0.4035051763057709, 0.2946721613407135, -0.12066642940044403, -0.20934121310710907, -0.028994936496019363, 0.010851450264453888, -0.19849984347820282, -0.13522738218307495, 0.06275516748428345, 0.3182389736175537, -0.18219418823719025, 0.05267215147614479, 0.32392704486846924, -0.11400860548019409, -0.2230113297700882, -0.22727328538894653, 0.036239467561244965, 0.03212033584713936, -0.4545956254005432, 0.4264650344848633, 0.18864068388938904, 0.5711827874183655, -0.36195382475852966, -0.13305717706680298, 0.22694486379623413, 0.21986247599124908, -0.21385911107063293, -0.015365399420261383, 0.14941395819187164, -0.2033253014087677, 0.20473259687423706, -0.02000795677304268, -0.14884458482265472, 0.0068630799651145935, 0.1893952637910843, -0.11988775432109833, 0.5301969051361084, 0.06229952350258827, -0.20174556970596313, 0.1394493579864502, -0.11757029592990875, -0.1331603080034256, 0.09018600732088089, -0.030223798006772995, 0.3830019533634186, 0.029238633811473846, 0.010910198092460632, 0.11706450581550598, -0.22142818570137024, 0.19457119703292847, -0.36592209339141846, 0.29911765456199646, 0.12127985805273056, -0.29399749636650085, 0.12835189700126648, -0.13789446651935577, 0.1675921231508255, 0.3978065252304077, -0.09706459194421768, 0.20825843513011932, 0.16250044107437134, 0.20108076930046082, 0.10807250440120697, -0.22919754683971405, -0.09043572098016739, 0.08054153621196747, 0.22226184606552124, 0.12912708520889282, -0.023151304572820663, -0.2085249274969101, 0.17984165251255035, -0.10524076223373413, -0.027168547734618187, -0.06719038635492325, 0.3775712549686432, -0.0586748942732811, 0.3585249185562134, 0.03646326810121536, 0.22795610129833221, -0.14539052546024323, -0.12594455480575562, -0.1502838134765625, 0.16698592901229858, -0.09067261219024658, -0.04002425819635391, 0.21847976744174957, -0.0957886129617691, 0.23139752447605133, 0.03019632026553154, 0.0699012279510498, -0.03709864243865013, -0.24524755775928497, 0.12601003050804138, -0.04608941823244095, 0.08104011416435242, 0.1197483092546463, 0.19565284252166748, 0.14389961957931519, -0.16834917664527893, -0.2788795530796051, 0.20947229862213135, -0.05319584161043167, -0.14808885753154755, -0.32131603360176086, 0.39572566747665405, 0.30212122201919556, -0.21190914511680603, 0.23626556992530823, 0.16407866775989532, 0.11557795107364655, -0.2558661997318268, 0.05816222354769707, 0.017787158489227295, -0.24064525961875916, -0.051255494356155396, 0.14916515350341797, 0.20752285420894623, -0.42895278334617615, -0.11710415780544281, -0.2854061722755432, -0.038586560636758804, 0.20561498403549194, 0.07525612413883209, 0.058761220425367355, -0.05103302747011185, -0.1443052738904953, 0.42944324016571045, 0.4318076968193054, -0.2675718069076538, -0.39989906549453735, 0.007288898341357708, -0.15637746453285217, 0.11580447107553482, 0.14737363159656525, -0.08986341208219528, 0.02162294089794159, 0.13901595771312714, 0.48883357644081116, 0.3011587858200073, 0.05658053606748581, 0.1404968649148941, -0.08845335245132446, -0.13260777294635773, 0.0499720573425293, 0.13656336069107056, -0.023151535540819168, -0.01790768653154373, 0.0460636280477047, 0.022954288870096207, 0.4150726795196533, -0.0965937077999115, 0.05625845491886139, 0.1105823963880539, 0.32930630445480347, -0.3316429853439331, 0.07794619351625443, -0.08078421652317047, -0.06142813712358475, 0.06613212823867798, 0.02556128054857254, 0.3148269057273865, -0.14753343164920807, -0.23917868733406067, -0.5840135812759399, -0.1826210618019104, -0.3514339327812195, 0.042329683899879456, 0.3622725009918213, 0.28067320585250854, -0.02959299646317959, -0.19796183705329895, -0.13218489289283752, 0.1419731229543686, -0.17780807614326477, -0.14029499888420105, -0.08572378754615784, 0.060650065541267395, -0.4839469790458679, -0.07776271551847458, -0.029174642637372017, 0.2989899516105652, 0.05214787274599075, 0.19146861135959625, -0.0394660122692585, 0.16166776418685913, -0.15438829362392426, 0.19807755947113037, -0.04057648032903671, -0.04522806406021118, 0.034114688634872437, -0.38674110174179077, 0.3134370744228363, 0.09623946249485016, 0.16995559632778168, -0.03913440555334091, 0.2946908175945282, 0.20901872217655182, 0.330369234085083, -0.007288150489330292, 0.12946423888206482, -0.16347874701023102, 0.2975578308105469, -0.013189412653446198, -0.04216059669852257, -0.1659480333328247, 0.10292023420333862, 0.04926358163356781, -0.09105433523654938, -0.040705837309360504, -0.41175809502601624, 0.13518241047859192, 0.7118044495582581, -0.13771654665470123, 0.22212082147598267, 0.04532310366630554, -0.27446165680885315, -0.04382580518722534, -0.04484178125858307, -0.11974483728408813, 0.1132509857416153, 0.27483469247817993, 0.2603861093521118, 0.14531560242176056, -0.017909150570631027, -0.08178936690092087, 0.12145476043224335, -0.005873098969459534, -0.08970034122467041, 0.392511785030365, 0.1284816712141037, -0.07202358543872833, -0.4454767107963562, -0.30495256185531616, -0.09130215644836426, 0.14866366982460022, -0.11796686053276062, -0.08718220144510269, -0.15632492303848267, -0.026604872196912766, -0.11744384467601776, -0.057505231350660324, -0.23486536741256714, -0.25743839144706726, 0.4363597631454468, 0.09645663946866989, 0.13349251449108124, 0.23110422492027283, -0.15562592446804047, 0.1468755602836609, 0.025071853771805763, -0.17169426381587982, -0.14814966917037964, -0.11989776045084, -0.3221505284309387, 0.2794046998023987, -0.03575459122657776, -0.059045352041721344, 0.17174750566482544, -0.4951857924461365, -0.05687107890844345, -0.10343950241804123, -0.1536286473274231, 0.162572979927063, -0.24240632355213165, -0.3420746922492981, -0.07296544313430786, 0.0854831412434578, -0.04242965579032898, -0.23025363683700562, 0.06679652631282806, -0.23700180649757385, -0.29718080163002014, 0.08628416061401367, -0.14801864326000214, -0.00648190313950181, -0.11902213096618652, -0.6353134512901306, -0.4239366054534912, -0.5106645822525024, -0.07920326292514801, -0.10559110343456268, 0.24286718666553497, 0.2559221684932709, -0.10569664090871811, 0.009791587479412556, 0.017359232529997826, 0.4646449089050293, -0.2581171691417694, -0.11349748075008392, 0.27736034989356995, -0.07636796683073044, -0.17355681955814362, 0.17440760135650635, -0.18877287209033966, 0.35140353441238403, -0.09669187664985657, -0.15439936518669128, -0.06807029247283936, -0.07828112691640854, 0.36520662903785706, 0.03273729979991913, 0.19860920310020447, 0.385235071182251, 0.2952222228050232, -0.2717509865760803, -0.02991276979446411, -0.12235793471336365, -0.22596940398216248, 0.43569085001945496, 0.13657024502754211, 0.003914624452590942, 0.07794404029846191, -0.13263174891471863, 0.7615394592285156, -0.024150783196091652, 0.13834567368030548, 0.3850992023944855, -0.13262243568897247, 0.10111582279205322, -0.11292415112257004, -0.25052571296691895, -0.0503602996468544, 0.13426876068115234, 0.19673219323158264, 0.5768977403640747, -0.03061208873987198, -0.21114593744277954, -0.09198042750358582, -0.08709695935249329, -0.43666568398475647, -0.019113587215542793, 0.1738480180501938, -0.12043187022209167, 0.15340450406074524, -0.09941865503787994, 0.04198542237281799, -0.17258673906326294, -0.0008719097822904587, 0.1711445450782776, -0.02521248161792755, -0.28991106152534485, -0.08151214569807053, 0.12309399247169495, -0.17095625400543213, -0.3757728934288025, 0.282936692237854, 0.3001386523246765, 0.28428953886032104, -0.2382449358701706, -0.06651860475540161, -0.002876065671443939, -0.0349775031208992, 0.060486625880002975, -0.26746320724487305, -0.16220659017562866, 0.28054746985435486, 0.2847970426082611, 0.11384115368127823, 0.12403528392314911, -0.3289671242237091, 0.0010303766466677189, 0.13378643989562988, -0.043748579919338226, -0.1196943148970604, -0.081325463950634, -0.0011756587773561478, 0.4351026713848114, -0.0919802114367485, 0.01399784255772829, -0.2448202669620514, -0.3440825939178467, -0.43420788645744324, 0.20538964867591858, 0.1685468852519989, 0.27787020802497864, -0.23591086268424988, 0.14894451200962067, 0.39164233207702637, -0.11338399350643158, 0.28894007205963135, 0.18234170973300934, 0.09457233548164368, 0.17465409636497498, 0.02991878241300583, 0.13152283430099487, 0.1173739954829216, -0.11400142312049866, 0.5109789967536926, 0.07397601008415222, 0.0431097075343132, -0.14102765917778015, 0.011122048832476139, 0.21424539387226105, 0.14552496373653412, 0.1698645055294037, -0.11242131143808365, 0.15403006970882416, -0.02870534360408783, 0.1435319483280182, 0.029400726780295372, 0.39230483770370483, 0.11568831652402878, -0.442491352558136, -0.3913635015487671, 0.10774095356464386, 0.0793893039226532, -0.13252148032188416, 0.13303881883621216, 0.13091662526130676, -0.24264590442180634, 0.10108380764722824, -0.35574647784233093, 0.9667867422103882, 0.19080108404159546, 0.16797178983688354, 0.15113282203674316, 0.2649686932563782, -0.386178195476532, -0.3430072069168091, 0.1569325029850006, -0.0929013043642044, -0.12214036285877228, -0.11807660758495331, 0.1985224485397339, 0.08190347254276276, 0.09676456451416016, -0.5495346784591675, 0.3544488549232483, -0.1818632036447525, -0.17719000577926636, 0.08236466348171234, 0.13596147298812866, -0.3806682527065277, -0.3669574558734894, -0.04638516157865524, 0.2314378321170807, -0.02314213663339615, 0.312962144613266, 0.1151554211974144, 0.08911854773759842, -0.12489967048168182, -0.39689314365386963, -0.25213468074798584, 0.28997647762298584, 0.03963673487305641, -0.14493221044540405, -0.12027522921562195, 0.050260886549949646, 0.2851814925670624, 0.15176935493946075, 0.17702065408229828, 0.21808215975761414, -0.003705322742462158, 0.08325053006410599, 0.3717174530029297, 0.006921631749719381, 0.005799768026918173, 0.056623950600624084, 0.11679617315530777, -0.2550155520439148, -0.44199755787849426, 0.2806650400161743, -0.02418622560799122, 0.09386007487773895, -0.16020552814006805, -0.037169210612773895, 0.4883865714073181, 0.05015061795711517, 0.06734755635261536, 0.25582894682884216, -0.14815548062324524, -0.22500745952129364, 0.2784619927406311, 0.005920760333538055, -0.4565258026123047, 0.07273606210947037, -0.04149549826979637, -0.093723364174366, -0.07605740427970886, 0.2316237986087799, 0.3059830665588379, -0.12080863118171692, 0.6202658414840698, 0.1309983879327774, -0.17354273796081543, -0.4212978482246399, -0.32072779536247253, 0.21063189208507538, -0.18350815773010254, -0.31189650297164917, 0.1401001363992691, -0.38428640365600586, -0.09326640516519547, 0.6110852360725403, -0.1149003803730011, 0.30610087513923645, -0.18798454105854034, -0.28401875495910645, -0.39506182074546814, 0.08702811598777771, 0.2561347782611847, 0.20436769723892212, 0.11455094069242477, -0.15442931652069092, 0.1467500925064087, 0.039563365280628204, -0.5230681896209717, -0.038809940218925476, -0.16807310283184052, 0.11463695764541626, 0.04782059043645859, -0.15871071815490723, 0.07955536991357803, 0.15557996928691864, 0.4405810236930847, -0.11361172795295715, 0.0042456528171896935, -0.41545313596725464, -0.03916635364294052, 0.09866680204868317, 0.08671453595161438, -0.1477043330669403, 0.15189824998378754, 0.02327970787882805, -0.1250455379486084, -0.02760998159646988, 0.11055634915828705, 0.1807338297367096, 0.07089944183826447, 0.26154467463493347, 0.11034029722213745, -0.023980408906936646, 0.12561914324760437, -0.08976194262504578, -0.059549883008003235, 0.2872905731201172, -0.05979681387543678, 0.20397169888019562, -0.021650884300470352, -0.2687622010707855, 0.098894402384758, 0.1807878017425537, 0.2575798034667969, 0.1496615707874298, 0.09805931150913239, -0.11861184239387512, 0.15336209535598755, 0.08160938322544098, 0.33506643772125244, 0.028609003871679306, -0.11305037885904312, -0.0852675810456276, 0.25674232840538025, 0.4144029915332794, -0.48854076862335205, -0.09641129523515701, 0.06707119941711426, -0.3470279574394226, 0.23181763291358948, 0.22424080967903137, -0.0378580167889595, -0.08750158548355103, 0.23787768185138702, -0.11139839887619019, -0.12182273715734482, -0.07507830858230591, 0.0370190404355526, 0.2814655601978302, -0.023814089596271515, -0.019248779863119125, 0.15556366741657257, 0.05279181897640228, 0.13323692977428436, 0.19591869413852692, -0.48726171255111694, 0.2183738648891449, 0.27691736817359924, 0.08171001076698303, 0.2588343322277069, -0.26815879344940186, 0.2668166756629944, -0.11774685978889465, 0.10581693053245544, 0.046353328973054886, 0.21215753257274628, 0.11985360831022263, -0.12003009766340256, 0.06200995296239853, -0.20946413278579712, 0.297206848859787, -0.1336570382118225, -0.055644504725933075, -0.13205817341804504, -0.17925573885440826, -0.26826250553131104, -0.11263370513916016, 0.12065906822681427, -0.06318269670009613, 0.1325908601284027, -0.04347074776887894, 0.0008848682045936584, -0.20829392969608307, -0.07085032761096954, -0.08154372870922089, 0.07706116884946823, -0.24185481667518616, 0.3033299744129181, 0.136847123503685, -0.11928083002567291, 0.11761689186096191, 0.09946819394826889, 0.2578086853027344, 0.15124759078025818, -0.11535902321338654, 0.2929152846336365, 0.034530676901340485, -0.2758544087409973, -0.009418283589184284, 0.01095698680728674, 0.3402197062969208, 0.2662230134010315, 0.08298665285110474, 0.3109181821346283, -0.36279723048210144, -0.19245409965515137, 0.14550532400608063, 0.03893101587891579, 0.2593315541744232, 0.2629487216472626, -0.12328307330608368, -0.19529354572296143, -0.4560760259628296, 0.12492099404335022, -0.4958770275115967, 0.111060731112957, 0.1905268281698227, 0.1678309291601181, 0.14780959486961365, -0.29133158922195435, 0.15532535314559937, 0.08006002008914948, 0.06892545521259308, 0.39295676350593567, 0.20105010271072388, -0.02141927182674408, -0.1436571478843689, -0.35389596223831177, 0.20693376660346985, 0.1374433934688568, -0.17941996455192566, -0.28175610303878784, -0.20883454382419586, 0.3051981031894684, 0.043309178203344345, 0.1498301476240158, -0.037691712379455566, -0.13091453909873962, 0.21671970188617706, -0.18365676701068878, -0.07939666509628296, 0.4683297276496887, 0.2657545506954193, -0.03684611618518829, -0.3763512969017029, -0.022194374352693558, -0.24410834908485413, 0.29961371421813965, -0.07309475541114807, -0.12664082646369934, 0.0021099504083395004, -0.31475672125816345, 0.1159781962633133, -0.11791256070137024, 0.34170010685920715, -0.3954241871833801, -0.053539667278528214, 0.11946946382522583, -0.14979693293571472, -0.11492040753364563, 0.04442344605922699, 0.11693882942199707, 0.4557068943977356, 0.14930635690689087, 0.23280607163906097, -0.1616610735654831, 0.009327542968094349, -0.02657330222427845, -0.07238364219665527, -0.25810909271240234, 0.2801254391670227, -0.07154620438814163, -0.03884543851017952, 0.009315122850239277, 0.056034013628959656, -0.07683773338794708, -0.1575324982404709, -0.27327555418014526, -0.366679310798645, 0.31581708788871765, 0.03950425609946251, -0.4224190413951874, -0.27965542674064636, 0.1679791510105133, -0.031202465295791626, 0.07387445122003555, -0.03986267372965813, 0.24259215593338013, 0.19285985827445984, -0.10684239119291306, -0.10766984522342682, 0.06867922097444534, -0.025738593190908432, -0.12152622640132904, -0.13700184226036072, 0.11592121422290802, 0.18762418627738953, -0.0006419923156499863, -0.17380143702030182, -0.40284788608551025 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Thank you for working on this, @bhavitvyamalik 10% is not solving the issue, we want 5-10x faster on a machine that has lots of resources, but limited processing time. So let's benchmark it on an instance with many more cores, I can test with 12 on my dev box and 40 on JZ. Could you please share the test I could run with both versions? Should we also test the sharded version I shared in https://github.com/huggingface/datasets/issues/2663#issue-946552273 so optionally 3 versions to test.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
82
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Thank you for working on this, @bhavitvyamalik 10% is not solving the issue, we want 5-10x faster on a machine that has lots of resources, but limited processing time. So let's benchmark it on an instance with many more cores, I can test with 12 on my dev box and 40 on JZ. Could you please share the test I could run with both versions? Should we also test the sharded version I shared in https://github.com/huggingface/datasets/issues/2663#issue-946552273 so optionally 3 versions to test.
[ -0.2401679903268814, -0.3804013431072235, -0.16191934049129486, -0.033051326870918274, -0.05153769254684448, -0.16405078768730164, 0.061443377286195755, 0.33435818552970886, 0.05771244689822197, 0.2815237045288086, 0.04898245632648468, 0.5612913966178894, 0.11798056215047836, 0.47884607315063477, -0.10657232999801636, 0.10077232867479324, 0.42925745248794556, -0.17616161704063416, 0.2239864617586136, 0.21987538039684296, -0.20687822997570038, 0.49758052825927734, -0.21075226366519928, -0.2355291098356247, 0.08442195504903793, -0.17007163166999817, 0.08177774399518967, 0.1815352439880371, -0.12201157957315445, -0.3375653326511383, -0.14556966722011566, 0.21803218126296997, -0.022991858422756195, 0.09414362162351608, -0.00011611822264967486, -0.16016903519630432, 0.13297539949417114, 0.06877227872610092, -0.1193428784608841, -0.004129767417907715, -0.03387203812599182, -0.38022780418395996, 0.11109866946935654, -0.2412979006767273, 0.14426583051681519, 0.2883792817592621, -0.06405992060899734, -0.14491429924964905, 0.6376413106918335, 0.21524152159690857, 0.10065625607967377, 0.35907939076423645, 0.2967177927494049, 0.002989090047776699, -0.2446000576019287, 0.2237229198217392, -0.3139813542366028, 0.037884898483753204, 0.34217116236686707, 0.3798827826976776, 0.14212028682231903, 0.19824333488941193, 0.18488100171089172, -0.0008452404290437698, -0.0703667625784874, -0.11504184454679489, -0.15350139141082764, -0.08053301274776459, 0.009116604924201965, 0.2189696729183197, 0.1895458996295929, -0.04873114079236984, -0.45247986912727356, -0.028299495577812195, -0.17529654502868652, -0.5364699363708496, 0.2645625174045563, -0.035466648638248444, -0.09277279675006866, 0.03638993576169014, -0.32670414447784424, -0.2396601438522339, -0.15078231692314148, -0.3824285864830017, -0.026656992733478546, 0.07338853925466537, -0.06883759051561356, 0.287589430809021, 0.5489641427993774, 0.012388795614242554, -0.09772339463233948, -0.07416122406721115, 0.07999595254659653, -0.12996099889278412, -0.29368120431900024, -0.44433462619781494, 0.10389992594718933, -0.2404901385307312, -0.1932840347290039, 0.08243143558502197, 0.07972224056720734, 0.2731342315673828, 0.1705644428730011, 0.13230574131011963, 0.13643459975719452, -0.09499238431453705, 0.04466836526989937, -0.39768466353416443, 0.1913260966539383, 0.39178046584129333, 0.025365706533193588, 0.07676374912261963, 0.263627290725708, -0.38776907324790955, -0.343535453081131, 0.09019934386014938, -0.2684166431427002, -0.29642453789711, -0.1790933459997177, 0.015809614211320877, 0.15643858909606934, -0.4393290877342224, -0.2697201669216156, 0.24077418446540833, -0.06507096439599991, 0.34159910678863525, 0.010681364685297012, 0.08202334493398666, -0.342134028673172, -0.21986304223537445, 0.04691476747393608, 0.2317834049463272, -0.05163484439253807, 0.29464563727378845, -0.14894959330558777, 0.20176608860492706, -0.23570019006729126, 0.3398344814777374, 0.07032430171966553, 0.014014046639204025, 0.07388488948345184, -0.1737356334924698, -0.29130569100379944, 0.09606172144412994, 0.11925868690013885, 0.2023342251777649, -0.17040202021598816, -0.009886525571346283, -0.3629347085952759, -0.028025448322296143, -0.14390748739242554, -0.32243892550468445, -0.13761016726493835, 0.07432035356760025, -0.05287241190671921, 0.08133119344711304, -0.5551350116729736, 0.3312058448791504, -0.012095235288143158, -0.10529983043670654, -0.053976304829120636, 0.01112227700650692, -0.11694161593914032, -0.22351977229118347, 0.1127534732222557, 0.013996213674545288, -0.20682445168495178, 0.18951335549354553, -0.048216551542282104, -0.0011022817343473434, 0.4268454909324646, 0.5731531977653503, -0.20397356152534485, 0.16998398303985596, 0.06817182898521423, -0.02011752873659134, -0.02079000324010849, -0.18484358489513397, 0.08232410997152328, 0.3760015368461609, -0.1781516820192337, 0.0007492806762456894, 0.30842188000679016, -0.19293491542339325, 0.03459706902503967, -0.11003465205430984, 0.1709309220314026, 0.16126400232315063, 0.10382571071386337, 0.0372987762093544, -0.4659847915172577, -0.022147076204419136, -0.011982355266809464, 0.09512658417224884, -0.3461931347846985, -0.24101290106773376, 0.013171002268791199, -0.04427291825413704, 0.30025795102119446, -0.21798422932624817, 0.13856682181358337, 0.2513611912727356, 0.16284862160682678, -0.28344881534576416, -0.2680460512638092, 0.17849159240722656, -0.011195220053195953, 0.278628408908844, -0.10425610095262527, 0.2229015827178955, 0.07738916575908661, 0.04360809922218323, 0.11322569102048874, 0.04493730515241623, 0.02297787368297577, -0.38758352398872375, -0.030748287215828896, 0.09184394776821136, 0.12897881865501404, 0.13780415058135986, -0.09741106629371643, 0.22089684009552002, -0.05891788750886917, -0.012831407599151134, -0.5401231646537781, 0.08864608407020569, -0.004087122157216072, -0.008644976653158665, 0.014719165861606598, -0.026284098625183105, 0.10594743490219116, -0.32207441329956055, 0.007255696691572666, 0.034640949219465256, -0.005640058312565088, 0.377493679523468, 0.35342252254486084, -0.05308052897453308, 0.035938844084739685, -0.008761368691921234, -0.034487925469875336, -0.029257670044898987, 0.010622224770486355, -0.0139903724193573, -0.44097962975502014, 0.795784592628479, 0.19399526715278625, 0.2994807958602905, 0.2312411516904831, -0.2371949553489685, 0.3269316852092743, 0.06382027268409729, 0.21623879671096802, 0.11830699443817139, 0.17322935163974762, 0.45878010988235474, -0.2901710867881775, -0.09473814815282822, -0.30024006962776184, 0.24974840879440308, 0.8165324330329895, -0.02130042016506195, -0.4047415554523468, 0.30052563548088074, 0.4087646007537842, -0.43125566840171814, 0.360385537147522, 0.28323519229888916, 0.5334657430648804, 0.14342011511325836, 0.23651158809661865, -0.055112920701503754, -0.16040126979351044, -0.06127068027853966, 0.32189708948135376, -0.3658202886581421, 0.5237686038017273, -0.05685702711343765, 0.0928407832980156, -0.08633247762918472, -0.14958514273166656, -0.4803159236907959, 0.10949238389730453, 0.12258981913328171, -0.008864544332027435, -0.05925385653972626, -0.13079965114593506, 0.5143893957138062, -0.11521346867084503, 0.13837197422981262, -0.15632256865501404, -0.26188504695892334, -0.03290463984012604, 0.3878507614135742, -0.16267171502113342, -0.15990886092185974, 0.3016495704650879, 0.10426272451877594, -0.3059958815574646, 0.12536118924617767, -0.29989099502563477, 0.10882455110549927, -0.03727998584508896, 0.042594198137521744, 0.2303144782781601, -0.02363816276192665, -0.08578547090291977, -0.15589472651481628, -0.1946336328983307, -0.1555480659008026, -0.19546890258789062, -0.00937654823064804, -0.24460719525814056, 0.040506280958652496, -0.014555215835571289, 0.2117421180009842, -0.005275439471006393, -0.22732992470264435, 0.24576830863952637, -0.06454261392354965, -0.383867084980011, -0.06504981219768524, -0.13382241129875183, -0.07367081195116043, 0.003149159252643585, -0.263156920671463, -0.054464034736156464, -0.2681718170642853, 0.7493054270744324, -0.10744310915470123, 0.25013473629951477, -0.41605231165885925, 0.09193528443574905, -0.0071229650638997555, -0.011283332481980324, 0.07593213021755219, -0.09479743987321854, -0.5381729602813721, 0.02401648834347725, -0.18658436834812164, -0.223904088139534, 0.05797746405005455, 0.3634623885154724, 0.6243244409561157, -0.2421341985464096, -0.22821904718875885, 0.1338428407907486, -0.23361434042453766, 0.24076920747756958, -0.0002317465841770172, -0.07562384009361267, 0.5499043464660645, -0.020453471690416336, -0.23541225492954254, 0.09433334320783615, -0.4262271821498871, 0.05238889902830124, 0.10877308994531631, 0.17704203724861145, -0.05863518267869949, 0.5064940452575684, 0.2943222224712372, 0.7040407061576843, 0.30241942405700684, -0.012420758605003357, 0.10561951994895935, 0.13781817257404327, -0.08072321116924286, -0.18625697493553162, -0.06993039697408676, 0.29330629110336304, -0.2721705138683319, 0.0567283034324646, 0.17463941872119904, -0.19285079836845398, -0.23060429096221924, -0.14959755539894104, 0.20098260045051575, -0.25156494975090027, -0.18535836040973663, 0.2154800444841385, 0.26004916429519653, 0.0008011162281036377, -0.13966251909732819, -0.15536381304264069, -0.24333597719669342, 0.15634512901306152, -0.0267361830919981, 0.11755063384771347, 0.10097592324018478, -0.24032443761825562, -0.6718526482582092, -0.39776238799095154, -0.743631899356842, 0.5630826950073242, -0.09284838289022446, 0.14595767855644226, -0.1314782351255417, -0.12401331961154938, 0.24321864545345306, -0.5427165031433105, 0.719862163066864, -0.04218883067369461, -0.11079636216163635, 0.22722113132476807, -0.3629316985607147, -0.42827311158180237, -0.0418502502143383, -0.12083561718463898, 0.304561585187912, 0.39332374930381775, 0.549411952495575, -0.3817732632160187, -0.341888964176178, -0.12701955437660217, -0.14253555238246918, 0.03100966289639473, -0.03206869587302208, -0.19889815151691437, -0.25752389430999756, -0.23461082577705383, 0.2889120280742645, -0.11216958612203598, 0.442886084318161, -0.22177833318710327, -0.2935798466205597, 0.30301663279533386, -0.12885333597660065, 0.08526431769132614, 0.21773661673069, -0.14205151796340942, 0.012760347686707973, 0.1634289026260376, -0.19631634652614594, -0.04197418689727783, 0.24691012501716614, 0.3572980761528015, -0.11469392478466034, -0.2153117060661316, 0.019182108342647552, 0.21683044731616974, 0.1651832014322281, 0.3668687343597412, 0.09500306099653244, 0.4409031569957733, 0.10117345303297043, 0.5624514222145081, -0.049148380756378174, -0.25767257809638977, 0.2882622182369232, 0.3470838665962219, -0.34701770544052124, 0.13339895009994507, 0.2408044934272766, 0.060290995985269547, -0.06340406835079193, 0.06068940460681915, -0.06457497179508209, 0.08003762364387512, -0.042636413127183914, 0.15655025839805603, 0.9169256687164307, -0.19781900942325592, 0.12400078773498535, -0.01794079691171646, -0.44544774293899536, 0.5315881967544556, -0.5641399621963501, 0.1146683320403099, 0.009002212435007095, 0.12420521676540375, 0.17617157101631165, 0.10578760504722595, 0.42091622948646545, 0.18001826107501984, -0.13368643820285797, 0.10301084071397781, 0.30741626024246216, -0.2596066892147064, -0.24736900627613068, 0.4233117401599884, -0.10746075958013535, -0.3294665217399597, -0.2984098196029663, 0.01203928142786026, 0.04274899512529373, -0.19194801151752472, 0.009070975705981255, -0.36566317081451416, -0.0639827772974968, -0.0016321353614330292, -0.31195634603500366, 0.047142691910266876, 0.05850004777312279, 0.13319242000579834, 0.25709736347198486, -0.014437288045883179, 0.24691596627235413, 0.20069491863250732, 0.40931206941604614, -0.19304713606834412, -0.1523340493440628, 0.022458290681242943, -0.43868523836135864, 0.22115467488765717, -0.13570265471935272, -0.30100083351135254, 0.17164376378059387, -0.41989704966545105, -0.24461251497268677, 0.104982390999794, -0.19387322664260864, -0.5113794207572937, 0.3821481466293335, 0.3205634653568268, -0.16541703045368195, -0.0362730473279953, -0.1277601718902588, 0.4788205325603485, -0.20953604578971863, -0.5013886094093323, 0.08777973055839539, 0.22896209359169006, -0.2879250943660736, 0.412081241607666, -0.3838382959365845, -0.20415747165679932, -0.08777546882629395, 0.30648529529571533, 0.05473360791802406, 0.051936179399490356, -0.0989769995212555, 0.20038647949695587, -0.2604874074459076, -0.17594021558761597, 0.1412055492401123, 0.23465292155742645, -0.23505264520645142, 0.3280804753303528, 0.0819457396864891, -0.10684423893690109, 0.11557747423648834, 0.14450684189796448, 0.007114730775356293, 0.05949833616614342, 0.00851212814450264, -0.22016184031963348, -0.30931559205055237, -0.011643871665000916, -0.3068605065345764, -0.025185439735651016, 0.06374121457338333, 0.2930121421813965, 0.09270550310611725, 0.26478853821754456, -0.25382572412490845, 0.14928412437438965, -0.366300106048584, -0.0008058790117502213, 0.07569378614425659, -0.31953608989715576, 0.18112322688102722, 0.12562836706638336, 0.11213888227939606, 0.11272738873958588, -0.3835512101650238, -0.11978231370449066, 0.09567619860172272, 0.1299983561038971, -0.07239921391010284, -0.062979556620121, 0.2754100561141968, 0.20010407269001007, -0.17250891029834747, -0.0924859493970871, 0.1736266314983368, -0.14327871799468994, -0.13757020235061646, 0.031005755066871643, 0.20718738436698914, 0.05759628862142563, -0.13710325956344604, -0.24242037534713745, 0.16563743352890015, 0.5415897369384766, -0.11435104161500931, 0.2463921159505844, -0.08008009195327759, -0.236443892121315, -0.18513889610767365, 0.13328875601291656, -0.016176171600818634, 0.10927407443523407, 0.0714908242225647, 0.008043687790632248, -0.34076055884361267, -0.28166133165359497, 0.46052631735801697, 0.1825827956199646, -0.09219351410865784, 0.22465750575065613, 0.0869293138384819, 0.09649971127510071, -0.019189104437828064, -0.1566365659236908, -0.04580267146229744, -0.18808972835540771, 0.04920480027794838, 0.06822193413972855, 0.3762381076812744, -0.04636066406965256, 0.31900572776794434, -0.015410175547003746, 0.07117348164319992, -0.2937217354774475, -0.032806552946567535, -0.199547678232193, -0.11267809569835663, 0.10218597948551178, 0.4294852614402771, 0.04186360538005829, 0.27062806487083435, 0.1860981285572052, -0.0245777890086174, 0.5554102659225464, 0.28562697768211365, 0.5258288383483887, 0.11824198067188263, -0.25913792848587036, 0.19589665532112122, 0.13022051751613617, -0.015475466847419739, 0.2334778606891632, 0.25536808371543884, 0.33509543538093567, -0.4406915605068207, -0.2884538769721985, -0.25498339533805847, 0.37428414821624756, -0.06932532787322998, -0.3868367671966553, 0.04986276477575302, -0.10340406000614166, -0.11770295351743698, 0.18228451907634735, -0.03903764858841896, 0.021035384386777878, 0.5429107546806335, 0.06067335605621338, 0.07914739847183228, -0.1469898819923401, -0.17785978317260742, -0.13068512082099915, 0.36459407210350037, -0.10167593508958817, 0.35340479016304016, 0.1884537637233734, -0.49732354283332825, -0.26155686378479004, 0.19148078560829163, 0.49131840467453003, -0.24142178893089294, 0.055560145527124405, 0.1583339273929596, -0.09931379556655884, 0.10776112973690033, 0.16952331364154816, 0.30676141381263733, 0.13045325875282288, 0.14381229877471924, 0.06816570460796356, 0.040556974709033966, -0.1312302201986313, 0.02899545058608055, 0.03439880162477493, 0.17262837290763855, -0.11407741904258728, 0.13489718735218048, -0.08843787759542465, -0.038076404482126236, -0.0828404352068901, 0.3419983685016632, -0.39466381072998047, -0.3225213885307312, -0.20711243152618408, -0.476612389087677, -0.0026466231793165207, -0.0031472044065594673, 0.09185796231031418, 0.006340397521853447, 0.38983237743377686, -0.09096971154212952, 0.10514459013938904, -0.11718568950891495, -0.31104809045791626, -0.0584205687046051, -0.09972108155488968, -0.060800570994615555, 0.2696058750152588, -0.08870601654052734, 0.5279356837272644, 0.24987512826919556, 0.14913992583751678, 0.3582417070865631, 0.04526282474398613, -0.0333506315946579, 0.20997081696987152, -0.4374326467514038, 0.5195984244346619, 0.4352147579193115, -0.18773022294044495, 0.04155822843313217, -0.1254735291004181, 0.44051745533943176, 0.00941855926066637, -0.05908096209168434, -0.14768773317337036, 0.20466822385787964, 0.2833902835845947, -0.03005348891019821, 0.38015997409820557, 0.22783081233501434, 0.004942312836647034, -0.2656673192977905, -0.4389578104019165, 0.14542824029922485, 0.323714017868042, 0.08081573992967606, 0.1631999909877777, 0.03221391141414642, 0.6160823106765747, -0.047797150909900665, 0.2198110818862915, -0.04547187313437462, 0.18424691259860992, -0.2311989665031433, -0.3576143980026245, -0.11281218379735947, 0.17289519309997559, 0.01294148713350296, 0.07436397671699524, 0.22287100553512573, 0.39443016052246094, 0.17010584473609924, -0.20529738068580627, -0.7521770596504211, -0.019320474937558174, 0.2684682607650757, -0.2340044230222702, -0.15379536151885986, 0.1793086975812912, 0.2275870442390442, -0.19537150859832764, 0.19506433606147766, -0.4612894654273987, -0.17351731657981873, 0.0553135871887207, 0.10071117430925369, -0.39159828424453735, 0.4617091417312622, -0.30091241002082825, -0.36221301555633545, 0.051646266132593155, 0.162846177816391, 0.07957431674003601, -0.2355547696352005, -0.21531257033348083, -0.28693974018096924 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Since I was facing `OSError: [Errno 12] Cannot allocate memory` in CircleCI tests, I've added `num_proc` option instead of always using full `cpu_count`. You can test both v1 and v2 through this branch (some redundancy needs to be removed). Update: I was able to convert into json which took 50% less time as compared to v1 on `ascent_kb` dataset. Will post the benchmarking script with results here.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
67
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Since I was facing `OSError: [Errno 12] Cannot allocate memory` in CircleCI tests, I've added `num_proc` option instead of always using full `cpu_count`. You can test both v1 and v2 through this branch (some redundancy needs to be removed). Update: I was able to convert into json which took 50% less time as compared to v1 on `ascent_kb` dataset. Will post the benchmarking script with results here.
[ -0.3749473989009857, -0.20579133927822113, -0.22144517302513123, -0.018753014504909515, -0.08235125243663788, -0.1229054257273674, 0.03977014496922493, 0.3918308615684509, 0.02121468260884285, 0.38923847675323486, 0.08480153977870941, 0.6751800775527954, 0.15320776402950287, 0.5633247494697571, -0.37698793411254883, 0.17117154598236084, 0.34626466035842896, -0.09475529193878174, 0.29312074184417725, 0.2633025646209717, -0.2863767147064209, 0.5193405747413635, -0.16964218020439148, -0.23647455871105194, 0.08218838274478912, -0.2959045171737671, 0.0716775432229042, 0.09880028665065765, -0.11302321404218674, -0.38882020115852356, -0.3314841389656067, 0.16407111287117004, -0.04877486079931259, 0.11529116332530975, -0.00010956103506032377, -0.1521628499031067, 0.11132247745990753, 0.04882203787565231, -0.17581018805503845, -0.011503264307975769, 0.20951905846595764, -0.2508544623851776, 0.2598944902420044, -0.3694862723350525, 0.12205829471349716, 0.4143770635128021, -0.08280562609434128, -0.12896627187728882, 0.5222338438034058, 0.3427492082118988, 0.19134396314620972, 0.27163904905319214, 0.36855530738830566, -0.0058163669891655445, -0.2950904667377472, 0.21181437373161316, -0.2807556986808777, -0.062459517270326614, 0.36612212657928467, 0.34745630621910095, 0.12899091839790344, 0.1630958467721939, 0.20377330482006073, 0.038516439497470856, -0.1768774688243866, -0.1314345747232437, -0.010095842182636261, -0.25914549827575684, 0.11426252126693726, -0.0017296671867370605, 0.29868564009666443, -0.07185440510511398, -0.34634312987327576, 0.2144603431224823, -0.10294471681118011, -0.5122466683387756, 0.24896076321601868, 0.09766765683889389, -0.23407253623008728, -0.008077435195446014, -0.06913546472787857, -0.2292574942111969, -0.19692829251289368, -0.3949244022369385, -0.1490374505519867, 0.2378646731376648, 0.03393450751900673, 0.20861753821372986, 0.5030404329299927, -0.03045174479484558, -0.060815099626779556, 0.07150328159332275, 0.060537926852703094, -0.12666720151901245, -0.2692665159702301, -0.47900453209877014, 0.09907831251621246, -0.19861432909965515, -0.25710949301719666, 0.14934569597244263, 0.028470316901803017, 0.21981173753738403, 0.24301260709762573, 0.11443822085857391, 0.10552449524402618, -0.19422952830791473, -0.1345113217830658, -0.05556413531303406, 0.18732857704162598, 0.25538110733032227, -0.11737976968288422, -0.003961436450481415, 0.16336816549301147, -0.3371671736240387, -0.22484754025936127, 0.09558755159378052, -0.2565832734107971, -0.25820624828338623, -0.3190512955188751, 0.006966437213122845, 0.1037091538310051, -0.15666213631629944, -0.2621346712112427, 0.23211315274238586, -0.0946083590388298, 0.40023118257522583, 0.18240270018577576, 0.15230810642242432, -0.4055631458759308, -0.0489366352558136, 0.04649003595113754, 0.23005738854408264, 0.061843518167734146, 0.21194392442703247, -0.02344460040330887, 0.2506311535835266, -0.1824619472026825, 0.30617856979370117, 0.03487955778837204, -0.09835074841976166, 0.2911432385444641, -0.2665127217769623, -0.2665278911590576, 0.1368337869644165, 0.28715792298316956, 0.07646570354700089, -0.1699794977903366, -0.051585711538791656, -0.2801723778247833, 0.149247944355011, -0.24591892957687378, -0.16358225047588348, -0.18985119462013245, 0.16888438165187836, 0.04773019999265671, -0.005321592092514038, -0.3344883322715759, 0.19245950877666473, 0.08201539516448975, -0.0763235092163086, -0.18525353074073792, -0.07650024443864822, -0.050932347774505615, -0.20024606585502625, 0.043133288621902466, 0.02588597685098648, -0.2572769224643707, 0.3236716687679291, -0.1862882673740387, 0.04281550645828247, 0.4344903826713562, 0.5149160027503967, -0.11567813158035278, 0.23865637183189392, 0.04488609731197357, -0.16258129477500916, -0.031122945249080658, -0.2692364454269409, 0.08233979344367981, 0.2502089738845825, -0.23975171148777008, -0.09826509654521942, 0.18431520462036133, -0.07903233915567398, 0.09828674048185349, -0.06097518652677536, 0.28269654512405396, 0.13288819789886475, 0.07180146872997284, 0.2197708785533905, -0.45480409264564514, -0.07980506122112274, 0.1142796128988266, -0.015012235380709171, -0.25046107172966003, -0.17181497812271118, -0.03747885674238205, -0.1766969859600067, 0.344653457403183, -0.2266518771648407, 0.029621239751577377, 0.2014773190021515, 0.24511776864528656, -0.3529255986213684, -0.1634671986103058, 0.24776801466941833, 0.12095889449119568, 0.17519772052764893, -0.14469292759895325, 0.2036711722612381, -0.050339847803115845, 0.052048102021217346, 0.10088282078504562, 0.1197495236992836, 0.04474164545536041, -0.1659722924232483, 0.12250921130180359, 0.12555187940597534, 0.11509887874126434, 0.04033510014414787, -0.036678802222013474, 0.2823718786239624, -0.06775085628032684, -0.027344094589352608, -0.21964848041534424, -0.005082413554191589, -0.16236476600170135, -0.05532073229551315, 0.11184246838092804, -0.12974408268928528, 0.14373891055583954, -0.1945134699344635, 0.003588734194636345, 0.03146204724907875, 0.2305658459663391, 0.22840872406959534, 0.27575334906578064, -0.180925652384758, 0.018444443121552467, 0.018899183720350266, -0.007465524598956108, 0.1754601150751114, 0.009137489832937717, -0.057244814932346344, -0.3539913296699524, 0.7438366413116455, 0.2620104253292084, 0.30733388662338257, 0.22118614614009857, -0.12990547716617584, 0.3616807162761688, 0.14542850852012634, 0.211460679769516, 0.0535396933555603, 0.14569716155529022, 0.4328135848045349, -0.11931873857975006, -0.24363498389720917, -0.30630558729171753, 0.2892942428588867, 0.5909839868545532, 0.06947238743305206, -0.26754096150398254, 0.2764263153076172, 0.47905874252319336, -0.34582528471946716, 0.209183931350708, 0.2484307736158371, 0.5033921003341675, 0.12294603139162064, 0.2180585116147995, -0.06340523064136505, -0.2409564107656479, -0.024732695892453194, 0.28577083349227905, -0.26160210371017456, 0.4273523986339569, -0.0028835423290729523, 0.1523774266242981, -0.1439448893070221, -0.13714158535003662, -0.5066966414451599, 0.14123064279556274, 0.23354023694992065, 0.002576090395450592, -0.025806231424212456, -0.04694192856550217, 0.5661906003952026, 0.041934844106435776, 0.26022982597351074, 0.024438537657260895, -0.3132515549659729, 0.0513407364487648, 0.37561237812042236, -0.24074195325374603, -0.2135203331708908, 0.16743969917297363, 0.15216107666492462, -0.17795290052890778, 0.14184539020061493, -0.24364814162254333, -0.05532601848244667, -0.04263085871934891, 0.14290021359920502, 0.26024946570396423, 0.009094232693314552, -0.012554185464978218, -0.19688758254051208, -0.10283000022172928, -0.10102695971727371, -0.19591543078422546, -0.10517629981040955, -0.2001989632844925, -0.07920897006988525, -0.16796070337295532, 0.21251502633094788, 0.02330363541841507, -0.32692721486091614, 0.12887506186962128, -0.05843620002269745, -0.3301040232181549, -0.04106706753373146, -0.18927644193172455, -0.17422834038734436, -0.07364977896213531, -0.2732933461666107, -0.20855477452278137, -0.31590399146080017, 0.5497607588768005, 0.08592091500759125, 0.3155995011329651, -0.34898796677589417, 0.22039462625980377, 0.02870853990316391, 0.29767125844955444, 0.12019584327936172, -0.10805898904800415, -0.41426652669906616, 0.15347541868686676, -0.3333442509174347, -0.28466829657554626, 0.17232531309127808, 0.34039628505706787, 0.5824421644210815, -0.1999424397945404, -0.19731901586055756, 0.19752320647239685, -0.2728023827075958, 0.1506669521331787, -0.17809154093265533, -0.0572095662355423, 0.2807740569114685, 0.08057663589715958, -0.2553558647632599, 0.08108564466238022, -0.2671181559562683, 0.08795466274023056, 0.10793694853782654, 0.06657372415065765, -0.17767491936683655, 0.3961830735206604, 0.15763671696186066, 0.39155149459838867, 0.3447791635990143, 0.06334318220615387, 0.019894976168870926, 0.11573650687932968, -0.03735494986176491, -0.26464909315109253, 0.04973674565553665, 0.2435338944196701, -0.2773676812648773, -0.13452653586864471, 0.14778001606464386, -0.21695277094841003, -0.4654995799064636, -0.1499766856431961, 0.3584352731704712, -0.24185654520988464, -0.23578384518623352, 0.1539200097322464, 0.22439807653427124, 0.09367908537387848, -0.18107086420059204, -0.025989674031734467, -0.32992300391197205, 0.16547924280166626, 0.04386826604604721, 0.044584374874830246, 0.04133158177137375, -0.2817988097667694, -0.6562674045562744, -0.6367823481559753, -0.7178688645362854, 0.44926661252975464, -0.09974745661020279, 0.08501272648572922, -0.08302899450063705, -0.1414535939693451, 0.16657176613807678, -0.6106861233711243, 0.4406319260597229, -0.0946340262889862, -0.15149284899234772, 0.39420947432518005, -0.20622774958610535, -0.22934021055698395, -0.07313042879104614, -0.23454433679580688, 0.32799291610717773, 0.12938593327999115, 0.415607750415802, -0.2941856384277344, -0.2215101420879364, -0.15451651811599731, 0.015595288015902042, -0.023638887330889702, 0.10668789595365524, -0.17579327523708344, -0.4143421947956085, -0.3350766897201538, 0.3946889042854309, -0.008565615862607956, 0.5164696574211121, -0.27955925464630127, -0.24503891170024872, 0.2677965462207794, -0.13557550311088562, -0.003766074776649475, 0.2637791037559509, 0.08102771639823914, -0.068990558385849, 0.13097570836544037, -0.2532590627670288, -0.2921941578388214, 0.40215808153152466, 0.3307529091835022, 0.008804602548480034, -0.055786117911338806, 0.14299118518829346, 0.028643816709518433, 0.1327325701713562, 0.2913684844970703, 0.10868950933218002, 0.33695897459983826, -0.07450604438781738, 0.5300279259681702, 0.009873948991298676, -0.15357817709445953, 0.14640429615974426, 0.1949520856142044, -0.24473530054092407, 0.1592647284269333, 0.04310115426778793, 0.08071832358837128, 0.052334368228912354, 0.1783296763896942, -0.33691155910491943, 0.07174663990736008, 0.17592275142669678, 0.24810197949409485, 0.8118650317192078, -0.13700024783611298, 0.03996805101633072, -0.000533025711774826, -0.49899619817733765, 0.3129681646823883, -0.5077482461929321, 0.2140379250049591, -0.0917295292019844, 0.283387154340744, 0.26874876022338867, 0.12000502645969391, 0.2313317358493805, 0.158230260014534, -0.26637667417526245, -0.09108739346265793, 0.13392889499664307, -0.3237531781196594, -0.2453102320432663, 0.5476385354995728, -0.10974154621362686, -0.28654956817626953, -0.10777953267097473, 0.13158638775348663, 0.03333224356174469, -0.2624610364437103, -0.0037450939416885376, -0.273112416267395, -0.04356713220477104, 0.02965599298477173, -0.31376540660858154, 0.04954884946346283, -0.20451323688030243, 0.223418191075325, 0.00766674242913723, -0.05866958945989609, 0.14044304192066193, 0.08936469256877899, 0.2746717929840088, -0.010888297110795975, -0.08594886213541031, 0.012277813628315926, -0.32436054944992065, 0.22291788458824158, -0.03562895208597183, -0.2550514340400696, 0.12870679795742035, -0.4526868760585785, -0.17644460499286652, 0.18298175930976868, -0.20033933222293854, -0.506431519985199, 0.46535539627075195, 0.23999744653701782, -0.12095721065998077, 0.11856843531131744, -0.044358715415000916, 0.39928779006004333, -0.35031652450561523, -0.44285115599632263, 0.17017190158367157, 0.19946247339248657, -0.33170709013938904, 0.49241819977760315, -0.3986818492412567, -0.2439580261707306, -0.03835205361247063, 0.11384765803813934, 0.15027296543121338, -0.05471346899867058, 0.016110418364405632, 0.17439886927604675, -0.2123337984085083, -0.25777339935302734, 0.2483794093132019, 0.0031970192212611437, -0.05305357277393341, 0.45382097363471985, 0.07963700592517853, -0.15035198628902435, 0.17164191603660583, 0.26583489775657654, -0.13027295470237732, 0.20182323455810547, -0.11445829272270203, -0.20808225870132446, -0.4498319923877716, -0.03525923937559128, -0.17413391172885895, -0.024661052972078323, 0.014473006129264832, 0.26880398392677307, 0.04723118990659714, 0.015909835696220398, -0.3219807744026184, 0.05628501623868942, -0.34742656350135803, 0.08987156301736832, -0.20625315606594086, -0.3892544209957123, 0.11509207636117935, 0.2964007258415222, 0.17270782589912415, 0.14890417456626892, -0.17617559432983398, -0.20391690731048584, 0.13670283555984497, 0.08920074254274368, -0.06935431063175201, -0.07734906673431396, 0.23788833618164062, 0.049526482820510864, -0.19240014255046844, -0.06327906250953674, 0.17121532559394836, -0.20535901188850403, -0.23547585308551788, -0.030817147344350815, 0.12510326504707336, -0.007558971643447876, -0.1398564875125885, -0.28522229194641113, 0.22210204601287842, 0.544545590877533, -0.06995053589344025, 0.34238484501838684, -0.02541503682732582, -0.14858940243721008, -0.0226309634745121, 0.17512601613998413, -0.15162770450115204, 0.2454751431941986, 0.010811589658260345, -0.039024971425533295, -0.334785521030426, -0.2765289545059204, 0.249787837266922, 0.2911281883716583, 0.011364905163645744, 0.2437145859003067, 0.0913388803601265, 0.19448788464069366, 0.011299658566713333, -0.1494857221841812, -0.12543204426765442, -0.3026852309703827, 0.12511928379535675, 0.07112953066825867, 0.21092632412910461, -0.18172889947891235, 0.43316221237182617, 0.023540377616882324, 0.13754692673683167, -0.3522675037384033, -0.025829819962382317, -0.2238680124282837, -0.09057576209306717, 0.14526809751987457, 0.18565188348293304, -0.00250060111284256, 0.16261345148086548, 0.24239186942577362, 0.11614103615283966, 0.41646483540534973, 0.4146565794944763, 0.4138542413711548, 0.10862855613231659, -0.09105817973613739, 0.1142749935388565, -0.08688035607337952, -0.06440815329551697, 0.25883737206459045, 0.2574448585510254, 0.012364335358142853, -0.4418702721595764, -0.3122314512729645, -0.34658384323120117, 0.24825336039066315, -0.2594963014125824, -0.2648015320301056, -0.1722368746995926, -0.15032148361206055, -0.12625224888324738, 0.12022389471530914, 0.006372410804033279, 0.1454830765724182, 0.3686639070510864, 0.12744012475013733, 0.09303451329469681, -0.04976602643728256, -0.2883874475955963, -0.07316760718822479, 0.3708289861679077, -0.23351240158081055, 0.28426140546798706, 0.23849685490131378, -0.4044121503829956, -0.33016759157180786, 0.019641941413283348, 0.5508123636245728, -0.036186583340168, -0.14793109893798828, 0.1613621562719345, -0.13481664657592773, 0.0009226948022842407, 0.10927160084247589, 0.1884961873292923, 0.2936490774154663, 0.04184778034687042, 0.10772496461868286, 0.12168975174427032, -0.1805618405342102, 0.0016352906823158264, 0.11062964797019958, 0.08302251994609833, -0.06783060729503632, -0.023743122816085815, 0.029170885682106018, -0.10549747198820114, -0.14389149844646454, 0.1693132221698761, -0.3611910343170166, -0.2413731813430786, -0.22701922059059143, -0.4240458309650421, -0.10411232709884644, 0.08155908435583115, 0.1250949203968048, -0.03489439934492111, 0.39394503831863403, -0.08922706544399261, 0.06378105282783508, -0.20296306908130646, -0.3547115921974182, 0.03370039165019989, 0.01527908444404602, -0.13842111825942993, 0.2978082001209259, -0.11683112382888794, 0.5855215787887573, 0.20862245559692383, 0.19501449167728424, 0.39864581823349, 0.06496532261371613, -0.03369341418147087, 0.25484055280685425, -0.42794370651245117, 0.43480879068374634, 0.46652376651763916, -0.23044368624687195, 0.06085986644029617, -0.22572475671768188, 0.352687805891037, -0.05163959413766861, 0.09101537615060806, -0.11623945832252502, -0.10445286333560944, 0.3560269773006439, 0.08038532733917236, 0.38782998919487, 0.15749642252922058, 0.060037847608327866, -0.228685200214386, -0.4244275689125061, 0.08136246353387833, 0.2244572788476944, 0.07415638864040375, 0.10973461717367172, 0.09656180441379547, 0.6329413652420044, -0.0031684739515185356, 0.21449817717075348, -0.050103358924388885, 0.07522664219141006, -0.21519947052001953, -0.41145020723342896, 0.0508449524641037, 0.2410372793674469, 0.059218719601631165, 0.11535882949829102, 0.16472692787647247, 0.41782522201538086, 0.19960664212703705, -0.09334345906972885, -0.7678095698356628, -0.02468886971473694, 0.13429255783557892, -0.036594096571207047, -0.36415615677833557, 0.1251855492591858, 0.288368284702301, -0.33965981006622314, 0.33160802721977234, -0.2433161437511444, -0.08029850572347641, -0.025390520691871643, -0.003745920956134796, -0.4571448862552643, 0.4745584726333618, -0.12745045125484467, -0.2687762379646301, 0.060434747487306595, 0.27598437666893005, 0.07148884981870651, -0.10131300240755081, -0.3571753203868866, -0.1982012242078781 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Here are the benchmarks with the current branch for both v1 and v2 (dataset: `ascent_kb`, 8.9M samples): | batch_size | time (in sec) | time (in sec) | |------------|---------------|---------------| | | num_proc = 1 | num_proc = 4 | | 10k | 185.56 | 170.11 | | 50k | 175.79 | 86.84 | | **100k** | 191.09 | **78.35** | | 125k | 198.28 | 90.89 | Increasing the batch size on my machine helped in making v2 around 50% faster as compared to v1. Timings may vary depending on the machine. I'm including the benchmarking script as well. CircleCI errors are unrelated (something related to `bertscore`) ``` import time from datasets import load_dataset import pathlib import os from pathlib import Path import shutil import gc batch_sizes = [10_000, 50_000, 100_000, 125_000] num_procs = [1, 4] # change this according to your machine SAVE_LOC = "./new_dataset.json" for batch in batch_sizes: for num in num_procs: dataset = load_dataset("ascent_kb") local_start = time.time() ans = dataset['train'].to_json(SAVE_LOC, batch_size=batch, num_proc=num) local_end = time.time() - local_start print(f"Time taken on {num} num_proc and {batch} batch_size: ", local_end) # remove that dataset and its contents from cache and newly generated json new_json = pathlib.Path(SAVE_LOC) new_json.unlink() try: shutil.rmtree(os.path.join(str(Path.home()), ".cache", "huggingface")) except OSError as e: print("Error: %s - %s." % (e.filename, e.strerror)) gc.collect() ``` This will download the dataset in every iteration and run `to_json`. I didn't do multiple iterations here for `to_json` (for a specific batch_size and num_proc) and took average time as I found that v1 got faster after 1st iteration (maybe it's caching somewhere). Since you'll be doing this operation only once, I thought it'll be better to report how both v1 and v2 performed in single iteration only. Important: Benchmarking script will delete the newly generated json and `~/.cache/huggingface/` after every iteration so that it doesn't end up using any cached data (just to be on a safe side)
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
313
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Here are the benchmarks with the current branch for both v1 and v2 (dataset: `ascent_kb`, 8.9M samples): | batch_size | time (in sec) | time (in sec) | |------------|---------------|---------------| | | num_proc = 1 | num_proc = 4 | | 10k | 185.56 | 170.11 | | 50k | 175.79 | 86.84 | | **100k** | 191.09 | **78.35** | | 125k | 198.28 | 90.89 | Increasing the batch size on my machine helped in making v2 around 50% faster as compared to v1. Timings may vary depending on the machine. I'm including the benchmarking script as well. CircleCI errors are unrelated (something related to `bertscore`) ``` import time from datasets import load_dataset import pathlib import os from pathlib import Path import shutil import gc batch_sizes = [10_000, 50_000, 100_000, 125_000] num_procs = [1, 4] # change this according to your machine SAVE_LOC = "./new_dataset.json" for batch in batch_sizes: for num in num_procs: dataset = load_dataset("ascent_kb") local_start = time.time() ans = dataset['train'].to_json(SAVE_LOC, batch_size=batch, num_proc=num) local_end = time.time() - local_start print(f"Time taken on {num} num_proc and {batch} batch_size: ", local_end) # remove that dataset and its contents from cache and newly generated json new_json = pathlib.Path(SAVE_LOC) new_json.unlink() try: shutil.rmtree(os.path.join(str(Path.home()), ".cache", "huggingface")) except OSError as e: print("Error: %s - %s." % (e.filename, e.strerror)) gc.collect() ``` This will download the dataset in every iteration and run `to_json`. I didn't do multiple iterations here for `to_json` (for a specific batch_size and num_proc) and took average time as I found that v1 got faster after 1st iteration (maybe it's caching somewhere). Since you'll be doing this operation only once, I thought it'll be better to report how both v1 and v2 performed in single iteration only. Important: Benchmarking script will delete the newly generated json and `~/.cache/huggingface/` after every iteration so that it doesn't end up using any cached data (just to be on a safe side)
[ -0.31641027331352234, -0.1378496140241623, -0.2329113930463791, -0.1044178307056427, -0.06478088349103928, -0.12895981967449188, 0.02680567279458046, 0.42457205057144165, -0.02015451155602932, 0.23626556992530823, 0.07817237824201584, 0.6989362239837646, 0.14155395328998566, 0.34642523527145386, -0.23607110977172852, 0.10990281403064728, 0.36344006657600403, -0.14359863102436066, 0.2932353615760803, 0.22934667766094208, -0.36015355587005615, 0.4711320996284485, -0.17798453569412231, -0.24236924946308136, 0.1707117110490799, -0.16478095948696136, 0.1634395718574524, 0.07549715042114258, -0.021735070273280144, -0.4187878668308258, -0.3579224646091461, 0.09530652314424515, -0.04748015105724335, 0.03363195061683655, -0.00010770712106022984, -0.12228523194789886, 0.10758846998214722, 0.07354050874710083, -0.1595790982246399, 0.09287343919277191, -0.03409744054079056, -0.3491396903991699, 0.1741325855255127, -0.2855773866176605, 0.14581111073493958, 0.1696980744600296, -0.036926575005054474, -0.1809692084789276, 0.5284538865089417, 0.3426316976547241, 0.20332546532154083, 0.20055370032787323, 0.32790008187294006, 0.035144172608852386, -0.2848021984100342, 0.10635461658239365, -0.31718048453330994, -0.023973751813173294, 0.368324875831604, 0.35231518745422363, 0.10202524065971375, 0.1195526272058487, 0.1260756105184555, 0.03271873667836189, -0.17861008644104004, -0.16750580072402954, 0.059047140181064606, -0.1410732865333557, 0.04726143926382065, 0.0768737941980362, 0.24902665615081787, -0.05681370198726654, -0.34349820017814636, 0.05076538771390915, -0.15397481620311737, -0.5258138179779053, 0.16456040740013123, 0.043566539883613586, -0.10424742102622986, 0.0022177547216415405, -0.16645069420337677, -0.2990707755088806, -0.15517480671405792, -0.4282642602920532, 0.007115505635738373, 0.25557881593704224, 0.04424672573804855, 0.2453436255455017, 0.4882707893848419, 0.029634058475494385, -0.06715517491102219, -0.07371921837329865, 0.059464193880558014, -0.18098938465118408, -0.2724762260913849, -0.4055236577987671, 0.1531888246536255, -0.3419584035873413, -0.3454882800579071, 0.017090538516640663, -0.00285333301872015, 0.21692514419555664, 0.22111189365386963, 0.12908942997455597, 0.09375451505184174, -0.1653675138950348, -0.0318075492978096, -0.20264826714992523, 0.1610916256904602, 0.24418599903583527, -0.051360100507736206, 0.08921641111373901, 0.18049506843090057, -0.33801528811454773, -0.19684605300426483, 0.17016476392745972, -0.3145051598548889, -0.20615015923976898, -0.30434098839759827, -0.011159473098814487, 0.10856550186872482, -0.3118170499801636, -0.28148990869522095, 0.14219555258750916, -0.03199769929051399, 0.4154036343097687, 0.1080719530582428, 0.04465421661734581, -0.3959808349609375, -0.179636612534523, 0.028853584080934525, 0.23017951846122742, -0.018344754353165627, 0.2070215791463852, -0.09895461797714233, 0.24191388487815857, -0.25089916586875916, 0.3119142949581146, -0.0907934308052063, -0.05030921846628189, 0.23966839909553528, -0.18195302784442902, -0.32131314277648926, 0.0920071005821228, 0.159082293510437, 0.06303926557302475, -0.186756893992424, -0.020260311663150787, -0.3215976655483246, 0.11326038837432861, -0.14865368604660034, -0.1829344481229782, -0.2272919863462448, 0.1946236938238144, 0.0766027495265007, 0.07400376349687576, -0.39569878578186035, 0.25659796595573425, 0.014548346400260925, -0.09897879511117935, -0.06008514016866684, -0.08976329863071442, -0.022748254239559174, -0.24342045187950134, -0.00685538724064827, -0.10052131116390228, -0.24188600480556488, 0.34219467639923096, 0.019832050427794456, 0.07015681266784668, 0.49680787324905396, 0.46979281306266785, -0.16041967272758484, 0.20427361130714417, 0.12491333484649658, -0.0652853399515152, -0.08716965466737747, -0.21131682395935059, 0.1868462860584259, 0.3027629256248474, -0.2669829726219177, -0.12181173264980316, 0.3525364398956299, -0.097823366522789, 0.0635204017162323, -0.10775423049926758, 0.22741495072841644, 0.19888892769813538, 0.07187560945749283, 0.14889542758464813, -0.4378673732280731, -0.014439433813095093, -0.046612657606601715, 0.014598432928323746, -0.2906503677368164, -0.2528047263622284, -0.037461064755916595, 0.03876012936234474, 0.25873613357543945, -0.20698022842407227, 0.08704051375389099, 0.22484606504440308, 0.14850495755672455, -0.3077518939971924, -0.23688159883022308, 0.22109535336494446, 0.07626573741436005, 0.19910761713981628, -0.030178161337971687, 0.13740438222885132, 0.13440029323101044, 0.053292565047740936, 0.18851757049560547, 0.0780038982629776, 0.046920765191316605, -0.2939654588699341, 0.12062320113182068, 0.21760256588459015, 0.09705574810504913, 0.08989763259887695, 0.0417662151157856, 0.267261266708374, 0.03373449295759201, -0.08476834744215012, -0.4204722046852112, -0.024484455585479736, -0.08702638745307922, 0.03585527464747429, 0.06587208062410355, -0.022961564362049103, 0.16980095207691193, -0.2552517354488373, 0.0377068892121315, 0.02072034776210785, 0.15399006009101868, 0.24423426389694214, 0.3496411144733429, -0.07402144372463226, 0.021903183311223984, 0.09552381932735443, -0.05413861572742462, 0.1398869752883911, 0.0035412870347499847, -0.06763795018196106, -0.40758901834487915, 0.6922442317008972, 0.3186303377151489, 0.28805455565452576, 0.23682676255702972, -0.1921224147081375, 0.34591245651245117, 0.09868107736110687, 0.21296946704387665, 0.12864075601100922, 0.0932791531085968, 0.5176751613616943, -0.265996515750885, -0.11708204448223114, -0.317710280418396, 0.28867632150650024, 0.6883788704872131, 0.039815958589315414, -0.30072760581970215, 0.23538631200790405, 0.3845336437225342, -0.38126838207244873, 0.3015574812889099, 0.24209795892238617, 0.5062412619590759, 0.17856287956237793, 0.23376671969890594, -0.13924989104270935, -0.21329091489315033, -0.09557157009840012, 0.2659608721733093, -0.29725849628448486, 0.5635207891464233, -0.031095467507839203, 0.13618384301662445, -0.12905877828598022, -0.06940974295139313, -0.4661754369735718, 0.14898431301116943, 0.1630319505929947, 0.07624967396259308, 0.015575384721159935, -0.11560337990522385, 0.5521213412284851, -0.06301404535770416, 0.08901982754468918, 0.05614215135574341, -0.30470961332321167, 0.08478870987892151, 0.3421623408794403, -0.24774107336997986, -0.21163557469844818, 0.15494535863399506, -0.0013773292303085327, -0.23916374146938324, 0.07268647104501724, -0.19356834888458252, 0.046335261315107346, -0.08622536808252335, 0.12143215537071228, 0.21423839032649994, -0.0003542783670127392, -0.0013092290610074997, -0.07596611976623535, -0.2078177034854889, -0.13482946157455444, -0.14657315611839294, -0.1292155385017395, -0.17174620926380157, -0.08002322912216187, -0.06576356291770935, 0.07521790266036987, 0.1352483034133911, -0.3357153832912445, 0.13163119554519653, -0.04017657786607742, -0.2780590057373047, -0.12389368563890457, -0.1683100163936615, -0.10956265777349472, -0.024709753692150116, -0.29363688826560974, -0.11258307844400406, -0.3314632177352905, 0.6368319988250732, -0.0012263134121894836, 0.2621425986289978, -0.4122864007949829, 0.1405792236328125, 0.026848692446947098, 0.08711540699005127, 0.04869379848241806, -0.0511724054813385, -0.28399017453193665, 0.06205460801720619, -0.22503161430358887, -0.18524955213069916, 0.05678151920437813, 0.32787442207336426, 0.5789332389831543, -0.27777761220932007, -0.18909062445163727, 0.14156202971935272, -0.18052007257938385, 0.202492356300354, -0.09791935980319977, -0.11546719074249268, 0.34520426392555237, 0.07703092694282532, -0.3121476471424103, 0.08527157455682755, -0.2851797938346863, 0.0819585919380188, 0.10097523778676987, 0.1036076471209526, -0.1208774521946907, 0.361670583486557, 0.13049963116645813, 0.4218636751174927, 0.3088395595550537, -0.017449501901865005, 0.019459635019302368, 0.15115128457546234, -0.07484808564186096, -0.15378907322883606, 0.022668326273560524, 0.25610774755477905, -0.2690194249153137, 0.007314220070838928, 0.21307900547981262, -0.1878652572631836, -0.392762154340744, -0.10908255726099014, 0.32064417004585266, -0.26891645789146423, -0.12688706815242767, 0.23416443169116974, 0.2139447182416916, 0.03527110815048218, -0.17097988724708557, -0.10396051406860352, -0.29963070154190063, 0.25138428807258606, -0.10169075429439545, -0.04889872670173645, 0.07392212748527527, -0.3276028633117676, -0.5734007954597473, -0.5011482238769531, -0.7551325559616089, 0.4519376754760742, -0.07205884158611298, 0.1639672964811325, 0.003815833479166031, -0.09198710322380066, 0.12789346277713776, -0.5456078052520752, 0.49602365493774414, -0.08714239299297333, -0.11914828419685364, 0.37913432717323303, -0.18929138779640198, -0.25639083981513977, -0.11754094064235687, -0.1586705893278122, 0.34328708052635193, 0.4140852391719818, 0.4338955581188202, -0.3351677358150482, -0.25983864068984985, -0.06598461419343948, -0.10116394609212875, 0.0401071198284626, -0.048614904284477234, -0.14599554240703583, -0.2873128056526184, -0.23937003314495087, 0.28511711955070496, -0.012499460950493813, 0.4870292842388153, -0.26935020089149475, -0.30224791169166565, 0.3291168212890625, -0.14866316318511963, 0.04338990896940231, 0.12241703271865845, -0.0963725596666336, 0.01930137909948826, 0.13936100900173187, -0.28635063767433167, -0.0885985940694809, 0.35933756828308105, 0.25663241744041443, -0.07015664875507355, -0.1547888070344925, 0.09095700830221176, 0.0940585806965828, 0.14982464909553528, 0.230342835187912, 0.06704079359769821, 0.4014139473438263, -0.1373046189546585, 0.5890895128250122, 0.11239282786846161, -0.30607572197914124, 0.26794326305389404, 0.2529585659503937, -0.23915311694145203, 0.10001025348901749, 0.23573842644691467, 0.01602448895573616, 0.004300400614738464, 0.0760529637336731, -0.3618794083595276, 0.04039929807186127, -0.007539340294897556, 0.2564065158367157, 0.7064921855926514, -0.07985988259315491, 0.04209841415286064, -0.05509118735790253, -0.5145120024681091, 0.4964439570903778, -0.6127006411552429, 0.22371549904346466, 0.009168330579996109, 0.20922024548053741, 0.2494785338640213, 0.11202841997146606, 0.27966833114624023, 0.18455183506011963, -0.23223116993904114, 0.01532658003270626, 0.26351481676101685, -0.3154517710208893, -0.2109786868095398, 0.5130387544631958, 0.05566321313381195, -0.2507933974266052, -0.13740797340869904, 0.08862850815057755, 0.08199092000722885, -0.34249550104141235, 0.027855053544044495, -0.39165711402893066, -0.04754943400621414, 0.05830223113298416, -0.36436766386032104, 0.02537137269973755, -0.05077473446726799, 0.18987442553043365, 0.09489165246486664, 0.05366913974285126, 0.15381397306919098, 0.09026484191417694, 0.21042072772979736, -0.12791801989078522, -0.1303618848323822, -0.023372653871774673, -0.2953763008117676, 0.19193287193775177, -0.13387028872966766, -0.3286113739013672, 0.16639792919158936, -0.4297544062137604, -0.16515451669692993, 0.18883630633354187, -0.22075840830802917, -0.5218587517738342, 0.41543126106262207, 0.30444878339767456, -0.11954042315483093, 0.13743969798088074, -0.11034497618675232, 0.5043810606002808, -0.32641497254371643, -0.48569566011428833, 0.17821519076824188, 0.20338952541351318, -0.33778122067451477, 0.47602060437202454, -0.5092845559120178, -0.28120025992393494, -0.059321459382772446, 0.1738266944885254, 0.18094447255134583, 0.00026301294565200806, -0.044518567621707916, 0.17983046174049377, -0.25840887427330017, -0.22635501623153687, 0.09574524313211441, 0.15834394097328186, -0.13708896934986115, 0.31900709867477417, 0.09082580357789993, -0.12610918283462524, 0.2321813404560089, 0.014359556138515472, -0.09332157671451569, 0.16917486488819122, -0.0779339075088501, -0.1872560679912567, -0.2730109393596649, -0.06560766696929932, -0.3072901964187622, -0.06235217675566673, 0.0029721632599830627, 0.3180847764015198, 0.1103561669588089, 0.2098613679409027, -0.3270804286003113, 0.02816440910100937, -0.37944692373275757, 0.014940960332751274, -0.030416958034038544, -0.2889243960380554, 0.0038021570071578026, 0.27082255482673645, 0.21066194772720337, 0.11008697748184204, -0.25415968894958496, -0.20094674825668335, 0.16866019368171692, 0.08839693665504456, -0.11254274100065231, -0.01952560991048813, 0.2722594738006592, 0.08696591854095459, -0.2519609034061432, 0.0014096018858253956, 0.04733666405081749, -0.2232401967048645, -0.1932714432477951, -0.010505924932658672, 0.2826930582523346, 0.024785116314888, -0.054584063589572906, -0.24566182494163513, 0.14610156416893005, 0.6199107766151428, -0.11823353171348572, 0.40439552068710327, 0.009563051164150238, -0.189497709274292, -0.22725455462932587, 0.08824865520000458, -0.168793722987175, 0.20917323231697083, 0.037154823541641235, 0.042405784130096436, -0.32654261589050293, -0.24263669550418854, 0.2840047776699066, 0.23867672681808472, -0.017940474674105644, 0.23481549322605133, -0.007879409939050674, 0.2007291316986084, -0.036315999925136566, -0.17719587683677673, -0.12088115513324738, -0.22033284604549408, 0.12226924300193787, 0.034745365381240845, 0.3642708957195282, -0.10237759351730347, 0.3848721385002136, 0.049837060272693634, -0.013009748421609402, -0.22587703168392181, -0.08261682093143463, -0.04985479637980461, -0.06251387298107147, 0.06445860117673874, 0.343078076839447, -0.018715400248765945, 0.19131796061992645, 0.2769811749458313, 0.1253916621208191, 0.5626779198646545, 0.4801579415798187, 0.402435839176178, 0.05971449241042137, -0.0650058388710022, 0.1177128255367279, 0.055883005261421204, -0.02474115788936615, 0.25898781418800354, 0.28203466534614563, 0.015751183032989502, -0.42859145998954773, -0.1559220850467682, -0.24678654968738556, 0.3705820143222809, -0.16412773728370667, -0.3135041892528534, -0.02192474529147148, -0.1357518881559372, -0.11642050743103027, 0.08019618690013885, -0.03535478934645653, 0.14339691400527954, 0.3644067645072937, 0.07445093989372253, 0.09439188241958618, -0.04974237084388733, -0.21350067853927612, -0.14736196398735046, 0.3268257975578308, -0.186601921916008, 0.28936833143234253, 0.22354166209697723, -0.39980748295783997, -0.2712985873222351, 0.11228052526712418, 0.48641282320022583, -0.04975727200508118, -0.10774070024490356, 0.0821605995297432, -0.12095920741558075, 0.00017625652253627777, 0.11685691773891449, 0.2616106867790222, 0.17428553104400635, 0.05607748031616211, 0.08463740348815918, 0.11774353682994843, -0.18505974113941193, 0.08802975714206696, 0.08613593876361847, 0.026009418070316315, 0.03759853541851044, 0.09554649144411087, 0.12755221128463745, -0.15036360919475555, -0.08736208081245422, 0.29462558031082153, -0.3396298587322235, -0.32698479294776917, -0.18854717910289764, -0.4554058015346527, -0.047435466200113297, 0.049820829182863235, 0.13556158542633057, -0.07851885259151459, 0.4072994589805603, -0.18734563887119293, 0.1506716012954712, -0.19173921644687653, -0.3766019344329834, 0.024405337870121002, -0.036312542855739594, -0.25068399310112, 0.13646741211414337, -0.038427479565143585, 0.5718533992767334, 0.24471238255500793, 0.22455289959907532, 0.33357036113739014, 0.13888128101825714, 0.004022455774247646, 0.2948460578918457, -0.498435914516449, 0.45599693059921265, 0.5498180985450745, -0.19438619911670685, 0.06171424686908722, -0.2227126955986023, 0.43265634775161743, 0.06676122546195984, 0.10599463433027267, -0.21397681534290314, 0.09544959664344788, 0.42660021781921387, 0.21624770760536194, 0.3099151849746704, 0.14268876612186432, 0.00437936931848526, -0.2640872299671173, -0.40966102480888367, 0.15296059846878052, 0.3817361891269684, 0.05548330023884773, 0.0771450474858284, 0.1021849513053894, 0.5605722665786743, -0.038774434477090836, 0.23059909045696259, -0.02798900566995144, 0.05489593744277954, -0.2820221483707428, -0.28436654806137085, -0.0733872726559639, 0.16653922200202942, 0.029637351632118225, 0.12019839137792587, 0.16022947430610657, 0.3025903105735779, 0.16623654961585999, -0.1844184398651123, -0.7855790853500366, -0.08039233833551407, 0.07016290724277496, -0.12933383882045746, -0.2846427261829376, 0.09743888676166534, 0.22569593787193298, -0.3402708172798157, 0.3767786920070648, -0.24643829464912415, -0.1005743145942688, 0.1305946409702301, 0.09785159677267075, -0.4392765164375305, 0.4368252158164978, -0.28452542424201965, -0.2823221683502197, 0.0738232433795929, 0.1300039142370224, 0.09019461274147034, -0.10940440744161606, -0.355074405670166, -0.28341662883758545 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Thank you for sharing the benchmark, @bhavitvyamalik. Your results look promising. But if I remember correctly the sharded version at https://github.com/huggingface/datasets/issues/2663#issue-946552273 was much faster. So we probably should compare to it as well? And if it's faster than at least document that manual sharding version? ------- That's a dangerous benchmark as it'd wipe out many other HF things. Why not wipe out: ``` ~/.cache/huggingface/datasets/ascent_kb/ ``` Running the benchmark now.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
69
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Thank you for sharing the benchmark, @bhavitvyamalik. Your results look promising. But if I remember correctly the sharded version at https://github.com/huggingface/datasets/issues/2663#issue-946552273 was much faster. So we probably should compare to it as well? And if it's faster than at least document that manual sharding version? ------- That's a dangerous benchmark as it'd wipe out many other HF things. Why not wipe out: ``` ~/.cache/huggingface/datasets/ascent_kb/ ``` Running the benchmark now.
[ -0.22251179814338684, -0.4220024645328522, -0.12552852928638458, -0.14315840601921082, -0.053281426429748535, -0.15773871541023254, 0.03887617588043213, 0.3051198422908783, -0.0016372241079807281, 0.241258442401886, -0.027208730578422546, 0.3750201463699341, 0.1112004965543747, 0.47975730895996094, -0.08201052248477936, 0.07850953936576843, 0.36146795749664307, -0.1842210590839386, 0.18163086473941803, 0.1812739223241806, -0.196189284324646, 0.5273119211196899, -0.13474246859550476, -0.24252428114414215, -0.00612774770706892, -0.18226861953735352, 0.023681925609707832, 0.25347578525543213, -0.09699217230081558, -0.2697921395301819, -0.1302054077386856, 0.3046959340572357, -0.09590492397546768, 0.007312662899494171, -0.00011238545266678557, -0.14946484565734863, 0.13393445312976837, 0.055134207010269165, -0.07152807712554932, 0.08538221567869186, 0.012467171996831894, -0.3072226047515869, 0.043907247483730316, -0.17587566375732422, 0.11334835737943649, 0.3028874695301056, -0.07447125017642975, -0.08213656395673752, 0.6408425569534302, 0.14292584359645844, 0.13742996752262115, 0.2782678008079529, 0.33984053134918213, -0.007382498122751713, -0.15101686120033264, 0.2887989282608032, -0.2895841896533966, 0.044010259211063385, 0.20307201147079468, 0.30277884006500244, 0.11951833963394165, 0.297313392162323, 0.17874272167682648, -0.024391956627368927, 0.02431381493806839, -0.08532804995775223, -0.1970553994178772, -0.021960876882076263, 0.03172781690955162, 0.22140637040138245, -0.03411063551902771, -0.03571105748414993, -0.44806113839149475, -0.07607145607471466, -0.12751071155071259, -0.5584800243377686, 0.23645910620689392, -0.0635838508605957, -0.10803702473640442, 0.018290173262357712, -0.33083030581474304, -0.31808218359947205, -0.08723784238100052, -0.4025522470474243, 0.0065517425537109375, 0.025007836520671844, -0.12566109001636505, 0.17760086059570312, 0.5840243101119995, -0.000904180109500885, -0.2955543100833893, -0.04366559535264969, 0.036114294081926346, -0.15549108386039734, -0.2524225413799286, -0.3593292534351349, 0.06258677691221237, -0.14040932059288025, -0.03935977444052696, 0.05798043683171272, -0.043055418878793716, 0.31631192564964294, 0.21962209045886993, 0.1395110785961151, -0.04883641377091408, -0.131241112947464, 0.01594601571559906, -0.3797515034675598, 0.16961213946342468, 0.41020193696022034, -0.00758323073387146, 0.04110401123762131, 0.36564841866493225, -0.3457159101963043, -0.3912144601345062, 0.11349397152662277, -0.2995007038116455, -0.2800815999507904, -0.19122736155986786, 0.011604060418903828, 0.22012421488761902, -0.38428670167922974, -0.27808046340942383, 0.3451745808124542, -0.006051252596080303, 0.14388307929039001, 0.04980836063623428, 0.06530994176864624, -0.4198480248451233, -0.17080801725387573, -0.04027240350842476, 0.20179332792758942, -0.062208861112594604, 0.3496488332748413, -0.1784432828426361, 0.12559565901756287, -0.23117698729038239, 0.29278799891471863, 0.15987923741340637, 0.01609809696674347, -0.027294564992189407, -0.07729597389698029, -0.25567883253097534, 0.14277948439121246, 0.028298821300268173, 0.13441255688667297, -0.09718199074268341, -0.05198657885193825, -0.37911683320999146, -0.18877536058425903, -0.16886696219444275, -0.30946084856987, -0.17397567629814148, 0.11160304397344589, -0.012761086225509644, 0.08193805813789368, -0.5567505955696106, 0.28244447708129883, -0.026600651443004608, -0.0397089421749115, -0.09814625233411789, 0.032803259789943695, -0.17497830092906952, -0.18998220562934875, 0.15848127007484436, 0.136346235871315, -0.040166184306144714, 0.08431969583034515, 0.05986266955733299, -0.007363948971033096, 0.40921902656555176, 0.5611862540245056, -0.15893647074699402, -0.026973754167556763, -0.00796283595263958, 0.025196991860866547, -0.12857896089553833, -0.11696203052997589, 0.08260111510753632, 0.43565165996551514, -0.23524919152259827, 0.09428145736455917, 0.34918126463890076, -0.2336416095495224, -0.025404170155525208, -0.029741305857896805, 0.11366304755210876, 0.1253405213356018, 0.10006412863731384, 0.031853243708610535, -0.45662009716033936, -0.065810926258564, -0.1842242330312729, 0.07735659182071686, -0.32110440731048584, -0.1950533390045166, 0.016746729612350464, -0.07296069711446762, 0.31389760971069336, -0.20595160126686096, 0.15433543920516968, 0.27287739515304565, 0.0949951708316803, -0.12567222118377686, -0.2684701085090637, 0.142550528049469, -0.12410793453454971, 0.2274717092514038, -0.15579663217067719, 0.2190179079771042, 0.008066371083259583, -0.11423780024051666, 0.1584053933620453, 0.056591592729091644, 0.05194266512989998, -0.4262794852256775, 0.011462632566690445, 0.1491481065750122, 0.13960805535316467, 0.1559295952320099, -0.1311095505952835, 0.34915775060653687, -0.11348092555999756, 0.04180419072508812, -0.5218679308891296, 0.07277992367744446, -0.04319101572036743, 0.0029406314715743065, 0.06287422776222229, 0.039042625576257706, 0.08817507326602936, -0.29933854937553406, 0.06718108057975769, 0.07583633065223694, -0.05670460686087608, 0.38768303394317627, 0.324091374874115, 0.0304604172706604, 0.024548590183258057, 0.03543270006775856, -0.09797664731740952, -0.0526866652071476, -0.03388480097055435, -0.013604529201984406, -0.4178606867790222, 0.7981679439544678, 0.17703139781951904, 0.27766668796539307, 0.26899492740631104, -0.24339993298053741, 0.3307396173477173, 0.022011850029230118, 0.18225613236427307, 0.04904299974441528, 0.2216622680425644, 0.3547898530960083, -0.3107055723667145, -0.11146439611911774, -0.32404279708862305, 0.28552761673927307, 0.8406386971473694, -0.024715464562177658, -0.3901338279247284, 0.3971766531467438, 0.4117374122142792, -0.3792155086994171, 0.32981401681900024, 0.21757079660892487, 0.47411471605300903, 0.19874879717826843, 0.17990447580814362, 0.011310553178191185, -0.147467240691185, -0.09896103292703629, 0.2846173644065857, -0.34474480152130127, 0.41070470213890076, -0.06346727907657623, 0.04166533052921295, -0.06600511074066162, -0.22313964366912842, -0.4559229910373688, -0.04695669561624527, 0.05272670090198517, -0.07803735882043839, -0.05593564361333847, -0.18940505385398865, 0.43004506826400757, -0.08242005854845047, 0.18509510159492493, -0.22793793678283691, -0.31440699100494385, 0.017284031957387924, 0.36606329679489136, -0.17970064282417297, -0.14101190865039825, 0.30306342244148254, 0.11421307921409607, -0.2809796631336212, 0.058364108204841614, -0.3431852161884308, 0.18357694149017334, -0.044080570340156555, 0.03057478368282318, 0.2386721819639206, -0.010621415451169014, -0.03729400783777237, -0.2156413048505783, -0.1320783793926239, -0.19767600297927856, -0.27823585271835327, 0.023286424577236176, -0.280575692653656, 0.023625865578651428, 0.06030837818980217, 0.15933936834335327, -0.10381913930177689, -0.23768319189548492, 0.2850421965122223, -0.07105506956577301, -0.3944215178489685, -0.008723276667296886, -0.11533502489328384, -0.054301418364048004, -0.028678616508841515, -0.13167229294776917, -0.021818919107317924, -0.26420858502388, 0.8067330718040466, -0.13594132661819458, 0.2152000367641449, -0.3276239335536957, 0.05686261132359505, -0.013507564552128315, -0.2106698602437973, 0.1273050308227539, -0.11561482399702072, -0.5468246340751648, 0.011939525604248047, -0.22096726298332214, -0.24570141732692719, 0.0578937791287899, 0.33121663331985474, 0.44771236181259155, -0.23405644297599792, -0.2779526114463806, 0.03454187512397766, -0.24779687821865082, 0.18930120766162872, -0.05768260359764099, -0.08740214258432388, 0.5422146320343018, -0.006938478443771601, -0.26743242144584656, 0.10737235099077225, -0.37087318301200867, 0.12480533868074417, -0.04978752136230469, 0.11014260351657867, -0.09065136313438416, 0.5037711262702942, 0.2770233154296875, 0.7106002569198608, 0.368325799703598, 0.022886311635375023, 0.13039885461330414, 0.12231821566820145, -0.026325706392526627, -0.23311349749565125, -0.11302350461483002, 0.2625278830528259, -0.2660636603832245, 0.13660767674446106, 0.1984209418296814, -0.13537001609802246, -0.07337158173322678, -0.06818410009145737, 0.19735665619373322, -0.21734318137168884, -0.2811838984489441, 0.23201262950897217, 0.3508155643939972, 0.036950740963220596, -0.15007761120796204, -0.1440415233373642, -0.1539641171693802, 0.08254466205835342, 0.10111342370510101, 0.2923964858055115, 0.11536581814289093, -0.16677974164485931, -0.6360138654708862, -0.351839154958725, -0.7565338611602783, 0.5600281953811646, -0.03690778464078903, 0.07333680987358093, -0.1927369385957718, -0.1542690098285675, 0.17669184505939484, -0.5231953859329224, 0.7005884051322937, -0.02231076918542385, -0.13621735572814941, 0.21647712588310242, -0.4210355877876282, -0.3147828280925751, 0.026895057410001755, -0.05619751662015915, 0.22929200530052185, 0.36534932255744934, 0.54729825258255, -0.46116816997528076, -0.3642517626285553, -0.04634390026330948, -0.17962118983268738, 0.024083252996206284, -0.01691524311900139, -0.27314141392707825, -0.2688802480697632, -0.27684029936790466, 0.2635214030742645, -0.12148506939411163, 0.38793298602104187, -0.23306909203529358, -0.21950671076774597, 0.28966620564460754, -0.1382937878370285, 0.13285955786705017, 0.18751105666160583, -0.11012536287307739, 0.03692973032593727, 0.11077859997749329, -0.14971838891506195, -0.026640862226486206, 0.31237760186195374, 0.3487018942832947, -0.07119336724281311, -0.15573814511299133, -0.0003049056977033615, 0.2320825755596161, 0.12700408697128296, 0.36698591709136963, 0.06849744915962219, 0.5069522261619568, 0.13643868267536163, 0.6349264979362488, -0.14661918580532074, -0.26238715648651123, 0.30780887603759766, 0.3212951123714447, -0.24474774301052094, 0.21351030468940735, 0.32194510102272034, 0.015534739941358566, -0.04589512571692467, 0.009320024400949478, 0.24756206572055817, 0.02261253632605076, 0.043129611760377884, 0.15368393063545227, 0.9228093028068542, -0.19967351853847504, 0.21713851392269135, -0.030049048364162445, -0.4175049662590027, 0.4824438691139221, -0.5162801742553711, 0.10923093557357788, 0.02423638477921486, 0.044732581824064255, 0.1655726581811905, 0.14143100380897522, 0.4455147087574005, 0.06001490727066994, -0.11000323295593262, 0.06466349214315414, 0.2674233317375183, -0.17472779750823975, -0.2316979616880417, 0.4116918444633484, -0.17006920278072357, -0.3825869560241699, -0.2607272267341614, 0.05636915564537048, 0.10708658397197723, -0.10998566448688507, 0.00880633108317852, -0.33089643716812134, -0.0490078404545784, 0.018479321151971817, -0.253207802772522, 0.0035969410091638565, 0.04472837597131729, 0.07146813720464706, 0.23442324995994568, 0.10646410286426544, 0.20696617662906647, 0.1324976533651352, 0.4288361072540283, -0.12908713519573212, -0.15140065550804138, 0.05297640711069107, -0.4031238555908203, 0.17699170112609863, -0.1445731371641159, -0.2808527946472168, 0.1546875536441803, -0.3566114902496338, -0.14117440581321716, 0.07064267247915268, -0.13147611916065216, -0.5034074783325195, 0.30746400356292725, 0.2066110223531723, -0.2060505598783493, -0.02829819917678833, -0.05205594375729561, 0.41142627596855164, -0.2157173454761505, -0.46223312616348267, 0.10335004329681396, 0.22013318538665771, -0.28827011585235596, 0.3161902129650116, -0.28787103295326233, -0.17835207283496857, -0.12852898240089417, 0.3792615234851837, -0.06401477009057999, 0.015155673027038574, -0.0037503279745578766, 0.16409745812416077, -0.29852205514907837, -0.1869203746318817, 0.07928258925676346, 0.2029319703578949, -0.27613914012908936, 0.2767992913722992, 0.08557170629501343, -0.12386856228113174, 0.08781421184539795, 0.197392538189888, 0.033679306507110596, 0.049834199249744415, 0.06341487169265747, -0.20643141865730286, -0.3500649929046631, 0.10149884968996048, -0.3520132303237915, -0.003553587943315506, 0.10182703286409378, 0.40089151263237, 0.016988376155495644, 0.3354584872722626, -0.3120433986186981, 0.11576780676841736, -0.35792434215545654, -0.09989160299301147, 0.09696463495492935, -0.3204873204231262, 0.2821987271308899, 0.13627541065216064, 0.15419764816761017, 0.24541857838630676, -0.39768046140670776, -0.14278796315193176, 0.05110761895775795, 0.10812301188707352, -0.11259361356496811, -0.005816790275275707, 0.28035596013069153, 0.251265287399292, -0.25227490067481995, -0.04792925715446472, 0.22490431368350983, -0.09577144682407379, -0.11887519061565399, -0.029737945646047592, 0.21833182871341705, 0.010598093271255493, -0.07851195335388184, -0.29947519302368164, 0.17116552591323853, 0.5368725061416626, -0.18241305649280548, 0.13576668500900269, -0.23218242824077606, -0.2003600001335144, 0.002070832997560501, 0.22918668389320374, 0.05375146120786667, 0.07658638060092926, 0.1426917016506195, -0.0026951171457767487, -0.41252654790878296, -0.2944790720939636, 0.5093569755554199, 0.10067920386791229, -0.09698980301618576, 0.16295716166496277, 0.13612794876098633, 0.12679490447044373, -0.04633007571101189, -0.12466221302747726, -0.010639956220984459, -0.22170616686344147, 0.09233225882053375, 0.12467525154352188, 0.36261609196662903, 0.060131654143333435, 0.372170090675354, 0.04454030096530914, 0.03580152243375778, -0.26822084188461304, -0.08487270772457123, -0.27462485432624817, -0.11137247085571289, 0.11136895418167114, 0.4635353088378906, 0.12644203007221222, 0.32558882236480713, 0.12244978547096252, -0.04553262144327164, 0.539662778377533, 0.1055699959397316, 0.6311549544334412, 0.1287321150302887, -0.3407565951347351, 0.10881142318248749, 0.12575723230838776, 0.07419651746749878, 0.29227182269096375, 0.10362843424081802, 0.3877720534801483, -0.33486849069595337, -0.36152365803718567, -0.1883886605501175, 0.47240450978279114, -0.09201807528734207, -0.4425334632396698, 0.096601203083992, -0.11787955462932587, -0.1866382658481598, 0.14337420463562012, -0.025632482022047043, -0.006189785897731781, 0.5762374401092529, 0.010515682399272919, 0.1317160427570343, -0.09642204642295837, -0.23033735156059265, -0.16889771819114685, 0.43420088291168213, -0.11512017250061035, 0.3349815011024475, 0.224480539560318, -0.39622771739959717, -0.16753540933132172, 0.18537773191928864, 0.4540249705314636, -0.25750812888145447, 0.06485076248645782, 0.1723972111940384, -0.08673763275146484, 0.14262919127941132, 0.18528613448143005, 0.35364535450935364, 0.11914167553186417, 0.11952202022075653, 0.14266656339168549, 0.06080318242311478, -0.2084244340658188, -0.0076850540935993195, -0.04942184314131737, 0.25215911865234375, -0.08051757514476776, 0.16975083947181702, -0.1321565955877304, 0.014893807470798492, -0.1387421190738678, 0.28397735953330994, -0.40245264768600464, -0.32272911071777344, -0.15579211711883545, -0.45780450105667114, -0.005794603377580643, 0.004071240313351154, 0.11375516653060913, 0.035618856549263, 0.44589918851852417, -0.0901883989572525, 0.08955144137144089, -0.13391751050949097, -0.347673237323761, -0.04894905909895897, -0.10810781270265579, -0.04401858523488045, 0.25316122174263, -0.05309498310089111, 0.5217163562774658, 0.27193376421928406, 0.07478611171245575, 0.24519938230514526, -0.07782517373561859, 0.016930177807807922, 0.22239431738853455, -0.3118774890899658, 0.537095308303833, 0.3175746202468872, -0.26363518834114075, 0.119036465883255, -0.13287657499313354, 0.484774649143219, 0.07548888772726059, -0.023287108168005943, -0.1272221952676773, 0.28853681683540344, 0.2214788794517517, -0.15521179139614105, 0.30835914611816406, 0.2117050141096115, -0.06576250493526459, -0.29318559169769287, -0.5754558444023132, 0.1196659505367279, 0.3012351393699646, 0.02921184152364731, 0.15228450298309326, 0.025751743465662003, 0.6664999723434448, 0.011701053008437157, 0.08939377963542938, -0.10019449889659882, 0.22401270270347595, -0.1606442630290985, -0.3230963349342346, -0.14074483513832092, 0.31144869327545166, 0.0016234293580055237, 0.10874015092849731, 0.2549002468585968, 0.5101153254508972, 0.18545693159103394, -0.1285502314567566, -0.6713453531265259, -0.09358074516057968, 0.3558751344680786, -0.2346513271331787, -0.09925678372383118, 0.2773074209690094, 0.2817225158214569, -0.12123196572065353, 0.12692831456661224, -0.5378372669219971, -0.1378730833530426, 0.02202775329351425, 0.17176362872123718, -0.31013524532318115, 0.48288583755493164, -0.31525349617004395, -0.4202873408794403, 0.016624193638563156, 0.15726283192634583, 0.12960410118103027, -0.22222979366779327, -0.18029439449310303, -0.2937183380126953 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Weird, I tried to adapt your benchmark to using shards and the program no longer works. It instead quickly uses up all available RAM and hangs. Has something changed recently in `datasets`? You can try: ``` import time from datasets import load_dataset import pathlib import os from pathlib import Path import shutil import gc from multiprocessing import cpu_count, Process, Queue batch_sizes = [10_000, 50_000, 100_000, 125_000] num_procs = [1, 8] # change this according to your machine DATASET_NAME = ("ascent_kb") num_shards = [1, 8] for batch in batch_sizes: for shards in num_shards: dataset = load_dataset(DATASET_NAME)["train"] #print(dataset) def process_shard(idx): print(f"Sharding {idx}") ds_shard = dataset.shard(shards, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) local_start = time.time() queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(shards)] for p in processes: p.start() for p in processes: p.join() local_end = time.time() - local_start print(f"Time taken on {shards} shards and {batch} batch_size: ", local_end) ``` Just careful, so that it won't crash your compute environment. As it almost crashed mine.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
176
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Weird, I tried to adapt your benchmark to using shards and the program no longer works. It instead quickly uses up all available RAM and hangs. Has something changed recently in `datasets`? You can try: ``` import time from datasets import load_dataset import pathlib import os from pathlib import Path import shutil import gc from multiprocessing import cpu_count, Process, Queue batch_sizes = [10_000, 50_000, 100_000, 125_000] num_procs = [1, 8] # change this according to your machine DATASET_NAME = ("ascent_kb") num_shards = [1, 8] for batch in batch_sizes: for shards in num_shards: dataset = load_dataset(DATASET_NAME)["train"] #print(dataset) def process_shard(idx): print(f"Sharding {idx}") ds_shard = dataset.shard(shards, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) local_start = time.time() queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(shards)] for p in processes: p.start() for p in processes: p.join() local_end = time.time() - local_start print(f"Time taken on {shards} shards and {batch} batch_size: ", local_end) ``` Just careful, so that it won't crash your compute environment. As it almost crashed mine.
[ -0.4746202826499939, -0.07687890529632568, -0.21735309064388275, -0.05651002377271652, -0.0003002732992172241, -0.15590700507164001, 0.13079430162906647, 0.3975997269153595, -0.04052826017141342, 0.31299668550491333, 0.16355222463607788, 0.6130059957504272, 0.018745502457022667, 0.3519664704799652, -0.2792137861251831, 0.15209372341632843, 0.3146500587463379, -0.1678408682346344, 0.26778268814086914, 0.11700396239757538, -0.23763054609298706, 0.42772722244262695, -0.12883365154266357, -0.27886903285980225, -0.0017978285904973745, -0.1840420514345169, 0.044466570019721985, 0.18451984226703644, 0.05946718156337738, -0.34605374932289124, -0.27424439787864685, 0.10490517318248749, -0.13033711910247803, 0.23608791828155518, -0.0001059478527167812, -0.1464756727218628, 0.13192003965377808, 0.1096566915512085, -0.19417455792427063, -0.02374015748500824, -0.0865907222032547, -0.2522011697292328, 0.18779906630516052, -0.32511839270591736, 0.07146845012903214, 0.2391570508480072, -0.026829028502106667, -0.11502236872911453, 0.5584904551506042, 0.33613505959510803, 0.19429713487625122, 0.23194965720176697, 0.2805244028568268, 0.003762622829526663, -0.08766617625951767, 0.05809067562222481, -0.2753923535346985, -0.08619558811187744, 0.26042431592941284, 0.27498161792755127, 0.11569938063621521, 0.11320053040981293, 0.021018361672759056, 0.0051714349538087845, -0.2525938153266907, -0.07541613280773163, -0.1026160940527916, -0.1052170842885971, 0.02313936874270439, 0.06011941283941269, 0.09234574437141418, -0.13078361749649048, -0.3414729833602905, 0.009951286017894745, -0.1702764332294464, -0.5733856558799744, 0.1254245787858963, 0.06433157622814178, -0.15539297461509705, -0.022158976644277573, -0.1799173504114151, -0.19702014327049255, -0.11977510154247284, -0.3872198462486267, 0.010990694165229797, 0.23106436431407928, 0.025972992181777954, 0.259604275226593, 0.5660685300827026, 0.011577941477298737, -0.13107331097126007, -0.024847298860549927, 0.03711181506514549, -0.1947849690914154, -0.42160314321517944, -0.3464653789997101, 0.10603544116020203, -0.3800113797187805, -0.34173375368118286, 0.08418802171945572, -0.03022490069270134, 0.26758134365081787, 0.3226530849933624, 0.2053251564502716, 0.05781583860516548, -0.14061139523983002, -0.011210933327674866, -0.17015105485916138, 0.11534810811281204, 0.16604353487491608, -0.20354023575782776, 0.05967561528086662, 0.0916668176651001, -0.38968774676322937, -0.16209495067596436, 0.18760806322097778, -0.3204304575920105, -0.16994979977607727, -0.29137715697288513, 0.047053899616003036, 0.10010089725255966, -0.1931898444890976, -0.1988232135772705, 0.2700156569480896, -0.0813429057598114, 0.2185855507850647, 0.0012842081487178802, 0.015021687373518944, -0.49796387553215027, -0.18081553280353546, -0.09738607704639435, 0.3049188256263733, -0.12141948938369751, 0.13371187448501587, -0.09499289840459824, 0.20906351506710052, -0.22881995141506195, 0.2429548054933548, -0.0012632682919502258, -0.09888307005167007, 0.2594732940196991, -0.28272324800491333, -0.32154396176338196, 0.21922434866428375, 0.1598038226366043, 0.09243995696306229, -0.11051848530769348, -0.13928809762001038, -0.21919965744018555, 0.08364731073379517, -0.18444347381591797, -0.22848953306674957, -0.08767253160476685, 0.1995568573474884, -0.05481821671128273, 0.03067741170525551, -0.5328956246376038, 0.16854166984558105, 0.039915550500154495, 0.08223681151866913, -0.24276763200759888, -0.1084270179271698, -0.018018800765275955, -0.2823293209075928, 0.15886622667312622, -0.06645146012306213, -0.29264000058174133, 0.3223839998245239, -0.14886488020420074, 0.03673981875181198, 0.4342300593852997, 0.4419266879558563, -0.10321000963449478, 0.1641729772090912, 0.10698501765727997, 0.0850638896226883, -0.0373445525765419, -0.12732121348381042, 0.00783044844865799, 0.24353627860546112, -0.2420913726091385, -0.16417105495929718, 0.3044099509716034, -0.03320992365479469, 0.14851342141628265, 0.0012444255407899618, 0.11595988273620605, 0.310918927192688, 0.13168783485889435, 0.09833230823278427, -0.37032362818717957, -0.11833545565605164, -0.16367024183273315, 0.2092534601688385, -0.14009520411491394, -0.2576269209384918, 0.0952228531241417, 0.01051864679902792, 0.3045066297054291, -0.16123726963996887, 0.007595013361424208, 0.29403209686279297, 0.26978400349617004, -0.16648080945014954, -0.22408989071846008, 0.05631226301193237, 0.12519530951976776, 0.293160080909729, 0.02185177057981491, 0.13049282133579254, 0.009504400193691254, 0.08723514527082443, 0.21592935919761658, 0.11778558045625687, -0.013512860983610153, -0.18785928189754486, 0.15528589487075806, 0.07757475227117538, 0.07560727000236511, 0.048774536699056625, -0.0060295239090919495, 0.3011742830276489, -0.15393587946891785, -0.017596228048205376, -0.427285373210907, 0.1593947857618332, -0.07022115588188171, -0.21925674378871918, 0.07449594885110855, -0.06302646547555923, 0.07433734089136124, -0.19581492245197296, -0.007685700431466103, 0.04152591526508331, 0.2710900902748108, 0.3292514979839325, 0.3468920588493347, -0.03233818709850311, -0.1323559433221817, 0.11609645187854767, -0.059425316751003265, 0.11971347033977509, -0.07053831964731216, -0.028702229261398315, -0.3181491494178772, 0.6548770666122437, 0.33293086290359497, 0.28674647212028503, 0.2668479084968567, -0.1533004194498062, 0.29112353920936584, 0.002696145325899124, 0.2841193675994873, 0.16975949704647064, 0.20669904351234436, 0.41945409774780273, -0.23163582384586334, -0.1536223441362381, -0.22953803837299347, 0.21524810791015625, 0.7694777250289917, 0.051454100757837296, -0.20073336362838745, 0.21916493773460388, 0.279342383146286, -0.2803420126438141, 0.30431973934173584, 0.3882439434528351, 0.525564968585968, 0.20333604514598846, 0.21094082295894623, -0.09844241291284561, -0.2659875452518463, -0.08944645524024963, 0.2330654263496399, -0.20977215468883514, 0.47704988718032837, -0.06747414916753769, 0.11580014228820801, -0.1174553856253624, -0.12897755205631256, -0.522369384765625, 0.09300558269023895, 0.2625051736831665, 0.06031874939799309, 0.08259251713752747, -0.19393762946128845, 0.629533588886261, -0.00954518560320139, 0.23619891703128815, -0.0025719553232192993, -0.38671618700027466, -0.046043962240219116, 0.3797905445098877, -0.20553290843963623, -0.12933644652366638, 0.33050405979156494, -0.11361770331859589, -0.17096322774887085, -0.02541533298790455, -0.08451917767524719, -0.056507352739572525, -0.07547242939472198, 0.11736764013767242, 0.27774351835250854, 0.18077386915683746, 0.05484385043382645, -0.06427692621946335, -0.19804847240447998, -0.07956317067146301, -0.13739657402038574, -0.1719689965248108, -0.21131837368011475, 0.05946554243564606, -0.08224774897098541, 0.16817310452461243, -0.04267119988799095, -0.3558822572231293, 0.24718253314495087, -0.13640756905078888, -0.2670062184333801, 0.023899827152490616, -0.03766874969005585, -0.15853920578956604, 0.00015841424465179443, -0.20007982850074768, -0.23389707505702972, -0.3783525824546814, 0.5945928692817688, 0.07124336063861847, 0.3301038146018982, -0.33844196796417236, 0.31798744201660156, 0.14115330576896667, 0.09834359586238861, 0.0422380268573761, -0.07420668751001358, -0.28130313754081726, 0.08222314715385437, -0.1785491704940796, -0.2596598267555237, 0.06271182000637054, 0.26289188861846924, 0.43167445063591003, -0.04529556632041931, -0.31002676486968994, 0.18027448654174805, -0.3275604546070099, 0.1439698189496994, 0.04554092511534691, -0.05998101830482483, 0.3828185498714447, 0.006357735022902489, -0.2683893144130707, 0.026208706200122833, -0.20054958760738373, 0.1120743453502655, 0.1271803081035614, 0.0600370392203331, -0.05299647897481918, 0.46966788172721863, 0.22279489040374756, 0.5899591445922852, 0.2691076099872589, -0.17994049191474915, 0.00036171823740005493, 0.06371090561151505, -0.04979562386870384, -0.21547117829322815, -0.024648446589708328, 0.2253330498933792, -0.2345448136329651, -0.11184018105268478, 0.1604744791984558, -0.13784945011138916, -0.2934524416923523, -0.1315508335828781, 0.2359829545021057, -0.224350243806839, -0.22918583452701569, 0.2569608688354492, 0.21006476879119873, 0.007083266973495483, -0.20055076479911804, 0.021775171160697937, -0.2017442137002945, 0.10692363232374191, -0.08128723502159119, 0.06360187381505966, -0.05358276516199112, -0.32531797885894775, -0.5403344035148621, -0.36423876881599426, -0.6605984568595886, 0.43301326036453247, -0.2566477656364441, 0.10641496628522873, -0.0659908726811409, -0.14385294914245605, 0.16710251569747925, -0.5319169163703918, 0.46470701694488525, -0.10011010617017746, -0.13526298105716705, 0.29613664746284485, -0.21193094551563263, -0.3489964008331299, -0.13569886982440948, -0.2191838026046753, 0.32223695516586304, 0.36369800567626953, 0.47254490852355957, -0.30470502376556396, -0.2543259859085083, -0.1349111646413803, -0.04728836566209793, -0.003476463258266449, -0.044996801763772964, -0.26612749695777893, -0.27231839299201965, -0.3894323706626892, 0.3309062123298645, -0.06777003407478333, 0.4366835653781891, -0.342138409614563, -0.3517149090766907, 0.147225022315979, -0.16914010047912598, 0.1895318329334259, 0.10968652367591858, 0.07043934613466263, -0.12435872107744217, 0.22846806049346924, -0.3334001898765564, -0.15185612440109253, 0.38634198904037476, 0.25132012367248535, -0.008731778711080551, -0.007107645273208618, 0.11904866248369217, 0.12210766971111298, 0.17665988206863403, 0.23424646258354187, 0.024072639644145966, 0.3374251127243042, -0.1329648643732071, 0.6633045077323914, -0.06035046651959419, -0.13387632369995117, 0.2857515513896942, 0.30228477716445923, -0.16307903826236725, -0.026969851925969124, 0.24905073642730713, -0.013665778562426567, -0.0026654303073883057, 0.11024517565965652, -0.26970213651657104, 0.06040745973587036, 0.2452894002199173, 0.21893516182899475, 0.775137722492218, -0.1922994703054428, 0.05491451919078827, -0.03792069852352142, -0.28512024879455566, 0.36080145835876465, -0.5218427777290344, 0.21335899829864502, -0.12259308993816376, 0.041903041303157806, 0.24319101870059967, 0.05951574072241783, 0.3394351601600647, 0.30711376667022705, -0.17684225738048553, 0.01865195669233799, 0.15537650883197784, -0.21643990278244019, -0.2287646234035492, 0.4832040071487427, 0.06066133826971054, -0.20849530398845673, -0.1899966597557068, 0.14443296194076538, 0.10553888976573944, -0.3104236125946045, 0.11258744448423386, -0.25400102138519287, -0.16304028034210205, 0.11298254132270813, -0.46144479513168335, 0.06505817174911499, 0.0018864762969315052, 0.30689388513565063, 0.018066463991999626, -0.07159362733364105, 0.05221409723162651, 0.10295420140028, 0.1853000521659851, 0.12123608589172363, -0.024843497201800346, 0.09391763806343079, -0.2642519474029541, 0.1486743688583374, -0.03974035382270813, -0.3090657889842987, 0.07201706618070602, -0.3835577964782715, -0.23691025376319885, 0.16130243241786957, -0.15164814889431, -0.624464750289917, 0.3282896876335144, 0.22890274226665497, -0.1511283963918686, 0.1020202562212944, -0.08935022354125977, 0.42944636940956116, -0.3315599262714386, -0.39523664116859436, 0.1950666308403015, 0.2609778046607971, -0.2932122051715851, 0.5566034913063049, -0.45937082171440125, -0.2679927349090576, -0.07342250645160675, 0.18164338171482086, 0.11658775806427002, 0.05841435492038727, 0.0989983081817627, 0.25223955512046814, -0.24993035197257996, -0.2908374071121216, 0.08032382279634476, 0.19821330904960632, -0.07644358277320862, 0.3644363582134247, -0.037765126675367355, -0.08182266354560852, 0.31695619225502014, -0.14210879802703857, -0.09067122638225555, 0.18423177301883698, -0.08182269334793091, -0.21915753185749054, -0.30413320660591125, -0.07234793901443481, -0.264539897441864, 0.06301653385162354, -0.03893629461526871, 0.21207141876220703, 0.0270236786454916, 0.27141574025154114, -0.3456258773803711, 0.0701422318816185, -0.4667828679084778, 0.08163322508335114, 0.039027392864227295, -0.38245758414268494, 0.11759006232023239, 0.21614216268062592, 0.22844111919403076, 0.07812367379665375, -0.30559051036834717, -0.2351645529270172, 0.14390480518341064, 0.07518638670444489, -0.12036976963281631, 0.09481876343488693, 0.14896227419376373, 0.07235691696405411, -0.25253239274024963, -0.11894915997982025, 0.1370534896850586, -0.11173073947429657, -0.21162231266498566, 0.009598121978342533, 0.4640441834926605, 0.07737590372562408, -0.0637676864862442, -0.27599236369132996, 0.04128965735435486, 0.5703302621841431, -0.05608879029750824, 0.29594919085502625, 0.14552386105060577, -0.12655726075172424, -0.1771693229675293, 0.05659855529665947, -0.0962536633014679, 0.13183259963989258, 0.14225728809833527, -0.03401810675859451, -0.3691309094429016, -0.28510648012161255, 0.4647217094898224, 0.30932727456092834, -0.01832813397049904, 0.048973508179187775, 0.172561913728714, 0.244611456990242, -0.026573162525892258, -0.20172107219696045, 0.08305469155311584, -0.1423751413822174, 0.09260185062885284, 0.02433261275291443, 0.26118770241737366, -0.020041346549987793, 0.18017694354057312, 0.15220078825950623, 0.07030163705348969, -0.3038865923881531, -0.007149983197450638, -0.19959023594856262, -0.07217961549758911, -0.03394037112593651, 0.26192426681518555, -0.05444587394595146, 0.22339951992034912, 0.4318245053291321, 0.012662038207054138, 0.6634849309921265, 0.36409351229667664, 0.3536668121814728, 0.03652512654662132, -0.1445317268371582, 0.03437307849526405, 0.13713183999061584, -0.12600553035736084, 0.2324238121509552, 0.07265273481607437, 0.22959217429161072, -0.34710943698883057, -0.1803542673587799, -0.23999962210655212, 0.32520774006843567, -0.2448253631591797, -0.2968018352985382, 0.040875934064388275, -0.09772741049528122, -0.20381920039653778, 0.1075136661529541, 0.031724754720926285, 0.12467993795871735, 0.35758939385414124, 0.1295313835144043, 0.1456502228975296, 0.021290099248290062, -0.18953493237495422, -0.11722087115049362, 0.29760053753852844, -0.2595524787902832, 0.2350306361913681, 0.22155854105949402, -0.31134986877441406, -0.2771219313144684, -0.06173064559698105, 0.557778000831604, -0.012434802949428558, -0.17146854102611542, 0.17957010865211487, -0.02765636518597603, -0.005154896527528763, 0.05199833959341049, 0.29225900769233704, 0.13759666681289673, 0.19863492250442505, 0.14331698417663574, 0.142866313457489, -0.25957340002059937, -0.10765685141086578, 0.08579136431217194, 0.13589660823345184, -0.1222350001335144, 0.13442835211753845, 0.1287682056427002, -0.19632390141487122, -0.09895917773246765, 0.2336377203464508, -0.48536819219589233, -0.36148887872695923, 0.08524711430072784, -0.42885106801986694, -0.049059782177209854, 0.0015370005276054144, 0.13833169639110565, -0.16493676602840424, 0.4819338917732239, -0.08704981207847595, 0.25300368666648865, -0.17359250783920288, -0.3325843811035156, -0.12392131239175797, -0.003535546362400055, -0.3295140564441681, 0.21820133924484253, -0.08549501746892929, 0.549020528793335, 0.15618295967578888, 0.23459534347057343, 0.25875818729400635, 0.01363716647028923, -0.12042330205440521, 0.3048400282859802, -0.5259200930595398, 0.46759912371635437, 0.37038809061050415, -0.30602189898490906, 0.10303181409835815, -0.27705779671669006, 0.32185351848602295, -0.021059036254882812, 0.09041129797697067, -0.16158081591129303, 0.007687509059906006, 0.4503268301486969, 0.06280548870563507, 0.39571452140808105, 0.06811181455850601, 0.08021847903728485, -0.21151110529899597, -0.37526386976242065, 0.027391135692596436, 0.28230148553848267, 0.012323449365794659, 0.019934669137001038, 0.05300391465425491, 0.6255278587341309, 0.01244099996984005, 0.2504287660121918, -0.09417509287595749, 0.11666587740182877, -0.17783108353614807, -0.3780418634414673, 0.03125835955142975, 0.020632563158869743, 0.11978615075349808, 0.23857036232948303, 0.17404386401176453, 0.3938201665878296, 0.16445203125476837, -0.08198413252830505, -0.710858941078186, -0.10579854249954224, 0.09269336611032486, -0.24174471199512482, -0.2835809886455536, 0.05956997722387314, 0.17559301853179932, -0.36728039383888245, 0.41237518191337585, -0.30582693219184875, -0.05388595163822174, 0.09963211417198181, 0.030064910650253296, -0.3690418004989624, 0.4552600085735321, -0.1068187803030014, -0.2529071271419525, 0.14553911983966827, 0.0199340358376503, 0.06508149206638336, -0.17014452815055847, -0.24163062870502472, -0.308040976524353 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
So this part seems to no longer work: ``` dataset = load_dataset("ascent_kb")["train"] ds_shard = dataset.shard(1, 0, contiguous=True) ds_shard.to_json("ascent_kb-0.jsonl", orient="records", lines=True, force_ascii=False) ```
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
22
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. So this part seems to no longer work: ``` dataset = load_dataset("ascent_kb")["train"] ds_shard = dataset.shard(1, 0, contiguous=True) ds_shard.to_json("ascent_kb-0.jsonl", orient="records", lines=True, force_ascii=False) ```
[ -0.2924043536186218, -0.06871289014816284, -0.16925004124641418, -0.1780155897140503, 0.010945914313197136, -0.14690229296684265, 0.23172514140605927, 0.37073835730552673, -0.056737691164016724, 0.27736979722976685, 0.18171939253807068, 0.5798460841178894, 0.04112900793552399, 0.4446210563182831, -0.15420980751514435, 0.07801511883735657, 0.3918116092681885, -0.17287549376487732, 0.2623390257358551, 0.139639750123024, -0.26174819469451904, 0.37444421648979187, -0.19329217076301575, -0.28187263011932373, 0.002850739983841777, -0.19048278033733368, 0.11382147669792175, 0.14392316341400146, -0.0020976662635803223, -0.32364174723625183, -0.26690927147865295, 0.12363839149475098, -0.0606134794652462, 0.035961590707302094, -0.00011108694161521271, -0.0946035087108612, 0.1096617579460144, 0.04789190739393234, -0.11178164184093475, -0.0005498826503753662, -0.14613832533359528, -0.2647624611854553, 0.2093357890844345, -0.36577388644218445, 0.16864889860153198, 0.23945459723472595, -0.015450725331902504, -0.11520153284072876, 0.6164923906326294, 0.42177334427833557, 0.15772737562656403, 0.20133467018604279, 0.3614911735057831, 0.024430247023701668, -0.18844935297966003, 0.15968048572540283, -0.2931542694568634, -0.0015278570353984833, 0.23747171461582184, 0.30578896403312683, 0.07359586656093597, 0.14811913669109344, 0.11285947263240814, -0.018856558948755264, -0.27546897530555725, -0.07863651216030121, 0.03627852350473404, -0.08465392142534256, 0.04552822932600975, 0.13707175850868225, 0.23670557141304016, -0.08512654155492783, -0.2973181903362274, 0.10882086306810379, -0.1595250815153122, -0.6284829378128052, 0.14361529052257538, 0.075279101729393, -0.16814176738262177, 0.010781850665807724, -0.1829163283109665, -0.30969446897506714, -0.17847323417663574, -0.3950212001800537, 0.05625472962856293, 0.22782285511493683, 0.07299463450908661, 0.25535908341407776, 0.5452370047569275, -0.0394119992852211, -0.06483274698257446, 0.022357547655701637, 0.11205315589904785, -0.237630233168602, -0.3847435414791107, -0.38174381852149963, 0.048145487904548645, -0.4828779995441437, -0.32047492265701294, 0.014888361096382141, 0.11240051686763763, 0.17759281396865845, 0.2922206223011017, 0.20690906047821045, 0.09609004855155945, -0.17733336985111237, -0.12523630261421204, -0.17942674458026886, 0.06307353079319, 0.24745434522628784, -0.12156088650226593, 0.06322059035301208, 0.1841040551662445, -0.4435954988002777, -0.2173689901828766, 0.12980917096138, -0.3318849802017212, -0.17943817377090454, -0.21884188055992126, 0.03463234752416611, 0.1440402865409851, -0.23477603495121002, -0.3323543667793274, 0.18575119972229004, 0.020211610943078995, 0.2750301957130432, 0.09403038024902344, 0.06840316951274872, -0.41911831498146057, -0.11605378240346909, -0.017191611230373383, 0.3461938500404358, -0.006860557943582535, 0.16482993960380554, -0.16912904381752014, 0.23941484093666077, -0.2742866575717926, 0.2889043092727661, -0.000133611261844635, -0.10782098770141602, 0.15444082021713257, -0.20526927709579468, -0.24384111166000366, 0.241865873336792, 0.10889199376106262, 0.05461373180150986, -0.18577778339385986, -0.20859649777412415, -0.2717081308364868, 0.12351144850254059, -0.2411671280860901, -0.2909686863422394, -0.2449927181005478, 0.16751167178153992, 0.019944440573453903, 0.004448343068361282, -0.5599664449691772, 0.2375149130821228, 0.02876276522874832, -0.13217021524906158, -0.09196970611810684, -0.10900554060935974, -0.03456695377826691, -0.2500832676887512, 0.12356869131326675, -0.07337796688079834, -0.24460762739181519, 0.3551996648311615, -0.06429118663072586, 0.060914408415555954, 0.5438931584358215, 0.41100171208381653, -0.17188480496406555, 0.1408793032169342, 0.11722622811794281, 0.004508301615715027, 0.049027375876903534, -0.11264650523662567, 0.10516145825386047, 0.24832704663276672, -0.2752716541290283, -0.17863479256629944, 0.3440631926059723, -0.09749399870634079, 0.10005801916122437, 0.02827802300453186, 0.1474238932132721, 0.2612963914871216, 0.09285067766904831, 0.07248782366514206, -0.4470483958721161, -0.037715934216976166, -0.040059059858322144, 0.20684266090393066, -0.20829515159130096, -0.23850089311599731, 0.05362962931394577, 0.0723792240023613, 0.33549052476882935, -0.13220246136188507, 0.07219357043504715, 0.20257225632667542, 0.08923749625682831, -0.31770575046539307, -0.3276262581348419, 0.16072773933410645, 0.0785544365644455, 0.18360447883605957, 0.1204109638929367, 0.14763250946998596, 0.05614941567182541, 0.07688441872596741, 0.22135156393051147, 0.13023777306079865, -0.02303992584347725, -0.19580331444740295, 0.08644743263721466, 0.1285214126110077, 0.011979859322309494, 0.1991911381483078, -0.061184611171483994, 0.22921086847782135, -0.12086192518472672, -0.06031593680381775, -0.5032052993774414, 0.11802561581134796, -0.08385409414768219, -0.029023107141256332, 0.07279500365257263, 0.008289076387882233, 0.08555573225021362, -0.19084985554218292, -0.0005077579990029335, 0.023129327222704887, 0.13754448294639587, 0.23446764051914215, 0.33442988991737366, -0.0006681382656097412, -0.0703449547290802, 0.034612495452165604, -0.19286753237247467, 0.14037588238716125, -0.027376800775527954, -0.07133994996547699, -0.43871137499809265, 0.6706544756889343, 0.31178605556488037, 0.3179844617843628, 0.24630065262317657, -0.07437147945165634, 0.3698981702327728, 0.022038068622350693, 0.24376773834228516, 0.16782915592193604, 0.10188089311122894, 0.4503937363624573, -0.41425472497940063, -0.0984644889831543, -0.32341015338897705, 0.20964571833610535, 0.7921795845031738, -0.0013657044619321823, -0.2535916268825531, 0.2670761048793793, 0.46908074617385864, -0.33896732330322266, 0.35060468316078186, 0.3842332065105438, 0.500816822052002, 0.1377950757741928, 0.30380988121032715, -0.12503036856651306, -0.2704974412918091, -0.13921082019805908, 0.20667144656181335, -0.33089756965637207, 0.5130155086517334, -0.02437163144350052, 0.15446136891841888, -0.1716313362121582, -0.15305295586585999, -0.535797655582428, 0.1878516674041748, 0.1864558905363083, 0.03630096837878227, 0.04956813156604767, -0.20737460255622864, 0.6716374754905701, -0.12753212451934814, 0.2079858034849167, -0.07351332902908325, -0.3083025813102722, 0.05357774719595909, 0.35107144713401794, -0.2590828239917755, -0.1572422981262207, 0.24033254384994507, -0.05561818182468414, -0.23257146775722504, 0.03322954475879669, -0.08114573359489441, 0.031467363238334656, -0.06213480979204178, 0.10779820382595062, 0.30276286602020264, 0.11038342118263245, -0.06673026084899902, -0.1279657483100891, -0.20602303743362427, -0.09191075712442398, -0.09677480906248093, -0.17806918919086456, -0.14119023084640503, -0.04818766564130783, -0.09943947196006775, 0.18486672639846802, -0.005110550671815872, -0.385942280292511, 0.1802290380001068, 0.05529937893152237, -0.24076305329799652, 0.03392651677131653, -0.08433664590120316, -0.07667160034179688, -0.033124372363090515, -0.35113561153411865, -0.13446111977100372, -0.32305020093917847, 0.6183868050575256, -0.0838884636759758, 0.3645433187484741, -0.3694271743297577, 0.33166083693504333, -0.019236352294683456, 0.03147946670651436, 0.0933297798037529, -0.02451011724770069, -0.4348507821559906, 0.10042694211006165, -0.19666248559951782, -0.22454778850078583, 0.16263820230960846, 0.30600571632385254, 0.5247581005096436, -0.16247917711734772, -0.27678799629211426, 0.19431333243846893, -0.13660094141960144, 0.04381641373038292, -0.07393789291381836, -0.10114461183547974, 0.426997572183609, -0.010457687079906464, -0.2283952236175537, 0.08770068734884262, -0.27520453929901123, 0.20610179007053375, 0.0667174756526947, 0.18580293655395508, -0.08386614918708801, 0.45946457982063293, 0.20717372000217438, 0.5420088171958923, 0.23432928323745728, -0.09794718027114868, 0.006814237684011459, 0.10828356444835663, -0.13221792876720428, -0.13346508145332336, 0.02483835630118847, 0.23308104276657104, -0.2714003026485443, -0.07594328373670578, 0.15369784832000732, -0.21670901775360107, -0.33246973156929016, -0.14619341492652893, 0.34897884726524353, -0.3063802719116211, -0.24340124428272247, 0.31109818816185, 0.17859339714050293, 0.06311552226543427, -0.17801590263843536, -0.10074436664581299, -0.1672210842370987, 0.23272743821144104, -0.12995493412017822, 0.1583576649427414, 0.06195930764079094, -0.281893253326416, -0.6019666790962219, -0.5203379392623901, -0.6230558753013611, 0.4162471890449524, -0.12167283892631531, 0.22188523411750793, -0.1403752565383911, -0.1499873399734497, 0.1962706595659256, -0.49933403730392456, 0.5384429097175598, -0.10809940844774246, -0.1199578195810318, 0.3663625121116638, -0.16412699222564697, -0.19326551258563995, -0.11450302600860596, -0.013986129313707352, 0.2867123782634735, 0.3134901821613312, 0.35347527265548706, -0.3673819899559021, -0.22745472192764282, -0.05550885945558548, -0.12518508732318878, -0.021949876099824905, -0.0548609234392643, -0.19947849214076996, -0.32189348340034485, -0.271553635597229, 0.28183940052986145, -0.025979800149798393, 0.4743148684501648, -0.3291601240634918, -0.3180007338523865, 0.25787973403930664, -0.122039295732975, 0.12230192124843597, 0.10458093881607056, -0.039556603878736496, 0.020247958600521088, 0.14978119730949402, -0.30324915051460266, -0.039693690836429596, 0.37280622124671936, 0.27880796790122986, 0.003600839525461197, -0.07289284467697144, 0.11539975553750992, 0.11449900269508362, 0.2013244926929474, 0.25790470838546753, 0.014654039405286312, 0.47350507974624634, -0.07345003634691238, 0.5622614622116089, 0.0754607766866684, -0.13181446492671967, 0.3313760757446289, 0.20713293552398682, -0.2591468393802643, 0.03118431381881237, 0.31723082065582275, -0.04801467806100845, 0.038044631481170654, -0.04181879013776779, -0.25137561559677124, 0.10472372174263, 0.15229691565036774, 0.19750362634658813, 0.8278830051422119, -0.2019963413476944, 0.11229591071605682, -0.09521396458148956, -0.44058096408843994, 0.4541335999965668, -0.5953914523124695, 0.19504500925540924, 0.04246309772133827, 0.17710711061954498, 0.21289962530136108, 0.12194743752479553, 0.2636283040046692, 0.2876163125038147, -0.17020145058631897, 0.013917122036218643, 0.19448675215244293, -0.29544806480407715, -0.13992954790592194, 0.41015249490737915, 0.1440417319536209, -0.2502894699573517, -0.17097285389900208, 0.04856562614440918, 0.0697980672121048, -0.4481317102909088, 0.06682483851909637, -0.4600710868835449, -0.07278045266866684, 0.03567289561033249, -0.3250691592693329, 0.0162540040910244, 0.08164901286363602, 0.1996130794286728, 0.03364114463329315, -0.068023182451725, 0.1595279425382614, 0.18822498619556427, 0.17229604721069336, -0.005904205143451691, -0.08948338776826859, 0.009704332798719406, -0.34208986163139343, 0.19668565690517426, -0.22292722761631012, -0.2515806555747986, 0.15274707973003387, -0.3919968903064728, -0.22603338956832886, 0.17129796743392944, -0.18355360627174377, -0.5856974124908447, 0.3679863214492798, 0.30619609355926514, -0.07815979421138763, 0.12301743775606155, -0.05775395780801773, 0.4639739394187927, -0.3014637529850006, -0.46939224004745483, 0.15377889573574066, 0.22429130971431732, -0.37160471081733704, 0.48101532459259033, -0.42701268196105957, -0.1894204467535019, -0.019152101129293442, 0.23396292328834534, 0.13761749863624573, 0.13882334530353546, 0.03882412612438202, 0.20208944380283356, -0.18666306138038635, -0.19668135046958923, 0.04776476323604584, 0.17413142323493958, -0.1683238446712494, 0.30553126335144043, 0.06455338001251221, -0.07782524824142456, 0.11290811002254486, -0.009375888854265213, -0.0764990895986557, 0.18277119100093842, -0.07313710451126099, -0.19053968787193298, -0.3428550660610199, -0.03919925540685654, -0.3660552501678467, -0.020431648939847946, -0.04941090941429138, 0.3453710079193115, 0.04329507797956467, 0.23252692818641663, -0.2901464104652405, 0.11530277132987976, -0.4565753638744354, 0.051972150802612305, 0.009157135151326656, -0.31842872500419617, 0.03232137858867645, 0.2244771271944046, 0.18108172714710236, 0.13619652390480042, -0.2490634322166443, -0.1713581383228302, 0.14451678097248077, 0.10085094720125198, -0.04806166887283325, 0.04862164705991745, 0.16995927691459656, 0.06311096996068954, -0.33048495650291443, 0.05425503849983215, 0.06672735512256622, -0.20572715997695923, -0.184089794754982, 0.037118613719940186, 0.30149635672569275, 0.10395553708076477, -0.06788357347249985, -0.37130945920944214, 0.13066993653774261, 0.6364034414291382, -0.10412254929542542, 0.27342796325683594, 0.028710756450891495, -0.1576402485370636, -0.21686328947544098, 0.07902858406305313, -0.16033540666103363, 0.01172829419374466, 0.17646276950836182, -0.04999466985464096, -0.3595896363258362, -0.3135565221309662, 0.40391695499420166, 0.2664424180984497, -0.10481365770101547, 0.2567455470561981, 0.07958628237247467, 0.18073400855064392, -0.06456120312213898, -0.18803641200065613, -0.06013728305697441, -0.15693871676921844, 0.047916095703840256, 0.0422736257314682, 0.29318201541900635, -0.11658498644828796, 0.2481416016817093, 0.11556168645620346, -0.1298007071018219, -0.23119227588176727, -0.03874129429459572, -0.11778800189495087, -0.157279372215271, 0.05296948179602623, 0.2850963771343231, 0.004300238564610481, 0.23046085238456726, 0.3278791308403015, 0.009550973773002625, 0.665399432182312, 0.3873234987258911, 0.30583760142326355, 0.02820802479982376, -0.15025092661380768, 0.06536984443664551, 0.07540728896856308, 0.018612369894981384, 0.21607953310012817, 0.1764744222164154, 0.16985633969306946, -0.30847790837287903, -0.1914720982313156, -0.2519008219242096, 0.2600453495979309, -0.16071030497550964, -0.28279784321784973, 0.07980255782604218, -0.14674590528011322, -0.1969946175813675, 0.1074419915676117, -0.01824450120329857, 0.08508185297250748, 0.42291685938835144, 0.08187830448150635, 0.11469811946153641, 0.005286102183163166, -0.1916244924068451, -0.05850807577371597, 0.2593023180961609, -0.23220743238925934, 0.2745242416858673, 0.2853439748287201, -0.5198243856430054, -0.24351483583450317, -0.027537783607840538, 0.49501878023147583, -0.10460251569747925, -0.08636471629142761, 0.16499696671962738, -0.07403893768787384, 0.02038591541349888, 0.15676847100257874, 0.2962559163570404, 0.2808390259742737, 0.1331610530614853, 0.1348946988582611, 0.0949927270412445, -0.20212595164775848, 0.18254952132701874, 0.0851927250623703, 0.21712908148765564, -0.10118827223777771, 0.06573810428380966, 0.045356400310993195, -0.11484567075967789, -0.11710399389266968, 0.24124708771705627, -0.4492914080619812, -0.4305815100669861, -0.05990559235215187, -0.39575308561325073, 0.0031636040657758713, -0.03920973092317581, 0.10283210128545761, -0.14261773228645325, 0.45730897784233093, -0.2172800451517105, 0.17771491408348083, -0.22321681678295135, -0.36617177724838257, -0.05026533827185631, -0.00609385222196579, -0.26495516300201416, 0.2525739073753357, 0.010461335070431232, 0.5641576647758484, 0.2350585162639618, 0.18571141362190247, 0.23438867926597595, -0.03707557171583176, -0.0195351243019104, 0.3928743600845337, -0.4527530372142792, 0.4442203640937805, 0.4517446756362915, -0.22016209363937378, 0.07121194899082184, -0.2308003306388855, 0.4488602578639984, 0.010512539185583591, 0.05715751647949219, -0.1899859458208084, 0.12619325518608093, 0.3625968396663666, 0.19865985214710236, 0.30971574783325195, 0.12441075593233109, 0.04019450396299362, -0.2416602075099945, -0.40341299772262573, 0.10660846531391144, 0.3626687526702881, 0.0711255595088005, 0.07822569459676743, 0.10494332015514374, 0.6834163665771484, 0.025903163477778435, 0.40224477648735046, -0.023102862760424614, -0.040899112820625305, -0.3055380582809448, -0.40101197361946106, -0.11776167154312134, 0.043737754225730896, 0.1381409466266632, 0.17509879171848297, 0.24744750559329987, 0.3133522570133209, 0.1509333848953247, -0.20470066368579865, -0.7055304050445557, -0.08262766152620316, 0.07734442502260208, -0.13431717455387115, -0.2907370328903198, 0.17220716178417206, 0.1947711855173111, -0.2854382395744324, 0.4837944209575653, -0.3841221332550049, -0.13264766335487366, 0.07441510260105133, 0.08327688276767731, -0.39954689145088196, 0.4590833783149719, -0.28680890798568726, -0.27968671917915344, 0.1357177495956421, 0.0833488330245018, 0.05395045876502991, -0.12049297988414764, -0.3350226581096649, -0.395996630191803 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
If you are using `to_json` without any `num_proc`or `num_proc=1` then essentially it'll fall back to v1 only and I've kept it as it is (the tests were passing as well) > That's a dangerous benchmark as it'd wipe out many other HF things. Why not wipe out: That's because some dataset related files were still left inside `~/.cache/huggingface/datasets` folder. You can wipe off datasets folder inside your cache maybe > dataset = load_dataset("ascent_kb")["train"] > ds_shard = dataset.shard(1, 0, contiguous=True) > ds_shard.to_json("ascent_kb-0.jsonl", orient="records", lines=True, force_ascii=False) I tried this `lama` dataset (1.3M) and it worked fine. Trying it with `ascent_kb` currently, will update it here.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
103
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. If you are using `to_json` without any `num_proc`or `num_proc=1` then essentially it'll fall back to v1 only and I've kept it as it is (the tests were passing as well) > That's a dangerous benchmark as it'd wipe out many other HF things. Why not wipe out: That's because some dataset related files were still left inside `~/.cache/huggingface/datasets` folder. You can wipe off datasets folder inside your cache maybe > dataset = load_dataset("ascent_kb")["train"] > ds_shard = dataset.shard(1, 0, contiguous=True) > ds_shard.to_json("ascent_kb-0.jsonl", orient="records", lines=True, force_ascii=False) I tried this `lama` dataset (1.3M) and it worked fine. Trying it with `ascent_kb` currently, will update it here.
[ -0.31799906492233276, -0.14414118230342865, -0.14399994909763336, -0.13035175204277039, -0.017107538878917694, -0.13699088990688324, 0.15531770884990692, 0.450141966342926, 0.0003434605896472931, 0.3021106421947479, 0.013312987983226776, 0.5163934230804443, 0.1077892929315567, 0.43967312574386597, -0.14136679470539093, 0.06771060079336166, 0.33635392785072327, -0.12245191633701324, 0.2045416533946991, 0.10929690301418304, -0.24604204297065735, 0.4586419463157654, -0.14194843173027039, -0.18923355638980865, 0.03889536112546921, -0.16457749903202057, 0.10241901874542236, 0.21141859889030457, 0.012276513502001762, -0.3202984631061554, -0.2696015238761902, 0.16248521208763123, -0.006002371199429035, 0.08261636644601822, -0.00010732669761637226, -0.05550980567932129, 0.08007420599460602, 0.07771517336368561, -0.15813684463500977, 0.04018833488225937, -0.02951120026409626, -0.22056686878204346, 0.10989467799663544, -0.2802751064300537, 0.11817144602537155, 0.20307514071464539, -0.08313294500112534, -0.040162768214941025, 0.6246066093444824, 0.3768100142478943, 0.20836970210075378, 0.24839597940444946, 0.3148850202560425, 0.014148643240332603, -0.13930979371070862, 0.22829489409923553, -0.2842331528663635, -0.04576185718178749, 0.16688860952854156, 0.28522053360939026, 0.10729186236858368, 0.27232709527015686, 0.16955117881298065, 0.04077473282814026, -0.1197514459490776, -0.08363791555166245, -0.02779044210910797, -0.04828076809644699, 0.05290047079324722, 0.225821852684021, 0.13907669484615326, -0.06147696077823639, -0.3281152844429016, 0.0745323970913887, -0.15484310686588287, -0.6080982089042664, 0.18638035655021667, 0.020573778077960014, -0.14070484042167664, 0.030224114656448364, -0.13288122415542603, -0.3047304153442383, -0.1413254588842392, -0.41448312997817993, -0.003433018922805786, 0.12135327607393265, 0.016532383859157562, 0.19553616642951965, 0.5728573799133301, -0.003301899880170822, -0.14920401573181152, -0.05624181032180786, 0.02275228314101696, -0.2123991996049881, -0.3908548057079315, -0.3925323784351349, 0.0681624636054039, -0.39773550629615784, -0.21177831292152405, -0.04418835788965225, 0.0657229945063591, 0.2672743499279022, 0.19891558587551117, 0.16408103704452515, 0.05934133380651474, -0.13827066123485565, -0.0882033035159111, -0.17678652703762054, 0.16660869121551514, 0.34361082315444946, -0.07976598292589188, 0.05862799659371376, 0.22545824944972992, -0.37550005316734314, -0.21201883256435394, 0.08587288111448288, -0.29392796754837036, -0.30397722125053406, -0.23235748708248138, -0.01464350800961256, 0.15759733319282532, -0.2478693425655365, -0.30715540051460266, 0.2584336996078491, -0.052923306822776794, 0.27493491768836975, 0.08925582468509674, 0.035554755479097366, -0.502405047416687, -0.10516293346881866, -0.05610574036836624, 0.29651376605033875, -0.004901453852653503, 0.267499178647995, -0.1501561999320984, 0.1557624638080597, -0.22531314194202423, 0.28624510765075684, -0.0019180327653884888, -0.05591756850481033, 0.21792662143707275, -0.19138401746749878, -0.27233701944351196, 0.2245839387178421, 0.08648374676704407, 0.0973580852150917, -0.1767292022705078, -0.1006845161318779, -0.30202868580818176, 0.051460571587085724, -0.2571108639240265, -0.3185335099697113, -0.2156149297952652, 0.20249052345752716, 0.005111511796712875, 0.044724274426698685, -0.5399770736694336, 0.28469157218933105, -0.02954324334859848, -0.09659545123577118, -0.11593342572450638, -0.09513728320598602, -0.08170242607593536, -0.18479260802268982, 0.13896988332271576, -0.023900136351585388, -0.2637301981449127, 0.23618382215499878, -0.006714547052979469, -0.03153981268405914, 0.4154694080352783, 0.5156275629997253, -0.2114919126033783, 0.09249147772789001, 0.034884072840213776, -0.0036100223660469055, -0.042140163481235504, -0.16810691356658936, 0.054651953279972076, 0.2822325825691223, -0.24023522436618805, -0.11349429190158844, 0.257207989692688, -0.1630536913871765, 0.06982085108757019, -0.003949147183448076, 0.12623858451843262, 0.24598382413387299, 0.1340661197900772, 0.07198609411716461, -0.4795128405094147, -0.08306846022605896, -0.10447520017623901, 0.18023552000522614, -0.21712063252925873, -0.19464156031608582, 0.026885665953159332, 0.04555990546941757, 0.3350065052509308, -0.22873455286026, 0.09955166280269623, 0.2892613410949707, 0.11617197096347809, -0.2675425410270691, -0.280241459608078, 0.15643310546875, 0.036314040422439575, 0.2260366976261139, -0.056608445942401886, 0.20691613852977753, 0.08825159072875977, 0.013966210186481476, 0.2216176688671112, 0.055858783423900604, -0.018300514668226242, -0.30553004145622253, 0.11173821985721588, 0.14360782504081726, 0.030384361743927002, 0.1460939198732376, -0.08374898135662079, 0.30492669343948364, -0.09302768111228943, -0.03257525712251663, -0.5330527424812317, 0.1683594286441803, -0.0960804745554924, 0.021365761756896973, 0.07427382469177246, 0.001361846923828125, 0.07806243002414703, -0.22330108284950256, -0.02450205385684967, 0.03267310932278633, 0.0829446092247963, 0.20736883580684662, 0.3330236077308655, 0.007464051246643066, 0.01194502878934145, -0.02671032026410103, -0.07308212667703629, 0.02804839238524437, -0.01095657330006361, -0.06639464199542999, -0.41800692677497864, 0.6894197463989258, 0.25539708137512207, 0.30329930782318115, 0.2722257375717163, -0.18768639862537384, 0.34868866205215454, 0.00014762207865715027, 0.22960031032562256, 0.14450979232788086, 0.07383106648921967, 0.4603773355484009, -0.3163036108016968, -0.1138586550951004, -0.31958386301994324, 0.2668372392654419, 0.836895227432251, 0.004633147269487381, -0.3135782480239868, 0.33402636647224426, 0.35518592596054077, -0.37264490127563477, 0.3295317590236664, 0.2239127904176712, 0.47835350036621094, 0.19916442036628723, 0.2792963683605194, -0.058311618864536285, -0.2680049538612366, -0.06790971755981445, 0.20561808347702026, -0.365664005279541, 0.4991495907306671, 0.00696563720703125, 0.13138777017593384, -0.14344239234924316, -0.21336376667022705, -0.5515684485435486, 0.09674400091171265, 0.181314155459404, -0.021598635241389275, 0.021268242970108986, -0.20884846150875092, 0.6212174296379089, -0.08780913054943085, 0.17846213281154633, -0.14269933104515076, -0.3043370544910431, 0.06361732631921768, 0.37510648369789124, -0.19657185673713684, -0.14278550446033478, 0.26366713643074036, -0.002000480890274048, -0.20915213227272034, 0.1084851548075676, -0.1693430244922638, 0.06276128441095352, -0.11313549429178238, 0.10321289300918579, 0.23291587829589844, 0.1373254805803299, -0.08882826566696167, -0.14814095199108124, -0.25870662927627563, -0.1509561687707901, -0.1797395646572113, -0.07996679842472076, -0.21497409045696259, -0.013306887820363045, -0.06856769323348999, 0.24848541617393494, 0.040567077696323395, -0.33175843954086304, 0.24842113256454468, -0.04550774022936821, -0.31751880049705505, 0.034154679626226425, -0.1460818499326706, -0.05232633650302887, -0.010365786030888557, -0.25885212421417236, -0.09250199794769287, -0.32598912715911865, 0.6097224354743958, -0.0823008120059967, 0.31926852464675903, -0.23285488784313202, 0.25081172585487366, 0.06570729613304138, 0.011560356244444847, 0.04054627567529678, -0.14512605965137482, -0.4347541630268097, 0.08715122938156128, -0.24282629787921906, -0.2539726793766022, 0.12256588041782379, 0.30937278270721436, 0.45483309030532837, -0.23326639831066132, -0.3705562353134155, 0.09842852503061295, -0.2136368453502655, 0.17910876870155334, -0.14536556601524353, -0.10084092617034912, 0.43410226702690125, -0.015353331342339516, -0.26852890849113464, 0.0489891916513443, -0.37114647030830383, 0.20704016089439392, 0.08842772245407104, 0.20582643151283264, -0.1007552221417427, 0.4811105728149414, 0.17097222805023193, 0.6273390650749207, 0.26728296279907227, -0.03020239993929863, 0.087575763463974, 0.129827082157135, -0.03790481761097908, -0.19549301266670227, 0.013794777914881706, 0.26766237616539, -0.26545092463493347, 0.02995474264025688, 0.21575435996055603, -0.21645855903625488, -0.25700485706329346, -0.10407903790473938, 0.26712581515312195, -0.23294523358345032, -0.24537421762943268, 0.2673797905445099, 0.2270023673772812, -0.0008940696716308594, -0.13583354651927948, -0.08237623423337936, -0.22407814860343933, 0.17645162343978882, 0.09569139778614044, 0.18505753576755524, 0.00299033522605896, -0.21394512057304382, -0.6616567969322205, -0.42863932251930237, -0.6597470641136169, 0.4384843111038208, -0.13613399863243103, 0.13798217475414276, -0.13862593472003937, -0.11798527836799622, 0.1590052843093872, -0.531870424747467, 0.6081580519676208, -0.10008546710014343, -0.100104421377182, 0.33892956376075745, -0.26335716247558594, -0.20236153900623322, -0.11592236161231995, -0.06298736482858658, 0.16723458468914032, 0.25937455892562866, 0.44085755944252014, -0.4120177924633026, -0.325769305229187, -0.004399068653583527, -0.10783663392066956, -0.0196990929543972, -0.04639435559511185, -0.22860842943191528, -0.33172309398651123, -0.26332059502601624, 0.26380348205566406, -0.11124275624752045, 0.4152642488479614, -0.2940908372402191, -0.34626686573028564, 0.28214019536972046, -0.14003543555736542, 0.0894601047039032, 0.1353716254234314, -0.017604446038603783, 0.02177978865802288, 0.12883859872817993, -0.19523927569389343, -0.02609281986951828, 0.40880733728408813, 0.34317848086357117, -0.05328122898936272, -0.10254380106925964, 0.12509280443191528, 0.10474803298711777, 0.11038870364427567, 0.3064405918121338, 0.07750844210386276, 0.5126323103904724, 0.03496228903532028, 0.6248964667320251, 0.031802061945199966, -0.13031916320323944, 0.3112105131149292, 0.28767651319503784, -0.25488102436065674, 0.10804829001426697, 0.3010531961917877, -0.04019338637590408, 0.0012100562453269958, 0.030642898753285408, -0.11453482508659363, 0.0670090913772583, 0.14578880369663239, 0.15803512930870056, 0.8326014876365662, -0.17024852335453033, 0.12565861642360687, -0.02521442621946335, -0.4747363328933716, 0.4280310869216919, -0.5787538886070251, 0.1684226095676422, -0.02625376731157303, 0.045170895755290985, 0.205143541097641, 0.1318690925836563, 0.2826057970523834, 0.18687275052070618, -0.1294361799955368, 0.04938463494181633, 0.24338166415691376, -0.20290902256965637, -0.22169682383537292, 0.4499373435974121, 0.12571245431900024, -0.3179360330104828, -0.23635774850845337, 0.11663845181465149, 0.05802258104085922, -0.316899836063385, 0.02413785830140114, -0.42734014987945557, -0.050805799663066864, 0.025980941951274872, -0.2273193746805191, 0.03643304109573364, -0.03991871327161789, 0.16068628430366516, 0.12759649753570557, 0.05423176288604736, 0.1508314162492752, 0.05613398551940918, 0.290327787399292, -0.049645695835351944, -0.1179569810628891, 0.013771455734968185, -0.3309500813484192, 0.2547982335090637, -0.19886842370033264, -0.26788175106048584, 0.19658999145030975, -0.39450302720069885, -0.23310914635658264, 0.18676987290382385, -0.2157774120569229, -0.5191754102706909, 0.39756524562835693, 0.19797217845916748, -0.12760761380195618, 0.10838668048381805, -0.0031364948954433203, 0.4687440097332001, -0.2628021538257599, -0.4644499719142914, 0.17866212129592896, 0.16763898730278015, -0.3969387710094452, 0.39704659581184387, -0.3129838705062866, -0.27138736844062805, -0.05417891964316368, 0.2366371750831604, 0.09033927321434021, 0.11473438143730164, 0.07058382034301758, 0.2195768803358078, -0.21256449818611145, -0.2101859450340271, 0.056944116950035095, 0.29704177379608154, -0.18089352548122406, 0.2839077115058899, 0.040595993399620056, -0.12204443663358688, 0.12479153275489807, 0.0779518410563469, -0.05365755409002304, 0.07084725797176361, -0.0808514952659607, -0.19479787349700928, -0.3875216841697693, -0.004872128367424011, -0.3802577257156372, 0.014379043132066727, -0.013712702319025993, 0.37488701939582825, -0.02571139857172966, 0.29605454206466675, -0.35077324509620667, 0.07438918203115463, -0.39494383335113525, 0.0612134225666523, -0.0635877177119255, -0.3585387170314789, 0.12930426001548767, 0.2045782059431076, 0.2137676477432251, 0.14770305156707764, -0.3479185402393341, -0.2185966968536377, 0.03320656716823578, 0.09045623987913132, -0.09486788511276245, -0.01225762814283371, 0.21472060680389404, 0.12493778765201569, -0.3380591571331024, 0.024137767031788826, 0.17001977562904358, -0.1974588930606842, -0.1864558309316635, 0.03793402388691902, 0.3237561583518982, -0.02074848860502243, -0.06985871493816376, -0.32993870973587036, 0.19150406122207642, 0.5910074710845947, -0.1351632922887802, 0.22442729771137238, -0.0959417000412941, -0.1737823635339737, -0.17815019190311432, 0.1388251930475235, -0.1251784712076187, 0.096859872341156, 0.1164976954460144, -0.0670635849237442, -0.34322041273117065, -0.29132530093193054, 0.4115285575389862, 0.2077990174293518, -0.07061441987752914, 0.19000333547592163, 0.07427121698856354, 0.2084980607032776, -0.08005020022392273, -0.13208673894405365, -0.038432080298662186, -0.25534164905548096, 0.06735691428184509, 0.05191551893949509, 0.3172958195209503, -0.03586530312895775, 0.3195808529853821, 0.09755552560091019, -0.13928470015525818, -0.26005297899246216, -0.0959414541721344, -0.10658015310764313, -0.15150418877601624, 0.087530717253685, 0.3980970084667206, 0.03531486913561821, 0.25383004546165466, 0.3267616033554077, 0.04388709366321564, 0.5371971726417542, 0.2865910232067108, 0.44969210028648376, 0.03604035824537277, -0.24413767457008362, 0.03790835291147232, 0.12483188509941101, -0.0011450573801994324, 0.20450928807258606, 0.16996705532073975, 0.1541273146867752, -0.3096016049385071, -0.315644770860672, -0.20828931033611298, 0.3445785939693451, -0.1954043209552765, -0.3231651484966278, 0.04972171038389206, -0.14479756355285645, -0.17675334215164185, 0.12534663081169128, -0.00756453350186348, 0.08433465659618378, 0.45240694284439087, 0.08539488911628723, 0.06564988195896149, -0.08280446380376816, -0.2139212191104889, -0.0642223209142685, 0.31090018153190613, -0.15963707864284515, 0.3385990262031555, 0.2221408486366272, -0.4177486300468445, -0.22814542055130005, 0.048385586589574814, 0.4244050979614258, -0.14050711691379547, -0.11103887856006622, 0.1611863523721695, -0.02484145015478134, 0.07438802719116211, 0.18814042210578918, 0.24133485555648804, 0.21398988366127014, 0.06983077526092529, 0.16662287712097168, 0.11429208517074585, -0.23459409177303314, 0.060978952795267105, -0.03401884064078331, 0.16735899448394775, -0.12576992809772491, 0.11161243915557861, 0.057480692863464355, -0.06570659577846527, -0.11905424296855927, 0.2082633376121521, -0.3835083544254303, -0.35679566860198975, -0.06357839703559875, -0.4456637501716614, 0.028554324060678482, 0.011601295322179794, 0.13699491322040558, -0.15364792943000793, 0.45358073711395264, -0.14081864058971405, 0.12280607968568802, -0.19249539077281952, -0.2903195023536682, -0.08427933603525162, -0.04666658490896225, -0.25667333602905273, 0.28149348497390747, 0.03669368103146553, 0.5101884007453918, 0.2687547504901886, 0.1359010934829712, 0.32021433115005493, -0.027111832052469254, 0.0446912944316864, 0.2680882215499878, -0.5114455819129944, 0.4647405445575714, 0.34470945596694946, -0.19947537779808044, 0.09206850826740265, -0.24621599912643433, 0.4545119106769562, 0.07312697917222977, 0.06038280576467514, -0.12769605219364166, 0.1599859893321991, 0.33812129497528076, 0.08348359167575836, 0.309495210647583, 0.1294529289007187, -0.0015192553400993347, -0.23506060242652893, -0.42706578969955444, 0.16818057000637054, 0.32881465554237366, 0.012397265993058681, 0.05448489263653755, 0.06875231862068176, 0.7055355310440063, 0.08681602776050568, 0.2540539801120758, -0.09817613661289215, 0.09271525591611862, -0.186124786734581, -0.39853721857070923, -0.15100422501564026, 0.22256016731262207, 0.1052343025803566, 0.16398495435714722, 0.274809330701828, 0.38707149028778076, 0.2336350679397583, -0.16680237650871277, -0.7379539608955383, -0.07103017717599869, 0.2021295130252838, -0.13676652312278748, -0.24688322842121124, 0.20866848528385162, 0.2624931037425995, -0.22712814807891846, 0.28463441133499146, -0.4500252902507782, -0.07786747813224792, 0.08522442728281021, 0.05138678848743439, -0.4185861349105835, 0.41876307129859924, -0.30710068345069885, -0.2215169072151184, 0.07284529507160187, 0.11063644289970398, 0.08718237280845642, -0.16014441847801208, -0.3252430856227875, -0.33241158723831177 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
I don't think the issue has anything to do with your work, @bhavitvyamalik. I forgot to mention I tested to see the same problem with the latest datasets release. Interesting, I tried your suggestion. This: ``` python -c 'import datasets; ds="lama"; dataset = datasets.load_dataset(ds)["train"]; \ dataset.shard(1, 0, contiguous=True).to_json(f"{ds}-0.jsonl", orient="records", lines=True, force_ascii=False)' ``` works fine and takes just a few GBs to complete. this on the other hand blows up memory-wise: ``` python -c 'import datasets; ds="ascent_kb"; dataset = datasets.load_dataset(ds)["train"]; \ dataset.shard(1, 0, contiguous=True).to_json(f"{ds}-0.jsonl", orient="records", lines=True, force_ascii=False)' ``` and I have to kill it before it uses up all RAM. (I have 128GB of it, so it should be more than enough)
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
111
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. I don't think the issue has anything to do with your work, @bhavitvyamalik. I forgot to mention I tested to see the same problem with the latest datasets release. Interesting, I tried your suggestion. This: ``` python -c 'import datasets; ds="lama"; dataset = datasets.load_dataset(ds)["train"]; \ dataset.shard(1, 0, contiguous=True).to_json(f"{ds}-0.jsonl", orient="records", lines=True, force_ascii=False)' ``` works fine and takes just a few GBs to complete. this on the other hand blows up memory-wise: ``` python -c 'import datasets; ds="ascent_kb"; dataset = datasets.load_dataset(ds)["train"]; \ dataset.shard(1, 0, contiguous=True).to_json(f"{ds}-0.jsonl", orient="records", lines=True, force_ascii=False)' ``` and I have to kill it before it uses up all RAM. (I have 128GB of it, so it should be more than enough)
[ -0.33106377720832825, 0.053286582231521606, -0.11889766156673431, -0.002953939139842987, 0.11270042508840561, -0.08045148849487305, 0.15504732728004456, 0.4194727838039398, -0.1031179428100586, 0.2635864317417145, 0.071085624396801, 0.617632269859314, 0.05826101079583168, 0.3871387541294098, -0.267494797706604, 0.09896929562091827, 0.3231614828109741, -0.15534940361976624, 0.24301834404468536, 0.13471008837223053, -0.32861021161079407, 0.32994940876960754, -0.14741316437721252, -0.28684526681900024, -0.02171892672777176, -0.17281997203826904, 0.10804034769535065, 0.07837221026420593, -0.060134828090667725, -0.3850758671760559, -0.23817190527915955, 0.07512187957763672, -0.016793226823210716, 0.09475939720869064, -0.0001100400259019807, -0.12358405441045761, 0.11132676899433136, 0.0367758646607399, -0.22369876503944397, 0.04841337352991104, -0.10154542326927185, -0.31653690338134766, 0.1843482404947281, -0.3536357283592224, 0.13368946313858032, 0.1544053554534912, -0.0719672217965126, -0.1872762143611908, 0.5510615110397339, 0.41164055466651917, 0.16220781207084656, 0.28502169251441956, 0.2814377248287201, 0.07651189714670181, -0.2107352614402771, 0.07314018160104752, -0.31710904836654663, -0.01748458296060562, 0.24936383962631226, 0.2606087028980255, 0.14578109979629517, 0.18185316026210785, 0.06907059252262115, 0.0646219253540039, -0.14405813813209534, -0.16685454547405243, -0.06682205945253372, -0.12396764755249023, 0.07019788771867752, 0.11314774304628372, 0.2822314202785492, -0.1736125648021698, -0.3538963794708252, -0.016221817582845688, -0.09614618867635727, -0.5241094827651978, 0.19819685816764832, 0.17368878424167633, -0.1597827672958374, 0.012802544981241226, -0.20376786589622498, -0.23949840664863586, -0.12330923974514008, -0.25686901807785034, -0.0215604305267334, 0.08385208994150162, 0.03948945924639702, 0.24004366993904114, 0.4835747182369232, -0.13306887447834015, -0.0055788541212677956, -0.13946238160133362, 0.12891027331352234, -0.19135530292987823, -0.4621749520301819, -0.3736397325992584, 0.10501384735107422, -0.41906458139419556, -0.2842438220977783, -0.04026611149311066, 0.03278433158993721, 0.22514697909355164, 0.24034512042999268, 0.17087635397911072, 0.2568032443523407, -0.1856669932603836, -0.16223585605621338, -0.048856839537620544, 0.12157922983169556, 0.24459229409694672, -0.15102341771125793, 0.014597427099943161, 0.16703760623931885, -0.32313472032546997, -0.13391470909118652, 0.06673093140125275, -0.268158495426178, -0.21174876391887665, -0.2929854691028595, 0.08174843341112137, 0.06249111890792847, -0.19889700412750244, -0.28801554441452026, 0.22562894225120544, -0.07081592082977295, 0.3838851749897003, 0.06595387309789658, 0.05038176476955414, -0.48988789319992065, -0.13141442835330963, 0.009328966960310936, 0.27797791361808777, -0.07120046764612198, 0.20466750860214233, -0.08625094592571259, 0.17242656648159027, -0.2195066660642624, 0.24100430309772491, -0.010772570967674255, -0.08436267077922821, 0.220344677567482, -0.315260112285614, -0.30431050062179565, 0.21037717163562775, 0.1413024663925171, 0.17206908762454987, -0.25596562027931213, -0.13263453543186188, -0.27874428033828735, 0.1174658015370369, -0.19001361727714539, -0.29108619689941406, -0.2078191339969635, 0.16353394091129303, 0.019225168973207474, 0.09226309508085251, -0.5980356335639954, 0.2127639204263687, 0.04720377177000046, 0.022445086389780045, -0.17712950706481934, -0.12432453036308289, -0.06403547525405884, -0.22732968628406525, 0.09947530925273895, 0.02102445811033249, -0.2761957347393036, 0.28613248467445374, -0.08058051764965057, 0.08803187310695648, 0.4667838215827942, 0.550427258014679, -0.15957453846931458, 0.209142804145813, 0.07686079293489456, -0.08574797958135605, -0.018960870802402496, -0.1272047609090805, -0.0006387177854776382, 0.25070920586586, -0.21185341477394104, -0.11709001660346985, 0.2010260820388794, -0.05185871943831444, 0.14103484153747559, -0.035754017531871796, 0.2463090568780899, 0.3475115895271301, 0.059558168053627014, 0.16184988617897034, -0.46204155683517456, -0.11104679852724075, -0.10290135443210602, 0.18920010328292847, -0.2608698606491089, -0.18996569514274597, 0.02512305974960327, 0.04557786509394646, 0.28482699394226074, -0.26433345675468445, 0.13738341629505157, 0.32170283794403076, 0.14992740750312805, -0.27292776107788086, -0.317621111869812, 0.09550385922193527, -0.012173518538475037, 0.24515816569328308, 0.1573701947927475, 0.16401591897010803, -0.10432541370391846, 0.08700866997241974, 0.2357940375804901, 0.11410870403051376, -0.03671368584036827, -0.16227856278419495, 0.07743125408887863, 0.1584298312664032, 0.020082950592041016, 0.15444478392601013, 0.04209544137120247, 0.34618669748306274, -0.11634005606174469, -0.047247666865587234, -0.4837477207183838, 0.13133324682712555, -0.04563698172569275, -0.04692092910408974, 0.190890833735466, -0.04526009410619736, 0.09956464171409607, -0.19027574360370636, -0.07019932568073273, -0.04239340126514435, 0.21154135465621948, 0.20646865665912628, 0.27856549620628357, -0.027026116847991943, -0.021200241521000862, 0.06366270780563354, -0.0867893323302269, 0.16492865979671478, 0.0771489068865776, -0.09397677332162857, -0.3989337086677551, 0.7278904914855957, 0.3227127194404602, 0.34198400378227234, 0.28684818744659424, -0.13113845884799957, 0.34731531143188477, 0.05949362739920616, 0.2929927408695221, 0.09986263513565063, 0.07611062377691269, 0.6144387125968933, -0.23308062553405762, 0.028145231306552887, -0.3150736689567566, 0.2531760036945343, 0.8399649858474731, 0.05229850485920906, -0.28264501690864563, 0.3234308063983917, 0.3121029734611511, -0.3455232083797455, 0.3695412874221802, 0.4283810555934906, 0.5890202522277832, 0.1632080376148224, 0.20889496803283691, -0.057854875922203064, -0.19929862022399902, -0.10690279304981232, 0.26575368642807007, -0.19534943997859955, 0.4631063640117645, -0.04451923072338104, 0.20792561769485474, -0.18130438029766083, -0.11442627012729645, -0.4405669569969177, 0.1542707234621048, 0.2759934365749359, 0.008302252739667892, 0.05350766330957413, -0.18474499881267548, 0.5326282382011414, -0.09720630943775177, 0.20704779028892517, -0.022961191833019257, -0.33392879366874695, -0.02789202705025673, 0.3366345167160034, -0.24769721925258636, -0.16295787692070007, 0.17205063998699188, -0.06538058817386627, -0.1573144793510437, 0.02023552730679512, -0.05178685113787651, -0.013920983299612999, -0.13558083772659302, 0.08114594221115112, 0.3481467664241791, 0.10898923873901367, -0.01012461818754673, -0.08104095607995987, -0.21390016376972198, -0.13903383910655975, -0.016992855817079544, -0.13188891112804413, -0.11351697146892548, 0.06152811646461487, -0.1370723396539688, 0.1688474416732788, -0.004664521664381027, -0.3534412086009979, 0.2000759392976761, 0.060604028403759, -0.250900536775589, 0.04053521156311035, -0.06976679712533951, -0.09793701022863388, 0.022578351199626923, -0.33069661259651184, -0.14237254858016968, -0.3559039533138275, 0.5832988619804382, -0.09056296944618225, 0.33298295736312866, -0.3222195506095886, 0.30766740441322327, -0.05314004793763161, 0.056525446474552155, 0.07740601152181625, -0.08713904768228531, -0.38234594464302063, 0.14729487895965576, -0.18464472889900208, -0.25921058654785156, 0.11800336837768555, 0.29224520921707153, 0.5043194890022278, -0.08420975506305695, -0.31355541944503784, 0.1847914159297943, -0.29024600982666016, 0.16890932619571686, -0.06633602827787399, -0.006104541942477226, 0.3017919659614563, 0.013541705906391144, -0.2165834754705429, 0.05238071829080582, -0.30149346590042114, 0.03306081146001816, 0.07088334113359451, 0.11273085325956345, -0.13874247670173645, 0.4249425232410431, 0.24234256148338318, 0.5345094799995422, 0.37546712160110474, -0.10059529542922974, 0.09345836937427521, 0.17674480378627777, -0.04811979457736015, -0.21962162852287292, -0.07617659866809845, 0.20396675169467926, -0.33401355147361755, -0.0224558487534523, 0.15656745433807373, -0.14475566148757935, -0.3076191544532776, -0.12799611687660217, 0.3193787932395935, -0.20106789469718933, -0.3018570840358734, 0.2822781205177307, 0.2072676718235016, 0.1311338096857071, -0.06980431079864502, -0.07227840274572372, -0.22605662047863007, 0.13271450996398926, -0.11053489148616791, 0.0033685266971588135, 0.00034718960523605347, -0.28562071919441223, -0.6600705981254578, -0.3787248730659485, -0.6654985547065735, 0.3799852132797241, -0.14301930367946625, 0.2963310480117798, 0.004501130431890488, -0.0941447913646698, 0.22444406151771545, -0.40221571922302246, 0.5841205716133118, -0.0730368122458458, -0.16008377075195312, 0.3255021274089813, -0.12007948011159897, -0.36628302931785583, -0.06126878410577774, -0.08392858505249023, 0.29819363355636597, 0.28449493646621704, 0.3930663764476776, -0.37970423698425293, -0.28648242354393005, -0.10849757492542267, 0.03867269679903984, -0.001032218337059021, -0.035472895950078964, -0.19808264076709747, -0.34937381744384766, -0.285377562046051, 0.23972421884536743, -0.01861542835831642, 0.4596893787384033, -0.23050443828105927, -0.33385220170021057, 0.22785910964012146, -0.06643462181091309, 0.12977835536003113, 0.12475334107875824, -0.003972319886088371, 0.013034799136221409, 0.3826673626899719, -0.31611281633377075, -0.11696718633174896, 0.49505630135536194, 0.3796112537384033, -0.060599666088819504, -0.23890605568885803, 0.052219100296497345, 0.1422109603881836, 0.12828552722930908, 0.30296337604522705, 0.04326191172003746, 0.41474878787994385, -0.16622929275035858, 0.5780262351036072, -0.011387449689209461, -0.14881406724452972, 0.3451918959617615, 0.2059941440820694, -0.2569699287414551, -0.08707980066537857, 0.22379589080810547, 0.0039661359041929245, 0.05889171361923218, 0.03130873292684555, -0.2539243698120117, 0.09450234472751617, 0.10544026643037796, 0.21251705288887024, 0.8225828409194946, -0.2375844568014145, 0.17731179296970367, -0.015719212591648102, -0.4749235510826111, 0.4918373227119446, -0.5283206105232239, 0.16027656197547913, -0.024853847920894623, 0.18910297751426697, 0.29682236909866333, 0.10448965430259705, 0.27270662784576416, 0.2555985748767853, -0.11154720932245255, 0.10148211568593979, 0.18783657252788544, -0.3916536867618561, -0.20747138559818268, 0.46501296758651733, 0.020593537017703056, -0.36257272958755493, -0.2812383770942688, 0.0969838798046112, 0.035762034356594086, -0.45329034328460693, 0.09307300299406052, -0.36820393800735474, -0.07159580290317535, 0.07145316898822784, -0.3735376000404358, 0.017953995615243912, -0.0033210061956197023, 0.2713348865509033, 0.03410886973142624, -0.0128212571144104, 0.23034927248954773, 0.1143319308757782, 0.1469963937997818, -0.0017202869057655334, -0.09095658361911774, 0.037563566118478775, -0.3695870637893677, 0.23722535371780396, -0.09828247874975204, -0.3128052353858948, 0.1483701914548874, -0.33848094940185547, -0.2541531026363373, 0.12939906120300293, -0.1559794694185257, -0.48222851753234863, 0.3902972340583801, 0.33681654930114746, -0.12543930113315582, 0.002847344148904085, -0.19341309368610382, 0.3994542062282562, -0.2543782591819763, -0.4531446397304535, 0.16744929552078247, 0.265516459941864, -0.29292595386505127, 0.5679170489311218, -0.4605657756328583, -0.1963908076286316, -0.03403659537434578, 0.244953453540802, 0.09036530554294586, 0.11142508685588837, 0.1014803871512413, 0.24851973354816437, -0.2735103964805603, -0.20811942219734192, 0.15435755252838135, 0.1651614010334015, -0.15527257323265076, 0.3499770760536194, 0.07453769445419312, -0.03102165460586548, 0.12658794224262238, 0.007568374276161194, -0.14448362588882446, 0.051082152873277664, -0.02451913058757782, -0.18206170201301575, -0.33054205775260925, -0.060251131653785706, -0.304287314414978, -0.06659676134586334, -0.02866148017346859, 0.2630040645599365, 0.023209108039736748, 0.24160060286521912, -0.30032986402511597, 0.13029177486896515, -0.4870459735393524, 0.16754724085330963, 0.008323230780661106, -0.3141838014125824, 0.02584199234843254, 0.16205090284347534, 0.1575762778520584, 0.09328192472457886, -0.264015793800354, -0.1892794668674469, 0.1252308487892151, 0.1011248454451561, -0.026654187589883804, -0.06838580220937729, 0.2066023349761963, -0.01758395880460739, -0.26083165407180786, -0.09260968863964081, 0.07865247130393982, -0.050359707325696945, -0.2516942024230957, 0.0707889050245285, 0.22996622323989868, -0.08914213627576828, -0.03888281062245369, -0.25658079981803894, 0.05384061112999916, 0.6252660751342773, -0.038215115666389465, 0.2988351583480835, 0.07704068720340729, -0.1568782925605774, -0.2659527361392975, 0.07201141864061356, -0.1944669932126999, 0.11078524589538574, 0.13861235976219177, -0.09449529647827148, -0.3478189706802368, -0.19297148287296295, 0.36607640981674194, 0.37929341197013855, -0.14062358438968658, 0.18626384437084198, 0.15790116786956787, 0.20202666521072388, -0.08438359200954437, -0.2806980609893799, -0.02417716756463051, -0.2135351151227951, 0.06780052185058594, 0.06088262051343918, 0.27263498306274414, -0.12040860950946808, 0.23477743566036224, 0.011106327176094055, -0.04274512454867363, -0.2181045413017273, -0.02292061783373356, -0.0785783976316452, -0.059571437537670135, 0.016565866768360138, 0.30634334683418274, 0.05039495229721069, 0.21801148355007172, 0.46585285663604736, 0.032622795552015305, 0.5707328915596008, 0.40811431407928467, 0.30840274691581726, -0.01571992039680481, -0.2328062802553177, 0.12580856680870056, 0.09008938074111938, -0.034864991903305054, 0.21260535717010498, 0.1514609456062317, 0.08276849240064621, -0.29397889971733093, -0.1915389448404312, -0.1686079353094101, 0.22236552834510803, -0.17225629091262817, -0.2779191732406616, 0.10854798555374146, -0.0896572694182396, -0.14224274456501007, 0.19616132974624634, -0.06079040840268135, -0.016606487333774567, 0.4147152006626129, 0.14113888144493103, 0.10720187425613403, -0.13039924204349518, -0.15306350588798523, -0.019605044275522232, 0.2958731949329376, -0.20971040427684784, 0.22363542020320892, 0.17314159870147705, -0.45662805438041687, -0.32476332783699036, 0.05837534740567207, 0.5351482629776001, -0.039535343647003174, -0.07481490075588226, 0.1901240348815918, -0.037406355142593384, -0.042069725692272186, 0.10440918803215027, 0.29025182127952576, 0.12246982753276825, 0.12779612839221954, 0.13669002056121826, 0.08084055036306381, -0.21987098455429077, 0.012044146656990051, 0.12601619958877563, 0.10101334750652313, -0.1806788295507431, 0.06619864702224731, 0.0663893073797226, -0.14321324229240417, -0.12683528661727905, 0.18478518724441528, -0.4264123737812042, -0.2855983078479767, 0.09798575937747955, -0.42512714862823486, 0.004143824800848961, -0.05467214435338974, 0.11312174797058105, -0.15141932666301727, 0.44785091280937195, -0.08440464735031128, 0.18271808326244354, -0.2565368115901947, -0.33612000942230225, -0.08498739451169968, -0.07339204102754593, -0.3841698467731476, 0.24176663160324097, 0.05172836780548096, 0.5271101593971252, 0.1477963924407959, 0.20072095096111298, 0.18467947840690613, 0.1194421648979187, -0.04533062130212784, 0.33918020129203796, -0.5196121335029602, 0.35781610012054443, 0.42611873149871826, -0.20197893679141998, 0.08692443370819092, -0.3576394319534302, 0.44390660524368286, -0.0101109454408288, 0.03739079833030701, -0.1740569919347763, 0.14649152755737305, 0.29144781827926636, 0.21497927606105804, 0.38140901923179626, 0.18939296901226044, 0.07499712705612183, -0.1914944350719452, -0.4280167818069458, 0.046207718551158905, 0.29729315638542175, 0.11469733715057373, 0.12804833054542542, 0.1054033637046814, 0.6555476188659668, -0.07088221609592438, 0.3270007073879242, -0.07849898189306259, 0.03608312830328941, -0.2951468825340271, -0.3608563244342804, -0.07071077078580856, 0.11219290643930435, 0.059826068580150604, 0.2533504366874695, 0.12784114480018616, 0.3280218541622162, 0.11564547568559647, -0.17365095019340515, -0.7543133497238159, -0.10554830729961395, 0.09099961072206497, -0.1500270962715149, -0.3561311662197113, 0.1618303805589676, 0.2112741470336914, -0.3187362849712372, 0.2956787347793579, -0.471887469291687, -0.04969819262623787, 0.1391642540693283, 0.023686794564127922, -0.4537079334259033, 0.45393621921539307, -0.24271830916404724, -0.20694109797477722, 0.11872342228889465, 0.16757884621620178, 0.000027958303689956665, -0.22213368117809296, -0.1927468478679657, -0.35297417640686035 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
> That's because some dataset related files were still left inside ~/.cache/huggingface/datasets folder. You can wipe off datasets folder inside your cache maybe I think recent datasets added a method that will print out the path for all the different components for a given dataset, I can't recall the name though. It was when we were discussing a janitor program to clear up space selectively.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
65
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. > That's because some dataset related files were still left inside ~/.cache/huggingface/datasets folder. You can wipe off datasets folder inside your cache maybe I think recent datasets added a method that will print out the path for all the different components for a given dataset, I can't recall the name though. It was when we were discussing a janitor program to clear up space selectively.
[ -0.3668893277645111, -0.05187518149614334, -0.18756063282489777, 0.04487030953168869, -0.012330818921327591, -0.04923117160797119, 0.12094736099243164, 0.41569364070892334, -0.029711633920669556, 0.21671193838119507, 0.012233531102538109, 0.6640316843986511, 0.17697574198246002, 0.47945642471313477, -0.17602379620075226, 0.122886523604393, 0.33498820662498474, -0.039447709918022156, 0.14919976890087128, 0.17189528048038483, -0.3216511309146881, 0.47688111662864685, -0.14995309710502625, -0.12820303440093994, 0.034793805330991745, -0.2699888348579407, 0.07072120904922485, 0.1002662181854248, -0.02713705785572529, -0.4087197482585907, -0.32447269558906555, 0.18968388438224792, -0.08382266759872437, 0.08522319793701172, -0.00010741160804172978, -0.07672081142663956, 0.10168596357107162, 0.0356820747256279, -0.2936444878578186, 0.013280496001243591, -0.12117777019739151, -0.2697845697402954, 0.29787084460258484, -0.3236616253852844, 0.16902050375938416, 0.07253722846508026, 0.011252250522375107, -0.20961390435695648, 0.47715872526168823, 0.315714955329895, 0.22188891470432281, 0.3121778666973114, 0.2859034538269043, 0.011799987405538559, -0.27835023403167725, 0.21999862790107727, -0.28068670630455017, -0.184479758143425, 0.31765496730804443, 0.2874943017959595, 0.1142708957195282, 0.22180898487567902, 0.18706375360488892, 0.09443829953670502, -0.019697949290275574, -0.14769096672534943, -0.08851420134305954, -0.19304001331329346, 0.10551881045103073, 0.16313746571540833, 0.4300546944141388, -0.09911876171827316, -0.3923317790031433, -0.04622642695903778, -0.14655360579490662, -0.3872925341129303, 0.2474992573261261, 0.16268779337406158, -0.10282275080680847, 0.02358783408999443, -0.2173244059085846, -0.33051860332489014, -0.15248042345046997, -0.3682331442832947, 0.0592513307929039, 0.11109554767608643, -0.045516062527894974, 0.20176121592521667, 0.46280866861343384, 0.025887511670589447, -0.016308337450027466, -0.06592363119125366, 0.034381791949272156, -0.24173887073993683, -0.32323312759399414, -0.3869551420211792, 0.10517780482769012, -0.24464616179466248, -0.2676282227039337, 0.03831535577774048, -0.009457587264478207, 0.18992263078689575, 0.14110791683197021, 0.14182937145233154, 0.21251238882541656, -0.16346581280231476, -0.12320048362016678, -0.21375103294849396, 0.2033352553844452, 0.21845440566539764, -0.09781142324209213, -0.01393922045826912, 0.09508561342954636, -0.2746012806892395, -0.2830779254436493, 0.07681257277727127, -0.1437951922416687, -0.2528627812862396, -0.34220409393310547, -0.14794288575649261, 0.1991291344165802, -0.2995980679988861, -0.29457882046699524, 0.21869412064552307, -0.016775140538811684, 0.39728498458862305, 0.04467616230249405, 0.03374910354614258, -0.5110015273094177, -0.06709042191505432, -0.0010366486385464668, 0.29529255628585815, -0.09645101428031921, 0.17212028801441193, -0.16631872951984406, 0.22001686692237854, -0.16579827666282654, 0.22719785571098328, -0.11827176809310913, -0.08919263631105423, 0.2672255039215088, -0.14475060999393463, -0.31840741634368896, 0.15527509152889252, 0.15861909091472626, 0.15909883379936218, -0.18281050026416779, -0.039452411234378815, -0.33206674456596375, 0.017986293882131577, -0.1897779107093811, -0.2794695198535919, -0.26723361015319824, 0.18514437973499298, 0.03833063691854477, 0.06949419528245926, -0.3972390592098236, 0.19408105313777924, -0.0538923516869545, -0.04825044050812721, -0.08217865973711014, -0.03219505399465561, -0.0258883498609066, -0.21940825879573822, 0.03713412582874298, 0.03676397353410721, -0.34775057435035706, 0.23405671119689941, 0.012277580797672272, -0.029661819338798523, 0.3377487361431122, 0.49125978350639343, -0.17946124076843262, 0.2619769871234894, 0.000014819204807281494, -0.1348097324371338, -0.07142602652311325, -0.22455358505249023, 0.11427848041057587, 0.29632145166397095, -0.2640392780303955, -0.12722137570381165, 0.29328930377960205, -0.06668579578399658, -0.0028552962467074394, -0.08980722725391388, 0.13343088328838348, 0.28403133153915405, 0.012806665152311325, 0.18703553080558777, -0.3933243453502655, -0.139078751206398, -0.060557663440704346, 0.02911018580198288, -0.24073012173175812, -0.21103435754776, -0.010530561208724976, 0.038717105984687805, 0.2821516990661621, -0.22947752475738525, 0.10049017518758774, 0.34944969415664673, 0.16880270838737488, -0.19667880237102509, -0.2229459136724472, 0.11016783863306046, -0.057922616600990295, 0.18470197916030884, 0.09974180161952972, 0.08054695278406143, -0.0016173124313354492, 0.01597122848033905, 0.17221400141716003, 0.0789167508482933, -0.05850619450211525, -0.3143788278102875, 0.09378682076931, 0.316318154335022, 0.10646615922451019, 0.09141212701797485, -0.10540159046649933, 0.37381041049957275, 0.057934343814849854, 0.018656721338629723, -0.525416910648346, 0.048632338643074036, -0.0468301996588707, 0.06187094748020172, 0.16228120028972626, -0.020734362304210663, 0.10485288500785828, -0.36290547251701355, -0.0008519068360328674, 0.07474789768457413, 0.14366686344146729, 0.24160440266132355, 0.3764896094799042, 0.0001302659511566162, 0.037631284445524216, 0.009943198412656784, 0.002141673117876053, 0.04454192519187927, 0.0167403444647789, 0.0013443976640701294, -0.5137203931808472, 0.6323002576828003, 0.1022331714630127, 0.3691340684890747, 0.309989869594574, -0.13108603656291962, 0.3285078704357147, 0.07036647200584412, 0.22120121121406555, 0.09646274149417877, 0.017392177134752274, 0.5190311670303345, -0.09636101871728897, -0.025973143056035042, -0.37578287720680237, 0.29989364743232727, 0.793725848197937, 0.08599434792995453, -0.2872050404548645, 0.3001900017261505, 0.2871585488319397, -0.3234094977378845, 0.33273810148239136, 0.28902342915534973, 0.513200581073761, 0.24067118763923645, 0.22363874316215515, -0.1140681579709053, -0.19616200029850006, -0.10502297431230545, 0.2541937530040741, -0.2116101235151291, 0.509168803691864, -0.07800022512674332, 0.13494081795215607, -0.13723506033420563, -0.20367631316184998, -0.45790424942970276, 0.143788143992424, 0.1563091278076172, 0.047768544405698776, 0.03410486876964569, -0.20264628529548645, 0.3771030306816101, -0.07078119367361069, 0.056141018867492676, -0.002274438738822937, -0.33188962936401367, 0.0984073132276535, 0.2745257019996643, -0.22930917143821716, -0.084232397377491, 0.15609124302864075, 0.0768221914768219, -0.19709983468055725, 0.12831971049308777, -0.17126968502998352, 0.027514249086380005, -0.04377468675374985, 0.08761061728000641, 0.21458405256271362, 0.22314223647117615, 0.011953223496675491, -0.18261514604091644, -0.12383396178483963, -0.2707570493221283, -0.1369113326072693, 0.007212799042463303, -0.1979597508907318, 0.02315022610127926, -0.04440547525882721, 0.17703047394752502, 0.18810585141181946, -0.31810262799263, 0.1869545429944992, -0.04052567481994629, -0.29819321632385254, -0.11530129611492157, -0.07520081847906113, -0.11487837880849838, 0.020855017006397247, -0.3064325153827667, -0.13533949851989746, -0.39773300290107727, 0.7338970899581909, -0.13151448965072632, 0.31835758686065674, -0.32995930314064026, 0.15327565371990204, -0.02828594297170639, 0.013008102774620056, 0.10965131968259811, -0.05799419432878494, -0.439260870218277, 0.02554412931203842, -0.24695605039596558, -0.19779729843139648, 0.10464802384376526, 0.3919883370399475, 0.5188526511192322, -0.23300983011722565, -0.28120917081832886, 0.03516203165054321, -0.2927132248878479, 0.16772377490997314, -0.047108232975006104, -0.07113375514745712, 0.41599366068840027, 0.10756128281354904, -0.26434555649757385, 0.07141073048114777, -0.3939666748046875, 0.06791797280311584, 0.12189267575740814, 0.11201643198728561, -0.08247672021389008, 0.4268260598182678, 0.11608196794986725, 0.5080529451370239, 0.2584626376628876, 0.026271017268300056, 0.044139884412288666, 0.09850011765956879, 0.1545983999967575, -0.2088526487350464, -0.09913322329521179, 0.2789958417415619, -0.2997611463069916, 0.025012429803609848, 0.18926115334033966, -0.13068056106567383, -0.2825765311717987, -0.06246756762266159, 0.34132876992225647, -0.38953015208244324, -0.2055954933166504, 0.2090333104133606, 0.1808653324842453, 0.007257804274559021, -0.1435745358467102, -0.040185585618019104, -0.28567472100257874, 0.2395075559616089, 0.0022829510271549225, 0.10185062885284424, 0.11854105442762375, -0.26882466673851013, -0.7306527495384216, -0.4946274161338806, -0.685302734375, 0.4044342637062073, -0.2232026606798172, 0.18255633115768433, -0.1215105801820755, -0.12518689036369324, 0.10081996023654938, -0.46865975856781006, 0.6082783341407776, -0.061500951647758484, -0.18966715037822723, 0.4443025290966034, -0.2380032241344452, -0.3231947720050812, -0.05104951560497284, -0.1273248791694641, 0.37925052642822266, 0.35792309045791626, 0.40296152234077454, -0.32701176404953003, -0.39769524335861206, 0.018955398350954056, -0.0018940893933176994, 0.02733108028769493, 0.040743112564086914, -0.17454294860363007, -0.34694740176200867, -0.34546998143196106, 0.24058866500854492, -0.025410333648324013, 0.39155471324920654, -0.1848136931657791, -0.33581939339637756, 0.2141641229391098, -0.18953311443328857, 0.023575954139232635, 0.11443774402141571, -0.0008474690839648247, -0.027095744386315346, 0.20451316237449646, -0.1369095891714096, 0.005175579339265823, 0.4257736802101135, 0.3763591945171356, -0.1826377660036087, -0.25269702076911926, 0.15117987990379333, 0.07856281846761703, 0.20356173813343048, 0.32503676414489746, 0.1023259311914444, 0.36895492672920227, -0.13226397335529327, 0.5811314582824707, 0.014416887424886227, -0.14597627520561218, 0.2407645434141159, 0.2835310101509094, -0.31149423122406006, 0.034224651753902435, 0.1819574236869812, 0.03376111760735512, -0.028383120894432068, 0.1984211504459381, -0.16948731243610382, 0.01505879033356905, 0.058890633285045624, 0.13481895625591278, 0.772476077079773, -0.1569911390542984, 0.08738687634468079, -0.10491087287664413, -0.5203208923339844, 0.5660256743431091, -0.6060048341751099, 0.23927204310894012, 0.011819299310445786, 0.051094043999910355, 0.24088485538959503, 0.04894744232296944, 0.2144407331943512, 0.19939391314983368, -0.15724122524261475, 0.11983196437358856, 0.2675245404243469, -0.2521703243255615, -0.26382407546043396, 0.5672379732131958, 0.09575939923524857, -0.3598058819770813, -0.20028914511203766, 0.10298392176628113, 0.02984154038131237, -0.23067307472229004, 0.03725631907582283, -0.35043442249298096, 0.08041627705097198, 0.11767491698265076, -0.33880341053009033, 0.0036110710352659225, -0.12488552927970886, 0.1884373128414154, 0.1426761895418167, 0.012827090919017792, 0.1577947586774826, 0.1166824996471405, 0.30035123229026794, -0.0545986033976078, -0.11475962400436401, 0.05993768572807312, -0.373300164937973, 0.127366304397583, -0.2406817227602005, -0.2727367877960205, 0.13586296141147614, -0.3185025453567505, -0.1371602863073349, 0.15109306573867798, -0.2673790156841278, -0.4951869249343872, 0.41943424940109253, 0.2514287531375885, -0.10078607499599457, 0.07628025859594345, -0.07216708362102509, 0.41764724254608154, -0.21585071086883545, -0.5458047986030579, 0.16731025278568268, 0.2554774284362793, -0.29765400290489197, 0.47834140062332153, -0.4578646123409271, -0.2690197229385376, -0.12723073363304138, 0.11974458396434784, 0.12267167866230011, -0.026406634598970413, 0.06806415319442749, 0.2549492418766022, -0.24927552044391632, -0.26868534088134766, 0.14652502536773682, 0.2071441262960434, -0.1540854424238205, 0.356954425573349, 0.004688576329499483, -0.16556885838508606, 0.17240336537361145, 0.0672004446387291, -0.03957459330558777, 0.10905573517084122, -0.10359273850917816, -0.27240443229675293, -0.33586135506629944, 0.014460064470767975, -0.27511918544769287, 0.08836439996957779, 0.018636062741279602, 0.2236117124557495, 0.1662285178899765, 0.299190878868103, -0.33753180503845215, 0.06238613277673721, -0.5006619691848755, 0.03378197178244591, 0.06698234379291534, -0.28895771503448486, 0.12639810144901276, 0.20251008868217468, 0.1505032181739807, 0.06667819619178772, -0.2930602431297302, -0.17746898531913757, 0.10471560060977936, 0.09152825176715851, -0.08804720640182495, 0.05388053506612778, 0.2346504181623459, 0.0637173131108284, -0.27725425362586975, -0.12552408874034882, 0.10455889999866486, -0.15632587671279907, -0.17650648951530457, -0.006128754001110792, 0.19755734503269196, -0.17026567459106445, -0.03706405684351921, -0.220916748046875, 0.20433053374290466, 0.6479668617248535, -0.05974806100130081, 0.3095727264881134, -0.06203015148639679, -0.13975790143013, -0.14509174227714539, 0.11965367943048477, -0.08696947991847992, 0.19234707951545715, -0.008932739496231079, -0.042734310030937195, -0.314528226852417, -0.16082146763801575, 0.2896488308906555, 0.25567007064819336, 0.007208665367215872, 0.2717040479183197, 0.11117274314165115, 0.19423304498195648, -0.03371281176805496, -0.20850495994091034, -0.0625305324792862, -0.2313840389251709, 0.10722365975379944, 0.11145561933517456, 0.35107749700546265, -0.05233477056026459, 0.44747084379196167, 0.06521128118038177, 0.0906970202922821, -0.20025679469108582, 0.03973859176039696, -0.15652813017368317, -0.08780262619256973, 0.04032663628458977, 0.4443771243095398, 0.13000181317329407, 0.20797884464263916, 0.4107173681259155, 0.14517542719841003, 0.5214321613311768, 0.4324689209461212, 0.4234641492366791, 0.043292898684740067, -0.1659945845603943, 0.14572426676750183, -0.010811492800712585, -0.002774275839328766, 0.19830870628356934, 0.1678469479084015, 0.04174849018454552, -0.45656681060791016, -0.24764080345630646, -0.23505626618862152, 0.4164523184299469, -0.1892717480659485, -0.3235483169555664, 0.011855382472276688, -0.17114126682281494, 0.018199332058429718, 0.1621110588312149, -0.012009236961603165, -0.02958708256483078, 0.45410823822021484, -0.020998798310756683, 0.11260049790143967, -0.15986335277557373, -0.06415378302335739, -0.042151421308517456, 0.27611780166625977, -0.15611152350902557, 0.34124472737312317, 0.08690047264099121, -0.3898566961288452, -0.26567894220352173, 0.16229505836963654, 0.4887511134147644, -0.10305061936378479, -0.15238693356513977, 0.15767042338848114, -0.14497852325439453, 0.0011245161294937134, 0.1408195048570633, 0.18894504010677338, 0.07596711814403534, 0.028601018711924553, 0.18269628286361694, 0.11203554272651672, -0.1708141416311264, 0.09221617132425308, 0.03898555785417557, 0.07652179151773453, -0.1310916393995285, 0.01678883284330368, 0.07963262498378754, -0.16383251547813416, -0.1192847192287445, 0.18809285759925842, -0.4143211841583252, -0.2924933433532715, 0.0164017416536808, -0.43527281284332275, -0.025707300752401352, 0.07250581681728363, 0.14574673771858215, -0.07761333882808685, 0.430834025144577, -0.021054502576589584, 0.15736445784568787, -0.20662330090999603, -0.42037421464920044, -0.08001343160867691, -0.10992678254842758, -0.24823257327079773, 0.1467408686876297, 0.05163192003965378, 0.5531930327415466, 0.2240907847881317, 0.19536183774471283, 0.3676791191101074, 0.16607597470283508, 0.05792243033647537, 0.2483498603105545, -0.5891302227973938, 0.38669514656066895, 0.4681166410446167, -0.16099059581756592, 0.12312939763069153, -0.2545427978038788, 0.3871554434299469, 0.11201603710651398, 0.04882672429084778, -0.15294361114501953, 0.1808500587940216, 0.30167704820632935, 0.0359436571598053, 0.2657121419906616, 0.05384313315153122, -0.04599997401237488, -0.1951880156993866, -0.43953222036361694, 0.12328870594501495, 0.18213914334774017, 0.005162827670574188, 0.1473754644393921, 0.09571319818496704, 0.5908763408660889, -0.09800895303487778, 0.298946738243103, -0.18104740977287292, -0.008774355985224247, -0.1682581901550293, -0.2503024935722351, -0.055127471685409546, 0.2886524796485901, 0.009531468152999878, 0.2211756408214569, 0.31704849004745483, 0.29494693875312805, 0.14956757426261902, -0.173977792263031, -0.717653751373291, -0.08347027003765106, 0.14896821975708008, -0.13881230354309082, -0.39051711559295654, 0.15812678635120392, 0.2604050636291504, -0.3248685896396637, 0.25938013195991516, -0.37950894236564636, -0.08320567011833191, 0.1731051802635193, 0.0494818314909935, -0.4382670819759369, 0.3315023183822632, -0.2698177099227905, -0.265192449092865, 0.05807289108633995, 0.21521955728530884, 0.16701152920722961, -0.20544466376304626, -0.3295682966709137, -0.29904860258102417 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
> and I have to kill it before it uses up all RAM. (I have 128GB of it, so it should be more than enough) Same thing just happened on my machine too. Memory leak somewhere maybe? Even if you were to load this dataset in your memory it shouldn't take more than 4GB. You were earlier doing this for `oscar` dataset. Is it working fine for that?
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
68
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. > and I have to kill it before it uses up all RAM. (I have 128GB of it, so it should be more than enough) Same thing just happened on my machine too. Memory leak somewhere maybe? Even if you were to load this dataset in your memory it shouldn't take more than 4GB. You were earlier doing this for `oscar` dataset. Is it working fine for that?
[ -0.3296346962451935, -0.06199172884225845, -0.201284721493721, 0.0722670778632164, 0.016648586839437485, -0.07474511116743088, 0.012410525232553482, 0.37519899010658264, -0.022627832368016243, 0.2510792911052704, 0.07464555650949478, 0.610282838344574, 0.13200177252292633, 0.339606910943985, -0.26031574606895447, 0.13188429176807404, 0.32342231273651123, -0.15988010168075562, 0.21374545991420746, 0.08962133526802063, -0.3440311551094055, 0.4381742477416992, -0.11259283125400543, -0.1841609925031662, 0.05759456381201744, -0.20163977146148682, 0.10410553216934204, 0.09829992055892944, -0.06988349556922913, -0.3212619423866272, -0.33337777853012085, 0.09747937321662903, -0.04843243584036827, 0.1080656349658966, -0.00010535053297644481, -0.14228712022304535, 0.12569542229175568, 0.01705721952021122, -0.14724230766296387, 0.045525409281253815, -0.07147401571273804, -0.2468707114458084, 0.2440246343612671, -0.29784828424453735, 0.152662992477417, 0.16338863968849182, -0.005076879635453224, -0.24648559093475342, 0.5565120577812195, 0.3956133723258972, 0.24663253128528595, 0.1752384454011917, 0.40211889147758484, -0.008730772882699966, -0.20308881998062134, 0.08546895533800125, -0.30580270290374756, -0.09729000926017761, 0.2644599676132202, 0.24320217967033386, 0.11807091534137726, 0.11522315442562103, 0.15194015204906464, 0.07428722083568573, -0.10736914724111557, -0.18740606307983398, -0.046590425074100494, -0.22435736656188965, 0.11137250810861588, 0.04339654743671417, 0.38141363859176636, -0.05315901339054108, -0.27512693405151367, 0.11137259751558304, -0.12361953407526016, -0.4799592196941376, 0.19291871786117554, 0.15313462913036346, -0.09032630920410156, -0.012014131993055344, -0.16677308082580566, -0.2989043593406677, -0.16449619829654694, -0.3206702470779419, 0.061746954917907715, 0.19360235333442688, -0.03378055989742279, 0.25285401940345764, 0.4394834041595459, 0.04248630255460739, -0.05242379382252693, -0.042619168758392334, -0.016179807484149933, -0.22092615067958832, -0.30124637484550476, -0.33873888850212097, 0.11677711457014084, -0.33946260809898376, -0.28239285945892334, -0.02911631390452385, -0.012420576997101307, 0.1893463432788849, 0.1978088617324829, 0.09757779538631439, 0.24758225679397583, -0.17036007344722748, -0.15762072801589966, -0.1301695555448532, 0.16650381684303284, 0.14565947651863098, -0.19003038108348846, -0.03528902679681778, 0.11252494156360626, -0.23155948519706726, -0.10790807008743286, 0.05672844499349594, -0.207050621509552, -0.26909950375556946, -0.3357561230659485, 0.0461973175406456, 0.08378053456544876, -0.25923076272010803, -0.36159056425094604, 0.2147502601146698, -0.05551823973655701, 0.35569071769714355, 0.07512456178665161, 0.07052583992481232, -0.49944964051246643, -0.15789341926574707, -0.015280809253454208, 0.2517682909965515, -0.09728817641735077, 0.1888883411884308, -0.07974650710821152, 0.32984092831611633, -0.200100839138031, 0.2114451676607132, -0.09501393139362335, -0.15464460849761963, 0.2644422948360443, -0.2866232097148895, -0.313327431678772, 0.16342423856258392, 0.18511146306991577, 0.11028539389371872, -0.17561738193035126, -0.03263022005558014, -0.24992996454238892, 0.1275017261505127, -0.16081708669662476, -0.24979935586452484, -0.24649842083454132, 0.21727396547794342, 0.09483692049980164, 0.0682007223367691, -0.3972417712211609, 0.18986020982265472, 0.0530700758099556, 0.003329094499349594, -0.06620847433805466, -0.08743426203727722, -0.002683967351913452, -0.2480415552854538, 0.007730985060334206, 0.05683326721191406, -0.31613442301750183, 0.35955023765563965, -0.056481678038835526, 0.007650991901755333, 0.5426536798477173, 0.4990140497684479, -0.15548716485500336, 0.2571249306201935, 0.1205466240644455, -0.16345474123954773, -0.13431623578071594, -0.12801523506641388, 0.08695763349533081, 0.2624066174030304, -0.26073628664016724, -0.12416467070579529, 0.26015138626098633, -0.050501029938459396, 0.06707913428544998, -0.028615262359380722, 0.21599873900413513, 0.19675207138061523, 0.009736362844705582, 0.13838058710098267, -0.46867653727531433, -0.04782810062170029, -0.10682642459869385, 0.06696809828281403, -0.19700314104557037, -0.2473161518573761, 0.005409032106399536, 0.0855587050318718, 0.2738818824291229, -0.1935841143131256, 0.14741410315036774, 0.314483106136322, 0.20781265199184418, -0.23788128793239594, -0.2749904692173004, 0.1432098150253296, 0.0757782831788063, 0.1689222753047943, 0.07841666787862778, 0.14802441000938416, 0.10801102221012115, 0.11634153127670288, 0.19427084922790527, 0.029171129688620567, -0.0521167553961277, -0.3011370599269867, 0.13183636963367462, 0.22894905507564545, 0.013167403638362885, 0.11431705951690674, 0.017509978264570236, 0.32785436511039734, -0.008343508467078209, -0.09725087881088257, -0.44217681884765625, 0.00501934252679348, -0.11459074169397354, -0.016082685440778732, 0.11034686863422394, -0.1509789526462555, 0.15703396499156952, -0.2727334201335907, -0.025284625589847565, 0.013394512236118317, 0.18734416365623474, 0.19913339614868164, 0.2767539918422699, -0.08839468657970428, 0.004468664526939392, 0.02220207080245018, -0.032334089279174805, 0.16072654724121094, 0.06034375727176666, -0.09667158871889114, -0.40701839327812195, 0.583523154258728, 0.24769344925880432, 0.2256290316581726, 0.27121496200561523, -0.19292700290679932, 0.3473513424396515, 0.040016498416662216, 0.259689599275589, 0.09220221638679504, 0.05727618560194969, 0.46722763776779175, -0.2592681348323822, -0.05749379098415375, -0.37710440158843994, 0.21852727234363556, 0.7225987315177917, 0.11144599318504333, -0.24575290083885193, 0.25871485471725464, 0.34167182445526123, -0.34026962518692017, 0.3092397153377533, 0.2584834396839142, 0.5779535174369812, 0.18726694583892822, 0.2029915452003479, -0.09852296113967896, -0.17777611315250397, -0.10795307904481888, 0.2512538731098175, -0.28750699758529663, 0.5884264707565308, 0.0009080991148948669, 0.15056665241718292, -0.13923199474811554, -0.18021678924560547, -0.40339770913124084, 0.20826208591461182, 0.21700917184352875, 0.06232854351401329, 0.01774454303085804, -0.12798136472702026, 0.42238685488700867, -0.046377722173929214, 0.123603954911232, 0.05264550447463989, -0.29291847348213196, 0.06083279103040695, 0.34210485219955444, -0.22497981786727905, -0.1798156499862671, 0.08696837723255157, -0.005772069096565247, -0.1617148518562317, 0.07658158987760544, -0.05857046693563461, 0.03013918548822403, -0.1365606188774109, 0.1352492719888687, 0.25170090794563293, 0.07524139434099197, 0.04240434244275093, -0.04012737423181534, -0.21124675869941711, -0.16345393657684326, -0.055844634771347046, -0.06548552215099335, -0.14831861853599548, -0.02921839989721775, -0.17321977019309998, 0.13141846656799316, 0.11671845614910126, -0.33935242891311646, 0.14636322855949402, -0.07672012597322464, -0.29082322120666504, -0.09716814756393433, -0.11400312185287476, -0.158356711268425, -0.04196452721953392, -0.3796151578426361, -0.13692466914653778, -0.35141271352767944, 0.6415825486183167, 0.003746435046195984, 0.2922757863998413, -0.3372017741203308, 0.1984328329563141, -0.03340413421392441, 0.10452968627214432, 0.08150748163461685, -0.14795681834220886, -0.34313279390335083, 0.041112955659627914, -0.2607613801956177, -0.25613856315612793, 0.1665525585412979, 0.40147650241851807, 0.5308471322059631, -0.24042458832263947, -0.31650012731552124, 0.16537237167358398, -0.236724391579628, 0.098703533411026, -0.11167047917842865, -0.0837278962135315, 0.34103190898895264, 0.02097666822373867, -0.2979143559932709, 0.0751311182975769, -0.3338715434074402, 0.09117050468921661, 0.08851379156112671, 0.16361689567565918, -0.16225481033325195, 0.45840775966644287, 0.11728669703006744, 0.4470134973526001, 0.25699934363365173, 0.03341272845864296, 0.1418507695198059, 0.15099208056926727, 0.011367540806531906, -0.21623089909553528, -0.0434863343834877, 0.31364238262176514, -0.35422858595848083, -0.07671542465686798, 0.16544097661972046, -0.17403006553649902, -0.43613287806510925, -0.10742108523845673, 0.3258407711982727, -0.29087477922439575, -0.18281133472919464, 0.2477206587791443, 0.24838575720787048, -0.02705094963312149, -0.1410120129585266, -0.06845378875732422, -0.22196842730045319, 0.1432422399520874, -0.08837759494781494, -0.03630441427230835, 0.05849476903676987, -0.30364352464675903, -0.6294398307800293, -0.4124477803707123, -0.7096724510192871, 0.3884473443031311, -0.24681010842323303, 0.2433178722858429, -0.1220620721578598, -0.06591972708702087, 0.16308292746543884, -0.4881206452846527, 0.5480072498321533, -0.036841779947280884, -0.1333957016468048, 0.3899574875831604, -0.1670478731393814, -0.25461775064468384, -0.10080578923225403, -0.2020997405052185, 0.3662342131137848, 0.3748116195201874, 0.3276370167732239, -0.30815908312797546, -0.17979839444160461, -0.015882164239883423, -0.05353584885597229, -0.009185552597045898, -0.014081768691539764, -0.21994377672672272, -0.32565048336982727, -0.3007802367210388, 0.2467252016067505, -0.014686470851302147, 0.47143834829330444, -0.23307086527347565, -0.28774935007095337, 0.26902714371681213, -0.17364415526390076, 0.07216069102287292, 0.06352823972702026, -0.029227618128061295, 0.005932131316512823, 0.2026253044605255, -0.2566012442111969, -0.09310805797576904, 0.4429439306259155, 0.38692036271095276, -0.07522566616535187, -0.20742055773735046, 0.15915954113006592, 0.05219580605626106, 0.20923373103141785, 0.25993210077285767, 0.13017089664936066, 0.34525272250175476, -0.16003230214118958, 0.571788489818573, 0.04456130415201187, -0.19393521547317505, 0.27762243151664734, 0.17038539052009583, -0.2817227244377136, 0.03368818759918213, 0.18491202592849731, 0.013345498591661453, 0.02247469872236252, 0.20731815695762634, -0.3424444794654846, 0.03324107453227043, 0.03830481693148613, 0.26275402307510376, 0.7971112132072449, -0.193110391497612, 0.10577929764986038, -0.14955994486808777, -0.4816761612892151, 0.48055315017700195, -0.6385619044303894, 0.2556707262992859, 0.009028110653162003, 0.10059063881635666, 0.2681056261062622, 0.12182220816612244, 0.24144285917282104, 0.18860413134098053, -0.15287499129772186, 0.058391813188791275, 0.24377866089344025, -0.27678343653678894, -0.2157948911190033, 0.5334715247154236, 0.057562775909900665, -0.2685445249080658, -0.16663743555545807, 0.1352854073047638, 0.06497946381568909, -0.3155592978000641, 0.019602134823799133, -0.31138938665390015, 0.06501732766628265, 0.11514435708522797, -0.40293067693710327, 0.032336968928575516, -0.08479633927345276, 0.1851862519979477, -0.000100746750831604, 0.04131914675235748, 0.17754679918289185, 0.05571196228265762, 0.15382978320121765, -0.02832319214940071, -0.09994126856327057, 0.04806274548172951, -0.34244000911712646, 0.1300092339515686, -0.2188168317079544, -0.26204776763916016, 0.13437476754188538, -0.4227486550807953, -0.23897340893745422, 0.24483546614646912, -0.19039735198020935, -0.5315853953361511, 0.33520975708961487, 0.3203461170196533, -0.06324788928031921, 0.058275699615478516, -0.16243132948875427, 0.4054203927516937, -0.2961368262767792, -0.43088653683662415, 0.19973158836364746, 0.23989064991474152, -0.30992797017097473, 0.48347318172454834, -0.49654462933540344, -0.3086845278739929, -0.14856202900409698, 0.19780191779136658, 0.1697244644165039, 0.10582086443901062, 0.06633951514959335, 0.2580612003803253, -0.2024056315422058, -0.25755777955055237, 0.1337100863456726, 0.21531324088573456, -0.10044296085834503, 0.29213979840278625, 0.05581539869308472, -0.11500006914138794, 0.206963911652565, 0.03215395659208298, -0.05859604477882385, 0.14693297445774078, -0.004523329436779022, -0.25336945056915283, -0.32999077439308167, -0.08952932059764862, -0.2438567727804184, -0.033298637717962265, -0.021119477227330208, 0.24413205683231354, 0.2011210024356842, 0.2886408567428589, -0.3419700264930725, 0.08963244408369064, -0.44145330786705017, 0.0227467343211174, -0.04075776785612106, -0.2707051932811737, 0.036526668816804886, 0.22148112952709198, 0.18445612490177155, 0.17033593356609344, -0.2345701903104782, -0.20546835660934448, 0.16251836717128754, 0.0786265954375267, -0.07402055710554123, -0.03317895531654358, 0.1846928894519806, -0.07379869371652603, -0.2521272897720337, 0.009020574390888214, 0.08736714720726013, -0.17693021893501282, -0.19722120463848114, 0.022152084857225418, 0.25729990005493164, -0.09417056292295456, -0.014065487310290337, -0.27738267183303833, 0.1359630823135376, 0.6978837251663208, -0.03539589047431946, 0.307283878326416, 0.13600623607635498, -0.14620238542556763, -0.2841256260871887, 0.040215201675891876, -0.16745682060718536, 0.1947060227394104, 0.06429825723171234, -0.07516829669475555, -0.32568418979644775, -0.1969769299030304, 0.2744359076023102, 0.3414951264858246, -0.037955041974782944, 0.2564389407634735, 0.060052938759326935, 0.24593733251094818, -0.021477580070495605, -0.2015555500984192, -0.13190291821956635, -0.18117409944534302, 0.07194197177886963, 0.07053811848163605, 0.270298033952713, -0.084764264523983, 0.3125196397304535, 0.10697603970766068, 0.03900308534502983, -0.17462314665317535, -0.050849780440330505, -0.20207366347312927, -0.14693540334701538, 0.057141147553920746, 0.3664119839668274, 0.03405633196234703, 0.17279228568077087, 0.41797518730163574, 0.23312196135520935, 0.5346536040306091, 0.4863184690475464, 0.39827537536621094, 0.016103900969028473, -0.1381806880235672, 0.11129973828792572, 0.09729474782943726, -0.08469687402248383, 0.28874319791793823, 0.21541178226470947, -0.02477482706308365, -0.3552778959274292, -0.22651444375514984, -0.25815385580062866, 0.26506271958351135, -0.19559013843536377, -0.22869011759757996, -0.030234307050704956, -0.18348416686058044, -0.036165278404951096, 0.2023826390504837, -0.06994600594043732, 0.03208140283823013, 0.44446438550949097, 0.04684806615114212, -0.01214667409658432, -0.11225546896457672, -0.09306589514017105, -0.09095368534326553, 0.30198124051094055, -0.2179219275712967, 0.3378487825393677, 0.24130195379257202, -0.3982709050178528, -0.2974572479724884, 0.12277476489543915, 0.4948912262916565, 0.024499932304024696, -0.12679021060466766, 0.1609017550945282, -0.05882817134261131, -0.05550353229045868, 0.012590358033776283, 0.35499194264411926, 0.264786958694458, 0.07923349738121033, 0.09081068634986877, 0.1338651031255722, -0.18999645113945007, 0.13638100028038025, 0.19604521989822388, 0.08362916111946106, -0.09560142457485199, 0.037364423274993896, 0.06264074146747589, -0.16649189591407776, -0.10660409927368164, 0.1631912887096405, -0.40902695059776306, -0.21867787837982178, -0.026783790439367294, -0.46167266368865967, 0.005566703155636787, -0.00013583945110440254, 0.14464545249938965, -0.12216559052467346, 0.4573061168193817, -0.11599411070346832, 0.1388372778892517, -0.25215664505958557, -0.37807661294937134, -0.06967310607433319, 0.07292382419109344, -0.3552250266075134, 0.18200558423995972, -0.06511922925710678, 0.5898240208625793, 0.21842142939567566, 0.19206586480140686, 0.2524081766605377, 0.10514652729034424, -0.014284360222518444, 0.3374991714954376, -0.531365156173706, 0.41219577193260193, 0.4877294898033142, -0.09237765520811081, 0.07109551131725311, -0.2721554636955261, 0.42628613114356995, -0.038083694875240326, 0.10097231715917587, -0.19521139562129974, 0.06282362341880798, 0.310412734746933, 0.20173870027065277, 0.36272600293159485, 0.1488594114780426, 0.06568151712417603, -0.2595579922199249, -0.4335930645465851, 0.09904158115386963, 0.26118117570877075, 0.04724831134080887, 0.07121065258979797, 0.17473922669887543, 0.5708907842636108, -0.03550134599208832, 0.29764461517333984, -0.10173191130161285, 0.07420744746923447, -0.27511051297187805, -0.2649860382080078, -0.0520332008600235, 0.1602933704853058, 0.10240878909826279, 0.10931483656167984, 0.1789098083972931, 0.3703855872154236, 0.12918558716773987, -0.25233542919158936, -0.7570545673370361, -0.056359678506851196, 0.06637082248926163, -0.14514482021331787, -0.3889198303222656, 0.08757609128952026, 0.22213450074195862, -0.33017101883888245, 0.260648638010025, -0.33924081921577454, -0.056465502828359604, 0.15371651947498322, 0.002472115680575371, -0.4865216016769409, 0.35706233978271484, -0.2518676519393921, -0.2752768099308014, 0.09789088368415833, 0.26120415329933167, 0.09096509218215942, -0.13990715146064758, -0.22353774309158325, -0.2777721881866455 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Hmm, looks like `datasets` has changed and won't accept my currently cached oscar-en (crashes), so I'd rather not download 0.5TB again. Were you able to reproduce the memory blow up with `ascent_kb`? It's should be a much quicker task to verify. But yes, oscar worked just fine with `.shard()` which is what I used to process it fast.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
58
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Hmm, looks like `datasets` has changed and won't accept my currently cached oscar-en (crashes), so I'd rather not download 0.5TB again. Were you able to reproduce the memory blow up with `ascent_kb`? It's should be a much quicker task to verify. But yes, oscar worked just fine with `.shard()` which is what I used to process it fast.
[ -0.3054428994655609, 0.08767995238304138, -0.14398111402988434, 0.08091060072183609, 0.00896139070391655, -0.17538554966449738, 0.011021200567483902, 0.3316749930381775, -0.03384688124060631, 0.2524503767490387, -0.061364397406578064, 0.587026834487915, 0.03865716978907585, 0.38519614934921265, -0.21917587518692017, 0.15066757798194885, 0.2678520083427429, -0.13218547403812408, 0.10771485418081284, -0.007050160318613052, -0.38304486870765686, 0.4346618056297302, -0.1258985698223114, -0.16242128610610962, 0.07418789714574814, -0.14736559987068176, 0.04696795344352722, 0.13803957402706146, -0.23184752464294434, -0.2371388077735901, -0.25806763768196106, 0.15759029984474182, 0.055560365319252014, -0.055583126842975616, -0.00010975936311297119, -0.23621772229671478, 0.17036651074886322, -0.03907584398984909, -0.12316901981830597, -0.05662468075752258, -0.009295053780078888, -0.08112013339996338, 0.15537436306476593, -0.3111916184425354, 0.24515601992607117, 0.03877171874046326, 0.11136682331562042, -0.13953498005867004, 0.5105628967285156, 0.4481397569179535, 0.1720329076051712, 0.004024801775813103, 0.47368961572647095, -0.044525764882564545, -0.12624114751815796, -0.01236051321029663, -0.33294445276260376, -0.13869218528270721, 0.30967897176742554, 0.18068213760852814, 0.09222901612520218, 0.13436295092105865, 0.17656072974205017, -0.005127124488353729, 0.13105672597885132, -0.22255493700504303, -0.03895518183708191, -0.11147041618824005, 0.11492961645126343, 0.1205185204744339, 0.28126126527786255, -0.058553412556648254, -0.36694997549057007, 0.13488814234733582, -0.04360206425189972, -0.6002296805381775, 0.3270641267299652, 0.18750591576099396, -0.1452350616455078, 0.002349507063627243, -0.21915994584560394, -0.3306117653846741, -0.23271052539348602, -0.06400987505912781, -0.07745974510908127, 0.1625702977180481, 0.009197562001645565, 0.22132527828216553, 0.631783664226532, -0.021230414509773254, 0.0074688345193862915, -0.07716035097837448, 0.008432690054178238, -0.1883287876844406, -0.38650014996528625, -0.3583424687385559, 0.08472833782434464, -0.20794397592544556, -0.24398267269134521, 0.03003874607384205, 0.0346025712788105, 0.1502554714679718, 0.15570160746574402, 0.11243574321269989, 0.2506098747253418, 0.004818640649318695, -0.13024857640266418, -0.21759089827537537, 0.1307409405708313, 0.2855014503002167, -0.11512789130210876, 0.030175862833857536, 0.0981961265206337, -0.3154335618019104, -0.25958219170570374, 0.03388538584113121, -0.24610020220279694, -0.3200640380382538, -0.21893587708473206, 0.1011962965130806, -0.058504458516836166, -0.2732844948768616, -0.2889339029788971, 0.22997033596038818, -0.14715780317783356, 0.23270979523658752, 0.046091459691524506, 0.04514322429895401, -0.2739681601524353, 0.1135169118642807, 0.0012670792639255524, 0.31382131576538086, -0.19009286165237427, 0.25387299060821533, -0.0688788890838623, 0.24567148089408875, -0.11850988864898682, 0.16661880910396576, 0.2815448045730591, -0.05050647258758545, 0.24481713771820068, -0.2961140275001526, -0.27919885516166687, 0.14621439576148987, 0.11081273853778839, 0.10201041400432587, -0.27916356921195984, -0.16675469279289246, -0.22153747081756592, 0.05921800434589386, -0.22043690085411072, -0.2681466341018677, -0.20791876316070557, 0.169790580868721, 0.03098486363887787, 0.06165951490402222, -0.47410115599632263, 0.1189793199300766, -0.10750430077314377, 0.0318162776529789, -0.11586267501115799, -0.06126268953084946, 0.09761369228363037, -0.1730460226535797, 0.021936288103461266, -0.015118613839149475, -0.25155994296073914, 0.3708862066268921, -0.21840214729309082, 0.10246971249580383, 0.4459902048110962, 0.45472440123558044, -0.21837416291236877, 0.052989110350608826, 0.00923144817352295, -0.16016627848148346, -0.14814943075180054, -0.2034768909215927, -0.016216838732361794, 0.36380311846733093, -0.12635183334350586, -0.21238403022289276, 0.2290377914905548, -0.08444622159004211, 0.20577125251293182, -0.11673051863908768, 0.37690094113349915, 0.2330268770456314, 0.016425028443336487, 0.029366644099354744, -0.40850818157196045, -0.11784157902002335, -0.3474600911140442, 0.1618068367242813, -0.11647231876850128, -0.23676657676696777, -0.031718336045742035, 0.18378712236881256, 0.1952233612537384, -0.25168731808662415, 0.16090764105319977, 0.23535475134849548, 0.13699105381965637, -0.19328035414218903, -0.2932799756526947, 0.2357618510723114, 0.07577229291200638, 0.2202431559562683, -0.07145554572343826, 0.2384531944990158, 0.008086346089839935, -0.006828168407082558, 0.10551727563142776, -0.0727679580450058, -0.018064025789499283, -0.3194670081138611, 0.1132064014673233, 0.1274207979440689, 0.07288888096809387, 0.17476336658000946, -0.05039758235216141, 0.23919963836669922, -0.059198521077632904, -0.019596045836806297, -0.4296342134475708, -0.0059724971652030945, -0.17169536650180817, -0.03378317132592201, 0.06238904595375061, -0.0835854783654213, 0.07356517761945724, -0.2852097749710083, -0.01585077866911888, 0.03443814069032669, -0.03476475924253464, 0.25671881437301636, 0.2792855203151703, -0.012801244854927063, 0.05574265867471695, 0.024141278117895126, 0.027759652584791183, 0.1174604594707489, 0.07411505281925201, -0.06029180437326431, -0.39311832189559937, 0.7062366604804993, 0.19562000036239624, 0.24838683009147644, 0.3690395951271057, -0.10183674842119217, 0.30226564407348633, -0.01005018875002861, 0.14899232983589172, 0.032265082001686096, 0.09729444980621338, 0.4231876730918884, -0.17581506073474884, -0.14815469086170197, -0.2679938077926636, 0.16646966338157654, 0.7600058317184448, 0.1201055496931076, -0.2452443540096283, 0.36752137541770935, 0.30681368708610535, -0.24565386772155762, 0.39608514308929443, 0.46964433789253235, 0.6726410388946533, 0.18120309710502625, 0.21892006695270538, 0.011618329212069511, -0.2883674204349518, -0.15021218359470367, 0.2768121659755707, -0.28113049268722534, 0.6026221513748169, -0.07996336370706558, 0.12614616751670837, -0.13982224464416504, -0.23037230968475342, -0.49870765209198, 0.14919224381446838, 0.2810918986797333, 0.16372494399547577, 0.018450355157256126, -0.19746153056621552, 0.4155856966972351, -0.05489799380302429, 0.026812583208084106, 0.00546056404709816, -0.29189246892929077, 0.09790520370006561, 0.37356969714164734, -0.15423257648944855, -0.16461576521396637, 0.13728201389312744, -0.0709468275308609, -0.3116748332977295, 0.19102028012275696, -0.16273996233940125, 0.031775232404470444, -0.023719515651464462, 0.1308498978614807, 0.3331619203090668, -0.01303006149828434, 0.035218603909015656, -0.06867337226867676, -0.19351842999458313, -0.10033678263425827, -0.16192494332790375, -0.03608272224664688, -0.09325629472732544, -0.10112111270427704, -0.11605750024318695, 0.036521755158901215, -0.06696013361215591, -0.3594270348548889, 0.15398339927196503, 0.03267554193735123, -0.27768316864967346, -0.09735707193613052, -0.05522046983242035, -0.07136022299528122, -0.032225724309682846, -0.4662264883518219, -0.10595180094242096, -0.3021981418132782, 0.5643858909606934, 0.029401641339063644, 0.32434743642807007, -0.3226161003112793, 0.2541452646255493, 0.026353083550930023, -0.004671337548643351, -0.04692988097667694, -0.14962872862815857, -0.2910084128379822, 0.1960095465183258, -0.3135344684123993, -0.2874717116355896, 0.18142655491828918, 0.32665735483169556, 0.4345669448375702, -0.17253053188323975, -0.2518825829029083, -0.11940617859363556, -0.21658626198768616, -0.08350718021392822, -0.07162558287382126, -0.19817915558815002, 0.43417394161224365, -0.026121681556105614, -0.2715167999267578, 0.0851597860455513, -0.24719563126564026, 0.12823523581027985, 0.05962627753615379, 0.19862499833106995, -0.19053080677986145, 0.5149760246276855, 0.2518988251686096, 0.5341998338699341, 0.19337379932403564, 0.025436803698539734, 0.20836316049098969, 0.2140805721282959, -0.01787072792649269, -0.19516029953956604, -0.05445384234189987, 0.3648414611816406, -0.3630741536617279, 0.067147396504879, 0.1060122549533844, -0.12179715186357498, -0.4720662832260132, -0.1802278310060501, 0.4510611593723297, -0.2758357524871826, -0.18835188448429108, 0.25066784024238586, 0.20195411145687103, -0.12196298688650131, -0.025206031277775764, -0.09921720623970032, -0.1683814972639084, 0.07907950133085251, -0.15544089674949646, 0.04800153896212578, 0.09438151866197586, -0.3016980290412903, -0.5142587423324585, -0.303504079580307, -0.6991466879844666, 0.47812825441360474, -0.2808252274990082, 0.1951981633901596, -0.08436107635498047, -0.03749029338359833, 0.17402639985084534, -0.536333441734314, 0.5449424982070923, -0.12374921888113022, -0.29070329666137695, 0.24299925565719604, -0.13521212339401245, -0.2845429480075836, -0.10163918137550354, -0.28266212344169617, 0.368266224861145, 0.3695591688156128, 0.4353388547897339, -0.3341792821884155, -0.17121081054210663, 0.05399847403168678, -0.08503996580839157, -0.016430962830781937, 0.04887785762548447, -0.13427741825580597, -0.48230552673339844, -0.45929327607154846, 0.23102343082427979, -0.00831080786883831, 0.42794203758239746, -0.18805226683616638, -0.3457554578781128, 0.18952330946922302, -0.07928328216075897, 0.21461179852485657, 0.09959723055362701, -0.03675001114606857, 0.06564931571483612, 0.24411961436271667, -0.40912243723869324, 0.042825981974601746, 0.5519680380821228, 0.30351051688194275, -0.09725213050842285, -0.27567416429519653, 0.056940268725156784, -0.02460176683962345, 0.18041154742240906, 0.29449546337127686, 0.01929016038775444, 0.16428610682487488, -0.1942514032125473, 0.5105469822883606, 0.06543879210948944, -0.09277821332216263, 0.3369050920009613, 0.15620720386505127, -0.24233965575695038, 0.008467713370919228, 0.266525536775589, 0.03538540378212929, -0.061465784907341, 0.10757840424776077, -0.06741766631603241, 0.03451290354132652, 0.1297779232263565, 0.22169411182403564, 0.9262535572052002, -0.1884372979402542, 0.12864428758621216, -0.14771687984466553, -0.3570345640182495, 0.43358859419822693, -0.46821272373199463, 0.22755032777786255, -0.012165665626525879, -0.02158668264746666, 0.1837559938430786, 0.178923100233078, 0.305582195520401, 0.26307156682014465, -0.14575284719467163, 0.19563929736614227, 0.40358179807662964, -0.47287532687187195, -0.18334157764911652, 0.35665497183799744, -0.09046951681375504, -0.3749934434890747, -0.21897709369659424, 0.09428671002388, 0.134868323802948, -0.2134498953819275, 0.03464489430189133, -0.3361077308654785, -0.011686470359563828, 0.045061931014060974, -0.3995361328125, 0.054918646812438965, 0.03223801776766777, 0.09685204923152924, -0.05666590854525566, -0.02862481027841568, 0.16494601964950562, 0.11149978637695312, 0.29699233174324036, -0.046668846160173416, -0.025750042870640755, 0.07635247707366943, -0.4849426746368408, 0.03795845806598663, -0.1386619657278061, -0.3323858678340912, 0.11997972428798676, -0.46374422311782837, -0.2784130871295929, 0.23594751954078674, -0.048863735049963, -0.5341033339500427, 0.32768091559410095, 0.3176761567592621, -0.08491398394107819, 0.17477291822433472, -0.2455415278673172, 0.30746006965637207, -0.420631468296051, -0.4763581454753876, 0.15372668206691742, 0.20264723896980286, -0.23837345838546753, 0.47851020097732544, -0.35220471024513245, -0.23135963082313538, -0.08742532134056091, 0.3373773992061615, 0.09146168828010559, 0.009163126349449158, 0.05142578110098839, 0.19115938246250153, -0.09697528183460236, -0.1878068447113037, -0.006028600037097931, 0.10138755291700363, -0.23248764872550964, 0.24691800773143768, 0.07016512751579285, -0.10573400557041168, 0.14830733835697174, -0.04777170345187187, 0.03180234506726265, 0.1384744942188263, 0.021941792219877243, -0.2728492021560669, -0.2754118740558624, 0.0881500244140625, -0.20699812471866608, -0.02322523668408394, -0.02204814739525318, 0.07208854705095291, 0.12747210264205933, 0.2497902512550354, -0.3183959126472473, 0.26717931032180786, -0.40691035985946655, 0.059578098356723785, -0.009062353521585464, -0.3526325225830078, 0.06105910614132881, 0.150051087141037, 0.14549842476844788, 0.21326377987861633, -0.26618486642837524, -0.17597141861915588, 0.18153035640716553, 0.09103861451148987, -0.045700281858444214, -0.08387783169746399, 0.23946650326251984, 0.04039103537797928, -0.29086366295814514, 0.0009599598124623299, 0.1722293645143509, -0.1983858346939087, -0.21640931069850922, 0.04937741160392761, 0.3279719054698944, -0.018657654523849487, 0.05368947982788086, -0.2527099847793579, 0.18121859431266785, 0.7908347845077515, -0.11885970085859299, 0.3514178395271301, 0.13632822036743164, -0.27260804176330566, -0.3018242120742798, -0.025608688592910767, -0.324748694896698, 0.30917781591415405, 0.20942184329032898, -0.0208212211728096, -0.31842175126075745, -0.1329043209552765, 0.34032142162323, 0.3283359408378601, -0.0034561133943498135, 0.18126261234283447, 0.20230716466903687, 0.18554677069187164, -0.10420292615890503, -0.20258286595344543, -0.02753997966647148, -0.10141171514987946, 0.05861920490860939, 0.10447977483272552, 0.18234644830226898, -0.1480724811553955, 0.29186296463012695, 0.12765350937843323, -0.0586879588663578, -0.19010047614574432, -0.01711047813296318, -0.07267250120639801, -0.13958197832107544, 0.07049610465765, 0.3552795350551605, -0.008553475141525269, 0.3167051076889038, 0.5345338582992554, 0.03699367865920067, 0.6106429100036621, 0.3214517831802368, 0.4820593297481537, 0.1162571907043457, -0.21046806871891022, 0.08974650502204895, 0.16338342428207397, 0.052469976246356964, 0.36847493052482605, 0.3036998212337494, 0.09636836498975754, -0.26325592398643494, -0.18473036587238312, -0.37435904145240784, 0.3016628324985504, -0.09672688692808151, -0.33119121193885803, -0.035059791058301926, -0.2770119905471802, -0.10864800214767456, 0.23887315392494202, -0.11720544099807739, 0.04057808965444565, 0.5395818948745728, 0.08408445864915848, 0.02280198037624359, -0.06733094900846481, -0.1109059527516365, -0.06714902073144913, 0.3254329562187195, -0.16124087572097778, 0.3343554139137268, 0.32421648502349854, -0.3470301032066345, -0.3004240095615387, 0.1663818657398224, 0.4389077126979828, 0.04788431525230408, -0.08575114607810974, 0.334021657705307, -0.02042180672287941, 0.011875050142407417, 0.03859568387269974, 0.34236669540405273, 0.3334329128265381, 0.1323927640914917, 0.11879181861877441, 0.11824280023574829, -0.191341370344162, 0.24609406292438507, 0.009532153606414795, 0.12723632156848907, -0.005486419424414635, 0.15013669431209564, 0.17305772006511688, -0.0705433338880539, -0.1371304839849472, 0.16842120885849, -0.502460241317749, -0.24426577985286713, -0.14280159771442413, -0.5121322870254517, -0.04594273865222931, -0.06080619990825653, 0.10906745493412018, -0.14056560397148132, 0.4732343554496765, -0.033963728696107864, 0.07580092549324036, -0.19698941707611084, -0.3149262070655823, -0.2363111972808838, 0.09789536148309708, -0.3129623830318451, 0.21022914350032806, -0.09598816186189651, 0.5808460116386414, 0.20875361561775208, 0.239506796002388, 0.21442410349845886, 0.23282980918884277, 0.01594776287674904, 0.44556954503059387, -0.5590434074401855, 0.48887044191360474, 0.5608142018318176, -0.13250894844532013, 0.07465323060750961, -0.2819131910800934, 0.40616321563720703, -0.08470000326633453, 0.06692466139793396, -0.1604573130607605, 0.10743960738182068, 0.19438081979751587, 0.0003445670008659363, 0.4412427544593811, 0.21030782163143158, 0.02026444673538208, -0.26091837882995605, -0.45201921463012695, 0.04921553283929825, 0.32497337460517883, 0.11361495405435562, 0.059369202703237534, 0.24245187640190125, 0.5299993753433228, -0.03406324237585068, 0.26587241888046265, -0.11597523093223572, 0.26359686255455017, -0.33984023332595825, -0.46346455812454224, -0.11375845223665237, 0.18792849779129028, 0.0377935990691185, 0.13156765699386597, 0.046662990003824234, 0.43974074721336365, 0.1190127432346344, -0.23865915834903717, -0.6871840357780457, -0.18760749697685242, 0.22688554227352142, -0.11611581593751907, -0.25164610147476196, 0.1857243925333023, 0.13580641150474548, -0.2965756058692932, 0.23296454548835754, -0.31929752230644226, 0.018570929765701294, 0.02239060029387474, 0.02144080027937889, -0.4040694832801819, 0.2528829276561737, -0.21816033124923706, -0.25650280714035034, 0.007165294140577316, 0.11822418868541718, 0.0891570895910263, -0.2690298557281494, -0.26382291316986084, -0.2816520631313324 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
What I tried is: ``` HF_DATASETS_OFFLINE=1 HF_DATASETS_CACHE=cache python -c 'import datasets; ds="oscar"; \ dataset = datasets.load_dataset(ds, "unshuffled_deduplicated_en")["train"]; \ dataset.shard(1000000, 0, contiguous=True).to_json(f"{ds}-0.jsonl", orient="records", lines=True, force_ascii=False)' ``` and got: ``` Using the latest cached version of the module from /gpfswork/rech/six/commun/modules/datasets_modules/datasets/oscar/e4f06cecc7ae02f7adf85640b4019bf476d44453f251a1d84aebae28b0f8d51d (last modified on Fri Aug 6 01:52:35 2021) since it couldn't be found locally at oscar/oscar.py or remotely (OfflineModeIsEnabled). Reusing dataset oscar (cache/oscar/unshuffled_deduplicated_en/1.0.0/e4f06cecc7ae02f7adf85640b4019bf476d44453f251a1d84aebae28b0f8d51d) Traceback (most recent call last): File "<string>", line 1, in <module> File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/load.py", line 755, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/builder.py", line 737, in as_dataset datasets = utils.map_nested( File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/builder.py", line 764, in _build_single_dataset ds = self._as_dataset( File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/builder.py", line 834, in _as_dataset dataset_kwargs = ArrowReader(self._cache_dir, self.info).read( File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 217, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 238, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 173, in _read_files pa_table: Table = self._get_table_from_filename(f_dict, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 308, in _get_table_from_filename table = ArrowReader.read_table(filename, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 327, in read_table return table_cls.from_file(filename) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/table.py", line 450, in from_file table = _memory_mapped_arrow_table_from_file(filename) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/table.py", line 43, in _memory_mapped_arrow_table_from_file memory_mapped_stream = pa.memory_map(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
244
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. What I tried is: ``` HF_DATASETS_OFFLINE=1 HF_DATASETS_CACHE=cache python -c 'import datasets; ds="oscar"; \ dataset = datasets.load_dataset(ds, "unshuffled_deduplicated_en")["train"]; \ dataset.shard(1000000, 0, contiguous=True).to_json(f"{ds}-0.jsonl", orient="records", lines=True, force_ascii=False)' ``` and got: ``` Using the latest cached version of the module from /gpfswork/rech/six/commun/modules/datasets_modules/datasets/oscar/e4f06cecc7ae02f7adf85640b4019bf476d44453f251a1d84aebae28b0f8d51d (last modified on Fri Aug 6 01:52:35 2021) since it couldn't be found locally at oscar/oscar.py or remotely (OfflineModeIsEnabled). Reusing dataset oscar (cache/oscar/unshuffled_deduplicated_en/1.0.0/e4f06cecc7ae02f7adf85640b4019bf476d44453f251a1d84aebae28b0f8d51d) Traceback (most recent call last): File "<string>", line 1, in <module> File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/load.py", line 755, in load_dataset ds = builder_instance.as_dataset(split=split, ignore_verifications=ignore_verifications, in_memory=keep_in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/builder.py", line 737, in as_dataset datasets = utils.map_nested( File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/builder.py", line 764, in _build_single_dataset ds = self._as_dataset( File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/builder.py", line 834, in _as_dataset dataset_kwargs = ArrowReader(self._cache_dir, self.info).read( File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 217, in read return self.read_files(files=files, original_instructions=instructions, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 238, in read_files pa_table = self._read_files(files, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 173, in _read_files pa_table: Table = self._get_table_from_filename(f_dict, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 308, in _get_table_from_filename table = ArrowReader.read_table(filename, in_memory=in_memory) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/arrow_reader.py", line 327, in read_table return table_cls.from_file(filename) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/table.py", line 450, in from_file table = _memory_mapped_arrow_table_from_file(filename) File "/gpfswork/rech/six/commun/conda/stas/lib/python3.8/site-packages/datasets/table.py", line 43, in _memory_mapped_arrow_table_from_file memory_mapped_stream = pa.memory_map(filename) File "pyarrow/io.pxi", line 782, in pyarrow.lib.memory_map File "pyarrow/io.pxi", line 743, in pyarrow.lib.MemoryMappedFile._open File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status OSError: Memory mapping file failed: Cannot allocate memory ```
[ -0.37895503640174866, 0.11125445365905762, -0.11302599310874939, -0.0530545711517334, -0.015930883586406708, -0.02293698489665985, 0.1476949155330658, 0.3795008063316345, 0.08121846616268158, 0.1669367253780365, 0.07353486120700836, 0.6023110747337341, 0.14040282368659973, 0.34603047370910645, -0.17427659034729004, 0.10922008752822876, 0.35926833748817444, -0.16134759783744812, 0.225961834192276, 0.07391826808452606, -0.3700007200241089, 0.424157977104187, -0.12448230385780334, -0.21381376683712006, -0.10069585591554642, -0.22718864679336548, 0.13599619269371033, 0.06324190646409988, -0.03137000650167465, -0.2821577191352844, -0.29331934452056885, 0.21063274145126343, -0.11661120504140854, 0.17937752604484558, -0.0001136127466452308, -0.1048232764005661, 0.039689838886260986, 0.0570303350687027, -0.13241888582706451, -0.04324445128440857, 0.029291406273841858, -0.21640020608901978, 0.19552364945411682, -0.24280261993408203, 0.07507521659135818, 0.013605736196041107, -0.05787719041109085, -0.21567171812057495, 0.4367412328720093, 0.40917912125587463, 0.12371475994586945, 0.16548505425453186, 0.3629422187805176, 0.048801958560943604, -0.28045880794525146, 0.07886842638254166, -0.2552202343940735, 0.02997414767742157, 0.15990346670150757, 0.09947683662176132, 0.12437500059604645, 0.18193399906158447, 0.141075998544693, 0.06393153965473175, -0.14291417598724365, -0.15346048772335052, -0.13598284125328064, -0.1838700920343399, 0.031568493694067, 0.13673816621303558, 0.15854264795780182, -0.18208155035972595, -0.46013349294662476, -0.041638024151325226, -0.033731698989868164, -0.5070341229438782, 0.16969838738441467, 0.20639380812644958, -0.10780061781406403, 0.0020812302827835083, -0.16796860098838806, -0.3229149580001831, -0.09222924709320068, -0.3000040650367737, -0.016727793961763382, 0.3268163502216339, 0.0919431746006012, 0.29347631335258484, 0.5563183426856995, 0.011147938668727875, -0.0321420319378376, -0.12020832300186157, 0.14168883860111237, -0.10850891470909119, -0.4075378477573395, -0.3789396286010742, 0.11522899568080902, -0.3889777958393097, -0.29054033756256104, -0.042380191385746, -0.1450667530298233, 0.15689054131507874, 0.10730116814374924, 0.17161038517951965, 0.1482505351305008, -0.25347116589546204, -0.1978255808353424, -0.03021891415119171, 0.1236654669046402, 0.19973580539226532, -0.17448876798152924, 0.040842972695827484, 0.1538805365562439, -0.3079875707626343, -0.20705987513065338, 0.17293092608451843, -0.2670220136642456, -0.2596179246902466, -0.2557169795036316, 0.06257271766662598, 0.05722104758024216, -0.2991304099559784, -0.3086555302143097, 0.20075583457946777, -0.08265466243028641, 0.3965120017528534, 0.0675886943936348, 0.10512833297252655, -0.5039256811141968, -0.06829748302698135, 0.005489094648510218, 0.4109596610069275, 0.009804800152778625, 0.2733818292617798, -0.12686148285865784, 0.15879087150096893, -0.24163244664669037, 0.3068404793739319, -0.05578887462615967, -0.07748765498399734, 0.28825241327285767, -0.3759101629257202, -0.2941976487636566, 0.23692917823791504, 0.17752628028392792, 0.17697454988956451, -0.08475062251091003, -0.037503473460674286, -0.35907626152038574, 0.02579459547996521, -0.21823489665985107, -0.24841615557670593, -0.2451559454202652, 0.13859081268310547, 0.0676952600479126, -0.01460261270403862, -0.5084757208824158, 0.22689704596996307, -0.07412169128656387, -0.016816062852740288, -0.006460987031459808, -0.11323745548725128, -0.06854302436113358, -0.189919114112854, -0.011583797633647919, 0.10483530163764954, -0.1893836408853531, 0.29649481177330017, 0.11685916036367416, 0.016491815447807312, 0.47870609164237976, 0.4736279547214508, -0.1303471177816391, 0.17092081904411316, 0.04814876616001129, -0.016819044947624207, 0.00042578577995300293, -0.1945403516292572, 0.14039947092533112, 0.3506375551223755, -0.18914589285850525, -0.06778725981712341, 0.2762448787689209, -0.15068784356117249, 0.039282336831092834, -0.05188502371311188, 0.27162572741508484, 0.3942168951034546, -0.005896681919693947, 0.1272764950990677, -0.39107242226600647, -0.13068144023418427, -0.06161271780729294, 0.1125851571559906, -0.16070659458637238, -0.2277224361896515, 0.010977953672409058, -0.08979231864213943, 0.34837809205055237, -0.2361219823360443, 0.07308144122362137, 0.29161393642425537, 0.14599674940109253, -0.15576086938381195, -0.31494539976119995, 0.1734989881515503, -0.02664858102798462, 0.15825232863426208, 0.09200525283813477, 0.1222543865442276, 0.009928643703460693, 0.03884783387184143, 0.21615242958068848, 0.0737563893198967, -0.0007010437548160553, -0.21466276049613953, 0.04312688112258911, 0.16587701439857483, 0.0009042993187904358, 0.14767873287200928, -0.007968999445438385, 0.5056715607643127, -0.06943732500076294, -0.04990317299962044, -0.38005003333091736, 0.1990671455860138, -0.039192892611026764, -0.02821981906890869, 0.17160086333751678, -0.030655182898044586, 0.2509894073009491, -0.25923803448677063, -0.1009797677397728, 0.027523308992385864, 0.21447110176086426, 0.2778441607952118, 0.3496313691139221, 0.10737966746091843, 0.014572683721780777, 0.16538949310779572, -0.07522466033697128, 0.11360548436641693, 0.03175763413310051, -0.055856190621852875, -0.4951951205730438, 0.6930992007255554, 0.3418121635913849, 0.2934974133968353, 0.3025227189064026, -0.14116314053535461, 0.2973588705062866, 0.11302758753299713, 0.29291167855262756, 0.14167118072509766, 0.043996166437864304, 0.4563511312007904, -0.19922661781311035, -0.052068404853343964, -0.4259724020957947, 0.2978721261024475, 0.9261217713356018, 0.033559929579496384, -0.2967095375061035, 0.33622580766677856, 0.34689489006996155, -0.4052947461605072, 0.3435501456260681, 0.24418087303638458, 0.5190435647964478, 0.16925962269306183, 0.22040905058383942, -0.018125006929039955, -0.3111809194087982, -0.026436928659677505, 0.2614886462688446, -0.3138810992240906, 0.6287262439727783, 0.014794979244470596, 0.159957617521286, -0.09117655456066132, -0.1488572657108307, -0.5709496736526489, 0.14040368795394897, 0.23496569693088531, -0.03169270604848862, 0.10077684372663498, -0.13749991357326508, 0.5827997326850891, -0.07519187033176422, 0.03942834585905075, -0.07927002012729645, -0.34678077697753906, 0.036266349256038666, 0.40267813205718994, -0.15393508970737457, -0.15468642115592957, 0.0512252040207386, -0.14814920723438263, -0.23968365788459778, -0.012666309252381325, -0.11965728551149368, 0.08371210843324661, -0.033500783145427704, 0.03184675797820091, 0.25930172204971313, 0.11705569922924042, 0.03261205926537514, 0.01020052656531334, -0.2766255736351013, -0.19005703926086426, -0.04514385014772415, -0.03696252405643463, -0.18606460094451904, 0.030294746160507202, -0.06806527078151703, 0.09257890284061432, 0.1141957938671112, -0.3305217921733856, 0.13523507118225098, -0.17051732540130615, -0.18313388526439667, -0.1532103270292282, -0.22338388860225677, -0.013398687355220318, 0.0031792335212230682, -0.30666032433509827, -0.21062956750392914, -0.3367457687854767, 0.5622720718383789, -0.022536994889378548, 0.32445305585861206, -0.29582762718200684, 0.2675730586051941, -0.09623044729232788, 0.11037793755531311, -0.026451362296938896, -0.13923600316047668, -0.41890430450439453, 0.14948318898677826, -0.19533132016658783, -0.17225870490074158, 0.08592161536216736, 0.3006778955459595, 0.39054712653160095, -0.13191212713718414, -0.25234025716781616, -0.07486594468355179, -0.202559694647789, 0.09932482242584229, -0.14791886508464813, -0.006805481389164925, 0.392091304063797, -0.034845851361751556, -0.22963379323482513, 0.03837233781814575, -0.2501685917377472, 0.1034829169511795, 0.09872336685657501, 0.00418013334274292, -0.17639842629432678, 0.44203877449035645, 0.16404932737350464, 0.5443276166915894, 0.29348865151405334, -0.051584552973508835, 0.0948755070567131, 0.08146194368600845, -0.06345736980438232, -0.20694193243980408, 0.013311808928847313, 0.2003236711025238, -0.33126434683799744, 0.06731225550174713, 0.10231701284646988, -0.20540258288383484, -0.43550369143486023, -0.016505422070622444, 0.3300255537033081, -0.36736077070236206, -0.2447340339422226, 0.3051519989967346, 0.19760020077228546, 0.1307792216539383, -0.13210691511631012, -0.12584732472896576, -0.3594178259372711, 0.20931857824325562, -0.040738753974437714, 0.06139148771762848, 0.13813838362693787, -0.22266681492328644, -0.5325886011123657, -0.42331060767173767, -0.651786208152771, 0.4375045895576477, -0.10002794116735458, 0.2618570625782013, -0.033403076231479645, -0.01021631807088852, 0.1702771782875061, -0.4899294674396515, 0.6297487020492554, -0.17752447724342346, -0.13033626973628998, 0.5164119601249695, -0.17565245926380157, -0.22250497341156006, -0.13545633852481842, -0.0961073487997055, 0.24670733511447906, 0.33169257640838623, 0.5146763920783997, -0.373714417219162, -0.42791032791137695, 0.04350556433200836, -0.15494421124458313, 0.023150231689214706, -0.056140851229429245, -0.15007708966732025, -0.37342169880867004, -0.30386197566986084, 0.26764482259750366, 0.015636874362826347, 0.44156432151794434, -0.2564733624458313, -0.21867021918296814, 0.2509126365184784, -0.0701177641749382, 0.1687089502811432, 0.10663647949695587, -0.05935298651456833, 0.14271436631679535, 0.17951305210590363, -0.2182220220565796, -0.09413623809814453, 0.40674611926078796, 0.3512382209300995, 0.07533775269985199, -0.050408437848091125, 0.14212635159492493, 0.08782704174518585, 0.24064359068870544, 0.2805607318878174, -0.008499285206198692, 0.40550315380096436, -0.20505118370056152, 0.6162354350090027, 0.04448723420500755, -0.10338876396417618, 0.27001357078552246, 0.22255034744739532, -0.3677172064781189, -0.12461263686418533, 0.31561532616615295, 0.12310214340686798, 0.01065371185541153, 0.10386236011981964, -0.1351582407951355, 0.10262687504291534, 0.09074357897043228, 0.14966686069965363, 0.7825419902801514, -0.21309761703014374, 0.07915098965167999, -0.05237426608800888, -0.6279557347297668, 0.5346583127975464, -0.8117312788963318, 0.1821427196264267, 0.0019158460199832916, 0.09749588370323181, 0.19370989501476288, 0.10767203569412231, 0.3424050807952881, 0.23660783469676971, -0.06002147123217583, 0.2227572351694107, 0.2925518751144409, -0.4350798726081848, -0.16776995360851288, 0.5173372030258179, 0.03889627754688263, -0.3873971402645111, -0.25640198588371277, 0.06038058549165726, 0.08025053143501282, -0.3009544610977173, 0.10309257358312607, -0.3875177502632141, 0.035752709954977036, 0.04426729679107666, -0.3523843288421631, 0.003776632249355316, -0.08323215693235397, 0.16586174070835114, 0.12825947999954224, 0.023735977709293365, 0.2115057408809662, -0.06832784414291382, 0.1694146990776062, -0.11732266843318939, -0.02834216319024563, -0.029169689863920212, -0.4682450294494629, 0.21275655925273895, -0.1847945600748062, -0.2477802187204361, 0.26612144708633423, -0.3468378782272339, -0.25742974877357483, 0.10254129767417908, -0.20529399812221527, -0.5379219055175781, 0.435332715511322, 0.1792798936367035, -0.1972840577363968, 0.14605548977851868, -0.14837870001792908, 0.5141679048538208, -0.23810191452503204, -0.4444658160209656, 0.1235574334859848, 0.13223063945770264, -0.32447704672813416, 0.47772902250289917, -0.48769494891166687, -0.24135418236255646, -0.12053973972797394, 0.21038931608200073, 0.10863925516605377, 0.06973462551832199, 0.07623904198408127, 0.27279648184776306, -0.18894991278648376, -0.20265012979507446, -0.11519826948642731, 0.26387280225753784, -0.2083769142627716, 0.24684986472129822, 0.025028005242347717, -0.11287105828523636, 0.15579167008399963, -0.12356805801391602, -0.13377942144870758, 0.1391383707523346, 0.008952967822551727, -0.25913408398628235, -0.31079715490341187, -0.1193387359380722, -0.36918890476226807, -0.0802483856678009, -0.025380101054906845, 0.4096403419971466, 0.0855395570397377, 0.24866001307964325, -0.2743510603904724, 0.1421305239200592, -0.5018646121025085, 0.06670787930488586, 0.0003930218517780304, -0.3045485317707062, 0.03648969158530235, 0.19143691658973694, 0.1606825590133667, 0.0442081019282341, -0.2407386600971222, -0.1389772593975067, 0.02562100812792778, 0.1129993200302124, -0.04795219749212265, -0.013947023078799248, 0.3268703818321228, 0.0676020085811615, -0.3494035005569458, -0.03334624692797661, 0.1569846123456955, -0.07535915076732635, -0.20989586412906647, 0.05641968920826912, 0.26115959882736206, -0.04559344798326492, -0.09972111880779266, -0.3736443519592285, 0.20022308826446533, 0.6145216822624207, -0.08250100165605545, 0.3209475874900818, 0.06082052364945412, -0.10671711713075638, -0.2883547246456146, 0.04707780480384827, -0.13482971489429474, 0.14426970481872559, 0.1513938009738922, -0.030034996569156647, -0.3000405728816986, -0.16495761275291443, 0.36464178562164307, 0.22037874162197113, -0.0863940641283989, 0.24015314877033234, 0.07269829511642456, 0.1438758373260498, -0.10741115361452103, -0.21889926493167877, 0.04303135722875595, -0.2302064150571823, 0.12108023464679718, 0.12578372657299042, 0.44243744015693665, 0.0822569727897644, 0.2974580228328705, 0.07493311166763306, 0.04441859573125839, -0.1154269129037857, -0.0939604640007019, -0.2164437174797058, -0.0994255319237709, 0.10024472326040268, 0.4237137734889984, 0.05546960234642029, 0.200705885887146, 0.3315519094467163, 0.17661231756210327, 0.49882596731185913, 0.41462454199790955, 0.29635748267173767, 0.01597590744495392, -0.24837449193000793, 0.03808460012078285, 0.04729102551937103, 0.046295199543237686, 0.23007580637931824, 0.11771251261234283, -0.1083642914891243, -0.3022858798503876, -0.23026221990585327, -0.10578767955303192, 0.3994910717010498, -0.10279319435358047, -0.3053058087825775, 0.14446015655994415, -0.07214002311229706, -0.2103259265422821, 0.13697464764118195, -0.0317223034799099, 0.000426366925239563, 0.43807652592658997, 0.07832900434732437, 0.11707079410552979, -0.05618856102228165, -0.10926950722932816, -0.06028502434492111, 0.4364691972732544, -0.19270795583724976, 0.2945222854614258, 0.12844721972942352, -0.43710091710090637, -0.3738197684288025, 0.08743003755807877, 0.5235018134117126, -0.1437988579273224, -0.11607383191585541, 0.17448949813842773, -0.09590213000774384, 0.044651053845882416, 0.16061414778232574, 0.1960364431142807, 0.13409000635147095, 0.11017093062400818, 0.08843663334846497, 0.06835950165987015, -0.19208724796772003, 0.15992996096611023, -0.06867371499538422, 0.1403457075357437, -0.10667480528354645, 0.19798807799816132, 0.11889143288135529, -0.09537829458713531, -0.11407627165317535, 0.2566334903240204, -0.39174553751945496, -0.2327977567911148, 0.05541432276368141, -0.34428465366363525, 0.03959384560585022, -0.020509954541921616, 0.10531565546989441, -0.05214884504675865, 0.34903472661972046, -0.10881136357784271, 0.1751784235239029, -0.2523444890975952, -0.3569486141204834, -0.060743071138858795, -0.11699757725000381, -0.34522342681884766, 0.2384650707244873, 0.05002745985984802, 0.5298142433166504, 0.25130414962768555, 0.14829623699188232, 0.3236965239048004, 0.19474545121192932, 0.020295847207307816, 0.3658371865749359, -0.45839667320251465, 0.392681360244751, 0.2482336163520813, -0.11448973417282104, 0.09172890335321426, -0.2743739187717438, 0.35040968656539917, 0.01395480427891016, 0.03114335983991623, -0.24976889789104462, 0.09876866638660431, 0.3063826560974121, 0.12829619646072388, 0.3364828824996948, 0.15960626304149628, 0.1180303543806076, -0.2859203815460205, -0.4121665954589844, 0.04814254492521286, 0.36007580161094666, -0.008002086542546749, 0.03478102385997772, 0.0025467276573181152, 0.6676925420761108, 0.02724774368107319, 0.18592698872089386, -0.12597975134849548, -0.00029647990595549345, -0.2822239398956299, -0.24785222113132477, -0.1156858429312706, 0.251589834690094, -0.012604441493749619, 0.1721734255552292, 0.18871434032917023, 0.4016167223453522, 0.19229047000408173, -0.15898539125919342, -0.7367376089096069, -0.05055578052997589, 0.07985880970954895, -0.13021810352802277, -0.3995395302772522, 0.010238416492938995, 0.23950746655464172, -0.32052382826805115, 0.39516016840934753, -0.39467886090278625, 0.012792833149433136, 0.1325242519378662, 0.061147239059209824, -0.42959287762641907, 0.4353562593460083, -0.2643982470035553, -0.24039146304130554, 0.12264059484004974, 0.07018950581550598, 0.0566677451133728, -0.1498071402311325, -0.3026242256164551, -0.29901355504989624 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
> Were you able to reproduce the memory blow up with ascent_kb? It's should be a much quicker task to verify. Yes, this blows up memory-wise on my machine too. I found that a [similar error](https://discuss.huggingface.co/t/saving-memory-with-run-mlm-py-with-wikipedia-datasets/4160) was posted on the forum on 5th March. Since you already knew how much time [#2663 comment](https://github.com/huggingface/datasets/issues/2663#issue-946552273) took, can you try benchmarking v1 and v2 for now maybe until we have a fix for this memory blow up?
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
74
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. > Were you able to reproduce the memory blow up with ascent_kb? It's should be a much quicker task to verify. Yes, this blows up memory-wise on my machine too. I found that a [similar error](https://discuss.huggingface.co/t/saving-memory-with-run-mlm-py-with-wikipedia-datasets/4160) was posted on the forum on 5th March. Since you already knew how much time [#2663 comment](https://github.com/huggingface/datasets/issues/2663#issue-946552273) took, can you try benchmarking v1 and v2 for now maybe until we have a fix for this memory blow up?
[ -0.18548484146595, -0.2889172434806824, -0.0788145512342453, 0.17000490427017212, 0.24537736177444458, -0.0373704619705677, -0.031218718737363815, 0.21521367132663727, 0.1491139531135559, 0.18775704503059387, 0.08202346414327621, 0.5408600568771362, -0.05317460745573044, 0.4245944619178772, -0.035452697426080704, -0.0025887489318847656, 0.2435334026813507, -0.3689108192920685, 0.11269225180149078, 0.15873655676841736, -0.3486213684082031, 0.42878690361976624, -0.0933101698756218, -0.25066685676574707, -0.0026826660614460707, -0.1956074982881546, -0.011767365038394928, 0.18873465061187744, -0.0848010778427124, -0.4089299738407135, -0.12421683967113495, -0.017071392387151718, -0.04129689931869507, 0.07833469659090042, -0.00011089812323916703, -0.12549299001693726, 0.1903453916311264, -0.047658033668994904, -0.2757120728492737, 0.037655383348464966, 0.11579231172800064, -0.31310829520225525, 0.14846578240394592, -0.251973420381546, 0.1367579996585846, 0.11718583106994629, -0.08279586583375931, -0.2914380431175232, 0.696046769618988, 0.2990332245826721, 0.20324423909187317, 0.2520601451396942, 0.47718971967697144, -0.005527750123292208, -0.15707913041114807, 0.09893021732568741, -0.2066585272550583, 0.2385735809803009, 0.1727260798215866, 0.08805973082780838, 0.1679304838180542, 0.2407258152961731, -0.04895453900098801, 0.00793205201625824, 0.16258502006530762, -0.11921819299459457, 0.049841731786727905, -0.15198743343353271, -0.0012221559882164001, 0.07972913235425949, 0.2626464366912842, -0.26825228333473206, -0.2918411195278168, -0.11272605508565903, -0.05821286141872406, -0.6046581268310547, 0.329643577337265, 0.25043123960494995, -0.2938658595085144, -0.06239445134997368, -0.1834869086742401, -0.27185001969337463, -0.16518470644950867, -0.15822555124759674, 0.022058986127376556, 0.026180632412433624, -0.06645038723945618, 0.2759042978286743, 0.5795153975486755, -0.0073840804398059845, -0.05041271820664406, 0.019514791667461395, 0.0322423055768013, -0.06436137855052948, -0.34460797905921936, -0.34252122044563293, 0.006348662078380585, -0.2719743847846985, -0.08675972372293472, -0.22654028236865997, 0.03023509308695793, 0.05216916650533676, 0.29873472452163696, 0.18476438522338867, 0.2922692596912384, 0.02261132374405861, -0.24055317044258118, -0.22894535958766937, 0.25323253870010376, 0.28659483790397644, -0.013635547831654549, -0.04602169990539551, 0.287252277135849, -0.2076953798532486, -0.22910836338996887, 0.11183423548936844, -0.12013400346040726, -0.18225102126598358, -0.28443971276283264, 0.1498660445213318, -0.02707492932677269, -0.15256202220916748, -0.30418601632118225, 0.29749590158462524, -0.11392909288406372, 0.20971006155014038, 0.169624924659729, 0.06863813102245331, -0.4003276526927948, 0.040672481060028076, -0.004044360015541315, 0.3330425024032593, -0.15163882076740265, 0.27017831802368164, -0.03623397648334503, 0.26653292775154114, -0.04753868281841278, 0.19496934115886688, -0.048233650624752045, -0.1256042718887329, 0.13566413521766663, -0.30721989274024963, -0.2966882288455963, 0.32693663239479065, 0.1430995762348175, 0.1113949790596962, -0.1056782603263855, 0.05137905478477478, -0.17252202332019806, 0.02696899324655533, 0.01370663195848465, -0.3428345322608948, -0.06507865339517593, 0.1373942792415619, 0.18216770887374878, 0.13527901470661163, -0.4972659647464752, 0.2388148158788681, 0.1694442182779312, -0.03921816498041153, -0.13330328464508057, -0.04053857922554016, 0.030594032257795334, -0.31428393721580505, 0.13621364533901215, 0.17555676400661469, -0.19600200653076172, 0.18457089364528656, -0.08792348206043243, 0.11236415803432465, 0.42258715629577637, 0.567668080329895, -0.0866728350520134, 0.1337430328130722, 0.007843459025025368, -0.19115270674228668, -0.41463643312454224, -0.2666603922843933, 0.043777137994766235, 0.15902093052864075, -0.22406047582626343, -0.05363504961133003, 0.21060237288475037, -0.052503690123558044, -0.036092959344387054, 0.0010750925866886973, 0.38329553604125977, 0.14066487550735474, -0.05693481117486954, 0.16712409257888794, -0.5189005732536316, -0.06720531731843948, -0.030112437903881073, -0.10054031014442444, -0.27059897780418396, -0.3373439908027649, -0.13512450456619263, 0.1659693419933319, 0.23244169354438782, -0.1992640495300293, 0.0654502585530281, 0.3297247886657715, 0.1452210396528244, -0.2416534274816513, -0.21891655027866364, 0.1262151002883911, -0.09211768954992294, 0.17336156964302063, -0.14134880900382996, 0.31737837195396423, -0.19060631096363068, 0.04562446475028992, 0.13141411542892456, 0.08875518292188644, -0.00149448961019516, -0.44772806763648987, 0.09399841725826263, -0.006274886429309845, 0.1525438278913498, 0.2030424177646637, 0.013072062283754349, 0.20180462300777435, -0.09415795654058456, 0.07360993325710297, -0.5306365489959717, 0.08396249264478683, -0.20970770716667175, -0.04483242332935333, 0.07830358296632767, 0.014359746128320694, 0.1510462462902069, -0.1823199987411499, -0.05940874665975571, 0.14076632261276245, 0.05469055846333504, 0.2589491009712219, 0.1256767213344574, -0.09383420646190643, 0.1881638914346695, -0.182637557387352, 0.07482332736253738, 0.04271399974822998, 0.08530721813440323, -0.11718303710222244, -0.36303967237472534, 0.5129302144050598, 0.3214566111564636, 0.2760449945926666, 0.2684498429298401, -0.06220068782567978, 0.13770046830177307, 0.0673409104347229, 0.3605908751487732, -0.001427963376045227, 0.0563584603369236, 0.35726019740104675, -0.18348246812820435, -0.23291511833667755, -0.27620720863342285, 0.17381957173347473, 0.6584194302558899, 0.20174218714237213, -0.16493430733680725, 0.1772134006023407, 0.030707288533449173, -0.39900675415992737, 0.3716411292552948, 0.17784342169761658, 0.5187581777572632, 0.10641969740390778, 0.11780920624732971, 0.06566310673952103, -0.20355527102947235, -0.04503098875284195, 0.3976219892501831, -0.21988792717456818, 0.534652590751648, -0.013773322105407715, 0.22417791187763214, -0.08076021820306778, -0.30913567543029785, -0.11091092228889465, 0.0865478664636612, 0.24940551817417145, -0.06833146512508392, 0.05992298573255539, -0.04977766051888466, 0.17578476667404175, -0.06689517199993134, 0.05162156745791435, -0.1732492297887802, -0.3750074505805969, -0.11464765667915344, 0.39260926842689514, -0.1682393103837967, -0.09717115014791489, 0.4768936336040497, 0.03915666043758392, -0.07853592932224274, 0.2276104986667633, -0.11128954589366913, -0.04892205074429512, -0.12399380654096603, 0.06401997804641724, 0.31530389189720154, -0.06685737520456314, 0.1118239164352417, 0.11007832735776901, -0.4064875841140747, -0.11303514987230301, -0.15169838070869446, -0.024531282484531403, -0.1884802281856537, 0.122310109436512, 0.04520431533455849, 0.24541722238063812, 0.06989779323339462, -0.18233610689640045, 0.19915515184402466, -0.032747648656368256, -0.30421629548072815, 0.03091014176607132, -0.02085602842271328, -0.02960454858839512, -0.07620662450790405, -0.36556220054626465, -0.2081756591796875, -0.38726750016212463, 0.6756781339645386, -0.0483999066054821, 0.15291982889175415, -0.04819763824343681, 0.18764492869377136, 0.028853021562099457, 0.09697271138429642, 0.06796809285879135, -0.2223416119813919, -0.08730599284172058, -0.0679333508014679, -0.19520922005176544, -0.2550376057624817, 0.18180584907531738, 0.3498877286911011, 0.4286820888519287, -0.19531050324440002, -0.4205339550971985, -0.03224422410130501, -0.11317525804042816, -0.04580852761864662, -0.017096780240535736, 0.10710747539997101, 0.3610720932483673, 0.011548652313649654, -0.2305244654417038, 0.11823845654726028, -0.40485113859176636, 0.011208541691303253, 0.08427824079990387, 0.29904526472091675, -0.18941110372543335, 0.5914959907531738, 0.2811243236064911, 0.5979699492454529, 0.4195908308029175, 0.2055206149816513, 0.09597307443618774, 0.1723480224609375, 0.09823912382125854, -0.16015997529029846, -0.1343812495470047, 0.30291748046875, -0.40782424807548523, -0.09732694923877716, 0.046206776052713394, -0.11224377900362015, -0.2272186130285263, -0.10115654766559601, 0.26923003792762756, -0.049331266433000565, -0.2538454830646515, 0.17568254470825195, 0.29225045442581177, 0.11487448215484619, -0.0035651251673698425, -0.03193732351064682, -0.1874893456697464, 0.038986291736364365, -0.023124955594539642, -0.07987359166145325, 0.06545862555503845, -0.09248798340559006, -0.6157465577125549, -0.4119313955307007, -0.9157328009605408, 0.39109933376312256, -0.24814657866954803, 0.25123387575149536, -0.08995594829320908, -0.07633683830499649, 0.15568634867668152, -0.4696568250656128, 0.7445060610771179, -0.08035833388566971, -0.28033971786499023, 0.17752531170845032, -0.06808353960514069, -0.5433067083358765, 0.019893262535333633, -0.09797003865242004, 0.4975416660308838, 0.2827625870704651, 0.35072916746139526, -0.36061713099479675, -0.16068346798419952, 0.03884405642747879, 0.14272303879261017, -0.07582346349954605, 0.01974146068096161, -0.18695300817489624, -0.44836726784706116, -0.31880319118499756, 0.25521424412727356, 0.04581550508737564, 0.29965463280677795, -0.11428535729646683, -0.26653873920440674, 0.35103270411491394, -0.08631713688373566, 0.09830164164304733, 0.10585317015647888, 0.125764399766922, -0.017827525734901428, 0.16258604824543, -0.04263924062252045, -0.074144646525383, 0.4819507896900177, 0.537738561630249, -0.2331928014755249, -0.10263016819953918, 0.031407296657562256, 0.19743923842906952, 0.14951872825622559, 0.42252981662750244, 0.0730300098657608, 0.3626473844051361, -0.009004535153508186, 0.4773635268211365, -0.13415199518203735, -0.2363404482603073, 0.32275035977363586, 0.21560455858707428, -0.3103395700454712, -0.053341224789619446, 0.3920392096042633, 0.10440672934055328, 0.03263327479362488, 0.06297771632671356, -0.15127739310264587, -0.15004828572273254, 0.09660928696393967, 0.31386396288871765, 0.8851452469825745, -0.23455117642879486, 0.3183732032775879, 0.04816588759422302, -0.30595189332962036, 0.5754354000091553, -0.4716510772705078, 0.26852482557296753, -0.15401533246040344, 0.19526231288909912, 0.17365367710590363, 0.05071234330534935, 0.21774348616600037, 0.010248180478811264, -0.20411619544029236, 0.18683502078056335, 0.13955523073673248, -0.2893223762512207, -0.288764625787735, 0.40888476371765137, -0.1649124026298523, -0.37393316626548767, -0.31291985511779785, 0.12499339878559113, 0.09326168149709702, -0.17188586294651031, 0.003515142947435379, -0.18367405235767365, 0.14836068451404572, -0.12370923161506653, -0.5315468907356262, -0.05719306319952011, -0.3475280702114105, 0.23072411119937897, 0.042127806693315506, 0.11991555988788605, 0.2097436487674713, 0.15185748040676117, 0.2537723183631897, -0.0015921220183372498, -0.0533842071890831, -0.08283048868179321, -0.28562235832214355, -0.012544557452201843, -0.12289678305387497, -0.16511771082878113, 0.24847088754177094, -0.36802807450294495, -0.1337461620569229, 0.28541630506515503, -0.2301701307296753, -0.3357670307159424, 0.2528482675552368, 0.25117188692092896, -0.12916705012321472, -0.0030187643133103848, -0.17934651672840118, 0.21254749596118927, -0.2462104707956314, -0.4584859013557434, 0.12041066586971283, 0.18291804194450378, -0.28885531425476074, 0.5117253661155701, -0.4116986095905304, -0.060826532542705536, -0.10892784595489502, 0.2853378355503082, 0.12230914831161499, 0.07401629537343979, 0.15587356686592102, 0.41245588660240173, -0.16055800020694733, -0.23370888829231262, -0.03091377392411232, 0.06386099755764008, -0.072230763733387, 0.5639137625694275, 0.14577893912792206, -0.10234662890434265, 0.0881761759519577, 0.11952431499958038, 0.09491448104381561, -0.03297283500432968, 0.06668870151042938, -0.35750603675842285, -0.491584837436676, 0.07882791757583618, -0.1179065853357315, -0.019051197916269302, 0.12196806818246841, 0.2417246550321579, -0.01951875165104866, 0.2652783989906311, -0.29622161388397217, 0.11145848780870438, -0.4302992820739746, 0.021765682846307755, 0.07776638865470886, -0.33212810754776, 0.2731015980243683, 0.047831468284130096, 0.14025846123695374, 0.2581309974193573, -0.30226871371269226, -0.17379114031791687, 0.060883838683366776, 0.08156100660562515, -0.06464110314846039, -0.10921991616487503, 0.23958581686019897, -0.17480720579624176, -0.10242097079753876, -0.08827853947877884, 0.2040017694234848, 0.03260069340467453, -0.18364842236042023, -0.033961500972509384, 0.2263008952140808, 0.018128950148820877, 0.13772493600845337, -0.13966238498687744, 0.033591579645872116, 0.3708360195159912, 0.11155930161476135, 0.25474783778190613, 0.018189741298556328, -0.17550021409988403, -0.2549057602882385, 0.0164397731423378, -0.2658432126045227, 0.09261773526668549, 0.1865330934524536, -0.09834854304790497, -0.4896170198917389, -0.1553729623556137, 0.2845591604709625, 0.4037019908428192, -0.16882219910621643, 0.31175267696380615, 0.016138115897774696, 0.19343312084674835, -0.13854479789733887, -0.16933561861515045, -0.19728593528270721, -0.2747306823730469, -0.014235198497772217, 0.18876993656158447, 0.41770806908607483, 0.029529735445976257, 0.11586304008960724, 0.16847845911979675, 0.06735526770353317, -0.19874078035354614, 0.04461737722158432, -0.2746639847755432, -0.13811664283275604, 0.05406426265835762, 0.31010276079177856, 0.022184377536177635, 0.34848353266716003, 0.2740996479988098, 0.001309707760810852, 0.3965741991996765, 0.23775842785835266, 0.161203071475029, 0.01739167422056198, -0.26352569460868835, 0.18989068269729614, 0.1573210209608078, -0.05419369041919708, 0.34614434838294983, 0.1446591317653656, 0.3086213767528534, -0.4953208565711975, -0.31785887479782104, -0.20409229397773743, 0.37464433908462524, -0.20686009526252747, -0.29541635513305664, 0.14946991205215454, -0.17307834327220917, 0.05565541982650757, 0.2095722258090973, -0.07063665986061096, -0.29599177837371826, 0.42987632751464844, 0.02055751532316208, -0.0882883220911026, -0.2458844929933548, -0.17144012451171875, 0.10884412378072739, 0.37939029932022095, -0.14672982692718506, 0.2868634760379791, 0.25398752093315125, -0.4165273904800415, -0.5210516452789307, 0.1021808534860611, 0.6217483282089233, -0.0248245932161808, -0.34645596146583557, 0.16977345943450928, 0.11826635897159576, 0.03670310974121094, 0.1457020342350006, 0.17703378200531006, 0.246017187833786, 0.20872218906879425, 0.08204810321331024, 0.06688476353883743, -0.1483234167098999, -0.03125263378024101, 0.20704708993434906, 0.19637992978096008, 0.01389256864786148, -0.007792435586452484, -0.07652277499437332, -0.09198965132236481, -0.16854946315288544, 0.2425064742565155, -0.5031358599662781, -0.20523293316364288, 0.10298146307468414, -0.38127392530441284, 0.05443880707025528, -0.01411124225705862, 0.11409659683704376, -0.08590523898601532, 0.5826565623283386, 0.14453062415122986, -0.007878132164478302, -0.26757389307022095, -0.18458569049835205, -0.1442147046327591, -0.11862688511610031, -0.34282201528549194, 0.1565120965242386, -0.11130373924970627, 0.3510713577270508, 0.14664576947689056, 0.05543171614408493, 0.060493700206279755, 0.20254425704479218, -0.03016640618443489, 0.12865027785301208, -0.5610980987548828, 0.20242395997047424, 0.28552281856536865, -0.1696861982345581, 0.1823713630437851, -0.2235301434993744, 0.3926204442977905, 0.04244887828826904, -0.0037267394363880157, -0.3042197823524475, 0.3320869505405426, 0.1613992303609848, 0.18205486238002777, 0.40726205706596375, 0.23211179673671722, 0.11145848035812378, -0.14076313376426697, -0.6951369047164917, 0.07920889556407928, 0.19568955898284912, 0.05117765814065933, 0.0193868950009346, 0.13717517256736755, 0.6898767948150635, -0.10041332989931107, 0.025194833055138588, -0.15290145576000214, 0.2162778526544571, -0.1171804666519165, -0.5031949877738953, -0.15519249439239502, 0.238946795463562, 0.1156890019774437, 0.1777176409959793, 0.23158711194992065, 0.483803391456604, 0.08812933415174484, -0.08624428510665894, -0.6959397196769714, -0.19321171939373016, 0.302907258272171, -0.11231181025505066, -0.233376145362854, 0.20454607903957367, 0.11020730435848236, -0.23752662539482117, 0.14479058980941772, -0.6522818803787231, -0.1477544903755188, 0.026133660227060318, -0.06824535876512527, -0.5276292562484741, 0.35613006353378296, -0.25808224081993103, -0.2920312285423279, 0.01797269657254219, 0.18955576419830322, 0.07848894596099854, -0.38187891244888306, -0.11216124892234802, -0.22716817259788513 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
OK, so I benchmarked using "lama" though it's too small for this kind of test, since the sharding is much slower than one thread here. Results: https://gist.github.com/stas00/dc1597a1e245c5915cfeefa0eee6902c So sharding does really bad there, and your json over procs is doing great! Any suggestions to a somewhat bigger dataset, but not too big? say 10 times of lama?
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
57
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. OK, so I benchmarked using "lama" though it's too small for this kind of test, since the sharding is much slower than one thread here. Results: https://gist.github.com/stas00/dc1597a1e245c5915cfeefa0eee6902c So sharding does really bad there, and your json over procs is doing great! Any suggestions to a somewhat bigger dataset, but not too big? say 10 times of lama?
[ -0.36470481753349304, -0.16134300827980042, -0.19620083272457123, -0.07863977551460266, -0.037320397794246674, -0.16667678952217102, 0.1297488510608673, 0.3671339154243469, -0.1730888932943344, 0.24578480422496796, 0.10664869099855423, 0.5350859761238098, 0.20432032644748688, 0.34466978907585144, -0.3300924599170685, 0.11174437403678894, 0.30821940302848816, -0.13372419774532318, 0.22742880880832672, 0.19962002336978912, -0.24568380415439606, 0.451738178730011, -0.10165098309516907, -0.22793994843959808, 0.0897257849574089, -0.2205548733472824, 0.06595443934202194, 0.21138018369674683, -0.10476071387529373, -0.22509604692459106, -0.283062219619751, 0.12309341132640839, -0.09003383666276932, -0.009203627705574036, -0.00010305878822691739, -0.13073529303073883, 0.20829810202121735, 0.09243681281805038, -0.012005746364593506, 0.10562945902347565, -0.0641128420829773, -0.2295026183128357, 0.12238376587629318, -0.2655230462551117, 0.17479878664016724, 0.3218882381916046, -0.0030960235744714737, -0.032362040132284164, 0.5658494234085083, 0.2827706038951874, 0.23176619410514832, 0.14690017700195312, 0.28763389587402344, 0.027634071186184883, -0.1550218164920807, 0.08564163744449615, -0.3281822204589844, -0.048470962792634964, 0.29129767417907715, 0.390195369720459, 0.008093439042568207, 0.12095057964324951, 0.07153678685426712, 0.05007488280534744, -0.13905271887779236, -0.1194455549120903, -0.02854987233877182, -0.11220258474349976, 0.07271349430084229, 0.11390013992786407, 0.12061147391796112, 0.10531888902187347, -0.2610777020454407, 0.06996902078390121, -0.20096713304519653, -0.4877409040927887, 0.1952991485595703, 0.02287057787179947, -0.08536723256111145, 0.025518950074911118, -0.11831525713205338, -0.3179231584072113, -0.15752120316028595, -0.39289402961730957, -0.006630357354879379, 0.07367070019245148, 0.016245432198047638, 0.24755322933197021, 0.5005319714546204, -0.03918176144361496, -0.1306382119655609, -0.03744170814752579, -0.024616289883852005, -0.28809913992881775, -0.2871706187725067, -0.3644932210445404, 0.169155091047287, -0.2694551944732666, -0.2622166872024536, 0.08513186872005463, 0.021171726286411285, 0.39665159583091736, 0.26034846901893616, 0.2117961049079895, 0.06886111199855804, -0.201195627450943, -0.02858569473028183, -0.25722506642341614, 0.2065107822418213, 0.17623744904994965, -0.08375611901283264, 0.09197887033224106, 0.17790544033050537, -0.4014318883419037, -0.30484697222709656, 0.08955169469118118, -0.349057674407959, -0.27386894822120667, -0.22750961780548096, 0.0144340293481946, 0.16531336307525635, -0.19357499480247498, -0.3190174698829651, 0.20803695917129517, 0.003562235739082098, 0.23049470782279968, 0.03489743918180466, 0.05888616666197777, -0.4349910318851471, -0.13271693885326385, -0.033556681126356125, 0.21312981843948364, -0.06184497848153114, 0.19733783602714539, -0.15367881953716278, 0.2033415138721466, -0.2593972086906433, 0.24258194863796234, -0.01745227724313736, -0.05527607351541519, 0.08352109789848328, -0.1704680323600769, -0.2509848475456238, 0.12525998055934906, 0.15187573432922363, 0.015125857666134834, -0.22818200290203094, -0.06732656806707382, -0.30615442991256714, 0.07222987711429596, -0.22302556037902832, -0.2355431169271469, -0.15792080760002136, 0.20862458646297455, -0.005037292838096619, 0.09977476298809052, -0.42428866028785706, 0.1955825239419937, 0.01676303893327713, -0.026362605392932892, -0.16011840105056763, -0.024464070796966553, -0.030371645465493202, -0.1975189745426178, 0.004630275070667267, -0.04495033621788025, -0.2429530918598175, 0.37045618891716003, -0.026105791330337524, 0.043037571012973785, 0.4795043170452118, 0.4978426992893219, -0.09521757811307907, 0.020043332129716873, 0.0639958381652832, 0.07749402523040771, -0.032317765057086945, -0.005770083516836166, 0.05121101438999176, 0.3969115912914276, -0.27098432183265686, -0.17902280390262604, 0.3368525505065918, -0.09104347229003906, 0.1348986178636551, -0.08659765869379044, 0.13957679271697998, 0.1986362189054489, 0.03823893517255783, 0.09658762067556381, -0.47769787907600403, -0.08853219449520111, -0.23099644482135773, 0.12064468860626221, -0.26711589097976685, -0.23687797784805298, 0.0793919563293457, -0.09278260916471481, 0.22344747185707092, -0.1881212592124939, 0.08112281560897827, 0.24378761649131775, 0.1316244751214981, -0.2918691039085388, -0.25300031900405884, 0.2763313949108124, 0.14078561961650848, 0.1964358389377594, -0.042777396738529205, 0.2932291030883789, 0.08645952492952347, 0.06048097461462021, 0.24853888154029846, 0.03239182382822037, 0.05142742767930031, -0.19636684656143188, 0.13844247162342072, 0.113826684653759, -0.02700996585190296, 0.08534584939479828, 0.05864454433321953, 0.20273149013519287, -0.11627618223428726, -0.04956616461277008, -0.49217844009399414, 0.026440290734171867, -0.14317138493061066, -0.090753935277462, 0.13236592710018158, -0.11031938344240189, 0.1320376992225647, -0.24657629430294037, 0.10781048238277435, -0.013977788388729095, 0.1008455753326416, 0.29589158296585083, 0.29118043184280396, 0.050887331366539, -0.02401052974164486, 0.015000905841588974, -0.13891664147377014, 0.09230519831180573, -0.09719421714544296, -0.13233725726604462, -0.350200355052948, 0.741369903087616, 0.2265702486038208, 0.3014150559902191, 0.21797703206539154, -0.13648319244384766, 0.4040415585041046, -0.005090720951557159, 0.17777863144874573, 0.12286539375782013, 0.17088858783245087, 0.4731244742870331, -0.34538885951042175, -0.07857430726289749, -0.29035136103630066, 0.26160213351249695, 0.6578771471977234, 0.023458100855350494, -0.26477935910224915, 0.26274412870407104, 0.4297523498535156, -0.36107927560806274, 0.3127160370349884, 0.3290272355079651, 0.4722612500190735, 0.1798599809408188, 0.25312671065330505, -0.07998392730951309, -0.17187398672103882, -0.15674160420894623, 0.264994740486145, -0.331203818321228, 0.5411152243614197, -0.05482576787471771, 0.06790710985660553, -0.12973450124263763, -0.12764710187911987, -0.4893925189971924, 0.08679775893688202, 0.17745034396648407, 0.06194237992167473, -0.044030629098415375, -0.16303780674934387, 0.5304959416389465, -0.046367865055799484, 0.17368091642856598, -0.010577525943517685, -0.3539479970932007, 0.0880766212940216, 0.4133688509464264, -0.28479552268981934, -0.20439572632312775, 0.2602512836456299, 0.06686680018901825, -0.15407131612300873, 0.11895891278982162, -0.2164728343486786, 0.012078195810317993, -0.117214135825634, 0.13647516071796417, 0.33556002378463745, 0.06721129268407822, -0.06419777870178223, -0.12198018282651901, -0.16270235180854797, -0.15258477628231049, -0.1812761425971985, -0.10052397847175598, -0.17289839684963226, 0.05229707807302475, -0.08996857702732086, 0.19012001156806946, 0.055426500737667084, -0.34819552302360535, 0.1918191909790039, -0.018191950395703316, -0.3271290361881256, -0.0024909712374210358, -0.16640035808086395, -0.12477412074804306, -0.03485759720206261, -0.23010462522506714, 0.005438956432044506, -0.28444570302963257, 0.6062883734703064, -0.024992763996124268, 0.3097234070301056, -0.4602217972278595, 0.207247793674469, -0.02961825579404831, -0.02396192029118538, 0.06443680822849274, -0.08495200425386429, -0.52689528465271, 0.13957121968269348, -0.22752268612384796, -0.32910066843032837, 0.11739325523376465, 0.35259127616882324, 0.5600917339324951, -0.25717657804489136, -0.2852279543876648, 0.1930185854434967, -0.11186029016971588, 0.20698006451129913, -0.057545050978660583, -0.2178734689950943, 0.3826616406440735, 0.07181239873170853, -0.3262172341346741, 0.04443594068288803, -0.28798574209213257, 0.1279795616865158, 0.03787148743867874, 0.152867391705513, -0.09866899996995926, 0.36909812688827515, 0.24069586396217346, 0.5254979133605957, 0.18375526368618011, -0.07419650256633759, 0.033716049045324326, 0.17470258474349976, -0.16088972985744476, -0.1482728123664856, -0.009669959545135498, 0.2640160322189331, -0.2898823916912079, -0.057611845433712006, 0.2632277309894562, -0.13834038376808167, -0.3953931927680969, -0.16162285208702087, 0.2122698426246643, -0.21964794397354126, -0.23827910423278809, 0.241609588265419, 0.11865196377038956, -0.08741279691457748, -0.19164589047431946, -0.03865079581737518, -0.15793241560459137, 0.1506572961807251, -0.019353892654180527, 0.11682655662298203, 0.010437428951263428, -0.2960773706436157, -0.5209108591079712, -0.41823241114616394, -0.6538389921188354, 0.4625750780105591, -0.13348247110843658, 0.14798663556575775, -0.08757101744413376, -0.10645591467618942, 0.13224950432777405, -0.5821012854576111, 0.49775731563568115, -0.062058061361312866, -0.04366930574178696, 0.2823549211025238, -0.2104143500328064, -0.15112125873565674, -0.05006181448698044, -0.05892468988895416, 0.2278863936662674, 0.3827335238456726, 0.3451819121837616, -0.41310974955558777, -0.18293645977973938, -0.1276027262210846, -0.18260374665260315, -0.03264077380299568, -0.06309188157320023, -0.17529062926769257, -0.2843226492404938, -0.273178368806839, 0.20431819558143616, -0.183603435754776, 0.4474349617958069, -0.31510695815086365, -0.29392728209495544, 0.24710558354854584, -0.1860661804676056, 0.09695079922676086, 0.10687844455242157, -0.10655083507299423, -0.15503573417663574, 0.12166157364845276, -0.3369654715061188, -0.04231180250644684, 0.3878948390483856, 0.25838702917099, 0.13968060910701752, -0.07530137896537781, 0.07704372704029083, 0.08347054570913315, 0.07880505174398422, 0.1766320914030075, 0.10684492439031601, 0.3705681264400482, -0.030678752809762955, 0.608815610408783, 0.038336604833602905, -0.19436101615428925, 0.20659805834293365, 0.20991727709770203, -0.1780260056257248, 0.25609341263771057, 0.2427772581577301, -0.05433830991387367, -0.0017581060528755188, 0.13717181980609894, -0.23482976853847504, 0.09724284708499908, 0.16461330652236938, 0.28177717328071594, 0.8147778511047363, -0.1440122127532959, 0.02817656844854355, -0.10912854224443436, -0.363208532333374, 0.35708290338516235, -0.5022407174110413, 0.1713152378797531, 0.006847839802503586, 0.12355986982584, 0.23232950270175934, 0.12860041856765747, 0.3276795446872711, 0.18884313106536865, -0.17193901538848877, -0.05398861691355705, 0.32834625244140625, -0.27024373412132263, -0.17715121805667877, 0.48777347803115845, -0.008313912898302078, -0.22165854275226593, -0.08703486621379852, 0.14587147533893585, 0.08925138413906097, -0.3590471148490906, 0.019503965973854065, -0.4059918522834778, -0.052686840295791626, 0.10017120838165283, -0.3324417173862457, 0.062069281935691833, 0.12422335892915726, 0.12479186803102493, 0.0652841329574585, -0.020096153020858765, 0.11157646775245667, -0.005225088447332382, 0.13274872303009033, -0.05997152999043465, -0.17353133857250214, 0.06413520872592926, -0.32933080196380615, 0.1425967663526535, -0.11704845726490021, -0.35717278718948364, 0.12976312637329102, -0.4414687156677246, -0.18441858887672424, 0.16581884026527405, -0.15275241434574127, -0.5515009760856628, 0.32662439346313477, 0.2259811908006668, -0.1399907022714615, 0.11210931092500687, -0.09020659327507019, 0.46090108156204224, -0.3474538326263428, -0.42560550570487976, 0.20446723699569702, 0.26516488194465637, -0.3361652195453644, 0.4672483205795288, -0.3725101053714752, -0.1689595878124237, -0.09950843453407288, 0.257274329662323, 0.07367238402366638, 0.04135201871395111, -0.06284531205892563, 0.22655390202999115, -0.2555719017982483, -0.22534656524658203, 0.1699126958847046, 0.13993297517299652, -0.05478965863585472, 0.20610208809375763, 0.010248388163745403, -0.11870939284563065, 0.19908152520656586, 0.08506093174219131, -0.09682357311248779, 0.21971458196640015, -0.0338192954659462, -0.21370328962802887, -0.3277735114097595, -0.03976983577013016, -0.353241503238678, -0.03191019967198372, -0.08177147805690765, 0.33910882472991943, 0.05300740897655487, 0.25283539295196533, -0.3593878448009491, 0.10237192362546921, -0.4398280382156372, 0.04077436029911041, 0.023156434297561646, -0.3047718107700348, -0.01572241075336933, 0.23688548803329468, 0.2194060981273651, 0.18943950533866882, -0.25694477558135986, -0.20764923095703125, 0.23570266366004944, 0.08032778650522232, -0.043069370090961456, -0.03213915973901749, 0.15568916499614716, 0.1145169734954834, -0.24744221568107605, 0.06566260755062103, 0.08720239996910095, -0.22976154088974, -0.22522474825382233, -0.0775001123547554, 0.3331882357597351, 0.06811821460723877, -0.10664623230695724, -0.3074827194213867, 0.0978320762515068, 0.6684534549713135, -0.1731051504611969, 0.25547167658805847, -0.008943518623709679, -0.20403817296028137, -0.040481675416231155, 0.15890176594257355, -0.1073465347290039, 0.13356633484363556, 0.2663297951221466, 0.03142023831605911, -0.3575199246406555, -0.2824704647064209, 0.36301180720329285, 0.18470464646816254, 0.048113126307725906, 0.16115447878837585, 0.07040263712406158, 0.2388342171907425, -0.005272623151540756, -0.18624435365200043, -0.11028751730918884, -0.17738120257854462, 0.1200246810913086, -0.01776794344186783, 0.2348029911518097, -0.12823432683944702, 0.3351733088493347, 0.10625781863927841, 0.11259753257036209, -0.36324453353881836, -0.15477366745471954, -0.23788976669311523, -0.1852462887763977, 0.04880702123045921, 0.4120091497898102, -0.00893254205584526, 0.19899269938468933, 0.24962061643600464, 0.07336147129535675, 0.6831443309783936, 0.3844560980796814, 0.4399964511394501, 0.058616749942302704, -0.17350482940673828, 0.050679612904787064, 0.13558316230773926, 0.08448001742362976, 0.2406635880470276, 0.16566453874111176, 0.06227131560444832, -0.2504752576351166, -0.19553297758102417, -0.20808275043964386, 0.37792566418647766, -0.19489127397537231, -0.33175742626190186, -0.13207373023033142, -0.1553105264902115, -0.021186500787734985, 0.13964642584323883, 0.0022679083049297333, 0.1700270175933838, 0.5187796354293823, 0.07054046541452408, 0.05508262291550636, 0.01367055531591177, -0.1942434012889862, -0.2221156358718872, 0.2937338054180145, -0.1948697417974472, 0.3226761519908905, 0.24802593886852264, -0.384578138589859, -0.22386136651039124, 0.038394272327423096, 0.4912441670894623, -0.08517555892467499, -0.09279125928878784, 0.1388741284608841, -0.11965425312519073, -0.005746014416217804, 0.03339425474405289, 0.3932708501815796, 0.16510745882987976, 0.13217996060848236, 0.12085019052028656, 0.1480867564678192, -0.22782203555107117, 0.17785562574863434, 0.05622096732258797, 0.10460169613361359, 0.027736078947782516, 0.009417280554771423, 0.04780195653438568, -0.17567449808120728, -0.10945381224155426, 0.24354711174964905, -0.32928597927093506, -0.3301628828048706, -0.04190109297633171, -0.5565069913864136, -0.01061950996518135, 0.0034025246277451515, 0.15020331740379333, -0.09830760955810547, 0.5321125388145447, -0.13529658317565918, 0.19245928525924683, -0.19751445949077606, -0.3553721308708191, 0.033276572823524475, 0.0785498321056366, -0.18163229525089264, 0.20174740254878998, -0.09243769198656082, 0.6349363923072815, 0.3436017632484436, 0.2333732545375824, 0.22684310376644135, -0.020259195938706398, -0.0849103257060051, 0.35698530077934265, -0.3916968107223511, 0.533490002155304, 0.44471752643585205, -0.27075979113578796, 0.030971478670835495, -0.21812322735786438, 0.48194533586502075, -0.008051757700741291, 0.1522250771522522, -0.09996636211872101, 0.04948204755783081, 0.3606402277946472, 0.15104477107524872, 0.28441357612609863, 0.16175000369548798, -0.07204127311706543, -0.28729385137557983, -0.3547792434692383, 0.09254828095436096, 0.31676778197288513, 0.06012742593884468, 0.03194405883550644, 0.08829213678836823, 0.5422874689102173, 0.07563748955726624, 0.32076358795166016, -0.06948810070753098, 0.00014993571676313877, -0.2998661994934082, -0.2733229994773865, -0.10636468231678009, 0.24046587944030762, 0.04460059106349945, 0.1380554437637329, 0.12166513502597809, 0.3267369568347931, 0.1936519891023636, -0.2139432430267334, -0.6936705112457275, -0.0795569121837616, 0.13859958946704865, -0.1517460197210312, -0.2304636538028717, 0.19897334277629852, 0.1798565536737442, -0.31807196140289307, 0.3735898733139038, -0.31140241026878357, -0.17196208238601685, 0.07049425691366196, 0.06699826568365097, -0.39537718892097473, 0.3802357614040375, -0.15012329816818237, -0.35669848322868347, 0.057162653654813766, 0.019959643483161926, 0.1089329645037651, -0.09555882960557938, -0.3262915313243866, -0.31278884410858154 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Looks great! I had a few questions/suggestions related to `benchmark-datasets-to_json.py`: 1. You have used only 10_000 and 100_000 batch size. Including more batch sizes may help you find the perfect batch size for your machine and even give you some extra speed-up. For eg, I found `load_dataset("cc100", lang="eu")` with batch size 125_000 took less time as compared to batch size 100_000 (71.16 sec v/s 67.26 sec) since this dataset has 2 fields only `['id', 'text']`, so that's why we can go for higher batch size here. 2. Why have you used `num_procs` 1 and 4 only? You can use: 1. `dataset = load_dataset("cc100", lang="af")`. Even though it has only 2 fields but there are around 9.9 mil samples. (lama had around 1.3 mil samples) 2. `dataset = load_dataset("cc100", lang="eu")` -> 16 mil samples. (if you want something more than 9.9 mil) 3. `dataset = load_dataset("neural_code_search", 'search_corpus')` -> 4.7 mil samples
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
150
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Looks great! I had a few questions/suggestions related to `benchmark-datasets-to_json.py`: 1. You have used only 10_000 and 100_000 batch size. Including more batch sizes may help you find the perfect batch size for your machine and even give you some extra speed-up. For eg, I found `load_dataset("cc100", lang="eu")` with batch size 125_000 took less time as compared to batch size 100_000 (71.16 sec v/s 67.26 sec) since this dataset has 2 fields only `['id', 'text']`, so that's why we can go for higher batch size here. 2. Why have you used `num_procs` 1 and 4 only? You can use: 1. `dataset = load_dataset("cc100", lang="af")`. Even though it has only 2 fields but there are around 9.9 mil samples. (lama had around 1.3 mil samples) 2. `dataset = load_dataset("cc100", lang="eu")` -> 16 mil samples. (if you want something more than 9.9 mil) 3. `dataset = load_dataset("neural_code_search", 'search_corpus')` -> 4.7 mil samples
[ -0.31125929951667786, -0.006624735891819, -0.18003037571907043, -0.04923109710216522, -0.019113019108772278, 0.04700975865125656, 0.18123504519462585, 0.4183479845523834, -0.023108024150133133, 0.08263253420591354, 0.07376785576343536, 0.5878174901008606, 0.05228215456008911, 0.40606123208999634, -0.17270469665527344, 0.10836765170097351, 0.3256520926952362, -0.13087674975395203, 0.3566336929798126, 0.16719770431518555, -0.40174752473831177, 0.3318052291870117, -0.14748059213161469, -0.22200773656368256, 0.03491540998220444, -0.18043281137943268, 0.03935755789279938, 0.10701955854892731, -0.02879892848432064, -0.5349898338317871, -0.262283593416214, 0.11716587841510773, -0.05926087871193886, 0.1837184578180313, -0.00010840900358743966, -0.10274666547775269, 0.03192054480314255, 0.09607044607400894, -0.19337157905101776, 0.03088562935590744, 0.09559664875268936, -0.3684631288051605, 0.21462658047676086, -0.3623834252357483, 0.15924057364463806, -0.011255363933742046, -0.16469806432724, -0.30879533290863037, 0.5191422700881958, 0.48049265146255493, 0.21310441195964813, 0.32399240136146545, 0.2349666804075241, 0.09188970178365707, -0.33515533804893494, 0.04266234487295151, -0.2282956838607788, -0.025233019143342972, 0.30328965187072754, 0.16728372871875763, 0.11783266067504883, 0.11069092154502869, 0.06178618222475052, 0.08511083573102951, -0.1517435908317566, -0.22497773170471191, 0.00024452805519104004, -0.2195592224597931, -0.0032249800860881805, 0.14431652426719666, 0.2243882417678833, -0.225897878408432, -0.44371297955513, -0.06826535612344742, -0.1190061941742897, -0.47145336866378784, 0.005449660122394562, 0.1351487934589386, -0.07983136177062988, -0.03087073192000389, -0.19878382980823517, -0.18828228116035461, -0.17443963885307312, -0.3406224846839905, 0.02240101993083954, 0.1900753527879715, 0.08792035281658173, 0.2478736937046051, 0.4776112139225006, -0.0427759513258934, 0.06760823726654053, -0.19288372993469238, 0.11712630093097687, -0.07462359219789505, -0.46982908248901367, -0.4448142349720001, 0.12100400030612946, -0.43193212151527405, -0.13703663647174835, 0.0598108284175396, -0.08424633741378784, 0.1903449296951294, 0.19394437968730927, 0.1728518009185791, 0.1379365772008896, 0.008743101730942726, 0.004621431231498718, -0.007992681115865707, 0.09858472645282745, 0.18187522888183594, -0.061666250228881836, 0.1539103388786316, 0.11960037797689438, -0.260099858045578, 0.003338780254125595, 0.19127988815307617, -0.19644828140735626, -0.297924667596817, -0.372380793094635, 0.00803486630320549, 0.05845794826745987, -0.27322128415107727, -0.2693733274936676, 0.1691434681415558, -0.07252063602209091, 0.4449079930782318, -0.025989584624767303, 0.23021313548088074, -0.5320361256599426, -0.14341217279434204, -0.02127249352633953, 0.2949639558792114, 0.007478203624486923, 0.1923346370458603, 0.016338065266609192, 0.1557500958442688, -0.13468621671199799, 0.21386635303497314, -0.06782133877277374, -0.0905483216047287, 0.33559224009513855, -0.23177410662174225, -0.35933998227119446, 0.15025363862514496, 0.18392832577228546, 0.12264720350503922, -0.05073926970362663, -0.079719178378582, -0.3170012831687927, 0.08232419192790985, -0.1785864531993866, -0.22402723133563995, -0.06761443614959717, 0.21362081170082092, -0.0738188624382019, -0.06258857250213623, -0.4935992658138275, 0.21104203164577484, 0.07631372660398483, -0.014096265658736229, -0.08435089141130447, -0.11202427744865417, -0.009937133640050888, -0.28768691420555115, 0.04523158818483353, 0.09797076135873795, -0.2977803349494934, 0.26673978567123413, 0.02431453950703144, 0.04768211022019386, 0.3482360243797302, 0.4389397203922272, -0.1307263970375061, 0.1283518671989441, 0.09069158881902695, -0.07983861118555069, -0.08948876708745956, -0.37789034843444824, 0.03658004850149155, 0.33209139108657837, -0.2246081680059433, -0.03399020433425903, 0.28582337498664856, -0.04215493053197861, 0.06673218309879303, -0.12854570150375366, 0.26308920979499817, 0.21673226356506348, 0.05416707694530487, 0.2298675775527954, -0.39615458250045776, -0.11934389919042587, 0.13330137729644775, 0.19041034579277039, -0.2683589458465576, -0.25111162662506104, -0.05053228884935379, -0.21072016656398773, 0.2359621822834015, -0.18469169735908508, 0.04029861092567444, 0.2598622441291809, 0.13030889630317688, -0.33475059270858765, -0.15401998162269592, 0.12918433547019958, -0.00704076886177063, 0.29594680666923523, 0.002726953476667404, 0.1677320897579193, 0.014076590538024902, 0.01557745411992073, 0.12156594544649124, 0.1402670294046402, -0.1004691869020462, -0.3663623332977295, 0.11104407906532288, 0.047186605632305145, 0.07190383970737457, 0.11958986520767212, 0.036883626133203506, 0.30563217401504517, 0.05710899829864502, 0.02701699733734131, -0.39642447233200073, -0.0013977829366922379, -0.05627455562353134, 0.048950858414173126, 0.1471228301525116, 0.04806872457265854, 0.15563181042671204, -0.22619467973709106, -0.11221975833177567, 0.044842351227998734, 0.2706805169582367, 0.21513785421848297, 0.4274147152900696, 0.043242260813713074, 0.06863326579332352, -0.09776067733764648, 0.1059301570057869, 0.2685774266719818, 0.026081949472427368, -0.14890770614147186, -0.3546440303325653, 0.7644593715667725, 0.3198094964027405, 0.40185827016830444, 0.2591126561164856, -0.2339722365140915, 0.2726227045059204, 0.121817946434021, 0.16871200501918793, 0.21606376767158508, 0.16234099864959717, 0.5223341584205627, -0.018152397125959396, -0.15913978219032288, -0.26986414194107056, 0.2801218330860138, 0.6202732920646667, 0.06051542982459068, -0.22843676805496216, 0.3180505335330963, 0.1085299476981163, -0.3730354309082031, 0.30275097489356995, 0.20568107068538666, 0.5370000004768372, 0.16013020277023315, 0.09593865275382996, -0.02148807980120182, -0.26846474409103394, 0.0041260141879320145, 0.250100314617157, -0.18912042677402496, 0.46676355600357056, -0.05207137018442154, 0.2436380833387375, -0.17332787811756134, -0.11594182997941971, -0.43841028213500977, 0.022987114265561104, 0.28643521666526794, -0.06469441950321198, 0.09071754664182663, -0.052444927394390106, 0.4128943979740143, -0.019368194043636322, -0.018511585891246796, -0.019103042781352997, -0.30013084411621094, -0.03182494640350342, 0.21319499611854553, -0.09919464588165283, -0.160075381398201, 0.08225610852241516, 0.006866276264190674, -0.14095361530780792, -0.10140319913625717, -0.05631677433848381, -0.07446935027837753, -0.09019706398248672, 0.11519244313240051, 0.170443594455719, 0.11025860905647278, 0.13145337998867035, -0.05637132376432419, -0.0728839635848999, -0.02145935781300068, -0.09079940617084503, -0.22911900281906128, -0.22831697762012482, 0.10527767241001129, -0.12692637741565704, 0.1888742297887802, 0.16642795503139496, -0.24876901507377625, 0.1587917059659958, -0.10102518647909164, -0.20222939550876617, -0.0026208683848381042, -0.15251736342906952, -0.05013030394911766, 0.11978162825107574, -0.38045668601989746, -0.3434038460254669, -0.27307212352752686, 0.5760824084281921, 0.11013856530189514, 0.2874488830566406, -0.31774482131004333, 0.2875823974609375, 0.010344346985220909, 0.15697793662548065, 0.029503915458917618, -0.07773216813802719, -0.36072370409965515, 0.10686889290809631, -0.13719375431537628, -0.19988438487052917, 0.08529074490070343, 0.2586739659309387, 0.3828314244747162, -0.35160619020462036, -0.21704013645648956, 0.13599075376987457, -0.18695470690727234, 0.20744842290878296, -0.04475528001785278, -0.030555563047528267, 0.34975671768188477, 0.13346941769123077, -0.22302663326263428, 0.09461887925863266, -0.35218682885169983, 0.02915634959936142, 0.07310906052589417, 0.10087751597166061, -0.18918797373771667, 0.39787137508392334, 0.12295258045196533, 0.5034641027450562, 0.43475332856178284, -0.13757574558258057, 0.1004902720451355, 0.04733259975910187, -0.12503932416439056, -0.18207526206970215, -0.1470121443271637, 0.17759208381175995, -0.35361286997795105, -0.019812442362308502, 0.15058955550193787, -0.09260575473308563, -0.3393484055995941, -0.1363362967967987, 0.2654520869255066, -0.3682222068309784, -0.10775619745254517, 0.1842740923166275, 0.06420021504163742, 0.025173388421535492, -0.11557665467262268, -0.07063189148902893, -0.39534786343574524, 0.17794522643089294, -0.15598781406879425, 0.00405392050743103, -0.07198750227689743, -0.29458197951316833, -0.6600838899612427, -0.4428624212741852, -0.6426765322685242, 0.4723312258720398, -0.13548287749290466, 0.24912294745445251, 0.11240904033184052, -0.09157313406467438, 0.09814668446779251, -0.4787665903568268, 0.5147331953048706, -0.11130190640687943, -0.11541169881820679, 0.4308531582355499, -0.09257247298955917, -0.41087809205055237, -0.0794704407453537, -0.09262941777706146, 0.32346898317337036, 0.259602814912796, 0.4665314555168152, -0.3738069236278534, -0.14869588613510132, -0.049430377781391144, 0.0425824336707592, 0.030243758112192154, -0.1487058848142624, -0.21029388904571533, -0.3735760748386383, -0.33524343371391296, 0.28513145446777344, -0.07484570145606995, 0.4465717375278473, -0.39450448751449585, -0.2403079718351364, 0.3298664093017578, -0.12090574949979782, 0.16867828369140625, 0.1465439796447754, -0.06951236724853516, -0.07792585343122482, 0.2914857566356659, -0.18377134203910828, -0.2332744002342224, 0.4584123194217682, 0.33110782504081726, -0.12008126080036163, -0.18199828267097473, -0.0538996085524559, 0.19764679670333862, 0.18921738862991333, 0.16485565900802612, 0.012637981213629246, 0.3633502721786499, -0.11953885853290558, 0.44593948125839233, 0.04621462896466255, -0.20193026959896088, 0.26263147592544556, 0.30114760994911194, -0.3933248817920685, -0.1719571202993393, 0.31304657459259033, 0.01934007555246353, 0.037057071924209595, 0.11892801523208618, -0.48638755083084106, 0.06083633750677109, 0.11751628667116165, 0.08980212360620499, 0.7324072122573853, -0.14692455530166626, 0.10484027117490768, -0.025683816522359848, -0.44720155000686646, 0.4157276153564453, -0.6228570342063904, 0.07720811665058136, -0.15809284150600433, 0.11780991405248642, 0.2899209260940552, 0.017597001045942307, 0.31930243968963623, 0.24787992238998413, -0.12897740304470062, 0.1893259584903717, 0.15394407510757446, -0.38715195655822754, -0.18831385672092438, 0.6020179390907288, 0.04552985727787018, -0.258086621761322, -0.17018315196037292, 0.15381957590579987, -0.012441687285900116, -0.26625439524650574, 0.10137137770652771, -0.32296299934387207, -0.07322093844413757, -0.004921410232782364, -0.39685899019241333, 0.04687442630529404, -0.11805709451436996, 0.14835724234580994, 0.06104937195777893, -0.017551027238368988, 0.16391415894031525, 0.062048688530921936, 0.19106027483940125, -0.07640966773033142, -0.12856492400169373, 0.0224579107016325, -0.2378639578819275, 0.21812161803245544, 0.03531022369861603, -0.2748972177505493, 0.14488962292671204, -0.3769156336784363, -0.2601469159126282, 0.17698490619659424, -0.21583344042301178, -0.4249478578567505, 0.37678706645965576, 0.10152886807918549, -0.16827990114688873, -0.04794615879654884, -0.13609299063682556, 0.41983890533447266, -0.1914333999156952, -0.532552182674408, 0.18968479335308075, 0.24846011400222778, -0.33168289065361023, 0.615104615688324, -0.563332200050354, -0.23972995579242706, -0.09554865956306458, 0.3040271997451782, 0.11339820921421051, 0.01904318854212761, 0.10807202756404877, 0.3119361698627472, -0.1956465095281601, -0.2890686094760895, 0.24046409130096436, 0.25178369879722595, -0.059780433773994446, 0.3064935803413391, 0.015821021050214767, -0.03858420252799988, 0.19659408926963806, 0.03399605676531792, 0.0017828010022640228, 0.1533363312482834, 0.10040624439716339, -0.2828342914581299, -0.42417246103286743, -0.08670927584171295, -0.1618020236492157, -0.05589841678738594, 0.0071653686463832855, 0.23381060361862183, 0.0757410004734993, 0.26119527220726013, -0.33183717727661133, 0.061824820935726166, -0.43066874146461487, 0.06480640172958374, -0.02192641794681549, -0.2525806427001953, 0.12013380974531174, 0.22449496388435364, 0.21759745478630066, -0.012116819620132446, -0.23129484057426453, -0.2452842891216278, 0.12632504105567932, 0.07483115047216415, -0.08960583806037903, -0.14323492348194122, 0.21752585470676422, 0.00728708878159523, -0.2079499363899231, -0.05205449461936951, 0.01641114056110382, -0.14887452125549316, -0.2649309039115906, 0.1035868301987648, 0.18668781220912933, -0.09079208225011826, -0.06437566876411438, -0.18083202838897705, -0.018037550151348114, 0.5628789663314819, -0.006476871203631163, 0.35933104157447815, 0.03076714649796486, -0.1719660758972168, -0.21690653264522552, 0.033471062779426575, -0.14271017909049988, 0.19572770595550537, 0.09303437918424606, -0.1344621479511261, -0.2530083656311035, -0.1897055059671402, 0.3987673819065094, 0.37692248821258545, -0.14066429436206818, 0.23803336918354034, -0.010558420792222023, 0.2281956821680069, -0.11361393332481384, -0.18806274235248566, 0.0017228256911039352, -0.22013793885707855, 0.1178363561630249, 0.034254156053066254, 0.31313079595565796, 0.027895234525203705, 0.3458300232887268, 0.040936633944511414, 0.22511164844036102, -0.22858314216136932, -0.04338335618376732, -0.05844360217452049, -0.13912446796894073, 0.025007668882608414, 0.33507105708122253, 0.056218553334474564, 0.23786363005638123, 0.27289265394210815, 0.11375458538532257, 0.6057538390159607, 0.4376847445964813, 0.31780901551246643, -0.09178750962018967, -0.13366344571113586, 0.1560753434896469, 0.09787450730800629, -0.10419686138629913, 0.21603727340698242, 0.23243920505046844, 0.24911731481552124, -0.4187468886375427, -0.13039161264896393, -0.2010483741760254, 0.36674419045448303, -0.0373968631029129, -0.32080668210983276, 0.10467644035816193, -0.15454348921775818, -0.050338782370090485, -0.00903870165348053, -0.10685507953166962, -0.06282827258110046, 0.27442216873168945, 0.07676760852336884, 0.05115901678800583, -0.19782963395118713, -0.11898674815893173, -0.07856398820877075, 0.31786879897117615, -0.09655405580997467, 0.2678285539150238, 0.3092193901538849, -0.4015336334705353, -0.2713690400123596, 0.13664861023426056, 0.5908392071723938, -0.11708790063858032, -0.30616334080696106, 0.18675538897514343, -0.1304762363433838, -0.036009468138217926, 0.21757981181144714, 0.2314043492078781, 0.07608604431152344, 0.004887022078037262, 0.1416863054037094, 0.1234988272190094, -0.1968259960412979, 0.06305352598428726, 0.044279519468545914, -0.0003229603171348572, -0.07745173573493958, 0.20147764682769775, 0.10700035840272903, -0.22179579734802246, -0.1266559213399887, 0.30435308814048767, -0.35755762457847595, -0.2304397076368332, 0.13989782333374023, -0.34018251299858093, -0.060041382908821106, -0.04949204996228218, 0.14599227905273438, -0.1082034707069397, 0.4544753134250641, -0.06379416584968567, 0.20863446593284607, -0.29832229018211365, -0.23224110901355743, -0.11522087454795837, -0.09034860879182816, -0.33059415221214294, 0.11096395552158356, 0.0045194742269814014, 0.34692907333374023, 0.18304428458213806, 0.2266807109117508, 0.25014013051986694, 0.3280080556869507, 0.024923060089349747, 0.3712792992591858, -0.49062833189964294, 0.39125028252601624, 0.31709080934524536, -0.07313878834247589, 0.12072436511516571, -0.2704041600227356, 0.37800106406211853, 0.04023467004299164, 0.0979633703827858, -0.24155710637569427, 0.10569204390048981, 0.41505730152130127, 0.07007964700460434, 0.3809855878353119, 0.0812121108174324, 0.2662776708602905, -0.16374421119689941, -0.2735438644886017, 0.1673157513141632, 0.304593563079834, 0.016210388392210007, 0.07293335348367691, 0.09258854389190674, 0.48425254225730896, 0.05599234253168106, 0.18479634821414948, -0.058201197534799576, 0.018662314862012863, -0.24241842329502106, -0.5189692378044128, -0.17425207793712616, 0.21634289622306824, 0.08058124035596848, 0.12735587358474731, 0.12340424954891205, 0.3653123080730438, 0.16839362680912018, -0.07317275553941727, -0.6374139189720154, -0.07214487344026566, 0.0656638815999031, -0.12372656911611557, -0.24398328363895416, 0.07108781486749649, 0.2837632894515991, -0.4000236988067627, 0.3279564678668976, -0.29158151149749756, 0.02769388258457184, 0.23364292085170746, 0.027424314990639687, -0.5012677311897278, 0.4454303979873657, -0.2857937216758728, -0.19653010368347168, 0.13118453323841095, 0.0943685844540596, 0.0278913676738739, -0.011898243799805641, -0.25933656096458435, -0.2940789461135864 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Thank you, @bhavitvyamalik My apologies, at the moment I have not found time to do more benchmark with the proposed other datasets. I will try to do it later, but I don't want it to hold your PR, it's definitely a great improvement based on the benchmarks I did run! And the comparison to sharded is really just of interest to me to see if it's on par or slower. So if other reviewers are happy, this definitely looks like a great improvement to me and addresses the request I made in the first place. > Why have you used num_procs 1 and 4 only? Oh, no particular reason, I was just comparing to 4 shards on my desktop. Typically it's sufficient to go from 1 to 2-4 to see whether the distributed approach is faster or not. Once hit larger numbers you often run into bottlenecks like IO, and then numbers can be less representative. I hope it makes sense.
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
161
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Thank you, @bhavitvyamalik My apologies, at the moment I have not found time to do more benchmark with the proposed other datasets. I will try to do it later, but I don't want it to hold your PR, it's definitely a great improvement based on the benchmarks I did run! And the comparison to sharded is really just of interest to me to see if it's on par or slower. So if other reviewers are happy, this definitely looks like a great improvement to me and addresses the request I made in the first place. > Why have you used num_procs 1 and 4 only? Oh, no particular reason, I was just comparing to 4 shards on my desktop. Typically it's sufficient to go from 1 to 2-4 to see whether the distributed approach is faster or not. Once hit larger numbers you often run into bottlenecks like IO, and then numbers can be less representative. I hope it makes sense.
[ -0.37637588381767273, -0.1810760498046875, -0.24809105694293976, -0.12237736582756042, -0.05339883267879486, -0.2855610251426697, 0.1493605673313141, 0.3342491388320923, -0.12370654940605164, 0.33713430166244507, 0.07246442884206772, 0.48693686723709106, 0.0864030122756958, 0.4038463532924652, -0.21661506593227386, 0.17877694964408875, 0.3019269108772278, -0.03593629598617554, 0.25994381308555603, 0.09717512130737305, -0.21169015765190125, 0.4005485773086548, -0.10134931653738022, -0.23758001625537872, 0.046727847307920456, -0.134403258562088, 0.09449578821659088, 0.2655412256717682, -0.06254759430885315, -0.30407246947288513, -0.2848464250564575, 0.06188013777136803, -0.06007189303636551, -0.04931239038705826, -0.00010402377665741369, -0.11501491069793701, 0.16735774278640747, 0.01051916740834713, -0.07648520171642303, 0.15021075308322906, -0.11252515763044357, -0.2870232164859772, -0.008948158472776413, -0.40500274300575256, 0.12256968766450882, 0.22387008368968964, -0.06442755460739136, 0.06697897613048553, 0.5495076775550842, 0.27111878991127014, 0.23559656739234924, 0.06960292905569077, 0.37315309047698975, 0.0512026771903038, -0.16632646322250366, 0.18336760997772217, -0.28553158044815063, -0.08402654528617859, 0.15669503808021545, 0.42646798491477966, 0.08403326570987701, 0.14056594669818878, 0.08816438913345337, 0.026847274973988533, -0.18365246057510376, -0.11100684851408005, 0.055466845631599426, -0.029682137072086334, 0.032847825437784195, 0.07224200665950775, 0.058384209871292114, 0.035262346267700195, -0.29222923517227173, 0.0432807132601738, -0.2442919909954071, -0.4978809356689453, 0.09863205254077911, -0.026543667539954185, -0.06566110253334045, 0.04518778994679451, -0.22399462759494781, -0.26789864897727966, -0.12507551908493042, -0.45741432905197144, -0.059545859694480896, 0.2499399334192276, 0.05676537752151489, 0.229253888130188, 0.3916631042957306, -0.06978818774223328, -0.21527355909347534, 0.024137072265148163, 0.02024628221988678, -0.2644801437854767, -0.2533767521381378, -0.41829589009284973, 0.15879899263381958, -0.2380332052707672, -0.29998016357421875, 0.12118089944124222, -0.002812766470015049, 0.3502161204814911, 0.34467852115631104, 0.02606378123164177, -0.06435184180736542, -0.2503020763397217, 0.1563207358121872, -0.22110067307949066, 0.10295213758945465, 0.15969941020011902, 0.0025305375456809998, 0.22116586565971375, 0.15697620809078217, -0.36445605754852295, -0.3056173622608185, 0.19925332069396973, -0.3758360743522644, -0.3026939928531647, -0.2480466067790985, -0.046431418508291245, 0.20107117295265198, -0.2870078384876251, -0.3303607106208801, 0.23522406816482544, 0.006448088213801384, 0.1493905782699585, -0.1096053272485733, -0.037501685321331024, -0.4768102467060089, -0.2592480778694153, -0.058974869549274445, 0.2699604332447052, -0.05166304484009743, 0.19704166054725647, -0.14632956683635712, 0.22188301384449005, -0.2595108449459076, 0.22892004251480103, -0.013793163001537323, 0.07007899880409241, 0.03838901221752167, -0.09223650395870209, -0.29918578267097473, 0.10935161262750626, 0.09001424908638, 0.005023663863539696, -0.1861964762210846, -0.11124514043331146, -0.30519410967826843, 0.10069671273231506, -0.18947437405586243, -0.40103447437286377, -0.10444483160972595, 0.2264411896467209, -0.1357422173023224, 0.043301913887262344, -0.40854111313819885, 0.2484230250120163, -0.021469280123710632, -0.05605367571115494, -0.2602667212486267, -0.054552532732486725, -0.05896015092730522, -0.26860713958740234, 0.04393870383501053, -0.03997477889060974, -0.39444825053215027, 0.3599779009819031, 0.010009394958615303, 0.019583234563469887, 0.5506741404533386, 0.38040319085121155, -0.17618389427661896, -0.028185054659843445, 0.17695918679237366, 0.13780197501182556, -0.08621323853731155, -0.06894799321889877, 0.011344626545906067, 0.27867481112480164, -0.21241919696331024, -0.20134307444095612, 0.3918461203575134, -0.1802106499671936, 0.2537197470664978, -0.12945090234279633, 0.08755993843078613, 0.07555531710386276, 0.198551744222641, 0.10065842419862747, -0.5729511976242065, -0.04514067620038986, -0.18620292842388153, 0.16543251276016235, -0.2300616353750229, -0.2774156928062439, 0.17078101634979248, -0.03995933383703232, 0.25718170404434204, -0.23491701483726501, 0.14433735609054565, 0.21996217966079712, 0.26009199023246765, -0.3505913019180298, -0.13657677173614502, 0.2378515601158142, 0.14565309882164001, 0.30680063366889954, -0.18573211133480072, 0.29338791966438293, 0.10990702360868454, 0.06574560701847076, 0.12542808055877686, 0.009139051660895348, 0.11691047251224518, -0.2746118903160095, 0.15933488309383392, -0.031048797070980072, 0.024525411427021027, -0.05234992504119873, 0.011515270918607712, 0.18843166530132294, -0.21569068729877472, -0.13832533359527588, -0.3045743703842163, 0.142995223402977, -0.12500658631324768, -0.14879725873470306, 0.059003524482250214, -0.037588343024253845, 0.16204383969306946, -0.2469893842935562, 0.1067219227552414, 0.06396714597940445, 0.17429351806640625, 0.3127674460411072, 0.3271214962005615, 0.09111493080854416, 0.013513943180441856, 0.11672359704971313, 0.02159903571009636, 0.00794532336294651, -0.15909957885742188, -0.03560848534107208, -0.3795389235019684, 0.6976195573806763, 0.2666168212890625, 0.3291562795639038, 0.1510612815618515, -0.1757202297449112, 0.38065165281295776, 0.03946073725819588, 0.1741936057806015, 0.013307392597198486, 0.12243632972240448, 0.36283764243125916, -0.447573184967041, -0.03448660671710968, -0.10693176090717316, 0.3508338928222656, 0.5500863194465637, 0.03136969730257988, -0.280133992433548, 0.19954684376716614, 0.421918123960495, -0.4441661238670349, 0.3782912790775299, 0.3942835330963135, 0.47756069898605347, 0.21395635604858398, 0.1287282109260559, -0.09264899790287018, -0.1470310091972351, -0.1361207664012909, 0.24489641189575195, -0.3217412233352661, 0.4156835675239563, -0.02538333833217621, 0.07457713782787323, -0.08227870613336563, -0.052687764167785645, -0.5235921740531921, 0.08784381300210953, 0.20755988359451294, 0.05301501229405403, -0.14826653897762299, -0.14582683145999908, 0.621623694896698, -0.015505640767514706, 0.187533900141716, -0.01856020838022232, -0.2999657690525055, 0.1464763879776001, 0.2303142249584198, -0.3119106888771057, -0.19846293330192566, 0.32114309072494507, -0.004540696740150452, -0.23364031314849854, 0.10847888141870499, -0.2786794602870941, -0.05823783203959465, -0.07741884887218475, 0.14884185791015625, 0.19721336662769318, 0.17458735406398773, 0.017297329381108284, -0.12507593631744385, -0.14845901727676392, -0.24652424454689026, -0.1741698831319809, -0.0987575501203537, -0.18495063483715057, -0.035772331058979034, -0.0028668567538261414, 0.11294735968112946, -0.021537667140364647, -0.31815826892852783, 0.23669041693210602, -0.026073642075061798, -0.30459392070770264, -0.007470140233635902, -0.187738835811615, -0.11064054071903229, 0.03925381973385811, -0.2375895380973816, -0.12273869663476944, -0.3406893312931061, 0.45711052417755127, 0.18180732429027557, 0.3309486508369446, -0.3934461176395416, 0.18936719000339508, -0.03207213059067726, 0.1184019222855568, 0.056025005877017975, -0.0742894634604454, -0.29938986897468567, 0.15032553672790527, -0.19325102865695953, -0.2625419795513153, 0.054618384689092636, 0.2924324870109558, 0.4653230309486389, -0.07462137192487717, -0.19997212290763855, 0.13109590113162994, -0.13344994187355042, 0.11655685305595398, -0.012323956936597824, -0.21808554232120514, 0.4834432303905487, 0.13095158338546753, -0.3301345109939575, 0.05336896330118179, -0.16239525377750397, 0.14748035371303558, 0.17352768778800964, 0.12318401038646698, -0.0228559710085392, 0.3287966549396515, 0.19255293905735016, 0.6804036498069763, 0.25345927476882935, -0.20628975331783295, -0.027097873389720917, 0.195821613073349, -0.22551174461841583, -0.1260819137096405, 0.02984856255352497, 0.38162606954574585, -0.20981428027153015, -0.007002251222729683, 0.21427565813064575, -0.17269131541252136, -0.3358915150165558, -0.07317496836185455, 0.2289133071899414, -0.2015308141708374, -0.14877067506313324, 0.239972785115242, 0.17868800461292267, 0.01823042705655098, -0.12085364758968353, -0.050200168043375015, -0.13934007287025452, 0.12908703088760376, -0.04654301330447197, -0.004103481769561768, 0.13033221662044525, -0.28961050510406494, -0.511122465133667, -0.3262926936149597, -0.6086623072624207, 0.4788513779640198, -0.11187571287155151, 0.015123609453439713, -0.05865662172436714, -0.15844817459583282, 0.19849032163619995, -0.46838125586509705, 0.4392090439796448, -0.21476277709007263, -0.05456499755382538, 0.23705542087554932, -0.23259158432483673, -0.26749998331069946, -0.12194418907165527, -0.21103329956531525, 0.21030102670192719, 0.2622321844100952, 0.5406816005706787, -0.4040682017803192, -0.20955438911914825, -0.049554288387298584, -0.1619594842195511, -0.060982972383499146, -0.09963662177324295, -0.14873872697353363, -0.16863587498664856, -0.35080960392951965, 0.2683146297931671, -0.0959426760673523, 0.4604935646057129, -0.3281540870666504, -0.2794854938983917, 0.18293197453022003, -0.11574097722768784, 0.12907665967941284, 0.09802450239658356, 0.021340124309062958, -0.11732413619756699, 0.1492787003517151, -0.31545332074165344, -0.03332888334989548, 0.3089204728603363, 0.1770372837781906, 0.01628132164478302, 0.09392023086547852, 0.09875524044036865, 0.055747028440237045, 0.052626293152570724, 0.26934814453125, 0.050964806228876114, 0.18384402990341187, -0.19766280055046082, 0.5836959481239319, -0.03456810489296913, -0.25404539704322815, 0.06656797975301743, 0.22467346489429474, -0.1950630098581314, 0.18715780973434448, 0.25660255551338196, -0.09444139897823334, -0.08270923048257828, -0.04532908648252487, 0.04702334105968475, 0.04212045669555664, 0.2573963403701782, 0.4115273952484131, 0.8606634140014648, -0.08589410781860352, -0.028574209660291672, -0.10283521562814713, -0.26090312004089355, 0.3010951280593872, -0.6582295298576355, 0.18109670281410217, -0.04930657893419266, 0.059165600687265396, 0.19265449047088623, 0.11053739488124847, 0.2246941328048706, 0.4015454649925232, -0.14627350866794586, -0.004766908474266529, 0.30147063732147217, -0.31200703978538513, -0.1382986158132553, 0.4555848240852356, 0.11554837971925735, -0.1997542828321457, -0.04901977628469467, 0.15130791068077087, 0.12828710675239563, -0.29291996359825134, 0.04000367969274521, -0.27916955947875977, -0.09855086356401443, 0.10550948977470398, -0.30380064249038696, 0.028838325291872025, 0.20874038338661194, 0.33083653450012207, 0.06785783171653748, -0.08160301297903061, 0.07100655138492584, 0.11083279550075531, 0.16248546540737152, -0.03312104567885399, -0.1475798636674881, -0.0377768911421299, -0.23588547110557556, 0.13714510202407837, 0.01774689182639122, -0.2574600875377655, 0.13067564368247986, -0.46291399002075195, -0.2187819629907608, 0.07538892328739166, -0.2226463258266449, -0.5974351167678833, 0.11268475651741028, 0.23984882235527039, -0.15103021264076233, 0.05675417557358742, -0.026921864598989487, 0.4313186705112457, -0.440472811460495, -0.3583572208881378, 0.20183634757995605, 0.17660558223724365, -0.2850634753704071, 0.5384738445281982, -0.22556345164775848, -0.18628138303756714, -0.06461961567401886, 0.21769455075263977, 0.09874021261930466, -0.022298915311694145, -0.1642482429742813, -0.012034591287374496, -0.3181677460670471, -0.23759007453918457, 0.05424831062555313, 0.0669429823756218, -0.0377277173101902, 0.07924320548772812, -0.1744326502084732, -0.09471166133880615, 0.2435808777809143, -0.003324311226606369, 0.11527295410633087, 0.2724868357181549, -0.06222378462553024, -0.17319461703300476, -0.22607597708702087, 0.054410383105278015, -0.2517799139022827, 0.027054300531744957, -0.08354443311691284, 0.2740572988986969, -0.0449896901845932, 0.21177177131175995, -0.3839503228664398, 0.09319683909416199, -0.3064420223236084, 0.13181772828102112, 0.0063324254006147385, -0.35352346301078796, -0.06478533148765564, 0.20139913260936737, 0.2517658770084381, 0.17317087948322296, -0.3185819089412689, -0.2168426215648651, 0.1952487826347351, 0.09986791014671326, -0.086381696164608, 0.06337026506662369, 0.1360045224428177, 0.24057041108608246, -0.2953323721885681, 0.04130692407488823, 0.13884921371936798, -0.1884116232395172, -0.20630086958408356, -0.031932782381772995, 0.578363835811615, 0.07285232841968536, -0.10778294503688812, -0.18220387399196625, 0.11457394808530807, 0.5914702415466309, -0.24885323643684387, 0.3546083867549896, -0.019249536097049713, -0.2589043378829956, 0.013393973000347614, 0.21590140461921692, -0.05020841956138611, 0.21667438745498657, 0.1666298806667328, 0.07892362028360367, -0.3206494152545929, -0.27475541830062866, 0.5283846855163574, 0.16646553575992584, -0.033192940056324005, 0.09233736991882324, 0.0990757867693901, 0.2789667546749115, -0.057869940996170044, -0.1957320272922516, -0.013723604381084442, -0.04976620152592659, 0.15177355706691742, 0.03391062468290329, 0.36664876341819763, -0.18134760856628418, 0.37994664907455444, 0.17581355571746826, 0.15980955958366394, -0.4581778645515442, -0.24969083070755005, -0.24732297658920288, -0.17635633051395416, 0.02232230082154274, 0.3480308949947357, -0.1301523596048355, 0.1761692762374878, 0.35259830951690674, -0.03295471519231796, 0.7000815868377686, 0.4259283244609833, 0.4625677168369293, 0.035960447043180466, -0.03589768707752228, 0.13079531490802765, 0.17421528697013855, 0.026182658970355988, 0.18149888515472412, 0.22119490802288055, 0.21405941247940063, -0.2641203701496124, -0.1598120480775833, -0.22343699634075165, 0.29496949911117554, -0.14559096097946167, -0.28533726930618286, -0.06716836988925934, -0.1789093315601349, -0.19099265336990356, 0.04233582690358162, -0.07622754573822021, 0.18153215944766998, 0.518074095249176, 0.11808887124061584, 0.08836390823125839, -0.0007201749831438065, -0.10970603674650192, -0.1774546205997467, 0.42739781737327576, -0.24790699779987335, 0.2407488375902176, 0.2703913450241089, -0.2825329601764679, -0.24335119128227234, -0.09719379246234894, 0.449205607175827, -0.08252713084220886, -0.02980363741517067, 0.19088537991046906, -0.044583406299352646, 0.03490699082612991, 0.01408921554684639, 0.3086302578449249, 0.12015331536531448, 0.15048660337924957, 0.10524223744869232, 0.17896169424057007, -0.2516193091869354, -0.053122978657484055, 0.08490482717752457, 0.04261930286884308, 0.00006225146353244781, 0.09503965079784393, 0.18215863406658173, -0.2309168577194214, 0.04269607365131378, 0.28631591796875, -0.34852084517478943, -0.38250747323036194, -0.13286128640174866, -0.49653270840644836, 0.026002805680036545, 0.07869303971529007, 0.14492665231227875, -0.10645449161529541, 0.3810291886329651, -0.32944634556770325, 0.17151275277137756, -0.19381290674209595, -0.2987630367279053, -0.04322093725204468, 0.020393408834934235, -0.11318713426589966, 0.2034405767917633, -0.07975015789270401, 0.6433614492416382, 0.30655330419540405, 0.28970736265182495, 0.1903790533542633, 0.060079921036958694, -0.2284746617078781, 0.3572302758693695, -0.5072877407073975, 0.5527616739273071, 0.3973050117492676, -0.29477062821388245, 0.02573971450328827, -0.1593705713748932, 0.4252004325389862, 0.24549266695976257, 0.13848555088043213, -0.18146534264087677, -0.022506877779960632, 0.5887496471405029, 0.09802521765232086, 0.2530215382575989, 0.10179776698350906, 0.061981864273548126, -0.21885356307029724, -0.2860467731952667, 0.04960411414504051, 0.34127211570739746, 0.03955705463886261, 0.10693825781345367, 0.09882090985774994, 0.4562850892543793, 0.11513394862413406, 0.2337234765291214, 0.012359673157334328, 0.17330420017242432, -0.2001306563615799, -0.24937987327575684, -0.13807949423789978, 0.07589107006788254, 0.11580228060483932, 0.09386665374040604, -0.023692328482866287, 0.31024086475372314, 0.24246704578399658, -0.22492548823356628, -0.6534742712974548, -0.14945100247859955, 0.1985025256872177, -0.06140315160155296, -0.11648651957511902, 0.18674299120903015, 0.27129507064819336, -0.32623541355133057, 0.42007502913475037, -0.24767744541168213, -0.22566387057304382, 0.11972565948963165, 0.024330884218215942, -0.2981395423412323, 0.41041019558906555, -0.03530365228652954, -0.3896377682685852, -0.013784529641270638, -0.016858264803886414, 0.019567664712667465, -0.11439528316259384, -0.34163448214530945, -0.34311550855636597 ]
https://github.com/huggingface/datasets/pull/2747
add multi-proc in `to_json`
Tested it with a larger dataset (`srwac`) and memory utilisation remained constant with no swap memory used. @lhoestq should I also add test for the same? Last time I tried this, I got `OSError: [Errno 12] Cannot allocate memory` in CircleCI tests
Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`.
42
text: add multi-proc in `to_json` Closes #2663. I've tried adding multiprocessing in `to_json`. Here's some benchmarking I did to compare the timings of current version (say v1) and multi-proc version (say v2). I did this with `cpu_count` 4 (2015 Macbook Air) 1. Dataset name: `ascent_kb` - 8.9M samples (all samples were used, reporting this for a single run) v1- ~225 seconds for converting whole dataset to json v2- ~200 seconds for converting whole dataset to json 2. Dataset name: `lama` - 1.3M samples (all samples were used, reporting this for 2 runs) v1- ~26 seconds for converting whole dataset to json v2- ~23.6 seconds for converting whole dataset to json I think it's safe to say that v2 is 10% faster as compared to v1. Timings may improve further with better configuration. The only bottleneck I feel is writing to file from the output list. If we can improve that aspect then timings may improve further. Let me know if any changes/improvements can be done in this @stas00, @lhoestq, @albertvillanova. @lhoestq even suggested to extend this work with other export methods as well like `csv` or `parquet`. Tested it with a larger dataset (`srwac`) and memory utilisation remained constant with no swap memory used. @lhoestq should I also add test for the same? Last time I tried this, I got `OSError: [Errno 12] Cannot allocate memory` in CircleCI tests
[ -0.3138785660266876, -0.20417508482933044, -0.21429967880249023, 0.04276728630065918, -0.10134072601795197, -0.09399522095918655, 0.013270862400531769, 0.2803877294063568, -0.002534853294491768, 0.3192751109600067, 0.11014655977487564, 0.6410911083221436, 0.1535487323999405, 0.43947750329971313, -0.3297500014305115, 0.13637326657772064, 0.3987725079059601, -0.1698075532913208, 0.30330759286880493, 0.293837308883667, -0.3472422659397125, 0.49783456325531006, -0.22380521893501282, -0.2465781718492508, 0.04743827506899834, -0.28073158860206604, 0.11318960785865784, 0.050389546900987625, -0.056218914687633514, -0.4122738838195801, -0.3385854959487915, 0.18801827728748322, -0.10605073720216751, 0.08111277222633362, -0.00011452148464741185, -0.16479875147342682, 0.1253027468919754, 0.014334054663777351, -0.12636615335941315, 0.05258110910654068, 0.08521649986505508, -0.25446268916130066, 0.24553218483924866, -0.33451491594314575, 0.19341325759887695, 0.38077104091644287, -0.028430664911866188, -0.25143498182296753, 0.5019919872283936, 0.35902073979377747, 0.13422136008739471, 0.26232874393463135, 0.43814268708229065, 0.03402288258075714, -0.2834164798259735, 0.19367219507694244, -0.2683044970035553, -0.0473247729241848, 0.3938804566860199, 0.2976554334163666, 0.16859844326972961, 0.09866401553153992, 0.19359327852725983, 0.0717630684375763, -0.22693076729774475, -0.1788392812013626, -0.06782897561788559, -0.24879080057144165, 0.1392851322889328, 0.01037796214222908, 0.32597431540489197, -0.12473376840353012, -0.3220301568508148, 0.18556487560272217, -0.1761232316493988, -0.47790685296058655, 0.20942571759223938, 0.10001548379659653, -0.1583782285451889, -0.02420835569500923, -0.13675488531589508, -0.31842270493507385, -0.18427754938602448, -0.34424716234207153, -0.0337449386715889, 0.28419435024261475, 0.05017684027552605, 0.27850431203842163, 0.5476773381233215, 0.025778718292713165, 0.01717987284064293, 0.049849674105644226, 0.01765868440270424, -0.1545448750257492, -0.2424456626176834, -0.4194572865962982, 0.11716915667057037, -0.3616426885128021, -0.2799791395664215, 0.008839379996061325, -0.030912090092897415, 0.15319520235061646, 0.17285101115703583, 0.13562734425067902, 0.1682291328907013, -0.20357568562030792, -0.18514400720596313, -0.06534511595964432, 0.15004262328147888, 0.2097121775150299, -0.12383952736854553, -0.007039714604616165, 0.20082947611808777, -0.30443817377090454, -0.17455105483531952, 0.10110214352607727, -0.28785109519958496, -0.1953170895576477, -0.31353825330734253, 0.013485926203429699, 0.06699138134717941, -0.2850850820541382, -0.32127344608306885, 0.19890812039375305, -0.01902223750948906, 0.49682530760765076, 0.13461919128894806, 0.12958592176437378, -0.4365234375, -0.07377342879772186, 0.06720048189163208, 0.2853490710258484, 0.02008884772658348, 0.24484342336654663, -0.09433680772781372, 0.46118494868278503, -0.25171446800231934, 0.2431592494249344, -0.09974993765354156, -0.1778101772069931, 0.3273419439792633, -0.2988221049308777, -0.2253190577030182, 0.16947826743125916, 0.20204481482505798, 0.08938761800527573, -0.16510021686553955, 0.016452200710773468, -0.3174954056739807, 0.16039401292800903, -0.18849217891693115, -0.20557697117328644, -0.24321652948856354, 0.12087332457304001, 0.07979988306760788, 0.027354052290320396, -0.36770617961883545, 0.18002541363239288, 0.09783748537302017, -0.07290587574243546, -0.019598543643951416, -0.05132131278514862, -0.05798640102148056, -0.22027501463890076, -0.011022442951798439, 0.06468380987644196, -0.25439804792404175, 0.32219383120536804, -0.05074238032102585, -0.0025899671018123627, 0.5239053964614868, 0.5250526070594788, -0.13247017562389374, 0.2636304497718811, 0.07164642959833145, -0.1986527442932129, -0.1061260923743248, -0.2231045812368393, 0.13454627990722656, 0.2237810492515564, -0.24596329033374786, -0.08462538570165634, 0.2859514355659485, -0.034891124814748764, 0.00783384870737791, 0.02258019521832466, 0.27054476737976074, 0.11372961848974228, 0.02169211208820343, 0.21034081280231476, -0.4626736640930176, -0.02731887437403202, 0.05488927662372589, -0.019200347363948822, -0.20900653302669525, -0.2721961438655853, -0.037570975720882416, -0.04591627046465874, 0.3265106976032257, -0.18549296259880066, 0.0490863174200058, 0.19284756481647491, 0.2761698365211487, -0.3531709313392639, -0.25556331872940063, 0.20233669877052307, 0.06326388567686081, 0.17811286449432373, -0.03882656991481781, 0.10296308994293213, 0.07857649028301239, 0.10399647057056427, 0.1967504918575287, 0.12692193686962128, 0.07381028681993484, -0.2447066605091095, 0.04039513319730759, 0.18597763776779175, 0.09145136177539825, 0.12433338165283203, -0.005001004785299301, 0.31579673290252686, -0.02620289847254753, -0.059374429285526276, -0.2652015686035156, -0.024083640426397324, -0.10294070094823837, -0.026885204017162323, 0.03380885720252991, -0.09580359607934952, 0.09686675667762756, -0.2451484203338623, 0.0035097766667604446, 0.02667466178536415, 0.2612684667110443, 0.22384050488471985, 0.27478575706481934, -0.08992354571819305, 0.03040860779583454, 0.012704852968454361, -0.08935718238353729, 0.2011127769947052, 0.01014628354460001, -0.04319842904806137, -0.38455450534820557, 0.6423951387405396, 0.28504565358161926, 0.30622783303260803, 0.2564307451248169, -0.20138783752918243, 0.35292696952819824, 0.11842000484466553, 0.3095746636390686, 0.11067387461662292, 0.12162140011787415, 0.4637349247932434, -0.21637268364429474, -0.1420583426952362, -0.3325956165790558, 0.18997181951999664, 0.6418473720550537, 0.12061496078968048, -0.23881947994232178, 0.23700907826423645, 0.47262394428253174, -0.37430235743522644, 0.29731717705726624, 0.2134317010641098, 0.5479337573051453, 0.12568801641464233, 0.216334268450737, -0.05670022964477539, -0.1854582577943802, -0.04154779016971588, 0.22298985719680786, -0.24360109865665436, 0.5085251331329346, 0.005321837961673737, 0.138385608792305, -0.1089630275964737, -0.07190008461475372, -0.5070182681083679, 0.20673882961273193, 0.17293278872966766, 0.014231618493795395, 0.01597527600824833, -0.022127259522676468, 0.5294058322906494, -0.014640620909631252, 0.1829254925251007, 0.049126237630844116, -0.2711924910545349, 0.05704083293676376, 0.39521461725234985, -0.25607964396476746, -0.20749005675315857, 0.10887110233306885, 0.15284261107444763, -0.246421679854393, 0.05332217365503311, -0.16244041919708252, 0.029849443584680557, -0.012962792068719864, 0.08449995517730713, 0.28771430253982544, -0.010357944294810295, -0.011094795539975166, -0.12749764323234558, -0.14814449846744537, -0.09800778329372406, -0.12152907252311707, -0.08711834251880646, -0.09066808223724365, -0.06898718327283859, -0.1674330234527588, 0.13153252005577087, 0.054746150970458984, -0.3325994908809662, 0.10591187328100204, -0.0523846298456192, -0.3115527033805847, -0.12854890525341034, -0.19204798340797424, -0.1535838395357132, -0.06687013059854507, -0.3150748312473297, -0.18459759652614594, -0.3438427448272705, 0.691287636756897, -0.033692989498376846, 0.31638896465301514, -0.4123581349849701, 0.21910199522972107, -0.05201438069343567, 0.14519712328910828, 0.07697182893753052, -0.0571184940636158, -0.423302561044693, 0.03206443414092064, -0.23906543850898743, -0.15753576159477234, 0.17459668219089508, 0.3444399833679199, 0.5938315987586975, -0.21190011501312256, -0.20076540112495422, 0.20241767168045044, -0.21488580107688904, 0.11266081035137177, -0.1535024493932724, -0.011246757581830025, 0.36774733662605286, 0.05008776858448982, -0.23779411613941193, 0.16360440850257874, -0.25991520285606384, 0.07838279008865356, 0.06099198758602142, 0.09024552255868912, -0.17097744345664978, 0.3998941481113434, 0.1706118881702423, 0.4504736661911011, 0.30200260877609253, 0.05683213472366333, 0.08296787738800049, 0.11877641826868057, -0.07700572907924652, -0.2201308310031891, 0.07629330456256866, 0.23034372925758362, -0.28596699237823486, -0.13894890248775482, 0.11191891878843307, -0.2165590524673462, -0.4659525156021118, -0.11209142953157425, 0.34939083456993103, -0.27426472306251526, -0.20042724907398224, 0.2621811032295227, 0.22633479535579681, 0.10291833430528641, -0.26541855931282043, -0.1351349949836731, -0.29236167669296265, 0.1937655210494995, -0.07956767082214355, 0.017688535153865814, 0.0720188170671463, -0.3080848753452301, -0.6790748834609985, -0.6390590071678162, -0.6989977359771729, 0.4351160526275635, -0.05690552294254303, 0.24983574450016022, -0.09552916884422302, -0.11996104568243027, 0.1656160056591034, -0.549546480178833, 0.46705204248428345, -0.03179362416267395, -0.15487168729305267, 0.4954513609409332, -0.1830638349056244, -0.19683051109313965, -0.10772790014743805, -0.1807759702205658, 0.3594922721385956, 0.25830960273742676, 0.389545738697052, -0.2912514805793762, -0.220025897026062, -0.09574984014034271, -0.07522640377283096, 0.004491623491048813, 0.01675087958574295, -0.2419189214706421, -0.33086735010147095, -0.32828304171562195, 0.40668991208076477, 0.03440053015947342, 0.4853269159793854, -0.1831788718700409, -0.20605172216892242, 0.2976648211479187, -0.20385193824768066, 0.016534127295017242, 0.16526272892951965, -0.02599843591451645, -0.002591088879853487, 0.10743993520736694, -0.3063642084598541, -0.30219459533691406, 0.4198249876499176, 0.3425719738006592, -0.048712801188230515, -0.05923214554786682, 0.14661012589931488, 0.11148840934038162, 0.23430073261260986, 0.22852222621440887, 0.13026811182498932, 0.41173067688941956, -0.1481582671403885, 0.5207194089889526, 0.0012870142236351967, -0.15139813721179962, 0.14289993047714233, 0.20753026008605957, -0.24634471535682678, 0.1768469214439392, 0.11130087077617645, 0.10388600826263428, 0.051117151975631714, 0.18796144425868988, -0.3810679316520691, 0.060475848615169525, 0.0046688225120306015, 0.2767857015132904, 0.7889459729194641, -0.25434595346450806, 0.08526550233364105, -0.18159076571464539, -0.581626296043396, 0.3522811830043793, -0.6698725819587708, 0.2395506352186203, 0.04818899556994438, 0.2953960597515106, 0.28521934151649475, 0.07505398988723755, 0.2895207703113556, 0.14771798253059387, -0.217157244682312, -0.06102955341339111, 0.20550386607646942, -0.36708858609199524, -0.20792388916015625, 0.543729841709137, -0.04226808249950409, -0.2387593686580658, -0.07033756375312805, 0.04420757293701172, 0.06496761739253998, -0.32746270298957825, -0.02011890523135662, -0.2237076610326767, 0.029534708708524704, 0.07893058657646179, -0.38604605197906494, -0.012935120612382889, -0.1684914529323578, 0.1842123121023178, 0.05255480855703354, 0.04441303014755249, 0.15370666980743408, 0.09374597668647766, 0.18462654948234558, -0.048346180468797684, -0.024368153885006905, -0.027994606643915176, -0.36477920413017273, 0.17417417466640472, -0.12154976278543472, -0.22542044520378113, 0.17027585208415985, -0.4070594608783722, -0.18834969401359558, 0.27270054817199707, -0.22837847471237183, -0.5606964230537415, 0.3835092782974243, 0.2923462390899658, -0.0742097944021225, 0.09582871198654175, -0.0966576635837555, 0.4162032902240753, -0.32750338315963745, -0.4032762050628662, 0.1314348429441452, 0.2502461075782776, -0.342286080121994, 0.5254233479499817, -0.569489061832428, -0.26568853855133057, -0.07944466173648834, 0.12744273245334625, 0.1573239266872406, 0.03872150182723999, -0.07150144875049591, 0.20832957327365875, -0.1819543093442917, -0.21420073509216309, 0.18483194708824158, 0.09290426224470139, -0.04026937857270241, 0.4151798188686371, 0.11304421722888947, -0.20329168438911438, 0.09393303841352463, 0.1697934865951538, -0.06113330274820328, 0.2421424388885498, -0.034463752061128616, -0.19991903007030487, -0.43815720081329346, -0.05485731363296509, -0.20572052896022797, 0.001246485859155655, 0.014572247862815857, 0.2927638590335846, 0.1475856602191925, 0.15010400116443634, -0.25502511858940125, 0.043465763330459595, -0.43964269757270813, 0.03203005716204643, -0.16206416487693787, -0.3169609010219574, 0.02552950754761696, 0.2433975785970688, 0.12101258337497711, 0.13738957047462463, -0.19343265891075134, -0.12364450097084045, 0.16443562507629395, 0.11146634817123413, -0.06516701728105545, -0.032459549605846405, 0.28646132349967957, 0.01352115347981453, -0.13584691286087036, 0.0018714549951255322, 0.07587717473506927, -0.21635043621063232, -0.2530478239059448, 0.06703592091798782, 0.15169206261634827, -0.028132900595664978, -0.186168372631073, -0.2441512942314148, 0.20956602692604065, 0.670364499092102, -0.08675499260425568, 0.3657883405685425, 0.05271317437291145, -0.15977172553539276, -0.17626722157001495, 0.13597849011421204, -0.11585633456707001, 0.18873533606529236, -0.0601198673248291, 0.024694811552762985, -0.31047919392585754, -0.276642769575119, 0.18995234370231628, 0.28077393770217896, -0.03868086636066437, 0.33293721079826355, 0.08569648116827011, 0.1499423384666443, 0.0648437961935997, -0.19077137112617493, -0.1601610779762268, -0.2777708172798157, 0.0993301123380661, 0.08039237558841705, 0.3029446303844452, -0.16515469551086426, 0.44498908519744873, 0.0601227805018425, 0.0444883294403553, -0.2435392290353775, -0.0598965622484684, -0.30566978454589844, -0.11132688075304031, 0.10423925518989563, 0.2848542034626007, -0.010620061308145523, 0.184298574924469, 0.21677032113075256, 0.17838908731937408, 0.5493722558021545, 0.4396894872188568, 0.46136224269866943, 0.0500953383743763, -0.09461021423339844, 0.12038682401180267, -0.05307258665561676, -0.03293319046497345, 0.32159799337387085, 0.2099129855632782, -0.023847609758377075, -0.40169408917427063, -0.21960048377513885, -0.2693959176540375, 0.262346088886261, -0.20259994268417358, -0.3149121403694153, -0.0024038515985012054, -0.13750793039798737, -0.10798072814941406, 0.1437307894229889, 0.0007370524108409882, 0.0923822820186615, 0.47180989384651184, 0.03884356468915939, 0.065009206533432, -0.013282565400004387, -0.15482750535011292, -0.03081020712852478, 0.3373718857765198, -0.2763270437717438, 0.3402571976184845, 0.22737695276737213, -0.49987098574638367, -0.3556624948978424, 0.07538648694753647, 0.49953871965408325, -0.047789834439754486, -0.10682284832000732, 0.14911609888076782, -0.19571232795715332, 0.01107536070048809, 0.09073171019554138, 0.2635353207588196, 0.2955484092235565, 0.07573530822992325, -0.00424895528703928, 0.06927210837602615, -0.1421905755996704, 0.11596459150314331, 0.13717485964298248, 0.09255635738372803, -0.09650076925754547, -0.030611880123615265, 0.0472443550825119, -0.18167202174663544, -0.06939219683408737, 0.2505205571651459, -0.3642244040966034, -0.2272261381149292, -0.1880873292684555, -0.49147289991378784, -0.05243130028247833, 0.09602022171020508, 0.09096693247556686, -0.03332768753170967, 0.3841792345046997, -0.1628442257642746, 0.1448696106672287, -0.22543653845787048, -0.4185349941253662, 0.07673609256744385, 0.0028709247708320618, -0.23649916052818298, 0.2296459972858429, -0.09873474389314651, 0.584904670715332, 0.18560978770256042, 0.2100764811038971, 0.34312665462493896, 0.08557988703250885, -0.018632834777235985, 0.30025848746299744, -0.46924254298210144, 0.43798524141311646, 0.48724061250686646, -0.14598122239112854, 0.08736464381217957, -0.23400530219078064, 0.3829018175601959, -0.04400582239031792, 0.019057825207710266, -0.19452175498008728, -0.009061135351657867, 0.3675471544265747, 0.17610804736614227, 0.3617233335971832, 0.1634317934513092, 0.09701099246740341, -0.23771223425865173, -0.4260040521621704, 0.10256795585155487, 0.26012009382247925, 0.101155586540699, 0.033897023648023605, 0.11015947163105011, 0.6219100952148438, -0.13652737438678741, 0.27141740918159485, -0.06285373866558075, 0.012087156064808369, -0.29947900772094727, -0.3718094229698181, 0.01637590304017067, 0.1637962907552719, 0.08103933185338974, 0.08336713910102844, 0.2081635445356369, 0.4173237383365631, 0.18950776755809784, -0.19160902500152588, -0.7998099327087402, 0.0169257540255785, 0.0006754547357559204, -0.05271219462156296, -0.3428102731704712, 0.0442814975976944, 0.2487826645374298, -0.44040268659591675, 0.3507193922996521, -0.30846747756004333, -0.09952610731124878, 0.08860503137111664, 0.08650481700897217, -0.489033579826355, 0.45788300037384033, -0.1625015288591385, -0.3109753131866455, 0.09413783252239227, 0.3229421377182007, 0.020579008385539055, -0.05854988470673561, -0.3351946771144867, -0.25451624393463135 ]
https://github.com/huggingface/datasets/pull/2745
added semeval18_emotion_classification dataset
For training the multilabel classifier, I would combine the labels into a list, for example for the English dataset: ``` dfpre=pd.read_csv(path+"2018-E-c-En-train.txt",sep="\t") dfpre['list'] = dfpre[dfpre.columns[2:]].values.tolist() df = dfpre[['Tweet', 'list']].copy() df.rename(columns={'list': 'labels'}, inplace=True) ```
I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001
32
text: added semeval18_emotion_classification dataset I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001 For training the multilabel classifier, I would combine the labels into a list, for example for the English dataset: ``` dfpre=pd.read_csv(path+"2018-E-c-En-train.txt",sep="\t") dfpre['list'] = dfpre[dfpre.columns[2:]].values.tolist() df = dfpre[['Tweet', 'list']].copy() df.rename(columns={'list': 'labels'}, inplace=True) ```
[ 0.09624476730823517, -0.41774848103523254, -0.08009448647499084, 0.23090679943561554, 0.15120910108089447, 0.2869311273097992, 0.5948811769485474, 0.14520326256752014, 0.2624553442001343, 0.019634626805782318, -0.12135311961174011, -0.02709432877600193, -0.3343321979045868, -0.03537525236606598, -0.016021154820919037, -0.07289698719978333, 0.036298684775829315, -0.09599339962005615, 0.5447587370872498, -0.13399189710617065, -0.04781333729624748, 0.06894882023334503, -0.16185414791107178, -0.04716542363166809, -0.5595049262046814, 0.0014008637517690659, -0.29440438747406006, 0.11050983518362045, 0.08876948803663254, -0.5574693083763123, 0.24289719760417938, 0.10232110321521759, -0.023459486663341522, 0.42860332131385803, -0.00011942106357309967, -0.018165409564971924, 0.08947216719388962, -0.30545395612716675, -0.05575674772262573, -0.36764031648635864, 0.27213531732559204, -0.2838980257511139, 0.001921708695590496, -0.20306335389614105, -0.300518274307251, -0.25528010725975037, -0.18148863315582275, -0.16665074229240417, 0.25908130407333374, 0.5368684530258179, 0.11558602005243301, 0.0602647140622139, 0.22406403720378876, 0.23788990080356598, 0.34332573413848877, -0.05251210927963257, -0.10824907571077347, 0.32755744457244873, 0.31554335355758667, -0.021337227895855904, 0.17390257120132446, 0.27437642216682434, -0.008549869060516357, 0.20175495743751526, -0.0064608752727508545, 0.021977946162223816, 0.38407155871391296, -0.45988035202026367, 0.09515173733234406, 0.12487392872571945, 0.23167970776557922, -0.24395626783370972, -0.3066539764404297, -0.10105933994054794, 0.09789025038480759, -0.43158793449401855, -0.03675801306962967, 0.08146189898252487, -0.10050420463085175, 0.015665622428059578, 0.2014589011669159, 0.07705508172512054, -0.20094913244247437, 0.23000569641590118, 0.19856178760528564, 0.24173672497272491, -0.02102520316839218, 0.11886925995349884, 0.08896481990814209, -0.06645386666059494, 0.014663838781416416, -0.0990506187081337, 0.19752837717533112, 0.2684898376464844, -0.5200142860412598, -0.17608784139156342, -0.2874622046947479, -0.527604341506958, 0.07522617280483246, -0.582341730594635, -0.3556739389896393, 0.01028468832373619, 0.15098997950553894, 0.21121734380722046, -0.12967006862163544, 0.2711797058582306, 0.06366647779941559, 0.5517104864120483, -0.23523671925067902, -0.15462534129619598, -0.24013343453407288, 0.12537582218647003, -0.15495891869068146, -0.2363974153995514, 0.15235558152198792, 0.14643675088882446, -0.025218728929758072, -0.18872056901454926, -0.4706021547317505, 0.05595123767852783, -0.7254477739334106, -0.03310190141201019, -0.06554650515317917, 0.41556981205940247, -0.01972755417227745, 0.22416836023330688, 0.1257270872592926, 0.3917849659919739, -0.020571162924170494, 0.14643485844135284, -0.07676523923873901, 0.3096807897090912, -0.14762288331985474, -0.0464242622256279, 0.33034273982048035, -0.13224685192108154, 0.1439005732536316, 0.059308066964149475, -0.015688367187976837, -0.30495354533195496, 0.5990898609161377, -0.23107515275478363, 0.36573371291160583, 0.19059956073760986, 0.028909828513860703, 0.0962771475315094, 0.28767576813697815, -0.23376455903053284, -0.07915343344211578, 0.07939702272415161, -0.20830011367797852, -0.16488581895828247, -0.07789623737335205, 0.09094759076833725, 0.05297000706195831, 0.15398463606834412, 0.1409749835729599, 0.3837006092071533, 0.0895056203007698, 0.1175161600112915, 0.03603844344615936, -0.19956253468990326, -0.1811751127243042, 0.0602608360350132, 0.11771560460329056, 0.41004645824432373, -0.5884491801261902, 0.005296766757965088, 0.16567260026931763, 0.16170243918895721, 0.06627979129552841, -0.05016077682375908, -0.0030277068726718426, 0.23511195182800293, -0.07247202843427658, 0.09820139408111572, 0.21949853003025055, -0.6049490571022034, 0.09002210199832916, 0.15704159438610077, -0.012139037251472473, 0.0296222772449255, 0.31212902069091797, -0.09860570728778839, 0.025299938395619392, 0.01604190282523632, 0.09903820604085922, -0.11139377951622009, -0.09609312564134598, -0.025096330791711807, -0.5011976361274719, -0.13717961311340332, 0.36050063371658325, 0.3242076635360718, 0.03259262815117836, -0.3031763434410095, 0.01674245297908783, 0.048283904790878296, 0.19221748411655426, -0.32168465852737427, 0.283026784658432, 0.29481589794158936, 0.01997458003461361, 0.31265318393707275, 0.10047630220651627, -0.034030064940452576, -0.148046612739563, 0.20199936628341675, 0.26464584469795227, 0.3693188428878784, 0.07978764921426773, -0.20668542385101318, -0.46072590351104736, -0.3189724087715149, -0.41749030351638794, -0.5310797691345215, 0.1430240273475647, 0.3407343626022339, 0.043759677559137344, 0.0037078969180583954, -0.14135466516017914, -0.007833199575543404, -0.08006870001554489, -0.0021195756271481514, -0.08879420161247253, 0.038855962455272675, -0.11589381843805313, 0.027396310120821, -0.14602899551391602, 0.38299497961997986, 0.310356467962265, -0.25183483958244324, -0.07042863965034485, 0.18208664655685425, 0.3240818679332733, -0.17711783945560455, 0.20300474762916565, -0.18727953732013702, 0.02808084338903427, -0.16926974058151245, -0.0013737063854932785, 0.2899082899093628, 0.010743550024926662, -0.12742793560028076, -0.00012531504034996033, 0.3161458373069763, 0.17404921352863312, 0.06007552891969681, -0.23368102312088013, -0.01618637889623642, 0.32922378182411194, -0.028895419090986252, -0.23870757222175598, -0.20263922214508057, 0.26688599586486816, -0.18888670206069946, 0.575259804725647, -0.11882568895816803, -0.2859989106655121, 0.028899364173412323, 0.29468730092048645, -0.07568276673555374, 0.16569246351718903, 0.17616137862205505, -0.11930828541517258, -0.11925169080495834, -0.0950687974691391, 0.11624182760715485, 0.3755013942718506, 0.05870155990123749, -0.1977003514766693, -0.05212622880935669, -0.2272493988275528, -0.056956369429826736, 0.27083203196525574, -0.17342866957187653, 0.27289465069770813, 0.28733140230178833, 0.05330410599708557, 0.03616213798522949, -0.2081129550933838, -0.3171433210372925, 0.24755531549453735, 0.25866183638572693, -0.4572726786136627, -0.06249863654375076, 0.05067797005176544, 0.06566687673330307, -0.16847848892211914, -0.13319458067417145, -0.13387911021709442, -0.029739297926425934, 0.07910938560962677, -0.11670583486557007, 0.07781513035297394, 0.17419175803661346, 0.10083603858947754, 0.23424087464809418, 0.06712958961725235, -0.1059224084019661, -0.23300501704216003, -0.2832008898258209, -0.1851102113723755, 0.05100153759121895, 0.10672806948423386, 0.31134819984436035, 0.17931726574897766, -0.11495184898376465, -0.2967551350593567, 0.15944857895374298, -0.4017254710197449, 0.16652370989322662, -0.26293718814849854, 0.2756180167198181, 0.1630919873714447, 0.10146822035312653, -0.09110590070486069, -0.07245367020368576, 0.1269584596157074, -0.03610968962311745, -0.20390181243419647, 0.014219611883163452, -0.022225651890039444, -0.02428690530359745, -0.2695631682872772, -0.7552571296691895, -0.5543913245201111, -0.19996722042560577, 0.18737336993217468, 0.05406203493475914, 0.07273431122303009, 0.20452189445495605, 0.13880795240402222, 0.33156049251556396, -0.0782550796866417, 0.1380031704902649, -0.230305016040802, -0.1718456894159317, 0.18783991038799286, -0.30371183156967163, -0.3686620593070984, 0.19212010502815247, -0.12954962253570557, 0.393129825592041, -0.23854601383209229, -0.13416814804077148, -0.2588600218296051, 0.24254845082759857, -0.14942248165607452, -0.008477404713630676, -0.11228056252002716, 0.18477144837379456, 0.1365138590335846, 0.019513370469212532, -0.10683496296405792, 0.03932701423764229, 0.10576065629720688, -0.22445425391197205, 0.25693514943122864, -0.2693786323070526, 0.3230229616165161, 0.12596634030342102, 0.6335307359695435, 0.3508200943470001, -0.03851032629609108, 0.12456358969211578, -0.11236246675252914, 0.059434473514556885, 0.11394522339105606, -0.5535399913787842, 0.21437664330005646, -0.1969551146030426, -0.036739833652973175, 0.16420090198516846, -0.23143523931503296, -0.015781553462147713, -0.08002734184265137, 0.41315239667892456, -0.3853277862071991, -0.06686988472938538, 0.0729503184556961, -0.21082192659378052, 0.32214808464050293, -0.1785764992237091, -0.20881104469299316, -0.20721453428268433, -0.044798970222473145, -0.1824721395969391, 0.3479311466217041, 0.01781705766916275, 0.07448575645685196, -0.4285068213939667, 0.2874264121055603, -0.15490642189979553, 0.16578182578086853, 0.23158955574035645, 0.35640349984169006, -0.10675108432769775, 0.25280046463012695, -0.06382724642753601, 0.04818859323859215, 0.5991701483726501, -0.36296403408050537, 0.09042854607105255, 0.37416303157806396, 0.1838061660528183, -0.46667400002479553, -0.13077251613140106, -0.3869268596172333, -0.19961458444595337, 0.5628396272659302, 0.5378748178482056, -0.3416436016559601, -0.2968141436576843, 0.1341828852891922, 0.13606274127960205, -0.015368055552244186, 0.0341561883687973, -0.31509658694267273, -0.3689923584461212, -0.4175633192062378, 0.10471944510936737, 0.2370031625032425, 0.3428046405315399, -0.20626461505889893, 0.03901186212897301, 0.20022423565387726, -0.21126919984817505, 0.20000939071178436, 0.07488277554512024, 0.2120589315891266, 0.13435032963752747, 0.1097961962223053, 0.2869994640350342, 0.0808076485991478, 0.06162405014038086, 0.30297085642814636, -0.2401607632637024, -0.6314098238945007, 0.1677475869655609, -0.2407425194978714, 0.4040871262550354, 0.1980804204940796, -0.13472849130630493, 0.17393788695335388, -0.4615919589996338, 0.1415591835975647, 0.08514475077390671, 0.3761204183101654, 0.43336376547813416, 0.2659314274787903, -0.0009723372641019523, -0.4159905016422272, -0.010554857552051544, 0.008052974939346313, 0.10460047423839569, 0.06323473900556564, -0.39823395013809204, -0.4278739094734192, 0.4907147288322449, 0.2899063527584076, 0.9103029370307922, 0.019226763397455215, 0.21206077933311462, 0.06169169023633003, 0.14771465957164764, 0.3378746807575226, -0.23862382769584656, 0.05290890112519264, -0.37262842059135437, 0.17883005738258362, -0.01851840317249298, -0.06176644563674927, 0.28457799553871155, 0.4503554105758667, -0.2886875569820404, 0.2456873208284378, 0.2886001467704773, -0.08597463369369507, 0.04326411709189415, 0.4652506113052368, 0.18086768686771393, -0.171388179063797, -0.19993440806865692, 0.1086006611585617, 0.13879673182964325, 0.1752331554889679, 0.062499113380908966, -0.007759781554341316, -0.23580414056777954, -0.1701214611530304, -0.14468832314014435, -0.04166726768016815, -0.6377274394035339, 0.04811898618936539, -0.278793066740036, -0.09871677309274673, 0.19322870671749115, 0.26457318663597107, 0.5464092493057251, 0.015893489122390747, -0.07588785886764526, -0.02700233832001686, 0.13178902864456177, -0.20846213400363922, 0.08386087417602539, -0.3051469027996063, 0.2494753897190094, -0.06254228204488754, -0.35360974073410034, 0.09972074627876282, -0.16754701733589172, -0.2701690196990967, -0.13254454731941223, -0.1266062706708908, 0.020966090261936188, -0.1530618667602539, -0.25391221046447754, 0.02845730632543564, -0.3261305093765259, -0.22131720185279846, 0.1176682710647583, 0.08986205607652664, -0.4351012706756592, 0.06963874399662018, -0.17936930060386658, -0.3954901695251465, 0.039356887340545654, 0.11197952926158905, -0.18432950973510742, 0.08340605348348618, 0.499403715133667, 0.16101543605327606, 0.16220466792583466, -0.2017594873905182, 0.20027291774749756, 0.1692100316286087, -0.3746143877506256, 0.03567066416144371, 0.11775088310241699, -0.2800239324569702, 0.1436016708612442, 0.4430111050605774, 0.1569000631570816, 0.23792579770088196, -0.045635685324668884, -0.3425501883029938, -0.27530717849731445, 0.013902366161346436, 0.32506436109542847, 0.3838610053062439, -0.0721842497587204, 0.4109014570713043, 0.08188264816999435, 0.25424012541770935, -0.27326270937919617, 0.07146407663822174, -0.23822973668575287, 0.19844268262386322, 0.08650964498519897, -0.1888951063156128, 0.35284632444381714, 0.07361888885498047, 0.11763884127140045, 0.24803045392036438, 0.05628861114382744, -0.16941788792610168, -0.1965242326259613, 0.1314895749092102, 0.16505271196365356, 0.012700662016868591, -0.06803903728723526, -0.048487864434719086, -0.15798406302928925, -0.038468968123197556, -0.021681781858205795, 0.07311545312404633, -0.08175675570964813, 0.4642246663570404, -0.3699723184108734, 0.014214124530553818, -0.05343030393123627, -0.29744216799736023, -0.08844603598117828, 0.07022268325090408, 0.20624880492687225, 0.15332205593585968, 0.16402184963226318, -0.040950603783130646, -0.1786777228116989, -0.06215529888868332, -0.07993525266647339, 0.1546599268913269, 0.015305548906326294, -0.15668608248233795, -0.10017852485179901, 0.002755634021013975, 0.4446975588798523, 0.16693824529647827, -0.30101102590560913, 0.2410554140806198, 0.22763103246688843, 0.1441829651594162, -0.47978475689888, 0.02494381181895733, -0.044477690011262894, -0.3313150703907013, 0.35120224952697754, 0.16626587510108948, 0.13609933853149414, 0.3987354338169098, 0.1215725913643837, 0.07230721414089203, 0.02192007750272751, -0.2570757269859314, 0.13703486323356628, 0.20109683275222778, -0.267767995595932, 0.2696870267391205, 0.317686527967453, -0.15641295909881592, 0.04785420000553131, 0.24802705645561218, 0.3160899579524994, 0.606080949306488, -0.05499323457479477, 0.12787924706935883, -0.10038117319345474, 0.03860081359744072, 0.5128887891769409, 0.018782690167427063, -0.3560570478439331, 0.249739408493042, -0.15041027963161469, 0.5837814211845398, -0.5502702593803406, -0.48247474431991577, 0.09678653627634048, 0.09183457493782043, -0.050976164638996124, -0.050670117139816284, -0.12247132509946823, -0.0851232036948204, -0.41862502694129944, -0.2134885936975479, -0.039542246609926224, -0.10033620893955231, -0.10629300773143768, 0.1470271646976471, -0.05423501133918762, -0.0855487808585167, -0.6040856242179871, 0.30621209740638733, 0.41220343112945557, -0.132473424077034, 0.17882028222084045, 0.18910464644432068, -0.21804189682006836, -0.06686519086360931, 0.37215760350227356, 0.38855117559432983, 0.2263064831495285, -0.19306530058383942, -0.08591566234827042, -0.16711996495723724, -0.16136109828948975, 0.2542237639427185, 0.25556549429893494, 0.05003661289811134, -0.2804904878139496, 0.3479476869106293, 0.051945760846138, -0.15378396213054657, 0.07912295311689377, 0.3322531282901764, -0.07503572106361389, -0.22875919938087463, 0.21094262599945068, 0.03605029359459877, -0.07661160826683044, -0.24795770645141602, 0.05601128563284874, -0.6043111681938171, -0.1853354573249817, 0.36269885301589966, -0.09633097797632217, 0.2693290412425995, -0.392862468957901, 0.07963187992572784, -0.05943017825484276, 0.41928040981292725, 0.15010635554790497, 0.022032439708709717, -0.5209875106811523, 0.07615497708320618, -0.7764047980308533, 0.11107666045427322, -0.24942457675933838, -0.22894105315208435, -0.1009644865989685, 0.08560491353273392, 0.22848615050315857, 0.2086375504732132, -0.06099730730056763, -0.04803388938307762, 0.3295162320137024, 0.27503502368927, -0.3106970489025116, 0.11621524393558502, -0.04215332120656967, 0.4017898440361023, 0.1404569149017334, -0.34930816292762756, -0.0746278166770935, 0.1168842762708664, 0.03696194291114807, -0.1378566175699234, -0.13933828473091125, 0.2897820770740509, -0.06557879596948624, 0.17357134819030762, -0.11451993882656097, 0.6891518831253052, -0.22115057706832886, -0.14560632407665253, -0.010928850620985031, 0.04812435805797577, -0.0262514166533947, 0.18155992031097412, 0.254791259765625, 0.4406011700630188, -0.15792827308177948, -0.32148346304893494, -0.22852273285388947, 0.04110606387257576, 0.02318505197763443, -0.1943838745355606, -0.06973975896835327, 0.2999090254306793, 0.14222586154937744, -0.05443890392780304, 0.07599468529224396, 0.4057115614414215, -0.22649121284484863, 0.19738256931304932, -0.2868046164512634, -0.2533642053604126, 0.36197763681411743, -0.32551273703575134, -0.15253876149654388, -0.11512093245983124, 0.20681847631931305, 0.18401791155338287, 0.12171303480863571, -0.3584885895252228, 0.025954298675060272, 0.3694365620613098, 0.3397182822227478, -0.33644071221351624, 0.1835334748029709, 0.28642576932907104, 0.0465635322034359, -0.007457174360752106, 0.24307644367218018, 0.11236098408699036, 0.26004040241241455, 0.17268042266368866, -0.2680011987686157 ]
https://github.com/huggingface/datasets/pull/2745
added semeval18_emotion_classification dataset
Hi @maxpel , have you had a chance to take my comments into account ? Let me know if you have questions or if I can help :)
I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001
28
text: added semeval18_emotion_classification dataset I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001 Hi @maxpel , have you had a chance to take my comments into account ? Let me know if you have questions or if I can help :)
[ 0.0835144966840744, -0.5275696516036987, -0.09351958334445953, 0.14532148838043213, 0.06827519088983536, 0.14575651288032532, 0.3946967124938965, 0.2261774241924286, 0.26781031489372253, -0.020302757620811462, 0.053355105221271515, -0.15518692135810852, -0.33047664165496826, -0.06998781114816666, 0.06267065554857254, -0.013685442507266998, 0.05845405533909798, -0.019437715411186218, 0.5020207166671753, -0.021487072110176086, -0.051142629235982895, 0.1522182822227478, -0.06566446274518967, -0.08496701717376709, -0.414633184671402, 0.1455606371164322, -0.22955337166786194, 0.06427877396345139, -0.04918535053730011, -0.48128995299339294, 0.43316540122032166, 0.0466475673019886, -0.012385673820972443, 0.4355648159980774, -0.00011911505134776235, 0.04554738849401474, 0.282895565032959, -0.3355852961540222, -0.1367676556110382, -0.39251405000686646, 0.22267448902130127, -0.3216939866542816, -0.06692513823509216, -0.14335431158542633, -0.39515748620033264, -0.1436266005039215, -0.11072058975696564, -0.27566349506378174, 0.3549678325653076, 0.6489403247833252, 0.12201592326164246, 0.24105113744735718, 0.19726921617984772, 0.11040110886096954, 0.42817291617393494, 0.15085259079933167, -0.127623051404953, 0.4066930413246155, 0.2542574405670166, -0.043341003358364105, 0.3858218491077423, 0.13771463930606842, -0.08065102249383926, 0.17843087017536163, 0.09418536722660065, -0.10836747288703918, 0.3555624485015869, -0.3642660677433014, 0.15730693936347961, 0.03893782198429108, 0.3137810230255127, -0.265774130821228, -0.1442682445049286, 0.0665707066655159, -0.06705053895711899, -0.28820279240608215, 0.09335517883300781, 0.09230905026197433, -0.12843084335327148, 0.03406986594200134, 0.20341917872428894, 0.08539927750825882, -0.2130526900291443, 0.25076958537101746, 0.2789440155029297, -0.028843887150287628, -0.12544211745262146, 0.07162687182426453, 0.04385197535157204, 0.004877837374806404, 0.002615668810904026, -0.13306011259555817, 0.010233398526906967, 0.32668235898017883, -0.4185018837451935, -0.18862856924533844, -0.22596627473831177, -0.45400270819664, 0.12701618671417236, -0.6411693692207336, -0.22134174406528473, 0.006328890100121498, 0.16176925599575043, 0.25109419226646423, -0.19683785736560822, 0.30249226093292236, 0.07835976779460907, 0.3829350173473358, -0.15209144353866577, -0.16488021612167358, -0.13197875022888184, 0.09449270367622375, -0.037022195756435394, -0.3230315148830414, 0.050942886620759964, 0.1011476069688797, 0.21713609993457794, -0.2511408030986786, -0.5065279603004456, 0.11786452680826187, -0.6329948306083679, -0.009071525186300278, -0.22997121512889862, 0.4357019066810608, -0.0008275737054646015, -0.08517956733703613, 0.20123733580112457, 0.3538760542869568, -0.16933630406856537, 0.10266944766044617, -0.09081549942493439, 0.2504178285598755, -0.18491694331169128, 0.03197155147790909, 0.3928968906402588, -0.14913107454776764, 0.20529411733150482, 0.003943479619920254, -0.1936080902814865, -0.28246596455574036, 0.5966522693634033, -0.2316088229417801, 0.31577354669570923, 0.2383427917957306, -0.02494710311293602, 0.07906652241945267, 0.23413074016571045, -0.09146060049533844, -0.03740643709897995, 0.16741782426834106, -0.19638535380363464, -0.28997841477394104, -0.10536840558052063, 0.12444750219583511, -0.2214294672012329, 0.147462397813797, 0.10750419646501541, 0.37339797616004944, 0.04801521450281143, 0.07007668912410736, -0.03654047101736069, -0.2214948683977127, -0.26374125480651855, 0.008184614591300488, 0.21190743148326874, 0.42852121591567993, -0.663731575012207, 0.04233670234680176, -0.004074260126799345, 0.0032063256949186325, 0.11197330057621002, -0.06364153325557709, -0.0018615531735122204, 0.24986585974693298, -0.215900719165802, 0.1832379549741745, 0.21886467933654785, -0.3108764588832855, -0.02289845608174801, 0.20708583295345306, -0.09215997904539108, 0.012142175808548927, 0.2454054057598114, -0.06066615507006645, 0.11652669310569763, -0.02392808347940445, -0.05715759098529816, -0.15948514640331268, 0.05028896778821945, -0.06367506831884384, -0.5761959552764893, -0.19370299577713013, 0.3321264982223511, 0.23173297941684723, 0.051236171275377274, -0.2555930018424988, 0.18399950861930847, -0.03708513826131821, 0.21649590134620667, -0.20028740167617798, 0.2624830901622772, 0.2508658170700073, 0.22808821499347687, 0.2678934931755066, 0.1821436583995819, -0.052675675600767136, -0.029110155999660492, 0.19726291298866272, 0.2703532874584198, 0.3777076005935669, 0.06584466993808746, -0.12849675118923187, -0.6320372819900513, -0.20869813859462738, -0.38797417283058167, -0.5306892395019531, 0.11193594336509705, 0.29081082344055176, 0.0757838785648346, -0.012788960710167885, 0.026024941354990005, -0.01733323745429516, -0.16488289833068848, -0.10831625014543533, -0.09977628290653229, 0.07935083657503128, -0.15024998784065247, -0.06075673550367355, -0.06451377272605896, 0.2931043803691864, 0.1841249167919159, -0.31842920184135437, -0.19546014070510864, 0.20654278993606567, 0.24540269374847412, 0.02834780514240265, 0.21024486422538757, -0.17553605139255524, -0.09560596197843552, -0.29490718245506287, 0.07713724672794342, 0.42548704147338867, 0.06319806724786758, -0.08053209632635117, -0.00345543771982193, 0.3026207685470581, 0.22067342698574066, -0.047757528722286224, -0.3068433403968811, -0.1203477755188942, 0.2699236571788788, -0.07671784609556198, -0.24250033497810364, -0.18133309483528137, 0.39843136072158813, -0.031429581344127655, 0.42601168155670166, -0.08258893340826035, -0.09354348480701447, -0.05595291405916214, 0.18341363966464996, -0.1594325304031372, 0.14359508454799652, 0.22421500086784363, -0.2215861976146698, -0.20128825306892395, -0.13164155185222626, 0.059130098670721054, 0.5265329480171204, 0.06901895254850388, -0.2015465497970581, 0.004414040595293045, -0.0991305559873581, -0.11325068026781082, 0.3616470396518707, -0.09449589252471924, 0.2175803780555725, 0.29834267497062683, 0.0781235322356224, -0.07456803321838379, -0.2601442337036133, -0.08479396253824234, 0.10579341650009155, 0.2769143879413605, -0.5196712017059326, -0.11336961388587952, 0.11248092353343964, 0.05682050436735153, -0.24813202023506165, 0.014881780371069908, -0.05852070078253746, 0.002593384124338627, 0.0862751454114914, -0.14990724623203278, 0.07694834470748901, 0.015873409807682037, 0.07176502048969269, 0.27234286069869995, 0.024027103558182716, -0.12839354574680328, -0.271209180355072, -0.32531243562698364, -0.18195053935050964, 0.05528717860579491, 0.09214165061712265, 0.38093656301498413, 0.3448891341686249, -0.11967837810516357, -0.31015652418136597, 0.10269266366958618, -0.462864488363266, 0.17856985330581665, -0.19588734209537506, 0.45546168088912964, 0.17552980780601501, 0.2966057360172272, 0.04950198531150818, -0.10724067687988281, 0.08913158625364304, -0.13364316523075104, -0.3746289312839508, 0.002626810222864151, -0.14421948790550232, -0.039889317005872726, -0.3875487148761749, -0.8424721360206604, -0.5394046902656555, -0.24125398695468903, 0.11288493871688843, 0.013182643800973892, -0.004989646375179291, 0.2913925349712372, 0.29727262258529663, 0.3079572021961212, -0.026102056726813316, 0.11533831804990768, -0.2923715114593506, -0.2539385259151459, 0.26904284954071045, -0.28314563632011414, -0.4369766414165497, 0.2778284549713135, -0.14602169394493103, 0.26136016845703125, -0.1890716850757599, -0.31552428007125854, -0.1623382270336151, 0.17643669247627258, -0.09914878010749817, 0.05628697946667671, -0.19713027775287628, 0.1689375936985016, -0.01762981340289116, 0.002064427360892296, -0.2401232123374939, -0.0045930203050374985, 0.10314823687076569, -0.17670074105262756, 0.3821357190608978, -0.129401296377182, 0.4800581932067871, 0.12439051270484924, 0.724114716053009, 0.35887664556503296, -0.15255986154079437, 0.1071406900882721, -0.10982722789049149, 0.08008603751659393, -0.0021712705492973328, -0.5441884994506836, 0.2658039331436157, -0.17310172319412231, -0.10121309012174606, 0.19457417726516724, -0.23945656418800354, -0.015399385243654251, -0.049904368817806244, 0.04024776443839073, -0.3291623294353485, -0.06576907634735107, 0.07209122180938721, -0.15351693332195282, 0.41908586025238037, -0.12218576669692993, -0.21777048707008362, -0.2600184679031372, -0.09975515305995941, -0.09662359952926636, 0.5060755014419556, 0.12999987602233887, 0.15301577746868134, -0.3813166618347168, 0.36906442046165466, -0.18674355745315552, 0.25387537479400635, 0.06488525122404099, 0.3407130241394043, -0.15964391827583313, 0.1444389522075653, 0.022892020642757416, 0.0015123195480555296, 0.6002308130264282, -0.29480013251304626, 0.1589362919330597, 0.3099577724933624, 0.27901244163513184, -0.485630601644516, -0.15941250324249268, -0.2879469096660614, -0.017970668151974678, 0.5935572981834412, 0.4674135148525238, -0.23829305171966553, -0.16782024502754211, 0.16613610088825226, 0.17640410363674164, -0.043312277644872665, -0.16117632389068604, -0.36707746982574463, -0.3627527058124542, -0.4167308807373047, 0.04494291916489601, 0.15646463632583618, 0.2560613453388214, -0.20706582069396973, -0.04369336739182472, 0.17007604241371155, -0.19550418853759766, 0.2874535918235779, 0.014918942004442215, 0.29937270283699036, 0.15477927029132843, 0.22660475969314575, 0.3807152807712555, 0.12783440947532654, 0.03379633277654648, 0.1891009509563446, -0.16214285790920258, -0.45531606674194336, 0.1711607277393341, -0.2481989562511444, 0.3960772156715393, 0.2313353419303894, -0.14679448306560516, 0.12226076424121857, -0.3326583802700043, 0.005361057817935944, -0.01399362925440073, 0.41493919491767883, 0.37877288460731506, 0.3292231857776642, 0.11345957964658737, -0.4513503909111023, -0.048947907984256744, 0.034439243376255035, 0.10958307981491089, 0.049860838800668716, -0.3760489821434021, -0.3492121994495392, 0.5250007510185242, 0.201945960521698, 1.0067973136901855, 0.19208888709545135, 0.13575084507465363, 0.11117967218160629, 0.2342251092195511, 0.04001811891794205, -0.24503667652606964, -0.0191907100379467, -0.311003178358078, 0.05482477322220802, 0.010518001392483711, -0.18630926311016083, 0.31959086656570435, 0.2851983308792114, -0.3503475785255432, 0.11353632807731628, 0.26229870319366455, 0.12073422968387604, 0.1216336116194725, 0.3779369592666626, 0.11562124639749527, 0.04711422696709633, -0.1555703580379486, 0.13782881200313568, 0.2212693840265274, 0.34643399715423584, 0.027932673692703247, -0.13380789756774902, -0.23417691886425018, -0.21376155316829681, -0.1540517359972, -0.1052381619811058, -0.6116943359375, 0.032469674944877625, -0.2786323130130768, -0.1333063393831253, 0.28424856066703796, 0.21954326331615448, 0.5967758893966675, 0.09459409862756729, -0.19217397272586823, -0.0071367546916007996, 0.14420834183692932, -0.27597370743751526, 0.16754667460918427, -0.27049314975738525, 0.13180363178253174, -0.15640440583229065, -0.4080362319946289, 0.12609314918518066, -0.20565035939216614, -0.2668392062187195, -0.08552698791027069, -0.2565334439277649, -0.04483821243047714, -0.15979748964309692, -0.37871676683425903, -0.08794760704040527, -0.3582848012447357, -0.1288749873638153, 0.12830573320388794, 0.16756364703178406, -0.33473458886146545, -0.01323353499174118, -0.16316132247447968, -0.42276909947395325, -0.002497933804988861, 0.16244760155677795, -0.19403022527694702, 0.026838228106498718, 0.5278281569480896, 0.10436742007732391, 0.1256515383720398, -0.2192540466785431, 0.1985497772693634, 0.0650729238986969, -0.2944399118423462, 0.032698169350624084, 0.13811354339122772, -0.2605804204940796, 0.06365389376878738, 0.5465465784072876, 0.18636591732501984, 0.10153885930776596, -0.10973446071147919, -0.40495073795318604, -0.3134567439556122, -0.004895195364952087, 0.271481990814209, 0.4768592417240143, -0.0839259922504425, 0.36936378479003906, 0.0927412137389183, 0.18139120936393738, -0.310595840215683, 0.059057824313640594, -0.04878397285938263, 0.24440670013427734, 0.1589358150959015, -0.1836070418357849, 0.37240609526634216, -0.06507907062768936, 0.07033030688762665, 0.24583026766777039, -0.12688831984996796, -0.16916906833648682, -0.09681831300258636, 0.16850429773330688, 0.06909799575805664, -0.04248548299074173, -0.031516335904598236, -0.1097165048122406, -0.05058574303984642, 0.07051583379507065, -0.06512869894504547, 0.011103544384241104, -0.16758041083812714, 0.37071001529693604, -0.3393784165382385, 0.04237823933362961, -0.036991238594055176, -0.2357565462589264, -0.13046665489673615, 0.22866521775722504, 0.12252788245677948, 0.10377951711416245, 0.11156152933835983, -0.009404145181179047, -0.12179829180240631, 0.0326838456094265, 0.02035372704267502, 0.22785615921020508, 0.03698631376028061, -0.09591139853000641, -0.1466396301984787, -0.10003147274255753, 0.3277607560157776, 0.16474021971225739, -0.3472171425819397, 0.3184020519256592, 0.1360367238521576, 0.1634501963853836, -0.4970008432865143, 0.16405722498893738, 0.05132699012756348, -0.3830868601799011, 0.29617175459861755, 0.054169781506061554, 0.24242812395095825, 0.35599133372306824, 0.20089513063430786, 0.1686689257621765, 0.02240787446498871, -0.26255691051483154, 0.11745207011699677, 0.2020604908466339, -0.2649396061897278, 0.21970197558403015, 0.19888082146644592, -0.2799895107746124, 0.0405818372964859, 0.2501705288887024, 0.28937825560569763, 0.5984194874763489, 0.0014542043209075928, 0.17061996459960938, -0.17442789673805237, 0.07778312265872955, 0.5257763266563416, 0.06666743010282516, -0.3591758608818054, 0.264090359210968, -0.0065596699714660645, 0.6701512336730957, -0.31558191776275635, -0.24943937361240387, -0.006900152191519737, -0.04726386442780495, 0.02238280326128006, -0.01233205758035183, -0.21383881568908691, -0.0805496796965599, -0.5156745314598083, -0.2191144973039627, 0.0355275496840477, 0.017817705869674683, -0.1437440812587738, 0.12770450115203857, -0.15728063881397247, 0.10293212532997131, -0.34848931431770325, 0.32418641448020935, 0.2788693606853485, -0.11780115962028503, 0.1774180829524994, 0.11949483305215836, -0.11796727776527405, -0.03541645035147667, 0.33579888939857483, 0.4315315783023834, 0.2765340805053711, -0.2232658863067627, -0.026419222354888916, -0.1077941507101059, -0.19809018075466156, 0.19349618256092072, 0.32108256220817566, -0.005958437919616699, -0.28532448410987854, 0.3503587543964386, 0.08682404458522797, -0.122952401638031, 0.09144430607557297, 0.30164772272109985, -0.08469723165035248, -0.32356512546539307, 0.21576760709285736, -0.02129710465669632, -0.06929493695497513, -0.32881221175193787, 0.0678863674402237, -0.5121743679046631, -0.17694687843322754, 0.3437635898590088, -0.009444021619856358, 0.24784532189369202, -0.38892945647239685, 0.09054342657327652, -0.274105042219162, 0.42221567034721375, 0.10609735548496246, 0.15619802474975586, -0.5371386408805847, -0.032348282635211945, -0.7974257469177246, 0.08533596247434616, -0.18259182572364807, -0.1008237674832344, -0.15070658922195435, 0.0695728063583374, 0.33136191964149475, 0.12910667061805725, -0.10597221553325653, -0.0511193685233593, 0.28466618061065674, 0.23558463156223297, -0.19610251486301422, 0.062274590134620667, -0.08226197957992554, 0.3703244924545288, 0.14184324443340302, -0.3062896430492401, -0.1339186429977417, 0.0002837628126144409, 0.06141786277294159, -0.1981208622455597, -0.18143442273139954, 0.4088004529476166, -0.040055595338344574, 0.3166590631008148, -0.12462541460990906, 0.6793885231018066, -0.2065640091896057, -0.034410107880830765, -0.0957530289888382, 0.01905490830540657, 0.0614226870238781, 0.19078025221824646, 0.29058802127838135, 0.38428011536598206, -0.13996224105358124, -0.323518306016922, -0.19808189570903778, -0.028662223368883133, -0.04034208878874779, -0.3053821921348572, -0.0852653905749321, 0.19794228672981262, -0.059523217380046844, 0.013596581295132637, -0.024831775575876236, 0.30885452032089233, -0.27049288153648376, 0.13770462572574615, -0.29104793071746826, -0.18419942259788513, 0.3430168628692627, -0.2587968707084656, -0.06984415650367737, -0.13776648044586182, 0.2191864252090454, 0.14595210552215576, 0.15709152817726135, -0.38727980852127075, 0.020296253263950348, 0.37962937355041504, 0.3199976980686188, -0.10813882946968079, 0.2882004678249359, 0.48492568731307983, 0.17963175475597382, 0.029820885509252548, 0.4371844232082367, 0.1788560450077057, 0.2948969304561615, 0.12888619303703308, -0.3202167749404907 ]
https://github.com/huggingface/datasets/pull/2745
added semeval18_emotion_classification dataset
Hi @lhoestq ! I did take your comments into account, changed the naming and tried to add dummy data (manually). I am not sure if the dummy data is correct, maybe you can take a look at that. The model card is still missing as I am currently very busy.
I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001
50
text: added semeval18_emotion_classification dataset I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001 Hi @lhoestq ! I did take your comments into account, changed the naming and tried to add dummy data (manually). I am not sure if the dummy data is correct, maybe you can take a look at that. The model card is still missing as I am currently very busy.
[ 0.04699993506073952, -0.47625142335891724, -0.09266525506973267, 0.18401944637298584, 0.06984502077102661, 0.28399449586868286, 0.37371405959129333, 0.2036379724740982, 0.3501579165458679, -0.055828988552093506, 0.15830492973327637, -0.08841346204280853, -0.3077786862850189, 0.04072762280702591, 0.2083764225244522, -0.028253808617591858, 0.1409810483455658, -0.04463890194892883, 0.49227607250213623, -0.06772244721651077, -0.04499415308237076, 0.13949862122535706, -0.08836771547794342, -0.044933438301086426, -0.4524827301502228, 0.09723047912120819, -0.2797766923904419, 0.044199783354997635, -0.04373239725828171, -0.5153141617774963, 0.4758535623550415, -0.01806803047657013, 0.013850212097167969, 0.40614035725593567, -0.00011948424071306363, 0.03664161264896393, 0.2597329020500183, -0.35503289103507996, -0.1992248147726059, -0.4470425248146057, 0.18614104390144348, -0.35404759645462036, 0.00878722034394741, -0.005267299711704254, -0.39697569608688354, -0.17995724081993103, -0.0861942321062088, -0.21244853734970093, 0.1767944097518921, 0.5061582922935486, 0.10697969794273376, 0.2482699751853943, 0.24408848583698273, 0.07769541442394257, 0.3188222050666809, 0.3334087133407593, -0.13908781111240387, 0.4427739083766937, 0.2831626832485199, -0.04756481945514679, 0.4532952904701233, 0.20122627913951874, 0.09215696901082993, 0.133096843957901, 0.12635590136051178, -0.045381151139736176, 0.4876796305179596, -0.3915133476257324, 0.11956880986690521, -0.0016392730176448822, 0.17905104160308838, -0.20144537091255188, -0.20731337368488312, -0.0523824617266655, 0.04626622423529625, -0.3014504313468933, 0.10371091216802597, 0.14126542210578918, -0.15357418358325958, -0.005544055253267288, 0.2987818419933319, -0.047638632357120514, -0.12320840358734131, 0.19906087219715118, 0.25305476784706116, -0.022795863449573517, -0.04168947786092758, 0.07014578580856323, -0.02897297963500023, 0.07265426218509674, -0.02291793003678322, -0.11668094992637634, 0.01377551257610321, 0.35969576239585876, -0.424422025680542, -0.13864988088607788, -0.1315975785255432, -0.3633382320404053, 0.02778700739145279, -0.6222471594810486, -0.18948666751384735, 0.016568761318922043, 0.20021352171897888, 0.23212969303131104, -0.1512320637702942, 0.18178139626979828, 0.031135093420743942, 0.4297143220901489, -0.25520604848861694, -0.0870743915438652, -0.1211334615945816, 0.021666180342435837, -0.10883980989456177, -0.15400296449661255, -0.0879351943731308, 0.158268004655838, 0.11937651038169861, -0.26429712772369385, -0.4365461468696594, 0.05640947446227074, -0.56993567943573, -0.014559514820575714, -0.13180604577064514, 0.44160258769989014, -0.06631610542535782, -0.014491170644760132, 0.19984155893325806, 0.2826158404350281, -0.13146866858005524, 0.045198868960142136, -0.10981763154268265, 0.21256092190742493, -0.2187158167362213, -0.03159154951572418, 0.37608763575553894, -0.27115973830223083, 0.28477826714515686, -0.014079742133617401, -0.315973699092865, -0.12349700927734375, 0.5905736684799194, -0.19719885289669037, 0.35405823588371277, 0.3000834584236145, -0.018432529643177986, 0.06168653070926666, 0.25259172916412354, 0.0013623759150505066, -0.019984222948551178, 0.15527209639549255, -0.14478561282157898, -0.29783493280410767, -0.11051321029663086, 0.12770073115825653, -0.1897585242986679, 0.0563245564699173, 0.09708297997713089, 0.31984803080558777, -0.03063254803419113, -0.001112576574087143, -0.08044224232435226, -0.2254772037267685, -0.20866870880126953, 0.0934387817978859, 0.19805501401424408, 0.44885849952697754, -0.7063692212104797, -0.12227730453014374, 0.023146914318203926, -0.02022187039256096, 0.06415829062461853, -0.14214204251766205, -0.0818748027086258, 0.3488389551639557, -0.23509907722473145, 0.08246299624443054, 0.23188120126724243, -0.21828177571296692, -0.054640598595142365, 0.12221557646989822, -0.07014717161655426, -0.02983391098678112, 0.2190578430891037, -0.007049787323921919, 0.014730595052242279, 0.04386565089225769, -0.027515634894371033, -0.1449316143989563, -0.010350869968533516, -0.1692228615283966, -0.5821714401245117, -0.2421741932630539, 0.34239012002944946, 0.2947423756122589, 0.10814698785543442, -0.24842792749404907, 0.10707397013902664, -0.07474353164434433, 0.3011459410190582, -0.1626909077167511, 0.22092072665691376, 0.2467341274023056, 0.3656167685985565, 0.29188427329063416, 0.1811988800764084, -0.01060238666832447, -0.049484968185424805, 0.21711847186088562, 0.08034836500883102, 0.3276020884513855, 0.0880400612950325, -0.06307481229305267, -0.5423890352249146, -0.1978669911623001, -0.4329577684402466, -0.4389699399471283, 0.08294416218996048, 0.297002911567688, 0.0976603627204895, -0.01989300362765789, -0.0927824079990387, -0.02199900709092617, -0.2152499556541443, 0.001571841654367745, -0.17348326742649078, 0.09834475070238113, -0.16091565787792206, -0.07626823335886002, -0.06974687427282333, 0.23124468326568604, 0.18755540251731873, -0.31787219643592834, -0.11061198264360428, 0.12994959950447083, 0.27728113532066345, -0.086946040391922, 0.17944958806037903, -0.19856421649456024, 0.0366600826382637, -0.21309281885623932, 0.054636772722005844, 0.42370444536209106, 0.14094746112823486, -0.07547386735677719, -0.04527296870946884, 0.3313981890678406, 0.23532062768936157, -0.04765824228525162, -0.26516830921173096, -0.08748497068881989, 0.3289937376976013, 0.015555765479803085, -0.17212027311325073, -0.18292149901390076, 0.4025270640850067, 0.06574459373950958, 0.4868465065956116, -0.15121100842952728, -0.1445857584476471, -0.012968353927135468, 0.1888868361711502, -0.09456521272659302, 0.13937686383724213, 0.20172324776649475, -0.3380274772644043, -0.19763603806495667, -0.10935050249099731, 0.050993915647268295, 0.527396559715271, 0.10001020133495331, -0.2957192063331604, -0.07847590744495392, -0.10890800505876541, -0.11848054826259613, 0.36238500475883484, -0.03744008392095566, 0.1534711867570877, 0.25982001423835754, 0.0426965169608593, -0.09869309514760971, -0.23760870099067688, -0.1467667818069458, 0.18822307884693146, 0.2831081748008728, -0.48626473546028137, -0.1664307564496994, 0.12480145692825317, 0.005048193037509918, -0.1495758593082428, -0.06223778799176216, 0.010850867256522179, -0.03985796868801117, 0.14864686131477356, -0.2144465148448944, 0.056909214705228806, 0.06028945744037628, -0.027008600533008575, 0.2280740737915039, -0.0791073590517044, -0.07036461681127548, -0.31058090925216675, -0.31566596031188965, -0.2514714300632477, 0.06877897679805756, 0.09098021686077118, 0.3200381398200989, 0.31227096915245056, -0.11098194122314453, -0.2283095121383667, 0.18248425424098969, -0.5131901502609253, 0.2265566885471344, -0.11955025792121887, 0.4933057129383087, 0.19878648221492767, 0.256764680147171, 0.06153930723667145, -0.08586744964122772, 0.11754093319177628, -0.18459965288639069, -0.3190978467464447, 0.07532704621553421, -0.20043730735778809, -0.05719921365380287, -0.39677801728248596, -0.7930439114570618, -0.5995564460754395, -0.13724622130393982, 0.09211383759975433, 0.09135791659355164, -0.01903468370437622, 0.28339508175849915, 0.31636232137680054, 0.2753969132900238, -0.14683394134044647, 0.036258161067962646, -0.26575571298599243, -0.32145828008651733, 0.2610810399055481, -0.21236838400363922, -0.45478999614715576, 0.3569490313529968, -0.2013375610113144, 0.3219195306301117, -0.25605523586273193, -0.2729337811470032, -0.09250002354383469, 0.19694148004055023, -0.10935436189174652, 0.04495248571038246, -0.22658462822437286, 0.24022603034973145, 0.04347015172243118, 0.01840866543352604, -0.19929882884025574, 0.023125149309635162, 0.15642958879470825, -0.071769118309021, 0.5343291759490967, -0.22575557231903076, 0.5175236463546753, 0.0996619164943695, 0.6270265579223633, 0.2921585738658905, -0.2252814918756485, 0.10917595028877258, -0.04706263542175293, 0.03413195163011551, -0.033896446228027344, -0.5297916531562805, 0.19445767998695374, -0.18236908316612244, -0.09507227689027786, 0.12025534361600876, -0.26722556352615356, -0.04592406004667282, -0.07911175489425659, 0.09079863131046295, -0.2531997859477997, -0.09054286777973175, 0.14810298383235931, -0.10574130713939667, 0.4154294431209564, -0.07696099579334259, -0.2260463833808899, -0.33956262469291687, -0.10904046893119812, -0.007913743145763874, 0.48653823137283325, 0.25396251678466797, 0.12014351040124893, -0.3905034065246582, 0.1731935441493988, -0.12349911779165268, 0.1902068555355072, 0.0634036585688591, 0.2994239032268524, -0.15554025769233704, 0.12393806129693985, -0.036250919103622437, 0.04006451740860939, 0.5240894556045532, -0.19444020092487335, 0.11497069150209427, 0.3441321849822998, 0.18577924370765686, -0.4785233438014984, -0.23614545166492462, -0.31777673959732056, -0.18753308057785034, 0.6130970120429993, 0.5023829936981201, -0.2579087018966675, -0.16692905128002167, 0.14933991432189941, 0.11546307802200317, -0.1707899421453476, -0.10384783893823624, -0.42297738790512085, -0.25257575511932373, -0.44786810874938965, 0.07646771520376205, 0.07764333486557007, 0.22650854289531708, -0.1293639987707138, -0.10356014966964722, 0.09451417624950409, -0.23387277126312256, 0.2490624636411667, 0.08608956634998322, 0.3106063902378082, 0.1546732485294342, 0.2810165584087372, 0.40823790431022644, 0.28548020124435425, 0.16607190668582916, 0.23187308013439178, -0.04507185146212578, -0.3976457715034485, 0.28022727370262146, -0.3343622088432312, 0.4270055294036865, 0.2291015088558197, -0.11083976924419403, 0.19929379224777222, -0.2977716326713562, 0.020360425114631653, -0.05365241691470146, 0.3989053964614868, 0.279098242521286, 0.23960129916667938, 0.1263558268547058, -0.4874192774295807, -0.08988115936517715, -0.025285495445132256, 0.07978695631027222, 0.08031050860881805, -0.34021955728530884, -0.345052033662796, 0.576458215713501, 0.22843125462532043, 0.997583270072937, 0.21553421020507812, 0.09614318609237671, 0.0800088569521904, 0.17428046464920044, 0.055211424827575684, -0.21576061844825745, 0.01867520436644554, -0.3114790916442871, 0.04132787138223648, 0.0012413598597049713, -0.20680803060531616, 0.3672323524951935, 0.3217949867248535, -0.26027804613113403, 0.20425377786159515, 0.2684147357940674, 0.11277168989181519, 0.09962566196918488, 0.35834696888923645, 0.13881249725818634, 0.01802150532603264, -0.1585553139448166, 0.10820652544498444, 0.19917817413806915, 0.4255622327327728, -0.012586768716573715, -0.14888763427734375, -0.24737384915351868, -0.17766687273979187, -0.10641032457351685, -0.10905495285987854, -0.7452243566513062, 0.028712375089526176, -0.33261674642562866, -0.1090812236070633, 0.2626212239265442, 0.15885476768016815, 0.5170737504959106, 0.07540372014045715, -0.15759460628032684, 0.11457808315753937, 0.09868879616260529, -0.2747274339199066, 0.10239264369010925, -0.27952858805656433, 0.20516207814216614, -0.20356878638267517, -0.4088391661643982, 0.126951202750206, -0.29063695669174194, -0.19100084900856018, -0.16533061861991882, -0.24746768176555634, 0.026459001004695892, -0.1485251486301422, -0.40688738226890564, -0.06819723546504974, -0.26575571298599243, -0.13035628199577332, 0.12775811553001404, 0.22058379650115967, -0.31088584661483765, 0.005967356264591217, -0.13861890137195587, -0.32267385721206665, -0.11001454293727875, 0.1431378573179245, -0.21928450465202332, -0.046293068677186966, 0.6210782527923584, 0.0887099951505661, 0.1521168351173401, -0.2348863184452057, 0.16437828540802002, 0.2590118646621704, -0.37367480993270874, -0.05948739871382713, 0.14472797513008118, -0.29274821281433105, 0.14215964078903198, 0.4656795859336853, 0.28445857763290405, -0.05407475680112839, -0.15116387605667114, -0.3839268684387207, -0.34949859976768494, 0.026721853762865067, 0.28013500571250916, 0.43073806166648865, -0.16647124290466309, 0.36956700682640076, 0.17625583708286285, 0.2497241497039795, -0.2991296648979187, 0.06726150214672089, -0.07025245577096939, 0.2688450813293457, -0.017612174153327942, -0.08919867128133774, 0.37303727865219116, -0.10368971526622772, 0.08126696199178696, 0.20271259546279907, 0.023923303931951523, -0.16841793060302734, -0.08904613554477692, 0.14105919003486633, 0.045426562428474426, 0.03110838308930397, -0.025178268551826477, -0.012608310207724571, -0.08291548490524292, 0.13805769383907318, -0.11482417583465576, -0.1118316650390625, -0.1013401448726654, 0.3899460732936859, -0.19590722024440765, -0.003840029239654541, -0.07509522140026093, -0.1768464744091034, -0.08864259719848633, 0.174374520778656, 0.19009830057621002, 0.049830544739961624, 0.12988166511058807, 0.016295507550239563, -0.1642249971628189, 0.031057998538017273, -0.02543821930885315, 0.24311095476150513, 0.11211459338665009, -0.08416084945201874, -0.12855981290340424, -0.022028999403119087, 0.1916908621788025, 0.14399996399879456, -0.22262732684612274, 0.3711489737033844, 0.09881613403558731, 0.16569951176643372, -0.5485341548919678, 0.14990155398845673, 0.031981322914361954, -0.30220097303390503, 0.26856863498687744, -0.01291743665933609, 0.29333701729774475, 0.3843594193458557, 0.14771302044391632, 0.21195656061172485, -0.0201476588845253, -0.18492120504379272, 0.15027789771556854, 0.28632864356040955, -0.14719568192958832, 0.24748100340366364, 0.224908247590065, -0.23339349031448364, 0.04227553308010101, 0.3078439235687256, 0.2953803539276123, 0.6073523759841919, 0.04548582062125206, 0.19361017644405365, -0.017777204513549805, -0.0017011389136314392, 0.4242204427719116, 0.10172086954116821, -0.37078094482421875, 0.26000428199768066, -0.054711148142814636, 0.598621129989624, -0.3273102343082428, -0.2814541757106781, -0.07873277366161346, -0.007946137338876724, -0.02110304683446884, 0.023989323526620865, -0.36500710248947144, -0.09503352642059326, -0.46992287039756775, -0.17821568250656128, 0.13105382025241852, -0.04227513074874878, -0.24241101741790771, 0.17351901531219482, -0.2198931723833084, 0.13140340149402618, -0.46396201848983765, 0.4823646545410156, 0.26755329966545105, -0.12812256813049316, 0.1412784308195114, 0.1928655058145523, -0.23940691351890564, -0.02401750162243843, 0.3025906980037689, 0.3303154408931732, 0.1717941015958786, -0.21955443918704987, 0.017279066145420074, -0.013468371704220772, -0.24702686071395874, 0.1467207968235016, 0.34172582626342773, 0.028333667665719986, -0.22237728536128998, 0.20988112688064575, 0.09848500043153763, -0.1419433206319809, -0.020595621317625046, 0.20394618809223175, -0.01988508552312851, -0.2831017076969147, 0.32956868410110474, -0.07998967170715332, -0.07012061029672623, -0.3133995532989502, 0.02826787531375885, -0.5448504090309143, -0.09076125919818878, 0.4869580864906311, 0.0047428058460354805, 0.1713443398475647, -0.3562769293785095, 0.06237318366765976, -0.3361484110355377, 0.3661712110042572, 0.09250393509864807, -0.08192188292741776, -0.5741916298866272, -0.06541679799556732, -0.6781206727027893, -0.050978802144527435, -0.09452661871910095, -0.09133526682853699, -0.12339721620082855, 0.14104408025741577, 0.3214508593082428, 0.04218258708715439, -0.08456999063491821, -0.024401990696787834, 0.30511319637298584, 0.3243672549724579, -0.22313305735588074, 0.08065876364707947, -0.13348741829395294, 0.43437087535858154, 0.1272447407245636, -0.27276116609573364, -0.14269621670246124, 0.035884082317352295, 0.0265432670712471, -0.2795136570930481, -0.2674042582511902, 0.3709065616130829, -0.01793723553419113, 0.3817826211452484, -0.11722604930400848, 0.6727569103240967, -0.14459949731826782, -0.10008253157138824, -0.05395157262682915, 0.03565441817045212, 0.07921991497278214, 0.2655271589756012, 0.23441533744335175, 0.459903359413147, -0.06605231761932373, -0.333490252494812, -0.250833660364151, -0.07376157492399216, 0.006104037165641785, -0.451113760471344, -0.2287939041852951, 0.2503235638141632, -0.07299929112195969, 0.04624634236097336, 0.11389747262001038, 0.31491464376449585, -0.20998546481132507, 0.031892769038677216, -0.2793036699295044, -0.07010915130376816, 0.2571263015270233, -0.23743531107902527, -0.004914788529276848, -0.2174820601940155, 0.14961962401866913, 0.07357827574014664, 0.2265423983335495, -0.46801814436912537, -0.023600324988365173, 0.33644354343414307, 0.2575475871562958, -0.028269417583942413, 0.29478031396865845, 0.559231698513031, 0.2724813222885132, -0.033351220190525055, 0.5140562057495117, 0.12400419265031815, 0.32367628812789917, 0.03543023392558098, -0.2518792748451233 ]
https://github.com/huggingface/datasets/pull/2745
added semeval18_emotion_classification dataset
Thanks ! The dummy data looks all good, good job :) The CI error can be fixed by merging `master` into your branch ```bash git fetch upstream git merge upstream/master ```
I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001
31
text: added semeval18_emotion_classification dataset I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001 Thanks ! The dummy data looks all good, good job :) The CI error can be fixed by merging `master` into your branch ```bash git fetch upstream git merge upstream/master ```
[ -0.058034542948007584, -0.3160635530948639, -0.0533454567193985, 0.14663729071617126, 0.047460466623306274, 0.17284667491912842, 0.33453088998794556, 0.21085906028747559, 0.2103012055158615, 0.1313336342573166, 0.0615314245223999, -0.24503952264785767, -0.29757824540138245, 0.17256449162960052, -0.18513990938663483, 0.012989368289709091, 0.07426555454730988, -0.0818466991186142, 0.3873317837715149, 0.028603605926036835, 0.008104216307401657, 0.195948988199234, -0.026480279862880707, -0.09994223713874817, -0.2772446274757385, 0.05014685541391373, -0.20167814195156097, 0.08957801014184952, -0.15154263377189636, -0.40043216943740845, 0.5642573237419128, 0.010332712903618813, -0.04902414232492447, 0.6758533716201782, -0.00012042499292874709, 0.1421974152326584, 0.42219048738479614, -0.34404832124710083, -0.27108731865882874, -0.5604562759399414, 0.23152896761894226, -0.25524666905403137, -0.026767373085021973, -0.14891266822814941, -0.3862324655056, 0.03274267166852951, -0.1721334457397461, -0.23795759677886963, 0.3929886221885681, 0.5797130465507507, 0.11221632361412048, 0.2839374542236328, 0.08854411542415619, 0.012904856353998184, 0.38371944427490234, 0.2532099485397339, -0.09106035530567169, 0.48021945357322693, 0.20371663570404053, 0.10474024713039398, 0.4057579040527344, 0.13315293192863464, -0.10490495711565018, 0.03451203927397728, -0.00854453444480896, -0.14857926964759827, 0.4932948052883148, -0.4469381272792816, 0.16917169094085693, -0.1131945326924324, 0.29293134808540344, -0.16417473554611206, -0.12606287002563477, 0.18336975574493408, -0.029526427388191223, -0.27949777245521545, 0.15898731350898743, 0.13019885122776031, -0.16482526063919067, -0.039939966052770615, 0.0461089201271534, 0.12436717748641968, -0.1388673633337021, 0.20132677257061005, 0.28851768374443054, -0.06547978520393372, -0.09486259520053864, 0.15145376324653625, 0.10230135917663574, 0.011121459305286407, -0.08537159115076065, -0.12894897162914276, -0.07244859635829926, 0.2664638161659241, -0.3555486500263214, -0.2506614327430725, -0.262126088142395, -0.30114221572875977, 0.0314566008746624, -0.4081280827522278, -0.23867551982402802, -0.1358662247657776, 0.25065919756889343, 0.33172693848609924, -0.01889752224087715, 0.3168545961380005, -0.03881077468395233, 0.5114233493804932, -0.05534350872039795, -0.16467098891735077, -0.09827719628810883, 0.06679660081863403, -0.09783023595809937, -0.2998368442058563, -0.11286477744579315, 0.17824304103851318, 0.22509543597698212, -0.3153038024902344, -0.4744294583797455, 0.11355648189783096, -0.4760422706604004, 0.0384051613509655, -0.1287524700164795, 0.38029757142066956, -0.007029813248664141, -0.09706943482160568, 0.24964122474193573, 0.3361883759498596, -0.08815421909093857, 0.14360585808753967, -0.08276307582855225, 0.18504780530929565, -0.19071398675441742, -0.10606338828802109, 0.32737040519714355, -0.38282260298728943, 0.24839290976524353, 0.038004688918590546, 0.08842961490154266, -0.31617411971092224, 0.49342089891433716, -0.1462213695049286, 0.24365511536598206, 0.35762229561805725, 0.12892311811447144, -0.0451989509165287, 0.35379159450531006, -0.247474804520607, -0.008126676082611084, 0.15908417105674744, -0.2679544985294342, -0.37650224566459656, -0.2909824550151825, 0.10592707246541977, -0.24181917309761047, 0.2518479526042938, -0.08457709103822708, 0.1907377541065216, 0.21820424497127533, 0.029155012220144272, -0.10794531553983688, -0.2004091590642929, -0.22539104521274567, 0.03614319488406181, 0.1612568497657776, 0.3197826147079468, -0.3917912542819977, -0.07414303719997406, -0.051055215299129486, 0.063835009932518, 0.0975392758846283, 0.0601288266479969, -0.007949290797114372, 0.2856445014476776, -0.21079054474830627, -0.018869765102863312, 0.31207260489463806, -0.47456029057502747, -0.0286684799939394, 0.25747764110565186, -0.1154436469078064, -0.13698384165763855, 0.13111421465873718, -0.09428910911083221, 0.2598356604576111, -0.12458166480064392, -0.1480405181646347, -0.12049698829650879, -0.20836015045642853, -0.014622555114328861, -0.4643041789531708, -0.21983706951141357, 0.08306725323200226, 0.20751141011714935, 0.04422091692686081, -0.13369640707969666, 0.3132757544517517, -0.2132820188999176, 0.15240377187728882, -0.22600752115249634, 0.24449342489242554, 0.23396000266075134, 0.23268872499465942, 0.17898675799369812, 0.18676058948040009, 0.09637115150690079, 0.0018282607197761536, 0.1764729917049408, 0.2941778004169464, 0.41635504364967346, 0.07180371135473251, -0.2064022570848465, -0.6318199634552002, -0.19839084148406982, -0.3561587631702423, -0.37599289417266846, 0.06549559533596039, 0.3251107931137085, 0.02735932543873787, -0.1144515722990036, 0.019073117524385452, -0.024686874821782112, -0.20152679085731506, -0.03894132003188133, -0.11591856181621552, 0.09266064316034317, -0.23322512209415436, -0.04504330828785896, -0.0636485293507576, 0.2300204336643219, 0.16084089875221252, -0.399728000164032, -0.29729196429252625, 0.22425603866577148, 0.06958069652318954, 0.09280901402235031, 0.241106778383255, -0.17369674146175385, -0.05192176252603531, -0.2882075309753418, -0.03557189553976059, 0.45822176337242126, -0.00265520834363997, -0.0022620931267738342, -0.02802588790655136, 0.3258240818977356, 0.05710242688655853, -0.02685905247926712, -0.2781878411769867, -0.023214321583509445, 0.3643684387207031, -0.08020005375146866, -0.3822988271713257, -0.30492332577705383, 0.468003511428833, -0.025074128061532974, 0.29703289270401, -0.13966123759746552, 0.08366389572620392, -0.1560487449169159, 0.10895277559757233, -0.12847095727920532, 0.05639829486608505, 0.23459315299987793, -0.08010270446538925, -0.07268737256526947, -0.11974361538887024, 0.20103593170642853, 0.5507803559303284, 0.020659837871789932, -0.23432525992393494, 0.1162046417593956, -0.016107190400362015, -0.0391976535320282, 0.3937614858150482, -0.0509902685880661, 0.21900752186775208, 0.3628174364566803, 0.12714429199695587, 0.05385415628552437, -0.18826758861541748, -0.03610159456729889, 0.11265263706445694, 0.2633970379829407, -0.42829832434654236, 0.033622145652770996, 0.14981472492218018, -0.027620535343885422, -0.10546283423900604, 0.007652356289327145, 0.016881056129932404, -0.004220814444124699, -0.028573639690876007, 0.04836859181523323, -0.05396078899502754, 0.09324126690626144, 0.06399540603160858, 0.31894567608833313, 0.01069772057235241, -0.11832136660814285, -0.19269196689128876, -0.3708537817001343, -0.17057713866233826, 0.02196454629302025, 0.1739705353975296, 0.20849204063415527, 0.38363325595855713, -0.16281341016292572, -0.21118618547916412, 0.00973341055214405, -0.5916308760643005, 0.23922063410282135, -0.1711980402469635, 0.48094847798347473, 0.21447822451591492, 0.1578502207994461, 0.023964382708072662, -0.2430603951215744, 0.11180329322814941, -0.15267041325569153, -0.4707285165786743, 0.06857283413410187, -0.1689785122871399, -0.14526928961277008, -0.42123839259147644, -0.6592976450920105, -0.572319507598877, -0.23379464447498322, 0.0010862648487091064, -0.012585092335939407, 0.036445196717977524, 0.36096590757369995, 0.1884414553642273, 0.01794808730483055, 0.0570141077041626, -0.0264174472540617, -0.3230150640010834, -0.4505227506160736, 0.12170867621898651, -0.40335431694984436, -0.43697890639305115, 0.4364996552467346, -0.14802250266075134, 0.40633657574653625, -0.15883095562458038, -0.3106103539466858, 0.0014417218044400215, 0.28873705863952637, -0.14088234305381775, 0.0805998295545578, -0.24736471474170685, 0.1579408347606659, 0.02167096547782421, 0.026095537468791008, -0.22510910034179688, -0.09221400320529938, 0.08008857816457748, -0.027081679552793503, 0.4714386463165283, -0.19183304905891418, 0.6824403405189514, 0.10167898237705231, 0.6643440127372742, 0.48532408475875854, -0.05015850439667702, 0.02947111800312996, 0.025339409708976746, 0.1613965630531311, 0.01558232307434082, -0.613772988319397, 0.3189578950405121, -0.20769435167312622, -0.2509292960166931, 0.2805141806602478, -0.17752531170845032, -0.10644043982028961, -0.075377456843853, 0.04981359466910362, -0.25950995087623596, -0.10056044161319733, 0.036111555993556976, -0.35324642062187195, 0.45681050419807434, -0.10803771018981934, -0.3038422763347626, -0.28193289041519165, -0.09816042333841324, -0.15984319150447845, 0.5663547515869141, 0.043388307094573975, 0.17170780897140503, -0.2690514624118805, 0.16504386067390442, -0.1425957977771759, 0.27325189113616943, 0.10162077099084854, 0.28592509031295776, -0.20912732183933258, 0.24675241112709045, -0.04799075424671173, 0.05674433335661888, 0.3664742410182953, -0.3253729045391083, 0.0660485327243805, 0.2695082724094391, 0.13411295413970947, -0.43058350682258606, -0.327156662940979, -0.19523164629936218, 0.19281911849975586, 0.6510142683982849, 0.47571107745170593, -0.22094851732254028, -0.12029501050710678, 0.3672809898853302, 0.051492974162101746, -0.059479791671037674, -0.09192594140768051, -0.4540773034095764, -0.43904682993888855, -0.5508403778076172, 0.13834188878536224, 0.15842124819755554, 0.2114706039428711, -0.3007880747318268, -0.005676582455635071, 0.21692310273647308, -0.11156031489372253, 0.17026077210903168, -0.02751128003001213, 0.2106538712978363, 0.2121405005455017, 0.2074441909790039, 0.19763247668743134, 0.1764378845691681, 0.11092472076416016, 0.35838747024536133, 0.02439030073583126, -0.3344646096229553, 0.22177258133888245, -0.2452811896800995, 0.36041438579559326, 0.21021148562431335, -0.079537533223629, 0.117691271007061, -0.2248414307832718, 0.07884754985570908, 0.04960311949253082, 0.32238587737083435, 0.22939659655094147, 0.2981534004211426, -0.04088153317570686, -0.21318776905536652, -0.12849432229995728, 0.011281225830316544, 0.10623191297054291, 0.11354351043701172, -0.466484010219574, -0.3121945261955261, 0.5341872572898865, 0.27252933382987976, 1.0003489255905151, 0.255278617143631, 0.04978621006011963, 0.02149544283747673, 0.2921096086502075, 0.1480553150177002, -0.09832893311977386, -0.03611191362142563, -0.2968936264514923, -0.04635407775640488, -0.001911316066980362, -0.1996423900127411, 0.2738105058670044, 0.1739380955696106, -0.5076316595077515, 0.13460883498191833, 0.25229519605636597, 0.45754513144493103, 0.13825251162052155, 0.24896368384361267, 0.08741804212331772, 0.07521825283765793, -0.007129006087779999, 0.12217289209365845, 0.1639893352985382, 0.37347865104675293, -0.10025475174188614, -0.16199226677417755, -0.3005000948905945, -0.2481762319803238, -0.23243504762649536, -0.025817375630140305, -0.553124725818634, 0.16928990185260773, -0.33814388513565063, -0.2874199151992798, 0.3005150854587555, 0.11802533268928528, 0.7956457734107971, 0.14190611243247986, -0.11935921013355255, 0.09036418795585632, 0.15857529640197754, -0.2314828485250473, 0.12480993568897247, -0.27459007501602173, 0.03338170424103737, -0.25216180086135864, -0.34089145064353943, 0.06406114995479584, -0.2254393994808197, -0.41307711601257324, 0.048397794365882874, -0.15151870250701904, -0.043043799698352814, -0.1596614569425583, -0.2906387448310852, -0.15884529054164886, -0.3881184160709381, -0.17891092598438263, 0.08356437087059021, 0.09220339357852936, -0.30258890986442566, -0.034700773656368256, -0.10919484496116638, -0.42363864183425903, -0.011546052992343903, 0.051722340285778046, -0.07393188774585724, -0.11406227201223373, 0.49589380621910095, 0.018719952553510666, 0.22309057414531708, -0.18977606296539307, 0.1334802508354187, -0.026708131656050682, -0.30187851190567017, 0.1301090568304062, -0.026405729353427887, -0.3642904758453369, 0.12558096647262573, 0.6503015756607056, 0.29159727692604065, 0.2067132592201233, -0.1205357164144516, -0.5066843032836914, -0.47940778732299805, 0.06953107565641403, 0.09527947008609772, 0.48182615637779236, -0.09958988428115845, 0.39216348528862, 0.025157900527119637, 0.24128387868404388, -0.2581923305988312, -0.039112359285354614, -0.24471069872379303, 0.27754849195480347, 0.36245936155319214, -0.1470107138156891, 0.319940984249115, -0.11871017515659332, -0.030740659683942795, 0.1974748820066452, -0.05293373763561249, -0.12595871090888977, -0.030812401324510574, 0.1557910293340683, 0.0533420592546463, -0.048481836915016174, 0.08995316922664642, 0.01108049601316452, -0.08989834785461426, 0.08237196505069733, -0.02585502341389656, -0.05668020248413086, -0.05212109535932541, 0.14714741706848145, -0.4680010974407196, 0.03380843997001648, -0.05413009598851204, -0.12315759062767029, -0.02604229748249054, 0.18040752410888672, -0.0697469487786293, 0.2132534682750702, 0.04610184580087662, -0.08193988353013992, -0.07386983931064606, 0.04351767152547836, 0.07511623948812485, 0.32074853777885437, 0.1314195692539215, -0.12146811187267303, -0.11930817365646362, 0.013207128271460533, 0.27501416206359863, 0.03159215673804283, -0.3211541175842285, 0.3943060636520386, 0.030939919874072075, 0.12587621808052063, -0.4307746887207031, 0.10028530657291412, 0.029360204935073853, -0.2405204325914383, 0.18713392317295074, 0.10453774780035019, 0.2494581937789917, 0.2426643967628479, 0.2626430094242096, 0.23749414086341858, 0.08761677891016006, -0.18592987954616547, 0.34683215618133545, 0.2981822192668915, -0.22187112271785736, 0.3048296272754669, 0.08753330260515213, -0.3471960127353668, 0.06952430307865143, 0.19135382771492004, 0.23803582787513733, 0.6165258884429932, 0.1841571033000946, 0.0785931646823883, -0.0017947107553482056, 0.03849451616406441, 0.5318217277526855, -0.008279502391815186, -0.29272493720054626, 0.24352100491523743, 0.07519876956939697, 0.4558854401111603, -0.32475745677948, -0.4446965754032135, -0.1819019913673401, 0.07849140465259552, -0.04929263889789581, 0.08719243109226227, -0.43271175026893616, -0.042118292301893234, -0.4301496148109436, -0.12522105872631073, 0.029346216470003128, 0.15098369121551514, -0.17818337678909302, 0.19376780092716217, -0.2297019511461258, 0.12447371333837509, -0.44185423851013184, 0.42447081208229065, 0.12304046750068665, -0.11861877143383026, 0.268624484539032, 0.23130004107952118, -0.16791296005249023, -0.02327776327729225, 0.4352210760116577, 0.6189346313476562, 0.27215784788131714, -0.09470535814762115, 0.02879123017191887, -0.018559277057647705, -0.18492761254310608, 0.18231871724128723, 0.30299630761146545, 0.019692234694957733, -0.3270723223686218, 0.21913282573223114, 0.06932888925075531, -0.10134254395961761, 0.1066180020570755, 0.16585014760494232, -0.1818058341741562, -0.2675824761390686, 0.20793430507183075, 0.03024270012974739, -0.030339140444993973, -0.24950432777404785, 0.12226586788892746, -0.4226941764354706, -0.12349435687065125, 0.38173890113830566, 0.013777164742350578, 0.23888710141181946, -0.311431348323822, 0.08344495296478271, -0.2396063208580017, 0.4642077684402466, 0.23214781284332275, 0.14192503690719604, -0.5181817412376404, -0.2000589519739151, -0.6995130777359009, 0.06370453536510468, -0.17961028218269348, 0.05639397352933884, -0.09614334255456924, 0.0663721114397049, 0.34816375374794006, 0.14395654201507568, 0.0071902647614479065, -0.21583935618400574, 0.32881245017051697, 0.09105438739061356, -0.19610995054244995, 0.039719678461551666, 0.002681747078895569, 0.17494378983974457, 0.1470515877008438, -0.4174017012119293, -0.13789165019989014, 0.09521202743053436, 0.03150489181280136, -0.10903313755989075, -0.3156135082244873, 0.3420645594596863, -0.2727477252483368, 0.2297927439212799, -0.03256244957447052, 0.6700917482376099, -0.2018638253211975, -0.06755382567644119, -0.09545975923538208, -0.038129277527332306, -0.0518825463950634, 0.3051263093948364, 0.25580963492393494, 0.5128442049026489, -0.17618001997470856, -0.1192222386598587, -0.25728538632392883, -0.15821555256843567, -0.029103895649313927, -0.3320562541484833, -0.14877957105636597, 0.15999358892440796, -0.07822459936141968, 0.12755246460437775, 0.04940364882349968, 0.31254681944847107, -0.19366803765296936, 0.22973476350307465, -0.24689215421676636, -0.21881191432476044, 0.43281006813049316, -0.2313036173582077, -0.08837784826755524, -0.20137451589107513, 0.19580483436584473, 0.11974029988050461, 0.13737857341766357, -0.2664570212364197, 0.06530552357435226, 0.2001955509185791, 0.25845029950141907, -0.16851025819778442, 0.2621300518512726, 0.4515288770198822, 0.19768084585666656, 0.04606637731194496, 0.5341025590896606, 0.1333983838558197, 0.11602884531021118, 0.18958885967731476, -0.31045347452163696 ]
https://github.com/huggingface/datasets/pull/2745
added semeval18_emotion_classification dataset
Hi! I just added the model card and I did the merge you showed above. Should I then add and commit again? The CI error is still there right now.
I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001
30
text: added semeval18_emotion_classification dataset I added the data set of SemEval 2018 Task 1 (Subtask 5) for emotion detection in three languages. ``` datasets-cli test datasets/semeval18_emotion_classification/ --save_infos --all_configs RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_real_dataset_semeval18_emotion_classification ``` Both commands ran successfully. I couldn't create the dummy data (the files are tsvs but have .txt ending, maybe that's the problem?) and therefore the test on the dummy data fails, maybe someone can help here. I also formatted the code: ``` black --line-length 119 --target-version py36 datasets/semeval18_emotion_classification/ isort datasets/semeval18_emotion_classification/ flake8 datasets/semeval18_emotion_classification/ ``` That's the publication for reference: Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001 Hi! I just added the model card and I did the merge you showed above. Should I then add and commit again? The CI error is still there right now.
[ -0.21758216619491577, -0.280807226896286, -0.030822670087218285, 0.09837068617343903, 0.007288891822099686, 0.18351271748542786, 0.2814909517765045, 0.1974860429763794, 0.12063585221767426, 0.06861221790313721, 0.08089590817689896, -0.2640918493270874, -0.24013493955135345, 0.3332226276397705, -0.15945842862129211, 0.21341612935066223, 0.1728433519601822, -0.026848718523979187, 0.5510464310646057, -0.015996072441339493, -0.12583547830581665, 0.1294180005788803, 0.06333297491073608, -0.03771696984767914, -0.36593273282051086, 0.023360520601272583, -0.29338541626930237, 0.03288363665342331, -0.17801348865032196, -0.3144071400165558, 0.5057355761528015, 0.03966372087597847, -0.08293084055185318, 0.5614097118377686, -0.00012303136463742703, 0.049473948776721954, 0.2690727114677429, -0.24784234166145325, -0.13015195727348328, -0.43815773725509644, 0.21187013387680054, -0.17169587314128876, -0.10666897147893906, -0.035764843225479126, -0.25259873270988464, 0.013144593685865402, -0.22148708999156952, -0.24941380321979523, 0.32958126068115234, 0.4636269509792328, 0.08715829998254776, 0.2819182276725769, 0.17974278330802917, 0.001912574516609311, 0.18799754977226257, 0.47728466987609863, -0.054826028645038605, 0.5198322534561157, 0.21908722817897797, 0.015056436881422997, 0.5239095091819763, 0.25967392325401306, 0.027253059670329094, -0.23777465522289276, 0.05270349234342575, -0.2298915982246399, 0.4881501793861389, -0.4326498508453369, 0.21294644474983215, -0.20917725563049316, 0.1762486696243286, -0.03810395300388336, -0.08841215819120407, 0.23773089051246643, 0.141922265291214, -0.3243211507797241, 0.15890319645404816, -0.06519771367311478, 0.005060741677880287, -0.07507283985614777, 0.15549883246421814, -0.14155735075473785, -0.11155618727207184, 0.10345286130905151, 0.2705828547477722, -0.04860250651836395, 0.025939930230379105, 0.2234162986278534, 0.16973832249641418, -0.016429446637630463, -0.03815620020031929, -0.12863625586032867, -0.06789883971214294, 0.3194848895072937, -0.31526291370391846, -0.2880152463912964, -0.18998733162879944, -0.20381447672843933, -0.027533283457159996, -0.3970378637313843, -0.18420106172561646, -0.2054581344127655, 0.32618775963783264, 0.23800325393676758, 0.053533442318439484, 0.31155458092689514, -0.11890948563814163, 0.42347681522369385, -0.024844475090503693, -0.12377079576253891, -0.07139997184276581, 0.14249484241008759, -0.13929925858974457, -0.2731392979621887, -0.11767071485519409, 0.09935158491134644, 0.24457557499408722, -0.23985044658184052, -0.42389729619026184, 0.20626790821552277, -0.37723517417907715, -0.018213054165244102, -0.12990885972976685, 0.28917956352233887, -0.011798170395195484, 0.02350972220301628, 0.4050452709197998, 0.2082248479127884, -0.038268715143203735, 0.1657474786043167, 0.006139111239463091, 0.1452464759349823, -0.1453455686569214, -0.1424797922372818, 0.3069654405117035, -0.4098164439201355, 0.044784560799598694, -0.051053643226623535, 0.11806374788284302, -0.22750891745090485, 0.27168962359428406, -0.12480702996253967, 0.2558090388774872, 0.33159685134887695, 0.04410508647561073, 0.02106464095413685, 0.32154563069343567, -0.3293038606643677, 0.08267831057310104, 0.0903819277882576, -0.3780522346496582, -0.31639301776885986, -0.3874795436859131, 0.11810330301523209, -0.10294214636087418, 0.18664491176605225, -0.05749768763780594, 0.21724216639995575, 0.27810946106910706, -0.05714264512062073, -0.201096773147583, -0.11065411567687988, -0.18585056066513062, -0.03785537928342819, 0.1521141082048416, 0.30633407831192017, -0.6002539992332458, -0.06598864495754242, 0.012887028977274895, 0.07142183184623718, 0.03956533595919609, 0.2045471966266632, -0.12238692492246628, 0.2315853238105774, -0.25091975927352905, -0.043465808033943176, 0.4511173963546753, -0.46366554498672485, -0.10991647839546204, 0.14813144505023956, -0.21532970666885376, -0.2287103682756424, 0.07463312894105911, 0.03384176269173622, 0.22253547608852386, -0.0991009995341301, 0.12691307067871094, -0.20189443230628967, -0.24165606498718262, -0.13329516351222992, -0.5337816476821899, -0.13666430115699768, 0.1663496494293213, 0.15934975445270538, 0.04028385132551193, -0.15968045592308044, 0.3117296099662781, -0.15527944266796112, 0.19819891452789307, -0.23356491327285767, 0.12880781292915344, 0.20157094299793243, 0.5085485577583313, 0.011327631771564484, 0.20918965339660645, 0.07296644896268845, 0.049768559634685516, -0.018917426466941833, 0.11370745301246643, 0.29604578018188477, 0.28321465849876404, -0.22715850174427032, -0.6101552248001099, -0.1515136957168579, -0.39498811960220337, -0.2961733341217041, 0.0455373078584671, 0.2094222903251648, -0.005608247593045235, -0.15019074082374573, -0.1561272144317627, 0.05763951689004898, -0.28165605664253235, -0.045244574546813965, -0.1621391326189041, 0.11828373372554779, -0.46838435530662537, -0.09593350440263748, -0.04143516346812248, 0.2109171748161316, 0.1238970085978508, -0.29328039288520813, -0.20266970992088318, 0.28409409523010254, -0.07858660817146301, 0.11340057104825974, 0.2676751911640167, -0.1711627095937729, 0.1256367564201355, -0.2628333270549774, -0.12474819272756577, 0.24119937419891357, -0.004376107361167669, -0.09414700418710709, -0.000721316784620285, 0.29879552125930786, 0.07733404636383057, -0.026408925652503967, -0.15785476565361023, -0.025580361485481262, 0.36913955211639404, 0.0641830563545227, -0.45029982924461365, -0.21118861436843872, 0.4502910375595093, 0.0776035338640213, 0.23541979491710663, -0.07578817009925842, -0.011225394904613495, -0.11706269532442093, 0.2720416784286499, -0.026541877537965775, -0.013515070080757141, 0.1339743584394455, -0.0656798854470253, -0.08812395483255386, -0.22592660784721375, 0.21130381524562836, 0.5536139607429504, -0.03230573982000351, -0.3667885363101959, 0.11140107363462448, -0.08018370717763901, 0.07361671328544617, 0.3923153877258301, 0.04979073256254196, 0.32881850004196167, 0.42987489700317383, 0.14602446556091309, 0.15391060709953308, -0.12489242851734161, -0.034215934574604034, 0.1550656408071518, 0.16147781908512115, -0.4618493318557739, 0.09281586110591888, 0.25254103541374207, -0.08440572023391724, -0.18739378452301025, 0.0291120707988739, -0.003993920981884003, -0.1205928847193718, -0.02675729990005493, -0.006828539073467255, -0.03939929977059364, 0.05775608867406845, 0.0378817580640316, 0.4178038239479065, -0.04000576213002205, -0.057842008769512177, -0.16309203207492828, -0.2805483937263489, -0.13855105638504028, 0.009640291333198547, 0.24575446546077728, 0.047190506011247635, 0.37120985984802246, -0.09533122181892395, 0.03798611834645271, 0.16951414942741394, -0.8122928738594055, 0.16204924881458282, -0.1624305099248886, 0.33255454897880554, 0.2126973569393158, 0.1463395357131958, -0.03339943289756775, -0.4560295045375824, 0.13037143647670746, -0.1389724463224411, -0.3719210624694824, 0.03183452785015106, -0.28338298201560974, -0.24534742534160614, -0.40614524483680725, -0.658130407333374, -0.45774704217910767, -0.22378942370414734, -0.03878668695688248, -0.04188050702214241, -0.03165779262781143, 0.3303651809692383, 0.20131000876426697, 0.018337547779083252, -0.0020780195482075214, -0.09471861273050308, -0.38260456919670105, -0.39198845624923706, 0.1716291904449463, -0.28867489099502563, -0.44506344199180603, 0.5822322964668274, -0.12679952383041382, 0.46472495794296265, -0.23223303258419037, -0.1883070319890976, -0.03831423819065094, 0.2883007228374481, -0.2719877362251282, 0.014720944687724113, -0.22730185091495514, 0.22734254598617554, 0.08222521841526031, -0.020683996379375458, -0.10518582165241241, -0.0801115334033966, 0.12949728965759277, 0.1432988941669464, 0.6597495079040527, -0.26032754778862, 0.620750367641449, 0.07383225858211517, 0.6519879698753357, 0.4904125928878784, -0.20312419533729553, 0.0434146411716938, 0.11196974664926529, 0.1783236712217331, 0.07328656315803528, -0.6554468870162964, 0.24967333674430847, -0.24334928393363953, -0.1244717463850975, 0.12378360331058502, -0.20783239603042603, -0.09165352582931519, -0.1650693267583847, 0.09341821074485779, -0.18634873628616333, -0.0843493640422821, 0.04713701456785202, -0.1760929673910141, 0.47823280096054077, -0.04729175567626953, -0.40684840083122253, -0.30674293637275696, 0.01843748800456524, -0.013868605718016624, 0.6800767183303833, 0.07236117124557495, 0.14486543834209442, -0.2221033126115799, 0.05869241803884506, -0.2170250117778778, 0.29661333560943604, 0.05358898639678955, 0.32220086455345154, -0.2958870530128479, 0.11520501226186752, -0.08047918975353241, -0.06052776798605919, 0.47179991006851196, -0.3276262581348419, -0.15852296352386475, 0.22274380922317505, 0.2808666527271271, -0.4760087728500366, -0.2685621678829193, -0.13294583559036255, 0.0004553617909550667, 0.8044523000717163, 0.6897721290588379, -0.1847260445356369, -0.01807982102036476, 0.4302017390727997, 0.06503124535083771, -0.17065492272377014, 0.014485488645732403, -0.5038630366325378, -0.44705885648727417, -0.6382928490638733, 0.1260007619857788, 0.1347171813249588, 0.2654588520526886, -0.1815102994441986, 0.036988724023103714, 0.15049676597118378, -0.2182484269142151, 0.17460837960243225, -0.07613347470760345, 0.17009392380714417, 0.32393956184387207, 0.17122423648834229, 0.14687255024909973, 0.2908005118370056, 0.1549258977174759, 0.4141250550746918, 0.12701931595802307, -0.33325520157814026, 0.2702401280403137, -0.2493111938238144, 0.44240421056747437, 0.23791904747486115, -0.05108339712023735, 0.059903159737586975, -0.11925838887691498, 0.03848744556307793, -0.027141902595758438, 0.3677681088447571, 0.11886614561080933, 0.20656660199165344, -0.1715579628944397, -0.041651591658592224, -0.2150212526321411, 0.05577242001891136, 0.03927686810493469, 0.0865335687994957, -0.27400338649749756, -0.17031815648078918, 0.49941760301589966, 0.30981001257896423, 1.2078946828842163, 0.2621935307979584, 0.01892387494444847, -0.06404852867126465, 0.0950804352760315, 0.0679561123251915, -0.163005530834198, -0.09015782177448273, -0.24772901833057404, -0.11902710795402527, 0.029804589226841927, -0.24389736354351044, 0.36806148290634155, 0.0013502426445484161, -0.4666912853717804, 0.1314278393983841, 0.24883367121219635, 0.2764129936695099, 0.008715424686670303, 0.3262563645839691, 0.08346728980541229, 0.03050229325890541, 0.020133953541517258, 0.03525933623313904, 0.051142603158950806, 0.45329442620277405, -0.10152675211429596, -0.203142911195755, -0.24839212000370026, -0.26387009024620056, -0.17301854491233826, -0.05171586573123932, -0.548492968082428, 0.1103127971291542, -0.4227959215641022, -0.24759455025196075, 0.4032626152038574, 0.09066040813922882, 0.7434258460998535, 0.159204363822937, -0.09390205144882202, 0.07495145499706268, 0.22859713435173035, -0.11364013701677322, -0.04019061475992203, -0.45444321632385254, 0.151611790060997, -0.258161723613739, -0.25052255392074585, 0.11216224730014801, -0.18287546932697296, -0.3826422691345215, -0.08821970224380493, -0.1163296103477478, 0.05645396560430527, -0.22560229897499084, -0.20774076879024506, -0.004411369562149048, -0.35870444774627686, -0.19388502836227417, 0.024740390479564667, 0.10132621228694916, -0.2203405797481537, 0.014376334846019745, -0.08751507103443146, -0.23710855841636658, 0.020499248057603836, 0.10415836423635483, 0.044833455234766006, -0.1842348277568817, 0.4960287809371948, -0.043785370886325836, 0.1282801330089569, -0.168938547372818, -0.0057511106133461, 0.04998549818992615, -0.4214220941066742, -0.008469671942293644, 0.06757519394159317, -0.35993582010269165, 0.0756203681230545, 0.6800436973571777, 0.3244215250015259, 0.14920136332511902, -0.10057495534420013, -0.3801153302192688, -0.6227691173553467, 0.14570467174053192, 0.135947123169899, 0.5184638500213623, 0.04472184181213379, 0.5042746663093567, 0.06354007124900818, 0.36061230301856995, -0.23257610201835632, -0.04492843151092529, -0.2179216891527176, 0.25447022914886475, 0.30972984433174133, -0.15466296672821045, 0.22109632194042206, -0.20500849187374115, -0.06137401610612869, 0.2719864249229431, 0.06295287609100342, -0.07335352897644043, 0.0633452981710434, 0.1433597058057785, 0.06334415078163147, 0.020052488893270493, 0.08508573472499847, -0.14896175265312195, 0.020144999027252197, 0.22498339414596558, -0.09693999588489532, -0.22676816582679749, -0.03772323578596115, 0.010416011326014996, -0.5166245102882385, -0.04259528964757919, 0.12997305393218994, -0.03101767599582672, 0.010097093880176544, 0.193811297416687, 0.03635060787200928, 0.23201420903205872, -0.030521810054779053, -0.14706994593143463, -0.22485242784023285, 0.11106008291244507, 0.12829703092575073, 0.3420809507369995, 0.061349861323833466, -0.22235561907291412, -0.253968209028244, 0.03836917504668236, 0.19821873307228088, 0.05353359878063202, -0.3098263442516327, 0.33463525772094727, 0.007274615578353405, 0.08124372363090515, -0.46839672327041626, 0.060502637177705765, -0.05796066299080849, -0.21677081286907196, 0.0703272670507431, 0.0837937444448471, 0.2900713384151459, 0.29933106899261475, 0.179427832365036, 0.3097776174545288, 0.0010575030464679003, -0.17683252692222595, 0.3863062262535095, 0.14396443963050842, -0.24820050597190857, 0.3132163882255554, 0.1953200399875641, -0.2581593990325928, -0.06905309110879898, 0.07003595679998398, 0.11181192845106125, 0.653566300868988, 0.2395453155040741, 0.09983742237091064, 0.20881910622119904, 0.024250715970993042, 0.6161617040634155, -0.09908512234687805, -0.2627771496772766, 0.314016729593277, 0.296441912651062, 0.26320725679397583, -0.23991690576076508, -0.5332372188568115, -0.2084633857011795, 0.18113593757152557, -0.0773124173283577, 0.12709413468837738, -0.344462126493454, -0.08279163390398026, -0.22764958441257477, -0.02993207424879074, 0.07986916601657867, 0.13848736882209778, -0.12321124970912933, 0.2656835913658142, -0.23808129131793976, 0.15272939205169678, -0.3775366544723511, 0.45798566937446594, 0.24978891015052795, -0.09688760340213776, 0.2700640559196472, 0.2918795943260193, -0.150167778134346, -0.028790432959794998, 0.45865026116371155, 0.5750492215156555, 0.21222005784511566, -0.048788491636514664, 0.15919144451618195, 0.005793871358036995, -0.16644223034381866, 0.16889609396457672, 0.21498803794384003, 0.1495368778705597, -0.30857884883880615, 0.30551332235336304, 0.0544290691614151, -0.10369791090488434, -0.03902869299054146, -0.04654661938548088, 0.04653649777173996, -0.3168080747127533, 0.1788366585969925, -0.14097139239311218, -0.10596181452274323, -0.3225325047969818, 0.19847619533538818, -0.3374004065990448, -0.12093110382556915, 0.43805259466171265, -0.004029844421893358, 0.21297383308410645, -0.35005491971969604, 0.056215330958366394, -0.13116204738616943, 0.29783374071121216, 0.3144509792327881, -0.10065566748380661, -0.5559874176979065, -0.14631059765815735, -0.6301536560058594, 0.10024355351924896, 0.0405442975461483, 0.16079144179821014, -0.2348162978887558, 0.15730111300945282, 0.2470574975013733, 0.004060991108417511, 0.14201247692108154, -0.3236861824989319, 0.37222418189048767, 0.08762973546981812, -0.01733841374516487, 0.1339510679244995, -0.041973114013671875, 0.1173328310251236, 0.12433266639709473, -0.24847453832626343, -0.0030252598226070404, 0.13960964977741241, 0.010902658104896545, -0.24397577345371246, -0.4264361262321472, 0.3342961370944977, -0.18368132412433624, 0.24301022291183472, 0.03737790137529373, 0.641464114189148, -0.15276937186717987, -0.11005795001983643, 0.03238159418106079, 0.01674650050699711, -0.026073560118675232, 0.41148102283477783, 0.312211275100708, 0.44649308919906616, -0.1498202681541443, -0.15641844272613525, -0.28491219878196716, -0.2965209186077118, -0.03771034628152847, -0.32573843002319336, -0.2533423602581024, 0.11986968666315079, -0.0033572837710380554, 0.11508093774318695, 0.1885308027267456, 0.40641525387763977, -0.048869140446186066, 0.2211763709783554, -0.3058047592639923, -0.21340510249137878, 0.2986816167831421, -0.08751431852579117, -0.1372811645269394, -0.10268865525722504, 0.3051568865776062, 0.05420972406864166, 0.2523352801799774, -0.4709693491458893, -0.13738586008548737, 0.14526517689228058, 0.10643783956766129, -0.1391100436449051, 0.2568088471889496, 0.29626503586769104, 0.14802896976470947, -0.054948173463344574, 0.4776042103767395, 0.024383509531617165, 0.09217440336942673, 0.14355874061584473, -0.20006626844406128 ]
https://github.com/huggingface/datasets/pull/2738
Sunbird AI Ugandan low resource language dataset
Hi @ak3ra , have you had a chance to take my comments into account ? Let me know if you have questions or if I can help :)
Multi-way parallel text corpus of 5 key Ugandan languages for the task of machine translation.
28
text: Sunbird AI Ugandan low resource language dataset Multi-way parallel text corpus of 5 key Ugandan languages for the task of machine translation. Hi @ak3ra , have you had a chance to take my comments into account ? Let me know if you have questions or if I can help :)
[ 0.15556426346302032, -0.12884734570980072, -0.2651810646057129, 0.17859017848968506, -0.1340792179107666, -0.18902556598186493, 0.27477070689201355, 0.1657743901014328, 0.030000127851963043, 0.20330727100372314, -0.3023204207420349, 0.0824827179312706, 0.29401662945747375, 0.05417053401470184, 0.1501195877790451, -0.5014785528182983, 0.10621466487646103, -0.06668658554553986, 0.21418972313404083, -0.11846636235713959, -0.23346564173698425, 0.3099123537540436, -0.07628224790096283, -0.1264086663722992, 0.08756456524133682, -0.31535181403160095, -0.5961744785308838, 0.061446234583854675, -0.2934901714324951, -0.11582605540752411, -0.23761047422885895, 0.22466911375522614, -0.1395990401506424, 0.19061729311943054, -0.0001013444343698211, -0.272320032119751, 0.1192869171500206, -0.05332920700311661, -0.3172735571861267, 0.2041759192943573, 0.34672901034355164, 0.09366805851459503, -0.2408885806798935, -0.30638521909713745, -0.07594015449285507, 0.3959096372127533, 0.18656735122203827, -0.41180840134620667, 0.238670215010643, 0.21044547855854034, 0.21284183859825134, 0.01511414349079132, 0.28243422508239746, -0.048429470509290695, -0.12237612158060074, -0.09296073019504547, -0.07342462241649628, 0.09167416393756866, 0.5148996114730835, 0.0283204298466444, -0.42670738697052, 0.26013922691345215, -0.16781170666217804, 0.11131548881530762, -0.1929551661014557, -0.16811348497867584, -0.32265326380729675, -0.34639447927474976, 0.07184009253978729, 0.19706451892852783, 0.4909391701221466, 0.019989915192127228, -0.16885431110858917, -0.01124044880270958, 0.006406091619282961, 0.1819038987159729, -0.1674187183380127, 0.23916217684745789, -0.0578174889087677, 0.1786845475435257, 0.007971874438226223, -0.09869322925806046, -0.18291635811328888, 0.09251122176647186, -0.004754357039928436, 0.23575915396213531, -0.08923614770174026, -0.13648122549057007, -0.07342380285263062, -0.05920219421386719, 0.17583991587162018, -0.1229022890329361, -0.029036130756139755, 0.18201491236686707, 0.059316977858543396, -0.1827848106622696, 0.3494066596031189, -0.047984614968299866, 0.39098888635635376, -0.2813165783882141, 0.2971575856208801, -0.04421767592430115, -0.02833469957113266, 0.11807192116975784, 0.1592661738395691, -0.18087463080883026, 0.06907420605421066, -0.2855285704135895, 0.09299343824386597, -0.2533970773220062, 0.21388742327690125, -0.20323172211647034, -0.053594689816236496, 0.11823742836713791, -0.2842423617839813, 0.05697472393512726, -0.26187360286712646, -0.22809059917926788, 0.08091474324464798, 0.06206436827778816, 0.08444658666849136, -0.0481799952685833, -0.2991373836994171, 0.009364932775497437, 0.034757982939481735, 0.12526214122772217, 0.13441616296768188, 0.21520181000232697, -0.15823061764240265, -0.4254550635814667, -0.0343153141438961, 0.130183607339859, -0.07888530939817429, 0.03008931316435337, 0.04883592203259468, 0.1675294190645218, 0.2249416559934616, -0.22006651759147644, 0.2902158200740814, -0.013860546052455902, -0.023442616686224937, -0.4517032504081726, -0.024014048278331757, -0.10602790117263794, 0.07250924408435822, 0.021591754630208015, 0.026638559997081757, 0.12653225660324097, -0.3294762969017029, 0.04310176894068718, -0.16778051853179932, -0.06207309663295746, -0.0911015123128891, 0.1840943545103073, -0.027125181630253792, -0.32877984642982483, 0.2182539403438568, 0.3624412417411804, 0.2240871787071228, 0.10572469234466553, 0.3119225800037384, 0.25591322779655457, -0.2926856279373169, -0.2045159637928009, -0.1344902366399765, 0.26276981830596924, -0.3722643256187439, -0.10564735531806946, -0.1396300196647644, -0.33936774730682373, 0.09051410853862762, 0.3017902076244354, 0.045594487339258194, 0.08396435528993607, 0.08216630667448044, 0.2036367505788803, -0.0360981747508049, -0.00801340863108635, -0.3233952522277832, 0.49169984459877014, -0.2719292640686035, -0.1768161803483963, 0.214961439371109, 0.21078184247016907, 0.17270903289318085, -0.24060776829719543, 1.0007904767990112, 0.46508514881134033, -0.07152725756168365, 0.13508614897727966, -0.36701247096061707, -0.32673725485801697, -0.39815521240234375, 0.3968949317932129, 0.19801156222820282, -0.24786603450775146, 0.27114859223365784, -0.07384617626667023, 0.3991643786430359, -0.009441453963518143, 0.0894349217414856, 0.3381972908973694, -0.20092974603176117, -0.12812083959579468, 0.18535134196281433, 0.08242231607437134, 0.23055702447891235, 0.023324407637119293, -0.015022357925772667, 0.3769855201244354, 0.10346312820911407, 0.07294373959302902, 0.09985589981079102, -0.1966484636068344, 0.09009657800197601, -0.053838301450014114, 0.24420201778411865, -0.09447517991065979, -0.30185991525650024, 0.29123905301094055, -0.12916091084480286, -0.08795619755983353, 0.03501070290803909, -0.33703505992889404, -0.3133602440357208, 0.11782568693161011, -0.20153272151947021, -0.011148319579660892, 0.38969287276268005, 0.1574229747056961, 0.06534551084041595, 0.1706726849079132, 0.06186830997467041, 0.07833802700042725, -0.4164273738861084, 0.4533732533454895, 0.2988908886909485, -0.05412463843822479, 0.04115955904126167, -0.24825619161128998, 0.46243035793304443, 0.353223979473114, 0.2041802704334259, -0.15648239850997925, 0.22735512256622314, 0.4518083333969116, 0.09833471477031708, -0.08073828369379044, 0.14034920930862427, -0.005762920714914799, 0.07927639037370682, -0.10002477467060089, -0.04358480125665665, 0.040138453245162964, 0.5591222047805786, 0.017596028745174408, -0.0613817498087883, 0.2569597363471985, -0.29257118701934814, 0.3533959686756134, 0.4317755103111267, -0.05465404689311981, 0.2427135407924652, 0.05757711082696915, -0.22594597935676575, -0.3098658621311188, -0.17191612720489502, -0.021147578954696655, 0.21122905611991882, 0.2934096157550812, 0.30456283688545227, -0.3214692771434784, 0.31410136818885803, -0.2995557487010956, 0.16619107127189636, 0.02488436922430992, 0.4937373995780945, 0.2583150565624237, 0.06567475944757462, -0.15444116294384003, -0.5630131959915161, -0.28141823410987854, 0.06217530369758606, 0.010022076778113842, 0.06656527519226074, -0.008771581575274467, 0.35894131660461426, -0.27608296275138855, -0.16182586550712585, 0.06461498886346817, -0.20070886611938477, -0.15816307067871094, 0.37374556064605713, -0.056335050612688065, 0.10033875703811646, -0.17144739627838135, -0.16885943710803986, 0.38472843170166016, -0.1924503594636917, 0.056348927319049835, -0.15220779180526733, -0.4181123375892639, -0.18372893333435059, 0.24521544575691223, -0.08975451439619064, -0.07127112150192261, 0.3441573977470398, 0.00828140415251255, -0.08755083382129669, -0.11934242397546768, 0.09733656793832779, 0.13932262361049652, -0.21357791125774384, 0.165018230676651, 0.028094492852687836, -0.022566355764865875, 0.036371275782585144, 0.04733042046427727, -0.08725713193416595, -0.07865941524505615, -0.18006280064582825, -0.04480966925621033, -0.04238156974315643, -0.1395931839942932, -0.04688410833477974, -0.27294081449508667, -0.1813872903585434, -0.2231893092393875, 0.30104172229766846, -0.33410802483558655, 0.31300508975982666, -0.2729012072086334, 0.04866403713822365, 0.1751081943511963, 0.1826210767030716, 0.2536923587322235, -0.15881268680095673, -0.6881032586097717, 0.012537769973278046, -0.054735735058784485, -0.3249216675758362, -0.3325391709804535, 0.004919407889246941, 0.12955191731452942, -0.07175131887197495, -0.002872772514820099, 0.09654045104980469, 0.06075961887836456, 0.010607395321130753, 0.15911269187927246, -0.07643448561429977, 0.21689900755882263, -0.033986445516347885, -0.2692791223526001, -0.11255768686532974, 0.1421695053577423, -0.1078154519200325, -0.11162202805280685, 0.406557559967041, 0.1150168851017952, 0.11231575906276703, 0.15059925615787506, 0.352567195892334, 0.10480035841464996, 0.38544702529907227, 0.1995500773191452, 0.36934971809387207, -0.23551277816295624, 0.0076675936579704285, -0.1798597127199173, 0.5025157928466797, -0.024854958057403564, -0.2867856025695801, 0.3204190135002136, 0.13513833284378052, -0.8468242287635803, -0.06223996356129646, -0.804111897945404, -0.5037124156951904, -0.16471374034881592, 0.2644938826560974, -0.005103331059217453, 0.3563082814216614, -0.26481905579566956, -0.30913859605789185, -0.062395576387643814, 0.05898051708936691, -0.04894816130399704, -0.06995245814323425, -0.044350288808345795, 0.028004862368106842, -0.20760229229927063, 0.024538546800613403, -0.8339078426361084, 0.07638447731733322, 0.06068166345357895, 0.038654059171676636, -0.3072316646575928, 0.15580865740776062, 0.03335077315568924, -0.2208370566368103, 0.41317814588546753, -0.27102378010749817, 0.12266115844249725, 0.15598277747631073, 0.1114068478345871, 0.09066165238618851, 0.09428942203521729, -0.47538405656814575, -0.08730541914701462, 0.2897043824195862, 0.026060085743665695, -0.1002844050526619, 0.08766957372426987, -0.03288277983665466, -0.19451838731765747, -0.21668365597724915, -0.12157876044511795, -0.19660495221614838, -0.4503910541534424, -0.21084435284137726, 0.09669540822505951, 0.21400383114814758, -0.05840122327208519, -0.013891395181417465, 0.09801031649112701, -0.0041211508214473724, 0.32951298356056213, 0.07263033837080002, -0.12574739754199982, -0.21428149938583374, -0.014814820140600204, -0.022978119552135468, 0.25680792331695557, -0.07963049411773682, 0.2576391398906708, 0.3068036735057831, 0.038787420839071274, 0.20379647612571716, -0.018175721168518066, -0.5706226825714111, 0.5910626649856567, 0.24863243103027344, 0.22598740458488464, 0.20936834812164307, 0.30561187863349915, -0.10433509945869446, 0.06377510726451874, -0.5479515194892883, 0.06710881739854813, 0.08817067742347717, -0.1848195642232895, -0.28748393058776855, 0.2605695128440857, 0.10273896157741547, -0.316667377948761, -0.14557313919067383, -0.27951717376708984, -0.15389734506607056, 0.23291783034801483, 0.42787352204322815, 0.9749282002449036, -0.11759185791015625, 0.369132936000824, -0.1928456425666809, -0.20048950612545013, -0.05696728453040123, 0.0965612381696701, 0.24263890087604523, -0.3089044690132141, -0.1051451712846756, -0.25812438130378723, 0.22019484639167786, 0.03504350408911705, 0.09718933701515198, -0.2498875856399536, -0.02957218326628208, 0.23815681040287018, -0.4015671908855438, 0.12900952994823456, 0.0032522454857826233, -0.22790171205997467, -0.3247266709804535, -0.11571186780929565, 0.22586765885353088, -0.012079678475856781, 0.031772684305906296, -0.02007933147251606, -0.11861716210842133, 0.1416521519422531, -0.2271919697523117, -0.26732951402664185, 0.20685327053070068, 0.12615063786506653, 0.04149173945188522, -0.134450301527977, 0.006851330399513245, 0.20546764135360718, 0.07542642951011658, 0.3934580087661743, -0.14710475504398346, 0.03939848020672798, 0.11031864583492279, 0.24617266654968262, -0.2807433307170868, 0.04430827498435974, -0.03177080303430557, 0.1742025911808014, -0.3212073743343353, -0.43301090598106384, 0.0556967593729496, 0.016879796981811523, 0.1960965096950531, -0.6873777508735657, 0.05168815702199936, -0.095903679728508, 0.2532208263874054, 0.005139477550983429, 0.248057022690773, -0.33252841234207153, -0.16682873666286469, 0.195575550198555, 0.2069413959980011, -0.009677888825535774, 0.030435878783464432, -0.16114966571331024, -0.11270564049482346, -0.10780499875545502, 0.5225178003311157, 0.5376488566398621, 0.3048476278781891, 0.27510595321655273, 0.26821425557136536, -0.128583163022995, -0.40978312492370605, -0.04332434758543968, 0.28860968351364136, -0.09945029020309448, 0.06264180690050125, -0.07499426603317261, -0.26890742778778076, 0.06514162570238113, 0.22840248048305511, 0.08024591207504272, 0.04293609783053398, -0.03986871987581253, -0.15489429235458374, -0.008955196477472782, 0.2508516311645508, -0.07570300996303558, 0.04818045347929001, 0.15516018867492676, -0.23594151437282562, 0.24171891808509827, 0.23745936155319214, -0.4249579608440399, 0.11692669987678528, -0.20006835460662842, 0.10521476715803146, -0.12965252995491028, -0.14294981956481934, -0.07948466390371323, -0.04225794970989227, 0.19900602102279663, -0.11529019474983215, -0.1283436268568039, -0.34235283732414246, -0.15879972279071808, 0.07718196511268616, 0.021480195224285126, 0.3881196975708008, 0.3532296121120453, -0.31071341037750244, -0.01807369291782379, 0.08523446321487427, -0.012771083042025566, 0.2804242670536041, 0.09077884256839752, 0.19217954576015472, -0.10413485765457153, 0.16584938764572144, -0.011037919670343399, -0.11037588119506836, -0.018834054470062256, -0.11984869837760925, -0.03905376419425011, -0.16995298862457275, 0.07828661054372787, -0.11230026185512543, 0.15454696118831635, 0.22384697198867798, 0.15069609880447388, 0.3059494197368622, 0.059116072952747345, 0.07934790849685669, -0.03148210793733597, -0.12565220892429352, -0.0021553728729486465, 0.11195977032184601, -0.014388957060873508, -0.2193848192691803, 0.11616646498441696, 0.26618582010269165, -0.22039909660816193, -0.27676641941070557, -0.33035820722579956, -0.4977450668811798, 0.11484217643737793, 0.23866623640060425, 0.12044759094715118, -0.08063846826553345, 0.09307733178138733, -0.22590625286102295, 0.21178889274597168, -0.07987436652183533, -0.1527484804391861, 0.2368868887424469, 0.1715579777956009, -0.015140283852815628, 0.27787789702415466, 0.0551203228533268, 0.2698332369327545, 0.031850554049015045, 0.022733252495527267, 0.2979946434497833, 0.20918002724647522, 0.4400046765804291, 0.03811175376176834, 0.14766313135623932, 0.14895513653755188, 0.053517259657382965, -0.08475445210933685, 0.48905131220817566, 0.26930180191993713, 0.27994629740715027, 0.1654171347618103, -0.04209551960229874, -0.04215756058692932, 0.24542079865932465, -0.032661668956279755, -0.1763894408941269, -0.5486577749252319, -0.23540890216827393, -0.16294537484645844, -0.027970755472779274, -0.08613832294940948, 0.19845516979694366, 0.6097191572189331, 0.0117865689098835, 0.22827327251434326, -0.41886642575263977, 0.1841515302658081, 0.11948183178901672, 0.07350891828536987, -0.3416646718978882, 0.22879697382450104, 0.024960733950138092, -0.12884028255939484, -0.07130350172519684, 0.5964674949645996, 0.07478136569261551, -0.01752787083387375, -0.04988076165318489, 0.00017186254262924194, -0.0998912900686264, -0.0791623666882515, 0.00492781400680542, -0.11589924991130829, 0.5965702533721924, 0.2688561975955963, 0.18738321959972382, 0.11831526458263397, -0.11571386456489563, 0.3078942596912384, 0.16910669207572937, -0.34421098232269287, 0.1480560451745987, 0.36665260791778564, -0.05591702461242676, -0.2160291075706482, -0.20873020589351654, 0.05451451987028122, -0.7152185440063477, 0.005029881373047829, 0.16696737706661224, -0.08546537905931473, 0.12130116671323776, 0.07214051485061646, 0.13075454533100128, 0.06527332961559296, 0.43310216069221497, 0.5708411335945129, 0.09135176986455917, -0.1016649529337883, -0.19350743293762207, -0.16545021533966064, 0.1065000593662262, -0.29441818594932556, 0.36799684166908264, -0.16802670061588287, 0.010644961148500443, 0.6227431297302246, 0.22802512347698212, -0.10429401695728302, -0.06292969733476639, -0.2776586711406708, 0.25718915462493896, -0.36719030141830444, 0.09266316890716553, 0.4118339419364929, 0.6033046841621399, -0.114552341401577, 0.029286697506904602, -0.022643249481916428, -0.03763977810740471, 0.2571192979812622, -0.223148375749588, -0.044190749526023865, -0.10097452998161316, -0.33495306968688965, 0.03145177289843559, -0.10646781325340271, 0.014432869851589203, -0.3499853312969208, -0.1666540801525116, 0.1388915479183197, 0.22322946786880493, -0.07347089797258377, 0.10306411981582642, 0.4586328864097595, 0.2583670914173126, -0.12495686858892441, 0.0949506014585495, 0.20658034086227417, 0.012486962601542473, -0.18558761477470398, 0.10740847885608673, -0.2498328983783722, 0.21721187233924866, 0.09535718709230423, -0.02597217448055744, -0.2659548223018646, 0.4885856807231903, -0.07896572351455688, -0.24305501580238342, -0.3687759041786194, -0.1581565886735916, 0.1746962070465088, -0.10175805538892746, -0.3260383605957031, -0.1925758719444275, 0.13847872614860535, 0.3064928650856018, 0.3406394124031067, -0.22477003931999207, 0.07152578979730606, 0.2033504992723465, 0.17625963687896729, -0.2382965087890625, 0.2900232672691345, 0.14473232626914978, -0.31168416142463684, -0.14982473850250244, -0.0026683583855628967, 0.08549512922763824, -0.17035271227359772, -0.17852596938610077, -0.16778679192066193 ]
https://github.com/huggingface/datasets/pull/2731
Adding to_tf_dataset method
This seems to be working reasonably well in testing, and performance is way better. `tf.py_function` has been dropped for an input generator, but I moved as much of the code as possible outside the generator to allow TF to compile it correctly. I also avoid `tf.RaggedTensor` at all costs, and do the shuffle in the dataset followed by accessing sequential chunks, instead of shuffling an index tensor. The combination of all of these gives us a more flexible data loader as well as a ~20X boost in performance compared to the first solution.
Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is.
93
text: Adding to_tf_dataset method Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is. This seems to be working reasonably well in testing, and performance is way better. `tf.py_function` has been dropped for an input generator, but I moved as much of the code as possible outside the generator to allow TF to compile it correctly. I also avoid `tf.RaggedTensor` at all costs, and do the shuffle in the dataset followed by accessing sequential chunks, instead of shuffling an index tensor. The combination of all of these gives us a more flexible data loader as well as a ~20X boost in performance compared to the first solution.
[ 0.06054079905152321, 0.02919045090675354, 0.0588563047349453, -0.027987249195575714, 0.21174710988998413, 0.24869483709335327, 0.24981026351451874, 0.4185902178287506, -0.37060391902923584, 0.17527535557746887, -0.23437069356441498, 0.4408150613307953, -0.1958129107952118, 0.07096420228481293, 0.26656100153923035, -0.28741568326950073, 0.058493684977293015, 0.14690972864627838, -0.1240854561328888, -0.09553883224725723, -0.009431097656488419, -0.03754451870918274, -0.23310357332229614, -0.0011568516492843628, -0.10798805952072144, -0.16377802193164825, -0.10626675933599472, 0.06537728011608124, -0.256460577249527, 0.052718646824359894, 0.1807200014591217, 0.3101588785648346, -0.1050928384065628, 0.4904780089855194, -0.00011077392264269292, -0.012483816593885422, -0.11248655617237091, -0.08275631070137024, -0.20369547605514526, 0.14605693519115448, 0.14082705974578857, -0.1075887605547905, -0.025086835026741028, -0.036245979368686676, 0.018894199281930923, -0.39700445532798767, -0.21432732045650482, 0.05913174897432327, 0.21421515941619873, 0.23010475933551788, 0.1799839437007904, 0.28008198738098145, 0.05532455071806908, 0.1541639119386673, 0.29499268531799316, -0.031095080077648163, -0.2892346680164337, -0.11611014604568481, 0.22582927346229553, -0.09719832241535187, -0.029409348964691162, 0.15863053500652313, 0.04572322219610214, -0.17109733819961548, 0.489185631275177, 0.058845154941082, -0.013413608074188232, -0.2666853964328766, -0.1731089949607849, 0.3171955347061157, 0.5699377655982971, -0.32223033905029297, -0.3255878984928131, -0.3047455847263336, 0.17542192339897156, -0.30325713753700256, -0.24764162302017212, -0.3120235204696655, -0.2220786064863205, 0.06786024570465088, 0.1160288080573082, -0.07472994178533554, -0.25989121198654175, -0.010814301669597626, 0.004408687353134155, 0.7154616117477417, 0.16387207806110382, 0.03739749267697334, 0.011342506855726242, -0.06527701765298843, 0.6256262063980103, -0.1947154402732849, 0.10043838620185852, 0.41038817167282104, -0.3422260284423828, -0.3130491375923157, 0.02931562438607216, -0.3614490330219269, 0.07788896560668945, 0.26047879457473755, 0.09631627798080444, 0.2394050657749176, -0.11790896207094193, -0.015574358403682709, 0.167802631855011, 0.18963366746902466, -0.300482839345932, 0.24471627175807953, -0.13247744739055634, -0.3604312837123871, 0.06943321228027344, 0.07420547306537628, -0.15302658081054688, -0.23943699896335602, 0.12350454926490784, -0.31698569655418396, -0.1834627091884613, -0.03508245199918747, -0.146230548620224, -0.0928407683968544, -0.038721904158592224, -0.151016965508461, 0.031293585896492004, 0.023535504937171936, 0.08632898330688477, 0.5324169993400574, 0.23105598986148834, -0.08627639710903168, -0.16807740926742554, -0.07042401283979416, -0.21362169086933136, -0.05007169023156166, -0.17630812525749207, -0.0874938890337944, -0.07142435014247894, 0.21248960494995117, -0.3395747244358063, 0.11796314269304276, 0.4511527419090271, 0.2871929705142975, 0.09479589015245438, 0.024877026677131653, 0.2971659004688263, 0.18391455709934235, -0.3053200840950012, -0.06732214242219925, 0.27325233817100525, 0.07209253311157227, -0.24931710958480835, 0.26072221994400024, -0.345581978559494, -0.35608282685279846, -0.2872680127620697, 0.20117925107479095, 0.1900988519191742, -0.35548117756843567, -0.357667475938797, 0.39460882544517517, 0.06869173049926758, -0.18296101689338684, 0.13848581910133362, -0.3666425347328186, 0.0752573162317276, -0.2665821611881256, 0.3182166516780853, -0.004639163613319397, -0.638056218624115, -0.034823521971702576, 0.11211507767438889, -0.11799460649490356, 0.34358152747154236, 0.13408707082271576, -0.31332269310951233, 0.34620407223701477, -0.0066105155274271965, -0.00505945086479187, 0.6871849298477173, 0.028472114354372025, -0.023059600964188576, 0.16652090847492218, -0.3210883140563965, 0.2830391824245453, 0.08101776242256165, -0.010332236997783184, -0.0074288249015808105, -0.2502431869506836, 0.4583233892917633, 0.3072761297225952, -0.3753999173641205, -0.03240133076906204, -0.2479260116815567, -0.11333142220973969, 0.15745660662651062, 0.15673334896564484, -0.0695166289806366, -0.08925270289182663, -0.21290582418441772, -0.2780272364616394, 0.3252914249897003, -0.106450155377388, 0.0880386158823967, 0.013988351449370384, 0.32157188653945923, 0.22554470598697662, 0.11876612156629562, 0.21813461184501648, -0.29191872477531433, 0.08917839080095291, 0.45316869020462036, 0.26002922654151917, -0.14882011711597443, -0.2855722904205322, 0.030719541013240814, 0.02318347804248333, -0.0668792873620987, -0.1066020280122757, 0.053930751979351044, 0.04078960418701172, -0.011479126289486885, -0.1259385645389557, -0.4545769691467285, -0.2624092698097229, -0.3418252468109131, 0.05169466510415077, -0.11032095551490784, 0.2105993777513504, 0.24701443314552307, -0.044151585549116135, -0.2279817909002304, 0.2967585325241089, -0.26927974820137024, -0.006332652643322945, -0.11105432361364365, 0.3909635841846466, -0.06689382344484329, 0.1567973792552948, -0.1279904842376709, 0.34987854957580566, 0.16471602022647858, 0.008217338472604752, -0.2081146389245987, -0.35919973254203796, -0.03534788638353348, -0.2456110119819641, 0.06910530477762222, 0.4616472125053406, -0.29818883538246155, 0.16041764616966248, -0.045403383672237396, -0.22004087269306183, -0.04497286304831505, 0.2600822448730469, -0.23603959381580353, 0.22210660576820374, -0.12722279131412506, -0.14762713015079498, 0.0576905719935894, -0.031596094369888306, -0.36306440830230713, 0.4188649356365204, 0.47812092304229736, -0.13498584926128387, -0.4034138321876526, 0.09059053659439087, 0.025942057371139526, -0.012830128893256187, 0.19622871279716492, 0.17878654599189758, 0.28500741720199585, 0.290829598903656, 0.13312362134456635, 0.008359204977750778, 0.03455529361963272, -0.159819558262825, 0.24949124455451965, 0.13251090049743652, 0.20195114612579346, 0.015613656491041183, -0.1540815830230713, 0.32673946022987366, -0.2231629490852356, 0.015229817479848862, 0.06218373775482178, 0.24930082261562347, -0.32539981603622437, -0.05893746763467789, -0.11020778119564056, -0.1062208041548729, -0.10873447358608246, -0.18184861540794373, 0.23527957499027252, -0.46124204993247986, 0.03753100708127022, 0.056549131870269775, -0.3642902374267578, 0.27859917283058167, -0.4655701816082001, 0.5610020160675049, 0.07023969292640686, -0.39895185828208923, -0.07564517855644226, -0.02941238135099411, -0.17288577556610107, 0.12338049709796906, 0.2851693630218506, -0.08802834898233414, 0.42734062671661377, 0.1712188422679901, 0.15721049904823303, 0.08967696130275726, -0.5435457825660706, 0.23632198572158813, -0.4118305444717407, -0.17610183358192444, 0.12333206087350845, 0.19361469149589539, -0.23273257911205292, -0.4422076344490051, -0.0912078320980072, -0.3501571714878082, -0.11758972704410553, 0.022010862827301025, 0.09532347321510315, -0.09390939027070999, -0.23726685345172882, -0.3583710491657257, -0.189661905169487, -0.39342638850212097, -0.14384053647518158, -0.12530437111854553, 0.001766745001077652, 0.043340109288692474, -0.02322603017091751, 0.38612180948257446, 0.15828841924667358, -0.08408959954977036, -0.14285136759281158, -0.3000163435935974, 0.3910048007965088, -0.18424278497695923, -0.045005444437265396, 0.06511983275413513, 0.02355082333087921, 0.26937419176101685, 0.20839233696460724, -0.26779019832611084, -0.10142316669225693, -0.03981158137321472, 0.29784008860588074, -0.21123945713043213, 0.2619098424911499, 0.29900431632995605, 0.11427087336778641, -0.020392078906297684, -0.11228204518556595, 0.13870808482170105, -0.04205561429262161, -0.017905771732330322, 0.07796610891819, -0.0012071672827005386, 0.38915911316871643, 0.1367022693157196, 1.0893518924713135, -0.139350026845932, -0.09170594811439514, -0.05699285864830017, -0.18348878622055054, 0.2940904200077057, -0.07974382489919662, -0.1280006468296051, 0.1706128865480423, -0.05455666780471802, -0.09315803647041321, 0.18769250810146332, -0.11858188360929489, -0.13789013028144836, -0.11753945797681808, 0.5570900440216064, 0.11862092465162277, -0.3151227533817291, 0.41333091259002686, -0.3224150538444519, -0.005809523165225983, -0.1564609706401825, 0.10503669828176498, -0.21642492711544037, -0.10858083516359329, 0.24527856707572937, -0.003368362784385681, 0.2425876259803772, -0.01157254260033369, -0.30318117141723633, 0.10102330148220062, -0.5577103495597839, 0.22330740094184875, 0.13546635210514069, 0.08125445991754532, 0.11079740524291992, -0.4307064414024353, -0.04813717305660248, 0.2079276591539383, 0.6652712225914001, -0.23245690762996674, -0.4301227927207947, 0.26557597517967224, 0.17461618781089783, -0.21771688759326935, -0.046180542558431625, -0.23990432918071747, -0.2178449034690857, -0.00033587776124477386, 0.41798070073127747, -0.4089309573173523, -0.30487221479415894, 0.1423235684633255, -0.09860920906066895, -0.029751406982541084, -0.0015088515356183052, -0.1260898858308792, -0.23877280950546265, 0.004055935889482498, 0.1487760841846466, 0.33469662070274353, 0.18390288949012756, -0.1747378706932068, 0.017262723296880722, 0.027546385303139687, 0.05956614762544632, 0.21700003743171692, 0.05417885258793831, 0.08976707607507706, 0.4914678931236267, -0.009790366515517235, 0.13895991444587708, -0.031200475990772247, 0.4569251835346222, 0.33337801694869995, -0.429078608751297, -0.4122599959373474, 0.07322674989700317, 0.10148358345031738, 0.47835513949394226, 0.5106192827224731, -0.0009194673039019108, 0.2740423083305359, -0.13230322301387787, 0.1922185719013214, -0.09550832211971283, 0.17241226136684418, 0.10499946027994156, -0.17273227870464325, -0.3629099726676941, -0.5999261736869812, 0.39078468084335327, 0.04921487346291542, 0.0537242591381073, 0.7452016472816467, 0.28505295515060425, -0.3180711269378662, 0.2117689847946167, 0.3079119026660919, 1.3528262376785278, 0.11039510369300842, 0.3880680203437805, 0.6100228428840637, -0.09561970829963684, 0.39799657464027405, -0.18498468399047852, 0.11396577209234238, -0.10159053653478622, -0.23734761774539948, -0.004370812326669693, -0.1320551037788391, -0.22645926475524902, -0.037253737449645996, -0.12372812628746033, 0.03391718491911888, -0.22384634613990784, 0.28806766867637634, 0.24804182350635529, 0.23823902010917664, 0.053073108196258545, -0.544890820980072, 0.06428135931491852, 0.13062530755996704, -0.0029252320528030396, -0.16802693903446198, -0.14507943391799927, -0.2919221520423889, -0.14751078188419342, 0.21565796434879303, -0.05175203084945679, 0.06015293300151825, -0.37452322244644165, 0.13298311829566956, 0.042323436588048935, -0.24004657566547394, 0.1473860889673233, -0.116652712225914, 0.10652564465999603, -0.07659268379211426, -0.1295788437128067, 0.18505509197711945, 0.22616294026374817, 0.3574219346046448, -0.0021455876994878054, -0.19088679552078247, 0.6849835515022278, 0.06843429803848267, 0.11958872526884079, 0.1655711829662323, -0.20135101675987244, -0.5158344507217407, -0.3389350175857544, -0.2515326142311096, 0.40014976263046265, -0.23282365500926971, -0.2369539737701416, 0.3556819558143616, -0.14561666548252106, -0.12647776305675507, 0.1599980890750885, 0.027228813618421555, -0.3241962790489197, 0.14132478833198547, -0.03122803196310997, -0.06899283826351166, 0.14093054831027985, 0.04108667001128197, 0.04390622302889824, -0.0931675136089325, 0.48180416226387024, 0.15720735490322113, -0.11153008788824081, -0.06768378615379333, 0.2178897261619568, 0.6434326767921448, -0.16416102647781372, 0.06921084225177765, -0.1764882355928421, -0.0004896968603134155, 0.1470077633857727, 0.24639317393302917, 0.29739993810653687, 0.1826077103614807, -0.20761661231517792, 0.11081796884536743, -0.3897227346897125, 0.22698287665843964, 0.2353690266609192, 0.3918748199939728, -0.2878609895706177, 0.3708052933216095, -0.15894873440265656, 0.11683722585439682, -0.37741854786872864, -0.22603058815002441, 0.1447223275899887, -0.01171731948852539, -0.12791506946086884, 0.113287054002285, 0.02487415447831154, -0.1366710662841797, 0.05002173036336899, 0.21548745036125183, -0.21509268879890442, -0.16914698481559753, -0.08160530775785446, 0.1095723956823349, 0.19449999928474426, -0.12730392813682556, 0.06182603910565376, -0.1444631814956665, -0.44621190428733826, -0.15542803704738617, 0.20677028596401215, -0.2269154191017151, -0.2022327333688736, -0.20062169432640076, 0.10106588900089264, 0.0953030213713646, -0.12295665591955185, -0.03046729415655136, 0.2238999903202057, 0.0946291908621788, 0.20280805230140686, 0.12795478105545044, -0.05098646506667137, -0.1363440304994583, 0.2682799994945526, 0.3759520649909973, 0.28215116262435913, -0.1090405061841011, 0.14953401684761047, -0.28620320558547974, -0.20167727768421173, -0.1086546927690506, 0.215123251080513, 0.332353413105011, -0.19521421194076538, -0.17721492052078247, 0.17760148644447327, 0.21381643414497375, -0.106229268014431, 0.07534610480070114, -0.2395104169845581, 0.09431172907352448, -0.10061876475811005, 0.040603749454021454, -0.15611229836940765, 0.21274623274803162, -0.23531736433506012, 0.09072864800691605, 0.02387801557779312, -0.5064123272895813, 0.2839685380458832, 0.48599880933761597, -0.30922389030456543, 0.12024709582328796, 0.11062370240688324, 0.037618812173604965, -0.17576050758361816, -0.11764979362487793, 0.14733512699604034, 0.437264621257782, 0.019417719915509224, -0.1275322139263153, -0.016422614455223083, -0.4086996614933014, -0.002078995108604431, 0.4738287031650543, -0.052909523248672485, 0.47935864329338074, 0.22976119816303253, 0.32232213020324707, 0.008798081427812576, -0.5454001426696777, 0.24397361278533936, 0.1286933422088623, -0.1689910590648651, 0.17544671893119812, -0.23704156279563904, -0.23588508367538452, -0.22108179330825806, -0.06237036734819412, -0.08968380093574524, -0.1510705053806305, -0.13957753777503967, 0.06943555921316147, 0.024615995585918427, -0.07325991988182068, -0.1760045886039734, -0.005186948925256729, 0.5921249389648438, -0.018866203725337982, 0.11289411783218384, -0.06707480549812317, -0.25169357657432556, -0.038419272750616074, -0.10925010591745377, 0.0879172682762146, 0.24437721073627472, 0.13721385598182678, -0.024558361619710922, 0.16356080770492554, -0.02275017462670803, 0.29749438166618347, 0.19928443431854248, 0.22232545912265778, -0.3514649569988251, 0.22072483599185944, 0.08716721832752228, -0.18325971066951752, -0.11367015540599823, -0.00031433627009391785, 0.07428833097219467, -0.3976303040981293, 0.29537126421928406, 0.16297981142997742, -0.29647356271743774, -0.005259685218334198, 0.1679621785879135, -0.07088849693536758, -0.03374543786048889, 0.3716066777706146, -0.029224054887890816, -0.03054695576429367, -0.0329049788415432, 0.09068359434604645, 0.23696571588516235, 0.5361778140068054, 0.44896870851516724, -0.03874238580465317, -0.09005898237228394, -0.1839016079902649, -0.7628077268600464, 0.08984120190143585, 0.05432038754224777, -0.0648273378610611, 0.35236385464668274, 0.09950964152812958, 0.6011587381362915, 0.11108113825321198, 0.10801587998867035, -0.2759287655353546, 0.10121866315603256, -0.09163644909858704, -0.28909438848495483, -0.05151024088263512, -0.1515250951051712, 0.10332324355840683, 0.04372298717498779, -0.3152236044406891, 0.0623154379427433, 0.05401276424527168, 0.07100018113851547, -0.020703688263893127, 0.16170962154865265, 0.18954016268253326, 0.11332492530345917, 0.37872618436813354, 0.0009639021009206772, 0.09688978642225266, 0.023807864636182785, 0.04783037304878235, 0.07929641008377075, -0.08533696830272675, -0.5086183547973633, 0.1664333939552307, -0.12885500490665436, 0.15803790092468262, 0.1651412695646286, -0.3663302958011627, -0.22566328942775726, -0.08082696050405502, 0.10495336353778839, -0.16634535789489746, -0.3936389088630676, 0.16435381770133972, 0.05106915533542633, -0.03367643803358078, 0.2482464462518692, 0.5268227458000183, 0.0700940191745758, 0.03352849930524826, -0.2985708713531494, -0.21861974895000458, 0.4524613320827484, -0.29861295223236084, -0.4499680995941162, 0.05685451254248619, -0.03443095088005066, 0.20973613858222961, 0.1666155755519867, -0.573506236076355, -0.12473925948143005, 0.1012314036488533, -0.21135929226875305, -0.08629082143306732, 0.5700986385345459, 0.16666510701179504, 0.1881157010793686, -0.14557991921901703, 0.27068138122558594, -0.030529163777828217, -0.00015345215797424316, -0.0738629698753357, -0.33109283447265625 ]
https://github.com/huggingface/datasets/pull/2731
Adding to_tf_dataset method
I made a change to the `TFFormatter` in this PR that will need some changes to the tests, so I wanted to ping @lhoestq and anyone else before I made those changes. The key problem is that up until now the `TFFormatter` always returns `RaggedTensor`, created using the very slow `tf.ragged.constant` function. This is a big performance penalty, but it's also (imo) surprising for users - `RaggedTensor` handles tensors where one dimension has variable length. This is a good choice for tokenized datasets with variable sequence length, but it's an odd choice when the non-batch dimensions are constant, such as in image datasets, or in datasets where all samples are padded to the same length (e.g. for TPU training). The change I made was to try to return standard `Tensor` objects instead of `RaggedTensor` when all the samples in the batch had the same shape, and if that was not the case to fall back to fast `RaggedTensor` creation with `tf.ragged.stack`, and only falling back to the very slow `tf.ragged.constant` function as a last resort. I think this will match user expectations in most cases and greatly improve performance, but it's a (very slightly) breaking change, so any feedback is welcome!
Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is.
201
text: Adding to_tf_dataset method Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is. I made a change to the `TFFormatter` in this PR that will need some changes to the tests, so I wanted to ping @lhoestq and anyone else before I made those changes. The key problem is that up until now the `TFFormatter` always returns `RaggedTensor`, created using the very slow `tf.ragged.constant` function. This is a big performance penalty, but it's also (imo) surprising for users - `RaggedTensor` handles tensors where one dimension has variable length. This is a good choice for tokenized datasets with variable sequence length, but it's an odd choice when the non-batch dimensions are constant, such as in image datasets, or in datasets where all samples are padded to the same length (e.g. for TPU training). The change I made was to try to return standard `Tensor` objects instead of `RaggedTensor` when all the samples in the batch had the same shape, and if that was not the case to fall back to fast `RaggedTensor` creation with `tf.ragged.stack`, and only falling back to the very slow `tf.ragged.constant` function as a last resort. I think this will match user expectations in most cases and greatly improve performance, but it's a (very slightly) breaking change, so any feedback is welcome!
[ -0.10064224898815155, 0.02646656334400177, 0.057528022676706314, 0.04458662122488022, 0.07063332200050354, 0.053207628428936005, 0.16651466488838196, 0.29868489503860474, -0.41511842608451843, 0.24789537489414215, -0.09493155777454376, 0.4697418510913849, -0.2825903594493866, -0.20358480513095856, 0.0730661079287529, -0.2258528769016266, -0.09535873681306839, 0.13213981688022614, -0.09917844831943512, -0.06424682587385178, -0.043021343648433685, 0.027354691177606583, -0.2128271758556366, 0.046626653522253036, -0.362917423248291, -0.2025432288646698, 0.0077751632779836655, -0.017258234322071075, -0.3074934482574463, 0.05801799148321152, 0.14505179226398468, 0.36545810103416443, -0.17762748897075653, 0.5940099358558655, -0.00011928823369089514, -0.010437030345201492, -0.040292225778102875, -0.04156792536377907, -0.10559013485908508, 0.1687352955341339, 0.3838343024253845, -0.10348314046859741, -0.10407959669828415, -0.055206235498189926, -0.002201635390520096, -0.27631741762161255, -0.15252472460269928, -0.017140120267868042, -0.08559519052505493, 0.4254554808139801, 0.08188942074775696, 0.4009833335876465, -0.0866723284125328, 0.15400055050849915, 0.3689962327480316, -0.03953015059232712, -0.24878205358982086, -0.05429239943623543, 0.26454848051071167, -0.13641802966594696, -0.1647716462612152, 0.14041513204574585, 0.01670241169631481, 0.0030242986977100372, 0.4076002538204193, 0.10315448045730591, 0.05898337438702583, -0.10507930815219879, -0.04127952456474304, 0.42895594239234924, 0.4033368229866028, -0.2513689696788788, -0.1957239955663681, -0.3156440258026123, 0.05081485956907272, -0.34533876180648804, -0.13214758038520813, -0.5001866221427917, -0.31800225377082825, 0.05129443481564522, 0.0014743315987288952, 0.0022217256482690573, -0.2198127955198288, 0.2003774344921112, -0.3797328472137451, 0.7339524030685425, 0.2144981473684311, 0.03322736173868179, 0.0017882436513900757, -0.0767398551106453, 0.5566586256027222, -0.14020276069641113, 0.11761854588985443, 0.21165218949317932, -0.20772986114025116, -0.2770348787307739, -0.0005641207098960876, -0.5069631338119507, 0.2457270622253418, 0.1786981225013733, -0.15866728127002716, 0.1691613495349884, -0.2867409288883209, -0.125046044588089, 0.09699012339115143, 0.24088416993618011, -0.19037389755249023, 0.40976956486701965, -0.0038228556513786316, -0.18629802763462067, 0.08853553235530853, 0.16360720992088318, -0.03609439730644226, -0.2310900241136551, 0.027240946888923645, -0.16277194023132324, 0.00888843834400177, -0.05877607315778732, -0.31173592805862427, -0.026295378804206848, -0.059400781989097595, -0.21114623546600342, -0.02031886950135231, -0.046576015651226044, -0.07023374736309052, 0.4469273090362549, 0.21561242640018463, -0.17318487167358398, -0.13220921158790588, -0.2001240849494934, -0.19215986132621765, -0.143880695104599, -0.1749235987663269, -0.1190486028790474, -0.06705912947654724, 0.2402973771095276, -0.20422793924808502, 0.011988726444542408, 0.621138870716095, 0.334103524684906, -0.04250257834792137, -0.140814870595932, 0.33806025981903076, 0.13941416144371033, -0.46713608503341675, -0.07356777042150497, 0.32494205236434937, -0.014134574681520462, -0.2604638636112213, 0.27585431933403015, -0.30758699774742126, -0.44286516308784485, -0.34726959466934204, 0.08499778807163239, 0.09759804606437683, -0.2324267327785492, -0.1892491579055786, 0.3865261971950531, 0.11033540964126587, -0.17450299859046936, 0.22836712002754211, -0.5799345374107361, -0.15250183641910553, -0.1036943569779396, 0.2761724889278412, 0.012380614876747131, -0.6396744251251221, -0.05442889779806137, 0.1013840064406395, -0.08944152295589447, 0.4606088101863861, 0.20015661418437958, -0.22881034016609192, 0.28159934282302856, -0.213591530919075, -0.0031677335500717163, 0.5196917057037354, 0.18775619566440582, -0.11970208585262299, 0.08875162899494171, -0.4766708016395569, 0.497791588306427, 0.1947535276412964, -0.11050062626600266, 0.16381219029426575, -0.29039669036865234, 0.6777808666229248, 0.12744292616844177, -0.33211958408355713, -0.10281708836555481, -0.2830312252044678, -0.14452669024467468, 0.24367812275886536, 0.1262044608592987, 0.09449112415313721, -0.15326401591300964, -0.29101699590682983, -0.2551867663860321, 0.301900714635849, -0.07947123050689697, -0.04044362157583237, -0.1116308718919754, 0.11600449681282043, 0.2668125629425049, 0.1223309338092804, 0.016331199556589127, -0.32610824704170227, 0.10257049649953842, 0.4248066842556, 0.30501994490623474, 0.14509010314941406, -0.3026198148727417, -0.05526982247829437, 0.07856222987174988, 0.07076958566904068, -0.0004445984959602356, -0.020430831238627434, 0.16199147701263428, -0.032507140189409256, -0.05111146718263626, -0.3342704176902771, -0.2143896371126175, -0.46281418204307556, 0.11380496621131897, -0.06037807837128639, 0.08444152027368546, 0.25907719135284424, -0.11528991162776947, -0.1620880365371704, 0.315813809633255, -0.21912750601768494, 0.011405431665480137, -0.12603285908699036, 0.34986037015914917, -0.04978734627366066, 0.052152927964925766, -0.27193713188171387, 0.3971763849258423, 0.1939147710800171, 0.07388155162334442, -0.16186517477035522, -0.16464142501354218, -0.20064865052700043, -0.179593026638031, 0.14721179008483887, 0.5045831203460693, -0.20041659474372864, 0.1773076057434082, -0.23856261372566223, -0.1803421825170517, -0.1316814422607422, 0.26893430948257446, -0.31215929985046387, 0.17861497402191162, 0.14839716255664825, -0.19633574783802032, 0.04014896973967552, -0.07110518962144852, -0.32143449783325195, 0.41886764764785767, 0.3706251084804535, -0.2088300883769989, -0.31140604615211487, 0.2538454532623291, 0.08958190679550171, 0.031920019537210464, 0.07981685549020767, 0.11896739900112152, 0.435699462890625, 0.2549017071723938, 0.11363793909549713, -0.11077790707349777, -0.10382337123155594, -0.23557010293006897, 0.32770776748657227, 0.2041543871164322, 0.032209884375333786, 0.14403271675109863, -0.06650276482105255, 0.22993135452270508, -0.2544538080692291, 0.0010763369500637054, -0.04215940460562706, 0.28668761253356934, -0.35146188735961914, -0.13877367973327637, -0.22976288199424744, -0.12947207689285278, -0.07863476127386093, -0.04829825088381767, 0.14341232180595398, -0.38842493295669556, 0.08908318728208542, 0.04288551211357117, -0.33675697445869446, 0.3291298747062683, -0.33563777804374695, 0.6037977337837219, 0.09276432543992996, -0.2851204574108124, -0.19893506169319153, -0.015353314578533173, -0.33506760001182556, 0.04448390379548073, 0.19593948125839233, -0.3038235306739807, 0.4565221965312958, 0.12697075307369232, 0.187498539686203, -0.06428929418325424, -0.5785357356071472, 0.2336014360189438, -0.3466782569885254, -0.0665927305817604, 0.36531689763069153, 0.1988804191350937, -0.06177651137113571, -0.27892473340034485, -0.106910839676857, -0.2686377167701721, -0.07467744499444962, -0.07469356060028076, 0.01661751978099346, 0.025783132761716843, -0.1378658413887024, -0.3006558418273926, -0.10689336806535721, -0.3019047975540161, -0.2332971841096878, -0.20956481993198395, -0.02747330814599991, 0.030760161578655243, -0.05760568007826805, 0.3693991005420685, 0.13032200932502747, -0.021511072292923927, -0.22963544726371765, -0.36856868863105774, 0.43150967359542847, 0.033856164664030075, 0.029599590227007866, -0.04222574084997177, 0.0029041189700365067, 0.015782924368977547, 0.25985634326934814, -0.3901260495185852, -0.32154861092567444, 0.011687939055263996, 0.4328846335411072, -0.18900762498378754, 0.0780716985464096, 0.40004709362983704, 0.031334955245256424, 0.01822062022984028, -0.0761885792016983, -0.0600135512650013, -0.0630609467625618, -0.09392877668142319, 0.09259239584207535, 0.049773041158914566, 0.43421831727027893, 0.2858060896396637, 1.0622957944869995, -0.20055292546749115, -0.17900033295154572, -0.263212114572525, -0.2779536545276642, 0.21955066919326782, -0.016680344939231873, -0.10366998612880707, 0.332181841135025, 0.04498499631881714, -0.1370142698287964, 0.2491045445203781, -0.27512460947036743, -0.05114114284515381, 0.1068844348192215, 0.5411468148231506, 0.3013782203197479, -0.3367609679698944, 0.44768014550209045, -0.3978731632232666, -0.011766158044338226, -0.09917598962783813, 0.20058712363243103, -0.3264349400997162, -0.12699167430400848, 0.3299328088760376, 0.1029909998178482, 0.16246753931045532, -0.05393664911389351, -0.3193017542362213, 0.11321491003036499, -0.4651021957397461, 0.3206782042980194, 0.25206342339515686, 0.20324116945266724, 0.024896498769521713, -0.3107356131076813, -0.0029544085264205933, 0.21739991009235382, 0.7891318798065186, -0.18092170357704163, -0.43858659267425537, 0.23765015602111816, 0.07269305735826492, -0.26230281591415405, -0.10953481495380402, -0.2112581729888916, -0.21776548027992249, 0.05349123105406761, 0.4704466164112091, -0.47154316306114197, -0.37659379839897156, 0.3588428795337677, -0.07639818638563156, -0.09729662537574768, 0.13172399997711182, -0.11710993945598602, -0.2432045042514801, 0.10099905729293823, 0.23152929544448853, 0.2887352705001831, 0.23827439546585083, -0.05567412078380585, 0.13442346453666687, -0.034127481281757355, 0.09030145406723022, 0.27251213788986206, 0.03281659260392189, 0.1365469992160797, 0.35929256677627563, -0.06426461040973663, 0.2308816909790039, 0.0065912120044231415, 0.4108332395553589, 0.1372988373041153, -0.4881274998188019, -0.5411856174468994, 0.17936158180236816, 0.10935072600841522, 0.48960378766059875, 0.6308850049972534, -0.07853654772043228, 0.1554526388645172, -0.3294066786766052, 0.4119734764099121, -0.14099520444869995, 0.5161412954330444, 0.20927149057388306, -0.1535583883523941, -0.11190056800842285, -0.43738314509391785, 0.26809775829315186, 0.18843601644039154, 0.06971901655197144, 0.8429101705551147, 0.12912073731422424, -0.4091973602771759, 0.07451177388429642, 0.44088658690452576, 1.2960957288742065, 0.1914726048707962, 0.33540159463882446, 0.6250519752502441, -0.23862716555595398, 0.23541803658008575, -0.3094825744628906, 0.0750906839966774, 0.04202007129788399, -0.2816687226295471, -0.009958341717720032, -0.08175455033779144, -0.14193609356880188, -0.17154251039028168, -0.08380306512117386, 0.11594689637422562, -0.036994822323322296, 0.21983426809310913, 0.36831268668174744, 0.18902166187763214, 0.07614157348871231, -0.45031115412712097, 0.3248763978481293, 0.024001993238925934, -0.14782632887363434, -0.05319825932383537, -0.10057010501623154, -0.14025995135307312, -0.19277799129486084, 0.08591406047344208, -0.0982479453086853, -0.20008254051208496, -0.6167808771133423, -0.011791378259658813, 0.21482977271080017, -0.3331972062587738, -0.011167772114276886, -0.11461304128170013, 0.17234058678150177, -0.15872740745544434, -0.0695018619298935, 0.11324137449264526, 0.15624524652957916, 0.3466361463069916, 0.13853248953819275, -0.39947256445884705, 0.6160105466842651, 0.05669698119163513, 0.17833241820335388, 0.1748327612876892, -0.23034273087978363, -0.358994722366333, -0.4133901298046112, -0.26575571298599243, 0.5558246970176697, -0.15671567618846893, -0.11045275628566742, 0.2556799650192261, 0.043665144592523575, -0.16713057458400726, 0.06505247950553894, 0.02121255174279213, -0.24746400117874146, 0.09458478540182114, -0.07265934348106384, -0.1969374418258667, 0.05998450890183449, 0.009647853672504425, 0.01943962648510933, -0.0714043527841568, 0.5110540390014648, 0.043908145278692245, -0.10189374536275864, -0.013690223917365074, 0.2938096821308136, 0.5193533301353455, -0.28086191415786743, 0.17368289828300476, -0.1997603327035904, -0.14614611864089966, 0.09837618470191956, 0.37636253237724304, 0.3788147568702698, 0.1314905434846878, -0.2709098160266876, 0.10913629829883575, -0.2811264097690582, 0.08049817383289337, 0.22017274796962738, 0.5156142115592957, -0.1919856071472168, 0.4516960382461548, -0.20087438821792603, 0.07133147865533829, -0.29110366106033325, -0.19080904126167297, 0.17075082659721375, 0.07451026141643524, -0.19348254799842834, 0.08958294987678528, -0.04352312162518501, -0.032075185328722, -0.04884793609380722, 0.22806061804294586, -0.15721718966960907, -0.07787816226482391, -0.1981181502342224, 0.1707245260477066, 0.12761622667312622, -0.04342738538980484, 0.06207958236336708, -0.03222598880529404, -0.3589164614677429, -0.07478638738393784, 0.15391941368579865, -0.177463561296463, -0.22148649394512177, -0.08461780846118927, 0.10124900937080383, 0.0651315227150917, 0.02078806236386299, 0.05417377129197121, 0.287858784198761, 0.2783360779285431, 0.19597232341766357, 0.26319029927253723, -0.11607808619737625, -0.17464138567447662, 0.3920764625072479, 0.48559385538101196, 0.21351288259029388, -0.0009641312062740326, 0.13932016491889954, -0.24488066136837006, -0.23455561697483063, -0.04350152984261513, -0.027005014941096306, 0.29663658142089844, -0.2566724717617035, -0.4232199788093567, 0.17252621054649353, 0.10259804129600525, -0.09823308885097504, -0.005822467617690563, -0.05440550670027733, 0.13869252800941467, 0.013114120811223984, 0.10293681919574738, -0.2640339732170105, 0.15292145311832428, -0.056581199169158936, 0.10219119489192963, 0.08442558348178864, -0.4616333246231079, 0.17411306500434875, 0.4846734404563904, -0.25921830534935, 0.14299404621124268, 0.17993706464767456, 0.02723158709704876, -0.04571325331926346, -0.20207856595516205, 0.33781111240386963, 0.5678354501724243, -0.017367713153362274, -0.06014369800686836, 0.0792234018445015, -0.28821760416030884, 0.04928840696811676, 0.5200344324111938, -0.06080392003059387, 0.38051360845565796, 0.23555737733840942, 0.3039405941963196, -0.07746898382902145, -0.5105940103530884, 0.13067789375782013, 0.008881323039531708, -0.0837874487042427, 0.1099872887134552, -0.4509839415550232, -0.1816018670797348, -0.1386951506137848, -0.06479545682668686, -0.08715401589870453, 0.025045566260814667, -0.15766772627830505, 0.042717836797237396, -0.026015952229499817, 0.09580902010202408, -0.43626242876052856, -0.13183704018592834, 0.42232710123062134, -0.03892669826745987, 0.16908946633338928, -0.013600490987300873, -0.20671075582504272, 0.02697877213358879, 0.07845181971788406, 0.08533936738967896, 0.16612669825553894, 0.07249560952186584, -0.21794083714485168, 0.0922047346830368, -0.012484441511332989, 0.25197064876556396, 0.30695849657058716, 0.13460741937160492, -0.30883464217185974, 0.2665635049343109, 0.025777677074074745, -0.16377419233322144, -0.019420292228460312, -0.04218428209424019, -0.1687057763338089, -0.39121630787849426, 0.3522421419620514, 0.29835382103919983, -0.31181150674819946, 0.04672187194228172, -0.01027555763721466, 0.01790229231119156, 0.06255128234624863, 0.3428264856338501, -0.10526274144649506, 0.05487808585166931, 0.07461538165807724, 0.0563066303730011, 0.1890300214290619, 0.43625426292419434, 0.46396711468696594, -0.1580042839050293, -0.17611417174339294, -0.27678611874580383, -0.7376071214675903, 0.1485748291015625, 0.009736713021993637, -0.11824852973222733, 0.33835840225219727, 0.039345212280750275, 0.7088199257850647, 0.11546974629163742, 0.21509045362472534, -0.37254807353019714, 0.1238686814904213, -0.036070503294467926, -0.3033449053764343, -0.20265892148017883, -0.01820114254951477, 0.08788185566663742, 0.07899303734302521, -0.3365967273712158, 0.12199580669403076, 0.09461380541324615, 0.022321008145809174, -0.015406083315610886, 0.18942761421203613, 0.17554625868797302, 0.1537266969680786, 0.26668062806129456, 0.1364734023809433, 0.027356795966625214, 0.07805097103118896, 0.06265798956155777, 0.03637206181883812, 0.14175330102443695, -0.48821938037872314, 0.12838691473007202, -0.10054352879524231, 0.21916869282722473, 0.028487278148531914, -0.34944409132003784, -0.21202227473258972, 0.06261630356311798, 0.2846633195877075, -0.20794066786766052, -0.2674664258956909, 0.17712628841400146, -0.016832958906888962, -0.035119060426950455, 0.2632901966571808, 0.5685133337974548, 0.20790743827819824, 0.15332897007465363, -0.27951115369796753, -0.16908733546733856, 0.5920219421386719, -0.3767789602279663, -0.45235365629196167, -0.02085747942328453, 0.07966826111078262, 0.16444674134254456, 0.09550100564956665, -0.4797825515270233, -0.2751852869987488, 0.1974465250968933, -0.19098246097564697, -0.16219380497932434, 0.4677896797657013, 0.2589174509048462, 0.22964854538440704, -0.1895086020231247, 0.507368266582489, 0.005167385563254356, -0.08401846140623093, -0.048633359372615814, -0.2827863097190857 ]
https://github.com/huggingface/datasets/pull/2731
Adding to_tf_dataset method
Also I really can't emphasize enough how slow `tf.ragged.constant` is, it's bad enough to create a data pipeline bottleneck in more or less any training setup: ![image](https://user-images.githubusercontent.com/12866554/131121785-4fbe942a-1ca4-4af6-a9da-cd6d5ea67b30.png)
Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is.
27
text: Adding to_tf_dataset method Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is. Also I really can't emphasize enough how slow `tf.ragged.constant` is, it's bad enough to create a data pipeline bottleneck in more or less any training setup: ![image](https://user-images.githubusercontent.com/12866554/131121785-4fbe942a-1ca4-4af6-a9da-cd6d5ea67b30.png)
[ 0.02912551537156105, 0.07608659565448761, 0.0564286895096302, -0.027758419513702393, 0.1919950544834137, 0.2536901831626892, 0.1429906189441681, 0.33125561475753784, -0.4689963459968567, 0.04665040969848633, -0.20532408356666565, 0.43873661756515503, -0.21819917857646942, 0.03560921549797058, 0.2214566022157669, -0.1584458202123642, 0.03621730953454971, 0.09411727637052536, -0.10505270957946777, -0.13355931639671326, -0.03786531463265419, 0.056849509477615356, -0.21526797115802765, 0.047091469168663025, -0.21722467243671417, -0.25332778692245483, -0.08357813209295273, 0.09712864458560944, -0.2909036874771118, 0.07562843710184097, 0.08715952932834625, 0.4276182949542999, -0.18592533469200134, 0.37013664841651917, -0.00011632757377810776, -0.09303554147481918, -0.11123894155025482, -0.05832178145647049, -0.22354243695735931, 0.2135201245546341, 0.10793758183717728, -0.12191084027290344, -0.06935098022222519, -0.059388503432273865, 0.06647070497274399, -0.3116391897201538, -0.2461596578359604, 0.028938889503479004, 0.20062196254730225, 0.2314537763595581, 0.13911107182502747, 0.2404262125492096, 0.030807655304670334, 0.12008082866668701, 0.33265069127082825, -0.0298328697681427, -0.23957957327365875, -0.10852077603340149, 0.22852438688278198, -0.10493456572294235, 0.01501385122537613, 0.1550973355770111, 0.08490157127380371, -0.20888842642307281, 0.49029994010925293, 0.006757834926247597, -0.10773874074220657, -0.26647496223449707, -0.07553356140851974, 0.27730974555015564, 0.5041080713272095, -0.32775887846946716, -0.28893017768859863, -0.3083097040653229, 0.18876849114894867, -0.3849431574344635, -0.2547532916069031, -0.3059719502925873, -0.17918932437896729, 0.09836127609014511, -0.02996138110756874, -0.16161251068115234, -0.2076140195131302, 0.09162352979183197, -0.003756944090127945, 0.7213095426559448, 0.17002719640731812, 0.0762028694152832, -0.06598402559757233, -0.08366253226995468, 0.5064570307731628, -0.16303633153438568, 0.024638567119836807, 0.4371200203895569, -0.25720831751823425, -0.32485508918762207, -0.024169474840164185, -0.28192493319511414, 0.18045848608016968, 0.3872419595718384, -0.11663845181465149, 0.16875141859054565, -0.09762733429670334, -0.03140508383512497, 0.18312272429466248, 0.18517538905143738, -0.2104317843914032, 0.3467865586280823, -0.06376244127750397, -0.4128292500972748, 0.11798661947250366, 0.09503860771656036, -0.16880548000335693, -0.2021077573299408, 0.09170237183570862, -0.3355751633644104, -0.09358353167772293, -0.047702837735414505, -0.2881092429161072, 0.0360337495803833, -0.03975565731525421, -0.10740962624549866, 0.005030302330851555, 0.03826119378209114, 0.1386846899986267, 0.35667380690574646, 0.2511357069015503, -0.06096594035625458, -0.08392766863107681, -0.09808050096035004, -0.18139594793319702, -0.07027021050453186, -0.14201903343200684, -0.048616476356983185, -0.14732055366039276, 0.300964891910553, -0.2551753520965576, 0.211971253156662, 0.39998048543930054, 0.3158141076564789, -0.014641511254012585, -0.018164154142141342, 0.24922138452529907, 0.23250214755535126, -0.3713090121746063, -0.0547710657119751, 0.2906858026981354, 0.017542414367198944, -0.24908477067947388, 0.2719913125038147, -0.3097058832645416, -0.40393397212028503, -0.34965813159942627, 0.14930781722068787, 0.2427583783864975, -0.3210941553115845, -0.3065565824508667, 0.46308690309524536, 0.13517338037490845, -0.12808744609355927, 0.20936380326747894, -0.37145984172821045, 0.0874561071395874, -0.20751750469207764, 0.2969904839992523, 0.056647591292858124, -0.6847533583641052, -0.06672611087560654, 0.11500836908817291, -0.09587366878986359, 0.39388832449913025, 0.15479137003421783, -0.2763373553752899, 0.35057997703552246, -0.03826460987329483, -0.0013278275728225708, 0.7392059564590454, 0.17477531731128693, 0.06962089240550995, 0.19285635650157928, -0.38604795932769775, 0.25590407848358154, 0.03432338684797287, -0.03992113471031189, -0.035487398505210876, -0.31262505054473877, 0.5982822179794312, 0.2586360275745392, -0.41279295086860657, -0.13692514598369598, -0.23927249014377594, -0.09444691985845566, 0.05810330808162689, 0.10741180181503296, -0.031926874071359634, -0.08010616153478622, -0.20514124631881714, -0.21951615810394287, 0.283324658870697, -0.0018806643784046173, 0.059366099536418915, 0.04851916432380676, 0.293947696685791, 0.2976000905036926, 0.08969848603010178, 0.14665931463241577, -0.2601185441017151, 0.06391574442386627, 0.5263261795043945, 0.16898423433303833, -0.06568755209445953, -0.3557823896408081, -0.028058206662535667, 0.060256361961364746, -0.04493196681141853, -0.07089146971702576, 0.016741741448640823, 0.06483500450849533, -0.03172261267900467, -0.07827933132648468, -0.456024169921875, -0.2100943922996521, -0.43296152353286743, 0.08897458761930466, -0.01755320280790329, 0.10463650524616241, 0.22043070197105408, -0.08758934587240219, -0.18141166865825653, 0.3446291983127594, -0.2112603783607483, -0.018993202596902847, -0.11010849475860596, 0.41992369294166565, -0.11229511350393295, 0.14276421070098877, -0.07830586284399033, 0.36663705110549927, 0.15130363404750824, 0.13918796181678772, -0.19767899811267853, -0.43589505553245544, -0.06210624799132347, -0.26260095834732056, 0.08107006549835205, 0.4648929834365845, -0.30083635449409485, 0.13253892958164215, -0.0866968035697937, -0.1924276351928711, -0.08705642819404602, 0.2594256103038788, -0.2705235481262207, 0.21181979775428772, -0.04596466198563576, -0.1647457331418991, 0.12878260016441345, -0.14775028824806213, -0.32222020626068115, 0.47522082924842834, 0.3800993859767914, -0.15208710730075836, -0.35560429096221924, 0.11285160481929779, 0.11767295002937317, 0.08385064452886581, 0.18095311522483826, 0.11670742928981781, 0.3994947671890259, 0.3067435920238495, 0.09210316091775894, 0.008309705182909966, 0.027606941759586334, -0.1848701536655426, 0.2639774680137634, 0.20820686221122742, 0.1355152130126953, 0.056770674884319305, -0.10355570167303085, 0.3220841586589813, -0.266737699508667, -0.001006394624710083, -0.004614636301994324, 0.24594153463840485, -0.3410833477973938, -0.04504219815135002, -0.08951768279075623, -0.09508422762155533, -0.10094787925481796, -0.2438395768404007, 0.2351447343826294, -0.5047594904899597, 0.09796011447906494, -0.009304225444793701, -0.3762093484401703, 0.33850082755088806, -0.4372434616088867, 0.6357907056808472, 0.07390966266393661, -0.29802826046943665, -0.12073326110839844, -0.020138829946517944, -0.2100825011730194, 0.07107828557491302, 0.30547088384628296, -0.1640690416097641, 0.549690842628479, 0.16465847194194794, 0.14617383480072021, 0.0379631444811821, -0.6025488972663879, 0.20017915964126587, -0.4591049551963806, -0.06354987621307373, 0.15764456987380981, 0.22607876360416412, -0.17850041389465332, -0.36632323265075684, -0.1306297779083252, -0.2615624964237213, -0.12005069106817245, -0.1385822296142578, 0.11020480841398239, -0.2021646946668625, -0.18267600238323212, -0.32848092913627625, -0.14154034852981567, -0.39237841963768005, -0.12470394372940063, -0.17196829617023468, -0.09389275312423706, -0.01758471131324768, -0.10781461000442505, 0.40222761034965515, 0.22759465873241425, -0.04261229932308197, -0.2007475197315216, -0.2841985523700714, 0.37955740094184875, -0.13840845227241516, -0.013067077845335007, 0.15771092474460602, 0.03905276209115982, 0.1878444105386734, 0.1371145248413086, -0.2796776592731476, -0.07713553309440613, -0.10790014266967773, 0.3334417939186096, -0.2305305302143097, 0.20633170008659363, 0.3227575421333313, 0.045764222741127014, -0.020079776644706726, -0.08501678705215454, 0.045753102749586105, -0.014915838837623596, -0.11073612421751022, 0.027791619300842285, -0.025068826973438263, 0.46898120641708374, 0.14364010095596313, 1.1267085075378418, -0.06567566096782684, -0.005722176283597946, -0.12032675743103027, -0.1827588826417923, 0.36174845695495605, 0.035197872668504715, -0.15752927958965302, 0.24070051312446594, -0.028303131461143494, -0.11847290396690369, 0.19129836559295654, -0.10076065361499786, -0.10369797050952911, -0.03316837549209595, 0.5534970760345459, 0.11100012809038162, -0.2949412167072296, 0.36772841215133667, -0.4079250991344452, -0.05704546719789505, -0.1388092339038849, 0.06989512592554092, -0.14669521152973175, -0.09904099255800247, 0.221761092543602, 0.08470650762319565, 0.16826093196868896, 0.00658950163051486, -0.28482675552368164, 0.04630964249372482, -0.5050222277641296, 0.2759357690811157, 0.08450405299663544, 0.11312620341777802, -0.021358754485845566, -0.3667697608470917, 0.017300762236118317, 0.24821530282497406, 0.6915543079376221, -0.23564626276493073, -0.4967338442802429, 0.2832393944263458, 0.21261075139045715, -0.2083704024553299, -0.08612386882305145, -0.21800349652767181, -0.23379074037075043, 0.12423822283744812, 0.42565053701400757, -0.4619086682796478, -0.24235428869724274, 0.29843562841415405, -0.13393966853618622, -0.03145871311426163, 0.014196493662893772, -0.07623617351055145, -0.2860094904899597, -0.048536259680986404, 0.24157032370567322, 0.3984886109828949, 0.1521260291337967, -0.15838254988193512, -0.010059624910354614, -0.0026268325746059418, 0.05175390839576721, 0.22074633836746216, -0.009976143017411232, 0.010960910469293594, 0.48055553436279297, -0.044783711433410645, 0.14611691236495972, -0.04118189960718155, 0.44693368673324585, 0.3310279846191406, -0.41697824001312256, -0.38661783933639526, 0.08871504664421082, 0.08342573046684265, 0.5376684069633484, 0.6626179218292236, 0.016938723623752594, 0.25316691398620605, -0.18867582082748413, 0.30050769448280334, -0.06402438133955002, 0.28593429923057556, 0.1645141839981079, -0.21627120673656464, -0.31399470567703247, -0.5078133940696716, 0.40652889013290405, 0.10370314121246338, 0.06346523761749268, 0.8078296184539795, 0.2537366449832916, -0.3791690170764923, 0.08722559362649918, 0.3067241311073303, 1.4476401805877686, 0.21230337023735046, 0.3521142899990082, 0.559561550617218, -0.17717397212982178, 0.27114444971084595, -0.25927281379699707, 0.014063827693462372, -0.09438443183898926, -0.13407984375953674, -0.0063882190734148026, -0.08113402128219604, -0.1590675711631775, -0.1278301179409027, -0.1278051882982254, 0.02772165648639202, -0.20332564413547516, 0.3234212398529053, 0.2640765607357025, 0.14789073169231415, -0.03240901976823807, -0.4726329743862152, 0.15383179485797882, 0.09825587272644043, -0.0022382810711860657, -0.1229521632194519, -0.19469547271728516, -0.23416383564472198, -0.130801722407341, 0.1569446623325348, -0.14003579318523407, -0.04222666844725609, -0.3916272521018982, 0.1516561508178711, 0.06555823981761932, -0.3214072585105896, 0.09113414585590363, -0.15134264528751373, 0.1757073700428009, -0.0826902687549591, -0.08449697494506836, 0.14149951934814453, 0.24721068143844604, 0.2774195671081543, -0.03125973790884018, -0.23019038140773773, 0.5978279709815979, 0.04463665187358856, 0.23757964372634888, 0.16868093609809875, -0.19094796478748322, -0.3857690095901489, -0.505728006362915, -0.25522565841674805, 0.5380768775939941, -0.23144665360450745, -0.2576427757740021, 0.3661001920700073, -0.07212769985198975, -0.17948698997497559, 0.11682908236980438, 0.008108388632535934, -0.29814839363098145, 0.09009271115064621, -0.067707359790802, -0.026167478412389755, 0.1209154725074768, 0.04902778938412666, -0.027887269854545593, -0.12647536396980286, 0.48403090238571167, 0.057483818382024765, -0.15767338871955872, -0.03567415848374367, 0.406345009803772, 0.6269906163215637, -0.16035132110118866, 0.08036058396100998, -0.14303776621818542, 0.0030974596738815308, 0.10979053378105164, 0.3170942962169647, 0.3214486241340637, 0.07795090228319168, -0.18066152930259705, 0.05524527281522751, -0.3228927552700043, 0.2306872010231018, 0.1800873726606369, 0.4464721083641052, -0.26717618107795715, 0.37603166699409485, -0.16056707501411438, 0.19676007330417633, -0.3330407738685608, -0.2546572685241699, 0.05434095114469528, -0.023456599563360214, -0.11857689917087555, 0.14803148806095123, -0.04571910947561264, -0.1037425845861435, -0.011827576905488968, 0.1974416971206665, -0.15009386837482452, -0.11111582070589066, -0.08696463704109192, 0.13955888152122498, 0.18330255150794983, -0.017825355753302574, 0.09089533984661102, -0.1354348063468933, -0.3891852796077728, -0.10284628719091415, 0.2461090385913849, -0.2718684673309326, -0.16662734746932983, -0.19286666810512543, 0.15033476054668427, 0.08840974420309067, -0.09478196501731873, -0.046535469591617584, 0.2661622166633606, 0.12995681166648865, 0.15274277329444885, 0.09393659979104996, -0.059020645916461945, -0.17066454887390137, 0.3455798625946045, 0.40502941608428955, 0.30528974533081055, -0.07811945676803589, 0.09556896239519119, -0.3592755198478699, -0.1892523467540741, -0.06321234256029129, 0.14658993482589722, 0.3730725944042206, -0.2818514108657837, -0.24095119535923004, 0.194026917219162, 0.15739768743515015, -0.13154105842113495, 0.054066359996795654, -0.29671844840049744, 0.11921916157007217, -0.12031137943267822, 0.059440113604068756, -0.237076073884964, 0.1649612933397293, -0.22551746666431427, 0.1547955572605133, -0.01184878870844841, -0.5805917382240295, 0.22880864143371582, 0.46164509654045105, -0.2723327875137329, 0.13173756003379822, 0.1887480914592743, 0.14520958065986633, -0.17363199591636658, -0.12910686433315277, 0.18759627640247345, 0.46509554982185364, 0.029972469434142113, -0.0683133602142334, 0.029755666851997375, -0.4307667315006256, 0.0013703890144824982, 0.5010690689086914, -0.022248968482017517, 0.39429235458374023, 0.1865488588809967, 0.2840764820575714, 0.048124365508556366, -0.6412551403045654, 0.2515101432800293, 0.14807146787643433, -0.17778491973876953, 0.20016832649707794, -0.2630887031555176, -0.24805274605751038, -0.1723918616771698, -0.09032870829105377, -0.11981940269470215, -0.13813289999961853, -0.13146260380744934, 0.03480086103081703, 0.051901184022426605, -0.10237989574670792, -0.21086814999580383, -0.08625025302171707, 0.5481250286102295, -0.059783224016427994, 0.14306581020355225, -0.06079888343811035, -0.1966373324394226, -0.05287718400359154, -0.048124223947525024, 0.16210773587226868, 0.25708484649658203, 0.17320020496845245, -0.05181140452623367, 0.16945740580558777, -0.08384346961975098, 0.33203279972076416, 0.28872790932655334, 0.21057410538196564, -0.3365446627140045, 0.16391108930110931, 0.045683033764362335, -0.19885383546352386, -0.06361664831638336, -0.020866025239229202, 0.004775357432663441, -0.42201822996139526, 0.49137431383132935, 0.19067765772342682, -0.38494884967803955, 0.042538873851299286, 0.0826542004942894, -0.05084598436951637, 0.05539523810148239, 0.3488011360168457, -0.034164804965257645, -0.026745762676000595, 0.007983887568116188, 0.07119938731193542, 0.24476169049739838, 0.4468441605567932, 0.4611729383468628, -0.14720189571380615, -0.1553640514612198, -0.2860332429409027, -0.7501102685928345, 0.01691613346338272, 0.02606949582695961, -0.1261499971151352, 0.4212351441383362, 0.01897706650197506, 0.6365644931793213, 0.16708989441394806, 0.14503178000450134, -0.33559927344322205, 0.023438777774572372, -0.1471814662218094, -0.30978018045425415, -0.10625661909580231, -0.07157677412033081, 0.0460638701915741, 0.06366165727376938, -0.23996049165725708, 0.07809446007013321, 0.022982727736234665, 0.01456381380558014, 0.017513806000351906, 0.193287193775177, 0.216489776968956, 0.14211967587471008, 0.24549391865730286, 0.0389302521944046, 0.10702459514141083, 0.0752558633685112, 0.12414542585611343, 0.10356311500072479, -0.07645116746425629, -0.5395141839981079, 0.2002522051334381, -0.14243364334106445, 0.13026337325572968, 0.034435421228408813, -0.42608147859573364, -0.18830841779708862, -0.06879980862140656, 0.13095590472221375, -0.147303506731987, -0.2698879837989807, 0.1573920100927353, 0.03442976623773575, 0.055087342858314514, 0.28692013025283813, 0.5353295207023621, 0.11986809968948364, 0.1317945122718811, -0.290049284696579, -0.2387665957212448, 0.5541601777076721, -0.27111557126045227, -0.5186429619789124, 0.10483875870704651, 0.026494726538658142, 0.21813839673995972, 0.10674381256103516, -0.50981605052948, -0.17152905464172363, 0.1613500863313675, -0.24606671929359436, -0.10928288102149963, 0.6878982782363892, 0.19912393391132355, 0.1812211573123932, -0.13436469435691833, 0.4183320999145508, -0.04326324909925461, -0.0830351933836937, -0.010675672441720963, -0.36047273874282837 ]
https://github.com/huggingface/datasets/pull/2731
Adding to_tf_dataset method
Hi @lhoestq, the tests have been modified and everything is passing. The Windows tests look to be failing for an unrelated reason, but other than that I'm ready to merge if you are!
Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is.
33
text: Adding to_tf_dataset method Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is. Hi @lhoestq, the tests have been modified and everything is passing. The Windows tests look to be failing for an unrelated reason, but other than that I'm ready to merge if you are!
[ 0.059001293033361435, 0.048142969608306885, 0.023049138486385345, -0.011993519961833954, 0.13083867728710175, 0.2912279963493347, 0.19344329833984375, 0.33638235926628113, -0.34063854813575745, 0.07812684029340744, -0.21371662616729736, 0.36239540576934814, -0.15733085572719574, 0.11003541201353073, 0.22062872350215912, -0.2284756898880005, 0.12867502868175507, 0.14394308626651764, -0.11808279156684875, -0.0795205757021904, -0.03247886151075363, 0.1244349479675293, -0.31447505950927734, 0.07168754935264587, -0.1538223773241043, -0.2332949936389923, -0.20885822176933289, 0.13252702355384827, -0.2892490327358246, 0.05044132471084595, 0.07778236269950867, 0.3096800446510315, -0.15936724841594696, 0.4967883229255676, -0.00011483069829409942, -0.10027222335338593, -0.1096651554107666, -0.036642733961343765, -0.18033826351165771, 0.1854703724384308, 0.08790149539709091, -0.07034305483102798, -0.013393680565059185, 0.019094742834568024, 0.031729698181152344, -0.3781346380710602, -0.2871299982070923, 0.08492802083492279, 0.18061818182468414, 0.3333285450935364, 0.1583627462387085, 0.29394304752349854, 0.08301964402198792, 0.11949410289525986, 0.2899025082588196, -0.023826390504837036, -0.25160688161849976, -0.1317053884267807, 0.26810190081596375, -0.20620857179164886, 0.06846599280834198, 0.1125759482383728, 0.132849782705307, -0.22391243278980255, 0.3740035891532898, 0.05326647683978081, 0.02119821310043335, -0.33003461360931396, -0.08894269913434982, 0.1795237809419632, 0.6157180070877075, -0.31216323375701904, -0.28374144434928894, -0.24631500244140625, 0.19943013787269592, -0.33718669414520264, -0.20178121328353882, -0.2886173725128174, -0.21973368525505066, 0.04147917032241821, 0.08248580992221832, -0.17429529130458832, -0.22965267300605774, 0.011049453169107437, -0.029962342232465744, 0.805296778678894, 0.18000157177448273, 0.07280928641557693, -0.08225736021995544, -0.07939810305833817, 0.591424286365509, -0.1674310564994812, -0.03959431126713753, 0.41213491559028625, -0.3264685273170471, -0.3461861312389374, -0.06471916288137436, -0.2388765811920166, 0.08850184082984924, 0.3811895251274109, -0.047349534928798676, 0.12543655931949615, -0.037595294415950775, -0.013220526278018951, 0.2638644576072693, 0.1870715320110321, -0.1489192545413971, 0.284091979265213, -0.14456689357757568, -0.4031275510787964, 0.047535981982946396, 0.08651070296764374, -0.15151718258857727, -0.32714277505874634, 0.14731502532958984, -0.3173726797103882, -0.06722062826156616, -0.21857242286205292, -0.1980631798505783, -0.013794873841106892, -0.05364769324660301, -0.17299111187458038, 0.025783497840166092, 0.08298774808645248, 0.19971628487110138, 0.4649159908294678, 0.2584517002105713, -0.002031072974205017, -0.18745975196361542, -0.010504133999347687, -0.14886769652366638, 0.01437430176883936, -0.18893420696258545, -0.12389373034238815, -0.06335299462080002, 0.2842102646827698, -0.2727065980434418, 0.15202823281288147, 0.4567355513572693, 0.21022403240203857, 0.03051880933344364, 0.024275634437799454, 0.3582601547241211, 0.2767889201641083, -0.2504993975162506, -0.04561058431863785, 0.23072850704193115, -0.01185591146349907, -0.27191755175590515, 0.28578877449035645, -0.23327508568763733, -0.3029923439025879, -0.37186962366104126, 0.18247558176517487, 0.20599232614040375, -0.3592709004878998, -0.35546812415122986, 0.40633031725883484, 0.030285537242889404, -0.13400910794734955, 0.20540902018547058, -0.3503320813179016, 0.23351195454597473, -0.162337064743042, 0.31529396772384644, -0.013390854001045227, -0.721291720867157, -0.04348358139395714, 0.12654295563697815, -0.2201208919286728, 0.3157251179218292, 0.13256493210792542, -0.21997065842151642, 0.3055103123188019, -0.06024501472711563, 0.07034288346767426, 0.6444379091262817, 0.0407751090824604, 0.07912945002317429, 0.15103574097156525, -0.3329085111618042, 0.1642674058675766, 0.029049381613731384, -0.03910906985402107, -0.08894027769565582, -0.279588520526886, 0.44865962862968445, 0.21800297498703003, -0.3973384201526642, -0.10563056915998459, -0.30968499183654785, -0.029468191787600517, 0.14037322998046875, 0.0957677811384201, -0.01463640108704567, -0.14839273691177368, -0.17932921648025513, -0.3628521263599396, 0.2877459228038788, -0.04176798090338707, 0.04793000966310501, 0.05668658763170242, 0.4090893864631653, 0.209204763174057, 0.08812997490167618, 0.1775761842727661, -0.2206844985485077, 0.03415772318840027, 0.4721769392490387, 0.2091841846704483, -0.07421000301837921, -0.34172964096069336, -0.05437050759792328, 0.07433156669139862, -0.022267375141382217, -0.14267294108867645, 0.025720227509737015, 0.10220792889595032, -0.019343312829732895, -0.16623321175575256, -0.42661231756210327, -0.2887837290763855, -0.25039422512054443, 0.07830195873975754, -0.013335183262825012, 0.1883040815591812, 0.12520985305309296, -0.07659582793712616, -0.18325665593147278, 0.30484676361083984, -0.20037031173706055, 0.008740744553506374, -0.08338344097137451, 0.4493880569934845, -0.13102054595947266, 0.11439821869134903, 0.093507781624794, 0.2448430061340332, 0.14024093747138977, -0.019680015742778778, -0.29373276233673096, -0.3702316880226135, -0.027456343173980713, -0.25748610496520996, 0.045625146478414536, 0.42471957206726074, -0.2548789978027344, 0.12690208852291107, -0.029764492064714432, -0.15839557349681854, -0.014382295310497284, 0.1811041533946991, -0.26995033025741577, 0.1566465198993683, -0.10057505965232849, -0.1826198846101761, -0.060754649341106415, -0.13729824125766754, -0.3765101730823517, 0.3975529968738556, 0.427657812833786, -0.20220668613910675, -0.3491639196872711, 0.006690803915262222, 0.01777913048863411, 0.05536182224750519, 0.2193627655506134, 0.14504772424697876, 0.4123106598854065, 0.27015116810798645, 0.14395444095134735, 0.05100647360086441, -0.04601943865418434, -0.13779938220977783, 0.2903086245059967, 0.21159963309764862, 0.12130960822105408, 0.06744164228439331, -0.12476997822523117, 0.2794152498245239, -0.2488672435283661, 0.022196002304553986, 0.062975212931633, 0.20235903561115265, -0.45065584778785706, -0.11565185338258743, -0.08487143367528915, -0.09536093473434448, -0.1314646303653717, -0.21781812608242035, 0.20833294093608856, -0.5195051431655884, 0.11469364911317825, 0.028140565380454063, -0.39131832122802734, 0.2978226840496063, -0.6018617153167725, 0.6622350215911865, 0.023117804899811745, -0.35374927520751953, -0.10728218406438828, -0.018722282722592354, -0.20702311396598816, 0.10936778783798218, 0.36658039689064026, 0.0058988542295992374, 0.5427902936935425, 0.17127421498298645, 0.1717928647994995, 0.01902470551431179, -0.6059504151344299, 0.1963346153497696, -0.4589947462081909, -0.03773541748523712, 0.08180711418390274, 0.17809134721755981, -0.20122095942497253, -0.5019747614860535, -0.1477692872285843, -0.3649088442325592, -0.2026890069246292, -0.06993712484836578, 0.19816292822360992, -0.24195222556591034, -0.23808124661445618, -0.42783740162849426, -0.09345677495002747, -0.35734984278678894, -0.12574820220470428, -0.09272250533103943, -0.07865653932094574, -0.06417817622423172, -0.13650871813297272, 0.33878108859062195, 0.13166607916355133, -0.1493130624294281, -0.19252102077007294, -0.203499898314476, 0.30257412791252136, -0.18164069950580597, -0.03457242622971535, 0.22059863805770874, 0.07449737191200256, 0.3211008906364441, 0.07383616268634796, -0.20649634301662445, -0.13091178238391876, -0.03633957356214523, 0.3084590435028076, -0.18173137307167053, 0.24217040836811066, 0.30710509419441223, 0.1329912543296814, -0.05960584431886673, -0.10751929879188538, 0.06221863999962807, -0.04441884905099869, -0.06349073350429535, 0.10878163576126099, -0.11935905367136002, 0.38832157850265503, 0.025647204369306564, 1.0635045766830444, -0.06384727358818054, 0.01768217422068119, -0.10269220173358917, -0.2038254290819168, 0.3314724266529083, -0.016089312732219696, -0.14439889788627625, 0.16508284211158752, -0.0557195246219635, -0.09667845070362091, 0.191315159201622, -0.13345348834991455, -0.10437320917844772, -0.09434979408979416, 0.5833366513252258, -0.0010142847895622253, -0.3384767174720764, 0.3739100694656372, -0.4337161183357239, -0.026689253747463226, -0.20106980204582214, 0.03404974937438965, -0.14430855214595795, -0.1253279447555542, 0.24547597765922546, 0.06575478613376617, 0.10470287501811981, -0.04583730921149254, -0.38207241892814636, 0.09028744697570801, -0.5504342317581177, 0.2905960977077484, 0.0460360012948513, 0.20981818437576294, 0.005545433610677719, -0.4096192717552185, -0.004862800240516663, 0.14346489310264587, 0.7069393396377563, -0.2574329674243927, -0.42433756589889526, 0.358516663312912, 0.2743077576160431, -0.0984310731291771, -0.113987997174263, -0.3491162359714508, -0.14996924996376038, 0.06261476129293442, 0.41657373309135437, -0.34036746621131897, -0.3150438070297241, 0.2045295387506485, -0.14005543291568756, -0.0270693302154541, 0.0641486644744873, -0.15391463041305542, -0.2966330051422119, -0.06901341676712036, 0.2493390142917633, 0.4316052198410034, 0.18775007128715515, -0.28863465785980225, 0.011947348713874817, 0.02907833456993103, 0.017621934413909912, 0.27816450595855713, 0.08144956827163696, 0.0877569168806076, 0.4308144450187683, -0.004546407610177994, 0.1014961525797844, 0.020077131688594818, 0.4497710168361664, 0.38388797640800476, -0.34997498989105225, -0.3034331500530243, 0.11982724815607071, -0.003577957395464182, 0.6538242697715759, 0.5742706656455994, -0.027764875441789627, 0.2750129699707031, -0.19226855039596558, 0.24883559346199036, -0.09744621068239212, 0.23714901506900787, 0.20830965042114258, -0.1278293877840042, -0.3894580900669098, -0.3518720865249634, 0.37137410044670105, 0.0815206915140152, 0.005591064691543579, 0.7542447447776794, 0.3518480062484741, -0.41525998711586, 0.17095960676670074, 0.29977893829345703, 1.4385077953338623, 0.1800457239151001, 0.34471797943115234, 0.5094247460365295, -0.21477574110031128, 0.2992362976074219, -0.08608588576316833, 0.10957416146993637, -0.09759244322776794, -0.15685400366783142, -0.012412309646606445, -0.11082674562931061, -0.14415180683135986, -0.061807721853256226, -0.16637223958969116, 0.08355643600225449, -0.1875700056552887, 0.30854666233062744, 0.26529064774513245, 0.21247518062591553, -0.016364367678761482, -0.4331800639629364, 0.07775692641735077, 0.09140078723430634, 0.0821501612663269, -0.1295335590839386, -0.21876558661460876, -0.24240563809871674, -0.13020732998847961, 0.09584754705429077, -0.10339919477701187, 0.06629659235477448, -0.2715732753276825, 0.11538778990507126, 0.05518677085638046, -0.2129213809967041, 0.15330910682678223, -0.12624752521514893, 0.2106046825647354, -0.043232034891843796, -0.1158566027879715, 0.24242950975894928, 0.25982341170310974, 0.30819442868232727, -0.01782175712287426, -0.20363269746303558, 0.6469589471817017, -0.0008528828620910645, 0.11368492990732193, 0.1792578399181366, -0.23136155307292938, -0.47033369541168213, -0.4621913731098175, -0.2363414615392685, 0.3826110363006592, -0.2894079089164734, -0.2557277977466583, 0.39255398511886597, -0.1296086609363556, -0.17044644057750702, 0.13244755566120148, -0.035399653017520905, -0.38820528984069824, 0.20679813623428345, -0.022768240422010422, -0.05805281549692154, 0.13844212889671326, 0.03569710999727249, -0.09732150286436081, -0.1528536081314087, 0.5972552299499512, 0.14855217933654785, -0.07444891333580017, -0.10375669598579407, 0.21236109733581543, 0.7078598737716675, -0.1817457377910614, 0.06512989848852158, -0.17736707627773285, -0.029079176485538483, 0.25231677293777466, 0.3448159992694855, 0.40273481607437134, 0.16668426990509033, -0.23914919793605804, 0.03999863564968109, -0.32852160930633545, 0.25466927886009216, 0.19284839928150177, 0.48237788677215576, -0.2726866900920868, 0.4517000913619995, -0.09157464653253555, 0.1321604996919632, -0.3430827856063843, -0.24434448778629303, -0.011004537343978882, 0.050713662058115005, -0.15481692552566528, 0.1840222179889679, 0.005453082732856274, -0.1635066270828247, 0.029030175879597664, 0.1576671302318573, -0.08165373653173447, -0.13962620496749878, -0.026734238490462303, 0.1329650580883026, 0.21617984771728516, -0.03032774291932583, 0.07297415286302567, -0.08922386169433594, -0.3277713656425476, -0.06646618247032166, 0.18157649040222168, -0.30882591009140015, -0.18940101563930511, -0.18573138117790222, 0.1272863745689392, 0.017781022936105728, -0.0847369134426117, -0.05222450941801071, 0.24247953295707703, 0.06174585595726967, 0.15095891058444977, 0.13195770978927612, -0.05261101946234703, -0.1534082591533661, 0.3625214993953705, 0.41031938791275024, 0.23535625636577606, -0.03565509617328644, 0.06337406486272812, -0.25551509857177734, -0.2281961292028427, -0.092258520424366, 0.26556551456451416, 0.3549917936325073, -0.2224559634923935, -0.11253511905670166, 0.19857117533683777, 0.17502105236053467, -0.17455227673053741, 0.05490094795823097, -0.2323850393295288, 0.03131948783993721, -0.13569894433021545, 0.014258868992328644, -0.16102898120880127, 0.1542036086320877, -0.1695597916841507, 0.1487438678741455, -0.0449528731405735, -0.5338796377182007, 0.24988888204097748, 0.5610473155975342, -0.3197754919528961, 0.178965225815773, 0.15115337073802948, 0.08014674484729767, -0.2150195837020874, -0.0849529504776001, 0.20360776782035828, 0.4714168906211853, -0.018530044704675674, -0.03635610267519951, 0.04165025055408478, -0.3785910904407501, 0.05671399459242821, 0.3550344407558441, 0.049091581255197525, 0.4478834867477417, 0.23515327274799347, 0.346171110868454, -0.07282325625419617, -0.6686893701553345, 0.19993644952774048, 0.145639568567276, -0.15794894099235535, 0.14941079914569855, -0.3106531798839569, -0.22376921772956848, -0.20544365048408508, -0.05576305836439133, -0.044661443680524826, -0.12255260348320007, -0.16005629301071167, 0.07487354427576065, 0.008279725909233093, -0.11535781621932983, -0.193569153547287, -0.00823349878191948, 0.5553532838821411, -0.07738359272480011, 0.14237158000469208, -0.07095490396022797, -0.2173267900943756, 0.026330050081014633, -0.0393495038151741, 0.19720640778541565, 0.2058032900094986, 0.06771634519100189, -0.0951126292347908, 0.15459275245666504, -0.07171586900949478, 0.3445061445236206, 0.2566034197807312, 0.20644935965538025, -0.32157498598098755, 0.203775554895401, 0.08940013498067856, -0.14974480867385864, -0.05457032844424248, 0.018736504018306732, 0.010432752780616283, -0.4139809012413025, 0.31943801045417786, 0.15183088183403015, -0.3726120591163635, -0.004743516445159912, 0.09288621693849564, -0.11026656627655029, -0.038253091275691986, 0.34220123291015625, -0.02188752591609955, 0.02878466621041298, -0.010655292309820652, 0.07781727612018585, 0.31880906224250793, 0.49045994877815247, 0.4812755882740021, 0.002267535775899887, -0.1020757183432579, -0.23892094194889069, -0.8294776678085327, -0.018247507512569427, 0.12911958992481232, -0.11793458461761475, 0.3300037980079651, 0.017781848087906837, 0.6514977812767029, 0.061204101890325546, 0.1762346476316452, -0.2365092933177948, 0.06090748310089111, -0.1474558711051941, -0.33677351474761963, -0.03174838796257973, -0.05471201241016388, 0.1118384599685669, 0.09367775917053223, -0.26583731174468994, 0.09032821655273438, 0.134113609790802, 0.003390491008758545, 0.04108294099569321, 0.1385284960269928, 0.2109629511833191, 0.05036124214529991, 0.286548376083374, 0.01919117197394371, 0.25859546661376953, 0.0474141389131546, 0.12561458349227905, 0.0696689784526825, -0.14005228877067566, -0.5089242458343506, 0.16016212105751038, -0.12759847939014435, 0.08903202414512634, 0.1485346108675003, -0.27654874324798584, -0.11991915851831436, -0.12450575083494186, 0.10031846165657043, -0.09269320219755173, -0.34946906566619873, 0.1194525733590126, 0.09065421670675278, -0.05390861630439758, 0.3395122289657593, 0.5697851181030273, 0.010876938700675964, 0.10711279511451721, -0.3401016592979431, -0.2745897173881531, 0.4614318907260895, -0.25574904680252075, -0.5049217343330383, 0.04344085231423378, 0.07007560133934021, 0.22388190031051636, 0.06275998055934906, -0.6110785007476807, -0.20231230556964874, 0.10439597815275192, -0.254772812128067, -0.1007533073425293, 0.6071570515632629, 0.19615072011947632, 0.207487091422081, -0.12446373701095581, 0.32782992720603943, -0.02955971285700798, 0.05160551518201828, -0.09592859447002411, -0.32407069206237793 ]
https://github.com/huggingface/datasets/pull/2731
Adding to_tf_dataset method
Hi @Rocketknight1 ! Feel free to merge `master` into this branch to fix and run the full CI :)
Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is.
19
text: Adding to_tf_dataset method Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is. Hi @Rocketknight1 ! Feel free to merge `master` into this branch to fix and run the full CI :)
[ 0.10598735511302948, 0.055169478058815, 0.04857931658625603, -0.025769181549549103, 0.1817021369934082, 0.2840316593647003, 0.193252295255661, 0.3198695480823517, -0.40209323167800903, 0.12033478915691376, -0.19665956497192383, 0.39374956488609314, -0.14333949983119965, 0.17559228837490082, 0.17102347314357758, -0.18861477077007294, 0.08949169516563416, 0.12482841312885284, -0.1421913504600525, -0.11819708347320557, 0.025438085198402405, 0.10108748078346252, -0.2470908761024475, 0.07227395474910736, -0.17793765664100647, -0.23472699522972107, -0.1333649456501007, 0.0491560697555542, -0.3057956099510193, 0.0655815377831459, 0.13291865587234497, 0.3389090597629547, -0.1335000991821289, 0.47631457448005676, -0.00011461642134236172, -0.09505506604909897, -0.09000018239021301, -0.06626974791288376, -0.23065072298049927, 0.15627318620681763, 0.09219063073396683, -0.10678927600383759, 0.04507942497730255, -0.0535258911550045, 0.03165231645107269, -0.30313482880592346, -0.3001667559146881, 0.07502152025699615, 0.2488621324300766, 0.2611333131790161, 0.16783198714256287, 0.2311076819896698, 0.08114376664161682, 0.1072055846452713, 0.28744104504585266, 0.010713048279285431, -0.2884295880794525, -0.15544621646404266, 0.22447869181632996, -0.11197506636381149, 0.06494322419166565, 0.17572592198848724, 0.07483207434415817, -0.298229843378067, 0.45137980580329895, 0.011788717471063137, 0.020733006298542023, -0.3649096190929413, -0.0732438787817955, 0.13989847898483276, 0.6436132192611694, -0.316270112991333, -0.2800040543079376, -0.25113627314567566, 0.21016047894954681, -0.31142276525497437, -0.2541855275630951, -0.3028627038002014, -0.2046910971403122, 0.04909615218639374, 0.10420743376016617, -0.16490371525287628, -0.2234933227300644, 0.02080138772726059, 0.022337183356285095, 0.7908216714859009, 0.12418632954359055, 0.0937737375497818, -0.05466798320412636, -0.05001255124807358, 0.6068884134292603, -0.14406059682369232, 0.024730633944272995, 0.41030123829841614, -0.26663610339164734, -0.3417746126651764, 0.026706863194704056, -0.24506598711013794, 0.04983753710985184, 0.3532494306564331, -0.006333963014185429, 0.16021046042442322, -0.058062635362148285, 0.03332417458295822, 0.3086121678352356, 0.14724357426166534, -0.1816582977771759, 0.3306870758533478, -0.10220597684383392, -0.41048863530158997, 0.08587947487831116, 0.04712657257914543, -0.15798088908195496, -0.20130497217178345, 0.14216135442256927, -0.30004429817199707, -0.10748737305402756, -0.16772454977035522, -0.1303250640630722, 0.013666264712810516, -0.023497579619288445, -0.1578880101442337, 0.02882145345211029, 0.04420693591237068, 0.18873535096645355, 0.46347352862358093, 0.22859208285808563, -0.05054721236228943, -0.12140406668186188, -0.09074819087982178, -0.18023723363876343, -0.05868859961628914, -0.21193835139274597, -0.10610505938529968, -0.1619282215833664, 0.27771687507629395, -0.2806755006313324, 0.16084687411785126, 0.47762519121170044, 0.1790757030248642, 0.02857046015560627, 0.03789721429347992, 0.32885897159576416, 0.27916082739830017, -0.25768065452575684, -0.0501847118139267, 0.31407058238983154, -0.027790287509560585, -0.280117005109787, 0.29326629638671875, -0.3046687841415405, -0.3473678231239319, -0.45507878065109253, 0.17088255286216736, 0.21355527639389038, -0.3200569450855255, -0.3892240822315216, 0.3809889853000641, 0.11864259839057922, -0.13776743412017822, 0.21228361129760742, -0.33329612016677856, 0.23146027326583862, -0.22462518513202667, 0.280588835477829, -0.011686533689498901, -0.6618523001670837, -0.047815389931201935, 0.06597680598497391, -0.15521128475666046, 0.3380417227745056, 0.1108415275812149, -0.28277841210365295, 0.37052062153816223, -0.02554161101579666, 0.007768012583255768, 0.7276750206947327, 0.03968024626374245, 0.04247162491083145, 0.13030467927455902, -0.3608907461166382, 0.16305232048034668, 0.01661103218793869, 0.02802039310336113, -0.07623261213302612, -0.3114051818847656, 0.4707321226596832, 0.23723599314689636, -0.4433407187461853, -0.08797203004360199, -0.2512511610984802, -0.030509084463119507, 0.0412258505821228, 0.0803900957107544, -0.021678049117326736, -0.02794031798839569, -0.13229188323020935, -0.3497394621372223, 0.29884129762649536, -0.050451282411813736, 0.08363516628742218, 0.05300658941268921, 0.3984103202819824, 0.24525874853134155, 0.08994624018669128, 0.2155444324016571, -0.23961740732192993, 0.01611432060599327, 0.5089484453201294, 0.21356843411922455, -0.14610467851161957, -0.36357349157333374, -0.0552050918340683, 0.055609412491321564, -0.06437990069389343, -0.1032281368970871, 0.029613498598337173, 0.07736969739198685, -0.06286253780126572, -0.14963121712207794, -0.4238748550415039, -0.30689388513565063, -0.2936490774154663, 0.07842057943344116, -0.07918006181716919, 0.16129839420318604, 0.12698206305503845, -0.0718848779797554, -0.20394983887672424, 0.2880570888519287, -0.1715707778930664, -0.016650518402457237, -0.15683364868164062, 0.4173603653907776, -0.12815451622009277, 0.11697519570589066, -0.024070575833320618, 0.30174267292022705, 0.11920635402202606, 0.02437695488333702, -0.24873068928718567, -0.400263249874115, -0.056694433093070984, -0.27580466866493225, 0.08199198544025421, 0.44309401512145996, -0.2656073272228241, 0.1409069001674652, -0.08140943944454193, -0.13220080733299255, -0.03518262505531311, 0.24534082412719727, -0.2920965552330017, 0.119569793343544, -0.19108489155769348, -0.16123686730861664, -0.03597845882177353, -0.12613049149513245, -0.28300338983535767, 0.4287783205509186, 0.4206932485103607, -0.1388177126646042, -0.3569924831390381, 0.07659798115491867, 0.08329258859157562, 0.06612327694892883, 0.20893968641757965, 0.21664734184741974, 0.34543153643608093, 0.2810470461845398, 0.08784476667642593, 0.025566626340150833, 0.06888978183269501, -0.14990149438381195, 0.2569938004016876, 0.20665302872657776, 0.16532331705093384, 0.01763371378183365, -0.1275709569454193, 0.3404957354068756, -0.20239987969398499, 0.024160578846931458, 0.013843195512890816, 0.24104122817516327, -0.3235078454017639, -0.06446769833564758, -0.07794906198978424, -0.1045101210474968, -0.028836369514465332, -0.17494316399097443, 0.26447978615760803, -0.5313423275947571, 0.03910987079143524, 0.03113974630832672, -0.39298000931739807, 0.3179907202720642, -0.597330629825592, 0.6173712611198425, 0.03842158615589142, -0.2866058349609375, -0.07071855664253235, -0.07210133224725723, -0.20759856700897217, 0.09698867797851562, 0.31456273794174194, -0.07627488672733307, 0.508722722530365, 0.17212003469467163, 0.18464477360248566, 0.019036734476685524, -0.6330156922340393, 0.2708601951599121, -0.46572262048721313, -0.10478184372186661, 0.12146307528018951, 0.1774153709411621, -0.21608205139636993, -0.4314434826374054, -0.11218006908893585, -0.301552414894104, -0.18078428506851196, -0.08838802576065063, 0.13321048021316528, -0.2059500515460968, -0.22039975225925446, -0.3281644284725189, -0.12514415383338928, -0.38630878925323486, -0.17072650790214539, -0.12077464163303375, -0.023795656859874725, -0.002764868550002575, -0.09176268428564072, 0.3115818202495575, 0.13257403671741486, -0.13001486659049988, -0.20995086431503296, -0.30656105279922485, 0.3476410210132599, -0.1851067692041397, -0.017013173550367355, 0.20605066418647766, 0.052345164120197296, 0.35322362184524536, 0.07915794104337692, -0.23687541484832764, -0.11216659843921661, -0.03291848301887512, 0.29707208275794983, -0.22128352522850037, 0.24318133294582367, 0.3221591114997864, 0.14386214315891266, -0.03227557614445686, -0.08816742897033691, 0.03573743626475334, -0.07467608898878098, -0.07965786010026932, 0.10128194093704224, -0.10689378529787064, 0.4467257261276245, 0.055488470941782, 1.0572144985198975, -0.07234175503253937, 0.01702404022216797, -0.08684799075126648, -0.15285402536392212, 0.3681529760360718, -0.0281824991106987, -0.19323208928108215, 0.1710750311613083, -0.05931347608566284, -0.17264090478420258, 0.16925965249538422, -0.12000859528779984, -0.11353660374879837, -0.10885006189346313, 0.5390260219573975, 0.06171979755163193, -0.3636399209499359, 0.3756416440010071, -0.4285123348236084, -0.003094583749771118, -0.19196733832359314, 0.06477763503789902, -0.19280904531478882, -0.07076292484998703, 0.211857870221138, 0.05736071243882179, 0.17100365459918976, -0.010435743257403374, -0.3621532917022705, 0.00850644800812006, -0.4836843013763428, 0.27263981103897095, 0.0376114696264267, 0.10835493355989456, -0.010982897132635117, -0.3592420518398285, 0.01048656553030014, 0.24086986482143402, 0.6287948489189148, -0.2898300886154175, -0.466159462928772, 0.32898998260498047, 0.2266823649406433, -0.08573389798402786, -0.11099879443645477, -0.22845174372196198, -0.07454428821802139, 0.06694509834051132, 0.39845770597457886, -0.3790307343006134, -0.25460097193717957, 0.23245196044445038, -0.18667426705360413, -0.03236617520451546, 0.010530793108046055, -0.12044408917427063, -0.2917325794696808, -0.09837816655635834, 0.2523132562637329, 0.47465112805366516, 0.13421106338500977, -0.20254166424274445, -0.031630739569664, 0.08942794054746628, 0.04076439142227173, 0.18706372380256653, 0.06174532696604729, 0.03814129903912544, 0.4806598126888275, -0.05966878682374954, 0.10039077699184418, -0.031251318752765656, 0.47277361154556274, 0.3677053153514862, -0.337674617767334, -0.33010247349739075, 0.13388517498970032, 0.04465731978416443, 0.6068892478942871, 0.5673418045043945, 0.028212562203407288, 0.2952893078327179, -0.10995353758335114, 0.27123209834098816, 0.012960267253220081, 0.15191181004047394, 0.13775931298732758, -0.21113960444927216, -0.44810909032821655, -0.4469451904296875, 0.37019750475883484, 0.07062740623950958, 0.010596223175525665, 0.7097396850585938, 0.33009445667266846, -0.35652101039886475, 0.16907064616680145, 0.3580363094806671, 1.4499139785766602, 0.21159392595291138, 0.37142714858055115, 0.4721623361110687, -0.14953731000423431, 0.3774943947792053, -0.10002180933952332, 0.06784970313310623, -0.12075644731521606, -0.15983626246452332, -0.016169589012861252, -0.11182960867881775, -0.16946926712989807, -0.09370668232440948, -0.18171429634094238, 0.047950174659490585, -0.31185999512672424, 0.40262371301651, 0.2877958118915558, 0.1584705412387848, -0.01900729350745678, -0.4928116500377655, 0.11707636713981628, 0.10140256583690643, -0.0027441345155239105, -0.11248838901519775, -0.23749324679374695, -0.30309414863586426, -0.11576563119888306, 0.16359078884124756, -0.12828288972377777, 0.042298607528209686, -0.3157229423522949, 0.11574999243021011, 0.04913490265607834, -0.26055580377578735, 0.151946023106575, -0.10300597548484802, 0.25116172432899475, -0.02335410937666893, -0.09255234897136688, 0.21338707208633423, 0.24485564231872559, 0.29529210925102234, -0.06554710865020752, -0.1990380585193634, 0.5852122902870178, 0.04382381588220596, 0.15756958723068237, 0.1741940975189209, -0.21559929847717285, -0.45368343591690063, -0.4584474265575409, -0.22159473598003387, 0.4288775324821472, -0.261386513710022, -0.26623937487602234, 0.3517244756221771, -0.12671327590942383, -0.18537397682666779, 0.13428102433681488, 0.009118031710386276, -0.3673178255558014, 0.13159218430519104, -0.03736681863665581, -0.0037372037768363953, 0.1441110074520111, 0.016919031739234924, 0.015965456143021584, -0.16409577429294586, 0.5382537841796875, 0.12409186363220215, -0.08904168009757996, -0.07590009272098541, 0.25592443346977234, 0.6583828330039978, -0.13555017113685608, 0.10319177806377411, -0.19958271086215973, -0.0688309445977211, 0.17735634744167328, 0.35740816593170166, 0.36659616231918335, 0.1602623015642166, -0.24560128152370453, 0.06437115371227264, -0.3882526457309723, 0.2183973491191864, 0.15825554728507996, 0.38549068570137024, -0.28263869881629944, 0.46444171667099, -0.1144288182258606, 0.15806721150875092, -0.34928441047668457, -0.29311683773994446, 0.0020478572696447372, 0.0033499933779239655, -0.03646694868803024, 0.16280145943164825, -0.04403723403811455, -0.16109737753868103, 0.0018954835832118988, 0.198997363448143, -0.1233702301979065, -0.1312471628189087, -0.036361273378133774, 0.14139269292354584, 0.27622511982917786, -0.021415606141090393, 0.10901517421007156, -0.10997088253498077, -0.3952765166759491, -0.08474153280258179, 0.17888514697551727, -0.2592688798904419, -0.11654894053936005, -0.2304995208978653, 0.04689095541834831, 0.07047643512487411, -0.1042829304933548, -0.07182080298662186, 0.26481544971466064, 0.05780922248959541, 0.17716559767723083, 0.10929126292467117, -0.061095595359802246, -0.1558803915977478, 0.3324454724788666, 0.4053654968738556, 0.26478466391563416, 0.02797621116042137, 0.104002445936203, -0.3249102830886841, -0.19874121248722076, -0.03291534632444382, 0.19768238067626953, 0.2648894190788269, -0.2515525817871094, -0.16341985762119293, 0.2142319679260254, 0.17599929869174957, -0.14901530742645264, 0.05303356796503067, -0.2512570023536682, 0.04499422758817673, -0.14575082063674927, 0.06185223534703255, -0.18236742913722992, 0.18228745460510254, -0.17855410277843475, 0.14690259099006653, -0.006126268766820431, -0.5616528391838074, 0.3247365355491638, 0.5261035561561584, -0.31831008195877075, 0.1710827499628067, 0.20735058188438416, 0.08127949386835098, -0.21059206128120422, -0.07208426296710968, 0.1679040789604187, 0.47404152154922485, 0.06941376626491547, -0.10246036946773529, 0.04345021769404411, -0.38225337862968445, 0.09531193226575851, 0.4322386085987091, 0.021898463368415833, 0.41381195187568665, 0.21361471712589264, 0.25019192695617676, -0.01538799423724413, -0.6480657458305359, 0.18620140850543976, 0.16778899729251862, -0.21156197786331177, 0.21183621883392334, -0.3003750145435333, -0.22185105085372925, -0.2118060439825058, -0.08847972750663757, -0.08733585476875305, -0.11663353443145752, -0.1810191571712494, 0.019431516528129578, 0.027299650013446808, -0.11545738577842712, -0.22388869524002075, -0.023774951696395874, 0.5756127238273621, -0.03996102511882782, 0.16438987851142883, -0.12429572641849518, -0.25682446360588074, -0.06210283562541008, -0.09981556981801987, 0.176163911819458, 0.27790823578834534, 0.20159047842025757, -0.07036663591861725, 0.17874161899089813, -0.083871029317379, 0.3317127227783203, 0.19592618942260742, 0.26415687799453735, -0.3280363380908966, 0.12843456864356995, 0.0755963996052742, -0.18380321562290192, -0.03758382424712181, -0.0017410926520824432, 0.058067575097084045, -0.3883432447910309, 0.3212347626686096, 0.13472740352153778, -0.38637712597846985, 0.0210113562643528, 0.14977805316448212, -0.10366831719875336, -0.030794531106948853, 0.36803847551345825, 0.016950802877545357, -0.017110483720898628, -0.058497074991464615, 0.07989916205406189, 0.29642462730407715, 0.4623652994632721, 0.47590211033821106, -0.10752729326486588, -0.1316647082567215, -0.23590321838855743, -0.8061971068382263, 0.0435841828584671, 0.0895676240324974, -0.08272884041070938, 0.3824961483478546, 0.023094134405255318, 0.6780986785888672, 0.09215614944696426, 0.21312859654426575, -0.2957988381385803, 0.059779249131679535, -0.16584618389606476, -0.2918156683444977, -0.0896366685628891, -0.11280305683612823, 0.06888201087713242, 0.08807025104761124, -0.25006574392318726, 0.04159165918827057, 0.15312978625297546, 0.04550807178020477, 0.008766621351242065, 0.10897324979305267, 0.19511838257312775, 0.02252037636935711, 0.33361634612083435, 0.04880855977535248, 0.16456562280654907, 0.03178253024816513, 0.09069757163524628, 0.11439163982868195, -0.16242718696594238, -0.5276669859886169, 0.21489480137825012, -0.11521358788013458, 0.15927328169345856, 0.0908176451921463, -0.2704247534275055, -0.22555086016654968, -0.14555862545967102, 0.1243496686220169, -0.1294962763786316, -0.38089805841445923, 0.1807011365890503, 0.07820724695920944, -0.0022530455607920885, 0.3004314601421356, 0.5110378861427307, 0.0751262903213501, 0.1371779590845108, -0.31989336013793945, -0.24714376032352448, 0.5202732086181641, -0.21734216809272766, -0.5114251971244812, 0.0946006253361702, 0.04200078547000885, 0.21072229743003845, 0.07895487546920776, -0.5375163555145264, -0.14897999167442322, 0.08642298728227615, -0.25505930185317993, -0.0934528112411499, 0.6254314184188843, 0.15246188640594482, 0.19543229043483734, -0.12415997684001923, 0.3311505913734436, -0.04090297967195511, -0.0263576228171587, -0.05521910637617111, -0.2930161952972412 ]
https://github.com/huggingface/datasets/pull/2731
Adding to_tf_dataset method
@lhoestq rebased onto master and it looks good! I'm doing some testing with new notebook examples, but are you happy to merge if that looks good?
Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is.
26
text: Adding to_tf_dataset method Oh my **god** do not merge this yet, it's just a draft. I've added a method (via a mixin) to the `arrow_dataset.Dataset` class that automatically converts our Dataset classes to TF Dataset classes ready for training. It hopefully has most of the features we want, including streaming from disk (no need to load the whole dataset in memory!), correct shuffling, variable-length batches to reduce compute, and correct support for unusual padding. It achieves that by calling the tokenizer `pad` method in the middle of a TF compute graph via a very hacky call to `tf.py_function`, which is heretical but seems to work. A number of issues need to be resolved before it's ready to merge, though: 1) Is a MixIn the right way to do this? Do other classes besides `arrow_dataset.Dataset` need this method too? 2) Needs an argument to support constant-length batches for TPU training - this is easy to add and I'll do it soon. 3) Needs the user to supply the list of columns to drop from the arrow `Dataset`. Is there some automatic way to get the columns we want, or see which columns were added by the tokenizer? 4) Assumes the label column is always present and always called "label" - this is probably not great, but I'm not sure what the 'correct' thing to do here is. @lhoestq rebased onto master and it looks good! I'm doing some testing with new notebook examples, but are you happy to merge if that looks good?
[ 0.0702875405550003, 0.023690149188041687, 0.06111323460936546, -0.03171233832836151, 0.08492252230644226, 0.2661759555339813, 0.16250203549861908, 0.3548276126384735, -0.4146319031715393, 0.06289994716644287, -0.3088734447956085, 0.3713504374027252, -0.18296951055526733, 0.14465361833572388, 0.23222386837005615, -0.16119444370269775, 0.12073656171560287, 0.14240072667598724, -0.21504539251327515, -0.1047632098197937, -0.033923134207725525, 0.14784188568592072, -0.2702574133872986, 0.11936624348163605, -0.1680591106414795, -0.20477856695652008, -0.20479215681552887, 0.07954145967960358, -0.32288268208503723, 0.1184619888663292, 0.06266018748283386, 0.3729000985622406, -0.10575632750988007, 0.5007014870643616, -0.00011546396126504987, -0.0767064020037651, -0.17325596511363983, -0.05992945283651352, -0.19048981368541718, 0.1262996643781662, 0.09494655579328537, -0.15870657563209534, 0.021662944927811623, -0.011895440518856049, 0.07984838634729385, -0.3790622353553772, -0.28418076038360596, 0.13636580109596252, 0.23757317662239075, 0.2741606831550598, 0.1522068977355957, 0.18924389779567719, 0.06836338341236115, 0.16291022300720215, 0.3324485123157501, -0.05505165457725525, -0.2090565711259842, -0.15427331626415253, 0.2533983588218689, -0.17804697155952454, 0.06312189251184464, 0.14102919399738312, 0.12097921967506409, -0.35615086555480957, 0.5366793870925903, 0.027624472975730896, -0.009739041328430176, -0.25430476665496826, -0.15725523233413696, 0.18965035676956177, 0.6142047047615051, -0.30277174711227417, -0.30596011877059937, -0.25377243757247925, 0.17272108793258667, -0.3378378450870514, -0.23794952034950256, -0.29028886556625366, -0.15328285098075867, 0.07704750448465347, 0.0765611007809639, -0.23685860633850098, -0.21839629113674164, -0.009992048144340515, -0.045146893709897995, 0.7318084239959717, 0.13693125545978546, 0.037275634706020355, -0.04021177813410759, -0.09188959002494812, 0.5934450626373291, -0.17509989440441132, 0.03928217664361, 0.3938128352165222, -0.3446873426437378, -0.3476414382457733, 0.03132842108607292, -0.24218732118606567, 0.05125260353088379, 0.2815149426460266, 0.016590401530265808, 0.13765910267829895, -0.07245218008756638, 0.0305238775908947, 0.27109622955322266, 0.16664010286331177, -0.20212456583976746, 0.248799666762352, -0.11866776645183563, -0.416390061378479, 0.042749855667352676, 0.0656987801194191, -0.16101837158203125, -0.28036874532699585, 0.10012947022914886, -0.34839463233947754, -0.08826304972171783, -0.15159845352172852, -0.1535312831401825, 0.038332704454660416, -0.08401204645633698, -0.20650577545166016, 0.03422815725207329, 0.040775127708911896, 0.18469592928886414, 0.4264439642429352, 0.2987719774246216, 0.0033975429832935333, -0.16333551704883575, -0.14188480377197266, -0.14841684699058533, -0.013858448714017868, -0.20946697890758514, -0.13602526485919952, -0.18958383798599243, 0.334213525056839, -0.3775304853916168, 0.18277233839035034, 0.4369417428970337, 0.23591125011444092, 0.03635869920253754, 0.031449951231479645, 0.30863335728645325, 0.2216852456331253, -0.27711209654808044, -0.10771649330854416, 0.27726706862449646, 0.020372144877910614, -0.2929537892341614, 0.3040620684623718, -0.24156132340431213, -0.3405133783817291, -0.4232019782066345, 0.16551092267036438, 0.2618279457092285, -0.28990092873573303, -0.3783884346485138, 0.43592342734336853, 0.094476617872715, -0.12531422078609467, 0.1691375970840454, -0.35551518201828003, 0.21072936058044434, -0.21092811226844788, 0.26100584864616394, -0.052658841013908386, -0.7317256331443787, -0.07303351163864136, 0.06526993215084076, -0.14450612664222717, 0.2724739909172058, 0.16071449220180511, -0.2847863435745239, 0.4639971852302551, -0.004423799924552441, -0.026432909071445465, 0.7075134515762329, 0.08229288458824158, 0.025182537734508514, 0.12121743708848953, -0.34467417001724243, 0.18022526800632477, 0.0021325647830963135, 0.0177927203476429, -0.050772517919540405, -0.29767337441444397, 0.5142707824707031, 0.2482917159795761, -0.39935213327407837, -0.15113696455955505, -0.3075513541698456, -0.003951976075768471, 0.0845136046409607, 0.09848493337631226, -0.019065555185079575, -0.07426229864358902, -0.18616142868995667, -0.33439528942108154, 0.2675071060657501, -0.03347298130393028, 0.09340894967317581, 0.049562811851501465, 0.41431647539138794, 0.26497718691825867, 0.08169171214103699, 0.20075154304504395, -0.24136048555374146, 0.0025239065289497375, 0.4104044437408447, 0.20449762046337128, -0.09860758483409882, -0.3083692193031311, -0.010957149788737297, 0.02101804129779339, -0.053389620035886765, -0.09109537303447723, 0.04266873747110367, 0.028377186506986618, -0.05751580744981766, -0.11342556774616241, -0.4239390194416046, -0.2335439920425415, -0.23375897109508514, 0.10948025435209274, -0.09205862879753113, 0.17258578538894653, 0.11602549999952316, -0.06406669318675995, -0.22028809785842896, 0.2946282625198364, -0.21076717972755432, 0.014876310713589191, -0.07194710522890091, 0.4507383108139038, -0.1371261328458786, 0.04325523599982262, -0.017382390797138214, 0.30663663148880005, 0.14805646240711212, 0.0543087013065815, -0.2242434024810791, -0.45935720205307007, -0.03522426635026932, -0.27490144968032837, 0.03612201660871506, 0.4545935392379761, -0.23441214859485626, 0.1072746142745018, -0.06064143776893616, -0.1553962528705597, -0.1349942982196808, 0.23583829402923584, -0.25322625041007996, 0.2265104353427887, -0.10381199419498444, -0.12404413521289825, 0.011592518538236618, -0.09797585010528564, -0.2779551148414612, 0.40711408853530884, 0.3810334801673889, -0.13606654107570648, -0.34380030632019043, 0.055340684950351715, 0.06798066943883896, 0.049162447452545166, 0.23495249450206757, 0.13625723123550415, 0.3521937131881714, 0.26919180154800415, 0.09371389448642731, 0.04367438331246376, 0.035045064985752106, -0.1305762231349945, 0.23323845863342285, 0.1953003704547882, 0.08773624897003174, 0.0028188861906528473, -0.11533224582672119, 0.35714879631996155, -0.17238149046897888, 0.04657066985964775, 0.05332419276237488, 0.20321284234523773, -0.3234740197658539, -0.04929184168577194, -0.10131983458995819, -0.06512579321861267, -0.03799347206950188, -0.15910030901432037, 0.19059495627880096, -0.5513755679130554, 0.09574535489082336, 0.0336008220911026, -0.3344452381134033, 0.3362565040588379, -0.4446782171726227, 0.6627629399299622, -0.0026590097695589066, -0.3024892508983612, -0.010142091661691666, -0.042861420661211014, -0.20689749717712402, 0.10811816155910492, 0.3194851875305176, -0.0772872045636177, 0.4668753445148468, 0.19677004218101501, 0.1815626472234726, 0.02575519308447838, -0.6140719652175903, 0.22953887283802032, -0.4847354292869568, -0.09637466073036194, 0.14892812073230743, 0.11028590053319931, -0.24958941340446472, -0.382406622171402, -0.13836809992790222, -0.22893723845481873, -0.20889905095100403, -0.07262179255485535, 0.17460335791110992, -0.17520521581172943, -0.22675015032291412, -0.3121301829814911, -0.1368090808391571, -0.3830966055393219, -0.11363708972930908, -0.18012472987174988, -0.02086331695318222, -0.08554691821336746, -0.12152773886919022, 0.3616599440574646, 0.12827134132385254, -0.147024005651474, -0.17850452661514282, -0.20847290754318237, 0.3335922062397003, -0.19113938510417938, -0.026324529200792313, 0.18092557787895203, 0.07438765466213226, 0.36651551723480225, 0.0587334968149662, -0.2626267671585083, -0.08543593436479568, -0.07522837072610855, 0.3572036325931549, -0.20111723244190216, 0.29745975136756897, 0.3065182566642761, 0.15422989428043365, -0.0010517016053199768, -0.10375167429447174, 0.05461829528212547, -0.05441337078809738, -0.06930147856473923, 0.12980493903160095, -0.09265804290771484, 0.45925283432006836, 0.04450810328125954, 1.1009116172790527, -0.10021109879016876, 0.043329741805791855, -0.07550843060016632, -0.10526854544878006, 0.36317965388298035, -0.03684448450803757, -0.16757217049598694, 0.1367412656545639, -0.06260944902896881, -0.16889290511608124, 0.16220450401306152, -0.1161782369017601, -0.05947713553905487, -0.10434109717607498, 0.5306681394577026, 0.028222709894180298, -0.37566235661506653, 0.3701580762863159, -0.40540140867233276, -0.034067489206790924, -0.19467802345752716, -0.009326070547103882, -0.12761284410953522, -0.07173039764165878, 0.20203007757663727, 0.08967418968677521, 0.22620227932929993, -0.006263985298573971, -0.3497944176197052, 0.03589411824941635, -0.5243682265281677, 0.27190250158309937, -0.011103472672402859, 0.11074944585561752, 0.015042830258607864, -0.4276210069656372, -0.03577922284603119, 0.2532414495944977, 0.7011725306510925, -0.2521727383136749, -0.5172622203826904, 0.31205111742019653, 0.18590012192726135, -0.062148258090019226, -0.13477905094623566, -0.24456025660037994, -0.17505432665348053, 0.09680543839931488, 0.383727490901947, -0.4174036383628845, -0.22467441856861115, 0.1797155737876892, -0.19055984914302826, -0.0482514314353466, -0.006006119307130575, -0.1373676210641861, -0.2523382008075714, -0.0943855568766594, 0.19467049837112427, 0.4213557541370392, 0.15038765966892242, -0.22986005246639252, 0.07830961048603058, 0.0666208416223526, 0.0375388041138649, 0.2644423246383667, 0.05287173017859459, 0.044552430510520935, 0.3993563652038574, -0.013181028887629509, 0.05152919888496399, 0.01722598448395729, 0.4935128688812256, 0.38215360045433044, -0.36395129561424255, -0.4140346050262451, 0.17933610081672668, 0.030328143388032913, 0.6553171873092651, 0.558826208114624, 0.033571697771549225, 0.32191523909568787, -0.14965003728866577, 0.20619136095046997, 0.01615239307284355, 0.12976562976837158, 0.13511750102043152, -0.16731047630310059, -0.45260223746299744, -0.37395206093788147, 0.4083361029624939, 0.11363475024700165, 0.023227795958518982, 0.6536021828651428, 0.32634878158569336, -0.348758727312088, 0.17075932025909424, 0.30814021825790405, 1.4740840196609497, 0.11985278129577637, 0.4396037757396698, 0.4718366861343384, -0.21433162689208984, 0.35951554775238037, -0.1504836082458496, 0.06511247158050537, -0.14330406486988068, -0.13667473196983337, -0.012960987165570259, -0.11108263581991196, -0.16461920738220215, -0.06198836863040924, -0.21331177651882172, 0.05109952762722969, -0.2696791887283325, 0.3344050943851471, 0.28084439039230347, 0.11845777928829193, 0.04689718782901764, -0.4391267001628876, 0.09620071947574615, 0.08822553604841232, 0.021371856331825256, -0.15697558224201202, -0.2618071138858795, -0.3120558261871338, -0.1774166226387024, 0.18133875727653503, -0.06813207268714905, -0.0023865867406129837, -0.26443925499916077, 0.1312597393989563, 0.07906734943389893, -0.28220808506011963, 0.15574713051319122, -0.09311245381832123, 0.19442777335643768, -0.014483831822872162, -0.05452796071767807, 0.15326060354709625, 0.2357514202594757, 0.3142167031764984, -0.020363103598356247, -0.19715289771556854, 0.6050646305084229, 0.04975772649049759, 0.1738152801990509, 0.2549547255039215, -0.16985458135604858, -0.46373969316482544, -0.48508039116859436, -0.1914973109960556, 0.43238091468811035, -0.3245505690574646, -0.28673067688941956, 0.37913084030151367, -0.13456536829471588, -0.16988547146320343, 0.12452833354473114, 0.0421823188662529, -0.3630714416503906, 0.11251053214073181, -0.1042635440826416, -0.018568381667137146, 0.14273525774478912, 0.019428886473178864, -0.01349739357829094, -0.17058983445167542, 0.5215394496917725, 0.19731487333774567, -0.09699305891990662, -0.026044122874736786, 0.2847399115562439, 0.7214788794517517, -0.1707523763179779, 0.0744820311665535, -0.23517847061157227, -0.048299528658390045, 0.1829928457736969, 0.3959405720233917, 0.38782912492752075, 0.1449732631444931, -0.17102131247520447, 0.14562714099884033, -0.36110278964042664, 0.2674306035041809, 0.15959371626377106, 0.3780478835105896, -0.23878172039985657, 0.4302406311035156, -0.12877728044986725, 0.19621002674102783, -0.3402448892593384, -0.2601529061794281, 0.033504337072372437, 0.00899844616651535, -0.1712155044078827, 0.15536043047904968, -0.0855841115117073, -0.164012148976326, -0.013526199385523796, 0.20573334395885468, -0.1297004222869873, -0.11126083880662918, -0.02370934933423996, 0.1337941288948059, 0.27458861470222473, -0.009471272118389606, 0.06887299567461014, -0.05853547528386116, -0.3566800355911255, -0.050687696784734726, 0.1575254648923874, -0.30321964621543884, -0.13619476556777954, -0.14543716609477997, 0.1470738798379898, 0.013944111764431, -0.14311303198337555, -0.055678047239780426, 0.28956353664398193, 0.04110104218125343, 0.17294545471668243, 0.09699945151805878, -0.07714807242155075, -0.15710243582725525, 0.2712842524051666, 0.3950749635696411, 0.2532890737056732, -0.013631574809551239, 0.1299346387386322, -0.34177130460739136, -0.20771753787994385, -0.1022864431142807, 0.24922168254852295, 0.3057057857513428, -0.24127154052257538, -0.19662852585315704, 0.21354088187217712, 0.14748844504356384, -0.1558326780796051, 0.05853046849370003, -0.22571177780628204, 0.07583228498697281, -0.13977459073066711, 0.07722592353820801, -0.18959641456604004, 0.19837763905525208, -0.19723810255527496, 0.1778031587600708, -0.09121519327163696, -0.5206224918365479, 0.26618191599845886, 0.542644739151001, -0.3071504533290863, 0.20951125025749207, 0.24096733331680298, 0.1454978585243225, -0.23469632863998413, -0.08389391005039215, 0.17274096608161926, 0.39047473669052124, 0.027728792279958725, -0.0880180299282074, 0.11395737528800964, -0.38302940130233765, 0.05563347786664963, 0.4330395758152008, 0.0636800229549408, 0.38799065351486206, 0.17615804076194763, 0.23143580555915833, 0.0064274962060153484, -0.6695415377616882, 0.281368225812912, 0.1786263883113861, -0.22797861695289612, 0.22284823656082153, -0.23454490303993225, -0.20611707866191864, -0.23783567547798157, -0.10002273321151733, -0.12785181403160095, -0.1476902961730957, -0.15324026346206665, 0.07087116688489914, 0.09040022641420364, -0.11869679391384125, -0.2167583703994751, -0.047226183116436005, 0.5775460004806519, -0.04462133347988129, 0.1263384371995926, -0.12352178990840912, -0.24584442377090454, 0.0028756223618984222, -0.04496929794549942, 0.10913707315921783, 0.30209723114967346, 0.13067659735679626, -0.04308868199586868, 0.12188820540904999, -0.02573498710989952, 0.3533155024051666, 0.20409131050109863, 0.25230634212493896, -0.30482301115989685, 0.14546672999858856, 0.04850197583436966, -0.14855456352233887, 0.05115861818194389, -0.021508391946554184, 0.02644660323858261, -0.44565489888191223, 0.3181927800178528, 0.15801090002059937, -0.40402454137802124, 0.041149452328681946, 0.1463342010974884, -0.10719898343086243, -0.025254037231206894, 0.34699776768684387, 0.06533421576023102, -0.022121703252196312, -0.08874049782752991, 0.0716591328382492, 0.31189581751823425, 0.4345814287662506, 0.5823854804039001, -0.03986583650112152, -0.16188153624534607, -0.23305635154247284, -0.8001623153686523, 0.0407748818397522, 0.03602403402328491, -0.10435818880796432, 0.3642292022705078, 0.08526860922574997, 0.6493053436279297, 0.15882883965969086, 0.17510943114757538, -0.28195881843566895, -0.06889498978853226, -0.13083207607269287, -0.3348686695098877, -0.09944716095924377, -0.07727931439876556, 0.059613414108753204, 0.06318920105695724, -0.18661996722221375, 0.08897947520017624, 0.1395299732685089, 0.027529597282409668, -0.0146985724568367, 0.1239217221736908, 0.22343239188194275, 0.07599681615829468, 0.2861485481262207, 0.07590127736330032, 0.09947434067726135, 0.04804856330156326, 0.03209727257490158, 0.13874487578868866, -0.12049597501754761, -0.5760180354118347, 0.19220134615898132, -0.12347759306430817, 0.1167341023683548, 0.08726423233747482, -0.28297844529151917, -0.1666969209909439, -0.025579087436199188, 0.14748339354991913, -0.1680566370487213, -0.38644540309906006, 0.1328192800283432, 0.13474377989768982, -0.02925495244562626, 0.3206113278865814, 0.5938405990600586, 0.07059425860643387, 0.18830475211143494, -0.3777492046356201, -0.1977430135011673, 0.4472684860229492, -0.2196439653635025, -0.44040408730506897, 0.09742318838834763, -0.002535507082939148, 0.20840537548065186, 0.08266273140907288, -0.6006680727005005, -0.21684718132019043, 0.12428652495145798, -0.24301335215568542, -0.030343376100063324, 0.6205375790596008, 0.2383732795715332, 0.1792791187763214, -0.17385751008987427, 0.32833653688430786, -0.04980696737766266, -0.00010387040674686432, -0.04376225918531418, -0.3212992548942566 ]
https://github.com/huggingface/datasets/pull/2721
Deal with the bad check in test_load.py
Hi ! I did a change for this test already in #2662 : https://github.com/huggingface/datasets/blob/00686c46b7aaf6bfcd4102cec300a3c031284a5a/tests/test_load.py#L312-L316 (though I have to change the variable name `m_combined_path` to `m_url` or something) I guess it's ok to remove this check for now :)
This PR removes a check that's been added in #2684. My intention with this check was to capture an URL in the error message, but instead, it captures a substring of the previous regex match in the test function. Another option would be to replace this check with: ```python m_paths = re.findall(r"\S*_dummy/_dummy.py\b", str(exc_info.value)) # on Linux this will match an URL as well as a local_path due to different os.sep, so take the last element (an URL always comes last in the list) assert len(m_paths) > 0 and is_remote_url(m_paths[-1]) # is_remote_url comes from datasets.utils.file_utils ``` @lhoestq Let me know which one of these two approaches (delete or replace) do you prefer?
38
text: Deal with the bad check in test_load.py This PR removes a check that's been added in #2684. My intention with this check was to capture an URL in the error message, but instead, it captures a substring of the previous regex match in the test function. Another option would be to replace this check with: ```python m_paths = re.findall(r"\S*_dummy/_dummy.py\b", str(exc_info.value)) # on Linux this will match an URL as well as a local_path due to different os.sep, so take the last element (an URL always comes last in the list) assert len(m_paths) > 0 and is_remote_url(m_paths[-1]) # is_remote_url comes from datasets.utils.file_utils ``` @lhoestq Let me know which one of these two approaches (delete or replace) do you prefer? Hi ! I did a change for this test already in #2662 : https://github.com/huggingface/datasets/blob/00686c46b7aaf6bfcd4102cec300a3c031284a5a/tests/test_load.py#L312-L316 (though I have to change the variable name `m_combined_path` to `m_url` or something) I guess it's ok to remove this check for now :)
[ 0.2068440467119217, -0.2557399868965149, -0.0822576954960823, -0.12292145192623138, 0.019279886037111282, -0.1447150707244873, 0.11594212055206299, 0.35592180490493774, 0.16881129145622253, -0.0991504043340683, -0.034315839409828186, -0.06767026335000992, -0.20166124403476715, 0.0521269217133522, 0.32282301783561707, 0.07135514914989471, -0.12408577650785446, 0.09720496088266373, 0.14629407227039337, 0.10541072487831116, -0.39983364939689636, 0.13796481490135193, -0.10862050950527191, 0.14288705587387085, 0.020212234929203987, 0.031411029398441315, 0.07091641426086426, 0.49197471141815186, 0.09450379759073257, -0.7063220143318176, 0.2056090235710144, -0.05817631259560585, -0.02875509485602379, 0.26768845319747925, -0.00010693271178752184, -0.04763105511665344, 0.3324160575866699, -0.12700290977954865, -0.1848415583372116, -0.25740498304367065, -0.06067459657788277, 0.10686545819044113, -0.028669139370322227, -0.08215855062007904, 0.1753835678100586, -0.03701383247971535, -0.13930706679821014, -0.15863387286663055, 0.10389620065689087, 0.6009811758995056, 0.23783482611179352, 0.3721756041049957, -0.21216939389705658, 0.20751135051250458, 0.19108474254608154, -0.06168058514595032, 0.3972262442111969, 0.23933818936347961, 0.19479776918888092, -0.20429494976997375, -0.05667588859796524, 0.20554591715335846, -0.29050886631011963, -0.07513867318630219, -0.04917145520448685, -0.02531607821583748, 0.2605452239513397, -0.0819605141878128, -0.2047337293624878, 0.10058283805847168, -0.1417115032672882, -0.22837233543395996, -0.17221909761428833, -0.01276765763759613, -0.24293363094329834, -0.16685126721858978, 0.328121155500412, 0.14418281614780426, -0.22226519882678986, 0.3713643550872803, -0.37554845213890076, -0.1982906460762024, -0.08549380302429199, -0.06705871224403381, -0.3481360971927643, 0.15700826048851013, 0.13456209003925323, -0.04232943058013916, 0.15411067008972168, 0.16418331861495972, -0.11278847604990005, -0.09489865601062775, -0.11001560091972351, -0.03731590509414673, -0.052307527512311935, -0.3055524528026581, -0.04172805696725845, 0.019850444048643112, 0.37665805220603943, 0.47317421436309814, 0.06266586482524872, -0.002289373427629471, -0.21880687773227692, 0.023192692548036575, -0.040206994861364365, 0.35196739435195923, 0.021311935037374496, 0.12293944507837296, 0.23494206368923187, 0.32423651218414307, 0.11351536214351654, 0.002713032066822052, 0.21542897820472717, -0.39625975489616394, 0.01803889125585556, 0.17792221903800964, 0.443020224571228, -0.28357183933258057, -0.4965125024318695, 0.35896244645118713, -0.26393887400627136, -0.2281845510005951, 0.2026851624250412, 0.4990266263484955, -0.1964140385389328, 0.18121734261512756, 0.21230442821979523, 0.18913263082504272, -0.022451922297477722, -0.06613419950008392, -0.11806344240903854, 0.2722929120063782, -0.1545296460390091, -0.05049760639667511, -0.1300191581249237, -0.012659069150686264, 0.4070449471473694, -0.1771491914987564, 0.2618008255958557, -0.23790311813354492, -0.02983618900179863, -0.18277785181999207, 0.6743177771568298, 0.28735247254371643, -0.3091356158256531, -0.12442699819803238, 0.22436197102069855, -0.21820791065692902, -0.05840233713388443, 0.38048362731933594, 0.020945031195878983, -0.5480530858039856, 0.19261173903942108, 0.20696568489074707, -0.40772801637649536, -0.1654299944639206, -0.18532097339630127, -0.1344086080789566, -0.29195863008499146, -0.08148344606161118, 0.3133654296398163, -0.12802952527999878, 0.04604974761605263, -0.1800391674041748, 0.45625564455986023, 0.5102871656417847, 0.10558521747589111, 0.1922779083251953, -0.07828043401241302, -0.32092541456222534, 0.24628469347953796, 0.2775278687477112, -0.15623509883880615, 0.1849862039089203, -0.2972921133041382, 0.10202765464782715, 0.38392379879951477, -0.5037078857421875, 0.020795736461877823, 0.4744243025779724, -0.3089442849159241, 0.18335826694965363, 0.24051618576049805, -0.32340285181999207, -0.2779942452907562, -0.21383562684059143, 0.24347691237926483, 0.0706782266497612, 0.016307830810546875, 0.0073367152363061905, -0.5224568247795105, -0.16776953637599945, 0.04430504888296127, 0.04536740854382515, 0.19384261965751648, 0.030177250504493713, -0.09496686607599258, -0.2102040797472, 0.658743679523468, 0.1378822773694992, -0.26152604818344116, 0.08709681034088135, 0.6007329821586609, -0.14640608429908752, -0.2189902365207672, -0.02081560157239437, -0.1527710258960724, 0.1307642161846161, -0.19849605858325958, 0.0024878904223442078, -0.19586576521396637, -0.21250666677951813, -0.47500839829444885, 0.018577834591269493, -0.24378667771816254, -0.34969082474708557, 0.11275698244571686, 0.05380610376596451, 0.02551698312163353, -0.02805694192647934, -0.273375928401947, 0.08761022984981537, -0.1918530911207199, 0.1091691255569458, -0.0575745590031147, 0.22943510115146637, -0.13209757208824158, 0.21362082660198212, -0.023146484047174454, 0.07939956337213516, 0.14569027721881866, -0.11368947476148605, 0.009873867966234684, 0.7284031510353088, 0.13898593187332153, 0.08587893098592758, 0.19746467471122742, -0.11408795416355133, 0.03441566601395607, -0.3338814079761505, -0.053462691605091095, 0.44625410437583923, 0.19294393062591553, 0.13630887866020203, -0.19373437762260437, 0.17884795367717743, -0.37654873728752136, -0.0642586424946785, 0.17363090813159943, -0.012734432704746723, 0.08394598215818405, -0.2814166843891144, -0.2564812898635864, 0.0683363825082779, 0.18754659593105316, 0.13758374750614166, -0.0464291051030159, 0.12007416784763336, -0.25508373975753784, -0.3396070897579193, 0.05154934898018837, -0.36945706605911255, -0.2814643085002899, 0.25988706946372986, 0.10502248257398605, -0.19707250595092773, 0.045548439025878906, 0.45593276619911194, 0.38222843408584595, 0.11413214355707169, -0.03870305046439171, 0.24415741860866547, 0.14121927320957184, -0.056401703506708145, 0.3788156807422638, 0.301701158285141, -0.23985090851783752, 0.08925535529851913, 0.07062773406505585, -0.014273337088525295, -0.10844619572162628, -0.28455349802970886, -0.040224529802799225, 0.11516845226287842, -0.5958040952682495, 0.023444002494215965, -0.11568772792816162, 0.028932571411132812, -0.4816702604293823, -0.02098972722887993, -0.3491747975349426, -0.24893687665462494, 0.03912939876317978, -0.06535419821739197, -0.3524732291698456, 0.171005979180336, -0.08390696346759796, 0.14885081350803375, -0.14680984616279602, -0.7006937861442566, -0.0627826526761055, 0.012101944535970688, -0.18959957361221313, 0.13300558924674988, 0.2307879626750946, 0.24131245911121368, 0.21190322935581207, -0.30513033270835876, -0.4292113184928894, -0.3022334575653076, -0.15081274509429932, -0.011702768504619598, -0.0690893903374672, 0.18445973098278046, 0.4921312928199768, 0.3042895793914795, 0.05303336679935455, -0.22363345324993134, 0.0211620070040226, -0.22816166281700134, -0.18605445325374603, 0.023811399936676025, 0.302584171295166, 0.3254130482673645, -0.038272514939308167, -0.5594207048416138, -0.07028533518314362, -0.3426034450531006, 0.1690809577703476, -0.07937809824943542, 0.06765467673540115, 0.27153050899505615, -0.05489863455295563, 0.09675765782594681, -0.36761996150016785, -0.015546197071671486, -0.15256457030773163, -0.4261932671070099, -0.01636457070708275, 0.21434944868087769, -0.2550356090068817, -0.17353427410125732, -0.10794402658939362, 0.038619183003902435, 0.019264455884695053, -0.36778366565704346, -0.4829765260219574, -0.12462261319160461, 0.004217643290758133, -0.050747573375701904, 0.018831659108400345, 0.22566786408424377, 0.07929441332817078, -0.2577219605445862, -0.02121792733669281, -0.10380758345127106, 0.11112210154533386, 0.2653210163116455, 0.42688804864883423, 0.2163189947605133, 0.14348754286766052, -0.002199660986661911, 0.25560855865478516, 0.15140408277511597, 0.17515839636325836, 0.26179730892181396, -0.14587245881557465, 0.3051484227180481, 0.1564217507839203, -0.24221459031105042, -0.056389160454273224, 0.036836571991443634, -0.3714485168457031, 0.1838521659374237, -0.17719152569770813, 0.16811910271644592, -0.10398490726947784, -0.25801852345466614, -0.2573956847190857, -0.25475478172302246, 0.2253125160932541, -0.18783073127269745, 0.005005188286304474, -0.07218076288700104, -0.21061047911643982, 0.02343987673521042, -0.023808438330888748, 0.17928168177604675, 0.28578662872314453, 0.3431948125362396, -0.12681949138641357, -0.345838338136673, 0.003099391469731927, -0.11900537461042404, 0.3713623881340027, 0.28297099471092224, 0.42615532875061035, -0.005342297255992889, -0.5113410353660583, -0.12691551446914673, -0.0527195930480957, 0.3222651481628418, -0.25991398096084595, 0.03227609768509865, -0.09858685731887817, -0.028194960206747055, -0.11040648072957993, 0.14526957273483276, -0.13464611768722534, -0.028373247012495995, 0.3343890905380249, 0.23550109565258026, -0.09279192239046097, -0.22006377577781677, 0.3074086606502533, 0.2330438643693924, -0.10199406743049622, -0.013113441877067089, -0.48940831422805786, -0.5227707028388977, -0.27683350443840027, 0.31895560026168823, 0.4370538592338562, 0.031775638461112976, 0.04903537780046463, 0.014241617172956467, 0.21250015497207642, -0.14002856612205505, 0.35325300693511963, -0.001885424368083477, 0.36207059025764465, -0.22335250675678253, -0.011692220345139503, -0.008841298520565033, -0.07199914753437042, 0.3196304142475128, 0.42534273862838745, -0.489766925573349, 0.0845712423324585, -0.2571301758289337, 0.06617026031017303, 0.5852877497673035, 0.49321821331977844, -0.10273327678442001, -0.0992436632514, 0.14593127369880676, 0.09014659374952316, -0.36216139793395996, 0.23029229044914246, 0.129892960190773, -0.0023058350197970867, -0.14165127277374268, -0.15205171704292297, 0.1636001169681549, 0.015022523701190948, -0.18810193240642548, 0.22946292161941528, 0.3002793788909912, -0.2548081874847412, 0.3865358233451843, 0.18435880541801453, 1.0494613647460938, 0.08172062039375305, 0.09042499959468842, 0.19364312291145325, 0.035158880054950714, -0.030398041009902954, -0.09145033359527588, 0.11444958299398422, -0.32267484068870544, -0.254733681678772, 0.01353440247476101, -0.23916244506835938, 0.1968725621700287, -0.1351984590291977, -0.28593385219573975, 0.30952414870262146, 0.012483745813369751, 0.193581685423851, 0.26376497745513916, 0.3670380711555481, -0.13523398339748383, 0.33945053815841675, -0.44134199619293213, 0.12317293882369995, 0.0010411813855171204, 0.07434788346290588, -0.08007189631462097, -0.10194572806358337, 0.04121282324194908, -0.5383877158164978, -0.08899839222431183, -0.1624768078327179, -0.1623702347278595, -0.08600106835365295, 0.04507369548082352, -0.1447950303554535, -0.1926371455192566, 0.2463509887456894, 0.16120338439941406, 0.14992447197437286, -0.007979346439242363, 0.2569698393344879, 0.06761566549539566, 0.26116663217544556, 0.18335261940956116, -0.004752244334667921, 0.18821439146995544, -0.0400819256901741, -0.3442126214504242, 0.05548333004117012, -0.20212127268314362, -0.3058881163597107, -0.037783585488796234, 0.06254249811172485, -0.13053470849990845, -0.3127468526363373, -0.06613604724407196, -0.07576711475849152, -0.12194378674030304, -0.21082478761672974, 0.13759753108024597, 0.12057608366012573, -0.42056038975715637, 0.16926506161689758, 0.2622023820877075, -0.42168354988098145, -0.07872466742992401, 0.050819240510463715, -0.21738100051879883, -0.006769482046365738, 0.37306827306747437, -0.18763408064842224, -0.006430787965655327, -0.37328818440437317, 0.17292261123657227, 0.1735324114561081, -0.26801368594169617, 0.26982980966567993, -0.24429066479206085, 0.1001591682434082, 0.00039157288847491145, 0.42568278312683105, 0.21448808908462524, 0.1982395052909851, -0.03345334902405739, -0.14775703847408295, -0.2120523899793625, 0.18805000185966492, 0.002175144851207733, 0.5131749510765076, -0.02426259033381939, 0.32248952984809875, -0.03027988411486149, -0.11757741868495941, -0.38691073656082153, 0.10855298489332199, -0.5005601048469543, 0.09724566340446472, -0.15194383263587952, -0.011089745908975601, 0.5658437609672546, -0.14011366665363312, 0.18613483011722565, 0.07797452807426453, 0.03919093310832977, -0.18851396441459656, -0.017501071095466614, 0.15089452266693115, 0.013353106565773487, -0.07944057881832123, 0.07426019757986069, 0.09901342540979385, 0.172787144780159, 0.09625734388828278, -0.019138943403959274, 0.24447080492973328, 0.17833027243614197, 0.2103528082370758, 0.10718631744384766, -0.35699188709259033, -0.19796457886695862, -0.13186366856098175, -0.3959358334541321, 0.1966148465871811, 0.11304013431072235, 0.08317369222640991, -0.2958487272262573, -0.17209556698799133, 0.14923547208309174, 0.1580100953578949, 0.09348656237125397, 0.32955148816108704, -0.11985336989164352, 0.153384730219841, -0.41898825764656067, -0.09990885853767395, 0.5085107088088989, 0.35160312056541443, -0.28343909978866577, -0.0958300530910492, 0.2568221390247345, 0.2752768397331238, -0.3169805109500885, 0.22238323092460632, 0.035016655921936035, -0.325067400932312, 0.03086315467953682, 0.33247828483581543, 0.10881948471069336, -0.06279429793357849, 0.32125282287597656, 0.17728853225708008, 0.6393745541572571, -0.08349189907312393, -0.02070900984108448, 0.07868842780590057, -0.2291633039712906, -0.09446603059768677, 0.13394272327423096, 0.08059509843587875, 0.28019145131111145, -0.15847176313400269, -0.29163244366645813, 0.2229005992412567, -0.1594715416431427, 0.08618784695863724, -0.1384398639202118, -0.08731243759393692, 0.3387870788574219, 0.12825357913970947, -0.17298439145088196, -0.20439651608467102, 0.24512061476707458, 0.4782780706882477, -0.03271491453051567, 0.1600731909275055, 0.06620792299509048, 0.22391468286514282, 0.11406596750020981, -0.049041520804166794, 0.03488700091838837, -0.17441663146018982, -0.2385847419500351, -0.11943738162517548, 0.39483222365379333, -0.09694944322109222, 0.36933737993240356, 0.24264387786388397, -0.04749229550361633, -0.1967482566833496, -0.19174012541770935, -0.19340261816978455, 0.24776673316955566, -0.3597813546657562, -0.09256789088249207, 0.3572079539299011, 0.02773457020521164, 0.44464606046676636, 0.23925292491912842, 0.44298356771469116, 0.060521505773067474, 0.0169180016964674, -0.07640604674816132, -0.33920997381210327, 0.06995345652103424, 0.08445268124341965, 0.16341187059879303, -0.0290464386343956, 0.08596990257501602, 0.47503378987312317, 0.26237839460372925, -0.035017430782318115, 0.20109258592128754, 0.001640230417251587, -0.28924915194511414, -0.26887035369873047, 0.6645556092262268, 0.4413726329803467, -0.0153239406645298, -0.4811330735683441, -0.09661560505628586, -0.374629944562912, -0.06942062824964523, 0.2420801967382431, 0.04071160778403282, 0.2709144055843353, 0.24294371902942657, 0.13293126225471497, 0.27488061785697937, 0.10300754010677338, 0.28371813893318176, 0.11346110701560974, -0.540553629398346, -0.01679394394159317, -0.7950999140739441, 0.042463161051273346, -0.00035360828042030334, -0.1246304139494896, 0.1400783509016037, -0.1177937313914299, -0.06576988846063614, 0.10783907771110535, -0.0715649425983429, 0.16983968019485474, -0.14525659382343292, -0.07247693836688995, -0.07186232507228851, 0.16287563741207123, 0.10323995351791382, 0.11580011993646622, 0.03684090077877045, -0.19575554132461548, 0.03856859728693962, -0.15974795818328857, 0.09597495943307877, -0.07237358391284943, -0.12585338950157166, 0.07380834221839905, 0.15364301204681396, 0.15684479475021362, 0.2252165973186493, 0.3960822522640228, -0.11299682408571243, -0.11109863221645355, -0.04715868458151817, 0.004727425519376993, -0.058216046541929245, 0.031184419989585876, 0.08689285814762115, 0.2184942364692688, 0.17195755243301392, -0.2061481475830078, -0.4016674757003784, 0.3745436370372772, 0.054648056626319885, -0.28901463747024536, -0.3868602514266968, -0.11652057617902756, 0.23002883791923523, -0.06260266900062561, 0.07040437310934067, 0.2595463693141937, -0.1545908898115158, 0.2764313220977783, -0.4119309186935425, -0.46736058592796326, 0.9212532043457031, -0.17534001171588898, -0.0938417911529541, 0.07740645855665207, 0.4904800057411194, -0.08092664927244186, 0.04232972115278244, -0.7158986926078796, -0.11910426616668701, 0.2962310314178467, 0.19927698373794556, -0.3271401822566986, 0.11905840039253235, 0.005516194272786379, 0.18535350263118744, -0.005647283047437668, -0.19261476397514343, 0.055484838783741, -0.12338964641094208, -0.024838466197252274, -0.2866398096084595 ]
https://github.com/huggingface/datasets/pull/2718
New documentation structure
I just did some minor changes + added some content in these sections: share, about arrow, about cache Feel free to mark this PR as ready for review ! :)
Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here).
30
text: New documentation structure Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here). I just did some minor changes + added some content in these sections: share, about arrow, about cache Feel free to mark this PR as ready for review ! :)
[ 0.0038277842104434967, -0.14054013788700104, -0.11001619696617126, 0.1895045042037964, 0.09673876315355301, 0.12214580923318863, -0.02582031860947609, 0.2124112993478775, -0.2166290134191513, -0.007459625601768494, -0.14329221844673157, 0.45627492666244507, -0.04825633764266968, 0.16855747997760773, 0.2990531921386719, -0.3008522391319275, 0.1947326958179474, 0.02157554030418396, -0.009508185088634491, 0.07415518164634705, 0.0900236964225769, -0.1259460151195526, -0.07561898231506348, -0.134512796998024, -0.3154906928539276, -0.2578745484352112, -0.14585326611995697, 0.22683429718017578, -0.5146740078926086, -0.6974483132362366, 0.022306082770228386, 0.3596045970916748, 0.06369497627019882, 0.23808804154396057, -0.00010678896069293842, -0.15667691826820374, 0.28196781873703003, 0.29043319821357727, -0.2931692600250244, 0.2541639804840088, -0.2336975336074829, -0.39123618602752686, 0.31194910407066345, 0.13263681530952454, 0.1353359818458557, -0.36620232462882996, -0.09319791942834854, 0.027989327907562256, 0.11495808511972427, -0.003915803041309118, 0.2042692005634308, 0.01479421928524971, 0.022837292402982712, -0.06289305537939072, -0.042297132313251495, 0.5305137038230896, -0.3348756730556488, 0.2820717692375183, 0.4432521164417267, 0.16796347498893738, -0.3612382709980011, 0.32645875215530396, 0.03832896053791046, -0.10054531693458557, 0.43289420008659363, -0.05274055898189545, -0.20204764604568481, -0.2039743959903717, 0.05271342396736145, 0.4390162527561188, 0.9276143312454224, -0.22019410133361816, -0.35308295488357544, -0.3051740825176239, -0.049785759299993515, -0.026453526690602303, -0.03978293389081955, 0.16402463614940643, 0.024420689791440964, 0.07962839305400848, -0.13603410124778748, -0.3551022410392761, -0.27820852398872375, -0.06427793204784393, 0.2528344988822937, 0.12759391963481903, -0.1761278361082077, -0.16976460814476013, 0.07896237075328827, 0.00822165235877037, 0.23497427999973297, -0.04346523433923721, -0.2628692388534546, 0.18589699268341064, -0.09103313088417053, -0.20916152000427246, 0.26583945751190186, 0.01978049799799919, 0.36846864223480225, 0.0748029351234436, 0.10312698036432266, 0.15099874138832092, -0.3139766752719879, -0.11016315966844559, 0.34781649708747864, -0.06083451956510544, 0.09390857070684433, 0.1868702471256256, 0.11083565652370453, 0.1784856915473938, 0.37355688214302063, -0.18530699610710144, 0.041068125516176224, 0.01299551036208868, -0.2109786570072174, -0.21033579111099243, 0.17728783190250397, -0.1559382826089859, 0.07278184592723846, -0.10022448748350143, 0.027318254113197327, -0.2204766869544983, -0.049272965639829636, 0.2090170979499817, 0.09922559559345245, 0.2699965238571167, -0.028389357030391693, 0.025697145611047745, -0.07084859907627106, -0.07102927565574646, -0.10785982012748718, 0.03816251456737518, -0.359764963388443, 0.33594682812690735, -0.06695973128080368, 0.05457116290926933, 0.111307293176651, 0.32483235001564026, 0.03812309727072716, -0.05512996390461922, 0.05512417107820511, 0.17920349538326263, 0.34420686960220337, 0.11996890604496002, -0.34544143080711365, 0.1295100748538971, -0.0762656033039093, 0.17299123108386993, -0.11491363495588303, -0.01768808811903, -0.0880478098988533, -0.5023196339607239, -0.3931528627872467, 0.16698291897773743, 0.08205091208219528, -0.07767266780138016, -0.33926576375961304, 0.4102896749973297, -0.24637091159820557, 0.08543893694877625, 0.32427558302879333, 0.42312777042388916, -0.0887564942240715, -0.20199573040008545, 0.1419433206319809, 0.37426406145095825, -0.30577391386032104, -0.19199742376804352, -0.16286379098892212, -0.008783310651779175, -0.06531644612550735, 0.35854247212409973, -0.2700733244419098, 0.3394193947315216, -0.15259064733982086, 0.10394203662872314, 0.3090152442455292, -0.36624211072921753, -0.059018246829509735, 0.23082853853702545, 0.09304989874362946, 0.12174881249666214, -0.01842799037694931, -0.07894964516162872, 0.20019349455833435, -0.02347448095679283, -0.04875747859477997, -0.23470909893512726, -0.16207510232925415, 0.12212667614221573, -0.2312398999929428, -0.05804477632045746, 0.03644159436225891, -0.08333946764469147, -0.2468234747648239, -0.13299041986465454, 0.028552643954753876, -0.30846211314201355, 0.4267204999923706, -0.17046082019805908, 0.054784342646598816, 0.3428594470024109, 0.49427542090415955, 0.1665629744529724, 0.055925849825143814, -0.019546743482351303, -0.5192738175392151, 0.04983273148536682, 0.4256361722946167, 0.3617545962333679, 0.04954593628644943, -0.292727530002594, -0.19877463579177856, -0.05940821021795273, -0.14682543277740479, -0.5254729390144348, 0.1492142528295517, -0.20465579628944397, -0.11016292870044708, 0.06913955509662628, -0.2855914235115051, 0.17927871644496918, -0.42974653840065, 0.16266939043998718, -0.21876296401023865, 0.09743542969226837, 0.03883451223373413, 0.10134526342153549, -0.09719531983137131, 0.18006101250648499, -0.21288257837295532, 0.11684723198413849, -0.06175699830055237, 0.4289261996746063, 0.0954902246594429, 0.1148543730378151, 0.2815576493740082, 0.41831478476524353, 0.4229142963886261, -0.3927900195121765, 0.2895441949367523, -0.3310258388519287, 0.039908330887556076, 0.023580238223075867, -0.33145028352737427, 0.0407402366399765, -0.1740376204252243, 0.20334018766880035, 0.020539790391921997, 0.029113980010151863, 0.04202662408351898, 0.1762794703245163, -0.22322510182857513, -0.02551671490073204, -0.10448184609413147, 0.088971808552742, 0.14668303728103638, 0.1365027129650116, -0.2753620147705078, 0.4670451879501343, 0.3849678337574005, -0.13093061745166779, -0.25305017828941345, 0.24864104390144348, -0.2849741578102112, -0.31117740273475647, 0.39082610607147217, 0.1338583379983902, -0.02986358106136322, 0.26078927516937256, 0.349895715713501, 0.11644596606492996, 0.08893552422523499, 0.1549263745546341, 0.27114152908325195, 0.03410078212618828, -0.010893801227211952, -0.005857847630977631, -0.11987555772066116, 0.23272447288036346, -0.17280301451683044, -0.04584084451198578, -0.14130449295043945, 0.20798179507255554, -0.3254774808883667, -0.17227526009082794, 0.004964893683791161, -0.22428342700004578, -0.05319364368915558, -0.23148977756500244, -0.1376650631427765, -0.34281209111213684, -0.046343348920345306, -0.09367342293262482, -0.09445641934871674, 0.15065598487854004, 0.06404761970043182, 0.32949236035346985, -0.06290793418884277, 0.39574316143989563, -0.2530691623687744, -0.12160348892211914, 0.1633211076259613, 0.13025100529193878, 0.24791143834590912, 0.23307648301124573, 0.4228311777114868, 0.030926799401640892, 0.14761516451835632, -0.6822564005851746, -0.45365145802497864, 0.13680514693260193, -0.1929253786802292, -0.0012182015925645828, 0.3528696596622467, 0.1982816457748413, -0.18868063390254974, -0.1856284886598587, -0.07555130124092102, -0.1653551310300827, -0.3195892870426178, -0.15099002420902252, -0.18832315504550934, -0.037544552236795425, -0.08978546410799026, -0.5091170072555542, 0.10979017615318298, -0.5542938709259033, 0.561045229434967, -0.2790757119655609, 0.13568812608718872, 0.13279061019420624, 0.08045364916324615, 0.19698618352413177, -0.3382336497306824, 0.12051836401224136, -0.10982149839401245, -0.2738115191459656, -0.0705074667930603, -0.30953896045684814, -0.11745235323905945, -0.046527959406375885, 0.09246756881475449, 0.1717129796743393, -0.007134700194001198, -0.2895500063896179, 0.20970779657363892, -0.3194229006767273, 0.2508153021335602, 0.013032183051109314, 0.2875708341598511, 0.2864866554737091, 0.23857390880584717, -0.0967053771018982, 0.1289912760257721, -0.26183760166168213, -0.45143479108810425, 0.0010820254683494568, 0.13751846551895142, -0.12683862447738647, 0.20268505811691284, 0.169192373752594, 0.45159435272216797, 0.276872843503952, 0.15259021520614624, -0.08062346279621124, 0.05245763063430786, 0.4391660988330841, -0.18403193354606628, -0.2015235275030136, 0.2588560879230499, -0.10593798756599426, 0.17263856530189514, 0.15254224836826324, 0.28104978799819946, 0.029775768518447876, 0.16697245836257935, -0.198635995388031, -0.23592320084571838, -0.24878010153770447, 0.28063228726387024, -0.2360742688179016, 0.31481310725212097, -0.21778587996959686, -0.23024791479110718, -0.13542059063911438, 0.09388241916894913, 0.18082593381404877, 0.28007930517196655, 0.20078915357589722, -0.014217380434274673, -0.45386070013046265, 0.29315757751464844, -0.4804834723472595, 0.07555972039699554, 0.11739622056484222, -0.25950658321380615, -0.08131488412618637, -0.15903502702713013, 0.018444471061229706, 0.2072492390871048, 0.26495128870010376, -0.4176892638206482, -0.3994596600532532, 0.03924417868256569, 0.06107276678085327, -0.229026660323143, 0.2133098691701889, -0.18958070874214172, 0.1948329359292984, 0.18307854235172272, 0.16842323541641235, -0.22349706292152405, -0.4178968369960785, 0.22279685735702515, -0.09267942607402802, 0.11795033514499664, 0.041093066334724426, 0.1273925006389618, -0.15120774507522583, -0.1475302129983902, 0.028802551329135895, 0.15988792479038239, -0.24797073006629944, 0.001212629838846624, -0.2173556238412857, 0.20232100784778595, 0.26582810282707214, 0.0036367103457450867, 0.1606607437133789, 0.33762311935424805, -0.09704173356294632, 0.05577973648905754, 0.41427770256996155, 0.024894412606954575, 0.5128142237663269, 0.303173303604126, -0.1398150622844696, -0.1919552981853485, 0.011562165804207325, -0.22735095024108887, 0.48034995794296265, 0.3499235510826111, 0.1991097331047058, 0.18851937353610992, -0.009029299020767212, -0.011480443179607391, -0.45837071537971497, 0.032927144318819046, 0.2889195382595062, 0.19710618257522583, -0.36026525497436523, -0.5253759622573853, 0.5126047134399414, 0.26939040422439575, -0.3036752939224243, 0.5785514712333679, 0.7165629267692566, -0.19410106539726257, -0.008741827681660652, 0.26546528935432434, 0.847700297832489, 0.03359013795852661, 0.2369423657655716, 0.25271403789520264, -0.5200182199478149, 0.4224247634410858, -0.1958140730857849, -0.17304401099681854, -0.3492030203342438, 0.12530109286308289, -0.15092451870441437, -0.15099912881851196, 0.17398005723953247, 0.007747434079647064, -0.33769622445106506, -0.140900120139122, -0.04612625390291214, -0.01954338327050209, -0.03625519573688507, 0.38337451219558716, -0.12486118823289871, -0.29205599427223206, 0.0028088781982660294, 0.1509590893983841, -0.06288321316242218, -0.4074253737926483, -0.15666338801383972, -0.12390244007110596, -0.16525255143642426, 0.005486138164997101, -0.5050848722457886, -0.28651538491249084, 0.04199555143713951, -0.08722344785928726, 0.23858840763568878, -0.18404380977153778, 0.5169252157211304, 0.044155098497867584, 0.06936103105545044, -0.051879871636629105, -0.2955925166606903, 0.13419291377067566, 0.005258604884147644, 0.11093170940876007, 0.02830469235777855, -0.20015202462673187, 0.2655567526817322, 0.09478876739740372, -0.1827443242073059, -0.16309043765068054, -0.11830993741750717, -0.1980988085269928, -0.13780248165130615, -0.06722570955753326, -0.01617855578660965, -0.5523137450218201, -0.03448314219713211, 0.1689404398202896, -0.22945933043956757, -0.0807972103357315, 0.1623278707265854, 0.2935369312763214, -0.1579257994890213, 0.1090594008564949, 0.4019307792186737, 0.011607684195041656, -0.07555021345615387, -0.14086991548538208, -0.07735075801610947, -0.0033204369246959686, 0.008378159254789352, 0.13091255724430084, -0.40162187814712524, -0.3432997167110443, 0.028459496796131134, 0.5879030823707581, -0.15544331073760986, 0.02671121060848236, -0.03223530203104019, -0.1633816808462143, 0.08089561015367508, 0.07218596339225769, 0.13092055916786194, 0.08476041257381439, -0.2157648205757141, 0.1106281578540802, -0.3031383752822876, 0.498043954372406, -0.4700826108455658, 0.35569676756858826, -0.4330379068851471, -0.10841505229473114, 0.02060495875775814, 0.264897882938385, -0.37736156582832336, 0.010464899241924286, 0.028408976271748543, 0.08141133189201355, 0.229056254029274, -0.022177062928676605, 0.10155176371335983, -0.3050704598426819, 0.04932549595832825, -0.07855867594480515, -0.09334960579872131, -0.2312433123588562, -0.11647537350654602, 0.1272227168083191, 0.019777445122599602, -0.18595361709594727, 0.27483251690864563, 0.12899424135684967, -0.08617866039276123, -0.23119476437568665, 0.28468725085258484, -0.03681247681379318, 0.011253517121076584, 0.29125362634658813, -0.05793330445885658, 0.0367351770401001, -0.02969074808061123, 0.14149491488933563, 0.244937926530838, 0.1473088413476944, 0.19899430871009827, -0.07234212011098862, -0.19608530402183533, -0.11819543689489365, 0.2914809286594391, 0.5133767127990723, 0.26289135217666626, 0.08273489028215408, 0.18643462657928467, 0.13281705975532532, -0.08781358599662781, -0.11621604114770889, 0.3575267195701599, 0.2308189868927002, -0.0689283236861229, -0.07052820175886154, -0.04720580577850342, 0.23823201656341553, 0.0462360605597496, -0.0897572785615921, 0.045988716185092926, -0.23068547248840332, 0.15715260803699493, -0.03339923173189163, 0.3263440728187561, 0.11094297468662262, 0.026148293167352676, 0.020591840147972107, 0.057359617203474045, -0.29564422369003296, 0.2729249894618988, 0.028161175549030304, -0.16415788233280182, -0.17729094624519348, 0.45366033911705017, 0.14309579133987427, 0.029130779206752777, -0.09043940901756287, 0.4032113254070282, 0.20274826884269714, 0.15405410528182983, 0.21310171484947205, 0.1373380571603775, -0.019198361784219742, 0.10664412379264832, 0.09312878549098969, -0.08600613474845886, -0.20405033230781555, 0.06434524804353714, 0.2567906081676483, 0.3186081349849701, -0.42467188835144043, 0.06149083375930786, -0.13770289719104767, -0.14678213000297546, -0.009343774989247322, 0.06697265058755875, -0.17037555575370789, -0.04302915185689926, -0.22154900431632996, -0.012854572385549545, -0.2505006790161133, 0.41585588455200195, -0.12140007317066193, 0.11360909044742584, -0.38336294889450073, 0.37042272090911865, 0.11872785538434982, 0.3552023470401764, 0.0498073436319828, -0.04402982443571091, -0.065203458070755, -0.09285628795623779, -0.2508377432823181, 0.6926494240760803, 0.3855215907096863, 0.08683817833662033, -0.14749307930469513, 0.25958406925201416, -0.07431846857070923, -0.016785811632871628, 0.34966540336608887, 0.008049406111240387, 0.03634224459528923, -0.3361964821815491, -0.09536400437355042, 0.1626393347978592, -0.11093860119581223, 0.123512864112854, -0.2222779244184494, -0.03402717784047127, -0.02278778702020645, -0.056660063564777374, 0.02019296959042549, -0.31993934512138367, -0.02101271227002144, 0.03414208069443703, -0.19592949748039246, -0.08737168461084366, 0.7598002552986145, -0.17207905650138855, -0.15389111638069153, -0.1954466849565506, 0.1170298159122467, 0.3652639389038086, 0.42232656478881836, 0.3955426514148712, 0.37058618664741516, 0.043760091066360474, -0.39314669370651245, -0.3210131525993347, -0.13916704058647156, -0.08160628378391266, -0.022960906848311424, 0.15859663486480713, 0.20684748888015747, 0.09134875237941742, 0.13723096251487732, 0.23970282077789307, -0.32116639614105225, 0.0652434229850769, -0.10532170534133911, -0.319869726896286, 0.06015486270189285, 0.23596355319023132, 0.106610968708992, -0.13670843839645386, 0.029878273606300354, -0.0411796011030674, 0.14720170199871063, 0.028353214263916016, -0.014196988195180893, 0.32503440976142883, 0.14790956676006317, 0.258733332157135, 0.08975225687026978, 0.25819310545921326, 0.12255977094173431, -0.07391726970672607, -0.456848680973053, -0.336023211479187, -0.16836008429527283, -0.05595126003026962, 0.5496188998222351, 0.056333452463150024, 0.38485077023506165, -0.20910103619098663, -0.2822175621986389, -0.1959937959909439, 0.05612696707248688, 0.06725507229566574, -0.07298234105110168, -0.49171340465545654, 0.23155811429023743, 0.13447991013526917, -0.18250639736652374, 0.07045643031597137, 0.41893747448921204, -0.06780350208282471, -0.05314682424068451, -0.2792663872241974, -0.34252607822418213, 0.3680562376976013, 0.1530151516199112, -0.11325947940349579, 0.23941130936145782, 0.041292786598205566, 0.3633209466934204, -0.030895231291651726, -1.0104786157608032, -0.18560361862182617, 0.23230384290218353, -0.0543619841337204, -0.3172571063041687, 0.287499338388443, 0.16490116715431213, 0.016230355948209763, -0.1920538693666458, 0.6081092357635498, -0.05070550739765167, -0.05929639935493469, -0.04829858988523483, -0.2650461792945862 ]
https://github.com/huggingface/datasets/pull/2718
New documentation structure
I just separated the `Share` How-to page into three pages: share, dataset_script and dataset_card. This way in the share page we can explain in more details how to share a community or a canonical dataset - focus in their differences and the steps to upload them. Also given that making a dataset script or a dataset card both require several steps, I feel like it's better to have dedicated pages for them. Let me know what you think @stevhliu and others. We can still revert this change if you feel like it was better with everything in the same place.
Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here).
100
text: New documentation structure Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here). I just separated the `Share` How-to page into three pages: share, dataset_script and dataset_card. This way in the share page we can explain in more details how to share a community or a canonical dataset - focus in their differences and the steps to upload them. Also given that making a dataset script or a dataset card both require several steps, I feel like it's better to have dedicated pages for them. Let me know what you think @stevhliu and others. We can still revert this change if you feel like it was better with everything in the same place.
[ 0.05430278554558754, 0.04112920165061951, -0.11677210032939911, 0.21711386740207672, -0.012888345867395401, 0.14390647411346436, 0.04960530251264572, 0.29361382126808167, -0.27985677123069763, 0.01645047217607498, -0.20316743850708008, 0.3694766163825989, 0.026721589267253876, 0.31257784366607666, 0.29274410009384155, -0.11967523396015167, 0.20458170771598816, 0.02168145775794983, -0.11226540803909302, 0.0730678141117096, 0.15403544902801514, -0.07560180127620697, 0.029932737350463867, -0.16069115698337555, -0.16418011486530304, -0.14277680218219757, -0.253064900636673, 0.15396371483802795, -0.33841097354888916, -0.6314240097999573, 0.12394052743911743, 0.504154622554779, 0.08363759517669678, 0.28555843234062195, -0.00010618559463182464, -0.1494733691215515, 0.16825832426548004, 0.2667657136917114, -0.36841854453086853, 0.12841379642486572, -0.30666911602020264, -0.3470807671546936, 0.37567079067230225, 0.12796708941459656, 0.026522256433963776, -0.24162150919437408, -0.06275110691785812, 0.023265399038791656, 0.06278529763221741, -0.04775664955377579, 0.2050980031490326, 0.12559854984283447, -0.11562833189964294, -0.11059723049402237, 0.16256150603294373, 0.6214035749435425, -0.35434916615486145, 0.31177371740341187, 0.4704049229621887, 0.009260473772883415, -0.29270607233047485, 0.2953552007675171, 0.0719204843044281, -0.1698758751153946, 0.4452410340309143, -0.0056411148980259895, -0.1403522789478302, -0.3235700726509094, -0.009661216288805008, 0.322208970785141, 0.8108949661254883, -0.23685407638549805, -0.19203230738639832, -0.3232387900352478, -0.07401467859745026, 0.18452470004558563, -0.0006474107503890991, 0.050029456615448, 0.11044654250144958, 0.06890615820884705, -0.13406763970851898, -0.2916330397129059, -0.2574978470802307, 0.04852142184972763, 0.2538488805294037, 0.12457242608070374, -0.16732415556907654, -0.0583377480506897, 0.14575982093811035, 0.01660538651049137, 0.30691754817962646, -0.007367661222815514, -0.10742850601673126, 0.07446963340044022, 0.14218130707740784, -0.18851375579833984, 0.3510186970233917, 0.04884655028581619, 0.47391682863235474, 0.18977703154087067, 0.04179384931921959, -0.022734303027391434, -0.2122165858745575, -0.18662092089653015, 0.42604419589042664, -0.23619109392166138, 0.17196597158908844, 0.21769846975803375, 0.08299126476049423, 0.3503629267215729, 0.30381783843040466, -0.13211405277252197, 0.02101163938641548, -0.0042524696327745914, -0.2249569147825241, -0.23205924034118652, 0.15225915610790253, -0.07276694476604462, 0.05736587196588516, -0.15549953281879425, 0.3032779395580292, -0.14822125434875488, 0.020812679082155228, 0.18365535140037537, 0.28792107105255127, 0.21170574426651, -0.04142727702856064, 0.01470980979502201, -0.0844976007938385, -0.08058753609657288, -0.04336171597242355, -0.004654577001929283, -0.2999941408634186, 0.39439553022384644, 0.053400930017232895, -0.05127638205885887, 0.03478018939495087, 0.23538491129875183, 0.1835547685623169, 0.006403625011444092, -0.03059752658009529, 0.187599778175354, 0.3732048571109772, 0.18076159060001373, -0.09271802753210068, 0.22763074934482574, -0.0890807956457138, 0.2010357528924942, -0.24126705527305603, -0.09348452836275101, -0.1758362054824829, -0.4805775582790375, -0.2765814960002899, 0.19175457954406738, 0.37057405710220337, 0.12903384864330292, -0.34528541564941406, 0.2487248331308365, -0.2477407455444336, -0.008993927389383316, 0.20270249247550964, 0.3593357801437378, -0.04157407209277153, -0.2676382064819336, 0.14781028032302856, 0.434972882270813, -0.07222208380699158, -0.13349269330501556, -0.1460772156715393, 0.023685583844780922, -0.08558591455221176, 0.33649536967277527, -0.3367018699645996, 0.3306761085987091, -0.27970948815345764, 0.026008740067481995, 0.45813000202178955, -0.544706404209137, -0.09380888938903809, 0.40004828572273254, -0.04596950113773346, 0.07955805957317352, 0.010247811675071716, -0.06234396621584892, 0.29899775981903076, -0.1038152277469635, 0.022449076175689697, -0.16047514975070953, -0.23473680019378662, 0.1753275990486145, -0.16651040315628052, -0.16423413157463074, 0.1881418377161026, -0.09323391318321228, -0.2911434471607208, -0.07292688637971878, 0.12883669137954712, -0.1797819882631302, 0.5089408159255981, -0.17806534469127655, 0.06294301897287369, 0.2824287414550781, 0.5488943457603455, 0.07209234684705734, 0.07148163765668869, -0.02376028336584568, -0.44340378046035767, 0.03778655827045441, 0.3804362714290619, 0.19304585456848145, 0.17640824615955353, -0.4108031392097473, -0.29469093680381775, -0.23790062963962555, -0.14392805099487305, -0.3854150176048279, 0.1704031229019165, -0.1832287311553955, -0.02088928036391735, 0.015043847262859344, -0.30098387598991394, 0.11553533375263214, -0.41745853424072266, 0.19899144768714905, -0.18437577784061432, 0.20814236998558044, -0.1366155743598938, 0.11372479051351547, 0.020741470158100128, 0.1762900948524475, -0.05245164781808853, -0.015375586226582527, -0.013392148539423943, 0.42952778935432434, 0.09235955774784088, 0.14666083455085754, 0.24796578288078308, 0.3601611852645874, 0.49357888102531433, -0.34684234857559204, 0.2803742587566376, -0.27330976724624634, -0.051095589995384216, 0.0351765975356102, -0.3539521098136902, -0.029705822467803955, -0.35208338499069214, 0.27846160531044006, 0.13123391568660736, 0.026187283918261528, 0.03629131615161896, 0.33216914534568787, -0.25349798798561096, -0.21526741981506348, -0.09439395368099213, 0.07397938519716263, 0.1955704241991043, 0.132656529545784, -0.14290004968643188, 0.6997575163841248, 0.3391079604625702, -0.054150477051734924, -0.20544174313545227, 0.21329477429389954, -0.14379584789276123, -0.24411475658416748, 0.29860883951187134, 0.2051285058259964, -0.10976609587669373, 0.1717918962240219, 0.3505571782588959, 0.13331012427806854, 0.0651499330997467, -0.015428783372044563, 0.26341044902801514, -0.10232698917388916, 0.09022238105535507, -0.045498043298721313, -0.10867715626955032, 0.2143591195344925, -0.02599966712296009, -0.11470203101634979, -0.21429899334907532, 0.02754809521138668, -0.3819179832935333, -0.18036609888076782, 0.008074713870882988, -0.27405309677124023, 0.005092965438961983, -0.13580961525440216, -0.21359258890151978, -0.38874128460884094, 0.020055508241057396, -0.004379432648420334, -0.14420941472053528, 0.06176847219467163, -0.058909352868795395, 0.2868638336658478, -0.04450429975986481, 0.5345441102981567, -0.16957160830497742, -0.03297339752316475, 0.07767333090305328, 0.10673320293426514, 0.2509636878967285, 0.248870849609375, 0.471314013004303, -0.17647340893745422, 0.06130498647689819, -0.6941397786140442, -0.45884543657302856, 0.2170640230178833, -0.23382113873958588, 0.00639086589217186, 0.29925280809402466, 0.26441580057144165, -0.08291400969028473, -0.25221505761146545, -0.02780955098569393, -0.19562874734401703, -0.19295872747898102, -0.1772196888923645, -0.21529026329517365, -0.1270890235900879, -0.14749249815940857, -0.6224681735038757, 0.005937865003943443, -0.42308732867240906, 0.45623207092285156, -0.23846326768398285, 0.21417097747325897, 0.08762101829051971, 0.022003863006830215, 0.0645836740732193, -0.3143565356731415, 0.10157657414674759, -0.10195581614971161, -0.36285096406936646, -0.08929172158241272, -0.4867217242717743, -0.2182321697473526, -0.03618656471371651, 0.24764834344387054, 0.16409552097320557, -0.07293502986431122, -0.23427440226078033, 0.16695791482925415, -0.3304140865802765, 0.23754581809043884, -0.032377444207668304, 0.26524612307548523, 0.32551565766334534, 0.2834327816963196, -0.11036711186170578, 0.20243129134178162, -0.15492308139801025, -0.448943555355072, 0.044434335082769394, -0.0460311695933342, -0.08205977082252502, 0.10501842945814133, 0.1340867131948471, 0.5579641461372375, 0.33942893147468567, 0.2500935196876526, -0.10159346461296082, 0.005501659587025642, 0.5305570363998413, -0.12345560640096664, -0.31778189539909363, 0.28500205278396606, -0.046809613704681396, 0.1455281376838684, 0.18185055255889893, 0.20349159836769104, 0.12281110137701035, 0.27711987495422363, -0.25284409523010254, -0.30657580494880676, -0.41528573632240295, 0.2380875200033188, -0.31750932335853577, 0.24534070491790771, -0.29102346301078796, -0.25248441100120544, -0.17662250995635986, 0.045509785413742065, 0.10087879002094269, 0.44312232732772827, 0.11466246098279953, 0.05149589851498604, -0.5193913578987122, 0.12517890334129333, -0.4819822311401367, -0.1450924128293991, 0.05715729668736458, -0.23631936311721802, -0.19357769191265106, -0.05268936604261398, -0.047345831990242004, 0.14940492808818817, 0.2749149799346924, -0.37297049164772034, -0.2717738151550293, 0.13807997107505798, 0.10295195877552032, -0.2445003241300583, 0.14917032420635223, -0.1614048033952713, 0.1711403727531433, 0.08586044609546661, 0.07808418571949005, -0.22429224848747253, -0.44492971897125244, 0.2959851622581482, -0.10252398252487183, 0.13152697682380676, 0.10042153298854828, 0.16107560694217682, -0.21209436655044556, -0.2438926249742508, -0.0019518658518791199, 0.1302482634782791, -0.2604387700557709, -0.3648391664028168, -0.17479240894317627, 0.32822680473327637, 0.10941513627767563, -0.02408847212791443, 0.168406143784523, 0.2790992856025696, -0.013437616638839245, 0.11715039610862732, 0.4836064279079437, 0.13866189122200012, 0.6015042662620544, 0.2668660283088684, -0.06893764436244965, -0.21013519167900085, 0.03594350442290306, -0.35229507088661194, 0.43334805965423584, 0.4312629699707031, 0.17976073920726776, 0.06697101145982742, -0.00966000184416771, -0.045440636575222015, -0.3917044699192047, -0.027368919923901558, 0.189163476228714, -0.06885272264480591, -0.28724735975265503, -0.43668317794799805, 0.2995282709598541, 0.27850615978240967, -0.25713273882865906, 0.34502390027046204, 0.687968909740448, -0.2980191707611084, 0.04615543410181999, 0.14550159871578217, 0.8970945477485657, -0.024910256266593933, 0.3837142884731293, 0.1812429130077362, -0.34570860862731934, 0.455873042345047, -0.29487353563308716, -0.1728036254644394, -0.3189290463924408, 0.11998650431632996, -0.14855684340000153, -0.12628091871738434, 0.1468469202518463, -0.07066743820905685, -0.3172658681869507, -0.00008335919119417667, -0.1757531613111496, 0.14769624173641205, -0.22653208673000336, 0.33273109793663025, -0.21196036040782928, -0.35500702261924744, 0.04208313673734665, 0.14676089584827423, 0.01670295000076294, -0.3379676342010498, -0.09741207212209702, -0.05906534940004349, -0.1544862538576126, 0.09147915244102478, -0.42104971408843994, -0.21289774775505066, 0.014428799971938133, -0.01992110162973404, -0.03741760179400444, -0.1446932554244995, 0.48377034068107605, 0.12396757304668427, 0.17174257338047028, 0.006751835346221924, -0.36715376377105713, 0.01719062030315399, -0.12525278329849243, 0.0159189123660326, -0.1313382238149643, -0.3553934395313263, 0.24896013736724854, 0.11736447364091873, -0.30484819412231445, -0.24852481484413147, -0.08820614963769913, -0.13800260424613953, -0.25470423698425293, -0.011510901153087616, 0.23842056095600128, -0.6384660005569458, -0.03120880387723446, 0.08087978512048721, -0.22159096598625183, -0.10998494923114777, 0.13411252200603485, 0.22168482840061188, -0.10860856622457504, 0.045884937047958374, 0.3108650743961334, 0.11572688817977905, -0.06611804664134979, -0.10462162643671036, 0.03922714665532112, -0.1209162175655365, 0.009255530312657356, 0.039116647094488144, -0.3204640746116638, -0.31711873412132263, 0.21922200918197632, 0.664086639881134, -0.07211001217365265, -0.11803055554628372, -0.07340635359287262, -0.16452904045581818, 0.014575973153114319, 0.11227311193943024, 0.11273051053285599, 0.10265491902828217, -0.21071015298366547, 0.24986916780471802, -0.22915317118167877, 0.391884446144104, -0.2642778754234314, 0.32185259461402893, -0.247433602809906, -0.010947562754154205, -0.0020017996430397034, 0.15869490802288055, -0.3555256128311157, 0.1046515554189682, 0.03214427828788757, 0.08400104939937592, 0.26799923181533813, 0.054101135581731796, 0.01899736374616623, -0.32845351099967957, 0.03148700296878815, -0.11965741217136383, 0.08809402585029602, -0.23760157823562622, -0.07987279444932938, 0.12737612426280975, 0.056963082402944565, -0.23323774337768555, 0.20775659382343292, 0.08332522213459015, -0.04707537218928337, -0.24288323521614075, 0.35532909631729126, -0.09379521012306213, 0.13434067368507385, 0.18332909047603607, -0.014766309410333633, -0.01069551706314087, -0.024647530168294907, 0.2395542711019516, 0.19983422756195068, 0.281053364276886, 0.1467294842004776, -0.012721933424472809, -0.38743236660957336, -0.14330105483531952, 0.31627896428108215, 0.4961951673030853, 0.4011167883872986, 0.25609415769577026, 0.19938194751739502, 0.19793206453323364, -0.11775946617126465, -0.13777238130569458, 0.27857911586761475, 0.20313334465026855, -0.10277779400348663, -0.04365117475390434, -0.07176806032657623, 0.17716602981090546, 0.1812228411436081, -0.17272591590881348, 0.09192788600921631, -0.18588659167289734, 0.1422595977783203, 0.11274267733097076, 0.4123975336551666, 0.102423295378685, -0.028597868978977203, -0.05381395295262337, 0.12484760582447052, -0.21334700286388397, 0.3033270537853241, -0.056446801871061325, -0.012546557933092117, -0.08210678398609161, 0.2864464819431305, 0.016461338847875595, 0.0275677889585495, -0.09202171862125397, 0.22125497460365295, 0.370019793510437, 0.2662927806377411, 0.08087015897035599, 0.2452509105205536, -0.016654247418045998, 0.2130335122346878, 0.04255755990743637, -0.07782982289791107, -0.17795291543006897, 0.04923496022820473, 0.04151890426874161, 0.11509055644273758, -0.40654414892196655, 0.05775876343250275, -0.1390245407819748, -0.10124262422323227, -0.030895935371518135, 0.08234795182943344, -0.198454350233078, -0.04443145543336868, -0.18027660250663757, -0.08863876760005951, -0.3185780644416809, 0.3250163495540619, -0.1328759491443634, 0.07962090522050858, -0.4349135160446167, 0.3713853657245636, 0.14602230489253998, 0.3328145146369934, 0.10093079507350922, -0.04239613562822342, -0.08289915323257446, -0.1396384984254837, -0.25628361105918884, 0.6737241744995117, 0.32846856117248535, 0.07845113426446915, -0.06383877992630005, 0.17552337050437927, 0.1108410507440567, -0.02172619104385376, 0.19555388391017914, -0.25001761317253113, -0.12534724175930023, -0.29502466320991516, -0.08417053520679474, 0.1987900733947754, -0.10021819174289703, -0.12499797344207764, -0.1614382565021515, -0.10152298212051392, -0.07554815709590912, -0.1767178177833557, -0.09843175113201141, -0.32696470618247986, 0.05195346102118492, 0.10910628736019135, -0.3061681091785431, -0.01310789491981268, 0.8008824586868286, -0.04087629169225693, 0.03244761377573013, -0.24698878824710846, 0.12240099906921387, 0.5027210712432861, 0.31873321533203125, 0.29254209995269775, 0.10451206564903259, -0.09775202721357346, -0.4193207621574402, -0.1897169053554535, -0.028354696929454803, -0.18069711327552795, -0.1351623237133026, 0.12093701213598251, 0.3539371192455292, -0.0012783631682395935, 0.04874233156442642, 0.3109281063079834, -0.251236230134964, 0.005497352220118046, -0.2498142421245575, -0.20924878120422363, 0.03410457819700241, 0.021314147859811783, 0.10066445916891098, -0.14490464329719543, 0.08899686485528946, 0.03113824687898159, 0.10798948258161545, 0.004967797547578812, -0.06256207823753357, 0.33574745059013367, 0.3277682065963745, 0.19537870585918427, 0.020235516130924225, 0.24784480035305023, 0.06765113770961761, -0.09131699800491333, -0.5302977561950684, -0.3912922739982605, -0.1415146291255951, 0.017773710191249847, 0.6221792697906494, -0.029820863157510757, 0.18458616733551025, -0.3157784044742584, -0.34911975264549255, -0.30744466185569763, 0.01422872394323349, 0.0979967713356018, 0.10254135727882385, -0.27731597423553467, 0.343845397233963, 0.21548601984977722, -0.08638852089643478, 0.19275769591331482, 0.4050973057746887, -0.18880674242973328, 0.007452469319105148, -0.1727169156074524, -0.36790040135383606, 0.09962796419858932, 0.1273459643125534, -0.1544872671365738, 0.18294952809810638, 0.16496635973453522, 0.23235508799552917, 0.18355011940002441, -0.8121476769447327, -0.19121120870113373, 0.20788025856018066, -0.10882177203893661, -0.1804814338684082, 0.18858927488327026, 0.18054598569869995, -0.004374805837869644, -0.1957297921180725, 0.5170121192932129, 0.02154386043548584, -0.0900464728474617, 0.07902088761329651, -0.13358920812606812 ]
https://github.com/huggingface/datasets/pull/2718
New documentation structure
I just added some minor changes to match the style, fix typos, etc. Great work on the conceptual guides, I learned a lot from them and I'm sure they will help a lot of other people too! I am fine with splitting `Share` into three separate pages. I think this probably makes it easier for users to navigate, instead of having to scroll up and down on a really long single page.
Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here).
72
text: New documentation structure Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here). I just added some minor changes to match the style, fix typos, etc. Great work on the conceptual guides, I learned a lot from them and I'm sure they will help a lot of other people too! I am fine with splitting `Share` into three separate pages. I think this probably makes it easier for users to navigate, instead of having to scroll up and down on a really long single page.
[ 0.037079084664583206, -0.03041856735944748, -0.15183672308921814, 0.18769511580467224, -0.04997624456882477, 0.09094805270433426, -0.02506342902779579, 0.2682647705078125, -0.3364972472190857, -0.0024118125438690186, -0.23933367431163788, 0.2773623466491699, -0.05479831248521805, 0.2830520272254944, 0.2287241667509079, -0.23819854855537415, 0.12803834676742554, 0.026353195309638977, -0.0038247182965278625, 0.006286151707172394, 0.16647623479366302, 0.00021755695343017578, -0.054860495030879974, -0.2014266401529312, -0.18442831933498383, -0.20839184522628784, -0.2901126742362976, 0.2069852650165558, -0.45418354868888855, -0.5274660587310791, -0.05696055293083191, 0.4816253185272217, 0.010019557550549507, 0.3278333246707916, -0.00010491302236914635, -0.2045271396636963, 0.2036326825618744, 0.25533655285835266, -0.3206564486026764, 0.2365296334028244, -0.23043331503868103, -0.38542506098747253, 0.35246509313583374, 0.06971416622400284, 0.11037572473287582, -0.21579688787460327, -0.18133816123008728, 0.1058741956949234, 0.12173689901828766, -0.14076748490333557, 0.22710151970386505, 0.0897936150431633, -0.033997081220149994, -0.03908255323767662, 0.0695304200053215, 0.4798615574836731, -0.35932570695877075, 0.27673211693763733, 0.3811873197555542, 0.14076204597949982, -0.3385014832019806, 0.3145016133785248, 0.012451192364096642, -0.1102951169013977, 0.46137645840644836, -0.01569085195660591, -0.15697914361953735, -0.25435665249824524, -0.11193761974573135, 0.3358265161514282, 0.8604733347892761, -0.164413183927536, -0.341484010219574, -0.36265829205513, -0.11410283297300339, 0.10847687721252441, 0.014289762824773788, 0.06629073619842529, 0.06290630996227264, 0.05688450112938881, -0.21897509694099426, -0.4080297350883484, -0.2708628475666046, -0.024840034544467926, 0.2109420895576477, 0.097172811627388, -0.16290956735610962, -0.1292564868927002, 0.20960818231105804, 0.03749150410294533, 0.1853007823228836, -0.009566221386194229, -0.1521609127521515, 0.07683441042900085, 0.08721546083688736, -0.22693206369876862, 0.3155936300754547, 0.04469909891486168, 0.4219459295272827, 0.12838199734687805, 0.08414550870656967, 0.007465027272701263, -0.2721279561519623, -0.140254408121109, 0.46798327565193176, -0.14764752984046936, 0.05150240287184715, 0.12760800123214722, 0.08527800440788269, 0.2052975296974182, 0.39545270800590515, -0.09169457107782364, 0.035373661667108536, 0.025062978267669678, -0.2669929265975952, -0.2535794675350189, 0.04248905926942825, -0.1658584624528885, 0.05202820152044296, -0.08759372681379318, 0.20791345834732056, -0.21842926740646362, -0.03976568207144737, 0.1980140656232834, 0.14569580554962158, 0.1509963870048523, -0.0006384216248989105, -0.03831702470779419, -0.157707080245018, -0.10227680206298828, -0.06431802362203598, 0.015684733167290688, -0.37783974409103394, 0.3130693733692169, 0.0012589804828166962, -0.016861487179994583, 0.027340950444340706, 0.15845710039138794, 0.21881714463233948, -0.01919754222035408, -0.011480843648314476, 0.19641301035881042, 0.250825971364975, 0.16443338990211487, -0.13425514101982117, 0.13597367703914642, -0.06058954820036888, 0.11621834337711334, -0.18395283818244934, -0.007852032780647278, -0.1608833372592926, -0.4765903651714325, -0.33813512325286865, 0.2088359296321869, 0.17914047837257385, 0.10252080857753754, -0.2065807282924652, 0.3790907859802246, -0.269252210855484, 0.061812471598386765, 0.2716534733772278, 0.4424969553947449, 0.023684438318014145, -0.28023287653923035, 0.20529182255268097, 0.44588613510131836, -0.11853140592575073, -0.21704548597335815, -0.10313040018081665, -0.020244766026735306, -0.04214104264974594, 0.34988418221473694, -0.2855331003665924, 0.26830676198005676, -0.13714030385017395, 0.2193974107503891, 0.4692632853984833, -0.3411981761455536, -0.03166833519935608, 0.4193249046802521, -0.03183771297335625, 0.02906377799808979, 0.038298286497592926, -0.08605606108903885, 0.3127523958683014, -0.052768345922231674, 0.12234567105770111, -0.17096666991710663, -0.17564205825328827, 0.19928675889968872, -0.3218845725059509, -0.11693885922431946, 0.14490431547164917, -0.07682839035987854, -0.26116621494293213, -0.18702644109725952, 0.11333344876766205, -0.22609378397464752, 0.5036481618881226, -0.07843542098999023, 0.03698462247848511, 0.29741787910461426, 0.5393173098564148, 0.12444688379764557, 0.04151267930865288, 0.07170484960079193, -0.4248323142528534, -0.027143212035298347, 0.4579772353172302, 0.2719449996948242, 0.26633328199386597, -0.3528074026107788, -0.2671409249305725, -0.17013652622699738, -0.11429648101329803, -0.4216005504131317, 0.18681657314300537, -0.26190319657325745, -0.11408907175064087, 0.09918484091758728, -0.26341646909713745, 0.11947646737098694, -0.3487287163734436, 0.15566527843475342, -0.1689600795507431, 0.227178156375885, -0.08494311571121216, 0.17179790139198303, 0.014751177281141281, 0.21373334527015686, -0.04301011562347412, 0.0019501193892210722, -0.0598427876830101, 0.4548380374908447, 0.05635395273566246, 0.19106251001358032, 0.2869148254394531, 0.38375264406204224, 0.5407668948173523, -0.2613339126110077, 0.35801488161087036, -0.37206846475601196, -0.025333818048238754, 0.03214671462774277, -0.32943493127822876, 0.010763786733150482, -0.3720417022705078, 0.20068123936653137, 0.09994080662727356, 0.10021523386240005, 0.026003757491707802, 0.20478901267051697, -0.2574734091758728, -0.0804775059223175, -0.03598960116505623, 0.06046860292553902, 0.1270650029182434, 0.15330973267555237, -0.16621288657188416, 0.568705141544342, 0.40057241916656494, -0.10170713067054749, -0.30606719851493835, 0.30073848366737366, -0.1724492311477661, -0.28546038269996643, 0.43721330165863037, 0.2079533189535141, -0.018846377730369568, 0.23788981139659882, 0.4087412357330322, 0.1119810938835144, 0.1234956830739975, 0.06446727365255356, 0.3452829420566559, 0.02044408768415451, 0.03202164173126221, -0.05211392045021057, -0.17832304537296295, 0.2411174178123474, -0.10408636927604675, -0.1027182936668396, -0.1685701459646225, 0.09258189797401428, -0.25983697175979614, -0.2452937513589859, 0.1346607357263565, -0.16875964403152466, -0.023963186889886856, -0.2506413161754608, -0.15933950245380402, -0.4014667272567749, 0.10022396594285965, -0.032089848071336746, -0.13178294897079468, 0.09229932725429535, -0.019231129437685013, 0.3926001787185669, -0.05834713950753212, 0.5310024619102478, -0.18778255581855774, -0.019643034785985947, 0.056473322212696075, 0.15096049010753632, 0.23081055283546448, 0.29190826416015625, 0.530188798904419, -0.06747035682201385, 0.04653336852788925, -0.5924707651138306, -0.3872048258781433, 0.17212381958961487, -0.22193576395511627, 0.0005366671830415726, 0.3240874111652374, 0.20988576114177704, -0.1853325217962265, -0.2501477897167206, 0.01173864770680666, -0.21549497544765472, -0.253391832113266, -0.1785021722316742, -0.1665361225605011, -0.14956048130989075, -0.15650728344917297, -0.5215957760810852, -0.0024314504116773605, -0.4497956335544586, 0.5359127521514893, -0.2741537392139435, 0.14183251559734344, 0.17487359046936035, 0.06081109866499901, 0.1841772198677063, -0.26014265418052673, 0.05663006752729416, -0.09646204859018326, -0.29335424304008484, -0.17210209369659424, -0.39369842410087585, -0.1860780417919159, -0.01224372535943985, 0.2646430730819702, 0.10015219449996948, -0.0761842429637909, -0.2671329975128174, 0.22542859613895416, -0.32099366188049316, 0.185769721865654, -0.07111864537000656, 0.4107581675052643, 0.2545381188392639, 0.31414341926574707, -0.168625146150589, 0.15109995007514954, -0.1573837846517563, -0.432559609413147, 0.06533126533031464, 0.015387222170829773, -0.14265576004981995, 0.14766117930412292, 0.17026692628860474, 0.5853016972541809, 0.4410284757614136, 0.2744807302951813, -0.07284116744995117, 0.04773111268877983, 0.4895305931568146, -0.05563899129629135, -0.3406774699687958, 0.36627766489982605, -0.07900331914424896, 0.09191500395536423, 0.2006581425666809, 0.2761479616165161, 0.007686316501349211, 0.1562831550836563, -0.26224851608276367, -0.34544649720191956, -0.3342851400375366, 0.20807795226573944, -0.1854337602853775, 0.26450181007385254, -0.22996291518211365, -0.34623411297798157, -0.16577225923538208, 0.032490167766809464, 0.07314659655094147, 0.3650028109550476, 0.08507470786571503, 0.02666519582271576, -0.3426109850406647, 0.1316319704055786, -0.5797451138496399, -0.08819794654846191, 0.07236207276582718, -0.3106626868247986, -0.12159696221351624, -0.09105078876018524, -0.03362239897251129, 0.16920027136802673, 0.43079763650894165, -0.3085666000843048, -0.30789297819137573, -0.001650795340538025, 0.10402901470661163, -0.09022417664527893, 0.22891779243946075, -0.26399803161621094, 0.22514982521533966, 0.1607896387577057, 0.003207981586456299, -0.19767609238624573, -0.39350053668022156, 0.28249841928482056, -0.15160173177719116, 0.10856707394123077, 0.09353456646203995, 0.1179979145526886, -0.13906636834144592, -0.28305116295814514, 0.023734785616397858, 0.16211387515068054, -0.2010088711977005, -0.27342501282691956, -0.25722384452819824, 0.39794862270355225, 0.14463859796524048, 0.009745754301548004, 0.17720496654510498, 0.28738436102867126, 0.005908413324505091, 0.07176746428012848, 0.51795494556427, 0.09739036858081818, 0.4547851085662842, 0.294800341129303, -0.21026946604251862, 0.005602575838565826, 0.054712239652872086, -0.31208372116088867, 0.45769140124320984, 0.43184566497802734, 0.16507205367088318, 0.018767163157463074, -0.05374494940042496, 0.13943101465702057, -0.3398950695991516, -0.05196042358875275, 0.2385888397693634, 0.046562258154153824, -0.35425400733947754, -0.48265984654426575, 0.3580048978328705, 0.16197840869426727, -0.2602200210094452, 0.44821953773498535, 0.755673348903656, -0.1700301468372345, -0.02361566200852394, 0.13728377223014832, 0.9322041869163513, 0.01455022394657135, 0.34646716713905334, 0.2543107271194458, -0.266975998878479, 0.3752537667751312, -0.33170807361602783, -0.18039116263389587, -0.2621380090713501, 0.11432178318500519, -0.15290065109729767, -0.10826504230499268, 0.1400759220123291, -0.09323655068874359, -0.41157492995262146, -0.1195792630314827, 0.036796972155570984, -0.007500629872083664, -0.18343496322631836, 0.3561047613620758, -0.08724824339151382, -0.30859532952308655, -0.025479640811681747, 0.17923057079315186, 0.02077193185687065, -0.4103352725505829, -0.12650948762893677, -0.13039740920066833, -0.1295781433582306, -0.04276140406727791, -0.4296795129776001, -0.31508585810661316, 0.08020057529211044, -0.039913151413202286, 0.04759920760989189, -0.1447693109512329, 0.4414171278476715, -0.04756798967719078, 0.020193397998809814, 0.039056446403265, -0.34882810711860657, 0.030567707493901253, -0.1591617465019226, 0.0772860124707222, -0.1256534308195114, -0.20630821585655212, 0.23959414660930634, 0.06419204920530319, -0.19959521293640137, -0.17667821049690247, -0.13476668298244476, -0.09682880342006683, -0.17747007310390472, 0.01194261759519577, 0.16588109731674194, -0.6070137023925781, 0.0031565194949507713, 0.1283496767282486, -0.28898775577545166, -0.10855358839035034, 0.15712971985340118, 0.2577246427536011, -0.16536709666252136, 0.07169343531131744, 0.4012807607650757, 0.12957105040550232, -0.07103808224201202, -0.08458679169416428, 0.07387982308864594, -0.11373619735240936, -0.05195128172636032, 0.040629204362630844, -0.37024229764938354, -0.34929412603378296, 0.25500136613845825, 0.5464836955070496, -0.09479117393493652, -0.09529737383127213, -0.1302713304758072, -0.17307083308696747, 0.07900852710008621, 0.19996561110019684, 0.22419868409633636, 0.20262351632118225, -0.13886161148548126, 0.17597582936286926, -0.13268837332725525, 0.41116201877593994, -0.410683274269104, 0.3313317596912384, -0.38150274753570557, 0.026824019849300385, 0.08533448725938797, 0.19995079934597015, -0.3870586156845093, 0.04167846590280533, -0.023856153711676598, -0.008116237819194794, 0.22529202699661255, -0.031248927116394043, -0.013009256683290005, -0.28795889019966125, 0.04962700605392456, -0.044252634048461914, 0.037588249891996384, -0.25584352016448975, -0.1841525435447693, 0.11922571808099747, 0.06764586269855499, -0.21945154666900635, 0.1963096410036087, 0.09390830248594284, -0.11997389793395996, -0.18127518892288208, 0.30781224370002747, -0.16939786076545715, 0.11320506781339645, 0.22439147531986237, 0.06366865336894989, -0.02541462332010269, -0.03429688513278961, 0.16688543558120728, 0.2298613041639328, 0.2394748479127884, 0.1250671148300171, -0.03824853152036667, -0.275287389755249, -0.1421448439359665, 0.29883289337158203, 0.5295570492744446, 0.37740790843963623, 0.20470643043518066, 0.15444841980934143, 0.18530558049678802, -0.10338979214429855, -0.13635145127773285, 0.4396918714046478, 0.2444814294576645, -0.06802726536989212, -0.05382043123245239, -0.018375972285866737, 0.23319125175476074, 0.05850181728601456, -0.2438555806875229, 0.11715228855609894, -0.2604127824306488, 0.20059359073638916, 0.1435154378414154, 0.3501686453819275, 0.1118110716342926, 0.06866032630205154, -0.0135478675365448, 0.13198624551296234, -0.1833551526069641, 0.3020145893096924, -0.00469261035323143, -0.13226474821567535, -0.07155051827430725, 0.29551875591278076, 0.11222192645072937, 0.055200785398483276, 0.04474359750747681, 0.21564188599586487, 0.2721610367298126, 0.13340815901756287, 0.15387919545173645, 0.09923437982797623, -0.06863860785961151, 0.2308032363653183, -0.0024818778038024902, -0.06317804753780365, -0.17887136340141296, -0.000020369887351989746, 0.09836606681346893, 0.11066330969333649, -0.39214152097702026, 0.021617693826556206, -0.09163640439510345, -0.09214318543672562, 0.05957028642296791, 0.23364922404289246, -0.3205117881298065, -0.14944800734519958, -0.18811026215553284, -0.051705341786146164, -0.2654877305030823, 0.47111764550209045, -0.0742359310388565, 0.22583049535751343, -0.45525291562080383, 0.2935771942138672, 0.09295445680618286, 0.31622591614723206, -0.014120105654001236, -0.07533340156078339, -0.0724717229604721, -0.12100613117218018, -0.3887847661972046, 0.6396826505661011, 0.30746835470199585, 0.05802678316831589, -0.12630760669708252, 0.16222496330738068, 0.03484296426177025, -0.024518582969903946, 0.14958390593528748, -0.14753156900405884, 0.024041797965765, -0.3331983983516693, -0.15989159047603607, 0.19358408451080322, -0.1414780467748642, 0.0584157332777977, -0.0877138078212738, -0.157455176115036, -0.1202501505613327, -0.14117568731307983, -0.027197834104299545, -0.34502872824668884, -0.045994870364665985, -0.004643969237804413, -0.40330424904823303, -0.007084613665938377, 0.721913754940033, -0.1191200464963913, -0.027069520205259323, -0.18923120200634003, 0.12384994328022003, 0.4511658847332001, 0.3302021026611328, 0.2552203834056854, 0.28628599643707275, -0.10041854530572891, -0.42533499002456665, -0.34464749693870544, -0.03340042382478714, -0.1403047740459442, -0.0771084651350975, 0.17595317959785461, 0.29342812299728394, 0.02109985053539276, 0.13955016434192657, 0.27563005685806274, -0.2037620097398758, 0.015282253734767437, -0.2793714106082916, -0.2099175900220871, -0.0007317066192626953, 0.12006597220897675, 0.021052850410342216, -0.16368244588375092, 0.1119244322180748, -0.01651979610323906, 0.1441350281238556, 0.022230900824069977, -0.12677453458309174, 0.2587337791919708, 0.2501806616783142, 0.29621827602386475, -0.031977854669094086, 0.22448641061782837, 0.10391136258840561, -0.11955060809850693, -0.5090317726135254, -0.26573511958122253, -0.16507096588611603, 0.045771948993206024, 0.4510924220085144, 0.04171302542090416, 0.23098650574684143, -0.27153104543685913, -0.28604021668434143, -0.3093109130859375, 0.004992467351257801, 0.1486317217350006, 0.08142001181840897, -0.3998890817165375, 0.3222176432609558, 0.1988363265991211, -0.13186746835708618, 0.15000997483730316, 0.5186922550201416, -0.14089055359363556, 0.005261208862066269, -0.23922906816005707, -0.3069138526916504, 0.21783171594142914, 0.06966929882764816, -0.1196717917919159, 0.1905204951763153, 0.09239478409290314, 0.24410736560821533, 0.037325624376535416, -0.9140627384185791, -0.24516767263412476, 0.20501217246055603, -0.05606295168399811, -0.2686167061328888, 0.2709256112575531, 0.22066235542297363, -0.13076509535312653, -0.1673349291086197, 0.5503649711608887, -0.05523496866226196, -0.15012453496456146, 0.17402538657188416, -0.1878870129585266 ]
https://github.com/huggingface/datasets/pull/2718
New documentation structure
Thanks a lot for all the suggestions ! I'm doing the final changes based on the remaining comments, then we can merge and release v1.12 of `datasets` and the new documentation ^^
Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here).
32
text: New documentation structure Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here). Thanks a lot for all the suggestions ! I'm doing the final changes based on the remaining comments, then we can merge and release v1.12 of `datasets` and the new documentation ^^
[ -0.01655595749616623, 0.03035302460193634, -0.1037207692861557, 0.11901259422302246, 0.04630689322948456, 0.2289717197418213, -0.07259659469127655, 0.3336051404476166, -0.2885846197605133, -0.025464311242103577, -0.216008722782135, 0.43893781304359436, -0.01586250588297844, 0.09159403294324875, 0.27058732509613037, -0.2738668918609619, 0.25184425711631775, 0.009753137826919556, -0.004219464957714081, 0.1101236343383789, 0.0013719089329242706, -0.024923721328377724, -0.07217620313167572, -0.12281596660614014, -0.26081523299217224, -0.205922469496727, -0.23087643086910248, 0.17567500472068787, -0.45658835768699646, -0.7119399905204773, 0.08022072911262512, 0.4247263967990875, 0.043903324753046036, 0.2442936897277832, -0.00010802765609696507, -0.08826014399528503, 0.4006044864654541, 0.32034438848495483, -0.2845173478126526, 0.18810376524925232, -0.30597081780433655, -0.41287073493003845, 0.23894351720809937, 0.11590564996004105, 0.2852647304534912, -0.30965226888656616, -0.08716629445552826, 0.04542318731546402, 0.037034884095191956, 0.003974216058850288, 0.21044771373271942, -0.005733846686780453, 0.11407110095024109, -0.0958993136882782, -0.10209298878908157, 0.516823410987854, -0.23383095860481262, 0.24370026588439941, 0.41803526878356934, 0.11550508439540863, -0.30717870593070984, 0.26856762170791626, -0.022437456995248795, -0.21566563844680786, 0.3925604820251465, -0.09175180643796921, -0.1646515130996704, -0.2433735430240631, 0.09577593207359314, 0.3927357792854309, 0.8908919095993042, -0.2887815237045288, -0.30413103103637695, -0.22025927901268005, -0.023370839655399323, -0.02663705311715603, 0.06469372659921646, 0.14549432694911957, 0.0003625638782978058, -0.0037550777196884155, -0.15570104122161865, -0.42204245924949646, -0.3055180013179779, -0.04194892942905426, 0.20374983549118042, 0.15307751297950745, -0.13070404529571533, -0.16010358929634094, 0.09847232699394226, 0.06401359289884567, 0.16491524875164032, -0.04629243165254593, -0.24732500314712524, 0.10909455269575119, -0.08592215180397034, -0.2656506299972534, 0.26185160875320435, -0.026458173990249634, 0.4222581684589386, 0.010255731642246246, 0.06094785034656525, 0.03932968154549599, -0.3069276511669159, -0.11203371733427048, 0.27340686321258545, -0.18685543537139893, 0.1406724750995636, 0.19905515015125275, 0.08455689251422882, 0.259887158870697, 0.36744940280914307, -0.10659017413854599, 0.08206187933683395, -0.07413147389888763, -0.2225036323070526, -0.10451319068670273, 0.27452224493026733, -0.11801625043153763, 0.0748734101653099, -0.06830845028162003, -0.02071136049926281, -0.2349913865327835, -0.11928052455186844, 0.017974913120269775, 0.19709479808807373, 0.2340381145477295, -0.10012917220592499, 0.049142662435770035, -0.0649409145116806, -0.08628974109888077, -0.12098126113414764, 0.08361109346151352, -0.3871481120586395, 0.3010099530220032, -0.07387475669384003, -0.06608961522579193, 0.12265173345804214, 0.3654055595397949, 0.04169473052024841, -0.031296681612730026, -0.08947604149580002, 0.16575340926647186, 0.17380252480506897, 0.11652306467294693, -0.39392420649528503, 0.1611984372138977, -0.17586828768253326, 0.14251813292503357, -0.20149153470993042, 0.1089649647474289, -0.09991925209760666, -0.4462690055370331, -0.4374757707118988, 0.16044163703918457, 0.060713090002536774, -0.126141756772995, -0.42249223589897156, 0.4871618151664734, -0.3027506470680237, 0.03668076917529106, 0.2613779306411743, 0.45122599601745605, -0.14098583161830902, -0.23028436303138733, 0.09770003706216812, 0.39406609535217285, -0.41014131903648376, -0.13040822744369507, -0.11307086795568466, -0.012359846383333206, -0.1662863790988922, 0.2845946252346039, -0.28979864716529846, 0.2580024003982544, -0.15689346194267273, 0.06606806814670563, 0.2787904143333435, -0.45907554030418396, -0.11429785192012787, 0.2653399705886841, 0.15368516743183136, 0.12068203836679459, 0.0076942890882492065, -0.08279784023761749, 0.15474222600460052, -0.07629027217626572, -0.157631054520607, -0.19785676896572113, -0.1892983764410019, 0.029380345717072487, -0.20940633118152618, -0.17240078747272491, 0.07222706079483032, -0.1429453343153, -0.22082625329494476, -0.017137549817562103, 0.02475433051586151, -0.19642439484596252, 0.4521275758743286, -0.09602972865104675, -0.03232035040855408, 0.3247694969177246, 0.43461427092552185, 0.09844811260700226, 0.05071345344185829, -0.12498512119054794, -0.5947374701499939, 0.02655164897441864, 0.38700443506240845, 0.35005781054496765, 0.05868232995271683, -0.1991080790758133, -0.2575770616531372, -0.09998143464326859, -0.1201663464307785, -0.44969314336776733, 0.1513674259185791, -0.20824101567268372, -0.07499397546052933, 0.09195788204669952, -0.3182772994041443, 0.25193190574645996, -0.3970582187175751, 0.1918097883462906, -0.24961625039577484, 0.08645565807819366, 0.020812764763832092, 0.1378197818994522, -0.0781363695859909, 0.15510256588459015, -0.1874951720237732, 0.11502489447593689, -0.038908470422029495, 0.4920058846473694, 0.04335823282599449, 0.1384848952293396, 0.31325632333755493, 0.42971664667129517, 0.39311328530311584, -0.27637481689453125, 0.3252549171447754, -0.316734254360199, -0.05255362018942833, 0.11331377178430557, -0.33583492040634155, -0.012356281280517578, -0.26251673698425293, 0.20440024137496948, -0.020142937079072, -0.04796283692121506, 0.037247590720653534, 0.21806758642196655, -0.257663369178772, -0.01835857704281807, -0.17878589034080505, 0.28516197204589844, 0.18923623859882355, 0.08023489266633987, -0.2290833294391632, 0.3694627285003662, 0.3453052341938019, -0.21426095068454742, -0.3669295907020569, 0.31666430830955505, -0.2639658749103546, -0.33136001229286194, 0.3069857358932495, 0.21505461633205414, 0.05157269537448883, 0.19487155973911285, 0.2950541079044342, 0.17984727025032043, 0.04653478041291237, 0.15342341363430023, 0.31268003582954407, 0.09859223663806915, -0.03457605466246605, -0.007617436349391937, -0.043347738683223724, 0.32155346870422363, -0.13061204552650452, -0.05640358477830887, -0.09910283982753754, 0.1922432780265808, -0.2630964517593384, -0.17738766968250275, -0.02699529565870762, -0.2552519738674164, -0.06763318926095963, -0.23451602458953857, -0.21587398648262024, -0.3838980197906494, -0.06478777527809143, -0.09760499000549316, -0.0019455179572105408, 0.1905634105205536, 0.09240879118442535, 0.34751760959625244, -0.08410577476024628, 0.4097636640071869, -0.24538442492485046, -0.07526586949825287, 0.16786935925483704, 0.14127926528453827, 0.2517939805984497, 0.17990128695964813, 0.3813476264476776, -0.02720228210091591, 0.10829319804906845, -0.6232442855834961, -0.575825572013855, 0.04157352074980736, -0.21068964898586273, 0.05965535342693329, 0.3832698166370392, 0.09741609543561935, -0.1438879370689392, -0.2029254287481308, -0.05549934506416321, -0.13528284430503845, -0.3368785083293915, -0.17331039905548096, -0.16532021760940552, 0.10245952010154724, -0.06384015083312988, -0.5362946391105652, 0.13661664724349976, -0.5391333699226379, 0.5250003933906555, -0.37446480989456177, 0.1522199809551239, 0.2620188593864441, 0.0890827402472496, 0.08046215772628784, -0.33492910861968994, 0.08659200370311737, -0.09539590775966644, -0.3857925832271576, -0.08096170425415039, -0.2995288074016571, -0.0802166610956192, -0.012767642736434937, 0.1587190330028534, 0.1933581680059433, 0.06398305296897888, -0.3754573464393616, 0.14935721457004547, -0.2785438895225525, 0.23370468616485596, 0.05347379297018051, 0.255891889333725, 0.2669377326965332, 0.27065497636795044, -0.07760228216648102, 0.11228454858064651, -0.3003300428390503, -0.5254117846488953, 0.0538802370429039, 0.09467072039842606, -0.08859117329120636, 0.2806178033351898, 0.13452677428722382, 0.3737637996673584, 0.33142682909965515, 0.20880089700222015, -0.09919516742229462, 0.09442254900932312, 0.4913521111011505, -0.2219058871269226, -0.19783498346805573, 0.20798270404338837, -0.12388771772384644, 0.2504158616065979, 0.06208793446421623, 0.32024598121643066, 0.10979961603879929, 0.19515177607536316, -0.22671031951904297, -0.25223785638809204, -0.28829333186149597, 0.23827631771564484, -0.16432034969329834, 0.3045896291732788, -0.23122228682041168, -0.28274402022361755, -0.13179470598697662, 0.012953033670783043, 0.2135581076145172, 0.3957613706588745, 0.16198143362998962, 0.03336707502603531, -0.4337279796600342, 0.2941651940345764, -0.519775390625, 0.04379565268754959, 0.04089318960905075, -0.1580660343170166, 0.03634994849562645, -0.1267896443605423, -0.011972211301326752, 0.2674556076526642, 0.24339494109153748, -0.3952794671058655, -0.3986751437187195, 0.10111504793167114, 0.058125823736190796, -0.12268494069576263, 0.16029752790927887, -0.15582121908664703, 0.22113503515720367, 0.15502311289310455, 0.14853155612945557, -0.16453874111175537, -0.40331578254699707, 0.2781579792499542, -0.013246146962046623, 0.16244235634803772, -0.01413712091743946, 0.06392619013786316, -0.16008472442626953, -0.1513083428144455, -0.04103466123342514, 0.13251657783985138, -0.08574127405881882, -0.037830956280231476, -0.1510482281446457, 0.22550247609615326, 0.20742690563201904, 0.005005292594432831, 0.024472150951623917, 0.23751971125602722, 0.01866929605603218, 0.05365590378642082, 0.3867356479167938, 0.02550194412469864, 0.6208041906356812, 0.2481008619070053, -0.11189348995685577, -0.26863405108451843, -0.04635411500930786, -0.19130392372608185, 0.436030775308609, 0.3218885660171509, 0.2307579666376114, 0.12511013448238373, -0.023035872727632523, -0.10502190887928009, -0.42274194955825806, 0.10189711302518845, 0.29405534267425537, 0.18734653294086456, -0.41297563910484314, -0.5234633088111877, 0.4428726136684418, 0.3255040645599365, -0.29360753297805786, 0.5886725783348083, 0.6889765858650208, -0.23637092113494873, -0.07781201601028442, 0.19324232637882233, 0.7894022464752197, 0.09154374897480011, 0.18118257820606232, 0.25252246856689453, -0.5850939750671387, 0.47870343923568726, -0.10344301164150238, -0.06627937406301498, -0.29153749346733093, 0.08249818533658981, -0.14840076863765717, -0.11082291603088379, 0.17545315623283386, 0.012807413935661316, -0.3097083270549774, -0.05718166381120682, -0.0863802582025528, -0.015058573335409164, -0.054603829979896545, 0.41270649433135986, -0.07955814152956009, -0.1907859742641449, -0.005127334967255592, 0.1369713842868805, -0.09905587136745453, -0.36148080229759216, -0.13403433561325073, -0.11789432168006897, -0.07642675936222076, 0.01358376070857048, -0.5614957213401794, -0.3340662717819214, 0.09543997794389725, -0.05518127232789993, 0.19983787834644318, -0.230009064078331, 0.5325501561164856, 0.08068045228719711, 0.11710070073604584, -0.059241991490125656, -0.21260784566402435, 0.08677321672439575, -0.026596076786518097, 0.0536077506840229, 0.09874118864536285, -0.262894868850708, 0.23458009958267212, 0.08499065786600113, -0.11354504525661469, -0.16088378429412842, -0.07318736612796783, -0.1966617852449417, -0.3076331317424774, -0.08249464631080627, 0.0401713103055954, -0.5597590804100037, 0.05827079340815544, 0.14839087426662445, -0.19842666387557983, -0.1607809215784073, 0.14836524426937103, 0.2650069296360016, -0.1400301307439804, 0.1178864911198616, 0.28701499104499817, -0.03324412927031517, -0.05758851394057274, -0.15042752027511597, 0.0007783286273479462, -0.2150600552558899, 0.033485740423202515, 0.07225467264652252, -0.33829033374786377, -0.29800599813461304, 0.10731763392686844, 0.532593309879303, -0.1642773300409317, 0.03380303084850311, -0.024632075801491737, -0.065829336643219, 0.12766051292419434, 0.077609583735466, 0.08116842806339264, 0.18616944551467896, -0.11013928055763245, 0.13609792292118073, -0.35764703154563904, 0.5519168376922607, -0.4769522249698639, 0.34933391213417053, -0.3612082004547119, -0.11466927826404572, 0.026010433211922646, 0.2869795560836792, -0.34587401151657104, 0.13217835128307343, 0.10294552892446518, 0.025488249957561493, 0.15125013887882233, 0.04969514161348343, 0.09270457178354263, -0.2852151393890381, 0.020731138065457344, -0.12444286048412323, -0.012488415464758873, -0.1945877969264984, -0.10221244394779205, 0.1340685486793518, -0.04316836595535278, -0.09634815901517868, 0.28517860174179077, 0.09525373578071594, -0.053633179515600204, -0.13580739498138428, 0.30089375376701355, -0.02038966864347458, 0.030448008328676224, 0.2980737090110779, 0.03789013624191284, 0.06573820859193802, 0.009488534182310104, 0.1739790439605713, 0.28363049030303955, 0.2028326392173767, 0.22800199687480927, 0.012739483267068863, -0.1901567131280899, -0.09042429178953171, 0.19590571522712708, 0.4952857792377472, 0.22897423803806305, 0.1914719045162201, 0.15639248490333557, 0.13386544585227966, -0.10024242103099823, -0.09623221307992935, 0.2999803125858307, 0.24576324224472046, -0.06275232881307602, -0.11352211982011795, -0.029419511556625366, 0.21241918206214905, 0.07111995667219162, -0.08246017247438431, 0.138779878616333, -0.2574535608291626, 0.13315637409687042, -0.06883706897497177, 0.2985144853591919, 0.08330227434635162, 0.0927533507347107, 0.01875516027212143, 0.03327571973204613, -0.21792307496070862, 0.38150036334991455, 0.10821129381656647, -0.08429607003927231, -0.1484585702419281, 0.4414462149143219, 0.14281649887561798, -0.022314943373203278, -0.06659723818302155, 0.440077543258667, 0.21319949626922607, 0.2084038257598877, 0.14201077818870544, 0.25460654497146606, 0.031814705580472946, 0.0770493745803833, 0.1671900600194931, -0.10479217767715454, -0.19127622246742249, 0.059657201170921326, 0.27210405468940735, 0.28622645139694214, -0.3636387586593628, 0.05865183472633362, -0.17424194514751434, -0.12260659784078598, -0.06827224791049957, 0.09118956327438354, -0.18274982273578644, 0.021888628602027893, -0.1666441708803177, -0.0745730996131897, -0.2110546976327896, 0.408108651638031, -0.2497725933790207, 0.04559788480401039, -0.37592047452926636, 0.30155014991760254, 0.097383514046669, 0.3113250434398651, 0.07746195793151855, -0.02817603014409542, -0.08197633922100067, -0.08022299408912659, -0.10244017839431763, 0.6887555122375488, 0.40929436683654785, 0.0746360719203949, -0.11781713366508484, 0.3071357011795044, 0.0027392953634262085, 0.024579400196671486, 0.38834133744239807, -0.03890930116176605, 0.12699545919895172, -0.3023042380809784, -0.08868597447872162, 0.16045570373535156, -0.05414443463087082, 0.12527289986610413, -0.19855014979839325, -0.04416200891137123, -0.10644116997718811, -0.09527840465307236, 0.07641112804412842, -0.28251564502716064, 0.05301353335380554, 0.09649759531021118, -0.16364014148712158, -0.13988547027111053, 0.7640820145606995, -0.03556050360202789, -0.18980872631072998, -0.16124558448791504, 0.11680309474468231, 0.29585668444633484, 0.35024338960647583, 0.4223286509513855, 0.2876124083995819, 0.007063854020088911, -0.40899860858917236, -0.23499149084091187, -0.08496599644422531, 0.003988262265920639, 0.0024984609335660934, 0.11944860219955444, 0.1317015290260315, 0.02504577487707138, 0.07312025129795074, 0.2398258000612259, -0.4214174449443817, -0.001225065439939499, -0.10151895880699158, -0.34817880392074585, 0.06569278240203857, 0.31641125679016113, 0.08552294969558716, -0.1375337690114975, 0.10196367651224136, -0.032962407916784286, 0.18191364407539368, -0.010888546705245972, -0.07880154997110367, 0.3699193298816681, 0.19049881398677826, 0.4192524552345276, 0.03909323364496231, 0.3169355094432831, 0.1280011534690857, -0.09374354779720306, -0.5874167084693909, -0.409870445728302, -0.20726583898067474, -0.11424721032381058, 0.59083491563797, -0.006141524761915207, 0.32892099022865295, -0.30977219343185425, -0.2678053081035614, -0.16709770262241364, 0.10366055369377136, -0.048858094960451126, -0.08354905992746353, -0.5135431885719299, 0.17694631218910217, 0.16800034046173096, -0.13147616386413574, 0.058830130845308304, 0.4665622413158417, -0.0681854635477066, 0.08850133419036865, -0.339219868183136, -0.35484209656715393, 0.33408212661743164, 0.16565096378326416, -0.1965353935956955, 0.14112494885921478, -0.001961067318916321, 0.29000651836395264, 0.03075464814901352, -1.0693259239196777, -0.1578105092048645, 0.24501824378967285, 0.03079788014292717, -0.3478057384490967, 0.27570629119873047, 0.1889362931251526, 0.03770333155989647, -0.12139351665973663, 0.5319948792457581, 0.033391308039426804, -0.1302947700023651, -0.03870592266321182, -0.28150272369384766 ]
https://github.com/huggingface/datasets/pull/2718
New documentation structure
Alright I think I took all the suggestions and comments into account :) Thanks everyone for the help !
Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here).
19
text: New documentation structure Organize Datasets documentation into four documentation types to improve clarity and discoverability of content. **Content to add in the very short term (feel free to add anything I'm missing):** - A discussion on why Datasets uses Arrow that includes some context and background about why we use Arrow. Would also be great to talk about Datasets speed and performance here, and if you can share any benchmarking/tests you did, that would be awesome! Finally, a discussion about how memory-mapping frees the user from RAM constraints would be very helpful. - Explain why you would want to disable or override verifications when loading a dataset. - If possible, include a code sample of when the number of elements in the field of an output dictionary aren’t the same as the other fields in the output dictionary (taken from the [note](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset) here). Alright I think I took all the suggestions and comments into account :) Thanks everyone for the help !
[ -0.03785504400730133, -0.24495460093021393, -0.09755381941795349, 0.22000092267990112, 0.11173336952924728, 0.20182469487190247, -0.03659246489405632, 0.11013562977313995, -0.2224561721086502, -0.018651187419891357, -0.14427752792835236, 0.38248929381370544, -0.08981684595346451, 0.20890359580516815, 0.3256802260875702, -0.32110121846199036, 0.16693630814552307, 0.07397937029600143, -0.008792191743850708, 0.06175212562084198, 0.04780987650156021, -0.14864078164100647, -0.09316853433847427, -0.188240185379982, -0.34286418557167053, -0.24944213032722473, -0.20023341476917267, 0.2346729338169098, -0.5556588768959045, -0.7218711376190186, 0.030817242339253426, 0.3630812168121338, 0.07515446096658707, 0.2335142195224762, -0.00010916564497165382, -0.17303131520748138, 0.30961859226226807, 0.2840210795402527, -0.27840089797973633, 0.21852006018161774, -0.2642328441143036, -0.3925735652446747, 0.2609673738479614, 0.1377393901348114, 0.1526956558227539, -0.3057684302330017, -0.048843562602996826, 0.022577621042728424, 0.09335710108280182, -0.012509369291365147, 0.1731606125831604, 0.0038323961198329926, 0.07059618830680847, -0.10572575032711029, -0.08756082504987717, 0.5580651164054871, -0.322422593832016, 0.3168027400970459, 0.4599777162075043, 0.15592746436595917, -0.3058135509490967, 0.2672763168811798, 0.017528297379612923, -0.15104694664478302, 0.4621274173259735, -0.0980955958366394, -0.17475396394729614, -0.24766245484352112, 0.03791946917772293, 0.4709503650665283, 1.0074862241744995, -0.16467198729515076, -0.3260451555252075, -0.2479645013809204, -0.06552913039922714, 0.057402245700359344, -0.0588114932179451, 0.15822148323059082, 0.020796190947294235, 0.08713974803686142, -0.14939288794994354, -0.36540865898132324, -0.30552560091018677, 0.0037621483206748962, 0.21408694982528687, 0.15463227033615112, -0.19690266251564026, -0.1284395158290863, 0.12797974050045013, 0.01653451658785343, 0.14256027340888977, -0.04618985205888748, -0.2447439432144165, 0.22542373836040497, -0.12818755209445953, -0.25458961725234985, 0.2830033600330353, 0.03384808450937271, 0.39425209164619446, 0.0009992308914661407, 0.08182444423437119, 0.1147296130657196, -0.3534245491027832, -0.0738842710852623, 0.3517264425754547, -0.1334048956632614, 0.08654255419969559, 0.1596028357744217, 0.10465352237224579, 0.15656420588493347, 0.3531177043914795, -0.18986445665359497, 0.0006673147436231375, 0.022889234125614166, -0.19678808748722076, -0.2308240830898285, 0.23195652663707733, -0.11517409980297089, 0.04805963486433029, -0.07208838313817978, -0.0008161589503288269, -0.19716213643550873, -0.04579240828752518, 0.22135528922080994, 0.12011005729436874, 0.19373270869255066, -0.03754890710115433, 0.03992711752653122, -0.06300397962331772, -0.0957980677485466, -0.08883687853813171, 0.07568398118019104, -0.36219266057014465, 0.33833810687065125, -0.11237789690494537, 0.04260442405939102, 0.09913218766450882, 0.39451274275779724, 0.058673128485679626, -0.05277833715081215, 0.002174545079469681, 0.14283396303653717, 0.32076284289360046, 0.09720593690872192, -0.3609064221382141, 0.13867171108722687, -0.084988072514534, 0.2524677515029907, -0.1071426272392273, 0.027972716838121414, -0.09479532390832901, -0.5204829573631287, -0.45244696736335754, 0.1523093283176422, 0.08007083088159561, -0.13483716547489166, -0.40688392519950867, 0.40211862325668335, -0.31923410296440125, 0.10870066285133362, 0.30547285079956055, 0.4001117944717407, -0.1407681107521057, -0.22615797817707062, 0.11540689319372177, 0.36123740673065186, -0.33338508009910583, -0.19388671219348907, -0.15403397381305695, -0.025028496980667114, -0.05572871118783951, 0.32199862599372864, -0.29863330721855164, 0.374512255191803, -0.19557349383831024, 0.1393985152244568, 0.31664884090423584, -0.33189332485198975, -0.04698076844215393, 0.2615515887737274, 0.1273527592420578, 0.1354878693819046, -0.032117925584316254, 0.010283206589519978, 0.18114526569843292, 0.05147973820567131, -0.09136633574962616, -0.18725214898586273, -0.14884240925312042, 0.08253617584705353, -0.21561495959758759, -0.06864995509386063, 0.055285122245550156, -0.07405025511980057, -0.29474183917045593, -0.08488809317350388, 0.04695844650268555, -0.2444225549697876, 0.460814893245697, -0.12398193776607513, -0.0013124039396643639, 0.37726426124572754, 0.4821724593639374, 0.21421553194522858, 0.054051510989665985, -0.06843461096286774, -0.5513044595718384, 0.04362800717353821, 0.43718409538269043, 0.3967139720916748, 0.08866520971059799, -0.26918911933898926, -0.24615371227264404, -0.08878198266029358, -0.12997184693813324, -0.4567628502845764, 0.13013435900211334, -0.19129282236099243, -0.05537775531411171, 0.05512864515185356, -0.29497578740119934, 0.21372674405574799, -0.5128715634346008, 0.1743909865617752, -0.21448999643325806, 0.10771550238132477, 0.048902466893196106, 0.10260092467069626, -0.10634617507457733, 0.17411118745803833, -0.18962812423706055, 0.09055572748184204, -0.022843848913908005, 0.4059605002403259, 0.09745477139949799, 0.07068060338497162, 0.23297294974327087, 0.462382435798645, 0.3939538598060608, -0.3831096887588501, 0.26263195276260376, -0.3219169080257416, 0.056196823716163635, 0.041017815470695496, -0.24302291870117188, -0.010576397180557251, -0.15381217002868652, 0.1743786633014679, -0.007742464542388916, 0.022371230646967888, 0.02284812368452549, 0.189472496509552, -0.2043832242488861, 0.009584441781044006, -0.07814696431159973, 0.1534438133239746, 0.1441638469696045, 0.13273151218891144, -0.26904305815696716, 0.3936619162559509, 0.3865599036216736, -0.17243608832359314, -0.2502308487892151, 0.22416284680366516, -0.27135148644447327, -0.2758529484272003, 0.3481801450252533, 0.10066963732242584, 0.03937261551618576, 0.2233555167913437, 0.337031751871109, 0.1323351263999939, 0.03413531929254532, 0.18118634819984436, 0.23380620777606964, 0.024545449763536453, 0.01731078140437603, -0.027345746755599976, -0.15259799361228943, 0.23236726224422455, -0.14237850904464722, -0.04441356658935547, -0.12600408494472504, 0.2413244992494583, -0.35640591382980347, -0.1890655905008316, 0.03310827910900116, -0.2545014023780823, -0.0322185643017292, -0.2542247176170349, -0.15073926746845245, -0.3511543869972229, -0.058994315564632416, -0.06076603755354881, -0.049240775406360626, 0.13618257641792297, 0.08725118637084961, 0.3511408567428589, -0.054878365248441696, 0.3845544755458832, -0.2035161703824997, -0.07167914509773254, 0.17140182852745056, 0.1032220870256424, 0.258903831243515, 0.1848970651626587, 0.40191513299942017, -0.006818784400820732, 0.09154047071933746, -0.6765071153640747, -0.4840969443321228, 0.14402174949645996, -0.16244451701641083, 0.06000781059265137, 0.3540116250514984, 0.26963770389556885, -0.16572608053684235, -0.22339998185634613, -0.08697910606861115, -0.15473468601703644, -0.31925538182258606, -0.16532014310359955, -0.15419350564479828, -0.06624864786863327, -0.07286461442708969, -0.5349154472351074, 0.10776066780090332, -0.5766434073448181, 0.5427733063697815, -0.33130696415901184, 0.14988923072814941, 0.12743595242500305, 0.0928158164024353, 0.1932186484336853, -0.3799090087413788, 0.2043209969997406, -0.10007394850254059, -0.3077439069747925, -0.07085475325584412, -0.2724648118019104, -0.1466538906097412, -0.025006555020809174, 0.08322595804929733, 0.17870932817459106, -0.006696147844195366, -0.2966621518135071, 0.2296205461025238, -0.3637245297431946, 0.2312585413455963, -0.015392269939184189, 0.27150771021842957, 0.2498667687177658, 0.1389089971780777, -0.061453551054000854, 0.1156805232167244, -0.24468863010406494, -0.46389180421829224, 0.05180497094988823, 0.07702666521072388, -0.06896916776895523, 0.22209134697914124, 0.13302463293075562, 0.37734454870224, 0.29311999678611755, 0.12239150702953339, -0.06567974388599396, 0.04108528420329094, 0.4238506257534027, -0.17373424768447876, -0.29005539417266846, 0.24102935194969177, -0.06707713007926941, 0.16810868680477142, 0.18137499690055847, 0.27791595458984375, 0.044181644916534424, 0.17968116700649261, -0.26111406087875366, -0.23732540011405945, -0.20407773554325104, 0.3000457286834717, -0.21184593439102173, 0.3255421817302704, -0.262555867433548, -0.2669811546802521, -0.13752427697181702, 0.0845147892832756, 0.1419398933649063, 0.37019675970077515, 0.24254140257835388, 0.006801586598157883, -0.44149401783943176, 0.2894132137298584, -0.40922263264656067, 0.06740361452102661, 0.14077669382095337, -0.21908023953437805, -0.13659632205963135, -0.11557238548994064, 0.07275322824716568, 0.2753925323486328, 0.33556196093559265, -0.42438092827796936, -0.4440344572067261, 0.051736969500780106, 0.043588727712631226, -0.1824951320886612, 0.2398962527513504, -0.17520193755626678, 0.19917944073677063, 0.22750641405582428, 0.23188266158103943, -0.19198504090309143, -0.4079555571079254, 0.2299245446920395, -0.02848709747195244, 0.12275257706642151, -0.03047928586602211, 0.14827586710453033, -0.10811217129230499, -0.19429028034210205, 0.03918880224227905, 0.19701214134693146, -0.19232575595378876, 0.07710492610931396, -0.21049678325653076, 0.23165836930274963, 0.28624728322029114, 0.04530100151896477, 0.14117085933685303, 0.253534197807312, -0.024602308869361877, 0.04275444522500038, 0.3813862204551697, 0.001978199928998947, 0.5468131303787231, 0.26255667209625244, -0.11289304494857788, -0.21260112524032593, 0.030582929030060768, -0.21976293623447418, 0.5449927449226379, 0.3066278398036957, 0.24218836426734924, 0.24935320019721985, -0.022203296422958374, -0.08017623424530029, -0.5326558947563171, 0.05386308580636978, 0.3237176537513733, 0.16145411133766174, -0.39780449867248535, -0.5702309012413025, 0.5376335382461548, 0.2531225085258484, -0.26649749279022217, 0.5459202527999878, 0.7926540374755859, -0.18932271003723145, -0.06902049481868744, 0.2526750862598419, 0.8725513815879822, 0.0649920254945755, 0.22927743196487427, 0.20302912592887878, -0.4916144013404846, 0.4259921908378601, -0.1711457371711731, -0.1584986001253128, -0.3367561399936676, 0.09461276978254318, -0.18010354042053223, -0.18207065761089325, 0.2204803228378296, 0.02920842356979847, -0.3604580760002136, -0.1789146214723587, -0.07914287596940994, -0.007336851209402084, -0.07737035304307938, 0.4171345829963684, -0.12860099971294403, -0.26784777641296387, -0.018527928739786148, 0.13563089072704315, -0.005835734307765961, -0.36917296051979065, -0.1857946813106537, -0.09035257995128632, -0.11184024810791016, 0.01796749234199524, -0.5750436782836914, -0.3134726285934448, 0.06433528661727905, -0.12970289587974548, 0.21122035384178162, -0.12245670706033707, 0.6075976490974426, 0.07294883579015732, 0.08193249255418777, -0.037606727331876755, -0.2959279716014862, 0.06388719379901886, -0.06426543742418289, 0.04852224886417389, 0.02856098860502243, -0.23652657866477966, 0.3297802805900574, 0.0860203430056572, -0.20700521767139435, -0.1314384639263153, -0.10880572348833084, -0.24141116440296173, -0.2084544450044632, -0.038938529789447784, -0.020628809928894043, -0.6061553955078125, -0.11928541958332062, 0.16455784440040588, -0.1977141946554184, -0.07499101758003235, 0.13896945118904114, 0.3529598116874695, -0.21470092236995697, 0.1284617781639099, 0.3597608208656311, -0.02063760906457901, -0.06469833850860596, -0.18665003776550293, -0.05602989345788956, -0.051940158009529114, 0.018307993188500404, 0.09180848300457001, -0.4163079857826233, -0.3367091119289398, 0.06794364005327225, 0.5977578163146973, -0.09521590918302536, 0.00956032145768404, 0.04661274328827858, -0.09141944348812103, 0.04895747825503349, 0.0852976143360138, 0.10403783619403839, 0.0548182874917984, -0.16531842947006226, 0.07441632449626923, -0.297334760427475, 0.4863227605819702, -0.4868694245815277, 0.3852032721042633, -0.38894662261009216, -0.10298952460289001, 0.06667611002922058, 0.28483846783638, -0.3552274703979492, 0.06692735850811005, 0.004809053614735603, 0.10082919895648956, 0.26725658774375916, 0.05845114216208458, 0.06568104028701782, -0.30574506521224976, 0.024684453383088112, -0.13171254098415375, -0.1106448695063591, -0.19477739930152893, -0.14492586255073547, 0.14537782967090607, 0.083197683095932, -0.15068067610263824, 0.2989676296710968, 0.030090637505054474, -0.07926411926746368, -0.1908419281244278, 0.30467504262924194, -0.025139976292848587, -0.017105937004089355, 0.31164827942848206, -0.031165722757577896, 0.06860262155532837, -0.08017609268426895, 0.1893560290336609, 0.22860489785671234, 0.14821219444274902, 0.2269316464662552, -0.12458781898021698, -0.19922323524951935, -0.12160208821296692, 0.2654188573360443, 0.548313319683075, 0.2949470281600952, 0.01601513661444187, 0.1839616596698761, 0.17713329195976257, -0.053362887352705, -0.11952493339776993, 0.32985252141952515, 0.15375202894210815, -0.051533304154872894, -0.01329141017049551, -0.022442344576120377, 0.20056971907615662, 0.05540172755718231, -0.09808873385190964, 0.09536950290203094, -0.2875174283981323, 0.18416960537433624, -0.023050956428050995, 0.33269938826560974, 0.15477107465267181, 0.06484892964363098, -0.025283372029662132, 0.04921054467558861, -0.2572566270828247, 0.28627094626426697, 0.08869510889053345, -0.16639956831932068, -0.14814947545528412, 0.47404944896698, 0.16634029150009155, 0.004070408642292023, -0.10347238183021545, 0.36654484272003174, 0.22469447553157806, 0.1442546546459198, 0.20759189128875732, 0.15278784930706024, -0.007127892225980759, 0.14321601390838623, 0.1721336543560028, -0.06930159032344818, -0.18649786710739136, 0.04562529921531677, 0.26622438430786133, 0.2861059308052063, -0.33690232038497925, 0.05650801211595535, -0.13583943247795105, -0.18303129076957703, -0.009026032872498035, 0.07091749459505081, -0.17107760906219482, -0.08446533977985382, -0.1979253888130188, 0.0006747730076313019, -0.33437466621398926, 0.3831804096698761, -0.15431785583496094, 0.12177996337413788, -0.3261985778808594, 0.35539859533309937, 0.14714506268501282, 0.2641220986843109, 0.0063797906041145325, -0.054461769759655, -0.12527622282505035, -0.031089238822460175, -0.19811096787452698, 0.7187899947166443, 0.42603781819343567, 0.12781092524528503, -0.09039144217967987, 0.2880334258079529, -0.079141765832901, 0.009362606331706047, 0.3446264863014221, 0.021310744807124138, 0.01815037429332733, -0.27351853251457214, -0.11535023152828217, 0.1475965976715088, -0.09306636452674866, 0.10286839306354523, -0.2068280726671219, 0.00920153595507145, -0.10025341808795929, -0.10180007666349411, 0.03950505703687668, -0.27805295586586, -0.04819915443658829, 0.0972132608294487, -0.19647201895713806, -0.09145337343215942, 0.7673746943473816, -0.14678333699703217, -0.16433221101760864, -0.16393958032131195, 0.1041644886136055, 0.33796900510787964, 0.37442052364349365, 0.4290800094604492, 0.3700156509876251, 0.02108839340507984, -0.3940190076828003, -0.33916839957237244, -0.15528416633605957, -0.050681691616773605, -0.06012990325689316, 0.1785195767879486, 0.18440601229667664, 0.152180477976799, 0.13303039968013763, 0.2170487344264984, -0.4092147648334503, 0.04668286070227623, -0.07594256103038788, -0.2795948088169098, 0.027311813086271286, 0.22825007140636444, 0.1018453985452652, -0.18349900841712952, 0.08123182505369186, -0.0516178272664547, 0.1265631467103958, -0.011834044009447098, -0.015493474900722504, 0.36847734451293945, 0.1333085149526596, 0.23474006354808807, 0.06016778200864792, 0.23813682794570923, 0.19817107915878296, -0.09241266548633575, -0.4522753357887268, -0.3017376661300659, -0.1546677052974701, -0.07264411449432373, 0.5253053903579712, 0.056847378611564636, 0.3886503577232361, -0.28526046872138977, -0.26234209537506104, -0.16058380901813507, 0.07935424149036407, 0.028546042740345, -0.1206492930650711, -0.4692319631576538, 0.23764672875404358, 0.08782649785280228, -0.2413795441389084, 0.09501197189092636, 0.4290251135826111, -0.05101577937602997, -0.07499074190855026, -0.28601861000061035, -0.28260520100593567, 0.32418468594551086, 0.17800942063331604, -0.1608128547668457, 0.20721280574798584, 0.0036704689264297485, 0.33844757080078125, -0.006958195939660072, -1.050286889076233, -0.15871624648571014, 0.2580828368663788, -0.033454522490501404, -0.2737799286842346, 0.33381718397140503, 0.20814678072929382, 0.021353375166654587, -0.17206597328186035, 0.569625735282898, -0.0068039074540138245, -0.06357661634683609, -0.02757425419986248, -0.24576067924499512 ]
https://github.com/huggingface/datasets/pull/2697
Fix import on Colab
@lhoestq @albertvillanova - It might be a good idea to have a patch release after this gets merged (presumably tomorrow morning when you're around). The Colab issue linked to this PR is a pretty big blocker.
Fix #2695, fix #2700.
36
text: Fix import on Colab Fix #2695, fix #2700. @lhoestq @albertvillanova - It might be a good idea to have a patch release after this gets merged (presumably tomorrow morning when you're around). The Colab issue linked to this PR is a pretty big blocker.
[ -0.25467610359191895, -0.13588877022266388, -0.15408311784267426, -0.09391719102859497, 0.10882455110549927, -0.3423554599285126, 0.24698083102703094, 0.1542893648147583, 0.008723702281713486, 0.25479793548583984, -0.06432883441448212, 0.27985885739326477, -0.004908078350126743, 0.41642504930496216, -0.19973298907279968, 0.19934478402137756, 0.03218269348144531, 0.24003005027770996, -0.07143263518810272, -0.059025708585977554, -0.24503375589847565, 0.29912036657333374, -0.06590232253074646, -0.014638282358646393, -0.21713300049304962, 0.05978989973664284, 0.1851084679365158, 0.12394548207521439, -0.38711291551589966, -0.11128095537424088, 0.14551828801631927, 0.05997881293296814, -0.22578732669353485, 0.17691263556480408, -0.00009609058906789869, 0.18253566324710846, 0.3095603585243225, 0.04467886686325073, -0.03914109990000725, 0.2041737139225006, -0.20845958590507507, -0.12279108166694641, 0.0622502863407135, 0.02225872129201889, -0.08145102858543396, 0.16614042222499847, -0.035941287875175476, 0.17584636807441711, 0.3479519784450531, 0.29441753029823303, 0.4320370852947235, -0.022326502948999405, 0.06628648936748505, -0.21458932757377625, 0.18896809220314026, -0.20081941783428192, -0.1116311177611351, 0.1837945282459259, 0.24629411101341248, -0.07326440513134003, -0.09102074056863785, 0.2755654454231262, -0.05037585645914078, -0.011845152825117111, -0.047136567533016205, -0.23386314511299133, 0.12416736781597137, -0.3191853165626526, 0.29658806324005127, -0.17608270049095154, 0.13585874438285828, -0.03300958871841431, 0.08218609541654587, 0.02226431667804718, 0.13292068243026733, -0.27267006039619446, 0.36911699175834656, 0.03188781067728996, -0.04723040759563446, 0.14088104665279388, 0.2199145406484604, -0.20999892055988312, -0.10226504504680634, -0.29016661643981934, -0.21329954266548157, 0.3554796874523163, -0.157485231757164, -0.2701495587825775, 0.24727223813533783, -0.20946303009986877, 0.3715992867946625, 0.14559338986873627, 0.03129933774471283, -0.24467112123966217, 0.15917792916297913, 0.04150606691837311, 0.16841471195220947, 0.2816217839717865, -0.07723890244960785, -0.19579917192459106, -0.10746340453624725, 0.26531490683555603, 0.02058868110179901, 0.2571444809436798, -0.10984031856060028, 0.09225800633430481, 0.020403746515512466, -0.036081280559301376, 0.5859416723251343, 0.3191247880458832, -0.17612677812576294, 0.09343557059764862, -0.09444126486778259, -0.3574465215206146, -0.4326631724834442, 0.11998648196458817, 0.05925302952528, -0.26959699392318726, -0.26230350136756897, -0.0452137254178524, 0.026388593018054962, 0.22394661605358124, 0.04451647773385048, 0.3488781452178955, -0.017029017210006714, 0.18566462397575378, 0.09883207082748413, -0.08440319448709488, -0.28782275319099426, 0.037938252091407776, -0.24646101891994476, 0.1196524053812027, -0.2772541046142578, -0.13235683739185333, 0.14172068238258362, -0.025047164410352707, 0.13527971506118774, 0.0695471316576004, 0.2424079328775406, 0.09233604371547699, -0.1655438393354416, 0.017609965056180954, 0.029213912785053253, 0.42202070355415344, 0.24477973580360413, -0.14759115874767303, 0.061014771461486816, -0.30923640727996826, 0.06253465265035629, 0.06302054226398468, -0.23571676015853882, -0.18645507097244263, -0.20238849520683289, 0.4380720853805542, 0.014941558241844177, -0.01513960212469101, 0.031162187457084656, -0.09615014493465424, -0.024612344801425934, -0.15085890889167786, -0.1910967230796814, -0.05517559498548508, -0.0928867906332016, -0.11278882622718811, -0.07703821361064911, 0.11197053641080856, -0.20777329802513123, -0.04692124202847481, 0.02182307466864586, -0.07071743905544281, 0.3984116017818451, 0.19646529853343964, -0.1216815710067749, -0.14937162399291992, -0.1777365803718567, -0.14896509051322937, -0.06688716262578964, -0.09117147326469421, -0.19054308533668518, -0.12176256626844406, -0.22471711039543152, -0.11653470247983932, 0.07647857069969177, -0.2360813468694687, 0.10252902656793594, -0.04987957328557968, 0.4797058403491974, 0.2532574534416199, -0.0675942599773407, 0.16721323132514954, -0.46472033858299255, -0.13142552971839905, -0.29600608348846436, -0.03055456466972828, 0.375819593667984, -0.004943862557411194, 0.014093875885009766, 0.0293239988386631, 0.05258189141750336, -0.1054358184337616, -0.06430652737617493, 0.23432300984859467, 0.4155331254005432, -0.0403408482670784, -0.08682594448328018, 0.18176347017288208, -0.04309340566396713, -0.07843753695487976, 0.016758542507886887, 0.27147096395492554, 0.03473208099603653, -0.2799675166606903, -0.34653353691101074, 0.0869867280125618, -0.12514925003051758, -0.07285052537918091, 0.4179154634475708, 0.1677945852279663, -0.2583720088005066, 0.12324179708957672, -0.012479517608880997, 0.25666573643684387, -0.08239340037107468, -0.01210379134863615, 0.14506417512893677, 0.053859248757362366, -0.4685487747192383, -0.17643699049949646, 0.2198352813720703, 0.04726081341505051, 0.07770799845457077, 0.019216222688555717, 0.03217155486345291, -0.09321434050798416, -0.10454896092414856, 0.1605616956949234, 0.012264594435691833, 0.23049095273017883, 0.31212037801742554, -0.03920276090502739, -0.09252797812223434, -0.10716526210308075, 0.10244649648666382, -0.0356692373752594, 0.08245708793401718, 0.37486350536346436, -0.05198149010539055, -0.07511036843061447, 0.20317910611629486, 0.005147675052285194, 0.3075985014438629, -0.1125974953174591, 0.14322906732559204, -0.2972947955131531, 0.03681275248527527, 0.2134290188550949, -0.14691029489040375, 0.07015365362167358, -0.13552474975585938, 0.29288163781166077, 0.3786970376968384, 0.26770657300949097, 0.11848065257072449, 0.05814750865101814, 0.01217670738697052, -0.0721612274646759, 0.15552914142608643, 0.3028961420059204, 0.17541632056236267, 0.2572598457336426, 0.11316210776567459, 0.03764977306127548, 0.10421888530254364, -0.36701685190200806, 0.2801585793495178, 0.09919797629117966, 0.1648351401090622, 0.2986512780189514, 0.2113947719335556, -0.21701931953430176, -0.49124211072921753, 0.00693841278553009, -0.1559087485074997, 0.1644025444984436, -0.24581417441368103, -0.10782378911972046, -0.2504267394542694, -0.46021467447280884, -0.12247699499130249, 0.01801268756389618, 0.1068846583366394, -0.33269795775413513, 0.24262064695358276, 0.3321985900402069, -0.34388959407806396, 0.1982739418745041, 0.2332855463027954, 0.24059699475765228, -0.06071924418210983, 0.14760218560695648, -0.03601120412349701, -0.2131919264793396, -0.08247645199298859, 0.33162203431129456, 0.12779730558395386, 0.029507877305150032, 0.1521688848733902, -0.3312799036502838, 0.04469447210431099, 0.09186355024576187, -0.537672758102417, 0.24985834956169128, -0.027410566806793213, 0.14706465601921082, 0.06423606723546982, 0.15499746799468994, -0.19870677590370178, -0.35448428988456726, -0.0501510314643383, -0.3362217843532562, -0.1762477606534958, -0.2034253478050232, -0.15822476148605347, -0.0964035838842392, -0.42510849237442017, -0.18730205297470093, -0.05644380301237106, -0.4939183294773102, 0.010962951928377151, 0.05981268361210823, -0.05317551642656326, 0.25898250937461853, 0.14898830652236938, 0.042257074266672134, 0.2324337512254715, 0.08902637660503387, -0.11084078997373581, -0.15788990259170532, 0.2795017957687378, -0.39775925874710083, -0.33660662174224854, 0.08260367810726166, -0.18845567107200623, 0.0553610660135746, -0.3118986487388611, -0.19684194028377533, -0.36844927072525024, -0.08028362691402435, 0.053290266543626785, 0.2756202816963196, 0.011775031685829163, -0.03447982668876648, 0.07695957273244858, -0.38830116391181946, -0.2186398208141327, -0.29024654626846313, -0.027417607605457306, 0.00222720205783844, 0.0685921460390091, -0.21474024653434753, 0.07287336140871048, -0.06962434947490692, 0.3803655505180359, -0.29423364996910095, 0.07742740213871002, 0.2783561944961548, 0.12102862447500229, 0.5268353819847107, -0.11749475449323654, -0.2789769470691681, 0.04951288178563118, 0.08676593750715256, -0.2017686516046524, 0.3467636704444885, -0.09783577173948288, -0.14876563847064972, -0.14458724856376648, 0.039928045123815536, -0.09490136057138443, -0.366434782743454, 0.07377991825342178, 0.40129518508911133, -0.06250862032175064, 0.2213728129863739, -0.1877681016921997, -0.08404669165611267, -0.024656949564814568, 0.1438475400209427, 0.12922565639019012, -0.2284054160118103, -0.19123823940753937, 0.10287642478942871, -0.11136693507432938, -0.26143306493759155, 0.1235223263502121, 0.1149541586637497, -0.047149430960416794, -0.2551323175430298, -0.18390807509422302, 0.07133939117193222, -0.11742774397134781, 0.2649967074394226, 0.06728330999612808, -0.051397792994976044, 0.053593527525663376, -0.06852678954601288, 0.14695686101913452, -0.09451355785131454, -0.18865647912025452, 0.09790194034576416, 0.45957136154174805, 0.036812156438827515, -0.0737086832523346, 0.12123533338308334, 0.28376758098602295, 0.09349339455366135, -0.029357124119997025, 0.2765224874019623, -0.28412172198295593, -0.4739852547645569, -0.3671576678752899, 0.0684579387307167, 0.24103449285030365, 0.12899988889694214, -0.18053102493286133, -0.10857263207435608, 0.02567170187830925, -0.28093814849853516, 0.0592053160071373, 0.32158589363098145, 0.09043804556131363, 0.1499428004026413, 0.09924985468387604, -0.2511102259159088, -0.01318628340959549, 0.35216906666755676, 0.43766161799430847, -0.14998163282871246, -0.1417718082666397, 0.013167635537683964, -0.22020836174488068, 0.0229475274682045, 0.262340247631073, -0.11969458311796188, 0.07121562212705612, -0.3016148805618286, 0.03864385932683945, 0.3915332555770874, 0.24148346483707428, -0.156150221824646, 0.03702489286661148, 0.16366446018218994, 0.06732218712568283, -0.00007688254117965698, 0.07477611303329468, -0.12996987998485565, 0.04993589594960213, 0.14705848693847656, -0.12109172344207764, 0.13905075192451477, 0.045553360134363174, 0.8373768329620361, 0.1110558956861496, -0.13738349080085754, 0.1767052412033081, -0.22758415341377258, 0.21435444056987762, -0.05163855105638504, 0.27983254194259644, -0.18898732960224152, -0.3087717294692993, 0.19918914139270782, 0.04783626273274422, 0.03320843726396561, -0.3213985562324524, -0.25047793984413147, 0.011038040742278099, 0.07067897915840149, 0.08749863505363464, 0.07578419893980026, -0.2096911072731018, 0.029088078066706657, -0.07591292262077332, -0.2516804039478302, 0.2951849102973938, -0.016102969646453857, 0.16941745579242706, -0.23041793704032898, -0.09877578169107437, 0.11015336215496063, -0.10488471388816833, -0.11578197777271271, 0.22849136590957642, -0.21554674208164215, 0.23171056807041168, 0.007942022755742073, -0.0725787803530693, -0.1400129646062851, 0.030494794249534607, 0.2713179886341095, 0.051666758954524994, -0.00705118291079998, 0.2942098379135132, 0.31439995765686035, -0.16487327218055725, -0.2087630182504654, 0.16499803960323334, 0.1454075127840042, -0.36277252435684204, 0.01165904849767685, -0.1294284164905548, 0.06096900999546051, -0.15646609663963318, 0.063139408826828, 0.23396766185760498, 0.2727198898792267, 0.10906721651554108, 0.02715963125228882, 0.14904290437698364, 0.06818617880344391, -0.35820817947387695, 0.34843266010284424, -0.1438181847333908, -0.007156366482377052, 0.19414225220680237, 0.28931954503059387, -0.20447880029678345, -0.11386243999004364, 0.3257191479206085, 0.00033580511808395386, -0.06144729629158974, 0.08385583013296127, 0.03295634314417839, -0.4283912181854248, -0.3175414800643921, -0.15125328302383423, -0.34073787927627563, -0.1974884271621704, 0.34137699007987976, -0.06959440559148788, -0.5565540194511414, 0.19430728256702423, 0.3942880928516388, 0.1895570605993271, 0.03513870760798454, -0.03766392171382904, -0.08586303889751434, -0.288816899061203, 0.13160735368728638, -0.2424692064523697, 0.021956894546747208, 0.1276545524597168, 0.22643905878067017, 0.031031494960188866, -0.20733675360679626, -0.5167049169540405, 0.13773947954177856, -0.3323332369327545, 0.030847961083054543, -0.13645268976688385, -0.26348626613616943, 0.108866386115551, 0.02390611544251442, 0.26386427879333496, 0.12371291220188141, -0.09960263222455978, -0.4347122311592102, -0.02409376949071884, 0.06498685479164124, -0.09001827985048294, 0.028740156441926956, 0.025116663426160812, 0.08441809564828873, -0.16926220059394836, 0.19930098950862885, 0.2187473326921463, -0.09539845585823059, 0.03707201033830643, -0.06912394613027573, 0.15766087174415588, 0.23739635944366455, 0.2666705846786499, 0.06418660283088684, 0.07821284979581833, 0.3757568597793579, -0.038402095437049866, -0.051605261862277985, -0.1606186330318451, -0.15313678979873657, 0.46453991532325745, -0.08095068484544754, 0.04176045581698418, 0.2918749153614044, 0.07077395170927048, -0.17268767952919006, -0.11037787795066833, 0.20484252274036407, -0.06831572204828262, 0.19627907872200012, -0.04054107517004013, -0.16453146934509277, 0.21350568532943726, 0.4379561245441437, -0.3867364227771759, 0.06717044860124588, 0.06860990822315216, -0.08038599789142609, 0.12116643786430359, 0.2230575829744339, 0.1357928067445755, -0.18593379855155945, 0.4341208338737488, 0.5488954782485962, 0.05147375166416168, 0.1308130919933319, -0.03026200458407402, -0.03721984848380089, -0.3089318573474884, 0.10250069946050644, 0.028975248336791992, 0.027668392285704613, 0.25006985664367676, 0.1745751053094864, -0.083103708922863, 0.1714244931936264, 0.0369584821164608, 0.0012694112956523895, 0.2642194926738739, -0.2538318932056427, 0.32182562351226807, 0.1668027639389038, 0.17067638039588928, -0.008547917008399963, 0.43737322092056274, 0.023107830435037613, -0.13682828843593597, -0.12214044481515884, -0.16780810058116913, 0.19161096215248108, -0.2879970967769623, -0.009633304551243782, -0.030722683295607567, -0.025169450789690018, -0.1252324879169464, 0.2431260049343109, 0.20057664811611176, 0.3221103549003601, 0.1586514264345169, 0.09031161665916443, -0.11027413606643677, -0.012337304651737213, -0.10469555109739304, -0.0687234178185463, 0.22391915321350098, -0.0708899274468422, 0.1495915800333023, 0.04522109031677246, -0.0051335617899894714, -0.10941223800182343, 0.255257785320282, 0.33729201555252075, 0.1657942235469818, -0.06470529735088348, -0.3107859492301941, 0.03441736102104187, -0.08732522279024124, -0.3460114300251007, 0.05157749727368355, 0.22188714146614075, 0.4663063585758209, 0.17387987673282623, 0.2981778681278229, -0.45260071754455566, 0.16795173287391663, 0.08898515999317169, -0.26716870069503784, 0.25280532240867615, -0.15464523434638977, 0.24966256320476532, -0.06424029171466827, -0.318116694688797, -0.09154804795980453, -0.23167932033538818, 0.01439778134226799, -0.008166022598743439, -0.29469195008277893, 0.005067501217126846, -0.1685151606798172, 0.19281446933746338, 0.24827663600444794, 0.44718137383461, 0.07309125363826752, -0.05936916172504425, 0.012774881906807423, -0.2922624945640564, -0.3306557834148407, 0.40742266178131104, 0.11250254511833191, 0.07742292433977127, -0.2181740403175354, 0.06348202377557755, 0.05165545642375946, 0.1563185155391693, -0.14391933381557465, -0.01930670626461506, 0.0859062597155571, -0.28189629316329956, -0.3947565257549286, 0.2454623579978943, 0.2948845326900482, -0.41461166739463806, 0.13291272521018982, -0.2638409435749054, 0.1263265162706375, -0.29829272627830505, 0.4175754189491272, -0.02288040891289711, -0.3798066973686218, -0.11340735852718353, 0.01169319823384285, 0.2354736030101776, 0.1692182421684265, 0.214370459318161, -0.35356730222702026, -0.16568996012210846, 0.03558582067489624, -0.40714094042778015, -0.16032880544662476, 0.1627783328294754, 0.279819518327713, 0.11604650318622589, 0.1382533609867096, 0.0688864216208458, -0.08488578349351883, 0.21451511979103088, 0.20475207269191742, 0.36921563744544983, -0.1676398515701294, 0.30372199416160583, 0.008168712258338928, 0.08284404873847961, -0.1934593915939331, 0.12536878883838654, -0.04572093486785889, -0.2117874026298523, -0.2946157157421112, -0.6104719042778015, 0.48514121770858765, -0.19773627817630768, -0.21277402341365814, -0.02886035293340683, 0.1586296409368515, 0.1087678000330925, -0.2092406004667282, -0.2904835343360901, 0.10063397139310837, -0.1483011692762375, -0.0817507728934288, -0.27349159121513367, 0.275648832321167, -0.1036040186882019, -0.12136241793632507, -0.1601368635892868, 0.11700161546468735, 0.24976584315299988, -0.22528322041034698, -0.14464609324932098, -0.030421825125813484 ]
https://github.com/huggingface/datasets/pull/2690
Docs details
Thanks for all the comments and for the corrections in the docs ! About all the points you mentioned: > * the code samples assume the expected libraries have already been installed. Maybe add a section at start, or add it to every code sample. Something like `pip install datasets transformers torch 'datasets[streaming]'` (maybe just link to https://huggingface.co/docs/datasets/installation.html + a one-liner that installs all the requirements / alternatively a requirements.txt file) Yes good idea > * "If you’d like to play with the examples, you must install it from source." in https://huggingface.co/docs/datasets/installation.html: it's not clear to me what this means (what are these "examples"?) It refers to examples scripts inside the git repository of the library, see the `examples` folder in the `transformers` repo. We don't have examples yet in the git repo of `datasets` as in transformers. So currently there are no examples. Maybe we can just remove this sentence from the docs for now > * in https://huggingface.co/docs/datasets/loading_datasets.html: "or AWS bucket if it’s not already stored in the library". It's the only place in the doc (aside from the docstring https://huggingface.co/docs/datasets/package_reference/loading_methods.html?highlight=aws bucket#datasets.list_datasets) where the "AWS bucket" is mentioned. It's not easy to understand what this means. Maybe explain more, and link to https://s3.amazonaws.com/datasets.huggingface.co and/or https://huggingface.co/docs/datasets/filesystems.html. This is outdated and must be replaced by ``` or from the Hugging Face Hub if it’s not already stored in the library ``` > * example in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files is obsoleted by [Enable auto-download for PAN-X / Wikiann domain in XTREMEΒ #2326](https://github.com/huggingface/datasets/pull/2326). Also: see [xtreme / pan-x cannot be downloadedΒ #2691](https://github.com/huggingface/datasets/issues/2691) for a bug on this specific dataset. We can replace the `XTREME` `PANX` dataste by `matinf` instead for example > * in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files the doc says "After you’ve downloaded the files, you can point to the folder hosting them locally with the data_dir argument as follows:", but the following example does not show how to use `data_dir` Let's add `data_dir="path/to/your/downloaded/data"` for example > * in https://huggingface.co/docs/datasets/loading_datasets.html#csv-files, it would be nice to have an URL to the csv loader reference (but I'm not sure there is one in the API reference). This comment applies in many places in the doc: I would want the API reference to contain doc for all the code/functions/classes... and I would want a lot more links inside the doc pointing to the API entries. Currently there's no documentation for the CSV loader config. Maybe we can add the docstrings to the `CsvConfig` class to explain the parameters and how it works, and then redirect to the doc of this class in this section of the documentation. > * in the API reference (docstrings) I would prefer "SOURCE" to link to github instead of a copy of the code inside the docs site (eg. https://github.com/huggingface/datasets/blob/master/src/datasets/load.py#L711 instead of https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset) This is the same as in `transformers`, not sure if this is a big issue > * it seems like not all the API is exposed in the doc. For example, there is no doc for [`disable_progress_bar`](https://github.com/huggingface/datasets/search?q=disable_progress_bar), see https://huggingface.co/docs/datasets/search.html?q=disable_progress_bar, even if the code contains docstrings. Does it mean that the function is not officially supported? (otherwise, maybe it also deserves a mention in https://huggingface.co/docs/datasets/package_reference/logging_methods.html) The function `disable_progress_bar` should definitely be in the docs, thanks. We can add it to the logging methods > * in https://huggingface.co/docs/datasets/loading_datasets.html?highlight=most%20efficient%20format%20have%20json%20files%20consisting%20multiple%20json%20objects#json-files, "The most efficient format is to have JSON files consisting of multiple JSON objects, one per line, representing individual data rows:", maybe link to https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON and give it a name ("line-delimited JSON"? "JSON Lines" as in https://huggingface.co/docs/datasets/processing.html#exporting-a-dataset-to-csv-json-parquet-or-to-python-objects ?) Yes good idea ! > * in https://huggingface.co/docs/datasets/loading_datasets.html, for the local files sections, it would be nice to provide sample csv / json / text files to download, so that it's easier for the reader to try to load them (instead: they won't try) Sure why not. Moreover the csv loader now supports remote files so you could just run the code pass an an URL to the sample csv file. > * the doc explains how to shard a dataset, but does not explain why and when a dataset should be sharded (I have no idea... for [parallelizing](https://huggingface.co/docs/datasets/processing.html#multiprocessing)?). It does neither give an idea of the number of shards a dataset typically should have and why. This can be used for distributed processing or just to use a percentage of the data. We can definitely give example of use cases > * the code example in https://huggingface.co/docs/datasets/processing.html#mapping-in-a-distributed-setting does not work, because `training_args` has not been defined before in the doc. `training_args` comes from `transformers`, it's a practical way to define all your arguments to train a model. Maybe we can just import it from `transformers` and use it with the default values
Some comments here: - the code samples assume the expected libraries have already been installed. Maybe add a section at start, or add it to every code sample. Something like `pip install datasets transformers torch 'datasets[streaming]'` (maybe just link to https://huggingface.co/docs/datasets/installation.html + a one-liner that installs all the requirements / alternatively a requirements.txt file) - "If you’d like to play with the examples, you must install it from source." in https://huggingface.co/docs/datasets/installation.html: it's not clear to me what this means (what are these "examples"?) - in https://huggingface.co/docs/datasets/loading_datasets.html: "or AWS bucket if it’s not already stored in the library". It's the only place in the doc (aside from the docstring https://huggingface.co/docs/datasets/package_reference/loading_methods.html?highlight=aws bucket#datasets.list_datasets) where the "AWS bucket" is mentioned. It's not easy to understand what this means. Maybe explain more, and link to https://s3.amazonaws.com/datasets.huggingface.co and/or https://huggingface.co/docs/datasets/filesystems.html. - example in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files is obsoleted by https://github.com/huggingface/datasets/pull/2326. Also: see https://github.com/huggingface/datasets/issues/2691 for a bug on this specific dataset. - in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files the doc says "After you’ve downloaded the files, you can point to the folder hosting them locally with the data_dir argument as follows:", but the following example does not show how to use `data_dir` - in https://huggingface.co/docs/datasets/loading_datasets.html#csv-files, it would be nice to have an URL to the csv loader reference (but I'm not sure there is one in the API reference). This comment applies in many places in the doc: I would want the API reference to contain doc for all the code/functions/classes... and I would want a lot more links inside the doc pointing to the API entries. - in the API reference (docstrings) I would prefer "SOURCE" to link to github instead of a copy of the code inside the docs site (eg. https://github.com/huggingface/datasets/blob/master/src/datasets/load.py#L711 instead of https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset) - it seems like not all the API is exposed in the doc. For example, there is no doc for [`disable_progress_bar`](https://github.com/huggingface/datasets/search?q=disable_progress_bar), see https://huggingface.co/docs/datasets/search.html?q=disable_progress_bar, even if the code contains docstrings. Does it mean that the function is not officially supported? (otherwise, maybe it also deserves a mention in https://huggingface.co/docs/datasets/package_reference/logging_methods.html) - in https://huggingface.co/docs/datasets/loading_datasets.html?highlight=most%20efficient%20format%20have%20json%20files%20consisting%20multiple%20json%20objects#json-files, "The most efficient format is to have JSON files consisting of multiple JSON objects, one per line, representing individual data rows:", maybe link to https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON and give it a name ("line-delimited JSON"? "JSON Lines" as in https://huggingface.co/docs/datasets/processing.html#exporting-a-dataset-to-csv-json-parquet-or-to-python-objects ?) - in https://huggingface.co/docs/datasets/loading_datasets.html, for the local files sections, it would be nice to provide sample csv / json / text files to download, so that it's easier for the reader to try to load them (instead: they won't try) - the doc explains how to shard a dataset, but does not explain why and when a dataset should be sharded (I have no idea... for [parallelizing](https://huggingface.co/docs/datasets/processing.html#multiprocessing)?). It does neither give an idea of the number of shards a dataset typically should have and why. - the code example in https://huggingface.co/docs/datasets/processing.html#mapping-in-a-distributed-setting does not work, because `training_args` has not been defined before in the doc.
776
text: Docs details Some comments here: - the code samples assume the expected libraries have already been installed. Maybe add a section at start, or add it to every code sample. Something like `pip install datasets transformers torch 'datasets[streaming]'` (maybe just link to https://huggingface.co/docs/datasets/installation.html + a one-liner that installs all the requirements / alternatively a requirements.txt file) - "If you’d like to play with the examples, you must install it from source." in https://huggingface.co/docs/datasets/installation.html: it's not clear to me what this means (what are these "examples"?) - in https://huggingface.co/docs/datasets/loading_datasets.html: "or AWS bucket if it’s not already stored in the library". It's the only place in the doc (aside from the docstring https://huggingface.co/docs/datasets/package_reference/loading_methods.html?highlight=aws bucket#datasets.list_datasets) where the "AWS bucket" is mentioned. It's not easy to understand what this means. Maybe explain more, and link to https://s3.amazonaws.com/datasets.huggingface.co and/or https://huggingface.co/docs/datasets/filesystems.html. - example in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files is obsoleted by https://github.com/huggingface/datasets/pull/2326. Also: see https://github.com/huggingface/datasets/issues/2691 for a bug on this specific dataset. - in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files the doc says "After you’ve downloaded the files, you can point to the folder hosting them locally with the data_dir argument as follows:", but the following example does not show how to use `data_dir` - in https://huggingface.co/docs/datasets/loading_datasets.html#csv-files, it would be nice to have an URL to the csv loader reference (but I'm not sure there is one in the API reference). This comment applies in many places in the doc: I would want the API reference to contain doc for all the code/functions/classes... and I would want a lot more links inside the doc pointing to the API entries. - in the API reference (docstrings) I would prefer "SOURCE" to link to github instead of a copy of the code inside the docs site (eg. https://github.com/huggingface/datasets/blob/master/src/datasets/load.py#L711 instead of https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset) - it seems like not all the API is exposed in the doc. For example, there is no doc for [`disable_progress_bar`](https://github.com/huggingface/datasets/search?q=disable_progress_bar), see https://huggingface.co/docs/datasets/search.html?q=disable_progress_bar, even if the code contains docstrings. Does it mean that the function is not officially supported? (otherwise, maybe it also deserves a mention in https://huggingface.co/docs/datasets/package_reference/logging_methods.html) - in https://huggingface.co/docs/datasets/loading_datasets.html?highlight=most%20efficient%20format%20have%20json%20files%20consisting%20multiple%20json%20objects#json-files, "The most efficient format is to have JSON files consisting of multiple JSON objects, one per line, representing individual data rows:", maybe link to https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON and give it a name ("line-delimited JSON"? "JSON Lines" as in https://huggingface.co/docs/datasets/processing.html#exporting-a-dataset-to-csv-json-parquet-or-to-python-objects ?) - in https://huggingface.co/docs/datasets/loading_datasets.html, for the local files sections, it would be nice to provide sample csv / json / text files to download, so that it's easier for the reader to try to load them (instead: they won't try) - the doc explains how to shard a dataset, but does not explain why and when a dataset should be sharded (I have no idea... for [parallelizing](https://huggingface.co/docs/datasets/processing.html#multiprocessing)?). It does neither give an idea of the number of shards a dataset typically should have and why. - the code example in https://huggingface.co/docs/datasets/processing.html#mapping-in-a-distributed-setting does not work, because `training_args` has not been defined before in the doc. Thanks for all the comments and for the corrections in the docs ! About all the points you mentioned: > * the code samples assume the expected libraries have already been installed. Maybe add a section at start, or add it to every code sample. Something like `pip install datasets transformers torch 'datasets[streaming]'` (maybe just link to https://huggingface.co/docs/datasets/installation.html + a one-liner that installs all the requirements / alternatively a requirements.txt file) Yes good idea > * "If you’d like to play with the examples, you must install it from source." in https://huggingface.co/docs/datasets/installation.html: it's not clear to me what this means (what are these "examples"?) It refers to examples scripts inside the git repository of the library, see the `examples` folder in the `transformers` repo. We don't have examples yet in the git repo of `datasets` as in transformers. So currently there are no examples. Maybe we can just remove this sentence from the docs for now > * in https://huggingface.co/docs/datasets/loading_datasets.html: "or AWS bucket if it’s not already stored in the library". It's the only place in the doc (aside from the docstring https://huggingface.co/docs/datasets/package_reference/loading_methods.html?highlight=aws bucket#datasets.list_datasets) where the "AWS bucket" is mentioned. It's not easy to understand what this means. Maybe explain more, and link to https://s3.amazonaws.com/datasets.huggingface.co and/or https://huggingface.co/docs/datasets/filesystems.html. This is outdated and must be replaced by ``` or from the Hugging Face Hub if it’s not already stored in the library ``` > * example in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files is obsoleted by [Enable auto-download for PAN-X / Wikiann domain in XTREMEΒ #2326](https://github.com/huggingface/datasets/pull/2326). Also: see [xtreme / pan-x cannot be downloadedΒ #2691](https://github.com/huggingface/datasets/issues/2691) for a bug on this specific dataset. We can replace the `XTREME` `PANX` dataste by `matinf` instead for example > * in https://huggingface.co/docs/datasets/loading_datasets.html#manually-downloading-files the doc says "After you’ve downloaded the files, you can point to the folder hosting them locally with the data_dir argument as follows:", but the following example does not show how to use `data_dir` Let's add `data_dir="path/to/your/downloaded/data"` for example > * in https://huggingface.co/docs/datasets/loading_datasets.html#csv-files, it would be nice to have an URL to the csv loader reference (but I'm not sure there is one in the API reference). This comment applies in many places in the doc: I would want the API reference to contain doc for all the code/functions/classes... and I would want a lot more links inside the doc pointing to the API entries. Currently there's no documentation for the CSV loader config. Maybe we can add the docstrings to the `CsvConfig` class to explain the parameters and how it works, and then redirect to the doc of this class in this section of the documentation. > * in the API reference (docstrings) I would prefer "SOURCE" to link to github instead of a copy of the code inside the docs site (eg. https://github.com/huggingface/datasets/blob/master/src/datasets/load.py#L711 instead of https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset) This is the same as in `transformers`, not sure if this is a big issue > * it seems like not all the API is exposed in the doc. For example, there is no doc for [`disable_progress_bar`](https://github.com/huggingface/datasets/search?q=disable_progress_bar), see https://huggingface.co/docs/datasets/search.html?q=disable_progress_bar, even if the code contains docstrings. Does it mean that the function is not officially supported? (otherwise, maybe it also deserves a mention in https://huggingface.co/docs/datasets/package_reference/logging_methods.html) The function `disable_progress_bar` should definitely be in the docs, thanks. We can add it to the logging methods > * in https://huggingface.co/docs/datasets/loading_datasets.html?highlight=most%20efficient%20format%20have%20json%20files%20consisting%20multiple%20json%20objects#json-files, "The most efficient format is to have JSON files consisting of multiple JSON objects, one per line, representing individual data rows:", maybe link to https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON and give it a name ("line-delimited JSON"? "JSON Lines" as in https://huggingface.co/docs/datasets/processing.html#exporting-a-dataset-to-csv-json-parquet-or-to-python-objects ?) Yes good idea ! > * in https://huggingface.co/docs/datasets/loading_datasets.html, for the local files sections, it would be nice to provide sample csv / json / text files to download, so that it's easier for the reader to try to load them (instead: they won't try) Sure why not. Moreover the csv loader now supports remote files so you could just run the code pass an an URL to the sample csv file. > * the doc explains how to shard a dataset, but does not explain why and when a dataset should be sharded (I have no idea... for [parallelizing](https://huggingface.co/docs/datasets/processing.html#multiprocessing)?). It does neither give an idea of the number of shards a dataset typically should have and why. This can be used for distributed processing or just to use a percentage of the data. We can definitely give example of use cases > * the code example in https://huggingface.co/docs/datasets/processing.html#mapping-in-a-distributed-setting does not work, because `training_args` has not been defined before in the doc. `training_args` comes from `transformers`, it's a practical way to define all your arguments to train a model. Maybe we can just import it from `transformers` and use it with the default values
[ -0.08567982912063599, -0.5370575189590454, -0.08588144183158875, 0.15085099637508392, 0.06542081385850906, 0.014382533729076385, 0.17239828407764435, -0.23642423748970032, -0.05831677466630936, -0.042147308588027954, -0.13683801889419556, 0.26026326417922974, -0.10230682045221329, 0.1953487992286682, 0.0921034887433052, -0.15739811956882477, 0.08419881761074066, 0.11539725959300995, -0.3476186692714691, -0.11138620972633362, 0.031948626041412354, 0.2589716911315918, -0.1709887683391571, -0.0030779242515563965, -0.22633673250675201, -0.03467612713575363, 0.10227300226688385, 0.10323487967252731, -0.4975692629814148, -0.27841538190841675, 0.2916993200778961, 0.17042100429534912, -0.007358287461102009, 0.5193789601325989, -0.00010941842629108578, -0.05681878700852394, 0.30489522218704224, -0.09170205146074295, -0.36277905106544495, -0.21292074024677277, -0.08500052988529205, -0.06272704154253006, 0.24763637781143188, -0.17070937156677246, -0.1013120636343956, 0.06765031814575195, 0.016740530729293823, -0.08491545915603638, 0.49360060691833496, 0.040032073855400085, 0.23977170884609222, 0.5959407091140747, 0.04072091355919838, -0.13023076951503754, 0.1825738400220871, 0.2821662425994873, -0.2525913417339325, 0.12659572064876556, 0.18345889449119568, 0.16988632082939148, -0.058325640857219696, 0.4849347770214081, -0.06510736793279648, 0.1792043298482895, 0.6060485243797302, -0.051158979535102844, -0.49345749616622925, -0.17183591425418854, -0.07498767226934433, 0.12196297943592072, 0.5340390801429749, -0.3853343427181244, -0.5150432586669922, -0.3366820812225342, -0.15898865461349487, -0.13195359706878662, 0.06840275228023529, 0.14093077182769775, -0.19491776823997498, 0.1172722727060318, -0.4047445058822632, -0.2988680601119995, -0.2012600302696228, 0.07106658071279526, 0.03470715880393982, 0.2852310538291931, -0.48087719082832336, 0.021127671003341675, 0.19735504686832428, -0.04272805154323578, 0.08299962431192398, -0.14008936285972595, 0.20206135511398315, 0.15829309821128845, -0.14958779513835907, 0.0006909221410751343, 0.11172333359718323, 0.4719645380973816, 0.17784222960472107, 0.2670939564704895, 0.20886042714118958, 0.0007348880171775818, -0.07112450152635574, 0.1872912049293518, 0.03712095320224762, 0.1650436818599701, 0.05897193029522896, 0.03948143124580383, 0.07050211727619171, 0.302734375, 0.4692762494087219, -0.24295693635940552, 0.028267867863178253, -0.14357076585292816, -0.29854971170425415, -0.23797622323036194, 0.2388548105955124, -0.1983119547367096, -0.20185962319374084, -0.05427362024784088, 0.1403629183769226, -0.13367818295955658, 0.13046272099018097, 0.45557308197021484, -0.01555925514549017, -0.09102950245141983, 0.05249457061290741, 0.14443552494049072, -0.11523410677909851, 0.0037698764353990555, -0.20262286067008972, 0.1311221569776535, -0.3640950322151184, 0.0989367887377739, 0.12937062978744507, -0.4448324739933014, 0.523834764957428, 0.028783701360225677, 0.19446535408496857, 0.2629585564136505, 0.04086069017648697, 0.24229802191257477, 0.2541365623474121, 0.23377501964569092, -0.09412908554077148, 0.24757929146289825, 0.07066626846790314, 0.1466025710105896, -0.17873741686344147, -0.1524392068386078, -0.17482081055641174, -0.4029683768749237, -0.228586807847023, 0.19186848402023315, -0.34122389554977417, 0.008950643241405487, -0.3278367817401886, 0.03501688316464424, -0.07296807318925858, -0.19751109182834625, 0.18390990793704987, 0.12846927344799042, 0.0068823061883449554, -0.13553152978420258, 0.35355719923973083, 0.5883943438529968, 0.011911366134881973, -0.27466878294944763, -0.09778263419866562, -0.2223789542913437, -0.0659690871834755, 0.22977110743522644, -0.31461289525032043, 0.11195774376392365, -0.27118203043937683, 0.027247123420238495, 0.22030141949653625, -0.4405018985271454, -0.0952104851603508, 0.2870938777923584, 0.024277977645397186, 0.11370334774255753, 0.11759179830551147, -0.11454708129167557, -0.03521827608346939, 0.010823789052665234, -0.1639714539051056, 0.009336368180811405, 0.07459177821874619, -0.02588219940662384, -0.16109655797481537, -0.28352442383766174, -0.14593321084976196, 0.1469765156507492, -0.13054218888282776, -0.018045656383037567, 0.047118157148361206, 0.13837790489196777, 0.055433087050914764, -0.07207778096199036, 0.06498304754495621, 0.3421105742454529, 0.13634279370307922, 0.18004804849624634, -0.12531384825706482, -0.2099064290523529, -0.6311981678009033, 0.013864915817975998, 0.15315257012844086, 0.12991231679916382, -0.27645570039749146, -0.22697295248508453, -0.09749630093574524, -0.049133848398923874, -0.24451883137226105, -0.4140198230743408, 0.12141332030296326, 0.03464658930897713, 0.1544339507818222, -0.201890766620636, -0.34384188055992126, 0.15186555683612823, -0.040451571345329285, 0.21175818145275116, -0.7276038527488708, 0.05663743615150452, -0.15337415039539337, 0.06517456471920013, 0.07431120425462723, -0.024757258594036102, 0.0016598552465438843, -0.17710335552692413, 0.0847070962190628, 0.5438255667686462, -0.14099183678627014, 0.4275457262992859, 0.10979185253381729, 0.43743234872817993, 0.18521253764629364, -0.2888244092464447, 0.2276865392923355, -0.012941401451826096, 0.15912289917469025, 0.1712351143360138, -0.4758753478527069, 0.15660804510116577, -0.3407589793205261, 0.130844846367836, 0.20303095877170563, -0.13111060857772827, 0.10277138650417328, 0.042829129844903946, -0.42550718784332275, -0.10699933767318726, 0.1350325644016266, -0.016302071511745453, 0.24975763261318207, 0.02682063728570938, -0.27848225831985474, 0.00229857861995697, 0.2068767249584198, -0.10689666867256165, -0.1357419788837433, 0.1367853581905365, -0.24302861094474792, -0.05094385892152786, 0.3007030487060547, 0.16050226986408234, 0.3271274268627167, 0.3421090841293335, 0.15662339329719543, -0.004599368199706078, 0.10419030487537384, -0.24431824684143066, 0.2238403558731079, 0.23978666961193085, -0.22957856953144073, 0.16949033737182617, -0.23043009638786316, 0.0955573245882988, -0.36012002825737, -0.14883486926555634, -0.15022766590118408, 0.03993336111307144, -0.4173293709754944, 0.1685478687286377, -0.12396959215402603, -0.3313571512699127, -0.26491090655326843, -0.1508629322052002, -0.2481343150138855, -0.21629755198955536, 0.04330174997448921, 0.13784337043762207, -0.16713453829288483, 0.1536559760570526, 0.1503375619649887, 0.2687300145626068, -0.07114256173372269, -0.12180721014738083, -0.37200260162353516, 0.08551004528999329, -0.003637511283159256, 0.13726580142974854, 0.146708145737648, 0.2235441356897354, 0.4762490689754486, -0.2715183198451996, 0.1338939070701599, -0.42764076590538025, -0.3301352858543396, 0.3318336009979248, -0.15561842918395996, 0.2849738597869873, 0.479147732257843, 0.1973448544740677, -0.19790299236774445, -0.22887562215328217, 0.16628223657608032, -0.2530289888381958, -0.04609017074108124, -0.31028759479522705, -0.05148584395647049, -0.13576747477054596, -0.1922026127576828, -0.4260854423046112, 0.06133342534303665, -0.5180153250694275, 0.3533201813697815, 0.04385248199105263, 0.02538243681192398, 0.16147080063819885, 0.13455471396446228, 0.2755003869533539, -0.20221874117851257, 0.2563308775424957, -0.18201476335525513, -0.6659803986549377, 0.39347508549690247, -0.2700023651123047, -0.27257856726646423, 0.05696515366435051, 0.24279142916202545, 0.29956063628196716, 0.006854579783976078, -0.2505817115306854, -0.23947151005268097, -0.1280813217163086, -0.0016461871564388275, 0.0006214417517185211, 0.5752080082893372, 0.3394694924354553, 0.03644994646310806, -0.08538975566625595, -0.219697505235672, -0.2026601880788803, -0.2028031349182129, -0.23558729887008667, 0.29286321997642517, -0.001516968011856079, 0.2391211986541748, 0.040771063417196274, 0.988132655620575, 0.2847334146499634, -0.1479872316122055, 0.24451453983783722, 0.057020168751478195, 0.5541629791259766, -0.06321153789758682, -0.24357998371124268, 0.012574856169521809, 0.04400362819433212, 0.10799813270568848, 0.27150285243988037, 0.21335360407829285, 0.3710205554962158, -0.17224687337875366, 0.0028082989156246185, -0.3686624765396118, -0.076082244515419, 0.007229900918900967, 0.019976256415247917, 0.19367104768753052, -0.03017183393239975, 0.045380957424640656, -0.022112920880317688, 0.06478515267372131, 0.07132217288017273, 0.4097154140472412, 0.32653680443763733, 0.15904025733470917, -0.0952892154455185, 0.08529558777809143, -0.45393669605255127, 0.11904128640890121, -0.05676718428730965, -0.1599581092596054, -0.053764164447784424, -0.09569351375102997, 0.17353487014770508, -0.03167704492807388, 0.4486125111579895, -0.10606727749109268, -0.2191191166639328, -0.22321374714374542, -0.1518707275390625, -0.4427841901779175, 0.08274418115615845, -0.2665112018585205, 0.18868041038513184, 0.1831110566854477, 0.24347232282161713, -0.537184476852417, -0.4097122550010681, 0.13396459817886353, -0.08042401820421219, 0.008439432829618454, -0.15366056561470032, -0.1856088638305664, -0.32223445177078247, -0.45046982169151306, -0.038366056978702545, 0.2932596504688263, -0.2395343780517578, 0.029842928051948547, 0.003977831453084946, 0.19924651086330414, 0.20333516597747803, 0.19082368910312653, 0.18097783625125885, 0.2880061864852905, -0.05853591114282608, -0.07091031223535538, 0.3556218445301056, 0.07699907571077347, 0.19560500979423523, 0.7776910662651062, -0.004377633333206177, 0.02016838639974594, 0.10911829769611359, 0.25696370005607605, 0.1572055071592331, 0.3274931013584137, -0.013097685761749744, 0.014155648648738861, 0.15611203014850616, 0.25915729999542236, -0.2542359232902527, 0.08254914730787277, 0.271261990070343, 0.09480070322751999, -0.05947535112500191, -0.3203919529914856, 0.5515052676200867, -0.002009047195315361, -0.11864224821329117, 0.1787223070859909, 0.5103780031204224, -0.07529930025339127, 0.12032735347747803, 0.21077480912208557, 0.9828699231147766, -0.026161037385463715, 0.34986412525177, 0.323703408241272, -0.1346374750137329, 0.6651979684829712, -0.4140499234199524, -0.14189942181110382, -0.0673796683549881, -0.01606488972902298, -0.117589570581913, -0.1640166938304901, 0.09714142978191376, -0.047602757811546326, -0.2546371817588806, 0.34391340613365173, -0.017872311174869537, 0.42338719964027405, -0.04587236046791077, 0.3178243637084961, -0.3148753046989441, -0.3252607583999634, -0.3404303789138794, 0.18873906135559082, 0.1559911072254181, 0.4110693633556366, -0.24157214164733887, -0.2353585660457611, -0.012871455401182175, -0.4022756814956665, -0.20679831504821777, -0.09102823585271835, -0.011702435091137886, 0.08645283430814743, 0.0505358949303627, -0.05917864292860031, 0.36921101808547974, 0.3374609053134918, 0.04630114883184433, 0.02192940190434456, -0.4668187201023102, 0.1200295239686966, -0.17519447207450867, -0.20534300804138184, -0.19150663912296295, 0.052117399871349335, 0.1725030541419983, -0.13985568284988403, 0.022397063672542572, 0.02619578316807747, 0.006768298335373402, -0.15414297580718994, -0.011687368154525757, 0.01949547976255417, -0.1566053181886673, -0.48401662707328796, -0.16573376953601837, 0.06003052741289139, -0.18398691713809967, -0.023275919258594513, 0.16844624280929565, 0.14101871848106384, -0.20931671559810638, 0.07427412271499634, 0.21800760924816132, 0.02122853696346283, -0.28771042823791504, 0.4224041700363159, -0.20290082693099976, -0.1769554764032364, 0.0728234350681305, 0.12102629244327545, -0.35241860151290894, -0.24393564462661743, -0.18281084299087524, 0.26138463616371155, -0.5044517517089844, 0.012946037575602531, 0.10378450900316238, -0.013484418392181396, 0.053892720490694046, 0.15804430842399597, 0.29272758960723877, -0.04159136116504669, -0.13536956906318665, -0.09140077978372574, -0.07044245302677155, 0.3586968779563904, -0.04149549826979637, 0.3410622477531433, 0.06709249317646027, 0.0482606515288353, 0.2646600604057312, 0.06676306575536728, -0.4021029770374298, 0.09318557381629944, -0.012260429561138153, 0.07591797411441803, 0.3865583539009094, -0.01274188607931137, 0.3285503089427948, -0.15124492347240448, 0.09748847037553787, 0.014559000730514526, -0.46491873264312744, -0.2215632200241089, -0.08956253528594971, 0.15155363082885742, 0.11350208520889282, -0.24788977205753326, 0.01903975009918213, 0.15286807715892792, -0.16379575431346893, -0.13282229006290436, 0.3014666438102722, 0.29151713848114014, 0.05593791976571083, 0.10331817716360092, 0.05964651331305504, -0.06263350695371628, -0.12371035665273666, -0.15024004876613617, 0.13625101745128632, 0.05156658589839935, 0.04743490740656853, 0.016237858682870865, -0.17333662509918213, -0.19379454851150513, 0.14002040028572083, 0.2906804382801056, 0.39145320653915405, 0.13036787509918213, 0.2885476052761078, -0.06388596445322037, 0.016098961234092712, -0.11230693012475967, 0.5146105289459229, 0.25786787271499634, -0.12987470626831055, 0.028863871470093727, 0.15223348140716553, 0.2312133014202118, -0.18111324310302734, -0.14746463298797607, -0.32569360733032227, -0.07294650375843048, 0.12683355808258057, 0.14839661121368408, 0.17825080454349518, -0.013684064149856567, 0.21769151091575623, 0.12586674094200134, 0.39432021975517273, -0.11207187175750732, 0.24471241235733032, 0.13033851981163025, -0.12574201822280884, 0.03173796832561493, 0.3369176387786865, 0.13281238079071045, 0.2741607427597046, 0.15300342440605164, -0.1788695752620697, 0.3198908269405365, -0.1910502314567566, 0.42403438687324524, 0.088224396109581, -0.19597089290618896, -0.1377187818288803, 0.0376671627163887, 0.17286498844623566, 0.14121532440185547, -0.06409333646297455, 0.3728305995464325, -0.15581141412258148, -0.07808993011713028, -0.27139315009117126, 0.31404030323028564, -0.018844150006771088, -0.13397809863090515, -0.0627022236585617, -0.23810943961143494, -0.013060398399829865, -0.013465968891978264, -0.0773380845785141, -0.26252418756484985, 0.36466020345687866, -0.07918089628219604, 0.07440049946308136, -0.21458980441093445, 0.12049424648284912, 0.11833490431308746, 0.25720730423927307, -0.08510833978652954, 0.2510110139846802, 0.11198803037405014, -0.14107684791088104, -0.13791579008102417, 0.449787974357605, 0.6038699746131897, 0.10495559871196747, 0.276556134223938, 0.1541830599308014, -0.11403878033161163, -0.03957647457718849, 0.0342462882399559, 0.22621051967144012, -0.11029507219791412, -0.06665891408920288, 0.2525613009929657, 0.25212693214416504, -0.29722705483436584, 0.017797773703932762, -0.3281340003013611, -0.0779503881931305, -0.2906762659549713, 0.15050028264522552, -0.21507473289966583, -0.030764397233724594, -0.11851327121257782, 0.08191251009702682, -0.7344391942024231, 0.1862071305513382, 0.30542612075805664, -0.025297077372670174, 0.06737636774778366, -0.1763271987438202, 0.10358740389347076, 0.20923388004302979, 0.5755198001861572, 0.3593251407146454, 0.3569096326828003, -0.22373738884925842, -0.28491395711898804, -0.5564881563186646, -0.1962357461452484, 0.1660410463809967, 0.11386317014694214, 0.009907626546919346, 0.05340215563774109, 0.015352576971054077, 0.30449342727661133, -0.04977723956108093, -0.23369446396827698, -0.04964342713356018, -0.03387457877397537, -0.04547910764813423, 0.01753397285938263, -0.20051588118076324, 0.06907856464385986, 0.1753700077533722, -0.11587858200073242, -0.05035010352730751, -0.08707371354103088, 0.040001824498176575, -0.18632209300994873, 0.3939574360847473, 0.0027839653193950653, -0.23817503452301025, 0.12438365817070007, 0.05391281843185425, 0.1888570934534073, -0.18746238946914673, -0.16082684695720673, -0.16656950116157532, -0.15604601800441742, -0.141246035695076, 0.1353428065776825, -0.03133906051516533, 0.29898110032081604, -0.1170913353562355, -0.41541653871536255, -0.42269590497016907, 0.11684893071651459, 0.14508125185966492, -0.01638634130358696, -0.21318520605564117, 0.11408696323633194, -0.312285453081131, 0.12628760933876038, 0.07733076065778732, 0.3352736532688141, -0.13258615136146545, 0.061466969549655914, -0.3883417248725891, -0.3658991754055023, 0.7520153522491455, -0.23759204149246216, 0.09820777177810669, 0.09836457669734955, 0.1698446124792099, 0.5618283152580261, -0.23486319184303284, -0.9560418725013733, 0.25556880235671997, 0.15381424129009247, 0.0670253187417984, -0.12585414946079254, 0.31450870633125305, -0.04467320814728737, -0.1678854525089264, -0.21473746001720428, 0.4165748953819275, 0.14498011767864227, -0.11593138426542282, 0.14040474593639374, -0.28101444244384766 ]
https://github.com/huggingface/datasets/pull/2685
Fix Blog Authorship Corpus dataset
That is: ``` =========================== short test summary info ============================ FAILED tests/test_dataset_cards.py::test_changed_dataset_card[blog_authorship_corpus] ==== 1 failed, 3182 passed, 2763 skipped, 16 warnings in 201.23s (0:03:21) ===== ```
This PR: - Update the JSON metadata file, which previously was raising a `NonMatchingSplitsSizesError` - Fix the codec of the data files (`latin_1` instead of `utf-8`), which previously was raising ` UnicodeDecodeError` for some files Close #2679.
25
text: Fix Blog Authorship Corpus dataset This PR: - Update the JSON metadata file, which previously was raising a `NonMatchingSplitsSizesError` - Fix the codec of the data files (`latin_1` instead of `utf-8`), which previously was raising ` UnicodeDecodeError` for some files Close #2679. That is: ``` =========================== short test summary info ============================ FAILED tests/test_dataset_cards.py::test_changed_dataset_card[blog_authorship_corpus] ==== 1 failed, 3182 passed, 2763 skipped, 16 warnings in 201.23s (0:03:21) ===== ```
[ -0.14790131151676178, 0.38822710514068604, -0.17969107627868652, -0.05608755350112915, 0.1837082803249359, 0.1795409917831421, 0.07255075871944427, 0.5365931391716003, -0.24941593408584595, 0.04927079379558563, 0.3324342668056488, 0.15467064082622528, -0.018235594034194946, -0.1491931825876236, -0.012047271244227886, 0.09200388193130493, 0.06283657252788544, 0.20043545961380005, 0.2694799602031708, -0.09120287001132965, -0.30719390511512756, 0.09439023584127426, -0.26296505331993103, 0.0625954419374466, -0.20914483070373535, -0.21193622052669525, 0.08907493948936462, 0.24768251180648804, -0.315542072057724, -0.715550422668457, -0.031000707298517227, 0.26577702164649963, -0.23979030549526215, 0.20162925124168396, -0.00010745351755758747, -0.16152173280715942, 0.5301464796066284, -0.1254722774028778, -0.17106230556964874, -0.1676775962114334, -0.2409728467464447, -0.12305405735969543, -0.31085121631622314, -0.24496281147003174, 0.0582132562994957, -0.1377754956483841, 0.0817401260137558, -0.2807936668395996, 0.14004072546958923, 0.5867737531661987, 0.2678336501121521, -0.04489760100841522, 0.06139972433447838, -0.04976024106144905, 0.12532685697078705, 0.22087986767292023, -0.023138638585805893, 0.08999934792518616, 0.31046873331069946, -0.3210686147212982, -0.01735641062259674, 0.4967431128025055, -0.3631926476955414, 0.02243822067975998, -0.05513938516378403, -0.13473498821258545, 0.33846724033355713, -0.2776433229446411, 0.477647066116333, -0.10861458629369736, 0.6440593004226685, -0.30396467447280884, -0.12085308879613876, 0.007406212389469147, 0.10767467319965363, -0.2362508922815323, 0.18390995264053345, 0.21746574342250824, -0.19844016432762146, 0.06207043677568436, -0.1524241417646408, -0.12750010192394257, -0.13023406267166138, -0.09519290924072266, 0.02685616910457611, 0.2758854627609253, 0.10623114556074142, 0.03382363170385361, -0.17161382734775543, -0.1298530399799347, 0.1441413164138794, 0.15019533038139343, -0.2674734890460968, 0.1784745305776596, 0.11935587227344513, -0.16371914744377136, 0.13957476615905762, -0.19531500339508057, 0.2606641352176666, 0.2592793405056, 0.024646837264299393, 0.15433204174041748, 0.14403469860553741, 0.05572710558772087, 0.06072240695357323, -0.08825232088565826, 0.30765387415885925, 0.5307392477989197, 0.2864452302455902, 0.19649679958820343, -0.06899738311767578, 0.04291149228811264, 0.03289489075541496, -0.23234248161315918, 0.13106080889701843, 0.34892648458480835, 0.5419051647186279, -0.35428598523139954, -0.33321863412857056, 0.38260480761528015, -0.22434553503990173, -0.28892654180526733, -0.3048810064792633, 0.5527912974357605, -0.07227195054292679, 0.07079774141311646, -0.010531706735491753, 0.08318895101547241, -0.10002005845308304, 0.1212739571928978, -0.16666841506958008, 0.21123062074184418, -0.043443918228149414, -0.043173886835575104, -0.11235074698925018, -0.01987527310848236, 0.3298901617527008, -0.06893251836299896, 0.18862874805927277, -0.21601183712482452, 0.10704317688941956, 0.014430653303861618, 0.19382290542125702, 0.26143214106559753, -0.24456602334976196, 0.19338475167751312, 0.18873877823352814, -0.39323651790618896, -0.1503397673368454, 0.14910411834716797, -0.05808001011610031, -0.3021690845489502, 0.06541977822780609, 0.30998092889785767, 0.017953500151634216, -0.19735530018806458, 0.031484656035900116, 0.16133929789066315, 0.3083219826221466, -0.2897265553474426, 0.3966531455516815, -0.11191318929195404, 0.1162257194519043, -0.1257561445236206, -0.09439224004745483, 0.5253812670707703, -0.012329399585723877, -0.04309515655040741, 0.4300239682197571, 0.0736662894487381, 0.40405336022377014, 0.09021928906440735, 0.10329759865999222, 0.09476979076862335, -0.10848429799079895, 0.2537240982055664, 0.21690019965171814, -0.6091208457946777, -0.263252854347229, -0.09805196523666382, -0.11748766899108887, 0.023167809471488, 0.22600165009498596, -0.1490718275308609, 0.21337421238422394, -0.24166230857372284, 0.0023113414645195007, 0.09919208288192749, -0.11925867199897766, 0.1783241182565689, -0.4481886327266693, 0.09590065479278564, 0.10015149414539337, 0.10968022048473358, 0.15958799421787262, -0.07893513888120651, 0.13434720039367676, 0.345298707485199, 0.38398686051368713, -0.12792421877384186, 0.04072239249944687, 0.2900058627128601, 0.26185306906700134, -0.04239538311958313, 0.036519069224596024, 0.07793255895376205, 0.1639193892478943, -0.023394761607050896, -0.14845627546310425, 0.4040946066379547, -0.3837805986404419, -0.23787708580493927, -0.48787546157836914, -0.11770029366016388, -0.2793424129486084, -0.4917292892932892, 0.19021429121494293, 0.23578861355781555, 0.23311495780944824, 0.21124222874641418, -0.3437533378601074, 0.19223026931285858, -0.263017475605011, 0.07256525754928589, -0.3363022208213806, 0.10600602626800537, -0.23010946810245514, -0.2581852078437805, 0.20920053124427795, 0.18972918391227722, 0.10735200345516205, -0.14784860610961914, -0.18912151455879211, 0.4091041386127472, -0.19143708050251007, 0.27282655239105225, -0.03781121224164963, -0.013841897249221802, 0.13758467137813568, -0.4258742928504944, -0.005943784490227699, 0.39731335639953613, 0.1815805733203888, -0.08447036147117615, 0.037120938301086426, 0.2900729775428772, -0.1950058937072754, 0.003542780876159668, -0.08451220393180847, -0.13475960493087769, 0.3561745584011078, 0.017082903534173965, -0.279585063457489, -0.21280767023563385, 0.2908731698989868, 0.09172205626964569, -0.04314493387937546, -0.13824227452278137, -0.1977049857378006, 0.03733018413186073, 0.7897223830223083, -0.16053266823291779, 0.0565367192029953, 0.1929166615009308, 0.040809936821460724, -0.2150428295135498, -0.15806202590465546, 0.031097393482923508, 0.30154556035995483, 0.05686637759208679, -0.048585277050733566, 0.22906550765037537, 0.035202134400606155, -0.3606286644935608, 0.27123042941093445, -0.23679529130458832, -0.05432283505797386, 0.20020920038223267, 0.24181467294692993, -0.048730719834566116, -0.21791177988052368, -0.2120724767446518, 0.03823568671941757, 0.5268359780311584, -0.24860303103923798, -0.13106052577495575, -0.1517009288072586, -0.1866759955883026, -0.1120954155921936, -0.18878613412380219, -0.13765284419059753, -0.16128964722156525, 0.240717351436615, -0.03609544411301613, -0.2223433405160904, 0.3418733477592468, -0.007879998534917831, 0.10236989706754684, -0.044353801757097244, 0.03971662372350693, -0.32682785391807556, -0.2882947623729706, -0.04689117521047592, 0.11991043388843536, 0.13313451409339905, 0.15461093187332153, 0.3404826521873474, -0.5043227076530457, -0.14914387464523315, -0.33716464042663574, -0.21236613392829895, -0.05818977952003479, -0.14191856980323792, -0.13425375521183014, 0.18451976776123047, 0.15928331017494202, 0.27592843770980835, -0.22696933150291443, 0.11786063015460968, -0.33309507369995117, -0.1720924824476242, 0.00982150249183178, 0.06205211579799652, 0.14395080506801605, 0.02043718844652176, -0.46234777569770813, -0.19430622458457947, -0.36441880464553833, 0.2341308444738388, 0.15967239439487457, 0.15142622590065002, 0.1359655261039734, -0.0569172166287899, -0.0028986958786845207, -0.17865429818630219, 0.25739625096321106, -0.18795959651470184, -0.23798692226409912, 0.054077666252851486, -0.0826774463057518, -0.2780478298664093, 0.0036835968494415283, 0.18295183777809143, 0.25154057145118713, -0.34312963485717773, -0.34248507022857666, -0.2676171362400055, -0.044494546949863434, 0.053407665342092514, -0.13828104734420776, 0.010533284395933151, 0.4152211546897888, 0.08924666792154312, -0.2349942922592163, 0.00833667442202568, -0.24327149987220764, -0.24277105927467346, 0.02155051939189434, 0.13365089893341064, -0.15121448040008545, 0.4165438413619995, -0.08784325420856476, 0.2335169017314911, 0.41326090693473816, 0.2067820429801941, 0.014382906258106232, -0.08063928782939911, 0.13411805033683777, -0.002698943018913269, -0.24328318238258362, 0.3360730707645416, 0.04135161638259888, -0.2162262201309204, 0.16497500240802765, -0.15424293279647827, -0.10060835629701614, -0.04868478327989578, -0.17346525192260742, -0.41409245133399963, -0.09907475113868713, 0.17603237926959991, -0.3261055648326874, 0.2309454083442688, 0.06851731240749359, 0.11418513208627701, -0.17137330770492554, -0.02515546977519989, 0.12689964473247528, 0.2872074842453003, 0.12921398878097534, -0.08130355179309845, -0.31104105710983276, -0.013224704191088676, -0.40389421582221985, 0.3954397439956665, 0.09155570715665817, 0.34890997409820557, -0.2569297254085541, 0.06671938300132751, -0.018459215760231018, -0.36351680755615234, 0.12545424699783325, -0.3226866126060486, 0.03475578874349594, 0.3181162476539612, 0.1989816278219223, -0.021237270906567574, -0.0672939121723175, -0.2947826087474823, 0.32938697934150696, 0.13729484379291534, 0.20054671168327332, -0.16486579179763794, -0.05446932837367058, 0.2646523714065552, -0.08623477816581726, 0.03327462449669838, 0.15688154101371765, -0.34767207503318787, -0.6129710078239441, -0.5572555661201477, 0.31029239296913147, 0.13814949989318848, 0.12767831981182098, -0.005406547337770462, -0.05840286612510681, 0.17070263624191284, -0.022559605538845062, 0.17147544026374817, 0.1748843640089035, -0.01297079585492611, 0.07041745632886887, -0.08935452997684479, -0.09712249040603638, -0.2477039396762848, 0.40941208600997925, 0.49260491132736206, 0.015185099095106125, -0.20195171236991882, -0.17244702577590942, -0.22090375423431396, 0.2625489830970764, 0.2962416708469391, -0.046733759343624115, 0.25563856959342957, -0.11487118899822235, 0.12687453627586365, -0.34245896339416504, 0.0043495954014360905, 0.2874729335308075, 0.2013550102710724, -0.4195769131183624, -0.5354516506195068, 0.25596940517425537, 0.1265074461698532, -0.039120886474847794, -0.0004147142171859741, -0.003802366554737091, -0.2253492772579193, 0.22391000390052795, 0.14581838250160217, 0.8936089277267456, 0.10902002453804016, -0.0213368721306324, -0.1946125328540802, -0.26195991039276123, 0.47023192048072815, -0.3819321393966675, 0.21484093368053436, -0.4435320794582367, -0.10527686774730682, -0.08418993651866913, -0.018672257661819458, 0.38744524121284485, -0.03947054594755173, -0.5806807279586792, 0.20182393491268158, 0.02954164892435074, 0.04625032842159271, 0.039438094943761826, 0.19415609538555145, -0.39438217878341675, -0.047223519533872604, -0.5470683574676514, 0.18113192915916443, -0.19420938193798065, 0.24402059614658356, -0.16093015670776367, 0.0644473135471344, -0.06747899949550629, -0.4746553301811218, -0.5150774717330933, -0.009850433096289635, -0.05745574086904526, -0.18785344064235687, 0.03066757693886757, -0.14699772000312805, 0.1339365690946579, -0.08492425084114075, 0.43589478731155396, 0.19446201622486115, 0.06498750299215317, 0.18516671657562256, 0.01007423922419548, -0.022312279790639877, 0.1335621178150177, 0.1882503181695938, 0.32583409547805786, -0.21865889430046082, -0.2695961892604828, 0.41118887066841125, -0.2084866166114807, -0.304036021232605, -0.14480829238891602, 0.06317180395126343, -0.14994367957115173, -0.05081414058804512, -0.19963939487934113, -0.0396793931722641, -0.22055140137672424, -0.3762272596359253, 0.20616605877876282, -0.011521287262439728, -0.4002107083797455, 0.27566149830818176, -0.049783166497945786, -0.439288854598999, -0.12559084594249725, 0.20643597841262817, 0.08459369838237762, -0.28970062732696533, 0.5968735218048096, 0.06176074966788292, -0.009829536080360413, -0.3827677369117737, -0.06807330250740051, 0.3387448489665985, -0.3609161674976349, 0.16188989579677582, -0.1242544874548912, -0.059239886701107025, 0.2030002921819687, 0.328433632850647, 0.0778917744755745, 0.29918307065963745, -0.15540100634098053, -0.45411577820777893, -0.39913275837898254, 0.06708474457263947, 0.25246307253837585, 0.07692430168390274, -0.004217006266117096, 0.2748378813266754, -0.08768690377473831, 0.10687501728534698, -0.41155675053596497, -0.018335524946451187, -0.6154882311820984, 0.23673419654369354, 0.34280627965927124, 0.14298033714294434, -0.1453191041946411, 0.03102482482790947, 0.19469653069972992, 0.3719486594200134, -0.10766411572694778, -0.25090888142585754, -0.008828852325677872, 0.116166852414608, 0.05222510173916817, -0.01759992353618145, 0.07355939596891403, -0.03341471403837204, 0.047996871173381805, 0.017741769552230835, -0.03667737543582916, 0.17958757281303406, 0.051814593374729156, 0.3534941077232361, -0.19915573298931122, 0.058262888342142105, 0.20907264947891235, -0.2421470284461975, -0.2860011160373688, 0.26333773136138916, -0.15146736800670624, 0.1750556081533432, -0.16543921828269958, -0.08013535290956497, 0.09682054072618484, 0.2261742651462555, 0.013101235032081604, 0.23119759559631348, 0.24459627270698547, -0.10484601557254791, 0.1290089339017868, 0.2885887026786804, 0.1398504376411438, 0.4224488437175751, -0.2814043164253235, -0.07104720175266266, -0.007944872602820396, 0.2569378912448883, -0.27677252888679504, -0.12932482361793518, -0.19482968747615814, -0.07107646018266678, -0.006324056535959244, 0.2268146425485611, 0.19201713800430298, -0.16562902927398682, 0.09907558560371399, 0.2498750388622284, 0.5312497615814209, -0.28673648834228516, 0.019969670102000237, 0.1499292403459549, -0.2805519700050354, -0.07683837413787842, 0.17248523235321045, 0.018679486587643623, 0.15844443440437317, 0.30832868814468384, -0.054194800555706024, 0.6318540573120117, 0.26288771629333496, 0.24503450095653534, -0.12285294383764267, 0.043339308351278305, 0.3807263970375061, 0.18384236097335815, 0.04269948601722717, 0.31870099902153015, 0.3888571858406067, -0.0343337282538414, -0.1551828384399414, 0.09822819381952286, 0.1123194471001625, 0.0520404689013958, 0.08787055313587189, -0.14685630798339844, -0.23019899427890778, -0.22707539796829224, -0.18280848860740662, -0.14882922172546387, -0.07935480773448944, 0.27243319153785706, 0.1926807165145874, -0.10462106764316559, -0.27417439222335815, -0.27527955174446106, 0.047613564878702164, -0.2602231800556183, 0.24861818552017212, -0.302825003862381, 0.1985028237104416, 0.4810457229614258, 0.0012632012367248535, 0.2951599657535553, 0.5200667977333069, 0.7451483011245728, 0.2258656620979309, 0.014493104070425034, 0.1485549807548523, -0.4978353679180145, -0.08326272666454315, 0.2250048816204071, 0.5238410234451294, 0.2304448038339615, -0.17114339768886566, -0.1843244433403015, 0.24281015992164612, -0.21645401418209076, 0.1695699542760849, 0.2327239215373993, -0.037988871335983276, 0.19065788388252258, 0.19984638690948486, -0.02294890582561493, -0.10507945716381073, -0.31634649634361267, 0.17897096276283264, -0.43307948112487793, -0.09377584606409073, 0.3904514014720917, 0.008681593462824821, 0.16084763407707214, -0.11370940506458282, 0.1377018839120865, 0.17921894788742065, 0.3703400194644928, 0.3607400953769684, -0.14162307977676392, -0.08203841000795364, -0.2094392329454422, -0.3935662508010864, 0.293116956949234, 0.0148179791867733, -0.19805875420570374, -0.11723692715167999, -0.02790728583931923, 0.21019309759140015, 0.07741375267505646, 0.23432321846485138, 0.2927902042865753, -0.03427591547369957, 0.08472937345504761, -0.23498472571372986, 0.153257355093956, 0.05393778532743454, 0.06299516558647156, -0.002138657495379448, -0.1646508425474167, 0.2401813417673111, -0.09541106969118118, 0.16817212104797363, -0.2357192188501358, -0.17254789173603058, 0.03328321501612663, 0.0414535328745842, 0.2197721302509308, 0.31913474202156067, 0.28536635637283325, -0.3437746465206146, -0.11822093278169632, -0.1435927450656891, -0.16085761785507202, -0.1878660023212433, 0.4638361632823944, 0.12613485753536224, 0.3828158676624298, 0.08658839017152786, -0.09832940995693207, -0.2502840459346771, 0.2420351654291153, -0.14597710967063904, -0.013551300391554832, -0.2970094680786133, 0.12711460888385773, 0.23434129357337952, -0.09431016445159912, -0.11168261617422104, 0.2555207908153534, 0.12438454478979111, 0.03576905280351639, -0.49036282300949097, -0.564311146736145, 0.6069120168685913, -0.11957474052906036, -0.4439176917076111, 0.07142584770917892, 0.29449689388275146, -0.2184530794620514, -0.050468169152736664, -0.777182400226593, 0.1464177966117859, 0.18557392060756683, 0.06334012746810913, -0.46631699800491333, -0.016830671578645706, -0.08939385414123535, 0.05025342479348183, -0.07669581472873688, 0.2121836096048355, 0.09213221818208694, -0.007301239296793938, 0.033793751150369644, -0.28628087043762207 ]
https://github.com/huggingface/datasets/pull/2685
Fix Blog Authorship Corpus dataset
@lhoestq, apart from the dataset card, everything is OK with this PR: I tested it locally.
This PR: - Update the JSON metadata file, which previously was raising a `NonMatchingSplitsSizesError` - Fix the codec of the data files (`latin_1` instead of `utf-8`), which previously was raising ` UnicodeDecodeError` for some files Close #2679.
16
text: Fix Blog Authorship Corpus dataset This PR: - Update the JSON metadata file, which previously was raising a `NonMatchingSplitsSizesError` - Fix the codec of the data files (`latin_1` instead of `utf-8`), which previously was raising ` UnicodeDecodeError` for some files Close #2679. @lhoestq, apart from the dataset card, everything is OK with this PR: I tested it locally.
[ -0.2521958351135254, 0.4877263903617859, -0.09969915449619293, 0.036134153604507446, 0.1750897914171219, 0.03201451897621155, 0.07671509683132172, 0.3439108431339264, -0.24204443395137787, 0.06314562261104584, 0.2682580053806305, 0.3063449561595917, 0.18006011843681335, -0.0553928017616272, 0.00899277999997139, 0.1036432683467865, 0.02242077887058258, 0.18242038786411285, 0.09298567473888397, -0.18891078233718872, -0.20840492844581604, 0.14155709743499756, -0.19544288516044617, 0.12383343279361725, -0.21331092715263367, -0.17975085973739624, 0.25187721848487854, 0.3781280219554901, -0.3030271530151367, -0.39588531851768494, -0.19195131957530975, 0.22974944114685059, -0.17628169059753418, 0.0936431735754013, -0.00009925411723088473, -0.07649673521518707, 0.4809266924858093, -0.13908152282238007, -0.005345547571778297, -0.0930071473121643, -0.30237871408462524, 0.13581117987632751, -0.34757381677627563, -0.10266245901584625, -0.021688081324100494, -0.1768723875284195, 0.11730235069990158, -0.13609930872917175, 0.13097414374351501, 0.5042266845703125, 0.3836866021156311, -0.005489092320203781, 0.07922881841659546, -0.10209646821022034, 0.10079436749219894, 0.2806415855884552, -0.13364312052726746, -0.079352468252182, 0.2933466136455536, -0.15917783975601196, -0.029356159269809723, 0.3902090787887573, -0.19665083289146423, 0.0646350085735321, 0.11816097795963287, -0.0893051028251648, 0.17508652806282043, -0.20156346261501312, 0.557075560092926, -0.10801815241575241, 0.8260378241539001, -0.18754228949546814, 0.01649903878569603, 0.10701917856931686, 0.12960900366306305, -0.12944313883781433, 0.45357057452201843, 0.2971733510494232, -0.2349269837141037, 0.14366136491298676, -0.13875950872898102, -0.10103695839643478, -0.14135845005512238, -0.15385425090789795, 0.15204332768917084, 0.26107922196388245, 0.044283874332904816, -0.13381215929985046, -0.19445329904556274, -0.16705425083637238, 0.19720850884914398, 0.05761730670928955, -0.23015806078910828, -0.03361533582210541, 0.27416402101516724, -0.060349225997924805, 0.12723655998706818, 0.044193580746650696, 0.02159063145518303, 0.13418935239315033, 0.13378649950027466, 0.3312300443649292, 0.25560587644577026, 0.03172776848077774, 0.09215892851352692, -0.10396358370780945, 0.20224589109420776, 0.42457640171051025, 0.4635387659072876, -0.006861946079879999, 0.0057811252772808075, 0.0025113001465797424, -0.012146483175456524, -0.1535736620426178, -0.1541568636894226, 0.06464618444442749, 0.20129157602787018, -0.2686755657196045, -0.1619512438774109, 0.3562343716621399, -0.04111848026514053, -0.1951359063386917, -0.28138428926467896, 0.39698535203933716, 0.008533814921975136, -0.045984357595443726, 0.08254051208496094, 0.006052633747458458, -0.2515247166156769, -0.09853365272283554, -0.17202509939670563, 0.008650554344058037, -0.035965558141469955, -0.1013740748167038, 0.020414818078279495, 0.006766630336642265, 0.19267986714839935, -0.05918864533305168, 0.06186391040682793, 0.014771562069654465, 0.04815550893545151, 0.14617903530597687, 0.16966569423675537, 0.20768429338932037, -0.026482831686735153, 0.16661907732486725, -0.0035484768450260162, -0.3799327611923218, -0.03585910052061081, 0.07129111886024475, 0.06150629743933678, -0.240540012717247, -0.19591282308101654, 0.38812074065208435, 0.029653437435626984, -0.23533546924591064, 0.01668582111597061, 0.1639968603849411, 0.2698650062084198, -0.1495756357908249, 0.2640720307826996, 0.08309300243854523, -0.08316227048635483, 0.08569514751434326, -0.16059131920337677, 0.37261325120925903, 0.028449315577745438, -0.09624652564525604, 0.5144811272621155, 0.021740583702921867, 0.3307180106639862, 0.1278131604194641, 0.10340165346860886, 0.15844939649105072, -0.021499723196029663, 0.23351098597049713, 0.16797123849391937, -0.44663530588150024, -0.29614660143852234, -0.05391416698694229, -0.14210614562034607, -0.16042602062225342, 0.024528630077838898, -0.1596592515707016, 0.37025460600852966, -0.1304120123386383, 0.1545112282037735, 0.3438476324081421, -0.0657946839928627, 0.2944283187389374, -0.5061228275299072, 0.09607403725385666, -0.2176106721162796, 0.16560493409633636, 0.07262073457241058, -0.03188174217939377, 0.1799107789993286, 0.32018694281578064, 0.17777079343795776, -0.20342344045639038, 0.20979556441307068, 0.3932971954345703, 0.1239532083272934, -0.010928258299827576, 0.0721055120229721, 0.17398107051849365, 0.12914873659610748, -0.04966194927692413, 0.023364152759313583, 0.44578561186790466, -0.10370083153247833, -0.11707652360200882, -0.29857370257377625, -0.1581462025642395, -0.24786828458309174, -0.2551124095916748, 0.2778407037258148, 0.22946932911872864, 0.10290443897247314, 0.2666029930114746, -0.2180664986371994, 0.22296850383281708, -0.12498202919960022, 0.024226317182183266, -0.3581734895706177, 0.1295257806777954, -0.285588800907135, -0.23934431374073029, 0.22144058346748352, 0.17127883434295654, 0.06279037892818451, -0.024190856143832207, -0.1701996922492981, 0.24754729866981506, -0.3917345702648163, 0.41077131032943726, -0.05693084001541138, -0.031187787652015686, 0.20367524027824402, -0.3621150553226471, 0.061848413199186325, 0.16953013837337494, 0.07006967067718506, -0.16023914515972137, -0.09263399988412857, 0.09349459409713745, -0.10044312477111816, -0.057410143315792084, 0.005857445299625397, 0.007574556395411491, 0.3906964957714081, -0.06650770455598831, -0.03446660935878754, -0.27826279401779175, 0.3025224804878235, 0.13092438876628876, -0.07072966545820236, -0.06305120885372162, -0.3048219084739685, 0.14428077638149261, 0.5721368789672852, 0.01781589537858963, 0.1746179759502411, 0.2000715732574463, -0.022829383611679077, -0.1818442940711975, -0.04914107918739319, 0.021966028958559036, 0.24756839871406555, 0.11449335515499115, -0.02392880991101265, 0.19623318314552307, 0.1695067286491394, -0.43938979506492615, 0.2282417118549347, -0.3118157386779785, -0.16280007362365723, 0.29013791680336, 0.24818900227546692, -0.060161348432302475, -0.5431886315345764, 0.06760470569133759, 0.09968465566635132, 0.31990525126457214, -0.27910494804382324, -0.163079634308815, -0.24610194563865662, -0.29026085138320923, -0.004422320984303951, -0.059108782559633255, -0.19406868517398834, -0.06736790388822556, 0.38486337661743164, 0.08745504915714264, -0.3294375538825989, 0.35233408212661743, 0.02456554025411606, 0.1847248375415802, -0.20590907335281372, 0.2714401185512543, -0.3087809085845947, -0.3836863040924072, -0.2284817099571228, 0.2013922482728958, 0.20827096700668335, 0.11070597171783447, 0.23211120069026947, -0.4644084572792053, -0.04540812969207764, -0.40487203001976013, -0.25602325797080994, 0.170555979013443, -0.056462086737155914, -0.15752260386943817, 0.13099737465381622, 0.028375260531902313, 0.2510063648223877, -0.016683313995599747, 0.17217117547988892, -0.23605020344257355, -0.2719152867794037, 0.016084957867860794, 0.030233947560191154, -0.13274472951889038, -0.16171176731586456, -0.25989431142807007, -0.012468241155147552, -0.35417652130126953, 0.13449645042419434, 0.14499276876449585, 0.17810814082622528, 0.04361211135983467, -0.06952206045389175, -0.1202646791934967, -0.13229162991046906, 0.19921602308750153, -0.2751130759716034, -0.1873045563697815, 0.1608317643404007, -0.3034523129463196, -0.46278586983680725, 0.00998334214091301, 0.27000248432159424, 0.2318580597639084, -0.25919926166534424, -0.3426297903060913, -0.12935486435890198, -0.05476021766662598, 0.07009364664554596, -0.06406877934932709, 0.08007027208805084, 0.35159069299697876, -0.009761692956089973, -0.3221926689147949, -0.12051679939031601, -0.29222372174263, -0.08872131258249283, 0.0012953542172908783, 0.0203387588262558, -0.10779330879449844, 0.16607335209846497, -0.16021685302257538, 0.19688092172145844, 0.07886108756065369, 0.19399255514144897, 0.10566200315952301, -0.025593293830752373, 0.2532748878002167, 0.016600698232650757, -0.1726691871881485, 0.4855249226093292, 0.18717339634895325, -0.09132898598909378, 0.4571318030357361, 0.008952266536653042, -0.1360906958580017, -0.14324814081192017, -0.05345168709754944, -0.23448175191879272, -0.1958816647529602, 0.12193403393030167, -0.15350045263767242, 0.1894187033176422, 0.2012367993593216, 0.18762296438217163, -0.08632570505142212, -0.16955026984214783, 0.13295449316501617, -0.004260219633579254, -0.020352989435195923, -0.21863873302936554, -0.3508453071117401, 0.21237443387508392, -0.48960310220718384, 0.3741391897201538, -0.06922789663076401, 0.11248422414064407, -0.3600042462348938, -0.11135328561067581, 0.05041737109422684, -0.24040384590625763, 0.1617959588766098, -0.5333461761474609, -0.047512635588645935, 0.21395009756088257, 0.17969843745231628, -0.07332771271467209, 0.007465139031410217, -0.082079216837883, 0.2494690865278244, 0.14575240015983582, 0.10888071358203888, -0.14874666929244995, -0.04007205739617348, 0.20550207793712616, -0.37234511971473694, 0.023059401661157608, 0.035142939537763596, -0.17792046070098877, -0.5695731043815613, -0.37256303429603577, 0.10466089099645615, 0.06102312356233597, -0.09223005920648575, 0.08254536986351013, -0.07268617302179337, 0.0968320220708847, 0.16156145930290222, 0.06252367794513702, 0.2160060554742813, -0.06704643368721008, 0.01564827747642994, 0.012472923845052719, 0.0748278945684433, -0.03652961552143097, 0.47887086868286133, 0.5213136672973633, -0.05470927432179451, -0.2589903771877289, -0.06635680794715881, -0.4657401740550995, 0.07269704341888428, 0.277850478887558, 0.11734914034605026, 0.08041675388813019, -0.06908975541591644, 0.01122353971004486, -0.25624147057533264, -0.11661999672651291, 0.12339714169502258, 0.1053292378783226, -0.15767283737659454, -0.3207164406776428, 0.18524476885795593, 0.031990066170692444, -0.12011755257844925, -0.002519708126783371, 0.002572193741798401, -0.26330316066741943, 0.10876187682151794, 0.23911121487617493, 0.8845422267913818, 0.141922265291214, -0.08410894870758057, -0.24045401811599731, -0.4068153500556946, 0.3761120140552521, -0.40429967641830444, 0.2209126204252243, -0.3396139144897461, -0.06755127757787704, -0.06960330903530121, 0.1308719962835312, 0.13674107193946838, 0.13669970631599426, -0.48916056752204895, -0.022066086530685425, 0.18349935114383698, 0.039260562509298325, 0.0812295526266098, 0.16211873292922974, -0.23073799908161163, -0.1765419840812683, -0.40263426303863525, 0.26895642280578613, -0.21500958502292633, 0.22617709636688232, -0.12940214574337006, -0.12070618569850922, 0.11105497181415558, -0.3646150231361389, -0.4908568859100342, 0.1135866567492485, -0.10569393634796143, -0.248188778758049, 0.2002761960029602, -0.17581894993782043, 0.1627834588289261, -0.030990611761808395, 0.41063183546066284, -0.004714395850896835, -0.09324360638856888, 0.37777143716812134, 0.16390755772590637, 0.09893808513879776, 0.0030888717155903578, 0.10829657316207886, 0.1003364771604538, -0.22595828771591187, -0.17041894793510437, 0.23720461130142212, -0.035316336899995804, -0.19233432412147522, -0.17626744508743286, 0.08891952037811279, -0.060922227799892426, 0.10721468925476074, -0.00121664023026824, 0.06304478645324707, -0.06637397408485413, -0.2845920920372009, 0.2839202880859375, -0.23169495165348053, -0.07747925072908401, 0.12639662623405457, 0.03317439556121826, -0.2878319025039673, -0.09056900441646576, 0.30002301931381226, 0.023883312940597534, -0.24029015004634857, 0.3869931101799011, 0.18397748470306396, -0.12175439298152924, -0.39928919076919556, -0.2485823631286621, 0.14889119565486908, -0.34749463200569153, 0.14303699135780334, -0.12488191574811935, -0.2797974944114685, 0.13172246515750885, 0.3548743724822998, -0.13743697106838226, 0.05039490759372711, -0.033264268189668655, -0.11769933998584747, -0.22380834817886353, 0.00042757391929626465, 0.13853174448013306, -0.04045755788683891, -0.04521913453936577, 0.023442666977643967, -0.013430646620690823, 0.08619873970746994, -0.4662257134914398, -0.06602555513381958, -0.47906187176704407, 0.10035822540521622, 0.3631839156150818, -0.05705743283033371, -0.14485663175582886, -0.1515861451625824, 0.190755695104599, 0.35064077377319336, -0.022385861724615097, -0.35417240858078003, -0.008439724333584309, 0.08664066344499588, 0.12920275330543518, -0.1575569063425064, -0.043880704790353775, 0.07194136083126068, -0.12698207795619965, -0.018212078139185905, 0.1277921050786972, 0.1779727339744568, -0.1141369491815567, 0.22323721647262573, -0.2763371765613556, 0.07961985468864441, 0.24145211279392242, -0.25470149517059326, -0.12975551187992096, 0.48824799060821533, -0.2301558554172516, 0.058202438056468964, -0.09728123992681503, -0.08341148495674133, 0.06020113080739975, 0.28209879994392395, 0.024782449007034302, 0.1995452642440796, 0.312865674495697, -0.1682375967502594, 0.15839900076389313, 0.3932063579559326, 0.0790327861905098, 0.22502093017101288, -0.1893591433763504, -0.2921510636806488, 0.02454223483800888, 0.41848134994506836, -0.25726696848869324, -0.17250633239746094, -0.21472041308879852, -0.09824660420417786, -0.05383097007870674, 0.06741414219141006, 0.23581096529960632, -0.34801486134529114, -0.10381756722927094, 0.36911582946777344, 0.4588716924190521, -0.15749958157539368, -0.024585703387856483, -0.06852713227272034, -0.30112144351005554, -0.046106088906526566, 0.15010523796081543, 0.034044794738292694, 0.07640505582094193, 0.3231050968170166, 0.14934362471103668, 0.36773353815078735, 0.36964043974876404, 0.42750731110572815, -0.05883388966321945, -0.18935604393482208, 0.4640721380710602, 0.11266790330410004, 0.29237502813339233, 0.33781754970550537, 0.46569252014160156, -0.14694038033485413, -0.05791206285357475, -0.08941661566495895, -0.21957828104496002, 0.13926786184310913, -0.07725457847118378, -0.054157231003046036, -0.4578776955604553, -0.18507517874240875, 0.011325329542160034, 0.0718698799610138, -0.14178046584129333, 0.3346208930015564, 0.18142428994178772, -0.08543305099010468, -0.2629058361053467, -0.44976964592933655, 0.2085917592048645, -0.3222446143627167, 0.22088512778282166, -0.24109752476215363, 0.27331414818763733, 0.2593100070953369, -0.1031363308429718, 0.2857438325881958, 0.6301428079605103, 0.5098137259483337, 0.30870091915130615, 0.0347805880010128, 0.1589301973581314, -0.40422987937927246, -0.08226184546947479, -0.02844364196062088, 0.6087714433670044, 0.2707408666610718, -0.04216434434056282, -0.20663632452487946, 0.2504238486289978, -0.2653712034225464, 0.13719753921031952, 0.17922930419445038, 0.20345771312713623, 0.3713681101799011, -0.14516225457191467, -0.047236718237400055, -0.16486051678657532, -0.2728993594646454, -0.06839530915021896, -0.23997235298156738, 0.033396027982234955, 0.3780630826950073, 0.00558103621006012, 0.11645270138978958, -0.3329615592956543, 0.15500444173812866, 0.15306369960308075, 0.5295462608337402, 0.2590842843055725, -0.25521162152290344, 0.09984616190195084, -0.2933473587036133, -0.24210789799690247, 0.436108261346817, -0.1789957731962204, -0.10620977729558945, -0.13844582438468933, 0.08902643620967865, 0.2758784294128418, 0.036863282322883606, 0.0915222018957138, 0.19681316614151, -0.24815937876701355, 0.1798401176929474, -0.29075905680656433, 0.22868110239505768, 0.19449689984321594, -0.017304925248026848, 0.0350947231054306, -0.27134284377098083, 0.2224939912557602, 0.020872000604867935, 0.2664104104042053, -0.22190319001674652, -0.1303478628396988, -0.12884895503520966, 0.1279091238975525, 0.15766990184783936, 0.3104027211666107, 0.09017887711524963, -0.3237508237361908, -0.09978478401899338, -0.10973060131072998, -0.20822443068027496, -0.26188671588897705, 0.4256763160228729, 0.16204451024532318, 0.2173420488834381, 0.1496928185224533, -0.004465576261281967, -0.25516530871391296, 0.10911241918802261, -0.14814618229866028, 0.17889103293418884, -0.3081897497177124, 0.07033082097768784, 0.13926339149475098, -0.026709621772170067, -0.18557021021842957, 0.20060664415359497, 0.04351978376507759, -0.15580670535564423, -0.5332146286964417, -0.555643618106842, 0.4269494116306305, -0.18585580587387085, -0.3945853114128113, 0.1138208732008934, 0.1966448724269867, -0.074537493288517, -0.07774867117404938, -0.5781829357147217, 0.18776923418045044, 0.1181727796792984, -0.0794755145907402, -0.3366319537162781, -0.05814789608120918, -0.15194083750247955, -0.016259044408798218, -0.08049668371677399, 0.21733957529067993, 0.17060041427612305, -0.23679722845554352, -0.004230529069900513, -0.13102218508720398 ]
https://github.com/huggingface/datasets/pull/2668
Add Russian SuperGLUE
Thanks a lot ! Once the last comment about the label names is addressed we can merge :)
Hi, This adds the [Russian SuperGLUE](https://russiansuperglue.com/) dataset. For the most part I reused the code for the original SuperGLUE, although there are some relatively minor differences in the structure that I accounted for.
18
text: Add Russian SuperGLUE Hi, This adds the [Russian SuperGLUE](https://russiansuperglue.com/) dataset. For the most part I reused the code for the original SuperGLUE, although there are some relatively minor differences in the structure that I accounted for. Thanks a lot ! Once the last comment about the label names is addressed we can merge :)
[ 0.1351529210805893, -0.12287512421607971, -0.14958888292312622, -0.019637703895568848, -0.011809881776571274, -0.03689669072628021, 0.16037826240062714, -0.010856255888938904, -0.02966553531587124, -0.027132824063301086, -0.1798049956560135, 0.0511588416993618, -0.017840858548879623, 0.5025680661201477, 0.4411453604698181, 0.012909326702356339, 0.15001237392425537, 0.007061511278152466, -0.022549256682395935, -0.030262241140007973, -0.27130186557769775, 0.14360444247722626, 0.0642785131931305, -0.11404377222061157, -0.09123450517654419, 0.2279140055179596, -0.16216138005256653, 0.37870973348617554, -0.4021264314651489, -0.317331463098526, 0.004329528659582138, 0.2876090109348297, -0.16999654471874237, 0.22604738175868988, -0.00010240251140203327, -0.154943585395813, 0.12350891530513763, -0.16933058202266693, 0.1931391805410385, 0.25415071845054626, -0.3376731276512146, -0.43089568614959717, -0.4405764639377594, -0.08211525529623032, 0.04006515443325043, -0.08690386265516281, -0.22866155207157135, -0.18978433310985565, 0.03302093595266342, 0.211699977517128, 0.27546632289886475, -0.37319520115852356, 0.2829895615577698, -0.11841783672571182, 0.07777638733386993, -0.25747066736221313, 0.09523963183164597, 0.2787988483905792, 0.4311181902885437, 0.11912760138511658, 0.5360829830169678, 0.6225888729095459, -0.07629827409982681, -0.6160239577293396, 0.325531929731369, -0.15256689488887787, 0.06624085456132889, -0.15086792409420013, 0.19137534499168396, 0.2679018974304199, 0.45636361837387085, -0.12030864506959915, -0.13667109608650208, 0.20812979340553284, 0.10874734073877335, -0.2983825206756592, -0.07083611935377121, -0.056827738881111145, 0.19513742625713348, -0.0364551804959774, -0.04985574632883072, -0.6783187985420227, -0.19415466487407684, -0.10786497592926025, 0.07572919130325317, 0.4575631618499756, 0.05960190296173096, -0.0950833335518837, 0.129713773727417, -0.11612522602081299, -0.1712162345647812, -0.08522312343120575, -0.2556459605693817, 0.004225024953484535, -0.12105043232440948, -0.09647966921329498, 0.007593907415866852, 0.1239156424999237, 0.2659139335155487, 0.205492302775383, 0.1279149055480957, 0.07903435826301575, 0.0726429671049118, 0.17164874076843262, -0.16966897249221802, 0.20853368937969208, 0.2729750871658325, -0.1906704306602478, -0.08287329971790314, -0.2617482841014862, 0.180914968252182, 0.03533601760864258, -0.04924837499856949, -0.2839760482311249, -0.3043583631515503, -0.03253403678536415, 0.20383338630199432, -0.15244396030902863, 0.11699029058218002, 0.20643457770347595, 0.05166409909725189, -0.1891615241765976, -0.08730629086494446, 0.14592093229293823, -0.059751443564891815, -0.06599154323339462, 0.11798989772796631, 0.19895173609256744, 0.042510583996772766, -0.23607446253299713, -0.16972969472408295, 0.27035534381866455, -0.11906792223453522, -0.14933374524116516, -0.17433133721351624, -0.21474549174308777, 0.015653356909751892, 0.22723747789859772, 0.05793752893805504, -0.04199492186307907, -0.007434568367898464, 0.05872344598174095, 0.24300357699394226, -0.06107322499155998, 0.04863402619957924, -0.06279613822698593, -0.02458229288458824, -0.306355744600296, -0.12603607773780823, 0.09055598080158234, -0.30551034212112427, -0.20739230513572693, -0.4982743263244629, 0.324039489030838, -0.07021588087081909, -0.4624198377132416, 0.20326748490333557, 0.4771765470504761, -0.12622711062431335, -0.05394848808646202, 0.05764016509056091, 0.23277440667152405, 0.10514284670352936, -0.19227665662765503, 0.1721062809228897, 0.2314467430114746, -0.766875147819519, 0.016285642981529236, -0.05403190478682518, -0.11318066716194153, 0.206598162651062, 0.05691806972026825, -0.07858628779649734, -0.1173277422785759, 0.019642798230051994, 0.0019937530159950256, 0.21951377391815186, -0.10447868704795837, -0.23759108781814575, 0.04861845076084137, -0.2355315387248993, 0.001464730128645897, 0.08534097671508789, 0.04025948420166969, -0.012995876371860504, 0.013183088973164558, 0.30909866094589233, 0.16595199704170227, -0.24145856499671936, -0.17471905052661896, -0.23508289456367493, 0.07825969904661179, 0.07465612888336182, 0.19710367918014526, 0.17317438125610352, -0.23724573850631714, -0.0175921693444252, -0.27131423354148865, 0.15216019749641418, -0.07123708724975586, 0.11444158852100372, 0.3092862367630005, 0.35793018341064453, 0.3790956139564514, 0.1793052852153778, 0.08637137711048126, 0.0034877359867095947, -0.036840490996837616, -0.14566054940223694, 0.3898218274116516, 0.053007304668426514, -0.2064397633075714, -0.2436000108718872, -0.14577758312225342, -0.1284918338060379, -0.38314324617385864, 0.24380779266357422, 0.24340969324111938, -0.26441091299057007, -0.16093046963214874, -0.1766759306192398, 0.11347340047359467, 0.12180563807487488, -0.07800173759460449, -0.22032353281974792, 0.05276225507259369, -0.3338703513145447, 0.07566917687654495, -0.18787835538387299, 0.2841356694698334, 0.001241888850927353, -0.09376674890518188, 0.11859607696533203, 0.20857548713684082, -0.44559308886528015, 0.04506880044937134, 0.5712800621986389, 0.002950310707092285, 0.16536489129066467, -0.24824468791484833, 0.16910429298877716, -0.2136901319026947, 0.03881469741463661, -0.02948342263698578, -0.032583847641944885, 0.16885605454444885, 0.16991926729679108, -0.01102989912033081, -0.1188780665397644, -0.0501638762652874, 0.16615210473537445, -0.23722009360790253, -0.01664995774626732, -0.0008872449398040771, 0.11168642342090607, 0.06926923990249634, 0.16079910099506378, 0.022651445120573044, -0.38169729709625244, 0.44387930631637573, 0.7664915323257446, -0.2110179364681244, -0.05614768713712692, 0.033733971416950226, -0.4115692973136902, -0.17196878790855408, 0.08314164727926254, 0.17706908285617828, 0.0752670168876648, 0.34657153487205505, 0.0733262300491333, 0.14748075604438782, 0.06774169206619263, -0.01139107532799244, 0.3366829752922058, -0.06540817022323608, 0.011535713449120522, 0.09652867913246155, 0.018023107200860977, 0.040669605135917664, -0.3509323000907898, 0.003931622952222824, -0.046869754791259766, -0.08644471317529678, 0.05083111301064491, -0.04026859253644943, -0.08070719987154007, -0.3319518566131592, -0.28921979665756226, -0.20414721965789795, -0.45076048374176025, -0.4646347463130951, 0.20175236463546753, -0.39341846108436584, -0.2298823595046997, 0.29774951934814453, 0.27630549669265747, 0.4119011163711548, -0.2326100766658783, -0.21216827630996704, -0.04505428671836853, -0.24151910841464996, 0.08179880678653717, 0.2590545415878296, 0.1033136323094368, -0.2065763771533966, 0.4324127435684204, -0.06627830117940903, 0.3070628046989441, -0.0366661474108696, -0.6896640062332153, 0.0860711932182312, -0.18089692294597626, -0.05118253827095032, 0.03090580925345421, -0.06493151187896729, 0.08309114724397659, -0.15804827213287354, 0.12800082564353943, 0.028918305411934853, -0.13305941224098206, -0.17273716628551483, -0.04215916618704796, -0.12430056929588318, -0.10912829637527466, -0.37731561064720154, -0.35430943965911865, -0.24770735204219818, 0.13537240028381348, -0.06240929663181305, 0.030056865885853767, -0.09269614517688751, -0.013285613618791103, 0.07780318707227707, -0.12984326481819153, 0.0843966081738472, -0.29383641481399536, -0.1545579433441162, 0.24747319519519806, -0.2173645943403244, -0.17579375207424164, 0.2360331118106842, 0.06488621234893799, 0.20777827501296997, -0.30637723207473755, 0.05136649310588837, 0.016141556203365326, -0.024446407333016396, -0.13567769527435303, 0.2463192194700241, 0.27421700954437256, 0.34736883640289307, 0.22545698285102844, -0.24445196986198425, -0.2432062327861786, -0.15988855063915253, 0.061886802315711975, -0.06697181612253189, 0.1627846360206604, -0.04386521875858307, 0.18936017155647278, 0.02577332779765129, 0.5012580156326294, 0.014677084982395172, 0.21821722388267517, 0.11648557335138321, 0.07116745412349701, 0.4439736604690552, -0.0013126954436302185, -0.3709042966365814, 0.012273742817342281, -0.0011123418807983398, 0.36353176832199097, 0.1906367540359497, 0.11006835848093033, 0.11515023559331894, -0.03291233628988266, 0.07306559383869171, -0.25497549772262573, -0.003863546997308731, 0.14104726910591125, 0.10029349476099014, 0.004272259771823883, 0.1269657015800476, -0.5581611394882202, -0.3093378245830536, 0.07696696370840073, 0.18756751716136932, 0.2661338150501251, -0.021960392594337463, 0.029113315045833588, -0.47526994347572327, 0.0572223961353302, -0.4573776125907898, 0.3942803144454956, 0.14093245565891266, -0.19748368859291077, -0.09542912244796753, -0.18824294209480286, -0.1942940503358841, -0.18868204951286316, 0.3714495897293091, -0.6679543852806091, -0.3687635660171509, 0.04660120978951454, 0.20343565940856934, 0.03407531976699829, 0.14525814354419708, -0.17054429650306702, 0.10907894372940063, 0.45606470108032227, 0.02517116442322731, -0.30143436789512634, 0.06330423802137375, 0.42736387252807617, 0.21935434639453888, -0.14111916720867157, 0.05909447744488716, -0.1357601433992386, -0.41951051354408264, -0.3505402207374573, -0.026622459292411804, 0.042841263115406036, 0.3201427161693573, -0.027022993192076683, -0.01942269504070282, 0.0416780523955822, -0.0013965945690870285, 0.43229061365127563, 0.013783272355794907, 0.3038497567176819, 0.1997980922460556, -0.2072836011648178, -0.17351607978343964, -0.0014430321753025055, 0.030611388385295868, 0.791612982749939, -0.11540749669075012, -0.20580440759658813, -0.10287203639745712, -0.34359192848205566, 0.5284728407859802, 0.18800069391727448, 0.19071879982948303, 0.2597050666809082, -0.25465860962867737, 0.024541694670915604, -0.11326935887336731, 0.009101135656237602, 0.005846004001796246, 0.3387698829174042, -0.49382516741752625, -0.33346840739250183, 0.34430626034736633, 0.03560590744018555, -0.233888640999794, 0.27896401286125183, 0.4756195545196533, -0.32991546392440796, 0.027365073561668396, -0.07548581808805466, 1.2374937534332275, 0.12565743923187256, 0.1757170855998993, -0.084888756275177, -0.1960074007511139, 0.28959062695503235, -0.12209443747997284, -0.07347142696380615, -0.25825735926628113, -0.16114406287670135, 0.010071495547890663, -0.04382724687457085, -0.08885004371404648, 0.0307907834649086, -0.2625810503959656, 0.037383463233709335, 0.08794927597045898, 0.1210930198431015, 0.17215551435947418, 0.3771016597747803, 0.3257189393043518, -0.047520194202661514, 0.09482685476541519, 0.22743794322013855, 0.10430103540420532, -0.1114276796579361, -0.2663274109363556, -0.4806098937988281, -0.09341196715831757, -0.07918687909841537, -0.13003341853618622, 0.2540326416492462, 0.09412195533514023, -0.02549799531698227, -0.1499585658311844, -0.06643475592136383, -0.0033101513981819153, -0.0673494040966034, 0.4738994240760803, 0.22329473495483398, 0.0378563329577446, 0.19511117041110992, 0.18630796670913696, 0.05457482859492302, 0.016948996111750603, -0.12184080481529236, 0.13082224130630493, -0.3286088705062866, -0.25390908122062683, 0.2230280637741089, 0.11830973625183105, -0.393563449382782, -0.4646053910255432, 0.06684471666812897, -0.18867002427577972, 0.04028567671775818, -0.17887745797634125, 0.5710192322731018, -0.046346284449100494, -0.2052142471075058, 0.21763668954372406, 0.17510312795639038, -0.3761987090110779, 0.0019218549132347107, -0.04130866751074791, -0.1943349838256836, -0.11251161992549896, 0.03837355598807335, 0.2451409101486206, -0.11705870926380157, 0.13283678889274597, 0.1297568529844284, -0.10396237671375275, -0.22627180814743042, -0.1688462346792221, 0.33213698863983154, -0.3823433816432953, -0.15131601691246033, -0.11184472590684891, -0.32014405727386475, 0.027791636064648628, -0.11178715527057648, 0.2933237552642822, 0.3849261403083801, -0.012559913098812103, -0.06328000128269196, -0.3088967204093933, 0.1861947476863861, 0.16199123859405518, 0.18448559939861298, -0.033895790576934814, 0.05227198824286461, 0.08018285036087036, 0.40057802200317383, -0.52162104845047, 0.11595260351896286, 0.04381617158651352, -0.009935840964317322, 0.05701578035950661, -0.11401856690645218, 0.07340697944164276, -0.27744415402412415, 0.14509063959121704, 0.009759007021784782, -0.19930927455425262, -0.25732421875, -0.08147071301937103, 0.06970381736755371, 0.0088045047596097, -0.05254939943552017, 0.049433086067438126, 0.029956314712762833, 0.21090304851531982, 0.22677762806415558, 0.2775576412677765, -0.22859221696853638, -0.0018592774868011475, 0.11927515268325806, -0.05257626250386238, -0.03975692391395569, 0.009639915078878403, -0.03643939644098282, 0.2579893171787262, 0.4883061647415161, 0.029333624988794327, 0.0026758387684822083, 0.036822203546762466, -0.18830853700637817, 0.33563968539237976, 0.39251890778541565, 0.1274069845676422, 0.18623679876327515, 0.12265325337648392, -0.15094523131847382, 0.004364181309938431, -0.07400277256965637, 0.3028212785720825, 0.027043532580137253, -0.3083219826221466, 0.1169976145029068, 0.02184990793466568, 0.32914161682128906, -0.5153459310531616, -0.2863808274269104, -0.03413522616028786, -0.2977159321308136, 0.04604196920990944, 0.050932690501213074, 0.38105446100234985, 0.35536766052246094, 0.26691949367523193, 0.3043864667415619, 0.051334138959646225, -0.08081117272377014, 0.3207826316356659, 0.006404794752597809, -0.3092535436153412, 0.024923894554376602, 0.23689043521881104, 0.4496951699256897, -0.0200360044836998, 0.2645779252052307, 0.20086538791656494, 0.316506952047348, 0.21475428342819214, 0.04170982539653778, 0.21964219212532043, 0.04439327493309975, 0.324757844209671, 0.3332662582397461, 0.0013787820935249329, 0.48926013708114624, 0.32254159450531006, -0.005147069692611694, -0.11669106036424637, -0.4454095959663391, 0.14056412875652313, 0.3818098306655884, -0.044160112738609314, -0.064501091837883, -0.028305038809776306, -0.290959894657135, -0.3159555196762085, 0.0015585646033287048, 0.10052752494812012, -0.13538552820682526, 0.04912465065717697, -0.07258231937885284, -0.0738799124956131, -0.02914312668144703, -0.13603684306144714, 0.07862978428602219, 0.1757752001285553, -0.1783405989408493, 0.0667901560664177, 0.4355568289756775, -0.09584853053092957, 0.19352227449417114, 0.15593723952770233, 0.2450782060623169, 0.023346658796072006, -0.014020567759871483, 0.3140360713005066, -0.021176986396312714, -0.23398463428020477, 0.032303716987371445, -0.08794891089200974, 0.4310949444770813, -0.20429912209510803, 0.1911015510559082, 0.2545761168003082, -0.29388490319252014, 0.2525133490562439, 0.12107942998409271, 0.06038114055991173, 0.09818646311759949, 0.2170027494430542, 0.2079499065876007, -0.17131689190864563, -0.400826096534729, 0.13123208284378052, -0.5267725586891174, -0.35837236046791077, 0.5657210350036621, 0.07687588036060333, -0.10685958713293076, -0.32198214530944824, 0.16274309158325195, 0.15468528866767883, 0.4606887698173523, 0.2572565972805023, 0.089146688580513, -0.15253174304962158, -0.3154447674751282, -0.3670898377895355, 0.07762983441352844, 0.05680827051401138, -0.1269819140434265, -0.020317597314715385, 0.030817119404673576, 0.30993542075157166, -0.061542876064777374, 0.11222390830516815, 0.09429819136857986, 0.20035961270332336, -0.2375321090221405, -0.3421146869659424, 0.3048033118247986, 0.4571049213409424, 0.21169070899486542, 0.30700111389160156, -0.02663406915962696, 0.07226516306400299, -0.24184122681617737, 0.27347153425216675, -0.23303024470806122, 0.028533481061458588, 0.07584279775619507, -0.21746152639389038, 0.2781638503074646, -0.008484583348035812, 0.36164751648902893, -0.4623895585536957, -0.31695592403411865, 0.1539791077375412, -0.12986725568771362, -0.4155142903327942, 0.40102091431617737, 0.19575099647045135, 0.2862848937511444, 0.005739221349358559, -0.3487618565559387, 0.008142215199768543, 0.07981106638908386, -0.15456077456474304, 0.17043845355510712, -0.2948170602321625, 0.21552130579948425, 0.13004621863365173, -0.029724158346652985, -0.05296610668301582, 0.37799525260925293, -0.003509320318698883, 0.08040649443864822, -0.2638464570045471, -0.26598653197288513, 0.5047407150268555, 0.28538307547569275, -0.2621672749519348, 0.0005777846090495586, 0.07186561822891235, 0.17768234014511108, 0.0827919989824295, -0.3390343487262726, 0.015359997749328613, 0.17274977266788483, 0.21190905570983887, -0.34615829586982727, 0.3562954366207123, -0.07345746457576752, 0.03830954059958458, -0.16395582258701324, -0.18489885330200195, 0.30096137523651123, -0.25343936681747437, -0.21993710100650787, -0.41991275548934937 ]
https://github.com/huggingface/datasets/pull/2667
Use tqdm from tqdm_utils
Merging since the CI is only failing because of dataset card issues, which is unrelated to this PR
This PR replaces `tqdm` from the `tqdm` lib with `tqdm` from `datasets.utils.tqdm_utils`. With this change, it's possible to disable progress bars just by calling `disable_progress_bar`. Note this doesn't work on Windows when using multiprocessing due to how global variables are shared between processes. Currently, there is no easy way to disable progress bars in a multiprocess setting on Windows (patching logging with `datasets.utils.logging.get_verbosity = lambda: datasets.utils.logging.NOTSET` doesn't seem to work as well), so adding support for this is a future goal. Additionally, this PR adds a unit ("ba" for batches) to the bar printed by `Dataset.to_json` (this change is motivated by https://github.com/huggingface/datasets/issues/2657).
18
text: Use tqdm from tqdm_utils This PR replaces `tqdm` from the `tqdm` lib with `tqdm` from `datasets.utils.tqdm_utils`. With this change, it's possible to disable progress bars just by calling `disable_progress_bar`. Note this doesn't work on Windows when using multiprocessing due to how global variables are shared between processes. Currently, there is no easy way to disable progress bars in a multiprocess setting on Windows (patching logging with `datasets.utils.logging.get_verbosity = lambda: datasets.utils.logging.NOTSET` doesn't seem to work as well), so adding support for this is a future goal. Additionally, this PR adds a unit ("ba" for batches) to the bar printed by `Dataset.to_json` (this change is motivated by https://github.com/huggingface/datasets/issues/2657). Merging since the CI is only failing because of dataset card issues, which is unrelated to this PR
[ -0.46641433238983154, 0.014412462711334229, -0.0976531058549881, -0.30837899446487427, 0.3753669857978821, -0.21838271617889404, 0.30780431628227234, 0.2698372006416321, -0.3474019765853882, 0.3912001848220825, 0.07587822526693344, 0.5168003439903259, 0.055671852082014084, 0.5639547109603882, -0.05075250566005707, -0.18045520782470703, 0.038349032402038574, 0.12072628736495972, -0.19036677479743958, 0.3412327170372009, -0.21380238234996796, 0.2866607904434204, -0.2294522076845169, 0.1994757354259491, -0.028109584003686905, -0.37066569924354553, 0.2482946217060089, 0.17071844637393951, -0.12432193011045456, -0.5020294785499573, 0.08750734478235245, 0.3658088743686676, -0.19839105010032654, 0.33986344933509827, -0.00011104342411272228, -0.045284222811460495, 0.44633471965789795, 0.06772031635046005, -0.0195947103202343, 0.2140352427959442, -0.039964236319065094, -0.3961752951145172, 0.2730342745780945, -0.2638331949710846, 0.109417624771595, -0.006217994727194309, -0.25922176241874695, -0.16129660606384277, 0.2843117117881775, -0.05485902354121208, 0.22898396849632263, 0.4941435754299164, -0.3315705358982086, 0.10878143459558487, -0.11713296920061111, -0.03195425868034363, -0.3452724516391754, -0.1093241423368454, 0.645093560218811, 0.22576646506786346, -0.14868980646133423, 0.38724106550216675, -0.04647696763277054, 0.0868121013045311, 0.07903028279542923, -0.02897893637418747, 0.258462131023407, -0.41632404923439026, 0.3143405318260193, 0.1898772418498993, 0.38807135820388794, -0.4013674259185791, -0.056623660027980804, -0.12431895732879639, 0.045531824231147766, -0.3091661036014557, 0.1952591836452484, -0.1743464469909668, -0.349112868309021, 0.010110083967447281, -0.9011363387107849, -0.10908696055412292, -0.13034453988075256, -0.23475416004657745, -0.14705245196819305, -0.19601324200630188, -0.1154850646853447, 0.11275465786457062, 0.24862129986286163, 0.03381417691707611, 0.018688008189201355, 0.15175943076610565, -0.13546569645404816, -0.15717560052871704, -0.10862766206264496, -0.3184359073638916, 0.2801588773727417, 0.1830754280090332, 0.05540379136800766, 0.4757193922996521, -0.3468712270259857, 0.2707468867301941, 0.022610414773225784, 0.067214734852314, -0.003693651407957077, -0.0006780149415135384, 0.12937720119953156, -0.32015326619148254, 0.413549542427063, 0.08501279354095459, 0.26024147868156433, 0.25246521830558777, 0.3961663842201233, -0.7209732532501221, -0.056775666773319244, 0.2110467255115509, 0.17019984126091003, -0.138381227850914, -0.25899118185043335, 0.21523600816726685, 0.4883520007133484, -0.03664591908454895, -0.004893175326287746, 0.14842316508293152, 0.204484224319458, 0.09789255261421204, 0.03920748084783554, 0.06595160067081451, -0.17353683710098267, -0.1415238231420517, -0.12106890976428986, -0.10565568506717682, -0.24726511538028717, 0.03941614553332329, -0.050225239247083664, -0.012568742036819458, 0.06603650748729706, 0.17489588260650635, 0.2724989056587219, 0.12547537684440613, 0.2936760187149048, 0.029929883778095245, 0.460750937461853, 0.4489355981349945, -0.022351674735546112, 0.027689145877957344, 0.26431846618652344, -0.20648731291294098, -0.284638375043869, 0.2759803533554077, 0.011281661689281464, -0.3372703492641449, -0.37534642219543457, 0.13001279532909393, -0.1785677820444107, -0.11060479283332825, -0.2674492597579956, 0.24272604286670685, -0.18349945545196533, 0.20370925962924957, 0.43848249316215515, -0.1601257473230362, -0.009838081896305084, -0.10505321621894836, 0.17775249481201172, 0.34764498472213745, -0.3253917992115021, -0.21702885627746582, 0.14250870048999786, -0.6249698996543884, 0.1721040904521942, -0.005946360528469086, -0.08187703043222427, 0.21014583110809326, -0.003314601257443428, -0.10840103775262833, 0.2381364405155182, -0.5045451521873474, -0.16543158888816833, 0.49300912022590637, -0.11585614830255508, -0.07249002903699875, 0.015377514064311981, 0.05914254114031792, 0.39444902539253235, 0.05493000149726868, 0.15158537030220032, 0.1315646916627884, -0.180937260389328, 0.05714559555053711, -0.13293348252773285, -0.30828776955604553, -0.18658505380153656, 0.10119523108005524, 0.07978376746177673, 0.17477214336395264, 0.22802725434303284, -0.39523306488990784, 0.3183484375476837, -0.031541671603918076, 0.2164023220539093, 0.18734538555145264, 0.2643265724182129, -0.3933737874031067, -0.21955634653568268, 0.053445249795913696, -0.25896283984184265, 0.02245260775089264, 0.22048553824424744, 0.024338610470294952, 0.08544313907623291, -0.3575693368911743, -0.12582406401634216, 0.07597560435533524, -0.0643320381641388, -0.09427574276924133, 0.04766020178794861, -0.17730465531349182, -0.13827930390834808, -0.19993214309215546, -0.3380886912345886, 0.14617761969566345, 0.010458124801516533, -0.0056998454965651035, 0.05950147658586502, -0.01711137592792511, 0.09044110774993896, -0.19009754061698914, 0.02419842779636383, 0.3130633234977722, -0.11972241848707199, 0.027901463210582733, 0.03147449344396591, 0.37167105078697205, -0.1283947378396988, 0.20766034722328186, 0.22510242462158203, 0.20612592995166779, 0.17982836067676544, -0.039458177983760834, -0.0923268273472786, 0.07189971208572388, -0.24412856996059418, 0.1790529489517212, -0.14016985893249512, 0.4393942952156067, -0.3570564389228821, 0.07558111846446991, 0.012646190822124481, 0.13888685405254364, 0.33244478702545166, -0.08688327670097351, -0.4848775267601013, -0.28543129563331604, 0.043627504259347916, 0.31053808331489563, -0.09701596200466156, -0.21747377514839172, -0.36147138476371765, 0.4684199392795563, 0.49162837862968445, 0.22230419516563416, -0.11338045448064804, 0.017708061262965202, 0.03363391384482384, 0.10779323428869247, 0.11195177584886551, 0.32577571272850037, 0.5044205188751221, 0.16755348443984985, 0.07140930742025375, 0.32590728998184204, 0.04693194106221199, -0.292526513338089, 0.08502822369337082, 0.16159974038600922, -0.2197718620300293, 0.20407378673553467, -0.10661622136831284, 0.1818832904100418, -0.2705301344394684, -0.3351861238479614, -0.007419852074235678, 0.1425139158964157, -0.24198009073734283, 0.025865210220217705, -0.25238075852394104, -0.10693735629320145, -0.030886560678482056, -0.18451230227947235, -0.0077454037964344025, -0.3065396547317505, 0.26586633920669556, 0.16224448382854462, -0.28780966997146606, 0.43904975056648254, -0.026124775409698486, 0.5016054511070251, -0.11829118430614471, -0.044882796704769135, -0.2740185856819153, -0.07482235878705978, -0.06711838394403458, 0.09123830497264862, 0.048533808439970016, -0.040067922323942184, 0.4106924831867218, -0.3150516748428345, 0.2537176012992859, -0.5604351162910461, -0.11802151799201965, 0.1392403542995453, -0.24012254178524017, 0.3754831552505493, 0.2183447778224945, 0.13397818803787231, -0.09634624421596527, 0.022847268730401993, 0.07678109407424927, -0.29435861110687256, -0.1899748593568802, -0.23009096086025238, -0.28808164596557617, -0.0674341544508934, -0.2977471351623535, -0.006747327744960785, -0.08661945164203644, -0.4340057671070099, 0.12302599102258682, -0.1809227615594864, 0.05870075896382332, 0.00010227039456367493, -0.11829855293035507, 0.1596345156431198, 0.053348932415246964, -0.27569738030433655, -0.04362320154905319, -0.701396644115448, -0.05670634284615517, -0.2385973483324051, -0.19630062580108643, 0.2482030987739563, 0.2282257229089737, 0.2781941294670105, -0.06218605488538742, -0.3920372724533081, -0.4550662636756897, -0.10787628591060638, 0.4620170593261719, -0.06704201549291611, 0.23573599755764008, 0.31888556480407715, 0.11935534328222275, -0.3011855185031891, 0.03335142880678177, -0.44351696968078613, -0.2691023349761963, -0.09952541440725327, 0.17977797985076904, -0.21086052060127258, 0.27103739976882935, 0.021453149616718292, 0.6760715842247009, 0.29243770241737366, 0.0020471997559070587, 0.03983013331890106, -0.0036421604454517365, 0.562731921672821, -0.09519927948713303, -0.07483000308275223, 0.06978504359722137, -0.057142600417137146, 0.06380028277635574, 0.18786324560642242, -0.0497949942946434, 0.1013815775513649, 0.11432749032974243, 0.1524703949689865, -0.1839819848537445, -0.28629961609840393, 0.016224879771471024, -0.2610519230365753, 0.059025563299655914, -0.15685118734836578, 0.08196186274290085, -0.19831278920173645, 0.04579196870326996, 0.04125680401921272, 0.5648055672645569, -0.10909158736467361, -0.13746526837348938, -0.38416677713394165, -0.14358820021152496, -0.5250340700149536, 0.3203059434890747, -0.06780129671096802, 0.024195879697799683, -0.13164012134075165, -0.09466671943664551, 0.2981007695198059, 0.008960016071796417, 0.29008162021636963, -0.22048045694828033, -0.2481161504983902, 0.4593139588832855, -0.25160717964172363, -0.1821674257516861, -0.1596943587064743, -0.03165312856435776, 0.28344613313674927, 0.38153043389320374, 0.37783411145210266, 0.06558669358491898, -0.3845007121562958, 0.12771782279014587, -0.13943420350551605, -0.0939750149846077, -0.007310023531317711, -0.45086202025413513, -0.6278380751609802, -0.3546302318572998, 0.5105984210968018, 0.09707598388195038, -0.03214917331933975, -0.375325083732605, -0.21698623895645142, -0.018337825313210487, -0.12147223949432373, -0.05552871525287628, 0.3007540702819824, 0.02250734716653824, 0.07245728373527527, 0.028402037918567657, -0.10761566460132599, 0.10565630346536636, 0.15289552509784698, 0.1356016844511032, -0.006410706788301468, -0.016038157045841217, 0.38986286520957947, -0.2634381651878357, 0.18304334580898285, 0.439353346824646, -0.1353975236415863, 0.298879474401474, 0.1105479821562767, 0.35371124744415283, -0.1422024816274643, -0.0980152115225792, -0.06564535200595856, 0.06596045196056366, -0.13979248702526093, 0.2421134114265442, 0.13596519827842712, 0.10014715790748596, -0.1274166703224182, 0.16125236451625824, -0.008281700313091278, -0.029178401455283165, -0.37558436393737793, 0.4558246433734894, 0.7926324605941772, -0.14195682108402252, 0.14081095159053802, 0.06749069690704346, -0.11823801696300507, 0.24943383038043976, 0.005544722080230713, 0.2370252013206482, -0.3171384930610657, -0.1873001605272293, -0.10537516325712204, -0.2046627551317215, 0.374773770570755, -0.051595598459243774, -0.3955067992210388, -0.0033041308633983135, -0.010975442826747894, -0.009862799197435379, -0.09252823144197464, -0.10087424516677856, -0.24873888492584229, -0.3730859160423279, -0.3108745813369751, 0.13321346044540405, 0.059849195182323456, 0.034798283129930496, -0.3165991008281708, 0.02387635037302971, 0.26138854026794434, 0.06271699070930481, -0.27308738231658936, -0.1315070241689682, 0.02161596529185772, -0.02809605374932289, 0.5852000117301941, -0.2270268201828003, 0.14961810410022736, 0.05960264801979065, 0.8679714202880859, -0.09955328702926636, -0.20007696747779846, 0.21322889626026154, 0.02945728600025177, 0.3297766447067261, 0.0799085721373558, -0.2710723280906677, 0.4508841335773468, -0.2981526851654053, -0.11635486036539078, 0.3453492820262909, 0.07725637406110764, -0.45750248432159424, 0.13132452964782715, 0.31209230422973633, 0.12481091916561127, -0.009088821709156036, 0.3143664598464966, 0.05577462911605835, 0.34898537397384644, -0.25319185853004456, 0.09065122902393341, 0.16831108927726746, -0.09120573103427887, 0.6166761517524719, -0.2721862196922302, -0.3518119156360626, 0.015810728073120117, -0.18943417072296143, -0.11361033469438553, -0.2593778371810913, 0.0796303078532219, 0.06903566420078278, -0.1914275884628296, -0.36380255222320557, 0.14350834488868713, 0.2678101658821106, -0.05477358400821686, 0.23645859956741333, 0.0891910195350647, -0.023729436099529266, 0.19908376038074493, 0.5598152875900269, -0.07679392397403717, 0.18203674256801605, -0.3470500707626343, -0.10404427349567413, -0.5153346061706543, 0.06446433067321777, -0.29453766345977783, 0.25818732380867004, 0.16877871751785278, 0.4182199239730835, 0.15656407177448273, -0.1152074784040451, -0.32816582918167114, -0.12741541862487793, -0.4612698554992676, 0.06022578477859497, 0.452308714389801, -0.038836218416690826, 0.017600618302822113, 0.05694469437003136, -0.13290494680404663, -0.08801145106554031, -0.42642906308174133, -0.23602941632270813, -0.17721672356128693, 0.1658841073513031, -0.11701943725347519, -0.2152625471353531, 0.32890820503234863, 0.30417072772979736, -0.19808955490589142, 0.08937057852745056, 0.4630611836910248, 0.13308340311050415, 0.017296742647886276, -0.0026898030191659927, -0.18776850402355194, 0.116378054022789, -0.10258712619543076, -0.24466532468795776, 0.3546995520591736, 0.5280809998512268, -0.0766596719622612, 0.1834908127784729, -0.1592305451631546, -0.0020830482244491577, 0.11132891476154327, 0.2942759692668915, 0.561530590057373, 0.42243027687072754, -0.17202332615852356, -0.0196295827627182, -0.043775275349617004, -0.017070138826966286, 0.19209901988506317, 0.10249780118465424, -0.2416837364435196, -0.3887174725532532, 0.241023451089859, 0.15629659593105316, -0.04075319319963455, -0.23309147357940674, 0.05369606986641884, -0.09922860562801361, 0.012994591146707535, 0.10302282124757767, 0.17745977640151978, 0.10160984098911285, 0.1979961395263672, 0.06884292513132095, 0.24029652774333954, -0.477455198764801, -0.04472261667251587, -0.07302029430866241, -0.14664731919765472, 0.07913155853748322, 0.48387932777404785, 0.22693540155887604, 0.028239712119102478, 0.055978141725063324, -0.00014415383338928223, 0.44087615609169006, 0.2654418647289276, 0.15883734822273254, -0.325899213552475, -0.2818393111228943, 0.09706863760948181, -0.38025450706481934, -0.19994139671325684, -0.15977898240089417, 0.20200422406196594, -0.004739351570606232, -0.07539680600166321, -0.291702002286911, -0.28213226795196533, 0.3182028830051422, 0.011570578441023827, -0.34720081090927124, -0.1573934257030487, 0.01595095545053482, 0.11483199894428253, 0.24941596388816833, -0.023958731442689896, 0.4570848345756531, 0.5865670442581177, -0.07124249637126923, 0.130184605717659, -0.42316704988479614, -0.031940653920173645, 0.0025346949696540833, 0.021619416773319244, 0.0127580426633358, -0.0655440241098404, -0.05950988829135895, 0.023320596665143967, 0.09547819197177887, 0.3983057737350464, 0.32242533564567566, 0.0869767814874649, 0.03402478247880936, -0.35812610387802124, -0.28536462783813477, 0.16258418560028076, -0.2166578471660614, 0.16281016170978546, 0.0357808880507946, -0.04913000389933586, 0.06943240761756897, 0.13565696775913239, -0.08916787803173065, 0.1820763349533081, -0.10691134631633759, -0.14140991866588593, -0.2964295744895935, 0.38393062353134155, 0.24517090618610382, -0.03823051601648331, 0.042908281087875366, 0.20402339100837708, -0.0713084489107132, -0.1465761363506317, 0.4770718812942505, -0.17412108182907104, 0.06998703628778458, -0.25944364070892334, 0.11737021803855896, -0.013979583978652954, 0.334640234708786, 0.19963526725769043, 0.26743900775909424, -0.2205439805984497, -0.07334060966968536, -0.5370451807975769, 0.11171518266201019, 0.42310160398483276, -0.08181396126747131, 0.025394948199391365, 0.23483441770076752, -0.08784238249063492, 0.3315770626068115, 0.42378878593444824, -0.2566375136375427, 0.17362482845783234, -0.20284676551818848, -0.25451451539993286, 0.3553045094013214, 0.12563341856002808, -0.02902734838426113, -0.021867183968424797, -0.2859518826007843, 0.22886477410793304, 0.1963055282831192, 0.06266241520643234, -0.024648796766996384, -0.14701035618782043, 0.28421229124069214, -0.04379856586456299, 0.22846435010433197, 0.24761411547660828, -0.0904889702796936, -0.04872383549809456, -0.108784519135952, -0.030855145305395126, -0.04204951971769333, -0.200828418135643, 0.22127261757850647, 0.08536077290773392, 0.15127511322498322, -0.17769132554531097, 0.33625805377960205, -0.1389506608247757, 0.04864684119820595, 0.17444224655628204, 0.18127766251564026, -0.048969581723213196, 0.20285844802856445, 0.06480952352285385, 0.20196254551410675, 0.15838097035884857, 0.3338563144207001, 0.17316687107086182, 0.5625184178352356, -0.36475151777267456, -0.31133580207824707, 0.36201757192611694, -0.2141585350036621, -0.37946653366088867, -0.3523540496826172, 0.24812905490398407, -0.08412633091211319, -0.14610999822616577, -0.30211424827575684, -0.08976229280233383, -0.042056769132614136, -0.04603312909603119, -0.38680386543273926, 0.5033352971076965, -0.32498303055763245, -0.10210315883159637, -0.041754480451345444, 0.17156971991062164, 0.0769297331571579, 0.08402635902166367, -0.2171049416065216, -0.1265394538640976 ]
https://github.com/huggingface/datasets/pull/2662
Load Dataset from the Hub (NO DATASET SCRIPT)
This is ready for review now :) I would love to have some feedback on the changes in load.py @albertvillanova. There are many changes so if you have questions let me know, especially on the `resolve_data_files` functions and on the changes in `prepare_module`. And @thomwolf if you want to take a look at the documentation, feel free to share your suggestions :)
## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629
62
text: Load Dataset from the Hub (NO DATASET SCRIPT) ## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629 This is ready for review now :) I would love to have some feedback on the changes in load.py @albertvillanova. There are many changes so if you have questions let me know, especially on the `resolve_data_files` functions and on the changes in `prepare_module`. And @thomwolf if you want to take a look at the documentation, feel free to share your suggestions :)
[ -0.19507059454917908, -0.1736239492893219, -0.0943458080291748, 0.1433166116476059, 0.011432336643338203, -0.10374695062637329, 0.15735763311386108, 0.34067848324775696, 0.2286495864391327, -0.05326826870441437, -0.12297380715608597, 0.4487333595752716, -0.08709263056516647, 0.3887191116809845, 0.27883318066596985, -0.08805200457572937, 0.0994115099310875, 0.15367765724658966, 0.07004132121801376, 0.025187447667121887, -0.0629810094833374, 0.18131214380264282, -0.06351852416992188, 0.061464451253414154, -0.13541249930858612, 0.03278426080942154, -0.2836453914642334, 0.462750107049942, -0.2999420762062073, -0.5385595560073853, 0.3714649975299835, 0.4423694610595703, 0.0058582499623298645, 0.3278743624687195, -0.0001062424635165371, 0.025450482964515686, 0.22873544692993164, -0.05228883773088455, -0.2458420693874359, -0.24644054472446442, 0.015203818678855896, -0.31329742074012756, 0.27810630202293396, -0.2453821301460266, -0.09111325442790985, -0.12312590330839157, 0.0005022995173931122, 0.086178719997406, 0.35412877798080444, 0.10597627609968185, 0.18494601547718048, 0.3154739439487457, 0.007580440491437912, -0.17917658388614655, 0.16404181718826294, 0.20218944549560547, -0.0496746227145195, 0.2547532916069031, 0.5196150541305542, 0.1664358377456665, 0.03752930462360382, 0.012166773900389671, -0.1956319361925125, -0.14525282382965088, 0.5307749509811401, 0.07359680533409119, -0.07562027126550674, -0.22534605860710144, -0.08745893090963364, 0.17834708094596863, 0.16491588950157166, -0.5152085423469543, -0.3098328113555908, -0.5425646305084229, 0.1460212767124176, -0.34168750047683716, -0.11517927795648575, 0.20622237026691437, -0.15047308802604675, 0.1279972642660141, -0.2089337557554245, -0.3823782801628113, -0.23357215523719788, -0.14186662435531616, 0.0372714027762413, 0.21024875342845917, -0.12103025615215302, 0.026135459542274475, 0.07084313780069351, 0.1070525124669075, -0.03806948661804199, -0.22000440955162048, -0.042023953050374985, 0.21402740478515625, -0.31653323769569397, -0.20030826330184937, 0.17152747511863708, 0.20823121070861816, 0.3425053656101227, 0.2860530614852905, -0.0013800309970974922, 0.25376904010772705, -0.01088759582489729, 0.15317752957344055, 0.3099166452884674, 0.09874436259269714, 0.1496846079826355, -0.19353646039962769, 0.20496027171611786, 0.2407897710800171, 0.2486054003238678, -0.02095358446240425, -0.22330409288406372, 0.003646980505436659, -0.28122714161872864, -0.3076516091823578, 0.1590934544801712, -0.07885102182626724, -0.040813952684402466, -0.037870023399591446, 0.12783867120742798, -0.14589999616146088, 0.05126306787133217, 0.45206987857818604, -0.15891608595848083, 0.2773500680923462, -0.10099582374095917, 0.2813628315925598, -0.05716913193464279, -0.10241597145795822, -0.27182114124298096, 0.18382087349891663, -0.10349972546100616, 0.15218782424926758, 0.14414581656455994, -0.38069915771484375, 0.10849427431821823, 0.025543399155139923, 0.44146960973739624, 0.021897688508033752, -0.09355515986680984, 0.04719708487391472, 0.016586385667324066, 0.09408047795295715, -0.03687337413430214, -0.16942572593688965, 0.18965579569339752, -0.25240468978881836, -0.40723878145217896, 0.05188789218664169, -0.41570934653282166, -0.453188955783844, 0.09289109706878662, 0.21179287135601044, -0.2982967495918274, -0.11680746078491211, -0.6244298815727234, 0.42424577474594116, -0.31531137228012085, 0.020524952560663223, 0.10402071475982666, 0.1709001362323761, 0.007542137056589127, -0.2579493224620819, 0.34847232699394226, 0.5455854535102844, -0.2199939489364624, -0.24165211617946625, 0.20649269223213196, -0.1848296970129013, -0.03884512931108475, 0.055039823055267334, -0.17222625017166138, 0.23782944679260254, -0.02092224545776844, 0.12689557671546936, 0.3746914863586426, -0.563270628452301, -0.17234289646148682, 0.38103389739990234, 0.028144486248493195, 0.24184973537921906, 0.24276885390281677, -0.1549130082130432, 0.25675681233406067, -0.07683800905942917, 0.18377923965454102, 0.17328277230262756, -0.02589925192296505, 0.11102979630231857, -0.22915451228618622, -0.3619656264781952, -0.10290005803108215, 0.5253069400787354, -0.092534139752388, -0.052221767604351044, 0.0748414695262909, 0.0038693929091095924, 0.38105058670043945, -0.18208113312721252, 0.08677505701780319, -0.033754825592041016, 0.06281914561986923, 0.16863660514354706, -0.0204142015427351, -0.04904129356145859, -0.494584858417511, 0.24619796872138977, 0.10970175266265869, 0.19273246824741364, -0.12608233094215393, -0.16362138092517853, -0.23720338940620422, 0.07761946320533752, -0.33395886421203613, -0.31814998388290405, 0.11063054203987122, -0.101936474442482, 0.16106970608234406, -0.18405207991600037, -0.508171021938324, 0.6435368657112122, -0.15260803699493408, 0.16096442937850952, -0.5866945385932922, 0.4413440227508545, 0.11611182242631912, -0.01800943911075592, 0.05649501085281372, 0.24729615449905396, -0.029953986406326294, -0.2373703122138977, 0.24691230058670044, 0.4634931981563568, -0.1766766905784607, 0.3881937265396118, 0.11531905829906464, 0.21728235483169556, 0.34913352131843567, -0.028168749064207077, 0.28869327902793884, -0.36467310786247253, 0.17737217247486115, -0.015070334076881409, -0.48105672001838684, 0.5780674815177917, -0.06151164695620537, 0.20426882803440094, 0.15234757959842682, -0.2648228704929352, 0.18812407553195953, 0.023454587906599045, -0.2951465845108032, -0.008723314851522446, 0.01797853410243988, 0.227460578083992, 0.15885744988918304, -0.047892145812511444, -0.30766624212265015, 0.09191052615642548, 0.4431874752044678, -0.08729084581136703, -0.08191651850938797, 0.2525913119316101, -0.09453526884317398, -0.21602359414100647, -0.024836121127009392, 0.11489863693714142, 0.29448825120925903, 0.2752489745616913, -0.23875385522842407, 0.2407923936843872, 0.18643049895763397, -0.17690008878707886, 0.19765058159828186, 0.0657714232802391, 0.0722908228635788, 0.11171180009841919, 0.12128107249736786, 0.06203353777527809, -0.3670787215232849, -0.25759658217430115, -0.03612939268350601, 0.05765049159526825, -0.13465605676174164, -0.021890895441174507, 0.10123798251152039, 0.07459711283445358, -0.03796239569783211, 0.034125201404094696, -0.1508655995130539, -0.21605364978313446, 0.0002471841871738434, 0.09437026083469391, 0.018649030476808548, 0.028699558228254318, 0.22801819443702698, 0.5718757510185242, -0.15112729370594025, -0.2918270230293274, -0.29733601212501526, -0.2317684441804886, 0.12328729778528214, 0.12550218403339386, 0.07642000168561935, 0.19199208915233612, 0.31043821573257446, -0.23145446181297302, 0.04777826368808746, -0.269400954246521, -0.15508271753787994, 0.22937409579753876, -0.38141971826553345, -0.0009220186620950699, 0.30437910556793213, 0.11724885553121567, 0.07312370836734772, -0.25712457299232483, 0.2150731235742569, -0.3513062298297882, -0.13445422053337097, -0.029594572260975838, -0.06915213912725449, -0.05710992589592934, -0.09948115050792694, -0.4417577087879181, -0.3429887890815735, -0.46920013427734375, 0.6015424728393555, 0.44927850365638733, 0.1451091170310974, -0.1423548012971878, -0.031667325645685196, 0.21818292140960693, -0.08494358509778976, -0.053270988166332245, -0.09325224161148071, -0.5247694253921509, 0.11633960902690887, -0.142898827791214, -0.14052961766719818, 0.003064248710870743, 0.11244793236255646, 0.1278649866580963, -0.19507361948490143, -0.3858179450035095, -0.39391815662384033, -0.04821629822254181, 0.2716010808944702, 0.0561477392911911, 0.28075623512268066, 0.3040241599082947, 0.06681153178215027, -0.1250520497560501, 0.03174550086259842, -0.2549476623535156, -0.08136840909719467, 0.17671304941177368, -0.11151831597089767, 0.09972327202558517, 0.3194560706615448, -0.13997194170951843, 0.4678930640220642, 0.3065013289451599, 0.11703278124332428, 0.2624865770339966, -0.0014516040682792664, 0.3982178866863251, -0.2784709334373474, -0.06608686596155167, 0.10589941591024399, -0.16529163718223572, 0.0687587633728981, 0.38466835021972656, 0.17993253469467163, 0.06776608526706696, -0.2929381728172302, -0.19829240441322327, -0.06468537449836731, -0.16819652915000916, 0.0604679137468338, 0.03561912849545479, -0.06584366410970688, -0.23778429627418518, -0.038590215146541595, -0.16912037134170532, 0.05126305669546127, 0.11689355969429016, 0.2913203835487366, 0.1071910560131073, -0.052604012191295624, -0.45378577709198, 0.21677060425281525, -0.6257376074790955, 0.12327165901660919, -0.055321104824543, -0.20868897438049316, 0.07975666224956512, -0.24721601605415344, 0.1059325560927391, -0.31410855054855347, 0.7224144339561462, -0.09201686829328537, -0.10466636717319489, 0.09284958243370056, -0.09370063245296478, -0.3269761800765991, 0.06409074366092682, -0.21427962183952332, 0.18407723307609558, -0.01764756441116333, 0.6959021687507629, -0.4719473123550415, -0.48770076036453247, 0.11369869858026505, -0.014114776626229286, -0.038109347224235535, -0.10759849846363068, -0.23213033378124237, -0.15682117640972137, -0.5934723019599915, 0.08928215503692627, 0.04407307505607605, 0.16475903987884521, -0.17129647731781006, 0.021244604140520096, 0.16980497539043427, 0.13875898718833923, 0.1609106808900833, 0.27392128109931946, 0.22013065218925476, 0.0789603739976883, -0.03920141980051994, 0.1341361403465271, -0.024598456919193268, 0.17339687049388885, 0.7299680709838867, -0.03227092698216438, -0.36605164408683777, 0.0714356005191803, 0.052053775638341904, 0.33954286575317383, 0.44775328040122986, 0.1432856172323227, 0.1730917990207672, -0.22093938291072845, 0.29870837926864624, -0.3851384222507477, 0.023825161159038544, 0.14801912009716034, -0.2066510021686554, -0.4226130247116089, -0.46530288457870483, 0.6171174645423889, -0.11922819912433624, -0.11266296356916428, 0.06228051707148552, 0.4766327738761902, -0.19157834351062775, 0.3472024202346802, -0.009143650531768799, 1.0372222661972046, -0.15981024503707886, 0.3430026173591614, 0.28033286333084106, -0.2837579846382141, 0.5781629681587219, -0.7498086094856262, -0.09471394866704941, -0.34166568517684937, 0.053357768803834915, -0.048060327768325806, -0.01907159760594368, 0.004752308130264282, 0.15085889399051666, -0.4782518446445465, 0.2014332413673401, 0.14396187663078308, 0.0942002385854721, -0.021748824045062065, 0.4107879400253296, -0.331694632768631, -0.4836835563182831, -0.7409119606018066, 0.18991480767726898, 0.14661341905593872, -0.16743536293506622, -0.13514932990074158, -0.11044536530971527, 0.04944978281855583, -0.10613946616649628, -0.15651723742485046, 0.1705976128578186, 0.23225343227386475, -0.14625626802444458, 0.32840585708618164, -0.10243047028779984, 0.20832009613513947, 0.17173926532268524, 0.328411340713501, 0.07527580857276917, -0.21510764956474304, 0.24835149943828583, -0.2144659161567688, 0.02699136920273304, -0.054803766310214996, -0.08347150683403015, 0.18558037281036377, -0.08564494550228119, -0.24624666571617126, 0.1690121740102768, -0.25694897770881653, -0.3543310761451721, -0.014021053910255432, 0.07163616269826889, 0.22135934233665466, -0.2921794652938843, -0.12881973385810852, 0.20671099424362183, -0.02245364710688591, -0.21569432318210602, 0.1339302659034729, 0.22031359374523163, -0.30166736245155334, -0.08851397782564163, 0.18727077543735504, -0.23059187829494476, -0.1688826084136963, 0.15965762734413147, -0.10420800000429153, -0.23141132295131683, 0.23422473669052124, 0.28572148084640503, -0.07636357843875885, -0.3137381076812744, -0.04300021007657051, 0.6402437090873718, -0.3305216431617737, 0.07533872127532959, 0.1156250461935997, -0.132578507065773, 0.1986650824546814, 0.26750755310058594, 0.13515466451644897, -0.0037438049912452698, 0.024094965308904648, -0.2849633991718292, -0.10239721834659576, 0.30564185976982117, 0.09135229885578156, 0.24236395955085754, 0.40634241700172424, -0.11788155138492584, 0.003478279337286949, 0.10493239015340805, -0.39759278297424316, 0.1626824289560318, -0.2407894730567932, 0.0018484704196453094, 0.18276125192642212, -0.07401138544082642, 0.28177890181541443, -0.06120835989713669, 0.14484162628650665, -0.045036859810352325, -0.37488406896591187, -0.2396228015422821, -0.13162341713905334, 0.14876864850521088, 0.012735006399452686, 0.03960483521223068, -0.13947027921676636, 0.2543681859970093, -0.1204216331243515, -0.12443661689758301, 0.6272556781768799, 0.06299029290676117, -0.09943275153636932, -0.1103462353348732, 0.6013695001602173, 0.10606873780488968, -0.3244313597679138, -0.04747677594423294, 0.19260314106941223, 0.19185854494571686, 0.06479468941688538, 0.0027690157294273376, -0.3902696669101715, -0.11041808128356934, 0.26334601640701294, 0.48931649327278137, 0.5817773938179016, 0.21013641357421875, 0.3527211546897888, -0.1535768061876297, -0.014665786176919937, 0.030078956857323647, 0.40628379583358765, 0.44779810309410095, -0.13207876682281494, -0.045059457421302795, 0.08152904361486435, 0.22262968122959137, -0.1382090449333191, -0.2772063612937927, 0.11173933744430542, -0.170212522149086, 0.05574449524283409, 0.2725275754928589, 0.28453734517097473, 0.23307016491889954, -0.10184474289417267, 0.15796679258346558, 0.7077236175537109, -0.06966495513916016, 0.2549950182437897, 0.11295850574970245, -0.12860146164894104, -0.11107319593429565, 0.16563533246517181, 0.25807321071624756, 0.12148045748472214, 0.18011656403541565, -0.2519190013408661, 0.3549064099788666, 0.051475074142217636, 0.13307136297225952, 0.10587392002344131, -0.20639218389987946, 0.04661864787340164, 0.12724560499191284, 0.07650110125541687, 0.01695675030350685, -0.010027386248111725, 0.43669453263282776, -0.011879012919962406, -0.18220172822475433, -0.14723776280879974, 0.20582333207130432, 0.047090280801057816, -0.1353493481874466, 0.0015509165823459625, -0.3531685173511505, -0.3023841977119446, 0.05421033129096031, -0.11610005795955658, -0.2900788187980652, 0.136600524187088, 0.012170620262622833, 0.2103443741798401, -0.3593365550041199, 0.13611894845962524, -0.1723959743976593, 0.3676564395427704, -0.0743260458111763, 0.23765699565410614, 0.09457956999540329, -0.056057631969451904, 0.05620478838682175, 0.15342360734939575, 0.424207478761673, 0.16370506584644318, -0.018654722720384598, 0.1947166621685028, -0.08203841745853424, -0.0108188446611166, 0.11910469830036163, -0.06804906576871872, 0.06913330405950546, 0.05179367959499359, 0.039454177021980286, 0.25462424755096436, -0.2025156319141388, 0.014942023903131485, -0.04229914769530296, -0.19623099267482758, -0.2871256172657013, 0.3062218427658081, 0.1475970596075058, -0.12240349501371384, -0.10616475343704224, 0.17776693403720856, -0.4307346045970917, -0.22897157073020935, 0.24383622407913208, -0.022919166833162308, 0.04409969970583916, -0.01008524652570486, 0.15185198187828064, 0.21892619132995605, 0.5965672731399536, 0.1998278945684433, 0.0218239463865757, -0.16727131605148315, -0.2078728824853897, -0.4412848949432373, 0.00006058812141418457, 0.15574970841407776, -0.08488988131284714, 0.0831068679690361, 0.1475454866886139, 0.20078334212303162, 0.23491132259368896, -0.361889123916626, -0.12115004658699036, 0.06436870247125626, -0.17186519503593445, -0.2865728735923767, 0.15289779007434845, 0.1521964967250824, 0.16406115889549255, 0.06991961598396301, -0.06771930307149887, 0.010463148355484009, -0.0734293982386589, 0.016110286116600037, -0.02900250256061554, 0.17274963855743408, 0.07580746710300446, -0.3622160255908966, 0.22022150456905365, -0.15092483162879944, 0.10540786385536194, -0.14597827196121216, -0.12422920763492584, -0.2220427691936493, -0.24689583480358124, -0.2364392876625061, 0.18843641877174377, -0.19284595549106598, 0.1322670727968216, -0.108068086206913, -0.27871575951576233, -0.1586296707391739, -0.15550962090492249, 0.0732928216457367, -0.09289681911468506, -0.26574811339378357, 0.005704356357455254, 0.12141578644514084, 0.053709425032138824, -0.02410080097615719, 0.21997776627540588, 0.012073308229446411, -0.018244784325361252, -0.15634408593177795, -0.198204904794693, 0.47634652256965637, -0.18958207964897156, -0.24712282419204712, 0.010458437725901604, 0.061687856912612915, 0.01021188497543335, -0.026512524113059044, -0.5773085951805115, 0.25582611560821533, 0.19341765344142914, -0.04817286133766174, -0.3776240646839142, 0.3275969922542572, -0.04031889885663986, -0.3006007969379425, -0.2650587558746338, -0.03605819493532181, 0.07256661355495453, -0.24073559045791626, -0.08725716173648834, -0.3990463614463806 ]
https://github.com/huggingface/datasets/pull/2662
Load Dataset from the Hub (NO DATASET SCRIPT)
I took your comments into account thanks ! And I made `aiohttp` a required dependency :)
## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629
16
text: Load Dataset from the Hub (NO DATASET SCRIPT) ## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629 I took your comments into account thanks ! And I made `aiohttp` a required dependency :)
[ -0.3445584774017334, -0.257549911737442, -0.07515294849872589, 0.10590744763612747, 0.009901957586407661, -0.05588725954294205, 0.10751749575138092, 0.3431730568408966, 0.22827070951461792, 0.0700339525938034, -0.04640252888202667, 0.506295382976532, 0.01806582137942314, 0.45210063457489014, 0.2906051278114319, -0.06180979311466217, 0.008881516754627228, 0.304181843996048, 0.08538620918989182, 0.11244328320026398, 0.04022650420665741, 0.1675260215997696, -0.055753178894519806, 0.08325579017400742, -0.16975054144859314, -0.0030558165162801743, -0.20836657285690308, 0.3573307693004608, -0.2987709641456604, -0.47509482502937317, 0.33211609721183777, 0.29504188895225525, 0.03706672415137291, 0.13357365131378174, -0.0000995345544652082, -0.00861835852265358, 0.1974583864212036, -0.050519198179244995, -0.21069146692752838, -0.3206392526626587, -0.06696449965238571, -0.1380462944507599, 0.15909676253795624, -0.30358704924583435, -0.22968554496765137, -0.030288897454738617, 0.18609292805194855, 0.07118281722068787, 0.3987058997154236, 0.21996238827705383, 0.24771328270435333, 0.3054492771625519, 0.07135140895843506, -0.2609480321407318, 0.14080631732940674, 0.13374485075473785, -0.08031874150037766, 0.06878740340471268, 0.301322340965271, 0.2505367398262024, 0.05517519637942314, 0.08617474138736725, -0.1506577581167221, -0.04583749547600746, 0.47323426604270935, 0.17418238520622253, -0.09810825437307358, -0.1719454973936081, 0.019404159858822823, 0.2003192901611328, 0.1427202969789505, -0.5697829127311707, -0.2349558025598526, -0.3969418406486511, 0.17547431588172913, -0.3971884548664093, -0.06268588453531265, 0.2962972819805145, -0.16784732043743134, 0.21933430433273315, -0.13326843082904816, -0.2803873121738434, -0.2252703309059143, -0.07867667078971863, 0.033707395195961, 0.2601606547832489, -0.16981109976768494, -0.024262025952339172, 0.030754610896110535, 0.00867634266614914, -0.07335571944713593, -0.23451027274131775, -0.08069542050361633, 0.17539358139038086, -0.15634189546108246, -0.1900208592414856, 0.19932055473327637, 0.23289206624031067, 0.4242374002933502, 0.28064799308776855, 0.019945703446865082, 0.1979367733001709, -0.003924788907170296, 0.23877236247062683, 0.26111605763435364, -0.01659427396953106, 0.23050209879875183, -0.15630951523780823, 0.1902494579553604, 0.17471162974834442, 0.13586117327213287, -0.08986897021532059, -0.14183586835861206, 0.10843255370855331, -0.2993970811367035, -0.2993873357772827, 0.12407644093036652, -0.11032578349113464, -0.16164954006671906, -0.05501939356327057, 0.08164574950933456, 0.02086814120411873, 0.014661266468465328, 0.49621012806892395, -0.09452035278081894, 0.22868561744689941, -0.07282834500074387, 0.18076439201831818, -0.13234473764896393, -0.13735418021678925, -0.26346126198768616, 0.23643136024475098, -0.07187135517597198, 0.18053555488586426, 0.1621609777212143, -0.2761821746826172, 0.13236495852470398, -0.019998738542199135, 0.44752931594848633, 0.016518406569957733, -0.009480263106524944, -0.012118078768253326, -0.05604099482297897, 0.12882108986377716, 0.15288758277893066, -0.19452747702598572, 0.13508540391921997, -0.34570199251174927, -0.49402788281440735, 0.02240511029958725, -0.3146023154258728, -0.3513253331184387, 0.03782987594604492, 0.28332701325416565, -0.2183932512998581, -0.18389105796813965, -0.5144607424736023, 0.3620859980583191, -0.31513798236846924, -0.013505524024367332, -0.002812296152114868, 0.21463464200496674, -0.07066547125577927, -0.19310642778873444, 0.3568233251571655, 0.47012805938720703, -0.20283080637454987, -0.26205146312713623, 0.2220485508441925, -0.15039566159248352, -0.1055237278342247, 0.09082303941249847, -0.1216869130730629, 0.20027464628219604, -0.08673208206892014, 0.23291195929050446, 0.3571425676345825, -0.45887309312820435, -0.24180838465690613, 0.21786339581012726, -0.051851339638233185, 0.08589495718479156, 0.21236419677734375, -0.0681600272655487, 0.23449204862117767, 0.032237499952316284, 0.18487069010734558, 0.2867155075073242, -0.05314978212118149, 0.10387586802244186, -0.13180534541606903, -0.3626837730407715, -0.21892867982387543, 0.44260352849960327, -0.11623980104923248, -0.07906334847211838, 0.04280375689268112, 0.04918710142374039, 0.34774234890937805, -0.1627781093120575, 0.10677018016576767, 0.06427618116140366, 0.057053547352552414, 0.126380056142807, -0.1124676913022995, -0.26069602370262146, -0.356557160615921, 0.19897645711898804, 0.15264153480529785, 0.1653515100479126, -0.12838883697986603, -0.268563449382782, -0.19820329546928406, 0.10975874215364456, -0.2535432279109955, -0.22114652395248413, 0.1978655904531479, -0.003284923732280731, 0.23386085033416748, -0.1825171858072281, -0.4753016233444214, 0.7275874614715576, -0.1383737474679947, 0.1322181224822998, -0.6241928935050964, 0.397463858127594, -0.021185701712965965, -0.11084313690662384, 0.15136128664016724, 0.16382871568202972, -0.060637347400188446, -0.11889588832855225, 0.3489830493927002, 0.37471142411231995, -0.17606721818447113, 0.30082666873931885, 0.18493467569351196, 0.16800037026405334, 0.27810561656951904, -0.0757012888789177, 0.09023552387952805, -0.3579140603542328, 0.12560750544071198, 0.05609019100666046, -0.5013152360916138, 0.5405758619308472, 0.08380013704299927, 0.1957939863204956, 0.18493999540805817, -0.16381436586380005, 0.2516283094882965, -0.10783696174621582, -0.23555342853069305, -0.07628614455461502, 0.028696861118078232, 0.2013159990310669, 0.01670186221599579, -0.06288425624370575, -0.34928828477859497, 0.2044522613286972, 0.5330644249916077, -0.07007096707820892, 0.027042731642723083, 0.14614886045455933, -0.14834889769554138, -0.06753875315189362, -0.022979604080319405, 0.04572830721735954, 0.21404440701007843, 0.3793790638446808, -0.16271647810935974, 0.18684138357639313, 0.03464822098612785, -0.17412810027599335, 0.16681402921676636, -0.014326408505439758, -0.009340161457657814, 0.047739118337631226, 0.128249391913414, -0.017790019512176514, -0.42630791664123535, -0.3023635745048523, -0.08901864290237427, 0.05235303193330765, -0.10514521598815918, 0.004952223971486092, -0.05246252566576004, 0.00019963085651397705, -0.04986868053674698, 0.08910874277353287, -0.10545632243156433, -0.13527311384677887, 0.08285172283649445, 0.15015505254268646, 0.028643779456615448, 0.04806337505578995, 0.1574302762746811, 0.5361083745956421, -0.15765632688999176, -0.17902453243732452, -0.28013989329338074, -0.23514501750469208, 0.007394898682832718, 0.1771290898323059, 0.06673521548509598, 0.2381785809993744, 0.3803158104419708, -0.3109853267669678, 0.052790313959121704, -0.3125689923763275, -0.1392752230167389, 0.2735370695590973, -0.28190821409225464, -0.021498484537005424, 0.22736914455890656, 0.1174066811800003, 0.04701489955186844, -0.2195374071598053, 0.23814421892166138, -0.3095434606075287, -0.20292475819587708, -0.0449582114815712, -0.028447115793824196, -0.14248961210250854, -0.14459334313869476, -0.41465023159980774, -0.20111753046512604, -0.47266677021980286, 0.5264525413513184, 0.44756263494491577, 0.22843357920646667, -0.21478569507598877, -0.07120004296302795, 0.24880439043045044, -0.1753932386636734, -0.022122593596577644, -0.13841243088245392, -0.48020151257514954, 0.1392080932855606, -0.22878846526145935, -0.17352133989334106, 0.04994019493460655, 0.09823916852474213, 0.1169995367527008, -0.18348893523216248, -0.4199846386909485, -0.43645963072776794, -0.09163244813680649, 0.193983793258667, -0.026057913899421692, 0.25236743688583374, 0.3407772183418274, 0.02170329913496971, -0.1777176856994629, -0.02055012620985508, -0.20808038115501404, 0.06284188479185104, 0.1548001915216446, -0.11607611924409866, 0.09004556387662888, 0.27608296275138855, -0.06662467122077942, 0.41313809156417847, 0.3118709325790405, 0.07731275260448456, 0.23707358539104462, -0.075765460729599, 0.4187127649784088, -0.2687697112560272, 0.05698636919260025, 0.03844952955842018, -0.06001122295856476, 0.030657105147838593, 0.3860844373703003, 0.15324226021766663, 0.07655376940965652, -0.2752499580383301, -0.08678798377513885, -0.06271260231733322, -0.24352595210075378, 0.005140701308846474, 0.04602303355932236, -0.08391829580068588, -0.2115103155374527, -0.010952647775411606, -0.19099366664886475, 0.02127009443938732, 0.038649432361125946, 0.24504880607128143, -0.005659565329551697, -0.00880148634314537, -0.4017033576965332, 0.1316031664609909, -0.6232113242149353, 0.15810859203338623, -0.03681720420718193, -0.21022555232048035, -0.04287923872470856, -0.17890280485153198, 0.12679320573806763, -0.38702210783958435, 0.6204434037208557, -0.11642508953809738, 0.004006717354059219, 0.08790773153305054, -0.06568032503128052, -0.28239601850509644, 0.15292872488498688, -0.26368075609207153, 0.11247047781944275, -0.012885790318250656, 0.6293160319328308, -0.5682631731033325, -0.43987569212913513, 0.1277015656232834, -0.11549252271652222, -0.005616884678602219, -0.04836396872997284, -0.19191496074199677, -0.17505323886871338, -0.5134328007698059, 0.14495614171028137, 0.11310190707445145, 0.18212763965129852, 0.012563495896756649, 0.047499027103185654, 0.02807571552693844, 0.10107644647359848, 0.14693371951580048, 0.22700035572052002, 0.20586484670639038, 0.05695541203022003, -0.037778038531541824, 0.08168520033359528, 0.07072313129901886, 0.10914958268404007, 0.7509916424751282, 0.03847900778055191, -0.4414256811141968, 0.008949014358222485, 0.06372631341218948, 0.3091190457344055, 0.36488625407218933, 0.228282168507576, 0.2573523223400116, -0.15750594437122345, 0.28334444761276245, -0.37952789664268494, 0.03856366127729416, 0.10287576168775558, -0.17235606908798218, -0.3291514813899994, -0.3862142860889435, 0.5673530101776123, -0.1064058393239975, -0.06556646525859833, -0.01141531765460968, 0.5186153650283813, -0.24360834062099457, 0.35641342401504517, 0.08167287707328796, 1.016800045967102, -0.19049052894115448, 0.38666677474975586, 0.1742098033428192, -0.3238251209259033, 0.6155981421470642, -0.6280746459960938, 0.031138136982917786, -0.3242010176181793, -0.004716699011623859, -0.0722041130065918, 0.000406511127948761, -0.029892541468143463, 0.19783645868301392, -0.5055837631225586, 0.1554558426141739, 0.11828359961509705, 0.1667919158935547, 0.009258131496608257, 0.36981913447380066, -0.35929855704307556, -0.5091148614883423, -0.738466739654541, 0.2722470462322235, 0.07012832909822464, -0.15380798280239105, -0.10129135102033615, -0.10937962681055069, 0.09882186353206635, -0.08041463792324066, -0.17441847920417786, 0.2829272150993347, 0.1318645179271698, -0.11223112046718597, 0.2608884572982788, -0.04632750153541565, 0.09223279356956482, 0.16356727480888367, 0.30445703864097595, 0.14624662697315216, -0.21410183608531952, 0.24010427296161652, -0.22449031472206116, -0.10081896930932999, -0.12791238725185394, -0.07696110755205154, 0.19478540122509003, -0.1079854890704155, -0.22078712284564972, 0.1657361090183258, -0.1491325944662094, -0.2985858619213104, -0.03721048682928085, 0.1166357472538948, 0.22977979481220245, -0.1462777704000473, -0.09709568321704865, 0.23391643166542053, -0.018043987452983856, -0.18029052019119263, 0.18474559485912323, 0.10232089459896088, -0.2913960814476013, -0.13820064067840576, 0.22712984681129456, -0.22356045246124268, -0.09973263740539551, 0.15603192150592804, -0.06209541857242584, -0.05167271941900253, 0.1935146003961563, 0.22952385246753693, -0.11642573773860931, -0.3942677974700928, -0.09110693633556366, 0.5887183547019958, -0.2129954695701599, 0.089894600212574, 0.12315156310796738, -0.16239690780639648, 0.21842560172080994, 0.1981476992368698, 0.07626892626285553, -0.08774132281541824, -0.05329861119389534, -0.28520023822784424, -0.0989052951335907, 0.31420689821243286, 0.14732633531093597, 0.2415381371974945, 0.43814703822135925, -0.02399209886789322, -0.049810782074928284, 0.09254680573940277, -0.46428725123405457, 0.10541661828756332, -0.35140055418014526, 0.0714302659034729, 0.11515151709318161, -0.09673414379358292, 0.25744205713272095, -0.05131937935948372, 0.19161257147789001, 0.036050423979759216, -0.4014072120189667, -0.31971001625061035, -0.15641199052333832, 0.10971681773662567, 0.03789208084344864, 0.11924196779727936, -0.18093062937259674, 0.22426433861255646, -0.1347520500421524, -0.15222753584384918, 0.5928025841712952, 0.14082330465316772, -0.06297142803668976, -0.16172480583190918, 0.4819137156009674, 0.14143237471580505, -0.27785956859588623, -0.07839104533195496, 0.16319352388381958, 0.20097211003303528, -0.03677838668227196, 0.034781865775585175, -0.4367077648639679, -0.031966324895620346, 0.3080713748931885, 0.4705152213573456, 0.6077806949615479, 0.13686656951904297, 0.2794364392757416, -0.13430365920066833, -0.07855753600597382, 0.06786118447780609, 0.38945692777633667, 0.336471289396286, -0.08243173360824585, -0.006264183670282364, 0.1414041817188263, 0.2990906834602356, -0.19966989755630493, -0.1897551566362381, 0.12653543055057526, -0.20766529440879822, 0.12936276197433472, 0.26353856921195984, 0.13740819692611694, 0.18927794694900513, -0.15086080133914948, 0.1419428586959839, 0.639448344707489, -0.10853298008441925, 0.08591951429843903, 0.014398038387298584, -0.0870358794927597, -0.11381599307060242, 0.10866673290729523, 0.29992613196372986, 0.267580509185791, 0.2559054493904114, -0.22205910086631775, 0.3602302372455597, 0.10661248862743378, 0.12102008610963821, 0.21137303113937378, -0.13475292921066284, -0.08253365755081177, 0.05808152258396149, 0.2027384340763092, 0.08585754036903381, -0.023215368390083313, 0.34793198108673096, -0.06530799716711044, -0.16255363821983337, -0.1804196983575821, 0.15333105623722076, 0.021285731345415115, -0.13566334545612335, -0.09060481190681458, -0.21382766962051392, -0.31816375255584717, -0.004805881530046463, 0.006440270692110062, -0.2147233933210373, 0.07548064738512039, 0.039667364209890366, 0.29115426540374756, -0.27838361263275146, 0.14924001693725586, -0.09665817767381668, 0.32458433508872986, -0.15299640595912933, 0.24519239366054535, -0.039671823382377625, -0.04430624097585678, 0.01810598559677601, 0.13348488509655, 0.35779282450675964, 0.13909776508808136, -0.039522022008895874, 0.18884438276290894, -0.11808708310127258, -0.04251375421881676, -0.03584221750497818, -0.10923273861408234, 0.1441798061132431, 0.07425316423177719, 0.17605336010456085, 0.31087276339530945, -0.26158636808395386, -0.06055160239338875, -0.057415928691625595, -0.1190660297870636, -0.21984811127185822, 0.22461995482444763, 0.07737576216459274, -0.08529602736234665, -0.13162194192409515, 0.110807403922081, -0.40911978483200073, -0.2144508808851242, 0.1687452346086502, -0.10090682655572891, 0.058920808136463165, -0.02632591873407364, 0.17783360183238983, 0.1443987935781479, 0.5902178883552551, 0.27032890915870667, -0.02446293830871582, -0.09504381567239761, -0.1848587989807129, -0.4040929079055786, 0.08105134218931198, 0.025044281035661697, -0.16181321442127228, 0.05272065848112106, 0.23440136015415192, 0.241843581199646, 0.24576158821582794, -0.3679623007774353, -0.03554101288318634, -0.09546396881341934, -0.060807086527347565, -0.27159565687179565, 0.06138421595096588, 0.1771266758441925, 0.039779238402843475, 0.1634858101606369, -0.16935256123542786, -0.01198892667889595, -0.06794874370098114, 0.10218743234872818, 0.07209707796573639, 0.20581987500190735, 0.022387366741895676, -0.5677227973937988, 0.23027721047401428, -0.11204077303409576, 0.09293518215417862, -0.20859089493751526, -0.12049373984336853, -0.1377822756767273, -0.1726873219013214, -0.3946307599544525, 0.14386804401874542, -0.1784697026014328, 0.16180504858493805, -0.18619100749492645, -0.20589576661586761, -0.09911296516656876, -0.10976870357990265, 0.12486214935779572, -0.05034123733639717, -0.15892328321933746, 0.006503531709313393, -0.04721623659133911, 0.13578596711158752, -0.056315165013074875, 0.2785794138908386, 0.0057314373552799225, -0.05027934908866882, -0.10390891879796982, -0.21693602204322815, 0.4884606897830963, -0.20275267958641052, -0.3024991750717163, 0.026815347373485565, 0.12276134639978409, 0.09643752872943878, -0.09308493882417679, -0.5189634561538696, 0.22057899832725525, 0.13996155560016632, -0.04169679433107376, -0.3802684545516968, 0.24483506381511688, -0.05366973951458931, -0.2629695236682892, -0.2869708240032196, 0.07203493267297745, 0.12661918997764587, -0.21947398781776428, -0.12130910158157349, -0.446527361869812 ]
https://github.com/huggingface/datasets/pull/2662
Load Dataset from the Hub (NO DATASET SCRIPT)
Merging this one :) We can try to integrate the changes in the docs to #2718 @stevhliu !
## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629
18
text: Load Dataset from the Hub (NO DATASET SCRIPT) ## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629 Merging this one :) We can try to integrate the changes in the docs to #2718 @stevhliu !
[ -0.30918070673942566, -0.2811625003814697, -0.08097630739212036, 0.1162947416305542, 0.051176734268665314, -0.04247264564037323, 0.11374586075544357, 0.3297463655471802, 0.19587576389312744, 0.08565393835306168, -0.02392812818288803, 0.4729492962360382, -0.03405427187681198, 0.44199419021606445, 0.2876877188682556, -0.06233876943588257, 0.035192325711250305, 0.24633708596229553, 0.06433206796646118, 0.11709822714328766, 0.02131514996290207, 0.1615414172410965, -0.022163573652505875, 0.03612695634365082, -0.17547528445720673, 0.027813933789730072, -0.18944290280342102, 0.3689270317554474, -0.2853923738002777, -0.48251432180404663, 0.35084840655326843, 0.3041057884693146, 0.018431436270475388, 0.18981488049030304, -0.00010053592268377542, 0.020293615758419037, 0.21505561470985413, -0.07717383652925491, -0.2420302778482437, -0.31700634956359863, -0.0184981357306242, -0.17368485033512115, 0.17612655460834503, -0.2573370635509491, -0.27480921149253845, -0.07309053838253021, 0.15684311091899872, 0.06615102291107178, 0.37676799297332764, 0.16869951784610748, 0.24580542743206024, 0.3230713903903961, 0.05523252859711647, -0.29701104760169983, 0.09298527240753174, 0.1544395238161087, -0.08950431644916534, 0.1215023398399353, 0.33954232931137085, 0.2760866582393646, 0.04190701246261597, 0.0949878990650177, -0.10939387232065201, -0.04495425149798393, 0.4613085389137268, 0.13426244258880615, -0.14262965321540833, -0.15618520975112915, 0.02144656516611576, 0.2056620717048645, 0.14272136986255646, -0.5386757254600525, -0.24845600128173828, -0.43346768617630005, 0.1488935500383377, -0.3588182032108307, -0.048307277262210846, 0.3082805275917053, -0.16860780119895935, 0.20525884628295898, -0.20477695763111115, -0.3126893937587738, -0.18856281042099, -0.12639905512332916, 0.03875803202390671, 0.23633626103401184, -0.18751490116119385, 0.0004649832844734192, 0.03206861764192581, 0.01195899024605751, -0.06512078642845154, -0.1993473470211029, -0.0882854163646698, 0.1488475799560547, -0.14795264601707458, -0.17828956246376038, 0.19235630333423615, 0.27889764308929443, 0.4371579587459564, 0.289104700088501, -0.021321386098861694, 0.1943947970867157, 0.023670818656682968, 0.22075942158699036, 0.29520267248153687, -0.055922213941812515, 0.18261682987213135, -0.15486834943294525, 0.18483175337314606, 0.21535907685756683, 0.18464449048042297, -0.09012899547815323, -0.1297728270292282, 0.06509874016046524, -0.33018383383750916, -0.2870103418827057, 0.12905341386795044, -0.08691798150539398, -0.10514581948518753, -0.039293017238378525, 0.1382124125957489, 0.05762096494436264, 0.012951521202921867, 0.48613303899765015, -0.09232857078313828, 0.20900890231132507, -0.09255240857601166, 0.20095135271549225, -0.07798688113689423, -0.11842121928930283, -0.27746909856796265, 0.22562527656555176, -0.07250476628541946, 0.15865619480609894, 0.18347382545471191, -0.3550460636615753, 0.17979222536087036, 0.023187994956970215, 0.44490426778793335, 0.0015937089920043945, -0.05629035085439682, 0.007168617099523544, -0.023905746638774872, 0.13635404407978058, 0.14917375147342682, -0.1504543572664261, 0.14975088834762573, -0.32844436168670654, -0.4749228358268738, 0.00009012967348098755, -0.3251494765281677, -0.3542260229587555, 0.025654122233390808, 0.26208770275115967, -0.22180365025997162, -0.12268880009651184, -0.5262134075164795, 0.3704371750354767, -0.3383263349533081, 0.015202704817056656, 0.017172478139400482, 0.19524379074573517, -0.06680477410554886, -0.1785031259059906, 0.35756081342697144, 0.4547002911567688, -0.2442062497138977, -0.2582961618900299, 0.29552286863327026, -0.15972279012203217, -0.12318067997694016, 0.07433192431926727, -0.14938433468341827, 0.17067214846611023, -0.08987199515104294, 0.21688203513622284, 0.27663564682006836, -0.5128607153892517, -0.19315163791179657, 0.21899446845054626, -0.0658634677529335, 0.12030357867479324, 0.215002179145813, -0.1089334636926651, 0.25717413425445557, 0.032343991100788116, 0.1714552342891693, 0.24912294745445251, -0.0669616088271141, 0.13188937306404114, -0.12882308661937714, -0.3734024465084076, -0.2232881337404251, 0.41819337010383606, -0.11705854535102844, -0.10012470930814743, 0.039520878344774246, 0.11094579845666885, 0.31648173928260803, -0.21626904606819153, 0.11428989470005035, 0.10268618911504745, 0.009692821651697159, 0.16046789288520813, -0.09972352534532547, -0.19435107707977295, -0.41217201948165894, 0.22484421730041504, 0.20312033593654633, 0.16966286301612854, -0.10979324579238892, -0.28771960735321045, -0.2113179862499237, 0.08966837078332901, -0.2728983759880066, -0.25799939036369324, 0.1885039061307907, -0.013822361826896667, 0.21805241703987122, -0.17332276701927185, -0.4588134288787842, 0.6513089537620544, -0.15039385855197906, 0.15413719415664673, -0.6131133437156677, 0.40513530373573303, 0.008170703426003456, -0.10907907038927078, 0.1410602331161499, 0.14650270342826843, -0.052010975778102875, -0.11224935203790665, 0.3472593128681183, 0.4005272686481476, -0.14578810334205627, 0.34908419847488403, 0.1631246656179428, 0.17265456914901733, 0.27952200174331665, -0.06434080004692078, 0.07827317714691162, -0.3349364697933197, 0.1309172660112381, 0.06622760742902756, -0.5445981621742249, 0.5499614477157593, 0.012388043105602264, 0.18284693360328674, 0.18250584602355957, -0.17670373618602753, 0.2602745592594147, -0.03626261651515961, -0.2688106298446655, -0.0854063481092453, 0.011190354824066162, 0.1777365356683731, 0.01842791587114334, -0.07451732456684113, -0.3935006558895111, 0.14618389308452606, 0.4971477687358856, -0.05008755624294281, 0.01243836060166359, 0.10692816227674484, -0.16141948103904724, -0.07600851356983185, 0.014389888383448124, 0.06019550934433937, 0.16553354263305664, 0.3591586947441101, -0.14340674877166748, 0.22531777620315552, 0.08002746850252151, -0.1749536246061325, 0.15605145692825317, 0.002011634409427643, 0.02127492055296898, 0.06825637072324753, 0.11271592974662781, -0.039129890501499176, -0.4556407034397125, -0.24911263585090637, -0.07706797122955322, 0.024326208978891373, -0.1365417093038559, -0.024199338629841805, -0.04915965348482132, 0.04692031443119049, -0.06269878894090652, 0.07427703589200974, -0.13738931715488434, -0.14843009412288666, 0.06776851415634155, 0.1688852310180664, -0.004837332293391228, 0.0267373938113451, 0.15921266376972198, 0.5289374589920044, -0.11734633892774582, -0.20950725674629211, -0.2554885149002075, -0.22042043507099152, 0.05675545707345009, 0.1652660220861435, 0.049975618720054626, 0.23432226479053497, 0.3415304124355316, -0.2991466522216797, 0.06886223703622818, -0.36361244320869446, -0.1455743908882141, 0.28854677081108093, -0.2803434729576111, 0.02755012735724449, 0.2925108075141907, 0.14399266242980957, 0.03970632702112198, -0.24512317776679993, 0.2195800542831421, -0.3082437217235565, -0.2091149091720581, -0.0887787789106369, -0.03600601106882095, -0.08379503339529037, -0.18371275067329407, -0.3916313350200653, -0.18786005675792694, -0.4589371979236603, 0.53890460729599, 0.4663078486919403, 0.17744220793247223, -0.20731429755687714, -0.07959017902612686, 0.21916362643241882, -0.2022935450077057, -0.020479904487729073, -0.1512550562620163, -0.4871990978717804, 0.12216180562973022, -0.24914436042308807, -0.185325026512146, 0.06515422463417053, 0.10593824088573456, 0.14999105036258698, -0.207411989569664, -0.37816691398620605, -0.4203132092952728, -0.05237627774477005, 0.21636903285980225, 0.02124773897230625, 0.2508291006088257, 0.3353705406188965, 0.030025208368897438, -0.15868543088436127, -0.021954629570245743, -0.20096799731254578, 0.02782858908176422, 0.11546052992343903, -0.12700897455215454, 0.07598260045051575, 0.30729034543037415, -0.04086552560329437, 0.42497533559799194, 0.31497636437416077, 0.09813815355300903, 0.23438778519630432, -0.08593504875898361, 0.46850404143333435, -0.27053067088127136, 0.052139654755592346, 0.05671549588441849, -0.08920475840568542, 0.04803714156150818, 0.40853142738342285, 0.18760409951210022, 0.12138188630342484, -0.24885110557079315, -0.0958583801984787, -0.08828474581241608, -0.24576599895954132, -0.019281817600131035, 0.051663193851709366, -0.1049015149474144, -0.20578067004680634, 0.000991087406873703, -0.17392611503601074, 0.0401989221572876, 0.02369629591703415, 0.25428658723831177, 0.049639225006103516, -0.005764491390436888, -0.43685832619667053, 0.15295177698135376, -0.6236146092414856, 0.11589515209197998, -0.03731580451130867, -0.1968604475259781, -0.010366272181272507, -0.1777193546295166, 0.08516182750463486, -0.37378576397895813, 0.6446441411972046, -0.10120522975921631, -0.0277118980884552, 0.03000626713037491, -0.12564826011657715, -0.329233318567276, 0.13109220564365387, -0.22636093199253082, 0.13510285317897797, -0.024332746863365173, 0.6613069772720337, -0.5513467788696289, -0.42582622170448303, 0.13670024275779724, -0.09221892058849335, -0.01717298850417137, -0.01925308257341385, -0.19323350489139557, -0.20929455757141113, -0.5375434160232544, 0.14526237547397614, 0.15108859539031982, 0.2049884796142578, -0.01384357176721096, 0.011786725372076035, 0.04490704834461212, 0.07577956467866898, 0.13755634427070618, 0.21977075934410095, 0.2476884126663208, 0.0849386677145958, -0.03783806413412094, 0.1079108938574791, 0.07403792440891266, 0.103845976293087, 0.7250839471817017, 0.07200519740581512, -0.39812830090522766, 0.06262247264385223, 0.06539799273014069, 0.3019274175167084, 0.39314866065979004, 0.19416388869285583, 0.25393810868263245, -0.151465505361557, 0.2912377715110779, -0.42223283648490906, 0.03104499913752079, 0.1026163101196289, -0.18082411587238312, -0.33236977458000183, -0.3413301110267639, 0.5574568510055542, -0.06140021234750748, -0.016576744616031647, -0.01675405353307724, 0.5466381907463074, -0.26173949241638184, 0.3136822581291199, 0.08989448100328445, 0.9752344489097595, -0.17184942960739136, 0.3556698262691498, 0.17967796325683594, -0.2921826243400574, 0.6531055569648743, -0.6680877208709717, -0.00549265556037426, -0.28968334197998047, -0.027487583458423615, -0.08818266540765762, 0.02172602340579033, -0.00032514333724975586, 0.18415269255638123, -0.4544879198074341, 0.19488734006881714, 0.09596629440784454, 0.20947794616222382, -0.058491744101047516, 0.34274643659591675, -0.3918573558330536, -0.502911388874054, -0.73223876953125, 0.24990129470825195, 0.1247456818819046, -0.14182333648204803, -0.1256994605064392, -0.08880957216024399, 0.08825118839740753, -0.12908384203910828, -0.16787177324295044, 0.22860661149024963, 0.17944975197315216, -0.12066960334777832, 0.2604033052921295, -0.02953413501381874, 0.07587116956710815, 0.17123539745807648, 0.3448719382286072, 0.17399920523166656, -0.24235597252845764, 0.24953489005565643, -0.24039381742477417, -0.10599714517593384, -0.12725506722927094, -0.08965315669775009, 0.179342120885849, -0.11733628809452057, -0.21198764443397522, 0.15553614497184753, -0.15846604108810425, -0.29979759454727173, -0.04372541606426239, 0.09734927862882614, 0.15761873126029968, -0.18351270258426666, -0.13749787211418152, 0.2172868400812149, 0.014870766550302505, -0.20314538478851318, 0.1723158359527588, 0.08080662041902542, -0.2988682985305786, -0.1613633930683136, 0.2594546973705292, -0.20230187475681305, -0.1366998255252838, 0.18191006779670715, -0.08264864236116409, -0.09462487697601318, 0.18469785153865814, 0.2544778883457184, -0.14667955040931702, -0.355948805809021, -0.10272569954395294, 0.660650372505188, -0.26382240653038025, 0.09161920845508575, 0.09416915476322174, -0.14354336261749268, 0.20350244641304016, 0.2335737645626068, 0.11017493903636932, -0.07418786734342575, -0.04531850665807724, -0.26862895488739014, -0.08915704488754272, 0.35553812980651855, 0.09480082988739014, 0.2530791163444519, 0.47720804810523987, -0.026794351637363434, -0.05495133996009827, 0.05950560420751572, -0.4523857533931732, 0.12261363863945007, -0.3754611909389496, 0.08558270335197449, 0.12218116968870163, -0.08584866672754288, 0.2715791165828705, -0.055156905204057693, 0.19215711951255798, 0.05264072120189667, -0.38313230872154236, -0.30009758472442627, -0.1218511164188385, 0.10948599874973297, 0.040361326187849045, 0.13553468883037567, -0.17954258620738983, 0.25065749883651733, -0.1507161408662796, -0.1588985174894333, 0.6140326857566833, 0.15385723114013672, -0.022236384451389313, -0.17238546907901764, 0.5115330219268799, 0.1631842851638794, -0.26253703236579895, -0.07434333115816116, 0.20280073583126068, 0.21395978331565857, -0.036049455404281616, 0.022766966372728348, -0.44113898277282715, -0.02946694940328598, 0.28264978528022766, 0.5032591819763184, 0.6109076738357544, 0.14743635058403015, 0.27428916096687317, -0.10156595706939697, -0.08015944063663483, 0.07996600866317749, 0.452383428812027, 0.3221074938774109, -0.11321962624788284, 0.00010837242007255554, 0.12744709849357605, 0.2873082458972931, -0.17925532162189484, -0.20111596584320068, 0.12542790174484253, -0.2020464986562729, 0.13672949373722076, 0.27695944905281067, 0.1977432370185852, 0.19695618748664856, -0.1571512073278427, 0.168420672416687, 0.6280953288078308, -0.1378515660762787, 0.16543111205101013, 0.06344657391309738, -0.0981825590133667, -0.1095879077911377, 0.14344187080860138, 0.2749587297439575, 0.25475412607192993, 0.23014642298221588, -0.22601383924484253, 0.389219731092453, 0.09541653841733932, 0.10537655651569366, 0.24011719226837158, -0.15168729424476624, -0.027624811977148056, 0.04845328629016876, 0.20208227634429932, 0.06394665688276291, -0.03627865016460419, 0.347794771194458, -0.0684606209397316, -0.18017709255218506, -0.21486720442771912, 0.19269394874572754, -0.009335748851299286, -0.17889314889907837, -0.063285231590271, -0.2475278079509735, -0.27604132890701294, 0.015296321362257004, -0.015464212745428085, -0.2622798681259155, 0.037456121295690536, -0.004628494381904602, 0.2723557949066162, -0.28865987062454224, 0.15356697142124176, -0.09813878685235977, 0.29380741715431213, -0.11488200724124908, 0.2377336025238037, -0.0213557630777359, -0.038424164056777954, 0.029775962233543396, 0.14641766250133514, 0.3518719971179962, 0.10693599283695221, -0.0038567353039979935, 0.15415459871292114, -0.12274980545043945, -0.041566453874111176, -0.002731679007411003, -0.10407522320747375, 0.07218829542398453, 0.05257365107536316, 0.17760398983955383, 0.31755831837654114, -0.24966692924499512, -0.048792604357004166, -0.08695952594280243, -0.11198991537094116, -0.23159420490264893, 0.17327982187271118, 0.07283799350261688, -0.0362527072429657, -0.10862550139427185, 0.12384924292564392, -0.4049077332019806, -0.24286197125911713, 0.1983795315027237, -0.09267236292362213, 0.08158956468105316, -0.047894883900880814, 0.17359040677547455, 0.17794151604175568, 0.5456631183624268, 0.23090115189552307, -0.040192797780036926, -0.07196471095085144, -0.1999036967754364, -0.3673076033592224, 0.06046459823846817, 0.05718821659684181, -0.15151649713516235, 0.044831838458776474, 0.2371828407049179, 0.2308926284313202, 0.25854337215423584, -0.3739625811576843, -0.05152655765414238, -0.05123667046427727, -0.07998138666152954, -0.22027042508125305, 0.055715031921863556, 0.12496218085289001, 0.02282646670937538, 0.15332216024398804, -0.14314571022987366, -0.0024283789098262787, -0.058172598481178284, 0.08213084191083908, 0.04854217544198036, 0.22773495316505432, 0.0027581732720136642, -0.5255429744720459, 0.20329123735427856, -0.1304532289505005, 0.09875304996967316, -0.20475447177886963, -0.10369327664375305, -0.2107742726802826, -0.19926348328590393, -0.37028414011001587, 0.14653687179088593, -0.21094633638858795, 0.15541604161262512, -0.1671401709318161, -0.21786566078662872, -0.09959477186203003, -0.13133272528648376, 0.11269265413284302, -0.022951599210500717, -0.1519007533788681, 0.006671516224741936, -0.060888923704624176, 0.11835253983736038, -0.03593815118074417, 0.2460879683494568, -0.00010886043310165405, -0.022290054708719254, -0.06919911503791809, -0.264686644077301, 0.49727481603622437, -0.2004089206457138, -0.2721043527126312, 0.005610864609479904, 0.10231121629476547, 0.11500675976276398, -0.11258553713560104, -0.551959216594696, 0.25453105568885803, 0.13671573996543884, -0.018474798649549484, -0.3389218747615814, 0.24572661519050598, -0.07262688875198364, -0.275226354598999, -0.29267144203186035, 0.04883980751037598, 0.12945212423801422, -0.22458410263061523, -0.1297084540128708, -0.4406535029411316 ]
https://github.com/huggingface/datasets/pull/2662
Load Dataset from the Hub (NO DATASET SCRIPT)
Baked this into the [docs](https://44335-250213286-gh.circle-artifacts.com/0/docs/_build/html/loading.html#hugging-face-hub) already, let me know if there is anything else I should add! :)
## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629
18
text: Load Dataset from the Hub (NO DATASET SCRIPT) ## Load the data from any Dataset repository on the Hub This PR adds support for loading datasets from any dataset repository on the hub, without requiring any dataset script. As a user it's now possible to create a repo and upload some csv/json/text/parquet files, and then be able to load the data in one line. Here is an example with the `allenai/c4` repository that contains a lot of compressed json lines files: ```python from datasets import load_dataset data_files = {"train": "en/c4-train.*.json.gz"} c4 = load_dataset("allenai/c4", data_files=data_files, split="train", streaming=True) print(c4.n_shards) # 1024 print(next(iter(c4))) # {'text': 'Beginners BBQ Class Takin...'} ``` By default it loads all the files, but as shown in the example you can choose the ones you want with unix style patterns. Of course it's still possible to use dataset scripts since they offer the most flexibility. ## Implementation details It uses `huggingface_hub` to list the files in a dataset repository. If you provide a path to a local directory instead of a repository name, it works the same way but it uses `glob`. Depending on the data files available, or passed in the `data_files` parameter, one of the available builders will be used among the csv, json, text and parquet builders. Because of this, it's not possible to load both csv and json files at once. In this case you have to load them separately and then concatenate the two datasets for example. ## TODO - [x] tests - [x] docs - [x] when huggingface_hub gets a new release, update the CI and the setup.py Close https://github.com/huggingface/datasets/issues/2629 Baked this into the [docs](https://44335-250213286-gh.circle-artifacts.com/0/docs/_build/html/loading.html#hugging-face-hub) already, let me know if there is anything else I should add! :)
[ -0.35135290026664734, -0.325231671333313, -0.07266667485237122, 0.16285128891468048, -0.03723040223121643, -0.06275371462106705, 0.075381800532341, 0.3301183581352234, 0.1567915827035904, 0.07383660972118378, -0.01588580198585987, 0.5021682977676392, -0.03794385865330696, 0.4586552679538727, 0.24806621670722961, -0.05548350512981415, 0.01718548685312271, 0.22584983706474304, 0.053858183324337006, 0.11233721673488617, 0.02916128933429718, 0.1841929852962494, -0.008011668920516968, 0.0519748255610466, -0.21014390885829926, -0.008330116048455238, -0.2013423889875412, 0.376746267080307, -0.26230913400650024, -0.49994152784347534, 0.31988078355789185, 0.3191216289997101, 0.005229942500591278, 0.1829829216003418, -0.00009978825255529955, 0.01113155484199524, 0.23767827451229095, -0.08275052905082703, -0.2545158267021179, -0.29123973846435547, 0.05636974424123764, -0.17414158582687378, 0.1616404503583908, -0.2919834852218628, -0.2594394385814667, -0.038671355694532394, 0.12362533062696457, 0.08885659277439117, 0.3800109624862671, 0.1496533751487732, 0.2529985308647156, 0.36548975110054016, 0.03615223243832588, -0.3095687925815582, 0.08424947410821915, 0.17859476804733276, -0.09059292823076248, 0.11999766528606415, 0.30275750160217285, 0.29412707686424255, 0.036953359842300415, 0.12186656892299652, -0.12080062180757523, -0.03138324245810509, 0.4388221502304077, 0.12091202288866043, -0.09040965884923935, -0.1611865609884262, 0.050874970853328705, 0.19924446940422058, 0.1554994434118271, -0.53838050365448, -0.2362939417362213, -0.3944042921066284, 0.15827667713165283, -0.3511432111263275, -0.04566570371389389, 0.3380777835845947, -0.20307551324367523, 0.1663908064365387, -0.17330817878246307, -0.3016250431537628, -0.19822615385055542, -0.12234613299369812, 0.017657756805419922, 0.2657723128795624, -0.1771438866853714, 0.03301040083169937, 0.01181551069021225, 0.03676242008805275, -0.011610795743763447, -0.20803755521774292, -0.11665613949298859, 0.16579222679138184, -0.13827872276306152, -0.20062747597694397, 0.20976349711418152, 0.3082748055458069, 0.42815113067626953, 0.37446773052215576, -0.044436872005462646, 0.23403272032737732, 0.028598055243492126, 0.2621789574623108, 0.2701762616634369, -0.1367887258529663, 0.18289540708065033, -0.08699779212474823, 0.22076913714408875, 0.21786968410015106, 0.17469149827957153, -0.075681172311306, -0.11881808191537857, 0.06648948788642883, -0.31080320477485657, -0.27311399579048157, 0.1322847306728363, -0.08307688683271408, -0.10570050030946732, -0.038001153618097305, 0.07321573048830032, 0.06856018304824829, 0.015133431181311607, 0.47263991832733154, -0.0928754061460495, 0.22073149681091309, -0.09700500220060349, 0.1850365698337555, -0.06885232776403427, -0.09007349610328674, -0.2831055521965027, 0.21933186054229736, -0.02346472069621086, 0.20704370737075806, 0.20319914817810059, -0.32728254795074463, 0.17730824649333954, 0.024465054273605347, 0.42284297943115234, 0.030411213636398315, -0.01527311746031046, -0.005612752865999937, -0.05196083337068558, 0.15738484263420105, 0.16082096099853516, -0.14842070639133453, 0.1702568531036377, -0.30821287631988525, -0.5099530220031738, 0.017055965960025787, -0.3521046042442322, -0.31399497389793396, 0.026158533990383148, 0.26405054330825806, -0.20561999082565308, -0.1089419424533844, -0.5244393348693848, 0.3541814684867859, -0.3234446048736572, 0.026199590414762497, 0.007922090590000153, 0.1910581886768341, -0.09846696257591248, -0.18351784348487854, 0.34550943970680237, 0.45016664266586304, -0.26078689098358154, -0.2502900958061218, 0.25837498903274536, -0.13009998202323914, -0.10168831795454025, 0.11010076105594635, -0.16200248897075653, 0.1390760838985443, -0.13071972131729126, 0.20920182764530182, 0.2787984609603882, -0.47405093908309937, -0.18452253937721252, 0.18502376973628998, -0.09736910462379456, 0.1380581110715866, 0.1838301718235016, -0.09570258110761642, 0.23541489243507385, 0.02473399229347706, 0.16576829552650452, 0.2573317885398865, -0.03391805291175842, 0.11655140668153763, -0.12987226247787476, -0.3094816505908966, -0.18642087280750275, 0.3603460490703583, -0.11889129877090454, -0.08273067325353622, 0.030722644180059433, 0.07330363243818283, 0.3326099216938019, -0.2007177472114563, 0.11595580726861954, 0.11253340542316437, 0.0639311671257019, 0.13568955659866333, -0.07441698759794235, -0.19168105721473694, -0.3691827952861786, 0.20946663618087769, 0.1672908067703247, 0.16874954104423523, -0.16112802922725677, -0.3181648254394531, -0.2279689908027649, 0.1170714721083641, -0.23001141846179962, -0.25388142466545105, 0.19175317883491516, 0.023559153079986572, 0.2528356611728668, -0.2080203890800476, -0.4215274155139923, 0.6546193957328796, -0.16380535066127777, 0.14630559086799622, -0.5329129099845886, 0.41804078221321106, -0.01728254370391369, -0.11408062279224396, 0.14063841104507446, 0.09809086471796036, -0.02808322012424469, -0.09893875569105148, 0.3407198488712311, 0.4041920006275177, -0.13819609582424164, 0.31171226501464844, 0.14220741391181946, 0.15384119749069214, 0.2912862300872803, -0.09526719152927399, 0.06747211515903473, -0.3061772286891937, 0.1261102259159088, 0.07343869656324387, -0.5604031085968018, 0.5806765556335449, 0.07418618351221085, 0.17672795057296753, 0.16813355684280396, -0.15915748476982117, 0.2499588429927826, -0.020731527358293533, -0.2462410181760788, -0.07571740448474884, -0.023389574140310287, 0.162256121635437, 0.07388895750045776, -0.08024931699037552, -0.38365691900253296, 0.17928501963615417, 0.5136080384254456, -0.05303383991122246, 0.010016042739152908, 0.11444009840488434, -0.17705661058425903, -0.08966998755931854, 0.021025724709033966, 0.09387587010860443, 0.2010221779346466, 0.3602067530155182, -0.12922029197216034, 0.21113558113574982, -0.0028159404173493385, -0.1723901480436325, 0.16766293346881866, 0.0034350529313087463, 0.0030317544005811214, 0.06332435458898544, 0.14640624821186066, -0.03386492654681206, -0.4770709276199341, -0.29700714349746704, -0.07759992778301239, 0.023688139393925667, -0.13495293259620667, 0.016056032851338387, -0.04132220521569252, 0.0027985908091068268, -0.03632394224405289, 0.16586638987064362, -0.12858213484287262, -0.17449121177196503, 0.08323629945516586, 0.17857341468334198, -0.006730038672685623, 0.043115608394145966, 0.1676538586616516, 0.5177900195121765, -0.1124032512307167, -0.1775358021259308, -0.3103565573692322, -0.236190065741539, 0.06184022128582001, 0.1657329797744751, 0.025784093886613846, 0.18192507326602936, 0.36416807770729065, -0.2915906310081482, 0.09544764459133148, -0.3848026692867279, -0.1726972460746765, 0.297055184841156, -0.2618931531906128, -0.038661837577819824, 0.2867826819419861, 0.17066644132137299, 0.0038277022540569305, -0.25741976499557495, 0.2543928623199463, -0.3496369421482086, -0.22082380950450897, -0.08375252038240433, -0.04958174377679825, -0.08370035886764526, -0.21265828609466553, -0.32312631607055664, -0.18347050249576569, -0.4837910234928131, 0.5280022025108337, 0.4993828237056732, 0.2037605494260788, -0.17823927104473114, -0.09778189659118652, 0.2287074327468872, -0.09868060052394867, 0.014717698097229004, -0.1853879690170288, -0.5117693543434143, 0.16882885992527008, -0.2765824496746063, -0.1547008454799652, 0.04777522757649422, 0.09073308855295181, 0.1580599844455719, -0.1493259221315384, -0.38425320386886597, -0.4278036057949066, -0.058449551463127136, 0.235950767993927, 0.014803413301706314, 0.2479075789451599, 0.3393101096153259, 0.05303024873137474, -0.16458429396152496, -0.013057742267847061, -0.14977099001407623, 0.021944209933280945, 0.14723742008209229, -0.12765496969223022, 0.0703834742307663, 0.29671570658683777, -0.016056150197982788, 0.423366904258728, 0.2797846794128418, 0.09279975295066833, 0.25298798084259033, -0.08484749495983124, 0.4617200791835785, -0.24557814002037048, 0.13385021686553955, 0.02324611134827137, -0.08513544499874115, 0.06210792809724808, 0.35473570227622986, 0.16530674695968628, 0.05899057537317276, -0.20753613114356995, -0.07465313374996185, -0.05867108330130577, -0.26243701577186584, -0.024359745904803276, 0.024136466905474663, -0.06378724426031113, -0.23983134329319, 0.001130480319261551, -0.1847899854183197, 0.03794129565358162, 0.09227532148361206, 0.23157304525375366, 0.03704547882080078, 0.014323237352073193, -0.47214770317077637, 0.11396811902523041, -0.5834510326385498, 0.17097918689250946, -0.026965418830513954, -0.2263186275959015, -0.029478255659341812, -0.19609293341636658, 0.09598533064126968, -0.406762033700943, 0.6119381189346313, -0.15008564293384552, -0.010266192257404327, 0.08062668144702911, -0.1363683044910431, -0.3596886396408081, 0.10824331641197205, -0.22303155064582825, 0.14408721029758453, -0.07000963389873505, 0.6971415281295776, -0.5715718269348145, -0.4347067177295685, 0.12717479467391968, -0.07444850355386734, -0.005193997174501419, 0.017067112028598785, -0.1692192256450653, -0.259615421295166, -0.5368091464042664, 0.16541911661624908, 0.16705308854579926, 0.23083700239658356, 0.0220849197357893, 0.02738190069794655, 0.01655321568250656, 0.0714881420135498, 0.11855506896972656, 0.2486703246831894, 0.2789945900440216, 0.10401264578104019, -0.08312571048736572, 0.1066504493355751, 0.07458671182394028, 0.08873362094163895, 0.7207847833633423, 0.11288027465343475, -0.385786235332489, 0.05803120508790016, 0.05312717333436012, 0.3036627769470215, 0.38589203357696533, 0.192569762468338, 0.2768290340900421, -0.20297139883041382, 0.2998371124267578, -0.43232518434524536, 0.09344799071550369, 0.04492925852537155, -0.19264444708824158, -0.3330767750740051, -0.34435898065567017, 0.5012033581733704, -0.022797103971242905, -0.013501964509487152, 0.0346609503030777, 0.4732571840286255, -0.25822219252586365, 0.3291025161743164, 0.08641575276851654, 0.9927999377250671, -0.17206747829914093, 0.3503248691558838, 0.16562870144844055, -0.31682485342025757, 0.6134729981422424, -0.6674103140830994, -0.014879923313856125, -0.33666759729385376, 0.02375216782093048, -0.09078845381736755, 0.022493179887533188, 0.005660954862833023, 0.20276103913784027, -0.45817458629608154, 0.17792408168315887, 0.03655988723039627, 0.15446235239505768, -0.07926199585199356, 0.35959771275520325, -0.3981061279773712, -0.5213151574134827, -0.7013896107673645, 0.268108993768692, 0.0953291803598404, -0.12318660318851471, -0.11201780289411545, -0.04328666254878044, 0.09565150737762451, -0.1552610546350479, -0.18671110272407532, 0.22807103395462036, 0.11870361864566803, -0.05704401433467865, 0.2596445679664612, -0.09004747122526169, 0.0328524224460125, 0.13146132230758667, 0.29038915038108826, 0.20069558918476105, -0.17326918244361877, 0.2667870819568634, -0.2209034562110901, -0.08822023123502731, -0.10140371322631836, -0.09479963779449463, 0.1841309368610382, -0.09777196496725082, -0.20854432880878448, 0.21500888466835022, -0.191183939576149, -0.3126984238624573, -0.007006600499153137, 0.07925195246934891, 0.13107150793075562, -0.10027951747179031, -0.08955028653144836, 0.18248124420642853, -0.022616185247898102, -0.21284662187099457, 0.18272839486598969, 0.08408795297145844, -0.29657554626464844, -0.18564128875732422, 0.2367277592420578, -0.19843488931655884, -0.11443124711513519, 0.1599143147468567, -0.09738226979970932, -0.060345739126205444, 0.16143667697906494, 0.24967317283153534, -0.1370886266231537, -0.37561529874801636, -0.08841165155172348, 0.5685047507286072, -0.25479018688201904, 0.1188458800315857, 0.12710179388523102, -0.17753350734710693, 0.18576042354106903, 0.26522260904312134, 0.08017997443675995, -0.0371851846575737, -0.0767844095826149, -0.29935336112976074, -0.0901467353105545, 0.30689454078674316, 0.11187434196472168, 0.2660348117351532, 0.5030412673950195, -0.02343427762389183, -0.06728889048099518, 0.06590086966753006, -0.4626952111721039, 0.09698023647069931, -0.38851532340049744, 0.11015738546848297, 0.03823835402727127, -0.08735058456659317, 0.280465304851532, -0.04145113378763199, 0.19544941186904907, 0.07893647253513336, -0.3590696156024933, -0.30759403109550476, -0.14975237846374512, 0.10267113149166107, 0.03845953196287155, 0.11035466194152832, -0.16119883954524994, 0.2622336745262146, -0.11939811706542969, -0.16553835570812225, 0.6346288323402405, 0.12395107001066208, -0.030554011464118958, -0.16998988389968872, 0.4489509165287018, 0.16034147143363953, -0.30425429344177246, -0.07179701328277588, 0.23693954944610596, 0.20646995306015015, -0.03592266887426376, 0.021301528438925743, -0.44883403182029724, -0.052899859845638275, 0.29585498571395874, 0.5222177505493164, 0.5646219849586487, 0.1274936944246292, 0.2689562141895294, -0.09096382558345795, -0.12337471544742584, 0.08376219123601913, 0.44252169132232666, 0.31944119930267334, -0.08259005844593048, -0.02171889878809452, 0.13378643989562988, 0.29087984561920166, -0.1775166094303131, -0.23785673081874847, 0.1000412106513977, -0.22111350297927856, 0.15897664427757263, 0.28837114572525024, 0.15153950452804565, 0.16756674647331238, -0.16589811444282532, 0.14134103059768677, 0.6764074563980103, -0.18152712285518646, 0.16726015508174896, 0.00781315192580223, -0.0968385636806488, -0.07682526111602783, 0.15046657621860504, 0.270370751619339, 0.27394697070121765, 0.16411182284355164, -0.16096532344818115, 0.3102100193500519, 0.10851883888244629, 0.07436617463827133, 0.23584425449371338, -0.14126724004745483, -0.03164084628224373, 0.017678558826446533, 0.21404847502708435, 0.08988425135612488, -0.0016599670052528381, 0.28787195682525635, -0.04357384890317917, -0.20823204517364502, -0.20806127786636353, 0.18291881680488586, -0.017409134656190872, -0.1686154007911682, -0.13339895009994507, -0.21097484230995178, -0.2906504273414612, 0.02774953469634056, 0.034145720303058624, -0.25527483224868774, 0.052364952862262726, 0.0004627704620361328, 0.32873642444610596, -0.2820594012737274, 0.1238873153924942, -0.10158627480268478, 0.3079531490802765, -0.14889948070049286, 0.2164357751607895, -0.026911213994026184, -0.05416898429393768, -0.014981221407651901, 0.03740556538105011, 0.34888339042663574, 0.05246937274932861, -0.041868578642606735, 0.15799586474895477, -0.17117998003959656, -0.02813236601650715, -0.0241810604929924, -0.15214742720127106, 0.09916020184755325, -0.007562987506389618, 0.19225381314754486, 0.3291088342666626, -0.26551303267478943, -0.02994236722588539, -0.08540160953998566, -0.09006115794181824, -0.19660837948322296, 0.16751164197921753, 0.0582767128944397, -0.06039486452937126, -0.09278303384780884, 0.10555600374937057, -0.3669198751449585, -0.2541729807853699, 0.22027717530727386, -0.09005668014287949, 0.07314345985651016, -0.04942956939339638, 0.17800922691822052, 0.17733603715896606, 0.569669246673584, 0.25964343547821045, -0.09721194952726364, -0.06283463537693024, -0.21710529923439026, -0.3533777594566345, 0.05143452063202858, 0.06630336493253708, -0.1783706396818161, 0.05121181905269623, 0.23642008006572723, 0.26903143525123596, 0.25898048281669617, -0.3556531071662903, -0.04472150653600693, -0.05208263918757439, -0.0892760306596756, -0.21973568201065063, 0.09538452327251434, 0.10938124358654022, -0.019951576367020607, 0.15312761068344116, -0.17270547151565552, -0.04548067972064018, -0.06396474689245224, 0.10300745815038681, 0.04624349623918533, 0.1321842223405838, 0.013681609183549881, -0.5196503400802612, 0.19892093539237976, -0.13496890664100647, 0.11212427914142609, -0.22031977772712708, -0.07149137556552887, -0.1906971037387848, -0.2090359479188919, -0.35673415660858154, 0.1816909909248352, -0.24421903491020203, 0.21556398272514343, -0.14489103853702545, -0.19879023730754852, -0.11584983766078949, -0.09147714823484421, 0.13299010694026947, -0.06297829747200012, -0.07605099678039551, 0.04759395867586136, -0.09709972888231277, 0.11960156261920929, -0.052021902054548264, 0.2550421953201294, 0.016927998512983322, -0.03967907279729843, -0.046352602541446686, -0.271074503660202, 0.511817216873169, -0.21437062323093414, -0.32734164595603943, 0.025188852101564407, 0.1257142722606659, 0.0850028395652771, -0.0953337624669075, -0.4800073206424713, 0.2265784740447998, 0.14076772332191467, -0.009458139538764954, -0.4026220738887787, 0.228609099984169, -0.034676261246204376, -0.25454580783843994, -0.2892955541610718, 0.10734546184539795, 0.0832485482096672, -0.22591961920261383, -0.16012118756771088, -0.43849778175354004 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
I make a summary about our discussion with @lewtun and @Narsil on the agreed schema for this dataset and the additional steps required to generate the 2D array labels: - The labels for this dataset are a 2D array: Given an example: ```python {"record_id": record_id, "file": file, "start": start, "end": end, "speakers": [...]} ``` the labels are a 2D array of shape `(num_frames, num_speakers)` where `num_frames = end - start` and `num_speakers = 2`. - In order to avoid a too large dataset (too large disk space), `datasets` does not store the 2D array label. Instead, we store a compact form: ``` "speakers": [ {"speaker_id": speaker_0_id, "start": start_0_speaker_0, "end": end_0_speaker_0}, {"speaker_id": speaker_0_id, "start": start_1_speaker_0, "end": end_1_speaker_0}, {"speaker_id": speaker_1_id, "start": start_0_speaker_1, "end": end_0_speaker_1}, ], ``` - Once loaded the dataset, an additional step is required to generate the 2D array label from this compact form - This additional step should be a modified version of the s3prl method `_get_labeled_speech`: - Original s3prl `_get_labeled_speech` includes 2 functionalities: reading the audio file and transforming it into an array, and generating the label 2D array; I think we should separate these 2 functionalities - Original s3prl `_get_labeled_speech` performs 2 steps to generate the labels: - Transform start/end seconds (float) into frame numbers (int): I have already done this step to generate the dataset - Generate the 2D array label from the frame numbers I also ping @osanseviero and @lhoestq to include them in the loop.
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
241
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun I make a summary about our discussion with @lewtun and @Narsil on the agreed schema for this dataset and the additional steps required to generate the 2D array labels: - The labels for this dataset are a 2D array: Given an example: ```python {"record_id": record_id, "file": file, "start": start, "end": end, "speakers": [...]} ``` the labels are a 2D array of shape `(num_frames, num_speakers)` where `num_frames = end - start` and `num_speakers = 2`. - In order to avoid a too large dataset (too large disk space), `datasets` does not store the 2D array label. Instead, we store a compact form: ``` "speakers": [ {"speaker_id": speaker_0_id, "start": start_0_speaker_0, "end": end_0_speaker_0}, {"speaker_id": speaker_0_id, "start": start_1_speaker_0, "end": end_1_speaker_0}, {"speaker_id": speaker_1_id, "start": start_0_speaker_1, "end": end_0_speaker_1}, ], ``` - Once loaded the dataset, an additional step is required to generate the 2D array label from this compact form - This additional step should be a modified version of the s3prl method `_get_labeled_speech`: - Original s3prl `_get_labeled_speech` includes 2 functionalities: reading the audio file and transforming it into an array, and generating the label 2D array; I think we should separate these 2 functionalities - Original s3prl `_get_labeled_speech` performs 2 steps to generate the labels: - Transform start/end seconds (float) into frame numbers (int): I have already done this step to generate the dataset - Generate the 2D array label from the frame numbers I also ping @osanseviero and @lhoestq to include them in the loop.
[ -0.0021202154457569122, -0.13872312009334564, -0.10902819037437439, 0.16144725680351257, 0.5055675506591797, -0.17710232734680176, 0.2048051953315735, -0.19811610877513885, 0.17216846346855164, 0.36901652812957764, -0.24921178817749023, 0.38163983821868896, -0.2632973790168762, 0.3098895847797394, 0.15532921254634857, -0.03545599430799484, 0.062186963856220245, 0.29957807064056396, -0.1887511909008026, -0.11691159009933472, -0.23584473133087158, 0.009576776996254921, -0.15747961401939392, -0.28818994760513306, -0.1324544996023178, 0.23626993596553802, 0.19918763637542725, 0.028579168021678925, -0.3704855144023895, -0.43116921186447144, 0.15094174444675446, 0.30837947130203247, -0.00849691592156887, 0.20577839016914368, -0.0001081623777281493, -0.25995072722435, 0.23631790280342102, -0.3526599109172821, -0.38674065470695496, 0.0865136906504631, -0.08953285217285156, -0.02605833113193512, -0.2745239734649658, -0.3402979373931885, -0.40734896063804626, -0.29331591725349426, -0.10424908995628357, -0.053984135389328, 0.12303514033555984, -0.13726657629013062, 0.24416270852088928, -0.1721772998571396, 0.14584243297576904, -0.15702968835830688, 0.21382096409797668, 0.1701730191707611, -0.18587903678417206, -0.05727001652121544, 0.024576015770435333, -0.07515126466751099, 0.06696688383817673, 0.5470438003540039, -0.3114360272884369, -0.1522674411535263, 0.6094111800193787, -0.2839409410953522, 0.05576019361615181, -0.08728945255279541, 0.06994500756263733, 0.16102242469787598, 0.5440587401390076, -0.2515243887901306, -0.3138333261013031, 0.011214211583137512, -0.1108541265130043, -0.06465992331504822, -0.23908674716949463, -0.08846014738082886, -0.08385103940963745, -0.10739491879940033, -0.31000998616218567, -0.053924210369586945, -0.06998418271541595, -0.18751715123653412, 0.02115698903799057, 0.4621903598308563, -0.1534571796655655, -0.1311805546283722, 0.18399591743946075, -0.15726839005947113, -0.2501881420612335, 0.2781163454055786, 0.19569222629070282, 0.028134804219007492, -0.10754433274269104, -0.1414497196674347, 0.4734417200088501, -0.5141595005989075, -0.05019116401672363, -0.1607336401939392, 0.3060153126716614, -0.14831498265266418, 0.3429946005344391, 0.030646663159132004, -0.00012516416609287262, 0.315382182598114, 0.2128620147705078, -0.07704927027225494, -0.19014665484428406, 0.19997286796569824, 0.2846826910972595, 0.05320390686392784, -0.3666284382343292, -0.018170882016420364, -0.009885668754577637, 0.08151190727949142, 0.040104322135448456, -0.10448041558265686, -0.3076038956642151, 0.2644878923892975, -0.027009887620806694, 0.06470321118831635, 0.13097847998142242, 0.3900749385356903, 0.004266927018761635, 0.05455588549375534, -0.11312747746706009, 0.046066269278526306, -0.10710348188877106, 0.4993763864040375, -0.22874480485916138, 0.2265487015247345, -0.16974222660064697, -0.11550747603178024, 0.12786433100700378, 0.062252696603536606, 0.14699675142765045, -0.12436367571353912, 0.19601759314537048, -0.05309420824050903, -0.4419361650943756, 0.0608961246907711, 0.43174028396606445, 0.23417247831821442, 0.128453329205513, 0.08954663574695587, -0.2577376961708069, -0.12085296958684921, -0.2887648642063141, 0.11878817528486252, 0.2281336486339569, -0.27375251054763794, -0.1835213154554367, 0.2889867126941681, -0.1773943305015564, -0.14895592629909515, -0.09405618160963058, 0.0024020299315452576, 0.07801225036382675, -0.16289903223514557, 0.15825499594211578, -0.27495819330215454, -0.18923600018024445, -0.025804081931710243, 0.2883177399635315, 0.02233138680458069, -0.2394641488790512, -0.10305958241224289, 0.05906723067164421, 0.017422623932361603, 0.3509928584098816, 0.07990483939647675, 0.07021189481019974, 0.07750077545642853, 0.08583156764507294, 0.211833193898201, -0.17238399386405945, -0.5774048566818237, -0.36627456545829773, -0.05505591258406639, -0.05853014066815376, 0.21359798312187195, 0.36064526438713074, 0.10472917556762695, 0.5552895069122314, -0.2729718089103699, 0.1364796906709671, 0.10368870198726654, 0.14713799953460693, 0.0018238667398691177, -0.21398383378982544, -0.05882629007101059, 0.258294939994812, 0.20824669301509857, -0.02520979568362236, -0.14780700206756592, -0.048245348036289215, 0.7805439233779907, 0.201241135597229, -0.16322536766529083, 0.11988472193479538, 0.08962132036685944, 0.40367698669433594, -0.12273596227169037, 0.013232346624135971, -0.14816194772720337, -0.18566569685935974, -0.04201529175043106, 0.35948818922042847, 0.34493133425712585, 0.0641317069530487, -0.2713831067085266, -0.23420464992523193, 0.006321722641587257, -0.11743585765361786, -0.12128537893295288, 0.26266542077064514, -0.05450478196144104, 0.30897507071495056, -0.3744041323661804, -0.036573708057403564, -0.4811912178993225, -0.31001219153404236, -0.24654710292816162, 0.05541744455695152, -0.005077006295323372, -0.09584849327802658, 0.016996189951896667, 0.12084613740444183, 0.6243349313735962, 0.02608579769730568, 0.11511580646038055, 0.07693050056695938, 0.22821301221847534, 0.04964021220803261, 0.09420650452375412, -0.11799243837594986, 0.5542626976966858, -0.15926393866539001, -0.4144217371940613, 0.16429927945137024, -0.03559011593461037, 0.24106281995773315, -0.005742412060499191, -0.043637774884700775, 0.09834198653697968, -0.2647332549095154, 0.08010019361972809, 0.09569424390792847, -0.30074089765548706, 0.2056998759508133, 0.028727766126394272, -0.1699051856994629, -0.21649326384067535, 0.03753044083714485, -0.2470799833536148, 0.14674173295497894, 0.22338950634002686, -0.22988420724868774, 0.26755261421203613, 0.3965427875518799, -0.045729149132966995, -0.02408553659915924, 0.06223008781671524, 0.01902180165052414, -0.2838398516178131, 0.013613017275929451, 0.018185917288064957, -0.04808305203914642, 0.3155563175678253, 0.34657856822013855, -0.04260857403278351, -0.18858493864536285, -0.1452323943376541, 0.2703832685947418, 0.07301080971956253, 0.03976427763700485, 0.35552778840065, 0.10537676513195038, 0.08147622644901276, -0.3745099604129791, -0.1504208892583847, -0.08665158599615097, 0.013115176931023598, -0.08801983296871185, -0.409505158662796, 0.14276757836341858, -0.5294293761253357, 0.05314379930496216, -0.4552585184574127, 0.12710388004779816, -0.04587274789810181, 0.21910469233989716, 0.08996568620204926, -0.3442360758781433, 0.25431686639785767, 0.32219013571739197, 0.2916174530982971, -0.016731716692447662, 0.05410140007734299, -0.16580218076705933, -0.2501121461391449, 0.18696430325508118, 0.18113112449645996, -0.0075040278024971485, -0.09625868499279022, 0.17847579717636108, 0.004050269722938538, 0.19601503014564514, -0.1505114585161209, -0.30896028876304626, 0.1623501181602478, -0.11673405766487122, 0.12875427305698395, 0.24665477871894836, 0.04689634218811989, 0.09091457724571228, -0.20127838850021362, 0.05802806094288826, -0.18190103769302368, -0.17566682398319244, 0.012519381940364838, -0.035943467170000076, -0.20010153949260712, -0.4688761532306671, -0.30370455980300903, 0.019576549530029297, -0.4808461666107178, -0.0075231269001960754, -0.18103787302970886, 0.2904442548751831, 0.1645009070634842, -0.13961102068424225, 0.03858916461467743, 0.15945026278495789, 0.4168837368488312, -0.2995201051235199, -0.0791572853922844, 0.13515368103981018, -0.08445582538843155, -0.11605629324913025, -0.2519340217113495, -0.06564825773239136, 0.3727448284626007, -0.08060988038778305, -0.23686161637306213, -0.2743804156780243, 0.04184483364224434, -0.32022714614868164, -0.023317202925682068, -0.022502588108181953, 0.24539418518543243, 0.17970874905586243, -0.2175484001636505, -0.3015831708908081, -0.2783049941062927, 0.0947369635105133, 0.3760378956794739, 0.014941282570362091, -0.3230929672718048, 0.16572046279907227, 0.1168833076953888, 0.2323361039161682, 0.044654060155153275, 0.0368221141397953, 0.16775062680244446, 0.2492567002773285, 0.3183659017086029, -0.011722356081008911, -0.08143366128206253, 0.5332256555557251, 0.15109653770923615, -0.27983683347702026, 0.31060996651649475, 0.03164904564619064, -0.1203443631529808, 0.0732416883111, 0.32984793186187744, -0.42828619480133057, 0.08919556438922882, -0.041545428335666656, 0.09505210816860199, -0.04502115398645401, 0.000342782586812973, 0.20985198020935059, 0.10452084243297577, 0.028980974107980728, -0.0023509543389081955, 0.0751686841249466, 0.39598897099494934, 0.04263627156615257, -0.26075589656829834, -0.13377027213573456, -0.34356266260147095, 0.015827201306819916, 0.24407437443733215, 0.2878018319606781, -0.21289074420928955, -0.36586636304855347, 0.04070315137505531, -0.10509153455495834, 0.39520978927612305, -0.26768237352371216, 0.18159706890583038, 0.22282421588897705, 0.2246767282485962, -0.29576557874679565, -0.10541751980781555, -0.19479037821292877, -0.12893377244472504, 0.11280898749828339, 0.015147615224123001, -0.41627830266952515, -0.11712780594825745, 0.2899233102798462, -0.05340282618999481, 0.03772197291254997, -0.053189899772405624, -0.22348818182945251, -0.6032649278640747, 0.03806443512439728, 0.1660001128911972, 0.2663649618625641, 0.4290477931499481, -0.08214336633682251, -0.05574711412191391, 0.19626788794994354, -0.005682904273271561, 0.09633436053991318, 0.0928371399641037, 0.3204263746738434, 0.2742055356502533, 0.13358189165592194, 0.011632127687335014, 0.00817916914820671, 0.40664562582969666, 0.33251169323921204, -0.10312619805335999, 0.21017661690711975, 0.3336919844150543, -0.11785446107387543, 0.34853124618530273, 0.2223491370677948, 0.18648463487625122, -0.02452375739812851, -0.13408595323562622, 0.12750157713890076, -0.7244210839271545, 0.26313045620918274, 0.08859865367412567, -0.06170805171132088, -0.05904769524931908, -0.46510544419288635, 0.24442902207374573, 0.09961983561515808, -0.11429005116224289, -0.005642436444759369, 0.04574255645275116, -0.2809394896030426, 0.2517967224121094, 0.2989374101161957, 0.9993915557861328, -0.1440211683511734, 0.05416366830468178, 0.19715330004692078, -0.304452121257782, 0.1815028190612793, -0.23288995027542114, 0.12717589735984802, -0.06961364299058914, -0.03617684170603752, 0.04442819207906723, 0.07977552711963654, -0.10728869587182999, 0.03364291787147522, -0.12460792064666748, 0.1379803717136383, 0.08481819927692413, 0.04622505232691765, 0.0013588238507509232, -0.04523388668894768, 0.1470189392566681, -0.2508222460746765, -0.18657636642456055, 0.10124924778938293, -0.09493441879749298, -0.010875280946493149, -0.19036290049552917, -0.07754198461771011, 0.05492032691836357, -0.2227783352136612, -0.10196352750062943, 0.1501886248588562, 0.21852585673332214, -0.22791118919849396, -0.003927074372768402, -0.2586541473865509, -0.03194798529148102, 0.09960943460464478, -0.2033536285161972, 0.18774819374084473, -0.04689185321331024, 0.006608806550502777, 0.11225484311580658, 0.4036138951778412, 0.13451799750328064, 0.05485423654317856, 0.2947845757007599, -0.029593991115689278, 0.2677379250526428, -0.149867445230484, 0.13124822080135345, 0.04136398434638977, -0.39210397005081177, 0.03157704323530197, 0.07334361970424652, -0.1415829062461853, -0.04818624630570412, 0.2046474814414978, -0.2070213258266449, -0.2747623026371002, 0.18750181794166565, -0.10041461884975433, -0.37028732895851135, 0.29879388213157654, -0.09142568707466125, -0.25255173444747925, -0.06831806898117065, 0.28472355008125305, 0.19022205471992493, -0.1712326556444168, -0.042745038866996765, -0.1432112604379654, -0.2821540832519531, -0.33123472332954407, -0.4200441837310791, -0.14516253769397736, -0.28880932927131653, 0.06026725843548775, 0.05178504064679146, -0.3586025834083557, 0.055137500166893005, 0.19763506948947906, 0.13978581130504608, 0.10016034543514252, -0.12132808566093445, 0.09736117720603943, -0.04360932856798172, 0.30870962142944336, -0.03530149534344673, 0.3998367190361023, -0.08829303830862045, 0.3477729260921478, -0.1793268471956253, 0.13050563633441925, -0.45140790939331055, -0.08447135239839554, -0.5265766382217407, 0.2756161689758301, -0.09215125441551208, -0.1851668655872345, -0.0058775898069143295, -0.22920161485671997, 0.26735058426856995, -0.12623019516468048, -0.2791815400123596, -0.2187231481075287, -0.04190149903297424, 0.10158398002386093, 0.14028117060661316, -0.009672069922089577, -0.15129093825817108, 0.19943398237228394, -0.3191830813884735, -0.14240270853042603, 0.30101287364959717, 0.30547887086868286, 0.00843275710940361, 0.28450584411621094, -0.18835991621017456, 0.19528520107269287, 0.12388195097446442, -0.053666599094867706, 0.09640437364578247, 0.22594697773456573, 0.0558667816221714, 0.180294468998909, 0.02456607297062874, -0.06517501175403595, 0.05519990995526314, 0.14678284525871277, 0.19561855494976044, -0.12767350673675537, 0.25634583830833435, -0.03149190545082092, 0.009836629033088684, 0.21911339461803436, 0.8076775074005127, -0.09998221695423126, -0.1259341984987259, -0.564836323261261, 0.02999529056251049, 0.3881828784942627, -0.21889396011829376, -0.16749773919582367, -0.3633655309677124, 0.01249170396476984, 0.16836027801036835, 0.35206857323646545, 0.19701948761940002, -0.010791637003421783, -0.12224113941192627, 0.034902822226285934, 0.1828695684671402, 0.027904052287340164, 0.000539049506187439, 0.1246633380651474, -0.117068812251091, -0.036043163388967514, 0.22031269967556, -0.15436019003391266, 0.17881861329078674, 0.6298640966415405, 0.2135918140411377, 0.6705126166343689, 0.4277176558971405, 0.4130253493785858, -0.15677288174629211, 0.11077068746089935, -0.07355035841464996, 0.3280126452445984, -0.057565540075302124, 0.3793610632419586, -0.2187492847442627, 0.26845893263816833, -0.17423532903194427, 0.04027027636766434, -0.09275636821985245, 0.07679437100887299, -0.4209255874156952, -0.15282556414604187, 0.027562342584133148, -0.3385792076587677, 0.07981900870800018, -0.00019478797912597656, -0.07775001227855682, 0.1722230315208435, 0.13410867750644684, -0.280451238155365, 0.018911994993686676, -0.008904987946152687, -0.16392546892166138, 0.17458155751228333, 0.3404788374900818, -0.326891154050827, 0.3285423517227173, 0.6196491122245789, -0.06249362230300903, -0.004572175443172455, 0.46689271926879883, 0.3576444089412689, 0.21356269717216492, -0.18207421898841858, -0.20392794907093048, 0.16895653307437897, -0.0959816575050354, -0.19667388498783112, 0.2915591597557068, 0.2030310332775116, 0.034842122346162796, 0.27092692255973816, 0.2142373025417328, -0.26805758476257324, 0.2061636745929718, 0.1518000215291977, 0.03171328827738762, 0.09841547906398773, 0.2578687071800232, -0.10528381168842316, -0.05184313282370567, 0.07734093815088272, 0.20205438137054443, -0.7000806927680969, -0.4748154580593109, 0.05390327796339989, -0.0920238047838211, 0.3139248788356781, -0.30521565675735474, 0.12787939608097076, 0.09167154133319855, 0.5361687541007996, 0.09355566650629044, 0.11700958013534546, -0.07640774548053741, -0.12253770232200623, -0.3928840458393097, 0.032133981585502625, 0.20220014452934265, -0.007330760359764099, -0.07404040545225143, 0.32429245114326477, 0.1338122934103012, -0.02469461038708687, -0.3389178514480591, 0.08555714040994644, -0.10688180476427078, 0.2518787980079651, -0.27756965160369873, 0.5151327848434448, 0.11436979472637177, -0.02936236374080181, 0.018561366945505142, -0.22705373167991638, -0.06428249180316925, -0.32004350423812866, 0.14270055294036865, -0.02575637772679329, 0.4728900194168091, 0.06783232092857361, 0.2878487706184387, 0.06499078869819641, -0.1274653673171997, 0.46948692202568054, -0.3125747740268707, -0.11949514597654343, 0.15903538465499878, -0.08757796883583069, -0.16294929385185242, -0.1369631588459015, -0.19511859118938446, 0.4079606533050537, 0.11781350523233414, 0.10869850218296051, 0.001784230349585414, -0.0034294137731194496, -0.0383291020989418, 0.4413169324398041, -0.31145623326301575, 0.22265030443668365, -0.4100562036037445, -0.09900902211666107, -0.14012832939624786, 0.08778616786003113, 0.2891484200954437, 0.08992639183998108, -0.5009223818778992, -0.7129462957382202, 0.5082547664642334, 0.4279487431049347, -0.2851545512676239, -0.20781905949115753, 0.2507990598678589, 0.189170241355896, 0.01726621203124523, -0.6666264533996582, 0.144834965467453, 0.09955810010433197, 0.16363763809204102, -0.165169358253479, 0.4813295304775238, -0.29303979873657227, -0.24538525938987732, -0.10087382793426514, -0.07122571766376495, 0.06619065254926682, -0.15172983705997467, -0.051585957407951355, -0.4088875651359558 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
Here I would like to discuss (and agree) one of the decisions I made, as I'm not completely satisfied with it: to transform the seconds (float) into frame numbers (int) to generate this dataset. - A priori, the most natural and general choice would be to preserve the seconds (float), because: - this is the way the raw data comes from - the transformation into frame numbers depends on the sample rate, frame_shift and subsampling However, I finally decided to transform seconds into frame numbers because: - for SUPERB, sampling rate, frame_shift and subsampling are fixed (`rate = 16_000`, `frame_shift = 160`, `subsampling = 1`) - it makes easier the post-processing, as labels are generated from sample numbers: labels are a 2D array of shape `(num_frames, num_speakers)` - the number of examples depends on the number of frames: - if an example has more than 2_000 frames, then it is split into 2 examples. This is the case for `record_id = "7859-102521-0017_3983-5371-0014"`, which has 2_452 frames and it is split into 2 examples: ``` {"record_id": "7859-102521-0017_3983-5371-0014", "start"= 0, "end": 2_000,...}, {"record_id": "7859-102521-0017_3983-5371-0014", "start"= 2_000, "end": 2_452,...}, ``` As I told you, I'm not totally convinced of this decision, and I would really appreciate your opinion. cc: @lewtun @Narsil @osanseviero @lhoestq
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
210
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun Here I would like to discuss (and agree) one of the decisions I made, as I'm not completely satisfied with it: to transform the seconds (float) into frame numbers (int) to generate this dataset. - A priori, the most natural and general choice would be to preserve the seconds (float), because: - this is the way the raw data comes from - the transformation into frame numbers depends on the sample rate, frame_shift and subsampling However, I finally decided to transform seconds into frame numbers because: - for SUPERB, sampling rate, frame_shift and subsampling are fixed (`rate = 16_000`, `frame_shift = 160`, `subsampling = 1`) - it makes easier the post-processing, as labels are generated from sample numbers: labels are a 2D array of shape `(num_frames, num_speakers)` - the number of examples depends on the number of frames: - if an example has more than 2_000 frames, then it is split into 2 examples. This is the case for `record_id = "7859-102521-0017_3983-5371-0014"`, which has 2_452 frames and it is split into 2 examples: ``` {"record_id": "7859-102521-0017_3983-5371-0014", "start"= 0, "end": 2_000,...}, {"record_id": "7859-102521-0017_3983-5371-0014", "start"= 2_000, "end": 2_452,...}, ``` As I told you, I'm not totally convinced of this decision, and I would really appreciate your opinion. cc: @lewtun @Narsil @osanseviero @lhoestq
[ -0.10800924897193909, -0.17973704636096954, -0.049715086817741394, 0.014052759855985641, 0.3875166177749634, -0.3736334443092346, 0.1903880089521408, -0.06985831260681152, -0.15098369121551514, 0.30861055850982666, -0.04369375854730606, 0.37898942828178406, -0.293010413646698, 0.2332393378019333, 0.0419824980199337, -0.17980147898197174, 0.2506489157676697, 0.18620611727237701, -0.15985579788684845, 0.14158673584461212, -0.36059755086898804, -0.14616774022579193, -0.08214960992336273, -0.27370375394821167, -0.15652796626091003, 0.4510853886604309, 0.28005045652389526, -0.16886109113693237, -0.3450792133808136, -0.2622915506362915, -0.1367701143026352, 0.32320040464401245, 0.4178020656108856, 0.32907846570014954, -0.00011919473763555288, -0.33377575874328613, 0.29694288969039917, -0.29890111088752747, -0.3960815370082855, 0.09675729274749756, -0.18572017550468445, 0.06727379560470581, -0.26188141107559204, -0.26398128271102905, -0.49211061000823975, -0.14950214326381683, -0.22596292197704315, -0.37171420454978943, 0.16013124585151672, 0.1431904137134552, 0.12088502943515778, -0.1648496836423874, -0.18521206080913544, 0.00193838553968817, 0.16973020136356354, 0.3409653902053833, -0.13427790999412537, 0.13823376595973969, 0.32606327533721924, 0.24911370873451233, 0.2007792592048645, 0.4403591454029083, -0.2728143036365509, -0.4014168679714203, 0.8019969463348389, -0.3199031949043274, 0.10152486711740494, -0.23086783289909363, 0.052473075687885284, 0.15438857674598694, 0.29138967394828796, -0.09216270595788956, -0.3829302191734314, 0.04192453622817993, -0.05343133956193924, -0.1358507126569748, -0.2960878014564514, -0.07460497319698334, 0.146836057305336, -0.047382768243551254, -0.2549411654472351, 0.004987373948097229, -0.03581155464053154, -0.2748916745185852, -0.07585728913545609, 0.3795498013496399, -0.11847957968711853, -0.02544742077589035, 0.06204758584499359, -0.05278875678777695, -0.3864850103855133, 0.2884538769721985, 0.2074851542711258, -0.12093734741210938, 0.2242739349603653, -0.23077458143234253, 0.13699129223823547, -0.28092676401138306, -0.1861668825149536, -0.022003214806318283, 0.01632753759622574, -0.15899962186813354, 0.32287001609802246, -0.29197221994400024, 0.05908627808094025, 0.34568315744400024, 0.33013296127319336, 0.021069835871458054, -0.17306704819202423, 0.20254163444042206, 0.25941115617752075, 0.0681709498167038, -0.2786942422389984, 0.0318780317902565, -0.2721831202507019, 0.32827475666999817, -0.007272586226463318, -0.22391937673091888, -0.1807183027267456, 0.20478715002536774, -0.07147589325904846, -0.14868777990341187, 0.17334546148777008, 0.2291666567325592, -0.07272865623235703, 0.042775992304086685, -0.014605717733502388, 0.3653658628463745, -0.12836147844791412, 0.1812962293624878, -0.12614929676055908, 0.15115299820899963, -0.25323301553726196, -0.0897156149148941, 0.023606348782777786, -0.09607574343681335, 0.06022237241268158, 0.09666629880666733, -0.00825953483581543, -0.12002434581518173, -0.3640488088130951, 0.05610796436667442, 0.3233945369720459, 0.15021978318691254, -0.07122339308261871, 0.14273497462272644, -0.2587955594062805, -0.049605078995227814, -0.2668452262878418, 0.4677366316318512, 0.20666640996932983, -0.31180477142333984, -0.23968447744846344, 0.13421234488487244, -0.2673395872116089, -0.139773428440094, -0.10372079163789749, 0.28294607996940613, 0.3561457097530365, -0.3315468728542328, 0.35603323578834534, -0.4368804097175598, -0.27331405878067017, -0.03552411124110222, 0.26313427090644836, 0.04938711225986481, -0.16056741774082184, -0.0401943139731884, 0.10837618261575699, 0.031524498015642166, 0.5876784920692444, -0.0720960944890976, 0.06107434257864952, 0.11908857524394989, 0.13980510830879211, 0.23614029586315155, -0.2403477430343628, -0.5044773817062378, 0.05260099470615387, 0.029680311679840088, -0.04453805088996887, 0.15816675126552582, 0.23379531502723694, 0.04995967820286751, 0.7133692502975464, -0.5866404175758362, 0.11555060744285583, -0.01840813457965851, -0.08077167719602585, -0.005342567339539528, -0.09541017562150955, 0.0053734369575977325, 0.5352628231048584, 0.16743314266204834, 0.08368736505508423, 0.12497465312480927, -0.10653886944055557, 0.773106575012207, 0.018420588225126266, -0.09830930829048157, 0.1206117495894432, -0.1506759077310562, 0.12288159132003784, -0.06007105112075806, 0.05111274495720863, -0.030728686600923538, 0.08363375067710876, -0.1977211833000183, 0.2920694053173065, 0.5362961292266846, 0.11699812114238739, -0.2782386243343353, -0.09782519191503525, -0.08058323711156845, 0.19415326416492462, -0.025047779083251953, 0.10357195138931274, -0.20580962300300598, 0.21655955910682678, -0.23787584900856018, -0.01069789007306099, -0.3442773222923279, -0.36723262071609497, -0.09015727043151855, -0.06638658046722412, -0.043892644345760345, 0.10149180889129639, -0.03092547506093979, 0.037592075765132904, 0.5004329085350037, 0.19456088542938232, 0.02571256272494793, -0.050518959760665894, 0.11381272226572037, 0.0950956717133522, 0.33985066413879395, -0.32917121052742004, 0.6131224632263184, 0.2846252918243408, -0.4660252034664154, 0.45356544852256775, -0.05855059251189232, 0.0681159496307373, -0.04985993355512619, -0.015231013298034668, 0.17801430821418762, -0.48970893025398254, 0.20239809155464172, -0.1283910870552063, -0.36497437953948975, 0.02214776910841465, 0.07206691801548004, -0.5595910549163818, -0.15221475064754486, -0.0676359236240387, -0.05906795337796211, -0.02381816878914833, 0.2920907139778137, -0.17009274661540985, 0.4706531763076782, 0.2706921398639679, -0.2312098741531372, -0.2564016282558441, 0.24709519743919373, 0.10157392174005508, -0.404259592294693, 0.10599957406520844, -0.020045064389705658, 0.18021103739738464, 0.1444760113954544, 0.33874934911727905, -0.15846702456474304, -0.23418501019477844, -0.18590295314788818, 0.34298014640808105, 0.2520916759967804, -0.05588431656360626, 0.2500022053718567, -0.08701419085264206, 0.2299991250038147, -0.16056203842163086, 0.0833844393491745, -0.15421046316623688, -0.13918405771255493, -0.18155889213085175, -0.14994116127490997, 0.07354968786239624, -0.4670194685459137, 0.09453459829092026, -0.37591996788978577, 0.2244255244731903, -0.07387858629226685, 0.19360147416591644, -0.0722164511680603, -0.30916160345077515, 0.195870041847229, 0.33921653032302856, 0.2389748990535736, -0.25869882106781006, 0.04550991952419281, -0.21933534741401672, -0.20136378705501556, 0.02693120762705803, 0.06456297636032104, -0.035118039697408676, -0.0343254953622818, 0.3362598419189453, -0.16364768147468567, 0.09148900210857391, -0.15561366081237793, -0.35986390709877014, 0.07388357818126678, -0.19355988502502441, 0.464976966381073, 0.10074475407600403, 0.1025967076420784, 0.031816065311431885, 0.06255830824375153, -0.00558637036010623, -0.03144416585564613, 0.013778353109955788, -0.04114459082484245, -0.23380523920059204, 0.07410287111997604, -0.38100388646125793, -0.30409595370292664, -0.024754507467150688, -0.3436245024204254, -0.20192252099514008, -0.07858043909072876, 0.02747413143515587, -0.05669921636581421, -0.018834494054317474, -0.1186542809009552, 0.39152905344963074, 0.4764995872974396, -0.3274520933628082, 0.11432553827762604, 0.09106846153736115, -0.11609766632318497, -0.10655678808689117, -0.3170957863330841, -0.006653653457760811, 0.04066808521747589, -0.05833916366100311, -0.1634463667869568, -0.24024756252765656, 0.14632615447044373, -0.3629918098449707, -0.07527435570955276, -0.03780946135520935, 0.2943236231803894, 0.09307140856981277, -0.05494870990514755, -0.1785624921321869, -0.17613060772418976, 0.1576482355594635, 0.43510711193084717, 0.2477419674396515, 0.020567286759614944, 0.43030932545661926, 0.04060067608952522, 0.4736172556877136, 0.45863091945648193, -0.17410220205783844, 0.03646519407629967, 0.12685251235961914, 0.07984068989753723, -0.06873518973588943, 0.007859636098146439, 0.6211051940917969, 0.02676808089017868, -0.3390059471130371, 0.2875060737133026, -0.012738054618239403, 0.05081090331077576, 0.08348259329795837, 0.2718190550804138, -0.6089527010917664, 0.04074690118432045, 0.13276880979537964, -0.016094811260700226, -0.0741514191031456, 0.047562163323163986, 0.32021504640579224, 0.120480015873909, -0.04522758722305298, 0.13541604578495026, 0.2566322088241577, 0.5263144969940186, 0.16315926611423492, -0.0462770015001297, -0.19312278926372528, -0.6383956074714661, -0.04004022479057312, 0.24888759851455688, 0.23376800119876862, -0.14936845004558563, -0.37662070989608765, 0.07980961352586746, -0.10372176766395569, 0.3679350018501282, -0.291780561208725, 0.1845659762620926, 0.17652592062950134, 0.18272826075553894, -0.2849520742893219, -0.13364796340465546, -0.16388443112373352, -0.15727105736732483, 0.04141094163060188, -0.06142041087150574, -0.5223178863525391, -0.09433511644601822, 0.39672350883483887, 0.14899888634681702, 0.10481701791286469, -0.04736270383000374, -0.030049314722418785, -0.5599249601364136, -0.01580652967095375, 0.0908316969871521, 0.32136932015419006, 0.2794360816478729, -0.2633574604988098, -0.14340758323669434, 0.33004412055015564, 0.18239575624465942, 0.2714082598686218, -0.07955223321914673, 0.27776187658309937, 0.258402556180954, 0.16689758002758026, -0.10625599324703217, -0.16715653240680695, 0.2630379796028137, 0.2295295000076294, -0.08587032556533813, 0.24518485367298126, 0.35612669587135315, -0.02060532569885254, 0.19308055937290192, 0.4100920855998993, 0.10729935020208359, -0.2582138180732727, 0.1297793686389923, 0.24068331718444824, -0.8461641669273376, 0.30404210090637207, 0.09702276438474655, 0.0070089315995574, -0.19269022345542908, -0.526752233505249, 0.3122202754020691, 0.17125201225280762, -0.08791676163673401, 0.05206524580717087, -0.003074340522289276, -0.2737782895565033, 0.27282196283340454, 0.5335443615913391, 1.257635235786438, -0.029133066534996033, 0.022688444703817368, 0.355537474155426, -0.2978227734565735, 0.370023638010025, -0.4452502131462097, -0.19399641454219818, -0.19571329653263092, 0.02768877148628235, 0.05517052114009857, -0.07049831748008728, -0.08830543607473373, -0.15434454381465912, -0.34508296847343445, 0.06679938733577728, -0.04418561980128288, -0.08482193946838379, -0.14261671900749207, 0.11687733232975006, 0.15859346091747284, -0.16911953687667847, 0.11120688915252686, 0.07943461090326309, -0.2811626195907593, 0.09637392312288284, -0.20373332500457764, -0.15832850337028503, -0.23066309094429016, -0.12435074150562286, -0.10247015953063965, 0.06536532193422318, 0.21992866694927216, -0.385405957698822, -0.19361020624637604, -0.1985027939081192, 0.01853754371404648, -0.00710403174161911, 0.15951621532440186, -0.09692646563053131, -0.041462644934654236, -0.017636913806200027, 0.08434414863586426, 0.5230653882026672, 0.3852997124195099, 0.013777515850961208, 0.3782770037651062, -0.11763333529233932, 0.4575585722923279, -0.3126455545425415, 0.09839998930692673, 0.19646845757961273, -0.274252712726593, -0.32691431045532227, 0.08764450252056122, -0.2669391632080078, -0.10347416996955872, 0.386995792388916, -0.016734372824430466, -0.16684837639331818, 0.07070007920265198, 0.028459426015615463, -0.20468586683273315, 0.4507579803466797, -0.29648274183273315, -0.22437900304794312, -0.2121116816997528, 0.11551571637392044, 0.2185230255126953, -0.387360155582428, -0.3184589445590973, 0.14051081240177155, -0.3557129502296448, -0.11368565261363983, -0.13031038641929626, -0.39907220005989075, -0.5146805644035339, 0.19223573803901672, -0.058024585247039795, -0.36707431077957153, -0.009208530187606812, 0.33079320192337036, 0.1403723806142807, 0.0032236501574516296, -0.0002215951681137085, 0.24072393774986267, -0.03371959924697876, 0.3315070867538452, 0.05480371043086052, 0.3374751806259155, -0.21209898591041565, 0.2316277027130127, -0.1134629175066948, 0.025827940553426743, -0.2887252867221832, -0.2082090675830841, -0.14331704378128052, 0.43288135528564453, 0.020032081753015518, -0.14068341255187988, -0.17863477766513824, -0.14147540926933289, 0.07783160358667374, 0.04093853011727333, -0.2943536937236786, -0.06880700588226318, -0.2512608468532562, 0.127674400806427, 0.08449883759021759, -0.12304336577653885, -0.19210970401763916, 0.024162229150533676, -0.3719675540924072, -0.11092771589756012, 0.13192209601402283, 0.2857321500778198, 0.036542318761348724, 0.21715380251407623, -0.016687113791704178, 0.06342422217130661, 0.19008080661296844, 0.11562459915876389, 0.17356634140014648, 0.49843961000442505, -0.036505766212940216, 0.2968983054161072, 0.25764548778533936, -0.1358138620853424, -0.1916550248861313, 0.16904670000076294, 0.17169055342674255, -0.03500617295503616, 0.17171801626682281, 0.06712932139635086, 0.35951876640319824, 0.16871540248394012, 0.6572401523590088, 0.026866775006055832, -0.3116444945335388, -0.48312094807624817, 0.02037634328007698, 0.19113457202911377, -0.06359168887138367, -0.011004647240042686, -0.557630717754364, 0.03144196420907974, -0.11059194803237915, 0.4366225302219391, 0.10559689998626709, 0.2500649094581604, -0.18116869032382965, -0.04734986647963524, 0.07542628794908524, -0.006353903561830521, 0.11473430693149567, 0.10806490480899811, -0.1426185667514801, 0.09636334329843521, 0.05489195138216019, -0.11479967832565308, -0.13658690452575684, 0.41619497537612915, 0.23406699299812317, 0.5425624251365662, 0.5547232031822205, 0.5994683504104614, -0.1338523030281067, 0.2447003871202469, -0.035079095512628555, 0.5126433372497559, -0.38276517391204834, 0.3016418218612671, 0.08411866426467896, 0.2526804506778717, -0.2263122946023941, -0.17349770665168762, -0.1283077895641327, 0.16121132671833038, -0.330395370721817, -0.1040998101234436, -0.004029072821140289, -0.20175987482070923, 0.06994621455669403, -0.032919660210609436, -0.2488442063331604, 0.36125874519348145, -0.09723223745822906, 0.0916256308555603, 0.1704246699810028, 0.21354861557483673, -0.32143640518188477, -0.247226744890213, 0.36774882674217224, -0.18355019390583038, 0.23343385756015778, 0.39988410472869873, 0.10770190507173538, 0.1851440668106079, 0.3791579008102417, 0.3195714056491852, 0.17632675170898438, -0.18042658269405365, -0.0956224873661995, 0.35230961441993713, -0.015136177651584148, 0.028967536985874176, 0.42658957839012146, 0.3762984871864319, 0.01757403090596199, 0.18100112676620483, 0.1107964962720871, -0.18726187944412231, 0.1076427549123764, 0.08190742135047913, -0.050312917679548264, 0.09342168271541595, 0.4909347891807556, 0.028187239542603493, 0.05377268046140671, 0.13296328485012054, -0.0032890066504478455, -0.5137776136398315, -0.24263717234134674, -0.10023272037506104, -0.2926813066005707, 0.1524430215358734, -0.15656602382659912, 0.062351301312446594, 0.020017554983496666, 0.1592620313167572, -0.12994161248207092, 0.11952514946460724, -0.24638119339942932, -0.10991021990776062, -0.2889207601547241, -0.24268373847007751, 0.5263110995292664, 0.176753431558609, 0.08501014113426208, 0.1417945921421051, 0.09497769176959991, 0.259851336479187, -0.21278886497020721, -0.021714914590120316, -0.007040306925773621, 0.346192866563797, 0.1341271996498108, 0.44040513038635254, -0.1406685709953308, 0.2962496876716614, -0.16509583592414856, 0.050110772252082825, 0.06622712314128876, -0.2702295482158661, -0.029466085135936737, -0.14557601511478424, 0.1449563205242157, 0.28912344574928284, 0.28704267740249634, 0.2670609652996063, -0.026861777529120445, 0.3831678330898285, -0.3232450783252716, -0.07469284534454346, 0.4008910357952118, 0.0238398015499115, -0.17247991263866425, 0.02127227559685707, -0.5507188439369202, 0.4103037416934967, 0.10748089849948883, 0.259273499250412, -0.12437526881694794, -0.27485543489456177, -0.008035559207201004, 0.2336854189634323, -0.727697491645813, 0.19887052476406097, -0.4516224265098572, -0.16795605421066284, 0.0009771715849637985, 0.2143244743347168, 0.33191245794296265, 0.2677716314792633, -0.47606372833251953, -0.5091434121131897, 0.45761269330978394, 0.2541348934173584, -0.15190789103507996, -0.18695786595344543, 0.15803995728492737, 0.16336022317409515, 0.09197945147752762, -0.5924778580665588, -0.059297844767570496, 0.03638182580471039, 0.0033565983176231384, 0.06796416640281677, 0.5400938987731934, -0.20049145817756653, -0.37845659255981445, -0.19508932530879974, -0.19107118248939514, 0.023178499191999435, 0.026942426338791847, 0.061368148773908615, -0.27941498160362244 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
It makes total sense to prepare the data to be in a format that can actually be used for model training and evaluation. That's one of the roles of this lib :) So for me it's ok to use frames as a unit instead of seconds. Just pinging @patrickvonplaten in case he has ever played with such audio tasks and has some advice. For the context: the task is to classify which speaker is speaking, let us know if you are aware of any convenient/standard format for this. Also I'm not sure why you have to split an example if it's longer that 2,000 frames ?
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
106
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun It makes total sense to prepare the data to be in a format that can actually be used for model training and evaluation. That's one of the roles of this lib :) So for me it's ok to use frames as a unit instead of seconds. Just pinging @patrickvonplaten in case he has ever played with such audio tasks and has some advice. For the context: the task is to classify which speaker is speaking, let us know if you are aware of any convenient/standard format for this. Also I'm not sure why you have to split an example if it's longer that 2,000 frames ?
[ -0.28163963556289673, -0.2966591715812683, -0.02875380776822567, 0.10691733658313751, 0.28880059719085693, -0.3171859383583069, 0.28601476550102234, -0.08937180042266846, -0.2086753100156784, 0.2891700267791748, -0.02393486723303795, 0.1445547491312027, -0.24315296113491058, 0.36502036452293396, -0.05572760850191116, -0.3703918159008026, -0.04365626722574234, 0.43199217319488525, 0.08527648448944092, 0.19538547098636627, -0.027926597744226456, -0.13997015357017517, -0.19443297386169434, -0.14053760468959808, -0.2986370921134949, 0.12248457223176956, 0.16571632027626038, -0.11110904067754745, -0.1812952607870102, -0.43630537390708923, -0.2465907335281372, 0.1873660832643509, 0.30829840898513794, 0.42435184121131897, -0.00011157536937389523, -0.28693515062332153, 0.3735201954841614, -0.3626351058483124, -0.3049231469631195, 0.11861914396286011, -0.2251826822757721, 0.1911391168832779, -0.1835400015115738, -0.18712815642356873, -0.6224462985992432, -0.048583392053842545, -0.09248044341802597, -0.21796143054962158, 0.22154289484024048, 0.35292837023735046, 0.16867093741893768, -0.14220477640628815, -0.24322377145290375, -0.17392289638519287, 0.14399629831314087, 0.21378271281719208, -0.1659606695175171, 0.04772433266043663, 0.3256967067718506, 0.3838880956172943, 0.023801401257514954, 0.3410094082355499, -0.13859333097934723, -0.15377433598041534, 0.6866524815559387, -0.2904162108898163, 0.09580530226230621, -0.06964278966188431, -0.1085212454199791, 0.3500695526599884, 0.47182145714759827, 0.041232168674468994, -0.23638507723808289, 0.10131863504648209, -0.15368519723415375, -0.2647709846496582, -0.3756280541419983, 0.2088547945022583, -0.001281721517443657, 0.09126517176628113, -0.1519601196050644, 0.11053165793418884, -0.032377276569604874, -0.2818392515182495, -0.005965638905763626, 0.28540223836898804, -0.18772973120212555, 0.05815110355615616, 0.1815720498561859, -0.12126228213310242, -0.33497554063796997, 0.4272417426109314, 0.157059907913208, -0.20238904654979706, 0.040792468935251236, -0.23550355434417725, 0.02639426663517952, -0.22623375058174133, -0.18396854400634766, -0.058899328112602234, 0.010752646252512932, -0.15966913104057312, 0.36744654178619385, -0.0834072157740593, 0.14094454050064087, 0.16008593142032623, 0.5148699879646301, -0.04029868170619011, -0.18085192143917084, 0.217697411775589, 0.11284717917442322, -0.05754413455724716, -0.33093610405921936, -0.1513926237821579, -0.3899577558040619, 0.30373433232307434, -0.29398566484451294, -0.24986262619495392, -0.4078963100910187, 0.15560749173164368, -0.06875687092542648, -0.008117185905575752, 0.29851704835891724, 0.4410339891910553, -0.2774159014225006, -0.14469283819198608, -0.008701866492629051, 0.1440008282661438, -0.2811342775821686, 0.028425075113773346, -0.11290846765041351, 0.3615615963935852, -0.2956390380859375, -0.04572489857673645, -0.18095336854457855, -0.2984073758125305, 0.1460474133491516, -0.09752095490694046, 0.14899957180023193, -0.2042052298784256, -0.29047930240631104, 0.07770180702209473, 0.1410268396139145, 0.13681191205978394, -0.03472698852419853, 0.06587565690279007, -0.3415352702140808, -0.04873831570148468, -0.33158770203590393, 0.3300109803676605, 0.15853118896484375, -0.13308613002300262, -0.1787002831697464, 0.19882094860076904, -0.1488693803548813, -0.061039745807647705, 0.0870828926563263, 0.3035244345664978, 0.07410699129104614, -0.5215890407562256, 0.2805389165878296, -0.22754012048244476, -0.3876270055770874, 0.045016705989837646, 0.15968377888202667, -0.024880245327949524, -0.2062157243490219, -0.24003194272518158, 0.09059031307697296, -0.012842744588851929, 0.5304499268531799, 0.11760243773460388, 0.10421688109636307, 0.07064135372638702, 0.21220101416110992, 0.3759791851043701, -0.08091887086629868, -0.5997326374053955, -0.02837301976978779, 0.2053227722644806, -0.027859441936016083, 0.0023976191878318787, 0.13588067889213562, 0.28073644638061523, 0.5378674268722534, -0.49914050102233887, 0.022828392684459686, 0.014658324420452118, -0.10291735827922821, -0.1059393361210823, -0.0682438388466835, -0.18869097530841827, 0.4773458242416382, 0.25715965032577515, -0.13432760536670685, -0.0402505025267601, -0.24667173624038696, 0.9259151220321655, 0.05934017896652222, -0.10537183284759521, 0.10887376219034195, 0.11032578349113464, 0.19893907010555267, 0.0003983154892921448, -0.022111816331744194, -0.1246919110417366, 0.009911656379699707, -0.126204252243042, 0.4579296112060547, 0.3426697254180908, 0.29854607582092285, -0.3843502998352051, -0.07656596601009369, -0.2156287580728531, -0.022704143077135086, -0.14555679261684418, 0.10297746956348419, -0.3716433346271515, 0.21703141927719116, -0.19207681715488434, 0.15407663583755493, -0.12346213310956955, -0.12380912899971008, -0.05900617316365242, 0.07987500727176666, -0.08603542298078537, -0.07085232436656952, -0.17685763537883759, 0.2090507447719574, 0.3204805552959442, 0.17935778200626373, 0.1339329332113266, -0.05621790140867233, 0.2831624150276184, 0.3859139382839203, 0.2770445644855499, -0.3968947231769562, 0.37129464745521545, 0.19645603001117706, -0.39950406551361084, 0.25604239106178284, 0.10073745250701904, 0.07004071027040482, -0.21130716800689697, -0.29965299367904663, 0.24382434785366058, -0.20284155011177063, 0.05883726850152016, 0.014597706496715546, -0.23690654337406158, 0.09938378632068634, 0.06187720224261284, -0.5542844533920288, 0.05604466050863266, 0.12414112687110901, -0.13152611255645752, -0.009251737967133522, 0.274203896522522, -0.3871730864048004, -0.012731239199638367, 0.3943392336368561, -0.2246340811252594, 0.015048202127218246, 0.2740674912929535, 0.04051157087087631, -0.24128130078315735, 0.20095787942409515, -0.20434746146202087, 0.03448328375816345, 0.20553827285766602, 0.26538631319999695, -0.15234604477882385, -0.1025516614317894, -0.23505328595638275, 0.059670597314834595, 0.15268278121948242, -0.0810902789235115, 0.07713194936513901, -0.1555379033088684, -0.01642666757106781, -0.18960782885551453, -0.04389502853155136, -0.17463141679763794, -0.07601030170917511, -0.08855730295181274, -0.18077263236045837, -0.0006379522383213043, -0.5255264639854431, 0.10832938551902771, -0.28237542510032654, 0.19525261223316193, 0.22197432816028595, 0.24714288115501404, 0.03357590362429619, -0.2536739408969879, 0.21446740627288818, 0.28135907649993896, 0.3833410143852234, -0.03261870890855789, 0.2902716100215912, -0.07960505038499832, -0.17596784234046936, -0.01552603766322136, 0.15210884809494019, 0.036436256021261215, 0.06236911192536354, 0.29035407304763794, -0.14360500872135162, 0.1519024670124054, 0.04414558783173561, -0.23536542057991028, 0.21699444949626923, -0.05418381094932556, 0.3820280432701111, 0.04258054122328758, 0.1099720224738121, -0.01668059080839157, -0.12394280731678009, 0.08180686831474304, -0.07605239748954773, 0.08622493594884872, -0.11921583861112595, -0.10033707320690155, 0.06438697129487991, -0.41770419478416443, -0.1678033471107483, -0.0484098345041275, -0.49501994252204895, -0.102908194065094, -0.06411708146333694, 0.08460894972085953, 0.04701850190758705, -0.022636428475379944, -0.04412185773253441, 0.2887192666530609, 0.4775353968143463, -0.269882470369339, 0.01994214579463005, 0.044082626700401306, -0.2937993109226227, -0.3121444880962372, -0.3096281886100769, 0.01693134382367134, 0.06137789785861969, -0.2124868482351303, 0.027268335223197937, -0.34644708037376404, 0.11455576121807098, -0.5595721006393433, 0.0028867386281490326, -0.21523579955101013, 0.07938723266124725, -0.08769857883453369, -0.014567689970135689, -0.10351340472698212, -0.12190128862857819, 0.08087445795536041, 0.4322313964366913, 0.15861114859580994, -0.04082191735506058, 0.4111807346343994, 0.205991730093956, 0.38412904739379883, 0.508110761642456, -0.4064585864543915, -0.07391437888145447, -0.06044632941484451, -0.11461389064788818, -0.0778295174241066, 0.3272915482521057, 0.6784631013870239, 0.1498032510280609, -0.1824275106191635, 0.5266133546829224, -0.04531532898545265, -0.0038291998207569122, 0.1059388667345047, 0.2110612988471985, -0.4866050183773041, -0.07001471519470215, 0.07904094457626343, 0.01707623153924942, -0.13998880982398987, -0.1445571631193161, 0.3075958788394928, 0.25941744446754456, -0.033176615834236145, 0.154514878988266, 0.20147664844989777, 0.19602221250534058, 0.1571854054927826, -0.13211996853351593, -0.20594820380210876, -0.3873336613178253, -0.05634285509586334, 0.28530317544937134, 0.1896699070930481, -0.2980850040912628, -0.21263781189918518, 0.07614484429359436, -0.10827716439962387, 0.26613283157348633, -0.26476550102233887, 0.10931815207004547, 0.10295000672340393, 0.22771725058555603, -0.2135908603668213, 0.007788278162479401, -0.29634514451026917, -0.131953164935112, -0.1010189801454544, -0.35657191276550293, -0.28103047609329224, 0.005180146545171738, 0.3122992515563965, -0.07881579548120499, 0.030386652797460556, 0.026505887508392334, 0.04914996400475502, -0.36758914589881897, -0.1560356169939041, 0.304092139005661, 0.44229352474212646, 0.09602781385183334, -0.058368779718875885, -0.2546372413635254, 0.3379840850830078, 0.24549147486686707, 0.3721851706504822, 0.023950528353452682, 0.31413012742996216, 0.19137223064899445, 0.09450745582580566, 0.16401025652885437, -0.20243936777114868, 0.3549015522003174, 0.21449387073516846, 0.022415632382035255, 0.24271388351917267, 0.3687847852706909, -0.2259840965270996, 0.40802669525146484, 0.45225387811660767, 0.21417339146137238, -0.06270263344049454, 0.08804264664649963, 0.3142845332622528, -0.8930282592773438, 0.49001604318618774, 0.3095085322856903, 0.024597205221652985, -0.20983335375785828, -0.564387857913971, 0.2262251377105713, 0.21627724170684814, 0.00641593337059021, 0.12353116273880005, -0.03373254835605621, -0.07969358563423157, 0.14303439855575562, 0.29518720507621765, 1.1647597551345825, -0.04289122670888901, 0.07650569826364517, 0.16918900609016418, -0.15384957194328308, 0.18080367147922516, -0.40194350481033325, -0.0012329388409852982, -0.09633210301399231, -0.015465260483324528, -0.05811924487352371, 0.07744079828262329, -0.014216378331184387, 0.031108342111110687, -0.55855393409729, 0.11860064417123795, -0.023330282419919968, -0.13033340871334076, -0.1607048511505127, 0.28007492423057556, 0.1902947723865509, -0.1925048977136612, 0.15018582344055176, 0.1416817456483841, -0.2514178156852722, 0.10542607307434082, -0.0544787272810936, -0.056019239127635956, 0.00840340182185173, -0.18269336223602295, -0.17019808292388916, 0.03600594401359558, 0.24299265444278717, -0.415508508682251, -0.29978641867637634, -0.10193862020969391, 0.11475417017936707, -0.07666808366775513, -0.26055073738098145, 0.05023782700300217, 0.0010389909148216248, 0.2617499530315399, -0.1325211524963379, 0.4354811906814575, 0.05353934317827225, 0.02303708717226982, 0.40695512294769287, -0.18714874982833862, 0.3979718089103699, -0.06493843346834183, 0.11020056903362274, 0.16002511978149414, 0.13277292251586914, -0.07517452538013458, -0.023788705468177795, -0.10486399382352829, -0.29471445083618164, 0.12126590311527252, -0.12200199067592621, -0.09009596705436707, 0.11285264790058136, 0.13022634387016296, -0.4204396605491638, 0.2589362561702728, 0.03905124217271805, -0.18980291485786438, -0.17396949231624603, 0.0488789826631546, 0.34406864643096924, -0.2647395133972168, -0.20417943596839905, 0.2922312021255493, -0.18393053114414215, -0.21443206071853638, -0.13354766368865967, -0.2539752721786499, -0.28679490089416504, 0.20007196068763733, -0.1320403665304184, -0.29900890588760376, 0.10603781789541245, 0.5147519111633301, -0.016973420977592468, 0.030569758266210556, -0.2323724627494812, 0.3006746470928192, -0.045034438371658325, 0.20901264250278473, 0.03381868079304695, 0.38503867387771606, -0.09060855209827423, 0.40987908840179443, 0.000055165961384773254, 0.14419107139110565, -0.32127195596694946, -0.10834600031375885, -0.4154183864593506, 0.5450595617294312, 0.010800656862556934, 0.0026246868073940277, -0.045341551303863525, -0.06188010424375534, 0.022116372361779213, 0.16956296563148499, -0.20779526233673096, -0.13969874382019043, -0.3130798637866974, 0.10100002586841583, 0.24286991357803345, -0.1225697472691536, -0.07955493777990341, 0.06635578721761703, -0.29504749178886414, -0.06995001435279846, 0.22017784416675568, 0.2718828320503235, 0.022166229784488678, 0.4071655869483948, 0.15398898720741272, -0.07936554402112961, 0.2233974188566208, -0.01108846440911293, 0.19014257192611694, 0.48331016302108765, 0.13936124742031097, 0.218416228890419, 0.2225477695465088, -0.11489026248455048, 0.07009569555521011, 0.3758234679698944, 0.2523064613342285, -0.32209739089012146, 0.0355837456882, 0.2510668635368347, 0.28191718459129333, 0.11647088825702667, 0.6624596118927002, 0.11330060660839081, -0.1636306196451187, -0.4109315574169159, 0.06613408029079437, 0.2601207196712494, -0.061567410826683044, -0.11398573964834213, -0.4745084345340729, -0.057647496461868286, 0.18712572753429413, 0.31027233600616455, 0.016454394906759262, 0.4563940167427063, -0.018612757325172424, -0.10544850677251816, -0.09425745904445648, 0.0069390591233968735, 0.12315391004085541, 0.17704613506793976, -0.030952347442507744, 0.062135275453329086, 0.197353333234787, -0.28044593334198, 0.1907784789800644, 0.4374294877052307, 0.19939041137695312, 0.3798770010471344, 0.5467931628227234, 0.44196030497550964, -0.0729975625872612, 0.27168262004852295, -0.2937259376049042, 0.3941129446029663, -0.21683171391487122, 0.14309030771255493, 0.14058688282966614, 0.4431464970111847, -0.21705284714698792, -0.3666249215602875, -0.03644082695245743, 0.0720181092619896, -0.21951386332511902, -0.1938289850950241, -0.012626582756638527, -0.10874520987272263, -0.18781426548957825, -0.05961814522743225, -0.11764127016067505, 0.4983852505683899, -0.048865094780921936, -0.022391274571418762, 0.3559997081756592, 0.33573561906814575, -0.38334956765174866, -0.1738850176334381, 0.3755631148815155, -0.3395358920097351, 0.1450130045413971, 0.2927500009536743, -0.018868133425712585, 0.39685314893722534, 0.2543356418609619, 0.31841278076171875, -0.08798679709434509, -0.2682083547115326, -0.10231137275695801, 0.11355945467948914, 0.043772950768470764, 0.09363722056150436, 0.2804381847381592, 0.4051349461078644, 0.10001057386398315, 0.3646944761276245, 0.1604694426059723, -0.2598089575767517, 0.1753743588924408, -0.04959621652960777, -0.3056272566318512, -0.17462341487407684, 0.2882707417011261, -0.10232678055763245, 0.008559957146644592, -0.19736804068088531, -0.08348331600427628, -0.6419288516044617, -0.0942516028881073, -0.028124023228883743, -0.5123220086097717, 0.14127251505851746, -0.22579032182693481, 0.044227659702301025, -0.09612098336219788, 0.30801936984062195, -0.057552676647901535, 0.32544073462486267, -0.06315405666828156, -0.21619728207588196, -0.28121060132980347, -0.1525760293006897, -0.044311556965112686, 0.11134953796863556, -0.025180626660585403, 0.08680718392133713, 0.09851709753274918, 0.1534142792224884, -0.18513070046901703, -0.043247710913419724, -0.2291007936000824, 0.2623698115348816, 0.019933000206947327, 0.465020090341568, -0.18635745346546173, 0.1673230528831482, -0.07584070414304733, -0.054437849670648575, -0.05657179281115532, -0.36426544189453125, 0.026187196373939514, -0.07929956167936325, 0.009012311697006226, 0.18892408907413483, 0.22788019478321075, 0.19339144229888916, -0.16421501338481903, 0.5039048790931702, -0.25115060806274414, 0.036082759499549866, 0.2504311203956604, 0.15387283265590668, -0.08727245777845383, -0.25946855545043945, -0.29971322417259216, 0.4779643714427948, 0.008298128843307495, 0.4578138589859009, -0.17724134027957916, -0.004176671151071787, -0.0011695735156536102, 0.21518956124782562, -0.4654528498649597, 0.20275023579597473, -0.6440055966377258, -0.049409255385398865, 0.14431005716323853, 0.221599280834198, 0.18206076323986053, -0.20405803620815277, -0.39246511459350586, -0.44111356139183044, 0.33734774589538574, 0.22678732872009277, -0.12873578071594238, -0.22433847188949585, 0.15002703666687012, 0.2595188021659851, 0.06356793642044067, -0.5335084795951843, -0.04090593755245209, -0.03181290626525879, 0.11587472259998322, -0.148405984044075, 0.3507457673549652, -0.061619531363248825, -0.36225566267967224, -0.23122484982013702, -0.2707163393497467, 0.16397437453269958, -0.09695286303758621, -0.011768324300646782, -0.3869442343711853 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
> Also I'm not sure why you have to split an example if it's longer that 2,000 frames ? It is a convention in SUPERB benchmark.
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
26
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun > Also I'm not sure why you have to split an example if it's longer that 2,000 frames ? It is a convention in SUPERB benchmark.
[ -0.2332683503627777, -0.3867778182029724, -0.015428322367370129, 0.14984990656375885, 0.35113078355789185, -0.1632608324289322, 0.07803814113140106, -0.12873885035514832, -0.18601304292678833, 0.36652132868766785, -0.09661990404129028, 0.4059162437915802, -0.05636537820100784, 0.35159769654273987, 0.10246820002794266, -0.19791001081466675, 0.02056632936000824, 0.3838476240634918, -0.03321017324924469, 0.12478482723236084, -0.05621900036931038, -0.06895402073860168, -0.24102051556110382, -0.3258823752403259, -0.3510066568851471, 0.18932123482227325, 0.278750479221344, 0.006206337362527847, -0.25384315848350525, -0.32003408670425415, -0.10115532577037811, 0.11767752468585968, 0.21480198204517365, 0.27891021966934204, -0.00010847937664948404, -0.41783225536346436, 0.4762933850288391, -0.37070417404174805, -0.2766052186489105, 0.12403073161840439, -0.2914153039455414, 0.38060593605041504, -0.16228464245796204, -0.11357723921537399, -0.4585207402706146, -0.016435667872428894, -0.11543571949005127, -0.14258864521980286, 0.2762288749217987, 0.16319578886032104, 0.21384336054325104, -0.10627724975347519, -0.22871455550193787, -0.27446481585502625, 0.17495200037956238, 0.09203575551509857, -0.17433331906795502, -0.01638941466808319, 0.11862178891897202, 0.14198389649391174, -0.09324953705072403, 0.4401186406612396, -0.074111707508564, -0.05132434144616127, 0.6301590800285339, -0.3291893005371094, -0.05340705066919327, -0.16704221069812775, 0.061150215566158295, 0.42660394310951233, 0.4480270445346832, -0.04927004873752594, -0.3003900647163391, 0.1693021059036255, -0.11044511944055557, -0.3006444275379181, -0.3630674183368683, 0.036595746874809265, -0.149863138794899, -0.06584930419921875, -0.26607444882392883, -0.016430046409368515, 0.04076968878507614, -0.32421422004699707, -0.07832571119070053, 0.4667682945728302, -0.1790386289358139, -0.09108664840459824, 0.27480074763298035, -0.022641621530056, -0.28752538561820984, 0.37631407380104065, 0.10542404651641846, -0.18502572178840637, -0.05369510129094124, -0.1254921704530716, 0.3022249937057495, -0.29239362478256226, -0.08993830531835556, -0.07339921593666077, 0.0874503031373024, -0.1432536244392395, 0.43839016556739807, -0.006592072546482086, 0.09146298468112946, 0.29132866859436035, 0.5710583925247192, 0.035883285105228424, -0.1585530936717987, 0.27579912543296814, 0.09580227732658386, -0.037405647337436676, -0.2094050645828247, -0.02578815072774887, -0.3411642014980316, 0.17819911241531372, -0.17254886031150818, -0.18690256774425507, -0.3630545139312744, 0.17246252298355103, -0.07283912599086761, -0.09450831264257431, 0.21103022992610931, 0.32433557510375977, -0.13602569699287415, -0.23196133971214294, -0.24048933386802673, 0.053491294384002686, -0.38612934947013855, 0.23405922949314117, -0.28572332859039307, 0.30746179819107056, -0.2542996108531952, 0.11800314486026764, -0.09985455870628357, -0.3639890253543854, 0.23716339468955994, -0.0065118735656142235, 0.1761736273765564, -0.18233640491962433, -0.26557034254074097, 0.1258237659931183, 0.2081213742494583, 0.13586421310901642, 0.2903955578804016, 0.08915963023900986, -0.29710808396339417, -0.015124544501304626, -0.3012412190437317, 0.2835367023944855, 0.20000845193862915, -0.3655956983566284, -0.18815967440605164, 0.27438127994537354, -0.2100992649793625, -0.20096775889396667, -0.0025988370180130005, 0.1850823014974594, -0.0005455464124679565, -0.3255740702152252, 0.2571023106575012, -0.13437362015247345, -0.2850000262260437, 0.17189858853816986, 0.2795667350292206, 0.009865805506706238, -0.0960153341293335, -0.13109949231147766, 0.026616359129548073, -0.062427129596471786, 0.41647472977638245, 0.03155049681663513, 0.03629445284605026, 0.0355161689221859, 0.05813238024711609, 0.3339359760284424, 0.0076743438839912415, -0.7313759922981262, -0.18623724579811096, 0.1206408366560936, -0.038337454199790955, 0.09718596190214157, 0.2149571031332016, 0.05432821065187454, 0.6713401079177856, -0.2778014838695526, -0.04899807274341583, 0.1907031089067459, -0.044078536331653595, -0.1877172440290451, -0.09831064939498901, 0.08848138153553009, 0.24102501571178436, 0.1455812007188797, -0.10430864989757538, -0.09820493310689926, -0.18074434995651245, 0.7357426285743713, 0.1418428122997284, -0.014780145138502121, 0.08048508316278458, 0.008814902976155281, 0.2759525179862976, -0.07609805464744568, 0.11898192763328552, -0.1338440328836441, -0.009641997516155243, -0.08258861303329468, 0.3660670518875122, 0.3648838698863983, 0.19133183360099792, -0.4247175455093384, -0.19657570123672485, -0.2262570708990097, -0.02366676554083824, -0.3010915219783783, 0.15165184438228607, -0.27898532152175903, 0.24008256196975708, -0.298611581325531, 0.07209934294223785, -0.39242005348205566, -0.25693705677986145, -0.17168180644512177, 0.022972775623202324, -0.0684472844004631, -0.1879929155111313, -0.14423230290412903, 0.0884135514497757, 0.34858280420303345, 0.08659853786230087, 0.14879144728183746, -0.09793295711278915, 0.332125186920166, 0.23927737772464752, 0.29663896560668945, -0.16031166911125183, 0.40699341893196106, 0.047618672251701355, -0.7061477899551392, 0.1489832103252411, 0.06411440670490265, 0.034866299480199814, -0.100392647087574, -0.2477855682373047, 0.10892181098461151, -0.17136025428771973, 0.13067671656608582, 0.22362954914569855, -0.24009811878204346, 0.11766283214092255, 0.007525138556957245, -0.2496383637189865, -0.1884477436542511, 0.10675235092639923, -0.16792289912700653, 0.05446534976363182, 0.18788257241249084, -0.17161042988300323, 0.11589116603136063, 0.36680513620376587, -0.2199764847755432, -0.05690489709377289, 0.2108961045742035, -0.10068591684103012, -0.35848772525787354, 0.1226944550871849, -0.1448436975479126, -0.005295425653457642, 0.27311697602272034, 0.4854400157928467, -0.13348007202148438, -0.05533970892429352, -0.2571050524711609, 0.17237848043441772, 0.08606573194265366, -0.03643304854631424, 0.1449543684720993, -0.1692889779806137, 0.09463892132043839, -0.28441357612609863, -0.06443123519420624, -0.08887196332216263, 0.028121910989284515, -0.004961982369422913, -0.3180197477340698, 0.02524120919406414, -0.5608504414558411, 0.07022933661937714, -0.39441511034965515, 0.14516572654247284, 0.013650555163621902, 0.24005281925201416, -0.06965368986129761, -0.22921468317508698, 0.3919655978679657, 0.352793425321579, 0.35230857133865356, -0.029777027666568756, 0.25715094804763794, -0.1785164773464203, -0.18282411992549896, -0.019440442323684692, 0.19683179259300232, -0.04821877181529999, -0.06476394087076187, 0.1313062310218811, -0.0745941549539566, 0.2841642498970032, -0.07592037320137024, -0.35868972539901733, 0.27532774209976196, -0.08501549065113068, 0.34944483637809753, 0.07885442674160004, -0.044072821736335754, 0.11646290123462677, -0.07852081954479218, -0.025868583470582962, -0.285056471824646, -0.09320187568664551, -0.15553419291973114, -0.06122341379523277, 0.1051308736205101, -0.3495447635650635, -0.3030547797679901, 0.17496979236602783, -0.456328421831131, -0.13746337592601776, -0.13582773506641388, 0.11650184541940689, 0.021625859662890434, -0.16069868206977844, 0.09612169861793518, 0.11604335904121399, 0.4227077066898346, -0.21385549008846283, -0.0015381909906864166, 0.057272426784038544, -0.38190561532974243, -0.14986608922481537, -0.19243571162223816, 0.0653863325715065, 0.23045580089092255, -0.26374709606170654, -0.266774982213974, -0.19313932955265045, 0.049307361245155334, -0.273908406496048, -0.15675505995750427, -0.042995013296604156, 0.22681395709514618, -0.0838979035615921, -0.0906248688697815, -0.3136219382286072, -0.19901099801063538, 0.0007029324769973755, 0.24914497137069702, 0.10017184168100357, -0.3837289810180664, 0.3122461140155792, 0.21090826392173767, 0.47347354888916016, 0.3602144420146942, -0.09052589535713196, -0.06421235203742981, -0.0810929387807846, 0.0561126247048378, -0.03038167953491211, 0.2548558712005615, 0.4756147563457489, 0.13633009791374207, -0.19340908527374268, 0.511383056640625, 0.016343822702765465, -0.0020027197897434235, 0.09796224534511566, 0.06664176285266876, -0.3641921281814575, 0.017333485186100006, -0.10092898458242416, -0.0752159133553505, -0.07818300276994705, -0.08313979208469391, 0.2575404644012451, 0.28635454177856445, 0.07463662326335907, 0.10191428661346436, 0.09011121094226837, 0.384565532207489, 0.08804494142532349, -0.015884872525930405, -0.1661243736743927, -0.2775576412677765, 0.0018978044390678406, 0.30895888805389404, 0.1601305902004242, -0.19259817898273468, -0.33436739444732666, 0.007591210305690765, -0.04738864675164223, 0.32909417152404785, -0.4097703993320465, 0.1269674301147461, 0.06577013432979584, 0.21195578575134277, -0.27214255928993225, 0.006872028112411499, -0.29529935121536255, 0.025835372507572174, 0.09563450515270233, -0.2215733826160431, -0.11954155564308167, -0.02335341088473797, 0.5390748977661133, -0.2256920039653778, 0.08109277486801147, -0.07783791422843933, -0.14598405361175537, -0.4732722043991089, 0.10544943809509277, 0.2972545623779297, 0.3655228614807129, 0.2513114809989929, -0.12699183821678162, -0.3239687979221344, 0.25228992104530334, -0.09360022097826004, 0.19073303043842316, 0.11869397759437561, 0.24992680549621582, 0.18789829313755035, 0.14787276089191437, -0.06242041289806366, -0.25765523314476013, 0.29694437980651855, 0.30949464440345764, -0.1205231100320816, 0.13280579447746277, 0.3247743844985962, -0.09445447474718094, 0.40860262513160706, 0.2092052400112152, 0.15939131379127502, -0.004832804203033447, -0.12270961701869965, 0.13907773792743683, -0.7041850090026855, 0.33525875210762024, 0.18339188396930695, -0.039323292672634125, -0.09788230806589127, -0.3560093641281128, 0.4417702853679657, 0.17463810741901398, -0.059854231774806976, 0.22788910567760468, -0.05790935456752777, -0.10535630583763123, 0.08257231116294861, 0.3073568344116211, 1.1370983123779297, -0.07357217371463776, -0.04385921731591225, 0.07839290797710419, -0.1899370700120926, 0.2600424289703369, -0.2547890543937683, 0.11661508679389954, -0.042654670774936676, -0.22763346135616302, -0.014915555715560913, 0.04033320024609566, 0.000321023166179657, -0.1976630538702011, -0.39438873529434204, 0.05266783758997917, -0.07397724688053131, -0.0693226307630539, -0.018697289749979973, 0.25418201088905334, 0.019259013235569, -0.1368386298418045, 0.09485684335231781, 0.10009424388408661, 0.011672772467136383, 0.07719582319259644, -0.11143012344837189, 0.023766454309225082, 0.06603948771953583, -0.2194635272026062, -0.2085813581943512, 0.14546802639961243, 0.2288772016763687, -0.39668238162994385, -0.11605286598205566, -0.26827600598335266, 0.09228383004665375, 0.05809783190488815, -0.3729161024093628, 0.10984279215335846, -0.11500731110572815, 0.31504392623901367, -0.02677132934331894, 0.3541649878025055, 0.1131037175655365, 0.07223838567733765, 0.2907174825668335, -0.18982666730880737, 0.22253119945526123, 0.07574959099292755, 0.12759298086166382, 0.12048621475696564, -0.017173469066619873, -0.057776570320129395, -0.051395319402217865, -0.06799641251564026, -0.08726179599761963, 0.16417735815048218, -0.19354605674743652, -0.23036007583141327, 0.16850066184997559, -0.04278251528739929, -0.5573425889015198, 0.1569867581129074, -0.11219407618045807, -0.2474283128976822, -0.15853208303451538, 0.2785629630088806, 0.21842548251152039, -0.17538028955459595, -0.21099193394184113, 0.21206332743167877, -0.15649205446243286, -0.2799908518791199, -0.371555358171463, -0.1278333216905594, -0.1816754937171936, 0.12893863022327423, -0.19701039791107178, -0.23237138986587524, 0.2243700921535492, 0.5178731679916382, 0.013820841908454895, 0.24900594353675842, -0.2642125189304352, 0.2654992341995239, 0.011656247079372406, 0.1029498502612114, -0.09962427616119385, 0.5023843050003052, -0.17337670922279358, 0.27472949028015137, 0.10951018333435059, 0.39111408591270447, -0.38397371768951416, -0.09198862314224243, -0.40747761726379395, 0.42021051049232483, -0.059611864387989044, -0.08682181686162949, -0.02566518820822239, -0.026384802535176277, 0.10379727184772491, 0.12825936079025269, -0.14280764758586884, -0.19792675971984863, -0.08503961563110352, 0.08834439516067505, 0.16694706678390503, -0.012155197560787201, -0.17327894270420074, 0.38162416219711304, -0.30901116132736206, -0.10366266965866089, 0.41371631622314453, 0.09179841727018356, 0.005147509276866913, 0.4414181709289551, 0.02313607931137085, 0.039166998118162155, 0.033096618950366974, -0.09266729652881622, 0.1182330995798111, 0.46142637729644775, 0.08810535818338394, 0.184171661734581, 0.18940776586532593, -0.14119718968868256, 0.03295789286494255, 0.20853447914123535, 0.27816540002822876, -0.15115752816200256, 0.07948915660381317, 0.16458919644355774, 0.13871394097805023, 0.11086439341306686, 0.6842607259750366, 0.03426329791545868, -0.16010086238384247, -0.524927020072937, -0.0513802208006382, 0.35431796312332153, -0.11029089987277985, -0.11068318784236908, -0.5611758232116699, -0.07579472661018372, 0.20269039273262024, 0.3386382758617401, 0.12481418251991272, 0.2576195299625397, -0.1399199664592743, -0.002986898645758629, 0.034703999757766724, 0.10060114413499832, 0.20716553926467896, 0.09721042215824127, -0.1455926150083542, -0.000020384788513183594, 0.24201332032680511, -0.24074184894561768, 0.22289636731147766, 0.38293302059173584, 0.07668215781450272, 0.6720111966133118, 0.4401680827140808, 0.5553538799285889, 0.01908288151025772, 0.05754987522959709, -0.0687040388584137, 0.28755655884742737, -0.17054173350334167, 0.14952126145362854, -0.13158458471298218, 0.3101213276386261, -0.23127271234989166, -0.046707943081855774, -0.09882761538028717, 0.05406244099140167, -0.26452112197875977, -0.20924000442028046, 0.13845153152942657, -0.23109310865402222, -0.005103729665279388, -0.04086372256278992, 0.047894515097141266, 0.4467160105705261, -0.06302903592586517, -0.09166571497917175, 0.02833954244852066, 0.3155626058578491, -0.12460517138242722, -0.03253180533647537, 0.4534412622451782, -0.3131023645401001, 0.2733813524246216, 0.3048427104949951, 0.018429651856422424, 0.004946514964103699, 0.37238165736198425, 0.26678866147994995, 0.06235945224761963, -0.2410370409488678, -0.11786838620901108, 0.2954314053058624, -0.014534792862832546, 0.12534406781196594, 0.3119964897632599, 0.27408266067504883, 0.16878025233745575, 0.2220427244901657, 0.20445433259010315, -0.30303236842155457, 0.2781258523464203, -0.008320998400449753, -0.08377979695796967, -0.11351814866065979, 0.3367037773132324, -0.09452454745769501, 0.05649193376302719, -0.11784467101097107, 0.20515069365501404, -0.6664242148399353, -0.21498987078666687, 0.15183497965335846, -0.4832715690135956, 0.05134342610836029, -0.28603285551071167, 0.08368902653455734, -0.08189572393894196, 0.596940279006958, 0.043525274842977524, 0.35196152329444885, -0.10238076001405716, -0.25694140791893005, -0.17535340785980225, 0.04956543818116188, 0.07797327637672424, -0.014866756275296211, -0.05151024088263512, 0.28967681527137756, -0.13430768251419067, 0.013352751731872559, -0.2000463455915451, 0.112043596804142, -0.07823040336370468, 0.240760937333107, -0.0724862813949585, 0.38130155205726624, -0.1443326622247696, -0.07294908910989761, -0.1163809522986412, 0.01630089432001114, -0.020808931440114975, -0.41176021099090576, 0.07969265431165695, 0.04814067855477333, 0.0046129897236824036, 0.4404914975166321, 0.0773136168718338, 0.2232024073600769, -0.09004848450422287, 0.50566565990448, -0.21393701434135437, 0.031276777386665344, 0.23943142592906952, 0.07619814574718475, -0.15137596428394318, -0.21632620692253113, -0.2770494520664215, 0.2897723317146301, 0.06394971907138824, 0.33099454641342163, -0.25097766518592834, 0.12088297307491302, 0.04632246494293213, 0.22591404616832733, -0.38373681902885437, 0.10614055395126343, -0.6177571415901184, -0.06762512028217316, 0.23967628180980682, 0.25544100999832153, 0.18524737656116486, -0.10412582755088806, -0.41544294357299805, -0.5935309529304504, 0.2845359742641449, 0.24069887399673462, -0.025858046486973763, -0.405850350856781, 0.39584335684776306, 0.390273779630661, -0.007910801097750664, -0.7445498108863831, 0.02787046879529953, 0.12309365719556808, 0.20744013786315918, -0.10434429347515106, 0.5937696099281311, -0.12051999568939209, -0.20206718146800995, -0.16748569905757904, -0.2509641945362091, 0.19276219606399536, -0.007567364722490311, 0.10062512755393982, -0.40133780241012573 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
Note that if we agree to leave the dataset as it is now, 2 additional custom functions must be used: - one to generate the 2D array labels - one to load the audio file into an array, but taking into account start/end to cut the audio Is there a way we can give these functions ready to be used? Or should we leave this entirely to the end user? This is not trivial...
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
74
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun Note that if we agree to leave the dataset as it is now, 2 additional custom functions must be used: - one to generate the 2D array labels - one to load the audio file into an array, but taking into account start/end to cut the audio Is there a way we can give these functions ready to be used? Or should we leave this entirely to the end user? This is not trivial...
[ 0.07012675702571869, -0.12207936495542526, -0.08268198370933533, 0.08740433305501938, 0.33299708366394043, -0.27128323912620544, 0.20377221703529358, -0.3238634765148163, 0.0819888710975647, 0.47993016242980957, -0.38466885685920715, 0.49921169877052307, -0.29716628789901733, 0.38016757369041443, 0.2168244868516922, 0.1156398132443428, -0.043724142014980316, 0.45458754897117615, -0.24331015348434448, -0.11500254273414612, -0.3650244176387787, -0.0696067363023758, -0.18506395816802979, -0.16097880899906158, 0.07607924193143845, 0.3301178812980652, 0.36833155155181885, 0.05012413114309311, -0.2740941345691681, -0.32091599702835083, -0.054840460419654846, 0.43408453464508057, 0.017489638179540634, 0.0935518890619278, -0.00012404120934661478, -0.4889072775840759, 0.1144804134964943, -0.5945338606834412, -0.4510067105293274, -0.07488135993480682, -0.1743597388267517, 0.18309612572193146, -0.17282845079898834, -0.3445230722427368, -0.451764315366745, -0.24692098796367645, -0.06868698447942734, -0.3593039810657501, 0.35144805908203125, 0.0371757447719574, 0.118324413895607, -0.4390881061553955, -0.09289630502462387, -0.019062547013163567, 0.3715023696422577, 0.36112266778945923, -0.11278686672449112, -0.031450893729925156, 0.2830829620361328, -0.04203465208411217, 0.22344154119491577, 0.4064771831035614, -0.23143045604228973, -0.22117149829864502, 0.8052099347114563, -0.2945547103881836, -0.058498091995716095, -0.24478700757026672, -0.18593063950538635, 0.2308422327041626, 0.5723937153816223, -0.44625282287597656, -0.23351262509822845, -0.13974352180957794, 0.05471966043114662, -0.2569296956062317, -0.15205934643745422, -0.2634461522102356, -0.091713547706604, -0.12726908922195435, -0.2932754456996918, -0.3860233426094055, -0.06296506524085999, -0.03547605872154236, 0.4012439548969269, 0.29000306129455566, -0.15687014162540436, -0.13634780049324036, 0.33257678151130676, -0.13808059692382812, -0.3110354244709015, 0.08099329471588135, 0.34692975878715515, 0.3651879131793976, 0.19045193493366241, -0.1374988555908203, 0.05708329379558563, -0.5596421957015991, -0.14626814424991608, 0.017649158835411072, 0.18682321906089783, -0.07254976034164429, 0.1966509073972702, 0.06551086157560349, 0.13906680047512054, 0.13603252172470093, 0.38091975450515747, -0.1493406742811203, -0.20261715352535248, 0.02095130831003189, 0.433522492647171, -0.0222632959485054, -0.2694661319255829, 0.08286719024181366, -0.32195478677749634, 0.24572783708572388, -0.09380123764276505, -0.2253948152065277, 0.01696368120610714, 0.06959878653287888, 0.16007304191589355, -0.010306285694241524, 0.12485186755657196, 0.2951871454715729, 0.08018090575933456, -0.22945564985275269, -0.07062748819589615, 0.19161970913410187, -0.158168762922287, 0.3550897240638733, 0.10832666605710983, 0.22413475811481476, 0.058880340307950974, 0.08358537405729294, 0.3197917342185974, -0.05837253853678703, 0.21183697879314423, -0.05895569920539856, 0.3837832808494568, -0.04135335609316826, -0.29458025097846985, -0.002446445170789957, 0.4167352616786957, 0.2915925085544586, 0.1842321753501892, 0.04867051541805267, -0.45059341192245483, -0.06409937143325806, -0.4748830795288086, 0.21943172812461853, 0.18038439750671387, -0.30081906914711, -0.08230957388877869, 0.12160258740186691, -0.3399827480316162, -0.07833459973335266, -0.2595553994178772, 0.18980339169502258, 0.023294635117053986, -0.5264912247657776, 0.17460808157920837, -0.26658838987350464, -0.32606419920921326, -0.008369306102395058, 0.12842804193496704, 0.028717041015625, -0.176163911819458, -0.3099744915962219, -0.10925363749265671, -0.2027406394481659, 0.20681065320968628, -0.2653992474079132, 0.0743018090724945, 0.27823495864868164, 0.09014741331338882, 0.3287063241004944, 0.19413267076015472, -0.5056775808334351, -0.10951627790927887, -0.2881549298763275, 0.1260710060596466, 0.3658553957939148, 0.24177926778793335, -0.03965466469526291, 0.6172511577606201, -0.391915887594223, 0.0057456716895103455, 0.16762249171733856, 0.12805089354515076, -0.21009854972362518, 0.23447366058826447, -0.15527655184268951, 0.1706709861755371, 0.27593711018562317, 0.10975021123886108, 0.09968483448028564, -0.035222478210926056, 0.4549312889575958, -0.041628651320934296, -0.1958787441253662, 0.12268652766942978, -0.024111904203891754, 0.3797677159309387, -0.0728304386138916, 0.1310589611530304, -0.21917861700057983, -0.09098459035158157, -0.08709868788719177, 0.27280551195144653, 0.19814112782478333, 0.006057582795619965, -0.2705807089805603, -0.21834725141525269, -0.1713401973247528, -0.05416034534573555, -0.01262374222278595, 0.021884605288505554, -0.06277279555797577, 0.20268987119197845, -0.2498859167098999, -0.207971453666687, -0.5372297763824463, -0.3251563012599945, -0.27669697999954224, -0.0989338755607605, -0.11992761492729187, 0.12183434516191483, -0.015189788304269314, 0.1619110107421875, 0.5139696598052979, 0.0722225159406662, 0.2007295936346054, -0.053362756967544556, 0.2162807285785675, 0.20078745484352112, 0.20089000463485718, -0.3644496500492096, 0.6964129209518433, 0.005775056779384613, -0.4177657961845398, 0.12810923159122467, -0.009499674662947655, 0.16857536137104034, -0.2231152355670929, -0.08539489656686783, 0.1667000949382782, -0.36950233578681946, 0.24220731854438782, 0.16312949359416962, -0.30483195185661316, 0.03130647540092468, 0.09867404401302338, -0.3094034194946289, -0.1341334581375122, -0.17943188548088074, -0.3719242513179779, 0.2769726514816284, -0.027338987216353416, -0.10920362174510956, 0.016010433435440063, 0.44688722491264343, -0.08041234314441681, -0.041001223027706146, 0.035216137766838074, 0.17709441483020782, -0.03568887710571289, 0.19259551167488098, -0.2914181053638458, 0.14021286368370056, 0.23754751682281494, 0.2236272543668747, 0.06113070994615555, 0.023554740473628044, -0.11341599375009537, 0.2189224660396576, -0.02261720597743988, 0.0775080993771553, 0.34899646043777466, -0.22648318111896515, 0.044867925345897675, -0.26584309339523315, -0.006477296352386475, -0.1788826435804367, -0.2538883686065674, -0.19218038022518158, -0.5913697481155396, 0.13901425898075104, -0.613426923751831, 0.1351986825466156, -0.4515042304992676, 0.14768683910369873, 0.2063620537519455, 0.19646917283535004, 0.0622357577085495, -0.5002359747886658, 0.35669466853141785, 0.4525003731250763, 0.5422656536102295, -0.3383069634437561, -0.14569304883480072, -0.26930636167526245, -0.09994795173406601, 0.19389823079109192, 0.08814181387424469, 0.027688942849636078, -0.04071611911058426, 0.0504787340760231, 0.24472202360630035, 0.24856986105442047, 0.019628316164016724, -0.1532745659351349, 0.25011712312698364, 0.14951980113983154, 0.22129976749420166, 0.16748610138893127, -0.19046668708324432, 0.3711952567100525, -0.22101357579231262, 0.006611993536353111, -0.10161968320608139, -0.07902246713638306, -0.33725211024284363, -0.02165764570236206, 0.1381421685218811, -0.521633505821228, -0.2204541563987732, -0.15528570115566254, -0.47468140721321106, -0.03469177335500717, -0.12512876093387604, 0.33970099687576294, -0.042526356875896454, -0.24716708064079285, -0.085201196372509, 0.2476457953453064, 0.463270902633667, -0.30659785866737366, 0.01587284728884697, 0.2206958383321762, -0.3443308174610138, -0.05139743164181709, -0.24007263779640198, -0.0904909074306488, 0.20263445377349854, 0.15323899686336517, -0.2529701590538025, -0.09487149119377136, 0.4059999883174896, -0.46044471859931946, -0.1677451878786087, 0.16160717606544495, 0.21403709053993225, 0.20525270700454712, 0.027131909504532814, -0.3952125012874603, -0.27297136187553406, 0.13749828934669495, 0.29439786076545715, 0.08456721901893616, 0.049154095351696014, 0.16709160804748535, -0.18665964901447296, 0.5130301713943481, 0.08037056028842926, 0.18614503741264343, 0.036556001752614975, 0.15290696918964386, 0.2338598370552063, 0.04779373109340668, 0.00008178316056728363, 0.3410849869251251, 0.2390458583831787, -0.1779506802558899, 0.25777530670166016, 0.03479982167482376, -0.08466239273548126, -0.02927476353943348, 0.3377392292022705, -0.5868302583694458, 0.05250578746199608, 0.09525660425424576, -0.0019897818565368652, -0.05412093549966812, -0.007324479520320892, 0.2944290339946747, -0.023313704878091812, 0.06957901269197464, -0.01679053157567978, -0.12093012034893036, 0.6234721541404724, 0.03314748778939247, -0.22450615465641022, -0.2650248408317566, -0.02897360920906067, 0.05750288814306259, 0.27895110845565796, 0.01310912985354662, -0.25457829236984253, -0.38105276226997375, -0.19821007549762726, -0.03651638329029083, 0.09012632071971893, -0.4723441004753113, -0.06170693784952164, 0.3089456856250763, 0.20489738881587982, -0.06039950251579285, 0.11522692441940308, 0.014720980077981949, -0.11433012783527374, 0.1649279147386551, -0.006200253963470459, -0.3789319097995758, -0.10051598399877548, 0.34805619716644287, -0.08285975456237793, -0.07062166929244995, -0.17484164237976074, 0.035706955939531326, -0.5236576199531555, -0.04725682735443115, 0.12192776054143906, 0.09040329605340958, 0.18076525628566742, -0.25341084599494934, -0.05521680787205696, 0.25986960530281067, 0.007676385343074799, 0.30525845289230347, 0.05479848012328148, 0.2496926188468933, 0.2966267168521881, 0.0007828809320926666, 0.110907182097435, -0.3608390688896179, 0.3877314031124115, 0.45321401953697205, -0.16741684079170227, 0.22254781424999237, 0.3977113962173462, -0.1803867667913437, 0.665220320224762, 0.43307700753211975, 0.18873298168182373, -0.05342879146337509, -0.17879556119441986, 0.03611663728952408, -0.7325423955917358, 0.2687467932701111, -0.1350625455379486, -0.21775634586811066, -0.012435702607035637, -0.5731453895568848, 0.46482422947883606, 0.008486175909638405, -0.18574783205986023, 0.21410532295703888, -0.07806621491909027, -0.36553409695625305, 0.1184113472700119, 0.2861420810222626, 1.2762477397918701, -0.2211211770772934, -0.08412107825279236, -0.005617015063762665, -0.3221256136894226, 0.24664674699306488, -0.41086143255233765, -0.07956001907587051, -0.0024156756699085236, 0.16630543768405914, -0.0009704083204269409, 0.02583726868033409, -0.01843629777431488, 0.21746665239334106, -0.0768798291683197, 0.2009185403585434, 0.19366760551929474, 0.27536100149154663, 0.08556957542896271, 0.29669076204299927, 0.22991959750652313, -0.44333988428115845, -0.04495253413915634, -0.03774673864245415, -0.15957088768482208, 0.06601617485284805, -0.1840001344680786, -0.14580100774765015, 0.10597176849842072, -0.22711822390556335, 0.12142495810985565, 0.16844993829727173, 0.0949573740363121, -0.27904272079467773, -0.13775941729545593, -0.30704426765441895, 0.18196073174476624, 0.23811624944210052, -0.46755218505859375, 0.29098889231681824, -0.01926371641457081, 0.07859150320291519, 0.20302677154541016, 0.4073377549648285, -0.03845924511551857, 0.28821060061454773, 0.1335372030735016, -0.22431010007858276, 0.3216617703437805, 0.15636467933654785, 0.055374808609485626, -0.1577921211719513, -0.45338940620422363, -0.11215956509113312, -0.027385398745536804, -0.14510725438594818, -0.0375339575111866, 0.2965524196624756, 0.14648619294166565, -0.07831689715385437, 0.03584689646959305, -0.1266779750585556, -0.2888798415660858, 0.4117225110530853, -0.3305448293685913, -0.023537714034318924, -0.2116466760635376, 0.07943864911794662, 0.2848817706108093, -0.32649558782577515, 0.029804185032844543, -0.2508678436279297, -0.022212091833353043, -0.25222933292388916, -0.41599926352500916, -0.14117082953453064, -0.10310834646224976, 0.083894744515419, 0.06572788208723068, -0.43765658140182495, -0.1841568648815155, 0.19545111060142517, 0.038365162909030914, 0.12783029675483704, 0.018302593380212784, 0.053795382380485535, -0.11025435477495193, 0.2531963586807251, 0.2617083489894867, 0.4047573208808899, -0.07067833840847015, 0.1547440141439438, -0.20145602524280548, 0.22627465426921844, -0.2878286838531494, -0.04280348867177963, -0.3716561198234558, 0.4028077721595764, 0.08216060698032379, 0.1600845456123352, -0.16478772461414337, -0.16860175132751465, 0.025537880137562752, -0.016095709055662155, -0.3630419969558716, -0.05379907786846161, -0.08672823011875153, 0.21153603494167328, 0.09575919061899185, -0.06037638336420059, -0.3012267053127289, 0.05636163055896759, -0.3656022250652313, -0.226368248462677, 0.1594909429550171, 0.1493965983390808, -0.0008719414472579956, 0.42303407192230225, -0.055721480399370193, 0.14373591542243958, 0.0768115371465683, 0.16608402132987976, 0.1273571401834488, 0.41941702365875244, 0.030414916574954987, 0.2645387649536133, 0.03197784349322319, 0.01495002955198288, 0.22620002925395966, 0.13013987243175507, 0.3027636408805847, -0.2338249385356903, 0.2845509946346283, 0.30093806982040405, 0.14677567780017853, 0.18193376064300537, 0.45236486196517944, 0.21732710301876068, -0.28106188774108887, -0.24510882794857025, 0.0322716161608696, 0.18353204429149628, -0.10809040814638138, -0.009146777912974358, -0.3908665180206299, 0.017241403460502625, 0.003331433981657028, 0.38022565841674805, 0.24986743927001953, 0.01857990026473999, 0.21389155089855194, -0.07373938709497452, 0.016945673152804375, 0.07553659379482269, 0.18283864855766296, 0.08525111526250839, -0.1449074000120163, -0.10787633061408997, 0.15472982823848724, -0.042135003954172134, 0.10446978360414505, 0.3213002681732178, 0.13629525899887085, 0.504548966884613, 0.477159708738327, 0.3957821726799011, 0.13654009997844696, -0.23401829600334167, -0.08940163254737854, 0.43813076615333557, -0.057246133685112, 0.5695347785949707, -0.07163192331790924, 0.28352341055870056, -0.12401796132326126, 0.010535145178437233, 0.0931444764137268, 0.053176138550043106, -0.12239120155572891, -0.061079319566488266, 0.1448177546262741, -0.3866582214832306, 0.11770427227020264, -0.07096166908740997, 0.049210742115974426, 0.05279248207807541, 0.15028484165668488, -0.2364826649427414, 0.20621857047080994, 0.28916415572166443, -0.10953319817781448, 0.017237337306141853, 0.2892257571220398, -0.333808958530426, 0.07272043079137802, 0.5231449604034424, 0.10976043343544006, 0.1790471374988556, 0.36171600222587585, 0.19805189967155457, 0.13064679503440857, -0.3485982418060303, -0.21212980151176453, 0.2946896553039551, -0.02847287617623806, -0.0657082051038742, 0.4621399939060211, 0.5481683611869812, 0.3178643584251404, 0.27854037284851074, 0.09394506365060806, -0.10981274396181107, 0.10557980835437775, 0.06430814415216446, 0.0028530070558190346, 0.009154751896858215, 0.2998848557472229, 0.06041020154953003, -0.18881109356880188, 0.11561866104602814, 0.10641901195049286, -0.4639974534511566, -0.2935188412666321, 0.14158448576927185, -0.02558186464011669, 0.2315675914287567, -0.029419198632240295, 0.03141826391220093, 0.0989285558462143, 0.34041810035705566, -0.040312159806489944, 0.4218628406524658, -0.10252290964126587, -0.24394021928310394, -0.21450789272785187, -0.11522739380598068, 0.26345500349998474, 0.0570962131023407, 0.016361486166715622, 0.15803039073944092, 0.3389161229133606, 0.0941958948969841, -0.4798550605773926, -0.15599016845226288, -0.11887254565954208, 0.1127428337931633, -0.20610862970352173, 0.2750437557697296, -0.02452743798494339, 0.10714883357286453, -0.015494205057621002, -0.18100100755691528, -0.21709443628787994, -0.2810727059841156, -0.046548958867788315, 0.08679872751235962, 0.39802658557891846, 0.07398885488510132, 0.11755593866109848, 0.27680259943008423, -0.14454962313175201, 0.6094765663146973, -0.2399727702140808, 0.0466281995177269, 0.394231915473938, 0.13421986997127533, -0.0026182793080806732, -0.2020900547504425, -0.12863706052303314, 0.37596288323402405, -0.1061873584985733, 0.3196776509284973, -0.24490629136562347, -0.18209625780582428, -0.11700908839702606, 0.39593592286109924, -0.33341169357299805, 0.059290915727615356, -0.5188430547714233, -0.06337539106607437, -0.05865311250090599, 0.19303932785987854, 0.06403537094593048, 0.15363559126853943, -0.43609005212783813, -0.1785334348678589, 0.4934026598930359, 0.5068498849868774, -0.2549113929271698, -0.257718563079834, 0.3064766228199005, 0.28014618158340454, 0.13556188344955444, -0.8809110522270203, 0.12824219465255737, 0.17030610144138336, 0.04474112391471863, 0.05323291942477226, 0.4916587471961975, -0.371383935213089, -0.21830542385578156, -0.10919980704784393, -0.2114357054233551, 0.119122713804245, 0.01248878799378872, -0.2384035587310791, -0.5632585287094116 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
You could add an example of usage in the dataset card, as it is done for other audio datasets
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
19
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun You could add an example of usage in the dataset card, as it is done for other audio datasets
[ -0.18666604161262512, -0.341766357421875, -0.045306798070669174, 0.13616089522838593, 0.394382119178772, -0.10014516115188599, -0.011402476578950882, -0.32097792625427246, -0.08681191504001617, 0.4357758164405823, -0.19028668105602264, 0.5309507846832275, -0.16106347739696503, 0.3353840410709381, 0.21404118835926056, 0.12841174006462097, 0.08300887048244476, 0.3086269497871399, -0.18670830130577087, 0.048507511615753174, -0.19575977325439453, -0.12969675660133362, -0.17475883662700653, -0.2617034912109375, -0.28765007853507996, 0.2515224516391754, 0.250927209854126, -0.07806231826543808, -0.40421605110168457, -0.4468052387237549, 0.09407773613929749, 0.36786627769470215, 0.13358363509178162, 0.20203536748886108, -0.00011023608385585248, -0.34567660093307495, 0.40007972717285156, -0.4017668068408966, -0.38079705834388733, -0.10627685487270355, -0.37442392110824585, 0.1301586627960205, -0.14804202318191528, -0.15537545084953308, -0.5494334697723389, -0.16883745789527893, -0.08771158009767532, -0.06486159563064575, 0.2015177309513092, 0.10638647526502609, 0.24005374312400818, -0.18330906331539154, -0.023935478180646896, -0.16273683309555054, 0.21616467833518982, 0.26853886246681213, -0.1399902105331421, 0.09178651869297028, 0.16458465158939362, 0.09571228921413422, 0.15061023831367493, 0.4392043650150299, -0.06053049862384796, -0.013510167598724365, 0.7725192308425903, -0.23832057416439056, 0.037428129464387894, -0.05371256172657013, 0.1760820746421814, 0.27141496539115906, 0.6456292867660522, -0.2681715786457062, -0.296142578125, 0.16896411776542664, -0.03491800278425217, -0.3756256103515625, -0.21511569619178772, -0.12263879179954529, -0.14421774446964264, -0.12070614099502563, -0.2360704243183136, -0.15333789587020874, 0.016305506229400635, -0.21085558831691742, 0.01795271784067154, 0.4279879331588745, -0.25729480385780334, -0.2135060727596283, 0.27547165751457214, -0.13332827389240265, -0.45627421140670776, 0.3387305438518524, 0.1152636855840683, 0.03194597736001015, -0.17272402346134186, -0.0971732959151268, 0.31341713666915894, -0.422445684671402, -0.05667787417769432, -0.1250009685754776, 0.2012147307395935, -0.12233055382966995, 0.3183717429637909, 0.09619136154651642, 0.11218385398387909, 0.2505684792995453, 0.5187905430793762, 0.004832897335290909, -0.09972627460956573, 0.1724833846092224, 0.2277894914150238, -0.14677876234054565, -0.27023500204086304, 0.05212496593594551, -0.14425109326839447, 0.0822296068072319, -0.0008996278047561646, -0.3093252182006836, -0.40427595376968384, 0.10829240083694458, 0.0672323927283287, -0.14130152761936188, 0.16363118588924408, 0.48771438002586365, -0.04885154962539673, -0.21250823140144348, -0.1593153476715088, 0.11360180377960205, -0.04555869102478027, 0.3794873058795929, -0.1534198820590973, 0.22980670630931854, -0.21535566449165344, 0.09996494650840759, 0.047250788658857346, -0.33416444063186646, 0.2150365263223648, -0.11631987243890762, -0.0191648006439209, -0.08362750709056854, -0.18535976111888885, 0.14210082590579987, 0.28166356682777405, 0.14068306982517242, 0.1908290982246399, 0.011401524767279625, -0.3942652940750122, 0.029609322547912598, -0.305301308631897, 0.25046804547309875, 0.2671489119529724, -0.2756738066673279, -0.302558571100235, 0.2772640883922577, -0.25154393911361694, -0.30440255999565125, -0.06522714346647263, 0.19864332675933838, -0.014955192804336548, -0.3346277177333832, 0.23839479684829712, -0.148578941822052, -0.28627321124076843, 0.15145854651927948, 0.2508375644683838, -0.07018016278743744, -0.021163463592529297, -0.2997059226036072, -0.04797845706343651, -0.16514213383197784, 0.39577269554138184, -0.10141521692276001, 0.13529632985591888, 0.14510834217071533, 0.19794514775276184, 0.23140020668506622, 0.15960705280303955, -0.7030782699584961, -0.4226343035697937, -0.1299310028553009, 0.06709583103656769, 0.060936085879802704, 0.12211185693740845, 0.07056138664484024, 0.5324629545211792, -0.2480563372373581, 0.06328146904706955, 0.19282281398773193, 0.11732423305511475, -0.159384623169899, -0.029612543061375618, 0.021258985623717308, 0.19607283174991608, 0.2230832576751709, -0.13792558014392853, -0.014248445630073547, 0.07593515515327454, 0.7081697583198547, 0.0767962634563446, -0.05337506905198097, 0.15200699865818024, 0.025545567274093628, 0.4683877229690552, 0.009847402572631836, 0.048304155468940735, -0.10335022211074829, 0.04516290873289108, -0.12992353737354279, 0.3849867582321167, 0.3575719892978668, -0.035062164068222046, -0.40881484746932983, -0.19008424878120422, -0.1404496431350708, -0.2707803547382355, -0.1451103836297989, 0.2071637064218521, -0.011007755994796753, 0.26844093203544617, -0.26818811893463135, -0.0008552335202693939, -0.625271737575531, -0.26341795921325684, -0.21695266664028168, 0.07378199696540833, -0.1432805210351944, -0.061356961727142334, -0.09579764306545258, 0.18139904737472534, 0.5374283194541931, -0.014485292136669159, 0.22884543240070343, -0.053188152611255646, 0.17693296074867249, -0.006292765494436026, 0.21971654891967773, -0.12621572613716125, 0.6073870658874512, -0.03163769096136093, -0.6186940670013428, 0.08628571033477783, -0.026277389377355576, 0.1942332535982132, -0.0617230050265789, -0.24460169672966003, -0.04623681306838989, -0.1580231636762619, 0.007806450128555298, 0.1113627701997757, -0.26218050718307495, 0.17703047394752502, 0.13508227467536926, -0.18810778856277466, -0.14227841794490814, 0.009900353848934174, -0.20179195702075958, 0.10706692934036255, 0.05931175872683525, -0.13103771209716797, -0.022595830261707306, 0.3206462264060974, -0.21949119865894318, 0.13496200740337372, 0.19279226660728455, -0.06711126118898392, -0.3279739320278168, 0.20695197582244873, -0.1376299411058426, 0.03216999024152756, 0.2355135977268219, 0.4853626787662506, -0.020292246714234352, 0.023536423221230507, -0.10569258034229279, 0.1508612334728241, -0.026720978319644928, -0.08567801117897034, 0.30635443329811096, -0.08812412619590759, 0.05039848014712334, -0.3131866455078125, -0.00572621077299118, -0.05031375586986542, 0.13130858540534973, -0.027124635875225067, -0.48641279339790344, 0.025396468117833138, -0.5897758603096008, 0.14193148910999298, -0.4746231436729431, 0.16893793642520905, 0.09323053061962128, 0.20819273591041565, 0.018476303666830063, -0.2399185597896576, 0.3015352785587311, 0.3876695930957794, 0.3308412730693817, -0.11462171375751495, 0.022492270916700363, -0.24681513011455536, -0.16917525231838226, 0.010279202833771706, 0.2080870419740677, 0.027805320918560028, -0.06716030836105347, 0.2344670593738556, -0.005340570583939552, 0.2808828353881836, -0.17877085506916046, -0.14579029381275177, 0.26692819595336914, -0.012637358158826828, 0.2618761658668518, 0.08152460306882858, -0.05821232497692108, 0.158844456076622, -0.0852639302611351, 0.023056769743561745, -0.26915979385375977, -0.13664914667606354, -0.05427449196577072, -0.17149139940738678, 0.03766109421849251, -0.35303428769111633, -0.22241103649139404, -0.08752869814634323, -0.4557877480983734, -0.015810005366802216, -0.09001065790653229, 0.15123385190963745, 0.05924399942159653, -0.24318277835845947, 0.21812070906162262, 0.0770217776298523, 0.44574809074401855, -0.28612080216407776, -0.06912732124328613, 0.13951949775218964, -0.24017366766929626, -0.16382819414138794, -0.04661747068166733, 0.05700410157442093, 0.34897539019584656, -0.10794135928153992, -0.17341148853302002, -0.16090203821659088, 0.22330307960510254, -0.1830662339925766, -0.05306877940893173, 0.09378427267074585, 0.22626027464866638, 0.03957078233361244, -0.11887939274311066, -0.25127461552619934, -0.28356924653053284, -0.055217839777469635, 0.3284425437450409, 0.26589155197143555, -0.1934022307395935, 0.11068941652774811, 0.06927290558815002, 0.25487953424453735, 0.16546550393104553, -0.1211419403553009, 0.23195382952690125, -0.047019585967063904, 0.15211088955402374, 0.03280763700604439, 0.19203504920005798, 0.37749335169792175, 0.14198413491249084, -0.1571834236383438, 0.42166751623153687, 0.0730040967464447, 0.07270986586809158, -0.005203031003475189, 0.03130490332841873, -0.4232287108898163, 0.10930697619915009, -0.05294324457645416, -0.1195872575044632, 0.04004694148898125, -0.041528694331645966, 0.1438291370868683, 0.2622818052768707, 0.012480488047003746, 0.1600395143032074, 0.15064874291419983, 0.3596021831035614, 0.0790378525853157, -0.07825309783220291, -0.2806657552719116, -0.33613163232803345, 0.025943398475646973, 0.13066738843917847, 0.16387532651424408, -0.3325507938861847, -0.21897581219673157, -0.005958594381809235, -0.10687187314033508, 0.13983355462551117, -0.5026083588600159, 0.15115663409233093, 0.1257794201374054, 0.14017032086849213, -0.059360429644584656, 0.05824361369013786, -0.3119865357875824, -0.20420512557029724, 0.06340578943490982, -0.05867411196231842, -0.30757570266723633, -0.03556056693196297, 0.38424956798553467, -0.1865505576133728, 0.033332664519548416, -0.12235400825738907, -0.14414046704769135, -0.6609082818031311, -0.010298684239387512, 0.2041558027267456, 0.1735139787197113, 0.2717384994029999, 0.012445701286196709, -0.12567225098609924, 0.2475273311138153, 0.17322131991386414, 0.16332969069480896, 0.23875780403614044, 0.24269980192184448, 0.3024882376194, 0.11467516422271729, 0.07717828452587128, -0.1990620493888855, 0.43425142765045166, 0.3470878005027771, -0.13965854048728943, 0.11830718070268631, 0.333251416683197, -0.1854003220796585, 0.44633203744888306, 0.04609934985637665, 0.31053096055984497, 0.17531101405620575, -0.09988880157470703, -0.07098379731178284, -0.7094784379005432, 0.36203259229660034, 0.1375150829553604, 0.1337180733680725, -0.016474977135658264, -0.5317456126213074, 0.509609580039978, 0.2025245726108551, -0.11344584822654724, 0.1495504081249237, -0.05395139753818512, -0.13862670958042145, 0.06220480054616928, 0.3245905041694641, 1.0514038801193237, -0.16233190894126892, -0.07382909953594208, -0.04881288856267929, -0.3102765679359436, 0.2443402260541916, -0.3928877115249634, 0.009602688252925873, 0.022510472685098648, -0.05642489343881607, -0.013535999692976475, 0.14629320800304413, 0.03898235410451889, -0.08003368973731995, -0.4059583842754364, 0.07805636525154114, 0.08953391015529633, -0.05610903725028038, 0.06729547679424286, 0.1413559913635254, 0.016161998733878136, -0.22172288596630096, -0.04138625040650368, 0.13696041703224182, -0.07423900067806244, 0.14593681693077087, -0.20410382747650146, 0.05973443016409874, 0.10023003816604614, -0.1495426446199417, -0.1346132904291153, 0.018076837062835693, 0.20768065750598907, -0.3765614628791809, -0.08968792855739594, -0.2644122242927551, 0.12626783549785614, 0.17041015625, -0.3795868754386902, 0.14336439967155457, -0.14892785251140594, 0.12878219783306122, -0.06362754851579666, 0.4736603796482086, 0.01569780893623829, 0.1319005936384201, 0.277976930141449, -0.23195019364356995, 0.1870061159133911, 0.1345650553703308, 0.2013966590166092, 0.0003049410879611969, -0.06667623668909073, -0.0635211169719696, -0.12975986301898956, -0.010602641850709915, -0.05885578319430351, 0.18793991208076477, -0.06695146858692169, -0.13763457536697388, 0.1980743110179901, 0.060939691960811615, -0.5724770426750183, 0.21486762166023254, -0.1355314403772354, -0.1201120913028717, -0.10407902300357819, 0.15550678968429565, 0.1380920261144638, -0.231702521443367, -0.15812529623508453, -0.023744868114590645, -0.11708377301692963, -0.2664095461368561, -0.441542387008667, -0.11212025582790375, 0.019734621047973633, -0.04557736963033676, 0.09517893195152283, -0.30072736740112305, 0.018087225034832954, 0.5037412047386169, 0.10583818703889847, 0.013229340314865112, -0.18293406069278717, 0.12757547199726105, -0.2159319370985031, 0.12337643653154373, -0.01039871945977211, 0.49870413541793823, -0.18867409229278564, 0.194810152053833, 0.09488535672426224, 0.28573688864707947, -0.4122648239135742, -0.13469284772872925, -0.46760472655296326, 0.41385313868522644, 0.07890062034130096, -0.028056025505065918, 0.003199417144060135, -0.2217143326997757, 0.13873325288295746, 0.04337061941623688, -0.11906138062477112, -0.19569316506385803, -0.05716659501194954, 0.09135349094867706, 0.20665588974952698, 0.038719914853572845, -0.24703748524188995, 0.30257612466812134, -0.31640422344207764, -0.120446115732193, 0.29939088225364685, 0.17820245027542114, -0.1117197573184967, 0.4704294204711914, -0.08971503376960754, 0.028604820370674133, 0.012990128248929977, -0.07842585444450378, 0.2521522641181946, 0.19316056370735168, 0.07413966208696365, 0.20674249529838562, 0.13770270347595215, -0.057743147015571594, 0.022270111367106438, 0.1833541989326477, 0.46100449562072754, -0.2681982219219208, 0.17793694138526917, 0.12801074981689453, 0.14210326969623566, 0.16621442139148712, 0.6141883134841919, 0.018384672701358795, -0.12503407895565033, -0.38525184988975525, 0.00233430415391922, 0.3778548240661621, -0.14005787670612335, -0.1127457544207573, -0.6339701414108276, -0.06292491406202316, 0.14348460733890533, 0.14240770041942596, 0.1543569415807724, 0.1138615608215332, -0.14300566911697388, -0.04842473566532135, 0.029085218906402588, -0.03042449802160263, 0.08640095591545105, 0.09304231405258179, -0.12764015793800354, 0.01016797125339508, 0.29457440972328186, -0.11127939820289612, 0.09711595624685287, 0.398017942905426, 0.20683914422988892, 0.6851893067359924, 0.4308643639087677, 0.48055317997932434, -0.10282827168703079, -0.014563784003257751, 0.06292732805013657, 0.24663904309272766, -0.148512601852417, 0.2717120945453644, -0.11944122612476349, 0.3207434415817261, -0.18828250467777252, 0.02698243223130703, -0.055146001279354095, -0.027591045945882797, -0.27663910388946533, -0.17681749165058136, 0.04586271196603775, -0.3099733889102936, 0.09790869057178497, -0.00912012904882431, 0.0338720865547657, 0.247767835855484, -0.012203909456729889, -0.2213352769613266, 0.018583431839942932, 0.1576537787914276, -0.04221150279045105, 0.18726575374603271, 0.242163747549057, -0.26073628664016724, 0.2231026291847229, 0.3348105549812317, 0.008320212364196777, 0.134566068649292, 0.4327993094921112, 0.33488819003105164, 0.06278659403324127, -0.11163286864757538, -0.0673949345946312, 0.014792856760323048, -0.07379762828350067, 0.0006266143172979355, 0.42178574204444885, 0.37853625416755676, 0.17313215136528015, 0.11026939749717712, 0.20102128386497498, -0.2697966396808624, 0.22262971103191376, -0.04112308844923973, -0.01252775825560093, -0.04305654764175415, 0.27572762966156006, -0.020142480731010437, -0.15882380306720734, 0.0362534336745739, 0.24743026494979858, -0.6546544432640076, -0.24180375039577484, 0.19961078464984894, -0.1877983659505844, 0.19490015506744385, -0.3373229503631592, 0.09248451888561249, 0.019965780898928642, 0.47738003730773926, 0.07611740380525589, 0.25292035937309265, 0.014481790363788605, -0.2124750316143036, -0.4515235424041748, -0.06032923609018326, 0.29878586530685425, -0.042035989463329315, -0.03750761225819588, 0.1514897495508194, 0.05052658170461655, 0.045276738703250885, -0.3662664294242859, 0.06281805038452148, -0.028137048706412315, 0.1547822654247284, -0.10065127164125443, 0.25903400778770447, -0.04538442939519882, 0.10099928081035614, -0.11248623579740524, -0.0725187361240387, -0.10818539559841156, -0.39403191208839417, 0.07621791213750839, -0.11563709378242493, 0.181527778506279, 0.20679789781570435, 0.14124241471290588, 0.3155965209007263, -0.12721534073352814, 0.6744199991226196, -0.34052255749702454, 0.10647798329591751, 0.3460898697376251, 0.12924210727214813, -0.11582915484905243, -0.3083781599998474, -0.2663634419441223, 0.3359813988208771, 0.16032621264457703, 0.28586918115615845, -0.16255171597003937, -0.0171970147639513, -0.08062852919101715, 0.1884758174419403, -0.3363383114337921, 0.07071705907583237, -0.43801772594451904, -0.1419677585363388, -0.015373867936432362, 0.05514014884829521, 0.2791272699832916, -0.13157612085342407, -0.5275958776473999, -0.3777334690093994, 0.292440265417099, 0.30960264801979065, -0.1862272024154663, -0.4442093074321747, 0.32459092140197754, 0.35475268959999084, -0.014086073264479637, -0.8077385425567627, 0.1907002329826355, 0.1443195641040802, 0.21215203404426575, -0.2071826308965683, 0.523348867893219, -0.14863908290863037, -0.14902302622795105, -0.13507896661758423, -0.06083333492279053, 0.007316797971725464, -0.05404006689786911, -0.10590364038944244, -0.4906332492828369 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
Windows ? What is it ? (Not sure not able to test, it's directly calling ffmpeg binary, so depending on the setup it could but can't say for sure without testing)
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
31
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun Windows ? What is it ? (Not sure not able to test, it's directly calling ffmpeg binary, so depending on the setup it could but can't say for sure without testing)
[ -0.1075393408536911, -0.4450654685497284, -0.03336530551314354, 0.16136056184768677, 0.524713397026062, -0.0170142762362957, -0.121528759598732, -0.24182850122451782, -0.02676522359251976, 0.1374652236700058, -0.1654297113418579, 0.4356122314929962, -0.08621787279844284, 0.3125342130661011, 0.2986299693584442, -0.011872544884681702, 0.135922372341156, 0.14396002888679504, -0.1126205325126648, -0.09749367833137512, -0.42231670022010803, -0.04780466854572296, -0.21836213767528534, -0.1446232795715332, -0.04401252046227455, 0.32940080761909485, 0.18542389571666718, 0.11907143145799637, -0.39010316133499146, -0.3744659721851349, 0.13323678076267242, 0.05380630865693092, 0.1342238485813141, 0.25971654057502747, -0.00011321719648549333, -0.39287763833999634, 0.3902698755264282, -0.36366528272628784, -0.18004174530506134, 0.09128966182470322, -0.27712398767471313, 0.21890272200107574, -0.2276896983385086, -0.11837515980005264, -0.3665328323841095, -0.12519684433937073, 0.05434885621070862, -0.11465081572532654, 0.08085177093744278, 0.13528461754322052, 0.23488101363182068, -0.11009015142917633, -0.05443591997027397, -0.03219381719827652, 0.18489766120910645, 0.29046565294265747, -0.047379378229379654, 0.19473481178283691, 0.03949471935629845, 0.0053367894142866135, 0.20076075196266174, 0.3528207540512085, -0.31740671396255493, -0.17493370175361633, 0.7632895112037659, -0.26537615060806274, 0.08483050763607025, -0.2220425009727478, 0.1734807789325714, 0.03635620325803757, 0.46501585841178894, -0.33754441142082214, 0.03946241736412048, 0.3340716063976288, -0.1394224464893341, -0.4171164035797119, -0.027957066893577576, -0.10660701245069504, -0.2656119167804718, -0.23795747756958008, -0.21567584574222565, -0.1501241773366928, -0.039655350148677826, -0.22282923758029938, -0.1362840235233307, 0.5253685712814331, -0.1639138162136078, -0.0921359434723854, 0.34313955903053284, 0.0480584055185318, -0.383029043674469, 0.18683958053588867, -0.03120194748044014, 0.10120972245931625, -0.036311570554971695, -0.08500856161117554, 0.29229411482810974, -0.19594797492027283, -0.2831113338470459, -0.16872276365756989, -0.02415149286389351, -0.1180824413895607, 0.32161641120910645, 0.1417396515607834, 0.10728773474693298, 0.15797507762908936, 0.5406299233436584, -0.19347470998764038, -0.20932193100452423, 0.11569482088088989, 0.24900871515274048, -0.002539161592721939, -0.4208182394504547, -0.1587601751089096, -0.17213639616966248, 0.18605494499206543, 0.13232757151126862, -0.2024325430393219, -0.49242454767227173, 0.45078250765800476, 0.0384245365858078, -0.0048742154613137245, 0.07733321934938431, 0.28336620330810547, 0.10466112196445465, -0.18909427523612976, 0.051247045397758484, -0.05908134579658508, -0.10237114131450653, 0.45885199308395386, 0.010899482294917107, 0.2211315631866455, -0.3127337396144867, -0.04569869488477707, -0.10794419050216675, -0.24709177017211914, 0.06157251447439194, 0.12753206491470337, 0.045987024903297424, -0.03653617575764656, -0.3017053008079529, 0.07760767638683319, 0.3984054625034332, 0.3294143080711365, 0.008284404873847961, 0.09183663874864578, -0.23106996715068817, -0.016254179179668427, -0.18051564693450928, 0.32385480403900146, 0.22816872596740723, -0.18140947818756104, -0.38673582673072815, 0.26393255591392517, -0.17389482259750366, -0.29928362369537354, -0.09728214889764786, 0.13645096123218536, -0.1071871891617775, -0.2994607388973236, 0.5816202759742737, -0.27262258529663086, -0.3373411297798157, 0.09500914067029953, 0.15865343809127808, 0.03980783373117447, -0.2893723249435425, -0.21450158953666687, 0.03470807895064354, -0.34666529297828674, 0.41214311122894287, -0.08654806017875671, 0.21169890463352203, -0.053824134171009064, 0.1823561042547226, 0.16696283221244812, 0.01312517374753952, -0.7094701528549194, -0.2772774398326874, 0.12200725823640823, -0.07105085998773575, 0.19273823499679565, 0.1184823215007782, 0.11571533232927322, 0.3654271960258484, -0.2842457592487335, 0.09986484050750732, 0.14127814769744873, 0.047390345484018326, -0.34199708700180054, -0.11961987614631653, 0.0975305438041687, 0.1364772766828537, 0.1454838216304779, 0.07563646882772446, -0.10903201252222061, -0.014167405664920807, 0.5869883894920349, 0.14887741208076477, 0.1670330911874771, 0.04804755747318268, 0.006762012839317322, 0.4784218668937683, 0.04903848096728325, 0.11552152782678604, -0.1571468710899353, 0.23180031776428223, -0.2087697684764862, 0.2839972674846649, 0.23143161833286285, 0.08524396270513535, -0.3193219304084778, -0.11405088752508163, 0.0691026896238327, -0.06310875713825226, -0.2586040794849396, 0.16359932720661163, 0.033109068870544434, 0.06013599410653114, -0.310635507106781, -0.13208533823490143, -0.35770151019096375, -0.15641425549983978, -0.30026963353157043, 0.19136622548103333, -0.14381538331508636, -0.03946339339017868, 0.011474587954580784, -0.18460169434547424, 0.4087635278701782, 0.14403170347213745, 0.1244904026389122, 0.04426933452486992, 0.1472807079553604, -0.02667863480746746, 0.27032214403152466, 0.0054658688604831696, 0.5545582175254822, -0.04038446396589279, -0.668132483959198, 0.1207457110285759, 0.22471825778484344, 0.26605424284935, -0.05539212003350258, 0.055617205798625946, -0.06981998682022095, -0.2527681887149811, -0.002477012574672699, 0.04876958578824997, -0.14987345039844513, -0.06976226717233658, 0.13860733807086945, -0.04631949961185455, -0.018203675746917725, 0.21389511227607727, 0.00821979995816946, -0.06084710359573364, 0.19951525330543518, -0.12618733942508698, 0.028795406222343445, 0.4234263002872467, -0.2686115801334381, -0.050856590270996094, 0.19715538620948792, -0.2372645139694214, -0.23549172282218933, 0.047482918947935104, -0.15637680888175964, 0.22192199528217316, 0.06389430165290833, 0.30418282747268677, 0.3098437190055847, -0.06691984087228775, -0.10211841017007828, 0.2879713773727417, 0.17525409162044525, -0.1261068731546402, 0.28942549228668213, -0.2527889311313629, 0.25761348009109497, -0.40402185916900635, -0.0006109848618507385, 0.004809292033314705, -0.1262281984090805, -0.06408148258924484, -0.23028725385665894, 0.1754366159439087, -0.5714707970619202, -0.06071562319993973, -0.5416095852851868, 0.06010926514863968, 0.10657893866300583, 0.14371946454048157, 0.08735724538564682, -0.2366938441991806, 0.24322493374347687, 0.1399284303188324, 0.45831066370010376, -0.15918001532554626, -0.045505933463573456, -0.24983054399490356, -0.17756876349449158, -0.0001387074589729309, 0.1513698846101761, 0.0721498429775238, -0.28567683696746826, 0.14698392152786255, -0.11765940487384796, 0.3130350112915039, -0.2447703778743744, -0.2436777651309967, 0.2450876533985138, -0.06695642322301865, 0.4112420380115509, 0.0544697567820549, -0.13794651627540588, 0.04876803606748581, -0.12393957376480103, 0.017510829493403435, -0.22319474816322327, -0.05218419432640076, -0.28959041833877563, -0.05649197846651077, -0.08803117275238037, -0.3484500050544739, -0.09880124777555466, -0.02091103605926037, -0.4227975606918335, 0.0005576983094215393, -0.15357278287410736, 0.18452000617980957, 0.061028916388750076, -0.4587871730327606, 0.18699854612350464, 0.2593332827091217, 0.26162469387054443, -0.35977843403816223, 0.07076404988765717, -0.06925666332244873, -0.12241394072771072, -0.16927702724933624, -0.11944311857223511, 0.18451713025569916, 0.27293363213539124, -0.17846153676509857, -0.293387770652771, -0.33022111654281616, 0.29642337560653687, -0.20558767020702362, -0.11463057994842529, -0.05171915143728256, 0.15458253026008606, -0.04267466440796852, -0.19552776217460632, -0.4005628228187561, -0.2556297779083252, -0.13484370708465576, 0.12619131803512573, 0.21997138857841492, -0.16311317682266235, 0.24749580025672913, -0.09313538670539856, 0.2752538323402405, 0.20536667108535767, -0.07692617177963257, 0.13945573568344116, 0.17353247106075287, 0.23749060928821564, 0.07270073890686035, 0.032433465123176575, 0.5013384819030762, -0.025159582495689392, -0.3533020615577698, 0.49351441860198975, -0.04548905789852142, -0.0018486864864826202, -0.02629350684583187, 0.015255365520715714, -0.2565914988517761, 0.2618294656276703, 0.04235178977251053, -0.1374904215335846, -0.06688731163740158, -0.1449556201696396, 0.27172115445137024, 0.07305119931697845, -0.03989599272608757, 0.1900240182876587, 0.493183434009552, 0.3482195734977722, 0.006812241394072771, 0.06053534522652626, -0.32374072074890137, -0.3341286778450012, 0.13866540789604187, 0.15188610553741455, 0.24861028790473938, -0.4881286323070526, -0.26299697160720825, 0.13581222295761108, -0.07196550816297531, 0.4447285532951355, -0.34342139959335327, 0.07176920771598816, 0.3546231687068939, 0.27326729893684387, -0.06395826488733292, -0.0961751714348793, -0.2186945378780365, -0.05654288828372955, 0.0014654994010925293, -0.11823596060276031, 0.011671856045722961, -0.004545295611023903, 0.3163633644580841, -0.32685378193855286, 0.025299008935689926, -0.11758646368980408, -0.2537754774093628, -0.6330893635749817, 0.2558964788913727, 0.17076557874679565, 0.25514474511146545, 0.13055458664894104, -0.12691368162631989, 0.11054974794387817, 0.17743396759033203, 0.19875165820121765, 0.34659436345100403, 0.08793821930885315, 0.0028598224744200706, 0.31658846139907837, -0.06425851583480835, -0.14301186800003052, 0.056118473410606384, 0.2849595248699188, 0.3168722987174988, 0.10575693845748901, 0.05451595038175583, 0.4078744053840637, -0.053161244839429855, 0.5076501369476318, 0.171762615442276, 0.2740861177444458, 0.18554289638996124, -0.14948421716690063, -0.03387223184108734, -0.9255505204200745, 0.1927255243062973, 0.3573833107948303, 0.13427585363388062, -0.09081776440143585, -0.3327423632144928, 0.5982168912887573, 0.22205494344234467, -0.2417830377817154, 0.17883501946926117, -0.1398276835680008, -0.1628323644399643, -0.15141823887825012, 0.5909019112586975, 1.2718472480773926, -0.01311347633600235, 0.028051093220710754, -0.0012872815132141113, -0.5707298517227173, 0.11118988692760468, -0.3281761407852173, 0.20142364501953125, -0.02514297515153885, -0.26923298835754395, -0.17997115850448608, 0.06773382425308228, 0.054516419768333435, -0.22147472202777863, -0.34294044971466064, -0.08283998817205429, 0.028529904782772064, 0.03661126643419266, 0.1957792341709137, -0.13949741423130035, 0.0048366691917181015, -0.04466734826564789, -0.04622284322977066, 0.12890160083770752, 0.06304754316806793, 0.4285392463207245, -0.4082919657230377, -0.05903749167919159, 0.24507153034210205, -0.22218142449855804, -0.3569537401199341, 0.1603357195854187, 0.2727007567882538, -0.31962525844573975, -0.06308421492576599, -0.14949576556682587, 0.035287901759147644, 0.11994065344333649, -0.021413646638393402, -0.08087718486785889, -0.052291832864284515, 0.2698593735694885, 0.2549112141132355, 0.45746174454689026, 0.2574350833892822, 0.0238422192633152, 0.3288121819496155, -0.20007237792015076, 0.26486194133758545, 0.25650128722190857, 0.16404201090335846, 0.05407918989658356, -0.2306092232465744, 0.023265641182661057, 0.05727051943540573, -0.019598115235567093, -0.060516051948070526, -0.006644554436206818, -0.08759241551160812, -0.06885060667991638, 0.14012186229228973, -0.3433379530906677, -0.4130746126174927, 0.17792516946792603, -0.3625224232673645, -0.3361568748950958, -0.16693149507045746, 0.19363714754581451, 0.14401359856128693, -0.2532631754875183, -0.0370587483048439, 0.033021535724401474, -0.20762787759304047, -0.27740949392318726, -0.38664576411247253, -0.19841931760311127, -0.012716911733150482, 0.030475005507469177, 0.21919997036457062, -0.329641729593277, 0.06677167117595673, 0.2996228039264679, 0.13041916489601135, 0.01063842698931694, -0.32656973600387573, 0.03326420485973358, -0.05391624569892883, 0.09290703386068344, -0.12770496308803558, 0.3670514225959778, -0.17514324188232422, 0.20820848643779755, 0.2666178345680237, 0.006455112248659134, -0.36186984181404114, -0.05842792987823486, -0.3840615451335907, 0.29566821455955505, 0.14313733577728271, -0.004635855555534363, -0.13388387858867645, -0.10215762257575989, 0.1130651980638504, 0.05193839222192764, -0.25087401270866394, -0.14581213891506195, -0.02235051803290844, 0.13358920812606812, 0.14324474334716797, -0.2199377417564392, -0.04985673725605011, 0.4015260934829712, -0.3374097943305969, 0.08699335902929306, 0.2418428659439087, 0.2996921241283417, -0.04745059460401535, 0.36967334151268005, -0.1635434627532959, 0.18649446964263916, 0.006869100034236908, -0.017653021961450577, 0.152170330286026, 0.528315007686615, -0.06855975091457367, -0.006254903972148895, 0.09007176011800766, -0.03777754679322243, -0.03907123580574989, 0.24014759063720703, 0.42120563983917236, -0.2580469846725464, 0.17711123824119568, 0.14011260867118835, 0.12570732831954956, 0.14713244140148163, 0.5878167152404785, 0.13757430016994476, -0.21356482803821564, -0.4874335825443268, -0.03504256159067154, 0.2999817728996277, -0.17112763226032257, -0.1427549421787262, -0.7280306220054626, -0.027116987854242325, -0.1547478586435318, 0.07389011979103088, 0.17060397565364838, 0.12277254462242126, -0.08227235078811646, -0.06074822321534157, 0.044544488191604614, 0.1661745309829712, 0.23714923858642578, 0.274013876914978, -0.015930544584989548, 0.12766994535923004, 0.1822296679019928, -0.1174556314945221, 0.11388114094734192, 0.4942810535430908, 0.12309587001800537, 0.584119975566864, 0.42609551548957825, 0.36829066276550293, 0.011452116072177887, -0.010678377002477646, -0.07987044751644135, 0.25997817516326904, -0.1069091260433197, 0.4358084499835968, -0.027721770107746124, 0.2632550895214081, -0.3921094834804535, -0.016579458490014076, -0.24364614486694336, 0.053259313106536865, -0.32062768936157227, -0.2539833188056946, 0.0681007131934166, -0.1963941901922226, 0.0852975994348526, 0.20355843007564545, 0.06720626354217529, 0.3209637999534607, 0.021122045814990997, -0.12967798113822937, -0.11062754690647125, 0.35326337814331055, -0.2612708508968353, 0.14925554394721985, 0.2543970048427582, -0.26815083622932434, 0.2531503140926361, 0.36149609088897705, 0.05033807083964348, 0.21490314602851868, 0.4363328516483307, 0.45107072591781616, 0.2705996632575989, -0.29280686378479004, -0.0977264940738678, 0.09272773563861847, 0.025233766064047813, 0.05418666452169418, 0.4968438744544983, 0.35927614569664, 0.27767494320869446, -0.021100115031003952, 0.19799895584583282, -0.17690986394882202, 0.32011228799819946, -0.019074779003858566, 0.042237289249897, 0.018643712624907494, 0.22122643887996674, -0.06418151408433914, 0.12688738107681274, -0.17587211728096008, 0.11385451257228851, -0.6640983819961548, -0.33591899275779724, 0.26051974296569824, -0.052437923848629, 0.28725603222846985, -0.19654744863510132, 0.08129032701253891, -0.12109246850013733, 0.5156933069229126, 0.12023906409740448, 0.20241102576255798, -0.04120422527194023, -0.15744616091251373, -0.35114648938179016, 0.17832906544208527, 0.4784063994884491, -0.3072231411933899, -0.15774697065353394, -0.11199390888214111, 0.043309930711984634, -0.1006290465593338, -0.24177731573581696, 0.04212724417448044, -0.07567629963159561, 0.20465455949306488, -0.09237749874591827, 0.4147614538669586, -0.166757732629776, 0.1875946968793869, -0.18892790377140045, -0.1008366122841835, 0.08905231207609177, -0.3915673494338989, 0.0686797946691513, -0.05757531523704529, 0.08962744474411011, 0.10312910377979279, 0.39498892426490784, 0.3824324309825897, -0.20503948628902435, 0.7964537143707275, -0.2855170667171478, -0.012625429779291153, 0.25567665696144104, 0.11308275163173676, -0.15567058324813843, -0.16280844807624817, -0.2678307294845581, 0.1090327799320221, 0.1040210872888565, 0.2844104766845703, -0.12644349038600922, 0.04064251482486725, -0.08543448150157928, 0.36246299743652344, -0.5017819404602051, -0.0937405452132225, -0.6421980857849121, -0.10977184772491455, 0.1748405545949936, 0.18322283029556274, 0.19658561050891876, -0.01026111003011465, -0.5205003023147583, -0.4137892425060272, 0.49958091974258423, 0.1250101923942566, -0.09040085226297379, -0.4751055836677551, 0.27197661995887756, 0.18793031573295593, 0.007427542470395565, -0.7150178551673889, 0.010359510779380798, 0.10437951236963272, 0.2593042254447937, -0.21182864904403687, 0.37158334255218506, -0.3171451985836029, -0.2333066165447235, -0.17932921648025513, -0.11224809288978577, -0.022002920508384705, -0.08963265269994736, 0.06904029846191406, -0.39673149585723877 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
It's one of the OS we're supposed to support :P (for the better and for the worse)
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
17
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun It's one of the OS we're supposed to support :P (for the better and for the worse)
[ -0.13812923431396484, -0.3636179566383362, -0.07918384671211243, 0.06227964162826538, 0.536729633808136, -0.10016831755638123, -0.10922963917255402, -0.2699359059333801, 0.008182190358638763, 0.4297839403152466, -0.18581008911132812, 0.514771044254303, -0.1883053034543991, 0.32294905185699463, 0.1015164777636528, 0.04960374906659126, 0.19997696578502655, 0.23574161529541016, -0.11313696205615997, -0.07865090668201447, -0.2534734308719635, -0.03160752356052399, -0.10300574451684952, -0.2842128872871399, -0.10756933689117432, 0.3092257082462311, 0.26245784759521484, -0.03987208753824234, -0.5567956566810608, -0.408160001039505, 0.08666408061981201, 0.2699001133441925, 0.07079946994781494, 0.19292056560516357, -0.0001088950812118128, -0.3104291260242462, 0.4373747706413269, -0.3783830404281616, -0.2999514937400818, -0.08932627737522125, -0.21014279127120972, 0.15688036382198334, -0.11962972581386566, -0.06350654363632202, -0.48433828353881836, -0.13598114252090454, -0.010081050917506218, 0.06257420033216476, 0.17818942666053772, 0.09503701329231262, 0.2573830187320709, -0.1663360744714737, 0.06495460867881775, -0.24121128022670746, 0.17351138591766357, 0.14765411615371704, -0.15384076535701752, 0.14172837138175964, 0.14306823909282684, 0.06661831587553024, 0.13392257690429688, 0.36016854643821716, -0.1891392171382904, -0.122494176030159, 0.6944577693939209, -0.3109442889690399, 0.144860178232193, -0.12495391070842743, 0.1990405023097992, 0.15002161264419556, 0.5871973633766174, -0.1899695098400116, -0.23834294080734253, 0.30644121766090393, -0.05624574422836304, -0.3930218517780304, -0.09530144184827805, -0.17737559974193573, -0.1559775173664093, -0.08875389397144318, -0.20801563560962677, -0.18058855831623077, -0.017516303807497025, -0.11926291882991791, -0.09894420951604843, 0.5799660682678223, -0.13225175440311432, -0.2578253448009491, 0.20243310928344727, 0.0118746068328619, -0.4067569673061371, 0.38125690817832947, 0.06694041937589645, -0.04676968604326248, -0.10389819741249084, -0.035580746829509735, 0.3006562888622284, -0.3921349346637726, -0.0587882399559021, -0.0980694591999054, 0.0629677101969719, -0.14076516032218933, 0.2822602689266205, 0.05095541104674339, -0.012081600725650787, 0.2678969204425812, 0.47016197443008423, -0.050219595432281494, -0.15309056639671326, 0.23778589069843292, 0.3256264328956604, -0.07362694293260574, -0.2857929766178131, -0.06060527265071869, -0.202194944024086, 0.08678106963634491, 0.06613840162754059, -0.18659812211990356, -0.351487398147583, 0.258083701133728, 0.06178560107946396, -0.022887257859110832, 0.0333346351981163, 0.42358729243278503, -0.0303332582116127, -0.151532381772995, -0.05883321166038513, 0.1598527878522873, -0.17498593032360077, 0.48585620522499084, -0.18809255957603455, 0.1694052517414093, -0.1969808042049408, -0.0011043399572372437, -0.06792998313903809, -0.3112353980541229, 0.14000576734542847, 0.04230831563472748, 0.06661131232976913, -0.08183538913726807, -0.3816134035587311, 0.13012853264808655, 0.1899682879447937, 0.21165288984775543, 0.12738282978534698, 0.023915501311421394, -0.31031396985054016, -0.14430463314056396, -0.2396317422389984, 0.28171685338020325, 0.17755478620529175, -0.27509641647338867, -0.4125749468803406, 0.32929688692092896, -0.1003841757774353, -0.35510557889938354, -0.0324566587805748, 0.2065558135509491, 0.03883013874292374, -0.1861579269170761, 0.38038650155067444, -0.17559285461902618, -0.2267654538154602, 0.15363188087940216, 0.20971718430519104, -0.1558808535337448, -0.003348354250192642, -0.2613857090473175, -0.00671607069671154, -0.18727648258209229, 0.4261889159679413, -0.0783984363079071, 0.26885557174682617, 0.10304462909698486, 0.23606228828430176, 0.1736479252576828, 0.08254770934581757, -0.689937949180603, -0.4106024205684662, -0.13671711087226868, -0.04067360237240791, 0.05161628872156143, 0.16494040191173553, 0.0078105628490448, 0.4615308344364166, -0.13471180200576782, 0.061133790761232376, 0.09344116598367691, 0.1365475356578827, -0.1448395699262619, -0.13156934082508087, 0.021365715190768242, 0.16027873754501343, 0.226103737950325, 0.07609941065311432, -0.07098590582609177, 0.09168152511119843, 0.631299614906311, 0.1601700335741043, 0.041646845638751984, 0.05220181494951248, 0.0360008142888546, 0.44484347105026245, 0.029667869210243225, 0.08083732426166534, -0.08298613131046295, 0.024837259203195572, -0.15960797667503357, 0.4292411804199219, 0.46182045340538025, 0.0649222880601883, -0.3363645672798157, -0.1839299499988556, -0.0315353162586689, -0.13800214231014252, -0.21067696809768677, 0.2118034064769745, -0.11363600194454193, 0.17229293286800385, -0.14968039095401764, -0.059462226927280426, -0.6365839242935181, -0.2889011800289154, -0.1512046903371811, 0.11331188678741455, -0.14981339871883392, -0.1989697515964508, -0.08933502435684204, 0.05269623547792435, 0.47372448444366455, -0.004453353583812714, 0.20977427065372467, -0.033809833228588104, 0.1632068008184433, -0.04181160777807236, 0.19638942182064056, -0.11756523698568344, 0.6208863258361816, -0.02956988848745823, -0.620429515838623, 0.045834749937057495, 0.05978413671255112, 0.14361169934272766, -0.08446507900953293, -0.0761086568236351, -0.12964901328086853, -0.1488848626613617, -0.036854811012744904, 0.08841443061828613, -0.25004178285598755, 0.1756710261106491, 0.09848253428936005, -0.06366755813360214, -0.1276514232158661, 0.11959706246852875, -0.23225615918636322, 0.018940601497888565, 0.04165485501289368, -0.09094850718975067, -0.03750023990869522, 0.3261012136936188, -0.13618941605091095, 0.03588943928480148, 0.20256194472312927, 0.00205327570438385, -0.3124801218509674, 0.07287142425775528, -0.24174444377422333, -0.03490021824836731, 0.19117283821105957, 0.41435450315475464, 0.09327366948127747, 0.050832442939281464, -0.14560852944850922, 0.1961258053779602, -0.00035610049962997437, -0.08620840311050415, 0.34653687477111816, -0.019487477838993073, 0.1507035344839096, -0.3011876344680786, 0.031235400587320328, -0.04073542356491089, 0.02852756343781948, -0.04109017550945282, -0.4868459701538086, 0.0625925213098526, -0.47516629099845886, 0.1471468210220337, -0.4156714975833893, 0.008706541731953621, 0.0074278321117162704, 0.2594485878944397, 0.01099824532866478, -0.2376052439212799, 0.36509525775909424, 0.4215834438800812, 0.36927860975265503, -0.09569036960601807, 0.062401823699474335, -0.29335588216781616, -0.18465742468833923, 0.027466919273138046, 0.19605134427547455, -0.02216140180826187, -0.25416088104248047, 0.17172200977802277, -0.14753063023090363, 0.21539609134197235, -0.15542607009410858, -0.2821976840496063, 0.25873786211013794, -0.11530528962612152, 0.2654535174369812, 0.0914527103304863, -0.10187689960002899, 0.12399287521839142, -0.0639994665980339, -0.01767328754067421, -0.2632533311843872, -0.2382786124944687, -0.13118286430835724, -0.05178475379943848, 0.024118291214108467, -0.34100812673568726, -0.2344939112663269, -0.0057304296642541885, -0.49475815892219543, -0.007267884910106659, -0.10709358751773834, 0.16275089979171753, 0.2078760415315628, -0.28128209710121155, 0.08431511372327805, 0.18799953162670135, 0.43275853991508484, -0.24591204524040222, 0.0032878555357456207, -0.0027914531528949738, -0.17426519095897675, -0.13718073070049286, -0.0844535231590271, 0.09793362021446228, 0.34360456466674805, -0.21567343175411224, -0.31284770369529724, -0.3087134063243866, 0.2534533143043518, -0.1159086525440216, -0.15299688279628754, -0.004589645192027092, 0.29268914461135864, 0.04272707179188728, -0.17783471941947937, -0.31169643998146057, -0.2815699279308319, -0.06966235488653183, 0.2658778429031372, 0.20268547534942627, -0.3117336332798004, 0.11629266291856766, 0.034700553864240646, 0.283969521522522, 0.154898002743721, -0.008808813989162445, 0.18204042315483093, 0.11736192554235458, 0.2960786521434784, -0.0853360965847969, 0.10829760134220123, 0.40581196546554565, 0.20739233493804932, -0.24285916984081268, 0.4687325954437256, 0.03169644623994827, 0.02222331427037716, 0.009936515241861343, 0.08749741315841675, -0.3391355872154236, 0.18529365956783295, -0.07048482447862625, -0.05157678574323654, -0.055089615285396576, -0.11431168019771576, 0.27212512493133545, 0.2640795111656189, -0.0279033612459898, 0.2626835107803345, 0.37142735719680786, 0.2307143211364746, 0.09172093868255615, 0.0021507255733013153, -0.2275361567735672, -0.3367975056171417, 0.05953023210167885, 0.1717315912246704, 0.08086151629686356, -0.4065566956996918, -0.31331077218055725, 0.07167109102010727, -0.12121953815221786, 0.18700852990150452, -0.4432258903980255, 0.061175696551799774, 0.21555322408676147, 0.23599708080291748, 0.03998661786317825, -0.0682886391878128, -0.2022123485803604, -0.054768096655607224, 0.1152716875076294, -0.04538705199956894, -0.20158249139785767, -0.038480762392282486, 0.30800023674964905, -0.2697359323501587, 0.05464489385485649, -0.19925853610038757, -0.22889074683189392, -0.6064714193344116, 0.08777634054422379, 0.186542347073555, 0.2409791499376297, 0.28366559743881226, -0.12679733335971832, -0.13522396981716156, 0.22044111788272858, 0.06482330709695816, 0.12049534916877747, 0.10857994854450226, 0.11941232532262802, 0.2835504114627838, 0.05324167385697365, -0.08363007009029388, -0.10069042444229126, 0.40168797969818115, 0.3748776912689209, -0.2234012484550476, 0.028187230229377747, 0.2805766761302948, -0.18705448508262634, 0.40066012740135193, 0.08090852946043015, 0.33837002515792847, 0.14357881247997284, -0.047008439898490906, -0.018077880144119263, -0.6845206022262573, 0.28918254375457764, 0.20990340411663055, 0.07567888498306274, -0.07221490144729614, -0.3639843165874481, 0.3903597593307495, 0.10676568746566772, -0.08709433674812317, 0.11334145069122314, -0.042932212352752686, -0.1388159543275833, 0.09627562761306763, 0.35574233531951904, 1.182674527168274, -0.18843527138233185, -0.15105248987674713, -0.07310941815376282, -0.318583607673645, 0.27653738856315613, -0.3713459372520447, 0.21558445692062378, -0.05418877303600311, -0.11155009269714355, -0.01686736010015011, 0.19802111387252808, -0.034715019166469574, -0.1788894534111023, -0.3564041554927826, 0.039683420211076736, 0.04194377362728119, 0.01017957553267479, 0.0983775407075882, 0.09329217672348022, -0.015665708109736443, -0.14328554272651672, -0.0010990798473358154, 0.15463705360889435, -0.046425871551036835, 0.2097313404083252, -0.34647759795188904, 0.043059587478637695, 0.08746907114982605, -0.22677113115787506, -0.22547851502895355, 0.05558677017688751, 0.2740780711174011, -0.28652042150497437, 0.1050809919834137, -0.3011311888694763, 0.0194266214966774, 0.1015719324350357, -0.19235281646251678, 0.15103653073310852, -0.14078544080257416, 0.1266142874956131, 0.097426638007164, 0.3194781243801117, 0.10282434523105621, 0.07011941820383072, 0.3250945806503296, -0.2456352710723877, 0.28001469373703003, 0.026696503162384033, 0.13709160685539246, -0.08703994750976562, -0.2071089744567871, -0.0880047082901001, -0.0028381794691085815, -0.014375539496541023, 0.07626493275165558, 0.16048336029052734, -0.0778212770819664, -0.17581935226917267, 0.20133405923843384, -0.12555882334709167, -0.42809075117111206, 0.08554862439632416, -0.06348578631877899, -0.2571905255317688, -0.14039930701255798, 0.19295014441013336, 0.154300719499588, -0.28393369913101196, -0.09023414552211761, 0.025796983391046524, -0.23746371269226074, -0.31484827399253845, -0.5119460225105286, -0.08408147841691971, -0.06322812288999557, -0.020555049180984497, 0.04784352332353592, -0.34398365020751953, 0.05670629441738129, 0.5339525938034058, 0.12447288632392883, 0.06948757916688919, -0.1748747080564499, 0.110709547996521, -0.1205175518989563, 0.10939222574234009, -0.20867453515529633, 0.41331982612609863, -0.16953471302986145, 0.19126224517822266, 0.1278369128704071, 0.192533478140831, -0.42042243480682373, -0.20211435854434967, -0.5550296902656555, 0.2946173846721649, 0.09722719341516495, -0.14506414532661438, -0.04704759269952774, -0.1956115961074829, 0.19031549990177155, -0.017094358801841736, -0.18401342630386353, -0.2302471399307251, -0.009809843264520168, 0.08994045853614807, 0.2270597219467163, 0.08149676769971848, -0.1533021181821823, 0.401059091091156, -0.34796732664108276, 0.005652172490954399, 0.28986579179763794, 0.21939873695373535, -0.017397478222846985, 0.4422209560871124, -0.0968167781829834, 0.299434095621109, 0.10907137393951416, -0.07168212532997131, 0.15057438611984253, 0.4249190092086792, -0.1303899735212326, 0.05227694660425186, 0.1406322568655014, -0.038089074194431305, 0.05538157746195793, 0.15673939883708954, 0.4521750211715698, -0.11403066664934158, 0.20144137740135193, 0.09300276637077332, 0.08887848258018494, 0.2100418210029602, 0.6138980388641357, -0.019533976912498474, -0.20532581210136414, -0.5107132792472839, 0.11821239441633224, 0.393960177898407, -0.13581357896327972, -0.1447424441576004, -0.6703160405158997, -0.026649631559848785, -0.010726835578680038, 0.14905497431755066, 0.1606094241142273, 0.05412149429321289, -0.09573957324028015, 0.08117125928401947, 0.03893490508198738, 0.05808289349079132, 0.07367992401123047, -0.018881317228078842, -0.11711446195840836, 0.030689019709825516, 0.21673160791397095, -0.13280120491981506, 0.0746258944272995, 0.3718613386154175, 0.21430402994155884, 0.6288391947746277, 0.44080716371536255, 0.487203449010849, -0.029820546507835388, -0.03262952342629433, -0.007686130702495575, 0.0894104540348053, -0.08813822269439697, 0.2675769627094269, -0.10032959282398224, 0.24539968371391296, -0.21691514551639557, 0.02633708156645298, -0.14702345430850983, -0.05468275770545006, -0.3470790684223175, -0.14424024522304535, 0.08211547136306763, -0.21863308548927307, 0.09749194979667664, 0.01064113900065422, 0.014677364379167557, 0.33508384227752686, 0.02110861986875534, -0.12958241999149323, -0.08106289803981781, 0.20127032697200775, -0.2002134621143341, 0.07923431694507599, 0.30084577202796936, -0.26536622643470764, 0.30170783400535583, 0.33901387453079224, 0.004493348300457001, 0.03076724335551262, 0.5086667537689209, 0.4083918631076813, 0.19073426723480225, -0.22760212421417236, -0.1905990093946457, 0.08266092836856842, -0.031352147459983826, 0.04465305805206299, 0.43353596329689026, 0.35741129517555237, 0.25164535641670227, 0.056727368384599686, 0.20167501270771027, -0.2574690878391266, 0.36314037442207336, -0.014464881271123886, 0.011915566399693489, 0.038464613258838654, 0.26672056317329407, 0.10261966288089752, -0.019422467797994614, -0.06613509356975555, 0.2680722773075104, -0.7293512225151062, -0.2503381073474884, 0.09211787581443787, -0.12745589017868042, 0.21175992488861084, -0.31585076451301575, 0.11107434332370758, 0.10058769583702087, 0.508813738822937, 0.18502268195152283, 0.2936345040798187, 0.031216628849506378, -0.11807264387607574, -0.23660576343536377, 0.10291881114244461, 0.3060837686061859, -0.019674208015203476, -0.17988881468772888, 0.1071673035621643, 0.10164530575275421, 0.03126375377178192, -0.30384451150894165, 0.08031971007585526, 0.00039569754153490067, 0.17841091752052307, -0.10774998366832733, 0.38363391160964966, 0.053578391671180725, -0.09377999603748322, -0.10362600535154343, 0.005913034081459045, 0.024877626448869705, -0.3990422785282135, 0.09159988909959793, -0.06543543934822083, 0.1733369380235672, 0.2969638705253601, 0.26127392053604126, 0.3393075466156006, -0.10408440232276917, 0.5836043953895569, -0.3258425295352936, -0.04531353339552879, 0.27976110577583313, 0.03855998069047928, -0.23480571806430817, -0.12374449521303177, -0.3055809438228607, 0.2080501914024353, 0.16649512946605682, 0.17792455852031708, -0.1330096572637558, 0.09360616654157639, -0.12146277725696564, 0.22977478802204132, -0.40836915373802185, 0.029871104285120964, -0.42583054304122925, -0.19143402576446533, 0.07075769454240799, 0.010451097041368484, 0.280234694480896, -0.1314769834280014, -0.5227546095848083, -0.5916610956192017, 0.25488680601119995, 0.316800594329834, -0.08136725425720215, -0.5209269523620605, 0.29042649269104004, 0.45016127824783325, 0.028476029634475708, -0.8327394723892212, 0.08027710765600204, 0.10655878484249115, 0.22934147715568542, -0.20579323172569275, 0.4813513457775116, -0.12825331091880798, -0.15050244331359863, -0.15613004565238953, -0.15296262502670288, -0.015048038214445114, -0.06603547930717468, -0.021389389410614967, -0.4380332827568054 ]
https://github.com/huggingface/datasets/pull/2661
Add SD task for SUPERB
> Note that if we agree to leave the dataset as it is now, 2 additional custom functions must be used: > > * one to generate the 2D array labels > * one to load the audio file into an array, but taking into account start/end to cut the audio > > Is there a way we can give these functions ready to be used? Or should we leave this entirely to the end user? This is not trivial... +1 on providing the necessary functions on the dataset card. aside from that, the current implementation looks great from my perspective!
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun
101
text: Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). TODO: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [x] README: tags + description sections - ~~Add DER metric~~ (we leave the DER metric for a follow-up PR) Related to #2619. Close #2653. cc: @lewtun > Note that if we agree to leave the dataset as it is now, 2 additional custom functions must be used: > > * one to generate the 2D array labels > * one to load the audio file into an array, but taking into account start/end to cut the audio > > Is there a way we can give these functions ready to be used? Or should we leave this entirely to the end user? This is not trivial... +1 on providing the necessary functions on the dataset card. aside from that, the current implementation looks great from my perspective!
[ 0.004760470241308212, -0.14448295533657074, -0.04265676438808441, 0.10509069263935089, 0.333545446395874, -0.2677443325519562, 0.10926790535449982, -0.3114056885242462, 0.003682157024741173, 0.42699605226516724, -0.3199990391731262, 0.5882566571235657, -0.3002643585205078, 0.38024231791496277, 0.20910178124904633, 0.10763922333717346, 0.026407770812511444, 0.4251069724559784, -0.23145943880081177, -0.11482812464237213, -0.3043295443058014, -0.10165101289749146, -0.23191171884536743, -0.2037612348794937, 0.019751550629734993, 0.346593976020813, 0.29522886872291565, -0.0357087105512619, -0.40677401423454285, -0.3581864833831787, 0.00744674913585186, 0.5098299384117126, 0.08387463539838791, 0.20146766304969788, -0.0001201089471578598, -0.5237434506416321, 0.216106578707695, -0.542874276638031, -0.42022499442100525, -0.09473302960395813, -0.31959155201911926, 0.1618250012397766, -0.17117534577846527, -0.2606349587440491, -0.48161277174949646, -0.29946112632751465, -0.07197976857423782, -0.31445375084877014, 0.29637742042541504, 0.02860855683684349, 0.1327088624238968, -0.43927156925201416, -0.11476439982652664, 0.0018138713203370571, 0.34769922494888306, 0.41439932584762573, -0.15325863659381866, -0.020716894418001175, 0.2601205110549927, -0.0587785542011261, 0.19781896471977234, 0.4409869909286499, -0.18507815897464752, -0.22202718257904053, 0.8607211709022522, -0.278870165348053, -0.0908818319439888, -0.21327722072601318, -0.150798499584198, 0.2563742399215698, 0.618179976940155, -0.44240710139274597, -0.3459278643131256, -0.10025966167449951, 0.03830676153302193, -0.30600494146347046, -0.14677992463111877, -0.2379293292760849, -0.11918255686759949, -0.10791148245334625, -0.3194792866706848, -0.35977014899253845, -0.03602536395192146, -0.08129967749118805, 0.2985871434211731, 0.34346815943717957, -0.18272121250629425, -0.19216445088386536, 0.333196222782135, -0.10061286389827728, -0.2585984468460083, 0.1411626935005188, 0.2805401086807251, 0.33373719453811646, 0.09685039520263672, -0.16568031907081604, 0.1262485533952713, -0.41273024678230286, -0.1150430291891098, 0.042525097727775574, 0.18608365952968597, -0.04235059767961502, 0.2612529397010803, 0.062092337757349014, 0.22982676327228546, 0.14982502162456512, 0.36853089928627014, -0.0843358114361763, -0.1452617049217224, 0.08780977129936218, 0.39109766483306885, -0.016706135123968124, -0.2656978964805603, 0.12166342884302139, -0.29822614789009094, 0.17339378595352173, -0.0642300695180893, -0.24532702565193176, -0.03353051096200943, 0.08183576911687851, 0.1025163009762764, -0.04617848992347717, 0.15182647109031677, 0.324840784072876, 0.02016279846429825, -0.1495177447795868, -0.11560333520174026, 0.09035417437553406, -0.16505630314350128, 0.39416804909706116, 0.07029592245817184, 0.1741763800382614, -0.08474583923816681, 0.09470070898532867, 0.3163672387599945, -0.18240827322006226, 0.1713292896747589, -0.05182624235749245, 0.2945128083229065, -0.021673230454325676, -0.2644282877445221, 0.03465310111641884, 0.3928397595882416, 0.20673911273479462, 0.20059214532375336, 0.018250012770295143, -0.5136362910270691, 0.005431279540061951, -0.42636364698410034, 0.2146463692188263, 0.2547467350959778, -0.2986147105693817, -0.1088268905878067, 0.14148129522800446, -0.3481714129447937, -0.13379071652889252, -0.2503739595413208, 0.27334311604499817, 0.015889674425125122, -0.5232937932014465, 0.16716736555099487, -0.2780498266220093, -0.3537256717681885, 0.05837555229663849, 0.2255028933286667, 0.020440854132175446, -0.11557377874851227, -0.2533343434333801, -0.1194084882736206, -0.15026837587356567, 0.23012003302574158, -0.24689249694347382, 0.07466413825750351, 0.25699862837791443, 0.09570643305778503, 0.3126879334449768, 0.17978157103061676, -0.5303569436073303, -0.2476934790611267, -0.22632074356079102, 0.18578915297985077, 0.3175676763057709, 0.18342836201190948, -0.004713595379143953, 0.6430420875549316, -0.3568876385688782, -0.015773922204971313, 0.2133307009935379, 0.07638923078775406, -0.2232699692249298, 0.15230748057365417, -0.10050661861896515, 0.20495310425758362, 0.2501398026943207, 0.02019110694527626, 0.10595369338989258, -0.013854995369911194, 0.5343272089958191, 0.033262189477682114, -0.1600189357995987, 0.16803087294101715, -0.034915342926979065, 0.4818111062049866, 0.004660025238990784, 0.10882134735584259, -0.17937636375427246, -0.07086225599050522, -0.1260894536972046, 0.33967527747154236, 0.29703307151794434, -0.05171382427215576, -0.31545424461364746, -0.1468983292579651, -0.1743377447128296, -0.14673316478729248, -0.047278497368097305, 0.047200530767440796, -0.029340215027332306, 0.23875635862350464, -0.300001323223114, -0.2554647922515869, -0.5033037066459656, -0.3106324076652527, -0.25739994645118713, -0.09820884466171265, -0.13602522015571594, 0.058635957539081573, 0.0008554235100746155, 0.17734259366989136, 0.5411660671234131, 0.0362660177052021, 0.17668484151363373, -0.05309904366731644, 0.1981009840965271, 0.15263967216014862, 0.1939466893672943, -0.3610532879829407, 0.7085006833076477, 0.06055450439453125, -0.4981144666671753, 0.1332823932170868, 0.017165884375572205, 0.21529844403266907, -0.14901147782802582, -0.15278631448745728, 0.14010652899742126, -0.3746384084224701, 0.19290384650230408, 0.2116432636976242, -0.29402416944503784, 0.08868847787380219, 0.16893048584461212, -0.38486188650131226, -0.15655793249607086, -0.15219374001026154, -0.3289681375026703, 0.2797197103500366, -0.0074824560433626175, -0.11791921406984329, 0.016721703112125397, 0.3738241493701935, -0.09720596671104431, -0.04102998971939087, 0.04159220680594444, 0.15484218299388885, -0.13679036498069763, 0.2539457082748413, -0.12999163568019867, 0.16008983552455902, 0.23005661368370056, 0.30438563227653503, 0.11152373254299164, 0.0179444532841444, -0.08553918451070786, 0.19241315126419067, -0.047645509243011475, 0.010442215949296951, 0.31356289982795715, -0.21251797676086426, 0.10929130017757416, -0.3131962716579437, 0.011812940239906311, -0.10275895148515701, -0.14057689905166626, -0.1534276306629181, -0.5339223742485046, 0.08898685872554779, -0.678231418132782, 0.14087003469467163, -0.48972079157829285, 0.17034532129764557, 0.16919589042663574, 0.21181893348693848, 0.03684428334236145, -0.45112282037734985, 0.3582066595554352, 0.35892271995544434, 0.504547655582428, -0.32363301515579224, -0.1412079781293869, -0.2618330121040344, -0.09200995415449142, 0.1587267965078354, 0.09547053277492523, 0.06882214546203613, -0.055886007845401764, 0.0815899595618248, 0.21841181814670563, 0.23651395738124847, -0.08973317593336105, -0.22038134932518005, 0.319092333316803, 0.017744392156600952, 0.2713753879070282, 0.20545616745948792, -0.16227303445339203, 0.29924994707107544, -0.17483878135681152, 0.010755334049463272, -0.1944391429424286, -0.13301225006580353, -0.27027079463005066, -0.04997064173221588, 0.10332170128822327, -0.5128839612007141, -0.2759551405906677, -0.1077113077044487, -0.49202480912208557, -0.06558510661125183, -0.14756536483764648, 0.3370916247367859, -0.04909522458910942, -0.24883002042770386, -0.03219456970691681, 0.20067758858203888, 0.42230868339538574, -0.300096720457077, -0.06436575949192047, 0.2186347395181656, -0.3573089838027954, -0.1323164999485016, -0.1553168147802353, -0.0175028033554554, 0.28423863649368286, 0.14393110573291779, -0.23335598409175873, -0.14731328189373016, 0.38481876254081726, -0.37822920083999634, -0.09268312156200409, 0.17902792990207672, 0.20841728150844574, 0.22222280502319336, 0.015402408316731453, -0.3549654185771942, -0.28535568714141846, 0.07118001580238342, 0.31876254081726074, 0.16084054112434387, 0.03609175607562065, 0.16507068276405334, -0.10732053220272064, 0.4205799698829651, 0.10462585091590881, 0.10015882551670074, 0.0803447812795639, 0.12316595017910004, 0.26450249552726746, 0.019034363329410553, -0.004525505006313324, 0.3720696270465851, 0.20690013468265533, -0.1681743711233139, 0.293998122215271, 0.051149800419807434, -0.08452505618333817, -0.05375456064939499, 0.3223075866699219, -0.5183815360069275, 0.06252874433994293, 0.019240956753492355, -0.0822281688451767, -0.012923352420330048, 0.021630875766277313, 0.28701144456863403, 0.08271844685077667, 0.04487759619951248, 0.05065259709954262, -0.07294057309627533, 0.6066499948501587, 0.0699506402015686, -0.18243709206581116, -0.2611120343208313, -0.13978484272956848, 0.04534819722175598, 0.22975556552410126, 0.13288187980651855, -0.24300616979599, -0.3218902051448822, -0.18270044028759003, -0.06101337447762489, 0.08677935600280762, -0.5023971796035767, -0.04388509690761566, 0.24851515889167786, 0.17283473908901215, -0.032101549208164215, 0.144026979804039, -0.04112912341952324, -0.14618442952632904, 0.09321233630180359, -0.04860258102416992, -0.35554030537605286, -0.12564131617546082, 0.33429408073425293, -0.13812844455242157, -0.008634492754936218, -0.19250662624835968, -0.012638892978429794, -0.5946540832519531, 0.017025267705321312, 0.1577015072107315, 0.1097397729754448, 0.192375048995018, -0.17593538761138916, -0.03446577861905098, 0.23076994717121124, 0.011932853609323502, 0.26431959867477417, 0.1124206930398941, 0.21002399921417236, 0.2779262661933899, 0.10112017393112183, 0.12147042900323868, -0.2970822751522064, 0.44554567337036133, 0.4674464762210846, -0.15950942039489746, 0.12100638449192047, 0.41506722569465637, -0.20044606924057007, 0.6477943062782288, 0.33324748277664185, 0.2174755483865738, -0.04241601377725601, -0.1513213813304901, -0.019393108785152435, -0.742714524269104, 0.2795591652393341, -0.07856892049312592, -0.11567479372024536, -0.013352439738810062, -0.6623762845993042, 0.4428170323371887, 0.06326577067375183, -0.16379185020923615, 0.22059957683086395, 0.014606349170207977, -0.3330635726451874, 0.1532987654209137, 0.25363147258758545, 1.2184028625488281, -0.12496395409107208, -0.07800182700157166, -0.01706089824438095, -0.27037179470062256, 0.27528923749923706, -0.4647310972213745, -0.020038273185491562, 0.026145990937948227, 0.10209245979785919, -0.034857358783483505, 0.06150388345122337, 0.008726593106985092, 0.14295318722724915, -0.161062091588974, 0.22160422801971436, 0.19951631128787994, 0.1289411336183548, 0.08196397870779037, 0.3115437626838684, 0.17641639709472656, -0.3905789852142334, -0.12464193999767303, 0.0048570409417152405, -0.13024193048477173, 0.08183592557907104, -0.21033671498298645, -0.11069764196872711, 0.1028788834810257, -0.17607897520065308, 0.07879145443439484, 0.1181645467877388, 0.11225259304046631, -0.36068296432495117, -0.14173664152622223, -0.2816164493560791, 0.23829272389411926, 0.21834558248519897, -0.43118005990982056, 0.2815421223640442, -0.08443059772253036, 0.11142183840274811, 0.1290903091430664, 0.43791407346725464, -0.01356371957808733, 0.21960444748401642, 0.20610909163951874, -0.22353705763816833, 0.2904549241065979, 0.10027481615543365, 0.1284492164850235, -0.17019419372081757, -0.3469332456588745, -0.1709606647491455, -0.03843260556459427, -0.11705127358436584, 0.028241369873285294, 0.2802025079727173, 0.13156361877918243, -0.10559678077697754, 0.07568605244159698, -0.09775900840759277, -0.3728751838207245, 0.41563403606414795, -0.28140789270401, -0.02357962355017662, -0.1982244998216629, 0.15221327543258667, 0.183110773563385, -0.4211632311344147, -0.03088519722223282, -0.15792681276798248, -0.062139324843883514, -0.2400534749031067, -0.4109143018722534, -0.15446849167346954, -0.0491727739572525, -0.010563979856669903, 0.0004801158793270588, -0.3841726779937744, -0.07503679394721985, 0.28740057349205017, 0.02483164146542549, 0.033117033541202545, -0.007623534649610519, 0.10397803783416748, -0.11114131659269333, 0.20420123636722565, 0.18118557333946228, 0.4112962484359741, -0.10884410887956619, 0.14012020826339722, -0.09778895229101181, 0.21850521862506866, -0.3205435276031494, -0.08270005881786346, -0.3596068322658539, 0.4354785084724426, 0.1209600642323494, 0.16722926497459412, -0.14439406991004944, -0.17687995731830597, 0.04506388306617737, 0.025545157492160797, -0.2956109344959259, -0.06961848586797714, -0.10207919776439667, 0.1983809620141983, 0.214452862739563, -0.03388065844774246, -0.27236098051071167, 0.12156032025814056, -0.4488056004047394, -0.2398862987756729, 0.19523635506629944, 0.17496970295906067, -0.05406791716814041, 0.45753389596939087, -0.07959900796413422, 0.06464450061321259, 0.04917275905609131, 0.11604443937540054, 0.21339915692806244, 0.3639158010482788, 0.09505636990070343, 0.22304628789424896, 0.1146332174539566, -0.006187960505485535, 0.19825103878974915, 0.15966324508190155, 0.328183650970459, -0.24348807334899902, 0.32159605622291565, 0.2377416491508484, 0.20672017335891724, 0.20637303590774536, 0.5795791149139404, 0.2178424894809723, -0.2558702230453491, -0.32408878207206726, 0.11123692989349365, 0.21565259993076324, -0.0987115204334259, -0.019515108317136765, -0.4500042498111725, 0.018990065902471542, 0.023642469197511673, 0.31754377484321594, 0.2589673697948456, 0.04417356848716736, 0.020606711506843567, -0.08451807498931885, 0.009562278166413307, 0.0393068753182888, 0.18526987731456757, 0.10601095855236053, -0.18500791490077972, -0.0802999883890152, 0.16466012597084045, -0.05248080566525459, 0.03211309760808945, 0.44757938385009766, 0.12847208976745605, 0.5383208394050598, 0.4736323356628418, 0.4338177740573883, 0.09146514534950256, -0.16214507818222046, -0.001997530460357666, 0.3822506070137024, -0.09430249035358429, 0.46839815378189087, -0.10149002075195312, 0.2800446152687073, -0.14023518562316895, 0.001888372702524066, 0.07445941865444183, 0.005837913602590561, -0.14596471190452576, -0.10506872832775116, 0.09954936802387238, -0.39326050877571106, 0.12426568567752838, -0.0214218907058239, -0.006102275103330612, 0.09681089967489243, 0.13268139958381653, -0.2105119675397873, 0.13742515444755554, 0.2094138115644455, -0.06233188509941101, 0.04937463253736496, 0.32389000058174133, -0.32046201825141907, 0.11877042055130005, 0.42704105377197266, 0.03491848707199097, 0.1582375168800354, 0.43025487661361694, 0.17786137759685516, 0.19417566061019897, -0.31631597876548767, -0.1603294312953949, 0.22258538007736206, -0.014671155251562595, -0.06300244480371475, 0.5104623436927795, 0.4583975374698639, 0.2612781822681427, 0.20279854536056519, 0.08350054174661636, -0.11327710747718811, 0.15142080187797546, 0.08496435731649399, -0.006986705586314201, 0.004476561211049557, 0.2870200276374817, 0.07888571918010712, -0.17635545134544373, 0.1676701456308365, 0.17532455921173096, -0.5164393186569214, -0.27999526262283325, 0.2375326156616211, -0.05212671682238579, 0.2607180178165436, -0.13986442983150482, 0.04978732019662857, 0.10046868026256561, 0.41323474049568176, 0.02119874581694603, 0.36090096831321716, -0.09412471950054169, -0.2665930390357971, -0.35907983779907227, -0.15664958953857422, 0.3643093705177307, 0.07950640469789505, -0.0018933536484837532, 0.18945357203483582, 0.24073848128318787, 0.10829669237136841, -0.5247622132301331, -0.09396939724683762, -0.06310801953077316, 0.1782343089580536, -0.15049009025096893, 0.24429212510585785, -0.07076694071292877, 0.14085815846920013, -0.06768428534269333, -0.16998273134231567, -0.21959476172924042, -0.3578197658061981, -0.04465698450803757, 0.04783528298139572, 0.37312009930610657, 0.08093108236789703, 0.1307625025510788, 0.2911510467529297, -0.05822855979204178, 0.6262840032577515, -0.22638657689094543, 0.015152355656027794, 0.2608817517757416, 0.18034502863883972, -0.056467972695827484, -0.21762308478355408, -0.16487418115139008, 0.3177942931652069, -0.037945933640003204, 0.29210972785949707, -0.28966331481933594, -0.18527266383171082, -0.06510134786367416, 0.3529721796512604, -0.43235212564468384, 0.04607372730970383, -0.5275004506111145, -0.0993441641330719, -0.05036841705441475, 0.15096591413021088, 0.08498243242502213, 0.08860476315021515, -0.4983654022216797, -0.21467724442481995, 0.4107820987701416, 0.35716909170150757, -0.18808938562870026, -0.3000645041465759, 0.2911512553691864, 0.3019421696662903, 0.055165886878967285, -0.9656683802604675, 0.14734181761741638, 0.10994922369718552, 0.039570339024066925, -0.015492929145693779, 0.5048007369041443, -0.33307987451553345, -0.20385202765464783, -0.13871249556541443, -0.0992525964975357, 0.0910876989364624, 0.03891422599554062, -0.1175960898399353, -0.5408989191055298 ]
https://github.com/huggingface/datasets/pull/2656
Change `from_csv` default arguments
This is not the default in pandas right ? We try to align our CSV loader with the pandas API. Moreover according to their documentation, the python parser is used when sep is None, which might not be the fastest one. Maybe users could just specify `sep=None` themselves ? In this case we should add some documentation about this
Passing `sep=None` to pandas's `read_csv` lets pandas guess the CSV file's separator This PR allows users to use this pandas's feature by passing `sep=None` to `Dataset.from_csv`: ```python Dataset.from_csv( ..., sep=None ) ```
59
text: Change `from_csv` default arguments Passing `sep=None` to pandas's `read_csv` lets pandas guess the CSV file's separator This PR allows users to use this pandas's feature by passing `sep=None` to `Dataset.from_csv`: ```python Dataset.from_csv( ..., sep=None ) ``` This is not the default in pandas right ? We try to align our CSV loader with the pandas API. Moreover according to their documentation, the python parser is used when sep is None, which might not be the fastest one. Maybe users could just specify `sep=None` themselves ? In this case we should add some documentation about this
[ 0.08997286856174469, -0.6755271553993225, -0.0927664190530777, -0.0625213235616684, 0.27183830738067627, 0.005702473223209381, 0.3029029965400696, -0.04451244696974754, 0.19744396209716797, 0.42973560094833374, 0.21831414103507996, 0.18521085381507874, 0.4179232120513916, 0.03402093052864075, -0.39661112427711487, -0.17729394137859344, 0.024102412164211273, 0.48767900466918945, 0.2437894344329834, 0.027879394590854645, -0.38830459117889404, -0.13476206362247467, -0.36476922035217285, 0.08780154585838318, 0.1491360068321228, -0.12613187730312347, -0.04261909797787666, 0.0872611254453659, -0.21062913537025452, -0.4093344211578369, 0.22806121408939362, 0.06280741095542908, 0.06827244162559509, 0.19233185052871704, -0.00011027597065549344, -0.08218731731176376, 0.33909058570861816, -0.08055194467306137, -0.04357661306858063, -0.25717246532440186, -0.33154574036598206, -0.2878444194793701, 0.25350165367126465, -0.4569772183895111, -0.17295032739639282, -0.08978476375341415, -0.1259014904499054, -0.2464621514081955, 0.4076010584831238, 0.4166557490825653, 0.22546561062335968, -0.052501607686281204, -0.2871730625629425, -0.06588306277990341, -0.23575985431671143, 0.073072649538517, -0.07864978909492493, 0.13762417435646057, -0.04903300106525421, -0.03120235726237297, -0.094151072204113, -0.08557122945785522, -0.27207133173942566, 0.2828546166419983, 0.33948907256126404, 0.16397152841091156, 0.2674451470375061, -0.27722620964050293, 0.06305103003978729, 0.20095139741897583, 0.4376254081726074, -0.04775924235582352, -0.1548813134431839, -0.08568300306797028, -0.008534236811101437, -0.47200921177864075, 0.015778571367263794, 0.3406650722026825, -0.23452626168727875, 0.3459760546684265, 0.3500452935695648, -0.04044551029801369, -0.23380571603775024, -0.009351901710033417, -0.2688891887664795, 0.000315345823764801, -0.2005501240491867, 0.07971401512622833, 0.19892030954360962, 0.05254198983311653, 0.10751412063837051, -0.29903680086135864, 0.3231792747974396, -0.01324035320430994, 0.010149572044610977, 0.04972412437200546, -0.0232381671667099, -0.1757652759552002, -0.46157756447792053, -0.014451790601015091, 0.11302068084478378, -0.06266846507787704, 0.06805377453565598, 0.10306821763515472, 0.296292245388031, 0.1082318127155304, 0.12588851153850555, 0.10503905266523361, 0.22610490024089813, 0.10850314795970917, 0.23985594511032104, 0.008310427889227867, 0.3127523958683014, -0.24990621209144592, -0.17474767565727234, 0.0655173808336258, 0.4306088089942932, -0.014536779373884201, -0.23113903403282166, 0.10550588369369507, 0.07338458299636841, -0.08971206098794937, -0.1663016378879547, 0.22214221954345703, -0.11968056112527847, 0.6389294862747192, -0.14519760012626648, -0.19028478860855103, -0.18249116837978363, -0.05453696474432945, -0.17904828488826752, 0.36260268092155457, -0.3014097809791565, -0.13009606301784515, -0.34571266174316406, -0.12058097124099731, -0.035149551928043365, 0.3981541693210602, 0.2201445996761322, -0.06229628622531891, -0.04882446676492691, -0.2805577218532562, 0.39004427194595337, 0.3170906603336334, 0.21385669708251953, 0.2793939709663391, 0.3970568776130676, -0.484322190284729, -0.21593451499938965, 0.5093286633491516, -0.39744120836257935, -0.2523784041404724, -0.26551657915115356, 0.2763151228427887, -0.2188132256269455, 0.1406206637620926, -0.27602648735046387, 0.045220088213682175, -0.07448037713766098, 0.017070386558771133, 0.3095472455024719, -0.22129274904727936, -0.07329683005809784, -0.32508379220962524, -0.10362451523542404, 0.29987260699272156, -0.5425828099250793, 0.03358032554388046, 0.09617497771978378, -0.25121715664863586, 0.5315790772438049, 0.29583674669265747, -0.34139400720596313, -0.3369143009185791, -0.02975171059370041, 0.012642927467823029, 0.2536837160587311, -0.09084498882293701, -0.10811063647270203, 0.4678509533405304, -0.21903496980667114, 0.019523652270436287, 0.49790361523628235, -0.09252152591943741, 0.09559351205825806, -0.0020191678777337074, -0.024060659110546112, 0.2506186366081238, 0.15691304206848145, 0.1191272959113121, -0.2977532148361206, -0.19210830330848694, 0.4373752474784851, -0.003391250967979431, -0.0999961644411087, 0.2843049168586731, 0.07583249360322952, -0.1239934116601944, 0.1808348298072815, -0.08225393295288086, -0.07693706452846527, 0.1607414335012436, 0.3648129105567932, 0.24471889436244965, -0.046714890748262405, 0.031810931861400604, 0.14037492871284485, -0.08000578731298447, 0.39829063415527344, 0.14899685978889465, -0.038708701729774475, -0.5585676431655884, -0.1405438482761383, -0.072969950735569, -0.10185883939266205, 0.062473610043525696, 0.058133795857429504, -0.0021239817142486572, 0.023027177900075912, 0.08180776238441467, -0.14577168226242065, 0.39099493622779846, -0.5253256559371948, 0.04905345290899277, -0.24945874512195587, -0.05615243315696716, -0.15542910993099213, 0.28960981965065, -0.13036423921585083, 0.215132474899292, 0.10853366553783417, -0.015807561576366425, -0.06332845240831375, 0.31112682819366455, 0.24922816455364227, -0.0886995941400528, -0.056000351905822754, -0.07506869733333588, 0.19750364124774933, -0.15311889350414276, -0.05885186046361923, 0.3371274471282959, 0.23504599928855896, 0.2033846378326416, -0.4222424030303955, 0.5399336814880371, -0.2697769105434418, 0.1593439280986786, 0.08466248214244843, 0.09921620786190033, 0.411210298538208, -0.07739385962486267, -0.05084998905658722, -0.25045245885849, -0.11093707382678986, 0.2223069816827774, 0.10175412893295288, 0.5229257345199585, -0.5533015727996826, -0.07705380767583847, 0.19910000264644623, -0.34135907888412476, -0.21538275480270386, 0.08892732113599777, 0.09891043603420258, -0.31135550141334534, 0.274677038192749, 0.13319504261016846, 0.4290674328804016, 0.20956140756607056, -0.1868823766708374, 0.03446514159440994, 0.008444189094007015, -0.3190581500530243, 0.22392234206199646, 0.2218596339225769, -0.2486252337694168, -0.08850761502981186, -0.21662457287311554, 0.016247348859906197, -0.21386364102363586, -0.0508052334189415, 0.045466430485248566, 0.3016907274723053, -0.2686947286128998, 0.012774182483553886, -0.313138872385025, -0.23765704035758972, -0.0013029491528868675, -0.1579492837190628, 0.12309865653514862, -0.22336947917938232, -0.14364655315876007, -0.1131921112537384, -0.10657629370689392, -0.037784211337566376, -0.3609327971935272, 0.4809279441833496, 0.06036975234746933, -0.2503659725189209, -0.04689786210656166, -0.10682961344718933, -0.007302731275558472, 0.140342116355896, -0.13261811435222626, 0.31465235352516174, -0.05642557889223099, -0.03801838308572769, -0.20678496360778809, -0.0028287433087825775, -0.00026698410511016846, 0.06220966950058937, -0.036465346813201904, 0.18888728320598602, 0.3033266067504883, 0.13219687342643738, 0.140796959400177, -0.24042190611362457, -0.129690483212471, -0.2570422291755676, 0.10370505601167679, -0.13380564749240875, -0.24141161143779755, -0.07991626858711243, -0.203898623585701, -0.4384913146495819, -0.31437385082244873, -0.3427741229534149, 0.14994919300079346, 0.1649063676595688, 0.01974393054842949, 0.005956858396530151, 0.2861427068710327, -0.03759942576289177, 0.17880983650684357, 0.007753503974527121, -0.24028316140174866, -0.21076056361198425, 0.25833961367607117, -0.09355112165212631, -0.2044501006603241, 0.19589093327522278, -0.09582557529211044, -0.04832371696829796, -0.20853100717067719, -0.12531551718711853, -0.5929067730903625, -0.326374888420105, 0.4341229498386383, -0.1223144680261612, 0.21953998506069183, 0.09598204493522644, -0.05001603439450264, -0.13430331647396088, 0.2666552662849426, -0.29117169976234436, -0.21917736530303955, 0.1536676585674286, -0.14351007342338562, 0.11840833723545074, 0.4121955633163452, 0.07091955840587616, 0.6137269735336304, 0.10114331543445587, -0.004938848316669464, 0.08658445626497269, -0.14492066204547882, 0.6388576030731201, 0.1352846920490265, -0.13679704070091248, -0.08180206269025803, 0.15256617963314056, -0.1778748631477356, 0.20882892608642578, -0.2607018053531647, -0.05673789978027344, -0.10017837584018707, -0.24297408759593964, -0.2681300938129425, -0.08154594153165817, -0.02857324667274952, -0.1295308917760849, 0.18706196546554565, -0.02971031703054905, 0.16360437870025635, -0.2696821689605713, -0.05439842864871025, -0.3161076605319977, 0.3737034797668457, 0.21507011353969574, -0.06408073008060455, -0.30072155594825745, -0.06507011502981186, -0.23546171188354492, 0.24726399779319763, 0.011544347740709782, 0.3639618158340454, 0.20383553206920624, -0.2640335261821747, 0.3920899033546448, -0.06428501009941101, 0.6210256218910217, -0.14940297603607178, -0.3404998779296875, 0.08551646769046783, -0.14609897136688232, -0.022364648059010506, 0.002434220165014267, -0.07899758964776993, 0.35673320293426514, 0.06192070245742798, -0.039956480264663696, -0.14850616455078125, -0.34154802560806274, 0.2978307604789734, -0.018914304673671722, -0.11597351729869843, -0.15430520474910736, -0.41739290952682495, -0.3654530644416809, 0.0360540971159935, 0.1423553079366684, 0.22501036524772644, 0.1993195116519928, -0.3130764067173004, 0.39232638478279114, 0.12587352097034454, 0.05819006264209747, 0.2675156593322754, 0.16090577840805054, 0.06724846363067627, -0.010631091892719269, -0.41566532850265503, -0.10631231963634491, -0.0603942945599556, 0.32622966170310974, 0.44815948605537415, -0.30297228693962097, -0.6297252178192139, 0.0174944456666708, -0.19873186945915222, 0.522371232509613, 0.23111048340797424, -0.08392569422721863, 0.3665233850479126, 0.02597089670598507, 0.29259198904037476, 0.056691817939281464, -0.06892406195402145, 0.27281075716018677, -0.19749540090560913, -0.1380191445350647, -0.6523152589797974, 0.09514033794403076, 0.17661172151565552, 0.008924826979637146, -0.16913463175296783, 0.30492401123046875, -0.09739752858877182, 0.4160601496696472, 0.15509699285030365, 0.8681807518005371, 0.09490717947483063, 0.20297954976558685, -0.0404573529958725, -0.14376060664653778, 0.7060486078262329, -0.08830475807189941, 0.08988170325756073, -0.26627498865127563, -0.4130302965641022, -0.21702302992343903, -0.0671803280711174, 0.5937610864639282, 0.015366777777671814, -0.17804034054279327, 0.32361888885498047, -0.14612968266010284, 0.4399223327636719, 0.1815471202135086, 0.28139322996139526, -0.05357664078474045, -0.056210752576589584, -0.261385977268219, 0.04245917499065399, -0.03702197223901749, -0.3424919843673706, 0.15704011917114258, -0.030977871268987656, 0.045457225292921066, -0.18993285298347473, 0.038204506039619446, -0.208094984292984, 0.24984319508075714, 0.08736720681190491, 0.13994204998016357, -0.29001641273498535, 0.13902431726455688, 0.45764124393463135, 0.11397917568683624, -0.08886799216270447, -0.10859163105487823, 0.017732931300997734, 0.06931164860725403, -0.0022091930732131004, -0.019784575328230858, 0.019915852695703506, 0.3651174306869507, 0.195119708776474, -0.013879738748073578, 0.4830152690410614, -0.19325236976146698, -0.25820082426071167, -0.43028122186660767, 0.3655651807785034, -0.11061254143714905, -0.3058706820011139, -0.4896944463253021, -0.291109561920166, -0.013239890336990356, -0.14855271577835083, 0.1154850423336029, -0.11853350698947906, -0.028978483751416206, 0.21321988105773926, -0.2721640467643738, -0.42442435026168823, -0.11057016253471375, 0.22082549333572388, 0.2950478792190552, -0.09575074911117554, 0.011666076257824898, -0.3280717134475708, -0.3619112968444824, -0.1715521216392517, 0.006966777145862579, -0.19476009905338287, -0.06389202177524567, 0.19143585860729218, 0.3378184735774994, 0.08889508247375488, 0.046177878975868225, 0.35629376769065857, 0.03726597875356674, 0.3471585214138031, -0.24969449639320374, -0.1529884934425354, 0.01110423356294632, -0.12798379361629486, -0.15535716712474823, 0.06417834758758545, 0.44156017899513245, 0.29368090629577637, 0.1983470916748047, -0.23766463994979858, -0.3373924195766449, 0.1227732002735138, -0.09470763057470322, 0.04692167043685913, 0.2568509578704834, -0.006213437765836716, -0.20080408453941345, -0.058542247861623764, 0.20507927238941193, -0.07416784763336182, 0.01817287877202034, -0.23877468705177307, -0.07761998474597931, 0.1577124297618866, 0.025130612775683403, -0.06683707982301712, -0.02082217112183571, -0.16759200394153595, -0.2833143472671509, -0.08722071349620819, -0.06467913091182709, 0.6420368552207947, -0.06237867474555969, 0.19396740198135376, -0.184717059135437, 0.041893940418958664, -0.24560153484344482, 0.12065167725086212, -0.2810218036174774, 0.2818937301635742, 0.15734367072582245, 0.26889193058013916, -0.38496118783950806, 0.09018293023109436, 0.04894758760929108, 0.03575319051742554, 0.08195949345827103, 0.05741102248430252, 0.13538610935211182, -0.10566945374011993, -0.028625933453440666, -0.012520764023065567, 0.35423073172569275, 0.3256682753562927, -0.2355273962020874, 0.17238177359104156, 0.12386234104633331, 0.2012946605682373, -0.38466572761535645, -0.07466287165880203, 0.13640615344047546, -0.06008528172969818, 0.24402818083763123, 0.5222846269607544, 0.4734879434108734, 0.08205702900886536, 0.4491879343986511, -0.048101797699928284, 0.5309197306632996, -0.3901538848876953, 0.25767782330513, 0.682587206363678, -0.01954399049282074, 0.07598313689231873, 0.45246195793151855, 0.11281205713748932, 0.05535108223557472, 0.4297848343849182, 0.20719990134239197, 0.1700616031885147, 0.23104381561279297, 0.014151360839605331, -0.4615519344806671, -0.40364521741867065, 0.4445282220840454, -0.010662928223609924, -0.35871049761772156, -0.03019484132528305, 0.2065371423959732, 0.3453448414802551, -0.5126977562904358, 0.35002920031547546, -0.0439210906624794, -0.19406653940677643, -0.22196760773658752, -0.17117445170879364, 0.15873971581459045, 0.09609862416982651, -0.159936785697937, -0.0114732775837183, 0.09151145815849304, -0.12066525220870972, 0.13978473842144012, -0.19979523122310638, -0.08869421482086182, 0.05614307522773743, 0.18091273307800293, -0.05630116909742355, 0.2825809419155121, -0.1668609082698822, -0.24411119520664215, -0.3367767333984375, 0.09065520763397217, 0.007835309952497482, -0.172007754445076, 0.4171846807003021, 0.3897913992404938, 0.02076515555381775, -0.27531787753105164, 0.18086501955986023, -0.18549232184886932, 0.08755256980657578, 0.07841908931732178, 0.11109466850757599, 0.562678337097168, 0.21074877679347992, 0.2551957964897156, -0.24577626585960388, 0.3469071388244629, 0.20827218890190125, 0.12101197242736816, -0.5935106873512268, 0.1538543403148651, 0.4725094139575958, -0.2522432804107666, 0.0962187796831131, 0.06110689789056778, -0.32515713572502136, -0.03208313137292862, 0.014635387808084488, 0.1050611063838005, 0.043567121028900146, -0.16698360443115234, 0.09281915426254272, 0.2664586305618286, 0.034150630235672, 0.07563570141792297, 0.28910085558891296, -0.33431825041770935, 0.07783760130405426, -0.7398149967193604, 0.1656709909439087, -0.008253343403339386, -0.20212502777576447, -0.008052568882703781, 0.21603773534297943, 0.08745315670967102, 0.02963905967772007, -0.44126182794570923, 0.11609401553869247, 0.1429222971200943, 0.15606766939163208, 0.150375634431839, -0.1262272298336029, 0.07127593457698822, -0.13759443163871765, -0.1507590115070343, -0.27898648381233215, 0.27210158109664917, 0.22779065370559692, 0.08022021502256393, -0.1724211573600769, 0.12145593762397766, 0.25509485602378845, 0.342185378074646, 0.04710252583026886, 0.04344632104039192, 0.1897543966770172, -0.24694541096687317, 0.3125617504119873, 0.02836410328745842, 0.2381850928068161, -0.3646080791950226, 0.1506655216217041, 0.09800931811332703, 0.015374302864074707, -0.039773598313331604, -0.2757282853126526, -0.24659278988838196, 0.0842839777469635, 0.19831345975399017, 0.24404488503932953, -0.384653240442276, 0.22287511825561523, -0.2096351981163025, -0.057372987270355225, -0.019402002915740013, -0.1147766187787056, -0.014463260769844055, 0.07320038229227066, -0.022123105823993683, -0.07910586893558502, 0.25723907351493835, -0.25040096044540405, -0.2509267330169678, -0.20008186995983124, 0.3125399947166443, 0.20501458644866943, -0.19818519055843353, -0.05768493562936783, -0.06283709406852722, 0.37477725744247437, -0.13903650641441345, -0.3251427710056305, 0.2227647304534912, -0.3231778144836426, 0.20824871957302094, -0.22275544703006744, 0.07135514914989471, 0.049706779420375824, -0.10790398716926575, 0.012358531355857849, -0.3907015323638916 ]
https://github.com/huggingface/datasets/pull/2638
Streaming for the Json loader
A note is that I think we should add a few indicator of status (as mentioned by @stas00 in #2649), probably at the (1) downloading, (2) extracting and (3) reading steps. In particular when loading many very large files it's interesting to know a bit where we are in the process.
It was not using `open` in the builder. Therefore `pyarrow.json.read_json` was downloading the full file to start yielding rows. Moreover, it appeared that `pyarrow.json.read_json` was not really suited for streaming as it was downloading too much data and failing if `block_size` was not properly configured (related to #2573). So I switched to using `open` which is extended to support reading from remote file progressively, and I removed the pyarrow json reader which was not practical. Instead, I'm using the classical `json.loads` from the standard library.
51
text: Streaming for the Json loader It was not using `open` in the builder. Therefore `pyarrow.json.read_json` was downloading the full file to start yielding rows. Moreover, it appeared that `pyarrow.json.read_json` was not really suited for streaming as it was downloading too much data and failing if `block_size` was not properly configured (related to #2573). So I switched to using `open` which is extended to support reading from remote file progressively, and I removed the pyarrow json reader which was not practical. Instead, I'm using the classical `json.loads` from the standard library. A note is that I think we should add a few indicator of status (as mentioned by @stas00 in #2649), probably at the (1) downloading, (2) extracting and (3) reading steps. In particular when loading many very large files it's interesting to know a bit where we are in the process.
[ -0.21941033005714417, 0.09779278934001923, -0.1257375031709671, 0.1512664258480072, 0.08440561592578888, -0.25954127311706543, 0.19843848049640656, 0.6204359531402588, -0.07554571330547333, 0.25784432888031006, 0.1772467941045761, 0.22280268371105194, 0.18481582403182983, 0.07941961288452148, 0.06461327522993088, -0.008481476455926895, 0.0004233121871948242, 0.23764124512672424, 0.03510935604572296, 0.00020612403750419617, -0.1044413149356842, 0.16067136824131012, -0.14953194558620453, 0.06631240248680115, 0.02988891489803791, 0.03385584056377411, 0.18985112011432648, 0.07396508008241653, -0.3307737410068512, -0.4229758083820343, -0.055434420704841614, 0.04154088348150253, -0.04213868826627731, 0.2904640734195709, -0.000097820651717484, 0.004084818065166473, 0.5090802311897278, -0.03354300186038017, -0.3299914598464966, -0.11819775402545929, 0.039225175976753235, -0.28676387667655945, 0.4339500069618225, -0.20963405072689056, 0.006546191871166229, -0.5221589803695679, 0.13668721914291382, 0.3556123673915863, 0.23162923753261566, 0.1871916502714157, 0.33007994294166565, 0.18663211166858673, 0.20614109933376312, 0.05882040038704872, 0.388370156288147, -0.00874587893486023, 0.062427401542663574, 0.451541543006897, 0.44115519523620605, 0.17164576053619385, -0.4445952773094177, 0.0043143583461642265, -0.10563980042934418, 0.10920698940753937, 0.1449815332889557, -0.03041740506887436, 0.28233304619789124, -0.10415713489055634, 0.00792558491230011, 0.08225246518850327, 0.46556806564331055, -0.020827434957027435, -0.03790464252233505, -0.17590880393981934, 0.02544518932700157, -0.11051172018051147, 0.22389402985572815, 0.3750220835208893, -0.2779149115085602, 0.100623220205307, -0.04582533612847328, -0.05137147754430771, -0.3481861352920532, 0.07977128773927689, -0.35548579692840576, -0.027904793620109558, 0.013442236930131912, -0.009581975638866425, 0.0606561116874218, -0.0156748965382576, 0.2689911127090454, -0.13292096555233002, -0.04326095059514046, -0.025645188987255096, -0.057132404297590256, 0.054520197212696075, 0.28718844056129456, -0.0029023364186286926, 0.12021540850400925, 0.0581778958439827, 0.3533988893032074, 0.21088913083076477, 0.31294283270835876, 0.2918792963027954, 0.23769806325435638, 0.01783517375588417, 0.010293811559677124, -0.2277987152338028, 0.30678409337997437, 0.5017150044441223, -0.1037236750125885, 0.006616175174713135, -0.057983458042144775, -0.0636168047785759, -0.013247601687908173, -0.15562093257904053, 0.098530612885952, -0.12422674894332886, -0.004797423258423805, 0.00621537072584033, -0.2566069960594177, -0.2354748249053955, -0.12053713947534561, 0.1934223622083664, -0.24167202413082123, 0.030380479991436005, 0.17259788513183594, 0.01966559886932373, -0.13282401859760284, -0.20364196598529816, -0.212025985121727, -0.0018682647496461868, -0.10364736616611481, -0.17827144265174866, 0.26928797364234924, -0.24151664972305298, 0.13415512442588806, -0.012791261076927185, 0.11715839803218842, -0.08878610283136368, 0.07415422797203064, 0.03121037408709526, 0.04972108080983162, 0.30209654569625854, 0.14996707439422607, -0.22461462020874023, -0.12838636338710785, -0.23550356924533844, -0.10646139085292816, 0.2871742248535156, -0.055067241191864014, -0.35406267642974854, -0.01504647545516491, 0.3638743758201599, -0.19147959351539612, 0.08478328585624695, -0.10971725732088089, 0.054836906492710114, -0.1001601591706276, -0.3021359443664551, -0.12040393799543381, -0.07126455754041672, 0.2463705837726593, -0.21279668807983398, 0.13054920732975006, 0.1553238481283188, -0.42770880460739136, 0.005972273647785187, 0.27224093675613403, -0.19416290521621704, 0.0776657834649086, 0.1772862821817398, -0.38065454363822937, 0.1386623978614807, 0.04398995637893677, 0.1427605003118515, 0.181733176112175, 0.027822744101285934, -0.3329499661922455, 0.33631014823913574, -0.20477159321308136, 0.12236397713422775, 0.1824292093515396, -0.2502293884754181, 0.3045409023761749, 0.019541358575224876, 0.310296893119812, 0.2848549485206604, 0.09342151880264282, 0.16492913663387299, -0.2248474359512329, -0.1938185691833496, -0.11605706810951233, 0.3479333817958832, -0.10712198913097382, -0.08407033234834671, 0.0506557896733284, -0.25374636054039, 0.33673810958862305, -0.02404264733195305, 0.03365396335721016, -0.16097453236579895, 0.030757790431380272, -0.2527890205383301, 0.09243818372488022, 0.2598194181919098, -0.23705872893333435, 0.1570586860179901, -0.3026103377342224, 0.04091944918036461, -0.24867819249629974, -0.01357627660036087, 0.0780072882771492, 0.09839851409196854, -0.240484818816185, 0.03537833318114281, 0.3476221561431885, 0.11107661575078964, 0.05824520066380501, 0.10057735443115234, -0.28754371404647827, -0.18261587619781494, -0.09891179203987122, -0.012067687697708607, -0.21483425796031952, 0.19883237779140472, -0.062055885791778564, -0.3287394046783447, 0.18370205163955688, -0.22888967394828796, -0.023393161594867706, -0.10701444745063782, -0.041208621114492416, 0.14016523957252502, -0.03418595716357231, 0.2678811848163605, -0.029514476656913757, 0.001474827527999878, 0.09152227640151978, 0.11629033088684082, 0.05409237742424011, 0.21349918842315674, -0.01789063960313797, -0.03781569004058838, -0.07310453802347183, 0.30043697357177734, -0.002542119473218918, 0.09359913319349289, 0.1923641860485077, -0.34006354212760925, 0.20739415287971497, 0.05668039992451668, -0.1386740654706955, 0.17242734134197235, 0.18738161027431488, 0.2921638786792755, -0.14291326701641083, 0.07798393070697784, -0.4009207785129547, 0.08640743046998978, 0.5234222412109375, -0.3928614854812622, -0.19851455092430115, 0.2541913390159607, 0.07289140671491623, -0.30510666966438293, 0.13844862580299377, 0.07930125296115875, 0.13270993530750275, 0.2134876549243927, 0.16006509959697723, 0.06087169051170349, 0.10346902906894684, -0.2810870409011841, 0.12800464034080505, 0.09133030474185944, 0.13619418442249298, 0.3484121561050415, 0.26590171456336975, -0.250043660402298, -0.49945753812789917, -0.009359961375594139, 0.01826816238462925, 0.0959388017654419, -0.0367230549454689, -0.09255817532539368, -0.1938689798116684, 0.00909179076552391, -0.007076923735439777, -0.18548589944839478, -0.045966167002916336, -0.1438378095626831, 0.3032686114311218, 0.45173636078834534, -0.3510550558567047, 0.0672110915184021, 0.09446592628955841, 0.22049523890018463, -0.07458117604255676, -0.04783041030168533, -0.41210269927978516, -0.19802293181419373, -0.16462785005569458, 0.23699229955673218, 0.1316969394683838, 0.09312689304351807, 0.057740576565265656, -0.18334035575389862, -0.06232140585780144, -0.09169089794158936, -0.1498321145772934, 0.12222728133201599, -0.02084122598171234, 0.19327938556671143, -0.007176071405410767, 0.27382808923721313, 0.047626055777072906, -0.15551915764808655, 0.1697346270084381, -0.17797265946865082, -0.2586993873119354, 0.2032453864812851, -0.12759293615818024, 0.009458627551794052, -0.07972382009029388, -0.2257867157459259, -0.17435894906520844, -0.528247058391571, 0.34663116931915283, 0.14554019272327423, 0.2171187549829483, -0.24584563076496124, 0.15542778372764587, 0.019121788442134857, -0.05474374070763588, 0.19810695946216583, -0.025778619572520256, -0.49415966868400574, 0.2481081187725067, -0.24819228053092957, -0.40517348051071167, 0.066044881939888, 0.1766296625137329, 0.02606181986629963, -0.09442897140979767, -0.5140400528907776, -0.0257357656955719, 0.13498249650001526, 0.35544079542160034, 0.03208918869495392, -0.26858431100845337, 0.33476758003234863, 0.09602352231740952, -0.21454256772994995, -0.0427389033138752, -0.09313268959522247, -0.014236368238925934, 0.3060731291770935, 0.10535131394863129, -0.08985687792301178, 0.2460985779762268, -0.07979652285575867, 0.33307093381881714, -0.10066044330596924, 0.001992318779230118, 0.22278505563735962, 0.07012161612510681, 0.05394533649086952, -0.2630123794078827, 0.07288224250078201, 0.022523686289787292, -0.2743995487689972, -0.3120776414871216, 0.29125621914863586, -0.04191199690103531, -0.37705525755882263, -0.3615665137767792, -0.3090731203556061, -0.30869361758232117, -0.22360572218894958, 0.227676659822464, 0.06954360008239746, 0.0383179634809494, -0.004080554470419884, 0.14403337240219116, 0.08942556381225586, 0.03147668018937111, -0.07776735723018646, 0.036904431879520416, 0.3623122274875641, -0.11592622101306915, 0.031359847635030746, -0.27522099018096924, -0.3633667230606079, 0.1224312111735344, 0.056802939623594284, -0.15262489020824432, 0.022018704563379288, -0.33362877368927, 0.34875625371932983, -0.5304101705551147, 0.5362470746040344, 0.2220313549041748, 0.020087769255042076, 0.13825200498104095, 0.05640942603349686, -0.15549491345882416, -0.13919278979301453, 0.05170535668730736, -0.034763600677251816, 0.19005995988845825, 0.08672051876783371, -0.5569414496421814, -0.054607637226581573, 0.08601205050945282, 0.07935456931591034, -0.05036325380206108, -0.38156449794769287, -0.367872029542923, -0.21529310941696167, -0.35557714104652405, 0.058621905744075775, -0.09159428626298904, 0.05453874170780182, -0.18639306724071503, -0.28144699335098267, 0.3741806447505951, 0.11574899405241013, -0.37017762660980225, 0.2552998661994934, 0.04555816575884819, -0.35086971521377563, 0.0610489659011364, 0.16730785369873047, 0.2453233003616333, 0.386688768863678, 0.5257595777511597, 0.40488529205322266, 0.12915584444999695, 0.1824798882007599, 0.033957622945308685, 0.10180255025625229, 0.27607816457748413, 0.06630374491214752, 0.1891198307275772, 0.10656745731830597, 0.2588179111480713, 0.0888117328286171, -0.28245216608047485, 0.3694327771663666, -0.364274799823761, 0.08546856790781021, -0.0234487634152174, 0.3684881031513214, -0.39361318945884705, -0.04986797273159027, -0.08472628891468048, -0.2623118758201599, 0.09952151775360107, 0.21784210205078125, 0.04435235261917114, 0.864788293838501, 0.1497146189212799, 0.12451578676700592, 0.43263131380081177, -0.3776424527168274, 0.13736265897750854, -0.5975308418273926, 0.2647795081138611, -0.28995612263679504, 0.19228006899356842, 0.002712959423661232, -0.1475374400615692, -0.08983724564313889, 0.04765722528100014, -0.3006495237350464, -0.11013299226760864, 0.05792976915836334, 0.31851738691329956, 0.005289913155138493, 0.2911253571510315, -0.093216672539711, -0.03589797765016556, -0.4335269033908844, 0.20413480699062347, -0.15212728083133698, -0.1291516274213791, -0.06574989855289459, -0.3374021649360657, 0.08003227412700653, -0.13492785394191742, 0.21276013553142548, 0.20483249425888062, 0.12395509332418442, -0.03373260796070099, 0.2494085133075714, -0.23315639793872833, -0.29580411314964294, -0.26607975363731384, -0.6276848912239075, -0.08042727410793304, -0.14729705452919006, 0.3315766155719757, 0.08511655032634735, 0.07571560144424438, -0.026652920991182327, 0.014165348373353481, 0.20150673389434814, -0.34290188550949097, -0.3699042499065399, 0.31166285276412964, -0.2190936803817749, -0.17379790544509888, -0.09156052768230438, 0.11296574771404266, -0.07347127795219421, -0.11384183913469315, -0.03655111789703369, -0.058949634432792664, -0.12598833441734314, -0.14139021933078766, 0.3189186751842499, -0.053484559059143066, -0.1949326992034912, 0.024021033197641373, 0.0546063594520092, -0.11779551953077316, -0.3191579282283783, 0.504206657409668, 0.16935762763023376, 0.020331259816884995, 0.21224345266819, 0.18027080595493317, -0.2501945495605469, -0.19159972667694092, -0.049677666276693344, 0.24278207123279572, -0.3539555072784424, 0.0700136050581932, 0.0788455605506897, 0.06739044189453125, 0.11873974651098251, 0.16859260201454163, 0.03819048032164574, -0.015715986490249634, -0.12727831304073334, -0.12625566124916077, -0.32143643498420715, 0.24183088541030884, 0.23303622007369995, -0.04918907955288887, 0.21131789684295654, 0.10454362630844116, 0.12108330428600311, 0.14755383133888245, -0.47950950264930725, 0.0900164246559143, -0.25021660327911377, 0.15911707282066345, -0.25718459486961365, -0.18643176555633545, 0.05920213833451271, 0.16872820258140564, 0.2800990045070648, 0.08896026015281677, -0.18277527391910553, -0.35117805004119873, 0.12266822159290314, 0.08560507744550705, 0.13424460589885712, 0.18391714990139008, -0.11825394630432129, -0.1630324423313141, -0.2632881999015808, 0.20723724365234375, 0.16100721061229706, -0.40044766664505005, -0.18546701967716217, -0.1812286078929901, 0.30106475949287415, 0.031639501452445984, -0.03650837764143944, -0.10864771902561188, -0.07374773919582367, 0.4394776225090027, -0.1644338220357895, -0.05023597925901413, -0.22984030842781067, -0.0034943297505378723, -0.06428593397140503, 0.2160465121269226, -0.0839996188879013, 0.2925516366958618, 0.6694057583808899, -0.14826297760009766, -0.04652293398976326, -0.5890780687332153, 0.4094090759754181, 0.2748091220855713, -0.0017828535055741668, -0.09458526223897934, -0.000009899958968162537, 0.37000179290771484, -0.14519086480140686, -0.06680084764957428, -0.10976831614971161, -0.08579593896865845, 0.10383008420467377, -0.2340202033519745, 0.09617672860622406, -0.2153007984161377, 0.2160494178533554, 0.28782331943511963, 0.20587709546089172, -0.025292348116636276, -0.3346252739429474, 0.26817241311073303, -0.1376042664051056, 0.06557155400514603, 0.31507840752601624, 0.12783300876617432, 0.21834823489189148, 0.19289728999137878, -0.028019696474075317, 0.012653844431042671, 0.09330880641937256, 0.13437388837337494, -0.21862787008285522, -0.12120762467384338, 0.01894543692469597, 0.28445231914520264, 0.13848842680454254, 0.012980621308088303, 0.23169715702533722, 0.12528032064437866, 0.1841672956943512, 0.11508303880691528, -0.33395135402679443, 0.29653507471084595, -0.045310162007808685, 0.028546150773763657, -0.4911850094795227, -0.3607061803340912, -0.038396112620830536, 0.23167312145233154, -0.011489100754261017, 0.18952742218971252, 0.03757385537028313, 0.27655404806137085, -0.08075271546840668, -0.23890475928783417, -0.0005176812410354614, -0.43838629126548767, 0.25219109654426575, -0.21209882199764252, 0.25174984335899353, 0.30716365575790405, -0.04716547578573227, 0.08656646311283112, -0.002858458086848259, 0.39407095313072205, 0.2082527130842209, -0.17049755156040192, 0.03853057697415352, -0.1515340358018875, -0.09166302531957626, -0.23370814323425293, 0.3713436424732208, 0.4848146140575409, 0.038029130548238754, 0.2531062662601471, 0.316571444272995, -0.3865286111831665, 0.3291187286376953, 0.030882198363542557, -0.05055512860417366, -0.06373843550682068, -0.06898330897092819, 0.16987749934196472, -0.3411797881126404, -0.10666032135486603, -0.3213581442832947, -0.48830941319465637, 0.1646062731742859, -0.10352206230163574, 0.002211826154962182, -0.03988400846719742, -0.2921988070011139, 0.17731332778930664, -0.034439343959093094, 0.6975884437561035, 0.01464277133345604, 0.30698925256729126, -0.08283957839012146, -0.2456057220697403, -0.20916028320789337, 0.3915249705314636, -0.18643054366111755, 0.12394905090332031, 0.10359176248311996, 0.2835264801979065, 0.2301715910434723, 0.10706578195095062, -0.12000836431980133, 0.04127100110054016, -0.16567763686180115, 0.1173662394285202, -0.2837395966053009, 0.006472457200288773, 0.3319314122200012, 0.08585762977600098, -0.26809531450271606, -0.06187814846634865, 0.365829735994339, -0.4674586057662964, 0.25911659002304077, -0.12085817754268646, -0.11200106889009476, 0.16651439666748047, 0.1743314564228058, 0.35442373156547546, -0.00029771775007247925, 0.12370383739471436, -0.1728077232837677, 0.02020205743610859, -0.01155460998415947, -0.04792838171124458, -0.17117300629615784, -0.0652223601937294, -0.02505168318748474, 0.3397541046142578, 0.3743880093097687, -0.053701918572187424, -0.14477412402629852, 0.1175946518778801, -0.32836443185806274, 0.0018322215182706714, 0.08927246183156967, -0.18649925291538239, 0.13508298993110657, -0.05128389969468117, 0.0071474770084023476, 0.132171630859375, 0.028684101998806, -0.23634877800941467, -0.4805110692977905, -0.1596597582101822, 0.4309559464454651, -0.2565784454345703, -0.333661824464798, 0.18379148840904236, 0.055589862167835236, -0.09008119255304337, -0.039064742624759674, -0.12393209338188171, 0.17365190386772156, 0.1853211522102356, -0.053415000438690186, -0.18989436328411102, 0.3171294033527374, 0.1334715336561203, 0.02803104743361473, -0.14348788559436798, 0.08140385150909424, 0.2714190185070038, -0.1598576307296753, -0.43720412254333496, -0.3517863154411316 ]
https://github.com/huggingface/datasets/pull/2638
Streaming for the Json loader
I tested locally, and the builtin `json` loader is 4x slower than `pyarrow.json`. Thanks for the comment @albertvillanova ! Therefore I switched back to using `pyarrow.json`, but only on the batch that is read. This way we don't have to deal with its `block_size`, and it only loads in memory one batch at a time.
It was not using `open` in the builder. Therefore `pyarrow.json.read_json` was downloading the full file to start yielding rows. Moreover, it appeared that `pyarrow.json.read_json` was not really suited for streaming as it was downloading too much data and failing if `block_size` was not properly configured (related to #2573). So I switched to using `open` which is extended to support reading from remote file progressively, and I removed the pyarrow json reader which was not practical. Instead, I'm using the classical `json.loads` from the standard library.
55
text: Streaming for the Json loader It was not using `open` in the builder. Therefore `pyarrow.json.read_json` was downloading the full file to start yielding rows. Moreover, it appeared that `pyarrow.json.read_json` was not really suited for streaming as it was downloading too much data and failing if `block_size` was not properly configured (related to #2573). So I switched to using `open` which is extended to support reading from remote file progressively, and I removed the pyarrow json reader which was not practical. Instead, I'm using the classical `json.loads` from the standard library. I tested locally, and the builtin `json` loader is 4x slower than `pyarrow.json`. Thanks for the comment @albertvillanova ! Therefore I switched back to using `pyarrow.json`, but only on the batch that is read. This way we don't have to deal with its `block_size`, and it only loads in memory one batch at a time.
[ -0.3187560737133026, 0.07637187838554382, -0.1471434235572815, 0.16070064902305603, 0.0938909724354744, -0.24702188372612, 0.19929033517837524, 0.5898129343986511, -0.04386143013834953, 0.2671380043029785, 0.1692814826965332, 0.23872952163219452, 0.0840170830488205, 0.07621601223945618, 0.043862633407115936, 0.040432851761579514, 0.006640404462814331, 0.24161924421787262, 0.05029657483100891, -0.004315044730901718, -0.060474857687950134, 0.12083025276660919, -0.11492596566677094, 0.005019985139369965, 0.022631650790572166, 0.08828146755695343, 0.1579221785068512, 0.0822751373052597, -0.2978546917438507, -0.45185598731040955, 0.002928154543042183, -0.011223237961530685, -0.06049574539065361, 0.2767748236656189, -0.00009637033508624882, 0.07163780927658081, 0.37702488899230957, 0.05606571584939957, -0.31890881061553955, 0.04019559919834137, 0.014943134039640427, -0.21802081167697906, 0.2692446708679199, -0.20314455032348633, 0.007449079304933548, -0.43418949842453003, 0.11349190771579742, 0.33529573678970337, 0.21947622299194336, 0.20183825492858887, 0.35946953296661377, 0.2384859323501587, -0.0012644194066524506, 0.07392293214797974, 0.4001937508583069, 0.022278979420661926, 0.030730413272976875, 0.42675960063934326, 0.3836497664451599, 0.12911829352378845, -0.4166300296783447, 0.05899631232023239, -0.16111509501934052, 0.16745229065418243, 0.14891329407691956, -0.04709145054221153, 0.30281946063041687, 0.03381378576159477, 0.08242282271385193, 0.062498483806848526, 0.3954337239265442, -0.10389497131109238, -0.0018687844276428223, -0.1270366907119751, -0.0699937492609024, -0.1205664873123169, 0.1558123081922531, 0.3167785108089447, -0.33734795451164246, 0.08831000328063965, -0.07873085886240005, -0.026249311864376068, -0.2592583894729614, -0.06848405301570892, -0.21619996428489685, 0.08748152107000351, 0.09147728979587555, -0.026211924850940704, 0.11485664546489716, -0.024141825735569, 0.318766713142395, -0.06884876638650894, -0.12154893577098846, 0.013549607247114182, -0.13794372975826263, -0.006197191774845123, 0.27478650212287903, -0.04550100117921829, 0.15609338879585266, -0.10016919672489166, 0.3477006256580353, 0.2544685900211334, 0.46110799908638, 0.1641862392425537, 0.21900151669979095, 0.08102229237556458, -0.09397991746664047, -0.15218190848827362, 0.3069344162940979, 0.37406763434410095, -0.19435599446296692, 0.019885379821062088, -0.06344184279441833, -0.07164233177900314, 0.05277911201119423, -0.17729651927947998, 0.0921265259385109, -0.08878962695598602, -0.10019326955080032, 0.019642479717731476, -0.2320617139339447, -0.16621604561805725, -0.08993158489465714, 0.30317452549934387, -0.24031014740467072, -0.0008251667022705078, 0.1689387708902359, -0.06912718713283539, -0.2553642988204956, -0.19867859780788422, -0.25305575132369995, 0.03922772407531738, -0.17211170494556427, -0.06535869836807251, 0.22810207307338715, -0.1495273858308792, 0.1932257115840912, 0.01919569820165634, 0.0847017765045166, 0.004062939435243607, 0.11461712419986725, 0.019148221239447594, -0.04178585857152939, 0.23430392146110535, 0.07419584691524506, -0.1913391798734665, -0.19791153073310852, -0.1380830556154251, -0.08875920623540878, 0.2999257743358612, -0.01350325345993042, -0.36847278475761414, 0.04259426146745682, 0.36220160126686096, -0.09137711673974991, 0.11925137042999268, -0.10684456676244736, 0.029560649767518044, -0.03175324946641922, -0.23009619116783142, -0.14530274271965027, -0.11995267868041992, 0.17303165793418884, -0.30036768317222595, 0.1617388278245926, 0.19878648221492767, -0.4250655770301819, 0.020312972366809845, 0.28445005416870117, -0.12043243646621704, 0.18276983499526978, 0.3523825407028198, -0.36355912685394287, 0.13678735494613647, 0.02014274336397648, 0.12224528193473816, 0.1607288122177124, -0.029653314501047134, -0.38042354583740234, 0.3053368330001831, -0.2930716872215271, 0.05911228805780411, 0.22787758708000183, -0.16960354149341583, 0.29378774762153625, 0.08013340830802917, 0.387741357088089, 0.32282555103302, 0.05571860074996948, 0.30657219886779785, -0.3592923581600189, -0.2058400809764862, -0.12535199522972107, 0.346178263425827, -0.1675853282213211, -0.10263202339410782, -0.0022665560245513916, -0.17154096066951752, 0.3423398435115814, -0.14761090278625488, 0.05130767822265625, -0.06913965195417404, 0.05009816959500313, -0.28720057010650635, 0.14326876401901245, 0.24492093920707703, -0.25889602303504944, 0.18757998943328857, -0.33864298462867737, 0.06058115139603615, -0.13159486651420593, -0.09905276447534561, 0.1280006468296051, 0.1213672086596489, -0.15231800079345703, 0.011651631444692612, 0.34890228509902954, 0.12386202067136765, 0.17199884355068207, -0.033617954701185226, -0.2523760199546814, -0.1624266356229782, -0.1076895073056221, -0.011452644132077694, -0.17910432815551758, 0.07024472206830978, -0.10261387377977371, -0.35891348123550415, 0.1882927119731903, -0.21502763032913208, -0.043962880969047546, -0.045006416738033295, -0.04403848573565483, 0.12652917206287384, -0.04469521716237068, 0.23460645973682404, -0.04596082121133804, 0.023556500673294067, 0.04438403248786926, 0.1431330442428589, 0.17014192044734955, 0.11464226245880127, -0.010834528133273125, -0.12703388929367065, -0.03685172647237778, 0.31756919622421265, 0.03314441069960594, 0.11628060787916183, 0.2167149931192398, -0.40031862258911133, 0.19593173265457153, 0.04555284604430199, -0.07323599606752396, 0.128197580575943, 0.20603030920028687, 0.2941429913043976, -0.09698949754238129, 0.17670494318008423, -0.4103437662124634, 0.135844424366951, 0.5218271613121033, -0.25713014602661133, -0.20669913291931152, 0.14731881022453308, -0.08137115091085434, -0.3318522274494171, 0.10281834006309509, 0.08577820658683777, 0.270280122756958, 0.21900521218776703, 0.15892435610294342, 0.03226969763636589, 0.08192712813615799, -0.2966946065425873, 0.1290391981601715, -0.04156671464443207, 0.12292680144309998, 0.22469019889831543, 0.28684067726135254, -0.36697185039520264, -0.5138865113258362, -0.021249648183584213, 0.04505525529384613, 0.1450604498386383, -0.057995736598968506, -0.05817919224500656, -0.2080821841955185, -0.013391844928264618, 0.0056707789190113544, -0.17244219779968262, 0.07265985012054443, -0.06297293305397034, 0.3116897940635681, 0.44533759355545044, -0.3515933156013489, 0.01012506615370512, 0.14411082863807678, 0.2507060170173645, -0.058262601494789124, 0.05470700562000275, -0.39937323331832886, -0.17146502435207367, -0.1911238133907318, 0.250762015581131, 0.10900421440601349, 0.1486179232597351, 0.10299333184957504, -0.14900891482830048, -0.1463577002286911, -0.03615964204072952, -0.047127194702625275, 0.015760362148284912, -0.02995304763317108, 0.1839662790298462, 0.04615355655550957, 0.3709162473678589, -0.03140023350715637, -0.15112124383449554, 0.2246301919221878, -0.18066126108169556, -0.2234293520450592, 0.1055503860116005, -0.1171712577342987, -0.04853004589676857, -0.16998456418514252, -0.20723989605903625, -0.15610402822494507, -0.5038063526153564, 0.3015201687812805, 0.17814971506595612, 0.23629747331142426, -0.2636587619781494, 0.16983307898044586, 0.019729435443878174, -0.03872497379779816, 0.1865214705467224, -0.05707960203289986, -0.4893980026245117, 0.23422494530677795, -0.2145138829946518, -0.40611061453819275, 0.0035007186233997345, 0.11224089562892914, 0.1257448047399521, -0.09087909758090973, -0.4936925172805786, 0.05401475355029106, 0.0262436643242836, 0.29648447036743164, -0.0029119476675987244, -0.2673574686050415, 0.32265812158584595, 0.10120382905006409, -0.2628483176231384, -0.05267557129263878, -0.09443609416484833, -0.007432825863361359, 0.2026323676109314, 0.050277967005968094, -0.12275394052267075, 0.2639523446559906, -0.04075399786233902, 0.46783941984176636, -0.1257401704788208, 0.006909191608428955, 0.248600572347641, 0.026501337066292763, 0.0345999076962471, -0.18769070506095886, 0.0604928657412529, 0.061464231461286545, -0.2203148603439331, -0.32061320543289185, 0.29712048172950745, -0.0859968289732933, -0.40567710995674133, -0.2708438038825989, -0.3123569190502167, -0.12437035143375397, -0.19159646332263947, 0.2508908212184906, 0.16392658650875092, 0.02520078420639038, 0.0851321816444397, 0.20722642540931702, -0.06909342855215073, 0.0016001155599951744, -0.09488983452320099, -0.12589146196842194, 0.25905683636665344, -0.2050262689590454, -0.019762519747018814, -0.26864370703697205, -0.5470967292785645, 0.07125520706176758, 0.03728137165307999, -0.09359382092952728, 0.024192120879888535, -0.2856740653514862, 0.41399627923965454, -0.5227665901184082, 0.6296992897987366, 0.24037247896194458, 0.02899768576025963, 0.12953147292137146, 0.006703272461891174, -0.20714887976646423, -0.13210684061050415, 0.001637052744626999, -0.01192452386021614, 0.2378818690776825, 0.06551989167928696, -0.4867013096809387, -0.07194172590970993, 0.0751223936676979, 0.09794511646032333, -0.09096501767635345, -0.3347100019454956, -0.32821038365364075, -0.24790912866592407, -0.29201990365982056, 0.10748718678951263, -0.061591751873493195, 0.10356627404689789, -0.108573317527771, -0.28392767906188965, 0.37184086441993713, 0.15161830186843872, -0.3375532031059265, 0.28758254647254944, 0.1498165726661682, -0.3157367408275604, 0.1270729899406433, 0.09154818952083588, 0.22704952955245972, 0.4517481327056885, 0.5233703851699829, 0.38367217779159546, 0.14141413569450378, 0.1318591982126236, 0.11944203078746796, 0.09629296511411667, 0.3468955457210541, 0.058823585510253906, 0.20280630886554718, 0.10089749842882156, 0.2605774402618408, 0.070594921708107, -0.29332584142684937, 0.3763793706893921, -0.3330189883708954, 0.10036201030015945, -0.07953637838363647, 0.26898741722106934, -0.279585599899292, -0.032158784568309784, -0.009058132767677307, -0.33121806383132935, 0.03882439807057381, 0.3566814064979553, 0.1583905667066574, 0.9234070181846619, 0.13241711258888245, 0.14787845313549042, 0.4510565400123596, -0.3071761727333069, 0.10580315440893173, -0.50360107421875, 0.2841046452522278, -0.3636614680290222, 0.11828453838825226, 0.14730757474899292, -0.21941649913787842, -0.08679679781198502, 0.054339051246643066, -0.2442883551120758, -0.13517360389232635, 0.07533815503120422, 0.3042301535606384, -0.11838391423225403, 0.2623169422149658, -0.08734191954135895, -0.06578077375888824, -0.3569346070289612, 0.2274346947669983, -0.04552900791168213, -0.20083816349506378, -0.1102205440402031, -0.2747710347175598, 0.03779098764061928, -0.14607389271259308, 0.10547582805156708, 0.19555574655532837, 0.011919554322957993, -0.02380206063389778, 0.1312333345413208, -0.10826720297336578, -0.31916898488998413, -0.21535217761993408, -0.4745597243309021, -0.09652377665042877, -0.13879594206809998, 0.33530694246292114, 0.14076484739780426, 0.14909394085407257, 0.03290686011314392, -0.04905314743518829, 0.15922097861766815, -0.34367460012435913, -0.4067172408103943, 0.2627016305923462, -0.21412429213523865, -0.2332027703523636, -0.07760176807641983, 0.13468675315380096, -0.08666911721229553, -0.18179816007614136, -0.09900374710559845, -0.0768609493970871, -0.19261187314987183, -0.16092438995838165, 0.3273869454860687, -0.06452493369579315, -0.16471554338932037, 0.15848371386528015, 0.12337398529052734, -0.19326463341712952, -0.3151736259460449, 0.48146578669548035, 0.31805336475372314, 0.12609165906906128, 0.2801176905632019, 0.1660461574792862, -0.2799460291862488, -0.23603218793869019, -0.08927835524082184, 0.2445267289876938, -0.3040558993816376, 0.16087530553340912, 0.05957425385713577, -0.0025961697101593018, 0.19105814397335052, 0.1804295778274536, -0.010635778307914734, 0.04166267439723015, -0.26532626152038574, -0.06183718144893646, -0.346151202917099, 0.20466738939285278, 0.19235678017139435, 0.02919255569577217, 0.2245817482471466, 0.18623681366443634, 0.010888511314988136, 0.19856518507003784, -0.4996713101863861, 0.03328464925289154, -0.2954396605491638, 0.17591659724712372, -0.3811199963092804, -0.1370427906513214, 0.11185348778963089, 0.18013523519039154, 0.27535682916641235, 0.1723579615354538, -0.18335559964179993, -0.39431098103523254, 0.22031034529209137, 0.08051435649394989, 0.08009077608585358, 0.11208771914243698, -0.1346065253019333, -0.16871868073940277, -0.2726081907749176, 0.14416056871414185, 0.2740330696105957, -0.2999517619609833, -0.21025986969470978, -0.1848933845758438, 0.35971421003341675, 0.017862755805253983, 0.04957117885351181, -0.05727030336856842, -0.09052994847297668, 0.3734549880027771, -0.16866913437843323, 0.008152667433023453, -0.23492570221424103, -0.09851562976837158, -0.022075993940234184, 0.15763384103775024, -0.06535734236240387, 0.31983745098114014, 0.5427548885345459, -0.13744805753231049, -0.18076442182064056, -0.4901942312717438, 0.3060859441757202, 0.3281075954437256, 0.021632663905620575, -0.06217575818300247, 0.014576260931789875, 0.37835025787353516, -0.13634106516838074, -0.1543048471212387, -0.07580094039440155, -0.1864163875579834, 0.1326613426208496, -0.17371922731399536, 0.07844144105911255, -0.1809016466140747, 0.15616737306118011, 0.26021793484687805, 0.2356039583683014, -0.04509694129228592, -0.4172826111316681, 0.22261467576026917, -0.13194172084331512, -0.028850410133600235, 0.2870749533176422, 0.1617954671382904, 0.2812539339065552, 0.2920628786087036, -0.012504182755947113, 0.038377538323402405, 0.0896272361278534, 0.13224151730537415, -0.30887266993522644, -0.0775807648897171, 0.05170486867427826, 0.3235781490802765, 0.1419963836669922, 0.019704502075910568, 0.2414645105600357, 0.023839473724365234, 0.20326292514801025, 0.0707254409790039, -0.3086637854576111, 0.2775704264640808, -0.19134095311164856, -0.03983636945486069, -0.5106095671653748, -0.259990930557251, 0.01408599317073822, 0.2820050120353699, -0.028616029769182205, 0.2071341872215271, 0.05659465491771698, 0.17116151750087738, -0.026641711592674255, -0.14129824936389923, -0.046832866966724396, -0.35835057497024536, 0.17910797894001007, -0.23071171343326569, 0.2088930904865265, 0.16171753406524658, 0.025208167731761932, 0.042685482650995255, 0.07195039838552475, 0.39671579003334045, 0.27543604373931885, -0.14549650251865387, 0.03788347169756889, -0.1719825714826584, -0.0719209685921669, -0.29303672909736633, 0.31943562626838684, 0.453511118888855, 0.001881435513496399, 0.21584539115428925, 0.30989861488342285, -0.39775601029396057, 0.19491112232208252, 0.09483446180820465, -0.06617851555347443, -0.03298421949148178, -0.10320562869310379, 0.16716191172599792, -0.37136703729629517, -0.09711384773254395, -0.29901692271232605, -0.4224469065666199, 0.0884251743555069, -0.12206768989562988, -0.09972581267356873, 0.04941798001527786, -0.27191299200057983, 0.17324882745742798, -0.09667225182056427, 0.7907401919364929, 0.0011275336146354675, 0.19893500208854675, -0.12864428758621216, -0.24758034944534302, -0.23507598042488098, 0.349507212638855, -0.33067724108695984, 0.16680894792079926, 0.10025347769260406, 0.35964030027389526, 0.19289755821228027, 0.04006198048591614, -0.03868594765663147, 0.1911458522081375, -0.21931679546833038, 0.18697501718997955, -0.32290908694267273, 0.08441361784934998, 0.18704074621200562, 0.058730095624923706, -0.17284123599529266, -0.10700251907110214, 0.44566699862480164, -0.4249393939971924, 0.26451462507247925, -0.12865321338176727, -0.14051833748817444, 0.24162831902503967, 0.2099360227584839, 0.3391507565975189, -0.06210969388484955, 0.055380139499902725, -0.16879308223724365, -0.05087441951036453, -0.0838070660829544, -0.04179641976952553, -0.1660308986902237, -0.0942487046122551, 0.05926172435283661, 0.30684980750083923, 0.24591132998466492, -0.10481597483158112, -0.10902063548564911, 0.19793903827667236, -0.2945502996444702, 0.0200938917696476, 0.13796637952327728, -0.08160725980997086, 0.09575871378183365, 0.04545292258262634, -0.08624117076396942, 0.0989936888217926, 0.03138917684555054, -0.24641349911689758, -0.4815077781677246, -0.15461312234401703, 0.5169656276702881, -0.30593982338905334, -0.3086983263492584, 0.09582135081291199, 0.08054915070533752, -0.09792331606149673, -0.1466415524482727, -0.14691878855228424, 0.1315605640411377, 0.09967351704835892, 0.023489851504564285, -0.16396643221378326, 0.26528212428092957, 0.08566270768642426, 0.11245428025722504, -0.17088165879249573, 0.06266971677541733, 0.16660648584365845, -0.1457877904176712, -0.4113418459892273, -0.3202969431877136 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
The problem with this approach is that it also deletes the downloaded files (if they need not be extracted). 😟
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
20
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell The problem with this approach is that it also deletes the downloaded files (if they need not be extracted). 😟
[ -0.2656216025352478, 0.003930196166038513, -0.26826611161231995, -0.0005167275667190552, -0.14204730093479156, -0.01746673509478569, 0.2470802366733551, 0.20654048025608063, 0.10318686068058014, 0.39213573932647705, -0.1538829654455185, 0.32790303230285645, 0.1789850890636444, 0.25962749123573303, -0.15232066810131073, 0.25323009490966797, -0.20053616166114807, 0.3658095896244049, -0.2848510146141052, 0.04204883426427841, -0.28021109104156494, -0.07013150304555893, -0.03565780445933342, 0.04616620019078255, 0.14217782020568848, -0.15575248003005981, 0.09052062034606934, 0.2465013861656189, -0.2516775131225586, -0.3531138300895691, 0.07247266173362732, 0.513559877872467, -0.003761189989745617, 0.09323342889547348, -0.00009876231342786923, -0.12362504750490189, 0.3177978992462158, 0.08072018623352051, -0.4152303636074066, 0.2743620276451111, -0.4041042625904083, -0.03040425479412079, 0.2505248486995697, -0.23786309361457825, 0.20491904020309448, -0.13262715935707092, 0.018259407952427864, -0.23999664187431335, 0.5365173816680908, 0.06809666007757187, 0.27179867029190063, -0.04126756638288498, -0.0734325647354126, 0.09214726835489273, 0.1939816176891327, 0.11223798990249634, -0.00010667182505130768, 0.2681581377983093, 0.20891961455345154, 0.17897509038448334, 0.09412528574466705, 0.3977185785770416, -0.2903946042060852, 0.06139085441827774, 0.29237911105155945, -0.0076111359521746635, -0.009636715054512024, -0.3616511821746826, 0.0718468651175499, 0.14102256298065186, 0.5581763386726379, -0.3158486783504486, 0.05217404663562775, -0.3504433333873749, -0.09881333261728287, -0.5537284016609192, 0.12079526484012604, 0.011452224105596542, -0.18413901329040527, 0.389486700296402, -0.2829911410808563, -0.3255137801170349, -0.2837066054344177, 0.1239493191242218, 0.005472414195537567, -0.3209482431411743, -0.0664699524641037, -0.18729296326637268, 0.49567073583602905, 0.02566332370042801, 0.10499554872512817, -0.2149844467639923, -0.004749085754156113, 0.0949297696352005, -0.037486378103494644, -0.30097442865371704, -0.09166447073221207, 0.09398713707923889, 0.022699717432260513, 0.23978956043720245, 0.14194130897521973, 0.08817129582166672, 0.1040998250246048, 0.3050268888473511, 0.2513311505317688, 0.01542171835899353, 0.28900691866874695, -0.15256962180137634, 0.3164677023887634, -0.022512391209602356, 0.19778406620025635, 0.11788228154182434, 0.21734905242919922, -0.25329336524009705, -0.05337527021765709, 0.2574264705181122, 0.36965471506118774, -0.13651429116725922, -0.4044690728187561, -0.008640835992991924, 0.13261660933494568, -0.12182623893022537, -0.17178645730018616, 0.2717477083206177, 0.1391313225030899, -0.18016260862350464, 0.07104329019784927, -0.038700975477695465, -0.23113979399204254, -0.2744068503379822, -0.11199852079153061, 0.27453601360321045, -0.21978719532489777, -0.25226089358329773, 0.3603929877281189, -0.24734795093536377, -0.06494610756635666, 0.040978576987981796, -0.27354228496551514, -0.06351437419652939, 0.3721854090690613, -0.0692397803068161, 0.3311103880405426, 0.3904465138912201, 0.14810407161712646, -0.15627972781658173, -0.14780911803245544, -0.1978185772895813, -0.005594559013843536, 0.5688892602920532, -0.17929300665855408, -0.02623697742819786, -0.02449369989335537, 0.44738754630088806, -0.06263165920972824, -0.11368052661418915, -0.2921042740345001, 0.035008180886507034, -0.2410092055797577, 0.0689031183719635, 0.08240354806184769, 0.1505557894706726, 0.022358637303113937, 0.07872016727924347, -0.04467405378818512, 0.588823676109314, -0.5218260884284973, -0.13085883855819702, -0.3393498361110687, -0.56798255443573, 0.08585503697395325, -0.09257230162620544, -0.12563978135585785, 0.320285826921463, -0.21133963763713837, 0.44057828187942505, 0.43447086215019226, -0.21805831789970398, -0.3015922009944916, 0.16718629002571106, -0.23825138807296753, -0.027974147349596024, -0.0573575422167778, 0.01088363490998745, 0.3209913372993469, -0.1154065877199173, -0.12511511147022247, 0.16976343095302582, 0.01374845951795578, -0.06965025514364243, -0.04044293612241745, -0.30836164951324463, 0.021215030923485756, -0.013021002523601055, -0.04656628891825676, 0.1092195138335228, 0.3559788167476654, 0.07082673162221909, 0.3481092154979706, 0.1310756802558899, -0.08885076642036438, 0.0858931764960289, 0.3083876669406891, -0.1210332065820694, -0.3935549855232239, -0.034585800021886826, -0.5293790698051453, -0.031203966587781906, -0.11770153045654297, -0.19365330040454865, -0.12158797681331635, -0.34188562631607056, -0.31049901247024536, -0.03218358755111694, -0.36896324157714844, 0.03253861516714096, 0.20625989139080048, 0.14287233352661133, -0.2305881381034851, -0.022342916578054428, -0.3348052203655243, 0.20929282903671265, -0.1355469822883606, 0.288138747215271, -0.2546672224998474, -0.22708049416542053, -0.0317443311214447, -0.087443508207798, -0.04775691404938698, -0.23721393942832947, 0.05739903822541237, -0.21889986097812653, 0.11986638605594635, 0.5489615797996521, 0.1694638431072235, 0.2540355324745178, 0.01742406189441681, -0.06967402994632721, 0.1539764404296875, -0.03732766956090927, -0.22204464673995972, 0.13938598334789276, 0.0554845854640007, 0.2783973813056946, -0.5639879107475281, 0.04334471374750137, -0.00878344476222992, -0.04957856982946396, 0.02700677514076233, -0.33121979236602783, -0.08622760325670242, -0.4136403799057007, 0.030713515356183052, -0.40381771326065063, -0.07096162438392639, 0.4589149057865143, 0.03947598114609718, 0.2847939431667328, -0.013156510889530182, 0.10323461145162582, 0.27934277057647705, -0.19798676669597626, 0.0650995597243309, 0.28444501757621765, 0.012761078774929047, -0.07279358804225922, 0.04972228407859802, 0.417011022567749, 0.23370370268821716, 0.2752867043018341, 0.2470269650220871, 0.21702836453914642, 0.2633060812950134, -0.2996516823768616, 0.3158632218837738, 0.19803708791732788, -0.21587181091308594, 0.3014184236526489, -0.1232021227478981, -0.11048532277345657, -0.4623947739601135, -0.05029512941837311, 0.06071743369102478, 0.017474215477705002, -0.14020192623138428, -0.10687606036663055, -0.3363993167877197, -0.37028881907463074, 0.028272030875086784, 0.0803098976612091, -0.01848536729812622, -0.19704210758209229, 0.33990103006362915, 0.34833019971847534, -0.46995294094085693, 0.2068680077791214, -0.14611060917377472, 0.3708260655403137, -0.17587518692016602, -0.008682670071721077, -0.09985105693340302, 0.14658522605895996, -0.2015373706817627, 0.24050775170326233, 0.1102556362748146, -0.08654439449310303, 0.39488476514816284, -0.17838449776172638, 0.033363401889801025, -0.033666111528873444, -0.00443393737077713, 0.26712363958358765, 0.27930748462677, -0.06759098917245865, 0.0010051429271697998, 0.3424723148345947, -0.10612277686595917, -0.21000328660011292, -0.2394520342350006, 0.002806125208735466, -0.23127512633800507, -0.288557767868042, 0.24690623581409454, 0.20259222388267517, -0.283412367105484, -0.604346513748169, -0.06932119280099869, -0.4394506514072418, 0.06160855293273926, -0.06098828464746475, 0.21771295368671417, 0.3539872467517853, -0.017490141093730927, 0.06220143660902977, -0.15711839497089386, 0.05492072552442551, -0.1442272812128067, -0.38594239950180054, 0.01878497377038002, -0.23820802569389343, 0.004789784550666809, 0.39019110798835754, 0.2559971809387207, -0.1840524822473526, 0.16339918971061707, -0.13217616081237793, -0.16891689598560333, -0.113054558634758, -0.08279212564229965, -0.17426539957523346, 0.0612243190407753, 0.23276014626026154, 0.04250899702310562, -0.3042833209037781, -0.02891552448272705, 0.11218951642513275, 0.20503583550453186, -0.059752143919467926, -0.052529238164424896, -0.07294350862503052, 0.1297517716884613, 0.01967863366007805, 0.22229860723018646, -0.057091813534498215, 0.17609401047229767, 0.2675115466117859, 0.2015661895275116, 0.4417977035045624, -0.17463752627372742, 0.12779656052589417, -0.14558948576450348, 0.24629651010036469, -0.078623928129673, 0.29065975546836853, -0.050833187997341156, 0.02397901937365532, -0.0814325213432312, -0.14180758595466614, -0.4198201596736908, -0.3878517746925354, -0.02516152895987034, 0.07859877496957779, -0.025919102132320404, 0.0842830091714859, 0.04011903703212738, 0.3276757001876831, 0.051401738077402115, -0.029878374189138412, 0.26888108253479004, 0.26010018587112427, 0.022824978455901146, -0.289082795381546, 0.0738585963845253, -0.25372520089149475, 0.3457176983356476, -0.12031856179237366, -0.1673586070537567, -0.18165472149848938, -0.22411558032035828, 0.18884515762329102, 0.05619468539953232, 0.4513484239578247, 0.08487740159034729, 0.20419612526893616, -0.09996400773525238, 0.020483195781707764, 0.14304353296756744, 0.07353167235851288, -0.05212259665131569, -0.028199410066008568, 0.15844625234603882, 0.09359598159790039, -0.299007385969162, -0.22428466379642487, 0.13927266001701355, 0.15993911027908325, -0.07044750452041626, -0.1961483210325241, 0.034542497247457504, -0.2667105197906494, -0.4425821900367737, 0.22025305032730103, 0.19761522114276886, -0.10141044855117798, -0.12634886801242828, -0.28487998247146606, 0.04146053269505501, -0.16357600688934326, 0.22087165713310242, 0.13821344077587128, 0.29958441853523254, 0.2446286827325821, -0.10178625583648682, 0.18382303416728973, 0.22782005369663239, 0.17909744381904602, 0.3095080554485321, -0.24157053232192993, -0.15135934948921204, -0.004560478031635284, -0.5304821133613586, 0.0917714387178421, 0.17418378591537476, -0.018459875136613846, 0.03758791461586952, 0.013809006661176682, 0.2319421023130417, -0.0733502209186554, 0.25432389974594116, 0.022192925214767456, -0.12594003975391388, -0.03194483369588852, -0.25791680812835693, 0.14254792034626007, -0.1445775330066681, -0.30427128076553345, 0.16919338703155518, 0.054465584456920624, -0.25976642966270447, -0.06782861053943634, -0.06960330158472061, 0.8854900598526001, -0.10008068382740021, 0.0235220268368721, -0.028651908040046692, 0.022795245051383972, 0.42846059799194336, -0.24577224254608154, 0.13189974427223206, 0.00423242524266243, -0.23152118921279907, -0.07391849905252457, 0.025481674820184708, 0.08475196361541748, 0.2891348600387573, -0.04472891986370087, 0.09655806422233582, -0.3326241970062256, -0.04295237734913826, 0.02620726451277733, 0.2072034776210785, 0.14654827117919922, -0.05463829264044762, -0.12246403098106384, 0.2427809238433838, 0.04265499860048294, 0.32569602131843567, -0.28532135486602783, 0.06057631969451904, 0.5346728563308716, -0.25284212827682495, 0.3785666823387146, 0.1127307191491127, -0.009254041127860546, 0.05921859294176102, -0.2954224646091461, -0.288088858127594, -0.33200517296791077, 0.25876638293266296, 0.010745696723461151, -0.018801268190145493, 0.0986509621143341, 0.11134205758571625, -0.04714979976415634, 0.08475293219089508, -0.22225560247898102, -0.08030108362436295, 0.18765775859355927, -0.22815456986427307, -0.026190370321273804, 0.12520137429237366, 0.013783629052340984, -0.265270471572876, 0.27465397119522095, 0.2212047427892685, -0.05214054137468338, -0.2569934129714966, -0.18736594915390015, -0.23985189199447632, -0.03942238539457321, -0.1336778700351715, 0.23157314956188202, 0.06310161203145981, -0.09675446897745132, 0.20620965957641602, -0.06750352680683136, -0.28834855556488037, -0.14051222801208496, 0.29611584544181824, -0.06927324831485748, -0.35669201612472534, 0.4138302803039551, -0.032438118010759354, -0.28652656078338623, -0.46269726753234863, -0.13337364792823792, 0.04716038331389427, -0.12491035461425781, 0.28914085030555725, 0.09274407476186752, 0.07845087349414825, 0.027766389772295952, 0.3225093483924866, -0.1903376579284668, 0.039245542138814926, -0.032301172614097595, -0.17988981306552887, -0.35062670707702637, 0.015015214681625366, -0.019887980073690414, 0.4562342166900635, 0.286943644285202, 0.14115186035633087, 0.2719047963619232, -0.29438579082489014, -0.4731309711933136, 0.11910843104124069, 0.041489697992801666, 0.006874244660139084, 0.28094911575317383, 0.10390468686819077, -0.040690984576940536, -0.3150799870491028, 0.16433459520339966, 0.025403376668691635, -0.18304793536663055, -0.40097373723983765, -0.25147223472595215, 0.06104530394077301, -0.25398632884025574, -0.05010250210762024, 0.024348873645067215, -0.1865088790655136, 0.052646055817604065, 0.003895291592925787, 0.39692234992980957, -0.003645375370979309, 0.04737548157572746, 0.03885664790868759, -0.006226543337106705, 0.036082327365875244, -0.2743989825248718, -0.10187660157680511, -0.02109818160533905, 0.18386700749397278, -0.12564176321029663, -0.07704715430736542, -0.3273160457611084, -0.09220106154680252, 0.025231143459677696, 0.10655302554368973, 0.4497690796852112, 0.1447935402393341, -0.050226837396621704, -0.007573120296001434, -0.09450835734605789, 0.061042286455631256, 0.2891874611377716, 0.28251054883003235, -0.27194106578826904, -0.2663469910621643, 0.04205993562936783, 0.4671536982059479, -0.26375752687454224, -0.08666395395994186, 0.13936884701251984, -0.13573044538497925, -0.01428365707397461, 0.11059126257896423, -0.010180462151765823, 0.051329925656318665, 0.1348991096019745, 0.236526221036911, 0.38271212577819824, -0.11631537973880768, 0.23844709992408752, 0.47738006711006165, -0.30629196763038635, 0.015621330589056015, 0.18672391772270203, 0.34275710582733154, 0.2230769842863083, 0.35627686977386475, -0.23893246054649353, 0.32796722650527954, 0.2372162938117981, 0.295613557100296, -0.20365062355995178, -0.7033892869949341, 0.11575895547866821, 0.33768951892852783, -0.0647728443145752, 0.22306853532791138, 0.4430839717388153, 0.016638800501823425, 0.13285759091377258, -0.20176564157009125, -0.06794105470180511, 0.3854010999202728, -0.12578141689300537, 0.01725056953728199, -0.13902293145656586, -0.15375153720378876, -0.024860508739948273, 0.06492573022842407, -0.08725911378860474, -0.09659069776535034, 0.0719420462846756, 0.0970577523112297, -0.024455949664115906, 0.04641645401716232, 0.05713400989770889, -0.028817474842071533, 0.03494267910718918, -0.26132282614707947, -0.1846616566181183, 0.16331180930137634, 0.11172394454479218, 0.13121651113033295, 0.052762940526008606, 0.029809165745973587, 0.06110760197043419, 0.035683341324329376, 0.04129873216152191, -0.19645875692367554, 0.00422561913728714, -0.34725603461265564, -0.04899357259273529, 0.09671524912118912, 0.29871949553489685, 0.030245881527662277, 0.34868431091308594, -0.3156246542930603, 0.23003897070884705, 0.1145898699760437, 0.171488419175148, -0.22290976345539093, -0.08005597442388535, 0.4357313811779022, -0.09261858463287354, -0.15192042291164398, -0.06391733139753342, -0.1813761442899704, 0.008716008625924587, 0.3761431574821472, -0.06527289003133774, 0.086529441177845, -0.006335558835417032, 0.16125844419002533, 0.0931929349899292, 0.15455996990203857, 0.12761059403419495, 0.04708043858408928, -0.2249920815229416, -0.14742420613765717, -0.5930467247962952, 0.08756085485219955, 0.07133830338716507, -0.03479013219475746, 0.22302287817001343, -0.004640367813408375, 0.018232181668281555, 0.28152793645858765, 0.01480017602443695, 0.032571226358413696, -0.070657879114151, -0.11428561806678772, -0.1791449636220932, 0.03141322731971741, -0.0000888928771018982, 0.12657177448272705, 0.026465225964784622, -0.4202089011669159, 0.20586487650871277, -0.20118874311447144, 0.14273443818092346, 0.04540322721004486, 0.07386425137519836, 0.2704370319843292, -0.04017014801502228, 0.520102858543396, 0.054536283016204834, 0.0743778869509697, -0.16972488164901733, -0.012211447581648827, 0.14230570197105408, 0.08254234492778778, -0.20872648060321808, -0.12117253988981247, 0.224319189786911, 0.11452016234397888, -0.09870258718729019, 0.3107112944126129, -0.13107430934906006, 0.16845396161079407, -0.03180311620235443, 0.22500383853912354, -0.26397761702537537, -0.014063284732401371, 0.16807466745376587, 0.22063185274600983, 0.14863020181655884, 0.1946943998336792, -0.18786096572875977, 0.027037056162953377, -0.5071933269500732, -0.3310838043689728, 0.2973477840423584, 0.05093618482351303, -0.3021381199359894, -0.24936267733573914, 0.552869975566864, 0.18048296868801117, 0.1262204349040985, -0.2734895646572113, 0.23352396488189697, 0.22050008177757263, -0.2916499376296997, -0.3274587094783783, 0.3174760937690735, -0.2966778874397278, -0.041116535663604736, 0.16258594393730164, 0.4446350932121277, 0.5760482549667358, -0.09343121200799942, -0.3371543288230896, -0.309578537940979 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
> The problem with this approach is that it also deletes the downloaded files (if they need not be extracted). worried Right! These probably should not be deleted by default, but having an option for those users who are tight on disc space?
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
43
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell > The problem with this approach is that it also deletes the downloaded files (if they need not be extracted). worried Right! These probably should not be deleted by default, but having an option for those users who are tight on disc space?
[ -0.08295665681362152, -0.034347809851169586, -0.16054919362068176, 0.03875412791967392, -0.20462964475154877, 0.1154838427901268, 0.19292603433132172, 0.07090955972671509, 0.22057366371154785, 0.5341196060180664, -0.06845749914646149, 0.26402443647384644, 0.013283859938383102, 0.19084598124027252, -0.19806304574012756, 0.22465437650680542, -0.166608065366745, 0.33701205253601074, -0.21473601460456848, 0.08346746861934662, -0.2997749447822571, -0.02255440689623356, -0.022837214171886444, -0.050820618867874146, 0.18649345636367798, -0.1386713981628418, 0.14950591325759888, -0.013299822807312012, -0.18463419377803802, -0.4383864998817444, 0.04371519386768341, 0.49841466546058655, 0.10918886959552765, 0.03222254663705826, -0.00011014576011803001, -0.15368983149528503, 0.3969106674194336, 0.1265752911567688, -0.5595617890357971, 0.2821400761604309, -0.3123512864112854, 0.02905126102268696, 0.41435056924819946, -0.21660295128822327, 0.34506872296333313, -0.0839805155992508, 0.013889782130718231, -0.2782652974128723, 0.4417451024055481, -0.05765113607048988, 0.1495646834373474, -0.03549491614103317, -0.2634463906288147, 0.23907890915870667, 0.23337134718894958, 0.38778817653656006, -0.23082566261291504, 0.257890522480011, 0.24397476017475128, 0.2973380982875824, 0.1339915692806244, 0.33523285388946533, -0.1788538545370102, -0.07654345035552979, 0.44626596570014954, 0.01982187293469906, 0.1816505789756775, -0.5444086790084839, -0.02389656752347946, 0.151766836643219, 0.6382085084915161, -0.2165796160697937, -0.030876992270350456, -0.5357814431190491, 0.08349045366048813, -0.5724711418151855, 0.09066032618284225, 0.10027112811803818, -0.3649253845214844, 0.4258257746696472, -0.29557785391807556, -0.526165246963501, -0.20227648317813873, 0.08377423882484436, 0.15913444757461548, -0.4077739119529724, -0.05325300246477127, -0.26087629795074463, 0.5830138921737671, 0.2502104640007019, 0.16485191881656647, -0.3631206154823303, -0.06122403219342232, 0.03713492304086685, -0.013470690697431564, -0.2703585624694824, -0.13252434134483337, 0.2211514115333557, -0.0036029797047376633, 0.301291823387146, 0.14310002326965332, -0.020558428019285202, 0.06112280115485191, 0.2103206217288971, 0.40160056948661804, -0.01988278515636921, 0.17179512977600098, -0.2418455332517624, 0.3024880290031433, -0.026421833783388138, 0.6341673135757446, 0.07151620835065842, 0.241105854511261, -0.05701037868857384, -0.02647186629474163, 0.15182867646217346, 0.2845935821533203, -0.06285255402326584, -0.38021060824394226, -0.029598381370306015, 0.0847037062048912, -0.2031082957983017, -0.09064966440200806, -0.0016716495156288147, 0.11496101319789886, -0.130069762468338, 0.0015139095485210419, -0.007469542324542999, -0.1816163957118988, -0.30618444085121155, -0.03974354639649391, 0.0686907023191452, -0.289205402135849, -0.17875730991363525, 0.4136628210544586, -0.2191271334886551, -0.1544419825077057, 0.06849014014005661, 0.00011036545038223267, -0.01211017370223999, 0.26828086376190186, -0.05547461286187172, 0.16305765509605408, 0.47272270917892456, 0.08608835935592651, -0.1515367329120636, -0.19903360307216644, -0.21809662878513336, -0.06840426474809647, 0.7495590448379517, -0.2746095359325409, -0.15049776434898376, 0.01894979737699032, 0.2894815504550934, -0.025350449606776237, 0.013892168179154396, -0.5010199546813965, 0.2155921310186386, -0.18141397833824158, 0.0022881217300891876, 0.06662160158157349, 0.15410453081130981, -0.0033507905900478363, 0.056566838175058365, -0.17443306744098663, 0.6307995319366455, -0.4656548798084259, -0.29942625761032104, -0.4968104362487793, -0.6836439371109009, 0.09528294950723648, -0.10227951407432556, -0.17142532765865326, 0.32509225606918335, -0.35852932929992676, 0.375508189201355, 0.3074944317340851, -0.08242610096931458, -0.3478594720363617, 0.20434431731700897, -0.1658322662115097, 0.1425141543149948, 0.08952976018190384, 0.057713501155376434, 0.44187477231025696, -0.27268195152282715, -0.18523645401000977, 0.09247173368930817, -0.031511321663856506, -0.0031078271567821503, -0.13446344435214996, -0.47524797916412354, 0.1210177093744278, -0.06795334815979004, 0.11532241106033325, 0.2537805140018463, 0.3379586637020111, 0.026857886463403702, 0.38866180181503296, 0.20830722153186798, 0.001105485949665308, -0.10231180489063263, 0.4389117956161499, -0.20901931822299957, -0.3905944228172302, 0.12291798740625381, -0.5492567420005798, -0.04824717342853546, -0.02825712040066719, -0.05503571778535843, -0.050800010561943054, -0.4611027240753174, -0.07363338023424149, -0.07288139313459396, -0.3416357934474945, 0.18356561660766602, 0.042017862200737, -0.024763621389865875, -0.37472236156463623, 0.10351470112800598, -0.4081607460975647, 0.10467308759689331, -0.3408375382423401, 0.2429974228143692, -0.22348672151565552, -0.09652485698461533, -0.06866911053657532, 0.06561679393053055, -0.30803701281547546, -0.16110903024673462, -0.10459088534116745, -0.14991848170757294, 0.04321054369211197, 0.5096994638442993, 0.17345140874385834, 0.18418076634407043, -0.1304844319820404, 0.13900716602802277, 0.3602275252342224, -0.03071494959294796, -0.1795109659433365, 0.1200522929430008, 0.032123222947120667, 0.07788959890604019, -0.5806270837783813, -0.06242342293262482, -0.2694743573665619, -0.04172322899103165, -0.09383602440357208, -0.31749460101127625, -0.11931020021438599, -0.1945054680109024, -0.20049814879894257, -0.4710046947002411, -0.3224378824234009, 0.4634617567062378, -0.011807344853878021, 0.33296751976013184, 0.052371881902217865, -0.1460525095462799, 0.09254035353660583, -0.149163618683815, -0.011489614844322205, 0.3981914520263672, 0.046552062034606934, -0.23699021339416504, 0.11613934487104416, 0.4640434682369232, 0.5430462956428528, 0.2155160754919052, 0.20749728381633759, 0.15374846756458282, 0.4319210350513458, -0.23530246317386627, 0.2797389030456543, 0.3416425585746765, -0.25869640707969666, 0.40812668204307556, -0.17591775953769684, -0.0014433367177844048, -0.5258113145828247, 0.03715592250227928, 0.1990693211555481, 0.0011355280876159668, -0.19752532243728638, -0.19189155101776123, -0.22271716594696045, -0.379626601934433, 0.28256332874298096, 0.23508568108081818, 0.10386325418949127, -0.14581918716430664, 0.39231592416763306, 0.264138787984848, -0.4309953451156616, 0.10951600968837738, -0.1212424635887146, 0.7708504796028137, -0.36278945207595825, -0.24358703196048737, -0.13884583115577698, 0.345768004655838, -0.17540878057479858, 0.11894957721233368, 0.08117759972810745, -0.3069465458393097, 0.3662838041782379, -0.14648933708667755, -0.000135812908411026, 0.0099538154900074, -0.1332153081893921, 0.33336925506591797, 0.2514458894729614, -0.06852521002292633, 0.04465967044234276, 0.14804422855377197, -0.0681338906288147, -0.16390495002269745, -0.36315327882766724, -0.03169675171375275, -0.1370570957660675, -0.32963091135025024, 0.27799004316329956, 0.22885741293430328, -0.4412078857421875, -0.31951260566711426, -0.12428533285856247, -0.4255293607711792, 0.03800753876566887, -0.016475392505526543, 0.0655168741941452, 0.2943267226219177, -0.0030631795525550842, -0.07956209033727646, -0.14837734401226044, -0.008354099467396736, -0.0901520699262619, -0.40953880548477173, -0.04380778595805168, -0.030535267665982246, 0.10303564369678497, 0.31655827164649963, 0.23562483489513397, -0.1793300062417984, 0.24146299064159393, -0.34277254343032837, -0.07485485076904297, -0.08687134832143784, 0.10411348938941956, -0.24326777458190918, 0.19768279790878296, 0.21589979529380798, 0.1559787094593048, -0.09495357424020767, 0.19123661518096924, 0.025010395795106888, 0.11895883083343506, 0.07150046527385712, 0.015624552965164185, -0.030593734234571457, 0.04028306528925896, 0.07638928294181824, 0.28603118658065796, -0.07994237542152405, 0.34079885482788086, 0.2878987789154053, 0.34410175681114197, 0.8187389373779297, -0.18766102194786072, 0.23226836323738098, -0.021441776305437088, 0.13102513551712036, -0.23994304239749908, 0.323722243309021, -0.017048314213752747, -0.09661389887332916, -0.03413037210702896, -0.17176148295402527, -0.24910318851470947, -0.28792065382003784, -0.06973724067211151, -0.0848177969455719, -0.07085695117712021, 0.02251274138689041, 0.02492711693048477, 0.43608054518699646, -0.0330306738615036, 0.01985059306025505, 0.47513484954833984, 0.5018600821495056, 0.06575378030538559, -0.30375880002975464, 0.10457755625247955, -0.35133492946624756, 0.04655275493860245, -0.22037151455879211, -0.18338213860988617, -0.14736907184123993, -0.16608574986457825, 0.21712234616279602, 0.3068012595176697, 0.4198691248893738, 0.1558612734079361, -0.022016949951648712, -0.19609425961971283, -0.017773695290088654, 0.2416212409734726, -0.02742753177881241, 0.11815543472766876, -0.17350272834300995, 0.17212486267089844, 0.07086651772260666, -0.33116647601127625, -0.2585539221763611, 0.1550445556640625, 0.2456277310848236, -0.08688724040985107, -0.2503454089164734, 0.151188462972641, -0.11892049759626389, -0.42264023423194885, 0.05777684599161148, 0.20723095536231995, -0.2127293348312378, -0.1809891313314438, -0.15534885227680206, 0.03854476660490036, -0.13875791430473328, 0.2181513011455536, -0.0566413551568985, 0.3634272813796997, 0.1509954333305359, -0.023797089233994484, 0.058088913559913635, 0.14576998353004456, 0.18718813359737396, 0.21124398708343506, -0.39485132694244385, -0.16703149676322937, 0.10717807710170746, -0.5822900533676147, 0.12767677009105682, 0.268411248922348, -0.14426741003990173, -0.15709131956100464, -0.07505568861961365, 0.18385383486747742, -0.10225364565849304, 0.13757365942001343, -0.08374936878681183, -0.2911266088485718, 0.04508187621831894, -0.2694299817085266, 0.1322925090789795, -0.044110409915447235, -0.25672194361686707, 0.258345365524292, 0.1544363796710968, -0.25375115871429443, 0.032137181609869, 0.0464152954518795, 1.0099509954452515, 0.011881928890943527, 0.1745121330022812, -0.06493435055017471, 0.14079709351062775, 0.5142528414726257, -0.36401432752609253, 0.10741052031517029, 0.10986024141311646, -0.18132738769054413, -0.16430538892745972, -0.03787698596715927, 0.12412051856517792, 0.26443490386009216, 0.04852041229605675, 0.08191990107297897, -0.33015763759613037, -0.07260328531265259, 0.04823213070631027, 0.229970782995224, 0.0460781492292881, -0.12602639198303223, 0.1243099793791771, 0.06736229360103607, 0.12585461139678955, 0.3585464060306549, -0.3141419589519501, 0.09929270297288895, 0.7022191882133484, -0.22981111705303192, 0.30737340450286865, -0.16996461153030396, 0.12534630298614502, 0.0836731493473053, -0.2120038866996765, -0.21887290477752686, -0.07963506877422333, 0.40177470445632935, -0.04834775626659393, 0.09749381244182587, -0.05394739657640457, -0.1002410352230072, -0.01071697473526001, 0.1262006014585495, -0.1105663925409317, 0.04479765146970749, 0.12064478546380997, -0.1804789900779724, 0.11877480894327164, 0.02426302060484886, -0.08280165493488312, -0.2864322364330292, 0.03989289700984955, 0.19955098628997803, -0.020117536187171936, -0.19134077429771423, -0.20267891883850098, -0.08113612234592438, -0.014010144397616386, -0.04943367838859558, 0.11777687072753906, 0.07549367100000381, -0.049081653356552124, 0.31558436155319214, -0.06199285760521889, -0.40911951661109924, -0.23835919797420502, 0.1744571328163147, 0.04989223927259445, -0.49014803767204285, 0.360393762588501, -0.3456878960132599, -0.30249589681625366, -0.35597896575927734, -0.015932627022266388, -0.09925086051225662, -0.22548702359199524, 0.1821392923593521, 0.03914535045623779, 0.028631001710891724, -0.014101923443377018, 0.24771980941295624, -0.0026415549218654633, 0.04069073870778084, -0.0642719715833664, -0.06399105489253998, -0.2649971842765808, 0.03289584442973137, -0.14894503355026245, 0.4947316646575928, 0.2595670521259308, 0.009593077003955841, 0.2662467956542969, -0.466934472322464, -0.3033011257648468, 0.11572252959012985, 0.36296284198760986, -0.07109270244836807, 0.34197911620140076, 0.32309091091156006, -0.08501550555229187, -0.3671361804008484, -0.005001084879040718, -0.10140205919742584, -0.12081079185009003, -0.1890501081943512, -0.1385280191898346, 0.16504891216754913, -0.15976381301879883, -0.059900037944316864, -0.021418176591396332, -0.14438125491142273, -0.0720878392457962, -0.04801863059401512, 0.3724929392337799, 0.046026088297367096, -0.010972417891025543, -0.025005117058753967, -0.05217450484633446, 0.05023197457194328, -0.15967324376106262, 0.08398455381393433, 0.1172669529914856, 0.25775375962257385, -0.035252854228019714, -0.049743637442588806, -0.25161445140838623, -0.01043730229139328, -0.1269032508134842, 0.28109458088874817, 0.36692649126052856, 0.23516222834587097, -0.048090897500514984, -0.06942194700241089, 0.10309794545173645, 0.05569557100534439, 0.15896593034267426, 0.2242998331785202, -0.30174821615219116, -0.26537245512008667, 0.08663002401590347, 0.34285974502563477, -0.217543363571167, -0.17717255651950836, 0.02050822414457798, 0.08051054924726486, -0.12079103291034698, 0.20147930085659027, 0.19842392206192017, 0.01758885383605957, 0.15848170220851898, 0.11672838777303696, 0.4359886348247528, -0.10210776329040527, 0.34673750400543213, 0.5788607597351074, -0.3466506898403168, 0.09467513859272003, 0.10288970917463303, 0.2916891872882843, 0.0902894139289856, 0.34333890676498413, -0.3116260766983032, 0.3186480402946472, 0.38932910561561584, 0.23151825368404388, -0.4088841378688812, -0.7546131014823914, 0.20292037725448608, 0.32009240984916687, -0.09219938516616821, 0.14477896690368652, 0.6001273989677429, -0.04992356151342392, 0.04550684243440628, -0.14844566583633423, -0.12018752098083496, 0.1467319130897522, -0.25901633501052856, 0.09545926749706268, -0.01572786085307598, -0.2206515371799469, 0.13041037321090698, 0.05361006781458855, -0.17539432644844055, -0.15930944681167603, 0.0166156068444252, 0.10105030238628387, -0.008779384195804596, 0.1002528965473175, 0.2502574026584625, -0.021679848432540894, 0.15003854036331177, -0.2878665030002594, -0.32208430767059326, -0.13835936784744263, 0.15823125839233398, 0.11951568722724915, 0.0797935202717781, -0.07059422135353088, 0.19282981753349304, 0.21094955503940582, -0.24342027306556702, -0.19457437098026276, 0.2346770316362381, -0.32154810428619385, 0.016057556495070457, 0.24841977655887604, 0.38288378715515137, -0.049440957605838776, 0.1700565218925476, -0.11593276262283325, 0.29605045914649963, 0.15452930331230164, 0.14563192427158356, -0.42272403836250305, 0.03966660052537918, 0.3992031514644623, -0.12223175168037415, 0.10155073553323746, 0.011229261755943298, 0.00955144315958023, 0.14198410511016846, 0.46195799112319946, -0.052663132548332214, 0.06857536733150482, -0.079083152115345, 0.08330605179071426, 0.06617437303066254, -0.01681692525744438, 0.2817719280719757, -0.16302120685577393, -0.23590721189975739, 0.050482377409935, -0.5991067886352539, -0.011819541454315186, 0.17017345130443573, 0.15061894059181213, 0.3122883439064026, 0.041652582585811615, 0.055470455437898636, 0.43163514137268066, -0.013553783297538757, 0.0010932930745184422, 0.01676231622695923, -0.22627943754196167, -0.06508434563875198, -0.06200455501675606, 0.06870224326848984, 0.22878797352313995, -0.10166200250387192, -0.4747147560119629, 0.10451668500900269, -0.2276361882686615, 0.004350665956735611, -0.10878387093544006, 0.2295825481414795, 0.18098503351211548, 0.1522783637046814, 0.5763155221939087, 0.04910770803689957, -0.064522385597229, -0.03187808766961098, -0.10496241599321365, 0.10381816327571869, 0.15861685574054718, -0.234246626496315, -0.12096232920885086, 0.18259297311306, 0.004106052219867706, -0.23349739611148834, 0.35573697090148926, -0.26947614550590515, 0.0606958270072937, 0.11092625558376312, 0.18258298933506012, -0.35536277294158936, -0.08009225130081177, 0.06807520240545273, 0.16532985866069794, 0.19952063262462616, 0.18192175030708313, -0.10524502396583557, -0.0026534833014011383, -0.306816041469574, -0.18961460888385773, 0.22092773020267487, 0.2501585781574249, -0.08436904847621918, -0.315356969833374, 0.46700647473335266, 0.34833279252052307, 0.000060206279158592224, -0.31503304839134216, 0.17256230115890503, 0.2673804759979248, -0.3885669708251953, -0.19797541201114655, 0.3072347640991211, -0.39320477843284607, -0.032993070781230927, 0.1317279189825058, 0.5332403182983398, 0.39252790808677673, -0.10330226272344589, -0.24968227744102478, -0.3834249973297119 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
> Right! These probably should not be deleted by default, but having an option for those users who are tight on disc space? I propose leaving that for another PR, and leave this one handling only with "extracted" files. Is it OK for you? :)
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
45
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell > Right! These probably should not be deleted by default, but having an option for those users who are tight on disc space? I propose leaving that for another PR, and leave this one handling only with "extracted" files. Is it OK for you? :)
[ -0.035920076072216034, -0.06501927971839905, -0.15961116552352905, 0.17720714211463928, -0.055057622492313385, 0.1272362470626831, 0.20805756747722626, 0.04887159913778305, 0.1312558650970459, 0.3595602810382843, -0.10314513742923737, 0.2690621614456177, -0.004416528157889843, 0.14917601644992828, -0.25854942202568054, 0.1780424416065216, -0.2317253053188324, 0.3380690813064575, 0.022902339696884155, -0.009142778813838959, -0.28128036856651306, 0.02906186506152153, 0.01988460123538971, 0.21278499066829681, 0.03515753895044327, -0.299641489982605, 0.22200283408164978, 0.23992767930030823, -0.12798070907592773, -0.37343695759773254, 0.03993377089500427, 0.5117782354354858, 0.11173060536384583, -0.10911927372217178, -0.00010612111509544775, -0.1577380895614624, 0.3876798748970032, 0.02788098342716694, -0.4353814125061035, 0.35512083768844604, -0.30728843808174133, -0.04536545276641846, 0.13717499375343323, -0.2560160160064697, 0.1378858983516693, -0.10594379156827927, -0.14097322523593903, -0.2385106384754181, 0.5407012701034546, 0.059869151562452316, 0.20831263065338135, -0.154227152466774, -0.14890223741531372, 0.11941582709550858, 0.2740647792816162, 0.3101167678833008, -0.12116192281246185, 0.19813455641269684, 0.17246505618095398, 0.29599273204803467, 0.2149231880903244, 0.3384639620780945, -0.2297695130109787, -0.0892491489648819, 0.43798157572746277, -0.025901786983013153, 0.25533273816108704, -0.5017809867858887, -0.04972648620605469, 0.11796846985816956, 0.5539230704307556, -0.16930663585662842, 0.04720381647348404, -0.4371776282787323, 0.03977993130683899, -0.6308394074440002, 0.15916919708251953, 0.22599317133426666, -0.2604563534259796, 0.3038279712200165, -0.2966621518135071, -0.49971818923950195, -0.2437523454427719, -0.1186785101890564, -0.041631437838077545, -0.5323351621627808, -0.0502542182803154, -0.24044042825698853, 0.4981401264667511, 0.039452552795410156, 0.19027912616729736, -0.24997171759605408, -0.21312469244003296, -0.11752709746360779, 0.09679064154624939, -0.32202643156051636, -0.16478905081748962, 0.22132927179336548, -0.036217909306287766, 0.3042171001434326, -0.0196077898144722, -0.09022453427314758, -0.0376068651676178, 0.23917943239212036, 0.31894347071647644, -0.014744756743311882, 0.2546177804470062, 0.011995014734566212, 0.3130192160606384, -0.12202207744121552, 0.36950892210006714, 0.06225300207734108, 0.1335315853357315, -0.14660362899303436, -0.09385636448860168, 0.30869659781455994, 0.20768170058727264, -0.17283731698989868, -0.43439871072769165, 0.22875897586345673, 0.15385553240776062, -0.20807252824306488, -0.08434461802244186, 0.14058223366737366, 0.2621583044528961, -0.06330607086420059, 0.15106622874736786, -0.03513636440038681, -0.0396525040268898, -0.40741726756095886, -0.032461415976285934, 0.20500338077545166, -0.19095659255981445, -0.07404276728630066, 0.2897018492221832, -0.09001640975475311, -0.2036077380180359, -0.003437620587646961, 0.05907322093844414, 0.05972861498594284, 0.2539806663990021, -0.09687991440296173, 0.2501298189163208, 0.47055643796920776, 0.03523154929280281, -0.16673344373703003, -0.07096734642982483, -0.1962340921163559, -0.0960654765367508, 0.8499303460121155, -0.17385071516036987, -0.2124631255865097, 0.021249281242489815, 0.37440958619117737, -0.11167594790458679, -0.03452908992767334, -0.41187700629234314, 0.09159266948699951, -0.041154853999614716, 0.044820863753557205, 0.254720538854599, 0.0957329198718071, 0.03162013366818428, 0.08751002699136734, -0.31193670630455017, 0.5652376413345337, -0.5273919701576233, -0.051306694746017456, -0.3216218650341034, -0.60536128282547, 0.2598188817501068, 0.07099150121212006, -0.29499608278274536, 0.18433266878128052, -0.29549962282180786, 0.337782084941864, 0.19995030760765076, -0.0031835809350013733, -0.09103181958198547, 0.20379777252674103, -0.18963439762592316, 0.035784997045993805, 0.10006441175937653, -0.1536293625831604, 0.3162670433521271, -0.40798094868659973, -0.04708632826805115, -0.008808935061097145, -0.07331401854753494, -0.05333481729030609, -0.25777631998062134, -0.3720940351486206, 0.2362431287765503, -0.078404001891613, 0.1494094878435135, 0.21330073475837708, 0.060264572501182556, 0.014146328903734684, 0.39416730403900146, 0.08375174552202225, -0.06319373846054077, 0.12462234497070312, 0.4732131063938141, -0.06319485604763031, -0.4047144949436188, 0.08005990833044052, -0.34248191118240356, -0.04378890246152878, 0.04132495075464249, -0.001864105463027954, -0.007479123771190643, -0.5064333081245422, -0.10718490183353424, -0.13378533720970154, -0.2781308889389038, 0.09368740022182465, 0.08242073655128479, -0.006790496408939362, -0.46085771918296814, -0.12540371716022491, -0.3492361307144165, 0.13723546266555786, -0.3272300660610199, 0.0869651511311531, -0.11317256093025208, -0.07307589799165726, -0.1644003540277481, 0.2073950618505478, -0.1735200136899948, -0.15842515230178833, 0.03268218785524368, -0.17282837629318237, 0.05608721449971199, 0.3132365345954895, 0.14244313538074493, 0.12277951091527939, -0.15739646553993225, 0.14896279573440552, 0.3324626386165619, -0.11907561123371124, -0.06840510666370392, 0.012459086254239082, -0.06600963324308395, 0.07595973461866379, -0.5308089852333069, 0.08633408695459366, -0.16391989588737488, -0.12168624252080917, 0.008958354592323303, -0.2316315472126007, -0.06149858236312866, -0.22878633439540863, -0.058862775564193726, -0.4169214367866516, -0.18988314270973206, 0.5258607268333435, -0.07796300202608109, 0.42407384514808655, 0.05159834027290344, 0.01125422865152359, 0.19373798370361328, -0.17233440279960632, -0.19644072651863098, 0.518522322177887, 0.2150149643421173, -0.10512444376945496, 0.06911467760801315, 0.33542823791503906, 0.47876566648483276, 0.2907492518424988, 0.000040609389543533325, 0.1474931389093399, 0.3579753041267395, -0.21074722707271576, 0.4777980446815491, 0.30099570751190186, -0.3045230507850647, 0.3350107967853546, -0.15598326921463013, -0.027198709547519684, -0.43386077880859375, -0.034014929085969925, 0.17456229031085968, 0.17206694185733795, -0.25683411955833435, -0.18186646699905396, -0.06501227617263794, -0.3531387746334076, 0.2662905156612396, 0.24815066158771515, 0.09624345600605011, -0.1428370624780655, 0.3360708951950073, -0.036023031920194626, -0.5139705538749695, 0.1761125922203064, -0.16106769442558289, 0.7692604660987854, -0.33106017112731934, -0.08498085290193558, -0.22694328427314758, 0.15064361691474915, -0.15765637159347534, 0.1519136279821396, 0.04363533481955528, -0.3020944893360138, 0.4972172677516937, -0.04149020463228226, 0.046514905989170074, -0.081667460501194, -0.0944523736834526, 0.3145163059234619, 0.028867598623037338, -0.14424818754196167, 0.09875106066465378, 0.216719388961792, -0.08236577361822128, -0.3488260507583618, -0.17972667515277863, -0.03579343110322952, -0.06796262413263321, -0.36195817589759827, 0.20607873797416687, 0.12419799715280533, -0.46754807233810425, -0.3151295781135559, -0.20300443470478058, -0.4461066424846649, 0.1907849907875061, -0.06646952033042908, 0.0874362587928772, 0.3853093385696411, -0.18068040907382965, -0.2569597661495209, 0.06211600825190544, -0.009306367486715317, -0.2141605168581009, -0.4319033920764923, -0.06278111040592194, -0.08040871471166611, 0.009533988311886787, 0.2424945831298828, 0.18494126200675964, -0.23419791460037231, 0.10561094433069229, -0.2571369409561157, -0.1412862092256546, -0.16143155097961426, 0.07346904277801514, -0.22652673721313477, -0.020465603098273277, 0.14395686984062195, 0.14975661039352417, -0.1842080056667328, 0.17391595244407654, -0.18602661788463593, 0.1621479094028473, 0.041885826736688614, -0.03823394328355789, -0.12606123089790344, 0.18529513478279114, -0.06753940135240555, 0.20278918743133545, 0.005197012796998024, 0.3475063443183899, 0.1005975604057312, 0.38815370202064514, 0.6834986805915833, -0.041335634887218475, 0.09411658346652985, 0.019414551556110382, 0.0964677482843399, -0.4439038038253784, 0.20163410902023315, -0.06835280358791351, -0.05953668802976608, -0.016126975417137146, -0.15807440876960754, -0.16445223987102509, -0.3871499300003052, -0.034622400999069214, -0.07575425505638123, -0.02995695173740387, -0.10754691064357758, -0.030903194099664688, 0.27363717555999756, -0.06374894082546234, 0.05420990660786629, 0.5015690922737122, 0.4826442301273346, 0.07742501050233841, -0.4315924644470215, 0.08956415951251984, -0.1972094178199768, 0.08241400122642517, -0.1967213898897171, -0.16727769374847412, -0.2304053157567978, -0.1065673977136612, 0.1991734504699707, 0.15353211760520935, 0.3422948718070984, -0.0032890308648347855, 0.04477442055940628, 0.07384887337684631, 0.05571459233760834, 0.2600158751010895, -0.023187745362520218, 0.03335663303732872, -0.12482550740242004, 0.2640889585018158, -0.02508155256509781, -0.28278762102127075, -0.20099838078022003, 0.19554726779460907, 0.13834433257579803, -0.18026235699653625, -0.2095007300376892, 0.122551828622818, -0.15272608399391174, -0.4268716275691986, 0.12178998440504074, 0.3705247640609741, -0.19306080043315887, -0.4477212429046631, -0.0932990163564682, 0.14634951949119568, -0.07801263779401779, 0.4220896363258362, -0.04981927573680878, 0.3893764019012451, 0.10910546034574509, -0.004567380994558334, 0.08643189072608948, 0.16136258840560913, 0.2862846553325653, 0.32293763756752014, -0.5752848982810974, -0.06119576096534729, -0.007755588740110397, -0.6901659369468689, 0.19014865159988403, 0.3850715756416321, -0.13784077763557434, -0.14200937747955322, -0.11671139299869537, 0.23934997618198395, -0.20680712163448334, 0.11760731786489487, -0.12447606027126312, -0.3606371581554413, 0.02599763311445713, -0.3830340504646301, 0.058125704526901245, 0.05435330793261528, -0.2903556227684021, 0.16026213765144348, 0.21128344535827637, -0.20892594754695892, 0.011638907715678215, 0.11359457671642303, 1.071573257446289, -0.12000356614589691, 0.24697960913181305, -0.15185528993606567, 0.18378834426403046, 0.4808007478713989, -0.4838852286338806, 0.031210700049996376, 0.0123579241335392, -0.127891406416893, -0.08671041578054428, -0.1255520135164261, 0.052006956189870834, 0.38381046056747437, -0.08412782847881317, -0.06476011872291565, -0.3588228225708008, -0.11625653505325317, 0.054664865136146545, 0.30822160840034485, 0.06896717101335526, -0.0790378749370575, -0.09719674289226532, 0.1279146671295166, 0.16264770925045013, 0.19203482568264008, -0.3481859862804413, -0.03853311389684677, 0.6366471648216248, -0.20373108983039856, 0.08965305984020233, -0.18976691365242004, 0.03305793181061745, 0.13291805982589722, -0.14441539347171783, -0.2081058919429779, -0.018888479098677635, 0.39613646268844604, 0.13844197988510132, 0.08721309155225754, -0.010163785889744759, 0.009272415190935135, 0.036345113068819046, 0.0553746335208416, -0.10881712287664413, 0.08332845568656921, 0.08253632485866547, -0.16441452503204346, 0.08343067020177841, 0.10603179037570953, -0.09865181893110275, -0.30324143171310425, -0.05699244141578674, 0.3052176833152771, 0.022085078060626984, -0.1795899122953415, -0.1272735744714737, -0.14823631942272186, -0.15066128969192505, -0.005884815007448196, 0.17556630074977875, 0.17673484981060028, 0.020969808101654053, 0.14916548132896423, -0.09710231423377991, -0.3337615132331848, -0.11887829005718231, 0.028010033071041107, 0.07323922216892242, -0.49405786395072937, 0.4003957509994507, -0.21176594495773315, -0.3708508610725403, -0.47399210929870605, 0.07374820858240128, -0.07335672527551651, -0.20480746030807495, 0.2979024052619934, 0.08785464614629745, -0.1255037635564804, 0.12658938765525818, 0.33641576766967773, 0.1845942884683609, -0.014230437576770782, 0.12731361389160156, -0.030098721385002136, -0.3722046911716461, -0.09052707254886627, -0.16329427063465118, 0.415131539106369, 0.17888310551643372, 0.1933460533618927, 0.17523224651813507, -0.2915414273738861, -0.3807092308998108, 0.11798606812953949, 0.13114826381206512, -0.1181504875421524, 0.2661137580871582, 0.06879714131355286, -0.07960502058267593, -0.4046269953250885, 0.025599511340260506, -0.024157214909791946, -0.17328186333179474, -0.23008787631988525, -0.1738305240869522, 0.15476855635643005, -0.19109848141670227, -0.2071327120065689, 0.032015979290008545, -0.12621533870697021, 0.0034877005964517593, 0.08986347913742065, 0.36446914076805115, 0.1072712168097496, 0.021256670355796814, 0.11840502917766571, -0.1963604837656021, 0.059925567358732224, -0.256461501121521, -0.014017615467309952, 0.13546085357666016, 0.4853938817977905, 0.05510585010051727, -0.09214064478874207, -0.28153419494628906, -0.07879994809627533, 0.14476142823696136, 0.26735302805900574, 0.29792940616607666, 0.37326452136039734, -0.006760597229003906, -0.08402962982654572, 0.08725057542324066, 0.16212618350982666, 0.1752295196056366, 0.3188609182834625, -0.4899473190307617, -0.15313081443309784, 0.06575518846511841, 0.411826491355896, -0.2361297756433487, -0.08998411893844604, 0.036416664719581604, 0.03731505945324898, -0.15390333533287048, 0.16213664412498474, 0.2405467927455902, -0.07506366819143295, 0.09573988616466522, 0.25345173478126526, 0.4850125312805176, -0.27657121419906616, 0.25886204838752747, 0.4786020517349243, -0.3724324703216553, -0.02712244912981987, 0.1629144847393036, 0.4104924201965332, 0.13975049555301666, 0.2869405448436737, -0.08894731849431992, 0.18273217976093292, 0.39025723934173584, 0.28230035305023193, -0.1157282218337059, -0.7200710773468018, 0.2316964715719223, 0.3286885619163513, -0.01889359951019287, 0.09346763044595718, 0.505509614944458, 0.1111626997590065, 0.16169381141662598, -0.17536354064941406, -0.05533267557621002, 0.153243288397789, -0.2807742655277252, 0.10888651013374329, 0.10039950907230377, -0.10841871052980423, -0.020924173295497894, 0.06304177641868591, -0.1612638682126999, -0.05699572712182999, 0.0012873634696006775, 0.15750449895858765, 0.056419745087623596, 0.08908841758966446, 0.26427844166755676, -0.11099398881196976, 0.1571613997220993, -0.3481957018375397, -0.17679207026958466, 0.02513764798641205, -0.016365550458431244, 0.3583393096923828, -0.019573872908949852, 0.09461349248886108, 0.2835281193256378, 0.14197102189064026, -0.10240363329648972, -0.23130659759044647, 0.20815981924533844, -0.24331827461719513, 0.042666368186473846, 0.1986074596643448, 0.3828490972518921, 0.015111908316612244, 0.18644055724143982, -0.2169318050146103, 0.16076625883579254, 0.09808468818664551, 0.1396971195936203, -0.2189541459083557, 0.10336774587631226, 0.418161004781723, -0.2654254734516144, 0.030419975519180298, -0.06964147835969925, 0.032528653740882874, 0.08551475405693054, 0.5413632392883301, 0.10299936681985855, 0.16136392951011658, 0.03301931917667389, 0.12651394307613373, 0.06986957043409348, -0.02167132869362831, 0.26364848017692566, -0.18419229984283447, -0.37842342257499695, -0.00004123896360397339, -0.609687328338623, 0.017363712191581726, -0.008972801268100739, 0.10056208074092865, 0.35051169991493225, 0.0025677401572465897, 0.23012125492095947, 0.25509005784988403, -0.2435068041086197, 0.0265858955681324, -0.10850263386964798, -0.31617072224617004, -0.2663055658340454, 0.02381553128361702, 0.2655249834060669, 0.2043433040380478, 0.019349168986082077, -0.36875995993614197, 0.07589307427406311, -0.002819687593728304, 0.06667155772447586, -0.21470002830028534, 0.1583017110824585, 0.22196635603904724, 0.30431339144706726, 0.43490296602249146, 0.09137413650751114, 0.1693553626537323, 0.08621303737163544, -0.03456895053386688, 0.22053444385528564, 0.088950015604496, -0.16493411362171173, -0.0037759169936180115, 0.3071043789386749, 0.006692804396152496, -0.18672294914722443, 0.2638404965400696, -0.3641453981399536, -0.025082815438508987, 0.06633822619915009, 0.20421971380710602, -0.5299693942070007, 0.03600414842367172, 0.1486150324344635, 0.21267907321453094, 0.000576329417526722, 0.16102850437164307, -0.05760939419269562, -0.005356793291866779, -0.32558366656303406, -0.2253691405057907, 0.5627477169036865, 0.2500135600566864, -0.24630020558834076, -0.266717791557312, 0.613905668258667, 0.2967889606952667, 0.02263922058045864, -0.3194262683391571, 0.12485208362340927, 0.28425008058547974, -0.4604641795158386, -0.31599292159080505, 0.20400215685367584, -0.14932478964328766, -0.1485407054424286, 0.07190993428230286, 0.5497242212295532, 0.3345909118652344, -0.15462243556976318, -0.31535181403160095, -0.20847903192043304 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
Awesome thanks ! I just have one question: what about image/audio datasets for which we store the path to the extracted file on the arrow data ? In this case the default should be to keep the extracted files. So for now I would just make `keep_extracted=True` by default until we have a way to separate extracted files that can be deleted and extracted files that are actual resources of the dataset.
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
72
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell Awesome thanks ! I just have one question: what about image/audio datasets for which we store the path to the extracted file on the arrow data ? In this case the default should be to keep the extracted files. So for now I would just make `keep_extracted=True` by default until we have a way to separate extracted files that can be deleted and extracted files that are actual resources of the dataset.
[ -0.239071324467659, -0.02636658400297165, -0.17194946110248566, 0.08944059908390045, -0.09224653244018555, -0.21966207027435303, 0.31091684103012085, -0.014095094054937363, 0.04738181456923485, 0.20401158928871155, -0.10674083977937698, 0.5211493372917175, -0.13965192437171936, 0.11864159256219864, -0.21920418739318848, 0.07547818869352341, -0.13938987255096436, 0.2643779516220093, -0.20805835723876953, -0.08188827335834503, -0.4486750066280365, 0.06610627472400665, -0.1835063099861145, 0.08466167747974396, -0.09073053300380707, -0.1603490114212036, 0.35272619128227234, 0.16954565048217773, -0.05885621905326843, -0.4735094904899597, 0.056248486042022705, 0.3256356716156006, -0.015433586202561855, 0.02143586426973343, -0.00010563350224401802, -0.1622941792011261, 0.41395705938339233, 0.0004407428205013275, -0.3643879294395447, -0.08660523593425751, -0.6221593618392944, -0.11940942704677582, 0.3134618401527405, -0.05504468083381653, 0.18206888437271118, -0.3600611388683319, 0.09711325168609619, -0.4443848133087158, 0.5372632145881653, 0.025602389127016068, 0.17816400527954102, -0.05836893990635872, -0.09159617871046066, 0.19389714300632477, 0.21114018559455872, 0.3816413879394531, -0.08962943404912949, 0.17667502164840698, -0.017889954149723053, 0.17599956691265106, 0.035477638244628906, 0.3314385414123535, -0.10832016915082932, 0.038260117173194885, 0.38610097765922546, -0.02093253657221794, -0.18899527192115784, -0.626460075378418, 0.03558696433901787, 0.4048023521900177, 0.5867328643798828, -0.08688267320394516, 0.024966241791844368, -0.3039700388908386, -0.12225928157567978, -0.5709495544433594, 0.15952527523040771, 0.3456387519836426, -0.12129513919353485, 0.21988099813461304, -0.048910755664110184, -0.5205223560333252, -0.3151586055755615, 0.2203902006149292, 0.022554613649845123, -0.41877153515815735, -0.1593051701784134, -0.11335926502943039, 0.4043963551521301, -0.05069737881422043, 0.16180714964866638, -0.24308452010154724, -0.12485383450984955, 0.17892377078533173, 0.06126879155635834, -0.016087211668491364, -0.25749653577804565, 0.10249081254005432, -0.04352445900440216, 0.3368767499923706, 0.08508937805891037, 0.07372939586639404, -0.061763305217027664, 0.4829595685005188, 0.2874900996685028, 0.009813720360398293, 0.240411639213562, -0.16587448120117188, 0.41466373205184937, -0.14929495751857758, -0.02495655231177807, -0.09239999204874039, 0.19161656498908997, -0.2824734151363373, 0.09589612483978271, 0.08799323439598083, 0.43102627992630005, -0.23179855942726135, -0.2004833221435547, 0.11494302749633789, 0.1842155158519745, -0.29170191287994385, -0.0009758230298757553, 0.09231538325548172, 0.4012129306793213, -0.011150103062391281, 0.009177088737487793, 0.17053918540477753, -0.05498068779706955, -0.17345045506954193, -0.03160097077488899, 0.0023905858397483826, -0.2485491931438446, -0.08412081748247147, 0.17897777259349823, -0.03493994474411011, 0.19930051267147064, -0.01828388124704361, -0.23214618861675262, 0.07273653894662857, 0.575291633605957, -0.2826763689517975, 0.6274977326393127, 0.5159806609153748, -0.026935994625091553, -0.13297027349472046, -0.233491912484169, 0.004947785288095474, -0.15825584530830383, 0.7514177560806274, -0.39318379759788513, -0.3929843008518219, -0.045072562992572784, 0.30339422821998596, -0.09075338393449783, 0.00003085285425186157, -0.5711876153945923, 0.16798798739910126, -0.06543008238077164, 0.13090744614601135, 0.4020884931087494, -0.03555294871330261, -0.023834507912397385, -0.046760737895965576, -0.225315660238266, 0.21981121599674225, -0.5083159804344177, -0.1041882112622261, -0.3151249289512634, -0.5610359311103821, 0.13933143019676208, 0.08372622728347778, -0.49224525690078735, 0.09345970302820206, -0.3312161862850189, 0.5573148727416992, 0.42648229002952576, 0.04316031560301781, -0.20934641361236572, 0.005398101173341274, -0.015781890600919724, -0.030677607282996178, 0.0033853277564048767, -0.0805075466632843, 0.47832930088043213, -0.25562193989753723, -0.28354477882385254, 0.2960194945335388, 0.2329421192407608, -0.16796039044857025, -0.04016260802745819, -0.33094993233680725, 0.05982031673192978, -0.22859647870063782, -0.10107153654098511, -0.14612695574760437, 0.2493230402469635, -0.0529637411236763, 0.23514917492866516, 0.16599448025226593, -0.06654694676399231, 0.024013379588723183, 0.47867631912231445, -0.22143973410129547, -0.12367446720600128, 0.09211768954992294, -0.46549808979034424, -0.03884819522500038, -0.23341360688209534, -0.3828458786010742, -0.15807314217090607, -0.2998560667037964, 0.022234424948692322, -0.08122846484184265, -0.4821754992008209, 0.11055901646614075, 0.12577582895755768, -0.11365044116973877, -0.3605228662490845, 0.24185846745967865, -0.5119783878326416, 0.11258403211832047, -0.18379347026348114, 0.22863438725471497, -0.2134089469909668, 0.008087918162345886, 0.17665141820907593, -0.05836019665002823, -0.27358943223953247, -0.1058872863650322, -0.08823395520448685, -0.10914242267608643, -0.1650373935699463, 0.5847622752189636, 0.42624324560165405, 0.4087926745414734, -0.16509854793548584, 0.18014013767242432, 0.34783315658569336, -0.3048252463340759, -0.022058142349123955, 0.10986274480819702, -0.10033102333545685, 0.2811920940876007, -0.36893242597579956, 0.14157220721244812, -0.11388912796974182, 0.015695370733737946, 0.051632314920425415, -0.21305596828460693, 0.023635992780327797, -0.1007583811879158, -0.32302212715148926, -0.48219186067581177, -0.20168693363666534, 0.23592330515384674, 0.20456627011299133, 0.4468364119529724, 0.025912441313266754, 0.07132424414157867, 0.3033546209335327, -0.14127527177333832, 0.03805764019489288, 0.3751733601093292, -0.1341436505317688, -0.1317731887102127, 0.21400533616542816, 0.49627885222435, 0.4565647840499878, 0.2556808292865753, 0.2112734168767929, -0.15153653919696808, 0.19249868392944336, -0.3734287619590759, 0.4698178470134735, 0.3457656502723694, 0.08738001435995102, 0.3241092562675476, -0.05299548804759979, -0.07822122424840927, -0.6531054973602295, -0.0121858399361372, 0.04124213010072708, -0.031048530712723732, -0.0890873372554779, -0.16977724432945251, -0.39708754420280457, -0.2740896940231323, 0.018227264285087585, 0.06805045902729034, -0.0494765006005764, -0.08432959020137787, 0.2927367091178894, 0.07366114109754562, -0.42411690950393677, 0.31839117407798767, -0.25548771023750305, 0.5311042666435242, -0.3844664990901947, -0.03441891819238663, -0.18968914449214935, 0.12372119724750519, -0.05635489523410797, 0.11088263988494873, 0.12575720250606537, -0.0634973794221878, 0.3010576367378235, 0.23866136372089386, 0.09327179193496704, 0.03850419074296951, -0.11084894090890884, 0.1839800477027893, 0.3976017236709595, -0.1086026281118393, 0.03226907178759575, 0.26650136709213257, 0.04349212348461151, -0.34987902641296387, -0.10811729729175568, -0.028656650334596634, -0.0926918312907219, -0.20812036097049713, 0.08792339265346527, 0.3099634349346161, -0.2685760259628296, -0.39079549908638, -0.20449620485305786, -0.4982319474220276, 0.24970053136348724, -0.0965685248374939, 0.13255801796913147, 0.4267677962779999, 0.003345712088048458, -0.040426596999168396, -0.24881696701049805, 0.015428636223077774, -0.21981501579284668, -0.5294541716575623, 0.01648620516061783, -0.2654820382595062, 0.04772148281335831, 0.1381431519985199, 0.0009975731372833252, 0.07078180462121964, 0.2542608678340912, -0.043165385723114014, -0.13166667520999908, -0.10225175321102142, 0.05670465901494026, -0.0479205846786499, 0.10111494362354279, 0.2310468703508377, 0.3011891841888428, -0.1693047732114792, -0.004788469523191452, 0.2751522660255432, 0.35642555356025696, 0.16622519493103027, -0.01425047218799591, 0.15772908926010132, 0.027961939573287964, 0.07771950960159302, 0.4302201271057129, -0.10583843290805817, 0.07188612967729568, 0.2086724489927292, 0.33135631680488586, 0.5353485345840454, -0.20445090532302856, 0.18392732739448547, -0.19499899446964264, 0.09159548580646515, -0.126120924949646, 0.05464890971779823, 0.0359497144818306, -0.25597524642944336, 0.11877724528312683, -0.20842787623405457, -0.2682175040245056, -0.3325303792953491, 0.057420000433921814, -0.08535590767860413, 0.08846553415060043, -0.015710020437836647, -0.08429202437400818, 0.3849785327911377, -0.005137385800480843, 0.1544569581747055, 0.3392096757888794, 0.5708276629447937, -0.02052474580705166, -0.30039581656455994, -0.10428674519062042, -0.22558462619781494, 0.11684371531009674, -0.26001742482185364, -0.11860652267932892, 0.03407887741923332, -0.27626878023147583, 0.12632088363170624, 0.09716786444187164, 0.16417956352233887, -0.005342839285731316, -0.13115891814231873, -0.12366731464862823, 0.07356146723031998, 0.08849523961544037, -0.048079125583171844, 0.10973259806632996, -0.1429709494113922, -0.03640497103333473, 0.18222452700138092, -0.19937437772750854, -0.34603410959243774, 0.011135751381516457, 0.08752920478582382, -0.09881889820098877, 0.011990231461822987, 0.036414023488759995, -0.10253652930259705, -0.4151456952095032, 0.011372461915016174, 0.1909170299768448, -0.25313377380371094, -0.16975995898246765, -0.23997314274311066, -0.196095272898674, -0.27514272928237915, 0.044308461248874664, -0.045330557972192764, 0.5088673830032349, 0.013462013565003872, 0.007274147123098373, 0.2507748603820801, 0.08648665249347687, 0.3987385034561157, 0.21019123494625092, -0.6187103390693665, -0.04559573531150818, -0.14680129289627075, -0.38340502977371216, 0.32194530963897705, 0.21169959008693695, -0.24938778579235077, -0.027102820575237274, -0.04648821800947189, 0.14842218160629272, -0.17525328695774078, 0.20395860075950623, -0.03593398630619049, -0.2327062487602234, 0.268576979637146, -0.2997615337371826, 0.334684282541275, 0.023375220596790314, -0.3497543931007385, 0.4125359356403351, 0.2582318186759949, -0.2831643223762512, 0.21280062198638916, 0.18232643604278564, 0.9820228815078735, 0.0493924655020237, 0.16521598398685455, -0.0028811655938625336, -0.10608840733766556, 0.13868752121925354, -0.28758859634399414, -0.0007720254361629486, 0.05278022214770317, 0.017514992505311966, -0.12223053723573685, -0.08821316063404083, 0.15939141809940338, 0.30343565344810486, 0.022694174200296402, -0.07216594368219376, -0.16383785009384155, -0.13802477717399597, -0.2537999749183655, 0.2924867272377014, 0.04745183140039444, -0.25962769985198975, 0.07979865372180939, 0.09712347388267517, 0.11766435950994492, 0.2257913053035736, -0.14717328548431396, -0.03376473858952522, 0.6357418298721313, -0.16104990243911743, 0.306993305683136, -0.1028449609875679, -0.20527644455432892, 0.3141966462135315, -0.25680801272392273, -0.6277575492858887, -0.28407254815101624, 0.313053697347641, -0.056573495268821716, -0.11111429333686829, 0.03944360837340355, 0.17149247229099274, 0.21532988548278809, 0.04745234176516533, -0.19145135581493378, -0.09838876873254776, 0.2631547152996063, -0.10632685571908951, 0.1474093198776245, 0.009489268064498901, -0.08912922441959381, -0.09859342873096466, 0.0973859429359436, 0.06828241050243378, -0.11161139607429504, -0.07392866909503937, -0.21903403103351593, -0.10240477323532104, -0.20159296691417694, 0.00745808333158493, 0.14262205362319946, 0.24617382884025574, -0.019695302471518517, 0.37783440947532654, -0.08830402791500092, -0.20468804240226746, -0.10329064726829529, 0.1445288360118866, 0.05750202387571335, -0.2568708062171936, 0.4418593943119049, -0.3474277853965759, -0.20090866088867188, -0.36733517050743103, 0.2635607421398163, 0.18416546285152435, -0.3284538984298706, 0.3504093587398529, 0.14761005342006683, -0.04713473469018936, -0.04247727617621422, 0.14858683943748474, -0.10034815967082977, -0.06475254148244858, -0.027880093082785606, -0.15961313247680664, -0.4302055239677429, 0.32353633642196655, -0.2074224203824997, 0.5868090391159058, -0.012832283973693848, -0.2598218321800232, 0.22736409306526184, -0.23503613471984863, -0.34369131922721863, 0.31640371680259705, 0.32522252202033997, 0.025981858372688293, 0.2325412780046463, 0.13773435354232788, -0.05027550086379051, -0.21074455976486206, 0.015288455411791801, -0.11725737154483795, -0.2005612850189209, -0.23166051506996155, -0.22722028195858002, 0.1277393102645874, -0.017316609621047974, -0.2914218008518219, -0.08079919964075089, -0.31825172901153564, 0.021838698536157608, 0.005877881310880184, 0.13282516598701477, -0.07605749368667603, -0.07242345809936523, 0.20979954302310944, -0.060164932161569595, -0.06262630969285965, -0.07440890371799469, 0.14441603422164917, -0.019975990056991577, 0.2781129479408264, 0.10672108829021454, -0.053922660648822784, -0.3199264407157898, -0.08957858383655548, 0.013896928168833256, 0.11993299424648285, 0.2364550679922104, 0.1439608484506607, 0.026852618902921677, -0.03127375990152359, -0.16370536386966705, -0.20974065363407135, 0.2320513129234314, 0.3348937928676605, -0.1848398894071579, -0.21735510230064392, 0.12094064801931381, 0.2967512905597687, -0.2164657860994339, -0.12643297016620636, 0.05322285369038582, -0.03055303916335106, 0.05382371321320534, 0.0505000501871109, 0.30026257038116455, 0.16187916696071625, 0.02748073637485504, 0.24821963906288147, 0.19835081696510315, -0.29406845569610596, 0.3333161473274231, 0.33689287304878235, -0.24846228957176208, -0.0679207593202591, 0.08129891753196716, 0.4920208156108856, 0.45872947573661804, 0.23526659607887268, -0.2933312952518463, 0.4994201064109802, 0.5531729459762573, 0.14784196019172668, -0.003837011754512787, -0.5913646817207336, -0.08327269554138184, 0.14176437258720398, -0.21988943219184875, 0.11443209648132324, 0.43450555205345154, 0.257777601480484, 0.31226152181625366, -0.31846883893013, 0.22768616676330566, 0.3600618541240692, -0.12303509563207626, -0.23031486570835114, -0.059008724987506866, -0.10322017967700958, 0.1563331037759781, -0.038026824593544006, -0.0721345990896225, -0.04962771385908127, 0.11933906376361847, 0.2569228410720825, 0.22208033502101898, 0.2131730318069458, 0.32478511333465576, 0.07303782552480698, 0.1447405219078064, -0.004265770316123962, -0.07112661749124527, 0.15444210171699524, -0.035147517919540405, 0.1241922378540039, 0.04725351184606552, -0.006353948265314102, 0.11016838997602463, -0.2425626516342163, 0.12693780660629272, -0.04291998967528343, 0.03185874968767166, -0.21724653244018555, 0.10911522060632706, 0.24710847437381744, 0.15849429368972778, 0.09351801872253418, 0.20865683257579803, -0.1735813468694687, 0.19941671192646027, 0.20028361678123474, 0.11393241584300995, -0.14326640963554382, -0.016558878123760223, 0.5256897211074829, -0.19998207688331604, 0.01519092358648777, -0.22929733991622925, -0.016573593020439148, -0.01622094213962555, 0.5126824378967285, 0.0771830752491951, 0.059631191194057465, 0.011438250541687012, 0.10919085144996643, -0.04497234895825386, 0.16297434270381927, 0.0789039358496666, 0.13093078136444092, -0.1826077550649643, -0.1823168843984604, -0.6232303977012634, -0.14722684025764465, -0.10795281827449799, 0.058749258518218994, 0.1859164834022522, 0.1681250035762787, 0.11264153569936752, 0.2736205458641052, 0.09331616759300232, -0.03267543762922287, 0.1834573745727539, -0.08563287556171417, -0.16864508390426636, 0.137943834066391, 0.22454489767551422, 0.1737206131219864, -0.17965494096279144, -0.3409021198749542, -0.048021625727415085, -0.12105008959770203, 0.02290911227464676, 0.05444171279668808, 0.09335818886756897, 0.18536297976970673, 0.17936818301677704, 0.6188595294952393, 0.037033192813396454, -0.248386412858963, 0.007676679641008377, 0.10589414089918137, 0.20079821348190308, 0.00841743778437376, -0.1318867802619934, -0.21258091926574707, 0.24664755165576935, 0.18101543188095093, -0.23052683472633362, 0.09560895711183548, -0.3292650282382965, -0.04272863641381264, -0.03331301733851433, 0.08037476986646652, -0.40933898091316223, 0.17726093530654907, 0.13950467109680176, 0.14290311932563782, 0.03780997917056084, 0.12664233148097992, -0.11210215091705322, 0.057430416345596313, -0.4935094118118286, -0.2922933101654053, 0.4167895019054413, 0.00825242605060339, -0.10959947109222412, -0.2531716227531433, 0.6017307043075562, 0.25550636649131775, 0.1980026364326477, -0.3369724750518799, 0.10709484666585922, 0.32562190294265747, -0.4205804765224457, -0.4042101204395294, 0.1043047159910202, 0.05661052465438843, -0.025232678279280663, 0.016690026968717575, 0.5999778509140015, 0.43293705582618713, -0.05486343055963516, -0.33900514245033264, -0.18412496149539948 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
@lhoestq, current implementation only deletes extracted "files", not extracted "directories", as it uses: `os.remove(path)`. I'm going to add a filter on files, so that this line does not throw an exception when passed a directory. For audio datasets, the audio files are inside the extracted "directory", so they are not deleted.
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
51
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell @lhoestq, current implementation only deletes extracted "files", not extracted "directories", as it uses: `os.remove(path)`. I'm going to add a filter on files, so that this line does not throw an exception when passed a directory. For audio datasets, the audio files are inside the extracted "directory", so they are not deleted.
[ -0.19578422605991364, 0.14576658606529236, -0.1949135810136795, 0.01892656832933426, -0.147233784198761, -0.07837507128715515, 0.3338833749294281, 0.034105658531188965, -0.003071010112762451, 0.2306833267211914, -0.4153052866458893, 0.5741087198257446, -0.08853927254676819, -0.12269450724124908, -0.18955211341381073, 0.1477556675672531, -0.042998410761356354, 0.25246721506118774, -0.2751463055610657, -0.03495097905397415, -0.3837819993495941, 0.17819629609584808, -0.37896639108657837, 0.14511927962303162, 0.01645740307867527, -0.23071813583374023, 0.0030783284455537796, 0.464352011680603, -0.14280492067337036, -0.28343823552131653, -0.0415327250957489, 0.3773365616798401, 0.054058998823165894, 0.3187412917613983, -0.00010008009849116206, -0.06511163711547852, 0.2957790195941925, -0.011714177206158638, -0.3362087607383728, 0.06217620521783829, -0.45904165506362915, -0.004239772446453571, 0.014850161969661713, -0.09331519901752472, 0.23691865801811218, -0.17324130237102509, -0.069577157497406, -0.29589831829071045, 0.46774524450302124, 0.2496235966682434, 0.2267795354127884, -0.05233587697148323, -0.0502224825322628, 0.2395351678133011, 0.03530942276120186, 0.4745846390724182, 0.0017498787492513657, 0.12292496860027313, 0.16263899207115173, 0.12372566759586334, 0.1646626889705658, 0.29990971088409424, -0.34646061062812805, 0.023768246173858643, 0.34739208221435547, -0.021258417516946793, -0.22455739974975586, -0.4477428197860718, 0.0193732138723135, 0.2709912061691284, 0.5824848413467407, -0.3679262101650238, -0.008328142575919628, -0.09257503598928452, -0.004787459038197994, -0.678526759147644, 0.08097825944423676, 0.13749508559703827, -0.3757917881011963, 0.2884889245033264, -0.3263583183288574, -0.23769350349903107, -0.33717504143714905, 0.09850834310054779, 0.3215232789516449, 0.01617325097322464, -0.09782176464796066, -0.056638218462467194, 0.5339915156364441, -0.010619644075632095, 0.05211546644568443, -0.1655491590499878, -0.05871171876788139, 0.3647836148738861, -0.22697751224040985, -0.1743696928024292, -0.15492022037506104, 0.16374680399894714, 0.021849066019058228, 0.1305883675813675, 0.006739271804690361, 0.14407381415367126, -0.06811991333961487, 0.4285174012184143, 0.24783071875572205, 0.07145939767360687, 0.2159968912601471, -0.06195127218961716, 0.33212101459503174, -0.06205255165696144, 0.14095143973827362, 0.1594158262014389, 0.09945011138916016, -0.2609778940677643, 0.020509611815214157, 0.15371310710906982, 0.4886663556098938, -0.06861148029565811, -0.5631539225578308, 0.028549179434776306, -0.10316134989261627, -0.2819451093673706, 0.023398596793413162, 0.22699305415153503, 0.37927719950675964, -0.2460811734199524, 0.04088231921195984, 0.15722939372062683, -0.11328686028718948, -0.030576255172491074, 0.009012667462229729, 0.22131216526031494, -0.1493014246225357, -0.3244873285293579, 0.22323371469974518, 0.04758289456367493, 0.08816283941268921, -0.03837624937295914, -0.09056714177131653, -0.07538412511348724, 0.27907031774520874, -0.011915192008018494, 0.4027954638004303, 0.3441635072231293, -0.031859561800956726, -0.22744116187095642, -0.14931416511535645, -0.07789455354213715, -0.13258281350135803, 0.6241024732589722, -0.2940320074558258, -0.08770737051963806, 0.012212695553898811, 0.39085912704467773, -0.046763960272073746, 0.02860940620303154, -0.20212695002555847, 0.10300539433956146, -0.2587249279022217, -0.020225519314408302, 0.42578446865081787, 0.07759670168161392, -0.05762491375207901, -0.036065492779016495, 0.05951666086912155, 0.32618260383605957, -0.5794408917427063, -0.06591241806745529, -0.4644535481929779, -0.5426130294799805, 0.29071468114852905, 0.25202903151512146, 0.00043284715502522886, 0.36650142073631287, -0.4261561632156372, 0.3977468013763428, 0.5120933651924133, -0.07760518044233322, -0.21185286343097687, 0.22846344113349915, -0.05200417339801788, 0.08248303085565567, -0.10422889143228531, -0.005978311877697706, 0.22039484977722168, -0.1621951311826706, -0.24380066990852356, 0.28255730867385864, -0.02433686889708042, -0.1520334929227829, -0.011811692267656326, -0.18894003331661224, -0.005813241004943848, -0.055310674011707306, -0.10059532523155212, -0.004631012678146362, 0.3095044195652008, 0.17095771431922913, 0.4407881796360016, 0.26913103461265564, 0.028131071478128433, 0.16355039179325104, 0.5301588773727417, -0.2500729560852051, -0.2009906768798828, -0.13984894752502441, -0.08309874683618546, -0.03519626334309578, -0.028307082131505013, -0.11527276039123535, -0.06467129290103912, -0.2878592610359192, -0.004949274472892284, 0.14448730647563934, -0.4953164756298065, 0.006169077008962631, 0.17685207724571228, 0.1931045651435852, -0.11265943944454193, -0.07424144446849823, -0.46785807609558105, -0.0033443477004766464, 0.045670077204704285, 0.0545620322227478, -0.22786521911621094, -0.24800068140029907, -0.10689293593168259, -0.07349654287099838, -0.34440967440605164, 0.1208902895450592, -0.07512383908033371, -0.3555653691291809, -0.0061148907989263535, 0.7009742856025696, 0.2950320243835449, 0.0786619484424591, -0.18688753247261047, 0.09578201174736023, 0.04401032626628876, -0.15953488647937775, 0.014745745807886124, 0.30976369976997375, 0.1169884204864502, 0.13959985971450806, -0.5406050086021423, 0.0355154424905777, -0.09102261066436768, 0.0820600762963295, -0.007981754839420319, -0.3022291958332062, -0.050417929887771606, -0.038701433688402176, -0.05022129416465759, -0.2719704508781433, -0.16744522750377655, 0.22652362287044525, -0.007931513711810112, 0.2918214797973633, 0.030426248908042908, -0.17926836013793945, 0.27497339248657227, -0.2962650656700134, 0.06452588737010956, 0.3745727241039276, 0.002067767083644867, -0.21556350588798523, 0.0856739953160286, 0.3017132878303528, 0.44207119941711426, 0.16663241386413574, 0.3130530118942261, 0.11654244363307953, 0.35890015959739685, -0.24102503061294556, 0.36206546425819397, 0.26858094334602356, -0.23038272559642792, 0.21358567476272583, -0.19803522527217865, 0.07221634685993195, -0.5015891194343567, -0.33459657430648804, 0.017088914290070534, 0.16190151870250702, -0.05640788748860359, -0.12889748811721802, -0.33420330286026, -0.3007645308971405, 0.05120508372783661, 0.002966864500194788, 0.0384378656744957, -0.05385538935661316, 0.3299962282180786, 0.12970000505447388, -0.3858083486557007, 0.42760246992111206, -0.006222151219844818, 0.27507951855659485, -0.09085531532764435, -0.07293292135000229, -0.00553131103515625, 0.2825557589530945, -0.021110501140356064, 0.2416820526123047, 0.2241695374250412, 0.10099761933088303, 0.1430332213640213, 0.06342241913080215, -0.10090085864067078, -0.15607526898384094, 0.060683704912662506, 0.17828410863876343, 0.09757973253726959, 0.012119019404053688, 0.22013713419437408, 0.21652752161026, -0.10295626521110535, -0.3588189482688904, -0.13951335847377777, -0.22084566950798035, -0.18045637011528015, -0.023125726729631424, 0.24103935062885284, 0.1990346908569336, -0.36238640546798706, -0.39272451400756836, 0.012608539313077927, -0.5736410021781921, 0.22933997213840485, -0.144669309258461, 0.2585020959377289, 0.4616345465183258, -0.10718049108982086, 0.21834099292755127, -0.03506254032254219, 0.028472116217017174, -0.1986057162284851, -0.38791847229003906, -0.17588002979755402, -0.16481386125087738, 0.09906509518623352, 0.2699635624885559, 0.2640327215194702, -0.03628826513886452, 0.00671410420909524, 0.08363570272922516, -0.12826956808567047, 0.058018021285533905, 0.002969972789287567, -0.2069893181324005, 0.13084106147289276, 0.30968374013900757, 0.05465491861104965, -0.2239910215139389, -0.04024242237210274, 0.12133900821208954, 0.03683856502175331, 0.1584777534008026, -0.07471666485071182, 0.1645236313343048, 0.35415366291999817, -0.09989657253026962, 0.2664070725440979, -0.12045875191688538, 0.32446348667144775, 0.38590529561042786, 0.28281110525131226, 0.6212753653526306, -0.3267229497432709, 0.09304367750883102, 0.06424559652805328, 0.28264230489730835, -0.3436329960823059, 0.27589792013168335, -0.06123248487710953, -0.14375419914722443, 0.15064950287342072, -0.20507851243019104, -0.27203261852264404, -0.2414153814315796, 0.06032158434391022, 0.027395859360694885, -0.042647458612918854, -0.10218891501426697, 0.010953918099403381, 0.5414607524871826, 0.10131289809942245, 0.029182620346546173, 0.3989065885543823, 0.3842603862285614, 0.021803181618452072, -0.475751668214798, -0.12524592876434326, -0.15038806200027466, 0.27633044123649597, -0.1406136304140091, 0.13691936433315277, -0.2707359194755554, -0.3072755038738251, 0.09911537915468216, 0.005500529892742634, 0.26577407121658325, -0.009819485247135162, 0.07382272928953171, 0.014722958207130432, 0.21844857931137085, 0.14162181317806244, 0.012961789965629578, -0.223119854927063, -0.07311823964118958, 0.08856648951768875, 0.171223983168602, -0.0851796492934227, -0.2994021475315094, 0.05958913639187813, 0.23502783477306366, 0.11976374685764313, -0.08604255318641663, 0.001358482986688614, -0.3885308504104614, -0.44690757989883423, 0.20285499095916748, 0.2192249596118927, -0.09669877588748932, -0.048634931445121765, -0.1413118988275528, 0.27851617336273193, -0.3202808201313019, 0.30888479948043823, -0.022517578676342964, 0.42113739252090454, 0.041109103709459305, -0.12932394444942474, 0.007394794374704361, -0.0009099431335926056, 0.25356176495552063, 0.2125028669834137, -0.43714651465415955, -0.009874492883682251, 0.07715822756290436, -0.4047711491584778, 0.2850336730480194, 0.18026815354824066, -0.04454660415649414, 0.0030986741185188293, -0.16325588524341583, 0.1643505096435547, -0.0743623822927475, 0.17897604405879974, 0.09300821274518967, 0.021251089870929718, -0.057602331042289734, -0.12818479537963867, 0.08576780557632446, -0.14755578339099884, -0.3813568949699402, 0.30287134647369385, 0.221458300948143, -0.3302289843559265, 0.2812236547470093, -0.14491713047027588, 0.8586559891700745, -0.011816099286079407, 0.03028522990643978, 0.019991867244243622, 0.06401389837265015, 0.15527404844760895, -0.24625185132026672, 0.15063190460205078, 0.1823640763759613, -0.06817438453435898, -0.10135907679796219, 0.09300938248634338, 0.1922875940799713, 0.312869668006897, -0.16188113391399384, 0.08182089030742645, -0.21847450733184814, -0.1459207832813263, -0.030089976266026497, 0.1362135261297226, -0.05660812556743622, -0.03289156034588814, 0.008508903905749321, 0.22221070528030396, 0.17292523384094238, 0.1748623549938202, -0.2868179380893707, 0.062354810535907745, 0.6687955856323242, -0.35762542486190796, 0.038777098059654236, 0.020012445747852325, -0.06736800074577332, 0.23553654551506042, -0.1853039264678955, -0.39095091819763184, -0.25817805528640747, 0.3283098042011261, -0.18511812388896942, -0.006843365728855133, 0.12835504114627838, 0.16992054879665375, 0.06519715487957001, 0.22261780500411987, -0.16229043900966644, -0.136923149228096, 0.04803444445133209, -0.033560577780008316, -0.07129563391208649, 0.008859902620315552, -0.17078879475593567, -0.3314661383628845, 0.21360182762145996, 0.3091730773448944, -0.005379632115364075, -0.1185101643204689, -0.40229684114456177, -0.36176982522010803, -0.3021003305912018, -0.05875100567936897, 0.21867623925209045, 0.16206300258636475, -0.3429221212863922, 0.22925859689712524, -0.15801295638084412, -0.23576730489730835, -0.07550182938575745, -0.06936835497617722, -0.12783682346343994, -0.15468092262744904, 0.5084829926490784, -0.1418343037366867, -0.09423638135194778, -0.4628201127052307, 0.16917404532432556, 0.21144261956214905, 0.09396933764219284, 0.169285386800766, 0.1456591784954071, -0.016259312629699707, 0.2804068624973297, 0.272898405790329, -0.25283491611480713, 0.04086485877633095, -0.4386005103588104, -0.19518113136291504, -0.29810693860054016, 0.12719057500362396, -0.08451369404792786, 0.47977346181869507, -0.020925546064972878, 0.03365371376276016, 0.22678068280220032, -0.33307206630706787, -0.40012988448143005, 0.12504224479198456, 0.12747284770011902, 0.04007074609398842, 0.24394337832927704, 0.16752392053604126, -0.02714795432984829, -0.2933215796947479, 0.10472945868968964, 0.01291743479669094, -0.10338827222585678, -0.2810874581336975, -0.12766888737678528, 0.06617412716150284, -0.10064049065113068, -0.2871071994304657, 0.10136476904153824, -0.07684294879436493, -0.1896459311246872, -0.10200349241495132, 0.26129111647605896, 0.03189633786678314, -0.06270754337310791, 0.154135599732399, 0.0297570638358593, -0.1286238133907318, -0.01456197164952755, -0.2098446488380432, -0.02242857962846756, 0.10628503561019897, -0.09200502932071686, -0.050630442798137665, -0.20696519315242767, -0.13354583084583282, 0.04643699526786804, 0.23890241980552673, 0.39533424377441406, 0.008345331996679306, 0.0762428343296051, 0.006312090903520584, -0.10191155970096588, -0.08509577065706253, 0.40196117758750916, 0.07022462785243988, -0.077921561896801, -0.26184961199760437, 0.021967794746160507, 0.39285051822662354, -0.29900234937667847, -0.22256237268447876, -0.0718918889760971, -0.12648649513721466, 0.060911376029253006, 0.23008018732070923, -0.049681369215250015, 0.10066850483417511, 0.16227833926677704, 0.15444612503051758, 0.54081130027771, -0.159480482339859, 0.20495381951332092, 0.4650864601135254, -0.34747740626335144, 0.039975106716156006, 0.05982906371355057, 0.040901947766542435, 0.30128198862075806, 0.4333851933479309, -0.3990385830402374, 0.5445790886878967, 0.4391627609729767, 0.15162347257137299, 0.10585841536521912, -0.7838690280914307, -0.09109720587730408, 0.06052456051111221, -0.09299275279045105, 0.24744555354118347, 0.3175296187400818, 0.0564497709274292, -0.2016293853521347, -0.2066773921251297, 0.18354609608650208, 0.21687713265419006, -0.2731044590473175, -0.0484100878238678, 0.0625402107834816, -0.10963433235883713, 0.20833545923233032, -0.12316633760929108, -0.02131272479891777, 0.033016838133335114, -0.00562170147895813, -0.024511121213436127, 0.043600570410490036, 0.11987467855215073, 0.10604964941740036, 0.015163326635956764, -0.04401371628046036, -0.3067103326320648, -0.16481652855873108, 0.11972950398921967, -0.03499505668878555, 0.17805273830890656, -0.08076529204845428, 0.23492306470870972, 0.12320677936077118, -0.1217387318611145, 0.11964739859104156, -0.4753865897655487, 0.06534852832555771, -0.1444329172372818, 0.0875062346458435, 0.08093012124300003, 0.18946164846420288, -0.1608535796403885, 0.2723117768764496, -0.11916334182024002, 0.19329233467578888, 0.34500595927238464, 0.07247994840145111, -0.2615933120250702, -0.00010325759649276733, 0.20184791088104248, -0.08586298674345016, -0.1452222317457199, 0.0189925879240036, -0.16592088341712952, -0.024707548320293427, 0.40697595477104187, 0.14291617274284363, 0.1575159728527069, 0.020115409046411514, 0.18208573758602142, -0.008686095476150513, 0.028797343373298645, 0.27258968353271484, -0.043130502104759216, -0.18921060860157013, -0.18091711401939392, -0.6426502466201782, -0.06931667774915695, 0.024630893021821976, -0.05864858627319336, 0.20640307664871216, -0.018790220841765404, 0.10032964497804642, 0.16641747951507568, 0.017030857503414154, 0.1042797863483429, -0.11429085582494736, -0.12688320875167847, -0.2744542062282562, 0.1346820592880249, 0.0017640143632888794, 0.13425776362419128, -0.004103196784853935, -0.6536418795585632, 0.0664028748869896, -0.262646347284317, 0.13121023774147034, 0.0033565014600753784, 0.11218196153640747, 0.1801886409521103, 0.2228774130344391, 0.32955479621887207, 0.13495126366615295, -0.02216116338968277, -0.2152639627456665, -0.043015919625759125, -0.021593336015939713, 0.0654100552201271, -0.2004690319299698, -0.2638567388057709, 0.10675479471683502, 0.32169678807258606, -0.17261314392089844, 0.2589317262172699, -0.315060555934906, 0.15115149319171906, -0.04278586804866791, 0.020980022847652435, -0.38682088255882263, 0.08988043665885925, -0.0816783457994461, 0.290103018283844, 0.03780985623598099, 0.05156463384628296, -0.001126408576965332, -0.03994481638073921, -0.632101833820343, -0.26738858222961426, 0.4739215075969696, 0.10792511701583862, -0.4604134261608124, -0.3884739279747009, 0.4440341889858246, 0.02042369171977043, -0.11513242870569229, -0.5161900520324707, 0.10585207492113113, 0.1804385781288147, -0.12557277083396912, -0.31283658742904663, 0.00838913768529892, -0.2714255452156067, -0.028697054833173752, 0.1305742859840393, 0.35427847504615784, 0.4262147843837738, -0.14816303551197052, -0.1471220850944519, -0.25858646631240845 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
I'm still more in favor of having `keep_extracted=True` by default: - When working with a dataset, you call `load_dataset` many times. By default we want to keep objects extracted to not extract them over and over again (it can take a long time). Then once you know what you're doing and you want to optimize disk space, you can do `keep_extracted=False`. Deleting the extracted files by default is a regression that can lead to slow downs for people calling `load_dataset` many times, which is common when experimenting - This behavior doesn't sound natural as a default behavior. In the rest of the library, things are cached and not removed unless you explicitly say do (`map` caching for example). Moreover the function in the download manager is called `download_and_extract`, not `download_and_extract_and_remove_extracted_files` Let me know what you think !
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
137
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell I'm still more in favor of having `keep_extracted=True` by default: - When working with a dataset, you call `load_dataset` many times. By default we want to keep objects extracted to not extract them over and over again (it can take a long time). Then once you know what you're doing and you want to optimize disk space, you can do `keep_extracted=False`. Deleting the extracted files by default is a regression that can lead to slow downs for people calling `load_dataset` many times, which is common when experimenting - This behavior doesn't sound natural as a default behavior. In the rest of the library, things are cached and not removed unless you explicitly say do (`map` caching for example). Moreover the function in the download manager is called `download_and_extract`, not `download_and_extract_and_remove_extracted_files` Let me know what you think !
[ -0.18485097587108612, 0.03183889389038086, -0.21812796592712402, 0.19707025587558746, 0.04601999372243881, -0.11364614963531494, 0.036429110914468765, 0.1427106261253357, 0.08346349000930786, 0.28323665261268616, 0.020781252533197403, 0.4129493832588196, -0.11539030820131302, 0.01869846321642399, -0.23041802644729614, 0.15738344192504883, -0.13595017790794373, 0.3622785210609436, -0.23990851640701294, -0.012364450842142105, -0.2510783076286316, 0.1653962880373001, -0.13956549763679504, -0.1872125118970871, 0.15248337388038635, -0.15023882687091827, 0.13011358678340912, 0.11196867376565933, -0.3640076518058777, -0.4556054174900055, 0.1922857165336609, 0.4130016267299652, 0.061877623200416565, 0.04199574142694473, -0.00010021314665209502, -0.26026999950408936, 0.427428662776947, 0.07667017728090286, -0.320770800113678, 0.017792560160160065, -0.21203821897506714, -0.18897579610347748, 0.25500696897506714, -0.28123798966407776, 0.1864691972732544, -0.029922164976596832, 0.036484576761722565, -0.2318999171257019, 0.3402957320213318, -0.0323086641728878, 0.2787816524505615, 0.05361596494913101, -0.1418067365884781, 0.10470493137836456, 0.38650277256965637, 0.17912399768829346, -0.1325426548719406, 0.20641954243183136, 0.08184119313955307, 0.28150495886802673, -0.0054334476590156555, 0.25184231996536255, -0.30878549814224243, -0.005728112533688545, 0.6071747541427612, 0.015556908212602139, 0.006599754095077515, -0.582743763923645, -0.016819387674331665, 0.22224730253219604, 0.6586228013038635, -0.19667309522628784, 0.024024827405810356, -0.27948683500289917, -0.010920505039393902, -0.5042579770088196, 0.18391719460487366, 0.03587213158607483, -0.05897833779454231, 0.3191415071487427, -0.15156486630439758, -0.43051251769065857, -0.08825525641441345, 0.09599760174751282, -0.022940155118703842, -0.27364277839660645, -0.16284555196762085, -0.16394057869911194, 0.5348457098007202, 0.19671793282032013, 0.08607235550880432, -0.26421231031417847, -0.20896682143211365, -0.007518588565289974, 0.09395742416381836, -0.06712669134140015, -0.028835251927375793, 0.11887353658676147, 0.01740284264087677, 0.42345482110977173, -0.008424256928265095, 0.10470686107873917, 0.07380962371826172, 0.17561054229736328, 0.3477008044719696, 0.20258793234825134, 0.1772027313709259, -0.16266141831874847, 0.3693406581878662, -0.03935254365205765, 0.16899345815181732, 0.029591470956802368, 0.24592800438404083, 0.044037941843271255, 0.1625903844833374, 0.06263937801122665, 0.2641603350639343, -0.1671103835105896, -0.08716271817684174, 0.12511855363845825, 0.11882191151380539, -0.3584551215171814, -0.10310354083776474, 0.10305637121200562, 0.009815938770771027, 0.1191214844584465, -0.08107473701238632, -0.05345844477415085, -0.04248233139514923, -0.1775730401277542, -0.19348196685314178, 0.15782158076763153, -0.3287141025066376, -0.20964118838310242, 0.25055500864982605, -0.27892231941223145, 0.09239963442087173, 0.14458666741847992, -0.11277197301387787, 0.09305185079574585, 0.5580883026123047, -0.20982441306114197, 0.37332841753959656, 0.5295467972755432, -0.04713871330022812, 0.019466670230031013, -0.16911819577217102, -0.20733726024627686, -0.21524900197982788, 0.6409206986427307, -0.29217514395713806, -0.37101197242736816, 0.02400277741253376, 0.39137908816337585, -0.09454578906297684, 0.09282469749450684, -0.41359320282936096, 0.1005675420165062, -0.063090018928051, 0.017878703773021698, 0.27506303787231445, -0.0942150354385376, 0.04709213599562645, -0.17166656255722046, -0.06168041378259659, 0.3957102298736572, -0.32097336649894714, 0.06262457370758057, -0.4332612156867981, -0.5842363238334656, 0.1975177526473999, -0.12834027409553528, -0.3299338221549988, 0.26739808917045593, -0.26309871673583984, 0.39556241035461426, 0.3897443115711212, -0.1834820955991745, -0.374428391456604, 0.2618684768676758, 0.02338908612728119, 0.23143045604228973, -0.01121414452791214, 0.09620177000761032, 0.3995620012283325, -0.10872599482536316, -0.22337299585342407, 0.2603897452354431, 0.14207512140274048, 0.0647042915225029, -0.08958875387907028, -0.39559128880500793, 0.24430020153522491, -0.05075763538479805, -0.016449417918920517, 0.07685182988643646, 0.16450637578964233, 0.22001919150352478, 0.3014758825302124, 0.2320117950439453, -0.09706299751996994, 0.09113776683807373, 0.3025093972682953, -0.12314152717590332, -0.2101665735244751, 0.052080437541007996, -0.576579749584198, 0.060338377952575684, -0.20497526228427887, -0.047043658792972565, 0.02764046937227249, -0.3793349266052246, 0.08179955184459686, -0.15694552659988403, -0.24696867167949677, -0.08044590055942535, 0.1756703108549118, -0.017998993396759033, -0.23737546801567078, 0.06332401931285858, -0.4157703220844269, 0.24508684873580933, -0.09778059273958206, 0.23629094660282135, -0.43145349621772766, -0.2129865139722824, -0.06372790038585663, -0.02988317608833313, -0.09882137179374695, -0.20692330598831177, -0.09850379079580307, -0.2761060893535614, -0.08809952437877655, 0.5247641205787659, 0.24639387428760529, 0.2725520133972168, -0.2913264036178589, 0.09913857281208038, 0.3985283672809601, 0.08382885158061981, 0.0004840455949306488, 0.15869511663913727, 0.026286933571100235, 0.05503574758768082, -0.3128160536289215, 0.14193691313266754, -0.013706985861063004, -0.11753102391958237, 0.019625522196292877, -0.2890450060367584, 0.03155931830406189, -0.1273532658815384, -0.19183135032653809, -0.46144184470176697, -0.0727311223745346, 0.28966280817985535, 0.1677829474210739, 0.37618565559387207, 0.16556036472320557, 0.07301098108291626, 0.34493905305862427, -0.0913064256310463, -0.06694706529378891, 0.4001464545726776, 0.05085887759923935, -0.3427516222000122, 0.1342601478099823, 0.4423210918903351, 0.513703465461731, 0.21102744340896606, 0.22897392511367798, 0.003357101231813431, 0.3095409870147705, -0.20785276591777802, 0.34820428490638733, 0.2846158742904663, -0.10318963974714279, 0.25983044505119324, -0.09956184029579163, 0.1191975325345993, -0.5043594241142273, -0.1532135158777237, 0.08738439530134201, 0.27228832244873047, 0.03923523798584938, -0.16401362419128418, -0.38749784231185913, -0.24731221795082092, 0.2616340219974518, 0.18912924826145172, -0.1077597588300705, -0.08980252593755722, 0.19072481989860535, 0.31934574246406555, -0.30408814549446106, 0.13029208779335022, 0.014026448130607605, 0.44805020093917847, -0.41580310463905334, -0.10099568963050842, -0.31981706619262695, 0.17091016471385956, -0.09634298831224442, 0.20344606041908264, 0.06960970163345337, -0.17864234745502472, 0.30880382657051086, -0.03326638415455818, 0.0750146135687828, 0.043711647391319275, -0.27491849660873413, 0.16400007903575897, 0.17777948081493378, -0.02475355751812458, 0.2204943150281906, 0.12309564650058746, 0.0152195505797863, -0.21756592392921448, -0.13639388978481293, -0.2639271318912506, -0.11496086418628693, -0.21496182680130005, 0.041141413152217865, 0.08331640809774399, -0.411163330078125, -0.37136971950531006, -0.10587256401777267, -0.5330361723899841, 0.1823984831571579, 0.11636824905872345, 0.06434572488069534, 0.20708943903446198, -0.09084559231996536, -0.04965367168188095, -0.09265713393688202, 0.11931698024272919, -0.22183731198310852, -0.6816242933273315, 0.0277189239859581, -0.15906694531440735, -0.046778518706560135, 0.22390496730804443, 0.04612287878990173, -0.08278980851173401, 0.08768825232982635, -0.35089582204818726, -0.1612878143787384, -0.13129806518554688, 0.03370356932282448, -0.09716615080833435, 0.11825976520776749, 0.23483480513095856, 0.20970723032951355, -0.19683486223220825, 0.13361376523971558, -0.015987154096364975, 0.1999361515045166, 0.22278711199760437, 0.0631035715341568, -0.09492173790931702, 0.007530568167567253, 0.04312920942902565, 0.28113722801208496, -0.1139003187417984, 0.326335072517395, 0.23873713612556458, 0.33046746253967285, 0.6022740006446838, -0.2825915813446045, 0.08568984270095825, -0.047365907579660416, -0.028504475951194763, -0.24494534730911255, 0.24640680849552155, -0.051421985030174255, -0.2659609019756317, -0.1115557998418808, -0.13828906416893005, -0.14400196075439453, -0.23276817798614502, 0.06568550318479538, 0.03152953088283539, -0.17794451117515564, 0.03426413610577583, 0.031402066349983215, 0.3236319124698639, -0.09139016270637512, 0.0390138253569603, 0.39381784200668335, 0.32070642709732056, 0.03304667770862579, -0.3791184723377228, 0.03241367265582085, -0.34633785486221313, 0.056629132479429245, -0.1062929704785347, -0.3332253098487854, 0.04934442415833473, -0.2228720486164093, 0.17373906075954437, 0.007226176559925079, 0.454814076423645, 0.02283187210559845, -0.1516941785812378, 0.09097719192504883, -0.14653803408145905, 0.24741800129413605, -0.09287211298942566, 0.00608300045132637, -0.07860903441905975, 0.12193450331687927, -0.07547405362129211, -0.30170851945877075, -0.25715020298957825, 0.020261086523532867, 0.104709193110466, -0.10156850516796112, -0.20092156529426575, -0.1337580680847168, -0.23578959703445435, -0.4910499155521393, -0.005078904330730438, 0.07278522849082947, -0.12459607422351837, -0.09945495426654816, -0.18242551386356354, -0.014132997021079063, -0.09883158653974533, 0.22111082077026367, -0.0461682565510273, 0.4477807581424713, -0.024993447586894035, -0.0025191493332386017, 0.03223118931055069, 0.055766817182302475, 0.21090157330036163, 0.2141491174697876, -0.5225265622138977, 0.13457584381103516, 0.008038491010665894, -0.32740962505340576, 0.08899255841970444, 0.17804138362407684, -0.12515570223331451, -0.05835037678480148, -0.029962167143821716, 0.24754729866981506, -0.2025388479232788, 0.14418311417102814, 0.10401034355163574, -0.37104442715644836, 0.0863567441701889, -0.46848800778388977, 0.2598360776901245, -0.011656544171273708, -0.18545904755592346, 0.3679283559322357, -0.009912177920341492, -0.09844270348548889, 0.04505370557308197, 0.06311023235321045, 1.0707001686096191, 0.011947821825742722, 0.13284039497375488, 0.0361386202275753, 0.07974550127983093, 0.5006759762763977, -0.5400131940841675, 0.07607752084732056, -0.12077850103378296, -0.17477183043956757, -0.008420087397098541, -0.06209586560726166, 0.23385125398635864, 0.07204658538103104, -0.19326062500476837, -0.07756774872541428, -0.20614434778690338, 0.13721641898155212, -0.2014961689710617, 0.5052012801170349, -0.03332652896642685, -0.17223303020000458, 0.10342204570770264, 0.15803474187850952, 0.08462546765804291, 0.2861824631690979, -0.2159392535686493, -0.05053219944238663, 0.5417104363441467, -0.18881934881210327, 0.1790037900209427, -0.07698114216327667, 0.07687050849199295, 0.3002934455871582, -0.19616466760635376, -0.2994663119316101, -0.28999578952789307, 0.12784770131111145, -0.10139264166355133, -0.05876007303595543, -0.02743419073522091, 0.10260836780071259, 0.013593137264251709, 0.12268976867198944, 0.10047829896211624, 0.022663932293653488, 0.19446682929992676, -0.2670828700065613, 0.11450307816267014, 0.05434676259756088, -0.19271762669086456, -0.24558134377002716, 0.17852261662483215, 0.07142974436283112, 0.05018775910139084, -0.20620092749595642, -0.2611754536628723, 0.16919516026973724, -0.18814289569854736, -0.05756888538599014, 0.2150689661502838, 0.2171040177345276, -0.022932596504688263, 0.46212753653526306, -0.2300824075937271, -0.254682719707489, -0.3289875388145447, 0.24131980538368225, 0.23732730746269226, -0.4370032548904419, 0.04860789701342583, -0.22677955031394958, -0.30418860912323, -0.34621521830558777, 0.1134919598698616, -0.18379241228103638, -0.18654070794582367, 0.37425845861434937, 0.03082386590540409, -0.043974488973617554, 0.04127742722630501, 0.21046432852745056, -0.03970249742269516, 0.011878184974193573, -0.10790176689624786, -0.07243857532739639, -0.28953632712364197, 0.06312132626771927, -0.0759829729795456, 0.47079119086265564, 0.07654152810573578, -0.10767658054828644, 0.24092555046081543, -0.12248960137367249, -0.43465399742126465, 0.0967264324426651, 0.23887506127357483, -0.03627500683069229, 0.21584460139274597, 0.061392780393362045, -0.09099751710891724, -0.2590842545032501, 0.05650670826435089, 0.08888459950685501, -0.35036662220954895, -0.3065003454685211, -0.22768937051296234, 0.1505032777786255, -0.16254287958145142, -0.08551882952451706, 0.0873466283082962, -0.18876022100448608, 0.019132602959871292, -0.10784266889095306, 0.2633223831653595, -0.1027723103761673, 0.06703772395849228, 0.1048932746052742, 0.06616993993520737, 0.05177300423383713, -0.25821930170059204, 0.14978936314582825, 0.035271789878606796, 0.19862723350524902, 0.0496339276432991, -0.014445185661315918, -0.3584792912006378, -0.12568140029907227, -0.08234516531229019, 0.04079624265432358, 0.03903798386454582, 0.32514554262161255, 0.16287852823734283, 0.09314341843128204, 0.0045585185289382935, 0.022841954603791237, 0.2378939986228943, 0.4033551812171936, -0.17550547420978546, -0.22993512451648712, 0.009135255590081215, 0.3626290559768677, -0.18183644115924835, -0.24317872524261475, -0.06567594408988953, 0.05439717322587967, -0.12148608267307281, 0.11252617090940475, 0.17590934038162231, 0.10517717897891998, 0.08295418322086334, 0.20004674792289734, 0.6166467070579529, -0.021110232919454575, 0.2518007159233093, 0.36513784527778625, -0.3817780315876007, -0.01909763738512993, 0.19247613847255707, 0.3792956471443176, 0.29590412974357605, 0.44352662563323975, -0.18909713625907898, 0.4695810079574585, 0.4005759060382843, 0.37298956513404846, -0.2952404022216797, -0.5745870471000671, 0.13745515048503876, 0.4345175623893738, -0.11993177235126495, 0.11918200552463531, 0.4031811058521271, -0.017266832292079926, 0.0467226542532444, -0.2766915261745453, -0.08612049371004105, 0.26336804032325745, -0.18323978781700134, 0.084589883685112, 0.2082189917564392, -0.08777614682912827, 0.14469312131404877, 0.1722399890422821, -0.1286133974790573, -0.0370064303278923, 0.24299931526184082, 0.16305853426456451, 0.0008029267191886902, 0.10562098771333694, 0.17306089401245117, -0.348980575799942, 0.15059518814086914, -0.2261485606431961, -0.14812496304512024, 0.06547325104475021, -0.034341730177402496, -0.1113819032907486, 0.0019737854599952698, 0.06300679594278336, 0.28969061374664307, 0.03759405016899109, -0.07336762547492981, -0.16254623234272003, 0.09203682094812393, -0.3640058636665344, 0.1308087408542633, 0.23356284201145172, 0.23593488335609436, -0.09181767702102661, 0.23314528167247772, -0.2577191889286041, 0.21319301426410675, 0.0968451201915741, 0.10561299324035645, -0.2629280388355255, 0.21433764696121216, 0.6641932725906372, -0.11736972630023956, 0.06193344295024872, 0.009879954159259796, -0.13089141249656677, 0.010811330750584602, 0.36073175072669983, -0.04621133580803871, 0.002946276217699051, -0.2027987390756607, 0.16352896392345428, 0.008443557657301426, 0.1640549749135971, 0.11344347894191742, -0.08771704882383347, -0.313906192779541, -0.12369559705257416, -0.809360682964325, 0.07051636278629303, 0.10907252132892609, 0.20703984797000885, 0.3381389379501343, 0.2213793843984604, 0.0009600073099136353, 0.3954343795776367, 0.00908873975276947, 0.0195457860827446, 0.06113328039646149, -0.32923200726509094, -0.14216552674770355, 0.15479110181331635, -0.025913730263710022, -0.025550557300448418, -0.10291339457035065, -0.3128111958503723, 0.20016218721866608, -0.3604331612586975, 0.0887593999505043, -0.2136320173740387, 0.008570075035095215, 0.30582326650619507, 0.2834174633026123, 0.6649921536445618, 0.05810540169477463, -0.3803134262561798, -0.03886944428086281, -0.16519859433174133, 0.12633368372917175, 0.09806045144796371, -0.05902743339538574, -0.18252211809158325, 0.20540794730186462, 0.05408744513988495, -0.2076226770877838, 0.3536086976528168, -0.3787198066711426, 0.21773573756217957, 0.07051961869001389, 0.218673437833786, -0.5112292766571045, -0.061063773930072784, 0.1359724998474121, 0.16791599988937378, 0.029735907912254333, 0.2607434093952179, 0.023958880454301834, -0.04453034698963165, -0.4930185079574585, -0.21325775980949402, 0.4018401801586151, 0.17226439714431763, -0.016786394640803337, -0.2812965214252472, 0.37026116251945496, 0.18321962654590607, 0.064633809030056, -0.4131889343261719, 0.13925257325172424, 0.27763861417770386, -0.3514176607131958, -0.42545294761657715, 0.3447030782699585, -0.20861458778381348, -0.013389784842729568, 0.000040568411350250244, 0.3608485460281372, 0.22084680199623108, -0.12476207315921783, -0.1426633596420288, -0.20889028906822205 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
I think the main issue is that after doing some work users typically move on to other datasets and the amount of disc space used keeps on growing. So your logic is very sound and perhaps what's really needed is a cleansweep function that can go through **all** datasets and clean them up to the desired degree: - delete all extracted files - delete all sources - delete all caches - delete all caches that haven't been accessed in 6 months - delete completely old datasets that haven't been accessed in 6 months - more? So a user can launch a little application, choose what they want to clean up and voila they have just freed up a huge amount of disc space. Makes me think of Ubuntu Tweak's Janitor app - very useful. At the moment, this process of linting is very daunting and error-prone, especially due to all those dirs/files with hash names.
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
155
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell I think the main issue is that after doing some work users typically move on to other datasets and the amount of disc space used keeps on growing. So your logic is very sound and perhaps what's really needed is a cleansweep function that can go through **all** datasets and clean them up to the desired degree: - delete all extracted files - delete all sources - delete all caches - delete all caches that haven't been accessed in 6 months - delete completely old datasets that haven't been accessed in 6 months - more? So a user can launch a little application, choose what they want to clean up and voila they have just freed up a huge amount of disc space. Makes me think of Ubuntu Tweak's Janitor app - very useful. At the moment, this process of linting is very daunting and error-prone, especially due to all those dirs/files with hash names.
[ -0.22343634068965912, 0.14314410090446472, -0.21519528329372406, 0.26843178272247314, -0.13673214614391327, -0.024290312081575394, 0.03278813511133194, 0.3458309471607208, 0.12887965142726898, 0.2479722499847412, -0.10552486032247543, 0.17710690200328827, -0.023124046623706818, 0.17031197249889374, -0.35054275393486023, 0.13447019457817078, -0.207684725522995, 0.22055751085281372, -0.046845123171806335, -0.06363846361637115, -0.3031991422176361, -0.17321544885635376, -0.08520878851413727, -0.010847285389900208, -0.1285126954317093, -0.21079222857952118, 0.1006947010755539, 0.20011812448501587, -0.06227833032608032, -0.15200728178024292, 0.0872570052742958, 0.5105348229408264, 0.17279589176177979, 0.5037528872489929, -0.00010140513768419623, -0.36221277713775635, 0.13844017684459686, 0.046597324311733246, -0.48314499855041504, 0.43478500843048096, -0.06279806792736053, -0.24239319562911987, 0.047972142696380615, -0.27136942744255066, 0.09350267797708511, -0.1181100532412529, -0.220633402466774, -0.43094155192375183, 0.46392184495925903, -0.15847709774971008, 0.2789877951145172, 0.08594823628664017, -0.23586702346801758, 0.2120383232831955, 0.00762341171503067, 0.23269082605838776, -0.08652397990226746, 0.3671094477176666, 0.489129900932312, 0.013790976256132126, -0.03680587559938431, 0.44556814432144165, -0.2115102857351303, 0.0032348502427339554, 0.36639171838760376, -0.09306607395410538, 0.17960962653160095, -0.30818384885787964, 0.15772253274917603, 0.04978619143366814, 0.3812645673751831, -0.21514341235160828, -0.07568500936031342, -0.4441513121128082, -0.026191458106040955, -0.5715219378471375, -0.11707548052072525, -0.011423232033848763, -0.29665225744247437, 0.21180015802383423, -0.4532877206802368, -0.24712970852851868, -0.05093805864453316, -0.10685078799724579, 0.30705660581588745, -0.2776191234588623, -0.09182921051979065, -0.16032668948173523, 0.545799970626831, 0.027256770059466362, 0.3038833737373352, -0.1790405660867691, -0.07977549731731415, 0.15690501034259796, 0.0018624402582645416, -0.3188475966453552, -0.07643172889947891, 0.2530578672885895, 0.2071436643600464, 0.2610127925872803, 0.030973020941019058, 0.14196664094924927, 0.1606561690568924, 0.05414818972349167, 0.32985347509384155, 0.21506986021995544, -0.03721948713064194, -0.3204617500305176, 0.38683706521987915, -0.20330673456192017, 0.102378249168396, -0.022548697888851166, 0.09654072672128677, -0.21055617928504944, 0.05060967430472374, 0.1711595356464386, 0.014970045536756516, -0.15935654938220978, -0.1455354392528534, -0.04375968128442764, 0.10285954922437668, -0.29049190878868103, -0.03404811769723892, 0.09479465335607529, 0.17647109925746918, 0.009982205927371979, -0.030620690435171127, -0.040751516819000244, -0.13194185495376587, -0.07120324671268463, -0.06774478405714035, 0.023844430223107338, -0.45772629976272583, -0.19766008853912354, 0.3415267765522003, -0.2533749043941498, -0.11236076802015305, 0.05597788095474243, -0.1430221050977707, -0.00007290765643119812, 0.3518087863922119, -0.11189112067222595, 0.10854757577180862, 0.2912009656429291, -0.08545735478401184, -0.3007591664791107, -0.1449403464794159, -0.03755592554807663, -0.13241218030452728, 0.433483749628067, -0.2191372811794281, -0.1456206887960434, -0.2066507637500763, 0.3339541256427765, -0.07386057078838348, 0.0939570739865303, -0.3979264199733734, -0.019863836467266083, 0.10388123244047165, 0.006900593638420105, -0.01044849306344986, 0.19762274622917175, 0.15551850199699402, 0.004775809124112129, -0.1257161647081375, 0.309243381023407, -0.227834552526474, -0.011692505329847336, -0.3770274817943573, -0.2006341516971588, 0.05186159908771515, 0.19605855643749237, -0.06343763321638107, 0.28146544098854065, -0.3925522267818451, 0.14587588608264923, 0.25763610005378723, -0.06628494709730148, -0.19391277432441711, 0.2517785131931305, -0.1039615124464035, 0.062107592821121216, 0.05971411615610123, 0.06812742352485657, 0.3440246284008026, -0.2835223376750946, -0.1791292130947113, 0.1592075079679489, 0.03245685622096062, -0.0980309322476387, -0.4052523672580719, -0.36306557059288025, -0.034044452011585236, 0.05371127650141716, 0.12413100898265839, 0.0876578763127327, 0.16493481397628784, 0.08839545398950577, 0.3321489989757538, -0.09866484999656677, 0.08427393436431885, -0.1457798182964325, 0.49762800335884094, 0.05779939144849777, -0.34675219655036926, 0.04150151461362839, -0.4869786500930786, 0.02118314802646637, 0.1750161051750183, -0.21634331345558167, 0.1225673258304596, -0.3640410900115967, -0.03445088118314743, -0.12213335931301117, -0.05120956525206566, 0.015519900247454643, 0.20636391639709473, 0.30585676431655884, -0.231103777885437, -0.37530168890953064, -0.41417282819747925, -0.034361571073532104, -0.0986514464020729, 0.06168106570839882, -0.14579471945762634, 0.0850260853767395, -0.08918870240449905, 0.08818279206752777, -0.033818140625953674, 0.17580720782279968, -0.09382525831460953, -0.27576011419296265, 0.15006285905838013, 0.19879409670829773, 0.09086348116397858, -0.08699901401996613, 0.24656379222869873, 0.32340362668037415, 0.07309818267822266, 0.06862641870975494, 0.16462379693984985, 0.15552332997322083, 0.018781039863824844, 0.02066502720117569, -0.5206514596939087, 0.22920645773410797, -0.20125123858451843, 0.11875145137310028, -0.10093499720096588, -0.11205023527145386, -0.006424363702535629, -0.36919716000556946, 0.262576162815094, -0.2834606170654297, -0.05485145375132561, 0.3404918313026428, 0.2571353018283844, 0.503115177154541, 0.12491074204444885, -0.08142464607954025, 0.25034675002098083, -0.13893429934978485, 0.0005617961287498474, 0.48006975650787354, 0.34284350275993347, -0.2212962508201599, -0.059008657932281494, 0.155714750289917, 0.38877570629119873, 0.3125344216823578, 0.06692246347665787, -0.1582474559545517, 0.3834322988986969, -0.16169336438179016, 0.16941851377487183, 0.22259777784347534, -0.14905034005641937, 0.25266116857528687, -0.13706758618354797, 0.13327237963676453, -0.23016339540481567, -0.29820436239242554, 0.08059916645288467, 0.21152693033218384, 0.07681088149547577, -0.2635650336742401, 0.08494194597005844, -0.06410345435142517, 0.23694424331188202, 0.03311915323138237, 0.08507660031318665, -0.16650667786598206, 0.19519853591918945, 0.10438099503517151, -0.3878907561302185, 0.2546055018901825, 0.03618637099862099, 0.5840015411376953, -0.33355462551116943, 0.12961949408054352, -0.11007171124219894, -0.09553919732570648, -0.05939494073390961, 0.1799708604812622, 0.4715542197227478, -0.04569613188505173, 0.48209646344184875, -0.021875040605664253, 0.20209990441799164, -0.22435693442821503, -0.1608142852783203, 0.07458393275737762, 0.0671251118183136, 0.08494673669338226, 0.04255242273211479, 0.18810370564460754, -0.040654364973306656, -0.2122194617986679, -0.2975463569164276, -0.013983816839754581, -0.017751140519976616, -0.15980954468250275, 0.2225581556558609, 0.1406475305557251, -0.32833626866340637, 0.04635722562670708, 0.0021082796156406403, -0.605274498462677, 0.18866145610809326, -0.12667086720466614, 0.10545939207077026, 0.21571063995361328, 0.04661580175161362, -0.04948683828115463, 0.07224271446466446, 0.16563884913921356, -0.244916170835495, -0.370639443397522, -0.22505788505077362, -0.0050597116351127625, 0.03757708892226219, 0.2489537000656128, 0.21001528203487396, -0.0587482713162899, 0.15171818435192108, -0.3049478530883789, -0.3630812168121338, -0.04647689312696457, 0.19575390219688416, -0.10071639716625214, 0.07457716017961502, 0.13116122782230377, 0.0764356181025505, -0.2208397090435028, 0.17449209094047546, -0.10621491074562073, 0.09069095551967621, -0.19963732361793518, -0.15079620480537415, -0.06096281111240387, 0.16751420497894287, 0.195998415350914, 0.29020196199417114, -0.042714621871709824, 0.14642882347106934, 0.10974469780921936, 0.5076984167098999, 0.4789240062236786, -0.2084399163722992, -0.01877671666443348, 0.13355883955955505, 0.0646582543849945, -0.1697676181793213, 0.32656770944595337, -0.022326640784740448, 0.1682557314634323, 0.06326442956924438, -0.24151770770549774, -0.2287333607673645, -0.2591172754764557, 0.1807250827550888, -0.07215657085180283, -0.015952564775943756, -0.11129654943943024, -0.03816479817032814, 0.14414992928504944, 0.07286420464515686, 0.10390006005764008, 0.35861796140670776, 0.5004894733428955, -0.04087808355689049, -0.5054256319999695, 0.220365971326828, -0.07038911432027817, 0.3800175189971924, -0.2827126085758209, -0.12332576513290405, -0.13117797672748566, -0.17516720294952393, 0.03616238385438919, 0.20732897520065308, 0.36072179675102234, 0.06522242724895477, 0.015178464353084564, -0.03194962441921234, -0.054629698395729065, -0.0031501147896051407, 0.10036806762218475, -0.016958346590399742, -0.1701492965221405, 0.1830238401889801, 0.3302864730358124, -0.4439595937728882, -0.3597361743450165, 0.20291829109191895, 0.22954806685447693, -0.155772402882576, -0.0005697375163435936, 0.17767751216888428, -0.3423094153404236, -0.4191732704639435, 0.17336887121200562, 0.061986587941646576, -0.06494477391242981, 0.023142734542489052, -0.08647416532039642, -0.14377757906913757, -0.23773616552352905, 0.3879848122596741, -0.05188261345028877, 0.37982839345932007, 0.02092839777469635, 0.08449551463127136, -0.15999870002269745, 0.14283406734466553, 0.28030940890312195, 0.016288068145513535, -0.8186071515083313, 0.11675302684307098, 0.21875756978988647, -0.448673278093338, 0.3338100016117096, 0.2057308554649353, 0.07252024114131927, -0.10594459623098373, -0.3074415624141693, 0.6196123957633972, -0.2668406367301941, -0.054169151932001114, -0.09212246537208557, 0.13022738695144653, -0.11212187260389328, -0.2867051959037781, 0.2697755992412567, 0.047442104667425156, -0.2365484982728958, 0.2232995182275772, 0.09781522303819656, -0.17785553634166718, 0.2306356132030487, 0.19668148458003998, 1.0460532903671265, 0.0013373754918575287, 0.1458391696214676, 0.049055032432079315, 0.05152052640914917, 0.17485620081424713, -0.3124767541885376, -0.0806111991405487, 0.03629044070839882, -0.03550676628947258, 0.04220319539308548, 0.032056938856840134, -0.14640122652053833, 0.3043396472930908, -0.22947855293750763, 0.08663910627365112, -0.43720030784606934, -0.23039552569389343, 0.04925495386123657, 0.2781122326850891, -0.03374882787466049, -0.1429148018360138, -0.14954040944576263, 0.22182556986808777, -0.007944971323013306, 0.27486899495124817, -0.4249146580696106, -0.010979363694787025, 0.4866584837436676, 0.0609753355383873, 0.13807998597621918, -0.2831907570362091, 0.007673047948628664, 0.08468898385763168, -0.2611216902732849, -0.23954269289970398, -0.34078019857406616, -0.015289630740880966, 0.12603268027305603, 0.2032603919506073, 0.0618012398481369, -0.005381938070058823, -0.08673762530088425, 0.3028906285762787, -0.030671989545226097, -0.0770622044801712, -0.021144701167941093, -0.10535530745983124, 0.1160893514752388, -0.05601280927658081, -0.15392754971981049, -0.25280600786209106, 0.13055583834648132, 0.2731863260269165, -0.07076330482959747, -0.1689063161611557, -0.23252351582050323, -0.007000364363193512, -0.3110978305339813, -0.13889780640602112, 0.22982338070869446, 0.3654170632362366, -0.09922611713409424, 0.3186427056789398, -0.13025382161140442, -0.31282028555870056, -0.2193891555070877, -0.24207770824432373, 0.08751239627599716, -0.13511407375335693, 0.1777430772781372, -0.1542350947856903, -0.28015151619911194, -0.511594831943512, -0.19261831045150757, -0.00969251710921526, -0.3205057382583618, 0.3372771739959717, 0.06251151859760284, -0.2632918357849121, 0.10758238285779953, 0.1464068591594696, 0.270145058631897, 0.02714451402425766, -0.10364385694265366, -0.2188047617673874, -0.23117806017398834, 0.2065647542476654, 0.04000972583889961, 0.4273110330104828, -0.273084431886673, 0.1951419562101364, 0.13043785095214844, -0.03403215855360031, -0.45979106426239014, 0.3189772665500641, 0.13229723274707794, 0.08770012855529785, 0.30309221148490906, -0.0979437306523323, -0.13786251842975616, -0.13949501514434814, 0.05098382383584976, 0.10259105265140533, -0.2631741166114807, -0.2937016785144806, -0.11347238719463348, 0.05722936987876892, -0.18414932489395142, -0.02378661558032036, 0.1110999807715416, -0.026957370340824127, 0.0679478645324707, -0.30984798073768616, 0.2301924228668213, -0.05439772829413414, 0.031688448041677475, 0.004936874844133854, 0.245835542678833, -0.09939662367105484, -0.03656107932329178, 0.12544935941696167, 0.26285797357559204, 0.11083830893039703, -0.039050254970788956, 0.07276205718517303, -0.14261792600154877, -0.1030472069978714, 0.15119925141334534, 0.15104517340660095, 0.1926840841770172, 0.06777071952819824, 0.055609080940485, 0.28318899869918823, 0.056773822754621506, 0.3736404776573181, 0.2525155544281006, 0.3427313566207886, -0.016702670603990555, -0.25583508610725403, -0.04190795123577118, 0.4249017834663391, -0.1990361213684082, -0.2096209079027176, -0.22351837158203125, 0.0482851006090641, -0.08852814882993698, 0.3378225564956665, 0.005643002688884735, -0.1632484793663025, -0.001083865761756897, 0.13002023100852966, 0.44190165400505066, -0.14535324275493622, 0.10805653035640717, 0.4795473515987396, -0.18842317163944244, -0.10987891256809235, 0.316940039396286, 0.07663854956626892, 0.11474717408418655, 0.08029671758413315, -0.19271758198738098, 0.4560549855232239, 0.30092328786849976, 0.2639063000679016, -0.2386988401412964, -0.5514544248580933, 0.10190336406230927, 0.5441232323646545, 0.04606347158551216, 0.09576544165611267, 0.1679631769657135, 0.05531516298651695, 0.22305570542812347, -0.322359174489975, -0.15499989688396454, 0.2647157311439514, -0.2760024070739746, 0.09279219806194305, 0.1572297066450119, -0.13698002696037292, 0.1085633635520935, 0.07556559145450592, -0.21287035942077637, -0.2999994158744812, -0.014777593314647675, 0.03881377726793289, -0.06361740827560425, 0.11443701386451721, 0.07389886677265167, 0.22403988242149353, 0.028812773525714874, -0.3310227692127228, -0.12676869332790375, 0.18046480417251587, 0.07168445736169815, -0.007976267486810684, 0.35351458191871643, 0.17861786484718323, 0.15567494928836823, -0.0955895185470581, -0.008784833364188671, -0.1749231219291687, 0.1959136724472046, -0.4701600968837738, 0.18048299849033356, 0.07972502708435059, 0.09391499310731888, 0.03572292998433113, 0.27694109082221985, -0.31762275099754333, 0.27083176374435425, -0.05598091706633568, 0.07047520577907562, -0.274973601102829, -0.1368870735168457, 0.5081908702850342, -0.3799092471599579, -0.04664217680692673, -0.028695248067378998, -0.13675156235694885, -0.09299149364233017, 0.45495617389678955, -0.23453973233699799, 0.09100997447967529, 0.00037159910425543785, 0.18572741746902466, -0.06925763189792633, 0.1391361653804779, 0.31137311458587646, -0.271320641040802, -0.4012874960899353, -0.19893094897270203, -0.6908293962478638, -0.14091992378234863, -0.16213057935237885, 0.0963473916053772, 0.16818277537822723, -0.004542930983006954, -0.018625713884830475, 0.22335979342460632, -0.20810727775096893, 0.016259923577308655, 0.013831802643835545, -0.15707328915596008, -0.45085567235946655, 0.1972116082906723, 0.09858664870262146, 0.027289319783449173, 0.17940671741962433, -0.6281539797782898, 0.28386253118515015, -0.07936572283506393, 0.2498367726802826, 0.12063679099082947, 0.23371466994285583, 0.4652664065361023, 0.6040349006652832, 0.375337690114975, 0.08780154585838318, -0.07803703844547272, 0.09170695394277573, -0.0023482274264097214, -0.18015483021736145, 0.028957290574908257, -0.06588203459978104, -0.08049207180738449, 0.31978917121887207, 0.09617778658866882, -0.2663526237010956, 0.4315932095050812, -0.25068116188049316, 0.02435367740690708, 0.042661771178245544, 0.2571156620979309, -0.29736942052841187, -0.050643399357795715, 0.13593506813049316, 0.11824527382850647, 0.11877277493476868, 0.3918369710445404, 0.02225363627076149, -0.03429409861564636, -0.5623643398284912, -0.0676465556025505, 0.32339799404144287, 0.0661633163690567, -0.4458730220794678, -0.03308017551898956, 0.5178276896476746, 0.15608519315719604, -0.16172818839550018, -0.21772170066833496, 0.1156945750117302, 0.30989137291908264, -0.1495688259601593, -0.23289640247821808, 0.26233482360839844, -0.29375019669532776, -0.26198610663414, 0.21151408553123474, 0.23728689551353455, 0.19649386405944824, -0.2799944281578064, -0.15252551436424255, -0.33635634183883667 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
@stas00 I've had the same idea. Instead of the full-fledged app, a simpler approach would be to add a new command to the CLI.
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
24
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell @stas00 I've had the same idea. Instead of the full-fledged app, a simpler approach would be to add a new command to the CLI.
[ -0.2764700949192047, 0.1639488935470581, -0.23281078040599823, -0.13008758425712585, -0.029837559908628464, -0.05631835758686066, 0.4415804147720337, 0.23119372129440308, 0.18053430318832397, 0.444901704788208, -0.09566804021596909, 0.362938791513443, 0.014865599572658539, 0.24467156827449799, -0.22475051879882812, 0.42856425046920776, -0.15727433562278748, 0.3469613194465637, -0.17919623851776123, 0.07861782610416412, -0.21501187980175018, -0.07574795186519623, 0.18145044147968292, 0.18511760234832764, -0.05560237541794777, -0.18167605996131897, 0.18973127007484436, 0.29427391290664673, -0.11034584790468216, -0.3683721721172333, 0.03672359138727188, 0.5985016822814941, 0.04533412680029869, 0.18684501945972443, -0.00010271503560943529, -0.052150290459394455, 0.2894952893257141, 0.061654672026634216, -0.7096521854400635, 0.26436251401901245, -0.37933585047721863, -0.15908032655715942, 0.3329017460346222, -0.30844172835350037, 0.08841810375452042, 0.07420511543750763, -0.07374990731477737, -0.3987204134464264, 0.5473231673240662, 0.09041934460401535, 0.1832972913980484, 0.0013908501714468002, -0.15017032623291016, 0.13114003837108612, 0.04613063856959343, 0.2364531308412552, -0.09864358603954315, 0.2595120370388031, 0.4130191206932068, 0.04305946081876755, 0.2092067301273346, 0.2545880377292633, -0.30185598134994507, -0.14020556211471558, 0.22341257333755493, -0.05612149089574814, -0.0003969445824623108, -0.4248988628387451, 0.07870437204837799, 0.19029754400253296, 0.30372413992881775, -0.550773561000824, -0.18498343229293823, -0.395067036151886, -0.07805658131837845, -0.7016916275024414, 0.03211939334869385, -0.017980126664042473, -0.21468748152256012, 0.3933396637439728, -0.2415502816438675, -0.432006299495697, -0.44019511342048645, 0.07659125328063965, 0.25510916113853455, -0.2288990318775177, 0.08923253417015076, -0.16072258353233337, 0.4233465790748596, -0.09871719777584076, -0.002187890000641346, 0.026323888450860977, -0.16595318913459778, 0.26462796330451965, -0.17539002001285553, -0.41589778661727905, -0.05226708948612213, -0.052232302725315094, 0.03919762372970581, 0.30050987005233765, 0.031219299882650375, 0.16485148668289185, 0.010949480347335339, 0.34764495491981506, 0.36997562646865845, 0.10355623066425323, 0.4829666018486023, -0.07002449035644531, 0.4235724210739136, -0.11712236702442169, 0.13918185234069824, 0.1289282739162445, 0.0538119412958622, -0.08299499750137329, -0.0776805728673935, 0.3499699831008911, 0.263375461101532, -0.1427365243434906, -0.2240772843360901, 0.06697950512170792, 0.29574280977249146, -0.11666333675384521, -0.10389096289873123, 0.32393601536750793, 0.3651807904243469, -0.06752800196409225, 0.11142444610595703, 0.10846822708845139, -0.15857386589050293, -0.3345314860343933, -0.0005376259796321392, 0.20489910244941711, -0.06183326989412308, -0.12126448005437851, 0.2585940361022949, -0.1922946572303772, -0.18835371732711792, -0.1378062665462494, -0.3659539818763733, -0.08018924295902252, 0.3347068727016449, 0.08702594041824341, 0.03737099841237068, 0.31287816166877747, 0.22519686818122864, -0.27685120701789856, -0.010767273604869843, -0.4117696285247803, -0.0033357739448547363, 0.5378667116165161, -0.14275187253952026, -0.12076091021299362, -0.07401703298091888, 0.287469744682312, -0.04053115099668503, -0.07567472755908966, -0.20004069805145264, 0.16186313331127167, -0.06939660757780075, 0.11738261580467224, 0.1579699069261551, 0.2703084945678711, 0.07942444086074829, 0.02770845964550972, -0.11934368312358856, 0.5998044610023499, -0.6924924850463867, -0.17680341005325317, -0.41554057598114014, -0.5258625149726868, -0.007150962948799133, -0.11766402423381805, -0.13901416957378387, 0.2565962076187134, -0.06583581119775772, 0.3745599389076233, 0.3355666399002075, -0.13012614846229553, -0.03353358060121536, 0.08190223574638367, -0.3738709092140198, -0.028107881546020508, -0.005936667323112488, 0.04779444634914398, 0.11928504705429077, -0.24175205826759338, -0.28349289298057556, 0.11020033806562424, 0.05102846026420593, -0.0025139227509498596, 0.014527808874845505, -0.44439199566841125, -0.043574437499046326, -0.04397392272949219, -0.01279173418879509, 0.06320679187774658, 0.30890241265296936, -0.048577576875686646, 0.3805965781211853, -0.038592223078012466, 0.007800611667335033, 0.025630854070186615, 0.4218064844608307, -0.10764171183109283, -0.3444453179836273, -0.029617052525281906, -0.314577579498291, 0.077639140188694, -0.12839563190937042, -0.08140234649181366, -0.15967096388339996, -0.32103532552719116, -0.04575692117214203, 0.22383370995521545, -0.20557953417301178, 0.08084641396999359, 0.09801144897937775, 0.06774283945560455, -0.2622562646865845, 0.057667795568704605, -0.4617539644241333, 0.08290541917085648, -0.35389402508735657, 0.19486486911773682, 0.0435950830578804, -0.32294541597366333, -0.023166773840785027, -0.1328139305114746, -0.22701512277126312, -0.18905147910118103, -0.0914982482790947, -0.2687450349330902, -0.019013741984963417, 0.5642794966697693, 0.2168235033750534, 0.3017251491546631, 0.06816955655813217, -0.003957957029342651, 0.06883859634399414, 0.20717957615852356, -0.13349901139736176, 0.08917388319969177, -0.14592260122299194, 0.24774765968322754, -0.5967132449150085, 0.19070598483085632, 0.19641171395778656, 0.15768322348594666, 0.1871640831232071, -0.1702154129743576, -0.04300332069396973, -0.4606962203979492, 0.2144707441329956, -0.40976476669311523, -0.1747862696647644, 0.3836545944213867, 0.05801737681031227, 0.09652572870254517, 0.16315126419067383, 0.05117807909846306, 0.1830759197473526, -0.06584588438272476, 0.1504937708377838, 0.35023990273475647, -0.028436653316020966, 0.04341883212327957, 0.08719168603420258, 0.3437965512275696, 0.2490234673023224, 0.2038106471300125, -0.01876041665673256, 0.17691372334957123, 0.4513368308544159, -0.2064797431230545, 0.4351283609867096, 0.4014768600463867, -0.2706867456436157, 0.3146624267101288, -0.07186123728752136, -0.11130809038877487, -0.3818364441394806, -0.16122889518737793, -0.010061811655759811, 0.029566457495093346, -0.007228918373584747, -0.059225894510746, -0.2426048219203949, -0.27403271198272705, 0.21747195720672607, 0.07545274496078491, 0.05268275737762451, -0.08910319954156876, 0.4585078954696655, 0.2545798420906067, -0.49321380257606506, 0.14604754745960236, -0.39895832538604736, 0.5443708300590515, -0.2315794676542282, 0.01578984409570694, -0.07217875123023987, 0.014258550480008125, -0.0999179258942604, 0.1650792509317398, 0.27321189641952515, -0.14163416624069214, 0.5022228360176086, 0.1804450899362564, 0.1049128994345665, -0.1351478546857834, -0.15502920746803284, 0.2838102877140045, 0.3839516043663025, -0.059277839958667755, 0.1206163763999939, 0.2322915494441986, -0.08035045862197876, -0.39089158177375793, -0.11679139733314514, -0.10139863193035126, -0.22877821326255798, -0.395844042301178, 0.23989465832710266, 0.02793346904218197, -0.3426881432533264, -0.49478229880332947, -0.16302958130836487, -0.47707632184028625, 0.317889928817749, -0.05461069941520691, 0.27322036027908325, 0.39005914330482483, -0.04415915533900261, 0.10005845129489899, -0.0012653865851461887, -0.025617411360144615, 0.06477928161621094, -0.27440187335014343, -0.22548089921474457, -0.39073804020881653, 0.07936553657054901, 0.35769492387771606, 0.1583210974931717, -0.1441405713558197, 0.10033243149518967, -0.17661908268928528, -0.13193337619304657, -0.13752242922782898, -0.0539340116083622, -0.12243270874023438, -0.16115500032901764, 0.18224912881851196, 0.09386533498764038, -0.2564443051815033, -0.02267986536026001, 0.13303536176681519, 0.2656557857990265, -0.009760711342096329, -0.14748099446296692, 0.0515320748090744, 0.29012370109558105, 0.06437431275844574, 0.28873884677886963, -0.15779094398021698, 0.1998315304517746, 0.3254632353782654, 0.23098626732826233, 0.45061999559402466, -0.062290407717227936, 0.13205792009830475, -0.0960376188158989, 0.254896342754364, -0.38155436515808105, 0.18918390572071075, 0.08052531629800797, -0.09913680702447891, -0.028822727501392365, -0.16155290603637695, -0.11427221447229385, -0.4627910554409027, -0.0382055789232254, 0.0429687462747097, -0.2269081175327301, -0.1349126398563385, -0.027872387319803238, 0.16537418961524963, 0.10005608946084976, 0.0634140819311142, 0.3296014666557312, 0.24790984392166138, 0.006315324921160936, -0.4668816328048706, -0.07032804191112518, -0.22863510251045227, 0.25722000002861023, -0.10922183841466904, -0.29747530817985535, -0.23661662638187408, -0.28344619274139404, 0.11050933599472046, 0.014771204441785812, 0.2578481435775757, -0.08607035130262375, 0.12691915035247803, -0.0011051110923290253, 0.04302886128425598, 0.1907103806734085, -0.007458928972482681, 0.021724846214056015, 0.087333083152771, 0.2986520528793335, 0.23580598831176758, -0.1770322024822235, -0.17107997834682465, -0.08809898048639297, 0.00530513608828187, -0.11944791674613953, -0.16481630504131317, 0.22349338233470917, -0.056635454297065735, -0.689807116985321, 0.24764510989189148, 0.19097261130809784, -0.20236137509346008, -0.09649664163589478, -0.2816680073738098, -0.02187456376850605, -0.0014628060162067413, 0.2429950088262558, 0.10731595754623413, 0.30125531554222107, 0.11465953290462494, 0.012848351150751114, -0.00037703290581703186, 0.2325240969657898, 0.1129624992609024, 0.33812692761421204, -0.3010021150112152, -0.23742583394050598, -0.019185233861207962, -0.4838889241218567, 0.4193245768547058, 0.2538256049156189, 0.08305075764656067, 0.19348987936973572, 0.07998864352703094, 0.3173730671405792, 0.032057758420705795, 0.34200695157051086, -0.17946526408195496, -0.06687714159488678, -0.18561090528964996, -0.18322771787643433, 0.10635032504796982, -0.15809351205825806, -0.29485028982162476, 0.33348050713539124, -0.10318420827388763, -0.21453677117824554, 0.04940662905573845, 0.08280222117900848, 0.8851581811904907, -0.29321521520614624, 0.0027012899518013, -0.34568843245506287, 0.10369209945201874, 0.5130795240402222, -0.3183786869049072, -0.04414993152022362, -0.17856812477111816, -0.27385079860687256, 0.028479693457484245, 0.04095785692334175, -0.05895908921957016, 0.41346460580825806, -0.09816791117191315, 0.0035476351622492075, -0.4227750301361084, -0.023030925542116165, 0.08280224353075027, 0.4208834171295166, 0.053590916097164154, -0.13644540309906006, -0.004762506112456322, 0.20693039894104004, 0.2500808835029602, 0.2568744719028473, -0.1973382830619812, 0.04822729900479317, 0.4895382821559906, -0.16540296375751495, 0.18946419656276703, 0.2595381438732147, -0.23893609642982483, 0.08853058516979218, -0.3569377064704895, -0.1748330295085907, -0.31040143966674805, 0.3162667751312256, -0.04159403592348099, 0.10063794255256653, 0.0036271363496780396, 0.15063267946243286, -0.1491410732269287, 0.03553595393896103, -0.14421385526657104, -0.0179847814142704, 0.14781495928764343, -0.13097046315670013, 0.06712644547224045, 0.0673002377152443, -0.010668366216123104, -0.4021466374397278, 0.18684884905815125, 0.19774380326271057, 0.21702148020267487, -0.10915206372737885, -0.18683364987373352, -0.30751073360443115, -0.15499599277973175, -0.12298782169818878, 0.19758689403533936, 0.10286834090948105, 0.051299791783094406, 0.11721009016036987, -0.2358245700597763, -0.15316876769065857, -0.09045925736427307, 0.06427235901355743, -0.08270934969186783, -0.47182711958885193, 0.434384286403656, 0.1568572223186493, -0.12968003749847412, -0.48655012249946594, -0.3741045892238617, 0.023171838372945786, 0.008926957845687866, 0.2838868200778961, 0.18204671144485474, -0.21524976193904877, 0.2932768166065216, 0.2250860035419464, -0.17536121606826782, 0.04160720482468605, -0.3967219889163971, -0.16584353148937225, -0.524291455745697, -0.06155608594417572, -0.0039478689432144165, 0.5557718276977539, 0.08258522301912308, 0.10341167449951172, 0.06958083808422089, -0.2699723243713379, -0.3961835503578186, -0.13742734491825104, 0.11131962388753891, -0.11865802109241486, 0.37464576959609985, 0.20894145965576172, 0.11274442821741104, -0.2700706422328949, 0.07638952136039734, 0.03720393031835556, -0.09879494458436966, -0.30253955721855164, -0.42235538363456726, 0.05929895490407944, -0.23044076561927795, -0.04550653696060181, 0.14663025736808777, -0.15494228899478912, 0.16193515062332153, -0.1341450959444046, 0.3719809651374817, 0.009865358471870422, -0.07906833291053772, -0.11577596515417099, 0.08745364844799042, 0.08470584452152252, -0.355044424533844, -0.04582136124372482, 0.12272483110427856, 0.16917461156845093, -0.07397370040416718, 0.024234896525740623, -0.3247344493865967, -0.044297706335783005, 0.12032424658536911, 0.22898992896080017, 0.5053640007972717, 0.25968509912490845, -0.15534216165542603, 0.1781589388847351, -0.2568587362766266, 0.10915116965770721, 0.27403193712234497, 0.15061281621456146, -0.19509364664554596, -0.04082908481359482, 0.16651290655136108, 0.36739951372146606, -0.16965797543525696, -0.19316954910755157, 0.029673943296074867, -0.35474705696105957, -0.09213477373123169, 0.2635446786880493, 0.009092327207326889, -0.12790443003177643, 0.22884348034858704, 0.14830121397972107, 0.4467308223247528, -0.2971169352531433, 0.2872440814971924, 0.5471965074539185, -0.2966693639755249, -0.13948146998882294, 0.1462225764989853, 0.22120322287082672, 0.29168495535850525, 0.17152312397956848, -0.393623411655426, 0.19056615233421326, 0.3077438175678253, 0.16073602437973022, 0.036305058747529984, -0.45976802706718445, 0.1272784173488617, 0.35868772864341736, -0.04149405658245087, 0.29583045840263367, 0.45115625858306885, 0.3446555733680725, 0.18308351933956146, -0.15454703569412231, -0.1315622180700302, 0.38414692878723145, -0.1520044207572937, 0.06929117441177368, -0.13276809453964233, 0.015799373388290405, 0.020208008587360382, 0.017870314419269562, 0.021502500399947166, -0.09151092171669006, -0.022739075124263763, 0.17130470275878906, 0.09097632020711899, 0.10319685190916061, -0.007361862808465958, 0.08672299981117249, 0.15374593436717987, -0.2836201786994934, -0.177242249250412, 0.2924600839614868, 0.04656876623630524, 0.03479980304837227, -0.09634128957986832, 0.2370775192975998, 0.328926682472229, 0.12753233313560486, 0.14757928252220154, -0.22740478813648224, 0.044259630143642426, -0.33546483516693115, -0.020271949470043182, -0.07745766639709473, 0.22341899573802948, -0.02680036425590515, 0.26396116614341736, -0.25021395087242126, 0.12360450625419617, 0.07480411976575851, 0.22501149773597717, -0.11077529191970825, -0.04127942770719528, 0.6551203727722168, -0.23682120442390442, -0.2158191055059433, -0.10931820422410965, -0.1121964156627655, -0.11082565039396286, 0.45294713973999023, -0.040508098900318146, 0.1574629843235016, -0.0022532730363309383, 0.15134170651435852, 0.050115905702114105, -0.11023139953613281, 0.09074876457452774, -0.12430837005376816, -0.15256424248218536, -0.08980773389339447, -0.38436365127563477, 0.02699458599090576, 0.06684975326061249, -0.2171444296836853, 0.194801926612854, -0.0736818015575409, -0.11920560151338577, 0.16101758182048798, 0.049455828964710236, -0.05079205706715584, -0.1792100965976715, -0.12974269688129425, -0.4157859981060028, 0.08893746882677078, 0.027002550661563873, 0.10998758673667908, 0.29630064964294434, -0.3005882203578949, 0.049692630767822266, 0.04631412401795387, 0.02721112221479416, -0.026249580085277557, 0.15033777058124542, 0.3424164354801178, -0.07351800799369812, 0.5549670457839966, -0.06568869203329086, 0.23708422482013702, -0.19445720314979553, -0.11221295595169067, 0.04124315455555916, -0.011032583191990852, -0.4450428783893585, -0.10972387343645096, 0.23978067934513092, 0.19867409765720367, -0.27596384286880493, 0.2560752034187317, -0.15957121551036835, -0.044224828481674194, 0.029221348464488983, 0.11635955423116684, -0.1596350371837616, 0.05777689069509506, 0.09168312698602676, 0.32810524106025696, 0.08889675885438919, 0.09455610811710358, -0.08196119964122772, 0.10136675089597702, -0.2829272747039795, -0.21665483713150024, 0.3652096390724182, 0.03860894963145256, -0.23358483612537384, -0.09686920791864395, 0.4903556704521179, -0.16978609561920166, 0.18862593173980713, -0.3425939977169037, 0.14219844341278076, 0.16617481410503387, -0.15427294373512268, -0.25161272287368774, 0.4161826968193054, -0.12379266321659088, -0.020727425813674927, 0.1149451732635498, 0.31680023670196533, 0.51939457654953, -0.17076513171195984, -0.321013867855072, -0.24883227050304413 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
oh, CLI would be perfect. I didn't mean to request a GUI-one specifically, was just using it as an example. One could even do a crontab to delete old datasets that haven't been accesses in X months.
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
37
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell oh, CLI would be perfect. I didn't mean to request a GUI-one specifically, was just using it as an example. One could even do a crontab to delete old datasets that haven't been accesses in X months.
[ -0.2616749405860901, 0.14040866494178772, -0.1747804433107376, -0.0233425572514534, -0.38450610637664795, 0.1592578887939453, 0.24074654281139374, 0.2964073717594147, 0.2790684401988983, 0.5217366218566895, -0.08236141502857208, 0.4617939293384552, -0.03603683039546013, 0.2179058939218521, -0.3337567150592804, 0.015000000596046448, -0.0969446524977684, 0.33247774839401245, -0.1150563508272171, -0.013647444546222687, -0.22071535885334015, -0.044503308832645416, -0.09163353592157364, 0.18393686413764954, 0.1163218766450882, -0.38629719614982605, -0.1246023178100586, 0.015802592039108276, -0.04732481390237808, -0.20832398533821106, 0.05550280958414078, 0.6064043045043945, 0.16043522953987122, 0.293861448764801, -0.00010091548756463453, -0.3014891743659973, 0.1922605335712433, 0.1988278478384018, -0.682040810585022, 0.3769654631614685, -0.4554611146450043, -0.27356162667274475, 0.3379001319408417, -0.39745065569877625, 0.11172658950090408, -0.03487143665552139, -0.007828431203961372, -0.2826291024684906, 0.5915657877922058, -0.0564301460981369, 0.1931946724653244, 0.05003046244382858, -0.3404897451400757, 0.11639847606420517, -0.017579182982444763, 0.11685992777347565, -0.1371699571609497, 0.10098044574260712, 0.425706684589386, -0.06499288976192474, 0.12887389957904816, 0.20235906541347504, -0.2732169032096863, -0.21287183463573456, 0.09608663618564606, -0.1381998211145401, -0.03409137576818466, -0.25177615880966187, -0.04428654909133911, 0.19850164651870728, 0.46821779012680054, -0.4204370379447937, -0.014205610379576683, -0.2843683362007141, -0.009513149969279766, -0.6373081803321838, -0.07594067603349686, 0.08416057378053665, -0.22402514517307281, 0.3782455623149872, -0.3101516664028168, -0.26240774989128113, -0.37780773639678955, 0.026808690279722214, 0.13636891543865204, -0.12128657102584839, 0.005780607927590609, -0.22413384914398193, 0.3497520983219147, -0.16537316143512726, 0.07262804359197617, 0.06766331195831299, -0.000568632036447525, 0.43167465925216675, -0.11585737764835358, -0.4589659571647644, -0.09731944650411606, 0.15660671889781952, 0.14326167106628418, 0.257340669631958, -0.04461061954498291, -0.07202043384313583, -0.036806877702474594, 0.3367759585380554, 0.2554415762424469, 0.09157304465770721, 0.14255082607269287, -0.23426152765750885, 0.2569546699523926, -0.1171053946018219, 0.07492329180240631, 0.13586720824241638, -0.1130017414689064, -0.2377714365720749, 0.1841222494840622, 0.36222970485687256, 0.28423571586608887, -0.14903998374938965, -0.23166780173778534, 0.1135021224617958, 0.25248485803604126, -0.22577685117721558, -0.13113442063331604, 0.20431599020957947, 0.05873657390475273, -0.20746919512748718, 0.031067125499248505, -0.042762234807014465, -0.1500282734632492, -0.39709457755088806, -0.024646451696753502, 0.24277274310588837, -0.17056097090244293, -0.2074550837278366, 0.2034274786710739, -0.14204373955726624, -0.24164140224456787, 0.2758710980415344, -0.44478654861450195, -0.08666308969259262, 0.2920060157775879, 0.026121966540813446, 0.04265027493238449, 0.3877926766872406, 0.06883729994297028, -0.1778583973646164, -0.04313020035624504, -0.13502946496009827, -0.15334348380565643, 0.40980568528175354, -0.11521054059267044, -0.02847430296242237, -0.15629582107067108, 0.28674548864364624, -0.0019582826644182205, -0.1905847042798996, -0.1637718677520752, 0.14882221817970276, -0.2731596827507019, 0.09105397760868073, 0.041442401707172394, 0.37045174837112427, 0.1627671718597412, 0.003188549540936947, -0.05843315273523331, 0.707994282245636, -0.5009599924087524, -0.12656456232070923, -0.3830021321773529, -0.40520989894866943, -0.009432904422283173, -0.05254817381501198, 0.09727907180786133, 0.1491914987564087, -0.014336585998535156, 0.14982251822948456, 0.33972102403640747, -0.13528841733932495, -0.01836819387972355, 0.06159251928329468, -0.1511930525302887, -0.1096976175904274, -0.07846827059984207, 0.172003835439682, 0.1964520364999771, -0.3757467269897461, -0.2777114510536194, 0.11947251856327057, -0.0018148329108953476, -0.20405369997024536, -0.0009077787399291992, -0.4500657021999359, -0.004990234971046448, -0.01809336245059967, 0.02933661639690399, 0.05845419690012932, 0.28914347290992737, -0.16054667532444, 0.36759454011917114, 0.09156247973442078, -0.07336678355932236, 0.030660787597298622, 0.45605215430259705, 0.012869242578744888, -0.24761240184307098, -0.0926750972867012, -0.29898199439048767, 0.11038609594106674, 0.12900209426879883, -0.007243406027555466, 0.039416611194610596, -0.2645588517189026, -0.21720489859580994, 0.07365025579929352, -0.10059700906276703, 0.365054190158844, 0.13361266255378723, 0.01988104358315468, -0.28873348236083984, 0.08277776837348938, -0.5867133736610413, -0.1540147215127945, -0.11042822897434235, 0.17809437215328217, -0.10891138017177582, -0.257155179977417, -0.04667690396308899, -0.03977535292506218, -0.0601065456867218, -0.2315860390663147, 0.028585083782672882, -0.23340168595314026, 0.05980851128697395, 0.4316045045852661, 0.16650423407554626, 0.3552732467651367, 0.04030052199959755, 0.07031656056642532, -0.07802636921405792, 0.22620591521263123, 0.10087510943412781, 0.060662660747766495, -0.24851112067699432, 0.31113091111183167, -0.4292714297771454, 0.22136050462722778, 0.052657466381788254, -0.005999140441417694, 0.011110875755548477, -0.11758238822221756, -0.03680906444787979, -0.4572207033634186, 0.2600654363632202, -0.386025071144104, -0.04088315740227699, 0.4498865008354187, 0.09229058027267456, 0.2093789279460907, -0.2046801596879959, 0.021263621747493744, 0.2553105354309082, -0.23891191184520721, 0.14505921304225922, 0.42115500569343567, 0.013052761554718018, 0.022100716829299927, 0.07558441907167435, 0.31539860367774963, 0.055095426738262177, 0.14168822765350342, 0.0059747882187366486, 0.19408844411373138, 0.20903819799423218, -0.05583950877189636, 0.17868024110794067, 0.07101015001535416, -0.07597222924232483, -0.017024412751197815, -0.08448905497789383, 0.2081184834241867, -0.207924485206604, -0.17179280519485474, 0.062222547829151154, 0.24215276539325714, 0.16541236639022827, -0.00514623150229454, -0.1367243081331253, -0.36521413922309875, 0.2749163806438446, 0.18802933394908905, 0.17616921663284302, -0.1890997737646103, 0.31658071279525757, 0.11724530160427094, -0.4141150116920471, 0.22658343613147736, -0.28368544578552246, 0.7314220666885376, -0.14935249090194702, 0.16642910242080688, -0.19436950981616974, -0.008030444383621216, -0.14178279042243958, 0.16923882067203522, 0.1362922042608261, -0.06740882247686386, 0.5173947215080261, 0.02335151471197605, 0.21161837875843048, -0.10971664637327194, 0.01771264523267746, 0.2994784116744995, 0.36703723669052124, -0.010576337575912476, 0.03614865243434906, 0.48499464988708496, -0.04833820089697838, -0.20043545961380005, -0.12573468685150146, -0.04919104278087616, -0.18814565241336823, -0.15793265402317047, 0.17793641984462738, 0.06938787549734116, -0.23157945275306702, -0.09543513506650925, -0.17430827021598816, -0.5093038082122803, 0.13723652064800262, -0.05216405540704727, 0.22684676945209503, 0.5633467435836792, -0.09337762743234634, -0.06685280799865723, 0.01596088334918022, 0.12837497889995575, 0.01072082668542862, -0.41992926597595215, -0.09873642027378082, -0.12471015751361847, 0.13386374711990356, 0.4013455808162689, 0.17266663908958435, -0.07679955661296844, 0.22529223561286926, -0.09035065025091171, -0.033894557505846024, -0.07600299268960953, -0.08421140909194946, -0.08233712613582611, -0.07981596887111664, 0.32212427258491516, 0.19278782606124878, -0.16768237948417664, -0.002240244299173355, 0.15200947225093842, 0.20225238800048828, -0.12750548124313354, -0.3699418902397156, -0.04545034468173981, 0.2840573191642761, 0.1935911923646927, 0.2757127285003662, -0.05140408128499985, 0.07782964408397675, 0.13072419166564941, 0.21868941187858582, 0.32104581594467163, -0.017154715955257416, 0.24489203095436096, -0.24839411675930023, 0.20782853662967682, -0.36381787061691284, 0.1378089338541031, -0.010027943179011345, -0.03186406195163727, -0.02906498685479164, -0.4262418746948242, -0.19275060296058655, -0.3821074068546295, -0.16870789229869843, 0.017910679802298546, 0.11487775295972824, -0.19657404720783234, -0.07555125653743744, 0.040013641119003296, 0.03722390905022621, 0.11598633229732513, 0.441655695438385, 0.3981079161167145, -0.035165589302778244, -0.3136593699455261, 0.07708724588155746, -0.15984421968460083, 0.24817390739917755, -0.2804792523384094, -0.2657054662704468, -0.12983961403369904, -0.16258731484413147, -0.0630480945110321, 0.09071850031614304, 0.09499359875917435, -0.14813289046287537, 0.1774962693452835, 0.08737741410732269, 0.08404520153999329, 0.08719563484191895, 0.04516967758536339, 0.015934046357870102, -0.17377540469169617, 0.15688493847846985, 0.27675867080688477, -0.21231815218925476, -0.4049478769302368, 0.3249847888946533, 0.25232309103012085, -0.34600016474723816, -0.25383710861206055, 0.2310522347688675, -0.05169365555047989, -0.48800820112228394, 0.19373300671577454, 0.11764774471521378, -0.3747136890888214, -0.07511261850595474, -0.18578539788722992, -0.2100178748369217, 0.09125801920890808, 0.3625115156173706, 0.1475965678691864, 0.24659094214439392, 0.18743829429149628, -0.030358286574482918, 0.02835875004529953, 0.1995876133441925, 0.12166062742471695, -0.028735294938087463, -0.5059624314308167, -0.14962580800056458, -0.09096068888902664, -0.3874340057373047, 0.49120184779167175, 0.08258461952209473, 0.1665322482585907, 0.150551438331604, 0.04513891041278839, 0.4233182668685913, -0.1759011447429657, 0.160939559340477, -0.09769967943429947, -0.007681078743189573, -0.38177451491355896, -0.4779511094093323, 0.24790844321250916, 0.11856219172477722, -0.3829289674758911, 0.368450403213501, 0.0372757725417614, -0.1298530399799347, 0.07888935506343842, -0.004037544131278992, 0.9208967089653015, -0.3946978449821472, 0.06801225244998932, 0.047433629631996155, 0.4413255453109741, 0.3938019573688507, -0.0644027590751648, -0.10197636485099792, -0.16249139606952667, -0.0760779157280922, -0.07799270004034042, 0.056045424193143845, 0.054752908647060394, 0.30152708292007446, -0.26667699217796326, 0.14748382568359375, -0.6122671961784363, -0.10428467392921448, 0.21446716785430908, 0.15793532133102417, 0.04397091269493103, 0.0825975090265274, -0.09372560679912567, 0.19916275143623352, 0.15718673169612885, 0.1284056305885315, -0.3296988606452942, 0.07337135076522827, 0.5737671852111816, 0.00819818302989006, 0.13314968347549438, -0.006229301914572716, -0.0697370320558548, 0.09043772518634796, -0.28560149669647217, -0.2589181065559387, -0.4050631523132324, 0.28535008430480957, -0.005826160311698914, 0.19213201105594635, 0.24400952458381653, 0.07785983383655548, -0.23326468467712402, -0.11922822147607803, -0.08960854262113571, 0.006138189695775509, 0.2812017500400543, -0.0864534005522728, 0.1079438254237175, 0.24080175161361694, -0.18117451667785645, -0.2514614462852478, 0.2951902151107788, 0.29764148592948914, 0.004485420882701874, -0.02940916083753109, -0.29334479570388794, -0.29311665892601013, -0.09713871777057648, -0.03862345591187477, 0.15925070643424988, 0.17029905319213867, 0.19091926515102386, 0.10554471611976624, -0.24159030616283417, -0.07873643189668655, -0.16656747460365295, -0.30624493956565857, -0.07248630374670029, -0.27377650141716003, 0.5185827016830444, 0.12051059305667877, -0.09929083287715912, -0.47413694858551025, -0.28992679715156555, 0.0510009303689003, -0.16377854347229004, 0.2838270962238312, -0.06542763113975525, -0.0501343309879303, 0.4963303208351135, 0.38486558198928833, -0.08609075844287872, -0.183222234249115, -0.14071336388587952, -0.22799447178840637, -0.4336363673210144, 0.016774777323007584, 0.09623295068740845, 0.402348130941391, 0.10776110738515854, -0.04237647354602814, -0.021298561245203018, -0.37310901284217834, -0.41864660382270813, 0.00516512431204319, 0.026607295498251915, 0.003378879278898239, 0.39245396852493286, 0.29945701360702515, -0.25770071148872375, -0.35854560136795044, 0.09166067093610764, -0.16552941501140594, -0.02020103856921196, -0.2651110291481018, -0.4792402386665344, 0.04124873876571655, -0.36003410816192627, -0.07605334371328354, 0.21749438345432281, -0.22769396007061005, 0.12076392769813538, -0.22212962806224823, 0.09300693869590759, 0.07657214999198914, 0.018795229494571686, 0.02720608189702034, 0.06642524898052216, 0.06642580032348633, -0.21519790589809418, -0.02525791898369789, 0.30202752351760864, 0.2954002618789673, -0.08156784623861313, 0.09350451081991196, -0.1818489283323288, -0.05855346471071243, 0.11909523606300354, 0.3095485270023346, 0.5614116787910461, -0.03919856995344162, 0.021000396460294724, 0.1913256198167801, -0.20446710288524628, 0.020329589024186134, 0.26588374376296997, -0.11106963455677032, -0.08896766602993011, -0.12168809026479721, 0.1627751886844635, 0.4176524877548218, -0.3115463852882385, -0.06215987354516983, 0.028085319325327873, -0.02634654939174652, -0.0440942607820034, 0.19732296466827393, -0.07638728618621826, -0.0036702826619148254, 0.09011433273553848, 0.1182788833975792, 0.36006778478622437, -0.12500663101673126, 0.24894307553768158, 0.5125054121017456, 0.001842685043811798, -0.058154139667749405, 0.1414596289396286, 0.5001189112663269, 0.2716764807701111, -0.04546716809272766, -0.10186795145273209, 0.168638676404953, 0.5822618007659912, 0.1823001205921173, -0.07392007857561111, -0.6004047393798828, 0.1320091336965561, 0.35361552238464355, -0.1050034612417221, 0.09211650490760803, 0.29050710797309875, 0.06432513147592545, 0.3990871012210846, -0.14057087898254395, -0.23671364784240723, 0.5887389779090881, -0.040050581097602844, 0.10387954115867615, 0.010508771985769272, -0.10487797856330872, 0.12420643866062164, 0.058078888803720474, -0.11883458495140076, -0.22432278096675873, -0.16909581422805786, 0.1293909102678299, 0.3473864197731018, 0.09755545854568481, 0.22554636001586914, 0.3676294982433319, 0.15946172177791595, -0.3369215428829193, -0.2951417565345764, 0.16396284103393555, -0.10801738500595093, -0.060688603669404984, 0.0705709457397461, 0.21776312589645386, 0.1586526781320572, -0.132655069231987, 0.24532873928546906, -0.3765077292919159, 0.05742817372083664, -0.3148334324359894, -0.21002984046936035, 0.05212899297475815, 0.223080113530159, -0.1044156551361084, 0.2551696002483368, -0.18620029091835022, 0.14859940111637115, -0.04152214899659157, 0.22747232019901276, -0.32915419340133667, -0.1905299723148346, 0.3894560635089874, -0.349749892950058, -0.11490920186042786, 0.0008698031306266785, -0.16844433546066284, 0.17872354388237, 0.47380203008651733, 0.09391333162784576, 0.07751886546611786, 0.12632614374160767, 0.16146545112133026, -0.03142759948968887, -0.050487127155065536, 0.3537103533744812, 0.16135883331298828, -0.08961218595504761, -0.3785620331764221, -0.5387729406356812, -0.033183880150318146, -0.1714978963136673, -0.2713693082332611, 0.13873925805091858, -0.29319724440574646, 0.04263899847865105, 0.13626238703727722, 0.07738986611366272, 0.03646179288625717, 0.006765098311007023, 0.005157608538866043, -0.37817224860191345, 0.06678394973278046, 0.16399693489074707, 0.08497075736522675, 0.03799224644899368, -0.2875257432460785, -0.006948176771402359, -0.33325862884521484, 0.1322670578956604, -0.015491079539060593, 0.16149400174617767, 0.35153552889823914, 0.13754881918430328, 0.46419742703437805, -0.08087959885597229, 0.09757642447948456, 0.006222207099199295, -0.2040470838546753, 0.03908022493124008, 0.16862249374389648, -0.14112353324890137, -0.2319525182247162, 0.17402659356594086, -0.00257682241499424, -0.2465086579322815, 0.4074503183364868, -0.07941091060638428, -0.09291444718837738, 0.004389513283967972, 0.14800944924354553, -0.3684515953063965, -0.028243187814950943, 0.16500785946846008, 0.27073267102241516, 0.22780297696590424, 0.2857646048069, -0.1598169505596161, 0.18531012535095215, -0.37344640493392944, 0.10764162242412567, 0.2339678704738617, -0.1467149406671524, -0.4564991295337677, -0.310637891292572, 0.3495475649833679, -0.0884726420044899, 0.17842388153076172, -0.05175270512700081, 0.16748523712158203, 0.20222584903240204, -0.21570777893066406, -0.19829349219799042, 0.3313838541507721, -0.02239149808883667, -0.06703923642635345, 0.25248998403549194, 0.32198166847229004, 0.5649278163909912, -0.2148282378911972, -0.5081894397735596, -0.14876747131347656 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
@lhoestq I totally agree with you. I'm addressing that change. @stas00, @mariosasko, that could eventually be addressed in another pull request. The objective of this PR is: - add an option to pass to `load_dataset`, so that extracted files are deleted - do this deletion file per file, once the file has been already used to generate the cache Arrow file
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
61
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell @lhoestq I totally agree with you. I'm addressing that change. @stas00, @mariosasko, that could eventually be addressed in another pull request. The objective of this PR is: - add an option to pass to `load_dataset`, so that extracted files are deleted - do this deletion file per file, once the file has been already used to generate the cache Arrow file
[ -0.07237373292446136, 0.14335444569587708, -0.2276892066001892, 0.10030525177717209, -0.0905831828713417, -0.04446398466825485, 0.4233604073524475, 0.22213420271873474, 0.17251090705394745, 0.25639230012893677, -0.009737309068441391, 0.4858638048171997, 0.1484057903289795, -0.0007359795272350311, -0.13316676020622253, 0.09722964465618134, -0.05363408476114273, 0.24526123702526093, -0.14086109399795532, -0.046432264149188995, -0.23429431021213531, 0.15618403255939484, -0.028266604989767075, -0.015607587993144989, -0.12312596291303635, -0.1599791944026947, 0.22005951404571533, 0.1595342457294464, -0.1191706582903862, -0.50129634141922, 0.14843076467514038, 0.3253021240234375, -0.013700968585908413, 0.1384975165128708, -0.00009840210987022147, -0.0774288922548294, 0.40457338094711304, 0.05991174280643463, -0.3704427182674408, 0.3175361752510071, -0.34348806738853455, -0.15605618059635162, 0.28633466362953186, -0.17732712626457214, 0.20595061779022217, -0.13423094153404236, -0.07172802835702896, -0.43873581290245056, 0.5612044930458069, 0.07035336643457413, 0.3263130187988281, -0.04618283361196518, -0.20445632934570312, 0.03957163915038109, 0.2644553780555725, 0.05607127025723457, -0.2145628184080124, -0.012369383126497269, 0.07917722314596176, 0.06008339673280716, -0.09468284994363785, 0.5032669901847839, -0.037271447479724884, 0.12848299741744995, 0.3534916341304779, -0.035546306520700455, -0.1280648112297058, -0.46665599942207336, 0.1610194891691208, 0.11551953852176666, 0.6334450244903564, -0.22758275270462036, -0.10450007766485214, -0.30039745569229126, -0.15400154888629913, -0.5959097743034363, 0.1397756040096283, 0.04020676761865616, -0.1208132803440094, 0.2941766381263733, -0.04289255291223526, -0.4111316204071045, -0.3089808225631714, -0.21356026828289032, 0.27783557772636414, -0.3089512884616852, -0.11641840636730194, -0.13165509700775146, 0.3202986419200897, 0.10306494683027267, 0.2980721890926361, 0.01891990378499031, -0.19499599933624268, 0.04365396872162819, -0.18401610851287842, -0.01123734563589096, -0.1568755805492401, 0.0971834659576416, 0.06629074364900589, 0.4121345281600952, 0.21858274936676025, 0.14805448055267334, 0.06895062327384949, 0.19011914730072021, 0.1830800622701645, 0.276723712682724, 0.30447545647621155, -0.16265186667442322, 0.13782736659049988, -0.15988633036613464, 0.11732792854309082, -0.07887133210897446, 0.17323464155197144, -0.32290780544281006, 0.16001789271831512, 0.24118801951408386, 0.07239720970392227, -0.20937970280647278, -0.14268918335437775, -0.07824225723743439, 0.1844954490661621, -0.1704608052968979, -0.24115553498268127, 0.2565462589263916, 0.13035760819911957, 0.18968245387077332, 0.09685119986534119, 0.08769924938678741, -0.15385906398296356, -0.260495662689209, -0.2060600072145462, 0.11978968977928162, -0.27440163493156433, -0.09270378947257996, 0.31240880489349365, -0.13389161229133606, 0.06831037998199463, -0.003098767250776291, -0.12501229345798492, 0.012485191226005554, 0.3530014455318451, 0.05990976467728615, 0.5279954671859741, 0.2842208445072174, -0.008962953463196754, -0.1596502661705017, 0.0034406185150146484, -0.03302321583032608, -0.03502023592591286, 0.47631868720054626, -0.37928053736686707, -0.24669496715068817, -0.030421758070588112, 0.378948450088501, 0.007737377658486366, -0.0589117631316185, -0.3410426080226898, 0.05524429678916931, 0.13037768006324768, 0.1523997187614441, 0.2997210919857025, 0.16359470784664154, 0.010123919695615768, -0.04758915677666664, -0.1779879629611969, 0.5992780923843384, -0.4793640375137329, -0.0064805299043655396, -0.25580233335494995, -0.3923504054546356, 0.195365309715271, 0.0638083964586258, -0.3751370906829834, 0.030120201408863068, -0.308556467294693, 0.39564013481140137, 0.43644294142723083, -0.25285273790359497, -0.3145390748977661, 0.26099416613578796, -0.15777930617332458, -0.009705247357487679, 0.17315487563610077, -0.13972097635269165, 0.23282158374786377, -0.10226297378540039, -0.1443013697862625, 0.08587825298309326, 0.012973880395293236, 0.010900584980845451, -0.30438533425331116, -0.21385660767555237, 0.049601249396800995, -0.18015745282173157, 0.03040044754743576, 0.150197833776474, 0.18692103028297424, -0.08637940883636475, 0.37903767824172974, 0.11639922857284546, 0.07267876714468002, 0.1755823940038681, 0.3606206178665161, -0.19044627249240875, -0.10348206013441086, 0.2166563868522644, -0.5659470558166504, 0.10742596536874771, -0.2139745056629181, -0.1682163029909134, -0.14478911459445953, -0.3626362085342407, -0.17889705300331116, 0.006825951859354973, -0.4482267200946808, -0.10948438942432404, 0.2265782654285431, -0.07252340018749237, -0.24152210354804993, -0.18085584044456482, -0.2685442268848419, 0.2675793468952179, -0.1485840082168579, 0.04997739568352699, -0.35113903880119324, -0.20723754167556763, -0.08600237965583801, 0.035506512969732285, -0.18711049854755402, -0.20539265871047974, 0.05028261989355087, -0.2476273477077484, -0.16904106736183167, 0.4500429928302765, 0.20654571056365967, 0.18323791027069092, 0.07842709124088287, 0.06691817194223404, 0.21775753796100616, -0.11968289315700531, 0.041900385171175, -0.01877124235033989, -0.10081563889980316, 0.16179466247558594, -0.3363969027996063, 0.1725875288248062, -0.05254584923386574, -0.09474299103021622, -0.00012013688683509827, -0.21856443583965302, 0.0950985848903656, -0.2076311856508255, 0.1039762794971466, -0.4698401391506195, -0.3201611638069153, 0.21851730346679688, 0.21899135410785675, 0.2104729264974594, 0.10190822184085846, 0.30813509225845337, 0.30988815426826477, 0.11265356838703156, -0.10834995657205582, 0.3118707537651062, 0.0023635029792785645, -0.2934807538986206, 0.15759046375751495, 0.42910346388816833, 0.28643500804901123, 0.3009015917778015, 0.24954348802566528, -0.0523202046751976, 0.4324573874473572, -0.29027336835861206, 0.39219754934310913, 0.17972217500209808, 0.0598018616437912, 0.34737804532051086, -0.04448474198579788, -0.032675851136446, -0.43780702352523804, -0.0006465502083301544, 0.09260060638189316, 0.0824725478887558, -0.02972996234893799, -0.074153833091259, -0.30650144815444946, -0.23953965306282043, 0.0345902144908905, 0.19801250100135803, 0.01141621358692646, -0.24378204345703125, 0.35838526487350464, 0.05878353863954544, -0.39545175433158875, 0.24319064617156982, -0.28482869267463684, 0.39907026290893555, -0.07634715735912323, 0.09164421260356903, -0.29519274830818176, -0.03351694345474243, -0.006631091237068176, 0.18992027640342712, 0.0031304974108934402, -0.09590398520231247, 0.2526152729988098, -0.018763260915875435, 0.12857580184936523, -0.28873053193092346, -0.054719649255275726, 0.25105616450309753, 0.1358717381954193, -0.0465550422668457, 0.10056868195533752, 0.10907156020402908, -0.06562839448451996, -0.22246325016021729, -0.1333581656217575, -0.33224841952323914, -0.3034675121307373, -0.21784281730651855, 0.06065606325864792, 0.23938560485839844, -0.35282644629478455, -0.505512535572052, -0.01030726172029972, -0.5118338465690613, 0.20565533638000488, -0.040775880217552185, 0.18079429864883423, 0.4030337631702423, -0.023054055869579315, -0.14556139707565308, 0.0871395692229271, -0.11456100642681122, -0.2663019001483917, -0.4517446458339691, -0.03434738144278526, -0.41399505734443665, -0.06060566380620003, 0.24962201714515686, 0.12522324919700623, 0.058786846697330475, 0.1846686154603958, -0.10358387976884842, -0.19846190512180328, -0.023301536217331886, 0.19103191792964935, -0.1991727650165558, 0.0035664252936840057, 0.33982330560684204, 0.21171395480632782, -0.33002805709838867, -0.09999161213636398, 0.11644203960895538, 0.324948787689209, -0.10083451122045517, 0.05742350593209267, 0.041864290833473206, 0.17131555080413818, 0.16240668296813965, 0.5874526500701904, -0.040895961225032806, 0.2460067868232727, 0.3177354633808136, 0.38026779890060425, 0.5565052032470703, -0.24503949284553528, 0.13564440608024597, -0.1435282677412033, -0.015649661421775818, -0.08507035672664642, 0.08822713792324066, -0.04146639630198479, -0.1884652078151703, 0.17856071889400482, -0.0487903356552124, -0.2348538637161255, -0.3243858814239502, 0.10834290087223053, -0.24790257215499878, -0.031570568680763245, 0.024990055710077286, -0.0470907986164093, -0.022218041121959686, 0.11837512999773026, 0.24626076221466064, 0.12197855114936829, 0.45687586069107056, 0.030698681250214577, -0.1555349975824356, 0.24839752912521362, -0.39314448833465576, 0.24082790315151215, -0.0509268194437027, -0.10893949121236801, -0.05720754712820053, -0.3824354112148285, 0.09415047615766525, 0.0483616404235363, 0.3955075740814209, -0.09648874402046204, 0.009786851704120636, -0.014943528920412064, 0.06694958359003067, 0.09997112303972244, 0.07801412045955658, 0.10888664424419403, 0.1569838672876358, 0.12007464468479156, -0.07549683749675751, -0.2976793050765991, -0.44656234979629517, -0.11192446947097778, 0.0907030701637268, -0.16387179493904114, -0.14651897549629211, 0.059982869774103165, -0.05316813662648201, -0.34283339977264404, 0.10367917269468307, 0.3951725363731384, -0.16323383152484894, -0.2067110240459442, -0.20916852355003357, -0.054863341152668, -0.13380524516105652, 0.03776942938566208, -0.017743198201060295, 0.5628312230110168, -0.02816871926188469, -0.09529276192188263, 0.11832444369792938, 0.19927851855754852, 0.2635544240474701, 0.3579643666744232, -0.47488537430763245, 0.08585590124130249, -0.009257171303033829, -0.46184399724006653, 0.07686911523342133, 0.30395737290382385, -0.16498178243637085, 0.09850218892097473, -0.05486468970775604, 0.17930102348327637, 0.11061444133520126, 0.0417681522667408, -0.17657598853111267, -0.3331510126590729, 0.12803882360458374, -0.24064844846725464, 0.17778849601745605, 0.006204664707183838, -0.3609251379966736, 0.45952078700065613, -0.014277413487434387, -0.17163559794425964, 0.18644890189170837, -0.011061720550060272, 0.8354072570800781, 0.07674181461334229, 0.15836898982524872, -0.058770470321178436, 0.022980138659477234, 0.2563767433166504, -0.2892759144306183, 0.06732414662837982, -0.2195836454629898, -0.17279711365699768, 0.007671104744076729, 0.013522956520318985, -0.039034247398376465, 0.3253706693649292, 0.004279769957065582, 0.021097050979733467, -0.3417571187019348, -0.10333319008350372, -0.0359245166182518, 0.2793499529361725, 0.03676886111497879, -0.19498707354068756, 0.00962198805063963, 0.20452408492565155, 0.14709392189979553, 0.11248552799224854, -0.1987849473953247, -0.2519479990005493, 0.37726351618766785, -0.1954248696565628, 0.1652650684118271, 0.13029691576957703, -0.21737469732761383, 0.2562539577484131, -0.10376431047916412, -0.48497503995895386, -0.20218664407730103, 0.07742763310670853, 0.021563902497291565, -0.156589537858963, 0.015236823819577694, 0.20955033600330353, 0.2869727611541748, 0.04956255480647087, -0.22002065181732178, -0.022785665467381477, 0.14283576607704163, -0.2060970962047577, 0.02100924402475357, 0.02582848072052002, -0.2621314525604248, -0.5938320755958557, 0.3153095841407776, 0.22389504313468933, 0.011506263166666031, -0.14639915525913239, -0.19649378955364227, -0.06029486656188965, -0.28301841020584106, -0.08391478657722473, 0.24834391474723816, 0.1746361255645752, -0.0993489921092987, 0.06749628484249115, -0.02975964918732643, -0.21243561804294586, -0.06621955335140228, 0.08692672848701477, 0.016919374465942383, -0.30552607774734497, 0.4076541066169739, -0.1290334165096283, -0.31428784132003784, -0.46962717175483704, -0.20945066213607788, 0.2989831268787384, -0.38364261388778687, 0.24585504829883575, 0.019491592422127724, -0.09844708442687988, 0.26107439398765564, 0.14424265921115875, -0.040295764803886414, 0.25695037841796875, -0.1746252328157425, -0.02243157848715782, -0.35976937413215637, -0.05321080982685089, -0.3759467899799347, 0.4392293393611908, -0.02933528460562229, -0.09472639858722687, 0.11469908058643341, 0.022654561325907707, -0.4697910249233246, 0.15054723620414734, 0.17819249629974365, -0.0036253146827220917, 0.06984557211399078, -0.059737078845500946, 0.13180242478847504, -0.14735671877861023, 0.0859701856970787, 0.09469649195671082, -0.3165862262248993, -0.3780813217163086, -0.11202618479728699, 0.07813616096973419, -0.10558310896158218, -0.11550784111022949, -0.05945022776722908, 0.07706385105848312, -0.06806580722332001, 0.027199091389775276, 0.3516222834587097, -0.06094513088464737, -0.041931718587875366, 0.21495996415615082, 0.16382057964801788, 0.013300802558660507, -0.1114819124341011, -0.05906130373477936, 0.1746390014886856, 0.437263548374176, -0.055248040705919266, -0.11267177760601044, -0.323659211397171, -0.08392506837844849, 0.1385471671819687, 0.13810117542743683, 0.09595383703708649, 0.2935417592525482, -0.019724957644939423, -0.1150992214679718, -0.1877523511648178, 0.07569947093725204, 0.09593068808317184, 0.10718909651041031, -0.11666327714920044, -0.21722833812236786, -0.017087291926145554, 0.4163370132446289, -0.16732379794120789, -0.13209384679794312, 0.055576175451278687, -0.04717589169740677, -0.03618432953953743, 0.21854153275489807, 0.4384572207927704, -0.08541551232337952, 0.3232857584953308, 0.3067088723182678, 0.328688383102417, -0.4558371901512146, 0.19362898170948029, 0.0752595067024231, -0.198995441198349, 0.014207959175109863, 0.3890434801578522, 0.24838918447494507, 0.2867793142795563, 0.2156556099653244, -0.09053907543420792, 0.3817403018474579, 0.4603769779205322, 0.2806880474090576, -0.20489376783370972, -0.5434574484825134, -0.04381873831152916, 0.2236219197511673, -0.06173418462276459, 0.19526907801628113, 0.37885770201683044, 0.2659749686717987, 0.22309760749340057, -0.30278491973876953, 0.009734896942973137, 0.15477091073989868, -0.19292575120925903, -0.05594056844711304, -0.019236020743846893, -0.19845297932624817, 0.08022116124629974, -0.007913738489151001, -0.02528015896677971, 0.10057330876588821, 0.29920694231987, 0.11564397811889648, 0.010266855359077454, 0.11475883424282074, 0.1891382932662964, 0.04208879545331001, 0.37046125531196594, -0.16464963555335999, -0.03823690861463547, 0.09023638069629669, -0.1607712209224701, 0.041903745383024216, -0.002142328768968582, 0.06196492910385132, 0.11173241585493088, -0.01948630064725876, -0.14436915516853333, -0.049368973821401596, 0.024248311296105385, -0.25743967294692993, 0.09666601568460464, 0.1431734412908554, -0.09211741387844086, 0.007082495838403702, 0.2509745955467224, -0.26174724102020264, 0.20392045378684998, 0.13506825268268585, 0.22748719155788422, -0.04074596241116524, -0.11481442302465439, 0.3657105565071106, -0.28273525834083557, -0.17652854323387146, 0.05803466588258743, -0.1397905945777893, 0.06090301647782326, 0.4953549802303314, -0.07904063165187836, 0.02829655632376671, -0.18304529786109924, 0.16824761033058167, -0.015398751944303513, 0.2558964490890503, 0.09046325087547302, 0.04194524139165878, -0.26315608620643616, -0.11882871389389038, -0.4906879961490631, 0.14493787288665771, -0.029065150767564774, 0.1875012218952179, 0.21701399981975555, 0.24670742452144623, -0.05141475051641464, 0.1970405876636505, 0.08170122653245926, -0.01559295691549778, 0.15235000848770142, -0.04604718089103699, -0.5603322982788086, 0.22204403579235077, 0.3452085256576538, 0.12201301753520966, 0.18730337917804718, -0.4814756512641907, -0.027460303157567978, 0.03772628679871559, 0.14973366260528564, 0.0035157352685928345, -0.07135440409183502, 0.3528789281845093, 0.24867957830429077, 0.6252466440200806, 0.08443748205900192, -0.21425911784172058, -0.05546882748603821, -0.22363249957561493, -0.1582399606704712, -0.06290595978498459, -0.18422815203666687, -0.10871962457895279, 0.32389113306999207, 0.21858853101730347, -0.10295145958662033, 0.09663663804531097, -0.3356759548187256, 0.16171897947788239, -0.029021313413977623, 0.01693274825811386, -0.26784926652908325, 0.21474981307983398, 0.10039367526769638, 0.21926625072956085, -0.024621158838272095, 0.22389644384384155, -0.028003409504890442, 0.00016964226961135864, -0.44776737689971924, -0.3027588129043579, 0.35656824707984924, -0.05527171492576599, -0.24864305555820465, -0.03105209767818451, 0.474426805973053, 0.3515094518661499, -0.12535220384597778, -0.3622889518737793, 0.18147492408752441, 0.08964113891124725, -0.21186763048171997, -0.26769089698791504, 0.17006930708885193, -0.2795524001121521, 0.026494581252336502, 0.06686340272426605, 0.539850115776062, 0.41264238953590393, 0.002434961497783661, -0.424848347902298, -0.3184928297996521 ]
https://github.com/huggingface/datasets/pull/2631
Delete extracted files when loading dataset
I also like the idea of having a CLI tool to help users clean their cache and save disk space, good idea !
Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell
23
text: Delete extracted files when loading dataset Close #2481, close #2604, close #2591. cc: @stas00, @thomwolf, @BirgerMoell I also like the idea of having a CLI tool to help users clean their cache and save disk space, good idea !
[ -0.10275840014219284, 0.02440740168094635, -0.28763118386268616, 0.009828168898820877, -0.15537896752357483, 0.1625865399837494, 0.30957475304603577, 0.26209738850593567, 0.25978273153305054, 0.2589716613292694, 0.020278973504900932, 0.3036341071128845, -0.027999885380268097, 0.3621160686016083, -0.19013237953186035, 0.09866759181022644, -0.06210271269083023, 0.3430083394050598, -0.11270518600940704, 0.07969458401203156, -0.268425315618515, 0.06312824785709381, -0.05138754844665527, 0.0646902471780777, -0.06524305790662766, -0.029089750722050667, 0.044744402170181274, 0.3369962275028229, -0.18394748866558075, -0.49460265040397644, -0.03179604560136795, 0.5112935900688171, -0.10965175181627274, 0.33438053727149963, -0.00010167650907533243, -0.34877753257751465, 0.26565444469451904, 0.14119844138622284, -0.6824707984924316, 0.218102365732193, -0.4600107669830322, -0.2873404324054718, 0.25442206859588623, -0.3677084743976593, 0.19790315628051758, -0.07438527047634125, -0.006882244721055031, -0.3419971764087677, 0.4896000623703003, -0.041290607303380966, 0.2481348067522049, -0.2259853035211563, -0.234054833650589, -0.018054461106657982, 0.17239543795585632, 0.3961024284362793, -0.13727228343486786, 0.2077174186706543, 0.37855157256126404, -0.006697426084429026, 0.18164139986038208, 0.40344107151031494, -0.32694321870803833, -0.11613425612449646, 0.35673001408576965, -0.20692162215709686, 0.009468257427215576, -0.4023324251174927, 0.12570594251155853, 0.1325852870941162, 0.5686816573143005, -0.2567731738090515, 0.14969758689403534, -0.2840844392776489, -0.06428386270999908, -0.444705069065094, 0.012427214533090591, -0.02151724137365818, -0.20879831910133362, 0.24524487555027008, -0.32503190636634827, -0.3405206799507141, -0.2616751194000244, -0.07251714169979095, 0.0926772803068161, -0.28481683135032654, -0.01262511033564806, -0.2930551767349243, 0.46249791979789734, -0.094254270195961, 0.11327103525400162, -0.08776894956827164, -0.07913847267627716, 0.145237535238266, 0.029905319213867188, -0.3250172734260559, 0.06128375604748726, 0.1437719762325287, 0.07044366747140884, 0.21530798077583313, 0.11410928517580032, 0.12552179396152496, 0.17354147136211395, 0.26549091935157776, 0.06595498323440552, 0.12909266352653503, 0.3792480528354645, -0.30447107553482056, 0.35488736629486084, -0.2358599454164505, 0.2884295880794525, 0.07314855605363846, 0.04724910482764244, -0.12248671054840088, 0.03657039627432823, 0.27354320883750916, 0.1516994684934616, -0.053807057440280914, -0.12165965884923935, 0.24089127779006958, 0.22364673018455505, -0.3388006389141083, -0.10970821231603622, 0.1145198792219162, 0.23785564303398132, -0.11967629939317703, 0.08001922070980072, -0.08869954943656921, -0.02456939034163952, -0.4179779887199402, -0.12018335610628128, 0.23833760619163513, -0.30174872279167175, -0.09612242877483368, 0.21005772054195404, -0.1759883463382721, -0.03604695945978165, -0.039924394339323044, -0.23951591551303864, -0.06454837322235107, 0.43123042583465576, 0.10812833905220032, 0.08072185516357422, 0.3716304898262024, -0.02067343145608902, -0.20445498824119568, 0.11966113746166229, -0.21886445581912994, -0.09019780158996582, 0.5144375562667847, -0.2630358636379242, -0.19604022800922394, -0.20438075065612793, 0.3889624774456024, -0.17922961711883545, -0.15192407369613647, -0.2466897964477539, 0.07073201984167099, -0.059792421758174896, 0.10480812191963196, 0.20755884051322937, 0.27882125973701477, -0.028602709993720055, -0.00688695814460516, -0.16416963934898376, 0.7659374475479126, -0.6057753562927246, -0.11708149313926697, -0.37738704681396484, -0.42818960547447205, -0.01307079941034317, 0.01786036416888237, 0.055317431688308716, 0.2729485332965851, -0.12115355581045151, 0.38521772623062134, 0.45183736085891724, -0.0982704758644104, -0.0601867213845253, 0.25866013765335083, -0.2816348671913147, -0.15782953798770905, 0.2344909906387329, -0.08577415347099304, 0.16764721274375916, -0.2266407608985901, -0.16689825057983398, -0.08217791467905045, -0.09578035771846771, -0.017035387456417084, -0.2588777542114258, -0.41374462842941284, 0.1261442005634308, 0.0896647572517395, 0.09633182734251022, 0.07295779883861542, 0.2545871436595917, -0.07356086373329163, 0.35777801275253296, 0.11730679869651794, -0.06267242133617401, -0.1268550455570221, 0.42789700627326965, -0.06276120245456696, -0.1337154656648636, 0.0009906552731990814, -0.4867936372756958, -0.07185277342796326, 0.07985087484121323, -0.06625872850418091, 0.025406919419765472, -0.1751023828983307, -0.4846683740615845, 0.016249170526862144, -0.254588782787323, 0.02069132775068283, 0.1470746099948883, 0.061211809515953064, -0.4282880127429962, 0.001616496592760086, -0.4005850553512573, 0.2103562206029892, -0.24596889317035675, 0.11950254440307617, -0.09310156106948853, -0.08522389829158783, -0.1456318199634552, 0.1075979471206665, -0.23263505101203918, -0.08046165853738785, 0.011557377874851227, -0.21536856889724731, 0.07092460989952087, 0.42554032802581787, 0.05756302922964096, 0.20024490356445312, 0.11281158030033112, 0.17297767102718353, 0.25183019042015076, -0.08612120896577835, 0.12105312943458557, 0.12018392980098724, -0.06202539801597595, 0.09983173757791519, -0.5580770969390869, -0.16175039112567902, -0.1676327884197235, -0.09750675410032272, -0.08248898386955261, -0.11932870000600815, -0.2252085953950882, -0.19453193247318268, 0.15638291835784912, -0.4312285780906677, 0.07552549988031387, 0.47189733386039734, 0.008829105645418167, 0.33078569173812866, 0.2133457064628601, 0.0374288447201252, 0.42797476053237915, -0.1815420240163803, 0.07103339582681656, 0.48907917737960815, 0.14328381419181824, -0.1805577576160431, 0.10088609904050827, 0.28199130296707153, 0.33268049359321594, 0.17337258160114288, 0.018568165600299835, 0.16203176975250244, 0.431418240070343, -0.2868975102901459, 0.40217581391334534, 0.1918427050113678, -0.18526075780391693, 0.2098499834537506, -0.21065448224544525, 0.09320805221796036, -0.2839205861091614, -0.4209975004196167, 0.17270588874816895, 0.12587624788284302, -0.018127892166376114, -0.141444131731987, -0.003683408722281456, -0.2991081476211548, 0.3002069294452667, 0.1544371247291565, 0.16368629038333893, -0.33717337250709534, 0.29943591356277466, 0.1726756989955902, -0.4350729286670685, 0.08463704586029053, -0.24914956092834473, 0.7965706586837769, -0.20361539721488953, 0.11861641705036163, -0.41573837399482727, -0.1198403388261795, 0.002859264612197876, 0.15058113634586334, 0.13296331465244293, -0.2252185046672821, 0.4786132276058197, -0.21977941691875458, 0.2941187620162964, -0.2290334701538086, -0.26768431067466736, 0.2732045352458954, 0.2831169366836548, -0.1223493218421936, 0.1262042075395584, 0.3095458745956421, -0.19205619394779205, -0.43097132444381714, -0.11128110438585281, 0.12304089963436127, -0.1691959798336029, -0.2260213941335678, 0.27986425161361694, 0.08409592509269714, -0.32062920928001404, -0.3509272634983063, -0.13575389981269836, -0.5779271125793457, 0.19654481112957, -0.25141215324401855, 0.1906941682100296, 0.41930994391441345, -0.01751551777124405, 0.008689986541867256, 0.05222034081816673, 0.03214344382286072, -0.11018632352352142, -0.543290913105011, -0.10268975794315338, -0.31102150678634644, 0.01865195482969284, 0.10979562997817993, 0.2588993310928345, -0.1519445776939392, 0.08015653491020203, -0.23096369206905365, -0.006411741022020578, -0.07675129920244217, 0.044075336307287216, -0.12999194860458374, -0.045902691781520844, 0.10906924307346344, 0.3673105239868164, -0.27219492197036743, 0.07279038429260254, -0.039033692330121994, 0.0896097868680954, -0.04718979448080063, -0.14767971634864807, -0.018174871802330017, 0.2898196876049042, 0.10317441821098328, 0.36064475774765015, -0.09630443155765533, 0.2811732888221741, 0.2608017921447754, 0.47257524728775024, 0.44914010167121887, -0.13047060370445251, -0.04660601168870926, -0.00934047531336546, 0.23841257393360138, -0.2308748960494995, 0.11528852581977844, 0.03160480409860611, -0.11823143810033798, -0.03307999670505524, -0.20136497914791107, -0.2883365750312805, -0.2199786901473999, -0.04018823057413101, -0.08262796700000763, -0.07519505172967911, -0.12659017741680145, -0.06770811229944229, 0.11430324614048004, 0.049856316298246384, 0.06659924983978271, 0.4199228882789612, 0.3151063919067383, 0.012910996563732624, -0.3712007701396942, -0.027025535702705383, -0.1060834750533104, 0.08246487379074097, -0.21170203387737274, -0.2013443261384964, -0.37364017963409424, -0.29573506116867065, -0.005363099277019501, 0.20176838338375092, 0.3983005881309509, -0.12846586108207703, 0.09583613276481628, 0.06430923938751221, 0.18060488998889923, 0.29442164301872253, -0.0038590840995311737, 0.07672584056854248, 0.03669334575533867, 0.2454044371843338, 0.17449575662612915, -0.10583395510911942, -0.1994684785604477, 0.2943660020828247, -0.11386384069919586, -0.06786953657865524, -0.20984534919261932, 0.20005787909030914, -0.12394845485687256, -0.44885313510894775, 0.051475800573825836, 0.21394172310829163, -0.1488165706396103, -0.055360347032547, -0.21061770617961884, 0.11228830367326736, -0.13058993220329285, 0.32860639691352844, 0.17346125841140747, 0.1651533544063568, 0.19514384865760803, -0.06305953860282898, -0.07005663961172104, 0.11506947129964828, 0.1345965415239334, 0.09291678667068481, -0.5178137421607971, -0.06042355298995972, 0.23031353950500488, -0.5234721302986145, 0.3719720244407654, 0.16621768474578857, 0.1060081347823143, -0.076249860227108, 0.009182208217680454, 0.4395216107368469, -0.17155107855796814, 0.154974102973938, -0.14308694005012512, -0.09616074711084366, -0.26298853754997253, -0.27125659584999084, 0.40183648467063904, -0.008050914853811264, -0.26459789276123047, 0.39860114455223083, 0.19737784564495087, -0.11361894756555557, 0.07204914838075638, 0.10261642932891846, 0.9446934461593628, -0.27251744270324707, 0.1371845155954361, -0.1607673466205597, 0.042125165462493896, 0.43112894892692566, -0.406874418258667, -0.034624479711055756, -0.15984392166137695, -0.10410451143980026, -0.08644018322229385, -0.024488231167197227, -0.04406023770570755, 0.2723287343978882, -0.30058708786964417, -0.06580911576747894, -0.41379231214523315, -0.04487906023859978, 0.15404793620109558, 0.4161500632762909, 0.004747513681650162, -0.09333832561969757, -0.031234078109264374, 0.22569650411605835, 0.17546916007995605, 0.21197131276130676, -0.43004173040390015, 0.039751872420310974, 0.5846123099327087, 0.014502458274364471, 0.051394686102867126, -0.011839289218187332, 0.09216414391994476, 0.19963416457176208, -0.27258580923080444, -0.42760759592056274, -0.06278279423713684, 0.22536586225032806, 0.13429808616638184, 0.14907817542552948, -0.008827278390526772, -0.04498898610472679, -0.03128327429294586, 0.006491182371973991, 0.020610924810171127, 0.00019635632634162903, 0.25543472170829773, -0.15291781723499298, 0.017276965081691742, 0.12976892292499542, -0.12438313663005829, -0.20479963719844818, 0.06546130776405334, 0.24427606165409088, 0.05968426913022995, -0.23545876145362854, -0.13986295461654663, -0.23322290182113647, -0.2694559395313263, 0.03368565812706947, 0.19273795187473297, 0.13889651000499725, 0.07802353799343109, 0.06441302597522736, -0.07594664394855499, -0.28297150135040283, -0.0841442197561264, -0.10038992017507553, -0.04876217246055603, -0.5231328010559082, 0.34111660718917847, -0.027079572901129723, -0.2829943597316742, -0.5681687593460083, -0.049686722457408905, 0.07795562595129013, -0.07228804379701614, 0.29138270020484924, -0.051108624786138535, -0.30250120162963867, 0.1132468581199646, 0.23070216178894043, 0.14303162693977356, 0.12543995678424835, 0.07857513427734375, -0.2053021490573883, -0.4641481637954712, 0.009052805602550507, -0.18693090975284576, 0.37930768728256226, 0.013360604643821716, -0.08079841732978821, 0.2503821551799774, -0.32129359245300293, -0.4399113655090332, 0.15335644781589508, -0.0017872359603643417, -0.250369668006897, 0.4711461663246155, 0.0662977322936058, -0.12204646319150925, -0.2380383312702179, 0.14188207685947418, 0.06588877737522125, -0.2859467566013336, -0.29529303312301636, -0.24705339968204498, 0.09352817386388779, -0.26610836386680603, -0.1918429732322693, 0.14602859318256378, 0.005293987691402435, 0.00046714209020137787, 0.019970625638961792, 0.2562505900859833, 0.09698683768510818, 0.016383197158575058, 0.11301182955503464, -0.043698493391275406, 0.12398037314414978, -0.21494145691394806, -0.011484172195196152, 0.32793474197387695, 0.20941686630249023, -0.11360175907611847, -0.0033643729984760284, -0.2749456763267517, -0.05135033652186394, 0.15397466719150543, 0.29428035020828247, 0.35186976194381714, 0.05453513562679291, 0.03126709163188934, 0.025610167533159256, 0.02122310921549797, 0.19200773537158966, 0.149314284324646, 0.1501525640487671, -0.2963744103908539, -0.24790644645690918, 0.129079669713974, 0.42679762840270996, -0.1071164458990097, -0.19550609588623047, -0.031142573803663254, -0.012370680458843708, -0.07963750511407852, 0.0529036670923233, 0.08251495659351349, -0.017632953822612762, 0.25672611594200134, 0.2368239164352417, 0.4403615891933441, -0.3095672130584717, 0.28677642345428467, 0.37028396129608154, -0.28573936223983765, -0.05269907787442207, 0.24417801201343536, 0.243538036942482, 0.13148856163024902, 0.14872640371322632, -0.16000723838806152, 0.3006623089313507, 0.3889595568180084, 0.31163737177848816, -0.10886167734861374, -0.38782015442848206, 0.2933543920516968, 0.3782966136932373, -0.21847298741340637, 0.2051810920238495, 0.40426284074783325, 0.15523278713226318, 0.23230990767478943, -0.01669815182685852, -0.11665251851081848, 0.14627249538898468, -0.17320501804351807, 0.07262717187404633, 0.09137986600399017, -0.2263803780078888, -0.06163502484560013, -0.08136575669050217, -0.1274709403514862, -0.19028694927692413, 0.31283918023109436, 0.1156500056385994, 0.09560743719339371, 0.22010713815689087, 0.09963688999414444, 0.17379561066627502, 0.2628214955329895, -0.5023877620697021, -0.20787815749645233, 0.10417550057172775, -0.08971880376338959, 0.14055192470550537, 0.14595350623130798, 0.2605387568473816, 0.34563079476356506, -0.014297282323241234, 0.03434448316693306, -0.2363584190607071, -0.04775278642773628, -0.20375609397888184, 0.020308274775743484, 0.1704278290271759, 0.1679171323776245, -0.1044216901063919, 0.29117345809936523, -0.2775857150554657, 0.1552022248506546, 0.19521589577198029, 0.08008147776126862, -0.118284672498703, -0.1446419060230255, 0.43611323833465576, -0.3079679012298584, -0.028040334582328796, -0.01878662407398224, -0.21898114681243896, -0.08565741032361984, 0.6013918519020081, 0.1320727914571762, 0.1536555290222168, 0.00789979100227356, 0.15649893879890442, 0.22629314661026, 0.03839559480547905, 0.2807968258857727, -0.08981243520975113, -0.29168015718460083, -0.18942980468273163, -0.4401513636112213, -0.16774600744247437, 0.19042347371578217, 0.05000299960374832, 0.2806724011898041, 0.041632622480392456, -0.035570673644542694, 0.22531482577323914, 0.003294326364994049, -0.014206813648343086, -0.09092738479375839, -0.20568221807479858, -0.3371954560279846, 0.13582031428813934, 0.25236982107162476, 0.06693840026855469, 0.06490544974803925, -0.30187752842903137, 0.2337377369403839, -0.11815425008535385, 0.12557914853096008, -0.21540655195713043, 0.07323110103607178, 0.27458176016807556, 0.19883930683135986, 0.4201403856277466, -0.05010958015918732, 0.11228135228157043, 0.010351672768592834, -0.19435371458530426, 0.028490379452705383, 0.0768759548664093, -0.07344183325767517, 0.016986720263957977, 0.4176236093044281, 0.0034227613359689713, -0.2831416428089142, 0.08277703821659088, -0.18232157826423645, 0.09598390012979507, -0.04600100964307785, 0.20454081892967224, -0.4100980758666992, 0.037633053958415985, 0.2243269681930542, 0.1906736046075821, 0.10878441482782364, 0.17184089124202728, -0.058385930955410004, 0.06408248841762543, -0.422294557094574, -0.13752350211143494, 0.3953496515750885, 0.11989162117242813, -0.32581907510757446, -0.2403266578912735, 0.47609296441078186, -0.04366450011730194, 0.192008376121521, -0.3171970546245575, 0.07638385146856308, 0.24518311023712158, -0.29276350140571594, -0.2220330536365509, 0.43598008155822754, -0.19708526134490967, -0.07459714263677597, 0.09462347626686096, 0.4539869427680969, 0.25848591327667236, -0.18247270584106445, -0.3467768728733063, -0.3100898861885071 ]
https://github.com/huggingface/datasets/pull/2621
Use prefix to allow exceed Windows MAX_PATH
> Or maybe we could leave it in case a relative path exceeds the MAX_PATH limit? What about converting relative paths to absolute?
By using this prefix, you can exceed the Windows MAX_PATH limit. See: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-file-namespaces Related to #2524, #2220.
23
text: Use prefix to allow exceed Windows MAX_PATH By using this prefix, you can exceed the Windows MAX_PATH limit. See: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-file-namespaces Related to #2524, #2220. > Or maybe we could leave it in case a relative path exceeds the MAX_PATH limit? What about converting relative paths to absolute?
[ -0.0076413340866565704, -0.40322938561439514, -0.16674762964248657, -0.09651318192481995, 0.14602479338645935, -0.08340443670749664, 0.09634917974472046, 0.21475061774253845, -0.12220467627048492, 0.2868826389312744, -0.055713802576065063, -0.15864534676074982, 0.063444122672081, -0.032797764986753464, -0.24256464838981628, -0.32497984170913696, -0.006126560270786285, 0.10483897477388382, -0.1414354294538498, 0.04757652431726456, -0.6539355516433716, 0.20769003033638, -0.09675611555576324, 0.41565632820129395, -0.13036306202411652, 0.1337210237979889, 0.24982291460037231, 0.5214682817459106, -0.29024508595466614, -0.2976022958755493, -0.2233073115348816, -0.06298567354679108, 0.14323389530181885, 0.26918935775756836, -0.00009598612814443186, -0.06553385406732559, 0.4110259413719177, -0.046071577817201614, -0.09354844689369202, -0.21810729801654816, -0.282411128282547, -0.058994464576244354, -0.20112375915050507, -0.3130619525909424, 0.28490549325942993, 0.02922189235687256, 0.10783539712429047, 0.06170354038476944, 0.05442415177822113, 0.4180130362510681, 0.30349650979042053, 0.0980505496263504, -0.006471969187259674, 0.043975044041872025, 0.2695879340171814, -0.07346032559871674, -0.11680474877357483, 0.38866832852363586, 0.15653838217258453, 0.1511985808610916, -0.015766508877277374, -0.011696387082338333, 0.07566304504871368, 0.006492629647254944, 0.21249434351921082, 0.021769246086478233, 0.37999972701072693, 0.08254426717758179, -0.04360704869031906, 0.1506684571504593, -0.0620075985789299, 0.10052120685577393, 0.025944387540221214, 0.0325336679816246, -0.3316357135772705, -0.5106960535049438, 0.43436193466186523, 0.014262562617659569, 0.001609254628419876, 0.03510868549346924, 0.07695285975933075, 0.0069453055039048195, -0.29499298334121704, 0.1654890924692154, 0.02097182720899582, 0.18729332089424133, -0.062431395053863525, 0.08239159733057022, 0.4863841235637665, 0.07745411992073059, 0.03387710452079773, -0.03496576100587845, 0.11336791515350342, -0.2700486481189728, 0.20580673217773438, 0.19613319635391235, -0.2832570970058441, 0.2220132052898407, 0.06237199902534485, -0.005582951009273529, 0.06954410672187805, -0.17608168721199036, -0.014911234378814697, -0.037444375455379486, -0.16198091208934784, 0.15818020701408386, -0.18357136845588684, 0.010409732349216938, 0.2273906171321869, 0.19575951993465424, -0.13420560956001282, -0.11378555744886398, -0.20738273859024048, -0.5517988204956055, -0.4083615839481354, 0.21626299619674683, 0.11994756758213043, 0.115190789103508, -0.33414891362190247, -0.04285576567053795, 0.1875576376914978, -0.05639246478676796, 0.2616793215274811, -0.026093050837516785, 0.25030621886253357, -0.10984348505735397, 0.011040639132261276, 0.0001566372811794281, 0.0014689210802316666, 0.06021670624613762, 0.1280840039253235, 0.06093662232160568, -0.6006049513816833, -0.11602810770273209, -0.01226966641843319, 0.16652390360832214, 0.2562730014324188, -0.21463842689990997, 0.4044545292854309, -0.2099953144788742, 0.17189861834049225, -0.04413197562098503, 0.5284433364868164, 0.15250955522060394, 0.08900579810142517, 0.2145318239927292, 0.04162004590034485, 0.014289312064647675, -0.03676178306341171, 0.2595053017139435, -0.19703063368797302, -0.2687918245792389, -0.3269444704055786, 0.30705490708351135, 0.15034736692905426, 0.27122166752815247, 0.18339386582374573, -0.2329929620027542, -0.08758243173360825, -0.11932121217250824, 0.4532544016838074, -0.04460069537162781, -0.1465778350830078, -0.15944884717464447, -0.09636671841144562, 0.189468652009964, 0.04130130633711815, 0.29635757207870483, 0.02297881990671158, -0.2012329399585724, 0.152237668633461, 0.3723984360694885, -0.5106587409973145, -0.06106499582529068, -0.3871208429336548, 0.06848740577697754, 0.1215929463505745, -0.3748307526111603, 0.03347752243280411, 0.041243307292461395, -0.6172695755958557, -0.004212571308016777, 0.31414517760276794, 0.009892718866467476, -0.0013349447399377823, -0.21978285908699036, 0.17984133958816528, 0.24726355075836182, 0.4000844359397888, -0.005242776125669479, -0.2869245409965515, -0.20672820508480072, -0.10000114142894745, -0.3012985289096832, -0.071379154920578, 0.06363342702388763, -0.0728645846247673, 0.3446555733680725, 0.10482413321733475, 0.030048733577132225, 0.07188311964273453, 0.03867099806666374, -0.22564254701137543, 0.20277941226959229, -0.02908109314739704, 0.1378617286682129, 0.11875030398368835, -0.14677660167217255, -0.26938557624816895, -0.2774233818054199, 0.39899128675460815, -0.3372167944908142, -0.00993961002677679, -0.23855635523796082, -0.1298510879278183, 0.04080886393785477, 0.39555832743644714, 0.1773277223110199, 0.23369541764259338, -0.3136085867881775, 0.06600160896778107, -0.13111907243728638, -0.4070442318916321, 0.10337837040424347, 0.25253424048423767, -0.21266649663448334, -0.4225383698940277, 0.19597598910331726, -0.2831878662109375, 0.11141763627529144, 0.12168487906455994, 0.047216251492500305, 0.0378342866897583, 0.4626825153827667, -0.008163323625922203, -0.1192033439874649, 0.149310901761055, 0.4330771565437317, -0.06622304767370224, -0.18148010969161987, 0.11478620767593384, 0.33773455023765564, 0.001900636125355959, 0.08396900445222855, -0.1448567509651184, -0.13969768583774567, -0.2007305771112442, 0.2670646607875824, 0.21377097070217133, -0.10593611747026443, 0.140614852309227, -0.2396881878376007, -0.24833005666732788, -0.07052865624427795, 0.3210119307041168, 0.3989081084728241, -0.19302524626255035, 0.2140149176120758, -0.15612012147903442, -0.16968390345573425, 0.2312600463628769, -0.1821451336145401, -0.041408903896808624, 0.1246287152171135, -0.1138911321759224, 0.062090128660202026, -0.26752111315727234, 0.13044853508472443, 0.1106051504611969, 0.2798856794834137, 0.18395675718784332, 0.03212525695562363, -0.0026325834915041924, -0.36004021763801575, 0.4790334403514862, 0.5461532473564148, -0.2180389165878296, 0.14059700071811676, -0.049196213483810425, -0.03585738688707352, -0.16790221631526947, -0.26054927706718445, 0.2645244896411896, -0.06612282991409302, -0.14623554050922394, -0.20090393722057343, 0.005071775987744331, -0.3642235994338989, -0.19110019505023956, -0.31605154275894165, -0.14263635873794556, -0.1299518644809723, 0.12396194040775299, 0.39518290758132935, -0.17768444120883942, 0.07241549342870712, -0.07479704171419144, 0.1506359875202179, -0.15858420729637146, -0.28958240151405334, 0.023822106420993805, 0.24311400949954987, -0.19734200835227966, 0.15421061217784882, 0.247416689991951, -0.1359802484512329, 0.22276923060417175, -0.09399007260799408, 0.25039398670196533, -0.33309081196784973, -0.08676460385322571, 0.03426065668463707, 0.28415608406066895, -0.10243228822946548, 0.2785182595252991, 0.04433198273181915, 0.17619889974594116, -0.38822662830352783, 0.055231865495443344, 0.0801934003829956, 0.15079143643379211, -0.28515011072158813, -0.03430771455168724, 0.056217409670352936, -0.13030143082141876, 0.08388027548789978, 0.056162066757678986, -0.560703456401825, 0.347703218460083, -0.15275938808918, 0.18609121441841125, 0.4441436529159546, -0.2888818383216858, 0.275712251663208, -0.1295638382434845, 0.014065047726035118, -0.09497378021478653, -0.10994575172662735, 0.1642460972070694, -0.24515335261821747, -0.12157230079174042, 0.06353934109210968, 0.08487586677074432, 0.09407232701778412, -0.21648159623146057, -0.017834104597568512, -0.3382613956928253, -0.15484732389450073, 0.32870885729789734, 0.09453381597995758, -0.11880770325660706, 0.2668566405773163, -0.09268121421337128, -0.3716239035129547, 0.04058689624071121, -0.025732465088367462, 0.15109945833683014, 0.010013604536652565, 0.08598126471042633, 0.28220126032829285, 0.01879975013434887, 0.06429895758628845, 0.3289094567298889, -0.039368875324726105, -0.06412027776241302, 0.4417239725589752, -0.04391852766275406, 0.2650863826274872, -0.26330381631851196, 0.0414256677031517, 0.08120327442884445, -0.13111275434494019, -0.21974101662635803, 0.1533193141222, 0.04741555079817772, 0.30354511737823486, 0.1051688939332962, -0.005728742107748985, -0.15595191717147827, -0.2682636082172394, 0.2238987386226654, 0.16807584464550018, -0.07905042916536331, -0.04702932387590408, -0.32651999592781067, 0.11518658697605133, -0.02643154375255108, 0.12449322640895844, 0.4228300452232361, 0.17621293663978577, 0.02011372335255146, -0.2503461241722107, -0.45036470890045166, 0.04220247268676758, -0.08425121009349823, 0.1851208508014679, 0.187632218003273, -0.2327233850955963, -0.22736778855323792, 0.10980094969272614, -0.00877407193183899, 0.7980768084526062, -0.08381912112236023, -0.06640278548002243, 0.012326337397098541, 0.3666688799858093, 0.11736846715211868, -0.04977463185787201, 0.1881091147661209, 0.3393957316875458, 0.13319024443626404, 0.3436487019062042, 0.10036385804414749, -0.04821142926812172, 0.35518985986709595, -0.018453454598784447, 0.11623354256153107, -0.0451701283454895, -0.3669873774051666, -0.20273318886756897, -0.4713742136955261, 0.12257318198680878, 0.4939480721950531, 0.08205869793891907, -0.17770788073539734, -0.16318754851818085, 0.30136966705322266, -0.10154920816421509, -0.24465875327587128, -0.2032400518655777, 0.0828186497092247, 0.27186763286590576, -0.22056789696216583, 0.06887736916542053, 0.09361295402050018, 0.049826208502054214, 0.04411015287041664, -0.3556067645549774, 0.0657106563448906, 0.1325424313545227, -0.0736219584941864, 0.10916458070278168, 0.22000476717948914, 0.10176192224025726, 0.052108123898506165, -0.09469258785247803, 0.1142330914735794, -0.06808652728796005, 0.3647944927215576, 0.2120250016450882, -0.10638059675693512, -0.12030474841594696, 0.04713518172502518, 0.17613500356674194, 0.03310496732592583, -0.09430640190839767, 0.3827729821205139, 0.5194556713104248, -0.3328373432159424, -0.33194804191589355, -0.013639509677886963, 0.9018847942352295, -0.11243747174739838, 0.28013870120048523, -0.24754151701927185, -0.37611204385757446, -0.006168583873659372, 0.14963439106941223, -0.0042843203991651535, 0.07799603044986725, -0.04731222614645958, 0.1034245640039444, -0.014689978212118149, 0.13296657800674438, -0.1386302411556244, -0.12260426580905914, -0.036599788814783096, -0.13393069803714752, 0.251663476228714, 0.046097368001937866, 0.13287656009197235, -0.07172442227602005, -0.33109644055366516, 0.21708457171916962, 0.18752653896808624, 0.2177349478006363, -0.10181675851345062, -0.13558177649974823, -0.0028740717098116875, 0.21574747562408447, -0.19797298312187195, 0.06512343883514404, -0.21687453985214233, -0.4328143000602722, -0.12678690254688263, -0.5410254597663879, -0.16252437233924866, -0.19479840993881226, -0.06747984886169434, 0.16640926897525787, 0.10487803816795349, -0.10201308131217957, 0.05764090269804001, 0.04133202135562897, -0.049891576170921326, -0.2886831760406494, -0.25838616490364075, -0.06981562077999115, -0.08048763871192932, 0.0015706121921539307, -0.04665706306695938, -0.03991831839084625, -0.15976659953594208, -0.2380925416946411, 0.03712840750813484, 0.498338520526886, 0.08331668376922607, 0.11135780811309814, -0.18060973286628723, -0.4585019052028656, -0.11986468732357025, 0.255617618560791, -0.27548664808273315, -0.19223521649837494, -0.43326035141944885, -0.15641747415065765, -0.32314467430114746, 0.053138162940740585, 0.16613084077835083, -0.095352403819561, -0.17073461413383484, 0.11759419739246368, -0.20632082223892212, -0.11334916204214096, -0.20387738943099976, 0.18688338994979858, -0.0025010763201862574, -0.14495843648910522, 0.14280608296394348, 0.22120128571987152, -0.08501087874174118, -0.29223543405532837, 0.22952128946781158, 0.262624591588974, 0.37364503741264343, -0.11213861405849457, -0.004230909049510956, -0.3531228005886078, 0.04241463914513588, -0.4501655697822571, 0.2126159518957138, 0.14241266250610352, -0.22760827839374542, 0.5076987147331238, -0.6864908337593079, -0.44039517641067505, 0.20535141229629517, -0.11556308716535568, 0.04060062766075134, 0.08356651663780212, -0.21251919865608215, 0.19968558847904205, 0.1441102772951126, 0.1464524120092392, 0.22906070947647095, 0.04736088216304779, -0.3951514661312103, -0.07498346269130707, 0.03025496006011963, 0.2684909403324127, -0.3011821508407593, 0.1674083024263382, -0.24540823698043823, 0.04154307395219803, 0.13095226883888245, -0.2814946472644806, 0.09957761317491531, -0.07441398501396179, -0.09933425486087799, -0.07342532277107239, -0.05562300235033035, 0.11430425941944122, -0.02798353135585785, -0.10881674289703369, 0.4481493830680847, 0.1009463295340538, 0.24625878036022186, -0.3182089924812317, -0.13204523921012878, -0.25842049717903137, 0.17253664135932922, 0.45183199644088745, 0.2663484811782837, -0.2595657408237457, 0.10172232985496521, -0.41917261481285095, 0.045205261558294296, 0.29794225096702576, 0.13766637444496155, -0.25059181451797485, -0.26559844613075256, 0.4206734895706177, 0.3024878203868866, 0.08388081938028336, -0.13260133564472198, -0.2066328376531601, -0.5591655969619751, 0.24603649973869324, 0.16111025214195251, 0.26937222480773926, -0.30144286155700684, 0.14927633106708527, 0.024205047637224197, 0.07529958337545395, -0.0728486031293869, -0.047908492386341095, 0.4799145460128784, -0.09824100136756897, 0.0599333830177784, 0.26529619097709656, 0.036569416522979736, 0.2903735935688019, 0.4263461232185364, -0.005275659263134003, 0.5738268494606018, 0.4403878450393677, 0.06512278318405151, 0.00685572624206543, -0.007444338873028755, -0.3340551257133484, -0.21556833386421204, -0.026766851544380188, 0.28123897314071655, 0.008886054158210754, -0.11756839603185654, -0.3364415168762207, 0.07251162827014923, -0.1340789794921875, -0.17322702705860138, -0.11999861150979996, -0.24344386160373688, -0.5111839175224304, 0.12868225574493408, -0.17015469074249268, 0.051705267280340195, 0.04057212546467781, 0.1393067091703415, 0.26964837312698364, -0.22471033036708832, 0.05647773668169975, 0.05194313824176788, -0.11566001921892166, 0.14926111698150635, 0.012095876038074493, -0.3372349143028259, 0.148021399974823, 0.27279794216156006, 0.1569376438856125, 0.2753353714942932, 0.17315641045570374, 0.31931883096694946, 0.2743462324142456, 0.10160890221595764, -0.3064135015010834, -0.15352484583854675, 0.05729471892118454, -0.2759314477443695, 0.08662600070238113, 0.26458579301834106, 0.29012584686279297, 0.3349965214729309, 0.2992418706417084, -0.29041460156440735, 0.24106855690479279, 0.13290482759475708, -0.2807523012161255, 0.09965363144874573, -0.3309410512447357, 0.33762308955192566, -0.11015302687883377, -0.13552901148796082, 0.15587924420833588, -0.46473297476768494, -0.016583804041147232, 0.18705236911773682, -0.08905865997076035, 0.08474982529878616, 0.22764191031455994, 0.15950195491313934, 0.214718297123909, 0.43740126490592957, 0.14444956183433533, 0.1984221339225769, -0.285675585269928, -0.19293707609176636, -0.10860633850097656, 0.01862073689699173, 0.04765183478593826, 0.1067354828119278, -0.09723536670207977, -0.21199017763137817, -0.353794127702713, -0.07411788403987885, 0.1770070195198059, -0.15101763606071472, 0.18178632855415344, 0.28849899768829346, 0.2113172858953476, 0.06091182678937912, 0.5245237946510315, -0.026768585667014122, 0.03892039507627487, -0.21767812967300415, 0.2719406187534332, 0.32405227422714233, 0.2413824498653412, -0.1980484127998352, 0.18758201599121094, -0.03495289012789726, 0.19100554287433624, 0.2287324219942093, 0.17454437911510468, 0.021034494042396545, -0.18757987022399902, 0.09002242982387543, -0.2959447503089905, 0.2446119636297226, -0.19788043200969696, -0.3280365467071533, 0.1843647062778473, -0.2697443962097168, -0.1356533169746399, -0.07852862775325775, -0.26995646953582764, -0.17206642031669617, 0.061755888164043427, 0.30750206112861633, -0.1686054766178131, 0.09693001210689545, -0.007841639220714569, -0.0468660444021225, -0.10011748224496841, 0.08736757189035416, 0.06864582002162933, -0.12267281115055084, -0.19081832468509674, -0.19240954518318176, 0.2755671441555023, -0.050311557948589325, -0.317372590303421, 0.1078886166214943, 0.5737240314483643, -0.029377304017543793, 0.18730030953884125, 0.12163419276475906, -0.07151146978139877, 0.21577461063861847, 0.16621416807174683, -0.38705548644065857, 0.17088983952999115, -0.16187235713005066, -0.0681806355714798, -0.029985517263412476, -0.14960382878780365, 0.25862249732017517, -0.36626994609832764, 0.29780739545822144, -0.21328105032444 ]